@univerjs/engine-render 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var C8 = Object.defineProperty;
2
2
  var E8 = (r, t, e) => t in r ? C8(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var k = (r, t, e) => E8(r, typeof t != "symbol" ? t + "" : t, e);
4
- import { Tools as o1, DEFAULT_STYLES as s2, FontStyleType as Ee, BaselineOffset as d3, getCellInfoInMergeData as F8, Rectangle as F3, ColorKit as S8, Disposable as u2, EventSubject as s1, checkParagraphHasIndentByStyle as T8, DataStreamTreeTokenType as Q, BorderStyleTypes as U1, BooleanNumber as J, DisposableCollection as B8, toDisposable as Q1, sortRules as i2, Registry as D0, Range as pe, numberToABC as R8, Inject as L3, LocaleService as n7, insertTextToContent as A8, horizontalLineSegmentsSubtraction as M8, deleteContent as O8, DataStreamTreeNodeType as W1, GridType as $1, BulletAlignment as L0, PositionedObjectLayoutType as X1, TableTextWrapType as Ye, WrapTextType as Ue, ColumnSeparatorType as ie, TableRowHeightRule as re, VerticalAlignmentType as H2, TableAlignmentType as P0, ObjectRelativeFromV as y1, SpacingRule as Ve, CustomDecorationType as I8, CustomRangeType as h6, ObjectMatrix as P1, SectionType as Ke, NumberUnitType as L8, DocumentFlavor as i7, PageOrientType as I4, HorizontalAlign as k1, VerticalAlign as g3, WrapStrategy as e2, AlignTypeH as t3, ObjectRelativeFromH as j1, AlignTypeV as V3, mergeWith as k6, ListGlyphType as w3, numberToListABC as o7, PRESET_LIST_TYPE as P8, DocumentDataModel as Ze, DEFAULT_EMPTY_DOCUMENT_VALUE as l7, Injector as w0, ImageCacheMap as N8, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE as $8, searchArray as P2, extractPureTextFromCell as U8, CellValueType as u3, addLinkToDocumentModel as H8, isCellCoverable as m6, isNullCell as q8, composeStyles as p6, getColorStyle as m3, isWhiteColor as f6, IContextService as G8, IConfigService as u7, TextDecoration as c2, COLORS as v6, requestImmediateMacroTask as d7, MOVE_BUFFER_VALUE as b6, sortRulesByDesc as y6, isClassDependencyItem as W8, createIdentifier as g7, remove as z6, UniverInstanceType as X8, IUniverInstanceService as Y8, Plugin as V8, merge as K8, registerDependencies as Z8 } from "@univerjs/core";
5
- import { BehaviorSubject as A3, Subject as N1, startWith as J8, distinctUntilChanged as Q8, Subscription as ea, debounceTime as ta, Observable as c7, shareReplay as aa } from "rxjs";
4
+ import { Tools as o1, DEFAULT_STYLES as s2, FontStyleType as Ee, BaselineOffset as d3, getCellInfoInMergeData as F8, Rectangle as E3, ColorKit as S8, Disposable as u2, EventSubject as s1, checkParagraphHasIndentByStyle as T8, DataStreamTreeTokenType as Q, BorderStyleTypes as U1, BooleanNumber as J, DisposableCollection as B8, toDisposable as Q1, sortRules as i2, Registry as D0, Range as pe, numberToABC as R8, Inject as I3, LocaleService as n7, insertTextToContent as A8, horizontalLineSegmentsSubtraction as M8, deleteContent as O8, DataStreamTreeNodeType as W1, GridType as $1, BulletAlignment as L0, PositionedObjectLayoutType as X1, TableTextWrapType as Ye, WrapTextType as Ue, ColumnSeparatorType as ie, TableRowHeightRule as re, VerticalAlignmentType as H2, TableAlignmentType as P0, ObjectRelativeFromV as y1, SpacingRule as Ve, CustomDecorationType as I8, CustomRangeType as h6, ObjectMatrix as P1, SectionType as Ke, NumberUnitType as L8, DocumentFlavor as i7, PageOrientType as I4, HorizontalAlign as k1, VerticalAlign as g3, WrapStrategy as e2, AlignTypeH as t3, ObjectRelativeFromH as j1, AlignTypeV as V3, mergeWith as k6, ListGlyphType as D3, numberToListABC as o7, PRESET_LIST_TYPE as P8, DocumentDataModel as Ze, DEFAULT_EMPTY_DOCUMENT_VALUE as l7, Injector as w0, ImageCacheMap as N8, IS_ROW_STYLE_PRECEDE_COLUMN_STYLE as $8, searchArray as P2, extractPureTextFromCell as U8, CellValueType as u3, addLinkToDocumentModel as H8, isCellCoverable as m6, isNullCell as q8, composeStyles as p6, getColorStyle as m3, isWhiteColor as f6, IContextService as G8, IConfigService as u7, TextDecoration as c2, COLORS as v6, requestImmediateMacroTask as d7, MOVE_BUFFER_VALUE as b6, sortRulesByDesc as y6, isClassDependencyItem as W8, createIdentifier as g7, remove as z6, UniverInstanceType as X8, IUniverInstanceService as Y8, Plugin as V8, merge as K8, registerDependencies as Z8 } from "@univerjs/core";
5
+ import { BehaviorSubject as R3, Subject as N1, startWith as J8, distinctUntilChanged as Q8, Subscription as ea, debounceTime as ta, Observable as c7, shareReplay as aa } from "rxjs";
6
6
  var h7 = /* @__PURE__ */ ((r) => (r.RECT = "rect", r.CIRCLE = "circle", r.PATH = "path", r))(h7 || {}), ra = /* @__PURE__ */ ((r) => (r[r.XY = 0] = "XY", r[r.X = 1] = "X", r[r.Y = 2] = "Y", r))(ra || {});
7
- const M3 = 1, $3 = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif', k7 = {
7
+ const A3 = 1, $3 = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif', k7 = {
8
8
  lines: [],
9
9
  drawings: /* @__PURE__ */ new Map(),
10
10
  height: 0,
@@ -19,7 +19,7 @@ const M3 = 1, $3 = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino
19
19
  marginBottom: 20
20
20
  }, sa = 1, na = 14;
21
21
  var p1 = /* @__PURE__ */ ((r) => (r.DEFAULT = "default", r.AUTO = "auto", r.CROSSHAIR = "crosshair", r.POINTER = "pointer", r.MOVE = "move", r.EAST_RESIZE = "e-resize", r.NORTH_EAST_RESIZE = "ne-resize", r.NORTH_WEST_RESIZE = "nw-resize", r.NORTH_RESIZE = "n-resize", r.SOUTH_EAST_RESIZE = "se-resize", r.SOUTH_WEST_RESIZE = "sw-resize", r.SOUTH_RESIZE = "s-resize", r.WEST_RESIZE = "w-resize", r.TEXT = "text", r.WAIT = "wait", r.HELP = "help", r.CELL = "cell", r.NONE = "none", r.VERTICAL_TEXT = "vertical-text", r.NO_DROP = "no-drop", r.GRAB = "grab", r.GRABBING = "grabbing", r.ALL_SCROLL = "all-scroll", r.COLUMN_RESIZE = "col-resize", r.ROW_RESIZE = "row-resize", r.PROGRESS = "progress", r.NOT_ALLOWED = "not-allowed", r.ZOOM_IN = "zoom-in", r.ZOOM_OUT = "zoom-out", r))(p1 || {}), ia = /* @__PURE__ */ ((r) => (r[r.noClip = 0] = "noClip", r[r.DOC_SIZE = 1] = "DOC_SIZE", r[r.CONTENT_SIZE_LEFT = 2] = "CONTENT_SIZE_LEFT", r[r.CONTENT_SIZE_CENTER = 3] = "CONTENT_SIZE_CENTER", r[r.CONTENT_SIZE_Right = 4] = "CONTENT_SIZE_Right", r))(ia || {});
22
- const p3 = "rgb(0,0,0)";
22
+ const L3 = "rgb(0,0,0)";
23
23
  var K = /* @__PURE__ */ ((r) => (r.TOP = "t", r.BOTTOM = "b", r.LEFT = "l", r.RIGHT = "r", r.TL_BR = "tl_br", r.TL_BC = "tl_bc", r.TL_MR = "tl_mr", r.BL_TR = "bl_tr", r.ML_TR = "ml_tr", r.BC_TR = "bc_tr", r))(K || {}), Je = /* @__PURE__ */ ((r) => (r[r.UP = 0] = "UP", r[r.DOWN = 1] = "DOWN", r))(Je || {}), Y = /* @__PURE__ */ ((r) => (r.ENGINE = "Engine", r.SCENE = "Scene", r.BASE_OBJECT = "BaseObject", r.SCENE_VIEWER = "SceneViewer", r.CANVAS = "Canvas", r.VIEWPORT = "Viewport", r.LAYER = "Layer", r.GROUP = "Group", r.IMAGE = "Image", r.SHAPE = "Shape", r.TEXT = "Text", r))(Y || {});
24
24
  const oa = 2e3, j6 = 2e3, la = 2, l2 = 0.5, eS = 3, tS = 4, aS = 5;
25
25
  var C1 = /* @__PURE__ */ ((r) => (r[r.translate = 0] = "translate", r[r.resize = 1] = "resize", r[r.scale = 2] = "scale", r[r.skew = 3] = "skew", r[r.flip = 4] = "flip", r[r.all = 5] = "all", r))(C1 || {});
@@ -1336,29 +1336,29 @@ const f7 = 180, Gp = Math.PI / f7, Wp = f7 / Math.PI, x6 = "rgb(", Xp = "rgba(",
1336
1336
  const s = (/* @__PURE__ */ new Date()).getTime();
1337
1337
  return `${r}_${a}_${s}`;
1338
1338
  };
