@univerjs/docs-ui 0.10.8 → 0.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  var Mc = Object.defineProperty;
2
2
  var _c = (n, e, t) => e in n ? Mc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var O = (n, e, t) => _c(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as _n, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as ft, ObjectRelativeFromH as Ro, CommandType as D, sequenceExecuteAsync as Nr, ICommandService as T, DataStreamTreeTokenType as V, TextX as Ie, TextXActionType as G, PresetListType as ye, UpdateDocsAttributeType as on, Tools as ue, generateRandomId as ge, TableRowHeightRule as Dc, TableSizeType as Yi, TableTextWrapType as wc, TableAlignmentType as Pc, MemoryCursor as Nt, SHEET_EDITOR_UNITS as In, PositionedObjectLayoutType as bo, BlockType as Nc, LRUMap as Lc, BaselineOffset as Ve, BooleanNumber as z, ColorKit as Us, DrawingTypeEnum as Lr, skipParseTagNames as Qc, CustomRangeType as Qr, DataStreamTreeNodeType as an, createIdentifier as Ki, ILogService as Ur, SliceBodyType as ar, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as yo, DOC_RANGE_TYPE as He, normalizeBody as Uc, getBodySlice as qi, FOCUSING_DOC as Dn, EDITOR_ACTIVATED as to, DashStyleType as Fc, RxDisposable as Rt, ThemeService as Fr, IUndoRedoService as xo, PRESET_LIST_TYPE as Hc, HorizontalAlign as Ue, NamedStyleType as K, RANGE_DIRECTION as De, COLORS as fn, Rectangle as kc, DocumentFlavor as Pe, LocaleService as Ke, isInternalEditorID as bt, IContextService as Hr, Injector as wn, FOCUSING_EDITOR_STANDALONE as Fs, VerticalAlign as Vc, DEFAULT_EMPTY_DOCUMENT_VALUE as Xi, PageOrientType as Wc, PAPER_TYPES as jc, PAGE_SIZE as cr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as ot, DEFAULT_STYLES as Oo, NAMED_STYLE_MAP as zc, DisposableCollection as Sn, fromEventSubject as _t, deepCompare as Gc, FOCUSING_UNIVER_EDITOR as kr, FOCUSING_COMMON_DRAWINGS as Zi, getPlainText as no, debounce as Vr, SpacingRule as Xt, IConfigService as Wr, QuickListTypeMap as zo, Direction as le, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yc, checkForSubstrings as Kc, createInterceptorKey as Ji, InterceptorManager as qc, UndoCommandId as Hs, RedoCommandId as ks, DependentOn as Xc, Plugin as Zc, merge as Jc, touchDependencies as Vs, mergeOverrideWithDependencies as $c, createInternalEditorID as el } from "@univerjs/core";
4
+ import { IUniverInstanceService as L, Inject as j, Disposable as me, toDisposable as _n, UniverInstanceType as _, BuildTextUtils as ce, JSONX as W, ObjectRelativeFromV as ft, ObjectRelativeFromH as bo, CommandType as D, sequenceExecuteAsync as Nr, ICommandService as T, DataStreamTreeTokenType as V, TextX as Ie, TextXActionType as G, PresetListType as ye, UpdateDocsAttributeType as on, Tools as ue, generateRandomId as ge, TableRowHeightRule as Dc, TableSizeType as Yi, TableTextWrapType as wc, TableAlignmentType as Pc, MemoryCursor as Nt, SHEET_EDITOR_UNITS as In, PositionedObjectLayoutType as yo, BlockType as Nc, LRUMap as Lc, BaselineOffset as Ve, BooleanNumber as z, ColorKit as Us, DrawingTypeEnum as Lr, skipParseTagNames as Qc, CustomRangeType as Qr, DataStreamTreeNodeType as an, createIdentifier as Ki, ILogService as Ur, SliceBodyType as ar, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Dn, DOC_RANGE_TYPE as He, normalizeBody as Uc, getBodySlice as qi, FOCUSING_DOC as wn, EDITOR_ACTIVATED as no, DashStyleType as Fc, RxDisposable as Rt, ThemeService as Fr, IUndoRedoService as xo, PRESET_LIST_TYPE as Hc, HorizontalAlign as Ue, NamedStyleType as K, RANGE_DIRECTION as De, COLORS as fn, Rectangle as kc, DocumentFlavor as Pe, LocaleService as Ke, isInternalEditorID as bt, IContextService as Hr, Injector as Pn, FOCUSING_EDITOR_STANDALONE as Fs, VerticalAlign as Vc, DEFAULT_EMPTY_DOCUMENT_VALUE as Xi, PageOrientType as Wc, PAPER_TYPES as jc, PAGE_SIZE as cr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as ot, DEFAULT_STYLES as Oo, NAMED_STYLE_MAP as zc, DisposableCollection as Sn, fromEventSubject as _t, deepCompare as Gc, FOCUSING_UNIVER_EDITOR as kr, FOCUSING_COMMON_DRAWINGS as Zi, getPlainText as oo, debounce as Vr, SpacingRule as Xt, IConfigService as Wr, QuickListTypeMap as zo, Direction as le, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yc, checkForSubstrings as Kc, createInterceptorKey as Ji, InterceptorManager as qc, UndoCommandId as Hs, RedoCommandId as ks, DependentOn as Xc, Plugin as Zc, merge as Jc, touchDependencies as Vs, mergeOverrideWithDependencies as $c, createInternalEditorID as el } from "@univerjs/core";
5
5
  import { DocSelectionManagerService as Y, RichTextEditingMutation as X, DocSkeletonManagerService as de, SetTextSelectionsOperation as Le, DocStateEmitService as tl, DocInterceptorService as nl } from "@univerjs/docs";
6
- import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as ol, isIndentByGlyph as rl, isFirstGlyph as sl, getParagraphByGlyph as il, pixelToPt as al, ptToPixel as Ws, parseDataStreamToTree as cl, Liquid as $i, GlyphType as ea, DocumentSkeletonPageType as Oe, getPageFromPath as lr, getTableIdAndSliceIndex as js, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as vn, getColor as pn, RegularPolygon as ta, Rect as qn, getOffsetRectForDom as ll, ScrollTimer as dl, CURSOR_TYPE as Dt, getSystemHighlightColor as Al, Vector2 as Cn, PageLayoutType as Rn, Shape as ul, Path as zs, pxToNum as na, TRANSFORM_CHANGE_OBSERVABLE_TYPE as oa, getNumberUnitValue as rn, Viewport as hl, ScrollBar as dr, Layer as Gs, Documents as gl, DocBackground as fl, getLastLine as pl, lineIterator as ml, getLastColumn as El, UniverRenderEnginePlugin as Il, DeviceInputEventType as ra } from "@univerjs/engine-render";
7
- import { IClipboardInterfaceService as sa, FILE_PNG_CLIPBOARD_MIME_TYPE as Sl, FILE__WEBP_CLIPBOARD_MIME_TYPE as vl, FILE__JPEG_CLIPBOARD_MIME_TYPE as Cl, FILE__BMP_CLIPBOARD_MIME_TYPE as Rl, HTML_CLIPBOARD_MIME_TYPE as ia, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as aa, CopyCommand as bl, CutCommand as yl, PasteCommand as xl, ILayoutService as To, KeyCode as q, IConfirmService as ca, useDependency as J, ComponentManager as sn, ISidebarService as la, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as da, FONT_FAMILY_LIST as Ol, FONT_FAMILY_COMPONENT as Tl, FONT_FAMILY_ITEM_COMPONENT as Bl, FONT_SIZE_LIST as Ml, FONT_SIZE_COMPONENT as _l, HEADING_LIST as Ys, COMMON_LABEL_COMPONENT as Dl, HEADING_ITEM_COMPONENT as wl, ICanvasPopupService as Pl, IMenuManagerService as Aa, ToolbarItem as Nl, MenuManagerPosition as Ll, useObservable as tt, RectPopup as Ql, DesktopMenu as Ul, ContextMenuPosition as oo, MetaKeys as te, Slider as Fl, useConfigValue as ua, useEvent as En, ContextMenuGroup as cn, RibbonInsertGroup as Hl, RibbonStartGroup as Ks, IUIPartsService as kl, IShortcutService as Bo, BuiltInUIPart as qs, connectInjector as Xs, imageMimeTypeSet as Vl, IContextMenuService as Wl } from "@univerjs/ui";
6
+ import { IRenderManagerService as pe, DocumentEditArea as ve, hasListGlyph as ol, isIndentByGlyph as rl, isFirstGlyph as sl, getParagraphByGlyph as il, pixelToPt as al, ptToPixel as Ws, parseDataStreamToTree as cl, Liquid as $i, GlyphType as ea, DocumentSkeletonPageType as Oe, getPageFromPath as lr, getTableIdAndSliceIndex as js, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as vn, getColor as pn, RegularPolygon as ta, Rect as Xn, getOffsetRectForDom as ll, ScrollTimer as dl, CURSOR_TYPE as Dt, getSystemHighlightColor as Al, Vector2 as Cn, PageLayoutType as Rn, Shape as ul, Path as zs, pxToNum as na, TRANSFORM_CHANGE_OBSERVABLE_TYPE as oa, getNumberUnitValue as rn, Viewport as hl, ScrollBar as dr, Layer as Gs, Documents as gl, DocBackground as fl, getLastLine as pl, lineIterator as ml, getLastColumn as El, UniverRenderEnginePlugin as Il, DeviceInputEventType as ra } from "@univerjs/engine-render";
7
+ import { IClipboardInterfaceService as sa, FILE_PNG_CLIPBOARD_MIME_TYPE as Sl, FILE__WEBP_CLIPBOARD_MIME_TYPE as vl, FILE__JPEG_CLIPBOARD_MIME_TYPE as Cl, FILE__BMP_CLIPBOARD_MIME_TYPE as Rl, HTML_CLIPBOARD_MIME_TYPE as ia, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as aa, CopyCommand as bl, CutCommand as yl, PasteCommand as xl, ILayoutService as To, KeyCode as q, IConfirmService as ca, useDependency as J, ComponentManager as sn, ISidebarService as la, getMenuHiddenObservable as se, MenuItemType as Z, COLOR_PICKER_COMPONENT as da, FONT_FAMILY_LIST as Ol, FONT_FAMILY_COMPONENT as Tl, FONT_FAMILY_ITEM_COMPONENT as Bl, FONT_SIZE_LIST as Ml, FONT_SIZE_COMPONENT as _l, HEADING_LIST as Ys, COMMON_LABEL_COMPONENT as Dl, HEADING_ITEM_COMPONENT as wl, ICanvasPopupService as Pl, IMenuManagerService as Aa, ToolbarItem as Nl, MenuManagerPosition as Ll, useObservable as tt, RectPopup as Ql, DesktopMenu as Ul, ContextMenuPosition as ro, MetaKeys as te, Slider as Fl, useConfigValue as ua, useEvent as En, ContextMenuGroup as cn, RibbonInsertGroup as Hl, RibbonStartGroup as Ks, IUIPartsService as kl, IShortcutService as Bo, BuiltInUIPart as qs, connectInjector as Xs, imageMimeTypeSet as Vl, IContextMenuService as Wl } from "@univerjs/ui";
8
8
  import { ImageSourceType as jr } from "@univerjs/drawing";
9
- import { Subject as be, BehaviorSubject as Fe, merge as ha, filter as ro, takeUntil as pt, fromEvent as ze, Observable as fe, map as Pn, combineLatest as Nn, distinctUntilChanged as Wt, throttleTime as bn, switchMap as jl, take as zl, first as Gl, of as Yl, animationFrameScheduler as Kl } from "rxjs";
9
+ import { Subject as be, BehaviorSubject as Fe, merge as ha, filter as so, takeUntil as pt, fromEvent as ze, Observable as fe, map as Nn, combineLatest as Ln, distinctUntilChanged as Wt, throttleTime as bn, switchMap as jl, take as zl, first as Gl, of as Yl, animationFrameScheduler as Kl } from "rxjs";
10
10
  import { filter as Ar, bufferTime as ql, map as Xl } from "rxjs/operators";
11
11
  import { jsxs as re, jsx as Q, Fragment as Zl } from "react/jsx-runtime";
12
12
  import { forwardRef as Te, useRef as ke, createElement as Be, useState as Ee, useEffect as Ce, useMemo as _e, useCallback as ga, useImperativeHandle as Jl, useLayoutEffect as fa } from "react";
