bi-components-library 1.3.7-next.16 → 1.3.7-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +524 -522
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +16 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as v, jsxs as W, Fragment as it } from "react/jsx-runtime";
|
|
2
|
-
import ve, { useState as G, useRef as
|
|
3
|
-
import { Button as or, Card as qo, Modal as fb, Table as Wo, Flex as Ac, Spin as Jl, Empty as hb, Select as Zl, Form as Ca, Input as Yo, Space as pb, unstableSetRender as mb, Tooltip as jo, DatePicker as bb, Cascader as gb, Popover as Xa, Image as Go, App as
|
|
2
|
+
import ve, { useState as G, useRef as ee, useMemo as Pe, useCallback as $, useEffect as me, createContext as $o, useContext as xh, useLayoutEffect as ze, useDebugValue as Sh, forwardRef as db } from "react";
|
|
3
|
+
import { Button as or, Card as qo, Modal as fb, Table as Wo, Flex as Ac, Spin as Jl, Empty as hb, Select as Zl, Form as Ca, Input as Yo, Space as pb, unstableSetRender as mb, Tooltip as jo, DatePicker as bb, Cascader as gb, Popover as Xa, Image as Go, App as zn, Dropdown as Ko, Popconfirm as vb, ConfigProvider as yb, Progress as Eb, Pagination as Tb, theme as Cb } from "antd";
|
|
4
4
|
import { createFromIconfontCN as xb, LeftOutlined as Sb, SearchOutlined as kb, ReloadOutlined as Ab, CloseCircleFilled as kh, InfoCircleOutlined as Nb, SendOutlined as wb, PauseCircleOutlined as Ib, PlayCircleOutlined as _b } from "@ant-design/icons";
|
|
5
5
|
import { createRoot as Ob } from "react-dom/client";
|
|
6
6
|
import Mb, { createPortal as Ah } from "react-dom";
|
|
@@ -559,11 +559,11 @@ const { Option: Vb } = Zl, $b = ({
|
|
|
559
559
|
current: 1,
|
|
560
560
|
pageSize: a,
|
|
561
561
|
total: 0
|
|
562
|
-
}), [b, y] = G({}), [A, k] = G({}), [D] = Ca.useForm(), M =
|
|
562
|
+
}), [b, y] = G({}), [A, k] = G({}), [D] = Ca.useForm(), M = ee(m);
|
|
563
563
|
M.current = m;
|
|
564
|
-
const C =
|
|
564
|
+
const C = ee(o);
|
|
565
565
|
C.current = o;
|
|
566
|
-
const w =
|
|
566
|
+
const w = ee(!1), N = Pe(() => e.map((P) => {
|
|
567
567
|
const { sortable: E, render: B, ...U } = P;
|
|
568
568
|
return {
|
|
569
569
|
...U,
|
|
@@ -912,7 +912,7 @@ _t.prototype.property = "";
|
|
|
912
912
|
_t.prototype.spaceSeparated = !1;
|
|
913
913
|
_t.prototype.space = void 0;
|
|
914
914
|
let ng = 0;
|
|
915
|
-
const ke = Cr(), Ke = Cr(), no = Cr(),
|
|
915
|
+
const ke = Cr(), Ke = Cr(), no = Cr(), te = Cr(), Fe = Cr(), Hr = Cr(), Mt = Cr();
|
|
916
916
|
function Cr() {
|
|
917
917
|
return 2 ** ++ng;
|
|
918
918
|
}
|
|
@@ -922,7 +922,7 @@ const ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
922
922
|
booleanish: Ke,
|
|
923
923
|
commaOrSpaceSeparated: Mt,
|
|
924
924
|
commaSeparated: Hr,
|
|
925
|
-
number:
|
|
925
|
+
number: te,
|
|
926
926
|
overloadedBoolean: no,
|
|
927
927
|
spaceSeparated: Fe
|
|
928
928
|
}, Symbol.toStringTag, { value: "Module" })), is = (
|
|
@@ -976,9 +976,9 @@ const Oh = Qr({
|
|
|
976
976
|
ariaAutoComplete: null,
|
|
977
977
|
ariaBusy: Ke,
|
|
978
978
|
ariaChecked: Ke,
|
|
979
|
-
ariaColCount:
|
|
980
|
-
ariaColIndex:
|
|
981
|
-
ariaColSpan:
|
|
979
|
+
ariaColCount: te,
|
|
980
|
+
ariaColIndex: te,
|
|
981
|
+
ariaColSpan: te,
|
|
982
982
|
ariaControls: Fe,
|
|
983
983
|
ariaCurrent: null,
|
|
984
984
|
ariaDescribedBy: Fe,
|
|
@@ -995,7 +995,7 @@ const Oh = Qr({
|
|
|
995
995
|
ariaKeyShortcuts: null,
|
|
996
996
|
ariaLabel: null,
|
|
997
997
|
ariaLabelledBy: Fe,
|
|
998
|
-
ariaLevel:
|
|
998
|
+
ariaLevel: te,
|
|
999
999
|
ariaLive: null,
|
|
1000
1000
|
ariaModal: Ke,
|
|
1001
1001
|
ariaMultiLine: Ke,
|
|
@@ -1003,21 +1003,21 @@ const Oh = Qr({
|
|
|
1003
1003
|
ariaOrientation: null,
|
|
1004
1004
|
ariaOwns: Fe,
|
|
1005
1005
|
ariaPlaceholder: null,
|
|
1006
|
-
ariaPosInSet:
|
|
1006
|
+
ariaPosInSet: te,
|
|
1007
1007
|
ariaPressed: Ke,
|
|
1008
1008
|
ariaReadOnly: Ke,
|
|
1009
1009
|
ariaRelevant: null,
|
|
1010
1010
|
ariaRequired: Ke,
|
|
1011
1011
|
ariaRoleDescription: Fe,
|
|
1012
|
-
ariaRowCount:
|
|
1013
|
-
ariaRowIndex:
|
|
1014
|
-
ariaRowSpan:
|
|
1012
|
+
ariaRowCount: te,
|
|
1013
|
+
ariaRowIndex: te,
|
|
1014
|
+
ariaRowSpan: te,
|
|
1015
1015
|
ariaSelected: Ke,
|
|
1016
|
-
ariaSetSize:
|
|
1016
|
+
ariaSetSize: te,
|
|
1017
1017
|
ariaSort: null,
|
|
1018
|
-
ariaValueMax:
|
|
1019
|
-
ariaValueMin:
|
|
1020
|
-
ariaValueNow:
|
|
1018
|
+
ariaValueMax: te,
|
|
1019
|
+
ariaValueMin: te,
|
|
1020
|
+
ariaValueNow: te,
|
|
1021
1021
|
ariaValueText: null,
|
|
1022
1022
|
role: null
|
|
1023
1023
|
},
|
|
@@ -1063,13 +1063,13 @@ const rg = Qr({
|
|
|
1063
1063
|
checked: ke,
|
|
1064
1064
|
cite: null,
|
|
1065
1065
|
className: Fe,
|
|
1066
|
-
cols:
|
|
1066
|
+
cols: te,
|
|
1067
1067
|
colSpan: null,
|
|
1068
1068
|
content: null,
|
|
1069
1069
|
contentEditable: Ke,
|
|
1070
1070
|
controls: ke,
|
|
1071
1071
|
controlsList: Fe,
|
|
1072
|
-
coords:
|
|
1072
|
+
coords: te | Hr,
|
|
1073
1073
|
crossOrigin: null,
|
|
1074
1074
|
data: null,
|
|
1075
1075
|
dateTime: null,
|
|
@@ -1091,9 +1091,9 @@ const rg = Qr({
|
|
|
1091
1091
|
formNoValidate: ke,
|
|
1092
1092
|
formTarget: null,
|
|
1093
1093
|
headers: Fe,
|
|
1094
|
-
height:
|
|
1094
|
+
height: te,
|
|
1095
1095
|
hidden: no,
|
|
1096
|
-
high:
|
|
1096
|
+
high: te,
|
|
1097
1097
|
href: null,
|
|
1098
1098
|
hrefLang: null,
|
|
1099
1099
|
htmlFor: Fe,
|
|
@@ -1118,14 +1118,14 @@ const rg = Qr({
|
|
|
1118
1118
|
list: null,
|
|
1119
1119
|
loading: null,
|
|
1120
1120
|
loop: ke,
|
|
1121
|
-
low:
|
|
1121
|
+
low: te,
|
|
1122
1122
|
manifest: null,
|
|
1123
1123
|
max: null,
|
|
1124
|
-
maxLength:
|
|
1124
|
+
maxLength: te,
|
|
1125
1125
|
media: null,
|
|
1126
1126
|
method: null,
|
|
1127
1127
|
min: null,
|
|
1128
|
-
minLength:
|
|
1128
|
+
minLength: te,
|
|
1129
1129
|
multiple: ke,
|
|
1130
1130
|
muted: ke,
|
|
1131
1131
|
name: null,
|
|
@@ -1221,7 +1221,7 @@ const rg = Qr({
|
|
|
1221
1221
|
onWaiting: null,
|
|
1222
1222
|
onWheel: null,
|
|
1223
1223
|
open: ke,
|
|
1224
|
-
optimum:
|
|
1224
|
+
optimum: te,
|
|
1225
1225
|
pattern: null,
|
|
1226
1226
|
ping: Fe,
|
|
1227
1227
|
placeholder: null,
|
|
@@ -1236,8 +1236,8 @@ const rg = Qr({
|
|
|
1236
1236
|
rel: Fe,
|
|
1237
1237
|
required: ke,
|
|
1238
1238
|
reversed: ke,
|
|
1239
|
-
rows:
|
|
1240
|
-
rowSpan:
|
|
1239
|
+
rows: te,
|
|
1240
|
+
rowSpan: te,
|
|
1241
1241
|
sandbox: Fe,
|
|
1242
1242
|
scope: null,
|
|
1243
1243
|
scoped: ke,
|
|
@@ -1247,19 +1247,19 @@ const rg = Qr({
|
|
|
1247
1247
|
shadowRootDelegatesFocus: ke,
|
|
1248
1248
|
shadowRootMode: null,
|
|
1249
1249
|
shape: null,
|
|
1250
|
-
size:
|
|
1250
|
+
size: te,
|
|
1251
1251
|
sizes: null,
|
|
1252
1252
|
slot: null,
|
|
1253
|
-
span:
|
|
1253
|
+
span: te,
|
|
1254
1254
|
spellCheck: Ke,
|
|
1255
1255
|
src: null,
|
|
1256
1256
|
srcDoc: null,
|
|
1257
1257
|
srcLang: null,
|
|
1258
1258
|
srcSet: null,
|
|
1259
|
-
start:
|
|
1259
|
+
start: te,
|
|
1260
1260
|
step: null,
|
|
1261
1261
|
style: null,
|
|
1262
|
-
tabIndex:
|
|
1262
|
+
tabIndex: te,
|
|
1263
1263
|
target: null,
|
|
1264
1264
|
title: null,
|
|
1265
1265
|
translate: null,
|
|
@@ -1267,7 +1267,7 @@ const rg = Qr({
|
|
|
1267
1267
|
typeMustMatch: ke,
|
|
1268
1268
|
useMap: null,
|
|
1269
1269
|
value: Ke,
|
|
1270
|
-
width:
|
|
1270
|
+
width: te,
|
|
1271
1271
|
wrap: null,
|
|
1272
1272
|
writingSuggestions: null,
|
|
1273
1273
|
// Legacy.
|
|
@@ -1284,11 +1284,11 @@ const rg = Qr({
|
|
|
1284
1284
|
// `<body>`. Use CSS `background-image` instead
|
|
1285
1285
|
bgColor: null,
|
|
1286
1286
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
1287
|
-
border:
|
|
1287
|
+
border: te,
|
|
1288
1288
|
// `<table>`. Use CSS `border-width` instead,
|
|
1289
1289
|
borderColor: null,
|
|
1290
1290
|
// `<table>`. Use CSS `border-color` instead,
|
|
1291
|
-
bottomMargin:
|
|
1291
|
+
bottomMargin: te,
|
|
1292
1292
|
// `<body>`
|
|
1293
1293
|
cellPadding: null,
|
|
1294
1294
|
// `<table>`
|
|
@@ -1322,9 +1322,9 @@ const rg = Qr({
|
|
|
1322
1322
|
// `<table>`
|
|
1323
1323
|
frameBorder: null,
|
|
1324
1324
|
// `<iframe>`. Use CSS `border` instead
|
|
1325
|
-
hSpace:
|
|
1325
|
+
hSpace: te,
|
|
1326
1326
|
// `<img>` and `<object>`
|
|
1327
|
-
leftMargin:
|
|
1327
|
+
leftMargin: te,
|
|
1328
1328
|
// `<body>`
|
|
1329
1329
|
link: null,
|
|
1330
1330
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -1332,9 +1332,9 @@ const rg = Qr({
|
|
|
1332
1332
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
1333
1333
|
lowSrc: null,
|
|
1334
1334
|
// `<img>`. Use a `<picture>`
|
|
1335
|
-
marginHeight:
|
|
1335
|
+
marginHeight: te,
|
|
1336
1336
|
// `<body>`
|
|
1337
|
-
marginWidth:
|
|
1337
|
+
marginWidth: te,
|
|
1338
1338
|
// `<body>`
|
|
1339
1339
|
noResize: ke,
|
|
1340
1340
|
// `<frame>`
|
|
@@ -1352,7 +1352,7 @@ const rg = Qr({
|
|
|
1352
1352
|
// `<isindex>`
|
|
1353
1353
|
rev: null,
|
|
1354
1354
|
// `<link>`
|
|
1355
|
-
rightMargin:
|
|
1355
|
+
rightMargin: te,
|
|
1356
1356
|
// `<body>`
|
|
1357
1357
|
rules: null,
|
|
1358
1358
|
// `<table>`
|
|
@@ -1366,7 +1366,7 @@ const rg = Qr({
|
|
|
1366
1366
|
// `<table>`
|
|
1367
1367
|
text: null,
|
|
1368
1368
|
// `<body>`. Use CSS `color` instead
|
|
1369
|
-
topMargin:
|
|
1369
|
+
topMargin: te,
|
|
1370
1370
|
// `<body>`
|
|
1371
1371
|
valueType: null,
|
|
1372
1372
|
// `<param>`
|
|
@@ -1376,7 +1376,7 @@ const rg = Qr({
|
|
|
1376
1376
|
// Several. Use CSS `vertical-align` instead
|
|
1377
1377
|
vLink: null,
|
|
1378
1378
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
1379
|
-
vSpace:
|
|
1379
|
+
vSpace: te,
|
|
1380
1380
|
// `<img>` and `<object>`
|
|
1381
1381
|
// Non-standard Properties.
|
|
1382
1382
|
allowTransparency: null,
|
|
@@ -1386,7 +1386,7 @@ const rg = Qr({
|
|
|
1386
1386
|
disableRemotePlayback: ke,
|
|
1387
1387
|
prefix: null,
|
|
1388
1388
|
property: null,
|
|
1389
|
-
results:
|
|
1389
|
+
results: te,
|
|
1390
1390
|
security: null,
|
|
1391
1391
|
unselectable: null
|
|
1392
1392
|
},
|
|
@@ -1570,27 +1570,27 @@ const rg = Qr({
|
|
|
1570
1570
|
},
|
|
1571
1571
|
properties: {
|
|
1572
1572
|
about: Mt,
|
|
1573
|
-
accentHeight:
|
|
1573
|
+
accentHeight: te,
|
|
1574
1574
|
accumulate: null,
|
|
1575
1575
|
additive: null,
|
|
1576
1576
|
alignmentBaseline: null,
|
|
1577
|
-
alphabetic:
|
|
1578
|
-
amplitude:
|
|
1577
|
+
alphabetic: te,
|
|
1578
|
+
amplitude: te,
|
|
1579
1579
|
arabicForm: null,
|
|
1580
|
-
ascent:
|
|
1580
|
+
ascent: te,
|
|
1581
1581
|
attributeName: null,
|
|
1582
1582
|
attributeType: null,
|
|
1583
|
-
azimuth:
|
|
1583
|
+
azimuth: te,
|
|
1584
1584
|
bandwidth: null,
|
|
1585
1585
|
baselineShift: null,
|
|
1586
1586
|
baseFrequency: null,
|
|
1587
1587
|
baseProfile: null,
|
|
1588
1588
|
bbox: null,
|
|
1589
1589
|
begin: null,
|
|
1590
|
-
bias:
|
|
1590
|
+
bias: te,
|
|
1591
1591
|
by: null,
|
|
1592
1592
|
calcMode: null,
|
|
1593
|
-
capHeight:
|
|
1593
|
+
capHeight: te,
|
|
1594
1594
|
className: Fe,
|
|
1595
1595
|
clip: null,
|
|
1596
1596
|
clipPath: null,
|
|
@@ -1611,26 +1611,26 @@ const rg = Qr({
|
|
|
1611
1611
|
d: null,
|
|
1612
1612
|
dataType: null,
|
|
1613
1613
|
defaultAction: null,
|
|
1614
|
-
descent:
|
|
1615
|
-
diffuseConstant:
|
|
1614
|
+
descent: te,
|
|
1615
|
+
diffuseConstant: te,
|
|
1616
1616
|
direction: null,
|
|
1617
1617
|
display: null,
|
|
1618
1618
|
dur: null,
|
|
1619
|
-
divisor:
|
|
1619
|
+
divisor: te,
|
|
1620
1620
|
dominantBaseline: null,
|
|
1621
1621
|
download: ke,
|
|
1622
1622
|
dx: null,
|
|
1623
1623
|
dy: null,
|
|
1624
1624
|
edgeMode: null,
|
|
1625
1625
|
editable: null,
|
|
1626
|
-
elevation:
|
|
1626
|
+
elevation: te,
|
|
1627
1627
|
enableBackground: null,
|
|
1628
1628
|
end: null,
|
|
1629
1629
|
event: null,
|
|
1630
|
-
exponent:
|
|
1630
|
+
exponent: te,
|
|
1631
1631
|
externalResourcesRequired: null,
|
|
1632
1632
|
fill: null,
|
|
1633
|
-
fillOpacity:
|
|
1633
|
+
fillOpacity: te,
|
|
1634
1634
|
fillRule: null,
|
|
1635
1635
|
filter: null,
|
|
1636
1636
|
filterRes: null,
|
|
@@ -1660,27 +1660,27 @@ const rg = Qr({
|
|
|
1660
1660
|
gradientTransform: null,
|
|
1661
1661
|
gradientUnits: null,
|
|
1662
1662
|
handler: null,
|
|
1663
|
-
hanging:
|
|
1663
|
+
hanging: te,
|
|
1664
1664
|
hatchContentUnits: null,
|
|
1665
1665
|
hatchUnits: null,
|
|
1666
1666
|
height: null,
|
|
1667
1667
|
href: null,
|
|
1668
1668
|
hrefLang: null,
|
|
1669
|
-
horizAdvX:
|
|
1670
|
-
horizOriginX:
|
|
1671
|
-
horizOriginY:
|
|
1669
|
+
horizAdvX: te,
|
|
1670
|
+
horizOriginX: te,
|
|
1671
|
+
horizOriginY: te,
|
|
1672
1672
|
id: null,
|
|
1673
|
-
ideographic:
|
|
1673
|
+
ideographic: te,
|
|
1674
1674
|
imageRendering: null,
|
|
1675
1675
|
initialVisibility: null,
|
|
1676
1676
|
in: null,
|
|
1677
1677
|
in2: null,
|
|
1678
|
-
intercept:
|
|
1679
|
-
k:
|
|
1680
|
-
k1:
|
|
1681
|
-
k2:
|
|
1682
|
-
k3:
|
|
1683
|
-
k4:
|
|
1678
|
+
intercept: te,
|
|
1679
|
+
k: te,
|
|
1680
|
+
k1: te,
|
|
1681
|
+
k2: te,
|
|
1682
|
+
k3: te,
|
|
1683
|
+
k4: te,
|
|
1684
1684
|
kernelMatrix: Mt,
|
|
1685
1685
|
kernelUnitLength: null,
|
|
1686
1686
|
keyPoints: null,
|
|
@@ -1694,7 +1694,7 @@ const rg = Qr({
|
|
|
1694
1694
|
lengthAdjust: null,
|
|
1695
1695
|
letterSpacing: null,
|
|
1696
1696
|
lightingColor: null,
|
|
1697
|
-
limitingConeAngle:
|
|
1697
|
+
limitingConeAngle: te,
|
|
1698
1698
|
local: null,
|
|
1699
1699
|
markerEnd: null,
|
|
1700
1700
|
markerMid: null,
|
|
@@ -1710,7 +1710,7 @@ const rg = Qr({
|
|
|
1710
1710
|
media: null,
|
|
1711
1711
|
mediaCharacterEncoding: null,
|
|
1712
1712
|
mediaContentEncodings: null,
|
|
1713
|
-
mediaSize:
|
|
1713
|
+
mediaSize: te,
|
|
1714
1714
|
mediaTime: null,
|
|
1715
1715
|
method: null,
|
|
1716
1716
|
min: null,
|
|
@@ -1816,12 +1816,12 @@ const rg = Qr({
|
|
|
1816
1816
|
origin: null,
|
|
1817
1817
|
overflow: null,
|
|
1818
1818
|
overlay: null,
|
|
1819
|
-
overlinePosition:
|
|
1820
|
-
overlineThickness:
|
|
1819
|
+
overlinePosition: te,
|
|
1820
|
+
overlineThickness: te,
|
|
1821
1821
|
paintOrder: null,
|
|
1822
1822
|
panose1: null,
|
|
1823
1823
|
path: null,
|
|
1824
|
-
pathLength:
|
|
1824
|
+
pathLength: te,
|
|
1825
1825
|
patternContentUnits: null,
|
|
1826
1826
|
patternTransform: null,
|
|
1827
1827
|
patternUnits: null,
|
|
@@ -1831,9 +1831,9 @@ const rg = Qr({
|
|
|
1831
1831
|
playbackOrder: null,
|
|
1832
1832
|
pointerEvents: null,
|
|
1833
1833
|
points: null,
|
|
1834
|
-
pointsAtX:
|
|
1835
|
-
pointsAtY:
|
|
1836
|
-
pointsAtZ:
|
|
1834
|
+
pointsAtX: te,
|
|
1835
|
+
pointsAtY: te,
|
|
1836
|
+
pointsAtZ: te,
|
|
1837
1837
|
preserveAlpha: null,
|
|
1838
1838
|
preserveAspectRatio: null,
|
|
1839
1839
|
primitiveUnits: null,
|
|
@@ -1865,8 +1865,8 @@ const rg = Qr({
|
|
|
1865
1865
|
side: null,
|
|
1866
1866
|
slope: null,
|
|
1867
1867
|
snapshotTime: null,
|
|
1868
|
-
specularConstant:
|
|
1869
|
-
specularExponent:
|
|
1868
|
+
specularConstant: te,
|
|
1869
|
+
specularExponent: te,
|
|
1870
1870
|
spreadMethod: null,
|
|
1871
1871
|
spacing: null,
|
|
1872
1872
|
startOffset: null,
|
|
@@ -1876,30 +1876,30 @@ const rg = Qr({
|
|
|
1876
1876
|
stitchTiles: null,
|
|
1877
1877
|
stopColor: null,
|
|
1878
1878
|
stopOpacity: null,
|
|
1879
|
-
strikethroughPosition:
|
|
1880
|
-
strikethroughThickness:
|
|
1879
|
+
strikethroughPosition: te,
|
|
1880
|
+
strikethroughThickness: te,
|
|
1881
1881
|
string: null,
|
|
1882
1882
|
stroke: null,
|
|
1883
1883
|
strokeDashArray: Mt,
|
|
1884
1884
|
strokeDashOffset: null,
|
|
1885
1885
|
strokeLineCap: null,
|
|
1886
1886
|
strokeLineJoin: null,
|
|
1887
|
-
strokeMiterLimit:
|
|
1888
|
-
strokeOpacity:
|
|
1887
|
+
strokeMiterLimit: te,
|
|
1888
|
+
strokeOpacity: te,
|
|
1889
1889
|
strokeWidth: null,
|
|
1890
1890
|
style: null,
|
|
1891
|
-
surfaceScale:
|
|
1891
|
+
surfaceScale: te,
|
|
1892
1892
|
syncBehavior: null,
|
|
1893
1893
|
syncBehaviorDefault: null,
|
|
1894
1894
|
syncMaster: null,
|
|
1895
1895
|
syncTolerance: null,
|
|
1896
1896
|
syncToleranceDefault: null,
|
|
1897
1897
|
systemLanguage: Mt,
|
|
1898
|
-
tabIndex:
|
|
1898
|
+
tabIndex: te,
|
|
1899
1899
|
tableValues: null,
|
|
1900
1900
|
target: null,
|
|
1901
|
-
targetX:
|
|
1902
|
-
targetY:
|
|
1901
|
+
targetX: te,
|
|
1902
|
+
targetY: te,
|
|
1903
1903
|
textAnchor: null,
|
|
1904
1904
|
textDecoration: null,
|
|
1905
1905
|
textRendering: null,
|
|
@@ -1914,22 +1914,22 @@ const rg = Qr({
|
|
|
1914
1914
|
transformOrigin: null,
|
|
1915
1915
|
u1: null,
|
|
1916
1916
|
u2: null,
|
|
1917
|
-
underlinePosition:
|
|
1918
|
-
underlineThickness:
|
|
1917
|
+
underlinePosition: te,
|
|
1918
|
+
underlineThickness: te,
|
|
1919
1919
|
unicode: null,
|
|
1920
1920
|
unicodeBidi: null,
|
|
1921
1921
|
unicodeRange: null,
|
|
1922
|
-
unitsPerEm:
|
|
1922
|
+
unitsPerEm: te,
|
|
1923
1923
|
values: null,
|
|
1924
|
-
vAlphabetic:
|
|
1925
|
-
vMathematical:
|
|
1924
|
+
vAlphabetic: te,
|
|
1925
|
+
vMathematical: te,
|
|
1926
1926
|
vectorEffect: null,
|
|
1927
|
-
vHanging:
|
|
1928
|
-
vIdeographic:
|
|
1927
|
+
vHanging: te,
|
|
1928
|
+
vIdeographic: te,
|
|
1929
1929
|
version: null,
|
|
1930
|
-
vertAdvY:
|
|
1931
|
-
vertOriginX:
|
|
1932
|
-
vertOriginY:
|
|
1930
|
+
vertAdvY: te,
|
|
1931
|
+
vertOriginX: te,
|
|
1932
|
+
vertOriginY: te,
|
|
1933
1933
|
viewBox: null,
|
|
1934
1934
|
viewTarget: null,
|
|
1935
1935
|
visibility: null,
|
|
@@ -1941,7 +1941,7 @@ const rg = Qr({
|
|
|
1941
1941
|
x1: null,
|
|
1942
1942
|
x2: null,
|
|
1943
1943
|
xChannelSelector: null,
|
|
1944
|
-
xHeight:
|
|
1944
|
+
xHeight: te,
|
|
1945
1945
|
y: null,
|
|
1946
1946
|
y1: null,
|
|
1947
1947
|
y2: null,
|
|
@@ -2021,7 +2021,7 @@ function og(e) {
|
|
|
2021
2021
|
function ug(e) {
|
|
2022
2022
|
return e.charAt(1).toUpperCase();
|
|
2023
2023
|
}
|
|
2024
|
-
const ta = _h([Oh, rg, Dh, Lh, Ph], "html"),
|
|
2024
|
+
const ta = _h([Oh, rg, Dh, Lh, Ph], "html"), Vn = _h([Oh, lg, Dh, Lh, Ph], "svg");
|
|
2025
2025
|
function Mc(e) {
|
|
2026
2026
|
const t = String(e || "").trim();
|
|
2027
2027
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -2323,7 +2323,7 @@ function Eg(e, t) {
|
|
|
2323
2323
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
2324
2324
|
passKeys: t.passKeys !== !1,
|
|
2325
2325
|
passNode: t.passNode || !1,
|
|
2326
|
-
schema: t.space === "svg" ?
|
|
2326
|
+
schema: t.space === "svg" ? Vn : ta,
|
|
2327
2327
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
2328
2328
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
2329
2329
|
}, a = zh(l, e, void 0);
|
|
@@ -2351,7 +2351,7 @@ function zh(e, t, n) {
|
|
|
2351
2351
|
function Tg(e, t, n) {
|
|
2352
2352
|
const r = e.schema;
|
|
2353
2353
|
let l = r;
|
|
2354
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (l =
|
|
2354
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (l = Vn, e.schema = l), e.ancestors.push(t);
|
|
2355
2355
|
const a = $h(e, t.tagName, !1), i = Ig(e, t);
|
|
2356
2356
|
let s = eu(e, t);
|
|
2357
2357
|
return vg.has(t.tagName) && (s = s.filter(function(o) {
|
|
@@ -2377,7 +2377,7 @@ function xg(e, t) {
|
|
|
2377
2377
|
function Sg(e, t, n) {
|
|
2378
2378
|
const r = e.schema;
|
|
2379
2379
|
let l = r;
|
|
2380
|
-
t.name === "svg" && r.space === "html" && (l =
|
|
2380
|
+
t.name === "svg" && r.space === "html" && (l = Vn, e.schema = l), e.ancestors.push(t);
|
|
2381
2381
|
const a = t.name === null ? e.Fragment : $h(e, t.name, !0), i = _g(e, t), s = eu(e, t);
|
|
2382
2382
|
return Vh(e, i, a, t), Zo(i, s), e.ancestors.pop(), e.schema = r, e.create(t, a, i, n);
|
|
2383
2383
|
}
|
|
@@ -2696,7 +2696,7 @@ function Wh(e, t) {
|
|
|
2696
2696
|
function Ur(e) {
|
|
2697
2697
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2698
2698
|
}
|
|
2699
|
-
const Zt =
|
|
2699
|
+
const Zt = $n(/[A-Za-z]/), Dt = $n(/[\dA-Za-z]/), Vg = $n(/[#-'*+\--9=?A-Z^-~]/);
|
|
2700
2700
|
function ao(e) {
|
|
2701
2701
|
return (
|
|
2702
2702
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2704,7 +2704,7 @@ function ao(e) {
|
|
|
2704
2704
|
e !== null && (e < 32 || e === 127)
|
|
2705
2705
|
);
|
|
2706
2706
|
}
|
|
2707
|
-
const io =
|
|
2707
|
+
const io = $n(/\d/), $g = $n(/[\dA-Fa-f]/), qg = $n(/[!-/:-@[-`{-~]/);
|
|
2708
2708
|
function fe(e) {
|
|
2709
2709
|
return e !== null && e < -2;
|
|
2710
2710
|
}
|
|
@@ -2714,8 +2714,8 @@ function Ye(e) {
|
|
|
2714
2714
|
function Re(e) {
|
|
2715
2715
|
return e === -2 || e === -1 || e === 32;
|
|
2716
2716
|
}
|
|
2717
|
-
const Fl =
|
|
2718
|
-
function
|
|
2717
|
+
const Fl = $n(new RegExp("\\p{P}|\\p{S}", "u")), Hl = $n(/\s/);
|
|
2718
|
+
function $n(e) {
|
|
2719
2719
|
return t;
|
|
2720
2720
|
function t(n) {
|
|
2721
2721
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
@@ -5009,12 +5009,12 @@ function B2(e) {
|
|
|
5009
5009
|
(tt[1] || Qc).call(Te, void 0, tt[0]);
|
|
5010
5010
|
}
|
|
5011
5011
|
for (le.position = {
|
|
5012
|
-
start:
|
|
5012
|
+
start: En(j.length > 0 ? j[0][1].start : {
|
|
5013
5013
|
line: 1,
|
|
5014
5014
|
column: 1,
|
|
5015
5015
|
offset: 0
|
|
5016
5016
|
}),
|
|
5017
|
-
end:
|
|
5017
|
+
end: En(j.length > 0 ? j[j.length - 2][1].end : {
|
|
5018
5018
|
line: 1,
|
|
5019
5019
|
column: 1,
|
|
5020
5020
|
offset: 0
|
|
@@ -5087,7 +5087,7 @@ function B2(e) {
|
|
|
5087
5087
|
}
|
|
5088
5088
|
function s(j, le, Te) {
|
|
5089
5089
|
this.stack[this.stack.length - 1].children.push(j), this.stack.push(j), this.tokenStack.push([le, Te || void 0]), j.position = {
|
|
5090
|
-
start:
|
|
5090
|
+
start: En(le.start),
|
|
5091
5091
|
// @ts-expect-error: `end` will be patched later.
|
|
5092
5092
|
end: void 0
|
|
5093
5093
|
};
|
|
@@ -5106,7 +5106,7 @@ function B2(e) {
|
|
|
5106
5106
|
start: j.start,
|
|
5107
5107
|
end: j.end
|
|
5108
5108
|
}) + "): it’s not open");
|
|
5109
|
-
Te.position.end =
|
|
5109
|
+
Te.position.end = En(j.end);
|
|
5110
5110
|
}
|
|
5111
5111
|
function c() {
|
|
5112
5112
|
return Bg(this.stack.pop());
|
|
@@ -5172,20 +5172,20 @@ function B2(e) {
|
|
|
5172
5172
|
const Te = this.stack[this.stack.length - 1].children;
|
|
5173
5173
|
let Oe = Te[Te.length - 1];
|
|
5174
5174
|
(!Oe || Oe.type !== "text") && (Oe = ca(), Oe.position = {
|
|
5175
|
-
start:
|
|
5175
|
+
start: En(j.start),
|
|
5176
5176
|
// @ts-expect-error: we’ll add `end` later.
|
|
5177
5177
|
end: void 0
|
|
5178
5178
|
}, Te.push(Oe)), this.stack.push(Oe);
|
|
5179
5179
|
}
|
|
5180
5180
|
function O(j) {
|
|
5181
5181
|
const le = this.stack.pop();
|
|
5182
|
-
le.value += this.sliceSerialize(j), le.position.end =
|
|
5182
|
+
le.value += this.sliceSerialize(j), le.position.end = En(j.end);
|
|
5183
5183
|
}
|
|
5184
5184
|
function I(j) {
|
|
5185
5185
|
const le = this.stack[this.stack.length - 1];
|
|
5186
5186
|
if (this.data.atHardBreak) {
|
|
5187
5187
|
const Te = le.children[le.children.length - 1];
|
|
5188
|
-
Te.position.end =
|
|
5188
|
+
Te.position.end = En(j.end), this.data.atHardBreak = void 0;
|
|
5189
5189
|
return;
|
|
5190
5190
|
}
|
|
5191
5191
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(le.type) && (S.call(this, j), O.call(this, j));
|
|
@@ -5265,7 +5265,7 @@ function B2(e) {
|
|
|
5265
5265
|
}
|
|
5266
5266
|
function de(j) {
|
|
5267
5267
|
const le = this.stack.pop();
|
|
5268
|
-
le.position.end =
|
|
5268
|
+
le.position.end = En(j.end);
|
|
5269
5269
|
}
|
|
5270
5270
|
function Ie(j) {
|
|
5271
5271
|
O.call(this, j);
|
|
@@ -5388,7 +5388,7 @@ function B2(e) {
|
|
|
5388
5388
|
};
|
|
5389
5389
|
}
|
|
5390
5390
|
}
|
|
5391
|
-
function
|
|
5391
|
+
function En(e) {
|
|
5392
5392
|
return {
|
|
5393
5393
|
line: e.line,
|
|
5394
5394
|
column: e.column,
|
|
@@ -7752,7 +7752,7 @@ const p3 = [
|
|
|
7752
7752
|
"solidColor",
|
|
7753
7753
|
"textArea",
|
|
7754
7754
|
"textPath"
|
|
7755
|
-
], m3 = fp(ta, "div"), b3 = fp(
|
|
7755
|
+
], m3 = fp(ta, "div"), b3 = fp(Vn, "g", p3);
|
|
7756
7756
|
function g3(e) {
|
|
7757
7757
|
const t = String(e), n = [];
|
|
7758
7758
|
return { toOffset: l, toPoint: r };
|
|
@@ -7806,7 +7806,7 @@ function y3(e, t) {
|
|
|
7806
7806
|
{
|
|
7807
7807
|
file: n.file || void 0,
|
|
7808
7808
|
location: !1,
|
|
7809
|
-
schema: n.space === "svg" ?
|
|
7809
|
+
schema: n.space === "svg" ? Vn : ta,
|
|
7810
7810
|
verbose: n.verbose || !1
|
|
7811
7811
|
},
|
|
7812
7812
|
e
|
|
@@ -7875,7 +7875,7 @@ function pp(e, t) {
|
|
|
7875
7875
|
}
|
|
7876
7876
|
function E3(e, t) {
|
|
7877
7877
|
const n = e.schema;
|
|
7878
|
-
e.schema = t.namespaceURI === lr.svg ?
|
|
7878
|
+
e.schema = t.namespaceURI === lr.svg ? Vn : ta;
|
|
7879
7879
|
let r = -1;
|
|
7880
7880
|
const l = {};
|
|
7881
7881
|
for (; ++r < t.attrs.length; ) {
|
|
@@ -7953,7 +7953,7 @@ function mp(e, t) {
|
|
|
7953
7953
|
const C3 = {}, x3 = {}.hasOwnProperty, bp = mp("type", { handlers: { root: k3, element: _3, text: w3, comment: I3, doctype: N3 } });
|
|
7954
7954
|
function S3(e, t) {
|
|
7955
7955
|
const r = (t || C3).space;
|
|
7956
|
-
return bp(e, r === "svg" ?
|
|
7956
|
+
return bp(e, r === "svg" ? Vn : ta);
|
|
7957
7957
|
}
|
|
7958
7958
|
function k3(e, t) {
|
|
7959
7959
|
const n = {
|
|
@@ -7997,7 +7997,7 @@ function I3(e) {
|
|
|
7997
7997
|
function _3(e, t) {
|
|
7998
7998
|
const n = t;
|
|
7999
7999
|
let r = n;
|
|
8000
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r =
|
|
8000
|
+
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = Vn);
|
|
8001
8001
|
const l = [];
|
|
8002
8002
|
let a;
|
|
8003
8003
|
if (e.properties) {
|
|
@@ -8282,10 +8282,10 @@ var rt;
|
|
|
8282
8282
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
8283
8283
|
})(rt || (rt = {}));
|
|
8284
8284
|
const z3 = 32;
|
|
8285
|
-
var
|
|
8285
|
+
var On;
|
|
8286
8286
|
(function(e) {
|
|
8287
8287
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
8288
|
-
})(
|
|
8288
|
+
})(On || (On = {}));
|
|
8289
8289
|
function ho(e) {
|
|
8290
8290
|
return e >= rt.ZERO && e <= rt.NINE;
|
|
8291
8291
|
}
|
|
@@ -8431,7 +8431,7 @@ class W3 {
|
|
|
8431
8431
|
*/
|
|
8432
8432
|
stateNamedEntity(t, n) {
|
|
8433
8433
|
const { decodeTree: r } = this;
|
|
8434
|
-
let l = r[this.treeIndex], a = (l &
|
|
8434
|
+
let l = r[this.treeIndex], a = (l & On.VALUE_LENGTH) >> 14;
|
|
8435
8435
|
for (; n < t.length; n++, this.excess++) {
|
|
8436
8436
|
const i = t.charCodeAt(n);
|
|
8437
8437
|
if (this.treeIndex = Y3(r, l, this.treeIndex + Math.max(1, a), i), this.treeIndex < 0)
|
|
@@ -8439,7 +8439,7 @@ class W3 {
|
|
|
8439
8439
|
this.decodeMode === cn.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
8440
8440
|
(a === 0 || // And there should be no invalid characters.
|
|
8441
8441
|
q3(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
8442
|
-
if (l = r[this.treeIndex], a = (l &
|
|
8442
|
+
if (l = r[this.treeIndex], a = (l & On.VALUE_LENGTH) >> 14, a !== 0) {
|
|
8443
8443
|
if (i === rt.SEMI)
|
|
8444
8444
|
return this.emitNamedEntityData(this.treeIndex, a, this.consumed + this.excess);
|
|
8445
8445
|
this.decodeMode !== cn.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
@@ -8454,7 +8454,7 @@ class W3 {
|
|
|
8454
8454
|
*/
|
|
8455
8455
|
emitNotTerminatedNamedEntity() {
|
|
8456
8456
|
var t;
|
|
8457
|
-
const { result: n, decodeTree: r } = this, l = (r[n] &
|
|
8457
|
+
const { result: n, decodeTree: r } = this, l = (r[n] & On.VALUE_LENGTH) >> 14;
|
|
8458
8458
|
return this.emitNamedEntityData(n, l, this.consumed), (t = this.errors) === null || t === void 0 || t.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
8459
8459
|
}
|
|
8460
8460
|
/**
|
|
@@ -8468,7 +8468,7 @@ class W3 {
|
|
|
8468
8468
|
*/
|
|
8469
8469
|
emitNamedEntityData(t, n, r) {
|
|
8470
8470
|
const { decodeTree: l } = this;
|
|
8471
|
-
return this.emitCodePoint(n === 1 ? l[t] & ~
|
|
8471
|
+
return this.emitCodePoint(n === 1 ? l[t] & ~On.VALUE_LENGTH : l[t + 1], r), n === 3 && this.emitCodePoint(l[t + 2], r), r;
|
|
8472
8472
|
}
|
|
8473
8473
|
/**
|
|
8474
8474
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -8495,7 +8495,7 @@ class W3 {
|
|
|
8495
8495
|
}
|
|
8496
8496
|
}
|
|
8497
8497
|
function Y3(e, t, n, r) {
|
|
8498
|
-
const l = (t &
|
|
8498
|
+
const l = (t & On.BRANCH_LENGTH) >> 7, a = t & On.JUMP_TABLE;
|
|
8499
8499
|
if (l === 0)
|
|
8500
8500
|
return a !== 0 && r === a ? n : -1;
|
|
8501
8501
|
if (a) {
|
|
@@ -8775,11 +8775,11 @@ function gl(e) {
|
|
|
8775
8775
|
function Q3(e) {
|
|
8776
8776
|
return e >= x.LATIN_SMALL_A && e <= x.LATIN_SMALL_Z;
|
|
8777
8777
|
}
|
|
8778
|
-
function
|
|
8778
|
+
function Sn(e) {
|
|
8779
8779
|
return Q3(e) || gl(e);
|
|
8780
8780
|
}
|
|
8781
8781
|
function vd(e) {
|
|
8782
|
-
return
|
|
8782
|
+
return Sn(e) || K3(e);
|
|
8783
8783
|
}
|
|
8784
8784
|
function Aa(e) {
|
|
8785
8785
|
return e + 32;
|
|
@@ -9416,7 +9416,7 @@ class J3 {
|
|
|
9416
9416
|
// Tag open state
|
|
9417
9417
|
//------------------------------------------------------------------
|
|
9418
9418
|
_stateTagOpen(t) {
|
|
9419
|
-
if (
|
|
9419
|
+
if (Sn(t))
|
|
9420
9420
|
this._createStartTagToken(), this.state = _.TAG_NAME, this._stateTagName(t);
|
|
9421
9421
|
else
|
|
9422
9422
|
switch (t) {
|
|
@@ -9443,7 +9443,7 @@ class J3 {
|
|
|
9443
9443
|
// End tag open state
|
|
9444
9444
|
//------------------------------------------------------------------
|
|
9445
9445
|
_stateEndTagOpen(t) {
|
|
9446
|
-
if (
|
|
9446
|
+
if (Sn(t))
|
|
9447
9447
|
this._createEndTagToken(), this.state = _.TAG_NAME, this._stateTagName(t);
|
|
9448
9448
|
else
|
|
9449
9449
|
switch (t) {
|
|
@@ -9499,7 +9499,7 @@ class J3 {
|
|
|
9499
9499
|
// RCDATA end tag open state
|
|
9500
9500
|
//------------------------------------------------------------------
|
|
9501
9501
|
_stateRcdataEndTagOpen(t) {
|
|
9502
|
-
|
|
9502
|
+
Sn(t) ? (this.state = _.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = _.RCDATA, this._stateRcdata(t));
|
|
9503
9503
|
}
|
|
9504
9504
|
handleSpecialEndTag(t) {
|
|
9505
9505
|
if (!this.preprocessor.startsWith(this.lastStartTagName, !1))
|
|
@@ -9533,7 +9533,7 @@ class J3 {
|
|
|
9533
9533
|
// RAWTEXT end tag open state
|
|
9534
9534
|
//------------------------------------------------------------------
|
|
9535
9535
|
_stateRawtextEndTagOpen(t) {
|
|
9536
|
-
|
|
9536
|
+
Sn(t) ? (this.state = _.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = _.RAWTEXT, this._stateRawtext(t));
|
|
9537
9537
|
}
|
|
9538
9538
|
// RAWTEXT end tag name state
|
|
9539
9539
|
//------------------------------------------------------------------
|
|
@@ -9559,7 +9559,7 @@ class J3 {
|
|
|
9559
9559
|
// Script data end tag open state
|
|
9560
9560
|
//------------------------------------------------------------------
|
|
9561
9561
|
_stateScriptDataEndTagOpen(t) {
|
|
9562
|
-
|
|
9562
|
+
Sn(t) ? (this.state = _.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = _.SCRIPT_DATA, this._stateScriptData(t));
|
|
9563
9563
|
}
|
|
9564
9564
|
// Script data end tag name state
|
|
9565
9565
|
//------------------------------------------------------------------
|
|
@@ -9655,12 +9655,12 @@ class J3 {
|
|
|
9655
9655
|
// Script data escaped less-than sign state
|
|
9656
9656
|
//------------------------------------------------------------------
|
|
9657
9657
|
_stateScriptDataEscapedLessThanSign(t) {
|
|
9658
|
-
t === x.SOLIDUS ? this.state = _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN :
|
|
9658
|
+
t === x.SOLIDUS ? this.state = _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Sn(t) ? (this._emitChars("<"), this.state = _.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = _.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
9659
9659
|
}
|
|
9660
9660
|
// Script data escaped end tag open state
|
|
9661
9661
|
//------------------------------------------------------------------
|
|
9662
9662
|
_stateScriptDataEscapedEndTagOpen(t) {
|
|
9663
|
-
|
|
9663
|
+
Sn(t) ? (this.state = _.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = _.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
9664
9664
|
}
|
|
9665
9665
|
// Script data escaped end tag name state
|
|
9666
9666
|
//------------------------------------------------------------------
|
|
@@ -11000,7 +11000,7 @@ class iE {
|
|
|
11000
11000
|
return this.entries.find((n) => n.type === Jt.Element && n.element === t);
|
|
11001
11001
|
}
|
|
11002
11002
|
}
|
|
11003
|
-
const
|
|
11003
|
+
const kn = {
|
|
11004
11004
|
//Node construction
|
|
11005
11005
|
createDocument() {
|
|
11006
11006
|
return {
|
|
@@ -11065,7 +11065,7 @@ const Sn = {
|
|
|
11065
11065
|
systemId: r,
|
|
11066
11066
|
parentNode: null
|
|
11067
11067
|
};
|
|
11068
|
-
|
|
11068
|
+
kn.appendChild(e, a);
|
|
11069
11069
|
}
|
|
11070
11070
|
},
|
|
11071
11071
|
setDocumentMode(e, t) {
|
|
@@ -11083,16 +11083,16 @@ const Sn = {
|
|
|
11083
11083
|
insertText(e, t) {
|
|
11084
11084
|
if (e.childNodes.length > 0) {
|
|
11085
11085
|
const n = e.childNodes[e.childNodes.length - 1];
|
|
11086
|
-
if (
|
|
11086
|
+
if (kn.isTextNode(n)) {
|
|
11087
11087
|
n.value += t;
|
|
11088
11088
|
return;
|
|
11089
11089
|
}
|
|
11090
11090
|
}
|
|
11091
|
-
|
|
11091
|
+
kn.appendChild(e, kn.createTextNode(t));
|
|
11092
11092
|
},
|
|
11093
11093
|
insertTextBefore(e, t, n) {
|
|
11094
11094
|
const r = e.childNodes[e.childNodes.indexOf(n) - 1];
|
|
11095
|
-
r &&
|
|
11095
|
+
r && kn.isTextNode(r) ? r.value += t : kn.insertBefore(e, kn.createTextNode(t), n);
|
|
11096
11096
|
},
|
|
11097
11097
|
adoptAttributes(e, t) {
|
|
11098
11098
|
const n = new Set(e.attrs.map((r) => r.name));
|
|
@@ -11465,7 +11465,7 @@ const wE = {
|
|
|
11465
11465
|
}, wp = /* @__PURE__ */ new Set([p.TABLE, p.TBODY, p.TFOOT, p.THEAD, p.TR]), Ad = {
|
|
11466
11466
|
scriptingEnabled: !0,
|
|
11467
11467
|
sourceCodeLocationInfo: !1,
|
|
11468
|
-
treeAdapter:
|
|
11468
|
+
treeAdapter: kn,
|
|
11469
11469
|
onParseError: null
|
|
11470
11470
|
};
|
|
11471
11471
|
class Nd {
|
|
@@ -14110,7 +14110,7 @@ const tr = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Pr = {
|
|
|
14110
14110
|
"ul",
|
|
14111
14111
|
"var"
|
|
14112
14112
|
]
|
|
14113
|
-
},
|
|
14113
|
+
}, Nn = {}.hasOwnProperty;
|
|
14114
14114
|
function T6(e, t) {
|
|
14115
14115
|
let n = { type: "root", children: [] };
|
|
14116
14116
|
const r = {
|
|
@@ -14160,7 +14160,7 @@ function S6(e, t) {
|
|
|
14160
14160
|
), l = N6(e, t.properties);
|
|
14161
14161
|
e.stack.pop();
|
|
14162
14162
|
let a = !1;
|
|
14163
|
-
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (a = !0, e.schema.ancestors &&
|
|
14163
|
+
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (a = !0, e.schema.ancestors && Nn.call(e.schema.ancestors, n))) {
|
|
14164
14164
|
const s = e.schema.ancestors[n];
|
|
14165
14165
|
let o = -1;
|
|
14166
14166
|
for (a = !1; ++o < s.length; )
|
|
@@ -14203,13 +14203,13 @@ function Kp(e, t) {
|
|
|
14203
14203
|
return n;
|
|
14204
14204
|
}
|
|
14205
14205
|
function N6(e, t) {
|
|
14206
|
-
const n = e.stack[e.stack.length - 1], r = e.schema.attributes, l = e.schema.required, a = r &&
|
|
14206
|
+
const n = e.stack[e.stack.length - 1], r = e.schema.attributes, l = e.schema.required, a = r && Nn.call(r, n) ? r[n] : void 0, i = r && Nn.call(r, "*") ? r["*"] : void 0, s = (
|
|
14207
14207
|
/** @type {Readonly<Record<string, Readonly<unknown>>>} */
|
|
14208
14208
|
t && typeof t == "object" ? t : {}
|
|
14209
14209
|
), o = {};
|
|
14210
14210
|
let u;
|
|
14211
14211
|
for (u in s)
|
|
14212
|
-
if (
|
|
14212
|
+
if (Nn.call(s, u)) {
|
|
14213
14213
|
const c = s[u];
|
|
14214
14214
|
let d = Od(
|
|
14215
14215
|
e,
|
|
@@ -14219,10 +14219,10 @@ function N6(e, t) {
|
|
|
14219
14219
|
);
|
|
14220
14220
|
d == null && (d = Od(e, Md(i, u), u, c)), d != null && (o[u] = d);
|
|
14221
14221
|
}
|
|
14222
|
-
if (l &&
|
|
14222
|
+
if (l && Nn.call(l, n)) {
|
|
14223
14223
|
const c = l[n];
|
|
14224
14224
|
for (u in c)
|
|
14225
|
-
|
|
14225
|
+
Nn.call(c, u) && !Nn.call(o, u) && (o[u] = c[u]);
|
|
14226
14226
|
}
|
|
14227
14227
|
return o;
|
|
14228
14228
|
}
|
|
@@ -14260,7 +14260,7 @@ function Qp(e, t, n, r) {
|
|
|
14260
14260
|
}
|
|
14261
14261
|
}
|
|
14262
14262
|
function I6(e, t, n) {
|
|
14263
|
-
const r = e.schema.protocols &&
|
|
14263
|
+
const r = e.schema.protocols && Nn.call(e.schema.protocols, t) ? e.schema.protocols[t] : void 0;
|
|
14264
14264
|
if (!r || r.length === 0)
|
|
14265
14265
|
return !0;
|
|
14266
14266
|
const l = String(n), a = l.indexOf(":"), i = l.indexOf("?"), s = l.indexOf("#"), o = l.indexOf("/");
|
|
@@ -15411,7 +15411,7 @@ const AC = {
|
|
|
15411
15411
|
] });
|
|
15412
15412
|
}, PC = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", e0 = ve.memo(
|
|
15413
15413
|
({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
|
|
15414
|
-
const a = PC(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = ia(e.tooltip), c = !!u, d = !!a && !c && !o, h = !!a && !c, f =
|
|
15414
|
+
const a = PC(e.tooltip), i = t ?? "", s = e.placeholder || "", o = i.length > 0, u = ia(e.tooltip), c = !!u, d = !!a && !c && !o, h = !!a && !c, f = ee(null), m = ee(null), g = ee(i), [b, y] = G(
|
|
15415
15415
|
() => i.includes(`
|
|
15416
15416
|
`)
|
|
15417
15417
|
), A = e.allowNewline !== !1, k = $(
|
|
@@ -15543,7 +15543,7 @@ const t0 = ve.memo(
|
|
|
15543
15543
|
b === "Backspace" || b === "Delete" || b === "Tab" || b === "ArrowLeft" || b === "ArrowRight" || b === "ArrowUp" || b === "ArrowDown" || b === "Home" || b === "End" || b === "Enter" || g.ctrlKey || g.metaKey || /^[\d.]$/.test(b) || g.preventDefault();
|
|
15544
15544
|
},
|
|
15545
15545
|
[]
|
|
15546
|
-
), u =
|
|
15546
|
+
), u = ee(null), c = a || e.placeholder || "0", [d, h] = G(0);
|
|
15547
15547
|
ze(() => {
|
|
15548
15548
|
u.current && h(u.current.offsetWidth);
|
|
15549
15549
|
}, [c]);
|
|
@@ -15608,7 +15608,7 @@ const t0 = ve.memo(
|
|
|
15608
15608
|
}
|
|
15609
15609
|
);
|
|
15610
15610
|
t0.displayName = "NumberInputNode";
|
|
15611
|
-
const
|
|
15611
|
+
const qn = ({ node: e, children: t }) => e.required ? /* @__PURE__ */ W(
|
|
15612
15612
|
"span",
|
|
15613
15613
|
{
|
|
15614
15614
|
className: "exclusion-wrapper required-upload-group",
|
|
@@ -15619,7 +15619,7 @@ const $n = ({ node: e, children: t }) => e.required ? /* @__PURE__ */ W(
|
|
|
15619
15619
|
]
|
|
15620
15620
|
}
|
|
15621
15621
|
) : /* @__PURE__ */ v(it, { children: t });
|
|
15622
|
-
|
|
15622
|
+
qn.displayName = "RequiredMark";
|
|
15623
15623
|
const wa = {
|
|
15624
15624
|
adjustX: !0,
|
|
15625
15625
|
adjustY: !0,
|
|
@@ -15664,7 +15664,7 @@ const wa = {
|
|
|
15664
15664
|
return String(h ? h.label ?? i : i);
|
|
15665
15665
|
}
|
|
15666
15666
|
return e.placeholder ?? "请选择";
|
|
15667
|
-
}, [i, e.options, e.placeholder]), [o, u] = G(64), c =
|
|
15667
|
+
}, [i, e.options, e.placeholder]), [o, u] = G(64), c = ee(null), d = $(() => {
|
|
15668
15668
|
const h = c.current;
|
|
15669
15669
|
if (!h) return;
|
|
15670
15670
|
const f = h.querySelector(".ant-select-selection-item"), m = h.querySelector(".ant-select-selection-placeholder"), g = f || m, b = (g?.textContent || "").trim() || s, y = h.querySelector(".ant-select-selector"), A = g || y || h, k = window.getComputedStyle(A), D = g ? k.fontSize : "16px", M = k.fontFamily || "sans-serif", C = k.fontWeight || "400", N = `${k.fontStyle || "normal"} ${C} ${D} ${M}`, O = document.createElement("canvas").getContext("2d"), I = O ? Math.ceil((O.font = N, O.measureText(b).width || 0)) : 0;
|
|
@@ -15697,7 +15697,7 @@ const wa = {
|
|
|
15697
15697
|
}), () => {
|
|
15698
15698
|
h = !0;
|
|
15699
15699
|
};
|
|
15700
|
-
}, [d]), /* @__PURE__ */ v(
|
|
15700
|
+
}, [d]), /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
15701
15701
|
"span",
|
|
15702
15702
|
{
|
|
15703
15703
|
ref: c,
|
|
@@ -15742,7 +15742,7 @@ const r0 = ve.memo(
|
|
|
15742
15742
|
), s = t ?? e.defaultValue, o = Pe(() => s ? i.some((N) => String(N.value) === String(s)) ? null : String(s) : null, [s, i]), u = Pe(() => {
|
|
15743
15743
|
const N = [...i];
|
|
15744
15744
|
return o && !i.some((S) => String(S.value) === o) && N.unshift({ label: o, value: o }), N;
|
|
15745
|
-
}, [i, o]), [c, d] = G(""), [h, f] = G(80), m =
|
|
15745
|
+
}, [i, o]), [c, d] = G(""), [h, f] = G(80), m = ee(null), g = Pe(() => {
|
|
15746
15746
|
const N = c.trim();
|
|
15747
15747
|
if (!N) return u;
|
|
15748
15748
|
const S = N.toLowerCase(), O = u.filter(
|
|
@@ -15812,7 +15812,7 @@ const r0 = ve.memo(
|
|
|
15812
15812
|
};
|
|
15813
15813
|
}, [M]);
|
|
15814
15814
|
const C = s != null && s !== "", w = s || void 0;
|
|
15815
|
-
return /* @__PURE__ */ v(
|
|
15815
|
+
return /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
15816
15816
|
"span",
|
|
15817
15817
|
{
|
|
15818
15818
|
ref: m,
|
|
@@ -16296,7 +16296,7 @@ const { RangePicker: jC } = bb, GC = (e) => {
|
|
|
16296
16296
|
(h) => h ? e.disableFuture && h.isAfter(ni(), "day") ? !0 : typeof e.limitRange != "number" || !i || !i[0] ? !1 : Math.abs(h.diff(i[0], "days")) > e.limitRange : !1,
|
|
16297
16297
|
[e.disableFuture, e.limitRange, i]
|
|
16298
16298
|
);
|
|
16299
|
-
return /* @__PURE__ */ v(
|
|
16299
|
+
return /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
16300
16300
|
"span",
|
|
16301
16301
|
{
|
|
16302
16302
|
className: `rte-datepicker-host ${l ? "rte-datepicker-error" : ""}`,
|
|
@@ -22197,7 +22197,7 @@ const KC = [
|
|
|
22197
22197
|
return n;
|
|
22198
22198
|
}, s0 = ve.memo(
|
|
22199
22199
|
({ node: e, value: t, onChange: n, disabled: r, error: l }) => {
|
|
22200
|
-
const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : KC, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = G(() => _s(s)), [c, d] = G(0), [h, f] = G(100), m =
|
|
22200
|
+
const a = e.cascaderOptions && e.cascaderOptions.length > 0 ? e.cascaderOptions : KC, i = e.placeholder || "请选择省市区", s = t ?? e.defaultValue, [o, u] = G(() => _s(s)), [c, d] = G(0), [h, f] = G(100), m = ee(null);
|
|
22201
22201
|
me(() => {
|
|
22202
22202
|
u(_s(s));
|
|
22203
22203
|
}, [s]);
|
|
@@ -22253,7 +22253,7 @@ const KC = [
|
|
|
22253
22253
|
}), () => {
|
|
22254
22254
|
M = !0;
|
|
22255
22255
|
};
|
|
22256
|
-
}, [D]), /* @__PURE__ */ v(
|
|
22256
|
+
}, [D]), /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
22257
22257
|
"span",
|
|
22258
22258
|
{
|
|
22259
22259
|
ref: m,
|
|
@@ -22310,7 +22310,7 @@ const o0 = ve.memo(
|
|
|
22310
22310
|
(o) => n(e.key, o.target.value),
|
|
22311
22311
|
[e.key, n]
|
|
22312
22312
|
);
|
|
22313
|
-
return /* @__PURE__ */ v(
|
|
22313
|
+
return /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
22314
22314
|
"div",
|
|
22315
22315
|
{
|
|
22316
22316
|
className: `rte-textarea-wrapper ${l ? "rte-textarea-error" : ""}`,
|
|
@@ -22365,7 +22365,7 @@ const Eu = (e) => {
|
|
|
22365
22365
|
preciseMatchKey: s,
|
|
22366
22366
|
open: o
|
|
22367
22367
|
}) => {
|
|
22368
|
-
const [u, c] = G(!1), [d, h] = G(null), [f, m] = G(""), g =
|
|
22368
|
+
const [u, c] = G(!1), [d, h] = G(null), [f, m] = G(""), g = ee(0), b = ee(null);
|
|
22369
22369
|
me(() => {
|
|
22370
22370
|
if (!o) return;
|
|
22371
22371
|
const C = ++g.current;
|
|
@@ -22474,7 +22474,7 @@ const Eu = (e) => {
|
|
|
22474
22474
|
quiet: u,
|
|
22475
22475
|
openSignal: c
|
|
22476
22476
|
}) => {
|
|
22477
|
-
const d = tl(), [h, f] = G(!1), m =
|
|
22477
|
+
const d = tl(), [h, f] = G(!1), m = ee(null), g = ee({}).current, [b, y] = G("bottomLeft"), [A, k] = G(0), D = $(() => {
|
|
22478
22478
|
const S = e.current, O = m.current;
|
|
22479
22479
|
if (!S || !O) return;
|
|
22480
22480
|
const I = S.getBoundingClientRect(), F = O.getBoundingClientRect();
|
|
@@ -22640,7 +22640,7 @@ const Eu = (e) => {
|
|
|
22640
22640
|
D(w, "");
|
|
22641
22641
|
},
|
|
22642
22642
|
[D]
|
|
22643
|
-
), /* @__PURE__ */ v(
|
|
22643
|
+
), /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v("span", { className: `rte-multi-variable ${l ? "rte-multi-variable-error" : ""}`, children: k.map((w, N) => (`${e.key}${N}`, /* @__PURE__ */ v(
|
|
22644
22644
|
c0,
|
|
22645
22645
|
{
|
|
22646
22646
|
nodeKey: e.key,
|
|
@@ -22689,7 +22689,7 @@ const c0 = ({
|
|
|
22689
22689
|
onResolveName: y,
|
|
22690
22690
|
onClearName: A
|
|
22691
22691
|
}) => {
|
|
22692
|
-
const k =
|
|
22692
|
+
const k = ee(null), D = `${e}_${t}`, M = !!b, C = !(n || "").trim(), w = u && C, N = o || w || M, S = ee(""), O = $(
|
|
22693
22693
|
async (T) => {
|
|
22694
22694
|
if (!y) return;
|
|
22695
22695
|
const ne = (T || "").trim();
|
|
@@ -22717,7 +22717,7 @@ const c0 = ({
|
|
|
22717
22717
|
ze(() => {
|
|
22718
22718
|
(n || "").trim() || (S.current = "");
|
|
22719
22719
|
}, [n]);
|
|
22720
|
-
const V =
|
|
22720
|
+
const V = ee(null), P = n || r || "", [E, B] = G(0), U = $(() => {
|
|
22721
22721
|
V.current && B(V.current.offsetWidth);
|
|
22722
22722
|
}, []);
|
|
22723
22723
|
ze(() => {
|
|
@@ -22896,7 +22896,7 @@ const c0 = ({
|
|
|
22896
22896
|
},
|
|
22897
22897
|
[M]
|
|
22898
22898
|
);
|
|
22899
|
-
return /* @__PURE__ */ v(
|
|
22899
|
+
return /* @__PURE__ */ v(qn, { node: e, children: /* @__PURE__ */ v(
|
|
22900
22900
|
"span",
|
|
22901
22901
|
{
|
|
22902
22902
|
className: `rte-multi-variable-select ${l ? "rte-multi-variable-select-error" : ""}`,
|
|
@@ -22956,7 +22956,7 @@ const r4 = /\.(png|jpe?g|gif|webp|bmp|svg)(\?.*)?$/i, l4 = (e) => r4.test(e), a4
|
|
|
22956
22956
|
onReplace: c,
|
|
22957
22957
|
onRemove: d
|
|
22958
22958
|
}) => {
|
|
22959
|
-
const h =
|
|
22959
|
+
const h = ee(null), f = ee(null), m = tl(), [g, b] = G(!1), y = t != null, A = f0(t), [k, D] = G(!1), M = $(() => {
|
|
22960
22960
|
a || h.current?.click();
|
|
22961
22961
|
}, [a]), C = $(
|
|
22962
22962
|
(q) => {
|
|
@@ -23132,7 +23132,7 @@ const c4 = (e = Date.now()) => e - Yd < u4 ? !1 : (Yd = e, !0), d4 = 32, f4 = (e
|
|
|
23132
23132
|
return typeof e == "string" ? e : JSON.stringify(e);
|
|
23133
23133
|
}, m4 = 12, h0 = ve.memo(
|
|
23134
23134
|
({ node: e, files: t, onFileChange: n, disabled: r, error: l, onValidationError: a }) => {
|
|
23135
|
-
const { message: i } =
|
|
23135
|
+
const { message: i } = zn.useApp(), s = typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1, o = h4(e), u = ee(null), c = f4(u), d = ia(e.tooltip), h = !!d, f = h ? void 0 : p4(e.tooltip), m = $(
|
|
23136
23136
|
(I) => {
|
|
23137
23137
|
a ? a(I) : i.error(I);
|
|
23138
23138
|
},
|
|
@@ -23452,7 +23452,7 @@ const jd = 2 * Math.PI * 6.5, p0 = "data:image/svg+xml,%3Csvg xmlns='http://www.
|
|
|
23452
23452
|
}) => {
|
|
23453
23453
|
const [u, c] = G(
|
|
23454
23454
|
"idle"
|
|
23455
|
-
), { message: d } =
|
|
23455
|
+
), { message: d } = zn.useApp(), [h, f] = G(0), [m, g] = G(""), b = ee(null), y = ee(0), A = ee(null), k = t || e.placeholder || "", [D, M] = G(0), C = $(() => {
|
|
23456
23456
|
A.current && M(A.current.offsetWidth);
|
|
23457
23457
|
}, []);
|
|
23458
23458
|
ze(() => {
|
|
@@ -23666,7 +23666,7 @@ const T4 = (e) => e ? typeof e == "string" ? e : JSON.stringify(e) : "", C4 = 10
|
|
|
23666
23666
|
disabled: o,
|
|
23667
23667
|
error: u
|
|
23668
23668
|
}) => {
|
|
23669
|
-
const { message: c } =
|
|
23669
|
+
const { message: c } = zn.useApp(), d = ee(null), [h, f] = G("idle"), [m, g] = G(0), [b, y] = G(""), [A, k] = G(""), [D, M] = G(""), C = ia(e.tooltip), w = !!C, N = w ? "" : T4(e.tooltip), S = !!t && !!n, O = h === "loading", I = $(() => {
|
|
23670
23670
|
o || O || !i || d.current?.click();
|
|
23671
23671
|
}, [o, O, i]), F = $(
|
|
23672
23672
|
async (E) => {
|
|
@@ -23898,7 +23898,7 @@ const S4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
23898
23898
|
preciseMatchKey: i,
|
|
23899
23899
|
open: s
|
|
23900
23900
|
}) => {
|
|
23901
|
-
const [o, u] = G(!1), [c, d] = G(null), [h, f] = G(""), m =
|
|
23901
|
+
const [o, u] = G(!1), [c, d] = G(null), [h, f] = G(""), m = ee(0), g = ee(null);
|
|
23902
23902
|
me(() => {
|
|
23903
23903
|
if (!s) return;
|
|
23904
23904
|
const M = ++m.current;
|
|
@@ -24009,7 +24009,7 @@ const S4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24009
24009
|
disabled: c,
|
|
24010
24010
|
error: d
|
|
24011
24011
|
}) => {
|
|
24012
|
-
const h = tl(), f = k4(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, y = !!l, A = y && !c && (b || g), k = !y && !!f && b, D = A || k, [M, C] = G(!1), [w, N] = G(!1), S =
|
|
24012
|
+
const h = tl(), f = k4(e.tooltip), m = t ?? "", g = !!i, b = !m && !g, y = !!l, A = y && !c && (b || g), k = !y && !!f && b, D = A || k, [M, C] = G(!1), [w, N] = G(!1), S = ee({}).current, O = ee(""), I = $(
|
|
24013
24013
|
async (_e) => {
|
|
24014
24014
|
const $e = _e.trim();
|
|
24015
24015
|
if (!(!$e || !r) && O.current !== $e) {
|
|
@@ -24062,7 +24062,7 @@ const S4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24062
24062
|
g ? "rte-report-name-chip" : "",
|
|
24063
24063
|
d ? "rte-report-url-error" : "",
|
|
24064
24064
|
D ? "rte-variable-with-icon" : ""
|
|
24065
|
-
].filter(Boolean).join(" "), q =
|
|
24065
|
+
].filter(Boolean).join(" "), q = ee(null), K = ee(null), [T, ne] = G("bottomLeft"), ie = $(() => {
|
|
24066
24066
|
const _e = K.current;
|
|
24067
24067
|
if (!_e) return;
|
|
24068
24068
|
const $e = _e.getBoundingClientRect(), bn = 236, gn = window.innerHeight - $e.bottom;
|
|
@@ -24127,7 +24127,7 @@ const S4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24127
24127
|
onMouseDown: B,
|
|
24128
24128
|
children: /* @__PURE__ */ v("span", { className: "rte-report-chip-clear-icon", title: "清除", children: /* @__PURE__ */ v(kh, {}) })
|
|
24129
24129
|
}
|
|
24130
|
-
) : null, Ce = e.placeholder ?? "粘贴报告链接", de = m || Ce, Ie =
|
|
24130
|
+
) : null, Ce = e.placeholder ?? "粘贴报告链接", de = m || Ce, Ie = ee(null), [Le, xe] = G(0);
|
|
24131
24131
|
ze(() => {
|
|
24132
24132
|
Ie.current && xe(Ie.current.offsetWidth);
|
|
24133
24133
|
});
|
|
@@ -24252,7 +24252,7 @@ const S4 = "https://sealseek-public-read.oss-cn-hangzhou.aliyuncs.com/file/websi
|
|
|
24252
24252
|
T0.displayName = "ReportUrlNode";
|
|
24253
24253
|
function I4(e, t) {
|
|
24254
24254
|
const n = ve.memo(({ node: r, value: l, onChange: a, disabled: i, error: s }) => {
|
|
24255
|
-
const o = r.moduleIndex ?? 0, u = `${r.key}__module_${o}`, c =
|
|
24255
|
+
const o = r.moduleIndex ?? 0, u = `${r.key}__module_${o}`, c = ee(null), d = l ?? r.text ?? "";
|
|
24256
24256
|
ze(() => {
|
|
24257
24257
|
const b = c.current;
|
|
24258
24258
|
b && b.innerHTML !== d && (b.innerHTML = d);
|
|
@@ -24294,7 +24294,7 @@ const C0 = { createModuleNode: I4 }, _4 = C0.createModuleNode(
|
|
|
24294
24294
|
function x0(e, t) {
|
|
24295
24295
|
const n = ve.memo(
|
|
24296
24296
|
({ node: r, value: l, onChange: a, onParse: i, disabled: s, error: o }) => {
|
|
24297
|
-
const u =
|
|
24297
|
+
const u = ee(null), [c, d] = G(!1), h = ee(!0);
|
|
24298
24298
|
ze(() => (h.current = !0, () => {
|
|
24299
24299
|
h.current = !1;
|
|
24300
24300
|
}), []);
|
|
@@ -25392,7 +25392,7 @@ class ii {
|
|
|
25392
25392
|
}
|
|
25393
25393
|
}
|
|
25394
25394
|
const F4 = /* @__PURE__ */ Object.create(null);
|
|
25395
|
-
let
|
|
25395
|
+
let Ln = class yo {
|
|
25396
25396
|
/**
|
|
25397
25397
|
@internal
|
|
25398
25398
|
*/
|
|
@@ -25762,8 +25762,8 @@ let Dn = class yo {
|
|
|
25762
25762
|
return a.type.checkAttrs(a.attrs), a;
|
|
25763
25763
|
}
|
|
25764
25764
|
};
|
|
25765
|
-
|
|
25766
|
-
class si extends
|
|
25765
|
+
Ln.prototype.text = void 0;
|
|
25766
|
+
class si extends Ln {
|
|
25767
25767
|
/**
|
|
25768
25768
|
@internal
|
|
25769
25769
|
*/
|
|
@@ -26269,7 +26269,7 @@ let Jd = class F0 {
|
|
|
26269
26269
|
create(t = null, n, r) {
|
|
26270
26270
|
if (this.isText)
|
|
26271
26271
|
throw new Error("NodeType.create can't construct text nodes");
|
|
26272
|
-
return new
|
|
26272
|
+
return new Ln(this, this.computeAttrs(t), X.from(n), Be.setFrom(r));
|
|
26273
26273
|
}
|
|
26274
26274
|
/**
|
|
26275
26275
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -26277,7 +26277,7 @@ let Jd = class F0 {
|
|
|
26277
26277
|
if it doesn't match.
|
|
26278
26278
|
*/
|
|
26279
26279
|
createChecked(t = null, n, r) {
|
|
26280
|
-
return n = X.from(n), this.checkContent(n), new
|
|
26280
|
+
return n = X.from(n), this.checkContent(n), new Ln(this, this.computeAttrs(t), n, Be.setFrom(r));
|
|
26281
26281
|
}
|
|
26282
26282
|
/**
|
|
26283
26283
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -26295,7 +26295,7 @@ let Jd = class F0 {
|
|
|
26295
26295
|
n = i.append(n);
|
|
26296
26296
|
}
|
|
26297
26297
|
let l = this.contentMatch.matchFragment(n), a = l && l.fillBefore(X.empty, !0);
|
|
26298
|
-
return a ? new
|
|
26298
|
+
return a ? new Ln(this, t, n.append(a), Be.setFrom(r)) : null;
|
|
26299
26299
|
}
|
|
26300
26300
|
/**
|
|
26301
26301
|
Returns true if the given fragment is valid content for this node
|
|
@@ -26468,7 +26468,7 @@ class H0 {
|
|
|
26468
26468
|
let a = this.marks[l], i = a.spec.excludes;
|
|
26469
26469
|
a.excluded = i == null ? [a] : i == "" ? [] : Zd(this, i.split(" "));
|
|
26470
26470
|
}
|
|
26471
|
-
this.nodeFromJSON = (l) =>
|
|
26471
|
+
this.nodeFromJSON = (l) => Ln.fromJSON(this, l), this.markFromJSON = (l) => Be.fromJSON(this, l), this.topNodeType = this.nodes[this.spec.topNode || "doc"], this.cached.wrappings = /* @__PURE__ */ Object.create(null);
|
|
26472
26472
|
}
|
|
26473
26473
|
/**
|
|
26474
26474
|
Create a node in this schema. The `type` may be a string or a
|
|
@@ -27551,7 +27551,7 @@ function Tu(e, t, n) {
|
|
|
27551
27551
|
}
|
|
27552
27552
|
return X.fromArray(r);
|
|
27553
27553
|
}
|
|
27554
|
-
class
|
|
27554
|
+
class Mn extends vt {
|
|
27555
27555
|
/**
|
|
27556
27556
|
Create a mark step.
|
|
27557
27557
|
*/
|
|
@@ -27567,10 +27567,10 @@ class On extends vt {
|
|
|
27567
27567
|
}
|
|
27568
27568
|
map(t) {
|
|
27569
27569
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
27570
|
-
return n.deleted && r.deleted || n.pos >= r.pos ? null : new
|
|
27570
|
+
return n.deleted && r.deleted || n.pos >= r.pos ? null : new Mn(n.pos, r.pos, this.mark);
|
|
27571
27571
|
}
|
|
27572
27572
|
merge(t) {
|
|
27573
|
-
return t instanceof
|
|
27573
|
+
return t instanceof Mn && t.mark.eq(this.mark) && this.from <= t.to && this.to >= t.from ? new Mn(Math.min(this.from, t.from), Math.max(this.to, t.to), this.mark) : null;
|
|
27574
27574
|
}
|
|
27575
27575
|
toJSON() {
|
|
27576
27576
|
return {
|
|
@@ -27586,10 +27586,10 @@ class On extends vt {
|
|
|
27586
27586
|
static fromJSON(t, n) {
|
|
27587
27587
|
if (typeof n.from != "number" || typeof n.to != "number")
|
|
27588
27588
|
throw new RangeError("Invalid input for AddMarkStep.fromJSON");
|
|
27589
|
-
return new
|
|
27589
|
+
return new Mn(n.from, n.to, t.markFromJSON(n.mark));
|
|
27590
27590
|
}
|
|
27591
27591
|
}
|
|
27592
|
-
vt.jsonID("addMark",
|
|
27592
|
+
vt.jsonID("addMark", Mn);
|
|
27593
27593
|
class en extends vt {
|
|
27594
27594
|
/**
|
|
27595
27595
|
Create a mark-removing step.
|
|
@@ -27602,7 +27602,7 @@ class en extends vt {
|
|
|
27602
27602
|
return Je.fromReplace(t, this.from, this.to, r);
|
|
27603
27603
|
}
|
|
27604
27604
|
invert() {
|
|
27605
|
-
return new
|
|
27605
|
+
return new Mn(this.from, this.to, this.mark);
|
|
27606
27606
|
}
|
|
27607
27607
|
map(t) {
|
|
27608
27608
|
let n = t.mapResult(this.from, 1), r = t.mapResult(this.to, -1);
|
|
@@ -27629,7 +27629,7 @@ class en extends vt {
|
|
|
27629
27629
|
}
|
|
27630
27630
|
}
|
|
27631
27631
|
vt.jsonID("removeMark", en);
|
|
27632
|
-
class
|
|
27632
|
+
class Rn extends vt {
|
|
27633
27633
|
/**
|
|
27634
27634
|
Create a node mark step.
|
|
27635
27635
|
*/
|
|
@@ -27650,15 +27650,15 @@ class Mn extends vt {
|
|
|
27650
27650
|
if (r.length == n.marks.length) {
|
|
27651
27651
|
for (let l = 0; l < n.marks.length; l++)
|
|
27652
27652
|
if (!n.marks[l].isInSet(r))
|
|
27653
|
-
return new
|
|
27654
|
-
return new
|
|
27653
|
+
return new Rn(this.pos, n.marks[l]);
|
|
27654
|
+
return new Rn(this.pos, this.mark);
|
|
27655
27655
|
}
|
|
27656
27656
|
}
|
|
27657
27657
|
return new yr(this.pos, this.mark);
|
|
27658
27658
|
}
|
|
27659
27659
|
map(t) {
|
|
27660
27660
|
let n = t.mapResult(this.pos, 1);
|
|
27661
|
-
return n.deletedAfter ? null : new
|
|
27661
|
+
return n.deletedAfter ? null : new Rn(n.pos, this.mark);
|
|
27662
27662
|
}
|
|
27663
27663
|
toJSON() {
|
|
27664
27664
|
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
@@ -27669,10 +27669,10 @@ class Mn extends vt {
|
|
|
27669
27669
|
static fromJSON(t, n) {
|
|
27670
27670
|
if (typeof n.pos != "number")
|
|
27671
27671
|
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
27672
|
-
return new
|
|
27672
|
+
return new Rn(n.pos, t.markFromJSON(n.mark));
|
|
27673
27673
|
}
|
|
27674
27674
|
}
|
|
27675
|
-
vt.jsonID("addNodeMark",
|
|
27675
|
+
vt.jsonID("addNodeMark", Rn);
|
|
27676
27676
|
class yr extends vt {
|
|
27677
27677
|
/**
|
|
27678
27678
|
Create a mark-removing step.
|
|
@@ -27689,7 +27689,7 @@ class yr extends vt {
|
|
|
27689
27689
|
}
|
|
27690
27690
|
invert(t) {
|
|
27691
27691
|
let n = t.nodeAt(this.pos);
|
|
27692
|
-
return !n || !this.mark.isInSet(n.marks) ? this : new
|
|
27692
|
+
return !n || !this.mark.isInSet(n.marks) ? this : new Rn(this.pos, this.mark);
|
|
27693
27693
|
}
|
|
27694
27694
|
map(t) {
|
|
27695
27695
|
let n = t.mapResult(this.pos, 1);
|
|
@@ -27843,7 +27843,7 @@ function ax(e, t, n, r) {
|
|
|
27843
27843
|
let h = Math.max(u, t), f = Math.min(u + o.nodeSize, n), m = r.addToSet(d);
|
|
27844
27844
|
for (let g = 0; g < d.length; g++)
|
|
27845
27845
|
d[g].isInSet(m) || (i && i.to == h && i.mark.eq(d[g]) ? i.to = f : l.push(i = new en(h, f, d[g])));
|
|
27846
|
-
s && s.to == h ? s.to = f : a.push(s = new
|
|
27846
|
+
s && s.to == h ? s.to = f : a.push(s = new Mn(h, f, r));
|
|
27847
27847
|
}
|
|
27848
27848
|
}), l.forEach((o) => e.step(o)), a.forEach((o) => e.step(o));
|
|
27849
27849
|
}
|
|
@@ -28037,7 +28037,7 @@ function mx(e, t, n = 1, r) {
|
|
|
28037
28037
|
}
|
|
28038
28038
|
e.step(new Qe(t, t, new ue(a.append(i), n, n), !0));
|
|
28039
28039
|
}
|
|
28040
|
-
function
|
|
28040
|
+
function Wn(e, t) {
|
|
28041
28041
|
let n = e.resolve(t), r = n.index();
|
|
28042
28042
|
return K0(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
|
|
28043
28043
|
}
|
|
@@ -28686,7 +28686,7 @@ class kx {
|
|
|
28686
28686
|
Add a mark to the node at position `pos`.
|
|
28687
28687
|
*/
|
|
28688
28688
|
addNodeMark(t, n) {
|
|
28689
|
-
return this.step(new
|
|
28689
|
+
return this.step(new Rn(t, n)), this;
|
|
28690
28690
|
}
|
|
28691
28691
|
/**
|
|
28692
28692
|
Remove a mark (or all marks of the given type) from the node at
|
|
@@ -29486,7 +29486,7 @@ class Br {
|
|
|
29486
29486
|
let l = new Ps(t.schema, t.plugins), a = new Br(l);
|
|
29487
29487
|
return l.fields.forEach((i) => {
|
|
29488
29488
|
if (i.name == "doc")
|
|
29489
|
-
a.doc =
|
|
29489
|
+
a.doc = Ln.fromJSON(t.schema, n.doc);
|
|
29490
29490
|
else if (i.name == "selection")
|
|
29491
29491
|
a.selection = Ae.fromJSON(a.doc, n.selection);
|
|
29492
29492
|
else if (i.name == "storedMarks")
|
|
@@ -29664,9 +29664,9 @@ function Px(e, t, n) {
|
|
|
29664
29664
|
return { node: r.startContainer, offset: Math.min($t(r.startContainer), r.startOffset) };
|
|
29665
29665
|
}
|
|
29666
29666
|
}
|
|
29667
|
-
const nn = typeof navigator < "u" ? navigator : null, bf = typeof document < "u" ? document : null,
|
|
29668
|
-
qt && +(/Firefox\/(\d+)/.exec(
|
|
29669
|
-
const No = !wt && /Chrome\/(\d+)/.exec(
|
|
29667
|
+
const nn = typeof navigator < "u" ? navigator : null, bf = typeof document < "u" ? document : null, Yn = nn && nn.userAgent || "", ko = /Edge\/(\d+)/.exec(Yn), rm = /MSIE \d/.exec(Yn), Ao = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yn), wt = !!(rm || Ao || ko), Pn = rm ? document.documentMode : Ao ? +Ao[1] : ko ? +ko[1] : 0, qt = !wt && /gecko\/(\d+)/i.test(Yn);
|
|
29668
|
+
qt && +(/Firefox\/(\d+)/.exec(Yn) || [0, 0])[1];
|
|
29669
|
+
const No = !wt && /Chrome\/(\d+)/.exec(Yn), dt = !!No, lm = No ? +No[1] : 0, pt = !wt && !!nn && /Apple Computer/.test(nn.vendor), Yr = pt && (/Mobile\/\w+/.test(Yn) || !!nn && nn.maxTouchPoints > 2), Ut = Yr || (nn ? /Mac/.test(nn.platform) : !1), am = nn ? /Win/.test(nn.platform) : !1, fn = /Android \d/.test(Yn), oa = !!bf && "webkitFontSmoothing" in bf.documentElement.style, Bx = oa ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
29670
29670
|
function Fx(e) {
|
|
29671
29671
|
let t = e.defaultView && e.defaultView.visualViewport;
|
|
29672
29672
|
return t ? {
|
|
@@ -29791,7 +29791,7 @@ function $x(e, t) {
|
|
|
29791
29791
|
let n = e.nodeValue.length, r = document.createRange(), l;
|
|
29792
29792
|
for (let a = 0; a < n; a++) {
|
|
29793
29793
|
r.setEnd(e, a + 1), r.setStart(e, a);
|
|
29794
|
-
let i =
|
|
29794
|
+
let i = An(r, 1);
|
|
29795
29795
|
if (i.top != i.bottom && ku(t, i)) {
|
|
29796
29796
|
l = { node: e, offset: a + (t.left >= (i.left + i.right) / 2 ? 1 : 0) };
|
|
29797
29797
|
break;
|
|
@@ -29872,7 +29872,7 @@ function jx(e, t) {
|
|
|
29872
29872
|
function vf(e) {
|
|
29873
29873
|
return e.top < e.bottom || e.left < e.right;
|
|
29874
29874
|
}
|
|
29875
|
-
function
|
|
29875
|
+
function An(e, t) {
|
|
29876
29876
|
let n = e.getClientRects();
|
|
29877
29877
|
if (n.length) {
|
|
29878
29878
|
let r = n[t < 0 ? 0 : n.length - 1];
|
|
@@ -29886,11 +29886,11 @@ function cm(e, t, n) {
|
|
|
29886
29886
|
let { node: r, offset: l, atom: a } = e.docView.domFromPos(t, n < 0 ? -1 : 1), i = oa || qt;
|
|
29887
29887
|
if (r.nodeType == 3)
|
|
29888
29888
|
if (i && (Gx.test(r.nodeValue) || (n < 0 ? !l : l == r.nodeValue.length))) {
|
|
29889
|
-
let o =
|
|
29889
|
+
let o = An(un(r, l, l), n);
|
|
29890
29890
|
if (qt && l && /\s/.test(r.nodeValue[l - 1]) && l < r.nodeValue.length) {
|
|
29891
|
-
let u =
|
|
29891
|
+
let u = An(un(r, l - 1, l - 1), -1);
|
|
29892
29892
|
if (u.top == o.top) {
|
|
29893
|
-
let c =
|
|
29893
|
+
let c = An(un(r, l, l + 1), -1);
|
|
29894
29894
|
if (c.top != o.top)
|
|
29895
29895
|
return bl(c, c.left < u.left);
|
|
29896
29896
|
}
|
|
@@ -29898,7 +29898,7 @@ function cm(e, t, n) {
|
|
|
29898
29898
|
return o;
|
|
29899
29899
|
} else {
|
|
29900
29900
|
let o = l, u = l, c = n < 0 ? 1 : -1;
|
|
29901
|
-
return n < 0 && !l ? (u++, c = -1) : n >= 0 && l == r.nodeValue.length ? (o--, c = 1) : n < 0 ? o-- : u++, bl(
|
|
29901
|
+
return n < 0 && !l ? (u++, c = -1) : n >= 0 && l == r.nodeValue.length ? (o--, c = 1) : n < 0 ? o-- : u++, bl(An(un(r, o, u), c), c < 0);
|
|
29902
29902
|
}
|
|
29903
29903
|
if (!e.state.doc.resolve(t - (a || 0)).parent.inlineContent) {
|
|
29904
29904
|
if (a == null && l && (n < 0 || l == $t(r))) {
|
|
@@ -29916,7 +29916,7 @@ function cm(e, t, n) {
|
|
|
29916
29916
|
if (a == null && l && (n < 0 || l == $t(r))) {
|
|
29917
29917
|
let o = r.childNodes[l - 1], u = o.nodeType == 3 ? un(o, $t(o) - (i ? 0 : 1)) : o.nodeType == 1 && (o.nodeName != "BR" || !o.nextSibling) ? o : null;
|
|
29918
29918
|
if (u)
|
|
29919
|
-
return bl(
|
|
29919
|
+
return bl(An(u, 1), !1);
|
|
29920
29920
|
}
|
|
29921
29921
|
if (a == null && l < $t(r)) {
|
|
29922
29922
|
let o = r.childNodes[l];
|
|
@@ -29924,9 +29924,9 @@ function cm(e, t, n) {
|
|
|
29924
29924
|
o = o.nextSibling;
|
|
29925
29925
|
let u = o ? o.nodeType == 3 ? un(o, 0, i ? 0 : 1) : o.nodeType == 1 ? o : null : null;
|
|
29926
29926
|
if (u)
|
|
29927
|
-
return bl(
|
|
29927
|
+
return bl(An(u, -1), !0);
|
|
29928
29928
|
}
|
|
29929
|
-
return bl(
|
|
29929
|
+
return bl(An(r.nodeType == 3 ? un(r) : r, -n), n >= 0);
|
|
29930
29930
|
}
|
|
29931
29931
|
function bl(e, t) {
|
|
29932
29932
|
if (e.width == 0)
|
|
@@ -30443,7 +30443,7 @@ class Tr extends ua {
|
|
|
30443
30443
|
this.spec.destroy && this.spec.destroy(), super.destroy();
|
|
30444
30444
|
}
|
|
30445
30445
|
}
|
|
30446
|
-
class
|
|
30446
|
+
class Bn extends ua {
|
|
30447
30447
|
constructor(t, n, r, l, a, i, s, o, u) {
|
|
30448
30448
|
super(t, [], a, i), this.node = n, this.outerDeco = r, this.innerDeco = l, this.nodeDOM = s;
|
|
30449
30449
|
}
|
|
@@ -30471,7 +30471,7 @@ class Pn extends ua {
|
|
|
30471
30471
|
} else c || ({ dom: c, contentDOM: d } = Sr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
30472
30472
|
!d && !n.isText && c.nodeName != "BR" && (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
30473
30473
|
let h = c;
|
|
30474
|
-
return c = bm(c, r, n), u ? o = new e5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new Di(t, n, r, l, c, h, a) : new
|
|
30474
|
+
return c = bm(c, r, n), u ? o = new e5(t, n, r, l, c, d || null, h, u, a, i + 1) : n.isText ? new Di(t, n, r, l, c, h, a) : new Bn(t, n, r, l, c, d || null, h, a, i + 1);
|
|
30475
30475
|
}
|
|
30476
30476
|
parseRule() {
|
|
30477
30477
|
if (this.node.type.spec.reparseInView)
|
|
@@ -30571,10 +30571,10 @@ class Pn extends ua {
|
|
|
30571
30571
|
}
|
|
30572
30572
|
function xf(e, t, n, r, l) {
|
|
30573
30573
|
bm(r, t, e);
|
|
30574
|
-
let a = new
|
|
30574
|
+
let a = new Bn(void 0, e, t, n, r, r, r, l, 0);
|
|
30575
30575
|
return a.contentDOM && a.updateChildren(l, 0), a;
|
|
30576
30576
|
}
|
|
30577
|
-
class Di extends
|
|
30577
|
+
class Di extends Bn {
|
|
30578
30578
|
constructor(t, n, r, l, a, i, s) {
|
|
30579
30579
|
super(t, n, r, l, a, null, i, s, 0);
|
|
30580
30580
|
}
|
|
@@ -30631,7 +30631,7 @@ class hm extends ua {
|
|
|
30631
30631
|
return this.dom.nodeName == "IMG";
|
|
30632
30632
|
}
|
|
30633
30633
|
}
|
|
30634
|
-
class e5 extends
|
|
30634
|
+
class e5 extends Bn {
|
|
30635
30635
|
constructor(t, n, r, l, a, i, s, o, u, c) {
|
|
30636
30636
|
super(t, n, r, l, a, i, s, u, c), this.spec = o;
|
|
30637
30637
|
}
|
|
@@ -30843,7 +30843,7 @@ class n5 {
|
|
|
30843
30843
|
updateNextNode(t, n, r, l, a, i) {
|
|
30844
30844
|
for (let s = this.index; s < this.top.children.length; s++) {
|
|
30845
30845
|
let o = this.top.children[s];
|
|
30846
|
-
if (o instanceof
|
|
30846
|
+
if (o instanceof Bn) {
|
|
30847
30847
|
let u = this.preMatch.matched.get(o);
|
|
30848
30848
|
if (u != null && u != a)
|
|
30849
30849
|
return !1;
|
|
@@ -30862,7 +30862,7 @@ class n5 {
|
|
|
30862
30862
|
recreateWrapper(t, n, r, l, a, i) {
|
|
30863
30863
|
if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !oi(r, t.outerDeco) || !l.eq(t.innerDeco))
|
|
30864
30864
|
return null;
|
|
30865
|
-
let s =
|
|
30865
|
+
let s = Bn.create(this.top, n, r, l, a, i);
|
|
30866
30866
|
if (s.contentDOM) {
|
|
30867
30867
|
s.children = t.children, t.children = [];
|
|
30868
30868
|
for (let o of s.children)
|
|
@@ -30872,7 +30872,7 @@ class n5 {
|
|
|
30872
30872
|
}
|
|
30873
30873
|
// Insert the node as a newly created node desc.
|
|
30874
30874
|
addNode(t, n, r, l, a) {
|
|
30875
|
-
let i =
|
|
30875
|
+
let i = Bn.create(this.top, t, n, r, l, a);
|
|
30876
30876
|
i.contentDOM && i.updateChildren(l, a + 1), this.top.children.splice(this.index++, 0, i), this.changed = !0;
|
|
30877
30877
|
}
|
|
30878
30878
|
placeWidget(t, n, r) {
|
|
@@ -31116,7 +31116,7 @@ function u5(e) {
|
|
|
31116
31116
|
if (!t)
|
|
31117
31117
|
return;
|
|
31118
31118
|
let n = e.cursorWrapper.dom, r = n.nodeName == "IMG";
|
|
31119
|
-
r ? t.collapse(n.parentNode, ut(n) + 1) : t.collapse(n, 0), !r && !e.state.selection.visible && wt &&
|
|
31119
|
+
r ? t.collapse(n.parentNode, ut(n) + 1) : t.collapse(n, 0), !r && !e.state.selection.visible && wt && Pn <= 11 && (n.disabled = !0, n.disabled = !1);
|
|
31120
31120
|
}
|
|
31121
31121
|
function vm(e, t) {
|
|
31122
31122
|
if (t instanceof be) {
|
|
@@ -31152,7 +31152,7 @@ function _o(e, t) {
|
|
|
31152
31152
|
let { $anchor: n, $head: r } = e.selection, l = t > 0 ? n.max(r) : n.min(r), a = l.parent.inlineContent ? l.depth ? e.doc.resolve(t > 0 ? l.after() : l.before()) : null : l;
|
|
31153
31153
|
return a && Ae.findFrom(a, t);
|
|
31154
31154
|
}
|
|
31155
|
-
function
|
|
31155
|
+
function wn(e, t) {
|
|
31156
31156
|
return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()), !0;
|
|
31157
31157
|
}
|
|
31158
31158
|
function _f(e, t, n) {
|
|
@@ -31163,25 +31163,25 @@ function _f(e, t, n) {
|
|
|
31163
31163
|
if (!a || a.isText || !a.isLeaf)
|
|
31164
31164
|
return !1;
|
|
31165
31165
|
let i = e.state.doc.resolve(l.pos + a.nodeSize * (t < 0 ? -1 : 1));
|
|
31166
|
-
return
|
|
31166
|
+
return wn(e, new Ee(r.$anchor, i));
|
|
31167
31167
|
} else if (r.empty) {
|
|
31168
31168
|
if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
|
|
31169
31169
|
let l = _o(e.state, t);
|
|
31170
|
-
return l && l instanceof be ?
|
|
31170
|
+
return l && l instanceof be ? wn(e, l) : !1;
|
|
31171
31171
|
} else if (!(Ut && n.indexOf("m") > -1)) {
|
|
31172
31172
|
let l = r.$head, a = l.textOffset ? null : t < 0 ? l.nodeBefore : l.nodeAfter, i;
|
|
31173
31173
|
if (!a || a.isText)
|
|
31174
31174
|
return !1;
|
|
31175
31175
|
let s = t < 0 ? l.pos - a.nodeSize : l.pos;
|
|
31176
|
-
return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? be.isSelectable(a) ?
|
|
31176
|
+
return a.isAtom || (i = e.docView.descAt(s)) && !i.contentDOM ? be.isSelectable(a) ? wn(e, new be(t < 0 ? e.state.doc.resolve(l.pos - a.nodeSize) : l)) : oa ? wn(e, new Ee(e.state.doc.resolve(t < 0 ? s : s + a.nodeSize))) : !1 : !1;
|
|
31177
31177
|
}
|
|
31178
31178
|
} else return !1;
|
|
31179
31179
|
else {
|
|
31180
31180
|
if (r instanceof be && r.node.isInline)
|
|
31181
|
-
return
|
|
31181
|
+
return wn(e, new Ee(t > 0 ? r.$to : r.$from));
|
|
31182
31182
|
{
|
|
31183
31183
|
let l = _o(e.state, t);
|
|
31184
|
-
return l ?
|
|
31184
|
+
return l ? wn(e, l) : !1;
|
|
31185
31185
|
}
|
|
31186
31186
|
}
|
|
31187
31187
|
}
|
|
@@ -31334,11 +31334,11 @@ function Mf(e, t, n) {
|
|
|
31334
31334
|
if (!l.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
|
|
31335
31335
|
let i = _o(e.state, t);
|
|
31336
31336
|
if (i && i instanceof be)
|
|
31337
|
-
return
|
|
31337
|
+
return wn(e, i);
|
|
31338
31338
|
}
|
|
31339
31339
|
if (!l.parent.inlineContent) {
|
|
31340
31340
|
let i = t < 0 ? l : a, s = r instanceof Pt ? Ae.near(i, t) : Ae.findFrom(i, t);
|
|
31341
|
-
return s ?
|
|
31341
|
+
return s ? wn(e, s) : !1;
|
|
31342
31342
|
}
|
|
31343
31343
|
return !1;
|
|
31344
31344
|
}
|
|
@@ -31605,7 +31605,7 @@ function A5(e) {
|
|
|
31605
31605
|
}
|
|
31606
31606
|
pt && e.dom.addEventListener("input", () => null), Ro(e);
|
|
31607
31607
|
}
|
|
31608
|
-
function
|
|
31608
|
+
function Dn(e, t) {
|
|
31609
31609
|
e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
|
|
31610
31610
|
}
|
|
31611
31611
|
function N5(e) {
|
|
@@ -31647,7 +31647,7 @@ Tt.keydown = (e, t) => {
|
|
|
31647
31647
|
e.input.lastIOSEnter = r, e.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
31648
31648
|
e.input.lastIOSEnter == r && (e.someProp("handleKeyDown", (l) => l(e, nr(13, "Enter"))), e.input.lastIOSEnter = 0);
|
|
31649
31649
|
}, 200);
|
|
31650
|
-
} else e.someProp("handleKeyDown", (r) => r(e, n)) || g5(e, n) ? n.preventDefault() :
|
|
31650
|
+
} else e.someProp("handleKeyDown", (r) => r(e, n)) || g5(e, n) ? n.preventDefault() : Dn(e, "key");
|
|
31651
31651
|
};
|
|
31652
31652
|
Tt.keyup = (e, t) => {
|
|
31653
31653
|
t.keyCode == 16 && (e.input.shiftKey = !1);
|
|
@@ -31746,7 +31746,7 @@ Et.mousedown = (e, t) => {
|
|
|
31746
31746
|
let r = Ou(e), l = Date.now(), a = "singleClick";
|
|
31747
31747
|
l - e.input.lastClick.time < 500 && _5(n, e.input.lastClick) && !n[Nm] && e.input.lastClick.button == n.button && (e.input.lastClick.type == "singleClick" ? a = "doubleClick" : e.input.lastClick.type == "doubleClick" && (a = "tripleClick")), e.input.lastClick = { time: l, x: n.clientX, y: n.clientY, type: a, button: n.button };
|
|
31748
31748
|
let i = e.posAtCoords(Li(n));
|
|
31749
|
-
i && (a == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new B5(e, i, n, !!r)) : (a == "doubleClick" ? D5 : L5)(e, i.pos, i.inside, n) ? n.preventDefault() :
|
|
31749
|
+
i && (a == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new B5(e, i, n, !!r)) : (a == "doubleClick" ? D5 : L5)(e, i.pos, i.inside, n) ? n.preventDefault() : Dn(e, "pointer"));
|
|
31750
31750
|
};
|
|
31751
31751
|
class B5 {
|
|
31752
31752
|
constructor(t, n, r, l) {
|
|
@@ -31768,7 +31768,7 @@ class B5 {
|
|
|
31768
31768
|
setUneditable: !!(this.target && qt && !this.target.hasAttribute("contentEditable"))
|
|
31769
31769
|
}), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
|
|
31770
31770
|
this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
|
|
31771
|
-
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)),
|
|
31771
|
+
}, 20), this.view.domObserver.start()), t.root.addEventListener("mouseup", this.up = this.up.bind(this)), t.root.addEventListener("mousemove", this.move = this.move.bind(this)), Dn(t, "pointer");
|
|
31772
31772
|
}
|
|
31773
31773
|
done() {
|
|
31774
31774
|
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => pn(this.view)), this.view.input.mouseDown = null;
|
|
@@ -31777,7 +31777,7 @@ class B5 {
|
|
|
31777
31777
|
if (this.done(), !this.view.dom.contains(t.target))
|
|
31778
31778
|
return;
|
|
31779
31779
|
let n = this.pos;
|
|
31780
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Li(t))), this.updateAllowDefault(t), this.allowDefault || !n ?
|
|
31780
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Li(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Dn(this.view, "pointer") : R5(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
31781
31781
|
pt && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
31782
31782
|
// cursor, but still report that the node is selected
|
|
31783
31783
|
// when asked through getSelection. You'll then get a
|
|
@@ -31785,20 +31785,20 @@ class B5 {
|
|
|
31785
31785
|
// (hidden) cursor is doesn't change the selection, and
|
|
31786
31786
|
// thus doesn't get a reaction from ProseMirror. This
|
|
31787
31787
|
// works around that.
|
|
31788
|
-
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Vr(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) :
|
|
31788
|
+
dt && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Vr(this.view, Ae.near(this.view.state.doc.resolve(n.pos))), t.preventDefault()) : Dn(this.view, "pointer");
|
|
31789
31789
|
}
|
|
31790
31790
|
move(t) {
|
|
31791
|
-
this.updateAllowDefault(t),
|
|
31791
|
+
this.updateAllowDefault(t), Dn(this.view, "pointer"), t.buttons == 0 && this.done();
|
|
31792
31792
|
}
|
|
31793
31793
|
updateAllowDefault(t) {
|
|
31794
31794
|
!this.allowDefault && (Math.abs(this.event.x - t.clientX) > 4 || Math.abs(this.event.y - t.clientY) > 4) && (this.allowDefault = !0);
|
|
31795
31795
|
}
|
|
31796
31796
|
}
|
|
31797
31797
|
Et.touchstart = (e) => {
|
|
31798
|
-
e.input.lastTouch = Date.now(), Ou(e),
|
|
31798
|
+
e.input.lastTouch = Date.now(), Ou(e), Dn(e, "pointer");
|
|
31799
31799
|
};
|
|
31800
31800
|
Et.touchmove = (e) => {
|
|
31801
|
-
e.input.lastTouch = Date.now(),
|
|
31801
|
+
e.input.lastTouch = Date.now(), Dn(e, "pointer");
|
|
31802
31802
|
};
|
|
31803
31803
|
Et.contextmenu = (e) => Ou(e);
|
|
31804
31804
|
function wm(e, t) {
|
|
@@ -31888,7 +31888,7 @@ function V5(e, t) {
|
|
|
31888
31888
|
n.parentNode && n.parentNode.removeChild(n), e.focus();
|
|
31889
31889
|
}, 50);
|
|
31890
31890
|
}
|
|
31891
|
-
const Yl = wt &&
|
|
31891
|
+
const Yl = wt && Pn < 15 || Yr && Bx < 604;
|
|
31892
31892
|
Et.copy = Tt.cut = (e, t) => {
|
|
31893
31893
|
let n = t, r = e.state.selection, l = n.type == "cut";
|
|
31894
31894
|
if (r.empty)
|
|
@@ -32063,7 +32063,7 @@ class di {
|
|
|
32063
32063
|
this.spec.destroy && this.spec.destroy(t);
|
|
32064
32064
|
}
|
|
32065
32065
|
}
|
|
32066
|
-
class
|
|
32066
|
+
class Fn {
|
|
32067
32067
|
constructor(t, n) {
|
|
32068
32068
|
this.attrs = t, this.spec = n || hr;
|
|
32069
32069
|
}
|
|
@@ -32075,10 +32075,10 @@ class Bn {
|
|
|
32075
32075
|
return n.from < n.to;
|
|
32076
32076
|
}
|
|
32077
32077
|
eq(t) {
|
|
32078
|
-
return this == t || t instanceof
|
|
32078
|
+
return this == t || t instanceof Fn && Gl(this.attrs, t.attrs) && Gl(this.spec, t.spec);
|
|
32079
32079
|
}
|
|
32080
32080
|
static is(t) {
|
|
32081
|
-
return t.type instanceof
|
|
32081
|
+
return t.type instanceof Fn;
|
|
32082
32082
|
}
|
|
32083
32083
|
destroy() {
|
|
32084
32084
|
}
|
|
@@ -32145,7 +32145,7 @@ class Lt {
|
|
|
32145
32145
|
each inline node between `from` and `to`.
|
|
32146
32146
|
*/
|
|
32147
32147
|
static inline(t, n, r, l) {
|
|
32148
|
-
return new Lt(t, n, new
|
|
32148
|
+
return new Lt(t, n, new Fn(r, l));
|
|
32149
32149
|
}
|
|
32150
32150
|
/**
|
|
32151
32151
|
Creates a node decoration. `from` and `to` should point precisely
|
|
@@ -32166,7 +32166,7 @@ class Lt {
|
|
|
32166
32166
|
@internal
|
|
32167
32167
|
*/
|
|
32168
32168
|
get inline() {
|
|
32169
|
-
return this.type instanceof
|
|
32169
|
+
return this.type instanceof Fn;
|
|
32170
32170
|
}
|
|
32171
32171
|
/**
|
|
32172
32172
|
@internal
|
|
@@ -32297,14 +32297,14 @@ class Xe {
|
|
|
32297
32297
|
let a = t + 1, i = a + n.content.size;
|
|
32298
32298
|
for (let s = 0; s < this.local.length; s++) {
|
|
32299
32299
|
let o = this.local[s];
|
|
32300
|
-
if (o.from < i && o.to > a && o.type instanceof
|
|
32300
|
+
if (o.from < i && o.to > a && o.type instanceof Fn) {
|
|
32301
32301
|
let u = Math.max(a, o.from) - a, c = Math.min(i, o.to) - a;
|
|
32302
32302
|
u < c && (l || (l = [])).push(o.copy(u, c));
|
|
32303
32303
|
}
|
|
32304
32304
|
}
|
|
32305
32305
|
if (l) {
|
|
32306
32306
|
let s = new Xe(l.sort(pr), Dr);
|
|
32307
|
-
return r ? new
|
|
32307
|
+
return r ? new _n([s, r]) : s;
|
|
32308
32308
|
}
|
|
32309
32309
|
return r || ht;
|
|
32310
32310
|
}
|
|
@@ -32336,11 +32336,11 @@ class Xe {
|
|
|
32336
32336
|
localsInner(t) {
|
|
32337
32337
|
if (this == ht)
|
|
32338
32338
|
return Dr;
|
|
32339
|
-
if (t.inlineContent || !this.local.some(
|
|
32339
|
+
if (t.inlineContent || !this.local.some(Fn.is))
|
|
32340
32340
|
return this.local;
|
|
32341
32341
|
let n = [];
|
|
32342
32342
|
for (let r = 0; r < this.local.length; r++)
|
|
32343
|
-
this.local[r].type instanceof
|
|
32343
|
+
this.local[r].type instanceof Fn || n.push(this.local[r]);
|
|
32344
32344
|
return n;
|
|
32345
32345
|
}
|
|
32346
32346
|
forEachSet(t) {
|
|
@@ -32350,13 +32350,13 @@ class Xe {
|
|
|
32350
32350
|
Xe.empty = new Xe([], []);
|
|
32351
32351
|
Xe.removeOverlap = Ru;
|
|
32352
32352
|
const ht = Xe.empty;
|
|
32353
|
-
class
|
|
32353
|
+
class _n {
|
|
32354
32354
|
constructor(t) {
|
|
32355
32355
|
this.members = t;
|
|
32356
32356
|
}
|
|
32357
32357
|
map(t, n) {
|
|
32358
32358
|
const r = this.members.map((l) => l.map(t, n, hr));
|
|
32359
|
-
return
|
|
32359
|
+
return _n.from(r);
|
|
32360
32360
|
}
|
|
32361
32361
|
forChild(t, n) {
|
|
32362
32362
|
if (n.isLeaf)
|
|
@@ -32364,12 +32364,12 @@ class In {
|
|
|
32364
32364
|
let r = [];
|
|
32365
32365
|
for (let l = 0; l < this.members.length; l++) {
|
|
32366
32366
|
let a = this.members[l].forChild(t, n);
|
|
32367
|
-
a != ht && (a instanceof
|
|
32367
|
+
a != ht && (a instanceof _n ? r = r.concat(a.members) : r.push(a));
|
|
32368
32368
|
}
|
|
32369
|
-
return
|
|
32369
|
+
return _n.from(r);
|
|
32370
32370
|
}
|
|
32371
32371
|
eq(t) {
|
|
32372
|
-
if (!(t instanceof
|
|
32372
|
+
if (!(t instanceof _n) || t.members.length != this.members.length)
|
|
32373
32373
|
return !1;
|
|
32374
32374
|
for (let n = 0; n < this.members.length; n++)
|
|
32375
32375
|
if (!this.members[n].eq(t.members[n]))
|
|
@@ -32400,7 +32400,7 @@ class In {
|
|
|
32400
32400
|
case 1:
|
|
32401
32401
|
return t[0];
|
|
32402
32402
|
default:
|
|
32403
|
-
return new
|
|
32403
|
+
return new _n(t.every((n) => n instanceof Xe) ? t : t.reduce((n, r) => n.concat(r instanceof Xe ? r : r.members), []));
|
|
32404
32404
|
}
|
|
32405
32405
|
}
|
|
32406
32406
|
forEachSet(t) {
|
|
@@ -32540,7 +32540,7 @@ function zs(e) {
|
|
|
32540
32540
|
return e.someProp("decorations", (n) => {
|
|
32541
32541
|
let r = n(e.state);
|
|
32542
32542
|
r && r != ht && t.push(r);
|
|
32543
|
-
}), e.cursorWrapper && t.push(Xe.create(e.state.doc, [e.cursorWrapper.deco])),
|
|
32543
|
+
}), e.cursorWrapper && t.push(Xe.create(e.state.doc, [e.cursorWrapper.deco])), _n.from(t);
|
|
32544
32544
|
}
|
|
32545
32545
|
const K5 = {
|
|
32546
32546
|
childList: !0,
|
|
@@ -32549,7 +32549,7 @@ const K5 = {
|
|
|
32549
32549
|
attributes: !0,
|
|
32550
32550
|
attributeOldValue: !0,
|
|
32551
32551
|
subtree: !0
|
|
32552
|
-
}, Q5 = wt &&
|
|
32552
|
+
}, Q5 = wt && Pn <= 11;
|
|
32553
32553
|
class X5 {
|
|
32554
32554
|
constructor() {
|
|
32555
32555
|
this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
|
|
@@ -32569,7 +32569,7 @@ class J5 {
|
|
|
32569
32569
|
this.view = t, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new X5(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
|
|
32570
32570
|
for (let l = 0; l < r.length; l++)
|
|
32571
32571
|
this.queue.push(r[l]);
|
|
32572
|
-
wt &&
|
|
32572
|
+
wt && Pn <= 11 && r.some((l) => l.type == "childList" && l.removedNodes.length || l.type == "characterData" && l.oldValue.length > l.target.nodeValue.length) ? this.flushSoon() : pt && t.composing && r.some((l) => l.type == "childList" && l.target.nodeName == "TR") ? (t.input.badSafariComposition = !0, this.flushSoon()) : this.flush();
|
|
32573
32573
|
}), Q5 && (this.onCharData = (r) => {
|
|
32574
32574
|
this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
|
|
32575
32575
|
}), this.onSelectionChange = this.onSelectionChange.bind(this);
|
|
@@ -32610,7 +32610,7 @@ class J5 {
|
|
|
32610
32610
|
if (If(this.view)) {
|
|
32611
32611
|
if (this.suppressingSelectionUpdates)
|
|
32612
32612
|
return pn(this.view);
|
|
32613
|
-
if (wt &&
|
|
32613
|
+
if (wt && Pn <= 11 && !this.view.state.selection.empty) {
|
|
32614
32614
|
let t = this.view.domSelectionRange();
|
|
32615
32615
|
if (t.focusNode && Er(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset))
|
|
32616
32616
|
return this.flushSoon();
|
|
@@ -32700,7 +32700,7 @@ class J5 {
|
|
|
32700
32700
|
if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(t.target))
|
|
32701
32701
|
return { from: r.posBefore, to: r.posAfter };
|
|
32702
32702
|
let l = t.previousSibling, a = t.nextSibling;
|
|
32703
|
-
if (wt &&
|
|
32703
|
+
if (wt && Pn <= 11 && t.addedNodes.length)
|
|
32704
32704
|
for (let c = 0; c < t.addedNodes.length; c++) {
|
|
32705
32705
|
let { previousSibling: d, nextSibling: h } = t.addedNodes[c];
|
|
32706
32706
|
(!d || Array.prototype.indexOf.call(t.addedNodes, d) < 0) && (l = d), (!h || Array.prototype.indexOf.call(t.addedNodes, h) < 0) && (a = h);
|
|
@@ -32849,7 +32849,7 @@ function iS(e, t, n, r, l) {
|
|
|
32849
32849
|
}
|
|
32850
32850
|
return;
|
|
32851
32851
|
}
|
|
32852
|
-
e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt &&
|
|
32852
|
+
e.state.selection.from < e.state.selection.to && m.start == m.endB && e.state.selection instanceof Ee && (m.start > e.state.selection.from && m.start <= e.state.selection.from + 2 && e.state.selection.from >= u.from ? m.start = e.state.selection.from : m.endA < e.state.selection.to && m.endA >= e.state.selection.to - 2 && e.state.selection.to <= u.to && (m.endB += e.state.selection.to - m.endA, m.endA = e.state.selection.to)), wt && Pn <= 11 && m.endB == m.start + 1 && m.endA == m.start && m.start > u.from && u.doc.textBetween(m.start - u.from - 1, m.start - u.from + 1) == " " && (m.start--, m.endA--, m.endB--);
|
|
32853
32853
|
let g = u.doc.resolveNoCache(m.start - u.from), b = u.doc.resolveNoCache(m.endB - u.from), y = c.resolve(m.start), A = g.sameParent(b) && g.parent.inlineContent && y.end() >= m.endA;
|
|
32854
32854
|
if ((Yr && e.input.lastIOSEnter > Date.now() - 225 && (!A || l.some((w) => w.nodeName == "DIV" || w.nodeName == "P")) || !A && g.pos < u.doc.content.size && (!g.sameParent(b) || !g.parent.inlineContent) && g.pos < b.pos && !/\S/.test(u.doc.textBetween(g.pos, b.pos, "", ""))) && e.someProp("handleKeyDown", (w) => w(e, nr(13, "Enter")))) {
|
|
32855
32855
|
e.input.lastIOSEnter = 0;
|
|
@@ -32874,7 +32874,7 @@ function iS(e, t, n, r, l) {
|
|
|
32874
32874
|
}, C;
|
|
32875
32875
|
if (A)
|
|
32876
32876
|
if (g.pos == b.pos) {
|
|
32877
|
-
wt &&
|
|
32877
|
+
wt && Pn <= 11 && g.parentOffset == 0 && (e.domObserver.suppressSelectionUpdates(), setTimeout(() => pn(e), 20));
|
|
32878
32878
|
let w = M(e.state.tr.delete(k, D)), N = c.resolve(m.start).marksAcross(c.resolve(m.endA));
|
|
32879
32879
|
N && w.ensureMarks(N), e.dispatch(w);
|
|
32880
32880
|
} else if (
|
|
@@ -33345,7 +33345,7 @@ function jf(e) {
|
|
|
33345
33345
|
if (e.spec.state || e.spec.filterTransaction || e.spec.appendTransaction)
|
|
33346
33346
|
throw new RangeError("Plugins passed directly to the view must not have a state component");
|
|
33347
33347
|
}
|
|
33348
|
-
var
|
|
33348
|
+
var Hn = {
|
|
33349
33349
|
8: "Backspace",
|
|
33350
33350
|
9: "Tab",
|
|
33351
33351
|
10: "Enter",
|
|
@@ -33424,13 +33424,13 @@ var Fn = {
|
|
|
33424
33424
|
221: "}",
|
|
33425
33425
|
222: '"'
|
|
33426
33426
|
}, fS = typeof navigator < "u" && /Mac/.test(navigator.platform), hS = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
33427
|
-
for (var ct = 0; ct < 10; ct++)
|
|
33428
|
-
for (var ct = 1; ct <= 24; ct++)
|
|
33427
|
+
for (var ct = 0; ct < 10; ct++) Hn[48 + ct] = Hn[96 + ct] = String(ct);
|
|
33428
|
+
for (var ct = 1; ct <= 24; ct++) Hn[ct + 111] = "F" + ct;
|
|
33429
33429
|
for (var ct = 65; ct <= 90; ct++)
|
|
33430
|
-
|
|
33431
|
-
for (var $s in
|
|
33430
|
+
Hn[ct] = String.fromCharCode(ct + 32), hi[ct] = String.fromCharCode(ct);
|
|
33431
|
+
for (var $s in Hn) hi.hasOwnProperty($s) || (hi[$s] = Hn[$s]);
|
|
33432
33432
|
function pS(e) {
|
|
33433
|
-
var t = fS && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || hS && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? hi :
|
|
33433
|
+
var t = fS && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || hS && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? hi : Hn)[e.keyCode] || e.key || "Unidentified";
|
|
33434
33434
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
33435
33435
|
}
|
|
33436
33436
|
const mS = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), bS = typeof navigator < "u" && /Win/.test(navigator.platform);
|
|
@@ -33480,7 +33480,7 @@ function Fm(e) {
|
|
|
33480
33480
|
return !0;
|
|
33481
33481
|
}
|
|
33482
33482
|
if ((r.altKey || r.metaKey || r.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
33483
|
-
!(bS && r.ctrlKey && r.altKey) && (a =
|
|
33483
|
+
!(bS && r.ctrlKey && r.altKey) && (a = Hn[r.keyCode]) && a != l) {
|
|
33484
33484
|
let s = t[qs(a, r)];
|
|
33485
33485
|
if (s && s(n.state, n.dispatch, n))
|
|
33486
33486
|
return !0;
|
|
@@ -33643,7 +33643,7 @@ function Pu(e) {
|
|
|
33643
33643
|
const CS = (e, t) => {
|
|
33644
33644
|
let n = e.selection, r = n instanceof be, l;
|
|
33645
33645
|
if (r) {
|
|
33646
|
-
if (n.node.isTextblock || !
|
|
33646
|
+
if (n.node.isTextblock || !Wn(e.doc, n.from))
|
|
33647
33647
|
return !1;
|
|
33648
33648
|
l = n.from;
|
|
33649
33649
|
} else if (l = _i(e.doc, n.from, -1), l == null)
|
|
@@ -33656,7 +33656,7 @@ const CS = (e, t) => {
|
|
|
33656
33656
|
}, xS = (e, t) => {
|
|
33657
33657
|
let n = e.selection, r;
|
|
33658
33658
|
if (n instanceof be) {
|
|
33659
|
-
if (n.node.isTextblock || !
|
|
33659
|
+
if (n.node.isTextblock || !Wn(e.doc, n.to))
|
|
33660
33660
|
return !1;
|
|
33661
33661
|
r = n.to;
|
|
33662
33662
|
} else if (r = _i(e.doc, n.to, 1), r == null)
|
|
@@ -33749,7 +33749,7 @@ const NS = AS(), wS = (e, t) => {
|
|
|
33749
33749
|
};
|
|
33750
33750
|
function IS(e, t, n) {
|
|
33751
33751
|
let r = t.nodeBefore, l = t.nodeAfter, a = t.index();
|
|
33752
|
-
return !r || !l || !r.type.compatibleContent(l.type) ? !1 : !r.content.size && t.parent.canReplace(a - 1, a) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(a, a + 1) || !(l.isTextblock ||
|
|
33752
|
+
return !r || !l || !r.type.compatibleContent(l.type) ? !1 : !r.content.size && t.parent.canReplace(a - 1, a) ? (n && n(e.tr.delete(t.pos - r.nodeSize, t.pos).scrollIntoView()), !0) : !t.parent.canReplace(a, a + 1) || !(l.isTextblock || Wn(e.doc, t.pos)) ? !1 : (n && n(e.tr.join(t.pos).scrollIntoView()), !0);
|
|
33753
33753
|
}
|
|
33754
33754
|
function Km(e, t, n, r) {
|
|
33755
33755
|
let l = t.nodeBefore, a = t.nodeAfter, i, s, o = l.type.spec.isolating || a.type.spec.isolating;
|
|
@@ -33763,7 +33763,7 @@ function Km(e, t, n, r) {
|
|
|
33763
33763
|
m = X.from(i[y].create(null, m));
|
|
33764
33764
|
m = X.from(l.copy(m));
|
|
33765
33765
|
let g = e.tr.step(new lt(t.pos - 1, f, t.pos, f, new ue(m, 1, 0), i.length, !0)), b = g.doc.resolve(f + 2 * i.length);
|
|
33766
|
-
b.nodeAfter && b.nodeAfter.type == l.type &&
|
|
33766
|
+
b.nodeAfter && b.nodeAfter.type == l.type && Wn(g.doc, b.pos) && g.join(b.pos), n(g.scrollIntoView());
|
|
33767
33767
|
}
|
|
33768
33768
|
return !0;
|
|
33769
33769
|
}
|
|
@@ -33897,7 +33897,7 @@ function BS(e, t, n, r) {
|
|
|
33897
33897
|
return !1;
|
|
33898
33898
|
l.lift(r, s);
|
|
33899
33899
|
let o = l.doc.resolve(l.mapping.map(a, -1) - 1);
|
|
33900
|
-
return
|
|
33900
|
+
return Wn(l.doc, o.pos) && o.nodeBefore.type == o.nodeAfter.type && l.join(o.pos), t(l.scrollIntoView()), !0;
|
|
33901
33901
|
}
|
|
33902
33902
|
function FS(e, t, n) {
|
|
33903
33903
|
let r = e.tr, l = n.parent;
|
|
@@ -34429,7 +34429,7 @@ function Ui(e, t) {
|
|
|
34429
34429
|
Da(t[r]) && Da(e[r]) ? n[r] = Ui(e[r], t[r]) : n[r] = t[r];
|
|
34430
34430
|
}), n;
|
|
34431
34431
|
}
|
|
34432
|
-
class
|
|
34432
|
+
class Un {
|
|
34433
34433
|
constructor(t = {}) {
|
|
34434
34434
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
34435
34435
|
name: this.name,
|
|
@@ -34445,7 +34445,7 @@ class Hn {
|
|
|
34445
34445
|
})) || {};
|
|
34446
34446
|
}
|
|
34447
34447
|
static create(t = {}) {
|
|
34448
|
-
return new
|
|
34448
|
+
return new Un(t);
|
|
34449
34449
|
}
|
|
34450
34450
|
configure(t = {}) {
|
|
34451
34451
|
const n = this.extend({
|
|
@@ -34455,7 +34455,7 @@ class Hn {
|
|
|
34455
34455
|
return n.name = this.name, n.parent = this.parent, n;
|
|
34456
34456
|
}
|
|
34457
34457
|
extend(t = {}) {
|
|
34458
|
-
const n = new
|
|
34458
|
+
const n = new Un(t);
|
|
34459
34459
|
return n.parent = this, this.child = n, n.name = t.name ? t.name : n.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Ne(ce(n, "addOptions", {
|
|
34460
34460
|
name: n.name
|
|
34461
34461
|
})), n.storage = Ne(ce(n, "addStorage", {
|
|
@@ -34698,7 +34698,7 @@ class Fr {
|
|
|
34698
34698
|
type: Ws(i.name, this.schema)
|
|
34699
34699
|
}, o = [], u = ce(i, "addKeyboardShortcuts", s);
|
|
34700
34700
|
let c = {};
|
|
34701
|
-
if (i.type === "mark" && ce(i, "exitable", s) && (c.ArrowRight = () =>
|
|
34701
|
+
if (i.type === "mark" && ce(i, "exitable", s) && (c.ArrowRight = () => Un.handleExit({ editor: t, mark: i })), u) {
|
|
34702
34702
|
const g = Object.fromEntries(Object.entries(u()).map(([b, y]) => [b, () => y({ editor: t })]));
|
|
34703
34703
|
c = { ...c, ...g };
|
|
34704
34704
|
}
|
|
@@ -34955,7 +34955,7 @@ function zu(e, t, n) {
|
|
|
34955
34955
|
to: u
|
|
34956
34956
|
};
|
|
34957
34957
|
}
|
|
34958
|
-
function
|
|
34958
|
+
function jn(e, t) {
|
|
34959
34959
|
if (typeof e == "string") {
|
|
34960
34960
|
if (!t.marks[e])
|
|
34961
34961
|
throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);
|
|
@@ -34964,7 +34964,7 @@ function Yn(e, t) {
|
|
|
34964
34964
|
return e;
|
|
34965
34965
|
}
|
|
34966
34966
|
const p8 = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
34967
|
-
const a =
|
|
34967
|
+
const a = jn(e, r.schema), { doc: i, selection: s } = n, { $from: o, from: u, to: c } = s;
|
|
34968
34968
|
if (l) {
|
|
34969
34969
|
const d = zu(o, a, t);
|
|
34970
34970
|
if (d && d.from <= u && d.to >= c) {
|
|
@@ -35042,7 +35042,7 @@ function Pa(e) {
|
|
|
35042
35042
|
return l1(n);
|
|
35043
35043
|
}
|
|
35044
35044
|
function Kl(e, t, n) {
|
|
35045
|
-
if (e instanceof
|
|
35045
|
+
if (e instanceof Ln || e instanceof X)
|
|
35046
35046
|
return e;
|
|
35047
35047
|
n = {
|
|
35048
35048
|
slice: !0,
|
|
@@ -35255,7 +35255,7 @@ function eh(e, t) {
|
|
|
35255
35255
|
const B8 = (e, t) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35256
35256
|
let a = null, i = null;
|
|
35257
35257
|
const s = zi(typeof e == "string" ? e : e.name, r.schema);
|
|
35258
|
-
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i =
|
|
35258
|
+
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i = jn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
35259
35259
|
r.doc.nodesBetween(o.$from.pos, o.$to.pos, (u, c) => {
|
|
35260
35260
|
a && a === u.type && n.setNodeMarkup(c, void 0, eh(u.attrs, t)), i && u.marks.length && u.marks.forEach((d) => {
|
|
35261
35261
|
i === d.type && n.addMark(c, c + u.nodeSize, i.create(eh(d.attrs, t)));
|
|
@@ -35291,7 +35291,7 @@ const W8 = (e, t = !1, n = {}, r = {}) => ({ editor: l, tr: a, dispatch: i, comm
|
|
|
35291
35291
|
});
|
|
35292
35292
|
};
|
|
35293
35293
|
function i1(e, t) {
|
|
35294
|
-
const n =
|
|
35294
|
+
const n = jn(t, e.schema), { from: r, to: l, empty: a } = e.selection, i = [];
|
|
35295
35295
|
a ? (e.storedMarks && i.push(...e.storedMarks), i.push(...e.selection.$head.marks())) : e.doc.nodesBetween(r, l, (o) => {
|
|
35296
35296
|
i.push(...o.marks);
|
|
35297
35297
|
});
|
|
@@ -35363,7 +35363,7 @@ function Ka(e, t, n) {
|
|
|
35363
35363
|
}));
|
|
35364
35364
|
}
|
|
35365
35365
|
function Po(e, t, n = {}) {
|
|
35366
|
-
const { empty: r, ranges: l } = e.selection, a = t ?
|
|
35366
|
+
const { empty: r, ranges: l } = e.selection, a = t ? jn(t, e.schema) : null;
|
|
35367
35367
|
if (r)
|
|
35368
35368
|
return !!(e.storedMarks || e.selection.$from.marks()).filter((d) => a ? a.name === d.type.name : !0).find((d) => pi(d.attrs, n, { strict: !1 }));
|
|
35369
35369
|
let i = 0;
|
|
@@ -35450,7 +35450,7 @@ function Z8(e, t, n) {
|
|
|
35450
35450
|
});
|
|
35451
35451
|
}
|
|
35452
35452
|
const ek = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35453
|
-
const { selection: a } = n, { empty: i, ranges: s } = a, o =
|
|
35453
|
+
const { selection: a } = n, { empty: i, ranges: s } = a, o = jn(e, r.schema);
|
|
35454
35454
|
if (l)
|
|
35455
35455
|
if (i) {
|
|
35456
35456
|
const u = i1(r, o);
|
|
@@ -35588,7 +35588,7 @@ const ik = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35588
35588
|
if (r === void 0)
|
|
35589
35589
|
return !0;
|
|
35590
35590
|
const l = e.doc.nodeAt(r);
|
|
35591
|
-
return n.node.type === l?.type &&
|
|
35591
|
+
return n.node.type === l?.type && Wn(e.doc, n.pos) && e.join(n.pos), !0;
|
|
35592
35592
|
}, js = (e, t) => {
|
|
35593
35593
|
const n = Vu((i) => i.type === t)(e.selection);
|
|
35594
35594
|
if (!n)
|
|
@@ -35597,7 +35597,7 @@ const ik = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35597
35597
|
if (r === void 0)
|
|
35598
35598
|
return !0;
|
|
35599
35599
|
const l = e.doc.nodeAt(r);
|
|
35600
|
-
return n.node.type === l?.type &&
|
|
35600
|
+
return n.node.type === l?.type && Wn(e.doc, r) && e.join(r), !0;
|
|
35601
35601
|
}, ok = (e, t, n, r = {}) => ({ editor: l, tr: a, state: i, dispatch: s, chain: o, commands: u, can: c }) => {
|
|
35602
35602
|
const { extensions: d, splittableMarks: h } = l.extensionManager, f = st(e, i.schema), m = st(t, i.schema), { selection: g, storedMarks: b } = i, { $from: y, $to: A } = g, k = y.blockRange(A), D = b || g.$to.parentOffset && g.$from.marks();
|
|
35603
35603
|
if (!k)
|
|
@@ -35614,7 +35614,7 @@ const ik = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35614
35614
|
return a.ensureMarks(w), C ? !0 : u.clearNodes();
|
|
35615
35615
|
}).wrapInList(f, r).command(() => Ys(a, f)).command(() => js(a, f)).run();
|
|
35616
35616
|
}, uk = (e, t = {}, n = {}) => ({ state: r, commands: l }) => {
|
|
35617
|
-
const { extendEmptyMarkRange: a = !1 } = n, i =
|
|
35617
|
+
const { extendEmptyMarkRange: a = !1 } = n, i = jn(e, r.schema);
|
|
35618
35618
|
return Po(r, i, t) ? l.unsetMark(i, { extendEmptyMarkRange: a }) : l.setMark(i, t);
|
|
35619
35619
|
}, ck = (e, t, n = {}) => ({ state: r, commands: l }) => {
|
|
35620
35620
|
const a = st(e, r.schema), i = st(t, r.schema), s = Ql(r, a, n);
|
|
@@ -35650,7 +35650,7 @@ const ik = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35650
35650
|
}), !0;
|
|
35651
35651
|
}, pk = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35652
35652
|
var a;
|
|
35653
|
-
const { extendEmptyMarkRange: i = !1 } = t, { selection: s } = n, o =
|
|
35653
|
+
const { extendEmptyMarkRange: i = !1 } = t, { selection: s } = n, o = jn(e, r.schema), { $from: u, empty: c, ranges: d } = s;
|
|
35654
35654
|
if (!l)
|
|
35655
35655
|
return !0;
|
|
35656
35656
|
if (c && i) {
|
|
@@ -35665,7 +35665,7 @@ const ik = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
35665
35665
|
}, mk = (e, t = {}) => ({ tr: n, state: r, dispatch: l }) => {
|
|
35666
35666
|
let a = null, i = null;
|
|
35667
35667
|
const s = zi(typeof e == "string" ? e : e.name, r.schema);
|
|
35668
|
-
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i =
|
|
35668
|
+
return s ? (s === "node" && (a = st(e, r.schema)), s === "mark" && (i = jn(e, r.schema)), l && n.selection.ranges.forEach((o) => {
|
|
35669
35669
|
const u = o.$from.pos, c = o.$to.pos;
|
|
35670
35670
|
let d, h, f, m;
|
|
35671
35671
|
n.selection.empty ? r.doc.nodesBetween(u, c, (g, b) => {
|
|
@@ -36557,7 +36557,7 @@ function Xl(e) {
|
|
|
36557
36557
|
l().updateAttributes(d, a).run();
|
|
36558
36558
|
}
|
|
36559
36559
|
const c = i.doc.resolve(n.from - 1).nodeBefore;
|
|
36560
|
-
c && c.type === e.type &&
|
|
36560
|
+
c && c.type === e.type && Wn(i.doc, n.from - 1) && (!e.joinPredicate || e.joinPredicate(r, c)) && i.join(n.from - 1);
|
|
36561
36561
|
}
|
|
36562
36562
|
});
|
|
36563
36563
|
}
|
|
@@ -37198,7 +37198,7 @@ class $u {
|
|
|
37198
37198
|
}
|
|
37199
37199
|
}
|
|
37200
37200
|
function Qk(e = {}, t = []) {
|
|
37201
|
-
const n =
|
|
37201
|
+
const n = ee(e);
|
|
37202
37202
|
n.current = e;
|
|
37203
37203
|
const [r] = G(() => new $u(n)), l = $i.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
|
37204
37204
|
return Sh(l), me(r.onRender(t)), Gk({
|
|
@@ -37261,7 +37261,7 @@ const eA = /^\s*>\s$/, tA = It.create({
|
|
|
37261
37261
|
})
|
|
37262
37262
|
];
|
|
37263
37263
|
}
|
|
37264
|
-
}), nA = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, rA = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, lA = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aA = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, iA =
|
|
37264
|
+
}), nA = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, rA = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, lA = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, aA = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, iA = Un.create({
|
|
37265
37265
|
name: "bold",
|
|
37266
37266
|
addOptions() {
|
|
37267
37267
|
return {
|
|
@@ -37375,7 +37375,7 @@ const eA = /^\s*>\s$/, tA = It.create({
|
|
|
37375
37375
|
e
|
|
37376
37376
|
];
|
|
37377
37377
|
}
|
|
37378
|
-
}), uA = /(^|[^`])`([^`]+)`(?!`)/, cA = /(^|[^`])`([^`]+)`(?!`)/g, dA =
|
|
37378
|
+
}), uA = /(^|[^`])`([^`]+)`(?!`)/, cA = /(^|[^`])`([^`]+)`(?!`)/g, dA = Un.create({
|
|
37379
37379
|
name: "code",
|
|
37380
37380
|
addOptions() {
|
|
37381
37381
|
return {
|
|
@@ -38193,7 +38193,7 @@ class Xt {
|
|
|
38193
38193
|
}
|
|
38194
38194
|
}
|
|
38195
38195
|
}
|
|
38196
|
-
class
|
|
38196
|
+
class In {
|
|
38197
38197
|
constructor(t, n, r, l, a) {
|
|
38198
38198
|
this.done = t, this.undone = n, this.prevRanges = r, this.prevTime = l, this.prevComposition = a;
|
|
38199
38199
|
}
|
|
@@ -38203,16 +38203,16 @@ function RA(e, t, n, r) {
|
|
|
38203
38203
|
let l = n.getMeta(mr), a;
|
|
38204
38204
|
if (l)
|
|
38205
38205
|
return l.historyState;
|
|
38206
|
-
n.getMeta(PA) && (e = new
|
|
38206
|
+
n.getMeta(PA) && (e = new In(e.done, e.undone, null, 0, -1));
|
|
38207
38207
|
let i = n.getMeta("appendedTransaction");
|
|
38208
38208
|
if (n.steps.length == 0)
|
|
38209
38209
|
return e;
|
|
38210
38210
|
if (i && i.getMeta(mr))
|
|
38211
|
-
return i.getMeta(mr).redo ? new
|
|
38211
|
+
return i.getMeta(mr).redo ? new In(e.done.addTransform(n, void 0, r, Qa(t)), e.undone, ch(n.mapping.maps), e.prevTime, e.prevComposition) : new In(e.done, e.undone.addTransform(n, void 0, r, Qa(t)), null, e.prevTime, e.prevComposition);
|
|
38212
38212
|
if (n.getMeta("addToHistory") !== !1 && !(i && i.getMeta("addToHistory") === !1)) {
|
|
38213
38213
|
let s = n.getMeta("composition"), o = e.prevTime == 0 || !i && e.prevComposition != s && (e.prevTime < (n.time || 0) - r.newGroupDelay || !DA(n, e.prevRanges)), u = i ? Js(e.prevRanges, n.mapping) : ch(n.mapping.maps);
|
|
38214
|
-
return new
|
|
38215
|
-
} else return (a = n.getMeta("rebased")) ? new
|
|
38214
|
+
return new In(e.done.addTransform(n, o ? t.selection.getBookmark() : void 0, r, Qa(t)), Yt.empty, u, n.time, s ?? e.prevComposition);
|
|
38215
|
+
} else return (a = n.getMeta("rebased")) ? new In(e.done.rebased(n, a), e.undone.rebased(n, a), Js(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new In(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), Js(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
|
|
38216
38216
|
}
|
|
38217
38217
|
function DA(e, t) {
|
|
38218
38218
|
if (!t)
|
|
@@ -38245,7 +38245,7 @@ function LA(e, t, n) {
|
|
|
38245
38245
|
let r = Qa(t), l = mr.get(t).spec.config, a = (n ? e.undone : e.done).popEvent(t, r);
|
|
38246
38246
|
if (!a)
|
|
38247
38247
|
return null;
|
|
38248
|
-
let i = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), l, r), o = new
|
|
38248
|
+
let i = a.selection.resolve(a.transform.doc), s = (n ? e.done : e.undone).addTransform(a.transform, t.selection.getBookmark(), l, r), o = new In(n ? s : a.remaining, n ? a.remaining : s, null, 0, -1);
|
|
38249
38249
|
return a.transform.setSelection(i).setMeta(mr, { redo: n, historyState: o });
|
|
38250
38250
|
}
|
|
38251
38251
|
let Zs = !1, dh = null;
|
|
@@ -38270,7 +38270,7 @@ function BA(e = {}) {
|
|
|
38270
38270
|
key: mr,
|
|
38271
38271
|
state: {
|
|
38272
38272
|
init() {
|
|
38273
|
-
return new
|
|
38273
|
+
return new In(Yt.empty, Yt.empty, null, 0, -1);
|
|
38274
38274
|
},
|
|
38275
38275
|
apply(t, n, r) {
|
|
38276
38276
|
return RA(n, r, t, e);
|
|
@@ -38380,7 +38380,7 @@ const d1 = c1(!1, !0), f1 = c1(!0, !0), FA = mt.create({
|
|
|
38380
38380
|
})
|
|
38381
38381
|
];
|
|
38382
38382
|
}
|
|
38383
|
-
}), UA = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, zA = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, VA = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, $A = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, qA =
|
|
38383
|
+
}), UA = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, zA = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, VA = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, $A = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, qA = Un.create({
|
|
38384
38384
|
name: "italic",
|
|
38385
38385
|
addOptions() {
|
|
38386
38386
|
return {
|
|
@@ -38567,7 +38567,7 @@ const d1 = c1(!1, !0), f1 = c1(!0, !0), FA = mt.create({
|
|
|
38567
38567
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
38568
38568
|
};
|
|
38569
38569
|
}
|
|
38570
|
-
}), KA = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, QA = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, XA =
|
|
38570
|
+
}), KA = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, QA = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, XA = Un.create({
|
|
38571
38571
|
name: "strike",
|
|
38572
38572
|
addOptions() {
|
|
38573
38573
|
return {
|
|
@@ -38705,7 +38705,7 @@ const nN = ({ expanded: e, onToggle: t }) => /* @__PURE__ */ W(
|
|
|
38705
38705
|
}
|
|
38706
38706
|
), h1 = ve.memo(
|
|
38707
38707
|
({ node: e, value: t, onChange: n, disabled: r, error: l, nodeDefaults: a, onExpandChange: i }) => {
|
|
38708
|
-
const s = typeof e.minHeight == "number" ? e.minHeight : a?.richtext?.minHeight ?? 40, o = typeof e.maxHeight == "number" ? e.maxHeight : a?.richtext?.maxHeight ?? 160, u = Math.max(o, s), c = e.expandable !== !1, [d, h] = G(!1), f =
|
|
38708
|
+
const s = typeof e.minHeight == "number" ? e.minHeight : a?.richtext?.minHeight ?? 40, o = typeof e.maxHeight == "number" ? e.maxHeight : a?.richtext?.maxHeight ?? 160, u = Math.max(o, s), c = e.expandable !== !1, [d, h] = G(!1), f = ee(n), m = ee(e.key);
|
|
38709
38709
|
me(() => {
|
|
38710
38710
|
f.current = n;
|
|
38711
38711
|
}, [n]), me(() => {
|
|
@@ -39040,7 +39040,7 @@ const ph = (e) => typeof e == "string" || Array.isArray(e) && e.every((t) => typ
|
|
|
39040
39040
|
return t;
|
|
39041
39041
|
};
|
|
39042
39042
|
function aN(e, t, n, r, l, a) {
|
|
39043
|
-
const i =
|
|
39043
|
+
const i = ee({});
|
|
39044
39044
|
me(() => {
|
|
39045
39045
|
if (!e) return;
|
|
39046
39046
|
const s = lN(r);
|
|
@@ -39249,7 +39249,7 @@ function bN(e, t, n) {
|
|
|
39249
39249
|
return Pe(() => mN(e, t, n), [e, t, n]);
|
|
39250
39250
|
}
|
|
39251
39251
|
function gN(e) {
|
|
39252
|
-
const t =
|
|
39252
|
+
const t = ee({}), n = ee({}), r = $(
|
|
39253
39253
|
async (s, o) => {
|
|
39254
39254
|
if (!e.reportAnalyze) return { status: "unconfigured" };
|
|
39255
39255
|
const u = (t.current[s] ?? 0) + 1;
|
|
@@ -39586,7 +39586,7 @@ const kN = {
|
|
|
39586
39586
|
});
|
|
39587
39587
|
v1.displayName = "AgentDropdown";
|
|
39588
39588
|
function vh(e = "width") {
|
|
39589
|
-
const t =
|
|
39589
|
+
const t = ee(null), [n, r] = G(!1), l = $(() => {
|
|
39590
39590
|
const a = t.current;
|
|
39591
39591
|
a && r(e === "height" ? a.scrollHeight > a.clientHeight : a.scrollWidth > a.clientWidth);
|
|
39592
39592
|
}, [e]);
|
|
@@ -39596,77 +39596,77 @@ const NN = ["全部技能", "我的技能", "订阅技能", "系统技能"], wN
|
|
|
39596
39596
|
system: "系统技能",
|
|
39597
39597
|
mine: "我的技能",
|
|
39598
39598
|
subscribe: "订阅技能"
|
|
39599
|
-
},
|
|
39599
|
+
}, Tn = "基于用户上传的抖音推广数据,智能分析高潜力商品与爆品抖音推广数据,智能分析高潜力商品与爆品商品机会", Cn = ["淘宝天猫", "抖音电商", "市场选品", "京东商城", "拼多多", "小红书", "快手电商", "视频号"], xn = "当用户需要尖锐吐槽、阴阳怪气评论、犀利差评、回怼话术或讽刺性改写时使用本技能;用户只需提供对象、场景、原话或想表达的不满,即可触发生成。", ON = [
|
|
39600
39600
|
{
|
|
39601
39601
|
id: "c1",
|
|
39602
39602
|
title: "抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让抖音推广找潜力爆品热让",
|
|
39603
|
-
desc:
|
|
39604
|
-
tags:
|
|
39603
|
+
desc: Tn,
|
|
39604
|
+
tags: Cn,
|
|
39605
39605
|
badge: "system",
|
|
39606
39606
|
heat: "3.5",
|
|
39607
|
-
usageInstruction:
|
|
39607
|
+
usageInstruction: xn
|
|
39608
39608
|
},
|
|
39609
39609
|
{
|
|
39610
39610
|
id: "c2",
|
|
39611
39611
|
title: "【商品评价明细导出助手】问候提示生成助手",
|
|
39612
|
-
desc:
|
|
39613
|
-
tags:
|
|
39612
|
+
desc: Tn,
|
|
39613
|
+
tags: Cn,
|
|
39614
39614
|
badge: "system",
|
|
39615
39615
|
heat: "6.6",
|
|
39616
|
-
usageInstruction:
|
|
39616
|
+
usageInstruction: xn
|
|
39617
39617
|
},
|
|
39618
39618
|
{
|
|
39619
39619
|
id: "c3",
|
|
39620
39620
|
title: "抖音推广找潜力爆品",
|
|
39621
|
-
desc:
|
|
39622
|
-
tags:
|
|
39621
|
+
desc: Tn,
|
|
39622
|
+
tags: Cn,
|
|
39623
39623
|
badge: "mine",
|
|
39624
|
-
usageInstruction:
|
|
39624
|
+
usageInstruction: xn
|
|
39625
39625
|
},
|
|
39626
39626
|
{
|
|
39627
39627
|
id: "c4",
|
|
39628
39628
|
title: "抖音推广找潜力爆品",
|
|
39629
|
-
desc:
|
|
39630
|
-
tags:
|
|
39629
|
+
desc: Tn,
|
|
39630
|
+
tags: Cn,
|
|
39631
39631
|
badge: "subscribe",
|
|
39632
39632
|
heat: "6.6",
|
|
39633
|
-
usageInstruction:
|
|
39633
|
+
usageInstruction: xn
|
|
39634
39634
|
},
|
|
39635
39635
|
{
|
|
39636
39636
|
id: "c4",
|
|
39637
39637
|
title: "抖音推广找潜力爆品",
|
|
39638
|
-
desc:
|
|
39639
|
-
tags:
|
|
39638
|
+
desc: Tn,
|
|
39639
|
+
tags: Cn,
|
|
39640
39640
|
badge: "subscribe",
|
|
39641
39641
|
heat: "6.6",
|
|
39642
|
-
usageInstruction:
|
|
39642
|
+
usageInstruction: xn
|
|
39643
39643
|
},
|
|
39644
39644
|
{
|
|
39645
39645
|
id: "c4",
|
|
39646
39646
|
title: "抖音推广找潜力爆品",
|
|
39647
|
-
desc:
|
|
39648
|
-
tags:
|
|
39647
|
+
desc: Tn,
|
|
39648
|
+
tags: Cn,
|
|
39649
39649
|
badge: "mine",
|
|
39650
39650
|
heat: "6.6",
|
|
39651
|
-
usageInstruction:
|
|
39651
|
+
usageInstruction: xn
|
|
39652
39652
|
},
|
|
39653
39653
|
{
|
|
39654
39654
|
id: "c4",
|
|
39655
39655
|
title: "抖音推广找潜力爆品",
|
|
39656
|
-
desc:
|
|
39657
|
-
tags:
|
|
39656
|
+
desc: Tn,
|
|
39657
|
+
tags: Cn,
|
|
39658
39658
|
badge: "mine",
|
|
39659
39659
|
heat: "6.6",
|
|
39660
|
-
usageInstruction:
|
|
39660
|
+
usageInstruction: xn
|
|
39661
39661
|
},
|
|
39662
39662
|
{
|
|
39663
39663
|
id: "c4",
|
|
39664
39664
|
title: "抖音推广找潜力爆品",
|
|
39665
|
-
desc:
|
|
39666
|
-
tags:
|
|
39665
|
+
desc: Tn,
|
|
39666
|
+
tags: Cn,
|
|
39667
39667
|
badge: "mine",
|
|
39668
39668
|
heat: "6.6",
|
|
39669
|
-
usageInstruction:
|
|
39669
|
+
usageInstruction: xn
|
|
39670
39670
|
}
|
|
39671
39671
|
], MN = (e) => ({
|
|
39672
39672
|
id: e.id,
|
|
@@ -39702,7 +39702,7 @@ const NN = ["全部技能", "我的技能", "订阅技能", "系统技能"], wN
|
|
|
39702
39702
|
/* @__PURE__ */ v("path", { d: "M1.5 4.28322C1.5 4.11472 1.56694 3.95312 1.68608 3.83397C1.80523 3.71482 1.96683 3.64789 2.13533 3.64789H13.8646C13.948 3.64787 14.0306 3.6643 14.1077 3.69622C14.1848 3.72814 14.2549 3.77494 14.3139 3.83394C14.3729 3.89293 14.4197 3.96298 14.4516 4.04007C14.4836 4.11715 14.5 4.19978 14.5 4.28322C14.5 4.36666 14.4836 4.44929 14.4516 4.52638C14.4197 4.60347 14.3729 4.67351 14.3139 4.73251C14.2549 4.7915 14.1848 4.8383 14.1077 4.87022C14.0306 4.90214 13.948 4.91857 13.8646 4.91855H2.13533C1.96683 4.91855 1.80523 4.85162 1.68608 4.73247C1.56694 4.61332 1.5 4.45172 1.5 4.28322Z", fill: "currentColor" }),
|
|
39703
39703
|
/* @__PURE__ */ v("path", { d: "M5.02081 3.11277C5.02081 2.22135 5.74314 1.5 6.63358 1.5H9.3704C10.2618 1.5 10.9832 2.22135 10.9832 3.11277V4.92102H5.02081V3.11277ZM6.63358 2.77067C6.58866 2.77067 6.54417 2.77952 6.50266 2.79671C6.46116 2.8139 6.42345 2.8391 6.39168 2.87087C6.35991 2.90263 6.33471 2.94035 6.31752 2.98185C6.30033 3.02336 6.29148 3.06784 6.29148 3.11277V3.65036H9.7125V3.11277C9.7125 3.06784 9.70366 3.02336 9.68646 2.98185C9.66927 2.94035 9.64407 2.90263 9.61231 2.87087C9.58054 2.8391 9.54282 2.8139 9.50132 2.79671C9.45981 2.77952 9.41533 2.77067 9.3704 2.77067H6.63358Z", fill: "currentColor" })
|
|
39704
39704
|
] }), $N = () => /* @__PURE__ */ v("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ v("path", { d: "M8.87301 3.52364C9.08579 3.52364 9.28984 3.60817 9.4403 3.75862C9.59075 3.90907 9.67527 4.11313 9.67527 4.3259V11.8137C9.67527 12.0265 9.59075 12.2305 9.4403 12.381C9.28984 12.5314 9.08579 12.6159 8.87301 12.6159H2.98976C2.88441 12.6159 2.78008 12.5952 2.68275 12.5549C2.58541 12.5146 2.49697 12.4555 2.42248 12.381C2.34798 12.3065 2.28889 12.218 2.24857 12.1207C2.20825 12.0234 2.1875 11.919 2.1875 11.8137V4.3259C2.1875 4.11313 2.27202 3.90907 2.42248 3.75862C2.57293 3.60817 2.77699 3.52364 2.98976 3.52364H8.87301ZM8.60559 4.59332H3.25718V11.5463H8.60559V4.59332ZM11.0102 1.38428C11.2098 1.38415 11.4022 1.45838 11.5499 1.59248C11.6977 1.72658 11.7901 1.91092 11.8093 2.10952L11.8125 2.18654V9.40315C11.8123 9.53947 11.7601 9.67059 11.6666 9.76971C11.573 9.86884 11.4451 9.92849 11.309 9.93648C11.1729 9.94447 11.0389 9.90019 10.9344 9.8127C10.8298 9.7252 10.7627 9.60109 10.7466 9.46573L10.7428 9.40315V2.45396H5.39655C5.26555 2.45394 5.13911 2.40585 5.04121 2.3188C4.94332 2.23175 4.88078 2.1118 4.86545 1.9817L4.86171 1.91912C4.86172 1.78812 4.90982 1.66168 4.99687 1.56379C5.08392 1.46589 5.20387 1.40335 5.33397 1.38802L5.39655 1.38428H11.0102Z", fill: "currentColor" }) }), qN = () => /* @__PURE__ */ v("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ v("path", { d: "M1.5548 5.88011C1.4304 5.76419 1.26586 5.70108 1.09584 5.70408C0.925831 5.70708 0.76362 5.77595 0.643383 5.89619C0.523147 6.01643 0.454274 6.17864 0.451274 6.34865C0.448274 6.51867 0.511382 6.68321 0.627302 6.80761L5.0023 11.1826C5.12535 11.3055 5.29215 11.3745 5.46605 11.3745C5.63996 11.3745 5.80676 11.3055 5.9298 11.1826L13.3673 3.74511C13.4832 3.62071 13.5463 3.45617 13.5433 3.28615C13.5403 3.11614 13.4715 2.95393 13.3512 2.83369C13.231 2.71345 13.0688 2.64458 12.8988 2.64158C12.7287 2.63858 12.5642 2.70169 12.4398 2.81761L5.46605 9.79049L1.5548 5.87923V5.88011Z", fill: "currentColor" }) }), WN = () => /* @__PURE__ */ v("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ v("path", { d: "M9.60188 14.5546C9.23571 14.5546 8.94276 14.4081 8.64982 14.1884C8.35687 13.8955 8.13717 13.5293 8.13717 13.0899V11.6251C6.52599 11.6251 3.88949 12.0646 2.49803 13.9687C2.27831 14.3349 1.76566 14.5546 1.32625 14.6278H1.10654C0.374181 14.4813 -0.0652364 13.8222 0.00800631 13.0899C0.374181 9.94073 1.47273 7.67041 3.37685 6.13247C4.76833 5.03394 6.37951 4.44805 8.13717 4.30157V2.9101C8.13717 2.25098 8.43012 1.66509 9.01601 1.44538C9.52865 1.29892 10.1145 1.37215 10.5539 1.81157L15.241 6.57189C15.6072 6.86484 15.8269 7.30424 15.9002 7.81689C15.9734 8.32955 15.8269 8.8422 15.4607 9.20837C15.3875 9.28161 15.3143 9.42807 15.1678 9.50132L10.6272 14.1152C10.3342 14.4081 9.96806 14.5546 9.60188 14.5546ZM8.4301 10.1604H9.60188V13.0899L14.2157 8.32955L14.289 8.25631C14.3622 8.18308 14.3622 8.0366 14.3622 7.96336C14.3622 7.81689 14.289 7.74366 14.2157 7.67041L14.1425 7.59718L9.52865 2.9101V5.69306L8.50335 5.7663C6.9654 5.7663 5.50068 6.27894 4.25568 7.23101C2.79096 8.40278 1.83891 10.3069 1.54596 12.7969C3.37685 10.5266 6.59922 10.1604 8.4301 10.1604Z", fill: "#7C3AED" }) }), YN = ({ code: e }) => {
|
|
39705
|
-
const { message: t } =
|
|
39705
|
+
const { message: t } = zn.useApp(), [n, r] = G(!1);
|
|
39706
39706
|
return /* @__PURE__ */ W("div", { className: "rte-skill-share", onClick: (a) => a.stopPropagation(), children: [
|
|
39707
39707
|
/* @__PURE__ */ W("div", { className: "rte-skill-share-head", children: [
|
|
39708
39708
|
/* @__PURE__ */ W("div", { className: "rte-skill-share-title", children: [
|
|
@@ -39873,13 +39873,13 @@ const NN = ["全部技能", "我的技能", "订阅技能", "系统技能"], wN
|
|
|
39873
39873
|
}
|
|
39874
39874
|
);
|
|
39875
39875
|
}, y1 = ve.memo(({ selectedId: e, onSelect: t, onCardClick: n, onAction: r, skillListFetch: l, onHeaderAction: a, showCreateSkill: i = !0, createDisabled: s }) => {
|
|
39876
|
-
const { message: o } =
|
|
39876
|
+
const { message: o } = zn.useApp(), [u, c] = G(0), [d, h] = G(l ? [] : ON), [f, m] = G(!1), [g, b] = G(!!l), y = ee(0), A = $(() => {
|
|
39877
39877
|
b(!0), y.current = window.setTimeout(() => {
|
|
39878
39878
|
b(!1), m(!0);
|
|
39879
39879
|
}, 300);
|
|
39880
39880
|
}, []), k = $(() => {
|
|
39881
39881
|
window.clearTimeout(y.current), b(!1), m(!1);
|
|
39882
|
-
}, []), [D, M] = G(""), [C, w] = G(""), N = tl(), S = N ? () => N : void 0, O =
|
|
39882
|
+
}, []), [D, M] = G(""), [C, w] = G(""), N = tl(), S = N ? () => N : void 0, O = ee(0), I = ee(null), F = ee(0), V = ee(0), P = $(() => {
|
|
39883
39883
|
const T = I.current;
|
|
39884
39884
|
T && (T.classList.add("is-scrolling"), window.clearTimeout(V.current), V.current = window.setTimeout(() => {
|
|
39885
39885
|
T.classList.remove("is-scrolling");
|
|
@@ -40029,7 +40029,7 @@ const Ha = 4, E1 = () => /* @__PURE__ */ v(
|
|
|
40029
40029
|
)
|
|
40030
40030
|
}
|
|
40031
40031
|
), T1 = ve.memo(({ disabled: e, selectedSkill: t, onSkillSelect: n, onSkillCardClick: r, onSkillAction: l, skillListFetch: a, onSkillHeaderAction: i, showCreateSkill: s, skillPanelOpen: o, onSkillPanelOpenChange: u, createDisabled: c, skillPanelOpenDelay: d }) => {
|
|
40032
|
-
const [h, f] = G(!1), m = o !== void 0, [g, b] = G(o ?? !1), y =
|
|
40032
|
+
const [h, f] = G(!1), m = o !== void 0, [g, b] = G(o ?? !1), y = ee(0);
|
|
40033
40033
|
me(() => {
|
|
40034
40034
|
if (m)
|
|
40035
40035
|
return o ? d && d > 0 ? y.current = window.setTimeout(() => b(!0), d) : b(!0) : (window.clearTimeout(y.current), b(!1)), () => window.clearTimeout(y.current);
|
|
@@ -40037,7 +40037,7 @@ const Ha = 4, E1 = () => /* @__PURE__ */ v(
|
|
|
40037
40037
|
const A = m ? g : h, k = $((E) => {
|
|
40038
40038
|
const B = typeof E == "function" ? E(A) : E;
|
|
40039
40039
|
m || f(B), u?.(B);
|
|
40040
|
-
}, [m, A, u]), [D, M] = G(null), C =
|
|
40040
|
+
}, [m, A, u]), [D, M] = G(null), C = ee(null), w = ee(null), N = tl(), S = $(() => (C.current?.closest(".rich-text-editor") ?? C.current)?.getBoundingClientRect() ?? null, []), O = $(() => {
|
|
40041
40041
|
const E = S();
|
|
40042
40042
|
if (!E) return;
|
|
40043
40043
|
const B = Math.max(0, window.innerHeight - E.bottom - Ha * 2), U = Math.max(0, E.top - Ha * 2), K = (w.current?.scrollHeight ?? 0) > B && U > B, T = K ? U : B, ie = (w.current?.offsetParent ?? N)?.getBoundingClientRect(), R = ie?.left ?? 0, he = ie?.top ?? 0, ye = E.left - R;
|
|
@@ -40154,7 +40154,7 @@ const GN = 10 * 1024 * 1024, KN = 50 * 1024 * 1024, QN = "图片大小不能超
|
|
|
40154
40154
|
}
|
|
40155
40155
|
return { accepted: a, imageOversize: n, totalExceeded: s };
|
|
40156
40156
|
}, C1 = ve.memo(({ files: e, onChange: t, disabled: n, onAssetLibraryClick: r }) => {
|
|
40157
|
-
const { message: l } =
|
|
40157
|
+
const { message: l } = zn.useApp(), a = ee(null), [i, s] = G(!1), o = $(
|
|
40158
40158
|
(d) => {
|
|
40159
40159
|
const h = Array.from(d.target.files ?? []);
|
|
40160
40160
|
if (d.target.value = "", h.length === 0) return;
|
|
@@ -40335,7 +40335,7 @@ function Eh(e) {
|
|
|
40335
40335
|
return e.offsetWidth + (parseFloat(t.marginLeft) || 0) + (parseFloat(t.marginRight) || 0);
|
|
40336
40336
|
}
|
|
40337
40337
|
const A1 = ({ items: e, measureKey: t, disabled: n }) => {
|
|
40338
|
-
const r =
|
|
40338
|
+
const r = ee(null), l = ee(null), a = ee(/* @__PURE__ */ new Map()), i = ee(/* @__PURE__ */ new Map()), [s, o] = G(e.length), [u, c] = G(!1), [d, h] = G(0), [f, m] = G(() => /* @__PURE__ */ new Set()), g = ee(/* @__PURE__ */ new Set()), b = ee(/* @__PURE__ */ new Map()), y = Pe(
|
|
40339
40339
|
() => [...e.filter((O) => O.pinned), ...e.filter((O) => !O.pinned)],
|
|
40340
40340
|
[e]
|
|
40341
40341
|
), A = Pe(() => y.filter((O) => O.pinned).length, [y]), k = () => c(!1), D = (O, I) => typeof O.node == "function" ? O.node({ close: k, inMenu: I }) : O.node, M = (O) => {
|
|
@@ -40756,7 +40756,7 @@ const a9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40756
40756
|
)
|
|
40757
40757
|
] });
|
|
40758
40758
|
}, _1 = ve.memo(({ files: e, onChange: t, reports: n, onReportRemove: r, fileUrls: l, onFileUrlRemove: a }) => {
|
|
40759
|
-
const i =
|
|
40759
|
+
const i = ee(null), [s, o] = G({
|
|
40760
40760
|
showLeft: !1,
|
|
40761
40761
|
showRight: !1
|
|
40762
40762
|
}), u = $(() => {
|
|
@@ -40805,7 +40805,7 @@ const a9 = () => /* @__PURE__ */ W("svg", { width: "16", height: "16", viewBox:
|
|
|
40805
40805
|
});
|
|
40806
40806
|
_1.displayName = "FooterFilesList";
|
|
40807
40807
|
const Th = 9999, d9 = ({ messageRef: e }) => {
|
|
40808
|
-
const { message: t } =
|
|
40808
|
+
const { message: t } = zn.useApp();
|
|
40809
40809
|
return e.current = t, null;
|
|
40810
40810
|
}, Vo = ve.memo(({ title: e, onClose: t, exitTip: n = "点击退出技能" }) => (
|
|
40811
40811
|
// zIndex 10000 盖过技能面板(SkillButton 弹层 9999),否则面板打开时 hover tag 的退出气泡
|
|
@@ -40905,45 +40905,45 @@ const B9 = (e) => {
|
|
|
40905
40905
|
scrollContainerRef: Te,
|
|
40906
40906
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
40907
40907
|
autoCollapseOnScroll: Oe
|
|
40908
|
-
} = e, [Me, tt] = G({}), [Ze, Ft] = G({}), [Ge, St] = G(u ?? []), ft =
|
|
40908
|
+
} = e, [Me, tt] = G({}), [Ze, Ft] = G({}), [Ge, St] = G(u ?? []), ft = ee(c);
|
|
40909
40909
|
ft.current = c;
|
|
40910
|
-
const sn =
|
|
40910
|
+
const sn = ee(d);
|
|
40911
40911
|
sn.current = d;
|
|
40912
|
-
const Ht =
|
|
40912
|
+
const Ht = ee(f);
|
|
40913
40913
|
Ht.current = f;
|
|
40914
|
-
const Wu =
|
|
40914
|
+
const Wu = ee(m);
|
|
40915
40915
|
Wu.current = m;
|
|
40916
|
-
const [M1, R1] = G({}), [fa, Ar] = G(kN), [Yu, ju] = G(() => /* @__PURE__ */ new Set()), [ha, Gu] = G(() => /* @__PURE__ */ new Set()), [pa, D1] = G(() => /* @__PURE__ */ new Set()), [Ku, al] = G({}), [
|
|
40916
|
+
const [M1, R1] = G({}), [fa, Ar] = G(kN), [Yu, ju] = G(() => /* @__PURE__ */ new Set()), [ha, Gu] = G(() => /* @__PURE__ */ new Set()), [pa, D1] = G(() => /* @__PURE__ */ new Set()), [Ku, al] = G({}), [Gn, L1] = G(null), [P1, Qu] = G(null), Wi = ee(null);
|
|
40917
40917
|
ze(() => {
|
|
40918
|
-
const H = Wi.current?.ownerDocument ?? document,
|
|
40919
|
-
return
|
|
40920
|
-
|
|
40918
|
+
const H = Wi.current?.ownerDocument ?? document, Z = H.createElement("div");
|
|
40919
|
+
return Z.className = "rte-message-host", Z.style.cssText = "position:fixed;inset:0;z-index:2000000000;pointer-events:none;", H.body.appendChild(Z), Qu(Z), () => {
|
|
40920
|
+
Z.remove(), Qu(null);
|
|
40921
40921
|
};
|
|
40922
40922
|
}, []);
|
|
40923
40923
|
const B1 = $(
|
|
40924
|
-
() => le?.() ??
|
|
40925
|
-
[le,
|
|
40926
|
-
), Yi =
|
|
40927
|
-
F1(
|
|
40928
|
-
}, []),
|
|
40924
|
+
() => le?.() ?? Gn ?? document.body,
|
|
40925
|
+
[le, Gn]
|
|
40926
|
+
), Yi = ee(null), [ma, F1] = G(null), H1 = $((H, Z) => {
|
|
40927
|
+
F1(Z ? H : null);
|
|
40928
|
+
}, []), yn = ee(null), [U1, z1] = G(58), [Kn, Xu] = G(58), [ji, Ju] = G(!1), Zu = ee(0), ec = ee(qe), [ba, tc] = G(!1);
|
|
40929
40929
|
ec.current !== qe && (ec.current = qe, Zu.current = (typeof performance < "u" ? performance.now() : Date.now()) + an, tc(!0)), me(() => {
|
|
40930
40930
|
if (!ba) return;
|
|
40931
40931
|
const H = setTimeout(() => tc(!1), an);
|
|
40932
40932
|
return () => clearTimeout(H);
|
|
40933
40933
|
}, [ba, qe, an]);
|
|
40934
|
-
const [Qn, nc] = G(""), il =
|
|
40934
|
+
const [Qn, nc] = G(""), il = ee(null), Gi = ee(null), [sl, rc] = G(0), [Ki, lc] = G(0), Qi = ee(!1);
|
|
40935
40935
|
me(() => {
|
|
40936
|
-
if (!u || u.length === Ge.length && u.every((ae,
|
|
40937
|
-
const re = Ge[
|
|
40936
|
+
if (!u || u.length === Ge.length && u.every((ae, oe) => {
|
|
40937
|
+
const re = Ge[oe];
|
|
40938
40938
|
return re && ae.name === re.name && ae.size === re.size && ae.lastModified === re.lastModified;
|
|
40939
40939
|
})) return;
|
|
40940
|
-
const
|
|
40941
|
-
if (u.reduce((ae,
|
|
40940
|
+
const Z = 50 * 1024 * 1024;
|
|
40941
|
+
if (u.reduce((ae, oe) => ae + oe.size, 0) > Z) {
|
|
40942
40942
|
const ae = [];
|
|
40943
|
-
let
|
|
40943
|
+
let oe = 0;
|
|
40944
40944
|
for (const re of u) {
|
|
40945
|
-
if (
|
|
40946
|
-
ae.push(re),
|
|
40945
|
+
if (oe + re.size > Z) break;
|
|
40946
|
+
ae.push(re), oe += re.size;
|
|
40947
40947
|
}
|
|
40948
40948
|
St(ae);
|
|
40949
40949
|
} else
|
|
@@ -40952,25 +40952,25 @@ const B9 = (e) => {
|
|
|
40952
40952
|
const kt = Pe(
|
|
40953
40953
|
() => SN(t, fa, Yu),
|
|
40954
40954
|
[t, fa, Yu]
|
|
40955
|
-
), Xi =
|
|
40955
|
+
), Xi = ee(null), ac = ee(!1);
|
|
40956
40956
|
me(() => {
|
|
40957
|
-
const H = t.find((
|
|
40957
|
+
const H = t.find((Z) => Z.type === "tag")?.text ?? null;
|
|
40958
40958
|
if (!ac.current) {
|
|
40959
40959
|
ac.current = !0, Xi.current = H;
|
|
40960
40960
|
return;
|
|
40961
40961
|
}
|
|
40962
|
-
Xi.current !== H && (Xi.current = H, St((
|
|
40962
|
+
Xi.current !== H && (Xi.current = H, St((Z) => Z.length === 0 ? Z : []), ft.current.length && sn.current?.([]), Ht.current.length && Wu.current?.([]));
|
|
40963
40963
|
}, [t]);
|
|
40964
40964
|
const Xn = Pe(() => {
|
|
40965
|
-
const H = t.find((
|
|
40965
|
+
const H = t.find((Z) => Z.type === "tag")?.text;
|
|
40966
40966
|
if (!(!H || !U))
|
|
40967
|
-
return U.find((
|
|
40967
|
+
return U.find((Z) => Z.label === H);
|
|
40968
40968
|
}, [t, U]), Ji = Pe(
|
|
40969
40969
|
() => t.some((H) => H.type === "tag"),
|
|
40970
40970
|
[t]
|
|
40971
40971
|
), V1 = he ?? !Ji;
|
|
40972
40972
|
aN(i, Me, tt, kt, Ze, Ft);
|
|
40973
|
-
const ol =
|
|
40973
|
+
const ol = ee(/* @__PURE__ */ new Map()), ic = ee(""), sc = (t.find((H) => H.type === "tag")?.text || "") + "||" + t.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|");
|
|
40974
40974
|
ic.current !== sc && (ic.current = sc, ol.current = /* @__PURE__ */ new Map());
|
|
40975
40975
|
const [yt, ul] = G(null), [Kt, Jn] = G(!1);
|
|
40976
40976
|
me(() => {
|
|
@@ -41001,15 +41001,15 @@ const B9 = (e) => {
|
|
|
41001
41001
|
markdownAnalyze: E,
|
|
41002
41002
|
markdownNameAnalyze: B,
|
|
41003
41003
|
reportNameResolve: F
|
|
41004
|
-
}), hc = (H) => typeof H != "string" ? !H : H.replace(/<[^>]*>/g, "").replace(/ /gi, "").replace(/\s/g, "").replace(/[]/g, "").trim() === "", es = $((H,
|
|
41005
|
-
tt((ae) => ({ ...ae, [H]:
|
|
41006
|
-
const
|
|
41007
|
-
if (
|
|
41008
|
-
const ae =
|
|
41004
|
+
}), hc = (H) => typeof H != "string" ? !H : H.replace(/<[^>]*>/g, "").replace(/ /gi, "").replace(/\s/g, "").replace(/[]/g, "").trim() === "", es = $((H, Z) => {
|
|
41005
|
+
tt((ae) => ({ ...ae, [H]: Z })), cc(H);
|
|
41006
|
+
const se = /^(.+)__module_\d+$/.exec(H);
|
|
41007
|
+
if (se && hc(Z)) {
|
|
41008
|
+
const ae = se[1];
|
|
41009
41009
|
kt.find(
|
|
41010
41010
|
(re) => re.key === ae && re.type === "markdown-module"
|
|
41011
41011
|
) && tt((re) => {
|
|
41012
|
-
const pe = { ...re, [H]:
|
|
41012
|
+
const pe = { ...re, [H]: Z };
|
|
41013
41013
|
return Object.keys(pe).filter((ge) => ge.startsWith(`${ae}__module_`)).every((ge) => hc(pe[ge])) && (Ar((ge) => {
|
|
41014
41014
|
if (!ge.markdownModules[ae]) return ge;
|
|
41015
41015
|
const He = { ...ge.markdownModules };
|
|
@@ -41018,40 +41018,40 @@ const B9 = (e) => {
|
|
|
41018
41018
|
});
|
|
41019
41019
|
return;
|
|
41020
41020
|
}
|
|
41021
|
-
if (typeof
|
|
41022
|
-
const ae = kt.find((
|
|
41023
|
-
ae?.type === "report-url" ? (Ar((
|
|
41024
|
-
if (!
|
|
41025
|
-
const re = { ...
|
|
41026
|
-
return delete re[H], { ...
|
|
41027
|
-
}), al((
|
|
41028
|
-
if (!(H in
|
|
41029
|
-
const re = { ...
|
|
41021
|
+
if (typeof Z == "string" && Z.trim() === "") {
|
|
41022
|
+
const ae = kt.find((oe) => oe.key === H);
|
|
41023
|
+
ae?.type === "report-url" ? (Ar((oe) => {
|
|
41024
|
+
if (!oe.reportModules[H]) return oe;
|
|
41025
|
+
const re = { ...oe.reportModules };
|
|
41026
|
+
return delete re[H], { ...oe, reportModules: re };
|
|
41027
|
+
}), al((oe) => {
|
|
41028
|
+
if (!(H in oe)) return oe;
|
|
41029
|
+
const re = { ...oe };
|
|
41030
41030
|
return delete re[H], re;
|
|
41031
|
-
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") && Ar((
|
|
41032
|
-
if (!
|
|
41033
|
-
const re = { ...
|
|
41034
|
-
return delete re[H], { ...
|
|
41031
|
+
})) : (ae?.type === "markdown" || ae?.type === "markdown-name") && Ar((oe) => {
|
|
41032
|
+
if (!oe.markdownModules[H]) return oe;
|
|
41033
|
+
const re = { ...oe.markdownModules };
|
|
41034
|
+
return delete re[H], { ...oe, markdownModules: re };
|
|
41035
41035
|
});
|
|
41036
41036
|
}
|
|
41037
41037
|
}, [cc, kt]), K1 = $(
|
|
41038
|
-
(H,
|
|
41039
|
-
Ft((
|
|
41038
|
+
(H, Z) => {
|
|
41039
|
+
Ft((se) => ({ ...se, [H]: Z }));
|
|
41040
41040
|
},
|
|
41041
41041
|
[]
|
|
41042
41042
|
), Q1 = $(
|
|
41043
|
-
(H,
|
|
41043
|
+
(H, Z) => R1((se) => ({ ...se, [H]: Z })),
|
|
41044
41044
|
[]
|
|
41045
41045
|
), X1 = $((H) => {
|
|
41046
|
-
al((
|
|
41047
|
-
if (!(H in
|
|
41048
|
-
const
|
|
41049
|
-
if (!
|
|
41050
|
-
const Se = { ...
|
|
41046
|
+
al((Z) => {
|
|
41047
|
+
if (!(H in Z)) return Z;
|
|
41048
|
+
const se = H.match(/^(.+)_(\d+)$/);
|
|
41049
|
+
if (!se) {
|
|
41050
|
+
const Se = { ...Z };
|
|
41051
41051
|
return delete Se[H], Se;
|
|
41052
41052
|
}
|
|
41053
|
-
const [, ae,
|
|
41054
|
-
for (const [Se, ge] of Object.entries(
|
|
41053
|
+
const [, ae, oe] = se, re = parseInt(oe, 10), pe = {};
|
|
41054
|
+
for (const [Se, ge] of Object.entries(Z)) {
|
|
41055
41055
|
if (Se === H) continue;
|
|
41056
41056
|
const He = Se.match(/^(.+)_(\d+)$/);
|
|
41057
41057
|
if (He && He[1] === ae) {
|
|
@@ -41062,59 +41062,59 @@ const B9 = (e) => {
|
|
|
41062
41062
|
}
|
|
41063
41063
|
return pe;
|
|
41064
41064
|
});
|
|
41065
|
-
}, []), J1 = $((H,
|
|
41066
|
-
al((
|
|
41067
|
-
const ae = `${H}_`,
|
|
41068
|
-
for (const pe of Object.keys(
|
|
41065
|
+
}, []), J1 = $((H, Z) => {
|
|
41066
|
+
al((se) => {
|
|
41067
|
+
const ae = `${H}_`, oe = [];
|
|
41068
|
+
for (const pe of Object.keys(se)) {
|
|
41069
41069
|
if (!pe.startsWith(ae)) continue;
|
|
41070
41070
|
const Se = pe.slice(ae.length);
|
|
41071
|
-
/^\d+$/.test(Se) &&
|
|
41072
|
-
}
|
|
41073
|
-
if (
|
|
41074
|
-
const re = { ...
|
|
41075
|
-
for (const [pe] of
|
|
41076
|
-
for (const [pe, Se] of
|
|
41077
|
-
if (pe ===
|
|
41078
|
-
const ge = pe >
|
|
41071
|
+
/^\d+$/.test(Se) && oe.push([Number(Se), se[pe]]);
|
|
41072
|
+
}
|
|
41073
|
+
if (oe.length === 0) return se;
|
|
41074
|
+
const re = { ...se };
|
|
41075
|
+
for (const [pe] of oe) delete re[`${H}_${pe}`];
|
|
41076
|
+
for (const [pe, Se] of oe) {
|
|
41077
|
+
if (pe === Z) continue;
|
|
41078
|
+
const ge = pe > Z ? pe - 1 : pe;
|
|
41079
41079
|
re[`${H}_${ge}`] = Se;
|
|
41080
41080
|
}
|
|
41081
41081
|
return re;
|
|
41082
41082
|
});
|
|
41083
41083
|
}, []), ts = $(
|
|
41084
|
-
async (H,
|
|
41085
|
-
const ae = await va(H,
|
|
41086
|
-
return ae.status === "success" && al((
|
|
41084
|
+
async (H, Z, se) => {
|
|
41085
|
+
const ae = await va(H, Z, se);
|
|
41086
|
+
return ae.status === "success" && al((oe) => ({ ...oe, [H]: ae.name })), ae;
|
|
41087
41087
|
},
|
|
41088
41088
|
[va]
|
|
41089
41089
|
), Z1 = $(
|
|
41090
|
-
(H,
|
|
41091
|
-
ga(H,
|
|
41092
|
-
|
|
41090
|
+
(H, Z) => {
|
|
41091
|
+
ga(H, Z).then((se) => {
|
|
41092
|
+
se.status === "success" && Ar((ae) => ({
|
|
41093
41093
|
...ae,
|
|
41094
|
-
reportModules: { ...ae.reportModules, [H]:
|
|
41094
|
+
reportModules: { ...ae.reportModules, [H]: se.modules }
|
|
41095
41095
|
}));
|
|
41096
41096
|
});
|
|
41097
41097
|
},
|
|
41098
41098
|
[ga]
|
|
41099
41099
|
), ns = $(
|
|
41100
|
-
async (H,
|
|
41101
|
-
Gu((
|
|
41102
|
-
const ae = new Set(
|
|
41100
|
+
async (H, Z) => {
|
|
41101
|
+
Gu((se) => {
|
|
41102
|
+
const ae = new Set(se);
|
|
41103
41103
|
return ae.add(H), ae;
|
|
41104
41104
|
});
|
|
41105
41105
|
try {
|
|
41106
|
-
const
|
|
41107
|
-
|
|
41108
|
-
}), ae = ga(H,
|
|
41109
|
-
|
|
41106
|
+
const se = va(H, Z, "report-url").then((oe) => {
|
|
41107
|
+
oe.status === "success" && al((re) => ({ ...re, [H]: oe.name }));
|
|
41108
|
+
}), ae = ga(H, Z).then((oe) => {
|
|
41109
|
+
oe.status === "success" ? (Ar((re) => ({
|
|
41110
41110
|
...re,
|
|
41111
|
-
reportModules: { ...re.reportModules, [H]:
|
|
41111
|
+
reportModules: { ...re.reportModules, [H]: oe.modules }
|
|
41112
41112
|
})), tt((re) => {
|
|
41113
41113
|
const pe = { ...re };
|
|
41114
|
-
return
|
|
41114
|
+
return oe.modules.forEach((Se, ge) => {
|
|
41115
41115
|
pe[`${H}__module_${ge}`] = Se.content;
|
|
41116
41116
|
}), pe;
|
|
41117
|
-
})) :
|
|
41117
|
+
})) : oe.status === "failed" && (es(H, ""), tt((re) => {
|
|
41118
41118
|
let pe = !1;
|
|
41119
41119
|
const Se = { ...re };
|
|
41120
41120
|
for (const ge of Object.keys(Se))
|
|
@@ -41122,37 +41122,37 @@ const B9 = (e) => {
|
|
|
41122
41122
|
return pe ? Se : re;
|
|
41123
41123
|
}));
|
|
41124
41124
|
});
|
|
41125
|
-
await Promise.all([
|
|
41125
|
+
await Promise.all([se, ae]);
|
|
41126
41126
|
} finally {
|
|
41127
|
-
Gu((
|
|
41128
|
-
if (!
|
|
41129
|
-
const ae = new Set(
|
|
41127
|
+
Gu((se) => {
|
|
41128
|
+
if (!se.has(H)) return se;
|
|
41129
|
+
const ae = new Set(se);
|
|
41130
41130
|
return ae.delete(H), ae;
|
|
41131
41131
|
});
|
|
41132
41132
|
}
|
|
41133
41133
|
},
|
|
41134
41134
|
[ga, va, es]
|
|
41135
|
-
), eb = $((H,
|
|
41136
|
-
D1((
|
|
41137
|
-
const ae = new Set(
|
|
41138
|
-
return
|
|
41135
|
+
), eb = $((H, Z) => {
|
|
41136
|
+
D1((se) => {
|
|
41137
|
+
const ae = new Set(se);
|
|
41138
|
+
return Z ? ae.add(H) : ae.delete(H), ae.size === se.size && [...ae].every((oe) => se.has(oe)) ? se : ae;
|
|
41139
41139
|
});
|
|
41140
41140
|
}, []);
|
|
41141
41141
|
me(() => {
|
|
41142
41142
|
if (!i || t.length === 0) return;
|
|
41143
|
-
const H = t.filter((
|
|
41144
|
-
if (!(H.length === 0 &&
|
|
41145
|
-
for (const
|
|
41146
|
-
const ae =
|
|
41147
|
-
if (!
|
|
41148
|
-
const re = Array.isArray(
|
|
41143
|
+
const H = t.filter((se) => se.type === "report-url" && se.key), Z = t.filter((se) => se.type === "multi-variable-select" && se.key);
|
|
41144
|
+
if (!(H.length === 0 && Z.length === 0)) {
|
|
41145
|
+
for (const se of H) {
|
|
41146
|
+
const ae = se.key, oe = i[ae] ?? i[`${ae}__url`];
|
|
41147
|
+
if (!oe || typeof oe == "string" && !oe.trim()) continue;
|
|
41148
|
+
const re = Array.isArray(oe) ? String(oe[0] ?? "") : String(oe);
|
|
41149
41149
|
re && ol.current.get(ae) !== re && (ol.current.set(ae, re), setTimeout(() => {
|
|
41150
41150
|
ns(ae, re);
|
|
41151
41151
|
}, 100));
|
|
41152
41152
|
}
|
|
41153
|
-
for (const
|
|
41154
|
-
const ae =
|
|
41155
|
-
!Array.isArray(
|
|
41153
|
+
for (const se of Z) {
|
|
41154
|
+
const ae = se.key, oe = i[ae];
|
|
41155
|
+
!Array.isArray(oe) || oe.length === 0 || oe.forEach((re, pe) => {
|
|
41156
41156
|
const Se = typeof re == "string" ? re.trim() : "";
|
|
41157
41157
|
if (!Se) return;
|
|
41158
41158
|
const ge = `${ae}_${pe}`;
|
|
@@ -41164,14 +41164,14 @@ const B9 = (e) => {
|
|
|
41164
41164
|
}
|
|
41165
41165
|
}, [i, t, ns, ts]);
|
|
41166
41166
|
const ya = $(
|
|
41167
|
-
async (H,
|
|
41168
|
-
const
|
|
41167
|
+
async (H, Z, se) => {
|
|
41168
|
+
const oe = Date.now();
|
|
41169
41169
|
ju((re) => {
|
|
41170
41170
|
const pe = new Set(re);
|
|
41171
41171
|
return pe.add(H), pe;
|
|
41172
41172
|
});
|
|
41173
41173
|
try {
|
|
41174
|
-
const re = await
|
|
41174
|
+
const re = await se(H, Z), pe = Date.now() - oe;
|
|
41175
41175
|
pe < 500 && await new Promise((Se) => setTimeout(Se, 500 - pe)), re && (Ar((Se) => ({
|
|
41176
41176
|
...Se,
|
|
41177
41177
|
markdownModules: { ...Se.markdownModules, [H]: re.modules }
|
|
@@ -41191,10 +41191,10 @@ const B9 = (e) => {
|
|
|
41191
41191
|
},
|
|
41192
41192
|
[]
|
|
41193
41193
|
), tb = $(
|
|
41194
|
-
(H,
|
|
41194
|
+
(H, Z) => ya(H, Z, dc),
|
|
41195
41195
|
[ya, dc]
|
|
41196
41196
|
), nb = $(
|
|
41197
|
-
(H,
|
|
41197
|
+
(H, Z) => ya(H, Z, fc),
|
|
41198
41198
|
[ya, fc]
|
|
41199
41199
|
);
|
|
41200
41200
|
me(() => {
|
|
@@ -41208,7 +41208,7 @@ const B9 = (e) => {
|
|
|
41208
41208
|
}, [Ge, o]);
|
|
41209
41209
|
const rs = $(async () => {
|
|
41210
41210
|
if (r || l || ha.size > 0 || pa.size > 0 || c.some((re) => re.status === "parsing")) return;
|
|
41211
|
-
const H = Ji ? 1 : yt ? 2 : Kt ? 3 : void 0,
|
|
41211
|
+
const H = Ji ? 1 : yt ? 2 : Kt ? 3 : void 0, Z = H === void 0 ? void 0 : {
|
|
41212
41212
|
...yt ? { skillCode: yt.id, skillName: yt.title } : {},
|
|
41213
41213
|
generateImage: H
|
|
41214
41214
|
};
|
|
@@ -41218,14 +41218,14 @@ const B9 = (e) => {
|
|
|
41218
41218
|
const Se = re;
|
|
41219
41219
|
if (Ge.length || pe.length || f.length) {
|
|
41220
41220
|
const ge = new FormData();
|
|
41221
|
-
Se && ge.append("prompt", Se), Ge.forEach((He) => ge.append("files", He)), pe.forEach((He) => ge.append("reportUrls", He.url)), f.forEach((He) => ge.append("fileUrls", He.url)), n(ge, Se,
|
|
41221
|
+
Se && ge.append("prompt", Se), Ge.forEach((He) => ge.append("files", He)), pe.forEach((He) => ge.append("reportUrls", He.url)), f.forEach((He) => ge.append("fileUrls", He.url)), n(ge, Se, Z);
|
|
41222
41222
|
} else
|
|
41223
|
-
n(re, Se,
|
|
41223
|
+
n(re, Se, Z);
|
|
41224
41224
|
nc(""), St([]), c.length && d?.([]), f.length && m?.([]);
|
|
41225
41225
|
return;
|
|
41226
41226
|
}
|
|
41227
41227
|
if (!uc(Me, Ze, Nr)) return;
|
|
41228
|
-
const { formData:
|
|
41228
|
+
const { formData: se, fullPrompt: ae, hasContent: oe } = await xN({
|
|
41229
41229
|
config: kt,
|
|
41230
41230
|
values: Me,
|
|
41231
41231
|
files: Ze,
|
|
@@ -41234,7 +41234,7 @@ const B9 = (e) => {
|
|
|
41234
41234
|
excludedKeys: Nr,
|
|
41235
41235
|
hiddenSeparatorIndexes: Zi
|
|
41236
41236
|
});
|
|
41237
|
-
|
|
41237
|
+
oe && (n(se, ae, Z), St([]));
|
|
41238
41238
|
}, [
|
|
41239
41239
|
t.length,
|
|
41240
41240
|
Qn,
|
|
@@ -41264,52 +41264,52 @@ const B9 = (e) => {
|
|
|
41264
41264
|
},
|
|
41265
41265
|
[rs]
|
|
41266
41266
|
), lb = Pe(() => ha.size > 0 || pa.size > 0 ? !1 : t.length === 0 ? Qn.trim().length > 0 : sN(kt, Me, Ze, Nr), [ha, pa, t.length, Qn, kt, Me, Ze, Nr]), ls = $(() => {
|
|
41267
|
-
const H = Gi.current,
|
|
41268
|
-
if (!H || !
|
|
41269
|
-
const
|
|
41270
|
-
if (
|
|
41271
|
-
const ae = H.getBoundingClientRect().left,
|
|
41272
|
-
return rc(pe), lc(Math.max(0, Math.round(re.top -
|
|
41267
|
+
const H = Gi.current, Z = H?.querySelector(".tag-node");
|
|
41268
|
+
if (!H || !Z) return !1;
|
|
41269
|
+
const se = Z.getClientRects();
|
|
41270
|
+
if (se.length === 0) return !1;
|
|
41271
|
+
const ae = H.getBoundingClientRect().left, oe = se[0], re = se[se.length - 1], pe = Math.max(0, re.right - ae - 2);
|
|
41272
|
+
return rc(pe), lc(Math.max(0, Math.round(re.top - oe.top))), pe > 0;
|
|
41273
41273
|
}, []);
|
|
41274
41274
|
ze(() => {
|
|
41275
41275
|
if (!yt && !Kt) {
|
|
41276
41276
|
rc(0), lc(0);
|
|
41277
41277
|
return;
|
|
41278
41278
|
}
|
|
41279
|
-
let H = !1,
|
|
41279
|
+
let H = !1, Z = 0, se = 0;
|
|
41280
41280
|
const ae = () => {
|
|
41281
|
-
H || ls() || ++
|
|
41281
|
+
H || ls() || ++se >= 30 || (Z = requestAnimationFrame(ae));
|
|
41282
41282
|
};
|
|
41283
41283
|
ae();
|
|
41284
|
-
const
|
|
41285
|
-
if (!
|
|
41284
|
+
const oe = Gi.current;
|
|
41285
|
+
if (!oe || typeof ResizeObserver > "u")
|
|
41286
41286
|
return () => {
|
|
41287
|
-
H = !0,
|
|
41287
|
+
H = !0, Z && cancelAnimationFrame(Z);
|
|
41288
41288
|
};
|
|
41289
41289
|
const re = new ResizeObserver(() => ls());
|
|
41290
|
-
return re.observe(
|
|
41291
|
-
H = !0,
|
|
41290
|
+
return re.observe(oe), () => {
|
|
41291
|
+
H = !0, Z && cancelAnimationFrame(Z), re.disconnect();
|
|
41292
41292
|
};
|
|
41293
41293
|
}, [yt, Kt, t.length, ls]), me(() => {
|
|
41294
41294
|
!yt && !Kt || t.length > 0 || il.current?.focus();
|
|
41295
41295
|
}, [yt, Kt, t.length]);
|
|
41296
41296
|
const [ab, pc] = G(!1);
|
|
41297
41297
|
me(() => {
|
|
41298
|
-
const H = (
|
|
41299
|
-
const
|
|
41300
|
-
if (!
|
|
41301
|
-
const ae =
|
|
41302
|
-
|
|
41298
|
+
const H = (Z) => {
|
|
41299
|
+
const se = Wi.current;
|
|
41300
|
+
if (!se) return;
|
|
41301
|
+
const ae = Z.target;
|
|
41302
|
+
se.contains(ae) || Gn && Gn.contains(ae) ? pc(!0) : pc(!1);
|
|
41303
41303
|
};
|
|
41304
41304
|
return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
|
|
41305
|
-
}, [
|
|
41305
|
+
}, [Gn]);
|
|
41306
41306
|
const mc = $(() => {
|
|
41307
41307
|
requestAnimationFrame(() => {
|
|
41308
41308
|
if (t.length === 0) {
|
|
41309
41309
|
il.current?.focus();
|
|
41310
41310
|
return;
|
|
41311
41311
|
}
|
|
41312
|
-
|
|
41312
|
+
yn.current?.querySelector(
|
|
41313
41313
|
'textarea:not([disabled]), input:not([disabled]):not([type="hidden"]), [contenteditable="true"]'
|
|
41314
41314
|
)?.focus();
|
|
41315
41315
|
});
|
|
@@ -41318,7 +41318,9 @@ const B9 = (e) => {
|
|
|
41318
41318
|
}, [de, mc]);
|
|
41319
41319
|
ze(() => {
|
|
41320
41320
|
const H = il.current;
|
|
41321
|
-
|
|
41321
|
+
if (!H) return;
|
|
41322
|
+
const Z = yn.current, se = Z?.scrollTop ?? 0;
|
|
41323
|
+
H.style.height = "auto", H.style.height = `${H.scrollHeight}px`, Z && Z.scrollTop !== se && (Z.scrollTop = se), sl > 0 && (H.style.textIndent = "0px", H.offsetWidth, H.style.textIndent = `${sl}px`);
|
|
41322
41324
|
}, [Qn, sl, Ki]);
|
|
41323
41325
|
const sb = {
|
|
41324
41326
|
width: g,
|
|
@@ -41366,16 +41368,16 @@ const B9 = (e) => {
|
|
|
41366
41368
|
willChange: "max-height, min-height"
|
|
41367
41369
|
}, yc = $(() => {
|
|
41368
41370
|
qe && j && vn?.(!1), il.current?.focus();
|
|
41369
|
-
}, [qe, j, vn]), Ec =
|
|
41370
|
-
const H =
|
|
41371
|
-
!H || !
|
|
41371
|
+
}, [qe, j, vn]), Ec = ee(0), Tc = ee(!0), Cc = $(() => {
|
|
41372
|
+
const H = yn.current, Z = document.activeElement;
|
|
41373
|
+
!H || !Z || !H.contains(Z) || (Ec.current = typeof performance < "u" ? performance.now() : Date.now(), Tc.current = H.scrollHeight - H.scrollTop - H.clientHeight <= 4);
|
|
41372
41374
|
}, []), Ea = $(() => {
|
|
41373
|
-
const H =
|
|
41375
|
+
const H = yn.current;
|
|
41374
41376
|
if (!(!H || (typeof performance < "u" ? performance.now() : Date.now()) < Zu.current)) {
|
|
41375
41377
|
if (!qe) {
|
|
41376
|
-
const
|
|
41378
|
+
const se = H.style.maxHeight;
|
|
41377
41379
|
H.style.maxHeight = "none";
|
|
41378
|
-
const ae = H.offsetHeight,
|
|
41380
|
+
const ae = H.offsetHeight, oe = H.scrollHeight, re = H.parentElement;
|
|
41379
41381
|
let pe = 1 / 0;
|
|
41380
41382
|
if (re) {
|
|
41381
41383
|
let He = 0;
|
|
@@ -41384,20 +41386,20 @@ const B9 = (e) => {
|
|
|
41384
41386
|
const Ue = getComputedStyle(re), Zn = parseFloat(Ue.paddingTop) + parseFloat(Ue.paddingBottom);
|
|
41385
41387
|
pe = Math.max(0, re.clientHeight - He - Zn);
|
|
41386
41388
|
}
|
|
41387
|
-
H.style.maxHeight =
|
|
41388
|
-
const Se = Math.max(Math.ceil(
|
|
41389
|
+
H.style.maxHeight = se;
|
|
41390
|
+
const Se = Math.max(Math.ceil(oe || 0), Math.ceil(ae || 0)), ge = Math.min(Se, Math.ceil(pe));
|
|
41389
41391
|
ge > 0 && Xu((He) => He === ge ? He : ge);
|
|
41390
41392
|
}
|
|
41391
41393
|
try {
|
|
41392
|
-
const
|
|
41393
|
-
|
|
41394
|
-
const re = Array.from(
|
|
41394
|
+
const se = H.getBoundingClientRect(), ae = H.querySelector(".rte-config-fade") ?? H, oe = document.createRange();
|
|
41395
|
+
oe.selectNodeContents(ae);
|
|
41396
|
+
const re = Array.from(oe.getClientRects()).filter((pe) => pe.height > 0);
|
|
41395
41397
|
if (re.length > 0) {
|
|
41396
41398
|
const pe = Math.min(...re.map((er) => er.top)), Se = parseFloat(getComputedStyle(H).lineHeight) || 34, ge = Math.max(Se, 1), He = pe + ge * 0.5;
|
|
41397
41399
|
let Ue = 0;
|
|
41398
41400
|
for (const er of re)
|
|
41399
41401
|
er.top < He && (Ue = Math.max(Ue, er.bottom));
|
|
41400
|
-
const Zn = Ue > 0 ? Math.ceil(Ue -
|
|
41402
|
+
const Zn = Ue > 0 ? Math.ceil(Ue - se.top) : 0, Ta = getComputedStyle(H), ub = parseFloat(Ta.paddingTop) || 0, cb = Math.ceil(ub + ge), as = Math.max(Zn, cb);
|
|
41401
41403
|
as > 0 && z1((er) => er === as ? er : as);
|
|
41402
41404
|
}
|
|
41403
41405
|
} catch {
|
|
@@ -41406,28 +41408,28 @@ const B9 = (e) => {
|
|
|
41406
41408
|
}, [qe]), wr = Pe(
|
|
41407
41409
|
() => kt.filter((H) => H.key && H.type !== "report-module" && H.type !== "markdown-module").map((H) => `${H.type}:${H.key}`).join("|"),
|
|
41408
41410
|
[kt]
|
|
41409
|
-
), xc =
|
|
41411
|
+
), xc = ee(wr);
|
|
41410
41412
|
xc.current !== wr && (xc.current = wr, qe || (Xu(Th), Ju(!0))), me(() => {
|
|
41411
41413
|
if (!ji) return;
|
|
41412
41414
|
const H = setTimeout(() => Ju(!1), an);
|
|
41413
41415
|
return () => clearTimeout(H);
|
|
41414
41416
|
}, [ji, wr, an]), ze(() => {
|
|
41415
|
-
const H =
|
|
41417
|
+
const H = yn.current;
|
|
41416
41418
|
if (!H || (Ea(), typeof ResizeObserver > "u")) return;
|
|
41417
|
-
const
|
|
41418
|
-
const re =
|
|
41419
|
+
const Z = () => {
|
|
41420
|
+
const re = yn.current;
|
|
41419
41421
|
if (!re) return;
|
|
41420
41422
|
(typeof performance < "u" ? performance.now() : Date.now()) - Ec.current < 600 && Tc.current && re.contains(document.activeElement) && re.scrollHeight > re.clientHeight && (re.scrollTop = re.scrollHeight);
|
|
41421
|
-
},
|
|
41422
|
-
|
|
41423
|
-
const ae = H.querySelector(".rte-default-textarea, .rte-config-fade"),
|
|
41424
|
-
Ea(),
|
|
41423
|
+
}, se = new ResizeObserver(() => Ea());
|
|
41424
|
+
se.observe(H);
|
|
41425
|
+
const ae = H.querySelector(".rte-default-textarea, .rte-config-fade"), oe = ae ? new ResizeObserver(() => {
|
|
41426
|
+
Ea(), Z();
|
|
41425
41427
|
}) : null;
|
|
41426
|
-
return ae &&
|
|
41427
|
-
|
|
41428
|
+
return ae && oe && oe.observe(ae), () => {
|
|
41429
|
+
se.disconnect(), oe?.disconnect();
|
|
41428
41430
|
};
|
|
41429
41431
|
}, [Ea, kt, Ze, Ge.length, c.length, f.length, Ku, qe, wr, Qn]);
|
|
41430
|
-
const Sc =
|
|
41432
|
+
const Sc = ee(-1);
|
|
41431
41433
|
me(() => {
|
|
41432
41434
|
qe || Kn <= 0 || Kn >= Th || Sc.current !== Kn && (Sc.current = Kn, ca?.(Kn));
|
|
41433
41435
|
}, [Kn, qe, ca]);
|
|
@@ -41503,23 +41505,23 @@ const B9 = (e) => {
|
|
|
41503
41505
|
[]
|
|
41504
41506
|
), ob = $(
|
|
41505
41507
|
(H) => {
|
|
41506
|
-
const
|
|
41507
|
-
if (h && !
|
|
41508
|
-
H.preventDefault(), h(
|
|
41508
|
+
const Z = t.some((Ue) => Ue.type === "tag"), se = H.clipboardData?.getData?.("text/plain") ?? "";
|
|
41509
|
+
if (h && !Z && Wb(se)) {
|
|
41510
|
+
H.preventDefault(), h(se.trim());
|
|
41509
41511
|
return;
|
|
41510
41512
|
}
|
|
41511
41513
|
const ae = H.clipboardData?.files;
|
|
41512
|
-
if (!ae || ae.length === 0 || (H.preventDefault(),
|
|
41513
|
-
const
|
|
41514
|
+
if (!ae || ae.length === 0 || (H.preventDefault(), Z)) return;
|
|
41515
|
+
const oe = [];
|
|
41514
41516
|
let re = !1;
|
|
41515
41517
|
for (const Ue of Array.from(ae)) {
|
|
41516
41518
|
const Zn = (Ue.name || "").split(".").pop()?.toLowerCase() || "";
|
|
41517
|
-
kc.has(Zn) ?
|
|
41519
|
+
kc.has(Zn) ? oe.push(Ue) : re = !0;
|
|
41518
41520
|
}
|
|
41519
|
-
if (re && Yi.current?.error("粘贴文件中含不支持的类型,已自动过滤"),
|
|
41521
|
+
if (re && Yi.current?.error("粘贴文件中含不支持的类型,已自动过滤"), oe.length === 0) return;
|
|
41520
41522
|
const pe = 50 * 1024 * 1024, Se = Ge.reduce((Ue, Zn) => Ue + Zn.size, 0), ge = [];
|
|
41521
41523
|
let He = Se;
|
|
41522
|
-
for (const Ue of
|
|
41524
|
+
for (const Ue of oe) {
|
|
41523
41525
|
if (He + Ue.size > pe) {
|
|
41524
41526
|
Yi.current?.error("文件总大小不能超过 50MB");
|
|
41525
41527
|
break;
|
|
@@ -41530,9 +41532,9 @@ const B9 = (e) => {
|
|
|
41530
41532
|
},
|
|
41531
41533
|
[kc, t, Ge, h]
|
|
41532
41534
|
);
|
|
41533
|
-
return /* @__PURE__ */ v(yb, { getPopupContainer: B1, children: /* @__PURE__ */ W(
|
|
41535
|
+
return /* @__PURE__ */ v(yb, { getPopupContainer: B1, children: /* @__PURE__ */ W(zn, { component: !1, message: { getContainer: () => P1 ?? Gn ?? document.body }, children: [
|
|
41534
41536
|
/* @__PURE__ */ v(d9, { messageRef: Yi }),
|
|
41535
|
-
/* @__PURE__ */ W(Jp.Provider, { value:
|
|
41537
|
+
/* @__PURE__ */ W(Jp.Provider, { value: Gn, children: [
|
|
41536
41538
|
/* @__PURE__ */ W(
|
|
41537
41539
|
"div",
|
|
41538
41540
|
{
|
|
@@ -41548,15 +41550,15 @@ const B9 = (e) => {
|
|
|
41548
41550
|
files: Ge,
|
|
41549
41551
|
onChange: St,
|
|
41550
41552
|
reports: c,
|
|
41551
|
-
onReportRemove: (H) => d?.(c.filter((
|
|
41553
|
+
onReportRemove: (H) => d?.(c.filter((Z) => Z.id !== H)),
|
|
41552
41554
|
fileUrls: f,
|
|
41553
|
-
onFileUrlRemove: (H) => m?.(f.filter((
|
|
41555
|
+
onFileUrlRemove: (H) => m?.(f.filter((Z) => Z.id !== H))
|
|
41554
41556
|
}
|
|
41555
41557
|
),
|
|
41556
41558
|
t.length === 0 ? /* @__PURE__ */ W(
|
|
41557
41559
|
"div",
|
|
41558
41560
|
{
|
|
41559
|
-
ref:
|
|
41561
|
+
ref: yn,
|
|
41560
41562
|
className: `rte-editor rte-editor-default${yt || Kt ? " rte-editor-default-with-skill" : ""}`,
|
|
41561
41563
|
style: vc,
|
|
41562
41564
|
onClick: yc,
|
|
@@ -41587,19 +41589,19 @@ const B9 = (e) => {
|
|
|
41587
41589
|
) : /* @__PURE__ */ v(
|
|
41588
41590
|
"div",
|
|
41589
41591
|
{
|
|
41590
|
-
ref:
|
|
41592
|
+
ref: yn,
|
|
41591
41593
|
className: `rte-editor${ma ? " rte-richtext-fullscreen-active" : ""}`,
|
|
41592
41594
|
style: vc,
|
|
41593
41595
|
onClick: yc,
|
|
41594
41596
|
onInput: Cc,
|
|
41595
|
-
children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: kt.map((H,
|
|
41596
|
-
if (G1.has(
|
|
41597
|
-
const
|
|
41597
|
+
children: /* @__PURE__ */ v("div", { className: "rte-config-fade", children: kt.map((H, Z) => {
|
|
41598
|
+
if (G1.has(Z) || H.key && Nr.has(H.key) || H.exclusionGroup === "separator" && Zi.has(Z) || ma && H.key !== ma) return null;
|
|
41599
|
+
const se = (H.type === "report-module" || H.type === "markdown-module") && H.key ? `${H.key}__module_${H.moduleIndex ?? 0}` : H.key;
|
|
41598
41600
|
return /* @__PURE__ */ v(
|
|
41599
41601
|
p1,
|
|
41600
41602
|
{
|
|
41601
41603
|
node: H,
|
|
41602
|
-
value:
|
|
41604
|
+
value: se ? Me[se] : void 0,
|
|
41603
41605
|
files: Ze,
|
|
41604
41606
|
onChange: es,
|
|
41605
41607
|
onFileChange: K1,
|
|
@@ -41624,11 +41626,11 @@ const B9 = (e) => {
|
|
|
41624
41626
|
onMarkdownNameParse: nb,
|
|
41625
41627
|
onRichtextExpandChange: H1,
|
|
41626
41628
|
disabled: l,
|
|
41627
|
-
error:
|
|
41628
|
-
index:
|
|
41629
|
+
error: se ? j1[se] : void 0,
|
|
41630
|
+
index: Z,
|
|
41629
41631
|
nodeDefaults: qi
|
|
41630
41632
|
},
|
|
41631
|
-
|
|
41633
|
+
se ?? `text-${Z}`
|
|
41632
41634
|
);
|
|
41633
41635
|
}) }, wr)
|
|
41634
41636
|
}
|
|
@@ -41848,7 +41850,7 @@ const B9 = (e) => {
|
|
|
41848
41850
|
onStartAutoLoad: h,
|
|
41849
41851
|
onStopLoading: f,
|
|
41850
41852
|
...m
|
|
41851
|
-
} = e, g =
|
|
41853
|
+
} = e, g = ee(null), b = $(
|
|
41852
41854
|
(y) => {
|
|
41853
41855
|
c(y), u.includes(y) && g.current?.scrollTo({
|
|
41854
41856
|
key: `${(y - 1) * o + 1}`
|
|
@@ -42003,7 +42005,7 @@ const b9 = ({
|
|
|
42003
42005
|
onChange: a,
|
|
42004
42006
|
...i
|
|
42005
42007
|
}) => {
|
|
42006
|
-
const [s, o] = G(""), [u, c] = G(0), [d, h] = G(!1), [f, m] = G(!1), [g, b] = G(!1), y =
|
|
42008
|
+
const [s, o] = G(""), [u, c] = G(0), [d, h] = G(!1), [f, m] = G(!1), [g, b] = G(!1), y = ee(void 0), A = ee(void 0), k = ee(e), D = ee(u), M = ee(f), C = ee(s);
|
|
42007
42009
|
me(() => {
|
|
42008
42010
|
k.current = e, D.current = u, M.current = f, C.current = s;
|
|
42009
42011
|
});
|
|
@@ -42184,7 +42186,7 @@ const g9 = ({
|
|
|
42184
42186
|
...f
|
|
42185
42187
|
// 其他原生属性
|
|
42186
42188
|
}) => {
|
|
42187
|
-
const [m, g] = G(""), [b, y] = G(0), [A, k] = G(!1), [D, M] = G(!1), [C, w] = G(!1), [N, S] = G(l || ""), O =
|
|
42189
|
+
const [m, g] = G(""), [b, y] = G(0), [A, k] = G(!1), [D, M] = G(!1), [C, w] = G(!1), [N, S] = G(l || ""), O = ee(void 0), I = ee(void 0), F = ee(e), V = ee(b), P = ee(D), E = ee(m), B = ee(null);
|
|
42188
42190
|
me(() => {
|
|
42189
42191
|
F.current = e, V.current = b, P.current = D, E.current = m;
|
|
42190
42192
|
});
|
|
@@ -42474,7 +42476,7 @@ const O1 = ({
|
|
|
42474
42476
|
style: m,
|
|
42475
42477
|
...g
|
|
42476
42478
|
}) => {
|
|
42477
|
-
const b =
|
|
42479
|
+
const b = ee(null), [y, A] = G(!1), [k, D] = G(!1), [M, C] = G(!1), w = $(() => {
|
|
42478
42480
|
b.current && (b.current.play(), A(!0), c?.());
|
|
42479
42481
|
}, [c]), N = $(() => {
|
|
42480
42482
|
b.current && (b.current.pause(), A(!1), d?.());
|
|
@@ -42661,7 +42663,7 @@ const v9 = (e) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
|
|
|
42661
42663
|
style: i,
|
|
42662
42664
|
onClick: s
|
|
42663
42665
|
}) => {
|
|
42664
|
-
const o =
|
|
42666
|
+
const o = ee(null), [u, c] = G(t || l.md || 3), d = ee(/* @__PURE__ */ new Map()), h = $(() => {
|
|
42665
42667
|
if (!r || t)
|
|
42666
42668
|
return t || l.md || 3;
|
|
42667
42669
|
const b = window.innerWidth;
|