bi-components-library 1.1.20 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -562,7 +562,7 @@ const { Option: Dn } = Ze, Pn = ({
562
562
  C.current = e;
563
563
  const te = re(L);
564
564
  te.current = L;
565
- const Y = re(!1), X = gt(() => t.map((m) => {
565
+ const Y = re(!1), Q = gt(() => t.map((m) => {
566
566
  const { sortable: g, render: x, ..._ } = m;
567
567
  return {
568
568
  ..._,
@@ -648,7 +648,7 @@ const { Option: Dn } = Ze, Pn = ({
648
648
  bt,
649
649
  {
650
650
  ...N,
651
- columns: X,
651
+ columns: Q,
652
652
  dataSource: S,
653
653
  loading: E,
654
654
  pagination: {
@@ -1233,7 +1233,7 @@ const Hn = ({ host: t, onChange: p }) => {
1233
1233
  }, [L, P, u]), n = pt.useCallback(() => {
1234
1234
  const s = E.current;
1235
1235
  if (!s) return;
1236
- const c = s.querySelector(".ant-select-selection-item"), k = s.querySelector(".ant-select-selection-placeholder"), D = c || k, R = (D?.textContent || "").trim() || e(), C = s.querySelector(".ant-select-selector"), te = D || C || s, Y = window.getComputedStyle(te), X = D ? Y.fontSize : "16px", V = Y.fontFamily || "sans-serif", l = Y.fontWeight || "400", W = `${Y.fontStyle || "normal"} ${l} ${X} ${V}`, m = document.createElement("canvas").getContext("2d"), g = m ? Math.ceil((m.font = W, m.measureText(R).width || 0)) : 0;
1236
+ const c = s.querySelector(".ant-select-selection-item"), k = s.querySelector(".ant-select-selection-placeholder"), D = c || k, R = (D?.textContent || "").trim() || e(), C = s.querySelector(".ant-select-selector"), te = D || C || s, Y = window.getComputedStyle(te), Q = D ? Y.fontSize : "16px", V = Y.fontFamily || "sans-serif", l = Y.fontWeight || "400", W = `${Y.fontStyle || "normal"} ${l} ${Q} ${V}`, m = document.createElement("canvas").getContext("2d"), g = m ? Math.ceil((m.font = W, m.measureText(R).width || 0)) : 0;
1237
1237
  let x = 0;
1238
1238
  if (C) {
1239
1239
  const Z = window.getComputedStyle(C);
@@ -1245,8 +1245,8 @@ const Hn = ({ host: t, onChange: p }) => {
1245
1245
  const Z = window.getComputedStyle(U);
1246
1246
  Z.display !== "none" && Z.visibility !== "hidden" && (K = Math.ceil(U.getBoundingClientRect().width));
1247
1247
  }
1248
- const Q = Math.max(36, g + x + T + K + 6);
1249
- F((Z) => Z === Q ? Z : Q);
1248
+ const J = Math.max(36, g + x + T + K + 6);
1249
+ F((Z) => Z === J ? Z : J);
1250
1250
  }, [e]);
1251
1251
  return Ie(() => {
1252
1252
  const s = window.requestAnimationFrame(() => {
@@ -1363,23 +1363,23 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1363
1363
  const e = p[A], n = A + 1 < p.length ? p[A + 1] : null;
1364
1364
  let s = !1;
1365
1365
  if (e.type === "text" && (e.text?.includes("icon-bitian") || e.className === "rte-text-required") && n) {
1366
- const Y = n.type === "upload" && n.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === n.exclusionGroup, X = n.type === "variable" && n.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === n.exclusionGroup;
1366
+ const Y = n.type === "upload" && n.exclusionGroup === "fileInput" && e.exclusionGroup === "fileInput" && e.exclusionGroup === n.exclusionGroup, Q = n.type === "variable" && n.exclusionGroup === "textInput" && e.exclusionGroup === "textInput" && e.exclusionGroup === n.exclusionGroup;
1367
1367
  if (Y) {
1368
1368
  const V = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", l = `<span ${V} class="exclusion-wrapper required-upload-group">`, q = "</span>";
1369
1369
  let W = "";
1370
1370
  e.className ? W = `<span class="${e.className}">${e.text ?? ""}</span>` : W = e.text ?? "";
1371
1371
  const B = n, m = i[B.key] !== null && i[B.key] !== void 0, g = m ? i[B.key] : null, x = m ? i[B.key]?.name : B.text, _ = m ? "" : "hidden", T = B.tooltip && !m ? "" : "hidden", U = m ? "has-file" : "", K = m && x ? ` data-file-name="${x.replace(/"/g, "&quot;")}"` : "";
1372
- let Q = "";
1373
- m && g ? g.type?.startsWith("image/") ? Q = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(g)}" alt="preview" />` : Q = "<i class='iconfont icon-exlwenjian'></i>" : Q = "<i class='iconfont icon-shangchuan1'></i>";
1374
- const Z = (B.text || "").trim(), ue = m && Z.length >= 12 ? `<span ${V} contenteditable="false" class="exclusion-wrapper upload-hint">${Z}</span>` : "", pe = `<span contenteditable="false" data-type="upload" data-key="${B.key}" class="upload-chip"><span class="upload-inner-wrapper ${U}"><span class="upload-icon">${Q}</span><span class="upload-label"${K}>${x || B.text}</span>${B.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${T}" data-upload-key="${B.key}" data-tooltip="${B.tooltip}"></i>` : ""}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
1372
+ let J = "";
1373
+ m && g ? g.type?.startsWith("image/") ? J = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(g)}" alt="preview" />` : J = "<i class='iconfont icon-exlwenjian'></i>" : J = "<i class='iconfont icon-shangchuan1'></i>";
1374
+ const Z = (B.text || "").trim(), ue = m && Z.length >= 12 ? `<span ${V} contenteditable="false" class="exclusion-wrapper upload-hint">${Z}</span>` : "", pe = `<span contenteditable="false" data-type="upload" data-key="${B.key}" class="upload-chip"><span class="upload-inner-wrapper ${U}"><span class="upload-icon">${J}</span><span class="upload-label"${K}>${x || B.text}</span>${B.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${T}" data-upload-key="${B.key}" data-tooltip="${B.tooltip}"></i>` : ""}<span class="file-remove-btn ${_}" title="移除文件">×</span></span></span>`;
1375
1375
  E.push(l + W + pe + q + ue), A += 2;
1376
1376
  continue;
1377
1377
  }
1378
- if (X) {
1378
+ if (Q) {
1379
1379
  const l = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group">`, q = "</span>";
1380
1380
  let W = "";
1381
1381
  e.className ? W = `<span class="${e.className}">${e.text ?? ""}</span>` : W = e.text ?? "";
1382
- const B = n, g = (B.key ? b[B.key] : void 0) || B.text || "", x = !g, _ = x ? "​" : g, T = x ? "show-placeholder" : "", U = B.exclusionGroup ? ` data-group="${B.exclusionGroup}"` : "", K = B.tooltip ? ` data-tooltip="${B.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${B.key || ""}"` : "", Q = B.tooltip && x ? "" : "hidden", Z = `<span contenteditable="true" data-type="variable" data-key="${B.key}" data-placeholder="${B.placeholder || ""}"${U}${K} class="variable-chip ${T}">${_}${B.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${Q}" data-variable-key="${B.key}" data-tooltip="${B.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1382
+ const B = n, g = (B.key ? b[B.key] : void 0) || B.text || "", x = !g, _ = x ? "​" : g, T = x ? "show-placeholder" : "", U = B.exclusionGroup ? ` data-group="${B.exclusionGroup}"` : "", K = B.tooltip ? ` data-tooltip="${B.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${B.key || ""}"` : "", J = B.tooltip && x ? "" : "hidden", Z = `<span contenteditable="true" data-type="variable" data-key="${B.key}" data-placeholder="${B.placeholder || ""}"${U}${K} class="variable-chip ${T}">${_}${B.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${J}" data-variable-key="${B.key}" data-tooltip="${B.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1383
1383
  E.push(l + W + Z + q), A += 2;
1384
1384
  continue;
1385
1385
  }
@@ -1387,13 +1387,13 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1387
1387
  const k = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "", D = e.exclusionGroup ? `<span ${k} class="exclusion-wrapper">` : "", R = e.exclusionGroup ? "</span>" : "";
1388
1388
  let C = "";
1389
1389
  if (e.type === "tag") {
1390
- const X = u || M === "hideTagClose" ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', V = u ? ' data-locked="true"' : "", l = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1391
- C = `<span contenteditable="false" class="tag-node group"${V}${l}><span class="tag-label">${e.text}</span>${X}</span>`;
1390
+ const Q = u || M === "hideTagClose" ? "" : '<span class="tag-close-btn" title="Clear (ESC)"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6L6 18M6 6l12 12"/></svg></span>', V = u ? ' data-locked="true"' : "", l = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-tag-key="${e.key || ""}"` : "";
1391
+ C = `<span contenteditable="false" class="tag-node group"${V}${l}><span class="tag-label">${e.text}</span>${Q}</span>`;
1392
1392
  } else if (e.type === "text") {
1393
1393
  const Y = u ? ' data-locked="true" contenteditable="false"' : ' contenteditable="false"', V = (e.text ?? "").replace(/\n/g, "<br/>");
1394
1394
  e.className ? C = `<span data-type="text" class="${e.className}"${Y}>${V}</span>` : C = u ? `<span data-type="text"${Y}>${V}</span>` : `<span data-type="text" contenteditable="false">${V}</span>`;
1395
1395
  } else if (e.type === "variable" && e.key) {
1396
- const X = b[e.key] || e.text || "", V = !X, l = V ? "​" : X, q = V ? "show-placeholder" : "", W = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", B = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", m = e.tooltip && V ? "" : "hidden", g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${W}${B} class="variable-chip ${q}">${l}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${m}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1396
+ const Q = b[e.key] || e.text || "", V = !Q, l = V ? "​" : Q, q = V ? "show-placeholder" : "", W = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", B = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", m = e.tooltip && V ? "" : "hidden", g = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-placeholder="${e.placeholder || ""}"${W}${B} class="variable-chip ${q}">${l}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${m}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1397
1397
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${g}</span>` : C = g;
1398
1398
  } else if (e.type === "report-url" && e.key) {
1399
1399
  const Y = `${e.key}__url`, V = Object.prototype.hasOwnProperty.call(b, Y) ? b[Y] : void 0, l = b[e.key], q = V ?? l ?? e.text ?? "", W = !q, B = W ? "​" : q, m = W ? "show-placeholder" : "", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", x = e.tooltip ? ` data-tooltip="${ke(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", _ = e.tooltip && W ? "" : "hidden", T = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="report-url" data-placeholder="${ke(e.placeholder || "")}"${g}${x} class="variable-chip rte-report-url ${m}">${B}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${_}" data-variable-key="${e.key}" data-tooltip="${ke(e.tooltip)}" ></i>` : ""}</span>`;
@@ -1402,7 +1402,7 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1402
1402
  const Y = e.sourceTextKey || `${e.key}__sourceText`, V = Object.prototype.hasOwnProperty.call(b, Y) ? b[Y] : void 0, l = b[e.key], q = V ?? l ?? e.text ?? "", W = !q, B = W ? "​" : q, m = W ? "show-placeholder" : "", g = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", x = e.sourceTextKey ? ` data-source-text-key="${ke(e.sourceTextKey)}"` : "", _ = e.tooltip ? ` data-tooltip="${ke(e.tooltip)}" data-variable-key="${e.key || ""}"` : "", T = e.tooltip && W ? "" : "hidden", U = `<span contenteditable="true" data-type="variable" data-key="${e.key}" data-node-type="markdown" data-placeholder="${ke(e.placeholder || "")}"${g}${x}${_} class="variable-chip rte-markdown-input ${m}">${B}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${T}" data-variable-key="${e.key}" data-tooltip="${ke(e.tooltip)}" ></i>` : ""}</span>`;
1403
1403
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${U}</span>` : C = U;
1404
1404
  } else if (e.type === "upload" && e.key) {
1405
- const Y = !!n && n.type === "text" && !n.className && !n.exclusionGroup && N(n.text), X = Y ? (n.text ?? "").trim() : "", V = X ? F(X) : "";
1405
+ const Y = !!n && n.type === "text" && !n.className && !n.exclusionGroup && N(n.text), Q = Y ? (n.text ?? "").trim() : "", V = Q ? F(Q) : "";
1406
1406
  if (Y && (s = !0), typeof e.maxCount == "number" && typeof e.minCount == "number" && e.maxCount > 1) {
1407
1407
  const q = e.tooltip ? ` data-tooltip="${ke(e.tooltip)}"` : "", W = e.minCount || 1, B = e.maxCount || 3;
1408
1408
  let m = 0;
@@ -1416,10 +1416,10 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1416
1416
  );
1417
1417
  let x = "";
1418
1418
  for (let _ = 0; _ < g; _++) {
1419
- const T = `${e.key}-${_}`, U = i[T] !== null && i[T] !== void 0, K = U ? i[T] : null, Q = U ? i[T]?.name : e.text, Z = U ? "" : "hidden", le = e.tooltip && !U ? "" : "hidden", ue = U ? "has-file" : "", pe = U && Q ? ` data-file-name="${Q.replace(/"/g, "&quot;")}"` : "";
1419
+ const T = `${e.key}-${_}`, U = i[T] !== null && i[T] !== void 0, K = U ? i[T] : null, J = U ? i[T]?.name : e.text, Z = U ? "" : "hidden", le = e.tooltip && !U ? "" : "hidden", ue = U ? "has-file" : "", pe = U && J ? ` data-file-name="${J.replace(/"/g, "&quot;")}"` : "";
1420
1420
  let xe = "";
1421
1421
  U && K ? K.type?.startsWith("image/") ? xe = `<img class="upload-icon-img upload-icon-preview" src="${URL.createObjectURL(K)}" alt="preview" />` : xe = "<i class='iconfont icon-exlwenjian'></i>" : xe = "<i class='iconfont icon-shangchuan1'></i>";
1422
- const ne = ` data-batch-key="${e.key}"`, he = ` data-batch-index="${_}"`, be = `<span contenteditable="false" data-type="upload" data-key="${T}"${ne}${he}${q} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${ue}"><span class="upload-icon">${xe}</span><span class="upload-label"${pe}>${Q || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${le}" data-upload-key="${T}" data-tooltip="${ke(e.tooltip)}" ></i>` : ""}<span class="file-remove-btn ${Z}" title="移除文件">×</span></span></span>`;
1422
+ const ne = ` data-batch-key="${e.key}"`, he = ` data-batch-index="${_}"`, be = `<span contenteditable="false" data-type="upload" data-key="${T}"${ne}${he}${q} class="upload-chip upload-chip-batch"><span class="upload-inner-wrapper ${ue}"><span class="upload-icon">${xe}</span><span class="upload-label"${pe}>${J || e.text}</span>${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi upload-info-icon ${le}" data-upload-key="${T}" data-tooltip="${ke(e.tooltip)}" ></i>` : ""}<span class="file-remove-btn ${Z}" title="移除文件">×</span></span></span>`;
1423
1423
  x += be;
1424
1424
  }
1425
1425
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group rte-required-upload-batch"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span><span class="rte-upload-batch-chips">${x}${V}</span></span>` : C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-upload-batch-chips">${x}${V}</span>`;
@@ -1431,39 +1431,39 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1431
1431
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${le}${V}</span>${Z}` : C = le + V + Z;
1432
1432
  }
1433
1433
  } else if (e.type === "select" && e.key) {
1434
- const Y = b[e.key] || e.defaultValue || "", X = encodeURIComponent(JSON.stringify(e.options || [])), V = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", l = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", q = e.required ? ' data-required="true"' : "", W = `<div data-type="select" data-key="${e.key}" data-value="${Y}" data-options="${X}"${V}${l}${q} class="rte-select-host"></div>`;
1434
+ const Y = b[e.key] || e.defaultValue || "", Q = encodeURIComponent(JSON.stringify(e.options || [])), V = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", l = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", q = e.required ? ' data-required="true"' : "", W = `<div data-type="select" data-key="${e.key}" data-value="${Y}" data-options="${Q}"${V}${l}${q} class="rte-select-host"></div>`;
1435
1435
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${W}</span>` : C = W;
1436
1436
  } else if (e.type === "textarea" && e.key) {
1437
- const Y = b[e.key] || "", X = typeof e.maxHeight == "number" ? e.maxHeight : 252, V = e.placeholder ? ` placeholder="${e.placeholder}"` : "", l = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" style="max-height:${X}px;"${V}>${Y}</textarea>`, q = `<div class="rte-textarea-wrapper" data-key="${e.key}">${l}</div>`;
1437
+ const Y = b[e.key] || "", Q = typeof e.maxHeight == "number" ? e.maxHeight : 252, V = e.placeholder ? ` placeholder="${e.placeholder}"` : "", l = `<textarea data-type="textarea" data-key="${e.key}" class="rte-textarea" style="max-height:${Q}px;"${V}>${Y}</textarea>`, q = `<div class="rte-textarea-wrapper" data-key="${e.key}">${l}</div>`;
1438
1438
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${q}</span>` : C = q;
1439
1439
  } else if (e.type === "richtext" && e.key) {
1440
- const Y = b[e.key] || e.text || "", X = typeof e.minHeight == "number" ? e.minHeight : 40, V = typeof e.maxHeight == "number" ? e.maxHeight : 160, l = Math.max(V, X), q = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", W = e.expandable !== !1, B = Y, m = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${q} style="min-height:${X}px;max-height:${l}px;overflow:auto;">${B}</div>`, g = W ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", x = `<div class="rte-richtext-wrapper${W ? " rte-richtext-toggleable" : ""}" data-key="${e.key}">${m}${g}</div>`, _ = `<div class="rte-richtext-container" data-key="${e.key}">${x}</div>`;
1440
+ const Y = b[e.key] || e.text || "", Q = typeof e.minHeight == "number" ? e.minHeight : 40, V = typeof e.maxHeight == "number" ? e.maxHeight : 160, l = Math.max(V, Q), q = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", W = e.expandable !== !1, B = Y, m = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" class="rte-richtext"${q} style="min-height:${Q}px;max-height:${l}px;overflow:auto;">${B}</div>`, g = W ? `<button type="button" class="rte-richtext-toggle" data-key="${e.key}" data-expanded="false"><i class="iconfont icon-zhankai2"></i><span class="rte-richtext-toggle-label">展开</span></button>` : "", x = `<div class="rte-richtext-wrapper${W ? " rte-richtext-toggleable" : ""}" data-key="${e.key}">${m}${g}</div>`, _ = `<div class="rte-richtext-container" data-key="${e.key}">${x}</div>`;
1441
1441
  e.required ? C = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${_}</div>` : C = _;
1442
1442
  } else if (e.type === "report-module" && e.key) {
1443
- const Y = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, X = `${e.key}__module_${Y}`, l = Object.prototype.hasOwnProperty.call(b, X) ? b[X] : e.text || "", q = typeof e.minHeight == "number" ? e.minHeight : 80, W = typeof e.maxHeight == "number" ? e.maxHeight : 240, B = Math.max(W, q), m = e.placeholder ? ` data-placeholder="${ke(e.placeholder)}"` : "", g = l, x = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${Y}" class="rte-richtext rte-report-module"${m} style="min-height:${q}px;max-height:${B}px;overflow:auto;">${g}</div>`, _ = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${x}</div>`, T = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${_}</div>`;
1443
+ const Y = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, Q = `${e.key}__module_${Y}`, l = Object.prototype.hasOwnProperty.call(b, Q) ? b[Q] : e.text || "", q = typeof e.minHeight == "number" ? e.minHeight : 80, W = typeof e.maxHeight == "number" ? e.maxHeight : 240, B = Math.max(W, q), m = e.placeholder ? ` data-placeholder="${ke(e.placeholder)}"` : "", g = l, x = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="report-module" data-module-index="${Y}" class="rte-richtext rte-report-module"${m} style="min-height:${q}px;max-height:${B}px;overflow:auto;">${g}</div>`, _ = `<div class="rte-richtext-wrapper rte-report-module-wrapper" data-key="${e.key}">${x}</div>`, T = `<div class="rte-richtext-container rte-report-module-container" data-key="${e.key}">${_}</div>`;
1444
1444
  e.required ? C = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${T}</div>` : C = T;
1445
1445
  } else if (e.type === "markdown-module" && e.key) {
1446
- const Y = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, X = `${e.key}__module_${Y}`, l = Object.prototype.hasOwnProperty.call(b, X) ? b[X] : e.text || "", q = typeof e.minHeight == "number" ? e.minHeight : 80, W = typeof e.maxHeight == "number" ? e.maxHeight : 240, B = Math.max(W, q), m = e.placeholder ? ` data-placeholder="${ke(e.placeholder)}"` : "", g = l, x = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${Y}" class="rte-richtext rte-markdown-module"${m} style="min-height:${q}px;max-height:${B}px;overflow:auto;">${g}</div>`, _ = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${x}</div>`, T = `<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${_}</div>`;
1446
+ const Y = typeof e.moduleIndex == "number" ? e.moduleIndex : 0, Q = `${e.key}__module_${Y}`, l = Object.prototype.hasOwnProperty.call(b, Q) ? b[Q] : e.text || "", q = typeof e.minHeight == "number" ? e.minHeight : 80, W = typeof e.maxHeight == "number" ? e.maxHeight : 240, B = Math.max(W, q), m = e.placeholder ? ` data-placeholder="${ke(e.placeholder)}"` : "", g = l, x = `<div contenteditable="true" data-type="richtext" data-key="${e.key}" data-node-type="markdown-module" data-module-index="${Y}" class="rte-richtext rte-markdown-module"${m} style="min-height:${q}px;max-height:${B}px;overflow:auto;">${g}</div>`, _ = `<div class="rte-richtext-wrapper rte-markdown-module-wrapper" data-key="${e.key}">${x}</div>`, T = `<div class="rte-richtext-container rte-markdown-module-container" data-key="${e.key}">${_}</div>`;
1447
1447
  e.required ? C = `<div ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper rte-richtext-required">${T}</div>` : C = T;
1448
1448
  } else if (e.type === "datepicker" && e.key) {
1449
- const Y = b[e.key] || "", X = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", V = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", l = e.disableFuture ? ' data-disable-future="true"' : "", q = `<div data-type="datepicker" data-key="${e.key}" data-value="${Y}" class="rte-datepicker-host"${X}${V}${l}></div>`;
1449
+ const Y = b[e.key] || "", Q = e.placeholder ? ` data-placeholder="${e.placeholder}"` : "", V = e.limitRange ? ` data-limit-range="${e.limitRange}"` : "", l = e.disableFuture ? ' data-disable-future="true"' : "", q = `<div data-type="datepicker" data-key="${e.key}" data-value="${Y}" class="rte-datepicker-host"${Q}${V}${l}></div>`;
1450
1450
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${q}</span>` : C = q;
1451
1451
  } else if (e.type === "number-input" && e.key) {
1452
- const Y = b[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), X = typeof e.min == "number" ? ` min="${e.min}"` : "", V = typeof e.max == "number" ? ` max="${e.max}"` : "", l = e.placeholder ? ` placeholder="${e.placeholder}"` : "", q = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", W = ' step="1"', B = Y || e.placeholder || "";
1452
+ const Y = b[e.key] || (typeof e.defaultNumber == "number" ? String(e.defaultNumber) : ""), Q = typeof e.min == "number" ? ` min="${e.min}"` : "", V = typeof e.max == "number" ? ` max="${e.max}"` : "", l = e.placeholder ? ` placeholder="${e.placeholder}"` : "", q = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", W = ' step="1"', B = Y || e.placeholder || "";
1453
1453
  let m = 0;
1454
1454
  for (let _ = 0; _ < B.length; _++) {
1455
1455
  const T = B.charCodeAt(_);
1456
1456
  T > 19968 || T >= 65280 && T <= 65519 ? m += 16 : m += 8;
1457
1457
  }
1458
- const g = Math.max(44, Math.min(600, m + 28)), x = `<input type="number" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${Y}" style="width: ${g}px;"${X}${V}${W}${l}${q} />`;
1458
+ const g = Math.max(44, Math.min(600, m + 28)), x = `<input type="number" data-type="number-input" data-key="${e.key}" class="rte-number-input" value="${Y}" style="width: ${g}px;"${Q}${V}${W}${l}${q} />`;
1459
1459
  e.required ? C = `<span ${e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : ""} class="exclusion-wrapper required-upload-group"><span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>${x}</span>` : C = x;
1460
1460
  } else if (e.type === "multi-variable" && e.key) {
1461
- const Y = e.maxCount || 9, X = I[e.key] || 1, V = Math.min(X, Y);
1461
+ const Y = e.maxCount || 9, Q = I[e.key] || 1, V = Math.min(Q, Y);
1462
1462
  if (e.required) {
1463
1463
  const l = `<span class="rte-text-required"><i class='iconfont icon-bitian' style='font-size: 10px;'></i></span>`, q = e.exclusionGroup ? `data-group="${e.exclusionGroup}"` : "";
1464
1464
  let W = "";
1465
1465
  for (let B = 0; B < V; B++) {
1466
- const m = `${e.key}_${B}`, g = b[m] || "", x = !g, _ = x ? "​" : g, T = x ? "show-placeholder" : "", U = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", K = e.tooltip && x ? "" : "hidden", Q = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", Z = `<span contenteditable="true" data-type="variable" data-key="${m}" data-multi-key="${e.key}" data-index="${B}" data-placeholder="${e.placeholder || ""}"${Q}${U} class="variable-chip ${T}">${_}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${K}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1466
+ const m = `${e.key}_${B}`, g = b[m] || "", x = !g, _ = x ? "​" : g, T = x ? "show-placeholder" : "", U = e.tooltip ? ` data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" data-variable-key="${e.key || ""}"` : "", K = e.tooltip && x ? "" : "hidden", J = e.exclusionGroup ? ` data-group="${e.exclusionGroup}"` : "", Z = `<span contenteditable="true" data-type="variable" data-key="${m}" data-multi-key="${e.key}" data-index="${B}" data-placeholder="${e.placeholder || ""}"${J}${U} class="variable-chip ${T}">${_}${e.tooltip ? `<i contenteditable="false" style="font-weight: 100;" class="iconfont icon-tishi variable-info-icon ${K}" data-variable-key="${e.key}" data-tooltip="${e.tooltip.replace(/"/g, "&quot;")}" ></i>` : ""}</span>`;
1467
1467
  B === 0 ? W += `<span ${q} class="exclusion-wrapper required-upload-group required-multi-first">${l}${Z}</span>` : W += Z;
1468
1468
  }
1469
1469
  C = W;
@@ -1479,14 +1479,14 @@ function Rn(t, p, i, u, b, I = {}, M, P) {
1479
1479
  const te = D + C + R;
1480
1480
  if (e.type === "text" && !e.className && !e.exclusionGroup) {
1481
1481
  if (N(e.text) && E.length > 0) {
1482
- const X = E[E.length - 1], V = (e.text ?? "").trim();
1483
- E[E.length - 1] = `<span class="rte-inline-group">${X}${F(V)}</span>`, A++;
1482
+ const Q = E[E.length - 1], V = (e.text ?? "").trim();
1483
+ E[E.length - 1] = `<span class="rte-inline-group">${Q}${F(V)}</span>`, A++;
1484
1484
  continue;
1485
1485
  }
1486
1486
  const Y = S(e.text);
1487
1487
  if (Y && E.length > 0) {
1488
- const X = E[E.length - 1];
1489
- E[E.length - 1] = `<span class="rte-inline-group">${X}${F(Y.punct)}</span>`;
1488
+ const Q = E[E.length - 1];
1489
+ E[E.length - 1] = `<span class="rte-inline-group">${Q}${F(Y.punct)}</span>`;
1490
1490
  const V = Y.rest;
1491
1491
  if (V) {
1492
1492
  const l = V.replace(/\n/g, "<br/>");
@@ -1823,8 +1823,8 @@ function Wn(t, p) {
1823
1823
  }
1824
1824
  if (te || Y)
1825
1825
  return;
1826
- let X = null;
1827
- if (C.nodeType === Node.ELEMENT_NODE ? X = C.closest('[data-type="variable"]') : C.nodeType === Node.TEXT_NODE && C.parentElement && (X = C.parentElement.closest('[data-type="variable"]')), !X) {
1826
+ let Q = null;
1827
+ if (C.nodeType === Node.ELEMENT_NODE ? Q = C.closest('[data-type="variable"]') : C.nodeType === Node.TEXT_NODE && C.parentElement && (Q = C.parentElement.closest('[data-type="variable"]')), !Q) {
1828
1828
  if (Date.now() - I > 500)
1829
1829
  return;
1830
1830
  const V = t.current.querySelectorAll('[data-type="variable"]');
@@ -1880,7 +1880,7 @@ function Vt() {
1880
1880
  return m === void 0;
1881
1881
  } }, C = "en", te = {};
1882
1882
  te[C] = k;
1883
- var Y = "$isDayjsObject", X = function(m) {
1883
+ var Y = "$isDayjsObject", Q = function(m) {
1884
1884
  return m instanceof W || !(!m || !m[Y]);
1885
1885
  }, V = function m(g, x, _) {
1886
1886
  var T;
@@ -1891,16 +1891,16 @@ function Vt() {
1891
1891
  var K = g.split("-");
1892
1892
  if (!T && K.length > 1) return m(K[0]);
1893
1893
  } else {
1894
- var Q = g.name;
1895
- te[Q] = g, T = Q;
1894
+ var J = g.name;
1895
+ te[J] = g, T = J;
1896
1896
  }
1897
1897
  return !_ && T && (C = T), T || !_ && C;
1898
1898
  }, l = function(m, g) {
1899
- if (X(m)) return m.clone();
1899
+ if (Q(m)) return m.clone();
1900
1900
  var x = typeof g == "object" ? g : {};
1901
1901
  return x.date = m, x.args = arguments, new W(x);
1902
1902
  }, q = R;
1903
- q.l = V, q.i = X, q.w = function(m, g) {
1903
+ q.l = V, q.i = Q, q.w = function(m, g) {
1904
1904
  return l(m, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
1905
1905
  };
1906
1906
  var W = function() {
@@ -1917,8 +1917,8 @@ function Vt() {
1917
1917
  if (typeof T == "string" && !/Z$/i.test(T)) {
1918
1918
  var K = T.match(s);
1919
1919
  if (K) {
1920
- var Q = K[2] - 1 || 0, Z = (K[7] || "0").substring(0, 3);
1921
- return U ? new Date(Date.UTC(K[1], Q, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Z)) : new Date(K[1], Q, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Z);
1920
+ var J = K[2] - 1 || 0, Z = (K[7] || "0").substring(0, 3);
1921
+ return U ? new Date(Date.UTC(K[1], J, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Z)) : new Date(K[1], J, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Z);
1922
1922
  }
1923
1923
  }
1924
1924
  return new Date(T);
@@ -1944,7 +1944,7 @@ function Vt() {
1944
1944
  }, g.valueOf = function() {
1945
1945
  return this.$d.getTime();
1946
1946
  }, g.startOf = function(x, _) {
1947
- var T = this, U = !!q.u(_) || _, K = q.p(x), Q = function(be, ve) {
1947
+ var T = this, U = !!q.u(_) || _, K = q.p(x), J = function(be, ve) {
1948
1948
  var Ee = q.w(T.$u ? Date.UTC(T.$y, ve, be) : new Date(T.$y, ve, be), T);
1949
1949
  return U ? Ee : Ee.endOf(N);
1950
1950
  }, Z = function(be, ve) {
@@ -1952,12 +1952,12 @@ function Vt() {
1952
1952
  }, le = this.$W, ue = this.$M, pe = this.$D, xe = "set" + (this.$u ? "UTC" : "");
1953
1953
  switch (K) {
1954
1954
  case A:
1955
- return U ? Q(1, 0) : Q(31, 11);
1955
+ return U ? J(1, 0) : J(31, 11);
1956
1956
  case F:
1957
- return U ? Q(1, ue) : Q(0, ue + 1);
1957
+ return U ? J(1, ue) : J(0, ue + 1);
1958
1958
  case S:
1959
1959
  var ne = this.$locale().weekStart || 0, he = (le < ne ? le + 7 : le) - ne;
1960
- return Q(U ? pe - he : pe + (6 - he), ue);
1960
+ return J(U ? pe - he : pe + (6 - he), ue);
1961
1961
  case N:
1962
1962
  case e:
1963
1963
  return Z(xe + "Hours", 0);
@@ -1973,11 +1973,11 @@ function Vt() {
1973
1973
  }, g.endOf = function(x) {
1974
1974
  return this.startOf(x, !1);
1975
1975
  }, g.$set = function(x, _) {
1976
- var T, U = q.p(x), K = "set" + (this.$u ? "UTC" : ""), Q = (T = {}, T[N] = K + "Date", T[e] = K + "Date", T[F] = K + "Month", T[A] = K + "FullYear", T[L] = K + "Hours", T[P] = K + "Minutes", T[M] = K + "Seconds", T[I] = K + "Milliseconds", T)[U], Z = U === N ? this.$D + (_ - this.$W) : _;
1976
+ var T, U = q.p(x), K = "set" + (this.$u ? "UTC" : ""), J = (T = {}, T[N] = K + "Date", T[e] = K + "Date", T[F] = K + "Month", T[A] = K + "FullYear", T[L] = K + "Hours", T[P] = K + "Minutes", T[M] = K + "Seconds", T[I] = K + "Milliseconds", T)[U], Z = U === N ? this.$D + (_ - this.$W) : _;
1977
1977
  if (U === F || U === A) {
1978
1978
  var le = this.clone().set(e, 1);
1979
- le.$d[Q](Z), le.init(), this.$d = le.set(e, Math.min(this.$D, le.daysInMonth())).$d;
1980
- } else Q && this.$d[Q](Z);
1979
+ le.$d[J](Z), le.init(), this.$d = le.set(e, Math.min(this.$D, le.daysInMonth())).$d;
1980
+ } else J && this.$d[J](Z);
1981
1981
  return this.init(), this;
1982
1982
  }, g.set = function(x, _) {
1983
1983
  return this.clone().$set(x, _);
@@ -1986,14 +1986,14 @@ function Vt() {
1986
1986
  }, g.add = function(x, _) {
1987
1987
  var T, U = this;
1988
1988
  x = Number(x);
1989
- var K = q.p(_), Q = function(ue) {
1989
+ var K = q.p(_), J = function(ue) {
1990
1990
  var pe = l(U);
1991
1991
  return q.w(pe.date(pe.date() + Math.round(ue * x)), U);
1992
1992
  };
1993
1993
  if (K === F) return this.set(F, this.$M + x);
1994
1994
  if (K === A) return this.set(A, this.$y + x);
1995
- if (K === N) return Q(1);
1996
- if (K === S) return Q(7);
1995
+ if (K === N) return J(1);
1996
+ if (K === S) return J(7);
1997
1997
  var Z = (T = {}, T[P] = u, T[L] = b, T[M] = i, T)[K] || 1, le = this.$d.getTime() + x * Z;
1998
1998
  return q.w(le, this);
1999
1999
  }, g.subtract = function(x, _) {
@@ -2001,10 +2001,10 @@ function Vt() {
2001
2001
  }, g.format = function(x) {
2002
2002
  var _ = this, T = this.$locale();
2003
2003
  if (!this.isValid()) return T.invalidDate || n;
2004
- var U = x || "YYYY-MM-DDTHH:mm:ssZ", K = q.z(this), Q = this.$H, Z = this.$m, le = this.$M, ue = T.weekdays, pe = T.months, xe = T.meridiem, ne = function(ve, Ee, qe, De) {
2004
+ var U = x || "YYYY-MM-DDTHH:mm:ssZ", K = q.z(this), J = this.$H, Z = this.$m, le = this.$M, ue = T.weekdays, pe = T.months, xe = T.meridiem, ne = function(ve, Ee, qe, De) {
2005
2005
  return ve && (ve[Ee] || ve(_, U)) || qe[Ee].slice(0, De);
2006
2006
  }, he = function(ve) {
2007
- return q.s(Q % 12 || 12, ve, "0");
2007
+ return q.s(J % 12 || 12, ve, "0");
2008
2008
  }, be = xe || function(ve, Ee, qe) {
2009
2009
  var De = ve < 12 ? "AM" : "PM";
2010
2010
  return qe ? De.toLowerCase() : De;
@@ -2037,17 +2037,17 @@ function Vt() {
2037
2037
  case "dddd":
2038
2038
  return ue[_.$W];
2039
2039
  case "H":
2040
- return String(Q);
2040
+ return String(J);
2041
2041
  case "HH":
2042
- return q.s(Q, 2, "0");
2042
+ return q.s(J, 2, "0");
2043
2043
  case "h":
2044
2044
  return he(1);
2045
2045
  case "hh":
2046
2046
  return he(2);
2047
2047
  case "a":
2048
- return be(Q, Z, !0);
2048
+ return be(J, Z, !0);
2049
2049
  case "A":
2050
- return be(Q, Z, !1);
2050
+ return be(J, Z, !1);
2051
2051
  case "m":
2052
2052
  return String(Z);
2053
2053
  case "mm":
@@ -2067,10 +2067,10 @@ function Vt() {
2067
2067
  }, g.utcOffset = function() {
2068
2068
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2069
2069
  }, g.diff = function(x, _, T) {
2070
- var U, K = this, Q = q.p(_), Z = l(x), le = (Z.utcOffset() - this.utcOffset()) * u, ue = this - Z, pe = function() {
2070
+ var U, K = this, J = q.p(_), Z = l(x), le = (Z.utcOffset() - this.utcOffset()) * u, ue = this - Z, pe = function() {
2071
2071
  return q.m(K, Z);
2072
2072
  };
2073
- switch (Q) {
2073
+ switch (J) {
2074
2074
  case A:
2075
2075
  U = pe() / 12;
2076
2076
  break;
@@ -2125,7 +2125,7 @@ function Vt() {
2125
2125
  };
2126
2126
  }), l.extend = function(m, g) {
2127
2127
  return m.$i || (m(g, W, l), m.$i = !0), l;
2128
- }, l.locale = V, l.isDayjs = X, l.unix = function(m) {
2128
+ }, l.locale = V, l.isDayjs = Q, l.unix = function(m) {
2129
2129
  return l(1e3 * m);
2130
2130
  }, l.en = te[C], l.Ls = te, l.p = {}, l;
2131
2131
  });
@@ -2374,12 +2374,12 @@ ${(t || "").replace(/\r\n/g, `
2374
2374
  onCollapsedChange: D,
2375
2375
  collapseTransitionMs: R = 260
2376
2376
  }) => {
2377
- const [C, te] = pn.useMessage(), Y = re(null), X = re(null), V = re(null), l = re(null), q = re(null), W = re("");
2377
+ const [C, te] = pn.useMessage(), Y = re(null), Q = re(null), V = re(null), l = re(null), q = re(null), W = re("");
2378
2378
  if (!W.current) {
2379
2379
  const r = Math.random().toString(36).slice(2, 8);
2380
2380
  W.current = `rte_${r}`;
2381
2381
  }
2382
- const [B, m] = ae({}), [g, x] = ae(null), [_, T] = ae(null), [U, K] = ae(null), [Q, Z] = ae(null), le = re(!1), ue = re(null), [pe, xe] = ae(!1), ne = re(null), [he, be] = ae(!0), ve = re(0), [Ee, qe] = ae(58), [De, Gt] = ae(58), [zt, et] = ae(!1), [Ge, Be] = ae({}), tt = re(() => {
2382
+ const [B, m] = ae({}), [g, x] = ae(null), [_, T] = ae(null), [U, K] = ae(null), [J, Z] = ae(null), le = re(!1), ue = re(null), [pe, xe] = ae(!1), ne = re(null), [he, be] = ae(!0), ve = re(0), [Ee, qe] = ae(58), [De, Gt] = ae(58), [zt, et] = ae(!1), [Ge, Be] = ae({}), tt = re(() => {
2383
2383
  }), [Ce, Te] = ae({}), ze = re(() => {
2384
2384
  }), wt = re({}), nt = re(Ce);
2385
2385
  ie(() => {
@@ -2691,13 +2691,13 @@ ${(t || "").replace(/\r\n/g, `
2691
2691
  const O = ot(w), h = Date.now() - d, j = Math.max(0, v - h);
2692
2692
  setTimeout(() => {
2693
2693
  if (l.current) {
2694
- const J = Re();
2694
+ const X = Re();
2695
2695
  O.forEach((z, ee) => {
2696
- J[`${r}__module_${ee}`] = z.content;
2697
- }), l.current.__tempVariableValues = J;
2696
+ X[`${r}__module_${ee}`] = z.content;
2697
+ }), l.current.__tempVariableValues = X;
2698
2698
  }
2699
- Te((J) => ({
2700
- ...J,
2699
+ Te((X) => ({
2700
+ ...X,
2701
2701
  [r]: { status: "success", error: void 0, lastParsedText: o, modules: O }
2702
2702
  }));
2703
2703
  }, j);
@@ -2749,8 +2749,8 @@ ${(t || "").replace(/\r\n/g, `
2749
2749
  }, [we]), Ie(() => {
2750
2750
  if (!l.current) return;
2751
2751
  const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = ($) => {
2752
- const w = $.value || $.placeholder || "", O = window.getComputedStyle($), h = Number.parseFloat(O.paddingLeft) || 0, j = Number.parseFloat(O.paddingRight) || 0, J = document.createElement("span");
2753
- J.style.cssText = `
2752
+ const w = $.value || $.placeholder || "", O = window.getComputedStyle($), h = Number.parseFloat(O.paddingLeft) || 0, j = Number.parseFloat(O.paddingRight) || 0, X = document.createElement("span");
2753
+ X.style.cssText = `
2754
2754
  position: absolute;
2755
2755
  visibility: hidden;
2756
2756
  white-space: nowrap;
@@ -2760,9 +2760,9 @@ ${(t || "").replace(/\r\n/g, `
2760
2760
  letter-spacing: ${O.letterSpacing || "normal"};
2761
2761
  padding-left: ${h}px;
2762
2762
  padding-right: ${j}px;
2763
- `, J.textContent = w || "0", document.body.appendChild(J);
2764
- const z = Math.max(44, Math.min(600, J.offsetWidth + 8));
2765
- return document.body.removeChild(J), z;
2763
+ `, X.textContent = w || "0", document.body.appendChild(X);
2764
+ const z = Math.max(44, Math.min(600, X.offsetWidth + 8));
2765
+ return document.body.removeChild(X), z;
2766
2766
  }, f = ($) => {
2767
2767
  const w = $.target;
2768
2768
  if (!w) return;
@@ -2772,7 +2772,7 @@ ${(t || "").replace(/\r\n/g, `
2772
2772
  if (Number.isNaN(h))
2773
2773
  w.value = "";
2774
2774
  else {
2775
- const j = w.getAttribute("min"), J = w.getAttribute("max"), z = j !== null ? parseInt(j, 10) : 0, ee = J !== null ? parseInt(J, 10) : 1 / 0, oe = Math.min(Math.max(h, z), ee);
2775
+ const j = w.getAttribute("min"), X = w.getAttribute("max"), z = j !== null ? parseInt(j, 10) : 0, ee = X !== null ? parseInt(X, 10) : 1 / 0, oe = Math.min(Math.max(h, z), ee);
2776
2776
  w.value = String(oe);
2777
2777
  }
2778
2778
  } else if (O === "0") {
@@ -2831,7 +2831,7 @@ ${(t || "").replace(/\r\n/g, `
2831
2831
  }, []);
2832
2832
  Ie(() => {
2833
2833
  if (!s) return;
2834
- const r = X.current, a = l.current;
2834
+ const r = Q.current, a = l.current;
2835
2835
  if (!(!r || !a))
2836
2836
  try {
2837
2837
  const o = window.getComputedStyle(a), f = Number.parseFloat(o.paddingTop) || 0, y = Number.parseFloat(o.lineHeight) || 34, v = Math.max(0, Math.ceil(f + y)), d = a.getBoundingClientRect(), H = document.createRange();
@@ -2839,13 +2839,13 @@ ${(t || "").replace(/\r\n/g, `
2839
2839
  const $ = Array.from(H.getClientRects());
2840
2840
  let w = v > 0 ? v : 58;
2841
2841
  if ($.length > 0) {
2842
- const O = Math.min(...$.map((J) => J.top)), h = 2;
2842
+ const O = Math.min(...$.map((X) => X.top)), h = 2;
2843
2843
  let j = 0;
2844
- for (const J of $)
2845
- Math.abs(J.top - O) <= h && (j = Math.max(j, J.bottom));
2844
+ for (const X of $)
2845
+ Math.abs(X.top - O) <= h && (j = Math.max(j, X.bottom));
2846
2846
  if (j > 0) {
2847
- const J = Math.max(0, Math.ceil(j - d.top));
2848
- w = v > 0 ? Math.max(J, v) : J;
2847
+ const X = Math.max(0, Math.ceil(j - d.top));
2848
+ w = v > 0 ? Math.max(X, v) : X;
2849
2849
  }
2850
2850
  } else
2851
2851
  w = v > 0 ? v : 58;
@@ -2857,7 +2857,7 @@ ${(t || "").replace(/\r\n/g, `
2857
2857
  const je = re({ ts: 0, contentScrollTop: 0, bodyScrollTop: 0, editorScrollTop: 0 });
2858
2858
  ie(() => {
2859
2859
  if (s) return;
2860
- const r = X.current, a = V.current, o = l.current;
2860
+ const r = Q.current, a = V.current, o = l.current;
2861
2861
  if (!r) return;
2862
2862
  const f = () => {
2863
2863
  je.current = {
@@ -2880,7 +2880,7 @@ ${(t || "").replace(/\r\n/g, `
2880
2880
  if (typeof window > "u") return;
2881
2881
  const r = W.current, a = window;
2882
2882
  return a.__rteDebug = a.__rteDebug || {}, a.__rteDebug[r] = {
2883
- contentEl: X.current,
2883
+ contentEl: Q.current,
2884
2884
  contentBodyEl: V.current,
2885
2885
  editorEl: l.current
2886
2886
  }, () => {
@@ -2888,7 +2888,7 @@ ${(t || "").replace(/\r\n/g, `
2888
2888
  };
2889
2889
  }, []), Ie(() => {
2890
2890
  if (!s) return;
2891
- const r = X.current, a = V.current, o = l.current;
2891
+ const r = Q.current, a = V.current, o = l.current;
2892
2892
  if (!r) return;
2893
2893
  const f = () => ({
2894
2894
  content: {
@@ -2942,11 +2942,11 @@ ${(t || "").replace(/\r\n/g, `
2942
2942
  y(), z - O < d && (h = window.requestAnimationFrame(j));
2943
2943
  };
2944
2944
  h = window.requestAnimationFrame(j);
2945
- const J = window.setTimeout(() => {
2945
+ const X = window.setTimeout(() => {
2946
2946
  y(), console.log(`[RTE collapse debug][${W.current}] lock end (after timeout)`, f());
2947
2947
  }, d);
2948
2948
  return () => {
2949
- r.removeEventListener("wheel", H), r.removeEventListener("touchmove", H), r.removeEventListener("scroll", $), a && (a.removeEventListener("wheel", H), a.removeEventListener("touchmove", H), a.removeEventListener("scroll", w)), window.cancelAnimationFrame(h), window.clearTimeout(J), console.log(`[RTE collapse debug][${W.current}] lock cleanup`, f());
2949
+ r.removeEventListener("wheel", H), r.removeEventListener("touchmove", H), r.removeEventListener("scroll", $), a && (a.removeEventListener("wheel", H), a.removeEventListener("touchmove", H), a.removeEventListener("scroll", w)), window.cancelAnimationFrame(h), window.clearTimeout(X), console.log(`[RTE collapse debug][${W.current}] lock cleanup`, f());
2950
2950
  };
2951
2951
  }, [s, R]), ie(() => {
2952
2952
  if (s) return;
@@ -3017,13 +3017,13 @@ ${(t || "").replace(/\r\n/g, `
3017
3017
  if ($) {
3018
3018
  const w = /[、,,\s\n\r\t]+/, O = a.split(w).map((h) => h.trim()).filter((h) => h.length > 0);
3019
3019
  if (O.length > 1) {
3020
- const h = parseInt(H.dataset.index || "0", 10), j = t.find((ge) => ge.type === "multi-variable" && ge.key === $)?.maxCount || 9, J = Se[$] || 1, z = Math.min(h + O.length, j);
3021
- z > J && Ne((me) => ({
3020
+ const h = parseInt(H.dataset.index || "0", 10), j = t.find((ge) => ge.type === "multi-variable" && ge.key === $)?.maxCount || 9, X = Se[$] || 1, z = Math.min(h + O.length, j);
3021
+ z > X && Ne((me) => ({
3022
3022
  ...me,
3023
3023
  [$]: z
3024
3024
  }));
3025
3025
  const ee = [];
3026
- for (let me = 0; me < J; me++) {
3026
+ for (let me = 0; me < X; me++) {
3027
3027
  const ge = `${$}_${me}`, Ae = l.current.querySelector(
3028
3028
  `[data-type="variable"][data-key="${ge}"][data-multi-key="${$}"]`
3029
3029
  );
@@ -3105,12 +3105,12 @@ ${(t || "").replace(/\r\n/g, `
3105
3105
  const w = v.maxCount, O = typeof U == "number" ? U : 0;
3106
3106
  m((h) => {
3107
3107
  const j = { ...h };
3108
- let J = Math.min(Math.max(O, 0), w - 1);
3108
+ let X = Math.min(Math.max(O, 0), w - 1);
3109
3109
  for (const z of H) {
3110
- for (; J < w && j[`${y}-${J}`] != null; )
3111
- J += 1;
3112
- if (J >= w) break;
3113
- j[`${y}-${J}`] = z, J += 1;
3110
+ for (; X < w && j[`${y}-${X}`] != null; )
3111
+ X += 1;
3112
+ if (X >= w) break;
3113
+ j[`${y}-${X}`] = z, X += 1;
3114
3114
  }
3115
3115
  return j;
3116
3116
  });
@@ -3255,22 +3255,22 @@ ${(t || "").replace(/\r\n/g, `
3255
3255
  const w = a.closest(".file-remove-btn");
3256
3256
  if (w) {
3257
3257
  r.preventDefault(), r.stopPropagation();
3258
- const h = w.closest('[data-type="upload"]'), j = h?.dataset.key, J = h?.dataset.batchKey;
3258
+ const h = w.closest('[data-type="upload"]'), j = h?.dataset.key, X = h?.dataset.batchKey;
3259
3259
  if (j)
3260
- if (J) {
3261
- const z = t.find((ee) => ee.type === "upload" && ee.key === J);
3260
+ if (X) {
3261
+ const z = t.find((ee) => ee.type === "upload" && ee.key === X);
3262
3262
  if (z && typeof z.maxCount == "number" && typeof z.minCount == "number") {
3263
3263
  const ee = z.maxCount;
3264
3264
  m((oe) => {
3265
3265
  const de = { ...oe }, fe = [];
3266
3266
  for (let ye = 0; ye < ee; ye++) {
3267
- const me = `${J}-${ye}`, ge = de[me];
3267
+ const me = `${X}-${ye}`, ge = de[me];
3268
3268
  ge != null && me !== j && fe.push(ge);
3269
3269
  }
3270
3270
  for (let ye = 0; ye < ee; ye++)
3271
- delete de[`${J}-${ye}`];
3271
+ delete de[`${X}-${ye}`];
3272
3272
  return fe.forEach((ye, me) => {
3273
- de[`${J}-${me}`] = ye;
3273
+ de[`${X}-${me}`] = ye;
3274
3274
  }), de;
3275
3275
  });
3276
3276
  } else
@@ -3281,13 +3281,13 @@ ${(t || "").replace(/\r\n/g, `
3281
3281
  }
3282
3282
  const O = a.closest('[data-type="upload"]');
3283
3283
  if (O) {
3284
- const h = O.dataset.key, j = O.dataset.batchKey, J = O.dataset.batchIndex;
3284
+ const h = O.dataset.key, j = O.dataset.batchKey, X = O.dataset.batchIndex;
3285
3285
  if (h) {
3286
3286
  const z = j || h, ee = t.find((oe) => oe.type === "upload" && oe.key === z);
3287
3287
  if (q.current && (ee?.accept ? q.current.accept = ee.accept : ee?.acceptType === "image" ? q.current.accept = "image/*" : ee?.acceptType === "file" ? q.current.accept = ".csv,.xlsx,.xls,.txt,.pdf,.doc,.docx,.json" : q.current.accept = ""), j) {
3288
3288
  const oe = t.find((de) => de.type === "upload" && de.key === j);
3289
3289
  if (oe && typeof oe.maxCount == "number" && typeof oe.minCount == "number") {
3290
- const de = oe.maxCount, fe = B[h] != null, ye = J != null ? Number.parseInt(J, 10) : NaN;
3290
+ const de = oe.maxCount, fe = B[h] != null, ye = X != null ? Number.parseInt(X, 10) : NaN;
3291
3291
  if (fe) {
3292
3292
  q.current && (q.current.multiple = !1), T(null), K(null), x(h), q.current?.click();
3293
3293
  return;
@@ -3445,9 +3445,9 @@ ${(t || "").replace(/\r\n/g, `
3445
3445
  `[data-type="variable"][data-key="${O}"][data-multi-key="${a.key}"]`
3446
3446
  );
3447
3447
  if (h && h.innerText.replace(/[\u200B\n]/g, "").trim().length > 0 && f < o) {
3448
- const J = window.getSelection();
3449
- if (J && J.rangeCount > 0) {
3450
- const z = J.getRangeAt(0), ee = z.startContainer, oe = ee.nodeType === Node.ELEMENT_NODE ? ee.closest('[data-type="variable"][data-multi-key]') : ee.parentElement?.closest('[data-type="variable"][data-multi-key]');
3448
+ const X = window.getSelection();
3449
+ if (X && X.rangeCount > 0) {
3450
+ const z = X.getRangeAt(0), ee = z.startContainer, oe = ee.nodeType === Node.ELEMENT_NODE ? ee.closest('[data-type="variable"][data-multi-key]') : ee.parentElement?.closest('[data-type="variable"][data-multi-key]');
3451
3451
  if (oe) {
3452
3452
  const de = oe.dataset.key;
3453
3453
  if (de) {
@@ -3503,8 +3503,8 @@ ${(t || "").replace(/\r\n/g, `
3503
3503
  (ye === w || ye.contains($)) && (O = !0);
3504
3504
  }), !O)
3505
3505
  return;
3506
- const h = w.dataset.multiKey, j = w.dataset.key, J = w.dataset.index;
3507
- if (!h || !j || J === void 0) return;
3506
+ const h = w.dataset.multiKey, j = w.dataset.key, X = w.dataset.index;
3507
+ if (!h || !j || X === void 0) return;
3508
3508
  const z = H.relatedTarget;
3509
3509
  if (!(!z || !l.current.contains(z)))
3510
3510
  return;
@@ -3514,7 +3514,7 @@ ${(t || "").replace(/\r\n/g, `
3514
3514
  if (me.length > 1) {
3515
3515
  const ge = t.find((Ae) => Ae.type === "multi-variable" && Ae.key === h);
3516
3516
  if (ge) {
3517
- const Ae = Se[h] || 1, Pe = parseInt(J, 10), qt = ge.maxCount || 9, ut = [];
3517
+ const Ae = Se[h] || 1, Pe = parseInt(X, 10), qt = ge.maxCount || 9, ut = [];
3518
3518
  for (let $e = 0; $e < Ae; $e++) {
3519
3519
  const He = `${h}_${$e}`, We = l.current.querySelector(
3520
3520
  `[data-type="variable"][data-key="${He}"][data-multi-key="${h}"]`
@@ -3666,8 +3666,8 @@ ${(t || "").replace(/\r\n/g, `
3666
3666
  NodeFilter.SHOW_TEXT,
3667
3667
  {
3668
3668
  acceptNode: (j) => {
3669
- const J = d.querySelector(".variable-info-icon");
3670
- return J && J.contains(j) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
3669
+ const X = d.querySelector(".variable-info-icon");
3670
+ return X && X.contains(j) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
3671
3671
  }
3672
3672
  }
3673
3673
  );
@@ -3678,24 +3678,24 @@ ${(t || "").replace(/\r\n/g, `
3678
3678
  const j = d.dataset.multiKey;
3679
3679
  if (j) {
3680
3680
  (!o[j] || !Array.isArray(o[j])) && (o[j] = []);
3681
- const J = o[j];
3682
- J.push(h), J.length > 1 && (a += " "), a += h;
3681
+ const X = o[j];
3682
+ X.push(h), X.length > 1 && (a += " "), a += h;
3683
3683
  } else
3684
3684
  o[$] = h, a += h;
3685
3685
  if (d.dataset.nodeType === "report-url")
3686
3686
  if (o.url === void 0)
3687
3687
  o.url = h;
3688
3688
  else {
3689
- const J = o.url;
3690
- Array.isArray(J) ? J.push(h) : o.url = [String(J), h];
3689
+ const X = o.url;
3690
+ Array.isArray(X) ? X.push(h) : o.url = [String(X), h];
3691
3691
  }
3692
3692
  if (d.dataset.nodeType === "markdown") {
3693
- const J = d.dataset.sourceTextKey || `${$}__sourceText`;
3694
- if (o[J] === void 0)
3695
- o[J] = h;
3693
+ const X = d.dataset.sourceTextKey || `${$}__sourceText`;
3694
+ if (o[X] === void 0)
3695
+ o[X] = h;
3696
3696
  else {
3697
- const ee = o[J];
3698
- Array.isArray(ee) ? ee.push(h) : o[J] = [String(ee), h];
3697
+ const ee = o[X];
3698
+ Array.isArray(ee) ? ee.push(h) : o[X] = [String(ee), h];
3699
3699
  }
3700
3700
  const z = `${$}__markdown`;
3701
3701
  o[z] === void 0 && (o[z] = [Pt(h)]);
@@ -3734,7 +3734,7 @@ ${(t || "").replace(/\r\n/g, `
3734
3734
  if (O && typeof O.maxCount == "number" && typeof O.minCount == "number") {
3735
3735
  const h = [];
3736
3736
  for (let j = 0; j < O.maxCount; j++) {
3737
- const J = `${w}-${j}`, z = B[J];
3737
+ const X = `${w}-${j}`, z = B[X];
3738
3738
  z && h.push(z);
3739
3739
  }
3740
3740
  o[w] || (o[w] = h.length > 0 ? h : null, h.length > 0 && (a += ` [附带${h.length}个文件: ${h.map((j) => j.name).join(", ")}] `));
@@ -3806,7 +3806,7 @@ ${(t || "").replace(/\r\n/g, `
3806
3806
  "div",
3807
3807
  {
3808
3808
  className: "rich-text-editor-content",
3809
- ref: X,
3809
+ ref: Q,
3810
3810
  style: nn,
3811
3811
  children: /* @__PURE__ */ ce(
3812
3812
  "div",
@@ -3906,25 +3906,25 @@ ${(t || "").replace(/\r\n/g, `
3906
3906
  )
3907
3907
  ] })
3908
3908
  ] }),
3909
- Q?.anchorEl && (() => {
3910
- if (!document.body.contains(Q.anchorEl))
3909
+ J?.anchorEl && (() => {
3910
+ if (!document.body.contains(J.anchorEl))
3911
3911
  return null;
3912
3912
  let r = "", a = {
3913
3913
  background: "var(--neutral-800, #262626)"
3914
3914
  };
3915
- if (Q.type === "upload") {
3916
- const f = Q.anchorEl.dataset.tooltip;
3915
+ if (J.type === "upload") {
3916
+ const f = J.anchorEl.dataset.tooltip;
3917
3917
  f ? r = f : r = t.find(
3918
- (v) => v.type === "upload" && v.key === Q.key
3918
+ (v) => v.type === "upload" && v.key === J.key
3919
3919
  )?.tooltip || "";
3920
- } else if (Q.type === "tag")
3921
- r = Q.anchorEl.dataset.tooltip || "";
3922
- else if (Q.type === "upload-label")
3923
- r = Q.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName || Q.anchorEl.dataset.fileName || "";
3924
- else if (Q.type === "variable")
3925
- r = Q.anchorEl.dataset.tooltip || "";
3926
- else if (Q.type === "upload-preview") {
3927
- const f = B[Q.key], y = !!f && (f.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name || ""));
3920
+ } else if (J.type === "tag")
3921
+ r = J.anchorEl.dataset.tooltip || "";
3922
+ else if (J.type === "upload-label")
3923
+ r = J.anchorEl.querySelector(".upload-label[data-file-name]")?.dataset.fileName || J.anchorEl.dataset.fileName || "";
3924
+ else if (J.type === "variable")
3925
+ r = J.anchorEl.dataset.tooltip || "";
3926
+ else if (J.type === "upload-preview") {
3927
+ const f = B[J.key], y = !!f && (f.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(f.name || ""));
3928
3928
  if (f && y) {
3929
3929
  const v = URL.createObjectURL(f);
3930
3930
  r = /* @__PURE__ */ G("div", { className: "rte-upload-preview", children: /* @__PURE__ */ G("img", { className: "rte-upload-preview-img", src: v, alt: f.name }) }), a = {
@@ -3937,15 +3937,15 @@ ${(t || "").replace(/\r\n/g, `
3937
3937
  r = "";
3938
3938
  }
3939
3939
  if (!r) return null;
3940
- const o = Q.type === "upload-preview" ? "#0A0A0A" : "#fff";
3940
+ const o = J.type === "upload-preview" ? "#0A0A0A" : "#fff";
3941
3941
  return vt(
3942
3942
  /* @__PURE__ */ G(
3943
3943
  mn,
3944
3944
  {
3945
3945
  arrow: !1,
3946
- title: Q.type === "upload-preview" ? r : /* @__PURE__ */ G("div", { style: { maxWidth: "200px", fontSize: "12px", color: o }, children: r }),
3946
+ title: J.type === "upload-preview" ? r : /* @__PURE__ */ G("div", { style: { maxWidth: "200px", fontSize: "12px", color: o }, children: r }),
3947
3947
  open: !0,
3948
- placement: Q.type === "upload-preview" ? "topLeft" : "top",
3948
+ placement: J.type === "upload-preview" ? "topLeft" : "top",
3949
3949
  getPopupContainer: () => document.body,
3950
3950
  overlayInnerStyle: a,
3951
3951
  children: /* @__PURE__ */ G(
@@ -3953,11 +3953,11 @@ ${(t || "").replace(/\r\n/g, `
3953
3953
  {
3954
3954
  style: {
3955
3955
  position: "fixed",
3956
- left: `${Q.anchorEl.getBoundingClientRect().left}px`,
3956
+ left: `${J.anchorEl.getBoundingClientRect().left}px`,
3957
3957
  // 对于 upload-label 类型的 tooltip,向上移动 6px 以增加间距
3958
- top: `${Q.anchorEl.getBoundingClientRect().top - (Q.type === "upload-label" ? 4 : 0)}px`,
3959
- width: `${Q.anchorEl.offsetWidth}px`,
3960
- height: `${Q.anchorEl.offsetHeight}px`,
3958
+ top: `${J.anchorEl.getBoundingClientRect().top - (J.type === "upload-label" ? 4 : 0)}px`,
3959
+ width: `${J.anchorEl.offsetWidth}px`,
3960
+ height: `${J.anchorEl.offsetHeight}px`,
3961
3961
  pointerEvents: "none"
3962
3962
  }
3963
3963
  }
@@ -4342,7 +4342,7 @@ const pr = ({
4342
4342
  x < m.length ? (L(m.slice(0, x + 1)), x++, k.current = window.setTimeout(_, i)) : (s(!1), g?.());
4343
4343
  };
4344
4344
  _();
4345
- }, [i]), X = se((m) => {
4345
+ }, [i]), Q = se((m) => {
4346
4346
  let g = te.current.length;
4347
4347
  const x = () => {
4348
4348
  g > 0 ? (L(te.current.slice(0, g - 1)), g--, k.current = window.setTimeout(x, i / 2)) : m?.();
@@ -4352,7 +4352,7 @@ const pr = ({
4352
4352
  if (D.current.length === 0 || C.current) return;
4353
4353
  E(!0);
4354
4354
  const m = D.current[R.current];
4355
- te.current ? X(() => {
4355
+ te.current ? Q(() => {
4356
4356
  Y(m, () => {
4357
4357
  c.current = window.setTimeout(() => {
4358
4358
  S((g) => (g + 1) % D.current.length), E(!1);
@@ -4363,7 +4363,7 @@ const pr = ({
4363
4363
  S((g) => (g + 1) % D.current.length), E(!1);
4364
4364
  }, 2e3);
4365
4365
  });
4366
- }, [X, Y]);
4366
+ }, [Q, Y]);
4367
4367
  return ie(() => (u && t.length > 0 && !A && V(), () => {
4368
4368
  c.current && window.clearTimeout(c.current), k.current && window.clearTimeout(k.current);
4369
4369
  }), [N, A, u, t.length, V]), ie(() => {
@@ -4512,7 +4512,7 @@ const fr = ({
4512
4512
  ...A
4513
4513
  // 其他原生属性
4514
4514
  }) => {
4515
- const [e, n] = ae(""), [s, c] = ae(0), [k, D] = ae(!1), [R, C] = ae(!1), [te, Y] = ae(!1), [X, V] = ae(b || ""), l = re(void 0), q = re(void 0), W = re(t), B = re(s), m = re(R), g = re(e), x = re(null);
4515
+ const [e, n] = ae(""), [s, c] = ae(0), [k, D] = ae(!1), [R, C] = ae(!1), [te, Y] = ae(!1), [Q, V] = ae(b || ""), l = re(void 0), q = re(void 0), W = re(t), B = re(s), m = re(R), g = re(e), x = re(null);
4516
4516
  ie(() => {
4517
4517
  W.current = t, B.current = s, m.current = R, g.current = e;
4518
4518
  });
@@ -4552,30 +4552,30 @@ const fr = ({
4552
4552
  }, [s, k, u, t.length, R, U]);
4553
4553
  const K = (ne) => {
4554
4554
  C(!0), l.current && window.clearTimeout(l.current), q.current && window.clearTimeout(q.current), D(!1), Y(!1), A.onFocus?.(ne);
4555
- }, Q = (ne) => {
4555
+ }, J = (ne) => {
4556
4556
  C(!1), !b && t.length > 0 && (n(""), c(0)), A.onBlur?.(ne);
4557
4557
  }, Z = (ne) => {
4558
4558
  const he = ne.target.value;
4559
4559
  P && he.length > P || (I ? I(he) : V(he), A.onChange?.(ne));
4560
4560
  }, le = () => {
4561
- const ne = I ? b : X;
4561
+ const ne = I ? b : Q;
4562
4562
  ne.trim() && !S && (M?.(ne), I || V(""));
4563
4563
  }, ue = (ne) => {
4564
4564
  (ne.ctrlKey || ne.metaKey) && ne.key === "Enter" && (ne.preventDefault(), le()), A.onKeyDown?.(ne);
4565
- }, pe = I ? b : X, xe = S || !pe.trim() || (P ? pe.length > P : !1);
4565
+ }, pe = I ? b : Q, xe = S || !pe.trim() || (P ? pe.length > P : !1);
4566
4566
  return /* @__PURE__ */ ce("div", { style: { position: "relative", ...E }, children: [
4567
4567
  /* @__PURE__ */ ce("div", { style: { position: "relative" }, children: [
4568
4568
  /* @__PURE__ */ G(
4569
4569
  "textarea",
4570
4570
  {
4571
4571
  ref: x,
4572
- value: I ? b : X,
4572
+ value: I ? b : Q,
4573
4573
  onChange: Z,
4574
4574
  onFocus: (ne) => {
4575
4575
  ne.target.style.borderColor = "#1890ff", ne.target.style.boxShadow = "0 0 0 2px rgba(24, 144, 255, 0.2)", K(ne);
4576
4576
  },
4577
4577
  onBlur: (ne) => {
4578
- ne.target.style.borderColor = "#d9d9d9", ne.target.style.boxShadow = "none", Q(ne);
4578
+ ne.target.style.borderColor = "#d9d9d9", ne.target.style.boxShadow = "none", J(ne);
4579
4579
  },
4580
4580
  onKeyDown: ue,
4581
4581
  placeholder: R || pe ? p : "",
@@ -4804,15 +4804,15 @@ const Ft = ({
4804
4804
  }) => {
4805
4805
  const s = re(null), [c, k] = ae(!1), [D, R] = ae(!1), [C, te] = ae(!1), Y = se(() => {
4806
4806
  s.current && (s.current.play(), k(!0), S?.());
4807
- }, [S]), X = se(() => {
4807
+ }, [S]), Q = se(() => {
4808
4808
  s.current && (s.current.pause(), k(!1), F?.());
4809
4809
  }, [F]), V = se((_) => {
4810
- _.stopPropagation(), c ? X() : Y();
4811
- }, [c, Y, X]), l = se(() => {
4810
+ _.stopPropagation(), c ? Q() : Y();
4811
+ }, [c, Y, Q]), l = se(() => {
4812
4812
  R(!0), P && !c && Y();
4813
4813
  }, [P, c, Y]), q = se(() => {
4814
- R(!1), P && c && X();
4815
- }, [P, c, X]), W = se(() => {
4814
+ R(!1), P && c && Q();
4815
+ }, [P, c, Q]), W = se(() => {
4816
4816
  te(!0), N?.();
4817
4817
  }, [N]), B = se(() => {
4818
4818
  k(!0), S?.();
@@ -4998,7 +4998,7 @@ const mr = (t) => [".mp4", ".webm", ".ogg", ".mov", ".avi", ".wmv", ".flv", ".mk
4998
4998
  if (!L.current) return;
4999
4999
  const s = N, c = L.current, D = (c.offsetWidth - i * (s - 1)) / s, R = new Array(s).fill(0);
5000
5000
  t.forEach((te, Y) => {
5001
- const X = te.id || Y, V = F.current.get(X);
5001
+ const Q = te.id || Y, V = F.current.get(Q);
5002
5002
  if (!V) return;
5003
5003
  const l = Math.min(...R), q = R.indexOf(l), W = q * (D + i), B = R[q];
5004
5004
  V.style.position = "absolute", V.style.left = `${W}px`, V.style.top = `${B}px`, V.style.width = `${D}px`, R[q] += V.offsetHeight + i;
@@ -5286,8 +5286,8 @@ const Ke = (t) => t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
5286
5286
  c.length < M && (c = xr(s));
5287
5287
  const k = {};
5288
5288
  k[Ve.日期] = A, mt.slice(1).forEach((D, R) => {
5289
- const C = R * 2, te = c[C] || "", Y = gr(te), X = Ve[D];
5290
- X && (k[X] = Y);
5289
+ const C = c[R] || "", te = gr(C), Y = Ve[D];
5290
+ Y && (k[Y] = te);
5291
5291
  }), P.push(k);
5292
5292
  });
5293
5293
  const L = mt.filter((A) => {