13
- import { Checkbox as Zs, InputNumber as at, Button as $l, clsx as Ge, borderClassName as Ln, Select as pa, scrollbarClassName as ed, Tooltip as td } from "@univerjs/design";
13
+ import { Checkbox as Zs, InputNumber as at, Button as $l, clsx as Ge, borderClassName as Qn, Select as pa, scrollbarClassName as ed, Tooltip as td } from "@univerjs/design";
14
14
  var nd = Object.getOwnPropertyDescriptor, od = (n, e, t, o) => {
15
15
  for (var r = o > 1 ? void 0 : o ? nd(e, t) : e, s = n.length - 1, i; s >= 0; s--)
16
16
  (i = n[s]) && (r = i(r) || r);
@@ -240,7 +240,7 @@ function $f(n, e = 0, t = 0) {
240
240
  height: n.height
241
241
  },
242
242
  positionH: {
243
- relativeFrom: Ro.MARGIN,
243
+ relativeFrom: bo.MARGIN,
244
244
  posOffset: (n.left || 0) - e
245
245
  },
246
246
  positionV: {
@@ -277,7 +277,7 @@ var hd = Object.getOwnPropertyDescriptor, gd = (n, e, t, o) => {
277
277
  (i = n[s]) && (r = i(r) || r);
278
278
  return r;
279
279
  }, Yo = (n, e) => (t, o) => e(t, o, n);
280
- const fd = 11, pd = 9, Vn = {
280
+ const fd = 11, pd = 9, Wn = {
281
281
  /**
282
282
  * fontFamily
283
283
  */
@@ -311,15 +311,15 @@ let ct = class extends me {
311
311
  const e = this._univerInstanceService.getCurrentUnitForType(_.UNIVER_DOC);
312
312
  if (e == null)
313
313
  return {
314
- ...Vn
314
+ ...Wn
315
315
  };
316
316
  const t = e == null ? void 0 : e.getUnitId(), o = (i = this._renderManagerService.getRenderById(t)) == null ? void 0 : i.with(de), r = o == null ? void 0 : o.getViewModel();
317
317
  return r == null ? {
318
- ...Vn
318
+ ...Wn
319
319
  } : r.getEditArea() === ve.BODY ? {
320
- ...Vn
320
+ ...Wn
321
321
  } : {
322
- ...Vn,
322
+ ...Wn,
323
323
  fs: pd
324
324
  };
325
325
  }
@@ -552,7 +552,7 @@ function Ea(n, e, t) {
552
552
  textWrap: wc.NONE,
553
553
  position: {
554
554
  positionH: {
555
- relativeFrom: Ro.PAGE,
555
+ relativeFrom: bo.PAGE,
556
556
  posOffset: 0
557
557
  },
558
558
  positionV: {
@@ -588,7 +588,7 @@ function Ea(n, e, t) {
588
588
  }
589
589
  };
590
590
  }
591
- function Qn(n, e) {
591
+ function Un(n, e) {
592
592
  if (!n && !e)
593
593
  return null;
594
594
  if (e && e.length > 0) {
@@ -1267,7 +1267,7 @@ const Dd = "doc.command.insert-text", Ca = {
1267
1267
  return A.params.actions = u.editOp(h.serialize(), p), !!c.syncExecuteCommand(A.id, A.params);
1268
1268
  }
1269
1269
  };
1270
- function Un(n) {
1270
+ function Fn(n) {
1271
1271
  var i, a, c, d;
1272
1272
  const e = n.get(L), o = n.get(Y).getActiveTextRange(), r = e.getCurrentUnitOfType(_.UNIVER_DOC);
1273
1273
  return !o || !o.collapsed || !r || o.segmentId ? !1 : ce.range.getParagraphsInRange(o, (a = (i = r.getBody()) == null ? void 0 : i.paragraphs) != null ? a : [], (d = (c = r.getBody()) == null ? void 0 : c.dataStream) != null ? d : "")[0];
@@ -1539,7 +1539,7 @@ const wo = {
1539
1539
  if (P == null)
1540
1540
  return !0;
1541
1541
  const N = (F = (w = s.getBody()) == null ? void 0 : w.customBlocks) == null ? void 0 : F.find(($) => $.blockId === b.drawingId);
1542
- if (P.layoutType === bo.INLINE || (N == null ? void 0 : N.blockType) === Nc.CUSTOM) {
1542
+ if (P.layoutType === yo.INLINE || (N == null ? void 0 : N.blockType) === Nc.CUSTOM) {
1543
1543
  const $ = s.getUnitId();
1544
1544
  r = await o.executeCommand(Jr.id, {
1545
1545
  direction: Ne.LEFT,
@@ -1634,7 +1634,7 @@ const wo = {
1634
1634
  const b = (v = o.getSnapshot().drawings) == null ? void 0 : v[(S = R.drawingId) != null ? S : ""];
1635
1635
  if (b == null)
1636
1636
  return !0;
1637
- if (b.layoutType === bo.INLINE) {
1637
+ if (b.layoutType === yo.INLINE) {
1638
1638
  const C = o.getUnitId();
1639
1639
  I = await s.executeCommand(Jr.id, {
1640
1640
  direction: Ne.RIGHT,
@@ -1715,7 +1715,7 @@ const ts = {
1715
1715
  const e = n.get(L), t = n.get(T), o = e.getCurrentUnitOfType(_.UNIVER_DOC);
1716
1716
  if (!o)
1717
1717
  return !1;
1718
- const r = (l = (d = o.getBody()) == null ? void 0 : d.dataStream) != null ? l : "", s = Un(n);
1718
+ const r = (l = (d = o.getBody()) == null ? void 0 : d.dataStream) != null ? l : "", s = Fn(n);
1719
1719
  if (!s)
1720
1720
  return !1;
1721
1721
  const i = ce.selection.delete(
@@ -1853,7 +1853,7 @@ function ti(n, e) {
1853
1853
  const t = n.tagName.toLowerCase();
1854
1854
  return typeof e == "string" ? t === e : Array.isArray(e) ? e.some((o) => o === t) : e(n);
1855
1855
  }
1856
- const ni = 660, Co = class Co {
1856
+ const ni = 660, Ro = class Ro {
1857
1857
  constructor() {
1858
1858
  O(this, "_tableCache", []);
1859
1859
  O(this, "_styleCache", /* @__PURE__ */ new Map());
@@ -1867,7 +1867,7 @@ const ni = 660, Co = class Co {
1867
1867
  }
1868
1868
  convert(e, t = {}) {
1869
1869
  var a;
1870
- const o = Co._pluginList.find((c) => c.checkPasteType(e)), r = Ud(e), i = {
1870
+ const o = Ro._pluginList.find((c) => c.checkPasteType(e)), r = Ud(e), i = {
1871
1871
  body: {
1872
1872
  dataStream: "",
1873
1873
  paragraphs: [],
@@ -1911,7 +1911,7 @@ const ni = 660, Co = class Co {
1911
1911
  size: { width: f, height: p },
1912
1912
  angle: 0,
1913
1913
  positionH: {
1914
- relativeFrom: Ro.PAGE,
1914
+ relativeFrom: bo.PAGE,
1915
1915
  posOffset: 0
1916
1916
  },
1917
1917
  positionV: {
@@ -1919,7 +1919,7 @@ const ni = 660, Co = class Co {
1919
1919
  posOffset: 0
1920
1920
  }
1921
1921
  },
1922
- layoutType: bo.INLINE,
1922
+ layoutType: yo.INLINE,
1923
1923
  drawingType: Lr.DRAWING_IMAGE,
1924
1924
  unitId: o.id || "",
1925
1925
  subUnitId: o.id || ""
@@ -2012,8 +2012,8 @@ ${V.TABLE_CELL_END}`;
2012
2012
  }));
2013
2013
  }
2014
2014
  };
2015
- O(Co, "_pluginList", []);
2016
- let en = Co;
2015
+ O(Ro, "_pluginList", []);
2016
+ let en = Ro;
2017
2017
  const Fd = {
2018
2018
  name: "univer-doc-paste-plugin-lark",
2019
2019
  checkPasteType(n) {
@@ -2334,7 +2334,7 @@ let hr = class extends me {
2334
2334
  if (!t && !o && r.length && (t = await this._createImagePasteHtml(r)), !t && !o)
2335
2335
  return this._logService.warn("[DocClipboardController] html and text cannot be both empty!"), !1;
2336
2336
  const a = this._genDocDataFromHtmlAndText(t, o, i);
2337
- if (i === yo)
2337
+ if (i === Dn)
2338
2338
  if (o) {
2339
2339
  const c = ce.transform.fromPlainText(o);
2340
2340
  return this._paste({ body: c });
@@ -2578,7 +2578,7 @@ let hr = class extends me {
2578
2578
  title: "",
2579
2579
  source: A.source,
2580
2580
  description: "",
2581
- layoutType: bo.INLINE,
2581
+ layoutType: yo.INLINE,
2582
2582
  drawingType: Lr.DRAWING_IMAGE,
2583
2583
  transform: {
2584
2584
  width: h,
@@ -2588,7 +2588,7 @@ let hr = class extends me {
2588
2588
  docTransform: {
2589
2589
  angle: 0,
2590
2590
  size: { width: h, height: u },
2591
- positionH: { relativeFrom: Ro.CHARACTER, posOffset: 0 },
2591
+ positionH: { relativeFrom: bo.CHARACTER, posOffset: 0 },
2592
2592
  positionV: { relativeFrom: ft.LINE, posOffset: 0 }
2593
2593
  }
2594
2594
  };
@@ -2603,9 +2603,9 @@ hr = Yd([
2603
2603
  ln(4, j(Y))
2604
2604
  ], hr);
2605
2605
  function Po(n) {
2606
- return n.getContextValue(Dn) || n.getContextValue(to);
2606
+ return n.getContextValue(wn) || n.getContextValue(no);
2607
2607
  }
2608
- const os = 999, so = {
2608
+ const os = 999, io = {
2609
2609
  id: bl.id,
2610
2610
  name: "doc.command.copy",
2611
2611
  type: D.COMMAND,
@@ -2617,7 +2617,7 @@ const os = 999, so = {
2617
2617
  id: "doc.command.copy-current-paragraph",
2618
2618
  type: D.COMMAND,
2619
2619
  handler: async (n) => {
2620
- const e = n.get(Lt), t = Un(n);
2620
+ const e = n.get(Lt), t = Fn(n);
2621
2621
  return t ? e.copy(
2622
2622
  ar.copy,
2623
2623
  [{
@@ -2639,7 +2639,7 @@ const os = 999, so = {
2639
2639
  id: "doc.command.cut-current-paragraph",
2640
2640
  type: D.COMMAND,
2641
2641
  handler: async (n) => {
2642
- const e = n.get(Lt), t = Un(n);
2642
+ const e = n.get(Lt), t = Fn(n);
2643
2643
  return t ? e.cut(
2644
2644
  [{
2645
2645
  startOffset: t.paragraphStart,
@@ -2678,7 +2678,7 @@ const os = 999, so = {
2678
2678
  id: "doc.command.insert-horizontal-line-bellow",
2679
2679
  type: D.COMMAND,
2680
2680
  handler: (n) => {
2681
- const e = n.get(T), t = Un(n);
2681
+ const e = n.get(T), t = Fn(n);
2682
2682
  return t ? e.syncExecuteCommand(No.id, {
2683
2683
  insertRange: {
2684
2684
  startOffset: t.startIndex + 1,
@@ -2972,7 +2972,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
2972
2972
  t
2973
2973
  );
2974
2974
  }
2975
- }, fi = "doc.command.reset-inline-format-text-background-color", Fn = {
2975
+ }, fi = "doc.command.reset-inline-format-text-background-color", Hn = {
2976
2976
  id: fi,
2977
2977
  type: D.COMMAND,
2978
2978
  handler: async (n, e) => {
@@ -2992,7 +2992,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
2992
2992
  [tn.id]: "ff",
2993
2993
  [Et.id]: "cl",
2994
2994
  [It.id]: "bg",
2995
- [Fn.id]: "bg",
2995
+ [Hn.id]: "bg",
2996
2996
  [yt.id]: "va",
2997
2997
  [kt.id]: "va"
2998
2998
  }, xt = {
@@ -3047,7 +3047,7 @@ const si = "doc.command.set-inline-format-bold", Qt = {
3047
3047
  };
3048
3048
  break;
3049
3049
  }
3050
- case Fn.id: {
3050
+ case Hn.id: {
3051
3051
  g = {
3052
3052
  rgb: null
3053
3053
  };
@@ -3379,7 +3379,7 @@ const Pa = {
3379
3379
  };
3380
3380
  return t.syncExecuteCommand(Pa.id, d);
3381
3381
  }
3382
- }, Hn = {
3382
+ }, kn = {
3383
3383
  id: "doc.command.list-operation",
3384
3384
  type: D.COMMAND,
3385
3385
  handler: (n, e) => {
@@ -3439,7 +3439,7 @@ const Pa = {
3439
3439
  return p.params.actions = f.editOp(g.serialize(), m), !!r.syncExecuteCommand(p.id, p.params);
3440
3440
  }
3441
3441
  };
3442
- var Xn = /* @__PURE__ */ ((n) => (n[n.increase = 1] = "increase", n[n.decrease = -1] = "decrease", n))(Xn || {});
3442
+ var Zn = /* @__PURE__ */ ((n) => (n[n.increase = 1] = "increase", n[n.decrease = -1] = "decrease", n))(Zn || {});
3443
3443
  const fr = {
3444
3444
  id: "doc.command.change-list-nesting-level",
3445
3445
  type: D.COMMAND,
@@ -3477,12 +3477,12 @@ const fr = {
3477
3477
  return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
3478
3478
  listType: e.value,
3479
3479
  docRange: e.docRange
3480
- }) : t.syncExecuteCommand(Hn.id, {
3480
+ }) : t.syncExecuteCommand(kn.id, {
3481
3481
  listType: ye.BULLET_LIST,
3482
3482
  docRange: e == null ? void 0 : e.docRange
3483
3483
  });
3484
3484
  }
3485
- }, io = {
3485
+ }, ao = {
3486
3486
  id: "doc.command.check-list",
3487
3487
  type: D.COMMAND,
3488
3488
  handler: (n, e) => {
@@ -3490,7 +3490,7 @@ const fr = {
3490
3490
  return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
3491
3491
  listType: e.value,
3492
3492
  docRange: e.docRange
3493
- }) : t.syncExecuteCommand(Hn.id, {
3493
+ }) : t.syncExecuteCommand(kn.id, {
3494
3494
  listType: ye.CHECK_LIST,
3495
3495
  docRange: e == null ? void 0 : e.docRange
3496
3496
  });
@@ -3531,7 +3531,7 @@ const fr = {
3531
3531
  const t = n.get(T);
3532
3532
  return e != null && e.value ? t.syncExecuteCommand(Qo.id, {
3533
3533
  listType: e.value
3534
- }) : t.syncExecuteCommand(Hn.id, {
3534
+ }) : t.syncExecuteCommand(kn.id, {
3535
3535
  listType: ye.ORDER_LIST
3536
3536
  });
3537
3537
  }
@@ -3608,7 +3608,7 @@ const fr = {
3608
3608
  };
3609
3609
  function ls(n, e) {
3610
3610
  var l, A;
3611
- const t = n.get(T), o = Un(n);
3611
+ const t = n.get(T), o = Fn(n);
3612
3612
  if (!o)
3613
3613
  return !1;
3614
3614
  const r = n.get(L).getCurrentUnitOfType(_.UNIVER_DOC);
@@ -3758,7 +3758,7 @@ const ds = {
3758
3758
  const o = n.get(L).getUnit(e.unitId, _.UNIVER_DOC);
3759
3759
  return o ? (o.setZoomRatio(e.zoomRatio), !0) : !1;
3760
3760
  }
3761
- }, Zn = {
3761
+ }, Jn = {
3762
3762
  type: D.COMMAND,
3763
3763
  id: "doc.command.set-zoom-ratio",
3764
3764
  handler: async (n, e) => {
@@ -3894,7 +3894,7 @@ const ds = {
3894
3894
  handler: (n) => n.get(T).syncExecuteCommand(Ze.id, {
3895
3895
  value: K.HEADING_5
3896
3896
  })
3897
- }, ao = {
3897
+ }, co = {
3898
3898
  id: "doc.command.normal-text-heading",
3899
3899
  type: D.COMMAND,
3900
3900
  handler: (n) => n.get(T).syncExecuteCommand(Ze.id, {
@@ -3913,7 +3913,7 @@ const ds = {
3913
3913
  value: K.SUBTITLE
3914
3914
  })
3915
3915
  };
3916
- var Jn = /* @__PURE__ */ ((n) => (n[n.page = 0] = "page", n[n.section = 1] = "section", n[n.column = 2] = "column", n[n.line = 3] = "line", n[n.divide = 4] = "divide", n[n.glyph = 5] = "glyph", n))(Jn || {});
3916
+ var $n = /* @__PURE__ */ ((n) => (n[n.page = 0] = "page", n[n.section = 1] = "section", n[n.column = 2] = "column", n[n.line = 3] = "line", n[n.divide = 4] = "divide", n[n.glyph = 5] = "glyph", n))($n || {});
3917
3917
  const qt = {
3918
3918
  page: 0,
3919
3919
  section: 1,
@@ -4087,7 +4087,7 @@ class St {
4087
4087
  _checkPreviousNodePositionState(e, t = !0) {
4088
4088
  let o = e, r;
4089
4089
  for (; o >= 0; ) {
4090
- const s = Jn[o];
4090
+ const s = $n[o];
4091
4091
  let i;
4092
4092
  if (t ? i = this._currentStartState[s] : i = this._currentEndState[s], i === void 0)
4093
4093
  return;
@@ -4099,7 +4099,7 @@ class St {
4099
4099
  }
4100
4100
  _getSelectionRuler(e, t, o, r, s) {
4101
4101
  let i = 0, a = r;
4102
- const c = Jn[e], d = Jn[e + 1];
4102
+ const c = $n[e], d = $n[e + 1];
4103
4103
  if (d === null || c === null)
4104
4104
  return {
4105
4105
  start_next: i,
@@ -4377,7 +4377,7 @@ class Va {
4377
4377
  }
4378
4378
  }
4379
4379
  const sA = "__TestSelectionRange__", iA = "__TestSelectionAnchor__", mi = 6, Jo = 500, aA = 500, Er = 3;
4380
- function $n(n) {
4380
+ function eo(n) {
4381
4381
  const e = n[0], t = e[0], o = e[2], { x: r, y: s } = t, { x: i, y: a } = o;
4382
4382
  return {
4383
4383
  left: r,
@@ -4478,7 +4478,7 @@ class Zt {
4478
4478
  const { contentBoxPointGroup: l, cursorList: A } = i.getRangePointData(e, e);
4479
4479
  if (this._setCursorList(A), l.length === 0)
4480
4480
  return;
4481
- const h = $n(l);
4481
+ const h = eo(l);
4482
4482
  return {
4483
4483
  ...h,
4484
4484
  left: h.left + r,
@@ -4488,7 +4488,7 @@ class Zt {
4488
4488
  const { borderBoxPointGroup: a, cursorList: c } = i.getRangePointData(e, t);
4489
4489
  if (this._setCursorList(c), a.length === 0)
4490
4490
  return;
4491
- const d = $n(a);
4491
+ const d = eo(a);
4492
4492
  return {
4493
4493
  ...d,
4494
4494
  left: d.left + r,
@@ -4580,7 +4580,7 @@ class Zt {
4580
4580
  }
4581
4581
  _createOrUpdateAnchor(e, t, o, r) {
4582
4582
  var f, p, m;
4583
- const s = $n(e), { left: i } = s;
4583
+ const s = eo(e), { left: i } = s;
4584
4584
  let { top: a, height: c } = s;
4585
4585
  const d = 14;
4586
4586
  c < d && (a -= d - c, c = d);
@@ -4591,7 +4591,7 @@ class Zt {
4591
4591
  this._anchorShape.transformByState({ left: A, top: h, height: c }), this._anchorShape.show(), u ? this._anchorShape.skew(-l, 0) : this._anchorShape.skew(0, 0);
4592
4592
  return;
4593
4593
  }
4594
- const g = new qn(iA + ge(mi), {
4594
+ const g = new Xn(iA + ge(mi), {
4595
4595
  left: A,
4596
4596
  top: h,
4597
4597
  height: c,
@@ -4931,7 +4931,7 @@ var gA = Object.getOwnPropertyDescriptor, fA = (n, e, t, o) => {
4931
4931
  for (var r = o > 1 ? void 0 : o ? gA(e, t) : e, s = n.length - 1, i; s >= 0; s--)
4932
4932
  (i = n[s]) && (r = i(r) || r);
4933
4933
  return r;
4934
- }, Wn = (n, e) => (t, o) => e(t, o, n);
4934
+ }, jn = (n, e) => (t, o) => e(t, o, n);
4935
4935
  let Re = class extends Rt {
4936
4936
  constructor(e, t, o, r, s) {
4937
4937
  super();
@@ -4951,7 +4951,7 @@ let Re = class extends Rt {
4951
4951
  O(this, "onSelectionStart$", this._onSelectionStart$.asObservable());
4952
4952
  O(this, "onChangeByEvent$", ha(
4953
4953
  this._onInput$,
4954
- this._onKeydown$.pipe(ro((e) => e.event.keyCode === q.BACKSPACE)),
4954
+ this._onKeydown$.pipe(so((e) => e.event.keyCode === q.BACKSPACE)),
4955
4955
  this._onCompositionend$
4956
4956
  ));
4957
4957
  O(this, "_onPaste$", new be());
@@ -5627,10 +5627,10 @@ let Re = class extends Rt {
5627
5627
  }
5628
5628
  };
5629
5629
  Re = fA([
5630
- Wn(1, To),
5631
- Wn(2, Ur),
5632
- Wn(3, L),
5633
- Wn(4, j(de))
5630
+ jn(1, To),
5631
+ jn(2, Ur),
5632
+ jn(3, L),
5633
+ jn(4, j(de))
5634
5634
  ], Re);
5635
5635
  const Vo = {
5636
5636
  id: "doc.command.switch-mode",
@@ -5762,7 +5762,7 @@ const Vo = {
5762
5762
  type: D.COMMAND,
5763
5763
  // eslint-disable-next-line max-lines-per-function
5764
5764
  handler: async (n) => {
5765
- const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
5765
+ const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Un(s, r);
5766
5766
  if (i == null)
5767
5767
  return !1;
5768
5768
  const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
@@ -5776,7 +5776,7 @@ const Vo = {
5776
5776
  return !1;
5777
5777
  const { offset: p, rowIndexes: m, len: I, tableId: S, cursor: v, selectWholeTable: R } = f;
5778
5778
  if (R)
5779
- return o.executeCommand(kn.id);
5779
+ return o.executeCommand(Vn.id);
5780
5780
  const E = [], b = [{
5781
5781
  startOffset: v,
5782
5782
  endOffset: v,
@@ -5809,7 +5809,7 @@ const Vo = {
5809
5809
  type: D.COMMAND,
5810
5810
  // eslint-disable-next-line max-lines-per-function
5811
5811
  handler: async (n) => {
5812
- const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
5812
+ const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Un(s, r);
5813
5813
  if (i == null)
5814
5814
  return !1;
5815
5815
  const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
@@ -5823,7 +5823,7 @@ const Vo = {
5823
5823
  return !1;
5824
5824
  const { offsets: p, columnIndexes: m, tableId: I, cursor: S, rowCount: v, selectWholeTable: R } = f;
5825
5825
  if (R)
5826
- return o.executeCommand(kn.id);
5826
+ return o.executeCommand(Vn.id);
5827
5827
  const E = [], b = [{
5828
5828
  startOffset: S,
5829
5829
  endOffset: S,
@@ -5859,12 +5859,12 @@ const Vo = {
5859
5859
  }
5860
5860
  return y.params.actions = E.reduce((x, M) => W.compose(x, M), null), !!o.syncExecuteCommand(y.id, y.params);
5861
5861
  }
5862
- }, kn = {
5862
+ }, Vn = {
5863
5863
  id: "doc.table.delete-table",
5864
5864
  type: D.COMMAND,
5865
5865
  // eslint-disable-next-line max-lines-per-function
5866
5866
  handler: async (n) => {
5867
- const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Qn(s, r);
5867
+ const e = n.get(Y), t = n.get(L), o = n.get(T), r = e.getRectRanges(), s = e.getActiveTextRange(), i = Un(s, r);
5868
5868
  if (i == null)
5869
5869
  return !1;
5870
5870
  const { segmentId: a } = i, c = t.getCurrentUniverDocInstance(), d = c == null ? void 0 : c.getSelfOrHeaderFooterModel(a).getBody();
@@ -5921,7 +5921,7 @@ const Vo = {
5921
5921
  type: D.COMMAND,
5922
5922
  // eslint-disable-next-line max-lines-per-function
5923
5923
  handler: async (n, e) => {
5924
- const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Qn(a, i);
5924
+ const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Un(a, i);
5925
5925
  if (c == null)
5926
5926
  return !1;
5927
5927
  const { segmentId: d } = c, l = r.getCurrentUnitForType(_.UNIVER_DOC), A = l == null ? void 0 : l.getSelfOrHeaderFooterModel(d).getBody();
@@ -5966,7 +5966,7 @@ const Vo = {
5966
5966
  // eslint-disable-next-line max-lines-per-function
5967
5967
  handler: async (n, e) => {
5968
5968
  var ne, ie, ae;
5969
- const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Qn(a, i);
5969
+ const { position: t } = e, o = n.get(Y), r = n.get(L), s = n.get(T), i = o.getRectRanges(), a = o.getActiveTextRange(), c = Un(a, i);
5970
5970
  if (c == null)
5971
5971
  return !1;
5972
5972
  const { segmentId: d } = c, l = r.getCurrentUniverDocInstance(), A = l == null ? void 0 : l.getSelfOrHeaderFooterModel(d).getBody();
@@ -6593,7 +6593,7 @@ let vr = class extends me {
6593
6593
  }
6594
6594
  blur(e) {
6595
6595
  const t = this.getFocusEditor();
6596
- e && (t == null || t.setSelectionRanges([])), t == null || t.blur(), this._contextService.setContextValue(to, !1), this._contextService.setContextValue(Fs, !1), this._setFocusId(null), this._blur$.next(null);
6596
+ e && (t == null || t.setSelectionRanges([])), t == null || t.blur(), this._contextService.setContextValue(no, !1), this._contextService.setContextValue(Fs, !1), this._setFocusId(null), this._blur$.next(null);
6597
6597
  }
6598
6598
  focus(e) {
6599
6599
  if (e === this._focusEditorUnitId || (this._focusEditorUnitId && this.blur(), e == null))
@@ -6603,7 +6603,7 @@ let vr = class extends me {
6603
6603
  return;
6604
6604
  this._univerInstanceService.setCurrentUnitForType(e);
6605
6605
  const o = t.getValue().length;
6606
- this._contextService.setContextValue(to, !0), bt(e) || this._contextService.setContextValue(Fs, !0), t.focus(), this._setFocusId(e), this._focus$.next({
6606
+ this._contextService.setContextValue(no, !0), bt(e) || this._contextService.setContextValue(Fs, !0), t.focus(), this._setFocusId(e), this._focus$.next({
6607
6607
  startOffset: o,
6608
6608
  endOffset: o
6609
6609
  });
@@ -6680,7 +6680,7 @@ vr = zA([
6680
6680
  Tt(3, Hr),
6681
6681
  Tt(4, T),
6682
6682
  Tt(5, xo),
6683
- Tt(6, j(wn))
6683
+ Tt(6, j(Pn))
6684
6684
  ], vr);
6685
6685
  const Ye = Ki("univer.editor.service"), Cr = "COMPONENT_DOC_HEADER_FOOTER_PANEL";
6686
6686
  function YA(n, e, t) {
@@ -6712,7 +6712,7 @@ const KA = (n) => {
6712
6712
  let E = !1;
6713
6713
  if (g === "useFirstPageHeaderFooter" && u === !0 && ((S === ve.HEADER && !p.firstPageHeaderId || S === ve.FOOTER && !p.firstPageFooterId) && (v = !0), v && R === 0 && (E = !0)), g === "evenAndOddHeaders" && u === !0 && ((S === ve.HEADER && !p.evenPageHeaderId || S === ve.FOOTER && !p.evenPageFooterId) && (v = !0), v && R % 2 === 1 && (E = !0)), v) {
6714
6714
  const C = ge(6);
6715
- E && a.setSegment(C), r.executeCommand(eo, {
6715
+ E && a.setSegment(C), r.executeCommand(to, {
6716
6716
  unitId: i,
6717
6717
  segmentId: C,
6718
6718
  headerFooterProps: {
@@ -6728,7 +6728,7 @@ const KA = (n) => {
6728
6728
  S,
6729
6729
  y
6730
6730
  );
6731
- B && B !== C && a.setSegment(B), r.executeCommand(eo, {
6731
+ B && B !== C && a.setSegment(B), r.executeCommand(to, {
6732
6732
  unitId: i,
6733
6733
  headerFooterProps: {
6734
6734
  [g]: u ? z.TRUE : z.FALSE
@@ -6740,7 +6740,7 @@ const KA = (n) => {
6740
6740
  d((f) => ({
6741
6741
  ...f,
6742
6742
  [g]: u
6743
- })), await r.executeCommand(eo, {
6743
+ })), await r.executeCommand(to, {
6744
6744
  unitId: i,
6745
6745
  headerFooterProps: {
6746
6746
  [g]: u
@@ -6846,7 +6846,7 @@ function ZA(n, e) {
6846
6846
  let s = 0;
6847
6847
  s = Math.min(t, o / 2, r / 2), n.beginPath(), n.moveTo(0, 0), n.lineTo(o, 0), n.lineTo(o, r - s), n.arc(o - s, r - s, s, 0, Math.PI / 2, !1), n.lineTo(0, r), n.lineTo(0, 0), n.closePath(), e.fill && (n.save(), n.fillStyle = e.fill, e.fillRule === "evenodd" ? n.fill("evenodd") : n.fill(), n.restore());
6848
6848
  }
6849
- class co extends ul {
6849
+ class lo extends ul {
6850
6850
  constructor(t, o) {
6851
6851
  super(t, o);
6852
6852
  O(this, "color");
@@ -6884,7 +6884,7 @@ class co extends ul {
6884
6884
  t.restore();
6885
6885
  }
6886
6886
  _draw(t) {
6887
- co.drawWith(t, this);
6887
+ lo.drawWith(t, this);
6888
6888
  }
6889
6889
  }
6890
6890
  var JA = Object.getOwnPropertyDescriptor, $A = (n, e, t, o) => {
@@ -7030,19 +7030,19 @@ let Rr = class extends me {
7030
7030
  if (this._editorService.isEditor(o) || !this._isTraditionalMode())
7031
7031
  return;
7032
7032
  const l = this._docSkeletonManagerService.getViewModel().getEditArea() === ve.BODY, { page: A, pageLeft: h, pageTop: u, ctx: g } = a, { pageWidth: f, pageHeight: p, marginTop: m, marginBottom: I } = A;
7033
- if (g.save(), g.translate(h - 0.5, u - 0.5), l ? (qn.drawWith(g, {
7033
+ if (g.save(), g.translate(h - 0.5, u - 0.5), l ? (Xn.drawWith(g, {
7034
7034
  left: 0,
7035
7035
  top: 0,
7036
7036
  width: f,
7037
7037
  height: m,
7038
7038
  fill: "rgba(255, 255, 255, 0.5)"
7039
- }), g.save(), g.translate(0, p - I), qn.drawWith(g, {
7039
+ }), g.save(), g.translate(0, p - I), Xn.drawWith(g, {
7040
7040
  left: 0,
7041
7041
  top: 0,
7042
7042
  width: f,
7043
7043
  height: I,
7044
7044
  fill: "rgba(255, 255, 255, 0.5)"
7045
- }), g.restore()) : (g.save(), g.translate(0, m), qn.drawWith(g, {
7045
+ }), g.restore()) : (g.save(), g.translate(0, m), Xn.drawWith(g, {
7046
7046
  left: 0,
7047
7047
  top: m,
7048
7048
  width: f,
@@ -7070,10 +7070,10 @@ let Rr = class extends me {
7070
7070
  strokeWidth: 1,
7071
7071
  stroke: Ci
7072
7072
  };
7073
- zs.drawWith(g, S), zs.drawWith(g, v), g.translate(0, m + 1), co.drawWith(g, {
7073
+ zs.drawWith(g, S), zs.drawWith(g, v), g.translate(0, m + 1), lo.drawWith(g, {
7074
7074
  text: e.t("headerFooter.header"),
7075
7075
  color: Ri
7076
- }), g.translate(0, p - m - I), co.drawWith(g, {
7076
+ }), g.translate(0, p - m - I), lo.drawWith(g, {
7077
7077
  text: e.t("headerFooter.footer"),
7078
7078
  color: Ri
7079
7079
  });
@@ -7199,8 +7199,8 @@ function nr(n, e, t, o) {
7199
7199
  }
7200
7200
  return o;
7201
7201
  }
7202
- const eo = "doc.command.core-header-footer", uc = {
7203
- id: eo,
7202
+ const to = "doc.command.core-header-footer", uc = {
7203
+ id: to,
7204
7204
  type: D.COMMAND,
7205
7205
  // eslint-disable-next-line max-lines-per-function
7206
7206
  handler: async (n, e) => {
@@ -7268,7 +7268,7 @@ const eo = "doc.command.core-header-footer", uc = {
7268
7268
  return /* @__PURE__ */ Q("div", { className: "univer-grid univer-grid-cols-3 univer-gap-2 univer-p-1.5", children: o.map((r) => /* @__PURE__ */ Q(
7269
7269
  "a",
7270
7270
  {
7271
- className: Ge("univer-block univer-h-20 univer-w-[72px] univer-cursor-pointer univer-overflow-hidden univer-rounded univer-transition-all hover:univer-border-primary-500", Ln, {
7271
+ className: Ge("univer-block univer-h-20 univer-w-[72px] univer-cursor-pointer univer-overflow-hidden univer-rounded univer-transition-all hover:univer-border-primary-500", Qn, {
7272
7272
  "univer-border-primary-500": e === r.value
7273
7273
  }),
7274
7274
  onClick: () => {
@@ -7996,7 +7996,7 @@ function Su(n) {
7996
7996
  type: Z.BUTTON,
7997
7997
  icon: "HeaderFooterIcon",
7998
7998
  tooltip: "toolbar.headerFooter",
7999
- hidden$: Nn(se(n, _.UNIVER_DOC, void 0, ot), cu(n), (e, t) => e || t)
7999
+ hidden$: Ln(se(n, _.UNIVER_DOC, void 0, ot), cu(n), (e, t) => e || t)
8000
8000
  };
8001
8001
  }
8002
8002
  const vu = "GridIcon", Ec = "doc.menu.table";
@@ -8008,7 +8008,7 @@ function Cu(n) {
8008
8008
  tooltip: "toolbar.table.main",
8009
8009
  disabled$: lu(n),
8010
8010
  // Do not show header footer menu and insert table at zen mode.
8011
- hidden$: Nn(se(n, _.UNIVER_DOC, void 0, ot), au(n), (e, t) => e || t)
8011
+ hidden$: Ln(se(n, _.UNIVER_DOC, void 0, ot), au(n), (e, t) => e || t)
8012
8012
  };
8013
8013
  }
8014
8014
  function Ru(n) {
@@ -8176,7 +8176,7 @@ function yi(n) {
8176
8176
  tooltip: "toolbar.order",
8177
8177
  hidden$: se(n, _.UNIVER_DOC),
8178
8178
  disabled$: xe(n),
8179
- activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("ORDER_LIST") === 0)))
8179
+ activated$: Bn(n).pipe(Nn((e) => !!(e && e.indexOf("ORDER_LIST") === 0)))
8180
8180
  };
8181
8181
  }
8182
8182
  function xi(n) {
@@ -8198,18 +8198,18 @@ function xi(n) {
8198
8198
  tooltip: "toolbar.unorder",
8199
8199
  disabled$: xe(n),
8200
8200
  hidden$: se(n, _.UNIVER_DOC),
8201
- activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("BULLET_LIST") === 0)))
8201
+ activated$: Bn(n).pipe(Nn((e) => !!(e && e.indexOf("BULLET_LIST") === 0)))
8202
8202
  };
8203
8203
  }
8204
8204
  function Oi(n) {
8205
8205
  return {
8206
- id: io.id,
8206
+ id: ao.id,
8207
8207
  type: Z.BUTTON,
8208
8208
  icon: "TodoListDoubleIcon",
8209
8209
  tooltip: "toolbar.checklist",
8210
8210
  disabled$: xe(n),
8211
8211
  hidden$: se(n, _.UNIVER_DOC),
8212
- activated$: Bn(n).pipe(Pn((e) => !!(e && e.indexOf("CHECK_LIST") === 0)))
8212
+ activated$: Bn(n).pipe(Nn((e) => !!(e && e.indexOf("CHECK_LIST") === 0)))
8213
8213
  };
8214
8214
  }
8215
8215
  function Bu(n) {
@@ -8235,7 +8235,7 @@ function Bu(n) {
8235
8235
  }
8236
8236
  function Mu(n) {
8237
8237
  return {
8238
- id: Fn.id,
8238
+ id: Hn.id,
8239
8239
  type: Z.BUTTON,
8240
8240
  title: "toolbar.resetColor",
8241
8241
  icon: "NoColorDoubleIcon"
@@ -8347,10 +8347,10 @@ const wu = {
8347
8347
  [K.HEADING_3]: fs,
8348
8348
  [K.HEADING_4]: ps,
8349
8349
  [K.HEADING_5]: ms,
8350
- [K.NORMAL_TEXT]: ao,
8350
+ [K.NORMAL_TEXT]: co,
8351
8351
  [K.TITLE]: Ua,
8352
8352
  [K.SUBTITLE]: Fa,
8353
- [K.NAMED_STYLE_TYPE_UNSPECIFIED]: ao
8353
+ [K.NAMED_STYLE_TYPE_UNSPECIFIED]: co
8354
8354
  }, Ic = {
8355
8355
  [K.HEADING_1]: { key: "H1Icon", component: tc },
8356
8356
  [K.HEADING_2]: { key: "H2Icon", component: nc },
@@ -8438,7 +8438,7 @@ var Ku = Object.getOwnPropertyDescriptor, qu = (n, e, t, o) => {
8438
8438
  for (var r = o > 1 ? void 0 : o ? Ku(e, t) : e, s = n.length - 1, i; s >= 0; s--)
8439
8439
  (i = n[s]) && (r = i(r) || r);
8440
8440
  return r;
8441
- }, jn = (n, e) => (t, o) => e(t, o, n);
8441
+ }, zn = (n, e) => (t, o) => e(t, o, n);
8442
8442
  function vc(n, e) {
8443
8443
  const t = Bi(n.left, n.top, e), o = Bi(n.right, n.bottom, e);
8444
8444
  return {
@@ -8606,7 +8606,7 @@ let Mn = class extends me {
8606
8606
  const { direction: r = "top", multipleDirection: s } = e, i = this._renderManagerService.getRenderById(t);
8607
8607
  if (!i)
8608
8608
  throw new Error(`Current render not found, unitId: ${t}`);
8609
- const { positions: a, positions$: c, disposable: d } = this._createRangePositionObserver(n, i), l = c.pipe(Pn((h) => r.includes("top") ? h[0] : h[h.length - 1])), A = this._globalPopupManagerService.addPopup({
8609
+ const { positions: a, positions$: c, disposable: d } = this._createRangePositionObserver(n, i), l = c.pipe(Nn((h) => r.includes("top") ? h[0] : h[h.length - 1])), A = this._globalPopupManagerService.addPopup({
8610
8610
  ...e,
8611
8611
  unitId: t,
8612
8612
  subUnitId: "default",
@@ -8627,10 +8627,10 @@ let Mn = class extends me {
8627
8627
  // #endregion
8628
8628
  };
8629
8629
  Mn = qu([
8630
- jn(0, j(Pl)),
8631
- jn(1, pe),
8632
- jn(2, L),
8633
- jn(3, T)
8630
+ zn(0, j(Pl)),
8631
+ zn(1, pe),
8632
+ zn(2, L),
8633
+ zn(3, T)
8634
8634
  ], Mn);
8635
8635
  var Xu = Object.getOwnPropertyDescriptor, Zu = (n, e, t, o) => {
8636
8636
  for (var r = o > 1 ? void 0 : o ? Xu(e, t) : e, s = n.length - 1, i; s >= 0; s--)
@@ -8781,7 +8781,7 @@ let Pt = class extends me {
8781
8781
  this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
8782
8782
  })), this.disposeWithMe(
8783
8783
  _t(this._context.engine.onTransformChange$).pipe(
8784
- ro((e) => e.type === oa.resize)
8784
+ so((e) => e.type === oa.resize)
8785
8785
  ).subscribe(() => {
8786
8786
  this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
8787
8787
  })
@@ -8808,8 +8808,8 @@ let Pt = class extends me {
8808
8808
  }));
8809
8809
  const e = _t(this._context.mainComponent.onPointerDown$), t = _t(this._context.scene.onPointerUp$);
8810
8810
  this.disposeWithMe(e.pipe(
8811
- jl((o) => t.pipe(zl(1), Pn((r) => ({ down: o, up: r })))),
8812
- ro(({ down: o, up: r }) => o.target === r.target && r.timeStamp - o.timeStamp < 300)
8811
+ jl((o) => t.pipe(zl(1), Nn((r) => ({ down: o, up: r })))),
8812
+ so(({ down: o, up: r }) => o.target === r.target && r.timeStamp - o.timeStamp < 300)
8813
8813
  ).subscribe(({ down: o }) => {
8814
8814
  if (o.button === 2)
8815
8815
  return;
@@ -9087,7 +9087,7 @@ function nh(n) {
9087
9087
  }, [t]), /* @__PURE__ */ Q(
9088
9088
  "div",
9089
9089
  {
9090
- className: Ge("univer-box-border univer-flex univer-rounded univer-bg-white univer-py-1.5 univer-shadow-sm dark:!univer-border-gray-700 dark:!univer-bg-gray-900", Ln),
9090
+ className: Ge("univer-box-border univer-flex univer-rounded univer-bg-white univer-py-1.5 univer-shadow-sm dark:!univer-border-gray-700 dark:!univer-bg-gray-900", Qn),
9091
9091
  children: o.map((s) => s.item && /* @__PURE__ */ Q("div", { className: "univer-flex univer-flex-nowrap univer-gap-2 univer-px-2", children: /* @__PURE__ */ Q(Nl, { ...s.item }, s.key) }, s.key))
9092
9092
  }
9093
9093
  );
@@ -9108,7 +9108,7 @@ const ih = [
9108
9108
  V.CUSTOM_BLOCK,
9109
9109
  V.PARAGRAPH
9110
9110
  ];
9111
- let lo = class extends me {
9111
+ let Ao = class extends me {
9112
9112
  constructor(e, t, o, r, s, i) {
9113
9113
  super();
9114
9114
  O(this, "_floatMenu", null);
@@ -9169,19 +9169,19 @@ let lo = class extends me {
9169
9169
  }, _n(() => this._hideFloatMenu());
9170
9170
  }
9171
9171
  };
9172
- lo = rh([
9172
+ Ao = rh([
9173
9173
  dn(1, j(Y)),
9174
9174
  dn(2, j(Mn)),
9175
9175
  dn(3, j(sn)),
9176
9176
  dn(4, j(L)),
9177
9177
  dn(5, j(Re))
9178
- ], lo);
9178
+ ], Ao);
9179
9179
  var ah = Object.getOwnPropertyDescriptor, ch = (n, e, t, o) => {
9180
9180
  for (var r = o > 1 ? void 0 : o ? ah(e, t) : e, s = n.length - 1, i; s >= 0; s--)
9181
9181
  (i = n[s]) && (r = i(r) || r);
9182
9182
  return r;
9183
9183
  }, An = (n, e) => (t, o) => e(t, o, n);
9184
- let Ao = class extends me {
9184
+ let uo = class extends me {
9185
9185
  constructor(e, t, o, r, s, i) {
9186
9186
  super();
9187
9187
  O(this, "_paragrahMenu", null);
@@ -9217,7 +9217,7 @@ let Ao = class extends me {
9217
9217
  this.hideParagraphMenu(!0);
9218
9218
  };
9219
9219
  this.disposeWithMe(
9220
- Nn([this._docEventManagerService.hoverParagraphRealTime$, this._docEventManagerService.hoverParagraphLeft$]).pipe(bn(16)).subscribe(([o, r]) => {
9220
+ Ln([this._docEventManagerService.hoverParagraphRealTime$, this._docEventManagerService.hoverParagraphLeft$]).pipe(bn(16)).subscribe(([o, r]) => {
9221
9221
  const s = o != null ? o : r;
9222
9222
  e(s);
9223
9223
  })
@@ -9261,16 +9261,16 @@ let Ao = class extends me {
9261
9261
  this._paragrahMenu && (this._paragrahMenu.disposable.canDispose() || e) && (this._paragrahMenu.disposable.dispose(), this._paragrahMenu = null);
9262
9262
  }
9263
9263
  };
9264
- Ao = ch([
9264
+ uo = ch([
9265
9265
  An(1, j(Y)),
9266
9266
  An(2, j(Pt)),
9267
9267
  An(3, j(Mn)),
9268
9268
  An(4, j(de)),
9269
- An(5, j(lo))
9270
- ], Ao);
9269
+ An(5, j(Ao))
9270
+ ], uo);
9271
9271
  const lh = ({ popup: n }) => {
9272
9272
  var E, b;
9273
- const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(To), i = ke(null), a = ke(!1), c = J(pe), d = J(L), l = c.getRenderById(n.unitId), A = d.getUnit(n.unitId, _.UNIVER_DOC), h = l == null ? void 0 : l.with(Ao), u = l == null ? void 0 : l.with(Pt), g = tt(u == null ? void 0 : u.hoverParagraph$), f = tt(u == null ? void 0 : u.hoverParagraphLeft$), p = (E = g != null ? g : f) == null ? void 0 : E.startIndex, m = _e(() => {
9273
+ const [e, t] = Ee(!1), o = ke(null), r = J(T), s = J(To), i = ke(null), a = ke(!1), c = J(pe), d = J(L), l = c.getRenderById(n.unitId), A = d.getUnit(n.unitId, _.UNIVER_DOC), h = l == null ? void 0 : l.with(uo), u = l == null ? void 0 : l.with(Pt), g = tt(u == null ? void 0 : u.hoverParagraph$), f = tt(u == null ? void 0 : u.hoverParagraphLeft$), p = (E = g != null ? g : f) == null ? void 0 : E.startIndex, m = _e(() => {
9274
9274
  var y, C;
9275
9275
  return (C = (y = A == null ? void 0 : A.getBody()) == null ? void 0 : y.paragraphs) == null ? void 0 : C.find((B) => B.startIndex === p);
9276
9276
  }, [A, g]), I = (b = m == null ? void 0 : m.paragraphStyle) == null ? void 0 : b.namedStyleType, S = Ic[I != null ? I : K.NORMAL_TEXT], v = _e(() => new Fe({
@@ -9287,7 +9287,7 @@ const lh = ({ popup: n }) => {
9287
9287
  {
9288
9288
  "data-u-comp": "paragraph-menu",
9289
9289
  ref: i,
9290
- className: Ge("univer-mr-1 univer-inline-flex univer-h-7 univer-cursor-pointer univer-items-center univer-gap-1 univer-rounded-full univer-px-2.5 univer-py-0 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600", Ln, {
9290
+ className: Ge("univer-mr-1 univer-inline-flex univer-h-7 univer-cursor-pointer univer-items-center univer-gap-1 univer-rounded-full univer-px-2.5 univer-py-0 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-600", Qn, {
9291
9291
  "univer-bg-gray-100 dark:!univer-bg-gray-700": e,
9292
9292
  "univer-bg-white dark:!univer-bg-gray-700": !e
9293
9293
  }),
@@ -9348,7 +9348,7 @@ const lh = ({ popup: n }) => {
9348
9348
  Ul,
9349
9349
  {
9350
9350
  style: { width: 212 },
9351
- menuType: oo.PARAGRAPH,
9351
+ menuType: ro.PARAGRAPH,
9352
9352
  onOptionSelect: (y) => {
9353
9353
  const { label: C, commandId: B, value: x } = y;
9354
9354
  r && r.executeCommand(B != null ? B : C, { value: x }), s.focus(), R();
@@ -9362,10 +9362,10 @@ const lh = ({ popup: n }) => {
9362
9362
  ] });
9363
9363
  };
9364
9364
  function Se(n) {
9365
- return n.getContextValue(Dn) && n.getContextValue(kr) && !n.getContextValue(Zi);
9365
+ return n.getContextValue(wn) && n.getContextValue(kr) && !n.getContextValue(Zi);
9366
9366
  }
9367
9367
  function dh(n) {
9368
- return n.getContextValue(Dn) && n.getContextValue(kr) && !n.getContextValue(Zi);
9368
+ return n.getContextValue(wn) && n.getContextValue(kr) && !n.getContextValue(Zi);
9369
9369
  }
9370
9370
  const Ah = {
9371
9371
  id: Jt.id,
@@ -9627,7 +9627,7 @@ function Uh() {
9627
9627
  const { paragraphStart: ne, paragraphEnd: ie } = k;
9628
9628
  return {
9629
9629
  id: U.paragraphStyle.headingId,
9630
- text: no(r.slice(ne, ie)),
9630
+ text: oo(r.slice(ne, ie)),
9631
9631
  level: H,
9632
9632
  isTitle: ((ae = U.paragraphStyle) == null ? void 0 : ae.namedStyleType) === K.TITLE
9633
9633
  };
@@ -9896,7 +9896,7 @@ function qh() {
9896
9896
  /* @__PURE__ */ Q(
9897
9897
  "div",
9898
9898
  {
9899
- className: Ge("univer-mt-4 univer-box-border univer-flex univer-w-full univer-items-center univer-justify-between univer-gap-1 univer-rounded-md univer-p-1", Ln),
9899
+ className: Ge("univer-mt-4 univer-box-border univer-flex univer-w-full univer-items-center univer-justify-between univer-gap-1 univer-rounded-md univer-p-1", Qn),
9900
9900
  children: e.map((E) => /* @__PURE__ */ Q(td, { title: E.label, placement: "bottom", children: /* @__PURE__ */ Q(
9901
9901
  "span",
9902
9902
  {
@@ -10087,8 +10087,8 @@ const At = (n) => {
10087
10087
  return Li(o, e, t), () => r.unsubscribe();
10088
10088
  });
10089
10089
  }, tg = (n) => ({
10090
- id: so.name,
10091
- commandId: so.id,
10090
+ id: io.name,
10091
+ commandId: io.id,
10092
10092
  type: Z.BUTTON,
10093
10093
  icon: "CopyDoubleIcon",
10094
10094
  title: "rightClick.copy",
@@ -10127,7 +10127,7 @@ function ig(n) {
10127
10127
  type: Z.SUBITEMS,
10128
10128
  title: "table.insert",
10129
10129
  icon: "InsertDoubleIcon",
10130
- hidden$: Nn(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
10130
+ hidden$: Ln(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
10131
10131
  };
10132
10132
  }
10133
10133
  function ag(n) {
@@ -10177,7 +10177,7 @@ function Ag(n) {
10177
10177
  type: Z.SUBITEMS,
10178
10178
  title: "table.delete",
10179
10179
  icon: "ReduceDoubleIcon",
10180
- hidden$: Nn(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
10180
+ hidden$: Ln(se(n, _.UNIVER_DOC), At(n), (e, t) => e || t)
10181
10181
  };
10182
10182
  }
10183
10183
  function ug(n) {
@@ -10202,7 +10202,7 @@ function hg(n) {
10202
10202
  }
10203
10203
  function gg(n) {
10204
10204
  return {
10205
- id: kn.id,
10205
+ id: Vn.id,
10206
10206
  type: Z.BUTTON,
10207
10207
  title: "table.deleteTable",
10208
10208
  icon: "GridIcon",
@@ -10255,7 +10255,7 @@ const fg = {
10255
10255
  [It.id]: {
10256
10256
  order: 9,
10257
10257
  menuItemFactory: _u,
10258
- [Fn.id]: {
10258
+ [Hn.id]: {
10259
10259
  order: 0,
10260
10260
  menuItemFactory: Mu
10261
10261
  }
@@ -10290,7 +10290,7 @@ const fg = {
10290
10290
  order: 8,
10291
10291
  menuItemFactory: xi
10292
10292
  },
10293
- [io.id]: {
10293
+ [ao.id]: {
10294
10294
  order: 9,
10295
10295
  menuItemFactory: Oi
10296
10296
  },
@@ -10317,9 +10317,9 @@ const fg = {
10317
10317
  }
10318
10318
  }
10319
10319
  },
10320
- [oo.MAIN_AREA]: {
10320
+ [ro.MAIN_AREA]: {
10321
10321
  [cn.FORMAT]: {
10322
- [so.name]: {
10322
+ [io.name]: {
10323
10323
  order: 0,
10324
10324
  menuItemFactory: tg
10325
10325
  },
@@ -10372,14 +10372,14 @@ const fg = {
10372
10372
  order: 2,
10373
10373
  menuItemFactory: hg
10374
10374
  },
10375
- [kn.id]: {
10375
+ [Vn.id]: {
10376
10376
  order: 3,
10377
10377
  menuItemFactory: gg
10378
10378
  }
10379
10379
  }
10380
10380
  }
10381
10381
  },
10382
- [oo.PARAGRAPH]: {
10382
+ [ro.PARAGRAPH]: {
10383
10383
  [cn.QUICK]: {
10384
10384
  [hs.id]: {
10385
10385
  order: 0,
@@ -10401,7 +10401,7 @@ const fg = {
10401
10401
  order: 4,
10402
10402
  menuItemFactory: Uu
10403
10403
  },
10404
- [ao.id]: {
10404
+ [co.id]: {
10405
10405
  order: 5,
10406
10406
  menuItemFactory: Fu
10407
10407
  },
@@ -10413,7 +10413,7 @@ const fg = {
10413
10413
  order: 7,
10414
10414
  menuItemFactory: xi
10415
10415
  },
10416
- [io.id]: {
10416
+ [ao.id]: {
10417
10417
  order: 8,
10418
10418
  menuItemFactory: Oi
10419
10419
  }
@@ -10461,7 +10461,7 @@ var pg = Object.getOwnPropertyDescriptor, mg = (n, e, t, o) => {
10461
10461
  (i = n[s]) && (r = i(r) || r);
10462
10462
  return r;
10463
10463
  }, it = (n, e) => (t, o) => e(t, o, n);
10464
- let uo = class extends me {
10464
+ let ho = class extends me {
10465
10465
  constructor(n, e, t, o, r, s, i, a, c) {
10466
10466
  super(), this._injector = n, this._componentManager = e, this._commandService = t, this._layoutService = o, this._menuManagerService = r, this._uiPartsService = s, this._univerInstanceService = i, this._shortcutService = a, this._configService = c, this._init();
10467
10467
  }
@@ -10524,8 +10524,8 @@ let uo = class extends me {
10524
10524
  );
10525
10525
  }
10526
10526
  };
10527
- uo = mg([
10528
- it(0, j(wn)),
10527
+ ho = mg([
10528
+ it(0, j(Pn)),
10529
10529
  it(1, j(sn)),
10530
10530
  it(2, T),
10531
10531
  it(3, To),
@@ -10534,14 +10534,14 @@ uo = mg([
10534
10534
  it(6, L),
10535
10535
  it(7, Bo),
10536
10536
  it(8, Wr)
10537
- ], uo);
10537
+ ], ho);
10538
10538
  var Eg = Object.getOwnPropertyDescriptor, Ig = (n, e, t, o) => {
10539
10539
  for (var r = o > 1 ? void 0 : o ? Eg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
10540
10540
  (i = n[s]) && (r = i(r) || r);
10541
10541
  return r;
10542
10542
  }, sr = (n, e) => (t, o) => e(t, o, n);
10543
10543
  const Qi = 1.5;
10544
- let ho = class extends Rt {
10544
+ let go = class extends Rt {
10545
10545
  constructor(n, e, t, o) {
10546
10546
  super(), this._context = n, this._textSelectionManagerService = e, this._editorService = t, this._docSkeletonManagerService = o, this._init();
10547
10547
  }
@@ -10550,7 +10550,7 @@ let ho = class extends Rt {
10550
10550
  if (n == null)
10551
10551
  return;
10552
10552
  const { isEditing: e, unitId: t } = n;
10553
- t !== this._context.unitId || !e || this._context.unitId !== yo && this._scrollToSelection();
10553
+ t !== this._context.unitId || !e || this._context.unitId !== Dn && this._scrollToSelection();
10554
10554
  });
10555
10555
  }
10556
10556
  scrollToRange(n) {
@@ -10565,7 +10565,7 @@ let ho = class extends Rt {
10565
10565
  const { unitId: e, scene: t, mainComponent: o } = this._context, r = this._docSkeletonManagerService.getSkeleton();
10566
10566
  if (o == null || r == null)
10567
10567
  return;
10568
- const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new St(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } = $n(d), u = l + i, g = A + a, f = t.getViewport(je.VIEW_MAIN), p = this._editorService.getEditor(e);
10568
+ const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new St(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } = eo(d), u = l + i, g = A + a, f = t.getViewport(je.VIEW_MAIN), p = this._editorService.getEditor(e);
10569
10569
  if (f == null)
10570
10570
  return;
10571
10571
  const {
@@ -10589,11 +10589,11 @@ let ho = class extends Rt {
10589
10589
  e && this.scrollToNode(t);
10590
10590
  }
10591
10591
  };
10592
- ho = Ig([
10592
+ go = Ig([
10593
10593
  sr(1, j(Y)),
10594
10594
  sr(2, Ye),
10595
10595
  sr(3, j(de))
10596
- ], ho);
10596
+ ], go);
10597
10597
  var Sg = Object.getOwnPropertyDescriptor, vg = (n, e, t, o) => {
10598
10598
  for (var r = o > 1 ? void 0 : o ? Sg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
10599
10599
  (i = n[s]) && (r = i(r) || r);
@@ -10765,7 +10765,7 @@ let xr = class {
10765
10765
  };
10766
10766
  xr = bg([
10767
10767
  ir(0, j(Ke)),
10768
- ir(1, j(wn)),
10768
+ ir(1, j(Pn)),
10769
10769
  ir(2, Wr)
10770
10770
  ], xr);
10771
10771
  var yg = Object.getOwnPropertyDescriptor, xg = (n, e, t, o) => {
@@ -10773,22 +10773,22 @@ var yg = Object.getOwnPropertyDescriptor, xg = (n, e, t, o) => {
10773
10773
  (i = n[s]) && (r = i(r) || r);
10774
10774
  return r;
10775
10775
  }, Og = (n, e) => (t, o) => e(t, o, n);
10776
- let go = class extends Rt {
10776
+ let fo = class extends Rt {
10777
10777
  constructor(e) {
10778
10778
  super();
10779
10779
  O(this, "_docContainerController");
10780
10780
  this._injector = e, this._docContainerController = this._injector.createInstance(xr);
10781
10781
  }
10782
10782
  };
10783
- go = xg([
10784
- Og(0, j(wn))
10785
- ], go);
10783
+ fo = xg([
10784
+ Og(0, j(Pn))
10785
+ ], fo);
10786
10786
  var Tg = Object.getOwnPropertyDescriptor, Bg = (n, e, t, o) => {
10787
10787
  for (var r = o > 1 ? void 0 : o ? Tg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
10788
10788
  (i = n[s]) && (r = i(r) || r);
10789
10789
  return r;
10790
10790
  }, Ui = (n, e) => (t, o) => e(t, o, n);
10791
- let fo = class extends me {
10791
+ let po = class extends me {
10792
10792
  constructor(n, e) {
10793
10793
  super(), this._docAutoFormatService = n, this._renderManagerService = e, this._initListTabAutoFormat(), this._initSpaceAutoFormat(), this._initDefaultEnterFormat(), this._initExitListAutoFormat();
10794
10794
  }
@@ -10815,7 +10815,7 @@ let fo = class extends me {
10815
10815
  return [{
10816
10816
  id: fr.id,
10817
10817
  params: {
10818
- type: e != null && e.shift ? Xn.decrease : Xn.increase
10818
+ type: e != null && e.shift ? Zn.decrease : Zn.increase
10819
10819
  }
10820
10820
  }];
10821
10821
  },
@@ -10893,10 +10893,10 @@ let fo = class extends me {
10893
10893
  return e ? e.nestingLevel > 0 ? [{
10894
10894
  id: fr.id,
10895
10895
  params: {
10896
- type: Xn.decrease
10896
+ type: Zn.decrease
10897
10897
  }
10898
10898
  }] : [{
10899
- id: Hn.id,
10899
+ id: kn.id,
10900
10900
  params: {
10901
10901
  listType: n.paragraphs[0].bullet.listType
10902
10902
  }
@@ -10920,10 +10920,10 @@ let fo = class extends me {
10920
10920
  );
10921
10921
  }
10922
10922
  };
10923
- fo = Bg([
10923
+ po = Bg([
10924
10924
  Ui(0, j(wt)),
10925
10925
  Ui(1, pe)
10926
- ], fo);
10926
+ ], po);
10927
10927
  function Mg(n) {
10928
10928
  return n.rows[0].cells[0].sections[0].columns[0].lines[0];
10929
10929
  }
@@ -11033,8 +11033,8 @@ var Lg = Object.getOwnPropertyDescriptor, Qg = (n, e, t, o) => {
11033
11033
  for (var r = o > 1 ? void 0 : o ? Lg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11034
11034
  (i = n[s]) && (r = i(r) || r);
11035
11035
  return r;
11036
- }, zn = (n, e) => (t, o) => e(t, o, n);
11037
- let po = class extends me {
11036
+ }, Gn = (n, e) => (t, o) => e(t, o, n);
11037
+ let mo = class extends me {
11038
11038
  constructor(e, t, o, r) {
11039
11039
  super();
11040
11040
  O(this, "_onInputSubscription");
@@ -11324,7 +11324,7 @@ let po = class extends me {
11324
11324
  }
11325
11325
  _scrollToFocusNodePosition(e, t) {
11326
11326
  var r;
11327
- const o = (r = this._renderManagerService.getRenderById(e)) == null ? void 0 : r.with(ho);
11327
+ const o = (r = this._renderManagerService.getRenderById(e)) == null ? void 0 : r.with(go);
11328
11328
  o != null && o.scrollToRange({
11329
11329
  startOffset: t,
11330
11330
  endOffset: t,
@@ -11335,12 +11335,12 @@ let po = class extends me {
11335
11335
  return ld(this._univerInstanceService, this._renderManagerService);
11336
11336
  }
11337
11337
  };
11338
- po = Qg([
11339
- zn(0, L),
11340
- zn(1, pe),
11341
- zn(2, j(Y)),
11342
- zn(3, T)
11343
- ], po);
11338
+ mo = Qg([
11339
+ Gn(0, L),
11340
+ Gn(1, pe),
11341
+ Gn(2, j(Y)),
11342
+ Gn(3, T)
11343
+ ], mo);
11344
11344
  function Hi(n, e) {
11345
11345
  var o, r;
11346
11346
  let t = null;
@@ -11413,7 +11413,7 @@ var Fg = Object.getOwnPropertyDescriptor, Hg = (n, e, t, o) => {
11413
11413
  (i = n[s]) && (r = i(r) || r);
11414
11414
  return r;
11415
11415
  }, ki = (n, e) => (t, o) => e(t, o, n);
11416
- let mo = class extends me {
11416
+ let Eo = class extends me {
11417
11417
  constructor(n, e) {
11418
11418
  super(), this._commandService = n, this._componentManager = e, this._initialize();
11419
11419
  }
@@ -11432,15 +11432,15 @@ let mo = class extends me {
11432
11432
  _init() {
11433
11433
  }
11434
11434
  };
11435
- mo = Hg([
11435
+ Eo = Hg([
11436
11436
  ki(0, T),
11437
11437
  ki(1, j(sn))
11438
- ], mo);
11438
+ ], Eo);
11439
11439
  var kg = Object.getOwnPropertyDescriptor, Vg = (n, e, t, o) => {
11440
11440
  for (var r = o > 1 ? void 0 : o ? kg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11441
11441
  (i = n[s]) && (r = i(r) || r);
11442
11442
  return r;
11443
- }, Gn = (n, e) => (t, o) => e(t, o, n);
11443
+ }, Yn = (n, e) => (t, o) => e(t, o, n);
11444
11444
  let Or = class extends me {
11445
11445
  constructor(n, e, t, o, r) {
11446
11446
  super(), this._context = n, this._docSkeletonManagerService = e, this._commandService = t, this._docEventManagerService = o, this._textSelectionManagerService = r, this._initPointerDownObserver(), this._initHoverCursor();
@@ -11469,17 +11469,17 @@ let Or = class extends me {
11469
11469
  }
11470
11470
  };
11471
11471
  Or = Vg([
11472
- Gn(1, j(de)),
11473
- Gn(2, T),
11474
- Gn(3, j(Pt)),
11475
- Gn(4, j(Y))
11472
+ Yn(1, j(de)),
11473
+ Yn(2, T),
11474
+ Yn(3, j(Pt)),
11475
+ Yn(4, j(Y))
11476
11476
  ], Or);
11477
11477
  var Wg = Object.getOwnPropertyDescriptor, jg = (n, e, t, o) => {
11478
11478
  for (var r = o > 1 ? void 0 : o ? Wg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11479
11479
  (i = n[s]) && (r = i(r) || r);
11480
11480
  return r;
11481
11481
  }, un = (n, e) => (t, o) => e(t, o, n);
11482
- let Eo = class extends Rt {
11482
+ let Io = class extends Rt {
11483
11483
  constructor(n, e, t, o, r, s) {
11484
11484
  super(), this._context = n, this._commandService = e, this._docClipboardService = t, this._docSelectionRenderService = o, this._contextService = r, this._editorService = s, this._init();
11485
11485
  }
@@ -11500,13 +11500,13 @@ let Eo = class extends Rt {
11500
11500
  });
11501
11501
  }
11502
11502
  };
11503
- Eo = jg([
11503
+ Io = jg([
11504
11504
  un(1, T),
11505
11505
  un(2, Lt),
11506
11506
  un(3, j(Re)),
11507
11507
  un(4, Hr),
11508
11508
  un(5, Ye)
11509
- ], Eo);
11509
+ ], Io);
11510
11510
  var zg = Object.getOwnPropertyDescriptor, Gg = (n, e, t, o) => {
11511
11511
  for (var r = o > 1 ? void 0 : o ? zg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11512
11512
  (i = n[s]) && (r = i(r) || r);
@@ -11515,7 +11515,7 @@ var zg = Object.getOwnPropertyDescriptor, Gg = (n, e, t, o) => {
11515
11515
  const Yg = [
11516
11516
  Xi,
11517
11517
  Yc,
11518
- yo,
11518
+ Dn,
11519
11519
  ot
11520
11520
  ];
11521
11521
  let Tr = class extends me {
@@ -11525,7 +11525,7 @@ let Tr = class extends me {
11525
11525
  _initPointerDown() {
11526
11526
  var t, o;
11527
11527
  const e = ((o = (t = this._context) == null ? void 0 : t.mainComponent) == null ? void 0 : o.onPointerDown$).subscribeEvent((r) => {
11528
- r.button === 2 && this._contextMenuService.triggerContextMenu(r, oo.MAIN_AREA);
11528
+ r.button === 2 && this._contextMenuService.triggerContextMenu(r, ro.MAIN_AREA);
11529
11529
  });
11530
11530
  this.disposeWithMe(e);
11531
11531
  }
@@ -11546,7 +11546,7 @@ var Kg = Object.getOwnPropertyDescriptor, qg = (n, e, t, o) => {
11546
11546
  (i = n[s]) && (r = i(r) || r);
11547
11547
  return r;
11548
11548
  }, Gt = (n, e) => (t, o) => e(t, o, n);
11549
- let Io = class extends me {
11549
+ let So = class extends me {
11550
11550
  constructor(e, t, o, r, s, i, a) {
11551
11551
  super();
11552
11552
  O(this, "_initialEditors", /* @__PURE__ */ new Set());
@@ -11587,8 +11587,8 @@ let Io = class extends me {
11587
11587
  })
11588
11588
  ), this.disposeWithMe(
11589
11589
  this._docSelectionRenderService.onBlur$.subscribe(() => {
11590
- const { unitId: e } = this._context, t = this._editorService.getEditor(e), o = this._editorService.getFocusEditor();
11591
- t == null || t.isSheetEditor() || o && o.getEditorId() === e || e.includes("range_selector") || e.includes("embedding_formula_editor") || this._editorService.blur();
11590
+ const { unitId: e } = this._context, t = this._editorService.getEditor(e), o = this._editorService.getFocusEditor(), r = this._getEditorSkeleton();
11591
+ r && (r.resetInitialWidth(), !(t == null || !r || t.isSheetEditor() || o && o.getEditorId() === e) && (e.includes("range_selector") || e.includes("embedding_formula_editor") || this._editorService.blur()));
11592
11592
  })
11593
11593
  );
11594
11594
  }
@@ -11637,20 +11637,24 @@ let Io = class extends me {
11637
11637
  })
11638
11638
  );
11639
11639
  }
11640
+ _getEditorSkeleton() {
11641
+ var e;
11642
+ return (e = this._renderManagerService.getRenderById(Dn)) == null ? void 0 : e.with(de).getSkeleton();
11643
+ }
11640
11644
  };
11641
- Io = qg([
11645
+ So = qg([
11642
11646
  Gt(1, L),
11643
11647
  Gt(2, Ye),
11644
11648
  Gt(3, T),
11645
11649
  Gt(4, j(Re)),
11646
11650
  Gt(5, j(de)),
11647
11651
  Gt(6, pe)
11648
- ], Io);
11652
+ ], So);
11649
11653
  var Xg = Object.getOwnPropertyDescriptor, Zg = (n, e, t, o) => {
11650
11654
  for (var r = o > 1 ? void 0 : o ? Xg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11651
11655
  (i = n[s]) && (r = i(r) || r);
11652
11656
  return r;
11653
- }, Yn = (n, e) => (t, o) => e(t, o, n);
11657
+ }, Kn = (n, e) => (t, o) => e(t, o, n);
11654
11658
  let Br = class extends me {
11655
11659
  constructor(e, t, o, r, s) {
11656
11660
  super();
@@ -11707,16 +11711,16 @@ let Br = class extends me {
11707
11711
  }
11708
11712
  };
11709
11713
  Br = Zg([
11710
- Yn(1, j(Re)),
11711
- Yn(2, j(Lo)),
11712
- Yn(3, j(de)),
11713
- Yn(4, T)
11714
+ Kn(1, j(Re)),
11715
+ Kn(2, j(Lo)),
11716
+ Kn(3, j(de)),
11717
+ Kn(4, T)
11714
11718
  ], Br);
11715
11719
  var Jg = Object.getOwnPropertyDescriptor, $g = (n, e, t, o) => {
11716
11720
  for (var r = o > 1 ? void 0 : o ? Jg(e, t) : e, s = n.length - 1, i; s >= 0; s--)
11717
11721
  (i = n[s]) && (r = i(r) || r);
11718
11722
  return r;
11719
- }, Kn = (n, e) => (t, o) => e(t, o, n);
11723
+ }, qn = (n, e) => (t, o) => e(t, o, n);
11720
11724
  let Mr = class extends me {
11721
11725
  constructor(e, t, o, r, s) {
11722
11726
  super();
@@ -11768,10 +11772,10 @@ let Mr = class extends me {
11768
11772
  }
11769
11773
  };
11770
11774
  Mr = $g([
11771
- Kn(1, j(Re)),
11772
- Kn(2, j(de)),
11773
- Kn(3, T),
11774
- Kn(4, j(ct))
11775
+ qn(1, j(Re)),
11776
+ qn(2, j(de)),
11777
+ qn(3, T),
11778
+ qn(4, j(ct))
11775
11779
  ], Mr);
11776
11780
  class Ns extends me {
11777
11781
  constructor(e) {
@@ -11806,7 +11810,7 @@ let _r = class extends me {
11806
11810
  _initResize() {
11807
11811
  this.disposeWithMe(
11808
11812
  _t(this._context.engine.onTransformChange$).pipe(
11809
- ro((n) => n.type === oa.resize),
11813
+ so((n) => n.type === oa.resize),
11810
11814
  bn(0, Kl)
11811
11815
  ).subscribe(() => {
11812
11816
  this._docPageLayoutService.calculatePagePosition(), this._textSelectionManagerService.refreshSelection();
@@ -11961,7 +11965,7 @@ let wr = class extends me {
11961
11965
  constructor(e, t, o, r, s, i, a, c, d) {
11962
11966
  super();
11963
11967
  O(this, "_isSheetEditor", !1);
11964
- this._context = e, this._contextService = t, this._docSkeletonManagerService = o, this._univerInstanceService = r, this._commandService = s, this._textSelectionManagerService = i, this._editorService = a, this._docPageLayoutService = c, this._renderManagerService = d, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), this._isSheetEditor = this._context.unitId === yo;
11968
+ this._context = e, this._contextService = t, this._docSkeletonManagerService = o, this._univerInstanceService = r, this._commandService = s, this._textSelectionManagerService = i, this._editorService = a, this._docPageLayoutService = c, this._renderManagerService = d, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), this._isSheetEditor = this._context.unitId === Dn;
11965
11969
  const l = this._univerInstanceService.getCurrentUnitOfType(_.UNIVER_SHEET), A = l && this._renderManagerService.getRenderById(l.getUnitId());
11966
11970
  setTimeout(() => this.updateViewZoom(A && this._isSheetEditor ? A.scene.scaleX : 1, !0), 20), bt(this._context.unitId) || this._initZoomEventListener();
11967
11971
  }
@@ -11971,7 +11975,7 @@ let wr = class extends me {
11971
11975
  return;
11972
11976
  const { unitId: t, scene: o } = this._context;
11973
11977
  this._editorService.isEditor(t) || this.disposeWithMe(o.onMouseWheel$.subscribeEvent((r) => {
11974
- if (!r.ctrlKey || !this._contextService.getContextValue(Dn))
11978
+ if (!r.ctrlKey || !this._contextService.getContextValue(wn))
11975
11979
  return;
11976
11980
  const s = this._univerInstanceService.getCurrentUniverDocInstance();
11977
11981
  if (!s)
@@ -11984,7 +11988,7 @@ let wr = class extends me {
11984
11988
  c *= r.deltaY > 0 ? -1 : 1, o.scaleX < 1 && (c /= 2);
11985
11989
  const d = s.zoomRatio;
11986
11990
  let l = +Number.parseFloat(`${d + c}`).toFixed(1);
11987
- l = l >= 4 ? 4 : l <= 0.1 ? 0.1 : l, this._commandService.executeCommand(Zn.id, {
11991
+ l = l >= 4 ? 4 : l <= 0.1 ? 0.1 : l, this._commandService.executeCommand(Jn.id, {
11988
11992
  zoomRatio: l,
11989
11993
  unitId: s.getUnitId()
11990
11994
  }), r.preventDefault();
@@ -12011,7 +12015,7 @@ let wr = class extends me {
12011
12015
  }
12012
12016
  })), this.disposeWithMe(
12013
12017
  this._commandService.beforeCommandExecuted((t) => {
12014
- t.id === Vo.id && this._commandService.executeCommand(Zn.id, {
12018
+ t.id === Vo.id && this._commandService.executeCommand(Jn.id, {
12015
12019
  zoomRatio: 1,
12016
12020
  unitId: this._context.unitId
12017
12021
  });
@@ -12035,7 +12039,7 @@ let wr = class extends me {
12035
12039
  r *= t.deltaY > 0 ? -1 : 1, e.scaleX < 1 && (r /= 2);
12036
12040
  const s = this._context.unit.zoomRatio;
12037
12041
  let i = +Number.parseFloat(`${s + r}`).toFixed(1);
12038
- i = i >= 4 ? 4 : i <= 0.1 ? 0.1 : i, this._commandService.executeCommand(Zn.id, {
12042
+ i = i >= 4 ? 4 : i <= 0.1 ? 0.1 : i, this._commandService.executeCommand(Jn.id, {
12039
12043
  zoomRatio: Math.round(i * 10) / 10,
12040
12044
  documentId: this._context.unitId
12041
12045
  }), t.preventDefault();
@@ -12083,7 +12087,7 @@ var df = Object.getOwnPropertyDescriptor, Af = (n, e, t, o) => {
12083
12087
  return r;
12084
12088
  }, hn = (n, e) => (t, o) => e(t, o, n);
12085
12089
  const ji = 300;
12086
- let So = class extends Rt {
12090
+ let vo = class extends Rt {
12087
12091
  constructor(e, t, o, r, s) {
12088
12092
  super();
12089
12093
  O(this, "_docStateChange$", new Fe(null));
@@ -12202,20 +12206,20 @@ let So = class extends Rt {
12202
12206
  t.length = 0, this._docStateChange$.next(u);
12203
12207
  }
12204
12208
  };
12205
- So = Af([
12209
+ vo = Af([
12206
12210
  hn(0, j(xo)),
12207
12211
  hn(1, T),
12208
12212
  hn(2, L),
12209
12213
  hn(3, j(tl)),
12210
12214
  hn(4, pe)
12211
- ], So);
12215
+ ], vo);
12212
12216
  var uf = Object.getOwnPropertyDescriptor, hf = (n, e, t, o) => {
12213
12217
  for (var r = o > 1 ? void 0 : o ? uf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
12214
12218
  (i = n[s]) && (r = i(r) || r);
12215
12219
  return r;
12216
12220
  }, zi = (n, e) => (t, o) => e(t, o, n);
12217
12221
  const Gi = "univer-doc-main-canvas";
12218
- let vo = class extends Rt {
12222
+ let Co = class extends Rt {
12219
12223
  constructor(n, e) {
12220
12224
  super(), this._instanceSrv = n, this._renderManagerService = e, this._init();
12221
12225
  }
@@ -12237,10 +12241,10 @@ let vo = class extends Rt {
12237
12241
  this._renderManagerService.removeRender(e);
12238
12242
  }
12239
12243
  };
12240
- vo = hf([
12244
+ Co = hf([
12241
12245
  zi(0, L),
12242
12246
  zi(1, pe)
12243
- ], vo);
12247
+ ], Co);
12244
12248
  const gf = {
12245
12249
  id: yn.id,
12246
12250
  preconditions: dh,
@@ -12312,7 +12316,7 @@ const gf = {
12312
12316
  }, yf = {
12313
12317
  id: Ta.id,
12314
12318
  binding: q.A | te.CTRL_COMMAND,
12315
- preconditions: (n) => n.getContextValue(kr) && (n.getContextValue(Dn) || n.getContextValue(to))
12319
+ preconditions: (n) => n.getContextValue(kr) && (n.getContextValue(wn) || n.getContextValue(no))
12316
12320
  };
12317
12321
  var xf = Object.defineProperty, Of = Object.getOwnPropertyDescriptor, Tf = (n, e, t) => e in n ? xf(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Bf = (n, e, t, o) => {
12318
12322
  for (var r = o > 1 ? void 0 : o ? Of(e, t) : e, s = n.length - 1, i; s >= 0; s--)
@@ -12332,19 +12336,19 @@ let Pr = class extends Zc {
12332
12336
  }
12333
12337
  onReady() {
12334
12338
  this._initRenderBasics(), this._markDocAsFocused(), Vs(this._injector, [
12335
- [So],
12336
- [vo]
12339
+ [vo],
12340
+ [Co]
12337
12341
  ]);
12338
12342
  }
12339
12343
  onRendered() {
12340
12344
  this._initUI(), this._initRenderModules(), Vs(this._injector, [
12341
- [fo],
12342
12345
  [po],
12343
- [nn],
12344
12346
  [mo],
12347
+ [nn],
12348
+ [Eo],
12345
12349
  // FIXME: LifecycleStages.Rendered must be used, otherwise the menu cannot be added to the DOM, but the sheet ui
12346
12350
  // plugin can be added in LifecycleStages.Ready
12347
- [uo]
12351
+ [ho]
12348
12352
  ]);
12349
12353
  }
12350
12354
  // eslint-disable-next-line max-lines-per-function
@@ -12361,7 +12365,7 @@ let Pr = class extends Zc {
12361
12365
  lt,
12362
12366
  tn,
12363
12367
  Et,
12364
- Fn,
12368
+ Hn,
12365
12369
  It,
12366
12370
  xt,
12367
12371
  Yr,
@@ -12374,7 +12378,7 @@ let Pr = class extends Zc {
12374
12378
  nt,
12375
12379
  Tn,
12376
12380
  On,
12377
- Hn,
12381
+ kn,
12378
12382
  Uo,
12379
12383
  Fo,
12380
12384
  Ho,
@@ -12390,7 +12394,7 @@ let Pr = class extends Zc {
12390
12394
  Os,
12391
12395
  Ss,
12392
12396
  vs,
12393
- kn,
12397
+ Vn,
12394
12398
  _s,
12395
12399
  Ga,
12396
12400
  Jt,
@@ -12398,7 +12402,7 @@ let Pr = class extends Zc {
12398
12402
  yn,
12399
12403
  fr,
12400
12404
  Qo,
12401
- io,
12405
+ ao,
12402
12406
  Na,
12403
12407
  La,
12404
12408
  Ba,
@@ -12409,7 +12413,7 @@ let Pr = class extends Zc {
12409
12413
  Xd,
12410
12414
  Da,
12411
12415
  Zd,
12412
- Zn,
12416
+ Jn,
12413
12417
  Ta,
12414
12418
  ws,
12415
12419
  vt,
@@ -12427,7 +12431,7 @@ let Pr = class extends Zc {
12427
12431
  fs,
12428
12432
  ps,
12429
12433
  ms,
12430
- ao,
12434
+ co,
12431
12435
  Ua,
12432
12436
  Fa,
12433
12437
  ds,
@@ -12438,7 +12442,7 @@ let Pr = class extends Zc {
12438
12442
  Ds
12439
12443
  ].forEach((n) => {
12440
12444
  this.disposeWithMe(this._commandService.registerCommand(n));
12441
- }), [so, ss, as].forEach((n) => this.disposeWithMe(this._commandService.registerMultipleCommand(n)));
12445
+ }), [io, ss, as].forEach((n) => this.disposeWithMe(this._commandService.registerMultipleCommand(n)));
12442
12446
  }
12443
12447
  _initializeShortcut() {
12444
12448
  [
@@ -12462,19 +12466,19 @@ let Pr = class extends Zc {
12462
12466
  _initDependencies(n) {
12463
12467
  $c([
12464
12468
  [lf],
12465
- [Eo],
12466
12469
  [Io],
12467
- [uo],
12468
- [fo],
12469
- [mo],
12470
+ [So],
12471
+ [ho],
12470
12472
  [po],
12471
- [go],
12473
+ [Eo],
12474
+ [mo],
12475
+ [fo],
12472
12476
  [nn],
12473
12477
  [Ye, { useClass: vr }],
12474
12478
  [Lt, { useClass: hr }],
12475
12479
  [Mn],
12480
+ [Co],
12476
12481
  [vo],
12477
- [So],
12478
12482
  [wt],
12479
12483
  [ct]
12480
12484
  ], this._config.override).forEach((t) => n.add(t));
@@ -12491,7 +12495,7 @@ let Pr = class extends Zc {
12491
12495
  }
12492
12496
  }
12493
12497
  _initUI() {
12494
- this._injector.get(go);
12498
+ this._injector.get(fo);
12495
12499
  }
12496
12500
  _initRenderBasics() {
12497
12501
  [
@@ -12509,18 +12513,18 @@ let Pr = class extends Zc {
12509
12513
  _initRenderModules() {
12510
12514
  [
12511
12515
  [Pt],
12512
- [lo],
12513
12516
  [Ao],
12514
- [ho],
12517
+ [uo],
12518
+ [go],
12515
12519
  [Dr],
12516
12520
  [Rr],
12517
12521
  [_r],
12518
12522
  [Tr],
12519
12523
  [Or],
12520
- [Eo],
12524
+ [Io],
12521
12525
  [Mr],
12522
12526
  [Br],
12523
- [Io]
12527
+ [So]
12524
12528
  ].forEach((n) => {
12525
12529
  this._renderManagerSrv.registerRenderModule(_.UNIVER_DOC, n);
12526
12530
  });
@@ -12529,7 +12533,7 @@ let Pr = class extends Zc {
12529
12533
  Mf(Pr, "pluginName", id);
12530
12534
  Pr = Bf([
12531
12535
  Xc(Il),
12532
- gn(1, j(wn)),
12536
+ gn(1, j(Pn)),
12533
12537
  gn(2, pe),
12534
12538
  gn(3, T),
12535
12539
  gn(4, Ur),
@@ -12730,7 +12734,7 @@ function Nf(n, e) {
12730
12734
  if (r.id === X.id) {
12731
12735
  if (r.params.unitId !== n.getEditorId()) return;
12732
12736
  const c = n.getDocumentData();
12733
- e(c, no((i = (s = c.body) == null ? void 0 : s.dataStream) != null ? i : ""));
12737
+ e(c, oo((i = (s = c.body) == null ? void 0 : s.dataStream) != null ? i : ""));
12734
12738
  }
12735
12739
  });
12736
12740
  return () => {
@@ -12780,7 +12784,7 @@ const ep = (n) => {
12780
12784
  const U = En((k) => {
12781
12785
  var ae, oe;
12782
12786
  const ne = x == null ? void 0 : x.with(de), ie = ne == null ? void 0 : ne.getSkeleton().getActualSize();
12783
- ie && (A == null || A(ie.actualHeight), E(Math.max(u, Math.min(ie.actualHeight + 10, g)))), h == null || h(k, no((oe = (ae = k.body) == null ? void 0 : ae.dataStream) != null ? oe : "")), $();
12787
+ ie && (A == null || A(ie.actualHeight), E(Math.max(u, Math.min(ie.actualHeight + 10, g)))), h == null || h(k, oo((oe = (ae = k.body) == null ? void 0 : ae.dataStream) != null ? oe : "")), $();
12784
12788
  });
12785
12789
  return Ce(() => {
12786
12790
  var ne, ie;
@@ -12793,7 +12797,7 @@ const ep = (n) => {
12793
12797
  }, [C]), tt(C == null ? void 0 : C.blur$), tt(C == null ? void 0 : C.focus$), Ce(() => {
12794
12798
  var ne, ie;
12795
12799
  const k = C == null ? void 0 : C.getDocumentData();
12796
- S == null || S(F, no((ie = (ne = k == null ? void 0 : k.body) == null ? void 0 : ne.dataStream) != null ? ie : ""));
12800
+ S == null || S(F, oo((ie = (ne = k == null ? void 0 : k.body) == null ? void 0 : ne.dataStream) != null ? ie : ""));
12797
12801
  }, [F, S]), Ce(() => {
12798
12802
  const k = (ie) => {
12799
12803
  var oe, he;
@@ -12807,7 +12811,7 @@ const ep = (n) => {
12807
12811
  }, [C, y, I, v]), Pf(F && a, !1, C), _f(F, i, C), Nf(C, U), /* @__PURE__ */ Q("div", { className: e, style: c, children: /* @__PURE__ */ re(
12808
12812
  "div",
12809
12813
  {
12810
- className: Ge("univer-relative univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-md univer-pb-0.5 univer-pl-1.5 univer-pr-2 univer-pt-1.5", Ln, {
12814
+ className: Ge("univer-relative univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-around univer-gap-2 univer-rounded-md univer-pb-0.5 univer-pl-1.5 univer-pr-2 univer-pt-1.5", Qn, {
12811
12815
  "univer-border-primary-500": F
12812
12816
  }),
12813
12817
  style: { height: R },
@@ -12843,9 +12847,9 @@ export {
12843
12847
  Yr as BreakLineCommand,
12844
12848
  On as BulletListCommand,
12845
12849
  fr as ChangeListNestingLevelCommand,
12846
- Xn as ChangeListNestingLevelType,
12850
+ Zn as ChangeListNestingLevelType,
12847
12851
  Qo as ChangeListTypeCommand,
12848
- io as CheckListCommand,
12852
+ ao as CheckListCommand,
12849
12853
  Zd as CoverContentCommand,
12850
12854
  ja as CreateDocTableCommand,
12851
12855
  $t as CutContentCommand,
@@ -12863,9 +12867,9 @@ export {
12863
12867
  wo as DeleteLeftCommand,
12864
12868
  ya as DeleteRightCommand,
12865
12869
  wt as DocAutoFormatService,
12866
- ho as DocBackScrollRenderController,
12870
+ go as DocBackScrollRenderController,
12867
12871
  Mn as DocCanvasPopManagerService,
12868
- so as DocCopyCommand,
12872
+ io as DocCopyCommand,
12869
12873
  Ts as DocCreateTableOperation,
12870
12874
  ss as DocCutCommand,
12871
12875
  Pt as DocEventManagerService,
@@ -12875,10 +12879,10 @@ export {
12875
12879
  yr as DocRenderController,
12876
12880
  Ta as DocSelectAllCommand,
12877
12881
  Re as DocSelectionRenderService,
12878
- So as DocStateChangeManagerService,
12882
+ vo as DocStateChangeManagerService,
12879
12883
  vs as DocTableDeleteColumnsCommand,
12880
12884
  Ss as DocTableDeleteRowsCommand,
12881
- kn as DocTableDeleteTableCommand,
12885
+ Vn as DocTableDeleteTableCommand,
12882
12886
  vA as DocTableInsertColumnCommand,
12883
12887
  xs as DocTableInsertColumnLeftCommand,
12884
12888
  Os as DocTableInsertColumnRightCommand,
@@ -12886,8 +12890,8 @@ export {
12886
12890
  ys as DocTableInsertRowBellowCommand,
12887
12891
  za as DocTableInsertRowCommand,
12888
12892
  Ga as DocTableTabCommand,
12889
- uo as DocUIController,
12890
- vo as DocsRenderService,
12893
+ ho as DocUIController,
12894
+ Co as DocsRenderService,
12891
12895
  fg as DocsUIMenuSchema,
12892
12896
  WA as Editor,
12893
12897
  Dd as EditorInsertTextCommandId,
@@ -12900,7 +12904,7 @@ export {
12900
12904
  va as InnerPasteCommand,
12901
12905
  Ca as InsertCommand,
12902
12906
  eA as InsertCustomRangeCommand,
12903
- Hn as ListOperationCommand,
12907
+ kn as ListOperationCommand,
12904
12908
  $r as MergeTwoParagraphCommand,
12905
12909
  vt as MoveCursorOperation,
12906
12910
  Ct as MoveSelectionOperation,
@@ -12917,9 +12921,9 @@ export {
12917
12921
  Pa as ReplaceSelectionCommand,
12918
12922
  Da as ReplaceSnapshotCommand,
12919
12923
  $d as ReplaceTextRunsCommand,
12920
- Fn as ResetInlineFormatTextBackgroundColorCommand,
12924
+ Hn as ResetInlineFormatTextBackgroundColorCommand,
12921
12925
  ep as RichTextEditor,
12922
- Zn as SetDocZoomRatioCommand,
12926
+ Jn as SetDocZoomRatioCommand,
12923
12927
  nt as SetDocZoomRatioOperation,
12924
12928
  Qt as SetInlineFormatBoldCommand,
12925
12929
  xt as SetInlineFormatCommand,
@@ -12950,7 +12954,7 @@ export {
12950
12954
  Jf as docDrawingPositionToTransform,
12951
12955
  Ea as genTableSource,
12952
12956
  ma as generateParagraphs,
12953
- $n as getAnchorBounding,
12957
+ eo as getAnchorBounding,
12954
12958
  uA as getCanvasOffsetByEngine,
12955
12959
  qe as getCommandSkeleton,
12956
12960
  es as getCursorWhenDelete,