@univerjs/docs-ui 0.7.0-beta.0 → 0.7.0-nightly.202504301607

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/es/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  var Dc = Object.defineProperty;
2
2
  var Nc = (n, e, t) => e in n ? Dc(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var O = (n, e, t) => Nc(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { IUniverInstanceService as L, Inject as z, Disposable as ge, toDisposable as Pn, UniverInstanceType as _, BuildTextUtils as le, JSONX as W, ObjectRelativeFromV as ht, ObjectRelativeFromH as Ro, ICommandService as T, generateRandomId as Fe, DisposableCollection as vn, CommandType as P, debounce as Dr, IUndoRedoService as bo, TextX as me, Tools as ne, TextXActionType as G, DOC_RANGE_TYPE as He, RANGE_DIRECTION as Pe, COLORS as pn, BooleanNumber as j, Rectangle as wc, ILogService as Nr, RxDisposable as Et, DataStreamTreeTokenType as V, isInternalEditorID as vt, IContextService as wr, Injector as Dn, createIdentifier as Yi, EDITOR_ACTIVATED as to, FOCUSING_EDITOR_STANDALONE as Qs, HorizontalAlign as Qe, VerticalAlign as Lc, DEFAULT_EMPTY_DOCUMENT_VALUE as Ki, Direction as Ae, getPlainText as no, createInternalEditorID as Qc, LocaleService as Ye, DocumentFlavor as De, PresetListType as be, TableRowHeightRule as Uc, TableSizeType as qi, TableTextWrapType as Fc, TableAlignmentType as Hc, MemoryCursor as Lt, SHEET_EDITOR_UNITS as In, UpdateDocsAttributeType as rn, PositionedObjectLayoutType as yo, BlockType as kc, LRUMap as Vc, BaselineOffset as ke, ColorKit as Us, DrawingTypeEnum as Lr, skipParseTagNames as Wc, CustomRangeType as Qr, DataStreamTreeNodeType as cn, SliceBodyType as sr, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ur, normalizeBody as zc, getBodySlice as Xi, FOCUSING_DOC as Nn, DashStyleType as jc, PRESET_LIST_TYPE as Gc, GridType as Yc, sortRulesFactory as Kc, NamedStyleType as K, PageOrientType as qc, PAPER_TYPES as Xc, PAGE_SIZE as ir, DOCS_ZEN_EDITOR_UNIT_ID_KEY as ot, ThemeService as Ji, DEFAULT_STYLES as Zi, NAMED_STYLE_MAP as Jc, fromEventSubject as Bt, deepCompare as Zc, sequenceExecuteAsync as Fr, FOCUSING_UNIVER_EDITOR as Hr, FOCUSING_COMMON_DRAWINGS as $i, SpacingRule as Jt, IConfigService as kr, QuickListTypeMap as Wo, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as $c, checkForSubstrings as el, createInterceptorKey as ea, InterceptorManager as tl, UndoCommandId as Fs, RedoCommandId as Hs, DependentOn as nl, Plugin as ol, merge as rl, touchDependencies as ks, mergeOverrideWithDependencies as sl } from "@univerjs/core";
4
+ import { IUniverInstanceService as L, Inject as z, Disposable as ge, toDisposable as Pn, UniverInstanceType as _, BuildTextUtils as le, JSONX as W, ObjectRelativeFromV as gt, ObjectRelativeFromH as Ro, ICommandService as T, generateRandomId as Fe, DisposableCollection as vn, CommandType as P, debounce as Dr, IUndoRedoService as bo, TextX as me, Tools as ne, TextXActionType as G, DOC_RANGE_TYPE as He, RANGE_DIRECTION as Pe, COLORS as pn, BooleanNumber as j, Rectangle as wc, ILogService as Nr, RxDisposable as vt, DataStreamTreeTokenType as V, isInternalEditorID as It, IContextService as wr, Injector as Dn, createIdentifier as Yi, EDITOR_ACTIVATED as to, FOCUSING_EDITOR_STANDALONE as Qs, HorizontalAlign as Qe, VerticalAlign as Lc, DEFAULT_EMPTY_DOCUMENT_VALUE as Ki, Direction as Ae, getPlainText as no, createInternalEditorID as Qc, LocaleService as Ye, DocumentFlavor as De, PresetListType as be, TableRowHeightRule as Uc, TableSizeType as qi, TableTextWrapType as Fc, TableAlignmentType as Hc, MemoryCursor as Lt, SHEET_EDITOR_UNITS as In, UpdateDocsAttributeType as rn, PositionedObjectLayoutType as yo, BlockType as kc, LRUMap as Vc, BaselineOffset as ke, ColorKit as Us, DrawingTypeEnum as Lr, skipParseTagNames as Wc, CustomRangeType as Qr, DataStreamTreeNodeType as cn, SliceBodyType as sr, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ur, normalizeBody as zc, getBodySlice as Xi, FOCUSING_DOC as Nn, DashStyleType as jc, PRESET_LIST_TYPE as Gc, GridType as Yc, sortRulesFactory as Kc, NamedStyleType as K, PageOrientType as qc, PAPER_TYPES as Xc, PAGE_SIZE as ir, DOCS_ZEN_EDITOR_UNIT_ID_KEY as ot, ThemeService as Ji, DEFAULT_STYLES as Zi, NAMED_STYLE_MAP as Jc, fromEventSubject as Mt, deepCompare as Zc, sequenceExecuteAsync as Fr, FOCUSING_UNIVER_EDITOR as Hr, FOCUSING_COMMON_DRAWINGS as $i, SpacingRule as Jt, IConfigService as kr, QuickListTypeMap as Wo, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as $c, checkForSubstrings as el, createInterceptorKey as ea, InterceptorManager as tl, UndoCommandId as Fs, RedoCommandId as Hs, DependentOn as nl, Plugin as ol, merge as rl, touchDependencies as ks, mergeOverrideWithDependencies as sl } from "@univerjs/core";
5
5
  import { DocSelectionManagerService as Y, RichTextEditingMutation as Z, DocSkeletonManagerService as ue, SetTextSelectionsOperation as we, DocStateEmitService as il, DocInterceptorService as al } from "@univerjs/docs";
6
6
  import { DeviceInputEventType as ta, ScrollBar as ar, IRenderManagerService as fe, Liquid as na, GlyphType as oa, DocumentSkeletonPageType as xe, getPageFromPath as cr, getTableIdAndSliceIndex as Vs, NORMAL_TEXT_SELECTION_PLUGIN_STYLE as Cn, getColor as mn, RegularPolygon as ra, Rect as qn, getOffsetRectForDom as cl, ScrollTimer as ll, CURSOR_TYPE as _t, getSystemHighlightColor as dl, Vector2 as Rn, PageLayoutType as bn, DocumentEditArea as ve, Shape as Al, Path as Ws, hasListGlyph as ul, isIndentByGlyph as hl, isFirstGlyph as gl, getParagraphByGlyph as fl, pixelToPt as pl, ptToPixel as zs, parseDataStreamToTree as ml, getCharSpaceApply as Sl, getNumberUnitValue as et, pxToNum as sa, TRANSFORM_CHANGE_OBSERVABLE_TYPE as ia, Viewport as El, Layer as js, Documents as vl, DocBackground as Il, getLastLine as Cl, lineIterator as Rl, getLastColumn as bl, UniverRenderEnginePlugin as yl } from "@univerjs/engine-render";
7
7
  import { useDependency as ee, IShortcutService as xo, ILayoutService as Oo, KeyCode as J, MetaKeys as re, useEvent as En, useObservable as tt, ComponentManager as sn, ISidebarService as aa, IClipboardInterfaceService as ca, FILE_PNG_CLIPBOARD_MIME_TYPE as xl, FILE__WEBP_CLIPBOARD_MIME_TYPE as Ol, FILE__JPEG_CLIPBOARD_MIME_TYPE as Tl, FILE__BMP_CLIPBOARD_MIME_TYPE as Bl, HTML_CLIPBOARD_MIME_TYPE as la, PLAIN_TEXT_CLIPBOARD_MIME_TYPE as da, CopyCommand as Ml, CutCommand as _l, PasteCommand as Pl, IConfirmService as Aa, getMenuHiddenObservable as ae, MenuItemType as $, FONT_FAMILY_LIST as Dl, FONT_SIZE_LIST as Nl, HEADING_LIST as Gs, COMMON_LABEL_COMPONENT as wl, HEADING_ITEM_COMPONENT as Ll, ICanvasPopupService as Ql, IMenuManagerService as ua, ToolbarItem as Ul, MenuManagerPosition as Fl, RectPopup as Hl, DesktopMenu as kl, ContextMenuPosition as oo, Slider as Vl, useConfigValue as ha, ContextMenuGroup as ln, RibbonStartGroup as Ys, IUIPartsService as Wl, FontFamily as zl, FontFamilyItem as jl, FontSize as Gl, BuiltInUIPart as Ks, connectInjector as qs, imageMimeTypeSet as Yl, IContextMenuService as Kl } from "@univerjs/ui";
8
8
  import Xs, { useMemo as _e, useEffect as Ie, useCallback as ga, useState as pe, useLayoutEffect as fa, useRef as je, forwardRef as Oe, createElement as Te, useImperativeHandle as ql } from "react";
9
9
  import { jsx as U, jsxs as ie, Fragment as Xl } from "react/jsx-runtime";
10
- import { clsx as Mt, Checkbox as Js, InputNumber as it, Button as Jl, Select as pa, Tooltip as Zl, ColorPicker as $l } from "@univerjs/design";
11
- import { Subject as Re, BehaviorSubject as Ue, merge as ma, filter as ro, takeUntil as gt, fromEvent as ze, Observable as Se, map as wn, combineLatest as Ln, distinctUntilChanged as zt, throttleTime as yn, switchMap as ed, take as td, first as nd, of as od, animationFrameScheduler as rd } from "rxjs";
10
+ import { clsx as ht, Checkbox as Js, InputNumber as it, Button as Jl, Select as pa, Tooltip as Zl, ColorPicker as $l } from "@univerjs/design";
11
+ import { Subject as Re, BehaviorSubject as Ue, merge as ma, filter as ro, takeUntil as ft, fromEvent as ze, Observable as Se, map as wn, combineLatest as Ln, distinctUntilChanged as zt, throttleTime as yn, switchMap as ed, take as td, first as nd, of as od, animationFrameScheduler as rd } from "rxjs";
12
12
  import { filter as lr, bufferTime as sd, map as id } from "rxjs/operators";
13
13
  import { ImageSourceType as Vr } from "@univerjs/drawing";
14
14
  var ad = Object.getOwnPropertyDescriptor, cd = (n, e, t, o) => {
@@ -101,7 +101,7 @@ const ld = {
101
101
  }, Ad = "DOC_UI_PLUGIN";
102
102
  var $e = /* @__PURE__ */ ((n) => (n.MAIN = "__Document_Render_Main__", n.BACKGROUND = "__Document_Render_Background__", n))($e || {}), We = /* @__PURE__ */ ((n) => (n.VIEW_MAIN = "viewMain", n.VIEW_TOP = "viewTop", n.VIEW_LEFT = "viewLeft", n.VIEW_LEFT_TOP = "viewLeftTop", n))(We || {});
103
103
  const ud = 0, zo = 2, hd = 4, $s = 10, $f = "normalTextSelectionPluginName";
104
- function ft(n) {
104
+ function pt(n) {
105
105
  const { mainComponent: e, scene: t, engine: o, components: r } = n, s = e, i = r.get($e.BACKGROUND);
106
106
  return {
107
107
  document: s,
@@ -244,7 +244,7 @@ function sp(n, e = 0, t = 0) {
244
244
  posOffset: (n.left || 0) - e
245
245
  },
246
246
  positionV: {
247
- relativeFrom: ht.PAGE,
247
+ relativeFrom: gt.PAGE,
248
248
  posOffset: (n.top || 0) - t
249
249
  },
250
250
  angle: n.angle || 0
@@ -583,7 +583,7 @@ function Ar(n) {
583
583
  y: t
584
584
  }), s;
585
585
  }
586
- class pt {
586
+ class mt {
587
587
  constructor(e, t) {
588
588
  O(this, "_liquid", new na());
589
589
  O(this, "_currentStartState", {
@@ -1081,7 +1081,7 @@ class Zt {
1081
1081
  const e = this.anchorNodePosition, t = this.focusNodePosition;
1082
1082
  if (this._isEmpty())
1083
1083
  return;
1084
- const o = this._document.getOffsetConfig(), { docsLeft: r, docsTop: s } = o, i = new pt(o, this._docSkeleton);
1084
+ const o = this._document.getOffsetConfig(), { docsLeft: r, docsTop: s } = o, i = new mt(o, this._docSkeleton);
1085
1085
  if (this._isCollapsed()) {
1086
1086
  const { contentBoxPointGroup: l, cursorList: A } = i.getRangePointData(e, e);
1087
1087
  if (this._setCursorList(A), l.length === 0)
@@ -1141,7 +1141,7 @@ class Zt {
1141
1141
  const { _document: e, _docSkeleton: t } = this, o = this.anchorNodePosition, r = this.focusNodePosition;
1142
1142
  if ((A = this._anchorShape) == null || A.hide(), (h = this._rangeShape) == null || h.hide(), this._isEmpty())
1143
1143
  return;
1144
- const s = e.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new pt(s, t);
1144
+ const s = e.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new mt(s, t);
1145
1145
  if (this._isCollapsed()) {
1146
1146
  const { contentBoxPointGroup: u, cursorList: g } = c.getRangePointData(o, o);
1147
1147
  if (this._setCursorList(g), u.length > 0) {
@@ -1540,7 +1540,7 @@ var Nd = Object.getOwnPropertyDescriptor, wd = (n, e, t, o) => {
1540
1540
  (i = n[s]) && (r = i(r) || r);
1541
1541
  return r;
1542
1542
  }, Vn = (n, e) => (t, o) => e(t, o, n);
1543
- let Ce = class extends Et {
1543
+ let Ce = class extends vt {
1544
1544
  constructor(e, t, o, r, s) {
1545
1545
  super();
1546
1546
  O(this, "_onInputBefore$", new Re());
@@ -1607,7 +1607,7 @@ let Ce = class extends Et {
1607
1607
  return this.isFocusing || document.activeElement === document.body || document.activeElement === null;
1608
1608
  }
1609
1609
  _listenCurrentUnitChange() {
1610
- this._univerInstanceService.getCurrentTypeOfUnit$(_.UNIVER_DOC).pipe(gt(this.dispose$)).subscribe((e) => {
1610
+ this._univerInstanceService.getCurrentTypeOfUnit$(_.UNIVER_DOC).pipe(ft(this.dispose$)).subscribe((e) => {
1611
1611
  if (e == null)
1612
1612
  return;
1613
1613
  e.getUnitId() !== this._context.unitId && !this._reserveRanges && this.removeAllRanges();
@@ -2447,7 +2447,7 @@ class Ld extends ge {
2447
2447
  return (o = this._injector.get(fe).getRenderById(this._getEditorId())) == null ? void 0 : o.with(ue).getSkeleton();
2448
2448
  }
2449
2449
  isSheetEditor() {
2450
- return vt(this._getEditorId());
2450
+ return It(this._getEditorId());
2451
2451
  }
2452
2452
  /**
2453
2453
  * @deprecated use getDocumentData.
@@ -2495,7 +2495,7 @@ var Qd = Object.getOwnPropertyDescriptor, Ud = (n, e, t, o) => {
2495
2495
  for (var r = o > 1 ? void 0 : o ? Qd(e, t) : e, s = n.length - 1, i; s >= 0; s--)
2496
2496
  (i = n[s]) && (r = i(r) || r);
2497
2497
  return r;
2498
- }, yt = (n, e) => (t, o) => e(t, o, n);
2498
+ }, xt = (n, e) => (t, o) => e(t, o, n);
2499
2499
  const Fd = [
2500
2500
  "editor",
2501
2501
  "render-canvas"
@@ -2559,7 +2559,7 @@ let fr = class extends ge {
2559
2559
  return;
2560
2560
  this._univerInstanceService.setCurrentUnitForType(e);
2561
2561
  const o = t.getValue().length;
2562
- this._contextService.setContextValue(to, !0), vt(e) || this._contextService.setContextValue(Qs, !0), t.focus(), this._setFocusId(e), this._focus$.next({
2562
+ this._contextService.setContextValue(to, !0), It(e) || this._contextService.setContextValue(Qs, !0), t.focus(), this._setFocusId(e), this._focus$.next({
2563
2563
  startOffset: o,
2564
2564
  endOffset: o
2565
2565
  });
@@ -2630,13 +2630,13 @@ let fr = class extends ge {
2630
2630
  }
2631
2631
  };
2632
2632
  fr = Ud([
2633
- yt(0, L),
2634
- yt(1, fe),
2635
- yt(2, z(Y)),
2636
- yt(3, wr),
2637
- yt(4, T),
2638
- yt(5, bo),
2639
- yt(6, z(Dn))
2633
+ xt(0, L),
2634
+ xt(1, fe),
2635
+ xt(2, z(Y)),
2636
+ xt(3, wr),
2637
+ xt(4, T),
2638
+ xt(5, bo),
2639
+ xt(6, z(Dn))
2640
2640
  ], fr);
2641
2641
  const Ge = Yi("univer.editor.service");
2642
2642
  function Hd(n) {
@@ -2685,11 +2685,11 @@ function Hd(n) {
2685
2685
  }
2686
2686
  }, []), a;
2687
2687
  }
2688
- const mt = {
2688
+ const St = {
2689
2689
  id: "doc.operation.move-cursor",
2690
2690
  type: P.OPERATION,
2691
2691
  handler: (n, e) => !!e
2692
- }, St = {
2692
+ }, Et = {
2693
2693
  id: "doc.operation.move-selection",
2694
2694
  type: P.OPERATION,
2695
2695
  handler: (n, e) => !!e
@@ -2706,9 +2706,9 @@ const mt = {
2706
2706
  return;
2707
2707
  }
2708
2708
  let f = Ae.LEFT;
2709
- u === J.ARROW_DOWN ? f = Ae.DOWN : u === J.ARROW_UP ? f = Ae.UP : u === J.ARROW_RIGHT && (f = Ae.RIGHT), g === re.SHIFT ? r.executeCommand(St.id, {
2709
+ u === J.ARROW_DOWN ? f = Ae.DOWN : u === J.ARROW_UP ? f = Ae.UP : u === J.ARROW_RIGHT && (f = Ae.RIGHT), g === re.SHIFT ? r.executeCommand(Et.id, {
2710
2710
  direction: f
2711
- }) : r.executeCommand(mt.id, {
2711
+ }) : r.executeCommand(St.id, {
2712
2712
  direction: f
2713
2713
  });
2714
2714
  };
@@ -2838,7 +2838,7 @@ const ip = (n) => {
2838
2838
  }, [I, y, E, C]), kd(F && a, !1, I), pd(F, i, I), Vd(I, Q), /* @__PURE__ */ U("div", { className: e, style: c, children: /* @__PURE__ */ ie(
2839
2839
  "div",
2840
2840
  {
2841
- className: Mt(`
2841
+ className: ht(`
2842
2842
  univer-relative univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center
2843
2843
  univer-justify-around univer-gap-2 univer-rounded univer-border univer-border-solid
2844
2844
  univer-border-gray-200 univer-pb-0.5 univer-pl-1.5 univer-pr-2 univer-pt-1.5
@@ -3353,11 +3353,11 @@ let mr = class extends ge {
3353
3353
  this._componentManager.get(pr) || this.disposeWithMe(this._componentManager.register(pr, uA));
3354
3354
  }
3355
3355
  _init() {
3356
- const { unitId: e } = this._context, t = ft(this._context);
3356
+ const { unitId: e } = this._context, t = pt(this._context);
3357
3357
  t == null || t.document == null || this._loadedMap.has(t.document) || (this._initialMain(e), this._loadedMap.add(t.document));
3358
3358
  }
3359
3359
  _initialMain(e) {
3360
- const t = ft(this._context), { document: o } = t;
3360
+ const t = pt(this._context), { document: o } = t;
3361
3361
  this.disposeWithMe(o.onDblclick$.subscribeEvent(async (r) => {
3362
3362
  if (this._isEditorReadOnly(e) || !this._isTraditionalMode())
3363
3363
  return;
@@ -3391,7 +3391,7 @@ let mr = class extends ge {
3391
3391
  }));
3392
3392
  }
3393
3393
  _getTransformCoordForDocumentOffset(e, t) {
3394
- const o = ft(this._context), { document: r, scene: s } = o, { documentTransform: i } = r.getOffsetConfig(), a = s.getViewports()[0];
3394
+ const o = pt(this._context), { document: r, scene: s } = o, { documentTransform: i } = r.getOffsetConfig(), a = s.getViewports()[0];
3395
3395
  if (a == null)
3396
3396
  return;
3397
3397
  const c = a.transformVector2SceneCoord(Rn.FromArray([e, t]));
@@ -3652,7 +3652,7 @@ const Zn = "doc.command.core-header-footer", Wa = {
3652
3652
  return /* @__PURE__ */ U("div", { className: "univer-grid univer-grid-cols-3 univer-gap-2 univer-p-1.5", children: o.map((r) => /* @__PURE__ */ U(
3653
3653
  "a",
3654
3654
  {
3655
- className: Mt(`
3655
+ className: ht(`
3656
3656
  univer-block univer-h-20 univer-w-[72px] univer-cursor-pointer univer-overflow-hidden
3657
3657
  univer-rounded univer-border univer-border-solid univer-border-gray-200 univer-transition-all
3658
3658
  hover:univer-border-primary-500
@@ -3817,7 +3817,7 @@ function Xa(n, e, t) {
3817
3817
  posOffset: 0
3818
3818
  },
3819
3819
  positionV: {
3820
- relativeFrom: ht.PAGE,
3820
+ relativeFrom: gt.PAGE,
3821
3821
  posOffset: 0
3822
3822
  }
3823
3823
  },
@@ -5176,7 +5176,7 @@ const Ai = 660, Co = class Co {
5176
5176
  posOffset: 0
5177
5177
  },
5178
5178
  positionV: {
5179
- relativeFrom: ht.PARAGRAPH,
5179
+ relativeFrom: gt.PARAGRAPH,
5180
5180
  posOffset: 0
5181
5181
  }
5182
5182
  },
@@ -5849,7 +5849,7 @@ let Er = class extends ge {
5849
5849
  angle: 0,
5850
5850
  size: { width: h, height: u },
5851
5851
  positionH: { relativeFrom: Ro.CHARACTER, posOffset: 0 },
5852
- positionV: { relativeFrom: ht.LINE, posOffset: 0 }
5852
+ positionV: { relativeFrom: gt.LINE, posOffset: 0 }
5853
5853
  }
5854
5854
  };
5855
5855
  })), this._umdToHtml.convert([t]);
@@ -6135,7 +6135,7 @@ const As = {
6135
6135
  }
6136
6136
  };
6137
6137
  function qe(n, e, t) {
6138
- return t.executeCommand(Ct.id, {
6138
+ return t.executeCommand(Rt.id, {
6139
6139
  preCommandId: n,
6140
6140
  ...e != null ? e : {}
6141
6141
  });
@@ -6184,7 +6184,7 @@ const gi = "doc.command.set-inline-format-bold", Ut = {
6184
6184
  t
6185
6185
  );
6186
6186
  }
6187
- }, Si = "doc.command.set-inline-format-subscript", It = {
6187
+ }, Si = "doc.command.set-inline-format-subscript", Ct = {
6188
6188
  id: Si,
6189
6189
  type: P.COMMAND,
6190
6190
  handler: async (n, e) => {
@@ -6271,9 +6271,9 @@ const gi = "doc.command.set-inline-format-bold", Ut = {
6271
6271
  [Dt.id]: "cl",
6272
6272
  [Nt.id]: "bg",
6273
6273
  [Fn.id]: "bg",
6274
- [It.id]: "va",
6274
+ [Ct.id]: "va",
6275
6275
  [Vt.id]: "va"
6276
- }, Ct = {
6276
+ }, Rt = {
6277
6277
  id: "doc.command.set-inline-format",
6278
6278
  type: P.COMMAND,
6279
6279
  // eslint-disable-next-line max-lines-per-function, complexity
@@ -6299,7 +6299,7 @@ const gi = "doc.command.set-inline-format-bold", Ut = {
6299
6299
  // fallthrough
6300
6300
  case kt.id:
6301
6301
  // fallthrough
6302
- case It.id:
6302
+ case Ct.id:
6303
6303
  // fallthrough
6304
6304
  case Vt.id: {
6305
6305
  const S = a.getDefaultStyle(), b = cc(
@@ -6398,7 +6398,7 @@ function ac(n, e, t) {
6398
6398
  s: j.TRUE
6399
6399
  };
6400
6400
  if (/va/.test(e))
6401
- return t === It.id ? (n == null ? void 0 : n[e]) === ke.SUBSCRIPT ? ke.NORMAL : ke.SUBSCRIPT : (n == null ? void 0 : n[e]) === ke.SUPERSCRIPT ? ke.NORMAL : ke.SUPERSCRIPT;
6401
+ return t === Ct.id ? (n == null ? void 0 : n[e]) === ke.SUBSCRIPT ? ke.NORMAL : ke.SUBSCRIPT : (n == null ? void 0 : n[e]) === ke.SUPERSCRIPT ? ke.NORMAL : ke.SUPERSCRIPT;
6402
6402
  }
6403
6403
  function cc(n, e, t) {
6404
6404
  var l, A, h, u, g, f, p, m, E, v, C, R, S, b;
@@ -7006,16 +7006,16 @@ const Xe = {
7006
7006
  if (N == null)
7007
7007
  continue;
7008
7008
  const F = M.docTransform.positionV, { relativeFrom: D, posOffset: w } = F;
7009
- if (D === ht.PARAGRAPH)
7009
+ if (D === gt.PARAGRAPH)
7010
7010
  continue;
7011
7011
  const { startIndex: X } = N, q = a.findNodeByCharIndex(X, d, l), Q = (R = q == null ? void 0 : q.parent) == null ? void 0 : R.parent, H = Q == null ? void 0 : Q.parent, k = H == null ? void 0 : H.lines.find((de) => de.paragraphIndex === (Q == null ? void 0 : Q.paragraphIndex) && de.paragraphStart), te = (S = H == null ? void 0 : H.parent) == null ? void 0 : S.parent;
7012
7012
  if (q == null || Q == null || k == null || H == null || te == null)
7013
7013
  continue;
7014
7014
  let se = 0;
7015
- D === ht.LINE ? se -= Q.top : D === ht.PAGE && (se += te.marginTop), se += k.top;
7015
+ D === gt.LINE ? se -= Q.top : D === gt.PAGE && (se += te.marginTop), se += k.top;
7016
7016
  const ce = {
7017
7017
  ...F,
7018
- relativeFrom: ht.PARAGRAPH,
7018
+ relativeFrom: gt.PARAGRAPH,
7019
7019
  posOffset: (w != null ? w : 0) - se
7020
7020
  }, oe = g.replaceOp(["drawings", x, "docTransform", "positionV"], F, ce);
7021
7021
  oe && f.push(oe);
@@ -7165,7 +7165,7 @@ function cu(n) {
7165
7165
  }
7166
7166
  }));
7167
7167
  };
7168
- return /* @__PURE__ */ ie("div", { className: "univer-theme univer-flex univer-flex-col univer-gap-4", children: [
7168
+ return /* @__PURE__ */ ie("div", { className: "univer-flex univer-flex-col univer-gap-4", children: [
7169
7169
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-flex-col univer-gap-2", children: [
7170
7170
  /* @__PURE__ */ U("label", { className: "univer-text-sm univer-font-medium univer-text-[#0E111E]", children: s.t("page-settings.paper-size") }),
7171
7171
  /* @__PURE__ */ U(
@@ -7447,7 +7447,7 @@ function uu(n) {
7447
7447
  activated$: new Se((t) => {
7448
7448
  const o = () => {
7449
7449
  var a;
7450
- const s = Rt(n);
7450
+ const s = bt(n);
7451
7451
  if (s == null) {
7452
7452
  t.next(!1);
7453
7453
  return;
@@ -7456,7 +7456,7 @@ function uu(n) {
7456
7456
  t.next(i === j.TRUE);
7457
7457
  }, r = e.onCommandExecuted((s) => {
7458
7458
  const i = s.id;
7459
- (i === we.id || i === Ct.id) && o();
7459
+ (i === we.id || i === Rt.id) && o();
7460
7460
  });
7461
7461
  return o(), r.dispose;
7462
7462
  }),
@@ -7475,7 +7475,7 @@ function hu(n) {
7475
7475
  activated$: new Se((t) => {
7476
7476
  const o = () => {
7477
7477
  var a;
7478
- const s = Rt(n);
7478
+ const s = bt(n);
7479
7479
  if (s == null) {
7480
7480
  t.next(!1);
7481
7481
  return;
@@ -7484,7 +7484,7 @@ function hu(n) {
7484
7484
  t.next(i === j.TRUE);
7485
7485
  }, r = e.onCommandExecuted((s) => {
7486
7486
  const i = s.id;
7487
- (i === we.id || i === Ct.id) && o();
7487
+ (i === we.id || i === Rt.id) && o();
7488
7488
  });
7489
7489
  return o(), r.dispose;
7490
7490
  }),
@@ -7503,7 +7503,7 @@ function gu(n) {
7503
7503
  activated$: new Se((t) => {
7504
7504
  const o = () => {
7505
7505
  var a;
7506
- const s = Rt(n);
7506
+ const s = bt(n);
7507
7507
  if (s == null) {
7508
7508
  t.next(!1);
7509
7509
  return;
@@ -7512,7 +7512,7 @@ function gu(n) {
7512
7512
  t.next((i == null ? void 0 : i.s) === j.TRUE);
7513
7513
  }, r = e.onCommandExecuted((s) => {
7514
7514
  const i = s.id;
7515
- (i === we.id || i === Ct.id) && o();
7515
+ (i === we.id || i === Rt.id) && o();
7516
7516
  });
7517
7517
  return o(), r.dispose;
7518
7518
  }),
@@ -7531,7 +7531,7 @@ function fu(n) {
7531
7531
  activated$: new Se((t) => {
7532
7532
  const o = () => {
7533
7533
  var a;
7534
- const s = Rt(n);
7534
+ const s = bt(n);
7535
7535
  if (s == null) {
7536
7536
  t.next(!1);
7537
7537
  return;
@@ -7540,7 +7540,7 @@ function fu(n) {
7540
7540
  t.next((i == null ? void 0 : i.s) === j.TRUE);
7541
7541
  }, r = e.onCommandExecuted((s) => {
7542
7542
  const i = s.id;
7543
- (i === we.id || i === Ct.id) && o();
7543
+ (i === we.id || i === Rt.id) && o();
7544
7544
  });
7545
7545
  return o(), r.dispose;
7546
7546
  }),
@@ -7551,14 +7551,14 @@ function fu(n) {
7551
7551
  function pu(n) {
7552
7552
  const e = n.get(T);
7553
7553
  return {
7554
- id: It.id,
7554
+ id: Ct.id,
7555
7555
  type: $.BUTTON,
7556
7556
  icon: "SubscriptSingle",
7557
7557
  tooltip: "toolbar.subscript",
7558
7558
  activated$: new Se((t) => {
7559
7559
  const o = () => {
7560
7560
  var a;
7561
- const s = Rt(n);
7561
+ const s = bt(n);
7562
7562
  if (s == null) {
7563
7563
  t.next(!1);
7564
7564
  return;
@@ -7567,7 +7567,7 @@ function pu(n) {
7567
7567
  t.next(i === ke.SUBSCRIPT);
7568
7568
  }, r = e.onCommandExecuted((s) => {
7569
7569
  const i = s.id;
7570
- (i === we.id || i === Ct.id) && o();
7570
+ (i === we.id || i === Rt.id) && o();
7571
7571
  });
7572
7572
  return o(), r.dispose;
7573
7573
  }),
@@ -7585,7 +7585,7 @@ function mu(n) {
7585
7585
  activated$: new Se((t) => {
7586
7586
  const o = () => {
7587
7587
  var a;
7588
- const s = Rt(n);
7588
+ const s = bt(n);
7589
7589
  if (s == null) {
7590
7590
  t.next(!1);
7591
7591
  return;
@@ -7594,7 +7594,7 @@ function mu(n) {
7594
7594
  t.next(i === ke.SUPERSCRIPT);
7595
7595
  }, r = e.onCommandExecuted((s) => {
7596
7596
  const i = s.id;
7597
- (i === we.id || i === Ct.id) && o();
7597
+ (i === we.id || i === Rt.id) && o();
7598
7598
  });
7599
7599
  return o(), r.dispose;
7600
7600
  }),
@@ -7619,7 +7619,7 @@ function Su(n) {
7619
7619
  value$: new Se((t) => {
7620
7620
  const o = Zi.ff, r = () => {
7621
7621
  var c;
7622
- const i = Rt(n);
7622
+ const i = bt(n);
7623
7623
  if (i == null) {
7624
7624
  t.next(o);
7625
7625
  return;
@@ -7655,7 +7655,7 @@ function Eu(n) {
7655
7655
  value$: new Se((t) => {
7656
7656
  const o = Zi.fs, r = () => {
7657
7657
  var c;
7658
- const i = Rt(n);
7658
+ const i = bt(n);
7659
7659
  if (i == null) {
7660
7660
  t.next(o);
7661
7661
  return;
@@ -8024,7 +8024,7 @@ function Du(n) {
8024
8024
  hidden$: ae(n, _.UNIVER_DOC)
8025
8025
  };
8026
8026
  }
8027
- function Rt(n) {
8027
+ function bt(n) {
8028
8028
  var g, f, p, m;
8029
8029
  const e = n.get(L), t = n.get(Y), o = n.get(at), r = e.getCurrentUnitForType(_.UNIVER_DOC), s = t.getDocRanges(), i = (g = s.find((E) => E.isActive)) != null ? g : s[0], a = o.getDefaultStyle(), c = (f = o.getStyleCache()) != null ? f : {}, d = Wt(n), l = (p = d == null ? void 0 : d.paragraphStyle) != null && p.namedStyleType ? Jc[(m = d == null ? void 0 : d.paragraphStyle) == null ? void 0 : m.namedStyleType] : null;
8030
8030
  if (r == null || i == null)
@@ -8100,7 +8100,7 @@ const wu = {
8100
8100
  [K.TITLE]: { key: "TextTypeSingle", component: Sn },
8101
8101
  [K.SUBTITLE]: { key: "TextTypeSingle", component: Sn },
8102
8102
  [K.NAMED_STYLE_TYPE_UNSPECIFIED]: { key: "TextTypeSingle", component: Sn }
8103
- }, bt = (n) => (e) => {
8103
+ }, yt = (n) => (e) => {
8104
8104
  const t = e.get(T), o = e.get(sn), r = Sc[n];
8105
8105
  return o.get(r.key) || o.register(r.key, r.component), {
8106
8106
  id: wu[n].id,
@@ -8126,9 +8126,9 @@ const wu = {
8126
8126
  return a(), c.dispose;
8127
8127
  })
8128
8128
  };
8129
- }, Lu = bt(K.HEADING_1), Qu = bt(K.HEADING_2), Uu = bt(K.HEADING_3), Fu = bt(K.HEADING_4), Hu = bt(K.HEADING_5), ku = bt(K.NORMAL_TEXT);
8130
- bt(K.TITLE);
8131
- bt(K.SUBTITLE);
8129
+ }, Lu = yt(K.HEADING_1), Qu = yt(K.HEADING_2), Uu = yt(K.HEADING_3), Fu = yt(K.HEADING_4), Hu = yt(K.HEADING_5), ku = yt(K.NORMAL_TEXT);
8130
+ yt(K.TITLE);
8131
+ yt(K.SUBTITLE);
8132
8132
  const Vu = (n) => ({
8133
8133
  id: as.id,
8134
8134
  type: $.BUTTON,
@@ -8235,7 +8235,7 @@ const tr = (n, e) => {
8235
8235
  const { scene: t, mainComponent: o, engine: r } = e, s = e.with(ue).getSkeleton(), i = s.findNodePositionByCharIndex(n.startOffset, !0, n.segmentId, n.segmentPage), a = n.collapsed ? n.startOffset : n.endOffset - 1, c = s.findNodePositionByCharIndex(a, !0, n.segmentId, n.segmentPage), d = o;
8236
8236
  if (!c || !i)
8237
8237
  return;
8238
- const l = d.getOffsetConfig(), { docsLeft: A, docsTop: h } = l, u = r.getCanvasElement(), g = u.getBoundingClientRect(), f = sa(u.style.width), { top: p, left: m, width: E } = g, v = E / f, { scaleX: C, scaleY: R } = t.getAncestorScale(), S = new pt(l, s), { borderBoxPointGroup: b } = S.getRangePointData(i, c);
8238
+ const l = d.getOffsetConfig(), { docsLeft: A, docsTop: h } = l, u = r.getCanvasElement(), g = u.getBoundingClientRect(), f = sa(u.style.width), { top: p, left: m, width: E } = g, v = E / f, { scaleX: C, scaleY: R } = t.getAncestorScale(), S = new mt(l, s), { borderBoxPointGroup: b } = S.getRangePointData(i, c);
8239
8239
  return Gr(b).map((B) => vc(B, t)).map((B) => ({
8240
8240
  left: (B.left + A * C) * v + m,
8241
8241
  right: (B.right + A * C) * v + m,
@@ -8405,7 +8405,7 @@ const nh = (n, e, t, o) => {
8405
8405
  const a = t.findNodePositionByCharIndex(i, !0, n.segmentId, o);
8406
8406
  if (!a || !r)
8407
8407
  return;
8408
- const c = e.getOffsetConfig(), d = new pt(c, t), { borderBoxPointGroup: l } = d.getRangePointData(r, a);
8408
+ const c = e.getOffsetConfig(), d = new mt(c, t), { borderBoxPointGroup: l } = d.getRangePointData(r, a);
8409
8409
  return Gr(l).map((m) => ({
8410
8410
  top: m.top + c.docsTop - Ti,
8411
8411
  bottom: m.bottom + c.docsTop + Ti,
@@ -8452,7 +8452,7 @@ const nh = (n, e, t, o) => {
8452
8452
  const r = t.findPositionByGlyph(n, o);
8453
8453
  if (!r)
8454
8454
  return;
8455
- const s = e.getOffsetConfig(), i = { ...r, isBack: !0 }, a = new pt(s, t), { borderBoxPointGroup: c } = a.getRangePointData(i, i), l = Gr(c)[0];
8455
+ const s = e.getOffsetConfig(), i = { ...r, isBack: !0 }, a = new mt(s, t), { borderBoxPointGroup: c } = a.getRangePointData(i, i), l = Gr(c)[0];
8456
8456
  return {
8457
8457
  top: l.top + s.docsTop,
8458
8458
  bottom: l.bottom + s.docsTop,
@@ -8460,7 +8460,7 @@ const nh = (n, e, t, o) => {
8460
8460
  right: l.left + s.docsLeft + n.width
8461
8461
  };
8462
8462
  };
8463
- function xt(n, e, t) {
8463
+ function Ot(n, e, t) {
8464
8464
  const { left: o, right: r, top: s, bottom: i } = t;
8465
8465
  return n >= o && n <= r && e >= s && e <= i;
8466
8466
  }
@@ -8537,7 +8537,7 @@ let wt = class extends ge {
8537
8537
  this.disposeWithMe(this._skeleton.dirty$.subscribe(() => {
8538
8538
  this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
8539
8539
  })), this.disposeWithMe(
8540
- Bt(this._context.engine.onTransformChange$).pipe(
8540
+ Mt(this._context.engine.onTransformChange$).pipe(
8541
8541
  ro((e) => e.type === ia.resize)
8542
8542
  ).subscribe(() => {
8543
8543
  this._customRangeDirty = !0, this._bulletDirty = !0, this._paragraphDirty = !0;
@@ -8545,7 +8545,7 @@ let wt = class extends ge {
8545
8545
  );
8546
8546
  }
8547
8547
  _initEvents() {
8548
- this.disposeWithMe(Bt(this._context.scene.onPointerMove$).pipe(yn(30)).subscribe((o) => {
8548
+ this.disposeWithMe(Mt(this._context.scene.onPointerMove$).pipe(yn(30)).subscribe((o) => {
8549
8549
  if (o.buttons > 0) {
8550
8550
  this._hoverBullet$.next(null), this._hoverCustomRanges$.next([]), this._hoverParagraph$.next(null), this._hoverParagraphLeft$.next(null), this._hoverTableCell$.next(null), this._hoverTable$.next(null);
8551
8551
  return;
@@ -8563,7 +8563,7 @@ let wt = class extends ge {
8563
8563
  })), this.disposeWithMe(this._context.scene.onPointerEnter$.subscribeEvent(() => {
8564
8564
  this._hoverBullet$.next(null), this._hoverCustomRanges$.next([]);
8565
8565
  }));
8566
- const e = Bt(this._context.mainComponent.onPointerDown$), t = Bt(this._context.scene.onPointerUp$);
8566
+ const e = Mt(this._context.mainComponent.onPointerDown$), t = Mt(this._context.scene.onPointerUp$);
8567
8567
  this.disposeWithMe(e.pipe(
8568
8568
  ed((o) => t.pipe(td(1), wn((r) => ({ down: o, up: r })))),
8569
8569
  ro(({ down: o, up: r }) => o.target === r.target && r.timeStamp - o.timeStamp < 300)
@@ -8608,7 +8608,7 @@ let wt = class extends ge {
8608
8608
  _calcActiveRanges(e) {
8609
8609
  this._buildCustomRangeBounds();
8610
8610
  const { x: t, y: o } = e;
8611
- return this._customRangeBounds.filter((s) => s.rects.some((i) => xt(t, o, i))).map(
8611
+ return this._customRangeBounds.filter((s) => s.rects.some((i) => Ot(t, o, i))).map(
8612
8612
  (s) => ({
8613
8613
  segmentId: s.segmentId,
8614
8614
  range: s.customRange,
@@ -8668,7 +8668,7 @@ let wt = class extends ge {
8668
8668
  _calcActiveBullet(e) {
8669
8669
  this._buildBulletBounds();
8670
8670
  const { x: t, y: o } = e;
8671
- return this._bulletBounds.find((s) => xt(t, o, s.rect));
8671
+ return this._bulletBounds.find((s) => Ot(t, o, s.rect));
8672
8672
  }
8673
8673
  // eslint-disable-next-line max-lines-per-function
8674
8674
  _buildParagraphBoundsBySegment(e) {
@@ -8776,23 +8776,23 @@ let wt = class extends ge {
8776
8776
  _calcActiveParagraph(e) {
8777
8777
  var i, a;
8778
8778
  this._buildParagraphBounds();
8779
- const { x: t, y: o } = e, r = Array.from(this._tableBounds.values()).find((c) => xt(t, o, c.rect));
8779
+ const { x: t, y: o } = e, r = Array.from(this._tableBounds.values()).find((c) => Ot(t, o, c.rect));
8780
8780
  if (this._hoverTable$.next(r), r) {
8781
- const c = (i = this._tableCellBounds.get(r.tableId)) == null ? void 0 : i.find((A) => xt(t, o, A.rect));
8781
+ const c = (i = this._tableCellBounds.get(r.tableId)) == null ? void 0 : i.find((A) => Ot(t, o, A.rect));
8782
8782
  if (this._hoverTableCell$.next(c), !c)
8783
8783
  return null;
8784
- const d = (a = this._tableParagraphBounds.get(c.tableId)) == null ? void 0 : a.filter((A) => A.colIndex === c.colIndex && A.rowIndex === c.rowIndex), l = d == null ? void 0 : d.find((A) => xt(t, o, A.rect));
8784
+ const d = (a = this._tableParagraphBounds.get(c.tableId)) == null ? void 0 : a.filter((A) => A.colIndex === c.colIndex && A.rowIndex === c.rowIndex), l = d == null ? void 0 : d.find((A) => Ot(t, o, A.rect));
8785
8785
  return l && {
8786
8786
  ...l,
8787
8787
  rects: [l.rect]
8788
8788
  };
8789
8789
  }
8790
- return this._paragraphBounds.values().find((c) => c.rects.some((d) => xt(t, o, d)));
8790
+ return this._paragraphBounds.values().find((c) => c.rects.some((d) => Ot(t, o, d)));
8791
8791
  }
8792
8792
  _calcActiveParagraphLeft(e) {
8793
8793
  this._buildParagraphBounds();
8794
8794
  const { x: t, y: o } = e;
8795
- return this._paragraphLeftBounds.find((s) => xt(t, o, s.rect));
8795
+ return this._paragraphLeftBounds.find((s) => Ot(t, o, s.rect));
8796
8796
  }
8797
8797
  get paragraphBounds() {
8798
8798
  return this._buildParagraphBounds(), this._paragraphBounds;
@@ -8812,7 +8812,7 @@ const rh = [
8812
8812
  Ft.id,
8813
8813
  Ht.id,
8814
8814
  kt.id,
8815
- It.id,
8815
+ Ct.id,
8816
8816
  Vt.id,
8817
8817
  Dt.id,
8818
8818
  Nt.id
@@ -8865,7 +8865,7 @@ let lo = class extends ge {
8865
8865
  constructor(e, t, o, r, s, i) {
8866
8866
  super();
8867
8867
  O(this, "_floatMenu", null);
8868
- this._context = e, this._docSelectionManagerService = t, this._docCanvasPopManagerService = o, this._componentManager = r, this._univerInstanceService = s, this._docSelectionRenderService = i, !vt(this._context.unitId) && (this._registerFloatMenu(), this._initSelectionChange(), this.disposeWithMe(() => {
8868
+ this._context = e, this._docSelectionManagerService = t, this._docCanvasPopManagerService = o, this._componentManager = r, this._univerInstanceService = s, this._docSelectionRenderService = i, !It(this._context.unitId) && (this._registerFloatMenu(), this._initSelectionChange(), this.disposeWithMe(() => {
8869
8869
  this._hideFloatMenu();
8870
8870
  }));
8871
8871
  }
@@ -8938,7 +8938,7 @@ let Ao = class extends ge {
8938
8938
  constructor(e, t, o, r, s, i) {
8939
8939
  super();
8940
8940
  O(this, "_paragrahMenu", null);
8941
- this._context = e, this._docSelectionManagerService = t, this._docEventManagerService = o, this._docPopupManagerService = r, this._docSkeletonManagerService = s, this._floatMenuService = i, !vt(this._context.unitId) && this._init();
8941
+ this._context = e, this._docSelectionManagerService = t, this._docEventManagerService = o, this._docPopupManagerService = r, this._docSkeletonManagerService = s, this._floatMenuService = i, !It(this._context.unitId) && this._init();
8942
8942
  }
8943
8943
  get activeParagraph() {
8944
8944
  var e;
@@ -9160,7 +9160,7 @@ const ph = {
9160
9160
  binding: J.X | re.SHIFT | re.CTRL_COMMAND,
9161
9161
  preconditions: Ee
9162
9162
  }, Ch = {
9163
- id: It.id,
9163
+ id: Ct.id,
9164
9164
  binding: J.COMMA | re.CTRL_COMMAND,
9165
9165
  preconditions: Ee
9166
9166
  }, Rh = {
@@ -9230,7 +9230,7 @@ function Ph() {
9230
9230
  );
9231
9231
  }
9232
9232
  function Dh(n) {
9233
- return /* @__PURE__ */ U("section", { className: "univer-flex univer-flex-shrink-0 univer-flex-grow-0 univer-basis-[260px] univer-justify-end", children: /* @__PURE__ */ U(Ph, {}) });
9233
+ return /* @__PURE__ */ U("section", { className: "univer-flex univer-flex-shrink-0 univer-justify-end", children: /* @__PURE__ */ U(Ph, {}) });
9234
9234
  }
9235
9235
  function Nh() {
9236
9236
  var r, s, i;
@@ -9258,12 +9258,12 @@ const wh = "univer-overflow-hidden univer-font-[500] univer-truncate univer-h-[2
9258
9258
  }), []);
9259
9259
  return ql(e, () => v), Ie(() => {
9260
9260
  c && v.scrollTo(c);
9261
- }, [c, v]), /* @__PURE__ */ ie("div", { className: Mt("univer-relative", h), style: u, children: [
9261
+ }, [c, v]), /* @__PURE__ */ ie("div", { className: ht("univer-relative", h), style: u, children: [
9262
9262
  /* @__PURE__ */ U(
9263
9263
  "div",
9264
9264
  {
9265
9265
  onClick: () => l == null ? void 0 : l(!d),
9266
- className: Mt(`
9266
+ className: ht(`
9267
9267
  univer-absolute univer-left-5 univer-top-4 univer-z-[100] univer-flex univer-h-8 univer-w-8
9268
9268
  univer-cursor-pointer univer-items-center univer-justify-center univer-rounded-full univer-bg-white
9269
9269
  univer-text-gray-800
@@ -9276,7 +9276,7 @@ const wh = "univer-overflow-hidden univer-font-[500] univer-truncate univer-h-[2
9276
9276
  /* @__PURE__ */ U(
9277
9277
  "div",
9278
9278
  {
9279
- className: Mt(
9279
+ className: ht(
9280
9280
  r,
9281
9281
  `
9282
9282
  univer-absolute univer-left-0 univer-top-0 univer-box-border univer-flex univer-min-w-[180px]
@@ -9302,15 +9302,14 @@ const wh = "univer-overflow-hidden univer-font-[500] univer-truncate univer-h-[2
9302
9302
  "div",
9303
9303
  {
9304
9304
  ref: m,
9305
- className: `
9305
+ className: ht(`
9306
9306
  univer-flex-1 univer-overflow-y-auto univer-overflow-x-hidden univer-scrollbar-none
9307
- [&::-webkit-scrollbar]:univer-hidden
9308
- `,
9307
+ `),
9309
9308
  children: t == null ? void 0 : t.map((C) => /* @__PURE__ */ U(
9310
9309
  "div",
9311
9310
  {
9312
9311
  id: `univer-side-menu-${C.id}`,
9313
- className: Mt(
9312
+ className: ht(
9314
9313
  wh,
9315
9314
  {
9316
9315
  [Lh]: C.isTitle,
@@ -9385,7 +9384,7 @@ function Wh() {
9385
9384
  Q.set(H.startIndex, H);
9386
9385
  }), Q;
9387
9386
  }, [m]);
9388
- tt(_e(() => l != null && l.engine.onTransformChange$ ? Bt(l == null ? void 0 : l.engine.onTransformChange$).pipe(yn(33)) : od(null), [l == null ? void 0 : l.engine.onTransformChange$]));
9387
+ tt(_e(() => l != null && l.engine.onTransformChange$ ? Mt(l == null ? void 0 : l.engine.onTransformChange$).pipe(yn(33)) : od(null), [l == null ? void 0 : l.engine.onTransformChange$]));
9389
9388
  const v = g < 180 ? "float" : "side-bar", C = m == null ? void 0 : m.filter(
9390
9389
  (Q) => {
9391
9390
  var H;
@@ -9425,7 +9424,7 @@ function Wh() {
9425
9424
  const Q = l == null ? void 0 : l.scene.getViewport(We.VIEW_MAIN);
9426
9425
  if (!Q)
9427
9426
  return;
9428
- const H = Bt(Q.onScrollAfter$).pipe(yn(33)).subscribe(R);
9427
+ const H = Mt(Q.onScrollAfter$).pipe(yn(33)).subscribe(R);
9429
9428
  return () => {
9430
9429
  H.unsubscribe();
9431
9430
  };
@@ -9447,7 +9446,7 @@ function Wh() {
9447
9446
  const te = u == null ? void 0 : u.get(k.startIndex);
9448
9447
  te && (H.scrollToViewportPos({ viewportScrollY: te.rect.top }), c(Q.id));
9449
9448
  });
9450
- return !t || vt(d) || !(S != null && S.length) ? null : /* @__PURE__ */ U(
9449
+ return !t || It(d) || !(S != null && S.length) ? null : /* @__PURE__ */ U(
9451
9450
  "div",
9452
9451
  {
9453
9452
  className: "univer-absolute univer-bottom-0 univer-left-0 univer-top-0 univer-z-[100] univer-w-[0px]",
@@ -9892,7 +9891,7 @@ const bs = {
9892
9891
  lineSpacing: [i, A],
9893
9892
  spacingRule: [d, h]
9894
9893
  };
9895
- }, Ot = (n) => {
9894
+ }, Tt = (n) => {
9896
9895
  const { value: e, onChange: t, className: o = "", min: r = 0, max: s = 100, step: i = 1 } = n, a = je(null);
9897
9896
  return /* @__PURE__ */ U(
9898
9897
  it,
@@ -9933,7 +9932,7 @@ function sg() {
9933
9932
  children: e.map((S) => /* @__PURE__ */ U(Zl, { title: S.label, placement: "bottom", children: /* @__PURE__ */ U(
9934
9933
  "span",
9935
9934
  {
9936
- className: Mt(`
9935
+ className: ht(`
9937
9936
  univer-flex univer-cursor-pointer univer-items-center univer-justify-center
9938
9937
  univer-rounded univer-bg-none univer-px-3 univer-py-1
9939
9938
  hover:univer-bg-black/60
@@ -9953,28 +9952,28 @@ function sg() {
9953
9952
  n.t("doc.paragraphSetting.left"),
9954
9953
  "(px)"
9955
9954
  ] }),
9956
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: s, onChange: (S) => i(S != null ? S : 0) })
9955
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: s, onChange: (S) => i(S != null ? S : 0) })
9957
9956
  ] }),
9958
9957
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-justify-between univer-item-center", children: [
9959
9958
  /* @__PURE__ */ ie("div", { className: "univer-mt-3 univer-text-xs", children: [
9960
9959
  n.t("doc.paragraphSetting.right"),
9961
9960
  "(px)"
9962
9961
  ] }),
9963
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: a, onChange: (S) => c(S != null ? S : 0) })
9962
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: a, onChange: (S) => c(S != null ? S : 0) })
9964
9963
  ] }),
9965
9964
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-justify-between univer-item-center", children: [
9966
9965
  /* @__PURE__ */ ie("div", { className: "univer-mt-3 univer-text-xs", children: [
9967
9966
  n.t("doc.paragraphSetting.firstLine"),
9968
9967
  "(px)"
9969
9968
  ] }),
9970
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: d, onChange: (S) => l(S != null ? S : 0) })
9969
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: d, onChange: (S) => l(S != null ? S : 0) })
9971
9970
  ] }),
9972
9971
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-justify-between univer-item-center", children: [
9973
9972
  /* @__PURE__ */ ie("div", { className: "univer-mt-3 univer-text-xs", children: [
9974
9973
  n.t("doc.paragraphSetting.hanging"),
9975
9974
  "(px)"
9976
9975
  ] }),
9977
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: A, onChange: (S) => h(S != null ? S : 0) })
9976
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: A, onChange: (S) => h(S != null ? S : 0) })
9978
9977
  ] })
9979
9978
  ] }),
9980
9979
  /* @__PURE__ */ U("div", { className: "univer-t-4 univer-text-[13px] univer-font-medium", children: n.t("doc.paragraphSetting.spacing") }),
@@ -9984,14 +9983,14 @@ function sg() {
9984
9983
  n.t("doc.paragraphSetting.before"),
9985
9984
  "(px)"
9986
9985
  ] }),
9987
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: u, onChange: (S) => g(S != null ? S : 0) })
9986
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: u, onChange: (S) => g(S != null ? S : 0) })
9988
9987
  ] }),
9989
9988
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-justify-between univer-item-center", children: [
9990
9989
  /* @__PURE__ */ ie("div", { className: "univer-mt-3 univer-text-xs", children: [
9991
9990
  n.t("doc.paragraphSetting.after"),
9992
9991
  "(px)"
9993
9992
  ] }),
9994
- /* @__PURE__ */ U(Ot, { className: "univer-mt-4", value: f, onChange: (S) => p(S != null ? S : 0) })
9993
+ /* @__PURE__ */ U(Tt, { className: "univer-mt-4", value: f, onChange: (S) => p(S != null ? S : 0) })
9995
9994
  ] }),
9996
9995
  /* @__PURE__ */ ie("div", { className: "univer-flex univer-justify-between item-center", children: [
9997
9996
  /* @__PURE__ */ U("div", { className: "univer-mt-3 univer-text-xs", children: n.t("doc.paragraphSetting.lineSpace") }),
@@ -10013,7 +10012,7 @@ function sg() {
10013
10012
  }
10014
10013
  ),
10015
10014
  /* @__PURE__ */ U(
10016
- Ot,
10015
+ Tt,
10017
10016
  {
10018
10017
  ...R,
10019
10018
  value: m,
@@ -10266,7 +10265,7 @@ const yg = {
10266
10265
  order: 3,
10267
10266
  menuItemFactory: fu
10268
10267
  },
10269
- [It.id]: {
10268
+ [Ct.id]: {
10270
10269
  order: 4,
10271
10270
  menuItemFactory: pu
10272
10271
  },
@@ -10565,12 +10564,12 @@ var Tg = Object.getOwnPropertyDescriptor, Bg = (n, e, t, o) => {
10565
10564
  return r;
10566
10565
  }, or = (n, e) => (t, o) => e(t, o, n);
10567
10566
  const Qi = 1.5;
10568
- let ho = class extends Et {
10567
+ let ho = class extends vt {
10569
10568
  constructor(n, e, t, o) {
10570
10569
  super(), this._context = n, this._textSelectionManagerService = e, this._editorService = t, this._docSkeletonManagerService = o, this._init();
10571
10570
  }
10572
10571
  _init() {
10573
- this._textSelectionManagerService.textSelection$.pipe(gt(this.dispose$)).subscribe((n) => {
10572
+ this._textSelectionManagerService.textSelection$.pipe(ft(this.dispose$)).subscribe((n) => {
10574
10573
  if (n == null)
10575
10574
  return;
10576
10575
  const { isEditing: e, unitId: t } = n;
@@ -10589,7 +10588,7 @@ let ho = class extends Et {
10589
10588
  const { unitId: e, scene: t, mainComponent: o } = this._context, r = this._docSkeletonManagerService.getSkeleton();
10590
10589
  if (o == null || r == null)
10591
10590
  return;
10592
- const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new pt(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } = Jn(d), u = l + i, g = A + a, f = t.getViewport(We.VIEW_MAIN), p = this._editorService.getEditor(e);
10591
+ const s = o.getOffsetConfig(), { docsLeft: i, docsTop: a } = s, c = new mt(s, r), { contentBoxPointGroup: d } = c.getRangePointData(n, n), { left: l, top: A, height: h } = Jn(d), u = l + i, g = A + a, f = t.getViewport(We.VIEW_MAIN), p = this._editorService.getEditor(e);
10593
10592
  if (f == null)
10594
10593
  return;
10595
10594
  const {
@@ -10623,7 +10622,7 @@ var Mg = Object.getOwnPropertyDescriptor, _g = (n, e, t, o) => {
10623
10622
  (i = n[s]) && (r = i(r) || r);
10624
10623
  return r;
10625
10624
  }, Gt = (n, e) => (t, o) => e(t, o, n);
10626
- let Rr = class extends Et {
10625
+ let Rr = class extends vt {
10627
10626
  constructor(n, e, t, o, r, s, i) {
10628
10627
  super(), this._context = n, this._commandService = e, this._docSelectionRenderService = t, this._docSkeletonManagerService = o, this._editorService = r, this._renderManagerService = s, this._univerInstanceService = i, this._addNewRender(), this._initRenderRefresh(), this._initCommandListener();
10629
10628
  }
@@ -10678,7 +10677,7 @@ let Rr = class extends Et {
10678
10677
  a.zIndex = $s, this._context.mainComponent = i, t.set($e.MAIN, i), t.set($e.BACKGROUND, a), n.addObjects([i], zo), n.addObjects([a], ud), this._editorService.getEditor(e.getUnitId()) == null && n.enableLayerCache(zo);
10679
10678
  }
10680
10679
  _initRenderRefresh() {
10681
- this._docSkeletonManagerService.currentSkeletonBefore$.pipe(gt(this.dispose$)).subscribe((n) => {
10680
+ this._docSkeletonManagerService.currentSkeletonBefore$.pipe(ft(this.dispose$)).subscribe((n) => {
10682
10681
  this._create(n);
10683
10682
  });
10684
10683
  }
@@ -10784,7 +10783,7 @@ const bc = {
10784
10783
  }, !1), !0;
10785
10784
  }
10786
10785
  };
10787
- class ko extends Et {
10786
+ class ko extends vt {
10788
10787
  constructor(t) {
10789
10788
  super();
10790
10789
  O(this, "_previousActiveRange", null);
@@ -11032,7 +11031,7 @@ var Lg = Object.getOwnPropertyDescriptor, Qg = (n, e, t, o) => {
11032
11031
  (i = n[s]) && (r = i(r) || r);
11033
11032
  return r;
11034
11033
  }, Ug = (n, e) => (t, o) => e(t, o, n);
11035
- let go = class extends Et {
11034
+ let go = class extends vt {
11036
11035
  constructor(e) {
11037
11036
  super();
11038
11037
  O(this, "_docContainerController");
@@ -11304,16 +11303,16 @@ let po = class extends ge {
11304
11303
  super.dispose(), (e = this._onInputSubscription) == null || e.unsubscribe();
11305
11304
  }
11306
11305
  _commandExecutedListener() {
11307
- const e = [mt.id, St.id];
11306
+ const e = [St.id, Et.id];
11308
11307
  this.disposeWithMe(
11309
11308
  this._commandService.onCommandExecuted((t) => {
11310
11309
  if (!e.includes(t.id))
11311
11310
  return;
11312
11311
  const o = t.params;
11313
11312
  switch (t.id) {
11314
- case mt.id:
11315
- return this._handleMoveCursor(o.direction);
11316
11313
  case St.id:
11314
+ return this._handleMoveCursor(o.direction);
11315
+ case Et.id:
11317
11316
  return this._handleShiftMoveSelection(o.direction);
11318
11317
  default:
11319
11318
  throw new Error("Unknown command");
@@ -11381,7 +11380,7 @@ let po = class extends ge {
11381
11380
  ], !1);
11382
11381
  return;
11383
11382
  }
11384
- const B = new pt(b, s).getRangePointData(
11383
+ const B = new mt(b, s).getRangePointData(
11385
11384
  I,
11386
11385
  I
11387
11386
  ).cursorList[0];
@@ -11460,7 +11459,7 @@ let po = class extends ge {
11460
11459
  ], !1);
11461
11460
  return;
11462
11461
  }
11463
- const B = new pt(y, s).getRangePointData(
11462
+ const B = new mt(y, s).getRangePointData(
11464
11463
  I,
11465
11464
  I
11466
11465
  ).cursorList[0];
@@ -11738,7 +11737,7 @@ var ef = Object.getOwnPropertyDescriptor, tf = (n, e, t, o) => {
11738
11737
  (i = n[s]) && (r = i(r) || r);
11739
11738
  return r;
11740
11739
  }, hn = (n, e) => (t, o) => e(t, o, n);
11741
- let So = class extends Et {
11740
+ let So = class extends vt {
11742
11741
  constructor(n, e, t, o, r, s) {
11743
11742
  super(), this._context = n, this._commandService = e, this._docClipboardService = t, this._docSelectionRenderService = o, this._contextService = r, this._editorService = s, this._init();
11744
11743
  }
@@ -11747,7 +11746,7 @@ let So = class extends Et {
11747
11746
  }
11748
11747
  _initLegacyPasteCommand() {
11749
11748
  var n;
11750
- (n = this._docSelectionRenderService) == null || n.onPaste$.pipe(gt(this.dispose$)).subscribe((e) => {
11749
+ (n = this._docSelectionRenderService) == null || n.onPaste$.pipe(ft(this.dispose$)).subscribe((e) => {
11751
11750
  var a, c, d;
11752
11751
  if (!_o(this._contextService))
11753
11752
  return;
@@ -12038,7 +12037,7 @@ class Ns extends ge {
12038
12037
  }
12039
12038
  calculatePagePosition() {
12040
12039
  var C, R;
12041
- const e = ft(this._context), o = (R = (C = this._context.unit.getSettings()) == null ? void 0 : C.zoomRatio) != null ? R : 1, { document: r, scene: s, docBackground: i } = e, a = s == null ? void 0 : s.getParent(), { width: c, height: d, pageMarginLeft: l, pageMarginTop: A } = r;
12040
+ const e = pt(this._context), o = (R = (C = this._context.unit.getSettings()) == null ? void 0 : C.zoomRatio) != null ? R : 1, { document: r, scene: s, docBackground: i } = e, a = s == null ? void 0 : s.getParent(), { width: c, height: d, pageMarginLeft: l, pageMarginTop: A } = r;
12042
12041
  if (a == null || c === Number.POSITIVE_INFINITY || d === Number.POSITIVE_INFINITY)
12043
12042
  return;
12044
12043
  const { width: h, height: u } = a;
@@ -12059,12 +12058,12 @@ let Br = class extends ge {
12059
12058
  constructor(n, e, t) {
12060
12059
  super(), this._context = n, this._docPageLayoutService = e, this._textSelectionManagerService = t;
12061
12060
  const o = this._context.unitId;
12062
- if (vt(o) && o !== ot) return this;
12061
+ if (It(o) && o !== ot) return this;
12063
12062
  this._initResize();
12064
12063
  }
12065
12064
  _initResize() {
12066
12065
  this.disposeWithMe(
12067
- Bt(this._context.engine.onTransformChange$).pipe(
12066
+ Mt(this._context.engine.onTransformChange$).pipe(
12068
12067
  ro((n) => n.type === ia.resize),
12069
12068
  yn(0, rd)
12070
12069
  ).subscribe(() => {
@@ -12092,7 +12091,7 @@ let Mr = class extends ge {
12092
12091
  this._init(), this._skeletonListener(), this._commandExecutedListener(), this._refreshListener(), this._syncSelection();
12093
12092
  }
12094
12093
  _init() {
12095
- const { unitId: e } = this._context, t = ft(this._context);
12094
+ const { unitId: e } = this._context, t = pt(this._context);
12096
12095
  t == null || t.document == null || this._loadedMap.has(t.document) || (this._initialMain(e), this._loadedMap.add(t.document));
12097
12096
  }
12098
12097
  _refreshListener() {
@@ -12117,7 +12116,7 @@ let Mr = class extends ge {
12117
12116
  }
12118
12117
  // eslint-disable-next-line max-lines-per-function
12119
12118
  _initialMain(e) {
12120
- const t = ft(this._context), { document: o, scene: r } = t;
12119
+ const t = pt(this._context), { document: o, scene: r } = t;
12121
12120
  this.disposeWithMe(o.onPointerEnter$.subscribeEvent(() => {
12122
12121
  this._isEditorReadOnly(e) || (o.cursor = _t.TEXT);
12123
12122
  })), this.disposeWithMe(o.onPointerLeave$.subscribeEvent(() => {
@@ -12156,7 +12155,7 @@ let Mr = class extends ge {
12156
12155
  }));
12157
12156
  }
12158
12157
  _getTransformCoordForDocumentOffset(e, t) {
12159
- const o = ft(this._context), { document: r, scene: s } = o, { documentTransform: i } = r.getOffsetConfig(), a = s.getViewports()[0];
12158
+ const o = pt(this._context), { document: r, scene: s } = o, { documentTransform: i } = r.getOffsetConfig(), a = s.getViewports()[0];
12160
12159
  if (a == null)
12161
12160
  return;
12162
12161
  const c = a.transformVector2SceneCoord(Rn.FromArray([e, t]));
@@ -12187,7 +12186,7 @@ let Mr = class extends ge {
12187
12186
  this.disposeWithMe(this._docSkeletonManagerService.currentSkeleton$.subscribe((e) => {
12188
12187
  if (!e) return;
12189
12188
  const { unitId: t } = this._context;
12190
- if (!vt(t)) {
12189
+ if (!It(t)) {
12191
12190
  this._docSelectionRenderService.focus();
12192
12191
  const s = this._context.unit.getSnapshot(), i = Va(s);
12193
12192
  this._docSelectionManagerService.replaceDocRanges([
@@ -12215,10 +12214,10 @@ var pf = Object.getOwnPropertyDescriptor, mf = (n, e, t, o) => {
12215
12214
  for (var r = o > 1 ? void 0 : o ? pf(e, t) : e, s = n.length - 1, i; s >= 0; s--)
12216
12215
  (i = n[s]) && (r = i(r) || r);
12217
12216
  return r;
12218
- }, Tt = (n, e) => (t, o) => e(t, o, n);
12217
+ }, Bt = (n, e) => (t, o) => e(t, o, n);
12219
12218
  let _r = class extends ge {
12220
12219
  constructor(n, e, t, o, r, s, i, a) {
12221
- super(), this._context = n, this._contextService = e, this._docSkeletonManagerService = t, this._univerInstanceService = o, this._commandService = r, this._textSelectionManagerService = s, this._editorService = i, this._docPageLayoutService = a, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), setTimeout(() => this.updateViewZoom(1, !0), 20), vt(this._context.unitId) || this._initZoomEventListener();
12220
+ super(), this._context = n, this._contextService = e, this._docSkeletonManagerService = t, this._univerInstanceService = o, this._commandService = r, this._textSelectionManagerService = s, this._editorService = i, this._docPageLayoutService = a, this._initSkeletonListener(), this._initCommandExecutedListener(), this._initRenderRefresher(), setTimeout(() => this.updateViewZoom(1, !0), 20), It(this._context.unitId) || this._initZoomEventListener();
12222
12221
  }
12223
12222
  _initRenderRefresher() {
12224
12223
  this._docSkeletonManagerService.currentSkeleton$.subscribe((n) => {
@@ -12274,7 +12273,7 @@ let _r = class extends ge {
12274
12273
  }
12275
12274
  updateViewZoom(n, e = !0) {
12276
12275
  var o;
12277
- const t = ft(this._context);
12276
+ const t = pt(this._context);
12278
12277
  t.scene.scale(n, n), this._editorService.isEditor(this._context.unitId) || this._docPageLayoutService.calculatePagePosition(), e && !this._editorService.isEditor(this._context.unitId) && this._textSelectionManagerService.refreshSelection(), (o = t.scene.getTransformer()) == null || o.clearSelectedObjects();
12279
12278
  }
12280
12279
  _initZoomEventListener() {
@@ -12298,13 +12297,13 @@ let _r = class extends ge {
12298
12297
  }
12299
12298
  };
12300
12299
  _r = mf([
12301
- Tt(1, wr),
12302
- Tt(2, z(ue)),
12303
- Tt(3, L),
12304
- Tt(4, T),
12305
- Tt(5, z(Y)),
12306
- Tt(6, Ge),
12307
- Tt(7, z(Ns))
12300
+ Bt(1, wr),
12301
+ Bt(2, z(ue)),
12302
+ Bt(3, L),
12303
+ Bt(4, T),
12304
+ Bt(5, z(Y)),
12305
+ Bt(6, Ge),
12306
+ Bt(7, z(Ns))
12308
12307
  ], _r);
12309
12308
  const Sf = ea("PRINTING_COMPONENT_COLLECT"), Ef = ea("PRINTING_DOM_COLLECT");
12310
12309
  class vf extends ge {
@@ -12336,7 +12335,7 @@ var If = Object.getOwnPropertyDescriptor, Cf = (n, e, t, o) => {
12336
12335
  return r;
12337
12336
  }, gn = (n, e) => (t, o) => e(t, o, n);
12338
12337
  const zi = 300;
12339
- let vo = class extends Et {
12338
+ let vo = class extends vt {
12340
12339
  constructor(e, t, o, r, s) {
12341
12340
  super();
12342
12341
  O(this, "_docStateChange$", new Ue(null));
@@ -12376,7 +12375,7 @@ let vo = class extends Et {
12376
12375
  );
12377
12376
  }
12378
12377
  _listenDocStateChange() {
12379
- this._docStateEmitService.docStateChangeParams$.pipe(gt(this.dispose$)).subscribe((e) => {
12378
+ this._docStateEmitService.docStateChangeParams$.pipe(ft(this.dispose$)).subscribe((e) => {
12380
12379
  var a;
12381
12380
  if (e == null)
12382
12381
  return;
@@ -12468,12 +12467,12 @@ var Rf = Object.getOwnPropertyDescriptor, bf = (n, e, t, o) => {
12468
12467
  return r;
12469
12468
  }, ji = (n, e) => (t, o) => e(t, o, n);
12470
12469
  const Gi = "univer-doc-main-canvas";
12471
- let Io = class extends Et {
12470
+ let Io = class extends vt {
12472
12471
  constructor(n, e) {
12473
12472
  super(), this._instanceSrv = n, this._renderManagerService = e, this._init();
12474
12473
  }
12475
12474
  _init() {
12476
- this._renderManagerService.createRender$.pipe(gt(this.dispose$)).subscribe((n) => this._createRenderWithId(n)), this._instanceSrv.getAllUnitsForType(_.UNIVER_DOC).forEach((n) => this._createRenderer(n)), this._instanceSrv.getTypeOfUnitAdded$(_.UNIVER_DOC).pipe(gt(this.dispose$)).subscribe((n) => this._createRenderer(n)), this._instanceSrv.getTypeOfUnitDisposed$(_.UNIVER_DOC).pipe(gt(this.dispose$)).subscribe((n) => this._disposeRenderer(n));
12475
+ this._renderManagerService.createRender$.pipe(ft(this.dispose$)).subscribe((n) => this._createRenderWithId(n)), this._instanceSrv.getAllUnitsForType(_.UNIVER_DOC).forEach((n) => this._createRenderer(n)), this._instanceSrv.getTypeOfUnitAdded$(_.UNIVER_DOC).pipe(ft(this.dispose$)).subscribe((n) => this._createRenderer(n)), this._instanceSrv.getTypeOfUnitDisposed$(_.UNIVER_DOC).pipe(ft(this.dispose$)).subscribe((n) => this._disposeRenderer(n));
12477
12476
  }
12478
12477
  _createRenderer(n) {
12479
12478
  var o;
@@ -12507,56 +12506,56 @@ const yf = {
12507
12506
  preconditions: Ee,
12508
12507
  binding: J.DELETE
12509
12508
  }, Tf = {
12510
- id: mt.id,
12509
+ id: St.id,
12511
12510
  binding: J.ARROW_UP,
12512
12511
  preconditions: Ee,
12513
12512
  staticParameters: {
12514
12513
  direction: Ae.UP
12515
12514
  }
12516
12515
  }, Bf = {
12517
- id: mt.id,
12516
+ id: St.id,
12518
12517
  binding: J.ARROW_DOWN,
12519
12518
  preconditions: Ee,
12520
12519
  staticParameters: {
12521
12520
  direction: Ae.DOWN
12522
12521
  }
12523
12522
  }, Mf = {
12524
- id: mt.id,
12523
+ id: St.id,
12525
12524
  binding: J.ARROW_LEFT,
12526
12525
  preconditions: Ee,
12527
12526
  staticParameters: {
12528
12527
  direction: Ae.LEFT
12529
12528
  }
12530
12529
  }, _f = {
12531
- id: mt.id,
12530
+ id: St.id,
12532
12531
  binding: J.ARROW_RIGHT,
12533
12532
  preconditions: Ee,
12534
12533
  staticParameters: {
12535
12534
  direction: Ae.RIGHT
12536
12535
  }
12537
12536
  }, Pf = {
12538
- id: St.id,
12537
+ id: Et.id,
12539
12538
  binding: J.ARROW_UP | re.SHIFT,
12540
12539
  preconditions: Ee,
12541
12540
  staticParameters: {
12542
12541
  direction: Ae.UP
12543
12542
  }
12544
12543
  }, Df = {
12545
- id: St.id,
12544
+ id: Et.id,
12546
12545
  binding: J.ARROW_DOWN | re.SHIFT,
12547
12546
  preconditions: Ee,
12548
12547
  staticParameters: {
12549
12548
  direction: Ae.DOWN
12550
12549
  }
12551
12550
  }, Nf = {
12552
- id: St.id,
12551
+ id: Et.id,
12553
12552
  binding: J.ARROW_LEFT | re.SHIFT,
12554
12553
  preconditions: Ee,
12555
12554
  staticParameters: {
12556
12555
  direction: Ae.LEFT
12557
12556
  }
12558
12557
  }, wf = {
12559
- id: St.id,
12558
+ id: Et.id,
12560
12559
  binding: J.ARROW_RIGHT | re.SHIFT,
12561
12560
  preconditions: Ee,
12562
12561
  staticParameters: {
@@ -12609,14 +12608,14 @@ let Pr = class extends ol {
12609
12608
  Ft,
12610
12609
  Ht,
12611
12610
  kt,
12612
- It,
12611
+ Ct,
12613
12612
  Vt,
12614
12613
  ct,
12615
12614
  tn,
12616
12615
  Dt,
12617
12616
  Fn,
12618
12617
  Nt,
12619
- Ct,
12618
+ Rt,
12620
12619
  As,
12621
12620
  ec,
12622
12621
  xn,
@@ -12665,8 +12664,8 @@ let Pr = class extends ol {
12665
12664
  eo,
12666
12665
  bc,
12667
12666
  Ps,
12668
- mt,
12669
12667
  St,
12668
+ Et,
12670
12669
  Id,
12671
12670
  va,
12672
12671
  Dg,
@@ -12857,10 +12856,10 @@ export {
12857
12856
  Dg as InsertCustomRangeCommand,
12858
12857
  Hn as ListOperationCommand,
12859
12858
  ns as MergeTwoParagraphCommand,
12860
- mt as MoveCursorOperation,
12861
- St as MoveSelectionOperation,
12859
+ St as MoveCursorOperation,
12860
+ Et as MoveSelectionOperation,
12862
12861
  $f as NORMAL_TEXT_SELECTION_PLUGIN_NAME,
12863
- pt as NodePositionConvertToCursor,
12862
+ mt as NodePositionConvertToCursor,
12864
12863
  Ra as NodePositionConvertToRectRange,
12865
12864
  Tn as OrderListCommand,
12866
12865
  zA as PastePluginLark,
@@ -12877,12 +12876,12 @@ export {
12877
12876
  eo as SetDocZoomRatioCommand,
12878
12877
  nt as SetDocZoomRatioOperation,
12879
12878
  Ut as SetInlineFormatBoldCommand,
12880
- Ct as SetInlineFormatCommand,
12879
+ Rt as SetInlineFormatCommand,
12881
12880
  tn as SetInlineFormatFontFamilyCommand,
12882
12881
  ct as SetInlineFormatFontSizeCommand,
12883
12882
  Ft as SetInlineFormatItalicCommand,
12884
12883
  kt as SetInlineFormatStrikethroughCommand,
12885
- It as SetInlineFormatSubscriptCommand,
12884
+ Ct as SetInlineFormatSubscriptCommand,
12886
12885
  Vt as SetInlineFormatSuperscriptCommand,
12887
12886
  Nt as SetInlineFormatTextBackgroundColorCommand,
12888
12887
  Dt as SetInlineFormatTextColorCommand,
@@ -12922,7 +12921,7 @@ export {
12922
12921
  op as hasParagraphInTable,
12923
12922
  Ia as isInSameTableCell,
12924
12923
  Rd as isValidRectRange,
12925
- ft as neoGetDocObject,
12924
+ pt as neoGetDocObject,
12926
12925
  sp as transformToDocDrawingPosition,
12927
12926
  pd as useKeyboardEvent,
12928
12927
  md as useResize,