1339
- function b3(r) {
1339
+ function v3(r) {
1340
1340
  return Object.prototype.toString.apply(r);
1341
1341
  }
1342
1342
  function P4(r) {
1343
- return b3(r) === "[object Function]";
1343
+ return v3(r) === "[object Function]";
1344
1344
  }
1345
1345
  function sS(r) {
1346
- return b3(r) === "[object Date]";
1346
+ return v3(r) === "[object Date]";
1347
1347
  }
1348
1348
  function nS(r) {
1349
- return b3(r) === "[object RegExp]";
1349
+ return v3(r) === "[object RegExp]";
1350
1350
  }
1351
1351
  function iS(r) {
1352
- return b3(r) === "[object Array]";
1352
+ return v3(r) === "[object Array]";
1353
1353
  }
1354
1354
  function E6(r) {
1355
- return b3(r) === "[object String]";
1355
+ return v3(r) === "[object String]";
1356
1356
  }
1357
1357
  function oS(r) {
1358
- return b3(r) === "[object Number]";
1358
+ return v3(r) === "[object Number]";
1359
1359
  }
1360
1360
  function lS(r) {
1361
- return b3(r) === "[object Object]";
1361
+ return v3(r) === "[object Object]";
1362
1362
  }
1363
1363
  function oe(r, t) {
1364
1364
  return t = 10 ** t, Math.round(r * t) / t;
@@ -1482,7 +1482,7 @@ function w7(r) {
1482
1482
  const { scaleX: t = 1, scaleY: e = 1 } = r;
1483
1483
  return Math.max(t, e);
1484
1484
  }
1485
- function S3(r, t, e, a) {
1485
+ function F3(r, t, e, a) {
1486
1486
  const s = r - 1, n = t - 1, i = e[s] || 0;
1487
1487
  let o = e[r];
1488
1488
  o == null && (o = e[e.length - 1]);
@@ -1497,7 +1497,7 @@ function S3(r, t, e, a) {
1497
1497
  }
1498
1498
  function He(r, t, e, a, s) {
1499
1499
  r = o1.clamp(r, 0, e.length - 1), t = o1.clamp(t, 0, a.length - 1);
1500
- let { startY: n, endY: i, startX: o, endX: l } = S3(
1500
+ let { startY: n, endY: i, startX: o, endX: l } = F3(
1501
1501
  r,
1502
1502
  t,
1503
1503
  e,
@@ -1585,18 +1585,18 @@ function jS(r) {
1585
1585
  }
1586
1586
  return !1;
1587
1587
  }
1588
- function _3(r) {
1588
+ function w3(r) {
1589
1589
  return Number(r.replace(/px/gi, ""));
1590
1590
  }
1591
1591
  function lf(r) {
1592
1592
  const t = getComputedStyle(r), { borderTopWidth: e, borderLeftWidth: a, borderRightWidth: s, borderBottomWidth: n, width: i, height: o } = t;
1593
1593
  return {
1594
- top: _3(e),
1595
- left: _3(a),
1596
- right: _3(s),
1597
- bottom: _3(n),
1598
- width: _3(i),
1599
- height: _3(o)
1594
+ top: w3(e),
1595
+ left: w3(a),
1596
+ right: w3(s),
1597
+ bottom: w3(n),
1598
+ width: w3(i),
1599
+ height: w3(o)
1600
1600
  };
1601
1601
  }
1602
1602
  const _7 = 0.75;
@@ -1631,7 +1631,7 @@ function xS(r, t) {
1631
1631
  const e = [];
1632
1632
  for (const a of r)
1633
1633
  for (const s of t)
1634
- F3.simpleRangesIntersect(a, s) && e.push(s);
1634
+ E3.simpleRangesIntersect(a, s) && e.push(s);
1635
1635
  return r.concat(e);
1636
1636
  }
1637
1637
  function uf(r, t, e) {
@@ -2479,7 +2479,7 @@ const C7 = [
2479
2479
  "flipY",
2480
2480
  "strokeWidth"
2481
2481
  ];
2482
- var y3 = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.RICH_TEXT = 1] = "RICH_TEXT", r[r.SHAPE = 2] = "SHAPE", r[r.IMAGE = 3] = "IMAGE", r[r.RECT = 4] = "RECT", r[r.CIRCLE = 5] = "CIRCLE", r[r.CHART = 6] = "CHART", r))(y3 || {});
2482
+ var b3 = /* @__PURE__ */ ((r) => (r[r.UNKNOWN = 0] = "UNKNOWN", r[r.RICH_TEXT = 1] = "RICH_TEXT", r[r.SHAPE = 2] = "SHAPE", r[r.IMAGE = 3] = "IMAGE", r[r.RECT = 4] = "RECT", r[r.CIRCLE = 5] = "CIRCLE", r[r.CHART = 6] = "CHART", r))(b3 || {});
2483
2483
  class Z2 extends u2 {
2484
2484
  // TODO: @DR-Univer. Belong to layer
2485
2485
  constructor(e) {
@@ -2973,7 +2973,7 @@ class Z2 extends u2 {
2973
2973
  this.debounceParentDirty ? this.makeDirty(!0) : this.makeDirtyNoDebounce(!0);
2974
2974
  }
2975
2975
  }
2976
- var g1 = /* @__PURE__ */ ((r) => (r[r.BODY = 0] = "BODY", r[r.HEADER = 1] = "HEADER", r[r.FOOTER = 2] = "FOOTER", r[r.CELL = 3] = "CELL", r))(g1 || {}), df = /* @__PURE__ */ ((r) => (r[r.GLYPH = 0] = "GLYPH", r[r.DIVIDE = 1] = "DIVIDE", r[r.LINE = 2] = "LINE", r[r.COLUMN = 3] = "COLUMN", r[r.SECTION = 4] = "SECTION", r[r.PAGE = 5] = "PAGE", r[r.DRAWING = 6] = "DRAWING", r[r.BULLET = 7] = "BULLET", r[r.HEADER = 8] = "HEADER", r[r.FOOTER = 9] = "FOOTER", r[r.ALL = 10] = "ALL", r))(df || {}), le = /* @__PURE__ */ ((r) => (r[r.SECTION = 0] = "SECTION", r[r.PAGE = 1] = "PAGE", r[r.COLUMN = 2] = "COLUMN", r))(le || {}), O3 = /* @__PURE__ */ ((r) => (r[r.PARAGRAPH = 0] = "PARAGRAPH", r[r.BLOCK = 1] = "BLOCK", r))(O3 || {}), K1 = /* @__PURE__ */ ((r) => (r[r.LETTER = 0] = "LETTER", r[r.WORD = 1] = "WORD", r[r.LIST = 2] = "LIST", r[r.PLACEHOLDER = 3] = "PLACEHOLDER", r[r.TAB = 4] = "TAB", r[r.IMAGE = 5] = "IMAGE", r[r.AT = 6] = "AT", r[r.MATH = 7] = "MATH", r[r.MULTI_LINE = 8] = "MULTI_LINE", r[r.CUSTOM = 9] = "CUSTOM", r))(K1 || {}), Y2 = /* @__PURE__ */ ((r) => (r[r.VERTICAL = 0] = "VERTICAL", r[r.HORIZONTAL = 1] = "HORIZONTAL", r[r.AUTO = 2] = "AUTO", r))(Y2 || {});
2976
+ var g1 = /* @__PURE__ */ ((r) => (r[r.BODY = 0] = "BODY", r[r.HEADER = 1] = "HEADER", r[r.FOOTER = 2] = "FOOTER", r[r.CELL = 3] = "CELL", r))(g1 || {}), df = /* @__PURE__ */ ((r) => (r[r.GLYPH = 0] = "GLYPH", r[r.DIVIDE = 1] = "DIVIDE", r[r.LINE = 2] = "LINE", r[r.COLUMN = 3] = "COLUMN", r[r.SECTION = 4] = "SECTION", r[r.PAGE = 5] = "PAGE", r[r.DRAWING = 6] = "DRAWING", r[r.BULLET = 7] = "BULLET", r[r.HEADER = 8] = "HEADER", r[r.FOOTER = 9] = "FOOTER", r[r.ALL = 10] = "ALL", r))(df || {}), le = /* @__PURE__ */ ((r) => (r[r.SECTION = 0] = "SECTION", r[r.PAGE = 1] = "PAGE", r[r.COLUMN = 2] = "COLUMN", r))(le || {}), M3 = /* @__PURE__ */ ((r) => (r[r.PARAGRAPH = 0] = "PARAGRAPH", r[r.BLOCK = 1] = "BLOCK", r))(M3 || {}), K1 = /* @__PURE__ */ ((r) => (r[r.LETTER = 0] = "LETTER", r[r.WORD = 1] = "WORD", r[r.LIST = 2] = "LIST", r[r.PLACEHOLDER = 3] = "PLACEHOLDER", r[r.TAB = 4] = "TAB", r[r.IMAGE = 5] = "IMAGE", r[r.AT = 6] = "AT", r[r.MATH = 7] = "MATH", r[r.MULTI_LINE = 8] = "MULTI_LINE", r[r.CUSTOM = 9] = "CUSTOM", r))(K1 || {}), Y2 = /* @__PURE__ */ ((r) => (r[r.VERTICAL = 0] = "VERTICAL", r[r.HORIZONTAL = 1] = "HORIZONTAL", r[r.AUTO = 2] = "AUTO", r))(Y2 || {});
2977
2977
  function ES(r) {
2978
2978
  var a;
2979
2979
  const t = r == null ? void 0 : r.parent;
@@ -3037,7 +3037,7 @@ function E7() {
3037
3037
  return a / s;
3038
3038
  })(), r < 1 ? 1 : r;
3039
3039
  }
3040
- function T3(r, t, e, a) {
3040
+ function S3(r, t, e, a) {
3041
3041
  let s = 0, n = 0, i = 0, o = 0;
3042
3042
  const { startX: l, startY: u, endX: d, endY: c } = a;
3043
3043
  t === K.TOP ? (s = l - e, n = u, i = d + e, o = u) : t === K.BOTTOM ? (s = l - e, n = c, i = d - e, o = c) : t === K.LEFT ? (s = l, n = u - e, i = l, o = c + e) : t === K.RIGHT && (s = d, n = u - e, i = d, o = c + e), r.beginPath(), r.moveToByPrecision(s, n), r.lineToByPrecision(i, o), r.closePathByEnv(), r.stroke();
@@ -4092,7 +4092,7 @@ class _f extends B7 {
4092
4092
  setGlobalCompositeOperation(e) {
4093
4093
  }
4094
4094
  }
4095
- var E3 = /* @__PURE__ */ ((r) => (r[r.Rendering = 0] = "Rendering", r[r.Printing = 1] = "Printing", r))(E3 || {});
4095
+ var C3 = /* @__PURE__ */ ((r) => (r[r.Rendering = 0] = "Rendering", r[r.Printing = 1] = "Printing", r))(C3 || {});
4096
4096
  class fe {
4097
4097
  constructor(t) {
4098
4098
  k(this, "isCache", !1);
@@ -4340,7 +4340,7 @@ var xf = /* @__PURE__ */ ((r) => (r[r.OFF = 0] = "OFF", r[r.ON = 1] = "ON", r))(
4340
4340
  const US = 50, Cf = 45, HS = 21, qS = 21, a0 = 20, Ef = [o2.VIEW_MAIN, o2.VIEW_MAIN_LEFT_TOP, o2.VIEW_MAIN_TOP, o2.VIEW_MAIN_LEFT], Ff = [o2.VIEW_ROW_TOP, o2.VIEW_ROW_BOTTOM, o2.VIEW_COLUMN_LEFT, o2.VIEW_COLUMN_RIGHT, o2.VIEW_LEFT_TOP], c4 = 1e4, B6 = c4 / 10;
4341
4341
  var Sf = /* @__PURE__ */ ((r) => (r[r.GRID = 0] = "GRID", r))(Sf || {});
4342
4342
  const Tf = "sheet-ext-";
4343
- class z3 extends A7 {
4343
+ class y3 extends A7 {
4344
4344
  constructor() {
4345
4345
  super(...arguments);
4346
4346
  k(this, "type", 0);
@@ -4350,7 +4350,7 @@ class z3 extends A7 {
4350
4350
  return !0;
4351
4351
  for (const s of a) {
4352
4352
  const { startRow: n, startColumn: i, endRow: o, endColumn: l } = s;
4353
- if (F3.intersects(e, {
4353
+ if (E3.intersects(e, {
4354
4354
  startRow: n,
4355
4355
  endRow: o,
4356
4356
  startColumn: i,
@@ -4377,7 +4377,7 @@ class z3 extends A7 {
4377
4377
  return !0;
4378
4378
  for (const n of s) {
4379
4379
  const { startColumn: i, endColumn: o } = n;
4380
- if (F3.intersects(
4380
+ if (E3.intersects(
4381
4381
  {
4382
4382
  startRow: 0,
4383
4383
  endRow: 0,
@@ -4400,7 +4400,7 @@ class z3 extends A7 {
4400
4400
  return !0;
4401
4401
  for (const n of s) {
4402
4402
  const { startRow: i, endRow: o } = n;
4403
- if (F3.intersects(
4403
+ if (E3.intersects(
4404
4404
  {
4405
4405
  startRow: e,
4406
4406
  endRow: a,
@@ -4429,7 +4429,7 @@ class z3 extends A7 {
4429
4429
  return !0;
4430
4430
  for (const n of s) {
4431
4431
  const { startRow: i, endRow: o } = n;
4432
- if (e >= i && e <= o || a >= i && a <= o || F3.intersects(
4432
+ if (e >= i && e <= o || a >= i && a <= o || E3.intersects(
4433
4433
  {
4434
4434
  startRow: e,
4435
4435
  endRow: a,
@@ -4449,7 +4449,7 @@ class z3 extends A7 {
4449
4449
  }
4450
4450
  }
4451
4451
  const Bf = "DefaultBackgroundExtension", Rf = 21, Af = 21;
4452
- let Mf = class extends z3 {
4452
+ let Mf = class extends y3 {
4453
4453
  constructor() {
4454
4454
  super(...arguments);
4455
4455
  k(this, "uKey", Bf);
@@ -4527,7 +4527,7 @@ let Mf = class extends z3 {
4527
4527
  };
4528
4528
  U3.add(Mf);
4529
4529
  const Of = "DefaultBorderExtension", If = 50;
4530
- let Lf = class extends z3 {
4530
+ let Lf = class extends y3 {
4531
4531
  constructor() {
4532
4532
  super(...arguments);
4533
4533
  k(this, "uKey", Of);
@@ -4576,12 +4576,12 @@ let Lf = class extends z3 {
4576
4576
  f && (x = y.startY, C = y.endY, T = y.startX, F = y.endX);
4577
4577
  }
4578
4578
  const S = S7(w);
4579
- F7(i, w), i.setLineWidthByPrecision(S), i.strokeStyle = _ || p3, cf(i, D, {
4579
+ F7(i, w), i.setLineWidthByPrecision(S), i.strokeStyle = _ || L3, cf(i, D, {
4580
4580
  startX: T,
4581
4581
  startY: x,
4582
4582
  endX: F,
4583
4583
  endY: C
4584
- }), !this._getOverflowExclusion(l, D, a, s) && T3(i, D, (S - 1) / 2 / o, {
4584
+ }), !this._getOverflowExclusion(l, D, a, s) && S3(i, D, (S - 1) / 2 / o, {
4585
4585
  startX: T,
4586
4586
  startY: x,
4587
4587
  endX: F,
@@ -4612,7 +4612,7 @@ const Pf = "DefaultColumnHeaderLayoutExtension", a3 = {
4612
4612
  textAlign: "center",
4613
4613
  textBaseline: "middle"
4614
4614
  };
4615
- class Nf extends z3 {
4615
+ class Nf extends y3 {
4616
4616
  constructor(e) {
4617
4617
  super();
4618
4618
  k(this, "uKey", Pf);
@@ -4666,13 +4666,13 @@ class Nf extends z3 {
4666
4666
  case "center":
4667
4667
  return y.left + (y.right - y.left) / 2;
4668
4668
  case "right":
4669
- return y.right - M3;
4669
+ return y.right - A3;
4670
4670
  case "left":
4671
- return y.left + M3;
4671
+ return y.left + A3;
4672
4672
  default:
4673
4673
  return y.left + (y.right - y.left) / 2;
4674
4674
  }
4675
- })(), _ = y.height / 2 + M3;
4675
+ })(), _ = y.height / 2 + A3;
4676
4676
  D && (e.save(), e.beginPath(), this.setStyleToCtx(e, z), e.rectByPrecision(y.left, y.top, y.width, y.height), e.clip()), e.fillText(z.text, w, _), D && e.restore(), m = f;
4677
4677
  }
4678
4678
  const v = i - 0.5 / h;
@@ -4684,7 +4684,7 @@ const $f = "DefaultCustomExtension", Uf = 55, Hf = (r) => {
4684
4684
  const { startRow: t, endRow: e, startColumn: a, endColumn: s } = r;
4685
4685
  return `${t}-${e}-${a}-${s}`;
4686
4686
  };
4687
- class qf extends z3 {
4687
+ class qf extends y3 {
4688
4688
  constructor() {
4689
4689
  super(...arguments);
4690
4690
  k(this, "Z_INDEX", Uf);
@@ -4765,7 +4765,7 @@ let r0 = class extends u2 {
4765
4765
  }
4766
4766
  };
4767
4767
  r0 = Xf([
4768
- Yf(0, L3(n7))
4768
+ Yf(0, I3(n7))
4769
4769
  ], r0);
4770
4770
  class H4 {
4771
4771
  constructor() {
@@ -5064,11 +5064,11 @@ class V2 {
5064
5064
  k(this, "_tableNodeCache", /* @__PURE__ */ new Map());
5065
5065
  k(this, "_children", []);
5066
5066
  k(this, "_editArea", "BODY");
5067
- k(this, "_editAreaChange$", new A3(null));
5067
+ k(this, "_editAreaChange$", new R3(null));
5068
5068
  k(this, "editAreaChange$", this._editAreaChange$.asObservable());
5069
5069
  k(this, "_headerTreeMap", /* @__PURE__ */ new Map());
5070
5070
  k(this, "_footerTreeMap", /* @__PURE__ */ new Map());
5071
- k(this, "_segmentViewModels$", new A3([]));
5071
+ k(this, "_segmentViewModels$", new R3([]));
5072
5072
  k(this, "segmentViewModels$", this._segmentViewModels$.asObservable());
5073
5073
  if (this._documentDataModel = t, t.getBody() == null)
5074
5074
  return;
@@ -6214,7 +6214,7 @@ function T2(r, t, e, a, s, n, i = M1.Normal, o) {
6214
6214
  );
6215
6215
  }
6216
6216
  function ue(r, t, e, a, s, n, i = M1.Normal, o) {
6217
- var r2, y2, g2, e3, L2, j3, W3;
6217
+ var r2, y2, g2, e3, L2, z3, W3;
6218
6218
  let l = P3(e), u = i0(l);
6219
6219
  if ((!u || !u.column) && (K7(r, t, e, a, s, !0, i), l = P3(e), u = i0(l)), !u) return;
6220
6220
  const d = u.column;
@@ -6271,13 +6271,13 @@ function ue(r, t, e, a, s, n, i = M1.Normal, o) {
6271
6271
  if (c) {
6272
6272
  const b1 = Dv(c);
6273
6273
  if (b1.length > 0) {
6274
- const F2 = (e3 = (g2 = r.paragraphConfigCache.get(_1)) == null ? void 0 : g2.get(c.paragraphIndex)) == null ? void 0 : e3.paragraphNonInlineSkeDrawings, X3 = [...(L2 = F2 == null ? void 0 : F2.values()) != null ? L2 : []].filter((D3) => D3.drawingOrigin.docTransform.positionV.relativeFrom === y1.LINE).filter((D3) => b1.includes(D3.drawingId));
6274
+ const F2 = (e3 = (g2 = r.paragraphConfigCache.get(_1)) == null ? void 0 : g2.get(c.paragraphIndex)) == null ? void 0 : e3.paragraphNonInlineSkeDrawings, X3 = [...(L2 = F2 == null ? void 0 : F2.values()) != null ? L2 : []].filter((j3) => j3.drawingOrigin.docTransform.positionV.relativeFrom === y1.LINE).filter((j3) => b1.includes(j3.drawingId));
6275
6275
  X3.length > 0 && N6(r, c.top, c.lineHeight, d, X3, c.paragraphIndex, n);
6276
6276
  }
6277
6277
  }
6278
6278
  if (p != null && p.size > 0) {
6279
6279
  const b1 = [...p.values()].filter((F2) => F2.drawingOrigin.docTransform.positionV.relativeFrom !== y1.LINE);
6280
- N6(r, c1, u1, d, b1, s.paragraphIndex, n, (j3 = D == null ? void 0 : D.get(w)) == null ? void 0 : j3.top);
6280
+ N6(r, c1, u1, d, b1, s.paragraphIndex, n, (z3 = D == null ? void 0 : D.get(w)) == null ? void 0 : z3.top);
6281
6281
  }
6282
6282
  f != null && f.length > 0 && (E1 = jv(r, c1, u1, l, d, d1, f, s.paragraphIndex, a, (W3 = D == null ? void 0 : D.get(w)) == null ? void 0 : W3.top));
6283
6283
  const I1 = ev(
@@ -6317,7 +6317,7 @@ function ue(r, t, e, a, s, n, i = M1.Normal, o) {
6317
6317
  }
6318
6318
  const R1 = Qf(
6319
6319
  w,
6320
- O3.PARAGRAPH,
6320
+ M3.PARAGRAPH,
6321
6321
  {
6322
6322
  lineHeight: u1,
6323
6323
  contentHeight: U,
@@ -6569,7 +6569,7 @@ function V7(r, t, e, a, s, n, i = M1.Normal, o) {
6569
6569
  }
6570
6570
  function K7(r, t, e, a, s, n, i = M1.Normal, o) {
6571
6571
  const l = P3(e), { skeHeaders: u, skeFooters: d } = s;
6572
- e.push(f3(r, a, { skeHeaders: u, skeFooters: d }, (l == null ? void 0 : l.pageNumber) + 1)), V7(
6572
+ e.push(p3(r, a, { skeHeaders: u, skeFooters: d }, (l == null ? void 0 : l.pageNumber) + 1)), V7(
6573
6573
  r,
6574
6574
  t,
6575
6575
  e,
@@ -6581,7 +6581,7 @@ function K7(r, t, e, a, s, n, i = M1.Normal, o) {
6581
6581
  );
6582
6582
  }
6583
6583
  function _v(r, t, e, a, s, n = !1) {
6584
- const i = B3(r, s), o = B3(t, s), l = B3(e, s), u = B3(a, s);
6584
+ const i = T3(r, s), o = T3(t, s), l = T3(e, s), u = T3(a, s);
6585
6585
  let d = l;
6586
6586
  const c = u;
6587
6587
  return i > 0 && n && (d += i), o > 0 && !n && (d += o), {
@@ -6590,9 +6590,9 @@ function _v(r, t, e, a, s, n = !1) {
6590
6590
  };
6591
6591
  }
6592
6592
  function xv(r, t = 0, e, a, s, n) {
6593
- const i = B3(a, t);
6593
+ const i = T3(a, t);
6594
6594
  if (s) {
6595
- let o = B3(e, t);
6595
+ let o = T3(e, t);
6596
6596
  if (n) {
6597
6597
  const { spaceBelowApply: l } = n;
6598
6598
  if (o < l) {
@@ -6806,7 +6806,7 @@ function Lv(r) {
6806
6806
  return !1;
6807
6807
  return !0;
6808
6808
  }
6809
- function B3(r, t) {
6809
+ function T3(r, t) {
6810
6810
  if (!r)
6811
6811
  return 0;
6812
6812
  const { v: e, u: a } = r;
@@ -6930,7 +6930,7 @@ function Nv(r, t) {
6930
6930
  for (const s of a) {
6931
6931
  const { columns: n } = s;
6932
6932
  for (const i of n)
6933
- t && P4(t) && t(i);
6933
+ P4(t) && t(i);
6934
6934
  }
6935
6935
  }
6936
6936
  }
@@ -7283,7 +7283,7 @@ function Jv(r, t) {
7283
7283
  function rt(r) {
7284
7284
  return (r - 100) / 2;
7285
7285
  }
7286
- function f3(r, t, e, a = 1, s = le.SECTION) {
7286
+ function p3(r, t, e, a = 1, s = le.SECTION) {
7287
7287
  var _1, O1, z1, E1;
7288
7288
  const n = Qv(), {
7289
7289
  pageNumberStart: i = 1,
@@ -7393,7 +7393,7 @@ function m4(r, t, e, a, s, n = !0, i, o = 0) {
7393
7393
  localeService: c,
7394
7394
  drawings: h
7395
7395
  };
7396
- i == null && (i = f3(r, D, a), i.type = n ? g1.HEADER : g1.FOOTER, i.segmentId = s);
7396
+ i == null && (i = p3(r, D, a), i.type = n ? g1.HEADER : g1.FOOTER, i.segmentId = s);
7397
7397
  const w = r.layoutStartPointer[s];
7398
7398
  r.layoutStartPointer[s] = null;
7399
7399
  const _ = u6(
@@ -7444,7 +7444,7 @@ function st(r, t, e, a, s, n = Number.POSITIVE_INFINITY, i = Number.POSITIVE_INF
7444
7444
  marginRight: z.v,
7445
7445
  localeService: d,
7446
7446
  drawings: c
7447
- }, T = f3(
7447
+ }, T = p3(
7448
7448
  r,
7449
7449
  // Set first page height to availableHeight.
7450
7450
  Object.assign({}, C, {
@@ -7630,7 +7630,7 @@ function cb(r, t, e) {
7630
7630
  return hb(r, t, e);
7631
7631
  }
7632
7632
  function hb(r, t, e) {
7633
- return e === w3.DECIMAL ? G6(r, t) : e === w3.DECIMAL_ZERO ? kb(r, t) : e === w3.UPPER_LETTER ? mb(r, t) : e === w3.LOWER_LETTER ? pb(r, t) : e === w3.UPPER_ROMAN ? fb(r, t) : e === w3.LOWER_ROMAN ? vb(r, t) : G6(r, t);
7633
+ return e === D3.DECIMAL ? G6(r, t) : e === D3.DECIMAL_ZERO ? kb(r, t) : e === D3.UPPER_LETTER ? mb(r, t) : e === D3.LOWER_LETTER ? pb(r, t) : e === D3.UPPER_ROMAN ? fb(r, t) : e === D3.LOWER_ROMAN ? vb(r, t) : G6(r, t);
7634
7634
  }
7635
7635
  function G6(r, t) {
7636
7636
  return (r + t).toString();
@@ -7900,7 +7900,7 @@ function xb(r, t, e, a, s, n, i) {
7900
7900
  };
7901
7901
  if (I.endsWith(Q.PAGE_BREAK)) {
7902
7902
  P(), S.push(
7903
- f3(
7903
+ p3(
7904
7904
  r,
7905
7905
  n,
7906
7906
  o,
@@ -7913,7 +7913,7 @@ function xb(r, t, e, a, s, n, i) {
7913
7913
  P();
7914
7914
  const N = S[S.length - 1], U = i0(N);
7915
7915
  U && !U.isLast ? q7(U.column, !0) : S.push(
7916
- f3(
7916
+ p3(
7917
7917
  r,
7918
7918
  n,
7919
7919
  o,
@@ -13878,7 +13878,7 @@ Dt(zt, jt, 2, 1);
13878
13878
  Q4[28] = 0;
13879
13879
  e6[28] = 258;
13880
13880
  var Ry = By;
13881
- function x3(r, t, e, a, s) {
13881
+ function _3(r, t, e, a, s) {
13882
13882
  return Math.pow(1 - s, 3) * r + 3 * Math.pow(1 - s, 2) * s * t + 3 * (1 - s) * Math.pow(s, 2) * e + Math.pow(s, 3) * a;
13883
13883
  }
13884
13884
  function Q2() {
@@ -13905,15 +13905,15 @@ Q2.prototype.addBezier = function(r, t, e, a, s, n, i, o) {
13905
13905
  if (h === 0)
13906
13906
  continue;
13907
13907
  var p = -v / h;
13908
- 0 < p && p < 1 && (g === 0 && this.addX(x3(l[g], u[g], d[g], c[g], p)), g === 1 && this.addY(x3(l[g], u[g], d[g], c[g], p)));
13908
+ 0 < p && p < 1 && (g === 0 && this.addX(_3(l[g], u[g], d[g], c[g], p)), g === 1 && this.addY(_3(l[g], u[g], d[g], c[g], p)));
13909
13909
  continue;
13910
13910
  }
13911
13911
  var f = Math.pow(h, 2) - 4 * v * m;
13912
13912
  if (!(f < 0)) {
13913
13913
  var y = (-h + Math.sqrt(f)) / (2 * m);
13914
- 0 < y && y < 1 && (g === 0 && this.addX(x3(l[g], u[g], d[g], c[g], y)), g === 1 && this.addY(x3(l[g], u[g], d[g], c[g], y)));
13914
+ 0 < y && y < 1 && (g === 0 && this.addX(_3(l[g], u[g], d[g], c[g], y)), g === 1 && this.addY(_3(l[g], u[g], d[g], c[g], y)));
13915
13915
  var z = (-h - Math.sqrt(f)) / (2 * m);
13916
- 0 < z && z < 1 && (g === 0 && this.addX(x3(l[g], u[g], d[g], c[g], z)), g === 1 && this.addY(x3(l[g], u[g], d[g], c[g], z)));
13916
+ 0 < z && z < 1 && (g === 0 && this.addX(_3(l[g], u[g], d[g], c[g], z)), g === 1 && this.addY(_3(l[g], u[g], d[g], c[g], z)));
13917
13917
  }
13918
13918
  }
13919
13919
  };
@@ -18283,7 +18283,7 @@ m2[4] = function() {
18283
18283
  })
18284
18284
  };
18285
18285
  };
18286
- var I3 = {
18286
+ var O3 = {
18287
18287
  sequenceIndex: R.uShort,
18288
18288
  lookupListIndex: R.uShort
18289
18289
  };
@@ -18297,7 +18297,7 @@ m2[5] = function() {
18297
18297
  var n = this.parseUShort(), i = this.parseUShort();
18298
18298
  return {
18299
18299
  input: this.parseUShortList(n - 1),
18300
- lookupRecords: this.parseRecordList(i, I3)
18300
+ lookupRecords: this.parseRecordList(i, O3)
18301
18301
  };
18302
18302
  })
18303
18303
  };
@@ -18310,7 +18310,7 @@ m2[5] = function() {
18310
18310
  var n = this.parseUShort(), i = this.parseUShort();
18311
18311
  return {
18312
18312
  classes: this.parseUShortList(n - 1),
18313
- lookupRecords: this.parseRecordList(i, I3)
18313
+ lookupRecords: this.parseRecordList(i, O3)
18314
18314
  };
18315
18315
  })
18316
18316
  };
@@ -18319,7 +18319,7 @@ m2[5] = function() {
18319
18319
  return {
18320
18320
  substFormat: e,
18321
18321
  coverages: this.parseList(a, R.pointer(R.coverage)),
18322
- lookupRecords: this.parseRecordList(s, I3)
18322
+ lookupRecords: this.parseRecordList(s, O3)
18323
18323
  };
18324
18324
  }
18325
18325
  t1.assert(!1, "0x" + t.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
@@ -18335,7 +18335,7 @@ m2[6] = function() {
18335
18335
  backtrack: this.parseUShortList(),
18336
18336
  input: this.parseUShortList(this.parseShort() - 1),
18337
18337
  lookahead: this.parseUShortList(),
18338
- lookupRecords: this.parseRecordList(I3)
18338
+ lookupRecords: this.parseRecordList(O3)
18339
18339
  };
18340
18340
  })
18341
18341
  };
@@ -18351,7 +18351,7 @@ m2[6] = function() {
18351
18351
  backtrack: this.parseUShortList(),
18352
18352
  input: this.parseUShortList(this.parseShort() - 1),
18353
18353
  lookahead: this.parseUShortList(),
18354
- lookupRecords: this.parseRecordList(I3)
18354
+ lookupRecords: this.parseRecordList(O3)
18355
18355
  };
18356
18356
  })
18357
18357
  };
@@ -18361,7 +18361,7 @@ m2[6] = function() {
18361
18361
  backtrackCoverage: this.parseList(R.pointer(R.coverage)),
18362
18362
  inputCoverage: this.parseList(R.pointer(R.coverage)),
18363
18363
  lookaheadCoverage: this.parseList(R.pointer(R.coverage)),
18364
- lookupRecords: this.parseRecordList(I3)
18364
+ lookupRecords: this.parseRecordList(O3)
18365
18365
  };
18366
18366
  t1.assert(!1, "0x" + t.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
18367
18367
  };
@@ -19273,7 +19273,7 @@ function lj(r, t, e, a) {
19273
19273
  function uj(r, t, e, a, s) {
19274
19274
  return s.lowMemory ? lj(r, t, e, a) : oj(r, t, e, a);
19275
19275
  }
19276
- var t8 = { getPath: Qt, parse: uj }, a8, v3, r8, x4;
19276
+ var t8 = { getPath: Qt, parse: uj }, a8, f3, r8, x4;
19277
19277
  function s8(r) {
19278
19278
  this.font = r, this.getCommands = function(t) {
19279
19279
  return t8.getPath(t).commands;
@@ -19500,7 +19500,7 @@ s8.prototype.exec = function(r, t) {
19500
19500
  if (!s) {
19501
19501
  X2.prototype = mj, s = this._fpgmState = new X2("fpgm", e.tables.fpgm), s.funcs = [], s.font = e, exports.DEBUG && (console.log("---EXEC FPGM---"), s.step = -1);
19502
19502
  try {
19503
- v3(s);
19503
+ f3(s);
19504
19504
  } catch (u) {
19505
19505
  console.log("Hinting error in FPGM:" + u), this._errorState = 3;
19506
19506
  return;
@@ -19515,7 +19515,7 @@ s8.prototype.exec = function(r, t) {
19515
19515
  a.cvt = [];
19516
19516
  exports.DEBUG && (console.log("---EXEC PREP---"), a.step = -1);
19517
19517
  try {
19518
- v3(a);
19518
+ f3(a);
19519
19519
  } catch (u) {
19520
19520
  this._errorState < 2 && console.log("Hinting error in PREP:" + u), this._errorState = 2;
19521
19521
  }
@@ -19551,7 +19551,7 @@ r8 = function(r, t) {
19551
19551
  r.instructions && !o.inhibitGridFit && (o = new X2("glyf", r.instructions), o.gZone = o.z0 = o.z1 = o.z2 = i, o.contours = n, i.push(
19552
19552
  new M2(0, 0),
19553
19553
  new M2(Math.round(r.advanceWidth * e), 0)
19554
- ), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), o.step = -1), v3(o), i.length -= 2);
19554
+ ), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), o.step = -1), f3(o), i.length -= 2);
19555
19555
  }
19556
19556
  return i;
19557
19557
  };
@@ -19574,14 +19574,14 @@ x4 = function(r, t, e, a) {
19574
19574
  if (i.push(
19575
19575
  new M2(0, 0),
19576
19576
  new M2(Math.round(r.advanceWidth * e), 0)
19577
- ), v3(t), i.length -= 2, exports.DEBUG) {
19577
+ ), f3(t), i.length -= 2, exports.DEBUG) {
19578
19578
  console.log("FINISHED GLYPH", t.stack);
19579
19579
  for (var m = 0; m < n; m++)
19580
19580
  console.log(m, i[m].x, i[m].y);
19581
19581
  }
19582
19582
  }
19583
19583
  };
19584
- v3 = function(r) {
19584
+ f3 = function(r) {
19585
19585
  var t = r.prog;
19586
19586
  if (t) {
19587
19587
  var e = t.length, a;
@@ -19773,7 +19773,7 @@ function Nj(r) {
19773
19773
  var s = r.ip, n = r.prog;
19774
19774
  r.prog = r.funcs[e];
19775
19775
  for (var i = 0; i < a; i++)
19776
- v3(r), exports.DEBUG && console.log(
19776
+ f3(r), exports.DEBUG && console.log(
19777
19777
  ++r.step,
19778
19778
  i + 1 < a ? "next loopcall" : "done loopcall",
19779
19779
  i
@@ -19784,7 +19784,7 @@ function $j(r) {
19784
19784
  var t = r.stack.pop();
19785
19785
  exports.DEBUG && console.log(r.step, "CALL[]", t);
19786
19786
  var e = r.ip, a = r.prog;
19787
- r.prog = r.funcs[t], v3(r), r.ip = e, r.prog = a, exports.DEBUG && console.log(++r.step, "returning from", t);
19787
+ r.prog = r.funcs[t], f3(r), r.ip = e, r.prog = a, exports.DEBUG && console.log(++r.step, "returning from", t);
19788
19788
  }
19789
19789
  function Uj(r) {
19790
19790
  var t = r.stack, e = t.pop();
@@ -22686,7 +22686,7 @@ function u6(r, t, e, a, s, n) {
22686
22686
  for (let d = l; d < e.children.length; d++) {
22687
22687
  const c = e.children[d];
22688
22688
  let g = [], h = a;
22689
- if (i.length > 0 && (h = i[i.length - 1]), c.nodeType === W1.PARAGRAPH && (r.paragraphsOpenNewPage.has(c.endIndex) && (h = f3(
22689
+ if (i.length > 0 && (h = i[i.length - 1]), c.nodeType === W1.PARAGRAPH && (r.paragraphsOpenNewPage.has(c.endIndex) && (h = p3(
22690
22690
  r,
22691
22691
  s,
22692
22692
  r.skeletonResourceReference,
@@ -23687,7 +23687,7 @@ class k3 extends r0 {
23687
23687
  this._findLiquid.translateSave(), this._findLiquid.translateColumn(L);
23688
23688
  for (let P = 0; P < O.length; P++) {
23689
23689
  const N = O[P], { divides: U, type: H, lineHeight: V = 0 } = N;
23690
- if (H !== O3.BLOCK) {
23690
+ if (H !== M3.BLOCK) {
23691
23691
  this._findLiquid.translateSave(), this._findLiquid.translateLine(N);
23692
23692
  const { y: a1 } = this._findLiquid, u1 = a1, d1 = a1 + V, n1 = Math.abs(u - d1), l1 = U.length;
23693
23693
  for (let c1 = 0; c1 < l1; c1++) {
@@ -23900,7 +23900,7 @@ class k3 extends r0 {
23900
23900
  for (let c = l, g = s.getChildren().length; c < g; c++) {
23901
23901
  const h = s.getChildren()[c], m = Kv(e, c), { sectionType: v, columnProperties: p, columnSeparatorType: f, sectionTypeNext: y, pageNumberStart: z = 1 } = m;
23902
23902
  let D = P3(o), w = !1;
23903
- e.sectionBreakConfigCache.set(h.endIndex, m), v === Ke.CONTINUOUS ? (l0(o), this._addNewSectionByContinuous(D, p, f), w = !0) : (u == null || D == null) && (D = f3(
23903
+ e.sectionBreakConfigCache.set(h.endIndex, m), v === Ke.CONTINUOUS ? (l0(o), this._addNewSectionByContinuous(D, p, f), w = !0) : (u == null || D == null) && (D = p3(
23904
23904
  e,
23905
23905
  m,
23906
23906
  i,
@@ -24668,7 +24668,7 @@ let Y5 = class extends r0 {
24668
24668
  rowHeaderWidthAndMarginLeft: n,
24669
24669
  columnHeaderHeightAndMarginTop: i
24670
24670
  } = this;
24671
- let { startY: o, endY: l, startX: u, endX: d } = S3(
24671
+ let { startY: o, endY: l, startX: u, endX: d } = F3(
24672
24672
  t,
24673
24673
  e,
24674
24674
  a,
@@ -24682,7 +24682,7 @@ let Y5 = class extends r0 {
24682
24682
  };
24683
24683
  }
24684
24684
  getNoMergeCellPositionByIndexWithNoHeader(t, e) {
24685
- const { rowHeightAccumulation: a, columnWidthAccumulation: s } = this, { startY: n, endY: i, startX: o, endX: l } = S3(
24685
+ const { rowHeightAccumulation: a, columnWidthAccumulation: s } = this, { startY: n, endY: i, startX: o, endX: l } = F3(
24686
24686
  t,
24687
24687
  e,
24688
24688
  a,
@@ -25127,7 +25127,7 @@ let Y5 = class extends r0 {
25127
25127
  const u = l, d = this.worksheet.getCell(t, u);
25128
25128
  if (!m6(d) && u !== e || this.intersectMergeRange(t, u))
25129
25129
  return u === e ? u : u + 1 > o ? o : u + 1;
25130
- const { startX: c, endX: g } = S3(
25130
+ const { startX: c, endX: g } = F3(
25131
25131
  t,
25132
25132
  u,
25133
25133
  this.rowHeightAccumulation,
@@ -25142,7 +25142,7 @@ let Y5 = class extends r0 {
25142
25142
  const l = o, u = this.worksheet.getCell(t, l);
25143
25143
  if (!m6(u) && l !== e || this.intersectMergeRange(t, l))
25144
25144
  return l === e ? l : l - 1 < 0 ? 0 : l - 1;
25145
- const { startX: d, endX: c } = S3(
25145
+ const { startX: d, endX: c } = F3(
25146
25146
  t,
25147
25147
  l,
25148
25148
  this.rowHeightAccumulation,
@@ -25218,7 +25218,8 @@ let Y5 = class extends r0 {
25218
25218
  verticalAlign: u,
25219
25219
  horizontalAlign: d,
25220
25220
  wrapStrategy: l,
25221
- imageCacheMap: this._imageCacheMap
25221
+ imageCacheMap: this._imageCacheMap,
25222
+ fontRenderExtension: a == null ? void 0 : a.fontRenderExtension
25222
25223
  };
25223
25224
  this._stylesCache.fontMatrix.setValue(t, e, v), this._calculateOverflowCell(t, e, v);
25224
25225
  }
@@ -25243,8 +25244,8 @@ let Y5 = class extends r0 {
25243
25244
  if (!o)
25244
25245
  return;
25245
25246
  }
25246
- const h = this.worksheet.getCell(t, e) || this.worksheet.getCellRaw(t, e), m = this._styles.getStyleByCell(h), v = this.worksheet.getColumnStyle(e), p = this.worksheet.getRowStyle(t), f = this.worksheet.getDefaultCellStyleInternal(), y = this._isRowStylePrecedeColumnStyle ? p6(f, v, p, m) : p6(f, p, v, m);
25247
- this._setBgStylesCache(t, e, y, a), this._setBorderStylesCache(t, e, y, a), this._setFontStylesCache(t, e, h);
25247
+ const h = this.worksheet.getCell(t, e) || this.worksheet.getCellRaw(t, e), m = this._styles.getStyleByCell(h), v = this.worksheet.getColumnStyle(e), p = this.worksheet.getRowStyle(t), f = this.worksheet.getDefaultCellStyleInternal(), y = this._isRowStylePrecedeColumnStyle ? p6(f, v, p, h == null ? void 0 : h.themeStyle, m) : p6(f, p, v, h == null ? void 0 : h.themeStyle, m);
25248
+ this._setBgStylesCache(t, e, y, a), this._setBorderStylesCache(t, e, y, a), this._setFontStylesCache(t, e, { ...h, s: y });
25248
25249
  }
25249
25250
  _updateConfigAndGetDocumentModel(t, e, a, s) {
25250
25251
  var i, o, l, u, d;
@@ -25282,7 +25283,7 @@ let Y5 = class extends r0 {
25282
25283
  break;
25283
25284
  const h = (u = g.bd) == null ? void 0 : u[t];
25284
25285
  if (h) {
25285
- const m = m3(h.cl) || p3;
25286
+ const m = m3(h.cl) || L3;
25286
25287
  s.push({
25287
25288
  r: o,
25288
25289
  c: l,
@@ -25305,7 +25306,7 @@ let Y5 = class extends r0 {
25305
25306
  const i = (u = s.bd) == null ? void 0 : u[a];
25306
25307
  if (!i || !n.border)
25307
25308
  return;
25308
- const o = m3(i.cl) || p3, l = n.border;
25309
+ const o = m3(i.cl) || L3, l = n.border;
25309
25310
  if (l.getValue(t, e) || l.setValue(t, e, { [a]: {} }), a === K.TOP) {
25310
25311
  if (((d = l.getValue(t - 1, e)) == null ? void 0 : d[K.BOTTOM]) && f6(o))
25311
25312
  return;
@@ -25348,19 +25349,31 @@ let Y5 = class extends r0 {
25348
25349
  const e = this._columnWidthAccumulation, a = Math.max(0, t - 1);
25349
25350
  return e[a];
25350
25351
  }
25352
+ getHiddenRowsInRange(t) {
25353
+ const e = [];
25354
+ for (let a = t.startRow; a <= t.endRow; a++)
25355
+ this.worksheet.getRowVisible(a) || e.push(a);
25356
+ return e;
25357
+ }
25358
+ getHiddenColumnsInRange(t) {
25359
+ const e = [];
25360
+ for (let a = t.startColumn; a <= t.endColumn; a++)
25361
+ this.worksheet.getColVisible(a) || e.push(a);
25362
+ return e;
25363
+ }
25351
25364
  };
25352
25365
  Y5 = I_([
25353
- Ne(2, L3(n7)),
25366
+ Ne(2, I3(n7)),
25354
25367
  Ne(3, G8),
25355
25368
  Ne(4, u7),
25356
- Ne(5, L3(w0))
25369
+ Ne(5, I3(w0))
25357
25370
  ], Y5);
25358
25371
  const P_ = "DefaultFontExtension";
25359
25372
  function N_(r, t, e) {
25360
25373
  const a = e * Math.PI / 180, s = Math.abs(r * Math.cos(a)) + Math.abs(t * Math.sin(a)), n = Math.abs(r * Math.sin(a)) + Math.abs(t * Math.cos(a));
25361
25374
  return { rotatedWidth: s, rotatedHeight: n };
25362
25375
  }
25363
- class $_ extends z3 {
25376
+ class $_ extends y3 {
25364
25377
  constructor() {
25365
25378
  super(...arguments);
25366
25379
  k(this, "uKey", P_);
@@ -25386,7 +25399,8 @@ class $_ extends z3 {
25386
25399
  viewRanges: v,
25387
25400
  checkOutOfViewBound: p || !0,
25388
25401
  diffRanges: n,
25389
- spreadsheetSkeleton: s
25402
+ spreadsheetSkeleton: s,
25403
+ cellData: {}
25390
25404
  };
25391
25405
  e.save();
25392
25406
  const y = [], z = /* @__PURE__ */ new Set(), D = s.getRowCount() - 1, w = s.getColumnCount() - 1;
@@ -25419,7 +25433,7 @@ class $_ extends z3 {
25419
25433
  const _ = u.worksheet.getRowVisible(a), x = u.worksheet.getColVisible(s);
25420
25434
  if (!_ || !x) return !0;
25421
25435
  const C = u.worksheet.getCell(a, s) || {};
25422
- return (F = C.fontRenderExtension) != null && F.isSkip ? !0 : (i.save(), i.beginPath(), e.overflowRectangle = z, e.cellData = C, this._setFontRenderBounds(e, a, s, n), i.translate(e.startX + l2, e.startY + l2), this._renderDocuments(i, y, e.startX, e.startY, e.endX, e.endY, a, s, u.overflowCache), i.closePath(), i.restore(), (S = y.documentSkeleton.getViewModel().getDataModel().getDrawingsOrder()) != null && S.length && (i.save(), i.beginPath(), this._setFontRenderBounds(e, a, s, n, 1), this._renderImages(i, y, e.startX, e.startY, e.endX, e.endY), i.closePath(), i.restore()), e.startX = 0, e.startY = 0, e.endX = 0, e.endY = 0, e.overflowRectangle = null, e.cellData = null, !1);
25436
+ return e.cellData.cellDataInterceptor = C, (F = C.fontRenderExtension) != null && F.isSkip ? !0 : (i.save(), i.beginPath(), e.overflowRectangle = z, e.cellData = { fontCache: y }, this._setFontRenderBounds(e, a, s), i.translate(e.startX + l2, e.startY + l2), this._renderDocuments(i, y, e.startX, e.startY, e.endX, e.endY, a, s, u.overflowCache), i.closePath(), i.restore(), (S = y.documentSkeleton.getViewModel().getDataModel().getDrawingsOrder()) != null && S.length && (i.save(), i.beginPath(), this._setFontRenderBounds(e, a, s, 1), this._renderImages(i, y, e.startX, e.startY, e.endX, e.endY), i.closePath(), i.restore()), e.startX = 0, e.startY = 0, e.endX = 0, e.endY = 0, e.overflowRectangle = null, e.cellData = { fontCache: null }, !1);
25423
25437
  }
25424
25438
  _renderImages(e, a, s, n, i, o) {
25425
25439
  var z;
@@ -25465,7 +25479,13 @@ class $_ extends z3 {
25465
25479
  ), x = m + D.aLeft, C = v + D.aTop, T = D.width, F = D.height, S = D.angle, { rotatedHeight: M, rotatedWidth: B } = N_(T, F, S);
25466
25480
  if (_ && _.complete) {
25467
25481
  const A = S * Math.PI / 180;
25468
- e.save(), e.translate(x + B / 2, C + M / 2), e.rotate(A), e.drawImage(_, -B / 2, -M / 2, T, F), e.restore();
25482
+ e.save(), e.translate(x + B / 2, C + M / 2), e.rotate(A);
25483
+ try {
25484
+ e.drawImage(_, -B / 2, -M / 2, T, F);
25485
+ } catch (I) {
25486
+ console.error(I);
25487
+ }
25488
+ e.restore();
25469
25489
  }
25470
25490
  }
25471
25491
  });
@@ -25475,60 +25495,60 @@ class $_ extends z3 {
25475
25495
  * @param renderFontContext
25476
25496
  * @param row
25477
25497
  * @param col
25478
- * @param fontMatrix
25479
- */
25480
- _setFontRenderBounds(e, a, s, n, i = 0) {
25481
- var S, M, B, A;
25482
- const { ctx: o, scale: l, overflowRectangle: u, rowHeightAccumulation: d, columnWidthAccumulation: c, cellData: g } = e;
25483
- let { startX: h, endX: m, startY: v, endY: p } = e;
25484
- const f = n.getValue(a, s), { horizontalAlign: y, vertexAngle: z = 0, centerAngle: D = 0 } = f;
25485
- let w = y;
25486
- y === k1.UNSPECIFIED && (D === Y1 && z === Y1 ? w = k1.CENTER : (z > 0 && z !== Y1 || z === -Y1) && (w = k1.RIGHT));
25487
- const _ = (M = (S = g == null ? void 0 : g.fontRenderExtension) == null ? void 0 : S.rightOffset) != null ? M : 0, x = (A = (B = g == null ? void 0 : g.fontRenderExtension) == null ? void 0 : B.leftOffset) != null ? A : 0;
25488
- let C = !0;
25489
- z === 0 && (h = h + x, m = m - _, (_ !== 0 || x !== 0) && (C = !1));
25490
- const T = m - h, F = p - v;
25491
- if (u && C) {
25492
- const { startColumn: I, startRow: L, endColumn: O, endRow: P } = u;
25493
- I === O && I === s ? (o.rectByPrecision(
25494
- h + 1 / l,
25495
- v + 1 / l,
25496
- T - 2 / l,
25497
- F - 2 / l
25498
- ), o.clip()) : w === k1.CENTER ? this._clipRectangleForOverflow(
25499
- o,
25498
+ * @param fontCache
25499
+ */
25500
+ _setFontRenderBounds(e, a, s, n = 0) {
25501
+ var F, S, M, B, A;
25502
+ const { ctx: i, scale: o, overflowRectangle: l, rowHeightAccumulation: u, columnWidthAccumulation: d, cellData: c } = e;
25503
+ let { startX: g, endX: h, startY: m, endY: v } = e;
25504
+ const { horizontalAlign: p, vertexAngle: f = 0, centerAngle: y = 0 } = (F = c == null ? void 0 : c.fontCache) != null ? F : {};
25505
+ let z = p;
25506
+ p === k1.UNSPECIFIED && (y === Y1 && f === Y1 ? z = k1.CENTER : (f > 0 && f !== Y1 || f === -Y1) && (z = k1.RIGHT));
25507
+ const D = c.cellDataInterceptor, w = (M = (S = D == null ? void 0 : D.fontRenderExtension) == null ? void 0 : S.rightOffset) != null ? M : 0, _ = (A = (B = D == null ? void 0 : D.fontRenderExtension) == null ? void 0 : B.leftOffset) != null ? A : 0;
25508
+ let x = !0;
25509
+ f === 0 && (g = g + _, h = h - w, (w !== 0 || _ !== 0) && (x = !1));
25510
+ const C = h - g, T = v - m;
25511
+ if (l && x) {
25512
+ const { startColumn: I, startRow: L, endColumn: O, endRow: P } = l;
25513
+ I === O && I === s ? (i.rectByPrecision(
25514
+ g + 1 / o,
25515
+ m + 1 / o,
25516
+ C - 2 / o,
25517
+ T - 2 / o
25518
+ ), i.clip()) : z === k1.CENTER ? this._clipRectangleForOverflow(
25519
+ i,
25500
25520
  L,
25501
25521
  P,
25502
25522
  I,
25503
25523
  O,
25504
- l,
25505
- d,
25506
- c,
25507
- i
25508
- ) : w === k1.RIGHT ? this._clipRectangleForOverflow(
25509
25524
  o,
25525
+ u,
25526
+ d,
25527
+ n
25528
+ ) : z === k1.RIGHT ? this._clipRectangleForOverflow(
25529
+ i,
25510
25530
  L,
25511
25531
  a,
25512
25532
  I,
25513
25533
  s,
25514
- l,
25534
+ o,
25535
+ u,
25515
25536
  d,
25516
- c,
25517
- i
25537
+ n
25518
25538
  ) : this._clipRectangleForOverflow(
25519
- o,
25539
+ i,
25520
25540
  a,
25521
25541
  P,
25522
25542
  s,
25523
25543
  O,
25524
- l,
25544
+ o,
25545
+ u,
25525
25546
  d,
25526
- c,
25527
- i
25547
+ n
25528
25548
  );
25529
25549
  } else
25530
- o.rectByPrecision(h + 1 / l, v + 1 / l, T - 2 / l, F - 2 / l), o.clip();
25531
- e.startX = h, e.startY = v, e.endX = m, e.endY = p;
25550
+ i.rectByPrecision(g + 1 / o, m + 1 / o, C - 2 / o, T - 2 / o), i.clip();
25551
+ e.startX = g, e.startY = m, e.endX = h, e.endY = v;
25532
25552
  }
25533
25553
  _renderDocuments(e, a, s, n, i, o, l, u, d) {
25534
25554
  const c = this.getDocuments();
@@ -25556,7 +25576,7 @@ const U_ = "DefaultMarkerExtension", H_ = 60, q_ = (r) => {
25556
25576
  const { startRow: t, endRow: e, startColumn: a, endColumn: s } = r;
25557
25577
  return `${t}-${e}-${a}-${s}`;
25558
25578
  };
25559
- class G_ extends z3 {
25579
+ class G_ extends y3 {
25560
25580
  constructor() {
25561
25581
  super(...arguments);
25562
25582
  k(this, "Z_INDEX", H_);
@@ -25627,7 +25647,7 @@ const W_ = "DefaultRowHeaderLayoutExtension", s3 = {
25627
25647
  textAlign: "center",
25628
25648
  textBaseline: "middle"
25629
25649
  };
25630
- class X_ extends z3 {
25650
+ class X_ extends y3 {
25631
25651
  constructor(e) {
25632
25652
  super();
25633
25653
  k(this, "uKey", W_);
@@ -25689,13 +25709,13 @@ class X_ extends z3 {
25689
25709
  case "center":
25690
25710
  return z.left + (z.right - z.left) / 2;
25691
25711
  case "right":
25692
- return z.right - M3;
25712
+ return z.right - A3;
25693
25713
  case "left":
25694
- return z.left + M3;
25714
+ return z.left + A3;
25695
25715
  default:
25696
25716
  return z.left + (z.right - z.left) / 2;
25697
25717
  }
25698
- })(), x = m + (y - m) / 2 + M3;
25718
+ })(), x = m + (y - m) / 2 + A3;
25699
25719
  w && (e.save(), e.beginPath(), this.setStyleToCtx(e, D), e.rectByPrecision(z.left, z.top, z.width, z.height), e.clip()), e.fillText(D.text, _, x), w && e.restore(), m = y;
25700
25720
  }
25701
25721
  const p = i - 0.5 / h;
@@ -25853,8 +25873,8 @@ class J_ extends R0 {
25853
25873
  const f = h.get(p);
25854
25874
  if (!f)
25855
25875
  continue;
25856
- const { s: y, cl: z } = f, D = m3(z) || p3, w = S7(y);
25857
- y !== this._preBorderStyle && (F7(e, y), e.setLineWidthByPrecision(w), this._preBorderStyle = y), D !== this._preBorderColor && (e.strokeStyle = D || p3, this._preBorderColor = D), T3(e, p, (w - 1) / 2 / g, {
25876
+ const { s: y, cl: z } = f, D = m3(z) || L3, w = S7(y);
25877
+ y !== this._preBorderStyle && (F7(e, y), e.setLineWidthByPrecision(w), this._preBorderStyle = y), D !== this._preBorderColor && (e.strokeStyle = D, this._preBorderColor = D), S3(e, p, (w - 1) / 2 / g, {
25858
25878
  startX: m.x,
25859
25879
  startY: m.y,
25860
25880
  endX: m.x + d,
@@ -25925,7 +25945,7 @@ class G3 extends Z2 {
25925
25945
  k(this, "_strokeDashOffset", 0);
25926
25946
  k(this, "_strokeMiterLimit", 0);
25927
25947
  k(this, "_type", h7.RECT);
25928
- k(this, "objectType", y3.SHAPE);
25948
+ k(this, "objectType", b3.SHAPE);
25929
25949
  this._initialProps(a);
25930
25950
  }
25931
25951
  get hoverCursor() {
@@ -26117,7 +26137,7 @@ class p8 extends G3 {
26117
26137
  constructor(e, a) {
26118
26138
  super(e, a);
26119
26139
  k(this, "_radius");
26120
- k(this, "objectType", y3.CIRCLE);
26140
+ k(this, "objectType", b3.CIRCLE);
26121
26141
  this._radius = (a == null ? void 0 : a.radius) || 10, this._setFixBoundingBox(), this.onTransformChange$.subscribeEvent((s) => {
26122
26142
  const { type: n, value: i, preValue: o } = s;
26123
26143
  if (n === C1.resize || n === C1.all) {
@@ -26158,7 +26178,7 @@ const ax = ["radius"];
26158
26178
  class A1 extends G3 {
26159
26179
  constructor(e, a) {
26160
26180
  super(e, a);
26161
- k(this, "objectType", y3.RECT);
26181
+ k(this, "objectType", b3.RECT);
26162
26182
  k(this, "_radius", 0);
26163
26183
  /**
26164
26184
  * For rendering, in many case object size is bigger than visual size for better user interaction.
@@ -26217,7 +26237,7 @@ class f8 extends A1 {
26217
26237
  const { radius: a, paintFirst: s, stroke: n, strokeWidth: i, fill: o, strokeScaleEnabled: l, fillRule: u, strokeLineCap: d, strokeDashOffset: c, strokeLineJoin: g, strokeMiterLimit: h, strokeDashArray: m } = this, v = this.getParent().transform, p = v.getMatrix()[4], f = v.getMatrix()[5], y = p + this.width, z = f + this.height, D = { left: p, top: f, right: y, bottom: z };
26218
26238
  let { left: w, top: _, right: x, bottom: C } = D, T = x - w, F = C - _;
26219
26239
  if (e) {
26220
- const S = F3.getIntersectionBetweenTwoRect(D, e.cacheBound);
26240
+ const S = E3.getIntersectionBetweenTwoRect(D, e.cacheBound);
26221
26241
  S && (w = S.left - p, _ = S.top - f, x = S.right, C = S.bottom, T = S.width, F = S.height);
26222
26242
  }
26223
26243
  f8.drawWith(t, { radius: a, paintFirst: s, stroke: n, strokeWidth: i, fill: o, strokeScaleEnabled: l, fillRule: u, strokeLineCap: d, strokeDashOffset: c, strokeLineJoin: g, strokeMiterLimit: h, strokeDashArray: m, width: T, height: F, left: w, top: _ });
@@ -26232,7 +26252,7 @@ class tT extends G3 {
26232
26252
  k(this, "_native");
26233
26253
  k(this, "_renderByCropper", !1);
26234
26254
  k(this, "_transformCalculateSrcRect", !0);
26235
- k(this, "objectType", y3.IMAGE);
26255
+ k(this, "objectType", b3.IMAGE);
26236
26256
  this._props = {
26237
26257
  ...a
26238
26258
  }, a.image ? (this._native = a.image, this._native.crossOrigin = "anonymous", this.makeDirty(!0)) : a.url && (this._native = document.createElement("img"), this._native.src = a.url, this._native.crossOrigin = "anonymous", this._native.onload = () => {
@@ -26901,7 +26921,7 @@ class G1 extends G3 {
26901
26921
  }
26902
26922
  }
26903
26923
  const sx = ["pointsGroup"];
26904
- class R3 extends G3 {
26924
+ class B3 extends G3 {
26905
26925
  constructor(e, a) {
26906
26926
  super(e, a);
26907
26927
  k(this, "_pointsGroup");
@@ -26997,7 +27017,7 @@ class R3 extends G3 {
26997
27017
  };
26998
27018
  }
26999
27019
  _draw(e) {
27000
- R3.drawWith(e, this);
27020
+ B3.drawWith(e, this);
27001
27021
  }
27002
27022
  _setFixBoundingBox() {
27003
27023
  const { width: e, height: a, left: s, top: n } = this._getSelfRect();
@@ -27081,7 +27101,7 @@ class aT extends Z2 {
27081
27101
  * foreground
27082
27102
  */
27083
27103
  k(this, "_cl");
27084
- k(this, "objectType", y3.RICH_TEXT);
27104
+ k(this, "objectType", b3.RICH_TEXT);
27085
27105
  this._localeService = e, s != null && s.richText ? this._documentData = s.richText : s && (this._fs = s.fs, this._ff = s.ff, this._it = s.it, this._bl = s.bl, this._ul = s.ul, this._st = s.st, this._ol = s.ol, this._bg = s.bg, this._bd = s.bd, this._cl = s.cl, this._documentData = this._convertToDocumentData(s.text || ""));
27086
27106
  const n = this.documentModel = new Ze(this._documentData), i = new V2(n);
27087
27107
  this._documentSkeleton = k3.create(i, this._localeService), this._documents = new me(`${this.oKey}_DOCUMENTS`, this._documentSkeleton, {
@@ -27298,7 +27318,7 @@ class nx extends u2 {
27298
27318
  return ((e = this.verticalThumbRect) == null ? void 0 : e.visible) || !1;
27299
27319
  }
27300
27320
  }
27301
- const C3 = 17;
27321
+ const x3 = 17;
27302
27322
  class v8 extends nx {
27303
27323
  constructor(e, a) {
27304
27324
  super();
@@ -27370,7 +27390,7 @@ class v8 extends nx {
27370
27390
  }
27371
27391
  _resizeHorizontal(e, a, s) {
27372
27392
  var n, i, o, l, u;
27373
- this.enableHorizontal && (this.horizontalMinusMiniThumb = 0, this.horizontalBarWidth = e - (this.enableVertical ? this.barSize : 0) - this.barBorder, this.horizontalThumbWidth = this.horizontalBarWidth * (this.horizontalBarWidth - this.barBorder) / s * this.thumbLengthRatio, this.horizontalThumbWidth < C3 && (this.horizontalMinusMiniThumb = C3 - this.horizontalThumbWidth, this.horizontalThumbWidth = C3), (n = this.horizonScrollTrack) == null || n.transformByState({
27393
+ this.enableHorizontal && (this.horizontalMinusMiniThumb = 0, this.horizontalBarWidth = e - (this.enableVertical ? this.barSize : 0) - this.barBorder, this.horizontalThumbWidth = this.horizontalBarWidth * (this.horizontalBarWidth - this.barBorder) / s * this.thumbLengthRatio, this.horizontalThumbWidth < x3 && (this.horizontalMinusMiniThumb = x3 - this.horizontalThumbWidth, this.horizontalThumbWidth = x3), (n = this.horizonScrollTrack) == null || n.transformByState({
27374
27394
  left: 0,
27375
27395
  top: a - this.barSize,
27376
27396
  width: this.horizontalBarWidth,
@@ -27388,7 +27408,7 @@ class v8 extends nx {
27388
27408
  }
27389
27409
  _resizeVertical(e, a, s) {
27390
27410
  var n, i, o, l, u;
27391
- this.enableVertical && (this.verticalMinusMiniThumb = 0, this.verticalBarHeight = a - (this.enableHorizontal ? this.barSize : 0) - this.barBorder, this.verticalThumbHeight = this.verticalBarHeight * this.verticalBarHeight / s * this.thumbLengthRatio, this.verticalThumbHeight < C3 && (this.verticalMinusMiniThumb = C3 - this.verticalThumbHeight, this.verticalThumbHeight = C3), (n = this.verticalScrollTrack) == null || n.transformByState({
27411
+ this.enableVertical && (this.verticalMinusMiniThumb = 0, this.verticalBarHeight = a - (this.enableHorizontal ? this.barSize : 0) - this.barBorder, this.verticalThumbHeight = this.verticalBarHeight * this.verticalBarHeight / s * this.thumbLengthRatio, this.verticalThumbHeight < x3 && (this.verticalMinusMiniThumb = x3 - this.verticalThumbHeight, this.verticalThumbHeight = x3), (n = this.verticalScrollTrack) == null || n.transformByState({
27392
27412
  left: e - this.barSize,
27393
27413
  top: 0,
27394
27414
  width: this.barSize - this.barBorder,
@@ -27518,8 +27538,8 @@ class lx extends R0 {
27518
27538
  return;
27519
27539
  }
27520
27540
  e.font !== (l == null ? void 0 : l.fontString) && (e.font = (l == null ? void 0 : l.fontString) || "");
27521
- const { cl: c, va: g } = i, h = m3(c) || p3;
27522
- h && this._preFontColor !== h && (e.fillStyle = h), g === d3.SUPERSCRIPT ? d.y += -u.spo : g === d3.SUBSCRIPT && (d.y += u.sbo), this._fillText(e, s, d);
27541
+ const { cl: c, va: g } = i, h = m3(c) || L3;
27542
+ this._preFontColor !== h && (e.fillStyle = h), g === d3.SUPERSCRIPT ? d.y += -u.spo : g === d3.SUBSCRIPT && (d.y += u.sbo), this._fillText(e, s, d);
27523
27543
  }
27524
27544
  _fillText(e, a, s) {
27525
27545
  var f, y;
@@ -27595,7 +27615,7 @@ class gx extends R0 {
27595
27615
  renderConfig: m = {}
27596
27616
  } = this.extensionOffset, { left: v, width: p } = a, { centerAngle: f = 0, vertexAngle: y = 0 } = m;
27597
27617
  e.save();
27598
- const z = (c === J.TRUE ? m3((C = a.ts) == null ? void 0 : C.cl) : m3(u)) || p3;
27618
+ const z = (c === J.TRUE ? m3((C = a.ts) == null ? void 0 : C.cl) : m3(u)) || L3;
27599
27619
  e.strokeStyle = z, e.lineWidth = o, this._setLineType(e, d || c2.SINGLE);
27600
27620
  const D = V1(f), w = V1(y), _ = h2(
27601
27621
  g.addByPoint(v, n),
@@ -27767,7 +27787,7 @@ class me extends m8 {
27767
27787
  } = T7(Z1, O2, l1);
27768
27788
  let L2 = r2;
27769
27789
  R1 > this.height && H !== e2.WRAP && (H === e2.OVERFLOW || l1 > 0) && (L2 = this.height / Math.tan(Math.abs(l1)));
27770
- const j3 = this._horizontalHandler(
27790
+ const z3 = this._horizontalHandler(
27771
27791
  L2,
27772
27792
  C,
27773
27793
  T,
@@ -27781,11 +27801,11 @@ class me extends m8 {
27781
27801
  x,
27782
27802
  O
27783
27803
  ) - g2;
27784
- R1 > this.height && (l1 < 0 ? b1 = this.height - (R1 + g2) : b1 = -g2), H1 = $.create(j3 + y2, b1), this._drawLiquid.translate(0, -e3), B1 = L1;
27804
+ R1 > this.height && (l1 < 0 ? b1 = this.height - (R1 + g2) : b1 = -g2), H1 = $.create(z3 + y2, b1), this._drawLiquid.translate(0, -e3), B1 = L1;
27785
27805
  } else H === e2.WRAP && (P !== k1.UNSPECIFIED || V !== u3.NUMBER) && (H1.x = C);
27786
27806
  for (let L1 = 0; L1 < I2; L1++) {
27787
- const R1 = Z1[L1], { divides: r2, asc: y2 = 0, type: g2, lineHeight: e3 = 0 } = R1, L2 = y2, j3 = L2 * Math.sin(n1), W3 = L2 * Math.cos(n1);
27788
- if (g2 === O3.BLOCK)
27807
+ const R1 = Z1[L1], { divides: r2, asc: y2 = 0, type: g2, lineHeight: e3 = 0 } = R1, L2 = y2, z3 = L2 * Math.sin(n1), W3 = L2 * Math.cos(n1);
27808
+ if (g2 === M3.BLOCK)
27789
27809
  for (const b1 of u)
27790
27810
  b1.type === ae.LINE && (b1.extensionOffset = {
27791
27811
  alignOffset: H1,
@@ -27795,9 +27815,9 @@ class me extends m8 {
27795
27815
  this._drawLiquid.translateSave(), this._drawLiquid.translateLine(R1, !0, !0), B1 && this._drawLiquid.translate(B1[L1]);
27796
27816
  const b1 = r2.length;
27797
27817
  for (let F2 = 0; F2 < b1; F2++) {
27798
- const X3 = r2[F2], { glyphGroup: D3 } = X3;
27818
+ const X3 = r2[F2], { glyphGroup: j3 } = X3;
27799
27819
  this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(X3);
27800
- for (const S2 of D3) {
27820
+ for (const S2 of j3) {
27801
27821
  if (!S2.content || S2.content.length === 0)
27802
27822
  continue;
27803
27823
  const { width: A0, left: _e } = S2, { x: xe, y: M0 } = this._drawLiquid, O0 = $.create(xe, M0), Y3 = $.create(A0 / 2, e3 / 2), I0 = {
@@ -27811,7 +27831,7 @@ class me extends m8 {
27811
27831
  };
27812
27832
  d && (d.extensionOffset = I0, d.draw(e, l, S2));
27813
27833
  }
27814
- for (const S2 of D3) {
27834
+ for (const S2 of j3) {
27815
27835
  if (!S2.content || S2.content.length === 0)
27816
27836
  continue;
27817
27837
  const { width: A0, left: _e, xOffset: xe } = S2, { x: M0, y: O0 } = this._drawLiquid, Y3 = $.create(M0, O0), Ce = $.create(A0 / 2, e3 / 2), I0 = h2(
@@ -27822,7 +27842,7 @@ class me extends m8 {
27822
27842
  H1
27823
27843
  ), _8 = h2(
27824
27844
  Y3.addByPoint(
27825
- _e + j3 + xe,
27845
+ _e + z3 + xe,
27826
27846
  W3
27827
27847
  ),
27828
27848
  Ce,
@@ -27932,7 +27952,7 @@ class me extends m8 {
27932
27952
  const C = x.length, T = l;
27933
27953
  for (let F = 0; F < C; F++) {
27934
27954
  const S = x[F], { divides: M, asc: B = 0, type: A, lineHeight: I = 0 } = S, L = B, O = L * Math.sin(u), P = L * Math.cos(u);
27935
- if (A === O3.BLOCK)
27955
+ if (A === M3.BLOCK)
27936
27956
  for (const N of n)
27937
27957
  N.type === ae.LINE && (N.extensionOffset = {
27938
27958
  alignOffset: T,
@@ -28003,22 +28023,22 @@ class me extends m8 {
28003
28023
  if (this._drawLiquid == null)
28004
28024
  return;
28005
28025
  let { x: u, y: d } = this._drawLiquid;
28006
- u += n, d += i, T3(e, K.LEFT, 0, {
28026
+ u += n, d += i, S3(e, K.LEFT, 0, {
28007
28027
  startX: u,
28008
28028
  startY: d,
28009
28029
  endX: u + o,
28010
28030
  endY: d + l
28011
- }), T3(e, K.TOP, 0, {
28031
+ }), S3(e, K.TOP, 0, {
28012
28032
  startX: u,
28013
28033
  startY: d,
28014
28034
  endX: u + o,
28015
28035
  endY: d + l
28016
- }), T3(e, K.RIGHT, 0, {
28036
+ }), S3(e, K.RIGHT, 0, {
28017
28037
  startX: u,
28018
28038
  startY: d,
28019
28039
  endX: u + o,
28020
28040
  endY: d + l
28021
- }), T3(e, K.BOTTOM, 0, {
28041
+ }), S3(e, K.BOTTOM, 0, {
28022
28042
  startX: u,
28023
28043
  startY: d,
28024
28044
  endX: u + o,
@@ -28038,7 +28058,7 @@ class me extends m8 {
28038
28058
  const D = z.length, w = o;
28039
28059
  for (let _ = 0; _ < D; _++) {
28040
28060
  const x = z[_], { divides: C, asc: T = 0, type: F, lineHeight: S = 0 } = x, M = T, B = M * Math.sin(l), A = M * Math.cos(l);
28041
- if (F === O3.BLOCK)
28061
+ if (F === M3.BLOCK)
28042
28062
  for (const I of s)
28043
28063
  I.type === ae.LINE && (I.extensionOffset = {
28044
28064
  alignOffset: w,
@@ -28220,7 +28240,7 @@ class rT extends I7 {
28220
28240
  if (!s)
28221
28241
  return;
28222
28242
  const { rowHeightAccumulation: n, columnWidthAccumulation: i, rowHeaderWidth: o, columnHeaderHeight: l } = s;
28223
- let { startY: u, endY: d, startX: c, endX: g } = S3(
28243
+ let { startY: u, endY: d, startX: c, endX: g } = F3(
28224
28244
  e,
28225
28245
  a,
28226
28246
  n,
@@ -29031,24 +29051,24 @@ class A4 extends u2 {
29031
29051
  let a = !0;
29032
29052
  this.renderEvenInBackground || (a = !1), a && (this._beginFrame(e), this._renderFrame(e), this._endFrame(e)), this._renderFrameTasks.length > 0 ? this._requestNewFrameHandler = Qe(this._renderFunction) : this._renderingQueueLaunched = !1;
29033
29053
  });
29034
- let a = 1, s = 1, n = 1, i = E3.Rendering;
29054
+ let a = 1, s = 1, n = 1, i = C3.Rendering;
29035
29055
  if (e[0] && typeof e[0] == "string") {
29036
29056
  this._unitId = e[0];
29037
29057
  const m = (o = e[1]) != null ? o : {
29038
29058
  elemWidth: 1,
29039
29059
  elemHeight: 1,
29040
29060
  pixelRatio: 1,
29041
- renderMode: E3.Rendering
29061
+ renderMode: C3.Rendering
29042
29062
  };
29043
- a = m.elementWidth, s = m.elementHeight, n = (l = m.pixelRatio) != null ? l : 1, i = (u = m.renderMode) != null ? u : E3.Rendering;
29063
+ a = m.elementWidth, s = m.elementHeight, n = (l = m.pixelRatio) != null ? l : 1, i = (u = m.renderMode) != null ? u : C3.Rendering;
29044
29064
  } else
29045
- a = (d = e[0]) != null ? d : 1, s = (c = e[1]) != null ? c : 1, n = (g = e[2]) != null ? g : 1, i = (h = e[3]) != null ? h : E3.Rendering;
29065
+ a = (d = e[0]) != null ? d : 1, s = (c = e[1]) != null ? c : 1, n = (g = e[2]) != null ? g : 1, i = (h = e[3]) != null ? h : C3.Rendering;
29046
29066
  this._canvas = new fe({
29047
29067
  mode: i,
29048
29068
  width: a,
29049
29069
  height: s,
29050
29070
  pixelRatio: n
29051
- }), this._init(), this._handleKeyboardAction(), this._handlePointerAction(), this._handleDragAction(), i !== E3.Printing && this._matchMediaHandler();
29071
+ }), this._init(), this._handleKeyboardAction(), this._handlePointerAction(), this._handleDragAction(), i !== C3.Printing && this._matchMediaHandler();
29052
29072
  }
29053
29073
  get clientRect$() {
29054
29074
  return this._rect$ || (this._rect$ = new c7((e) => {
@@ -30027,7 +30047,7 @@ const Bx = [
30027
30047
  "__SpreadsheetTransformerResizeRB__"
30028
30048
  /* RESIZE_RB */
30029
30049
  ], Rx = 2, q1 = 20, J1 = 20, Ax = 5e3, Mx = /* @__PURE__ */ new Set([
30030
- y3.CHART
30050
+ b3.CHART
30031
30051
  ]);
30032
30052
  class Ox extends u2 {
30033
30053
  constructor(e, a) {
@@ -30774,7 +30794,7 @@ class Ox extends u2 {
30774
30794
  left: h,
30775
30795
  top: m
30776
30796
  }, z = g, D = g / 4;
30777
- return v === p1.EAST_RESIZE ? (y.width = D, y.height = z, p = new A1(f, y)) : v === p1.WEST_RESIZE ? (y.width = D, y.height = z, p = new A1(f, y)) : v === p1.NORTH_RESIZE ? (y.width = z, y.height = D, p = new A1(f, y)) : v === p1.SOUTH_RESIZE ? (y.width = z, y.height = D, p = new A1(f, y)) : v === p1.NORTH_EAST_RESIZE ? (y.pointsGroup = this._getNorthEastPoints(z, D), p = new R3(f, y)) : v === p1.NORTH_WEST_RESIZE ? (y.pointsGroup = this._getNorthWestPoints(z, D), p = new R3(f, y)) : v === p1.SOUTH_EAST_RESIZE ? (y.pointsGroup = this._getSouthEastPoints(z, D), p = new R3(f, y)) : v === p1.SOUTH_WEST_RESIZE && (y.pointsGroup = this._getSouthWestPoints(z, D), p = new R3(f, y)), this._attachHover(p, v, p1.DEFAULT), p;
30797
+ return v === p1.EAST_RESIZE ? (y.width = D, y.height = z, p = new A1(f, y)) : v === p1.WEST_RESIZE ? (y.width = D, y.height = z, p = new A1(f, y)) : v === p1.NORTH_RESIZE ? (y.width = z, y.height = D, p = new A1(f, y)) : v === p1.SOUTH_RESIZE ? (y.width = z, y.height = D, p = new A1(f, y)) : v === p1.NORTH_EAST_RESIZE ? (y.pointsGroup = this._getNorthEastPoints(z, D), p = new B3(f, y)) : v === p1.NORTH_WEST_RESIZE ? (y.pointsGroup = this._getNorthWestPoints(z, D), p = new B3(f, y)) : v === p1.SOUTH_EAST_RESIZE ? (y.pointsGroup = this._getSouthEastPoints(z, D), p = new B3(f, y)) : v === p1.SOUTH_WEST_RESIZE && (y.pointsGroup = this._getSouthWestPoints(z, D), p = new B3(f, y)), this._attachHover(p, v, p1.DEFAULT), p;
30778
30798
  }
30779
30799
  _getNorthEastPoints(e, a) {
30780
30800
  const s = e - a;
@@ -31050,7 +31070,7 @@ class Lx extends u2 {
31050
31070
  k(this, "_viewports", []);
31051
31071
  k(this, "_cursor", p1.DEFAULT);
31052
31072
  k(this, "_defaultCursor", p1.DEFAULT);
31053
- k(this, "_addObject$", new A3(this));
31073
+ k(this, "_addObject$", new R3(this));
31054
31074
  k(this, "addObject$", this._addObject$.asObservable());
31055
31075
  k(this, "onTransformChange$", new s1());
31056
31076
  k(this, "onFileLoaded$", new s1());
@@ -31076,9 +31096,9 @@ class Lx extends u2 {
31076
31096
  * @deprecated use `fromGlobalEvent('keyup')` from rx.js instead.
31077
31097
  */
31078
31098
  k(this, "onKeyUp$", new s1());
31079
- k(this, "_beforeRender$", new A3(null));
31099
+ k(this, "_beforeRender$", new R3(null));
31080
31100
  k(this, "beforeRender$", this._beforeRender$.asObservable());
31081
- k(this, "_afterRender$", new A3(null));
31101
+ k(this, "_afterRender$", new R3(null));
31082
31102
  k(this, "afterRender$", this._afterRender$.asObservable());
31083
31103
  /**
31084
31104
  * Transformer constructor. Transformer is a special type of group that allow you transform
@@ -31856,7 +31876,7 @@ let y0 = class extends u2 {
31856
31876
  }
31857
31877
  };
31858
31878
  y0 = $x([
31859
- Ux(1, L3(w0))
31879
+ Ux(1, I3(w0))
31860
31880
  ], y0);
31861
31881
  var Hx = Object.defineProperty, qx = Object.getOwnPropertyDescriptor, Gx = (r, t, e, a) => {
31862
31882
  for (var s = a > 1 ? void 0 : a ? qx(t, e) : t, n = r.length - 1, i; n >= 0; n--)
@@ -31870,7 +31890,7 @@ let O4 = class extends u2 {
31870
31890
  k(this, "_defaultEngine");
31871
31891
  k(this, "_currentUnitId", "");
31872
31892
  k(this, "_renderMap", /* @__PURE__ */ new Map());
31873
- k(this, "_currentRender$", new A3(this._currentUnitId));
31893
+ k(this, "_currentRender$", new R3(this._currentUnitId));
31874
31894
  k(this, "currentRender$", this._currentRender$.asObservable());
31875
31895
  k(this, "_createRender$", new N1());
31876
31896
  /** @deprecated */
@@ -32037,7 +32057,7 @@ let O4 = class extends u2 {
32037
32057
  }
32038
32058
  };
32039
32059
  O4 = Gx([
32040
- a7(0, L3(w0)),
32060
+ a7(0, I3(w0)),
32041
32061
  a7(1, Y8)
32042
32062
  ], O4);
32043
32063
  const Yx = g7("engine-render.render-manager.service");
@@ -32066,7 +32086,7 @@ let s7 = (u4 = class extends V8 {
32066
32086
  }
32067
32087
  }, k(u4, "pluginName", eC), u4);
32068
32088
  s7 = Jx([
32069
- r7(1, L3(w0)),
32089
+ r7(1, I3(w0)),
32070
32090
  r7(2, u7)
32071
32091
  ], s7);
32072
32092
  class oT extends u2 {
@@ -34854,10 +34874,10 @@ export {
34854
34874
  le as BreakType,
34855
34875
  ex as CHECK_OBJECT_ARRAY,
34856
34876
  tx as CIRCLE_OBJECT_ARRAY,
34857
- p3 as COLOR_BLACK_RGB,
34877
+ L3 as COLOR_BLACK_RGB,
34858
34878
  p1 as CURSOR_TYPE,
34859
34879
  fe as Canvas,
34860
- E3 as CanvasRenderMode,
34880
+ C3 as CanvasRenderMode,
34861
34881
  d6 as CheckboxShape,
34862
34882
  p8 as Circle,
34863
34883
  Nf as ColumnHeaderLayout,
@@ -34909,19 +34929,19 @@ export {
34909
34929
  Zp as IsSafari,
34910
34930
  ra as LINK_VIEW_PORT_TYPE,
34911
34931
  Ex as Layer,
34912
- O3 as LineType,
34932
+ M3 as LineType,
34913
34933
  H4 as Liquid,
34914
34934
  Ix as MAIN_VIEW_PORT_KEY,
34915
34935
  j6 as MAXIMUM_COL_WIDTH,
34916
34936
  oa as MAXIMUM_ROW_HEIGHT,
34917
34937
  c4 as MEASURE_EXTENT,
34918
34938
  B6 as MEASURE_EXTENT_FOR_PARAGRAPH,
34919
- M3 as MIDDLE_CELL_POS_MAGIC_NUMBER,
34939
+ A3 as MIDDLE_CELL_POS_MAGIC_NUMBER,
34920
34940
  la as MIN_COL_WIDTH,
34921
34941
  G_ as Marker,
34922
34942
  IS as NORMAL_TEXT_SELECTION_PLUGIN_STYLE,
34923
34943
  Je as ORIENTATION_TYPE,
34924
- y3 as ObjectType,
34944
+ b3 as ObjectType,
34925
34945
  rx as PATH_OBJECT_ARRAY,
34926
34946
  qS as PRINTING_BG_Z_INDEX,
34927
34947
  Y2 as PageLayoutType,
@@ -34935,7 +34955,7 @@ export {
34935
34955
  L_ as RENDER_RAW_FORMULA_KEY,
34936
34956
  K5 as RICHTEXT_OBJECT_ARRAY,
34937
34957
  A1 as Rect,
34938
- R3 as RegularPolygon,
34958
+ B3 as RegularPolygon,
34939
34959
  R7 as RenderComponent,
34940
34960
  O4 as RenderManagerService,
34941
34961
  y0 as RenderUnit,
@@ -34957,7 +34977,7 @@ export {
34957
34977
  G3 as Shape,
34958
34978
  O7 as SheetColumnHeaderExtensionRegistry,
34959
34979
  I7 as SheetComponent,
34960
- z3 as SheetExtension,
34980
+ y3 as SheetExtension,
34961
34981
  M7 as SheetRowHeaderExtensionRegistry,
34962
34982
  xf as ShowGridlinesState,
34963
34983
  r0 as Skeleton,
@@ -34990,12 +35010,12 @@ export {
34990
35010
  rS as createImageElement,
34991
35011
  V1 as degToRad,
34992
35012
  cf as drawDiagonalLineByBorderType,
34993
- T3 as drawLineByBorderType,
35013
+ S3 as drawLineByBorderType,
34994
35014
  xS as expandRangeIfIntersects,
34995
35015
  Z as fixLineWidthByScale,
34996
35016
  Qp as generateRandomKey,
34997
35017
  vS as getCellByIndexWithMergeInfo,
34998
- S3 as getCellPositionByIndex,
35018
+ F3 as getCellPositionByIndex,
34999
35019
  He as getCellWithCoordByIndexCore,
35000
35020
  o0 as getCharSpaceApply,
35001
35021
  E2 as getColor,
@@ -35010,7 +35030,7 @@ export {
35010
35030
  hf as getLineOffset,
35011
35031
  S7 as getLineWidth,
35012
35032
  kf as getLineWith,
35013
- B3 as getNumberUnitValue,
35033
+ T3 as getNumberUnitValue,
35014
35034
  LS as getOffsetRectForDom,
35015
35035
  Jv as getPageFromPath,
35016
35036
  gf as getParagraphByGlyph,
@@ -35022,7 +35042,7 @@ export {
35022
35042
  CS as getSystemHighlightColor,
35023
35043
  XS as getTableIdAndSliceIndex,
35024
35044
  MS as getTranslateInSpreadContextWithPixelRatio,
35025
- b3 as getValueType,
35045
+ v3 as getValueType,
35026
35046
  VS as glyphIterator,
35027
35047
  uS as hasAllLatin,
35028
35048
  y7 as hasArabic,
@@ -35066,7 +35086,7 @@ export {
35066
35086
  i3 as ptToPixel,
35067
35087
  kS as ptToPx,
35068
35088
  fS as pxToInch,
35069
- _3 as pxToNum,
35089
+ w3 as pxToNum,
35070
35090
  mS as pxToPt,
35071
35091
  b7 as radToDeg,
35072
35092
  Qe as requestNewFrame,