@pdfme/ui 6.2.7 → 6.2.8-dev.3
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/Designer.d.ts +9 -1
- package/dist/components/Designer/index.d.ts +6 -1
- package/dist/index.js +775 -554
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __esmMin = (fn, res, err) => () => {
|
|
|
16
16
|
throw err = [e], e;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
19
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
|
|
20
20
|
var __exportAll = (all, no_symbols) => {
|
|
21
21
|
let target = {};
|
|
22
22
|
for (var name in all) __defProp(target, name, {
|
|
@@ -426,7 +426,7 @@ var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
426
426
|
exports.useTransition = function() {
|
|
427
427
|
return ReactSharedInternals.H.useTransition();
|
|
428
428
|
};
|
|
429
|
-
exports.version = "19.3.
|
|
429
|
+
exports.version = "19.3.1";
|
|
430
430
|
}));
|
|
431
431
|
//#endregion
|
|
432
432
|
//#region ../../node_modules/react/index.js
|
|
@@ -741,6 +741,17 @@ function prefixIssues(path, issues) {
|
|
|
741
741
|
function unwrapMessage(message) {
|
|
742
742
|
return typeof message === "string" ? message : message?.message;
|
|
743
743
|
}
|
|
744
|
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
|
|
745
|
+
function sizeCaps(defChecks) {
|
|
746
|
+
const caps = [];
|
|
747
|
+
for (const ch of defChecks ?? []) {
|
|
748
|
+
const d = ch._zod.def;
|
|
749
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break;
|
|
750
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
751
|
+
if (max >= 0) caps.push([max, ch]);
|
|
752
|
+
}
|
|
753
|
+
return caps;
|
|
754
|
+
}
|
|
744
755
|
function attachSchema(issues, start, inst) {
|
|
745
756
|
var _a;
|
|
746
757
|
for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
|
|
@@ -833,6 +844,7 @@ function hide(inst, key, value) {
|
|
|
833
844
|
return own(inst, key, value, false);
|
|
834
845
|
}
|
|
835
846
|
/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
|
|
847
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
836
848
|
function derived(computes, table) {
|
|
837
849
|
for (const key in computes) {
|
|
838
850
|
const compute = computes[key];
|
|
@@ -984,6 +996,7 @@ function newError(Definition) {
|
|
|
984
996
|
}
|
|
985
997
|
return new Definition();
|
|
986
998
|
}
|
|
999
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
987
1000
|
function $constructor(name, initializer, proto, params) {
|
|
988
1001
|
const zodProto = {};
|
|
989
1002
|
function Internals(def) {
|
|
@@ -1114,8 +1127,7 @@ var initializer$1 = (inst, def) => {
|
|
|
1114
1127
|
});
|
|
1115
1128
|
}
|
|
1116
1129
|
};
|
|
1117
|
-
var $ZodError = $constructor("$ZodError", initializer$1);
|
|
1118
|
-
$constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
1130
|
+
var $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
1119
1131
|
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
1120
1132
|
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
1121
1133
|
* "__proto__" would hit the setter instead of creating a key. */
|
|
@@ -1788,7 +1800,7 @@ var Doc = class {
|
|
|
1788
1800
|
var version$3 = {
|
|
1789
1801
|
major: 4,
|
|
1790
1802
|
minor: 6,
|
|
1791
|
-
patch:
|
|
1803
|
+
patch: 7
|
|
1792
1804
|
};
|
|
1793
1805
|
//#endregion
|
|
1794
1806
|
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
@@ -2311,6 +2323,26 @@ var $ZodDate = /*@__PURE__*/ $constructor("$ZodDate", (inst, def) => {
|
|
|
2311
2323
|
return payload;
|
|
2312
2324
|
};
|
|
2313
2325
|
});
|
|
2326
|
+
function capSize(inst, size) {
|
|
2327
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
2328
|
+
if (!caps.length) return;
|
|
2329
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
2330
|
+
const parse = inst._zod.parse;
|
|
2331
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2332
|
+
const n = size(payload.value);
|
|
2333
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
2334
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
|
|
2335
|
+
const start = payload.issues.length;
|
|
2336
|
+
ch._zod.check(payload);
|
|
2337
|
+
payload.issues[start].continue = false;
|
|
2338
|
+
attachSchema(payload.issues, start, inst);
|
|
2339
|
+
return payload;
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
return parse(payload, ctx);
|
|
2343
|
+
};
|
|
2344
|
+
}
|
|
2345
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
2314
2346
|
function handleArrayResult(result, final, index) {
|
|
2315
2347
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
2316
2348
|
final.value[index] = result.value;
|
|
@@ -2348,6 +2380,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
|
2348
2380
|
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
2349
2381
|
return payload;
|
|
2350
2382
|
};
|
|
2383
|
+
capSize(inst, arraySize);
|
|
2351
2384
|
});
|
|
2352
2385
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2353
2386
|
const isPresent = key in input;
|
|
@@ -5173,7 +5206,7 @@ var ZodError = /*@__PURE__*/ $constructor("ZodError", initializer);
|
|
|
5173
5206
|
var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
5174
5207
|
//#endregion
|
|
5175
5208
|
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
5176
|
-
var parse$
|
|
5209
|
+
var parse$4 = /* @__PURE__ */ _parse(ZodRealError);
|
|
5177
5210
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
5178
5211
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
5179
5212
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
|
|
@@ -5305,7 +5338,7 @@ var ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
|
|
|
5305
5338
|
own(this, "~standard", value);
|
|
5306
5339
|
},
|
|
5307
5340
|
parse: function _parse(data, params) {
|
|
5308
|
-
return parse$
|
|
5341
|
+
return parse$4(this, data, params, { callee: _parse });
|
|
5309
5342
|
},
|
|
5310
5343
|
parseAsync: async function _parseAsync(data, params) {
|
|
5311
5344
|
return await parseAsync(this, data, params, { callee: _parseAsync });
|
|
@@ -6952,8 +6985,8 @@ var require_deflate$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6952
6985
|
if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
|
|
6953
6986
|
scan += 2;
|
|
6954
6987
|
match++;
|
|
6955
|
-
do
|
|
6956
|
-
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
6988
|
+
do;
|
|
6989
|
+
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
6957
6990
|
len = MAX_MATCH - (strend - scan);
|
|
6958
6991
|
scan = strend - MAX_MATCH;
|
|
6959
6992
|
if (len > best_len) {
|
|
@@ -7210,8 +7243,8 @@ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[
|
|
|
7210
7243
|
prev = _win[scan];
|
|
7211
7244
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
7212
7245
|
strend = s.strstart + MAX_MATCH;
|
|
7213
|
-
do
|
|
7214
|
-
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
7246
|
+
do;
|
|
7247
|
+
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
7215
7248
|
s.match_length = MAX_MATCH - (strend - scan);
|
|
7216
7249
|
if (s.match_length > s.lookahead) s.match_length = s.lookahead;
|
|
7217
7250
|
}
|
|
@@ -10177,7 +10210,7 @@ var Encodings = {
|
|
|
10177
10210
|
WinAnsi: new Encoding("WinAnsi", allUnicodeMappings.win1252)
|
|
10178
10211
|
};
|
|
10179
10212
|
//#endregion
|
|
10180
|
-
//#region \0@oxc-project+runtime@0.
|
|
10213
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
10181
10214
|
function _typeof$19(o) {
|
|
10182
10215
|
"@babel/helpers - typeof";
|
|
10183
10216
|
return _typeof$19 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -10187,7 +10220,7 @@ function _typeof$19(o) {
|
|
|
10187
10220
|
}, _typeof$19(o);
|
|
10188
10221
|
}
|
|
10189
10222
|
//#endregion
|
|
10190
|
-
//#region \0@oxc-project+runtime@0.
|
|
10223
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
10191
10224
|
function toPrimitive$3(t, r) {
|
|
10192
10225
|
if ("object" != _typeof$19(t) || !t) return t;
|
|
10193
10226
|
var e = t[Symbol.toPrimitive];
|
|
@@ -10199,13 +10232,13 @@ function toPrimitive$3(t, r) {
|
|
|
10199
10232
|
return ("string" === r ? String : Number)(t);
|
|
10200
10233
|
}
|
|
10201
10234
|
//#endregion
|
|
10202
|
-
//#region \0@oxc-project+runtime@0.
|
|
10235
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
10203
10236
|
function toPropertyKey$3(t) {
|
|
10204
10237
|
var i = toPrimitive$3(t, "string");
|
|
10205
10238
|
return "symbol" == _typeof$19(i) ? i : i + "";
|
|
10206
10239
|
}
|
|
10207
10240
|
//#endregion
|
|
10208
|
-
//#region \0@oxc-project+runtime@0.
|
|
10241
|
+
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
10209
10242
|
function _defineProperty$14(e, r, t) {
|
|
10210
10243
|
return (r = toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {
|
|
10211
10244
|
value: t,
|
|
@@ -10216,7 +10249,7 @@ function _defineProperty$14(e, r, t) {
|
|
|
10216
10249
|
}
|
|
10217
10250
|
//#endregion
|
|
10218
10251
|
//#region ../../node_modules/pako/dist/pako.mjs
|
|
10219
|
-
var Z_FIXED = 4;
|
|
10252
|
+
var Z_FIXED$1 = 4;
|
|
10220
10253
|
var Z_BINARY = 0;
|
|
10221
10254
|
var Z_TEXT = 1;
|
|
10222
10255
|
var Z_UNKNOWN = 2;
|
|
@@ -10793,10 +10826,10 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
|
|
|
10793
10826
|
max_blindex = build_bl_tree(s);
|
|
10794
10827
|
opt_lenb = s.opt_len + 3 + 7 >>> 3;
|
|
10795
10828
|
static_lenb = s.static_len + 3 + 7 >>> 3;
|
|
10796
|
-
if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
|
|
10829
|
+
if (static_lenb <= opt_lenb || s.strategy === Z_FIXED$1) opt_lenb = static_lenb;
|
|
10797
10830
|
} else opt_lenb = static_lenb = stored_len + 5;
|
|
10798
10831
|
if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
|
|
10799
|
-
else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
|
|
10832
|
+
else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) {
|
|
10800
10833
|
send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
|
|
10801
10834
|
compress_block(s, static_ltree, static_dtree);
|
|
10802
10835
|
} else {
|
|
@@ -10835,20 +10868,33 @@ var adler32 = (adler, buf, len, pos) => {
|
|
|
10835
10868
|
return s1 | s2 << 16 | 0;
|
|
10836
10869
|
};
|
|
10837
10870
|
var makeTable = () => {
|
|
10838
|
-
|
|
10839
|
-
|
|
10871
|
+
const table = /* @__PURE__ */ new Uint32Array(2048);
|
|
10872
|
+
let c;
|
|
10873
|
+
for (let n = 0; n < 256; n++) {
|
|
10840
10874
|
c = n;
|
|
10841
|
-
for (
|
|
10875
|
+
for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
|
|
10842
10876
|
table[n] = c;
|
|
10843
10877
|
}
|
|
10878
|
+
for (let n = 0; n < 256; n++) {
|
|
10879
|
+
c = table[n];
|
|
10880
|
+
for (let k = 256; k < 2048; k += 256) {
|
|
10881
|
+
c = table[c & 255] ^ c >>> 8;
|
|
10882
|
+
table[k + n] = c;
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10844
10885
|
return table;
|
|
10845
10886
|
};
|
|
10846
|
-
var crcTable =
|
|
10887
|
+
var crcTable = makeTable();
|
|
10847
10888
|
var crc32 = (crc, buf, len, pos) => {
|
|
10848
10889
|
const t = crcTable;
|
|
10849
10890
|
const end = pos + len;
|
|
10891
|
+
let i = pos;
|
|
10850
10892
|
crc ^= -1;
|
|
10851
|
-
for (
|
|
10893
|
+
for (const end8 = end - 7; i < end8; i += 8) {
|
|
10894
|
+
crc ^= buf[i] | buf[i + 1] << 8 | buf[i + 2] << 16 | buf[i + 3] << 24;
|
|
10895
|
+
crc = t[1792 + (crc & 255)] ^ t[1536 + (crc >>> 8 & 255)] ^ t[1280 + (crc >>> 16 & 255)] ^ t[1024 + (crc >>> 24)] ^ t[768 + buf[i + 4]] ^ t[512 + buf[i + 5]] ^ t[256 + buf[i + 6]] ^ t[buf[i + 7]];
|
|
10896
|
+
}
|
|
10897
|
+
for (; i < end; i++) crc = crc >>> 8 ^ t[(crc ^ buf[i]) & 255];
|
|
10852
10898
|
return crc ^ -1;
|
|
10853
10899
|
};
|
|
10854
10900
|
var messages_default = {
|
|
@@ -10980,8 +11026,8 @@ var longest_match = (s, cur_match) => {
|
|
|
10980
11026
|
if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
|
|
10981
11027
|
scan += 2;
|
|
10982
11028
|
match++;
|
|
10983
|
-
do
|
|
10984
|
-
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
11029
|
+
do;
|
|
11030
|
+
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
10985
11031
|
len = MAX_MATCH - (strend - scan);
|
|
10986
11032
|
scan = strend - MAX_MATCH;
|
|
10987
11033
|
if (len > best_len) {
|
|
@@ -11269,8 +11315,8 @@ var deflate_rle = (s, flush) => {
|
|
|
11269
11315
|
prev = _win[scan];
|
|
11270
11316
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
11271
11317
|
strend = s.strstart + MAX_MATCH;
|
|
11272
|
-
do
|
|
11273
|
-
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
11318
|
+
do;
|
|
11319
|
+
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
11274
11320
|
s.match_length = MAX_MATCH - (strend - scan);
|
|
11275
11321
|
if (s.match_length > s.lookahead) s.match_length = s.lookahead;
|
|
11276
11322
|
}
|
|
@@ -13012,8 +13058,8 @@ var require_deflate$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13012
13058
|
if (_win[match + best_len] !== scan_end || _win[match + best_len - 1] !== scan_end1 || _win[match] !== _win[scan] || _win[++match] !== _win[scan + 1]) continue;
|
|
13013
13059
|
scan += 2;
|
|
13014
13060
|
match++;
|
|
13015
|
-
do
|
|
13016
|
-
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
13061
|
+
do;
|
|
13062
|
+
while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[++scan] === _win[++match] && scan < strend);
|
|
13017
13063
|
len = MAX_MATCH - (strend - scan);
|
|
13018
13064
|
scan = strend - MAX_MATCH;
|
|
13019
13065
|
if (len > best_len) {
|
|
@@ -13270,8 +13316,8 @@ while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] && _win[
|
|
|
13270
13316
|
prev = _win[scan];
|
|
13271
13317
|
if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
|
|
13272
13318
|
strend = s.strstart + MAX_MATCH;
|
|
13273
|
-
do
|
|
13274
|
-
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
13319
|
+
do;
|
|
13320
|
+
while (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan] && scan < strend);
|
|
13275
13321
|
s.match_length = MAX_MATCH - (strend - scan);
|
|
13276
13322
|
if (s.match_length > s.lookahead) s.match_length = s.lookahead;
|
|
13277
13323
|
}
|
|
@@ -20743,8 +20789,8 @@ function zeroArray(array, length) {
|
|
|
20743
20789
|
}
|
|
20744
20790
|
//#endregion
|
|
20745
20791
|
//#region ../../node_modules/html-entities/dist/commonjs/named-references.js
|
|
20746
|
-
var require_named_references = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20747
|
-
var __assign =
|
|
20792
|
+
var require_named_references = /* @__PURE__ */ __commonJSMin(((exports, module, this$12) => {
|
|
20793
|
+
var __assign = this$12 && this$12.__assign || function() {
|
|
20748
20794
|
__assign = Object.assign || function(t) {
|
|
20749
20795
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20750
20796
|
s = arguments[i];
|
|
@@ -20847,8 +20893,8 @@ var require_surrogate_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20847
20893
|
}));
|
|
20848
20894
|
//#endregion
|
|
20849
20895
|
//#region ../../node_modules/html-entities/dist/commonjs/index.js
|
|
20850
|
-
var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
20851
|
-
var __assign =
|
|
20896
|
+
var require_commonjs = /* @__PURE__ */ __commonJSMin(((exports, module, this$11) => {
|
|
20897
|
+
var __assign = this$11 && this$11.__assign || function() {
|
|
20852
20898
|
__assign = Object.assign || function(t) {
|
|
20853
20899
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20854
20900
|
s = arguments[i];
|
|
@@ -29711,7 +29757,7 @@ var parameters = /* @__PURE__ */ new Map([
|
|
|
29711
29757
|
["Z", 0],
|
|
29712
29758
|
["z", 0]
|
|
29713
29759
|
]);
|
|
29714
|
-
var parse$2
|
|
29760
|
+
var parse$2 = (path) => {
|
|
29715
29761
|
let cmd;
|
|
29716
29762
|
const ret = [];
|
|
29717
29763
|
let args = [];
|
|
@@ -30016,7 +30062,7 @@ var segmentToBezier = (cx1, cy1, th0, th1, rx, ry, sinTh, cosTh) => {
|
|
|
30016
30062
|
a10 * x3 + a11 * y3
|
|
30017
30063
|
];
|
|
30018
30064
|
};
|
|
30019
|
-
var svgPathToOperators = (path) => apply$1(parse$2
|
|
30065
|
+
var svgPathToOperators = (path) => apply$1(parse$2(path));
|
|
30020
30066
|
var clipSpace = ({ topLeft, topRight, bottomRight, bottomLeft }) => [
|
|
30021
30067
|
moveTo(topLeft.x, topLeft.y),
|
|
30022
30068
|
lineTo(topRight.x, topRight.y),
|
|
@@ -40834,8 +40880,10 @@ var astralIdentifierCodes = [
|
|
|
40834
40880
|
4,
|
|
40835
40881
|
318,
|
|
40836
40882
|
1,
|
|
40837
|
-
|
|
40838
|
-
|
|
40883
|
+
31,
|
|
40884
|
+
4,
|
|
40885
|
+
33,
|
|
40886
|
+
15,
|
|
40839
40887
|
71,
|
|
40840
40888
|
10,
|
|
40841
40889
|
50,
|
|
@@ -41016,7 +41064,9 @@ var astralIdentifierCodes = [
|
|
|
41016
41064
|
9,
|
|
41017
41065
|
55,
|
|
41018
41066
|
9,
|
|
41019
|
-
|
|
41067
|
+
7,
|
|
41068
|
+
0,
|
|
41069
|
+
259,
|
|
41020
41070
|
3,
|
|
41021
41071
|
10,
|
|
41022
41072
|
1,
|
|
@@ -41064,7 +41114,9 @@ var astralIdentifierCodes = [
|
|
|
41064
41114
|
45,
|
|
41065
41115
|
3,
|
|
41066
41116
|
22,
|
|
41067
|
-
|
|
41117
|
+
481,
|
|
41118
|
+
1,
|
|
41119
|
+
61,
|
|
41068
41120
|
4,
|
|
41069
41121
|
4,
|
|
41070
41122
|
5,
|
|
@@ -41076,7 +41128,15 @@ var astralIdentifierCodes = [
|
|
|
41076
41128
|
3,
|
|
41077
41129
|
149,
|
|
41078
41130
|
2,
|
|
41079
|
-
|
|
41131
|
+
12,
|
|
41132
|
+
2,
|
|
41133
|
+
9,
|
|
41134
|
+
1,
|
|
41135
|
+
3,
|
|
41136
|
+
0,
|
|
41137
|
+
33,
|
|
41138
|
+
1,
|
|
41139
|
+
1357,
|
|
41080
41140
|
49,
|
|
41081
41141
|
513,
|
|
41082
41142
|
54,
|
|
@@ -41209,8 +41269,8 @@ var astralIdentifierStartCodes = [
|
|
|
41209
41269
|
2,
|
|
41210
41270
|
41,
|
|
41211
41271
|
2,
|
|
41212
|
-
|
|
41213
|
-
|
|
41272
|
+
13,
|
|
41273
|
+
65,
|
|
41214
41274
|
5,
|
|
41215
41275
|
3,
|
|
41216
41276
|
0,
|
|
@@ -41282,7 +41342,9 @@ var astralIdentifierStartCodes = [
|
|
|
41282
41342
|
1,
|
|
41283
41343
|
17,
|
|
41284
41344
|
5,
|
|
41285
|
-
|
|
41345
|
+
18,
|
|
41346
|
+
21,
|
|
41347
|
+
18,
|
|
41286
41348
|
28,
|
|
41287
41349
|
11,
|
|
41288
41350
|
0,
|
|
@@ -41440,7 +41502,9 @@ var astralIdentifierStartCodes = [
|
|
|
41440
41502
|
0,
|
|
41441
41503
|
19,
|
|
41442
41504
|
72,
|
|
41443
|
-
|
|
41505
|
+
18,
|
|
41506
|
+
0,
|
|
41507
|
+
182,
|
|
41444
41508
|
32,
|
|
41445
41509
|
32,
|
|
41446
41510
|
8,
|
|
@@ -41468,7 +41532,9 @@ var astralIdentifierStartCodes = [
|
|
|
41468
41532
|
0,
|
|
41469
41533
|
24,
|
|
41470
41534
|
43,
|
|
41471
|
-
|
|
41535
|
+
22,
|
|
41536
|
+
0,
|
|
41537
|
+
239,
|
|
41472
41538
|
18,
|
|
41473
41539
|
16,
|
|
41474
41540
|
0,
|
|
@@ -41481,10 +41547,12 @@ var astralIdentifierStartCodes = [
|
|
|
41481
41547
|
80,
|
|
41482
41548
|
921,
|
|
41483
41549
|
103,
|
|
41484
|
-
|
|
41485
|
-
|
|
41486
|
-
|
|
41487
|
-
|
|
41550
|
+
111,
|
|
41551
|
+
6,
|
|
41552
|
+
206,
|
|
41553
|
+
13,
|
|
41554
|
+
310,
|
|
41555
|
+
2314,
|
|
41488
41556
|
96,
|
|
41489
41557
|
16,
|
|
41490
41558
|
1071,
|
|
@@ -41533,28 +41601,32 @@ var astralIdentifierStartCodes = [
|
|
|
41533
41601
|
15,
|
|
41534
41602
|
4,
|
|
41535
41603
|
10,
|
|
41536
|
-
|
|
41537
|
-
|
|
41538
|
-
|
|
41539
|
-
|
|
41604
|
+
7386,
|
|
41605
|
+
37,
|
|
41606
|
+
33,
|
|
41607
|
+
96,
|
|
41540
41608
|
114,
|
|
41541
|
-
|
|
41609
|
+
14,
|
|
41610
|
+
913,
|
|
41611
|
+
15,
|
|
41612
|
+
50,
|
|
41613
|
+
7710,
|
|
41542
41614
|
3,
|
|
41543
41615
|
2,
|
|
41544
41616
|
6,
|
|
41545
41617
|
2,
|
|
41546
41618
|
1,
|
|
41547
41619
|
2,
|
|
41548
|
-
|
|
41549
|
-
|
|
41620
|
+
296,
|
|
41621
|
+
10,
|
|
41550
41622
|
0,
|
|
41551
41623
|
30,
|
|
41552
41624
|
2,
|
|
41553
41625
|
3,
|
|
41554
41626
|
0,
|
|
41555
41627
|
15,
|
|
41556
|
-
|
|
41557
|
-
|
|
41628
|
+
4,
|
|
41629
|
+
8,
|
|
41558
41630
|
395,
|
|
41559
41631
|
2309,
|
|
41560
41632
|
106,
|
|
@@ -41601,8 +41673,8 @@ var astralIdentifierStartCodes = [
|
|
|
41601
41673
|
4,
|
|
41602
41674
|
6,
|
|
41603
41675
|
2,
|
|
41604
|
-
|
|
41605
|
-
|
|
41676
|
+
340,
|
|
41677
|
+
2,
|
|
41606
41678
|
24,
|
|
41607
41679
|
2,
|
|
41608
41680
|
24,
|
|
@@ -41625,10 +41697,12 @@ var astralIdentifierStartCodes = [
|
|
|
41625
41697
|
2,
|
|
41626
41698
|
7,
|
|
41627
41699
|
1845,
|
|
41628
|
-
|
|
41629
|
-
|
|
41630
|
-
|
|
41631
|
-
|
|
41700
|
+
129,
|
|
41701
|
+
15,
|
|
41702
|
+
6,
|
|
41703
|
+
55,
|
|
41704
|
+
50,
|
|
41705
|
+
49,
|
|
41632
41706
|
61,
|
|
41633
41707
|
147,
|
|
41634
41708
|
44,
|
|
@@ -41741,8 +41815,8 @@ var astralIdentifierStartCodes = [
|
|
|
41741
41815
|
4421,
|
|
41742
41816
|
42719,
|
|
41743
41817
|
33,
|
|
41744
|
-
|
|
41745
|
-
|
|
41818
|
+
4382,
|
|
41819
|
+
2,
|
|
41746
41820
|
5773,
|
|
41747
41821
|
3,
|
|
41748
41822
|
7472,
|
|
@@ -41753,10 +41827,12 @@ var astralIdentifierStartCodes = [
|
|
|
41753
41827
|
1507,
|
|
41754
41828
|
4938,
|
|
41755
41829
|
6,
|
|
41756
|
-
8489
|
|
41830
|
+
8489,
|
|
41831
|
+
39815,
|
|
41832
|
+
11327
|
|
41757
41833
|
];
|
|
41758
|
-
var nonASCIIidentifierChars = "
|
|
41759
|
-
var nonASCIIidentifierStartChars = "
|
|
41834
|
+
var nonASCIIidentifierChars = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄ-ؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
|
|
41835
|
+
var nonASCIIidentifierStartChars = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿ-ℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";
|
|
41760
41836
|
var reservedWords = {
|
|
41761
41837
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
41762
41838
|
5: "class enum extends super const export import",
|
|
@@ -42244,7 +42320,7 @@ pp$9.strictDirective = function(start) {
|
|
|
42244
42320
|
skipWhiteSpace.lastIndex = start + match[0].length;
|
|
42245
42321
|
var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;
|
|
42246
42322
|
var next = this.input.charAt(end);
|
|
42247
|
-
return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=");
|
|
42323
|
+
return next === ";" || next === "}" || lineBreak.test(spaceAfter[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=" || next === "i" && keywordOpAt(this, end));
|
|
42248
42324
|
}
|
|
42249
42325
|
start += match[0].length;
|
|
42250
42326
|
skipWhiteSpace.lastIndex = start;
|
|
@@ -42252,6 +42328,15 @@ pp$9.strictDirective = function(start) {
|
|
|
42252
42328
|
if (this.input[start] === ";") start++;
|
|
42253
42329
|
}
|
|
42254
42330
|
};
|
|
42331
|
+
function keywordOpAt(parser, pos) {
|
|
42332
|
+
var end = pos + 1, stop = Math.min(parser.input.length, pos + 11);
|
|
42333
|
+
while (end < stop) {
|
|
42334
|
+
var ch = parser.fullCharCodeAt(end);
|
|
42335
|
+
if (!isIdentifierChar(ch, true)) break;
|
|
42336
|
+
end += ch <= 65535 ? 1 : 2;
|
|
42337
|
+
}
|
|
42338
|
+
return end === pos + 2 && parser.input.slice(pos, end) === "in" || end === pos + 10 && parser.input.slice(pos, end) === "instanceof";
|
|
42339
|
+
}
|
|
42255
42340
|
pp$9.eat = function(type) {
|
|
42256
42341
|
if (this.type === type) {
|
|
42257
42342
|
this.next();
|
|
@@ -43565,8 +43650,11 @@ pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse
|
|
|
43565
43650
|
var node = this.startNodeAt(startPos, startLoc);
|
|
43566
43651
|
node.operator = this.value;
|
|
43567
43652
|
if (this.type === types$1.eq) left = this.toAssignable(left, false, refDestructuringErrors);
|
|
43568
|
-
if (!ownDestructuringErrors)
|
|
43569
|
-
|
|
43653
|
+
if (!ownDestructuringErrors) {
|
|
43654
|
+
refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;
|
|
43655
|
+
if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;
|
|
43656
|
+
if (refDestructuringErrors.doubleProto >= left.start) refDestructuringErrors.doubleProto = -1;
|
|
43657
|
+
}
|
|
43570
43658
|
if (this.type === types$1.eq) this.checkLValPattern(left);
|
|
43571
43659
|
else this.checkLValSimple(left);
|
|
43572
43660
|
node.left = left;
|
|
@@ -43672,13 +43760,24 @@ function isPrivateFieldAccess(node) {
|
|
|
43672
43760
|
}
|
|
43673
43761
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
43674
43762
|
var startPos = this.start, startLoc = this.startLoc;
|
|
43763
|
+
var oldDoubleProto = -1, oldShorthandAssign = -1;
|
|
43764
|
+
if (refDestructuringErrors) {
|
|
43765
|
+
oldDoubleProto = refDestructuringErrors.doubleProto;
|
|
43766
|
+
oldShorthandAssign = refDestructuringErrors.shorthandAssign;
|
|
43767
|
+
refDestructuringErrors.doubleProto = refDestructuringErrors.shorthandAssign = -1;
|
|
43768
|
+
}
|
|
43675
43769
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
43676
43770
|
if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return expr;
|
|
43677
43771
|
var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);
|
|
43678
|
-
if (refDestructuringErrors
|
|
43679
|
-
if (
|
|
43680
|
-
|
|
43681
|
-
|
|
43772
|
+
if (refDestructuringErrors) {
|
|
43773
|
+
if (result.end > expr.end) {
|
|
43774
|
+
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
43775
|
+
if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;
|
|
43776
|
+
if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;
|
|
43777
|
+
if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;
|
|
43778
|
+
}
|
|
43779
|
+
if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto;
|
|
43780
|
+
if (oldShorthandAssign > -1) refDestructuringErrors.shorthandAssign = oldShorthandAssign;
|
|
43682
43781
|
}
|
|
43683
43782
|
return result;
|
|
43684
43783
|
};
|
|
@@ -43688,7 +43787,7 @@ pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
|
|
|
43688
43787
|
while (true) {
|
|
43689
43788
|
var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);
|
|
43690
43789
|
if (element.optional) optionalChained = true;
|
|
43691
|
-
if (element === base || element.type === "ArrowFunctionExpression") {
|
|
43790
|
+
if (element.end === base.end || element.type === "ArrowFunctionExpression") {
|
|
43692
43791
|
if (optionalChained) {
|
|
43693
43792
|
var chainNode = this.startNodeAt(startPos, startLoc);
|
|
43694
43793
|
chainNode.expression = element;
|
|
@@ -43697,6 +43796,7 @@ pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {
|
|
|
43697
43796
|
return element;
|
|
43698
43797
|
}
|
|
43699
43798
|
base = element;
|
|
43799
|
+
maybeAsyncArrow = false;
|
|
43700
43800
|
}
|
|
43701
43801
|
};
|
|
43702
43802
|
pp$5.shouldParseAsyncArrow = function() {
|
|
@@ -45926,7 +46026,7 @@ pp.readWord = function() {
|
|
|
45926
46026
|
};
|
|
45927
46027
|
Parser.acorn = {
|
|
45928
46028
|
Parser,
|
|
45929
|
-
version: "8.
|
|
46029
|
+
version: "8.19.0",
|
|
45930
46030
|
defaultOptions: defaultOptions$1,
|
|
45931
46031
|
Position,
|
|
45932
46032
|
SourceLocation,
|
|
@@ -45950,7 +46050,7 @@ function parseExpressionAt(input, pos, options) {
|
|
|
45950
46050
|
}
|
|
45951
46051
|
//#endregion
|
|
45952
46052
|
//#region ../common/dist/index.js
|
|
45953
|
-
var PDFME_VERSION = "6.2.
|
|
46053
|
+
var PDFME_VERSION = "6.2.8";
|
|
45954
46054
|
var PAGE_SIZE_PRESETS = {
|
|
45955
46055
|
A3: {
|
|
45956
46056
|
width: 297,
|
|
@@ -47645,7 +47745,7 @@ var require_react_dom_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
47645
47745
|
exports.useFormStatus = function() {
|
|
47646
47746
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
47647
47747
|
};
|
|
47648
|
-
exports.version = "19.3.
|
|
47748
|
+
exports.version = "19.3.1";
|
|
47649
47749
|
}));
|
|
47650
47750
|
//#endregion
|
|
47651
47751
|
//#region ../../node_modules/react-dom/index.js
|
|
@@ -58200,7 +58300,7 @@ var require_react_dom_client_production = /* @__PURE__ */ __commonJSMin(((export
|
|
|
58200
58300
|
}
|
|
58201
58301
|
};
|
|
58202
58302
|
var isomorphicReactPackageVersion$jscomp$inline_2043 = React.version;
|
|
58203
|
-
if ("19.3.
|
|
58303
|
+
if ("19.3.1" !== isomorphicReactPackageVersion$jscomp$inline_2043) throw Error(formatProdErrorMessage(527, isomorphicReactPackageVersion$jscomp$inline_2043, "19.3.1"));
|
|
58204
58304
|
ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
|
|
58205
58305
|
var fiber = componentOrElement._reactInternals;
|
|
58206
58306
|
if (void 0 === fiber) {
|
|
@@ -58215,10 +58315,10 @@ var require_react_dom_client_production = /* @__PURE__ */ __commonJSMin(((export
|
|
|
58215
58315
|
};
|
|
58216
58316
|
var internals$jscomp$inline_2586 = {
|
|
58217
58317
|
bundleType: 0,
|
|
58218
|
-
version: "19.3.
|
|
58318
|
+
version: "19.3.1",
|
|
58219
58319
|
rendererPackageName: "react-dom",
|
|
58220
58320
|
currentDispatcherRef: ReactSharedInternals,
|
|
58221
|
-
reconcilerVersion: "19.3.
|
|
58321
|
+
reconcilerVersion: "19.3.1"
|
|
58222
58322
|
};
|
|
58223
58323
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
58224
58324
|
var hook$jscomp$inline_2587 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -89663,7 +89763,7 @@ var require_decoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89663
89763
|
}
|
|
89664
89764
|
}));
|
|
89665
89765
|
//#endregion
|
|
89666
|
-
//#region ../schemas/dist/dynamicTemplate-
|
|
89766
|
+
//#region ../schemas/dist/dynamicTemplate-DbxdkEGp.js
|
|
89667
89767
|
var import_jpeg_js = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
89668
89768
|
module.exports = {
|
|
89669
89769
|
encode: require_encoder(),
|
|
@@ -90609,7 +90709,7 @@ var getDynamicLayoutForTable = async (value, args) => {
|
|
|
90609
90709
|
};
|
|
90610
90710
|
};
|
|
90611
90711
|
//#endregion
|
|
90612
|
-
//#region ../schemas/dist/utils-
|
|
90712
|
+
//#region ../schemas/dist/utils-CbHtVsNs.js
|
|
90613
90713
|
var convertForPdfLayoutProps = ({ schema, pageHeight, applyRotateTranslate = true }) => {
|
|
90614
90714
|
const { width: mmWidth, height: mmHeight, position, rotate, opacity } = schema;
|
|
90615
90715
|
const { x: mmX, y: mmY } = position;
|
|
@@ -90789,7 +90889,7 @@ var createSvgStr = (icon, attrs) => {
|
|
|
90789
90889
|
//#endregion
|
|
90790
90890
|
//#region ../../node_modules/lucide/dist/esm/icons/arrow-down-to-line.mjs
|
|
90791
90891
|
/**
|
|
90792
|
-
* @license lucide v1.
|
|
90892
|
+
* @license lucide v1.64.0 - ISC
|
|
90793
90893
|
*
|
|
90794
90894
|
* This source code is licensed under the ISC license.
|
|
90795
90895
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90802,7 +90902,7 @@ var ArrowDownToLine = [
|
|
|
90802
90902
|
//#endregion
|
|
90803
90903
|
//#region ../../node_modules/lucide/dist/esm/icons/arrow-up-to-line.mjs
|
|
90804
90904
|
/**
|
|
90805
|
-
* @license lucide v1.
|
|
90905
|
+
* @license lucide v1.64.0 - ISC
|
|
90806
90906
|
*
|
|
90807
90907
|
* This source code is licensed under the ISC license.
|
|
90808
90908
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90815,7 +90915,7 @@ var ArrowUpToLine = [
|
|
|
90815
90915
|
//#endregion
|
|
90816
90916
|
//#region ../../node_modules/lucide/dist/esm/icons/strikethrough.mjs
|
|
90817
90917
|
/**
|
|
90818
|
-
* @license lucide v1.
|
|
90918
|
+
* @license lucide v1.64.0 - ISC
|
|
90819
90919
|
*
|
|
90820
90920
|
* This source code is licensed under the ISC license.
|
|
90821
90921
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90833,7 +90933,7 @@ var Strikethrough = [
|
|
|
90833
90933
|
//#endregion
|
|
90834
90934
|
//#region ../../node_modules/lucide/dist/esm/icons/text-align-center.mjs
|
|
90835
90935
|
/**
|
|
90836
|
-
* @license lucide v1.
|
|
90936
|
+
* @license lucide v1.64.0 - ISC
|
|
90837
90937
|
*
|
|
90838
90938
|
* This source code is licensed under the ISC license.
|
|
90839
90939
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90846,7 +90946,7 @@ var TextAlignCenter = [
|
|
|
90846
90946
|
//#endregion
|
|
90847
90947
|
//#region ../../node_modules/lucide/dist/esm/icons/text-align-end.mjs
|
|
90848
90948
|
/**
|
|
90849
|
-
* @license lucide v1.
|
|
90949
|
+
* @license lucide v1.64.0 - ISC
|
|
90850
90950
|
*
|
|
90851
90951
|
* This source code is licensed under the ISC license.
|
|
90852
90952
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90859,7 +90959,7 @@ var TextAlignEnd = [
|
|
|
90859
90959
|
//#endregion
|
|
90860
90960
|
//#region ../../node_modules/lucide/dist/esm/icons/text-align-justify.mjs
|
|
90861
90961
|
/**
|
|
90862
|
-
* @license lucide v1.
|
|
90962
|
+
* @license lucide v1.64.0 - ISC
|
|
90863
90963
|
*
|
|
90864
90964
|
* This source code is licensed under the ISC license.
|
|
90865
90965
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90872,7 +90972,7 @@ var TextAlignJustify = [
|
|
|
90872
90972
|
//#endregion
|
|
90873
90973
|
//#region ../../node_modules/lucide/dist/esm/icons/text-align-start.mjs
|
|
90874
90974
|
/**
|
|
90875
|
-
* @license lucide v1.
|
|
90975
|
+
* @license lucide v1.64.0 - ISC
|
|
90876
90976
|
*
|
|
90877
90977
|
* This source code is licensed under the ISC license.
|
|
90878
90978
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90885,7 +90985,7 @@ var TextAlignStart = [
|
|
|
90885
90985
|
//#endregion
|
|
90886
90986
|
//#region ../../node_modules/lucide/dist/esm/icons/text-cursor-input.mjs
|
|
90887
90987
|
/**
|
|
90888
|
-
* @license lucide v1.
|
|
90988
|
+
* @license lucide v1.64.0 - ISC
|
|
90889
90989
|
*
|
|
90890
90990
|
* This source code is licensed under the ISC license.
|
|
90891
90991
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90900,7 +91000,7 @@ var TextCursorInput = [
|
|
|
90900
91000
|
//#endregion
|
|
90901
91001
|
//#region ../../node_modules/lucide/dist/esm/icons/underline.mjs
|
|
90902
91002
|
/**
|
|
90903
|
-
* @license lucide v1.
|
|
91003
|
+
* @license lucide v1.64.0 - ISC
|
|
90904
91004
|
*
|
|
90905
91005
|
* This source code is licensed under the ISC license.
|
|
90906
91006
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -90912,7 +91012,7 @@ var Underline = [["path", { d: "M6 4v6a6 6 0 0 0 12 0V4" }], ["line", {
|
|
|
90912
91012
|
y2: "20"
|
|
90913
91013
|
}]];
|
|
90914
91014
|
//#endregion
|
|
90915
|
-
//#region ../schemas/dist/builtins-
|
|
91015
|
+
//#region ../schemas/dist/builtins-BU9zSggO.js
|
|
90916
91016
|
var addUriLinkAnnotation = (arg) => {
|
|
90917
91017
|
const { pdfDoc, page, uri, rect, borderWidth = 0 } = arg;
|
|
90918
91018
|
const safeUri = normalizeSafeLinkUri(uri);
|
|
@@ -95308,10 +95408,10 @@ var DndContext = /*#__PURE__*/ (0, import_react$9.memo)(function DndContext(_ref
|
|
|
95308
95408
|
});
|
|
95309
95409
|
var NullContext = /*#__PURE__*/ (0, import_react$9.createContext)(null);
|
|
95310
95410
|
var defaultRole = "button";
|
|
95311
|
-
var ID_PREFIX$
|
|
95411
|
+
var ID_PREFIX$2 = "Draggable";
|
|
95312
95412
|
function useDraggable(_ref) {
|
|
95313
95413
|
let { id, data, disabled = false, attributes } = _ref;
|
|
95314
|
-
const key = useUniqueId(ID_PREFIX$
|
|
95414
|
+
const key = useUniqueId(ID_PREFIX$2);
|
|
95315
95415
|
const { activators, activatorEvent, active, activeNodeRect, ariaDescribedById, draggableNodes, over } = (0, import_react$9.useContext)(InternalContext);
|
|
95316
95416
|
const { role = defaultRole, roleDescription = "draggable", tabIndex = 0 } = attributes != null ? attributes : {};
|
|
95317
95417
|
const isDragging = (active == null ? void 0 : active.id) === id;
|
|
@@ -95364,11 +95464,11 @@ function useDraggable(_ref) {
|
|
|
95364
95464
|
function useDndContext() {
|
|
95365
95465
|
return (0, import_react$9.useContext)(PublicContext);
|
|
95366
95466
|
}
|
|
95367
|
-
var ID_PREFIX$1
|
|
95467
|
+
var ID_PREFIX$1 = "Droppable";
|
|
95368
95468
|
var defaultResizeObserverConfig = { timeout: 25 };
|
|
95369
95469
|
function useDroppable(_ref) {
|
|
95370
95470
|
let { data, disabled = false, id, resizeObserverConfig } = _ref;
|
|
95371
|
-
const key = useUniqueId(ID_PREFIX$1
|
|
95471
|
+
const key = useUniqueId(ID_PREFIX$1);
|
|
95372
95472
|
const { active, dispatch, over, measureDroppableContainers } = (0, import_react$9.useContext)(InternalContext);
|
|
95373
95473
|
const previous = (0, import_react$9.useRef)({ disabled });
|
|
95374
95474
|
const resizeObserverConnected = (0, import_react$9.useRef)(false);
|
|
@@ -95806,6 +95906,7 @@ function useDelayState$1(defaultValue) {
|
|
|
95806
95906
|
delayRef.current = null;
|
|
95807
95907
|
}
|
|
95808
95908
|
});
|
|
95909
|
+
import_react$9.useEffect(() => cancelPending, [cancelPending]);
|
|
95809
95910
|
return [value, useEvent((nextValue, immediatelyOrDelay) => {
|
|
95810
95911
|
const delayConfig = immediatelyOrDelay || { frame: 1 };
|
|
95811
95912
|
cancelPending();
|
|
@@ -95942,7 +96043,7 @@ function isFragment$1(object) {
|
|
|
95942
96043
|
}
|
|
95943
96044
|
//#endregion
|
|
95944
96045
|
//#region ../../node_modules/@rc-component/util/es/ref.js
|
|
95945
|
-
var ReactMajorVersion = Number(import_react$9.version
|
|
96046
|
+
var ReactMajorVersion = Number(import_react$9.version?.split(".")[0]);
|
|
95946
96047
|
var fillRef = (ref, node) => {
|
|
95947
96048
|
if (typeof ref === "function") ref(node);
|
|
95948
96049
|
else if (typeof ref === "object" && ref && "current" in ref) ref.current = node;
|
|
@@ -96022,6 +96123,7 @@ function getOrder$1(prepend) {
|
|
|
96022
96123
|
* Find style which inject by rc-util
|
|
96023
96124
|
*/
|
|
96024
96125
|
function findStyles$1(container) {
|
|
96126
|
+
if (!container) return [];
|
|
96025
96127
|
return Array.from((containerCache$1.get(container) || container).children).filter((node) => node.tagName === "STYLE");
|
|
96026
96128
|
}
|
|
96027
96129
|
function injectCSS$1(css, option = {}) {
|
|
@@ -96035,6 +96137,7 @@ function injectCSS$1(css, option = {}) {
|
|
|
96035
96137
|
if (csp?.nonce) styleNode.nonce = csp?.nonce;
|
|
96036
96138
|
styleNode.innerHTML = css;
|
|
96037
96139
|
const container = getContainer$1(option);
|
|
96140
|
+
if (!container) return null;
|
|
96038
96141
|
const { firstChild } = container;
|
|
96039
96142
|
if (prepend) {
|
|
96040
96143
|
if (isPrependQueue) {
|
|
@@ -96059,7 +96162,7 @@ function findExistNode$1(key, option = {}) {
|
|
|
96059
96162
|
}
|
|
96060
96163
|
function removeCSS(key, option = {}) {
|
|
96061
96164
|
const existNode = findExistNode$1(key, option);
|
|
96062
|
-
if (existNode) getContainer$1(option)
|
|
96165
|
+
if (existNode) getContainer$1(option)?.removeChild(existNode);
|
|
96063
96166
|
}
|
|
96064
96167
|
/**
|
|
96065
96168
|
* qiankun will inject `appendChild` to insert into other
|
|
@@ -96068,6 +96171,7 @@ function syncRealContainer$1(container, option) {
|
|
|
96068
96171
|
const cachedRealContainer = containerCache$1.get(container);
|
|
96069
96172
|
if (!cachedRealContainer || !contains$3(document, cachedRealContainer)) {
|
|
96070
96173
|
const placeholderStyle = injectCSS$1("", option);
|
|
96174
|
+
if (!placeholderStyle) return;
|
|
96071
96175
|
const { parentNode } = placeholderStyle;
|
|
96072
96176
|
containerCache$1.set(container, parentNode);
|
|
96073
96177
|
container.removeChild(placeholderStyle);
|
|
@@ -96075,6 +96179,7 @@ function syncRealContainer$1(container, option) {
|
|
|
96075
96179
|
}
|
|
96076
96180
|
function updateCSS$1(css, key, originOption = {}) {
|
|
96077
96181
|
const container = getContainer$1(originOption);
|
|
96182
|
+
if (!container) return null;
|
|
96078
96183
|
const styles = findStyles$1(container);
|
|
96079
96184
|
const option = {
|
|
96080
96185
|
...originOption,
|
|
@@ -96088,6 +96193,7 @@ function updateCSS$1(css, key, originOption = {}) {
|
|
|
96088
96193
|
return existNode;
|
|
96089
96194
|
}
|
|
96090
96195
|
const newNode = injectCSS$1(css, option);
|
|
96196
|
+
if (!newNode) return null;
|
|
96091
96197
|
newNode.setAttribute(getMark$1(option), key);
|
|
96092
96198
|
return newNode;
|
|
96093
96199
|
}
|
|
@@ -97110,8 +97216,14 @@ function internalSet(entity, paths, value, removeIfUndefined) {
|
|
|
97110
97216
|
if (!entity && typeof path === "number") clone = [];
|
|
97111
97217
|
else if (Array.isArray(entity)) clone = [...entity];
|
|
97112
97218
|
else clone = { ...entity };
|
|
97113
|
-
if (removeIfUndefined && value === void 0 && restPath.length === 1)
|
|
97114
|
-
|
|
97219
|
+
if (removeIfUndefined && value === void 0 && restPath.length === 1) {
|
|
97220
|
+
const origin = clone[path];
|
|
97221
|
+
if (origin && typeof origin === "object") {
|
|
97222
|
+
const child = Array.isArray(origin) ? [...origin] : { ...origin };
|
|
97223
|
+
delete child[restPath[0]];
|
|
97224
|
+
clone[path] = child;
|
|
97225
|
+
}
|
|
97226
|
+
} else clone[path] = internalSet(clone[path], restPath, value, removeIfUndefined);
|
|
97115
97227
|
return clone;
|
|
97116
97228
|
}
|
|
97117
97229
|
function set$1(entity, paths, value, removeIfUndefined = false) {
|
|
@@ -99651,7 +99763,7 @@ function getFontSizes(base) {
|
|
|
99651
99763
|
}
|
|
99652
99764
|
//#endregion
|
|
99653
99765
|
//#region node_modules/antd/es/version/index.js
|
|
99654
|
-
var version_default = "6.6.
|
|
99766
|
+
var version_default = "6.6.8";
|
|
99655
99767
|
//#endregion
|
|
99656
99768
|
//#region node_modules/antd/es/theme/themes/seed.js
|
|
99657
99769
|
var defaultPresetColors = {
|
|
@@ -104770,6 +104882,7 @@ function useNoticeTimer(duration, onClose, onUpdate) {
|
|
|
104770
104882
|
}
|
|
104771
104883
|
const onPause = import_react$9.useCallback(() => {
|
|
104772
104884
|
syncPassTime();
|
|
104885
|
+
lastRafTimeRef.current = null;
|
|
104773
104886
|
setWalking(false);
|
|
104774
104887
|
}, []);
|
|
104775
104888
|
const onResume = import_react$9.useCallback(() => {
|
|
@@ -104887,17 +105000,21 @@ var Notification = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
104887
105000
|
event.stopPropagation();
|
|
104888
105001
|
onInternalClose();
|
|
104889
105002
|
}
|
|
105003
|
+
const destroy = useEvent(() => {
|
|
105004
|
+
if (hovering) onInternalMouseLeave();
|
|
105005
|
+
});
|
|
105006
|
+
import_react$9.useEffect(() => destroy, [destroy]);
|
|
104890
105007
|
const offsetRef = import_react$9.useRef(offset);
|
|
104891
105008
|
if (offset !== void 0) offsetRef.current = offset;
|
|
104892
105009
|
const notificationIndexRef = import_react$9.useRef(notificationIndex);
|
|
104893
105010
|
if (notificationIndex !== void 0) notificationIndexRef.current = notificationIndex;
|
|
104894
105011
|
const mergedOffset = offset ?? offsetRef.current;
|
|
104895
105012
|
const mergedNotificationIndex = notificationIndex ?? notificationIndexRef.current ?? 0;
|
|
104896
|
-
const titleNode = title
|
|
105013
|
+
const titleNode = isNonNullable$1(title) ? /*#__PURE__*/ import_react$9.createElement("div", {
|
|
104897
105014
|
className: clsx(`${noticePrefixCls}-title`, classNames?.title),
|
|
104898
105015
|
style: styles?.title
|
|
104899
105016
|
}, title) : null;
|
|
104900
|
-
const descNode = description
|
|
105017
|
+
const descNode = isNonNullable$1(description) ? /*#__PURE__*/ import_react$9.createElement("div", {
|
|
104901
105018
|
className: clsx(`${noticePrefixCls}-description`, classNames?.description),
|
|
104902
105019
|
style: styles?.description
|
|
104903
105020
|
}, description) : null;
|
|
@@ -104909,14 +105026,14 @@ var Notification = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
104909
105026
|
style: styles?.section
|
|
104910
105027
|
}, titleNode, descNode);
|
|
104911
105028
|
else contentNode = titleNode || descNode;
|
|
104912
|
-
if (icon
|
|
105029
|
+
if (isNonNullable$1(icon)) contentNode = /*#__PURE__*/ import_react$9.createElement("div", {
|
|
104913
105030
|
className: clsx(`${noticePrefixCls}-wrapper`, classNames?.wrapper),
|
|
104914
105031
|
style: styles?.wrapper
|
|
104915
105032
|
}, /*#__PURE__*/ import_react$9.createElement("div", {
|
|
104916
105033
|
className: clsx(`${noticePrefixCls}-icon`, classNames?.icon),
|
|
104917
105034
|
style: styles?.icon
|
|
104918
105035
|
}, icon), contentNode);
|
|
104919
|
-
const actionsNode = actions ? /*#__PURE__*/ import_react$9.createElement("div", {
|
|
105036
|
+
const actionsNode = isReactRenderable(actions) ? /*#__PURE__*/ import_react$9.createElement("div", {
|
|
104920
105037
|
className: clsx(`${noticePrefixCls}-actions`, classNames?.actions),
|
|
104921
105038
|
style: styles?.actions
|
|
104922
105039
|
}, actions) : null;
|
|
@@ -105099,12 +105216,6 @@ var NotificationList = (props) => {
|
|
|
105099
105216
|
[`${prefixCls}-stack-expanded`]: expanded,
|
|
105100
105217
|
[`${listPrefixCls}-hovered`]: listHovering
|
|
105101
105218
|
}),
|
|
105102
|
-
onMouseEnter: () => {
|
|
105103
|
-
setListHovering(true);
|
|
105104
|
-
},
|
|
105105
|
-
onMouseLeave: () => {
|
|
105106
|
-
setListHovering(false);
|
|
105107
|
-
},
|
|
105108
105219
|
style: {
|
|
105109
105220
|
...styles?.list,
|
|
105110
105221
|
...style
|
|
@@ -105116,7 +105227,13 @@ var NotificationList = (props) => {
|
|
|
105116
105227
|
topNoticeWidth,
|
|
105117
105228
|
className: classNames?.listContent,
|
|
105118
105229
|
style: styles?.listContent,
|
|
105119
|
-
ref: contentRef
|
|
105230
|
+
ref: contentRef,
|
|
105231
|
+
onMouseEnter: () => {
|
|
105232
|
+
setListHovering(true);
|
|
105233
|
+
},
|
|
105234
|
+
onMouseLeave: () => {
|
|
105235
|
+
setListHovering(false);
|
|
105236
|
+
}
|
|
105120
105237
|
}, /*#__PURE__*/ import_react$9.createElement(CSSMotionList_default, _extends$137({
|
|
105121
105238
|
component: false,
|
|
105122
105239
|
keys,
|
|
@@ -105952,13 +106069,16 @@ var genPlacementStyle = (token, config) => {
|
|
|
105952
106069
|
opacity: 1,
|
|
105953
106070
|
transform: baseTransform
|
|
105954
106071
|
},
|
|
105955
|
-
[`${noticeMotionCls}-leave
|
|
105956
|
-
|
|
105957
|
-
|
|
105958
|
-
|
|
105959
|
-
|
|
105960
|
-
|
|
105961
|
-
|
|
106072
|
+
[`${noticeMotionCls}-leave`]: {
|
|
106073
|
+
pointerEvents: "none",
|
|
106074
|
+
"&-start": {
|
|
106075
|
+
opacity: 1,
|
|
106076
|
+
transform: baseTransform
|
|
106077
|
+
},
|
|
106078
|
+
"&-active": {
|
|
106079
|
+
opacity: 0,
|
|
106080
|
+
transform: enterTransform
|
|
106081
|
+
}
|
|
105962
106082
|
},
|
|
105963
106083
|
[`&${componentCls}-stack:not(${componentCls}-stack-expanded)`]: {
|
|
105964
106084
|
[noticeCls]: { clipPath: getPlacementStackClipPath(token, vertical) },
|
|
@@ -106013,7 +106133,7 @@ var prepareNotificationToken = (token) => {
|
|
|
106013
106133
|
/** Build a clip-path inset that keeps stack shadows visible. */
|
|
106014
106134
|
var getStackNoticeClipPath = (offset) => `inset(${offset} ${offset} ${offset} ${offset})`;
|
|
106015
106135
|
/** Generate shared list content and motion base styles. */
|
|
106016
|
-
var genNotificationListContentStyle = (token) => {
|
|
106136
|
+
var genNotificationListContentStyle = (token, pointerEvents) => {
|
|
106017
106137
|
const { componentCls, motionDurationMid, motionDurationSlow, motionEaseInOut } = token;
|
|
106018
106138
|
const listContentCls = `${`${componentCls}-list`}-content`;
|
|
106019
106139
|
return {
|
|
@@ -106026,6 +106146,7 @@ var genNotificationListContentStyle = (token) => {
|
|
|
106026
106146
|
width: "100%",
|
|
106027
106147
|
willChange: "height, transform",
|
|
106028
106148
|
transition: "none",
|
|
106149
|
+
pointerEvents,
|
|
106029
106150
|
[`&${listContentCls}-decrease`]: { transition: `height calc(${motionDurationSlow} * 2) ${motionEaseInOut} ${motionDurationMid}` }
|
|
106030
106151
|
},
|
|
106031
106152
|
[`${componentCls}-fade`]: {
|
|
@@ -106053,7 +106174,6 @@ var genNotificationListStyle = (token, config) => {
|
|
|
106053
106174
|
height: "100vh",
|
|
106054
106175
|
overflow: "hidden",
|
|
106055
106176
|
overscrollBehavior: "contain",
|
|
106056
|
-
[`${componentCls}-hook-holder`]: { position: "relative" },
|
|
106057
106177
|
[`&${listCls}`]: {
|
|
106058
106178
|
maxHeight: "100vh",
|
|
106059
106179
|
padding: `var(${notificationMarginEdgeVar})`,
|
|
@@ -106061,7 +106181,6 @@ var genNotificationListStyle = (token, config) => {
|
|
|
106061
106181
|
overflowY: "auto",
|
|
106062
106182
|
overscrollBehavior: "contain",
|
|
106063
106183
|
scrollbarWidth: "none",
|
|
106064
|
-
msOverflowStyle: "none",
|
|
106065
106184
|
pointerEvents: "none",
|
|
106066
106185
|
"&::-webkit-scrollbar": {
|
|
106067
106186
|
display: "none",
|
|
@@ -106069,7 +106188,7 @@ var genNotificationListStyle = (token, config) => {
|
|
|
106069
106188
|
height: 0
|
|
106070
106189
|
}
|
|
106071
106190
|
},
|
|
106072
|
-
...genNotificationListContentStyle(token),
|
|
106191
|
+
...genNotificationListContentStyle(token, config.listContentPointerEvents ?? "auto"),
|
|
106073
106192
|
[`&${componentCls}-stack`]: {
|
|
106074
106193
|
[noticeCls]: { clipPath: stackNoticeClipPath },
|
|
106075
106194
|
[`&:not(${componentCls}-stack-expanded)`]: {
|
|
@@ -106208,7 +106327,8 @@ var style_default$36 = genStyleHooks("Message", (token) => {
|
|
|
106208
106327
|
const messageToken = prepareMessageToken(token);
|
|
106209
106328
|
return [sharedGenerateStyle(messageToken, {
|
|
106210
106329
|
stackVisibleCount: 1,
|
|
106211
|
-
itemStyle: generateMessageStyle
|
|
106330
|
+
itemStyle: generateMessageStyle,
|
|
106331
|
+
listContentPointerEvents: "none"
|
|
106212
106332
|
}), generateMessageStackStyle(messageToken)];
|
|
106213
106333
|
}, prepareComponentToken$30);
|
|
106214
106334
|
//#endregion
|
|
@@ -106670,7 +106790,7 @@ var useSize = (customSize) => {
|
|
|
106670
106790
|
const size = import_react$9.useContext(SizeContext);
|
|
106671
106791
|
return import_react$9.useMemo(() => {
|
|
106672
106792
|
if (!customSize) return size;
|
|
106673
|
-
if (isString$1(customSize)) return customSize
|
|
106793
|
+
if (isString$1(customSize)) return customSize;
|
|
106674
106794
|
if (isFunction$4(customSize)) return customSize(size);
|
|
106675
106795
|
return size;
|
|
106676
106796
|
}, [customSize, size]);
|
|
@@ -106920,16 +107040,10 @@ var DefaultLoadingIcon = (props) => {
|
|
|
106920
107040
|
//#region node_modules/antd/es/style/motion/collapse.js
|
|
106921
107041
|
var genCollapseMotion = (token) => {
|
|
106922
107042
|
const { componentCls, antCls, motionDurationMid, motionEaseInOut } = token;
|
|
106923
|
-
return { [componentCls]: {
|
|
106924
|
-
|
|
106925
|
-
|
|
106926
|
-
|
|
106927
|
-
},
|
|
106928
|
-
[`${antCls}-motion-collapse`]: {
|
|
106929
|
-
overflow: "hidden",
|
|
106930
|
-
transition: `${["height", "opacity"].map((prop) => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(", ")} !important`
|
|
106931
|
-
}
|
|
106932
|
-
} };
|
|
107043
|
+
return { [componentCls]: { [`${antCls}-motion-collapse`]: {
|
|
107044
|
+
overflow: "hidden",
|
|
107045
|
+
transition: `${["height", "opacity"].map((prop) => `${prop} ${motionDurationMid} ${motionEaseInOut}`).join(", ")} !important`
|
|
107046
|
+
} } };
|
|
106933
107047
|
};
|
|
106934
107048
|
//#endregion
|
|
106935
107049
|
//#region node_modules/antd/es/style/motion/motion.js
|
|
@@ -109424,7 +109538,7 @@ var Button = /* @__PURE__ */ import_react$9.forwardRef((props, ref) => {
|
|
|
109424
109538
|
*/
|
|
109425
109539
|
let iconNode;
|
|
109426
109540
|
if (icon && !innerLoading) iconNode = iconWrapperElement(icon);
|
|
109427
|
-
else if (
|
|
109541
|
+
else if (innerLoading && mergedLoadingIcon) iconNode = iconWrapperElement(mergedLoadingIcon);
|
|
109428
109542
|
else iconNode = defaultLoadingIconElement;
|
|
109429
109543
|
const contentNode = isReactRenderable(children) ? spaceChildren(children, needInserted && mergedInsertSpace, mergedStyles.content, mergedClassNames.content) : null;
|
|
109430
109544
|
if (linkButtonRestProps.href !== void 0) return /*#__PURE__*/ import_react$9.createElement("a", {
|
|
@@ -109458,6 +109572,7 @@ Button.__ANT_BUTTON = true;
|
|
|
109458
109572
|
//#region node_modules/antd/es/_util/ActionButton.js
|
|
109459
109573
|
var ActionButton = (props) => {
|
|
109460
109574
|
const { type, children, prefixCls, buttonProps, close, autoFocus, emitEvent, isSilent, quitOnNullishReturnValue, actionFn } = props;
|
|
109575
|
+
const { onClick: buttonOnClick, ...restButtonProps } = buttonProps || {};
|
|
109461
109576
|
const clickedRef = import_react$9.useRef(false);
|
|
109462
109577
|
const buttonRef = import_react$9.useRef(null);
|
|
109463
109578
|
const [loading, setLoading] = useSafeState(false);
|
|
@@ -109492,6 +109607,7 @@ var ActionButton = (props) => {
|
|
|
109492
109607
|
clickedRef.current = true;
|
|
109493
109608
|
if (!actionFn) {
|
|
109494
109609
|
onInternalClose();
|
|
109610
|
+
buttonOnClick?.(e);
|
|
109495
109611
|
return;
|
|
109496
109612
|
}
|
|
109497
109613
|
let returnValueOfOnOk;
|
|
@@ -109500,6 +109616,7 @@ var ActionButton = (props) => {
|
|
|
109500
109616
|
if (quitOnNullishReturnValue && !isThenable(returnValueOfOnOk)) {
|
|
109501
109617
|
clickedRef.current = false;
|
|
109502
109618
|
onInternalClose(e);
|
|
109619
|
+
buttonOnClick?.(e);
|
|
109503
109620
|
return;
|
|
109504
109621
|
}
|
|
109505
109622
|
} else if (actionFn.length) {
|
|
@@ -109509,9 +109626,11 @@ var ActionButton = (props) => {
|
|
|
109509
109626
|
returnValueOfOnOk = actionFn();
|
|
109510
109627
|
if (!isThenable(returnValueOfOnOk)) {
|
|
109511
109628
|
onInternalClose();
|
|
109629
|
+
buttonOnClick?.(e);
|
|
109512
109630
|
return;
|
|
109513
109631
|
}
|
|
109514
109632
|
}
|
|
109633
|
+
buttonOnClick?.(e);
|
|
109515
109634
|
handlePromiseOnOk(returnValueOfOnOk);
|
|
109516
109635
|
};
|
|
109517
109636
|
return /*#__PURE__*/ import_react$9.createElement(Button, {
|
|
@@ -109519,7 +109638,7 @@ var ActionButton = (props) => {
|
|
|
109519
109638
|
onClick,
|
|
109520
109639
|
loading,
|
|
109521
109640
|
prefixCls,
|
|
109522
|
-
...
|
|
109641
|
+
...restButtonProps,
|
|
109523
109642
|
ref: buttonRef
|
|
109524
109643
|
}, children);
|
|
109525
109644
|
};
|
|
@@ -117987,7 +118106,7 @@ var genItemStyle = (token) => {
|
|
|
117987
118106
|
minHeight: optionHeight,
|
|
117988
118107
|
padding: optionPadding,
|
|
117989
118108
|
color: token.colorText,
|
|
117990
|
-
fontWeight:
|
|
118109
|
+
fontWeight: 400,
|
|
117991
118110
|
fontSize: optionFontSize,
|
|
117992
118111
|
lineHeight: optionLineHeight,
|
|
117993
118112
|
boxSizing: "border-box"
|
|
@@ -118187,7 +118306,7 @@ var genSelectInputMultipleStyle = (token) => {
|
|
|
118187
118306
|
display: "inline-flex",
|
|
118188
118307
|
alignItems: "center",
|
|
118189
118308
|
color: colorIcon,
|
|
118190
|
-
fontWeight:
|
|
118309
|
+
fontWeight: 700,
|
|
118191
118310
|
fontSize: 10,
|
|
118192
118311
|
lineHeight: "inherit",
|
|
118193
118312
|
cursor: "pointer",
|
|
@@ -118543,7 +118662,7 @@ var genBaseStyle$9 = (token) => {
|
|
|
118543
118662
|
...resetComponent(token),
|
|
118544
118663
|
[`${componentCls}-selection-item`]: {
|
|
118545
118664
|
flex: 1,
|
|
118546
|
-
fontWeight:
|
|
118665
|
+
fontWeight: 400,
|
|
118547
118666
|
position: "relative",
|
|
118548
118667
|
userSelect: "none",
|
|
118549
118668
|
...textEllipsis,
|
|
@@ -118765,7 +118884,10 @@ function useIcons$1({ suffixIcon, contextSuffixIcon, clearIcon, contextClearIcon
|
|
|
118765
118884
|
function usePopupRender(renderFn) {
|
|
118766
118885
|
return import_react$9.useMemo(() => {
|
|
118767
118886
|
if (!renderFn) return;
|
|
118768
|
-
return (...args) => /*#__PURE__*/ import_react$9.createElement(ContextIsolator, {
|
|
118887
|
+
return (...args) => /*#__PURE__*/ import_react$9.createElement(ContextIsolator, {
|
|
118888
|
+
space: true,
|
|
118889
|
+
form: true
|
|
118890
|
+
}, renderFn.apply(void 0, args));
|
|
118769
118891
|
}, [renderFn]);
|
|
118770
118892
|
}
|
|
118771
118893
|
//#endregion
|
|
@@ -120894,8 +121016,7 @@ var genTooltipStyle = (token) => {
|
|
|
120894
121016
|
`&-placement-right`,
|
|
120895
121017
|
`&-placement-rightTop`,
|
|
120896
121018
|
`&-placement-rightBottom`
|
|
120897
|
-
].join(",")]: { [`${componentCls}-
|
|
120898
|
-
[`${componentCls}-content`]: { position: "relative" },
|
|
121019
|
+
].join(",")]: { [`${componentCls}-container`]: { borderRadius: token.min(tooltipBorderRadius, 8) } },
|
|
120899
121020
|
...genPresetColor$1(token, (colorKey, { darkColor }) => ({ [`&${componentCls}-${colorKey}`]: {
|
|
120900
121021
|
[`${componentCls}-container`]: { backgroundColor: darkColor },
|
|
120901
121022
|
[`${componentCls}-arrow`]: { [varName("arrow-background-color")]: darkColor }
|
|
@@ -121161,7 +121282,7 @@ var genBaseStyle$8 = (token) => {
|
|
|
121161
121282
|
value: 0
|
|
121162
121283
|
},
|
|
121163
121284
|
zIndex: zIndexPopup,
|
|
121164
|
-
fontWeight:
|
|
121285
|
+
fontWeight: 400,
|
|
121165
121286
|
whiteSpace: "normal",
|
|
121166
121287
|
textAlign: "start",
|
|
121167
121288
|
cursor: "auto",
|
|
@@ -121210,7 +121331,7 @@ var genColorStyle = (token) => {
|
|
|
121210
121331
|
const lightColor = token[`${colorKey}6`];
|
|
121211
121332
|
return { [`&${componentCls}-${colorKey}`]: {
|
|
121212
121333
|
[varName("arrow-background-color")]: lightColor,
|
|
121213
|
-
[`${componentCls}-
|
|
121334
|
+
[`${componentCls}-container`]: { backgroundColor: lightColor },
|
|
121214
121335
|
[`${componentCls}-arrow`]: { background: "transparent" }
|
|
121215
121336
|
} };
|
|
121216
121337
|
}) };
|
|
@@ -126575,12 +126696,6 @@ var genBaseStyle$7 = (token) => {
|
|
|
126575
126696
|
overflowY: "auto"
|
|
126576
126697
|
},
|
|
126577
126698
|
[`&-trigger${antCls}-btn`]: { [`& > ${iconCls}-down, & > ${antCls}-btn-icon > ${iconCls}-down`]: { fontSize: fontSizeIcon } },
|
|
126578
|
-
[`${componentCls}-wrap`]: {
|
|
126579
|
-
position: "relative",
|
|
126580
|
-
[`${antCls}-btn > ${iconCls}-down`]: { fontSize: fontSizeIcon },
|
|
126581
|
-
[`${iconCls}-down::before`]: { transition: `transform ${motionDurationMid}` }
|
|
126582
|
-
},
|
|
126583
|
-
[`${componentCls}-wrap-open`]: { [`${iconCls}-down::before`]: { transform: `rotate(180deg)` } },
|
|
126584
126699
|
"&-hidden, &-menu-hidden, &-menu-submenu-hidden": { display: "none" },
|
|
126585
126700
|
[`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottomLeft,
|
|
126586
126701
|
&${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottomLeft,
|
|
@@ -126695,7 +126810,7 @@ var genBaseStyle$7 = (token) => {
|
|
|
126695
126810
|
margin: 0,
|
|
126696
126811
|
padding: `${unit$1(paddingBlock)} ${unit$1(controlPaddingHorizontal)}`,
|
|
126697
126812
|
color: token.colorText,
|
|
126698
|
-
fontWeight:
|
|
126813
|
+
fontWeight: 400,
|
|
126699
126814
|
fontSize,
|
|
126700
126815
|
lineHeight: token.lineHeight,
|
|
126701
126816
|
cursor: "pointer",
|
|
@@ -126914,10 +127029,10 @@ Dropdown$1._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;
|
|
|
126914
127029
|
var button_default = Button;
|
|
126915
127030
|
//#endregion
|
|
126916
127031
|
//#region ../../node_modules/dayjs/dayjs.min.js
|
|
126917
|
-
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127032
|
+
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module, this$10) => {
|
|
126918
127033
|
(function(t, e) {
|
|
126919
127034
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
126920
|
-
})(
|
|
127035
|
+
})(this$10, (function() {
|
|
126921
127036
|
"use strict";
|
|
126922
127037
|
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = {
|
|
126923
127038
|
name: "en",
|
|
@@ -127212,10 +127327,10 @@ var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
127212
127327
|
}));
|
|
127213
127328
|
//#endregion
|
|
127214
127329
|
//#region ../../node_modules/dayjs/plugin/weekday.js
|
|
127215
|
-
var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127330
|
+
var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module, this$9) => {
|
|
127216
127331
|
(function(e, t) {
|
|
127217
127332
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t();
|
|
127218
|
-
})(
|
|
127333
|
+
})(this$9, (function() {
|
|
127219
127334
|
"use strict";
|
|
127220
127335
|
return function(e, t) {
|
|
127221
127336
|
t.prototype.weekday = function(e) {
|
|
@@ -127227,10 +127342,10 @@ var require_weekday = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
127227
127342
|
}));
|
|
127228
127343
|
//#endregion
|
|
127229
127344
|
//#region ../../node_modules/dayjs/plugin/localeData.js
|
|
127230
|
-
var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127345
|
+
var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module, this$8) => {
|
|
127231
127346
|
(function(n, e) {
|
|
127232
127347
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (n = "undefined" != typeof globalThis ? globalThis : n || self).dayjs_plugin_localeData = e();
|
|
127233
|
-
})(
|
|
127348
|
+
})(this$8, (function() {
|
|
127234
127349
|
"use strict";
|
|
127235
127350
|
return function(n, e, t) {
|
|
127236
127351
|
var r = e.prototype, o = function(n) {
|
|
@@ -127325,10 +127440,10 @@ var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
127325
127440
|
}));
|
|
127326
127441
|
//#endregion
|
|
127327
127442
|
//#region ../../node_modules/dayjs/plugin/weekOfYear.js
|
|
127328
|
-
var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127443
|
+
var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module, this$7) => {
|
|
127329
127444
|
(function(e, t) {
|
|
127330
127445
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekOfYear = t();
|
|
127331
|
-
})(
|
|
127446
|
+
})(this$7, (function() {
|
|
127332
127447
|
"use strict";
|
|
127333
127448
|
var e = "week", t = "year";
|
|
127334
127449
|
return function(i, n, r) {
|
|
@@ -127350,10 +127465,10 @@ var require_weekOfYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
127350
127465
|
}));
|
|
127351
127466
|
//#endregion
|
|
127352
127467
|
//#region ../../node_modules/dayjs/plugin/weekYear.js
|
|
127353
|
-
var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127468
|
+
var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module, this$6) => {
|
|
127354
127469
|
(function(e, t) {
|
|
127355
127470
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekYear = t();
|
|
127356
|
-
})(
|
|
127471
|
+
})(this$6, (function() {
|
|
127357
127472
|
"use strict";
|
|
127358
127473
|
return function(e, t) {
|
|
127359
127474
|
t.prototype.weekYear = function() {
|
|
@@ -127365,10 +127480,10 @@ var require_weekYear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
127365
127480
|
}));
|
|
127366
127481
|
//#endregion
|
|
127367
127482
|
//#region ../../node_modules/dayjs/plugin/advancedFormat.js
|
|
127368
|
-
var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127483
|
+
var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module, this$5) => {
|
|
127369
127484
|
(function(e, t) {
|
|
127370
127485
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_advancedFormat = t();
|
|
127371
|
-
})(
|
|
127486
|
+
})(this$5, (function() {
|
|
127372
127487
|
"use strict";
|
|
127373
127488
|
return function(e, t) {
|
|
127374
127489
|
var r = t.prototype, n = r.format;
|
|
@@ -127402,10 +127517,10 @@ var require_advancedFormat = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
127402
127517
|
}));
|
|
127403
127518
|
//#endregion
|
|
127404
127519
|
//#region ../../node_modules/dayjs/plugin/customParseFormat.js
|
|
127405
|
-
var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
127520
|
+
var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module, this$4) => {
|
|
127406
127521
|
(function(e, t) {
|
|
127407
127522
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
|
|
127408
|
-
})(
|
|
127523
|
+
})(this$4, (function() {
|
|
127409
127524
|
"use strict";
|
|
127410
127525
|
var e = {
|
|
127411
127526
|
LTS: "h:mm:ss A",
|
|
@@ -134241,7 +134356,7 @@ var genInputGroupStyle = (token) => {
|
|
|
134241
134356
|
position: "relative",
|
|
134242
134357
|
padding: `0 ${unit$1(token.paddingInline)}`,
|
|
134243
134358
|
color: token.colorText,
|
|
134244
|
-
fontWeight:
|
|
134359
|
+
fontWeight: 400,
|
|
134245
134360
|
fontSize: token.inputFontSize,
|
|
134246
134361
|
textAlign: "center",
|
|
134247
134362
|
borderRadius: token.borderRadius,
|
|
@@ -134254,15 +134369,6 @@ var genInputGroupStyle = (token) => {
|
|
|
134254
134369
|
border: `${unit$1(token.lineWidth)} ${token.lineType} transparent`,
|
|
134255
134370
|
boxShadow: "none"
|
|
134256
134371
|
}
|
|
134257
|
-
},
|
|
134258
|
-
[`${antCls}-cascader-picker`]: {
|
|
134259
|
-
margin: `-9px ${unit$1(token.calc(token.paddingInline).mul(-1).equal())}`,
|
|
134260
|
-
backgroundColor: "transparent",
|
|
134261
|
-
[`${antCls}-cascader-input`]: {
|
|
134262
|
-
textAlign: "start",
|
|
134263
|
-
border: 0,
|
|
134264
|
-
boxShadow: "none"
|
|
134265
|
-
}
|
|
134266
134372
|
}
|
|
134267
134373
|
}
|
|
134268
134374
|
},
|
|
@@ -134340,7 +134446,6 @@ var genInputGroupStyle = (token) => {
|
|
|
134340
134446
|
[componentCls]: { float: "none" },
|
|
134341
134447
|
[`& > ${antCls}-select,
|
|
134342
134448
|
& > ${antCls}-select-auto-complete ${componentCls},
|
|
134343
|
-
& > ${antCls}-cascader-picker ${componentCls},
|
|
134344
134449
|
& > ${componentCls}-group-wrapper ${componentCls}`]: {
|
|
134345
134450
|
borderInlineEndWidth: token.lineWidth,
|
|
134346
134451
|
borderRadius: 0,
|
|
@@ -134350,15 +134455,12 @@ var genInputGroupStyle = (token) => {
|
|
|
134350
134455
|
[`& > ${antCls}-select > ${antCls}-select-arrow`]: { zIndex: 1 },
|
|
134351
134456
|
[`& > *:first-child,
|
|
134352
134457
|
& > ${antCls}-select:first-child,
|
|
134353
|
-
& > ${antCls}-select-auto-complete:first-child ${componentCls}
|
|
134354
|
-
& > ${antCls}-cascader-picker:first-child ${componentCls}`]: {
|
|
134458
|
+
& > ${antCls}-select-auto-complete:first-child ${componentCls}`]: {
|
|
134355
134459
|
borderStartStartRadius: token.borderRadius,
|
|
134356
134460
|
borderEndStartRadius: token.borderRadius
|
|
134357
134461
|
},
|
|
134358
134462
|
[`& > *:last-child,
|
|
134359
|
-
& > ${antCls}-select:last-child
|
|
134360
|
-
& > ${antCls}-cascader-picker:last-child ${componentCls},
|
|
134361
|
-
& > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {
|
|
134463
|
+
& > ${antCls}-select:last-child`]: {
|
|
134362
134464
|
borderInlineEndWidth: token.lineWidth,
|
|
134363
134465
|
borderStartEndRadius: token.borderRadius,
|
|
134364
134466
|
borderEndEndRadius: token.borderRadius
|
|
@@ -134620,7 +134722,7 @@ var genOverflowStyle = (token) => {
|
|
|
134620
134722
|
display: "inline-flex",
|
|
134621
134723
|
alignItems: "center",
|
|
134622
134724
|
color: colorIcon,
|
|
134623
|
-
fontWeight:
|
|
134725
|
+
fontWeight: 700,
|
|
134624
134726
|
fontSize: 10,
|
|
134625
134727
|
lineHeight: "inherit",
|
|
134626
134728
|
cursor: "pointer",
|
|
@@ -134886,7 +134988,7 @@ var genPanelStyle = (token) => {
|
|
|
134886
134988
|
"th, td": {
|
|
134887
134989
|
position: "relative",
|
|
134888
134990
|
minWidth: cellHeight,
|
|
134889
|
-
fontWeight:
|
|
134991
|
+
fontWeight: 400
|
|
134890
134992
|
},
|
|
134891
134993
|
th: {
|
|
134892
134994
|
height: token.calc(cellHeight).add(token.calc(pickerCellPaddingVertical).mul(2)).equal(),
|
|
@@ -136862,7 +136964,7 @@ var genDropdownStyle = (token) => {
|
|
|
136862
136964
|
margin: 0,
|
|
136863
136965
|
padding: `${unit$1(token.paddingXXS)} ${unit$1(token.paddingSM)}`,
|
|
136864
136966
|
color: token.colorText,
|
|
136865
|
-
fontWeight:
|
|
136967
|
+
fontWeight: 400,
|
|
136866
136968
|
fontSize: token.fontSize,
|
|
136867
136969
|
lineHeight: token.lineHeight,
|
|
136868
136970
|
cursor: "pointer",
|
|
@@ -137500,7 +137602,7 @@ var CardGrid = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
137500
137602
|
//#endregion
|
|
137501
137603
|
//#region node_modules/antd/es/card/style/index.js
|
|
137502
137604
|
var genCardHeadStyle = (token) => {
|
|
137503
|
-
const { antCls,
|
|
137605
|
+
const { antCls, headerHeight, headerPadding, tabsMarginBottom } = token;
|
|
137504
137606
|
return {
|
|
137505
137607
|
display: "flex",
|
|
137506
137608
|
justifyContent: "center",
|
|
@@ -137524,10 +137626,7 @@ var genCardHeadStyle = (token) => {
|
|
|
137524
137626
|
display: "inline-block",
|
|
137525
137627
|
flex: 1,
|
|
137526
137628
|
...textEllipsis,
|
|
137527
|
-
[`
|
|
137528
|
-
> ${componentCls}-typography,
|
|
137529
|
-
> ${componentCls}-typography-edit-content
|
|
137530
|
-
`]: {
|
|
137629
|
+
[`> ${antCls}-typography`]: {
|
|
137531
137630
|
insetInlineStart: 0,
|
|
137532
137631
|
marginTop: 0,
|
|
137533
137632
|
marginBottom: 0
|
|
@@ -137537,9 +137636,8 @@ var genCardHeadStyle = (token) => {
|
|
|
137537
137636
|
clear: "both",
|
|
137538
137637
|
marginBottom: tabsMarginBottom,
|
|
137539
137638
|
color: token.colorText,
|
|
137540
|
-
fontWeight:
|
|
137541
|
-
fontSize: token.fontSize
|
|
137542
|
-
"&-bar": { borderBottom: `${unit$1(token.lineWidth)} ${token.lineType} ${token.colorBorderSecondary}` }
|
|
137639
|
+
fontWeight: 400,
|
|
137640
|
+
fontSize: token.fontSize
|
|
137543
137641
|
}
|
|
137544
137642
|
};
|
|
137545
137643
|
};
|
|
@@ -137657,7 +137755,7 @@ var genCardStyle = (token) => {
|
|
|
137657
137755
|
[`${componentCls}-extra`]: {
|
|
137658
137756
|
marginInlineStart: "auto",
|
|
137659
137757
|
color: extraColor,
|
|
137660
|
-
fontWeight:
|
|
137758
|
+
fontWeight: 400,
|
|
137661
137759
|
fontSize: token.fontSize
|
|
137662
137760
|
},
|
|
137663
137761
|
[`${componentCls}-body`]: {
|
|
@@ -137811,7 +137909,7 @@ var Card$1 = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
137811
137909
|
const hasActiveTabKey = activeTabKey !== void 0;
|
|
137812
137910
|
const extraProps = {
|
|
137813
137911
|
...tabProps,
|
|
137814
|
-
[hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,
|
|
137912
|
+
[hasActiveTabKey ? "activeKey" : "defaultActiveKey"]: hasActiveTabKey ? activeTabKey : defaultActiveTabKey ?? tabProps.defaultActiveKey,
|
|
137815
137913
|
tabBarExtraContent
|
|
137816
137914
|
};
|
|
137817
137915
|
let head;
|
|
@@ -140249,7 +140347,7 @@ var CheckboxGroup = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
140249
140347
|
const rootCls = useCSSVarCls(prefixCls);
|
|
140250
140348
|
const [hashId, cssVarCls] = style_default$20(prefixCls, rootCls);
|
|
140251
140349
|
const domProps = omit(restProps, ["value", "disabled"]);
|
|
140252
|
-
const childrenNode =
|
|
140350
|
+
const childrenNode = memoizedOptions.length > 0 ? memoizedOptions.map((option) => /*#__PURE__*/ import_react$9.createElement(Checkbox$1, {
|
|
140253
140351
|
prefixCls,
|
|
140254
140352
|
key: option.value.toString(),
|
|
140255
140353
|
disabled: "disabled" in option ? option.disabled : restProps.disabled,
|
|
@@ -140528,7 +140626,7 @@ var genSharedDividerStyle = (token) => {
|
|
|
140528
140626
|
},
|
|
140529
140627
|
[`&-plain${componentCls}-with-text`]: {
|
|
140530
140628
|
color: token.colorText,
|
|
140531
|
-
fontWeight:
|
|
140629
|
+
fontWeight: 400,
|
|
140532
140630
|
fontSize: token.fontSize
|
|
140533
140631
|
},
|
|
140534
140632
|
[`&-horizontal${componentCls}-with-text-start${componentCls}-no-default-orientation-margin-start`]: {
|
|
@@ -140571,7 +140669,7 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
140571
140669
|
const railCls = `${prefixCls}-rail`;
|
|
140572
140670
|
const [hashId, cssVarCls] = style_default$19(prefixCls);
|
|
140573
140671
|
const sizeFullName = useSize(customSize);
|
|
140574
|
-
const hasChildren =
|
|
140672
|
+
const hasChildren = isReactRenderable(children);
|
|
140575
140673
|
const validTitlePlacement = titlePlacementList.includes(orientation || "");
|
|
140576
140674
|
const mergedTitlePlacement = import_react$9.useMemo(() => {
|
|
140577
140675
|
const placement = titlePlacement ?? (validTitlePlacement ? orientation : "center");
|
|
@@ -140610,8 +140708,8 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
140610
140708
|
[`${prefixCls}-no-default-orientation-margin-end`]: hasMarginEnd,
|
|
140611
140709
|
[`${prefixCls}-md`]: sizeFullName === "medium" || sizeFullName === "middle",
|
|
140612
140710
|
[`${prefixCls}-sm`]: sizeFullName === "small",
|
|
140613
|
-
[railCls]: !
|
|
140614
|
-
[mergedClassNames.rail]: mergedClassNames.rail && !
|
|
140711
|
+
[railCls]: !hasChildren,
|
|
140712
|
+
[mergedClassNames.rail]: mergedClassNames.rail && !hasChildren
|
|
140615
140713
|
}, className, rootClassName, mergedClassNames.root);
|
|
140616
140714
|
const memoizedPlacementMargin = import_react$9.useMemo(() => {
|
|
140617
140715
|
if (isNumber$2(orientationMargin)) return orientationMargin;
|
|
@@ -140629,12 +140727,12 @@ var Divider = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
140629
140727
|
className: classString,
|
|
140630
140728
|
style: {
|
|
140631
140729
|
...mergedStyles.root,
|
|
140632
|
-
...
|
|
140730
|
+
...hasChildren ? {} : mergedStyles.rail,
|
|
140633
140731
|
...style
|
|
140634
140732
|
},
|
|
140635
140733
|
...restProps,
|
|
140636
140734
|
role: "separator"
|
|
140637
|
-
},
|
|
140735
|
+
}, hasChildren && !mergedVertical && /*#__PURE__*/ import_react$9.createElement(import_react$9.Fragment, null, /*#__PURE__*/ import_react$9.createElement("div", {
|
|
140638
140736
|
className: clsx(railCls, `${railCls}-start`, mergedClassNames.rail),
|
|
140639
140737
|
style: mergedStyles.rail
|
|
140640
140738
|
}), /*#__PURE__*/ import_react$9.createElement("span", {
|
|
@@ -142340,10 +142438,6 @@ var genInputNumberStyles = (token) => {
|
|
|
142340
142438
|
appearance: "none"
|
|
142341
142439
|
}
|
|
142342
142440
|
},
|
|
142343
|
-
[`&:hover ${componentCls}-handler-wrap, &-focused ${componentCls}-handler-wrap`]: {
|
|
142344
|
-
width: token.handleWidth,
|
|
142345
|
-
opacity: 1
|
|
142346
|
-
},
|
|
142347
142441
|
[`&-disabled ${componentCls}-input`]: {
|
|
142348
142442
|
cursor: "not-allowed",
|
|
142349
142443
|
color: token.colorTextDisabled
|
|
@@ -142354,7 +142448,7 @@ var genInputNumberStyles = (token) => {
|
|
|
142354
142448
|
...resetIcon(),
|
|
142355
142449
|
userSelect: "none",
|
|
142356
142450
|
overflow: "hidden",
|
|
142357
|
-
fontWeight:
|
|
142451
|
+
fontWeight: 700,
|
|
142358
142452
|
lineHeight: 0,
|
|
142359
142453
|
textAlign: "center",
|
|
142360
142454
|
cursor: "pointer",
|
|
@@ -145575,7 +145669,7 @@ var genColorBlockStyle = (token, size) => {
|
|
|
145575
145669
|
//#endregion
|
|
145576
145670
|
//#region node_modules/antd/es/color-picker/style/input.js
|
|
145577
145671
|
var genInputStyle = (token) => {
|
|
145578
|
-
const { componentCls, antCls, fontSizeSM, lineHeightSM, colorPickerAlphaInputWidth, marginXXS, paddingXXS, controlHeightSM, marginXS,
|
|
145672
|
+
const { componentCls, antCls, fontSizeSM, lineHeightSM, colorPickerAlphaInputWidth, marginXXS, paddingXXS, controlHeightSM, marginXS, paddingXS, colorTextPlaceholder, colorPickerInputNumberHandleWidth, lineWidth } = token;
|
|
145579
145673
|
return { [`${componentCls}-input-container`]: {
|
|
145580
145674
|
display: "flex",
|
|
145581
145675
|
[`${componentCls}-steppers${antCls}-input-number`]: {
|
|
@@ -145586,7 +145680,7 @@ var genInputStyle = (token) => {
|
|
|
145586
145680
|
paddingInlineStart: paddingXXS,
|
|
145587
145681
|
paddingInlineEnd: 0
|
|
145588
145682
|
},
|
|
145589
|
-
[`${antCls}-input-number-
|
|
145683
|
+
[`${antCls}-input-number-actions`]: { width: colorPickerInputNumberHandleWidth }
|
|
145590
145684
|
},
|
|
145591
145685
|
[`${componentCls}-steppers${componentCls}-alpha-input`]: {
|
|
145592
145686
|
flex: `0 0 ${unit$1(colorPickerAlphaInputWidth)}`,
|
|
@@ -145596,16 +145690,11 @@ var genInputStyle = (token) => {
|
|
|
145596
145690
|
marginInlineEnd: marginXS,
|
|
145597
145691
|
width: "auto",
|
|
145598
145692
|
"&-single": {
|
|
145599
|
-
|
|
145600
|
-
|
|
145601
|
-
|
|
145602
|
-
|
|
145603
|
-
[`${antCls}-select-
|
|
145604
|
-
[`${antCls}-select-selection-item`]: {
|
|
145605
|
-
paddingInlineEnd: token.calc(fontSizeIcon).add(marginXXS).equal(),
|
|
145606
|
-
fontSize: fontSizeSM,
|
|
145607
|
-
lineHeight: unit$1(controlHeightSM)
|
|
145608
|
-
},
|
|
145693
|
+
padding: 0,
|
|
145694
|
+
border: 0,
|
|
145695
|
+
fontSize: fontSizeSM,
|
|
145696
|
+
lineHeight: unit$1(controlHeightSM),
|
|
145697
|
+
[`${antCls}-select-content`]: { marginInlineEnd: marginXXS },
|
|
145609
145698
|
[`${antCls}-select-item-option-content`]: {
|
|
145610
145699
|
fontSize: fontSizeSM,
|
|
145611
145700
|
lineHeight: lineHeightSM
|
|
@@ -146067,7 +146156,7 @@ var ColorPicker$1 = (props) => {
|
|
|
146067
146156
|
const { status: contextStatus } = import_react$9.useContext(FormItemInputContext);
|
|
146068
146157
|
const rootCls = useCSSVarCls(prefixCls);
|
|
146069
146158
|
const [hashId, cssVarCls] = style_default$15(prefixCls, rootCls);
|
|
146070
|
-
const mergedRootCls = clsx(rootClassName, cssVarCls, rootCls, { [`${prefixCls}-rtl`]: direction });
|
|
146159
|
+
const mergedRootCls = clsx(rootClassName, cssVarCls, rootCls, { [`${prefixCls}-rtl`]: direction === "rtl" });
|
|
146071
146160
|
const mergedCls = clsx(getStatusClassNames(prefixCls, contextStatus), {
|
|
146072
146161
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
146073
146162
|
[`${prefixCls}-lg`]: mergedSize === "large"
|
|
@@ -146387,7 +146476,7 @@ var generateRangePicker = (generateConfig) => {
|
|
|
146387
146476
|
suffixIcon: suffixIcon === void 0 ? contextSuffixIcon : suffixIcon
|
|
146388
146477
|
});
|
|
146389
146478
|
(0, import_react$9.useImperativeHandle)(ref, () => innerRef.current);
|
|
146390
|
-
const [contextLocale] = useLocale$1("
|
|
146479
|
+
const [contextLocale] = useLocale$1("DatePicker", locale$1);
|
|
146391
146480
|
const locale = merge$1(contextLocale, props.locale || {});
|
|
146392
146481
|
const [zIndex] = useZIndex("DatePicker", mergedStyles?.popup?.root?.zIndex);
|
|
146393
146482
|
return /*#__PURE__*/ import_react$9.createElement(ContextIsolator, { space: true }, /*#__PURE__*/ import_react$9.createElement(RefRangePicker, {
|
|
@@ -146959,7 +147048,7 @@ var DrawerPanel = (props) => {
|
|
|
146959
147048
|
}, extra), closablePlacement === "end" && mergedCloseButton);
|
|
146960
147049
|
};
|
|
146961
147050
|
const renderFooter = () => {
|
|
146962
|
-
if (!footer) return null;
|
|
147051
|
+
if (!isReactRenderable(footer)) return null;
|
|
146963
147052
|
return /*#__PURE__*/ import_react$9.createElement("div", {
|
|
146964
147053
|
className: clsx(`${prefixCls}-footer`, mergedClassNames.footer),
|
|
146965
147054
|
style: {
|
|
@@ -148356,7 +148445,7 @@ var FormItemLabel = ({ prefixCls, label, htmlFor, labelCol, labelAlign, colon, r
|
|
|
148356
148445
|
const labelColClassName = clsx(labelClsBasic, mergedLabelAlign === "left" && `${labelClsBasic}-left`, mergedLabelCol.className, { [`${labelClsBasic}-wrap`]: !!labelWrap });
|
|
148357
148446
|
let labelChildren = label;
|
|
148358
148447
|
const computedColon = colon === true || contextColon !== false && colon !== false;
|
|
148359
|
-
if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[
|
|
148448
|
+
if (computedColon && !vertical && typeof label === "string" && label.trim()) labelChildren = label.replace(/[::]\s*$/, "");
|
|
148360
148449
|
const tooltipProps = convertToTooltipProps(tooltip, contextTooltip);
|
|
148361
148450
|
if (tooltipProps) {
|
|
148362
148451
|
const tooltipNode = /*#__PURE__*/ import_react$9.createElement(Tooltip, { ...tooltipProps }, /*#__PURE__*/ import_react$9.createElement("span", {
|
|
@@ -148698,7 +148787,7 @@ function InternalFormItem(props) {
|
|
|
148698
148787
|
const hasExtra = isReactRenderable(props.extra);
|
|
148699
148788
|
if (help || mergedErrors.length > 0 || mergedWarnings.length > 0 || hasExtra) {
|
|
148700
148789
|
const describedbyArr = [];
|
|
148701
|
-
if (help || mergedErrors.length > 0) describedbyArr.push(`${fieldId}_help`);
|
|
148790
|
+
if (help || mergedErrors.length > 0 || mergedWarnings.length > 0) describedbyArr.push(`${fieldId}_help`);
|
|
148702
148791
|
if (hasExtra) describedbyArr.push(`${fieldId}_extra`);
|
|
148703
148792
|
childProps["aria-describedby"] = describedbyArr.join(" ");
|
|
148704
148793
|
}
|
|
@@ -150924,14 +151013,14 @@ function strToArr(str) {
|
|
|
150924
151013
|
var Separator$1 = (props) => {
|
|
150925
151014
|
const { index, prefixCls, separator, className: semanticClassName, style: semanticStyle } = props;
|
|
150926
151015
|
const separatorNode = isFunction$4(separator) ? separator(index) : separator;
|
|
150927
|
-
if (!separatorNode) return null;
|
|
151016
|
+
if (!isReactRenderable(separatorNode)) return null;
|
|
150928
151017
|
return /*#__PURE__*/ import_react$9.createElement("span", {
|
|
150929
151018
|
className: clsx(`${prefixCls}-separator`, semanticClassName),
|
|
150930
151019
|
style: semanticStyle
|
|
150931
151020
|
}, separatorNode);
|
|
150932
151021
|
};
|
|
150933
151022
|
var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
150934
|
-
const { prefixCls: customizePrefixCls, length = 6, size: customSize, defaultValue, value, onChange, formatter, separator, variant: customizeVariant, disabled, status: customStatus, autoFocus, mask, type, autoComplete, onInput, onFocus, inputMode, classNames, styles, className, style, ...restProps } = props;
|
|
151023
|
+
const { prefixCls: customizePrefixCls, length = 6, size: customSize, defaultValue, value, onChange, formatter, separator, variant: customizeVariant, disabled, status: customStatus, autoFocus, mask, type, autoComplete, onInput, onFocus, inputMode, classNames, styles, rootClassName, className, style, ...restProps } = props;
|
|
150935
151024
|
const { classNames: contextClassNames, styles: contextStyles, getPrefixCls, direction, style: contextStyle, className: contextClassName } = useComponentConfig("otp");
|
|
150936
151025
|
const prefixCls = getPrefixCls("otp", customizePrefixCls);
|
|
150937
151026
|
const [variant] = useVariant("otp", customizeVariant, void 0, "input");
|
|
@@ -150975,21 +151064,22 @@ var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
150975
151064
|
nativeElement: containerRef.current
|
|
150976
151065
|
}));
|
|
150977
151066
|
const internalFormatter = (txt) => formatter ? formatter(txt) : txt;
|
|
150978
|
-
const [
|
|
151067
|
+
const [getValueCells, setValueCells] = useSyncState$2(strToArr(internalFormatter(defaultValue || "")));
|
|
151068
|
+
const valueCells = getValueCells();
|
|
150979
151069
|
import_react$9.useEffect(() => {
|
|
150980
151070
|
if (value !== void 0) setValueCells(strToArr(value));
|
|
150981
151071
|
}, [value]);
|
|
150982
151072
|
const triggerValueCellsChange = useEvent((nextValueCells) => {
|
|
151073
|
+
const prevCells = getValueCells();
|
|
150983
151074
|
setValueCells(nextValueCells);
|
|
150984
151075
|
if (onInput) onInput(nextValueCells);
|
|
150985
|
-
if (onChange && nextValueCells.length === length && nextValueCells.every((c) => c) && nextValueCells.some((c, index) =>
|
|
151076
|
+
if (onChange && nextValueCells.length === length && nextValueCells.every((c) => c) && nextValueCells.some((c, index) => prevCells[index] !== c)) onChange(nextValueCells.join(""));
|
|
150986
151077
|
});
|
|
150987
151078
|
const patchValue = useEvent((index, txt) => {
|
|
150988
151079
|
let nextCells = _toConsumableArray$14(valueCells);
|
|
150989
151080
|
for (let i = 0; i < index; i += 1) if (!nextCells[i]) nextCells[i] = "";
|
|
150990
151081
|
if (txt.length <= 1) nextCells[index] = txt;
|
|
150991
151082
|
else nextCells = nextCells.slice(0, index).concat(strToArr(txt));
|
|
150992
|
-
nextCells = nextCells.slice(0, length);
|
|
150993
151083
|
for (let i = nextCells.length - 1; i >= 0; i -= 1) {
|
|
150994
151084
|
if (nextCells[i]) break;
|
|
150995
151085
|
nextCells.pop();
|
|
@@ -150998,19 +151088,19 @@ var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
150998
151088
|
if (c === " " && !nextCells[i]) return nextCells[i];
|
|
150999
151089
|
return c;
|
|
151000
151090
|
});
|
|
151001
|
-
return nextCells;
|
|
151091
|
+
return nextCells.slice(0, length);
|
|
151002
151092
|
});
|
|
151003
151093
|
const onInputChange = (index, txt) => {
|
|
151004
151094
|
const nextCells = patchValue(index, txt);
|
|
151005
151095
|
const nextIndex = Math.min(index + txt.length, length - 1);
|
|
151006
|
-
if (nextIndex !== index && nextCells[index] !== void 0) inputsRef.current[nextIndex]?.focus();
|
|
151007
151096
|
triggerValueCellsChange(nextCells);
|
|
151097
|
+
if (nextIndex !== index && nextCells[index] !== void 0) inputsRef.current[nextIndex]?.focus();
|
|
151008
151098
|
};
|
|
151009
151099
|
const onInputActiveChange = (nextIndex) => {
|
|
151010
151100
|
inputsRef.current[nextIndex]?.focus();
|
|
151011
151101
|
};
|
|
151012
151102
|
const onInputFocus = (event, index) => {
|
|
151013
|
-
for (let i = 0; i < index; i += 1) if (!
|
|
151103
|
+
for (let i = 0; i < index; i += 1) if (!getValueCells()[i]) {
|
|
151014
151104
|
inputsRef.current[i]?.focus();
|
|
151015
151105
|
break;
|
|
151016
151106
|
}
|
|
@@ -151028,7 +151118,7 @@ var OTP = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
151028
151118
|
return /*#__PURE__*/ import_react$9.createElement("div", {
|
|
151029
151119
|
...domAttrs,
|
|
151030
151120
|
ref: containerRef,
|
|
151031
|
-
className: clsx(className, prefixCls, {
|
|
151121
|
+
className: clsx(className, rootClassName, prefixCls, {
|
|
151032
151122
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
151033
151123
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
151034
151124
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
@@ -152423,6 +152513,7 @@ var genPaginationStyle$1 = (token) => {
|
|
|
152423
152513
|
...resetComponent(token),
|
|
152424
152514
|
display: "flex",
|
|
152425
152515
|
alignItems: "center",
|
|
152516
|
+
userSelect: "none",
|
|
152426
152517
|
"&-start": { justifyContent: "start" },
|
|
152427
152518
|
"&-center": { justifyContent: "center" },
|
|
152428
152519
|
"&-end": { justifyContent: "end" },
|
|
@@ -152444,7 +152535,8 @@ var genPaginationStyle$1 = (token) => {
|
|
|
152444
152535
|
height: varRef(`item-size-actual`),
|
|
152445
152536
|
marginInlineEnd: varRef(`item-spacing-actual`),
|
|
152446
152537
|
lineHeight: unit$1(token.calc(varRef(`item-size-actual`)).sub(2).equal()),
|
|
152447
|
-
verticalAlign: "middle"
|
|
152538
|
+
verticalAlign: "middle",
|
|
152539
|
+
userSelect: "text"
|
|
152448
152540
|
},
|
|
152449
152541
|
...genPaginationItemStyle(token),
|
|
152450
152542
|
...genPaginationJumpStyle(token),
|
|
@@ -152462,13 +152554,19 @@ var genPaginationStyle$1 = (token) => {
|
|
|
152462
152554
|
var genPaginationFocusStyle = (token) => {
|
|
152463
152555
|
const { componentCls } = token;
|
|
152464
152556
|
return { [`${componentCls}:not(${componentCls}-disabled)`]: {
|
|
152465
|
-
[`${componentCls}-item`]: {
|
|
152466
|
-
|
|
152557
|
+
[`${componentCls}-item`]: {
|
|
152558
|
+
...genFocusStyle(token),
|
|
152559
|
+
"> a, > button": {
|
|
152560
|
+
borderRadius: "inherit",
|
|
152561
|
+
...genFocusStyle(token)
|
|
152562
|
+
}
|
|
152563
|
+
},
|
|
152564
|
+
[`${componentCls}-jump-prev, ${componentCls}-jump-next`]: { "&:focus-visible, &:has(> :focus-visible)": {
|
|
152467
152565
|
[`${componentCls}-item-link-icon`]: { opacity: 1 },
|
|
152468
152566
|
[`${componentCls}-item-ellipsis`]: { opacity: 0 },
|
|
152469
152567
|
...genFocusOutline(token)
|
|
152470
152568
|
} },
|
|
152471
|
-
[`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link`]: genFocusOutline(token) }
|
|
152569
|
+
[`${componentCls}-prev, ${componentCls}-next`]: { [`&:focus-visible ${componentCls}-item-link, ${componentCls}-item-link:focus-visible`]: genFocusOutline(token) }
|
|
152472
152570
|
} };
|
|
152473
152571
|
};
|
|
152474
152572
|
var prepareComponentToken$10 = (token) => ({
|
|
@@ -153357,7 +153455,7 @@ var genBaseStyle$5 = (token) => {
|
|
|
153357
153455
|
[`${componentCls}-title`]: {
|
|
153358
153456
|
fontWeight: fontWeightStrong,
|
|
153359
153457
|
color: colorTextHeading,
|
|
153360
|
-
"&:only-child": { fontWeight:
|
|
153458
|
+
"&:only-child": { fontWeight: 400 }
|
|
153361
153459
|
},
|
|
153362
153460
|
[`${componentCls}-description`]: {
|
|
153363
153461
|
marginTop: marginXXS,
|
|
@@ -153384,6 +153482,10 @@ var Overlay = (props) => {
|
|
|
153384
153482
|
const [contextLocale] = useLocale$1("Popconfirm", localeValues.Popconfirm);
|
|
153385
153483
|
const titleNode = getRenderPropValue(title);
|
|
153386
153484
|
const descriptionNode = getRenderPropValue(description);
|
|
153485
|
+
const onInternalCancel = (event) => {
|
|
153486
|
+
onCancel?.(event);
|
|
153487
|
+
cancelButtonProps?.onClick?.(event);
|
|
153488
|
+
};
|
|
153387
153489
|
return /*#__PURE__*/ import_react$9.createElement("div", {
|
|
153388
153490
|
className: `${prefixCls}-inner-content`,
|
|
153389
153491
|
onClick: onPopupClick
|
|
@@ -153397,9 +153499,9 @@ var Overlay = (props) => {
|
|
|
153397
153499
|
className: clsx(`${prefixCls}-description`, classNames?.content),
|
|
153398
153500
|
style: styles?.content
|
|
153399
153501
|
}, descriptionNode))), /*#__PURE__*/ import_react$9.createElement("div", { className: `${prefixCls}-buttons` }, showCancel && /*#__PURE__*/ import_react$9.createElement(Button, {
|
|
153400
|
-
onClick: onCancel,
|
|
153401
153502
|
size: "small",
|
|
153402
|
-
...cancelButtonProps
|
|
153503
|
+
...cancelButtonProps,
|
|
153504
|
+
onClick: onInternalCancel
|
|
153403
153505
|
}, cancelText || contextLocale?.cancelText), /*#__PURE__*/ import_react$9.createElement(ActionButton, {
|
|
153404
153506
|
buttonProps: {
|
|
153405
153507
|
size: "small",
|
|
@@ -153500,6 +153602,7 @@ var Popconfirm = /* @__PURE__ */ import_react$9.forwardRef((props, ref) => {
|
|
|
153500
153602
|
okType,
|
|
153501
153603
|
icon,
|
|
153502
153604
|
...props,
|
|
153605
|
+
onPopupClick: void 0,
|
|
153503
153606
|
prefixCls,
|
|
153504
153607
|
close,
|
|
153505
153608
|
onConfirm,
|
|
@@ -154111,7 +154214,7 @@ var Line = (props) => {
|
|
|
154111
154214
|
const { align: infoAlign, type: infoPosition } = percentPosition;
|
|
154112
154215
|
const mergedRailColor = railColor ?? trailColor;
|
|
154113
154216
|
const borderRadius = strokeLinecap === "square" || strokeLinecap === "butt" ? 0 : void 0;
|
|
154114
|
-
const [width, height] = getSize$1(size ?? [-1, strokeWidth ||
|
|
154217
|
+
const [width, height] = getSize$1(size ?? [-1, strokeWidth || 8], "line", { strokeWidth });
|
|
154115
154218
|
const railStyle = {
|
|
154116
154219
|
backgroundColor: mergedRailColor || void 0,
|
|
154117
154220
|
borderRadius,
|
|
@@ -154138,7 +154241,7 @@ var Line = (props) => {
|
|
|
154138
154241
|
return /*#__PURE__*/ import_react$9.createElement("div", {
|
|
154139
154242
|
className: clsx(`${prefixCls}-body`, classNames.body, { [`${prefixCls}-body-layout-bottom`]: infoAlign === "center" && infoPosition === "outer" }),
|
|
154140
154243
|
style: {
|
|
154141
|
-
width: width > 0 ? width : "100%",
|
|
154244
|
+
width: isString$1(width) || width > 0 ? width : "100%",
|
|
154142
154245
|
...styles.body
|
|
154143
154246
|
}
|
|
154144
154247
|
}, /*#__PURE__*/ import_react$9.createElement("div", {
|
|
@@ -154316,7 +154419,7 @@ var progress_default = /* @__PURE__ */ import_react$9.forwardRef((props, ref) =>
|
|
|
154316
154419
|
style: mergedStyles.root,
|
|
154317
154420
|
className: classString,
|
|
154318
154421
|
role: "progressbar",
|
|
154319
|
-
"aria-valuenow":
|
|
154422
|
+
"aria-valuenow": validProgress(percent),
|
|
154320
154423
|
"aria-valuemin": 0,
|
|
154321
154424
|
"aria-valuemax": 100,
|
|
154322
154425
|
...omit(restProps, [
|
|
@@ -158533,6 +158636,10 @@ var useSelection = (config, rowSelection) => {
|
|
|
158533
158636
|
import_react$9.useEffect(() => {
|
|
158534
158637
|
updatePreserveRecordsCache(mergedSelectedKeyList);
|
|
158535
158638
|
}, [mergedSelectedKeyList, updatePreserveRecordsCache]);
|
|
158639
|
+
const getSelectedRecord = (0, import_react$9.useCallback)((key) => {
|
|
158640
|
+
const record = getRecordByKey(key);
|
|
158641
|
+
return !record && preserveSelectedRowKeys ? preserveRecordsRef.current.get(key) : record;
|
|
158642
|
+
}, [getRecordByKey, preserveSelectedRowKeys]);
|
|
158536
158643
|
const flattedData = (0, import_react$9.useMemo)(() => flattenData(childrenColumnName, pageData), [childrenColumnName, pageData]);
|
|
158537
158644
|
const { keyEntities } = (0, import_react$9.useMemo)(() => {
|
|
158538
158645
|
if (checkStrictly) return { keyEntities: null };
|
|
@@ -158620,13 +158727,14 @@ var useSelection = (config, rowSelection) => {
|
|
|
158620
158727
|
]);
|
|
158621
158728
|
const triggerSingleSelection = (0, import_react$9.useCallback)((key, selected, keys, event) => {
|
|
158622
158729
|
if (onSelect) {
|
|
158623
|
-
const rows = keys.map(
|
|
158730
|
+
const rows = keys.map(getSelectedRecord);
|
|
158624
158731
|
onSelect(getRecordByKey(key), selected, rows, event);
|
|
158625
158732
|
}
|
|
158626
158733
|
setSelectedKeys(keys, "single");
|
|
158627
158734
|
}, [
|
|
158628
158735
|
onSelect,
|
|
158629
158736
|
getRecordByKey,
|
|
158737
|
+
getSelectedRecord,
|
|
158630
158738
|
setSelectedKeys
|
|
158631
158739
|
]);
|
|
158632
158740
|
const mergedSelections = (0, import_react$9.useMemo)(() => {
|
|
@@ -158641,7 +158749,7 @@ var useSelection = (config, rowSelection) => {
|
|
|
158641
158749
|
key: "all",
|
|
158642
158750
|
text: tableLocale.selectionAll,
|
|
158643
158751
|
onSelect() {
|
|
158644
|
-
setSelectedKeys(data.reduce((keys, record, index) => {
|
|
158752
|
+
setSelectedKeys(flattenData(childrenColumnName, data).reduce((keys, record, index) => {
|
|
158645
158753
|
const key = getRowKey(record, index);
|
|
158646
158754
|
if (!isCheckboxDisabled(record) || derivedSelectedKeySet.has(key)) keys.push(key);
|
|
158647
158755
|
return keys;
|
|
@@ -158653,7 +158761,7 @@ var useSelection = (config, rowSelection) => {
|
|
|
158653
158761
|
text: tableLocale.selectInvert,
|
|
158654
158762
|
onSelect() {
|
|
158655
158763
|
const keySet = new Set(derivedSelectedKeySet);
|
|
158656
|
-
|
|
158764
|
+
flattedData.forEach((record, index) => {
|
|
158657
158765
|
const key = getRowKey(record, index);
|
|
158658
158766
|
if (!checkboxPropsMap.get(key)?.disabled) {
|
|
158659
158767
|
if (keySet.has(key)) keySet.delete(key);
|
|
@@ -158674,7 +158782,8 @@ var useSelection = (config, rowSelection) => {
|
|
|
158674
158782
|
onSelect() {
|
|
158675
158783
|
onSelectNone?.();
|
|
158676
158784
|
setSelectedKeys(Array.from(derivedSelectedKeySet).filter((key) => {
|
|
158677
|
-
|
|
158785
|
+
const record = getSelectedRecord(key);
|
|
158786
|
+
return record !== void 0 && isCheckboxDisabled(record);
|
|
158678
158787
|
}), "none");
|
|
158679
158788
|
}
|
|
158680
158789
|
};
|
|
@@ -158697,8 +158806,10 @@ var useSelection = (config, rowSelection) => {
|
|
|
158697
158806
|
isCheckboxDisabled,
|
|
158698
158807
|
derivedSelectedKeySet,
|
|
158699
158808
|
data,
|
|
158700
|
-
|
|
158809
|
+
childrenColumnName,
|
|
158810
|
+
flattedData,
|
|
158701
158811
|
getRowKey,
|
|
158812
|
+
getSelectedRecord,
|
|
158702
158813
|
onSelectInvert,
|
|
158703
158814
|
setSelectedKeys
|
|
158704
158815
|
]);
|
|
@@ -158726,7 +158837,7 @@ var useSelection = (config, rowSelection) => {
|
|
|
158726
158837
|
}
|
|
158727
158838
|
});
|
|
158728
158839
|
const keys = Array.from(keySet);
|
|
158729
|
-
onSelectAll?.(!checkedCurrentAll, keys.map(
|
|
158840
|
+
onSelectAll?.(!checkedCurrentAll, keys.map(getSelectedRecord), changeKeys.map(getRecordByKey));
|
|
158730
158841
|
setSelectedKeys(keys, "all");
|
|
158731
158842
|
updatePrevSelectedIndex(null);
|
|
158732
158843
|
};
|
|
@@ -158833,7 +158944,7 @@ var useSelection = (config, rowSelection) => {
|
|
|
158833
158944
|
if (shiftKey && checkStrictly && isMultiple) {
|
|
158834
158945
|
const changedKeys = multipleSelect(currentSelectedIndex, recordKeys, keySet);
|
|
158835
158946
|
const keys = Array.from(keySet);
|
|
158836
|
-
onSelectMultiple?.(!checked, keys.map(
|
|
158947
|
+
onSelectMultiple?.(!checked, keys.map(getSelectedRecord), changedKeys.map(getRecordByKey));
|
|
158837
158948
|
setSelectedKeys(keys, "multiple");
|
|
158838
158949
|
} else {
|
|
158839
158950
|
const originCheckedKeys = derivedSelectedKeys;
|
|
@@ -159758,7 +159869,7 @@ function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames })
|
|
|
159758
159869
|
function matchKey(key) {
|
|
159759
159870
|
return key === startKey || key === endKey;
|
|
159760
159871
|
}
|
|
159761
|
-
traverseNodesKey(treeData, (key) => {
|
|
159872
|
+
traverseNodesKey(treeData, (key, node) => {
|
|
159762
159873
|
if (record === RECORD_END) return false;
|
|
159763
159874
|
if (matchKey(key)) {
|
|
159764
159875
|
keys.push(key);
|
|
@@ -159767,7 +159878,7 @@ function calcRangeKeys({ treeData, expandedKeys, startKey, endKey, fieldNames })
|
|
|
159767
159878
|
record = RECORD_END;
|
|
159768
159879
|
return false;
|
|
159769
159880
|
}
|
|
159770
|
-
} else if (record === RECORD_START) keys.push(key);
|
|
159881
|
+
} else if (record === RECORD_START && !node.disabled && node.selectable !== false) keys.push(key);
|
|
159771
159882
|
return expandedKeys.includes(key);
|
|
159772
159883
|
}, fillFieldNames$1(fieldNames));
|
|
159773
159884
|
return keys;
|
|
@@ -159803,7 +159914,7 @@ var DirectoryTree = /*#__PURE__*/ import_react$9.forwardRef((oriProps, ref) => {
|
|
|
159803
159914
|
const { keyEntities } = convertDataToEntities(getTreeData(props), { fieldNames: props.fieldNames });
|
|
159804
159915
|
let initExpandedKeys;
|
|
159805
159916
|
const mergedExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];
|
|
159806
|
-
if (defaultExpandAll) initExpandedKeys = Object.
|
|
159917
|
+
if (defaultExpandAll) initExpandedKeys = Object.values(keyEntities).map(({ key }) => key);
|
|
159807
159918
|
else if (defaultExpandParent) initExpandedKeys = conductExpandParent(mergedExpandedKeys, keyEntities);
|
|
159808
159919
|
else initExpandedKeys = mergedExpandedKeys;
|
|
159809
159920
|
return initExpandedKeys;
|
|
@@ -160179,7 +160290,8 @@ var FilterDropdown = (props) => {
|
|
|
160179
160290
|
open: mergedVisible,
|
|
160180
160291
|
onOpenChange: onDropdownOpenChange,
|
|
160181
160292
|
popupRender: () => {
|
|
160182
|
-
|
|
160293
|
+
const customRender = filterDropdownProps?.popupRender ?? filterDropdownProps?.dropdownRender;
|
|
160294
|
+
if (isFunction$4(customRender)) return customRender(dropdownContent);
|
|
160183
160295
|
return dropdownContent;
|
|
160184
160296
|
}
|
|
160185
160297
|
});
|
|
@@ -160341,7 +160453,7 @@ var useFilter = (props) => {
|
|
|
160341
160453
|
var useLazyKVMap = (data, childrenColumnName, getRowKey) => {
|
|
160342
160454
|
const mapCacheRef = import_react$9.useRef({});
|
|
160343
160455
|
function getRecordByKey(key) {
|
|
160344
|
-
if (
|
|
160456
|
+
if (mapCacheRef.current.data !== data || mapCacheRef.current.childrenColumnName !== childrenColumnName || mapCacheRef.current.getRowKey !== getRowKey) {
|
|
160345
160457
|
const kvMap = /* @__PURE__ */ new Map();
|
|
160346
160458
|
function dig(records) {
|
|
160347
160459
|
records.forEach((record, index) => {
|
|
@@ -161184,7 +161296,7 @@ var genSelectionStyle = (token) => {
|
|
|
161184
161296
|
textAlign: "center",
|
|
161185
161297
|
[`${antCls}-radio-wrapper`]: { marginInlineEnd: 0 }
|
|
161186
161298
|
},
|
|
161187
|
-
[`table tr th${componentCls}-selection-column${componentCls}-cell-fix-
|
|
161299
|
+
[`table tr th${componentCls}-selection-column${componentCls}-cell-fix-start`]: { zIndex: `calc(var(--z-offset, 0) + ${token.zIndexTableFixed})` },
|
|
161188
161300
|
[`table tr th${componentCls}-selection-column::after`]: { backgroundColor: "transparent !important" },
|
|
161189
161301
|
[`${componentCls}-selection`]: {
|
|
161190
161302
|
position: "relative",
|
|
@@ -161259,8 +161371,8 @@ var genSorterStyle = (token) => {
|
|
|
161259
161371
|
},
|
|
161260
161372
|
"&:focus-visible": { color: token.colorPrimary },
|
|
161261
161373
|
[`
|
|
161262
|
-
&${componentCls}-cell-fix-
|
|
161263
|
-
&${componentCls}-cell-fix-
|
|
161374
|
+
&${componentCls}-cell-fix-start:hover,
|
|
161375
|
+
&${componentCls}-cell-fix-end:hover
|
|
161264
161376
|
`]: { background: token.tableFixedHeaderSortActiveBg }
|
|
161265
161377
|
},
|
|
161266
161378
|
[`${componentCls}-thead th${componentCls}-column-sort`]: {
|
|
@@ -161753,7 +161865,7 @@ var InternalTable = (props, ref) => {
|
|
|
161753
161865
|
if (changeInfo.pagination?.current) changeInfo.pagination.current = 1;
|
|
161754
161866
|
if (pagination) pagination.onChange?.(1, changeInfo.pagination?.pageSize);
|
|
161755
161867
|
}
|
|
161756
|
-
if (
|
|
161868
|
+
if (mergedScroll && mergedScroll.scrollToFirstRowOnChange !== false && internalRef.body.current) scrollTo(0, { getContainer: () => internalRef.body.current });
|
|
161757
161869
|
onChange?.(changeInfo.pagination, changeInfo.filters, changeInfo.sorter, {
|
|
161758
161870
|
currentDataSource: getFilterData(getSortData(rawData, changeInfo.sorterStates, childrenColumnName), changeInfo.filterStates, childrenColumnName),
|
|
161759
161871
|
action
|
|
@@ -163088,7 +163200,7 @@ var InternalTreeSelect = (props, ref) => {
|
|
|
163088
163200
|
const mergedAllowClear = allowClear === true ? { clearIcon } : allowClear;
|
|
163089
163201
|
let mergedNotFound;
|
|
163090
163202
|
if (notFoundContent !== void 0) mergedNotFound = notFoundContent;
|
|
163091
|
-
else mergedNotFound = renderEmpty?.("
|
|
163203
|
+
else mergedNotFound = renderEmpty?.("TreeSelect") || /*#__PURE__*/ import_react$9.createElement(DefaultRenderEmpty, { componentName: "TreeSelect" });
|
|
163092
163204
|
const selectProps = omit(restProps, [
|
|
163093
163205
|
"suffixIcon",
|
|
163094
163206
|
"removeIcon",
|
|
@@ -163409,7 +163521,7 @@ var getEditableStyles = (token) => {
|
|
|
163409
163521
|
insetInlineEnd: token.calc(token.marginXS).add(2).equal(),
|
|
163410
163522
|
insetBlockEnd: token.marginXS,
|
|
163411
163523
|
color: token.colorIcon,
|
|
163412
|
-
fontWeight:
|
|
163524
|
+
fontWeight: 400,
|
|
163413
163525
|
fontSize: token.fontSize,
|
|
163414
163526
|
fontStyle: "normal",
|
|
163415
163527
|
pointerEvents: "none"
|
|
@@ -164032,7 +164144,7 @@ var DECORATION_PROPS = [
|
|
|
164032
164144
|
"italic"
|
|
164033
164145
|
];
|
|
164034
164146
|
var Base = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
164035
|
-
const { prefixCls: customizePrefixCls, className, style, classNames, styles, direction: typographyDirection, type, disabled, children, ellipsis, editable, copyable, actions, component, title, onMouseEnter, onMouseLeave, ...restProps } = props;
|
|
164147
|
+
const { prefixCls: customizePrefixCls, className, style, classNames, styles, direction: typographyDirection, type, disabled, children, ellipsis, editable, copyable, actions, component, title, onClick, onMouseEnter, onMouseLeave, ...restProps } = props;
|
|
164036
164148
|
const [textLocale] = useLocale$1("Text");
|
|
164037
164149
|
const typographyRef = import_react$9.useRef(null);
|
|
164038
164150
|
const editIconRef = import_react$9.useRef(null);
|
|
@@ -164210,7 +164322,7 @@ var Base = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
164210
164322
|
onClick: onEditClick,
|
|
164211
164323
|
"aria-label": ariaLabel,
|
|
164212
164324
|
tabIndex
|
|
164213
|
-
}, icon || /*#__PURE__*/ import_react$9.createElement(RefIcon$5,
|
|
164325
|
+
}, icon || /*#__PURE__*/ import_react$9.createElement(RefIcon$5, null))) : null;
|
|
164214
164326
|
};
|
|
164215
164327
|
const renderCopy = () => {
|
|
164216
164328
|
if (!enableCopy) return null;
|
|
@@ -164280,7 +164392,10 @@ var Base = /*#__PURE__*/ import_react$9.forwardRef((props, ref) => {
|
|
|
164280
164392
|
component,
|
|
164281
164393
|
ref: composeRef(resizeRef, typographyRef, ref),
|
|
164282
164394
|
direction,
|
|
164283
|
-
onClick:
|
|
164395
|
+
onClick: (e) => {
|
|
164396
|
+
if (triggerType.includes("text")) onEditClick(e);
|
|
164397
|
+
onClick?.(e);
|
|
164398
|
+
},
|
|
164284
164399
|
"aria-label": topAriaLabel?.toString(),
|
|
164285
164400
|
title,
|
|
164286
164401
|
...textProps
|
|
@@ -165382,6 +165497,11 @@ function previewImage(file) {
|
|
|
165382
165497
|
resolve(dataURL);
|
|
165383
165498
|
};
|
|
165384
165499
|
img.crossOrigin = "anonymous";
|
|
165500
|
+
img.onerror = () => {
|
|
165501
|
+
document.body.removeChild(canvas);
|
|
165502
|
+
window.URL.revokeObjectURL(img.src);
|
|
165503
|
+
resolve("");
|
|
165504
|
+
};
|
|
165385
165505
|
if (file.type.startsWith("image/svg+xml")) {
|
|
165386
165506
|
const reader = new FileReader();
|
|
165387
165507
|
reader.onload = () => {
|
|
@@ -165470,7 +165590,7 @@ var ListItem = /*#__PURE__*/ import_react$9.forwardRef(({ prefixCls, className,
|
|
|
165470
165590
|
className: clsx(`${prefixCls}-list-item-actions`, { picture: listType === "picture" })
|
|
165471
165591
|
}, downloadIcon, removeIcon);
|
|
165472
165592
|
const extraContent = isFunction$4(customExtra) ? customExtra(file) : customExtra;
|
|
165473
|
-
const extra = extraContent && /*#__PURE__*/ import_react$9.createElement("span", { className: `${prefixCls}-list-item-extra` }, extraContent);
|
|
165593
|
+
const extra = isReactRenderable(extraContent) && /*#__PURE__*/ import_react$9.createElement("span", { className: `${prefixCls}-list-item-extra` }, extraContent);
|
|
165474
165594
|
const listItemNameClass = clsx(`${prefixCls}-list-item-name`);
|
|
165475
165595
|
const onPreviewKeyDown = (e) => {
|
|
165476
165596
|
if (e.key === "Enter" || e.key === " ") {
|
|
@@ -165492,7 +165612,10 @@ var ListItem = /*#__PURE__*/ import_react$9.forwardRef(({ prefixCls, className,
|
|
|
165492
165612
|
title: file.name,
|
|
165493
165613
|
...linkProps,
|
|
165494
165614
|
href: file.url,
|
|
165495
|
-
onClick: (e) =>
|
|
165615
|
+
onClick: (e) => {
|
|
165616
|
+
linkProps?.onClick?.(e);
|
|
165617
|
+
if (!e.defaultPrevented) onPreview(file, e);
|
|
165618
|
+
}
|
|
165496
165619
|
}, file.name, extra) : /*#__PURE__*/ import_react$9.createElement("span", {
|
|
165497
165620
|
key: "view",
|
|
165498
165621
|
className: listItemNameClass,
|
|
@@ -165991,7 +166114,7 @@ Upload.LIST_IGNORE = LIST_IGNORE;
|
|
|
165991
166114
|
//#endregion
|
|
165992
166115
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
|
|
165993
166116
|
/**
|
|
165994
|
-
* @license lucide-react v1.
|
|
166117
|
+
* @license lucide-react v1.64.0 - ISC
|
|
165995
166118
|
*
|
|
165996
166119
|
* This source code is licensed under the ISC license.
|
|
165997
166120
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166000,7 +166123,7 @@ var toKebabCase = (string) => string?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toL
|
|
|
166000
166123
|
//#endregion
|
|
166001
166124
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
166002
166125
|
/**
|
|
166003
|
-
* @license lucide-react v1.
|
|
166126
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166004
166127
|
*
|
|
166005
166128
|
* This source code is licensed under the ISC license.
|
|
166006
166129
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166017,7 +166140,7 @@ function toLucideIconData(iconName, iconNode, aliases = []) {
|
|
|
166017
166140
|
//#endregion
|
|
166018
166141
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
166019
166142
|
/**
|
|
166020
|
-
* @license lucide-react v1.
|
|
166143
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166021
166144
|
*
|
|
166022
166145
|
* This source code is licensed under the ISC license.
|
|
166023
166146
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166039,7 +166162,7 @@ var toCamelCase = (string) => {
|
|
|
166039
166162
|
//#endregion
|
|
166040
166163
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.mjs
|
|
166041
166164
|
/**
|
|
166042
|
-
* @license lucide-react v1.
|
|
166165
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166043
166166
|
*
|
|
166044
166167
|
* This source code is licensed under the ISC license.
|
|
166045
166168
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166051,7 +166174,7 @@ var toPascalCase = (string) => {
|
|
|
166051
166174
|
//#endregion
|
|
166052
166175
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.mjs
|
|
166053
166176
|
/**
|
|
166054
|
-
* @license lucide-react v1.
|
|
166177
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166055
166178
|
*
|
|
166056
166179
|
* This source code is licensed under the ISC license.
|
|
166057
166180
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166062,7 +166185,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
|
166062
166185
|
//#endregion
|
|
166063
166186
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/build/defaultAttributes.mjs
|
|
166064
166187
|
/**
|
|
166065
|
-
* @license lucide-react v1.
|
|
166188
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166066
166189
|
*
|
|
166067
166190
|
* This source code is licensed under the ISC license.
|
|
166068
166191
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166081,7 +166204,7 @@ var defaultAttributes$1 = {
|
|
|
166081
166204
|
//#endregion
|
|
166082
166205
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
166083
166206
|
/**
|
|
166084
|
-
* @license lucide-react v1.
|
|
166207
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166085
166208
|
*
|
|
166086
166209
|
* This source code is licensed under the ISC license.
|
|
166087
166210
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166136,7 +166259,7 @@ function buildLucideIconNode(icon, params = {}) {
|
|
|
166136
166259
|
//#endregion
|
|
166137
166260
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
166138
166261
|
/**
|
|
166139
|
-
* @license lucide-react v1.
|
|
166262
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166140
166263
|
*
|
|
166141
166264
|
* This source code is licensed under the ISC license.
|
|
166142
166265
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166157,7 +166280,7 @@ function buildLucideIconForReact(icon, params = {}) {
|
|
|
166157
166280
|
//#endregion
|
|
166158
166281
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
166159
166282
|
/**
|
|
166160
|
-
* @license lucide-react v1.
|
|
166283
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166161
166284
|
*
|
|
166162
166285
|
* This source code is licensed under the ISC license.
|
|
166163
166286
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166169,7 +166292,7 @@ var hasA11yProp = (props) => {
|
|
|
166169
166292
|
//#endregion
|
|
166170
166293
|
//#region ../../node_modules/lucide-react/dist/esm/context.mjs
|
|
166171
166294
|
/**
|
|
166172
|
-
* @license lucide-react v1.
|
|
166295
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166173
166296
|
*
|
|
166174
166297
|
* This source code is licensed under the ISC license.
|
|
166175
166298
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166179,7 +166302,7 @@ var useLucideContext = () => (0, import_react$9.useContext)(LucideContext);
|
|
|
166179
166302
|
//#endregion
|
|
166180
166303
|
//#region ../../node_modules/lucide-react/dist/esm/Icon.mjs
|
|
166181
166304
|
/**
|
|
166182
|
-
* @license lucide-react v1.
|
|
166305
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166183
166306
|
*
|
|
166184
166307
|
* This source code is licensed under the ISC license.
|
|
166185
166308
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166210,7 +166333,7 @@ var Icon = (0, import_react$9.forwardRef)(({ color, size, width, height, strokeW
|
|
|
166210
166333
|
//#endregion
|
|
166211
166334
|
//#region ../../node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
166212
166335
|
/**
|
|
166213
|
-
* @license lucide-react v1.
|
|
166336
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166214
166337
|
*
|
|
166215
166338
|
* This source code is licensed under the ISC license.
|
|
166216
166339
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166229,7 +166352,7 @@ function createLucideIcon(iconDataOrName, iconNode = [], aliases = []) {
|
|
|
166229
166352
|
//#endregion
|
|
166230
166353
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-center-horizontal.mjs
|
|
166231
166354
|
/**
|
|
166232
|
-
* @license lucide-react v1.
|
|
166355
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166233
166356
|
*
|
|
166234
166357
|
* This source code is licensed under the ISC license.
|
|
166235
166358
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166265,7 +166388,7 @@ var AlignCenterHorizontal = createLucideIcon(__iconData$24);
|
|
|
166265
166388
|
//#endregion
|
|
166266
166389
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-center-vertical.mjs
|
|
166267
166390
|
/**
|
|
166268
|
-
* @license lucide-react v1.
|
|
166391
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166269
166392
|
*
|
|
166270
166393
|
* This source code is licensed under the ISC license.
|
|
166271
166394
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166299,81 +166422,81 @@ var __iconData$23 = {
|
|
|
166299
166422
|
__iconData$23.node;
|
|
166300
166423
|
var AlignCenterVertical = createLucideIcon(__iconData$23);
|
|
166301
166424
|
//#endregion
|
|
166302
|
-
//#region ../../node_modules/lucide-react/dist/esm/icons/align-end-
|
|
166425
|
+
//#region ../../node_modules/lucide-react/dist/esm/icons/align-end-horizontal.mjs
|
|
166303
166426
|
/**
|
|
166304
|
-
* @license lucide-react v1.
|
|
166427
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166305
166428
|
*
|
|
166306
166429
|
* This source code is licensed under the ISC license.
|
|
166307
166430
|
* See the LICENSE file in the root directory of this source tree.
|
|
166308
166431
|
*/
|
|
166309
166432
|
var __iconData$22 = {
|
|
166310
|
-
name: "align-end-
|
|
166433
|
+
name: "align-end-horizontal",
|
|
166311
166434
|
size: 24,
|
|
166312
166435
|
node: [
|
|
166313
166436
|
["rect", {
|
|
166314
|
-
width: "
|
|
166315
|
-
height: "
|
|
166316
|
-
x: "
|
|
166317
|
-
y: "
|
|
166437
|
+
width: "6",
|
|
166438
|
+
height: "16",
|
|
166439
|
+
x: "4",
|
|
166440
|
+
y: "2",
|
|
166318
166441
|
rx: "2",
|
|
166319
|
-
key: "
|
|
166442
|
+
key: "z5wdxg"
|
|
166320
166443
|
}],
|
|
166321
166444
|
["rect", {
|
|
166322
|
-
width: "
|
|
166323
|
-
height: "
|
|
166324
|
-
x: "
|
|
166325
|
-
y: "
|
|
166445
|
+
width: "6",
|
|
166446
|
+
height: "9",
|
|
166447
|
+
x: "14",
|
|
166448
|
+
y: "9",
|
|
166326
166449
|
rx: "2",
|
|
166327
|
-
key: "
|
|
166450
|
+
key: "um7a8w"
|
|
166328
166451
|
}],
|
|
166329
166452
|
["path", {
|
|
166330
|
-
d: "M22
|
|
166331
|
-
key: "
|
|
166453
|
+
d: "M22 22H2",
|
|
166454
|
+
key: "19qnx5"
|
|
166332
166455
|
}]
|
|
166333
166456
|
]
|
|
166334
166457
|
};
|
|
166335
166458
|
__iconData$22.node;
|
|
166336
|
-
var
|
|
166459
|
+
var AlignEndHorizontal = createLucideIcon(__iconData$22);
|
|
166337
166460
|
//#endregion
|
|
166338
|
-
//#region ../../node_modules/lucide-react/dist/esm/icons/align-end-
|
|
166461
|
+
//#region ../../node_modules/lucide-react/dist/esm/icons/align-end-vertical.mjs
|
|
166339
166462
|
/**
|
|
166340
|
-
* @license lucide-react v1.
|
|
166463
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166341
166464
|
*
|
|
166342
166465
|
* This source code is licensed under the ISC license.
|
|
166343
166466
|
* See the LICENSE file in the root directory of this source tree.
|
|
166344
166467
|
*/
|
|
166345
166468
|
var __iconData$21 = {
|
|
166346
|
-
name: "align-end-
|
|
166469
|
+
name: "align-end-vertical",
|
|
166347
166470
|
size: 24,
|
|
166348
166471
|
node: [
|
|
166349
166472
|
["rect", {
|
|
166350
|
-
width: "
|
|
166351
|
-
height: "
|
|
166352
|
-
x: "
|
|
166353
|
-
y: "
|
|
166473
|
+
width: "16",
|
|
166474
|
+
height: "6",
|
|
166475
|
+
x: "2",
|
|
166476
|
+
y: "4",
|
|
166354
166477
|
rx: "2",
|
|
166355
|
-
key: "
|
|
166478
|
+
key: "10wcwx"
|
|
166356
166479
|
}],
|
|
166357
166480
|
["rect", {
|
|
166358
|
-
width: "
|
|
166359
|
-
height: "
|
|
166360
|
-
x: "
|
|
166361
|
-
y: "
|
|
166481
|
+
width: "9",
|
|
166482
|
+
height: "6",
|
|
166483
|
+
x: "9",
|
|
166484
|
+
y: "14",
|
|
166362
166485
|
rx: "2",
|
|
166363
|
-
key: "
|
|
166486
|
+
key: "4p5bwg"
|
|
166364
166487
|
}],
|
|
166365
166488
|
["path", {
|
|
166366
|
-
d: "M22
|
|
166367
|
-
key: "
|
|
166489
|
+
d: "M22 22V2",
|
|
166490
|
+
key: "12ipfv"
|
|
166368
166491
|
}]
|
|
166369
166492
|
]
|
|
166370
166493
|
};
|
|
166371
166494
|
__iconData$21.node;
|
|
166372
|
-
var
|
|
166495
|
+
var AlignEndVertical = createLucideIcon(__iconData$21);
|
|
166373
166496
|
//#endregion
|
|
166374
166497
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-horizontal-space-around.mjs
|
|
166375
166498
|
/**
|
|
166376
|
-
* @license lucide-react v1.
|
|
166499
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166377
166500
|
*
|
|
166378
166501
|
* This source code is licensed under the ISC license.
|
|
166379
166502
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166405,7 +166528,7 @@ var AlignHorizontalSpaceAround = createLucideIcon(__iconData$20);
|
|
|
166405
166528
|
//#endregion
|
|
166406
166529
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-start-horizontal.mjs
|
|
166407
166530
|
/**
|
|
166408
|
-
* @license lucide-react v1.
|
|
166531
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166409
166532
|
*
|
|
166410
166533
|
* This source code is licensed under the ISC license.
|
|
166411
166534
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166441,7 +166564,7 @@ var AlignStartHorizontal = createLucideIcon(__iconData$19);
|
|
|
166441
166564
|
//#endregion
|
|
166442
166565
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-start-vertical.mjs
|
|
166443
166566
|
/**
|
|
166444
|
-
* @license lucide-react v1.
|
|
166567
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166445
166568
|
*
|
|
166446
166569
|
* This source code is licensed under the ISC license.
|
|
166447
166570
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166477,7 +166600,7 @@ var AlignStartVertical = createLucideIcon(__iconData$18);
|
|
|
166477
166600
|
//#endregion
|
|
166478
166601
|
//#region ../../node_modules/lucide-react/dist/esm/icons/align-vertical-space-around.mjs
|
|
166479
166602
|
/**
|
|
166480
|
-
* @license lucide-react v1.
|
|
166603
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166481
166604
|
*
|
|
166482
166605
|
* This source code is licensed under the ISC license.
|
|
166483
166606
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166509,7 +166632,7 @@ var AlignVerticalSpaceAround = createLucideIcon(__iconData$17);
|
|
|
166509
166632
|
//#endregion
|
|
166510
166633
|
//#region ../../node_modules/lucide-react/dist/esm/icons/arrow-left.mjs
|
|
166511
166634
|
/**
|
|
166512
|
-
* @license lucide-react v1.
|
|
166635
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166513
166636
|
*
|
|
166514
166637
|
* This source code is licensed under the ISC license.
|
|
166515
166638
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166530,7 +166653,7 @@ var ArrowLeft = createLucideIcon(__iconData$16);
|
|
|
166530
166653
|
//#endregion
|
|
166531
166654
|
//#region ../../node_modules/lucide-react/dist/esm/icons/arrow-right.mjs
|
|
166532
166655
|
/**
|
|
166533
|
-
* @license lucide-react v1.
|
|
166656
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166534
166657
|
*
|
|
166535
166658
|
* This source code is licensed under the ISC license.
|
|
166536
166659
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166551,7 +166674,7 @@ var ArrowRight = createLucideIcon(__iconData$15);
|
|
|
166551
166674
|
//#endregion
|
|
166552
166675
|
//#region ../../node_modules/lucide-react/dist/esm/icons/chevron-left.mjs
|
|
166553
166676
|
/**
|
|
166554
|
-
* @license lucide-react v1.
|
|
166677
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166555
166678
|
*
|
|
166556
166679
|
* This source code is licensed under the ISC license.
|
|
166557
166680
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166569,7 +166692,7 @@ var ChevronLeft = createLucideIcon(__iconData$14);
|
|
|
166569
166692
|
//#endregion
|
|
166570
166693
|
//#region ../../node_modules/lucide-react/dist/esm/icons/chevron-right.mjs
|
|
166571
166694
|
/**
|
|
166572
|
-
* @license lucide-react v1.
|
|
166695
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166573
166696
|
*
|
|
166574
166697
|
* This source code is licensed under the ISC license.
|
|
166575
166698
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166587,7 +166710,7 @@ var ChevronRight = createLucideIcon(__iconData$13);
|
|
|
166587
166710
|
//#endregion
|
|
166588
166711
|
//#region ../../node_modules/lucide-react/dist/esm/icons/chevrons-left.mjs
|
|
166589
166712
|
/**
|
|
166590
|
-
* @license lucide-react v1.
|
|
166713
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166591
166714
|
*
|
|
166592
166715
|
* This source code is licensed under the ISC license.
|
|
166593
166716
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166608,7 +166731,7 @@ var ChevronsLeft = createLucideIcon(__iconData$12);
|
|
|
166608
166731
|
//#endregion
|
|
166609
166732
|
//#region ../../node_modules/lucide-react/dist/esm/icons/chevrons-right.mjs
|
|
166610
166733
|
/**
|
|
166611
|
-
* @license lucide-react v1.
|
|
166734
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166612
166735
|
*
|
|
166613
166736
|
* This source code is licensed under the ISC license.
|
|
166614
166737
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166629,7 +166752,7 @@ var ChevronsRight = createLucideIcon(__iconData$11);
|
|
|
166629
166752
|
//#endregion
|
|
166630
166753
|
//#region ../../node_modules/lucide-react/dist/esm/icons/circle-alert.mjs
|
|
166631
166754
|
/**
|
|
166632
|
-
* @license lucide-react v1.
|
|
166755
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166633
166756
|
*
|
|
166634
166757
|
* This source code is licensed under the ISC license.
|
|
166635
166758
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166666,7 +166789,7 @@ var CircleAlert = createLucideIcon(__iconData$10);
|
|
|
166666
166789
|
//#endregion
|
|
166667
166790
|
//#region ../../node_modules/lucide-react/dist/esm/icons/ellipsis.mjs
|
|
166668
166791
|
/**
|
|
166669
|
-
* @license lucide-react v1.
|
|
166792
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166670
166793
|
*
|
|
166671
166794
|
* This source code is licensed under the ISC license.
|
|
166672
166795
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166701,7 +166824,7 @@ var Ellipsis = createLucideIcon(__iconData$9);
|
|
|
166701
166824
|
//#endregion
|
|
166702
166825
|
//#region ../../node_modules/lucide-react/dist/esm/icons/grip-vertical.mjs
|
|
166703
166826
|
/**
|
|
166704
|
-
* @license lucide-react v1.
|
|
166827
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166705
166828
|
*
|
|
166706
166829
|
* This source code is licensed under the ISC license.
|
|
166707
166830
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166753,7 +166876,7 @@ var GripVertical = createLucideIcon(__iconData$8);
|
|
|
166753
166876
|
//#endregion
|
|
166754
166877
|
//#region ../../node_modules/lucide-react/dist/esm/icons/loader-circle.mjs
|
|
166755
166878
|
/**
|
|
166756
|
-
* @license lucide-react v1.
|
|
166879
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166757
166880
|
*
|
|
166758
166881
|
* This source code is licensed under the ISC license.
|
|
166759
166882
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166772,7 +166895,7 @@ var LoaderCircle = createLucideIcon(__iconData$7);
|
|
|
166772
166895
|
//#endregion
|
|
166773
166896
|
//#region ../../node_modules/lucide-react/dist/esm/icons/lock.mjs
|
|
166774
166897
|
/**
|
|
166775
|
-
* @license lucide-react v1.
|
|
166898
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166776
166899
|
*
|
|
166777
166900
|
* This source code is licensed under the ISC license.
|
|
166778
166901
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166798,7 +166921,7 @@ var Lock = createLucideIcon(__iconData$6);
|
|
|
166798
166921
|
//#endregion
|
|
166799
166922
|
//#region ../../node_modules/lucide-react/dist/esm/icons/menu.mjs
|
|
166800
166923
|
/**
|
|
166801
|
-
* @license lucide-react v1.
|
|
166924
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166802
166925
|
*
|
|
166803
166926
|
* This source code is licensed under the ISC license.
|
|
166804
166927
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166826,7 +166949,7 @@ var Menu = createLucideIcon(__iconData$5);
|
|
|
166826
166949
|
//#endregion
|
|
166827
166950
|
//#region ../../node_modules/lucide-react/dist/esm/icons/minus.mjs
|
|
166828
166951
|
/**
|
|
166829
|
-
* @license lucide-react v1.
|
|
166952
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166830
166953
|
*
|
|
166831
166954
|
* This source code is licensed under the ISC license.
|
|
166832
166955
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166844,7 +166967,7 @@ var Minus = createLucideIcon(__iconData$4);
|
|
|
166844
166967
|
//#endregion
|
|
166845
166968
|
//#region ../../node_modules/lucide-react/dist/esm/icons/move-horizontal.mjs
|
|
166846
166969
|
/**
|
|
166847
|
-
* @license lucide-react v1.
|
|
166970
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166848
166971
|
*
|
|
166849
166972
|
* This source code is licensed under the ISC license.
|
|
166850
166973
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166872,7 +166995,7 @@ var MoveHorizontal = createLucideIcon(__iconData$3);
|
|
|
166872
166995
|
//#endregion
|
|
166873
166996
|
//#region ../../node_modules/lucide-react/dist/esm/icons/move-vertical.mjs
|
|
166874
166997
|
/**
|
|
166875
|
-
* @license lucide-react v1.
|
|
166998
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166876
166999
|
*
|
|
166877
167000
|
* This source code is licensed under the ISC license.
|
|
166878
167001
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166900,7 +167023,7 @@ var MoveVertical = createLucideIcon(__iconData$2);
|
|
|
166900
167023
|
//#endregion
|
|
166901
167024
|
//#region ../../node_modules/lucide-react/dist/esm/icons/plus.mjs
|
|
166902
167025
|
/**
|
|
166903
|
-
* @license lucide-react v1.
|
|
167026
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166904
167027
|
*
|
|
166905
167028
|
* This source code is licensed under the ISC license.
|
|
166906
167029
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -166921,7 +167044,7 @@ var Plus = createLucideIcon(__iconData$1);
|
|
|
166921
167044
|
//#endregion
|
|
166922
167045
|
//#region ../../node_modules/lucide-react/dist/esm/icons/x.mjs
|
|
166923
167046
|
/**
|
|
166924
|
-
* @license lucide-react v1.
|
|
167047
|
+
* @license lucide-react v1.64.0 - ISC
|
|
166925
167048
|
*
|
|
166926
167049
|
* This source code is licensed under the ISC license.
|
|
166927
167050
|
* See the LICENSE file in the root directory of this source tree.
|
|
@@ -168003,7 +168126,7 @@ var useInitEvents = ({ pageCursor, pageSizes, activeElements, template, schemasL
|
|
|
168003
168126
|
};
|
|
168004
168127
|
//#endregion
|
|
168005
168128
|
//#region ../../node_modules/dompurify/dist/purify.es.mjs
|
|
168006
|
-
/*! @license DOMPurify 3.4.
|
|
168129
|
+
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
|
|
168007
168130
|
function _OverloadYield(e, d) {
|
|
168008
168131
|
this.v = e, this.k = d;
|
|
168009
168132
|
}
|
|
@@ -168127,9 +168250,12 @@ Array.prototype.indexOf;
|
|
|
168127
168250
|
var arrayLastIndexOf = unapply(Array.prototype.lastIndexOf);
|
|
168128
168251
|
var arrayPop = unapply(Array.prototype.pop);
|
|
168129
168252
|
var arrayPush$1 = unapply(Array.prototype.push);
|
|
168130
|
-
Array.prototype.slice;
|
|
168253
|
+
var arraySlice = unapply(Array.prototype.slice);
|
|
168131
168254
|
var arraySplice = unapply(Array.prototype.splice);
|
|
168132
168255
|
var arrayIsArray = Array.isArray;
|
|
168256
|
+
var setCreate = unconstruct(Set);
|
|
168257
|
+
var setAdd = unapply(Set.prototype.add);
|
|
168258
|
+
var setHas = unapply(Set.prototype.has);
|
|
168133
168259
|
var stringToLowerCase = unapply(String.prototype.toLowerCase);
|
|
168134
168260
|
var stringToString = unapply(String.prototype.toString);
|
|
168135
168261
|
var stringMatch = unapply(String.prototype.match);
|
|
@@ -168274,6 +168400,25 @@ function lookupGetter(object, prop) {
|
|
|
168274
168400
|
}
|
|
168275
168401
|
return fallbackValue;
|
|
168276
168402
|
}
|
|
168403
|
+
/**
|
|
168404
|
+
* Like lookupGetter, but for accessor properties only, and returns null
|
|
168405
|
+
* instead of a null-returning fallback when no getter exists on the chain.
|
|
168406
|
+
* Lets a caller fall back to a direct property read in environments that
|
|
168407
|
+
* lack the getter, where a fallback returning null would be indistinguishable
|
|
168408
|
+
* from a legitimate null value (e.g. namespaceURI of a no-namespace element).
|
|
168409
|
+
*
|
|
168410
|
+
* @param object - The object (usually a prototype) to start the lookup at.
|
|
168411
|
+
* @param prop - The accessor property name.
|
|
168412
|
+
* @returns The unapplied getter, or null if none was found.
|
|
168413
|
+
*/
|
|
168414
|
+
function lookupAccessor(object, prop) {
|
|
168415
|
+
while (object !== null) {
|
|
168416
|
+
const desc = getOwnPropertyDescriptor(object, prop);
|
|
168417
|
+
if (desc) return desc.get ? unapply(desc.get) : null;
|
|
168418
|
+
object = getPrototypeOf(object);
|
|
168419
|
+
}
|
|
168420
|
+
return null;
|
|
168421
|
+
}
|
|
168277
168422
|
function isRegex(value) {
|
|
168278
168423
|
try {
|
|
168279
168424
|
regExpTest(value, "");
|
|
@@ -168958,7 +169103,7 @@ var NODE_TYPE = {
|
|
|
168958
169103
|
documentFragment: 11,
|
|
168959
169104
|
notation: 12
|
|
168960
169105
|
};
|
|
168961
|
-
var
|
|
169106
|
+
var LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, [
|
|
168962
169107
|
"style",
|
|
168963
169108
|
"script",
|
|
168964
169109
|
"xmp",
|
|
@@ -168967,15 +169112,7 @@ var LITERAL_TEXT_ELEMENT_NAMES = [
|
|
|
168967
169112
|
"noframes",
|
|
168968
169113
|
"plaintext",
|
|
168969
169114
|
"noscript"
|
|
168970
|
-
];
|
|
168971
|
-
var LITERAL_TEXT_ELEMENTS = freeze(addToSet({}, LITERAL_TEXT_ELEMENT_NAMES));
|
|
168972
|
-
var LITERAL_TEXT_CLOSE = function() {
|
|
168973
|
-
const map = {};
|
|
168974
|
-
arrayForEach(LITERAL_TEXT_ELEMENT_NAMES, (name) => {
|
|
168975
|
-
map[name] = seal(new RegExp("</" + name + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
168976
|
-
});
|
|
168977
|
-
return freeze(map);
|
|
168978
|
-
}();
|
|
169115
|
+
]));
|
|
168979
169116
|
var getGlobal = function getGlobal() {
|
|
168980
169117
|
return typeof window === "undefined" ? null : window;
|
|
168981
169118
|
};
|
|
@@ -169053,7 +169190,7 @@ var _resolveObjectOption = function _resolveObjectOption(cfg, key, makeFallback)
|
|
|
169053
169190
|
function createDOMPurify() {
|
|
169054
169191
|
let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
169055
169192
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
169056
|
-
DOMPurify.version = "3.4.
|
|
169193
|
+
DOMPurify.version = "3.4.17";
|
|
169057
169194
|
DOMPurify.removed = [];
|
|
169058
169195
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
169059
169196
|
DOMPurify.isSupported = false;
|
|
@@ -169085,6 +169222,10 @@ function createDOMPurify() {
|
|
|
169085
169222
|
const _readNodeName = function _readNodeName(node) {
|
|
169086
169223
|
return getNodeName ? getNodeName(node) : node.nodeName;
|
|
169087
169224
|
};
|
|
169225
|
+
const getNamespaceURI = lookupAccessor(ElementPrototype, "namespaceURI");
|
|
169226
|
+
const _readNamespaceURI = function _readNamespaceURI(element) {
|
|
169227
|
+
return getNamespaceURI ? getNamespaceURI(element) : element.namespaceURI;
|
|
169228
|
+
};
|
|
169088
169229
|
if (typeof HTMLTemplateElement === "function") {
|
|
169089
169230
|
const template = document.createElement("template");
|
|
169090
169231
|
if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
|
|
@@ -169205,6 +169346,7 @@ function createDOMPurify() {
|
|
|
169205
169346
|
const SANITIZE_NAMED_PROPS_PREFIX = "user-content-";
|
|
169206
169347
|
let KEEP_CONTENT = true;
|
|
169207
169348
|
let IN_PLACE = false;
|
|
169349
|
+
let IN_PLACE_VISITED = null;
|
|
169208
169350
|
let USE_PROFILES = {};
|
|
169209
169351
|
let FORBID_CONTENTS = null;
|
|
169210
169352
|
const DEFAULT_FORBID_CONTENTS = addToSet({}, [
|
|
@@ -169478,18 +169620,23 @@ function createDOMPurify() {
|
|
|
169478
169620
|
* return. Return true otherwise.
|
|
169479
169621
|
*/
|
|
169480
169622
|
const _checkValidNamespace = function _checkValidNamespace(element) {
|
|
169481
|
-
|
|
169482
|
-
|
|
169483
|
-
|
|
169484
|
-
|
|
169485
|
-
|
|
169486
|
-
|
|
169487
|
-
|
|
169488
|
-
|
|
169489
|
-
|
|
169490
|
-
|
|
169491
|
-
|
|
169492
|
-
|
|
169623
|
+
const elementNamespace = _readNamespaceURI(element);
|
|
169624
|
+
const tagName = stringToLowerCase(_readNodeName(element));
|
|
169625
|
+
const parentNode = getParentNode(element);
|
|
169626
|
+
let parent;
|
|
169627
|
+
let parentTagName;
|
|
169628
|
+
if (parentNode && _readNodeType(parentNode) === NODE_TYPE.element) {
|
|
169629
|
+
parent = { namespaceURI: _readNamespaceURI(parentNode) };
|
|
169630
|
+
parentTagName = stringToLowerCase(_readNodeName(parentNode));
|
|
169631
|
+
} else {
|
|
169632
|
+
parent = { namespaceURI: NAMESPACE };
|
|
169633
|
+
parentTagName = "template";
|
|
169634
|
+
}
|
|
169635
|
+
if (!ALLOWED_NAMESPACES[elementNamespace]) return false;
|
|
169636
|
+
if (elementNamespace === SVG_NAMESPACE) return _checkSvgNamespace(tagName, parent, parentTagName);
|
|
169637
|
+
if (elementNamespace === MATHML_NAMESPACE) return _checkMathMlNamespace(tagName, parent, parentTagName);
|
|
169638
|
+
if (elementNamespace === HTML_NAMESPACE) return _checkHtmlNamespace(tagName, parent, parentTagName);
|
|
169639
|
+
if (PARSER_MEDIA_TYPE === "application/xhtml+xml" && ALLOWED_NAMESPACES[elementNamespace]) return true;
|
|
169493
169640
|
return false;
|
|
169494
169641
|
};
|
|
169495
169642
|
/**
|
|
@@ -169533,36 +169680,21 @@ function createDOMPurify() {
|
|
|
169533
169680
|
}
|
|
169534
169681
|
};
|
|
169535
169682
|
/**
|
|
169536
|
-
*
|
|
169537
|
-
*
|
|
169538
|
-
*
|
|
169539
|
-
* (campaign-3 F2). An internal throw mid-walk — e.g. a page-registered
|
|
169540
|
-
* custom element's reaction detaches a node so `_forceRemove`'s deliberate
|
|
169541
|
-
* parentless guard throws, or any other re-entrant engine mutation — would
|
|
169542
|
-
* otherwise leave the caller's *live* tree half-sanitized, with everything
|
|
169543
|
-
* after the abort point still carrying its handlers. There is no safe way
|
|
169544
|
-
* to resume the walk (the tree mutated under us), so we strip the root bare:
|
|
169545
|
-
* remove every child and every attribute, then let the caller's catch see
|
|
169546
|
-
* the original error. Clobber-safe (cached `remove`/`childNodes`/`attributes`
|
|
169547
|
-
* getters; the root was already clobber-pre-flighted at the IN_PLACE entry).
|
|
169683
|
+
* Fail-closed teardown of an in-place root: strip every disallowed attribute
|
|
169684
|
+
* in the subtree first, so nothing armed is left behind, then remove all
|
|
169685
|
+
* children and the root's own attributes.
|
|
169548
169686
|
*
|
|
169549
169687
|
* @param root the in-place root to empty
|
|
169550
169688
|
*/
|
|
169551
169689
|
const _neutralizeRoot = function _neutralizeRoot(root) {
|
|
169552
169690
|
_neutralizeSubtree(root);
|
|
169553
169691
|
const childNodes = getChildNodes(root);
|
|
169554
|
-
if (childNodes) {
|
|
169555
|
-
|
|
169556
|
-
|
|
169557
|
-
|
|
169558
|
-
|
|
169559
|
-
|
|
169560
|
-
try {
|
|
169561
|
-
remove(child);
|
|
169562
|
-
} catch (_) {}
|
|
169563
|
-
});
|
|
169564
|
-
}
|
|
169565
|
-
const attributes = getAttributes(root);
|
|
169692
|
+
if (childNodes) arrayForEach(arraySlice(childNodes), (child) => {
|
|
169693
|
+
try {
|
|
169694
|
+
remove(child);
|
|
169695
|
+
} catch (_) {}
|
|
169696
|
+
});
|
|
169697
|
+
const attributes = _readNodeType(root) === NODE_TYPE.element ? getAttributes(root) : null;
|
|
169566
169698
|
if (attributes) for (let i = attributes.length - 1; i >= 0; --i) {
|
|
169567
169699
|
const attribute = attributes[i];
|
|
169568
169700
|
const name = attribute && attribute.name;
|
|
@@ -169570,18 +169702,9 @@ function createDOMPurify() {
|
|
|
169570
169702
|
}
|
|
169571
169703
|
};
|
|
169572
169704
|
/**
|
|
169573
|
-
*
|
|
169574
|
-
*
|
|
169575
|
-
*
|
|
169576
|
-
* lookup key for HTML elements in an HTML document, so they silently miss an
|
|
169577
|
-
* attribute whose stored qualified name still contains uppercase ASCII
|
|
169578
|
-
* letters. That happens when the node came from a case-preserving source
|
|
169579
|
-
* (an XML/XHTML document imported via importNode(), or createAttributeNS()),
|
|
169580
|
-
* where e.g. `ONERROR` survives the walk: the policy check lowercases to
|
|
169581
|
-
* `onerror` and rejects it, but `removeAttribute('ONERROR')` looks up
|
|
169582
|
-
* `onerror` and finds nothing. Remove the exact Attr node instead, which is
|
|
169583
|
-
* case- and namespace-exact, and fall back to name-based removal only when
|
|
169584
|
-
* the caller could not supply the node.
|
|
169705
|
+
* Removes an attribute, preferably as its exact Attr node: name-based
|
|
169706
|
+
* removal lowercases the name in HTML documents and misses case-preserved
|
|
169707
|
+
* names, e.g. from imported XHTML.
|
|
169585
169708
|
*
|
|
169586
169709
|
* @param name an Attribute name
|
|
169587
169710
|
* @param element a DOM node
|
|
@@ -169615,12 +169738,8 @@ function createDOMPurify() {
|
|
|
169615
169738
|
}
|
|
169616
169739
|
};
|
|
169617
169740
|
/**
|
|
169618
|
-
*
|
|
169619
|
-
*
|
|
169620
|
-
* Removes every attribute the active configuration does not allow from a
|
|
169621
|
-
* single element, using the same allowlist as the main attribute pass (so
|
|
169622
|
-
* `on*` handlers go, but no `/^on/` blocklist is introduced). Used only to
|
|
169623
|
-
* neutralise nodes that are being discarded from an in-place tree.
|
|
169741
|
+
* Removes every attribute the configuration does not allow. Used to
|
|
169742
|
+
* neutralize nodes discarded from an in-place tree.
|
|
169624
169743
|
*
|
|
169625
169744
|
* @param element the element to strip
|
|
169626
169745
|
*/
|
|
@@ -169635,77 +169754,158 @@ function createDOMPurify() {
|
|
|
169635
169754
|
}
|
|
169636
169755
|
};
|
|
169637
169756
|
/**
|
|
169638
|
-
*
|
|
169639
|
-
*
|
|
169640
|
-
*
|
|
169641
|
-
*
|
|
169642
|
-
* namespace, comment, processing-instruction and KEEP_CONTENT:false removals
|
|
169643
|
-
* all drop their subtree wholesale via `_forceRemove`. On the IN_PLACE path
|
|
169644
|
-
* those dropped nodes are detached from the caller's LIVE tree but a
|
|
169645
|
-
* handler-bearing original among them (an `<img onerror>`/`<video>` that was
|
|
169646
|
-
* loading) keeps its queued resource event, which fires in page scope after
|
|
169647
|
-
* sanitize returns. This walks a removed subtree and strips every attribute
|
|
169648
|
-
* the active configuration does not allow — so `on*` handlers are cancelled
|
|
169649
|
-
* through the SAME allowlist that governs kept nodes, not a separate `/^on/`
|
|
169650
|
-
* blocklist. Run synchronously before sanitize returns, i.e. before any
|
|
169651
|
-
* queued event can fire. Hook-free by design: these nodes leave the output,
|
|
169652
|
-
* so firing attribute hooks for them would be surprising. Clobber-safe reads;
|
|
169653
|
-
* a doomed clobbered node may shadow `removeAttribute` (its own attributes are
|
|
169654
|
-
* irrelevant — it is discarded — while its non-clobbered descendants, e.g.
|
|
169655
|
-
* the `<img>`, are reached and scrubbed).
|
|
169757
|
+
* Iterative depth-first walk, so deep trees cannot overflow the call stack,
|
|
169758
|
+
* reading through the cached getters, so clobbering cannot hide children.
|
|
169759
|
+
* When `visit` returns false, the node's children are skipped. With
|
|
169760
|
+
* `intoShadow`, open shadow roots are walked after their host's children.
|
|
169656
169761
|
*
|
|
169657
|
-
* @param root
|
|
169762
|
+
* @param root where to start
|
|
169763
|
+
* @param visit called for every node
|
|
169764
|
+
* @param intoShadow whether to enter open shadow roots
|
|
169658
169765
|
*/
|
|
169659
|
-
const
|
|
169766
|
+
const _walkTree = function _walkTree(root, visit) {
|
|
169767
|
+
let intoShadow = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
169660
169768
|
const stack = [root];
|
|
169661
169769
|
while (stack.length > 0) {
|
|
169662
169770
|
const node = stack.pop();
|
|
169663
|
-
if (
|
|
169771
|
+
if (visit(node) === false) continue;
|
|
169772
|
+
if (intoShadow && _readNodeType(node) === NODE_TYPE.element) {
|
|
169773
|
+
const shadowRoot = getShadowRoot(node);
|
|
169774
|
+
if (_isDocumentFragment(shadowRoot)) stack.push(shadowRoot);
|
|
169775
|
+
}
|
|
169664
169776
|
const childNodes = getChildNodes(node);
|
|
169665
169777
|
if (childNodes) for (let i = childNodes.length - 1; i >= 0; --i) stack.push(childNodes[i]);
|
|
169666
169778
|
}
|
|
169667
169779
|
};
|
|
169668
169780
|
/**
|
|
169669
|
-
*
|
|
169781
|
+
* Strips disallowed attributes from every element of a discarded subtree,
|
|
169782
|
+
* so a handler that is already queued (a loading image) cannot fire.
|
|
169670
169783
|
*
|
|
169671
|
-
*
|
|
169672
|
-
|
|
169784
|
+
* @param root the root of a removed subtree
|
|
169785
|
+
*/
|
|
169786
|
+
const _neutralizeSubtree = function _neutralizeSubtree(root) {
|
|
169787
|
+
_walkTree(root, (node) => {
|
|
169788
|
+
if (_readNodeType(node) === NODE_TYPE.element) _stripDisallowedAttributes(node);
|
|
169789
|
+
});
|
|
169790
|
+
};
|
|
169791
|
+
/**
|
|
169792
|
+
* All nodes under `root`, root first, including open shadow roots. Template
|
|
169793
|
+
* content is not entered, it is inert.
|
|
169794
|
+
*
|
|
169795
|
+
* @param root the in-place root
|
|
169796
|
+
* @return the nodes
|
|
169797
|
+
*/
|
|
169798
|
+
const _collectLiveNodes = function _collectLiveNodes(root) {
|
|
169799
|
+
const nodes = [];
|
|
169800
|
+
_walkTree(root, (node) => {
|
|
169801
|
+
nodes.push(node);
|
|
169802
|
+
}, true);
|
|
169803
|
+
return nodes;
|
|
169804
|
+
};
|
|
169805
|
+
/**
|
|
169806
|
+
* Strips disallowed attributes from every element that was under the
|
|
169807
|
+
* in-place root when the call started and no longer is, whatever removed
|
|
169808
|
+
* or moved it.
|
|
169673
169809
|
*
|
|
169674
|
-
*
|
|
169675
|
-
*
|
|
169676
|
-
|
|
169677
|
-
|
|
169678
|
-
|
|
169679
|
-
|
|
169680
|
-
|
|
169681
|
-
|
|
169682
|
-
|
|
169683
|
-
|
|
169810
|
+
* @param root the in-place root
|
|
169811
|
+
* @param before the root's nodes, collected before the walk
|
|
169812
|
+
*/
|
|
169813
|
+
const _neutralizeEscapedElements = function _neutralizeEscapedElements(root, before) {
|
|
169814
|
+
const reachable = setCreate();
|
|
169815
|
+
arrayForEach(_collectLiveNodes(root), (node) => {
|
|
169816
|
+
if (_readNodeType(node) === NODE_TYPE.element) setAdd(reachable, node);
|
|
169817
|
+
});
|
|
169818
|
+
arrayForEach(before, (node) => {
|
|
169819
|
+
if (_readNodeType(node) === NODE_TYPE.element && !setHas(reachable, node)) _stripDisallowedAttributes(node);
|
|
169820
|
+
});
|
|
169821
|
+
};
|
|
169822
|
+
/**
|
|
169823
|
+
* Neutralizes everything that left the in-place tree during the call: what
|
|
169824
|
+
* DOMPurify removed, and what hooks or custom elements removed or moved out.
|
|
169684
169825
|
*
|
|
169685
|
-
*
|
|
169686
|
-
*
|
|
169687
|
-
*
|
|
169688
|
-
|
|
169689
|
-
|
|
169826
|
+
* @param root the in-place root
|
|
169827
|
+
* @param before the root's nodes, collected before the walk
|
|
169828
|
+
* @return true if the root itself was removed
|
|
169829
|
+
*/
|
|
169830
|
+
const _neutralizeDiscarded = function _neutralizeDiscarded(root, before) {
|
|
169831
|
+
let rootRemoved = false;
|
|
169832
|
+
arrayForEach(DOMPurify.removed, (entry) => {
|
|
169833
|
+
if (entry.element) {
|
|
169834
|
+
rootRemoved = rootRemoved || entry.element === root;
|
|
169835
|
+
_neutralizeSubtree(entry.element);
|
|
169836
|
+
}
|
|
169837
|
+
});
|
|
169838
|
+
_neutralizeEscapedElements(root, before);
|
|
169839
|
+
return rootRemoved;
|
|
169840
|
+
};
|
|
169841
|
+
const MAX_UNVISITED_ROUNDS = 8;
|
|
169842
|
+
/**
|
|
169843
|
+
* The walk only moves forward, so a node moved to a position it already
|
|
169844
|
+
* passed is never visited. Give every original node that is still in the
|
|
169845
|
+
* tree but unvisited the normal treatment, hooks included. Nodes created
|
|
169846
|
+
* during the call are left alone. Fails closed if the tree keeps changing.
|
|
169690
169847
|
*
|
|
169691
|
-
*
|
|
169692
|
-
*
|
|
169848
|
+
* @param root the in-place root
|
|
169849
|
+
* @param before the root's nodes, collected before the walk
|
|
169850
|
+
*/
|
|
169851
|
+
const _sanitizeUnvisitedNodes = function _sanitizeUnvisitedNodes(root, before) {
|
|
169852
|
+
const visited = IN_PLACE_VISITED;
|
|
169853
|
+
let original = null;
|
|
169854
|
+
const getOriginal = () => {
|
|
169855
|
+
if (!original) {
|
|
169856
|
+
original = setCreate();
|
|
169857
|
+
arrayForEach(before, (beforeNode) => {
|
|
169858
|
+
setAdd(original, beforeNode);
|
|
169859
|
+
});
|
|
169860
|
+
}
|
|
169861
|
+
return original;
|
|
169862
|
+
};
|
|
169863
|
+
for (let round = 0;; round++) {
|
|
169864
|
+
const live = _collectLiveNodes(root);
|
|
169865
|
+
const containers = [root];
|
|
169866
|
+
let pending = false;
|
|
169867
|
+
arrayForEach(live, (node) => {
|
|
169868
|
+
if (_readNodeType(node) === NODE_TYPE.documentFragment) arrayPush$1(containers, node);
|
|
169869
|
+
else if (!pending && !setHas(visited, node)) pending = setHas(getOriginal(), node);
|
|
169870
|
+
});
|
|
169871
|
+
if (!pending) return;
|
|
169872
|
+
if (round >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate("the tree kept changing during in-place sanitization; refusing to return it");
|
|
169873
|
+
arrayForEach(containers, (container, index) => {
|
|
169874
|
+
_sanitizeUnvisitedIn(container, index > 0, root, getOriginal());
|
|
169875
|
+
});
|
|
169876
|
+
}
|
|
169877
|
+
};
|
|
169878
|
+
/**
|
|
169879
|
+
* One _sanitizeUnvisitedNodes pass over the root or an open shadow root.
|
|
169693
169880
|
*
|
|
169694
|
-
*
|
|
169695
|
-
*
|
|
169696
|
-
*
|
|
169697
|
-
*
|
|
169698
|
-
|
|
169699
|
-
|
|
169881
|
+
* @param container the root or an open shadow root
|
|
169882
|
+
* @param inShadow whether container is a shadow root
|
|
169883
|
+
* @param root the in-place root
|
|
169884
|
+
* @param original the root's nodes collected before the walk, as a set
|
|
169885
|
+
*/
|
|
169886
|
+
const _sanitizeUnvisitedIn = function _sanitizeUnvisitedIn(container, inShadow, root, original) {
|
|
169887
|
+
const iterator = _createNodeIterator(container);
|
|
169888
|
+
let node;
|
|
169889
|
+
while (node = iterator.nextNode()) {
|
|
169890
|
+
if (!setHas(original, node) || setHas(IN_PLACE_VISITED, node)) continue;
|
|
169891
|
+
if (inShadow) _executeHooks(hooks.uponSanitizeShadowNode, node, null);
|
|
169892
|
+
_sanitizeElements(node, root);
|
|
169893
|
+
_sanitizeAttributes(node, root);
|
|
169894
|
+
if (_isDocumentFragment(node.content)) _sanitizeShadowDOM2(node.content);
|
|
169895
|
+
}
|
|
169896
|
+
};
|
|
169897
|
+
/**
|
|
169898
|
+
* Records that _sanitizeElements processed `node`. No-op outside IN_PLACE.
|
|
169700
169899
|
*
|
|
169701
|
-
* @param
|
|
169900
|
+
* @param node the node being processed
|
|
169702
169901
|
*/
|
|
169902
|
+
const _markVisited = function _markVisited(node) {
|
|
169903
|
+
if (IN_PLACE_VISITED) setAdd(IN_PLACE_VISITED, node);
|
|
169904
|
+
};
|
|
169703
169905
|
/**
|
|
169704
|
-
*
|
|
169705
|
-
*
|
|
169706
|
-
*
|
|
169707
|
-
* everywhere except on <label>/<output>, and the whole policy is gated on
|
|
169708
|
-
* SAFE_FOR_XML (see the rationale block in _isValidAttribute).
|
|
169906
|
+
* Patch-linkage attributes (declarative partial updates): `patchsrc`
|
|
169907
|
+
* always, `for` everywhere except on <label> and <output>. Gated on
|
|
169908
|
+
* SAFE_FOR_XML. Shared by the IN_PLACE pre-pass and _isValidAttribute.
|
|
169709
169909
|
*
|
|
169710
169910
|
* @param lcName the transformCaseFunc'd attribute name
|
|
169711
169911
|
* @param lcTag the transformCaseFunc'd tag name of the carrying element
|
|
@@ -169716,17 +169916,26 @@ function createDOMPurify() {
|
|
|
169716
169916
|
if (lcName === "patchsrc") return true;
|
|
169717
169917
|
return lcName === "for" && lcTag !== "label" && lcTag !== "output";
|
|
169718
169918
|
};
|
|
169919
|
+
/**
|
|
169920
|
+
* IN_PLACE pre-pass: sever all patch linkage before the walk, so no patch
|
|
169921
|
+
* can fire mid-walk into a part of the tree the walker already passed.
|
|
169922
|
+
* Removes range markers (processing instructions, comments with markup)
|
|
169923
|
+
* and strips linkage attributes. It cannot undo a patch that already fired.
|
|
169924
|
+
*
|
|
169925
|
+
* TODO: if the shipped feature can patch through `for` on <label>/<output>,
|
|
169926
|
+
* drop that pair here too (see test/declarative-patch-probe.html).
|
|
169927
|
+
*
|
|
169928
|
+
* @param root the in-place root to sweep
|
|
169929
|
+
*/
|
|
169719
169930
|
const _neutralizePatchLinkage = function _neutralizePatchLinkage(root) {
|
|
169720
169931
|
if (!SAFE_FOR_XML) return;
|
|
169721
|
-
|
|
169722
|
-
while (stack.length > 0) {
|
|
169723
|
-
const node = stack.pop();
|
|
169932
|
+
_walkTree(root, (node) => {
|
|
169724
169933
|
const nodeType = _readNodeType(node);
|
|
169725
169934
|
if (nodeType === NODE_TYPE.processingInstruction || nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, node.data)) {
|
|
169726
169935
|
try {
|
|
169727
169936
|
remove(node);
|
|
169728
169937
|
} catch (_) {}
|
|
169729
|
-
|
|
169938
|
+
return false;
|
|
169730
169939
|
}
|
|
169731
169940
|
if (nodeType === NODE_TYPE.element) {
|
|
169732
169941
|
const element = node;
|
|
@@ -169736,9 +169945,8 @@ function createDOMPurify() {
|
|
|
169736
169945
|
if (element.hasAttribute && element.hasAttribute("for") && _isPatchLinkageAttribute("for", lcTag)) element.removeAttribute("for");
|
|
169737
169946
|
} catch (_) {}
|
|
169738
169947
|
}
|
|
169739
|
-
|
|
169740
|
-
|
|
169741
|
-
}
|
|
169948
|
+
return true;
|
|
169949
|
+
});
|
|
169742
169950
|
};
|
|
169743
169951
|
/**
|
|
169744
169952
|
* _initDocument
|
|
@@ -169815,6 +170023,27 @@ function createDOMPurify() {
|
|
|
169815
170023
|
*/
|
|
169816
170024
|
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
169817
170025
|
var _node$querySelectorAl;
|
|
170026
|
+
_scrubOwnCharacterData(node);
|
|
170027
|
+
const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
|
|
170028
|
+
if (templates) arrayForEach(templates, (tmpl) => {
|
|
170029
|
+
if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
|
|
170030
|
+
});
|
|
170031
|
+
};
|
|
170032
|
+
/**
|
|
170033
|
+
* _scrubOwnCharacterData
|
|
170034
|
+
*
|
|
170035
|
+
* Non-recursive core of _scrubTemplateExpressions: normalize `node` and
|
|
170036
|
+
* strip template expressions from its own character data only. Does not
|
|
170037
|
+
* enter <template>.content or attached shadow roots (NodeIterator never
|
|
170038
|
+
* does). Used by _sanitizeShadowDOM, where every nested template content
|
|
170039
|
+
* and shadow root is already walked - and therefore scrubbed - by its own
|
|
170040
|
+
* recursive _sanitizeShadowDOM call; recursing here as well would rescrub
|
|
170041
|
+
* each nested fragment once per ancestor, which is quadratic in nesting
|
|
170042
|
+
* depth.
|
|
170043
|
+
*
|
|
170044
|
+
* @param node The root whose own character data should be scrubbed.
|
|
170045
|
+
*/
|
|
170046
|
+
const _scrubOwnCharacterData = function _scrubOwnCharacterData(node) {
|
|
169818
170047
|
node.normalize();
|
|
169819
170048
|
const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
|
|
169820
170049
|
const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
@@ -169823,10 +170052,6 @@ function createDOMPurify() {
|
|
|
169823
170052
|
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
169824
170053
|
currentNode = walker.nextNode();
|
|
169825
170054
|
}
|
|
169826
|
-
const templates = (_node$querySelectorAl = node.querySelectorAll) === null || _node$querySelectorAl === void 0 ? void 0 : _node$querySelectorAl.call(node, "template");
|
|
169827
|
-
if (templates) arrayForEach(templates, (tmpl) => {
|
|
169828
|
-
if (_isDocumentFragment(tmpl.content)) _scrubTemplateExpressions2(tmpl.content);
|
|
169829
|
-
});
|
|
169830
170055
|
};
|
|
169831
170056
|
/**
|
|
169832
170057
|
* _isClobbered
|
|
@@ -169902,7 +170127,7 @@ function createDOMPurify() {
|
|
|
169902
170127
|
*/
|
|
169903
170128
|
const _isUnsafeNode = function _isUnsafeNode(currentNode, tagName) {
|
|
169904
170129
|
if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent) && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.innerHTML)) return true;
|
|
169905
|
-
if (SAFE_FOR_XML && currentNode
|
|
170130
|
+
if (SAFE_FOR_XML && LITERAL_TEXT_ELEMENTS[tagName] && _readNodeType(currentNode) === NODE_TYPE.element && _readNamespaceURI(currentNode) === HTML_NAMESPACE && (_isNode(currentNode.firstElementChild) || typeof currentNode.textContent === "string" && regExpTest(ELEMENT_MARKUP_PROBE, currentNode.textContent))) return true;
|
|
169906
170131
|
if (currentNode.nodeType === NODE_TYPE.processingInstruction) return true;
|
|
169907
170132
|
if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(COMMENT_MARKUP_PROBE, currentNode.data)) return true;
|
|
169908
170133
|
return false;
|
|
@@ -169946,7 +170171,7 @@ function createDOMPurify() {
|
|
|
169946
170171
|
*/
|
|
169947
170172
|
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
|
|
169948
170173
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName) && _matchesNameCheck(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
169949
|
-
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {
|
|
170174
|
+
if (KEEP_CONTENT && !FORBID_CONTENTS[tagName] && !FORBID_CONTENTS[stringToLowerCase(tagName)]) {
|
|
169950
170175
|
const parentNode = getParentNode(currentNode);
|
|
169951
170176
|
const childNodes = getChildNodes(currentNode);
|
|
169952
170177
|
if (childNodes && parentNode) {
|
|
@@ -169979,35 +170204,13 @@ function createDOMPurify() {
|
|
|
169979
170204
|
return set === defaultSet || set === setConfigSet ? clone(set) : set;
|
|
169980
170205
|
};
|
|
169981
170206
|
/**
|
|
169982
|
-
*
|
|
169983
|
-
*
|
|
169984
|
-
*
|
|
169985
|
-
* filtering). Per the cached, unclobberable parentNode getter the node is
|
|
169986
|
-
* genuinely out of the tree, so it can reach neither the serialized
|
|
169987
|
-
* output nor an IN_PLACE live tree; treat it as removed and stop
|
|
169988
|
-
* processing it. Without this guard, the unsafe-node / namespace checks
|
|
169989
|
-
* would call _forceRemove on a parentless node and hit the REPORT-3
|
|
169990
|
-
* fail-closed throw — which exists for nodes DOMPurify wants gone but
|
|
169991
|
-
* *cannot* detach (clobbered / parentless roots), the opposite of a node
|
|
169992
|
-
* that is already safely gone. The walk root is exempt: a detached
|
|
169993
|
-
* IN_PLACE root is legitimate input and must still be fully sanitized,
|
|
169994
|
-
* and a kill-decision on it must keep hitting the REPORT-3 throw.
|
|
169995
|
-
*
|
|
169996
|
-
* Nodes detached by hooks stay the hook's responsibility for placement:
|
|
169997
|
-
* they are not recorded in DOMPurify.removed, so the post-walk IN_PLACE
|
|
169998
|
-
* pass (which iterates DOMPurify.removed) does not reach them. But a
|
|
169999
|
-
* hook-detached subtree can still hold a queued resource-event handler -
|
|
170000
|
-
* e.g. an <img onload> that began loading when the caller built the live
|
|
170001
|
-
* tree - which fires in page scope after sanitize returns even though the
|
|
170002
|
-
* handler never reached the returned tree. That is the audit-5 F1 hazard,
|
|
170003
|
-
* and the documented node.remove() hook pattern walks straight into it.
|
|
170004
|
-
* So on the IN_PLACE path we neutralize the detached subtree inline,
|
|
170005
|
-
* stripping its non-allow-listed attributes before returning, exactly as
|
|
170006
|
-
* the post-walk pass does for _forceRemove'd subtrees.
|
|
170207
|
+
* A hook may have detached the node it was called for. If so, treat it as
|
|
170208
|
+
* removed and stop processing it; the walk root is exempt. On the IN_PLACE
|
|
170209
|
+
* path the detached subtree is neutralized right away.
|
|
170007
170210
|
*
|
|
170008
170211
|
* @param currentNode the node a hook may have detached
|
|
170009
170212
|
* @param root the current walk root
|
|
170010
|
-
* @return true if the node
|
|
170213
|
+
* @return true if the node was detached
|
|
170011
170214
|
*/
|
|
170012
170215
|
const _handleHookDetachedNode = function _handleHookDetachedNode(currentNode, root) {
|
|
170013
170216
|
if (currentNode === root || getParentNode(currentNode) !== null) return false;
|
|
@@ -170024,6 +170227,7 @@ function createDOMPurify() {
|
|
|
170024
170227
|
* @return true if node was killed, false if left alive
|
|
170025
170228
|
*/
|
|
170026
170229
|
const _sanitizeElements = function _sanitizeElements(currentNode, root) {
|
|
170230
|
+
_markVisited(currentNode);
|
|
170027
170231
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
170028
170232
|
if (_handleHookDetachedNode(currentNode, root)) return true;
|
|
170029
170233
|
if (_isClobbered(currentNode)) {
|
|
@@ -170167,6 +170371,22 @@ function createDOMPurify() {
|
|
|
170167
170371
|
}
|
|
170168
170372
|
};
|
|
170169
170373
|
/**
|
|
170374
|
+
* _isUnsafeAttributeValue
|
|
170375
|
+
*
|
|
170376
|
+
* Value-based attribute checks that the attribute walk applies before any
|
|
170377
|
+
* hook can force-keep an attribute, shared with the public
|
|
170378
|
+
* isValidAttribute() so that it never approves a value sanitize() would
|
|
170379
|
+
* strip.
|
|
170380
|
+
*
|
|
170381
|
+
* @param name the attribute name as found on the node (case preserved)
|
|
170382
|
+
* @param value the attribute value
|
|
170383
|
+
* @returns true if the attribute must be removed because of its value
|
|
170384
|
+
*/
|
|
170385
|
+
const _isUnsafeAttributeValue = function _isUnsafeAttributeValue(name, value) {
|
|
170386
|
+
if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, value)) return true;
|
|
170387
|
+
return stringToLowerCase(name) === "attributename" && stringMatch(value, "href") !== null;
|
|
170388
|
+
};
|
|
170389
|
+
/**
|
|
170170
170390
|
* _sanitizeAttributes
|
|
170171
170391
|
*
|
|
170172
170392
|
* @protect attributes
|
|
@@ -170210,11 +170430,7 @@ function createDOMPurify() {
|
|
|
170210
170430
|
value = SANITIZE_NAMED_PROPS_PREFIX + value;
|
|
170211
170431
|
recreatedNamedProp = true;
|
|
170212
170432
|
}
|
|
170213
|
-
if (
|
|
170214
|
-
_removeAttribute(name, currentNode, attr);
|
|
170215
|
-
continue;
|
|
170216
|
-
}
|
|
170217
|
-
if (lcName === "attributename" && stringMatch(value, "href")) {
|
|
170433
|
+
if (_isUnsafeAttributeValue(name, value)) {
|
|
170218
170434
|
_removeAttribute(name, currentNode, attr);
|
|
170219
170435
|
continue;
|
|
170220
170436
|
}
|
|
@@ -170262,24 +170478,13 @@ function createDOMPurify() {
|
|
|
170262
170478
|
}
|
|
170263
170479
|
}
|
|
170264
170480
|
}
|
|
170481
|
+
if (SAFE_FOR_TEMPLATES) _scrubOwnCharacterData(fragment);
|
|
170265
170482
|
_executeHooks(hooks.afterSanitizeShadowDOM, fragment, null);
|
|
170266
170483
|
};
|
|
170267
170484
|
/**
|
|
170268
|
-
*
|
|
170269
|
-
*
|
|
170270
|
-
*
|
|
170271
|
-
* the existing _sanitizeShadowDOM pipeline. The default node iterator
|
|
170272
|
-
* does not descend into shadow trees, so nodes inside an attached
|
|
170273
|
-
* shadow root would otherwise be skipped entirely.
|
|
170274
|
-
*
|
|
170275
|
-
* Two real input paths put attached shadow roots in front of us:
|
|
170276
|
-
* 1. IN_PLACE on a DOM node that already has shadow roots attached.
|
|
170277
|
-
* 2. DOM-node input where importNode(dirty, true) deep-clones the
|
|
170278
|
-
* shadow root because it was created with `clonable: true`.
|
|
170279
|
-
*
|
|
170280
|
-
* This pass runs once, up front, so the main iteration loop (and the
|
|
170281
|
-
* existing _sanitizeShadowDOM template-content recursion) stay
|
|
170282
|
-
* untouched — string-input paths are not affected.
|
|
170485
|
+
* Sanitizes every attached shadow root under `root`, since the node
|
|
170486
|
+
* iterator does not enter shadow trees. Needed for IN_PLACE input and for
|
|
170487
|
+
* DOM input whose clonable shadow roots were copied by importNode().
|
|
170283
170488
|
*
|
|
170284
170489
|
* @param root the subtree root to walk for attached shadow roots
|
|
170285
170490
|
*/
|
|
@@ -170344,6 +170549,8 @@ function createDOMPurify() {
|
|
|
170344
170549
|
if (hooks.uponSanitizeAttribute.length > 0) ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
170345
170550
|
DOMPurify.removed = [];
|
|
170346
170551
|
const inPlace = IN_PLACE && typeof dirty !== "string" && _isNode(dirty);
|
|
170552
|
+
let inPlaceNodes = [];
|
|
170553
|
+
const outerVisited = IN_PLACE_VISITED;
|
|
170347
170554
|
if (inPlace) {
|
|
170348
170555
|
_neutralizePatchLinkage(dirty);
|
|
170349
170556
|
const nn = _readNodeName(dirty);
|
|
@@ -170358,12 +170565,8 @@ function createDOMPurify() {
|
|
|
170358
170565
|
_neutralizeRoot(dirty);
|
|
170359
170566
|
throw typeErrorCreate("root node is clobbered and cannot be sanitized in-place");
|
|
170360
170567
|
}
|
|
170361
|
-
|
|
170362
|
-
|
|
170363
|
-
} catch (error) {
|
|
170364
|
-
_neutralizeRoot(dirty);
|
|
170365
|
-
throw error;
|
|
170366
|
-
}
|
|
170568
|
+
inPlaceNodes = _collectLiveNodes(dirty);
|
|
170569
|
+
IN_PLACE_VISITED = setCreate();
|
|
170367
170570
|
} else if (_isNode(dirty)) {
|
|
170368
170571
|
body = _initDocument("<!---->");
|
|
170369
170572
|
importedNode = body.ownerDocument.importNode(dirty, true);
|
|
@@ -170379,30 +170582,25 @@ function createDOMPurify() {
|
|
|
170379
170582
|
if (body && FORCE_BODY) _forceRemove(body.firstChild);
|
|
170380
170583
|
const walkRoot = inPlace ? dirty : body;
|
|
170381
170584
|
try {
|
|
170585
|
+
if (inPlace) _sanitizeAttachedShadowRoots(dirty);
|
|
170382
170586
|
const nodeIterator = _createNodeIterator(walkRoot);
|
|
170383
170587
|
while (currentNode = nodeIterator.nextNode()) {
|
|
170384
170588
|
_sanitizeElements(currentNode, walkRoot);
|
|
170385
170589
|
_sanitizeAttributes(currentNode, walkRoot);
|
|
170386
170590
|
if (_isDocumentFragment(currentNode.content)) _sanitizeShadowDOM2(currentNode.content);
|
|
170387
170591
|
}
|
|
170592
|
+
if (inPlace) _sanitizeUnvisitedNodes(dirty, inPlaceNodes);
|
|
170388
170593
|
} catch (error) {
|
|
170389
170594
|
if (inPlace) {
|
|
170390
170595
|
_neutralizeRoot(dirty);
|
|
170391
|
-
|
|
170392
|
-
if (entry.element) _neutralizeSubtree(entry.element);
|
|
170393
|
-
});
|
|
170596
|
+
_neutralizeDiscarded(dirty, inPlaceNodes);
|
|
170394
170597
|
}
|
|
170395
170598
|
throw error;
|
|
170599
|
+
} finally {
|
|
170600
|
+
IN_PLACE_VISITED = outerVisited;
|
|
170396
170601
|
}
|
|
170397
170602
|
if (inPlace) {
|
|
170398
|
-
|
|
170399
|
-
arrayForEach(DOMPurify.removed, (entry) => {
|
|
170400
|
-
if (entry.element) {
|
|
170401
|
-
if (entry.element === dirty) rootWasRemoved = true;
|
|
170402
|
-
_neutralizeSubtree(entry.element);
|
|
170403
|
-
}
|
|
170404
|
-
});
|
|
170405
|
-
if (rootWasRemoved) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
170603
|
+
if (_neutralizeDiscarded(dirty, inPlaceNodes)) throw typeErrorCreate("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
170406
170604
|
if (SAFE_FOR_TEMPLATES) _scrubTemplateExpressions2(dirty);
|
|
170407
170605
|
return dirty;
|
|
170408
170606
|
}
|
|
@@ -170439,6 +170637,7 @@ function createDOMPurify() {
|
|
|
170439
170637
|
if (!CONFIG) _parseConfig({});
|
|
170440
170638
|
const lcTag = transformCaseFunc(tag);
|
|
170441
170639
|
const lcName = transformCaseFunc(attr);
|
|
170640
|
+
if (typeof value === "string" && (_isUnsafeAttributeValue(attr, value) || !ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(SELF_CLOSING_TAG, value))) return false;
|
|
170442
170641
|
return _isValidAttribute(lcTag, lcName, value);
|
|
170443
170642
|
};
|
|
170444
170643
|
DOMPurify.addHook = function(entryPoint, hookFunction) {
|
|
@@ -180782,10 +180981,10 @@ var locales_default = {
|
|
|
180782
180981
|
"moveUp": "上移"
|
|
180783
180982
|
}
|
|
180784
180983
|
};
|
|
180785
|
-
(/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
180984
|
+
(/* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
|
|
180786
180985
|
(function(e, _) {
|
|
180787
180986
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = _(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], _) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
|
|
180788
|
-
})(
|
|
180987
|
+
})(this$3, (function(e) {
|
|
180789
180988
|
"use strict";
|
|
180790
180989
|
function _(e) {
|
|
180791
180990
|
return e && "object" == typeof e && "default" in e ? e : { default: e };
|
|
@@ -181306,16 +181505,16 @@ var require__export = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
181306
181505
|
var IS_PROTO = type & $export.P;
|
|
181307
181506
|
var IS_BIND = type & $export.B;
|
|
181308
181507
|
var IS_WRAP = type & $export.W;
|
|
181309
|
-
var exports
|
|
181310
|
-
var expProto = exports
|
|
181508
|
+
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
|
181509
|
+
var expProto = exports[PROTOTYPE];
|
|
181311
181510
|
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
|
181312
181511
|
var key, own, out;
|
|
181313
181512
|
if (IS_GLOBAL) source = name;
|
|
181314
181513
|
for (key in source) {
|
|
181315
181514
|
own = !IS_FORCED && target && target[key] !== void 0;
|
|
181316
|
-
if (own && has(exports
|
|
181515
|
+
if (own && has(exports, key)) continue;
|
|
181317
181516
|
out = own ? target[key] : source[key];
|
|
181318
|
-
exports
|
|
181517
|
+
exports[key] = IS_GLOBAL && typeof target[key] != "function" ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) {
|
|
181319
181518
|
var F = function(a, b, c) {
|
|
181320
181519
|
if (this instanceof C) {
|
|
181321
181520
|
switch (arguments.length) {
|
|
@@ -181331,7 +181530,7 @@ var require__export = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
181331
181530
|
return F;
|
|
181332
181531
|
})(out) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
|
|
181333
181532
|
if (IS_PROTO) {
|
|
181334
|
-
(exports
|
|
181533
|
+
(exports.virtual || (exports.virtual = {}))[key] = out;
|
|
181335
181534
|
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
|
181336
181535
|
}
|
|
181337
181536
|
}
|
|
@@ -185993,10 +186192,10 @@ var init_es = __esmMin((() => {
|
|
|
185993
186192
|
}));
|
|
185994
186193
|
//#endregion
|
|
185995
186194
|
//#region ../../node_modules/tinycolor2/cjs/tinycolor.js
|
|
185996
|
-
var require_tinycolor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
186195
|
+
var require_tinycolor = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
|
|
185997
186196
|
(function(global, factory) {
|
|
185998
186197
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.tinycolor = factory());
|
|
185999
|
-
})(
|
|
186198
|
+
})(this$2, (function() {
|
|
186000
186199
|
"use strict";
|
|
186001
186200
|
function _typeof(obj) {
|
|
186002
186201
|
"@babel/helpers - typeof";
|
|
@@ -188518,10 +188717,10 @@ var Color = function Color(props) {
|
|
|
188518
188717
|
};
|
|
188519
188718
|
//#endregion
|
|
188520
188719
|
//#region ../../node_modules/form-render/es/widgets/utils/index.js
|
|
188521
|
-
var import_quarterOfYear = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
188720
|
+
var import_quarterOfYear = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
|
|
188522
188721
|
(function(t, n) {
|
|
188523
188722
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_quarterOfYear = n();
|
|
188524
|
-
})(
|
|
188723
|
+
})(this$1, (function() {
|
|
188525
188724
|
"use strict";
|
|
188526
188725
|
var t = "month", n = "quarter";
|
|
188527
188726
|
return function(e, i) {
|
|
@@ -216409,7 +216608,7 @@ var scaleDragPosAdjustment = (adjustment, scale) => {
|
|
|
216409
216608
|
return 0;
|
|
216410
216609
|
};
|
|
216411
216610
|
var MIN_CANVAS_WIDTH = 100;
|
|
216412
|
-
var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, onUpdateTemplatePageApplied, updateTemplatePage }) => {
|
|
216611
|
+
var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPageCursorChange, onChangeSelection, onRegisterSchemaSelectionHandler, onUpdateTemplatePageApplied, updateTemplatePage, sidebarOpenRequest }) => {
|
|
216413
216612
|
const past = (0, import_react$9.useRef)([]);
|
|
216414
216613
|
const future = (0, import_react$9.useRef)([]);
|
|
216415
216614
|
const schemasListRef = (0, import_react$9.useRef)([[]]);
|
|
@@ -216437,8 +216636,14 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216437
216636
|
pageCursorRef.current = pageCursor;
|
|
216438
216637
|
const [pendingScrollPage, setPendingScrollPage] = (0, import_react$9.useState)(null);
|
|
216439
216638
|
const [sidebarOpen, setSidebarOpen] = (0, import_react$9.useState)(options.sidebarOpen ?? canvasWidth - rightSidebarWidth >= MIN_CANVAS_WIDTH);
|
|
216639
|
+
const [appliedSidebarOpenRequest, setAppliedSidebarOpenRequest] = (0, import_react$9.useState)(sidebarOpenRequest);
|
|
216640
|
+
if (sidebarOpenRequest !== appliedSidebarOpenRequest) {
|
|
216641
|
+
setAppliedSidebarOpenRequest(sidebarOpenRequest);
|
|
216642
|
+
if (sidebarOpenRequest) setSidebarOpen(sidebarOpenRequest.open);
|
|
216643
|
+
}
|
|
216440
216644
|
const [canvasHeight, setCanvasHeight] = (0, import_react$9.useState)(0);
|
|
216441
216645
|
const [prevTemplate, setPrevTemplate] = (0, import_react$9.useState)(null);
|
|
216646
|
+
const [pageSource, setPageSource] = (0, import_react$9.useState)(template);
|
|
216442
216647
|
const sizeExcSidebars = (0, import_react$9.useMemo)(() => ({
|
|
216443
216648
|
width: Math.max(sidebarOpen ? canvasWidth - rightSidebarWidth : canvasWidth, 0),
|
|
216444
216649
|
height: size.height
|
|
@@ -216448,8 +216653,8 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216448
216653
|
sidebarOpen,
|
|
216449
216654
|
size.height
|
|
216450
216655
|
]);
|
|
216451
|
-
const { backgrounds, pageSizes, baseScale, error
|
|
216452
|
-
template,
|
|
216656
|
+
const { backgrounds, pageSizes, baseScale, error } = useUIPreProcessor({
|
|
216657
|
+
template: pageSource,
|
|
216453
216658
|
size: sizeExcSidebars,
|
|
216454
216659
|
zoomLevel: 1,
|
|
216455
216660
|
maxZoom
|
|
@@ -216551,9 +216756,6 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216551
216756
|
previousOptionsZoomLevelRef.current = options.zoomLevel;
|
|
216552
216757
|
if (typeof options.zoomLevel === "number") setZoomLevel(options.zoomLevel);
|
|
216553
216758
|
}, [options.zoomLevel, setZoomLevel]);
|
|
216554
|
-
(0, import_react$9.useEffect)(() => {
|
|
216555
|
-
if (typeof options.sidebarOpen === "boolean") setSidebarOpen(options.sidebarOpen);
|
|
216556
|
-
}, [options.sidebarOpen]);
|
|
216557
216759
|
const armScrollSuppression = (fallbackMs) => {
|
|
216558
216760
|
const token = ++scrollSuppressTokenRef.current;
|
|
216559
216761
|
suppressScrollPageCursorRef.current = true;
|
|
@@ -216644,7 +216846,7 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216644
216846
|
const newTemplate = schemasList2template(next, basePdf);
|
|
216645
216847
|
onChangeTemplate(newTemplate);
|
|
216646
216848
|
if (options.notifyPageCursor === "always") onPageCursorChange(clampedCursor, next.length);
|
|
216647
|
-
if (pageCountChanged)
|
|
216849
|
+
if (pageCountChanged) setPageSource(newTemplate);
|
|
216648
216850
|
if (cursorChanged) {
|
|
216649
216851
|
if (pageCountChanged) {
|
|
216650
216852
|
armScrollSuppression(SCROLL_SUPPRESS_FALLBACK_MS);
|
|
@@ -216662,7 +216864,6 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216662
216864
|
onChangeTemplate,
|
|
216663
216865
|
onPageCursorChange,
|
|
216664
216866
|
pageSizes,
|
|
216665
|
-
refresh,
|
|
216666
216867
|
template.basePdf
|
|
216667
216868
|
]);
|
|
216668
216869
|
const commitSchemas = (0, import_react$9.useCallback)((newSchemas) => {
|
|
@@ -216861,6 +217062,7 @@ var TemplateEditor = ({ template, size, onSaveTemplate, onChangeTemplate, onPage
|
|
|
216861
217062
|
};
|
|
216862
217063
|
if (prevTemplate !== template) {
|
|
216863
217064
|
setPrevTemplate(template);
|
|
217065
|
+
setPageSource(template);
|
|
216864
217066
|
updateTemplate(template, updateTemplatePage);
|
|
216865
217067
|
}
|
|
216866
217068
|
if (error) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorScreen, {
|
|
@@ -217158,6 +217360,17 @@ var Designer = class extends BaseUIClass {
|
|
|
217158
217360
|
_defineProperty$14(this, "selection", EMPTY_DESIGNER_SELECTION);
|
|
217159
217361
|
_defineProperty$14(this, "selectSchemasHandler", null);
|
|
217160
217362
|
_defineProperty$14(this, "updateTemplatePage", void 0);
|
|
217363
|
+
_defineProperty$14(
|
|
217364
|
+
this,
|
|
217365
|
+
/**
|
|
217366
|
+
* Template the editor loads. A new reference makes the editor discard its
|
|
217367
|
+
* document, selection and schema ids, so it changes only when the host
|
|
217368
|
+
* supplies a template; edits made in the editor update `this.template` only.
|
|
217369
|
+
*/
|
|
217370
|
+
"editorTemplate",
|
|
217371
|
+
void 0
|
|
217372
|
+
);
|
|
217373
|
+
_defineProperty$14(this, "sidebarOpenRequest", void 0);
|
|
217161
217374
|
_defineProperty$14(this, "handleSaveTemplate", (template) => {
|
|
217162
217375
|
this.template = template;
|
|
217163
217376
|
this.template.pdfmeVersion = PDFME_VERSION;
|
|
@@ -217186,6 +217399,12 @@ var Designer = class extends BaseUIClass {
|
|
|
217186
217399
|
if (Object.is(this.updateTemplatePage, page)) this.updateTemplatePage = void 0;
|
|
217187
217400
|
});
|
|
217188
217401
|
checkDesignerProps(props);
|
|
217402
|
+
this.editorTemplate = this.template;
|
|
217403
|
+
}
|
|
217404
|
+
updateOptions(options) {
|
|
217405
|
+
checkUIOptions(options);
|
|
217406
|
+
if (typeof options.sidebarOpen === "boolean") this.sidebarOpenRequest = { open: options.sidebarOpen };
|
|
217407
|
+
super.updateOptions(options);
|
|
217189
217408
|
}
|
|
217190
217409
|
saveTemplate() {
|
|
217191
217410
|
if (!this.domContainer) throw Error(DESTROYED_ERR_MSG);
|
|
@@ -217195,6 +217414,7 @@ var Designer = class extends BaseUIClass {
|
|
|
217195
217414
|
checkTemplate(template);
|
|
217196
217415
|
if (!this.domContainer) throw Error(DESTROYED_ERR_MSG);
|
|
217197
217416
|
this.template = cloneDeep$1(template);
|
|
217417
|
+
this.editorTemplate = this.template;
|
|
217198
217418
|
this.updateTemplatePage = options.page;
|
|
217199
217419
|
if (this.onChangeTemplateCallback) this.onChangeTemplateCallback(template);
|
|
217200
217420
|
this.render();
|
|
@@ -217237,7 +217457,7 @@ var Designer = class extends BaseUIClass {
|
|
|
217237
217457
|
plugins: this.getPluginsRegistry(),
|
|
217238
217458
|
options: this.getOptions(),
|
|
217239
217459
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TemplateEditor, {
|
|
217240
|
-
template: this.
|
|
217460
|
+
template: this.editorTemplate,
|
|
217241
217461
|
onSaveTemplate: this.handleSaveTemplate,
|
|
217242
217462
|
onChangeTemplate: this.handleChangeTemplate,
|
|
217243
217463
|
onPageCursorChange: this.handlePageCursorChange,
|
|
@@ -217245,6 +217465,7 @@ var Designer = class extends BaseUIClass {
|
|
|
217245
217465
|
onRegisterSchemaSelectionHandler: this.handleRegisterSchemaSelectionHandler,
|
|
217246
217466
|
onUpdateTemplatePageApplied: this.handleUpdateTemplatePageApplied,
|
|
217247
217467
|
updateTemplatePage: this.updateTemplatePage,
|
|
217468
|
+
sidebarOpenRequest: this.sidebarOpenRequest,
|
|
217248
217469
|
size: this.size
|
|
217249
217470
|
})
|
|
217250
217471
|
}));
|