@univerjs/engine-render 0.1.13 → 0.1.14

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,7 +1,7 @@
1
1
  var x6 = Object.defineProperty;
2
2
  var T6 = (r, t, e) => t in r ? x6(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var g = (r, t, e) => (T6(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { Tools as He, DEFAULT_STYLES as Je, FontStyleType as i2, BaselineOffset as nt, Rectangle as Rt, ColorKit as B6, Disposable as k1, Observable as ee, checkParagraphHasIndentByStyle as O6, DataStreamTreeTokenType as V, BorderStyleTypes as Le, BooleanNumber as re, DisposableCollection as A6, toDisposable as e1, sortRules as y1, Registry as W2, numberToABC as R6, ObjectMatrix as s1, ColumnSeparatorType as F2, SectionType as In, NumberUnitType as I6, GridType as $e, PageOrientType as d0, HorizontalAlign as oe, VerticalAlign as Pt, WrapStrategy as t1, SpacingRule as Mn, AlignTypeH as q1, ObjectRelativeFromH as De, ObjectRelativeFromV as he, AlignTypeV as Bt, LocaleService as vi, BulletAlignment as un, PositionedObjectLayoutType as u1, WrapTextType as g2, GlyphType as ft, numberToListABC as bi, DataStreamTreeNodeType as Ce, PRESET_LIST_TYPE as M6, insertTextToContent as L6, horizontalLineSegmentsSubtraction as P6, deleteContent as N6, DocumentDataModel as C2, searchArray as M1, extractPureTextFromCell as z6, CellValueType as Q1, isEmptyCell as L0, isNullCell as U6, getColorStyle as at, isWhiteColor as P0, IContextService as $6, DEFAULT_EMPTY_DOCUMENT_VALUE as yi, Range as Fi, TextDecoration as i1, COLORS as _t, requestImmediateMacroTask as Ci, MOVE_BUFFER_VALUE as N0, sortRulesByDesc as z0, IUniverInstanceService as H6, Plugin as G6, RxDisposable as j6, ILogService as X6 } from "@univerjs/core";
4
+ import { Tools as He, DEFAULT_STYLES as Je, FontStyleType as i2, BaselineOffset as nt, Rectangle as Rt, ColorKit as B6, Disposable as k1, Observable as Q, checkParagraphHasIndentByStyle as O6, DataStreamTreeTokenType as V, BorderStyleTypes as Le, BooleanNumber as re, DisposableCollection as A6, toDisposable as e1, sortRules as y1, Registry as W2, numberToABC as R6, ObjectMatrix as s1, ColumnSeparatorType as F2, SectionType as In, NumberUnitType as I6, GridType as $e, PageOrientType as d0, HorizontalAlign as oe, VerticalAlign as Pt, WrapStrategy as t1, SpacingRule as Mn, AlignTypeH as q1, ObjectRelativeFromH as De, ObjectRelativeFromV as he, AlignTypeV as Bt, LocaleService as vi, BulletAlignment as un, PositionedObjectLayoutType as u1, WrapTextType as g2, GlyphType as ft, numberToListABC as bi, DataStreamTreeNodeType as Ce, PRESET_LIST_TYPE as M6, insertTextToContent as L6, horizontalLineSegmentsSubtraction as P6, deleteContent as N6, DocumentDataModel as C2, searchArray as M1, extractPureTextFromCell as z6, CellValueType as Q1, isEmptyCell as L0, isNullCell as U6, getColorStyle as at, isWhiteColor as P0, IContextService as $6, DEFAULT_EMPTY_DOCUMENT_VALUE as yi, Range as Fi, TextDecoration as i1, COLORS as _t, requestImmediateMacroTask as Ci, MOVE_BUFFER_VALUE as N0, sortRulesByDesc as z0, IUniverInstanceService as H6, Plugin as G6, RxDisposable as j6, ILogService as X6 } from "@univerjs/core";
5
5
  import { Inject as Y2, Injector as Ei, createIdentifier as f0 } from "@wendellhu/redi";
6
6
  import { startWith as W6, distinctUntilChanged as Y6, BehaviorSubject as o1, Subject as ln, fromEvent as L1 } from "rxjs";
7
7
  var ki = /* @__PURE__ */ ((r) => (r.RECT = "rect", r.CIRCLE = "circle", r.PATH = "path", r))(ki || {}), T1 = /* @__PURE__ */ ((r) => (r.PointerMove = "PointerMove", r.PointerDown = "PointerDown", r.PointerUp = "PointerUp", r.PointerOut = "PointerOut", r.PointerLeave = "PointerLeave", r.PointerOver = "PointerOver", r.PointerEnter = "PointerEnter", r.wheel = "MouseWheel", r.KeyDown = "KeyDown", r.KeyUp = "KeyUp", r))(T1 || {}), V6 = /* @__PURE__ */ ((r) => (r[r.XY = 0] = "XY", r[r.X = 1] = "X", r[r.Y = 2] = "Y", r))(V6 || {});
@@ -2516,28 +2516,29 @@ class j1 extends k1 {
2516
2516
  super();
2517
2517
  g(this, "groupKey");
2518
2518
  g(this, "isInGroup", !1);
2519
- g(this, "onTransformChangeObservable", new ee());
2520
- g(this, "onPointerDownObserver", new ee());
2521
- g(this, "onPointerMoveObserver", new ee());
2522
- g(this, "onPointerUpObserver", new ee());
2523
- g(this, "onDblclickObserver", new ee());
2524
- g(this, "onTripleClickObserver", new ee());
2525
- g(this, "onMouseWheelObserver", new ee());
2519
+ g(this, "onTransformChangeObservable", new Q());
2520
+ g(this, "onPointerDownObserver", new Q());
2521
+ g(this, "onPointerMoveObserver", new Q());
2522
+ g(this, "onPointerUpObserver", new Q());
2523
+ g(this, "onDblclickObserver", new Q());
2524
+ g(this, "onTripleClickObserver", new Q());
2525
+ g(this, "onMouseWheelObserver", new Q());
2526
2526
  // onKeyDownObservable = new Observable<IKeyboardEvent>();
2527
2527
  // onKeyUpObservable = new Observable<IKeyboardEvent>();
2528
- g(this, "onPointerOutObserver", new ee());
2529
- g(this, "onPointerLeaveObserver", new ee());
2530
- g(this, "onPointerOverObserver", new ee());
2531
- g(this, "onPointerEnterObserver", new ee());
2532
- g(this, "onDragLeaveObserver", new ee());
2533
- g(this, "onDragOverObserver", new ee());
2534
- g(this, "onDragEnterObserver", new ee());
2535
- g(this, "onDropObserver", new ee());
2536
- g(this, "onIsAddedToParentObserver", new ee());
2537
- g(this, "onDisposeObserver", new ee());
2528
+ g(this, "onPointerOutObserver", new Q());
2529
+ g(this, "onPointerLeaveObserver", new Q());
2530
+ g(this, "onPointerOverObserver", new Q());
2531
+ g(this, "onPointerEnterObserver", new Q());
2532
+ g(this, "onDragLeaveObserver", new Q());
2533
+ g(this, "onDragOverObserver", new Q());
2534
+ g(this, "onDragEnterObserver", new Q());
2535
+ g(this, "onDropObserver", new Q());
2536
+ g(this, "onIsAddedToParentObserver", new Q());
2537
+ g(this, "onDisposeObserver", new Q());
2538
2538
  g(this, "_oKey");
2539
2539
  g(this, "_dirty", !0);
2540
2540
  g(this, "_forceDirty", !0);
2541
+ g(this, "_printable", !1);
2541
2542
  g(this, "_top", 0);
2542
2543
  g(this, "_topOrigin", 0);
2543
2544
  g(this, "_left", 0);
@@ -2578,6 +2579,9 @@ class j1 extends k1 {
2578
2579
  }
2579
2580
  return e;
2580
2581
  }
2582
+ get printable() {
2583
+ return this._printable;
2584
+ }
2581
2585
  get topOrigin() {
2582
2586
  return this._topOrigin;
2583
2587
  }
@@ -3127,8 +3131,8 @@ function Wi(r, t, e) {
3127
3131
  let _ = 0, m = -1;
3128
3132
  const v = [];
3129
3133
  for (let E = c - 1; E >= 0; E--) {
3130
- const k = r[E], { lineHeight: S = 0 } = k, w = S / d, x = (t + w) * h;
3131
- v.unshift(S / d), x > s && (s = x, _ = w, m = E), E === 0 ? a += S * h : E === c - 1 ? a += t * f + S / h : a += S / h;
3134
+ const k = r[E], { lineHeight: S = 0 } = k, x = S / d, w = (t + x) * h;
3135
+ v.unshift(S / d), w > s && (s = w, _ = x, m = E), E === 0 ? a += S * h : E === c - 1 ? a += t * f + S / h : a += S / h;
3132
3136
  }
3133
3137
  let y = ((p = r[m]) == null ? void 0 : p.lineHeight) || 0, F = 0;
3134
3138
  for (let E = m + 1; E <= c - 1; E++) {
@@ -3425,6 +3429,7 @@ function fD(r, t, e, n) {
3425
3429
  }
3426
3430
  class Yi {
3427
3431
  constructor(t) {
3432
+ g(this, "__mode", "rendering");
3428
3433
  g(this, "canvas");
3429
3434
  g(this, "_context");
3430
3435
  this._context = t, this.canvas = t.canvas;
@@ -4007,20 +4012,24 @@ class sS {
4007
4012
  class gD extends Yi {
4008
4013
  }
4009
4014
  class pD extends Yi {
4015
+ constructor() {
4016
+ super(...arguments);
4017
+ g(this, "__mode", "printing");
4018
+ }
4010
4019
  __getScale() {
4011
- const t = this.getTransform();
4020
+ const e = this.getTransform();
4012
4021
  return {
4013
- scaleX: t.a,
4014
- scaleY: t.d
4022
+ scaleX: e.a,
4023
+ scaleY: e.d
4015
4024
  };
4016
4025
  }
4017
- clearRect(t, e, n, i) {
4018
- const { scaleX: s, scaleY: a } = this.__getScale();
4019
- t = Z(t, s), e = Z(e, a), n = Z(n, s), i = Z(i, a), this._context.save(), this._context.fillStyle = Ne([255, 255, 255]), this._context.fillRect(t, e, n, i), this._context.restore();
4026
+ clearRect(e, n, i, s) {
4027
+ const { scaleX: a, scaleY: o } = this.__getScale();
4028
+ e = Z(e, a), n = Z(n, o), i = Z(i, a), s = Z(s, o), this._context.save(), this._context.fillStyle = Ne([255, 255, 255]), this._context.fillRect(e, n, i, s), this._context.restore();
4020
4029
  }
4021
- clearRectForTexture(t, e, n, i) {
4030
+ clearRectForTexture(e, n, i, s) {
4022
4031
  }
4023
- setGlobalCompositeOperation(t) {
4032
+ setGlobalCompositeOperation(e) {
4024
4033
  }
4025
4034
  }
4026
4035
  var Vi = /* @__PURE__ */ ((r) => (r[r.Rendering = 0] = "Rendering", r[r.Printing = 1] = "Printing", r))(Vi || {});
@@ -4394,19 +4403,18 @@ let bD = class extends ct {
4394
4403
  e.fillStyle = y || Ne([255, 255, 255]);
4395
4404
  const E = new Path2D();
4396
4405
  F.forValue((k, S) => {
4397
- var Q;
4398
- if (!o && !T2(a, k, S) || (Q = d.getCell(k, S).backgroundRenderExtension) != null && Q.isSkip)
4406
+ if (!o && !T2(a, k, S))
4399
4407
  return !0;
4400
4408
  const x = c == null ? void 0 : c.getValue(k, S);
4401
4409
  if (x == null)
4402
4410
  return !0;
4403
- let { startY: A, endY: R, startX: B, endX: M } = x;
4404
- const { isMerged: $, isMergedMainCell: I, mergeInfo: O } = x, L = s && s.length > 0 ? s : a, N = $i(L, [O]);
4405
- if (!T2(N, k, S) || $)
4411
+ let { startY: w, endY: O, startX: R, endX: I } = x;
4412
+ const { isMerged: M, isMergedMainCell: $, mergeInfo: A } = x, B = s && s.length > 0 ? s : a, L = $i(B, [A]);
4413
+ if (!T2(L, k, S) || M)
4406
4414
  return !0;
4407
- I && (A = O.startY, R = O.endY, B = O.startX, M = O.endX);
4408
- const P = Z(B, m), G = Z(A, v), K = Z(M, m), j = Z(R, v);
4409
- E.rect(P, G, K - P, j - G);
4415
+ $ && (w = A.startY, O = A.endY, R = A.startX, I = A.endX);
4416
+ const N = Z(R, m), P = Z(w, v), G = Z(I, m), K = Z(O, v);
4417
+ E.rect(N, P, G - N, K - P);
4410
4418
  }), e.fill(E);
4411
4419
  }), e.restore();
4412
4420
  }
@@ -4435,39 +4443,38 @@ let CD = class extends ct {
4435
4443
  e.translateWithPrecisionRatio(ze, ze);
4436
4444
  const v = this._getScale(e.getScale());
4437
4445
  l == null || l.forValue((y, F, E) => {
4438
- var I;
4439
- if (!E || (I = c.getCell(y, F).borderRenderExtension) != null && I.isSkip)
4446
+ if (!E)
4440
4447
  return !0;
4441
- const S = this.getCellIndex(
4448
+ const k = this.getCellIndex(
4442
4449
  y,
4443
4450
  F,
4444
4451
  d,
4445
4452
  f,
4446
4453
  a
4447
- ), { startY: w, endY: x, startX: A, endX: R } = S, { isMerged: B, isMergedMainCell: M, mergeInfo: $ } = S;
4448
- if (!this.isRenderDiffRangesByRow($.startRow, $.endRow, s))
4454
+ ), { startY: S, endY: x, startX: w, endX: O } = k, { isMerged: R, isMergedMainCell: I, mergeInfo: M } = k;
4455
+ if (!this.isRenderDiffRangesByRow(M.startRow, M.endRow, s))
4449
4456
  return !0;
4450
- for (const O in E) {
4451
- const { type: L, style: N, color: P } = E[O];
4452
- if (N === Le.NONE)
4457
+ for (const $ in E) {
4458
+ const { type: A, style: B, color: L } = E[$];
4459
+ if (B === Le.NONE)
4453
4460
  continue;
4454
- let G = w, K = x, j = A, Q = R;
4455
- if (L !== J.TOP && L !== J.BOTTOM && L !== J.LEFT && L !== J.RIGHT) {
4456
- if (B)
4461
+ let N = S, P = x, G = w, K = O;
4462
+ if (A !== J.TOP && A !== J.BOTTOM && A !== J.LEFT && A !== J.RIGHT) {
4463
+ if (R)
4457
4464
  return !0;
4458
- M && (G = $.startY, K = $.endY, j = $.startX, Q = $.endX);
4465
+ I && (N = M.startY, P = M.endY, G = M.startX, K = M.endX);
4459
4466
  }
4460
- const ie = Xi(N);
4461
- N !== _ && (ji(e, N), e.setLineWidthByPrecision(ie), _ = N), P !== m && (e.strokeStyle = P || ot, m = P), rD(e, L, {
4462
- startX: j,
4463
- startY: G,
4464
- endX: Q,
4465
- endY: K
4466
- }), !this._getOverflowExclusion(u, L, y, F) && Gi(e, L, (ie - 1) / 2 / v, {
4467
- startX: j,
4468
- startY: G,
4469
- endX: Q,
4470
- endY: K
4467
+ const j = Xi(B);
4468
+ B !== _ && (ji(e, B), e.setLineWidthByPrecision(j), _ = B), L !== m && (e.strokeStyle = L || ot, m = L), rD(e, A, {
4469
+ startX: G,
4470
+ startY: N,
4471
+ endX: K,
4472
+ endY: P
4473
+ }), !this._getOverflowExclusion(u, A, y, F) && Gi(e, A, (j - 1) / 2 / v, {
4474
+ startX: G,
4475
+ startY: N,
4476
+ endX: K,
4477
+ endY: P
4471
4478
  });
4472
4479
  }
4473
4480
  }), e.closePath(), e.restore();
@@ -4611,22 +4618,22 @@ function zn(r, t = -1) {
4611
4618
  const { lines: m } = _, v = h;
4612
4619
  let y = v, F = 0, E = Number.NEGATIVE_INFINITY;
4613
4620
  for (const k of m) {
4614
- const { divides: S, lineHeight: w } = k, x = y;
4615
- let A = x, R = 0, B = 0, M = 0;
4616
- F += w;
4621
+ const { divides: S, lineHeight: x } = k, w = y;
4622
+ let O = w, R = 0, I = 0, M = 0;
4623
+ F += x;
4617
4624
  const $ = S.length;
4618
- for (let I = 0; I < $; I++) {
4619
- const O = S[I], { glyphGroup: L } = O, N = A;
4625
+ for (let A = 0; A < $; A++) {
4626
+ const B = S[A], { glyphGroup: L } = B, N = O;
4620
4627
  let P = N;
4621
4628
  for (const G of L) {
4622
4629
  const K = G.glyphType === Ge.LIST ? 0 : G.count;
4623
4630
  P += K;
4624
- const j = G.bBox, { ba: Q, bd: ie } = j;
4625
- B = Math.max(B, Q), M = Math.max(M, ie), I === $ - 1 && (R += G.width);
4631
+ const j = G.bBox, { ba: ne, bd: se } = j;
4632
+ I = Math.max(I, ne), M = Math.max(M, se), A === $ - 1 && (R += G.width);
4626
4633
  }
4627
- L.length !== 0 && (L[0].xOffset !== 0 && I === $ - 1 && (R -= L[0].xOffset), I === $ - 1 && (R += O.left), O.st = N + 1, O.ed = P >= O.st ? P : O.st, A = O.ed);
4634
+ L.length !== 0 && (L[0].xOffset !== 0 && A === $ - 1 && (R -= L[0].xOffset), A === $ - 1 && (R += B.left), B.st = N + 1, B.ed = P >= B.st ? P : B.st, O = B.ed);
4628
4635
  }
4629
- k.st = x + 1, k.ed = A >= k.st ? A : k.st, k.width = R, k.asc = B, k.dsc = M, E = Math.max(E, R), y = k.ed;
4636
+ k.st = w + 1, k.ed = O >= k.st ? O : k.st, k.width = R, k.asc = I, k.dsc = M, E = Math.max(E, R), y = k.ed;
4630
4637
  }
4631
4638
  _.st = v + 1, _.ed = y >= _.st ? y : _.st, _.height = F, _.width = E, p += E, f = Math.max(f, _.height), h = _.ed;
4632
4639
  }
@@ -4777,36 +4784,37 @@ function MD(r, t, e) {
4777
4784
  };
4778
4785
  }
4779
4786
  function rt(r, t, e, n, i) {
4780
- const { startIndex: s } = e, a = t.getTextRun(r + s) || { ts: {}, st: 0, ed: 0 }, { st: o, ed: u } = a;
4781
- let { ts: l = {} } = a;
4782
- const c = $n.getValue(o, u);
4783
- if (c)
4784
- return c;
4785
4787
  const {
4786
- gridType: d = $e.LINES,
4787
- charSpace: h = 0,
4788
- documentTextStyle: f = {},
4789
- pageSize: p = {
4788
+ gridType: s = $e.LINES,
4789
+ charSpace: a = 0,
4790
+ documentTextStyle: o = {},
4791
+ pageSize: u = {
4790
4792
  width: Number.POSITIVE_INFINITY,
4791
4793
  height: Number.POSITIVE_INFINITY
4792
4794
  },
4793
- marginRight: _ = 0,
4794
- marginLeft: m = 0,
4795
- localeService: v
4796
- } = n, { snapToGrid: y = re.TRUE } = i;
4797
- l = { ...f, ...l };
4798
- const F = S2(l), E = {
4799
- ...f,
4800
- ...l
4801
- }, k = p.width || Number.POSITIVE_INFINITY - m - _, S = {
4802
- fontStyle: F,
4803
- textStyle: E,
4804
- charSpace: h,
4805
- gridType: d,
4806
- snapToGrid: y,
4807
- pageWidth: k
4795
+ marginRight: l = 0,
4796
+ marginLeft: c = 0,
4797
+ localeService: d,
4798
+ renderConfig: h = {}
4799
+ } = n, { isRenderStyle: f } = h, { startIndex: p } = e, _ = f === re.FALSE ? { ts: {}, st: 0, ed: 0 } : t.getTextRun(r + p) || { ts: {}, st: 0, ed: 0 }, { st: m, ed: v } = _;
4800
+ let { ts: y = {} } = _;
4801
+ const F = $n.getValue(m, v);
4802
+ if (F)
4803
+ return F;
4804
+ const { snapToGrid: E = re.TRUE } = i;
4805
+ y = { ...o, ...y };
4806
+ const k = S2(y), S = {
4807
+ ...o,
4808
+ ...y
4809
+ }, x = u.width || Number.POSITIVE_INFINITY - c - l, w = {
4810
+ fontStyle: k,
4811
+ textStyle: S,
4812
+ charSpace: a,
4813
+ gridType: s,
4814
+ snapToGrid: E,
4815
+ pageWidth: x
4808
4816
  };
4809
- return $n.setValue(o, u, S), S;
4817
+ return $n.setValue(m, v, w), w;
4810
4818
  }
4811
4819
  function LD() {
4812
4820
  return {
@@ -4851,11 +4859,11 @@ function UD(r, t) {
4851
4859
  marginBottom: E = 0,
4852
4860
  marginRight: k = 0,
4853
4861
  marginLeft: S = 0,
4854
- marginHeader: w = 0,
4855
- marginFooter: x = 0,
4856
- autoHyphenation: A = re.FALSE,
4862
+ marginHeader: x = 0,
4863
+ marginFooter: w = 0,
4864
+ autoHyphenation: O = re.FALSE,
4857
4865
  doNotHyphenateCaps: R = re.FALSE,
4858
- consecutiveHyphenLimit: B = Number.POSITIVE_INFINITY,
4866
+ consecutiveHyphenLimit: I = Number.POSITIVE_INFINITY,
4859
4867
  hyphenationZone: M,
4860
4868
  renderConfig: $ = {
4861
4869
  horizontalAlign: oe.LEFT,
@@ -4865,16 +4873,16 @@ function UD(r, t) {
4865
4873
  wrapStrategy: t1.UNSPECIFIED
4866
4874
  }
4867
4875
  } = o, {
4868
- pageNumberStart: I = u,
4869
- pageSize: O = l,
4876
+ pageNumberStart: A = u,
4877
+ pageSize: B = l,
4870
4878
  pageOrient: L = c,
4871
4879
  marginTop: N = F,
4872
4880
  marginBottom: P = E,
4873
4881
  marginRight: G = k,
4874
4882
  marginLeft: K = S,
4875
- marginHeader: j = w,
4876
- marginFooter: Q = x,
4877
- defaultHeaderId: ie = d,
4883
+ marginHeader: j = x,
4884
+ marginFooter: ne = w,
4885
+ defaultHeaderId: se = d,
4878
4886
  defaultFooterId: fe = h,
4879
4887
  evenPageHeaderId: ve = f,
4880
4888
  evenPageFooterId: ge = p,
@@ -4888,17 +4896,17 @@ function UD(r, t) {
4888
4896
  sectionType: ye,
4889
4897
  textDirection: Te,
4890
4898
  renderConfig: Oe = $
4891
- } = a, Ie = e.children[t + 1], S1 = (r1 = e.getSectionBreak(Ie == null ? void 0 : Ie.endIndex)) == null ? void 0 : r1.sectionType, Ae = { defaultHeaderId: ie, evenPageHeaderId: ve, firstPageHeaderId: de }, Ke = { defaultFooterId: fe, evenPageFooterId: ge, firstPageFooterId: ue };
4892
- return O.width === null && (O.width = Number.POSITIVE_INFINITY), O.height === null && (O.height = Number.POSITIVE_INFINITY), {
4893
- pageNumberStart: I,
4894
- pageSize: O,
4899
+ } = a, Ie = e.children[t + 1], S1 = (r1 = e.getSectionBreak(Ie == null ? void 0 : Ie.endIndex)) == null ? void 0 : r1.sectionType, Ae = { defaultHeaderId: se, evenPageHeaderId: ve, firstPageHeaderId: de }, Ke = { defaultFooterId: fe, evenPageFooterId: ge, firstPageFooterId: ue };
4900
+ return B.width === null && (B.width = Number.POSITIVE_INFINITY), B.height === null && (B.height = Number.POSITIVE_INFINITY), {
4901
+ pageNumberStart: A,
4902
+ pageSize: B,
4895
4903
  pageOrient: L,
4896
4904
  marginTop: N,
4897
4905
  marginBottom: P,
4898
4906
  marginRight: G,
4899
4907
  marginLeft: K,
4900
4908
  marginHeader: j,
4901
- marginFooter: Q,
4909
+ marginFooter: ne,
4902
4910
  headerIds: Ae,
4903
4911
  footerIds: Ke,
4904
4912
  useFirstPageHeaderFooter: Re,
@@ -4910,9 +4918,9 @@ function UD(r, t) {
4910
4918
  sectionTypeNext: S1,
4911
4919
  textDirection: Te,
4912
4920
  renderConfig: Oe,
4913
- autoHyphenation: A,
4921
+ autoHyphenation: O,
4914
4922
  doNotHyphenateCaps: R,
4915
- consecutiveHyphenLimit: B,
4923
+ consecutiveHyphenLimit: I,
4916
4924
  hyphenationZone: M,
4917
4925
  ...i
4918
4926
  };
@@ -5142,27 +5150,27 @@ function Et(r, t, e, n = 1, i = Ht.SECTION) {
5142
5150
  marginFooter: E = 0,
5143
5151
  marginLeft: k = 0,
5144
5152
  marginRight: S = 0,
5145
- renderConfig: w = {}
5146
- } = t, { skeHeaders: x, skeFooters: A } = e, { width: R = Number.POSITIVE_INFINITY, height: B = Number.POSITIVE_INFINITY } = o;
5147
- s.pageNumber = n, s.pageNumberStart = a, s.renderConfig = w, s.marginLeft = k, s.marginRight = S, s.breakType = i, s.pageWidth = R, s.width = 0, s.pageHeight = B, s.height = 0, s.pageOrient = u;
5148
- const { defaultHeaderId: M, evenPageHeaderId: $, firstPageHeaderId: I } = l, { defaultFooterId: O, evenPageFooterId: L, firstPageFooterId: N } = c;
5149
- let P = M != null ? M : "", G = O != null ? O : "";
5150
- n === a && d ? (P = I != null ? I : "", G = N != null ? N : "") : n % 2 === 0 && h && (P = $ != null ? $ : "", G = L != null ? L : "");
5153
+ renderConfig: x = {}
5154
+ } = t, { skeHeaders: w, skeFooters: O } = e, { width: R = Number.POSITIVE_INFINITY, height: I = Number.POSITIVE_INFINITY } = o;
5155
+ s.pageNumber = n, s.pageNumberStart = a, s.renderConfig = x, s.marginLeft = k, s.marginRight = S, s.breakType = i, s.pageWidth = R, s.width = 0, s.pageHeight = I, s.height = 0, s.pageOrient = u;
5156
+ const { defaultHeaderId: M, evenPageHeaderId: $, firstPageHeaderId: A } = l, { defaultFooterId: B, evenPageFooterId: L, firstPageFooterId: N } = c;
5157
+ let P = M != null ? M : "", G = B != null ? B : "";
5158
+ n === a && d ? (P = A != null ? A : "", G = N != null ? N : "") : n % 2 === 0 && h && (P = $ != null ? $ : "", G = L != null ? L : "");
5151
5159
  let K, j;
5152
- P && ((Se = x.get(P)) != null && Se.has(R) ? K = (xe = x.get(P)) == null ? void 0 : xe.get(R) : p && p.has(P) && (K = K0(
5160
+ P && ((Se = w.get(P)) != null && Se.has(R) ? K = (xe = w.get(P)) == null ? void 0 : xe.get(R) : p && p.has(P) && (K = K0(
5153
5161
  r,
5154
5162
  p.get(P),
5155
5163
  t,
5156
5164
  e
5157
- ), x.set(P, /* @__PURE__ */ new Map([[R, K]]))), s.headerId = P), G && ((ye = A.get(G)) != null && ye.has(R) ? j = (Te = A.get(G)) == null ? void 0 : Te.get(R) : f && f.has(G) && (j = K0(
5165
+ ), w.set(P, /* @__PURE__ */ new Map([[R, K]]))), s.headerId = P), G && ((ye = O.get(G)) != null && ye.has(R) ? j = (Te = O.get(G)) == null ? void 0 : Te.get(R) : f && f.has(G) && (j = K0(
5158
5166
  r,
5159
5167
  f.get(G),
5160
5168
  t,
5161
5169
  e
5162
- ), A.set(P, /* @__PURE__ */ new Map([[R, j]]))), s.footerId = G), s.marginTop = Z0(v, F, K), s.marginBottom = Z0(y, E, j);
5163
- const Q = s.sections, ie = Q[Q.length - 1], { marginTop: fe, marginBottom: ve, marginLeft: ge, marginRight: de } = s, ue = R - ge - de, Re = B - fe - ve;
5170
+ ), O.set(P, /* @__PURE__ */ new Map([[R, j]]))), s.footerId = G), s.marginTop = Z0(v, F, K), s.marginBottom = Z0(y, E, j);
5171
+ const ne = s.sections, se = ne[ne.length - 1], { marginTop: fe, marginBottom: ve, marginLeft: ge, marginRight: de } = s, ue = R - ge - de, Re = I - fe - ve;
5164
5172
  let be = 0;
5165
- ie && (be = ie.top + ie.height);
5173
+ se && (be = se.top + se.height);
5166
5174
  const pe = r4(
5167
5175
  _,
5168
5176
  m,
@@ -5171,7 +5179,7 @@ function Et(r, t, e, n = 1, i = Ht.SECTION) {
5171
5179
  ue,
5172
5180
  Re - be
5173
5181
  );
5174
- return pe.parent = s, Q.push(pe), s;
5182
+ return pe.parent = s, ne.push(pe), s;
5175
5183
  }
5176
5184
  function XD() {
5177
5185
  return {
@@ -5230,12 +5238,12 @@ function K0(r, t, e, n, i = !0) {
5230
5238
  y
5231
5239
  ).pages[0];
5232
5240
  zn([E]);
5233
- const k = E.sections[0].columns[0], S = k.height || 0, { skeDrawings: w, st: x, ed: A } = E, R = {
5241
+ const k = E.sections[0].columns[0], S = k.height || 0, { skeDrawings: x, st: w, ed: O } = E, R = {
5234
5242
  lines: k.lines,
5235
- skeDrawings: w,
5243
+ skeDrawings: x,
5236
5244
  height: S,
5237
- st: x,
5238
- ed: A,
5245
+ st: w,
5246
+ ed: O,
5239
5247
  marginLeft: c,
5240
5248
  marginRight: d
5241
5249
  };
@@ -11364,90 +11372,90 @@ function E4(r) {
11364
11372
  function hr(r, t) {
11365
11373
  r || E4(t);
11366
11374
  }
11367
- var te = { fail: E4, argument: hr, assert: hr }, dr = 32768, fr = 2147483648, kt = {}, H = {}, ne = {};
11375
+ var ee = { fail: E4, argument: hr, assert: hr }, dr = 32768, fr = 2147483648, kt = {}, H = {}, te = {};
11368
11376
  function d1(r) {
11369
11377
  return function() {
11370
11378
  return r;
11371
11379
  };
11372
11380
  }
11373
11381
  H.BYTE = function(r) {
11374
- return te.argument(r >= 0 && r <= 255, "Byte value should be between 0 and 255."), [r];
11382
+ return ee.argument(r >= 0 && r <= 255, "Byte value should be between 0 and 255."), [r];
11375
11383
  };
11376
- ne.BYTE = d1(1);
11384
+ te.BYTE = d1(1);
11377
11385
  H.CHAR = function(r) {
11378
11386
  return [r.charCodeAt(0)];
11379
11387
  };
11380
- ne.CHAR = d1(1);
11388
+ te.CHAR = d1(1);
11381
11389
  H.CHARARRAY = function(r) {
11382
11390
  typeof r > "u" && (r = "", console.warn("Undefined CHARARRAY encountered and treated as an empty string. This is probably caused by a missing glyph name."));
11383
11391
  for (var t = [], e = 0; e < r.length; e += 1)
11384
11392
  t[e] = r.charCodeAt(e);
11385
11393
  return t;
11386
11394
  };
11387
- ne.CHARARRAY = function(r) {
11395
+ te.CHARARRAY = function(r) {
11388
11396
  return typeof r > "u" ? 0 : r.length;
11389
11397
  };
11390
11398
  H.USHORT = function(r) {
11391
11399
  return [r >> 8 & 255, r & 255];
11392
11400
  };
11393
- ne.USHORT = d1(2);
11401
+ te.USHORT = d1(2);
11394
11402
  H.SHORT = function(r) {
11395
11403
  return r >= dr && (r = -(2 * dr - r)), [r >> 8 & 255, r & 255];
11396
11404
  };
11397
- ne.SHORT = d1(2);
11405
+ te.SHORT = d1(2);
11398
11406
  H.UINT24 = function(r) {
11399
11407
  return [r >> 16 & 255, r >> 8 & 255, r & 255];
11400
11408
  };
11401
- ne.UINT24 = d1(3);
11409
+ te.UINT24 = d1(3);
11402
11410
  H.ULONG = function(r) {
11403
11411
  return [r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255];
11404
11412
  };
11405
- ne.ULONG = d1(4);
11413
+ te.ULONG = d1(4);
11406
11414
  H.LONG = function(r) {
11407
11415
  return r >= fr && (r = -(2 * fr - r)), [r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255];
11408
11416
  };
11409
- ne.LONG = d1(4);
11417
+ te.LONG = d1(4);
11410
11418
  H.FIXED = H.ULONG;
11411
- ne.FIXED = ne.ULONG;
11419
+ te.FIXED = te.ULONG;
11412
11420
  H.FWORD = H.SHORT;
11413
- ne.FWORD = ne.SHORT;
11421
+ te.FWORD = te.SHORT;
11414
11422
  H.UFWORD = H.USHORT;
11415
- ne.UFWORD = ne.USHORT;
11423
+ te.UFWORD = te.USHORT;
11416
11424
  H.LONGDATETIME = function(r) {
11417
11425
  return [0, 0, 0, 0, r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255];
11418
11426
  };
11419
- ne.LONGDATETIME = d1(8);
11427
+ te.LONGDATETIME = d1(8);
11420
11428
  H.TAG = function(r) {
11421
- return te.argument(r.length === 4, "Tag should be exactly 4 ASCII characters."), [
11429
+ return ee.argument(r.length === 4, "Tag should be exactly 4 ASCII characters."), [
11422
11430
  r.charCodeAt(0),
11423
11431
  r.charCodeAt(1),
11424
11432
  r.charCodeAt(2),
11425
11433
  r.charCodeAt(3)
11426
11434
  ];
11427
11435
  };
11428
- ne.TAG = d1(4);
11436
+ te.TAG = d1(4);
11429
11437
  H.Card8 = H.BYTE;
11430
- ne.Card8 = ne.BYTE;
11438
+ te.Card8 = te.BYTE;
11431
11439
  H.Card16 = H.USHORT;
11432
- ne.Card16 = ne.USHORT;
11440
+ te.Card16 = te.USHORT;
11433
11441
  H.OffSize = H.BYTE;
11434
- ne.OffSize = ne.BYTE;
11442
+ te.OffSize = te.BYTE;
11435
11443
  H.SID = H.USHORT;
11436
- ne.SID = ne.USHORT;
11444
+ te.SID = te.USHORT;
11437
11445
  H.NUMBER = function(r) {
11438
11446
  return r >= -107 && r <= 107 ? [r + 139] : r >= 108 && r <= 1131 ? (r = r - 108, [(r >> 8) + 247, r & 255]) : r >= -1131 && r <= -108 ? (r = -r - 108, [(r >> 8) + 251, r & 255]) : r >= -32768 && r <= 32767 ? H.NUMBER16(r) : H.NUMBER32(r);
11439
11447
  };
11440
- ne.NUMBER = function(r) {
11448
+ te.NUMBER = function(r) {
11441
11449
  return H.NUMBER(r).length;
11442
11450
  };
11443
11451
  H.NUMBER16 = function(r) {
11444
11452
  return [28, r >> 8 & 255, r & 255];
11445
11453
  };
11446
- ne.NUMBER16 = d1(3);
11454
+ te.NUMBER16 = d1(3);
11447
11455
  H.NUMBER32 = function(r) {
11448
11456
  return [29, r >> 24 & 255, r >> 16 & 255, r >> 8 & 255, r & 255];
11449
11457
  };
11450
- ne.NUMBER32 = d1(5);
11458
+ te.NUMBER32 = d1(5);
11451
11459
  H.REAL = function(r) {
11452
11460
  var t = r.toString(), e = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);
11453
11461
  if (e) {
@@ -11463,13 +11471,13 @@ H.REAL = function(r) {
11463
11471
  u.push(parseInt(i.substr(l, 2), 16));
11464
11472
  return u;
11465
11473
  };
11466
- ne.REAL = function(r) {
11474
+ te.REAL = function(r) {
11467
11475
  return H.REAL(r).length;
11468
11476
  };
11469
11477
  H.NAME = H.CHARARRAY;
11470
- ne.NAME = ne.CHARARRAY;
11478
+ te.NAME = te.CHARARRAY;
11471
11479
  H.STRING = H.CHARARRAY;
11472
- ne.STRING = ne.CHARARRAY;
11480
+ te.STRING = te.CHARARRAY;
11473
11481
  kt.UTF8 = function(r, t, e) {
11474
11482
  for (var n = [], i = e, s = 0; s < i; s++, t += 1)
11475
11483
  n[s] = r.getUint8(t);
@@ -11487,7 +11495,7 @@ H.UTF16 = function(r) {
11487
11495
  }
11488
11496
  return t;
11489
11497
  };
11490
- ne.UTF16 = function(r) {
11498
+ te.UTF16 = function(r) {
11491
11499
  return r.length * 2;
11492
11500
  };
11493
11501
  var Xn = {
@@ -11575,7 +11583,7 @@ H.MACSTRING = function(r, t) {
11575
11583
  return n;
11576
11584
  }
11577
11585
  };
11578
- ne.MACSTRING = function(r, t) {
11586
+ te.MACSTRING = function(r, t) {
11579
11587
  var e = H.MACSTRING(r, t);
11580
11588
  return e !== void 0 ? e.length : 0;
11581
11589
  };
@@ -11638,7 +11646,7 @@ H.INDEX = function(r) {
11638
11646
  n
11639
11647
  );
11640
11648
  };
11641
- ne.INDEX = function(r) {
11649
+ te.INDEX = function(r) {
11642
11650
  return H.INDEX(r).length;
11643
11651
  };
11644
11652
  H.DICT = function(r) {
@@ -11648,7 +11656,7 @@ H.DICT = function(r) {
11648
11656
  }
11649
11657
  return t;
11650
11658
  };
11651
- ne.DICT = function(r) {
11659
+ te.DICT = function(r) {
11652
11660
  return H.DICT(r).length;
11653
11661
  };
11654
11662
  H.OPERATOR = function(r) {
@@ -11658,7 +11666,7 @@ H.OPERAND = function(r, t) {
11658
11666
  var e = [];
11659
11667
  if (Array.isArray(t))
11660
11668
  for (var n = 0; n < t.length; n += 1)
11661
- te.argument(r.length === t.length, "Not enough arguments given for type" + t), e = e.concat(H.OPERAND(r[n], t[n]));
11669
+ ee.argument(r.length === t.length, "Not enough arguments given for type" + t), e = e.concat(H.OPERAND(r[n], t[n]));
11662
11670
  else if (t === "SID")
11663
11671
  e = e.concat(H.NUMBER(r));
11664
11672
  else if (t === "offset")
@@ -11672,7 +11680,7 @@ H.OPERAND = function(r, t) {
11672
11680
  return e;
11673
11681
  };
11674
11682
  H.OP = H.BYTE;
11675
- ne.OP = ne.BYTE;
11683
+ te.OP = te.BYTE;
11676
11684
  var c2 = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap();
11677
11685
  H.CHARSTRING = function(r) {
11678
11686
  if (c2) {
@@ -11686,21 +11694,21 @@ H.CHARSTRING = function(r) {
11686
11694
  }
11687
11695
  return c2 && c2.set(r, e), e;
11688
11696
  };
11689
- ne.CHARSTRING = function(r) {
11697
+ te.CHARSTRING = function(r) {
11690
11698
  return H.CHARSTRING(r).length;
11691
11699
  };
11692
11700
  H.OBJECT = function(r) {
11693
11701
  var t = H[r.type];
11694
- return te.argument(t !== void 0, "No encoding function for type " + r.type), t(r.value);
11702
+ return ee.argument(t !== void 0, "No encoding function for type " + r.type), t(r.value);
11695
11703
  };
11696
- ne.OBJECT = function(r) {
11697
- var t = ne[r.type];
11698
- return te.argument(t !== void 0, "No sizeOf function for type " + r.type), t(r.value);
11704
+ te.OBJECT = function(r) {
11705
+ var t = te[r.type];
11706
+ return ee.argument(t !== void 0, "No sizeOf function for type " + r.type), t(r.value);
11699
11707
  };
11700
11708
  H.TABLE = function(r) {
11701
11709
  for (var t = [], e = r.fields.length, n = [], i = [], s = 0; s < e; s += 1) {
11702
11710
  var a = r.fields[s], o = H[a.type];
11703
- te.argument(o !== void 0, "No encoding function for field type " + a.type + " (" + a.name + ")");
11711
+ ee.argument(o !== void 0, "No encoding function for field type " + a.type + " (" + a.name + ")");
11704
11712
  var u = r[a.name];
11705
11713
  u === void 0 && (u = a.value);
11706
11714
  var l = o(u);
@@ -11708,25 +11716,25 @@ H.TABLE = function(r) {
11708
11716
  }
11709
11717
  for (var c = 0; c < n.length; c += 1) {
11710
11718
  var d = i[c], h = t.length;
11711
- te.argument(h < 65536, "Table " + r.tableName + " too big."), t[d] = h >> 8, t[d + 1] = h & 255, t = t.concat(n[c]);
11719
+ ee.argument(h < 65536, "Table " + r.tableName + " too big."), t[d] = h >> 8, t[d + 1] = h & 255, t = t.concat(n[c]);
11712
11720
  }
11713
11721
  return t;
11714
11722
  };
11715
- ne.TABLE = function(r) {
11723
+ te.TABLE = function(r) {
11716
11724
  for (var t = 0, e = r.fields.length, n = 0; n < e; n += 1) {
11717
- var i = r.fields[n], s = ne[i.type];
11718
- te.argument(s !== void 0, "No sizeOf function for field type " + i.type + " (" + i.name + ")");
11725
+ var i = r.fields[n], s = te[i.type];
11726
+ ee.argument(s !== void 0, "No sizeOf function for field type " + i.type + " (" + i.name + ")");
11719
11727
  var a = r[i.name];
11720
11728
  a === void 0 && (a = i.value), t += s(a), i.type === "TABLE" && (t += 2);
11721
11729
  }
11722
11730
  return t;
11723
11731
  };
11724
11732
  H.RECORD = H.TABLE;
11725
- ne.RECORD = ne.TABLE;
11733
+ te.RECORD = te.TABLE;
11726
11734
  H.LITERAL = function(r) {
11727
11735
  return r;
11728
11736
  };
11729
- ne.LITERAL = function(r) {
11737
+ te.LITERAL = function(r) {
11730
11738
  return r.length;
11731
11739
  };
11732
11740
  function we(r, t, e) {
@@ -11745,7 +11753,7 @@ we.prototype.encode = function() {
11745
11753
  return H.TABLE(this);
11746
11754
  };
11747
11755
  we.prototype.sizeOf = function() {
11748
- return ne.TABLE(this);
11756
+ return te.TABLE(this);
11749
11757
  };
11750
11758
  function Xt(r, t, e) {
11751
11759
  e === void 0 && (e = t.length);
@@ -11784,7 +11792,7 @@ function M2(r) {
11784
11792
  { name: "startCoverageIndex", type: "USHORT", value: t.index }
11785
11793
  ];
11786
11794
  }))
11787
- ) : te.assert(!1, "Coverage format must be 1 or 2.");
11795
+ ) : ee.assert(!1, "Coverage format must be 1 or 2.");
11788
11796
  }
11789
11797
  M2.prototype = Object.create(we.prototype);
11790
11798
  M2.prototype.constructor = M2;
@@ -11794,7 +11802,7 @@ function L2(r) {
11794
11802
  "scriptListTable",
11795
11803
  Wt("scriptRecord", r, function(t, e) {
11796
11804
  var n = t.script, i = n.defaultLangSys;
11797
- return te.assert(!!i, "Unable to write GSUB: script " + t.tag + " has no default language system."), [
11805
+ return ee.assert(!!i, "Unable to write GSUB: script " + t.tag + " has no default language system."), [
11798
11806
  { name: "scriptTag" + e, type: "TAG", value: t.tag },
11799
11807
  { name: "script" + e, type: "TABLE", value: new we("scriptTable", [
11800
11808
  { name: "defaultLangSys", type: "TABLE", value: new we("defaultLangSys", [
@@ -11837,7 +11845,7 @@ P2.prototype.constructor = P2;
11837
11845
  function N2(r, t) {
11838
11846
  we.call(this, "lookupListTable", Yn("lookup", r, function(e) {
11839
11847
  var n = t[e.lookupType];
11840
- return te.assert(!!n, "Unable to write GSUB lookup type " + e.lookupType + " tables."), new we("lookupTable", [
11848
+ return ee.assert(!!n, "Unable to write GSUB lookup type " + e.lookupType + " tables."), new we("lookupTable", [
11841
11849
  { name: "lookupType", type: "USHORT", value: e.lookupType },
11842
11850
  { name: "lookupFlag", type: "USHORT", value: e.lookupFlag }
11843
11851
  ].concat(Yn("subtable", e.subtables, n)));
@@ -12168,7 +12176,7 @@ T.prototype.parseFeatureList = function() {
12168
12176
  T.prototype.parseLookupList = function(r) {
12169
12177
  return this.parsePointer(T.list(T.pointer(function() {
12170
12178
  var t = this.parseUShort();
12171
- te.argument(1 <= t && t <= 9, "GPOS/GSUB lookup type " + t + " unknown.");
12179
+ ee.argument(1 <= t && t <= 9, "GPOS/GSUB lookup type " + t + " unknown.");
12172
12180
  var e = this.parseUShort(), n = e & 16;
12173
12181
  return {
12174
12182
  lookupType: t,
@@ -12181,7 +12189,7 @@ T.prototype.parseLookupList = function(r) {
12181
12189
  T.prototype.parseFeatureVariationsList = function() {
12182
12190
  return this.parsePointer32(function() {
12183
12191
  var r = this.parseUShort(), t = this.parseUShort();
12184
- te.argument(r === 1 && t < 1, "GPOS/GSUB feature variations table unknown.");
12192
+ ee.argument(r === 1 && t < 1, "GPOS/GSUB feature variations table unknown.");
12185
12193
  var e = this.parseRecordList32({
12186
12194
  conditionSetOffset: T.offset32,
12187
12195
  featureTableSubstitutionOffset: T.offset32
@@ -12221,7 +12229,7 @@ function n_(r, t, e, n, i) {
12221
12229
  }
12222
12230
  function r_(r, t) {
12223
12231
  var e = {};
12224
- e.version = q.getUShort(r, t), te.argument(e.version === 0, "cmap table version should be 0."), e.numTables = q.getUShort(r, t + 2);
12232
+ e.version = q.getUShort(r, t), ee.argument(e.version === 0, "cmap table version should be 0."), e.numTables = q.getUShort(r, t + 2);
12225
12233
  for (var n = -1, i = e.numTables - 1; i >= 0; i -= 1) {
12226
12234
  var s = q.getUShort(r, t + 4 + i * 8), a = q.getUShort(r, t + 4 + i * 8 + 2);
12227
12235
  if (s === 3 && (a === 0 || a === 1 || a === 10) || s === 0 && (a === 0 || a === 1 || a === 2 || a === 3 || a === 4)) {
@@ -13620,7 +13628,7 @@ n1.prototype.getContours = function() {
13620
13628
  var n = this.points[e];
13621
13629
  t.push(n), n.lastPointOfContour && (r.push(t), t = []);
13622
13630
  }
13623
- return te.argument(t.length === 0, "There are still points left in the current contour."), r;
13631
+ return ee.argument(t.length === 0, "There are still points left in the current contour."), r;
13624
13632
  };
13625
13633
  n1.prototype.getMetrics = function() {
13626
13634
  for (var r = this.path.commands, t = [], e = [], n = 0; n < r.length; n += 1) {
@@ -13947,17 +13955,17 @@ function mr(r, t, e) {
13947
13955
  } else
13948
13956
  p = r.tables.cff.topDict._subrs, _ = r.tables.cff.topDict._subrsBias, m = r.tables.cff.topDict._defaultWidthX, v = r.tables.cff.topDict._nominalWidthX;
13949
13957
  var E = m;
13950
- function k(x, A) {
13951
- d && o.closePath(), o.moveTo(x, A), d = !0;
13958
+ function k(w, O) {
13959
+ d && o.closePath(), o.moveTo(w, O), d = !0;
13952
13960
  }
13953
13961
  function S() {
13954
- var x;
13955
- x = u.length % 2 !== 0, x && !c && (E = u.shift() + v), l += u.length >> 1, u.length = 0, c = !0;
13962
+ var w;
13963
+ w = u.length % 2 !== 0, w && !c && (E = u.shift() + v), l += u.length >> 1, u.length = 0, c = !0;
13956
13964
  }
13957
- function w(x) {
13958
- for (var A, R, B, M, $, I, O, L, N, P, G, K, j = 0; j < x.length; ) {
13959
- var Q = x[j];
13960
- switch (j += 1, Q) {
13965
+ function x(w) {
13966
+ for (var O, R, I, M, $, A, B, L, N, P, G, K, j = 0; j < w.length; ) {
13967
+ var ne = w[j];
13968
+ switch (j += 1, ne) {
13961
13969
  case 1:
13962
13970
  S();
13963
13971
  break;
@@ -13984,26 +13992,26 @@ function mr(r, t, e) {
13984
13992
  n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), h = s + u.shift(), f = a + u.shift(), o.curveTo(n, i, s, a, h, f);
13985
13993
  break;
13986
13994
  case 10:
13987
- $ = u.pop() + _, I = p[$], I && w(I);
13995
+ $ = u.pop() + _, A = p[$], A && x(A);
13988
13996
  break;
13989
13997
  case 11:
13990
13998
  return;
13991
13999
  case 12:
13992
- switch (Q = x[j], j += 1, Q) {
14000
+ switch (ne = w[j], j += 1, ne) {
13993
14001
  case 35:
13994
- n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), O = s + u.shift(), L = a + u.shift(), N = O + u.shift(), P = L + u.shift(), G = N + u.shift(), K = P + u.shift(), h = G + u.shift(), f = K + u.shift(), u.shift(), o.curveTo(n, i, s, a, O, L), o.curveTo(N, P, G, K, h, f);
14002
+ n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), B = s + u.shift(), L = a + u.shift(), N = B + u.shift(), P = L + u.shift(), G = N + u.shift(), K = P + u.shift(), h = G + u.shift(), f = K + u.shift(), u.shift(), o.curveTo(n, i, s, a, B, L), o.curveTo(N, P, G, K, h, f);
13995
14003
  break;
13996
14004
  case 34:
13997
- n = h + u.shift(), i = f, s = n + u.shift(), a = i + u.shift(), O = s + u.shift(), L = a, N = O + u.shift(), P = a, G = N + u.shift(), K = f, h = G + u.shift(), o.curveTo(n, i, s, a, O, L), o.curveTo(N, P, G, K, h, f);
14005
+ n = h + u.shift(), i = f, s = n + u.shift(), a = i + u.shift(), B = s + u.shift(), L = a, N = B + u.shift(), P = a, G = N + u.shift(), K = f, h = G + u.shift(), o.curveTo(n, i, s, a, B, L), o.curveTo(N, P, G, K, h, f);
13998
14006
  break;
13999
14007
  case 36:
14000
- n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), O = s + u.shift(), L = a, N = O + u.shift(), P = a, G = N + u.shift(), K = P + u.shift(), h = G + u.shift(), o.curveTo(n, i, s, a, O, L), o.curveTo(N, P, G, K, h, f);
14008
+ n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), B = s + u.shift(), L = a, N = B + u.shift(), P = a, G = N + u.shift(), K = P + u.shift(), h = G + u.shift(), o.curveTo(n, i, s, a, B, L), o.curveTo(N, P, G, K, h, f);
14001
14009
  break;
14002
14010
  case 37:
14003
- n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), O = s + u.shift(), L = a + u.shift(), N = O + u.shift(), P = L + u.shift(), G = N + u.shift(), K = P + u.shift(), Math.abs(G - h) > Math.abs(K - f) ? h = G + u.shift() : f = K + u.shift(), o.curveTo(n, i, s, a, O, L), o.curveTo(N, P, G, K, h, f);
14011
+ n = h + u.shift(), i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), B = s + u.shift(), L = a + u.shift(), N = B + u.shift(), P = L + u.shift(), G = N + u.shift(), K = P + u.shift(), Math.abs(G - h) > Math.abs(K - f) ? h = G + u.shift() : f = K + u.shift(), o.curveTo(n, i, s, a, B, L), o.curveTo(N, P, G, K, h, f);
14004
14012
  break;
14005
14013
  default:
14006
- console.log("Glyph " + t.index + ": unknown operator 1200" + Q), u.length = 0;
14014
+ console.log("Glyph " + t.index + ": unknown operator 1200" + ne), u.length = 0;
14007
14015
  }
14008
14016
  break;
14009
14017
  case 14:
@@ -14044,10 +14052,10 @@ function mr(r, t, e) {
14044
14052
  n = h + u.shift(), i = f, s = n + u.shift(), a = i + u.shift(), h = s + u.shift(), f = a, o.curveTo(n, i, s, a, h, f);
14045
14053
  break;
14046
14054
  case 28:
14047
- A = x[j], R = x[j + 1], u.push((A << 24 | R << 16) >> 16), j += 2;
14055
+ O = w[j], R = w[j + 1], u.push((O << 24 | R << 16) >> 16), j += 2;
14048
14056
  break;
14049
14057
  case 29:
14050
- $ = u.pop() + r.gsubrsBias, I = r.gsubrs[$], I && w(I);
14058
+ $ = u.pop() + r.gsubrsBias, A = r.gsubrs[$], A && x(A);
14051
14059
  break;
14052
14060
  case 30:
14053
14061
  for (; u.length > 0 && (n = h, i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), h = s + u.shift(), f = a + (u.length === 1 ? u.shift() : 0), o.curveTo(n, i, s, a, h, f), u.length !== 0); )
@@ -14058,11 +14066,11 @@ function mr(r, t, e) {
14058
14066
  n = h, i = f + u.shift(), s = n + u.shift(), a = i + u.shift(), h = s + u.shift(), f = a + (u.length === 1 ? u.shift() : 0), o.curveTo(n, i, s, a, h, f);
14059
14067
  break;
14060
14068
  default:
14061
- Q < 32 ? console.log("Glyph " + t.index + ": unknown operator " + Q) : Q < 247 ? u.push(Q - 139) : Q < 251 ? (A = x[j], j += 1, u.push((Q - 247) * 256 + A + 108)) : Q < 255 ? (A = x[j], j += 1, u.push(-(Q - 251) * 256 - A - 108)) : (A = x[j], R = x[j + 1], B = x[j + 2], M = x[j + 3], j += 4, u.push((A << 24 | R << 16 | B << 8 | M) / 65536));
14069
+ ne < 32 ? console.log("Glyph " + t.index + ": unknown operator " + ne) : ne < 247 ? u.push(ne - 139) : ne < 251 ? (O = w[j], j += 1, u.push((ne - 247) * 256 + O + 108)) : ne < 255 ? (O = w[j], j += 1, u.push(-(ne - 251) * 256 - O - 108)) : (O = w[j], R = w[j + 1], I = w[j + 2], M = w[j + 3], j += 4, u.push((O << 24 | R << 16 | I << 8 | M) / 65536));
14062
14070
  }
14063
14071
  }
14064
14072
  }
14065
- return w(e), t.advanceWidth = E, o;
14073
+ return x(e), t.advanceWidth = E, o;
14066
14074
  }
14067
14075
  function S_(r, t, e, n) {
14068
14076
  var i = [], s, a = new q.Parser(r, t), o = a.parseCard8();
@@ -14117,9 +14125,9 @@ function w_(r, t, e, n) {
14117
14125
  n.lowMemory ? (F = m_(r, t + c.charStrings), e.nGlyphs = F.offsets.length) : (F = z1(r, t + c.charStrings), e.nGlyphs = F.objects.length);
14118
14126
  var E = E_(r, t + c.charset, e.nGlyphs, o.objects);
14119
14127
  if (c.encoding === 0 ? e.cffEncoding = new U2(o_, E) : c.encoding === 1 ? e.cffEncoding = new U2(u_, E) : e.cffEncoding = k_(r, t + c.encoding, E), e.encoding = e.encoding || e.cffEncoding, e.glyphs = new E1.GlyphSet(e), n.lowMemory)
14120
- e._push = function(w) {
14121
- var x = __(w, F.offsets, r, t + c.charStrings);
14122
- e.glyphs.push(w, E1.cffGlyphLoader(e, w, mr, x));
14128
+ e._push = function(x) {
14129
+ var w = __(x, F.offsets, r, t + c.charStrings);
14130
+ e.glyphs.push(x, E1.cffGlyphLoader(e, x, mr, w));
14123
14131
  };
14124
14132
  else
14125
14133
  for (var k = 0; k < e.nGlyphs; k += 1) {
@@ -14266,7 +14274,7 @@ function L_(r, t) {
14266
14274
  var P4 = { parse: w_, make: L_ };
14267
14275
  function P_(r, t) {
14268
14276
  var e = {}, n = new q.Parser(r, t);
14269
- return e.version = n.parseVersion(), e.fontRevision = Math.round(n.parseFixed() * 1e3) / 1e3, e.checkSumAdjustment = n.parseULong(), e.magicNumber = n.parseULong(), te.argument(e.magicNumber === 1594834165, "Font header has wrong magic number."), e.flags = n.parseUShort(), e.unitsPerEm = n.parseUShort(), e.created = n.parseLongDateTime(), e.modified = n.parseLongDateTime(), e.xMin = n.parseShort(), e.yMin = n.parseShort(), e.xMax = n.parseShort(), e.yMax = n.parseShort(), e.macStyle = n.parseUShort(), e.lowestRecPPEM = n.parseUShort(), e.fontDirectionHint = n.parseShort(), e.indexToLocFormat = n.parseShort(), e.glyphDataFormat = n.parseShort(), e;
14277
+ return e.version = n.parseVersion(), e.fontRevision = Math.round(n.parseFixed() * 1e3) / 1e3, e.checkSumAdjustment = n.parseULong(), e.magicNumber = n.parseULong(), ee.argument(e.magicNumber === 1594834165, "Font header has wrong magic number."), e.flags = n.parseUShort(), e.unitsPerEm = n.parseUShort(), e.created = n.parseLongDateTime(), e.modified = n.parseLongDateTime(), e.xMin = n.parseShort(), e.yMin = n.parseShort(), e.xMax = n.parseShort(), e.yMax = n.parseShort(), e.macStyle = n.parseUShort(), e.lowestRecPPEM = n.parseUShort(), e.fontDirectionHint = n.parseShort(), e.indexToLocFormat = n.parseShort(), e.glyphDataFormat = n.parseShort(), e;
14270
14278
  }
14271
14279
  function N_(r) {
14272
14280
  var t = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800, e = t;
@@ -14356,7 +14364,7 @@ function X_(r) {
14356
14364
  }
14357
14365
  function W_(r, t) {
14358
14366
  var e = new q.Parser(r, t), n = e.parseULong();
14359
- te.argument(n === 1, "Unsupported ltag table version."), e.skip("uLong", 1);
14367
+ ee.argument(n === 1, "Unsupported ltag table version."), e.skip("uLong", 1);
14360
14368
  for (var i = e.parseULong(), s = [], a = 0; a < i; a++) {
14361
14369
  for (var o = "", u = t + e.parseUShort(), l = e.parseUShort(), c = u; c < u + l; ++c)
14362
14370
  o += String.fromCharCode(r.getInt8(c));
@@ -15187,28 +15195,28 @@ function tv(r, t) {
15187
15195
  ));
15188
15196
  var S = l[p];
15189
15197
  if (S !== void 0) {
15190
- var w = H.UTF16(_), x = yr(w, d);
15198
+ var x = H.UTF16(_), w = yr(x, d);
15191
15199
  c.push(br(
15192
15200
  3,
15193
15201
  1,
15194
15202
  S,
15195
15203
  e,
15196
- w.length,
15197
- x
15204
+ x.length,
15205
+ w
15198
15206
  ));
15199
15207
  }
15200
15208
  }
15201
15209
  }
15202
- c.sort(function(B, M) {
15203
- return B.platformID - M.platformID || B.encodingID - M.encodingID || B.languageID - M.languageID || B.nameID - M.nameID;
15210
+ c.sort(function(I, M) {
15211
+ return I.platformID - M.platformID || I.encodingID - M.encodingID || I.languageID - M.languageID || I.nameID - M.nameID;
15204
15212
  });
15205
- for (var A = new X.Table("name", [
15213
+ for (var O = new X.Table("name", [
15206
15214
  { name: "format", type: "USHORT", value: 0 },
15207
15215
  { name: "count", type: "USHORT", value: c.length },
15208
15216
  { name: "stringOffset", type: "USHORT", value: 6 + c.length * 12 }
15209
15217
  ]), R = 0; R < c.length; R++)
15210
- A.fields.push({ name: "record_" + R, type: "RECORD", value: c[R] });
15211
- return A.fields.push({ name: "strings", type: "LITERAL", value: d }), A;
15218
+ O.fields.push({ name: "record_" + R, type: "RECORD", value: c[R] });
15219
+ return O.fields.push({ name: "strings", type: "LITERAL", value: d }), O;
15212
15220
  }
15213
15221
  var Y4 = { parse: Q_, make: tv }, Kn = [
15214
15222
  { begin: 0, end: 127 },
@@ -15577,11 +15585,11 @@ l1[1] = function() {
15577
15585
  coverage: this.parsePointer(T.coverage),
15578
15586
  substitute: this.parseOffset16List()
15579
15587
  };
15580
- te.assert(!1, "0x" + t.toString(16) + ": lookup type 1 format must be 1 or 2.");
15588
+ ee.assert(!1, "0x" + t.toString(16) + ": lookup type 1 format must be 1 or 2.");
15581
15589
  };
15582
15590
  l1[2] = function() {
15583
15591
  var t = this.parseUShort();
15584
- return te.argument(t === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
15592
+ return ee.argument(t === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
15585
15593
  substFormat: t,
15586
15594
  coverage: this.parsePointer(T.coverage),
15587
15595
  sequences: this.parseListOfLists()
@@ -15589,7 +15597,7 @@ l1[2] = function() {
15589
15597
  };
15590
15598
  l1[3] = function() {
15591
15599
  var t = this.parseUShort();
15592
- return te.argument(t === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
15600
+ return ee.argument(t === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
15593
15601
  substFormat: t,
15594
15602
  coverage: this.parsePointer(T.coverage),
15595
15603
  alternateSets: this.parseListOfLists()
@@ -15597,7 +15605,7 @@ l1[3] = function() {
15597
15605
  };
15598
15606
  l1[4] = function() {
15599
15607
  var t = this.parseUShort();
15600
- return te.argument(t === 1, "GSUB ligature table identifier-format must be 1"), {
15608
+ return ee.argument(t === 1, "GSUB ligature table identifier-format must be 1"), {
15601
15609
  substFormat: t,
15602
15610
  coverage: this.parsePointer(T.coverage),
15603
15611
  ligatureSets: this.parseListOfLists(function() {
@@ -15647,7 +15655,7 @@ l1[5] = function() {
15647
15655
  lookupRecords: this.parseRecordList(i, Ft)
15648
15656
  };
15649
15657
  }
15650
- te.assert(!1, "0x" + t.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
15658
+ ee.assert(!1, "0x" + t.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
15651
15659
  };
15652
15660
  l1[6] = function() {
15653
15661
  var t = this.offset + this.relativeOffset, e = this.parseUShort();
@@ -15688,11 +15696,11 @@ l1[6] = function() {
15688
15696
  lookaheadCoverage: this.parseList(T.pointer(T.coverage)),
15689
15697
  lookupRecords: this.parseRecordList(Ft)
15690
15698
  };
15691
- te.assert(!1, "0x" + t.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
15699
+ ee.assert(!1, "0x" + t.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
15692
15700
  };
15693
15701
  l1[7] = function() {
15694
15702
  var t = this.parseUShort();
15695
- te.argument(t === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
15703
+ ee.argument(t === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
15696
15704
  var e = this.parseUShort(), n = new T(this.data, this.offset + this.parseULong());
15697
15705
  return {
15698
15706
  substFormat: 1,
@@ -15702,7 +15710,7 @@ l1[7] = function() {
15702
15710
  };
15703
15711
  l1[8] = function() {
15704
15712
  var t = this.parseUShort();
15705
- return te.argument(t === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
15713
+ return ee.argument(t === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
15706
15714
  substFormat: t,
15707
15715
  coverage: this.parsePointer(T.coverage),
15708
15716
  backtrackCoverage: this.parseList(T.pointer(T.coverage)),
@@ -15713,7 +15721,7 @@ l1[8] = function() {
15713
15721
  function ov(r, t) {
15714
15722
  t = t || 0;
15715
15723
  var e = new T(r, t), n = e.parseVersion(1);
15716
- return te.argument(n === 1 || n === 1.1, "Unsupported GSUB table version."), n === 1 ? {
15724
+ return ee.argument(n === 1 || n === 1.1, "Unsupported GSUB table version."), n === 1 ? {
15717
15725
  version: n,
15718
15726
  scripts: e.parseScriptList(),
15719
15727
  features: e.parseFeatureList(),
@@ -15738,7 +15746,7 @@ wt[1] = function(t) {
15738
15746
  ].concat(X.ushortList("substitute", t.substitute)));
15739
15747
  };
15740
15748
  wt[2] = function(t) {
15741
- return te.assert(t.substFormat === 1, "Lookup type 2 substFormat must be 1."), new X.Table("substitutionTable", [
15749
+ return ee.assert(t.substFormat === 1, "Lookup type 2 substFormat must be 1."), new X.Table("substitutionTable", [
15742
15750
  { name: "substFormat", type: "USHORT", value: 1 },
15743
15751
  { name: "coverage", type: "TABLE", value: new X.Coverage(t.coverage) }
15744
15752
  ].concat(X.tableList("seqSet", t.sequences, function(e) {
@@ -15746,7 +15754,7 @@ wt[2] = function(t) {
15746
15754
  })));
15747
15755
  };
15748
15756
  wt[3] = function(t) {
15749
- return te.assert(t.substFormat === 1, "Lookup type 3 substFormat must be 1."), new X.Table("substitutionTable", [
15757
+ return ee.assert(t.substFormat === 1, "Lookup type 3 substFormat must be 1."), new X.Table("substitutionTable", [
15750
15758
  { name: "substFormat", type: "USHORT", value: 1 },
15751
15759
  { name: "coverage", type: "TABLE", value: new X.Coverage(t.coverage) }
15752
15760
  ].concat(X.tableList("altSet", t.alternateSets, function(e) {
@@ -15754,7 +15762,7 @@ wt[3] = function(t) {
15754
15762
  })));
15755
15763
  };
15756
15764
  wt[4] = function(t) {
15757
- return te.assert(t.substFormat === 1, "Lookup type 4 substFormat must be 1."), new X.Table("substitutionTable", [
15765
+ return ee.assert(t.substFormat === 1, "Lookup type 4 substFormat must be 1."), new X.Table("substitutionTable", [
15758
15766
  { name: "substFormat", type: "USHORT", value: 1 },
15759
15767
  { name: "coverage", type: "TABLE", value: new X.Coverage(t.coverage) }
15760
15768
  ].concat(X.tableList("ligSet", t.ligatureSets, function(e) {
@@ -15781,7 +15789,7 @@ wt[6] = function(t) {
15781
15789
  })));
15782
15790
  return e;
15783
15791
  } else if (t.substFormat === 2)
15784
- te.assert(!1, "lookup type 6 format 2 is not yet supported.");
15792
+ ee.assert(!1, "lookup type 6 format 2 is not yet supported.");
15785
15793
  else if (t.substFormat === 3) {
15786
15794
  var n = [
15787
15795
  { name: "substFormat", type: "USHORT", value: t.substFormat }
@@ -15798,7 +15806,7 @@ wt[6] = function(t) {
15798
15806
  var i = new X.Table("chainContextTable", n);
15799
15807
  return i;
15800
15808
  }
15801
- te.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
15809
+ ee.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
15802
15810
  };
15803
15811
  function uv(r) {
15804
15812
  return new X.Table("GSUB", [
@@ -15811,7 +15819,7 @@ function uv(r) {
15811
15819
  var q4 = { parse: ov, make: uv };
15812
15820
  function lv(r, t) {
15813
15821
  var e = new q.Parser(r, t), n = e.parseULong();
15814
- te.argument(n === 1, "Unsupported META table version."), e.parseULong(), e.parseULong();
15822
+ ee.argument(n === 1, "Unsupported META table version."), e.parseULong(), e.parseULong();
15815
15823
  for (var i = e.parseULong(), s = {}, a = 0; a < i; a++) {
15816
15824
  var o = e.parseTag(), u = e.parseULong(), l = e.parseULong(), c = kt.UTF8(r, t + u, l);
15817
15825
  s[o] = c;
@@ -15865,9 +15873,9 @@ function Z4(r) {
15865
15873
  s += 1, i.push({ name: "padding", type: "BYTE", value: 0 });
15866
15874
  for (var a = 0; a < r.length; a += 1) {
15867
15875
  var o = r[a];
15868
- te.argument(o.tableName.length === 4, "Table name" + o.tableName + " is invalid.");
15876
+ ee.argument(o.tableName.length === 4, "Table name" + o.tableName + " is invalid.");
15869
15877
  var u = o.sizeOf(), l = Cr(o.tableName, B0(o.encode()), s, u);
15870
- for (n.push({ name: l.tag + " Table Record", type: "RECORD", value: l }), i.push({ name: o.tableName + " table", type: "RECORD", value: o }), s += u, te.argument(!isNaN(s), "Something went wrong calculating the offset."); s % 4 !== 0; )
15878
+ for (n.push({ name: l.tag + " Table Record", type: "RECORD", value: l }), i.push({ name: o.tableName + " table", type: "RECORD", value: o }), s += u, ee.argument(!isNaN(s), "Something went wrong calculating the offset."); s % 4 !== 0; )
15871
15879
  s += 1, i.push({ name: "padding", type: "BYTE", value: 0 });
15872
15880
  }
15873
15881
  return n.sort(function(c, d) {
@@ -15941,7 +15949,7 @@ function dv(r) {
15941
15949
  minRightSideBearing: F.minRightSideBearing,
15942
15950
  xMaxExtent: F.maxLeftSideBearing + (F.xMax - F.xMin),
15943
15951
  numberOfHMetrics: r.glyphs.length
15944
- }), S = H4.make(r.glyphs.length), w = Zn.make(Object.assign({
15952
+ }), S = H4.make(r.glyphs.length), x = Zn.make(Object.assign({
15945
15953
  xAvgCharWidth: Math.round(F.advanceWidthAvg),
15946
15954
  usFirstCharIndex: u,
15947
15955
  usLastCharIndex: l,
@@ -15966,30 +15974,30 @@ function dv(r) {
15966
15974
  // Use space as the default character, if available.
15967
15975
  usBreakChar: r.hasChar(" ") ? 32 : 0
15968
15976
  // Use space as the break character, if available.
15969
- }, r.tables.os2)), x = U4.make(r.glyphs), A = S4.make(r.glyphs), R = r.getEnglishName("fontFamily"), B = r.getEnglishName("fontSubfamily"), M = R + " " + B, $ = r.getEnglishName("postScriptName");
15970
- $ || ($ = R.replace(/\s/g, "") + "-" + B);
15971
- var I = {};
15972
- for (var O in r.names)
15973
- I[O] = r.names[O];
15974
- I.uniqueID || (I.uniqueID = { en: r.getEnglishName("manufacturer") + ":" + M }), I.postScriptName || (I.postScriptName = { en: $ }), I.preferredFamily || (I.preferredFamily = r.names.fontFamily), I.preferredSubfamily || (I.preferredSubfamily = r.names.fontSubfamily);
15975
- var L = [], N = Y4.make(I, L), P = L.length > 0 ? $4.make(L) : void 0, G = V4.make(), K = P4.make(r.glyphs, {
15977
+ }, r.tables.os2)), w = U4.make(r.glyphs), O = S4.make(r.glyphs), R = r.getEnglishName("fontFamily"), I = r.getEnglishName("fontSubfamily"), M = R + " " + I, $ = r.getEnglishName("postScriptName");
15978
+ $ || ($ = R.replace(/\s/g, "") + "-" + I);
15979
+ var A = {};
15980
+ for (var B in r.names)
15981
+ A[B] = r.names[B];
15982
+ A.uniqueID || (A.uniqueID = { en: r.getEnglishName("manufacturer") + ":" + M }), A.postScriptName || (A.postScriptName = { en: $ }), A.preferredFamily || (A.preferredFamily = r.names.fontFamily), A.preferredSubfamily || (A.preferredSubfamily = r.names.fontSubfamily);
15983
+ var L = [], N = Y4.make(A, L), P = L.length > 0 ? $4.make(L) : void 0, G = V4.make(), K = P4.make(r.glyphs, {
15976
15984
  version: r.getEnglishName("version"),
15977
15985
  fullName: M,
15978
15986
  familyName: R,
15979
- weightName: B,
15987
+ weightName: I,
15980
15988
  postScriptName: $,
15981
15989
  unitsPerEm: r.unitsPerEm,
15982
15990
  fontBBox: [0, F.yMin, F.ascender, F.advanceWidthMax]
15983
- }), j = r.metas && Object.keys(r.metas).length > 0 ? K4.make(r.metas) : void 0, Q = [E, k, S, w, N, A, G, K, x];
15984
- P && Q.push(P), r.tables.gsub && Q.push(q4.make(r.tables.gsub)), j && Q.push(j);
15985
- for (var ie = Z4(Q), fe = ie.encode(), ve = B0(fe), ge = ie.fields, de = !1, ue = 0; ue < ge.length; ue += 1)
15991
+ }), j = r.metas && Object.keys(r.metas).length > 0 ? K4.make(r.metas) : void 0, ne = [E, k, S, x, N, O, G, K, w];
15992
+ P && ne.push(P), r.tables.gsub && ne.push(q4.make(r.tables.gsub)), j && ne.push(j);
15993
+ for (var se = Z4(ne), fe = se.encode(), ve = B0(fe), ge = se.fields, de = !1, ue = 0; ue < ge.length; ue += 1)
15986
15994
  if (ge[ue].name === "head table") {
15987
15995
  ge[ue].value.checkSumAdjustment = 2981146554 - ve, de = !0;
15988
15996
  break;
15989
15997
  }
15990
15998
  if (!de)
15991
15999
  throw new Error("Could not find head table with checkSum to adjust.");
15992
- return ie;
16000
+ return se;
15993
16001
  }
15994
16002
  var fv = { make: Z4, fontToTable: dv, computeCheckSum: B0 };
15995
16003
  function bn(r, t) {
@@ -16153,7 +16161,7 @@ Qt.prototype = {
16153
16161
  return s.feature;
16154
16162
  if (n) {
16155
16163
  var l = o.length;
16156
- return te.assert(l === 0 || e >= o[l - 1].tag, "Features must be added in alphabetical order."), s = {
16164
+ return ee.assert(l === 0 || e >= o[l - 1].tag, "Features must be added in alphabetical order."), s = {
16157
16165
  tag: e,
16158
16166
  feature: { params: 0, lookupListIndexes: [] }
16159
16167
  }, o.push(s), a.push(l), s.feature;
@@ -16362,19 +16370,19 @@ Ve.prototype.addSingle = function(r, t, e, n) {
16362
16370
  coverage: { format: 1, glyphs: [] },
16363
16371
  substitute: []
16364
16372
  });
16365
- te.assert(s.coverage.format === 1, "Single: unable to modify coverage table format " + s.coverage.format);
16373
+ ee.assert(s.coverage.format === 1, "Single: unable to modify coverage table format " + s.coverage.format);
16366
16374
  var a = t.sub, o = this.binSearch(s.coverage.glyphs, a);
16367
16375
  o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.substitute.splice(o, 0, 0)), s.substitute[o] = t.by;
16368
16376
  };
16369
16377
  Ve.prototype.addMultiple = function(r, t, e, n) {
16370
- te.assert(t.by instanceof Array && t.by.length > 1, 'Multiple: "by" must be an array of two or more ids');
16378
+ ee.assert(t.by instanceof Array && t.by.length > 1, 'Multiple: "by" must be an array of two or more ids');
16371
16379
  var i = this.getLookupTables(e, n, r, 2, !0)[0], s = O0(i, 1, {
16372
16380
  // lookup type 2 subtable, format 1, coverage format 1
16373
16381
  substFormat: 1,
16374
16382
  coverage: { format: 1, glyphs: [] },
16375
16383
  sequences: []
16376
16384
  });
16377
- te.assert(s.coverage.format === 1, "Multiple: unable to modify coverage table format " + s.coverage.format);
16385
+ ee.assert(s.coverage.format === 1, "Multiple: unable to modify coverage table format " + s.coverage.format);
16378
16386
  var a = t.sub, o = this.binSearch(s.coverage.glyphs, a);
16379
16387
  o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.sequences.splice(o, 0, 0)), s.sequences[o] = t.by;
16380
16388
  };
@@ -16385,7 +16393,7 @@ Ve.prototype.addAlternate = function(r, t, e, n) {
16385
16393
  coverage: { format: 1, glyphs: [] },
16386
16394
  alternateSets: []
16387
16395
  });
16388
- te.assert(s.coverage.format === 1, "Alternate: unable to modify coverage table format " + s.coverage.format);
16396
+ ee.assert(s.coverage.format === 1, "Alternate: unable to modify coverage table format " + s.coverage.format);
16389
16397
  var a = t.sub, o = this.binSearch(s.coverage.glyphs, a);
16390
16398
  o < 0 && (o = -1 - o, s.coverage.glyphs.splice(o, 0, a), s.alternateSets.splice(o, 0, 0)), s.alternateSets[o] = t.by;
16391
16399
  };
@@ -16396,7 +16404,7 @@ Ve.prototype.addLigature = function(r, t, e, n) {
16396
16404
  substFormat: 1,
16397
16405
  coverage: { format: 1, glyphs: [] },
16398
16406
  ligatureSets: []
16399
- }, i.subtables[0] = s), te.assert(s.coverage.format === 1, "Ligature: unable to modify coverage table format " + s.coverage.format);
16407
+ }, i.subtables[0] = s), ee.assert(s.coverage.format === 1, "Ligature: unable to modify coverage table format " + s.coverage.format);
16400
16408
  var a = t.sub[0], o = t.sub.slice(1), u = {
16401
16409
  ligGlyph: t.by,
16402
16410
  components: o
@@ -16473,7 +16481,7 @@ function J4(r, t, e) {
16473
16481
  if (s = n.parseByte(), i.push(s), (s & 8) > 0)
16474
16482
  for (var d = n.parseByte(), h = 0; h < d; h += 1)
16475
16483
  i.push(s), c += 1;
16476
- if (te.argument(i.length === l, "Bad flags."), a.length > 0) {
16484
+ if (ee.argument(i.length === l, "Bad flags."), a.length > 0) {
16477
16485
  var f = [], p;
16478
16486
  if (l > 0) {
16479
16487
  for (var _ = 0; _ < l; _ += 1)
@@ -16527,7 +16535,7 @@ function mv(r) {
16527
16535
  var i = r[n];
16528
16536
  e.push(i), i.lastPointOfContour && (t.push(e), e = []);
16529
16537
  }
16530
- return te.argument(e.length === 0, "There are still points left in the current contour."), t;
16538
+ return ee.argument(e.length === 0, "There are still points left in the current contour."), t;
16531
16539
  }
16532
16540
  function Q4(r) {
16533
16541
  var t = new ke();
@@ -16984,8 +16992,8 @@ function Ov(r) {
16984
16992
  function Av(r) {
16985
16993
  var t = r.stack, e = t.pop(), n = t.pop(), i = t.pop(), s = t.pop(), a = t.pop(), o = r.z0, u = r.z1, l = o[e], c = o[n], d = u[i], h = u[s], f = r.z2[a];
16986
16994
  exports.DEBUG && console.log("ISECT[], ", e, n, i, s, a);
16987
- var p = l.x, _ = l.y, m = c.x, v = c.y, y = d.x, F = d.y, E = h.x, k = h.y, S = (p - m) * (F - k) - (_ - v) * (y - E), w = p * v - _ * m, x = y * k - F * E;
16988
- f.x = (w * (y - E) - x * (p - m)) / S, f.y = (w * (F - k) - x * (_ - v)) / S;
16995
+ var p = l.x, _ = l.y, m = c.x, v = c.y, y = d.x, F = d.y, E = h.x, k = h.y, S = (p - m) * (F - k) - (_ - v) * (y - E), x = p * v - _ * m, w = y * k - F * E;
16996
+ f.x = (x * (y - E) - w * (p - m)) / S, f.y = (x * (F - k) - w * (_ - v)) / S;
16989
16997
  }
16990
16998
  function Rv(r) {
16991
16999
  r.rp0 = r.stack.pop(), exports.DEBUG && console.log(r.step, "SRP0[]", r.rp0);
@@ -18437,8 +18445,8 @@ function ty(r, t) {
18437
18445
  var y = m.subtables[v], F = this.getLookupMethod(m, y), E = this.getSubstitutionType(m, y);
18438
18446
  if (E === "12")
18439
18447
  for (var k = 0; k < n.length; k++) {
18440
- var S = r.get(k), w = F(S);
18441
- w && h.push(w);
18448
+ var S = r.get(k), x = F(S);
18449
+ x && h.push(x);
18442
18450
  }
18443
18451
  }
18444
18452
  return h;
@@ -19269,7 +19277,7 @@ function Oy(r, t) {
19269
19277
  }
19270
19278
  function Ay(r, t, e) {
19271
19279
  var n = new q.Parser(r, t), i = n.parseULong();
19272
- te.argument(i === 65536, "Unsupported fvar table version.");
19280
+ ee.argument(i === 65536, "Unsupported fvar table version.");
19273
19281
  var s = n.parseOffset16();
19274
19282
  n.skip("uShort", 1);
19275
19283
  for (var a = n.parseUShort(), o = n.parseUShort(), u = n.parseUShort(), l = n.parseUShort(), c = [], d = 0; d < a; d++)
@@ -19285,7 +19293,7 @@ var Ry = { make: Oy, parse: Ay }, Iy = function() {
19285
19293
  };
19286
19294
  }, My = function() {
19287
19295
  var r = this.parseUShort();
19288
- if (te.argument(
19296
+ if (ee.argument(
19289
19297
  r === 1 || r === 2 || r === 3,
19290
19298
  "Unsupported CaretValue table version."
19291
19299
  ), r === 1)
@@ -19307,7 +19315,7 @@ var Ry = { make: Oy, parse: Ay }, Iy = function() {
19307
19315
  function zy(r, t) {
19308
19316
  t = t || 0;
19309
19317
  var e = new T(r, t), n = e.parseVersion(1);
19310
- te.argument(
19318
+ ee.argument(
19311
19319
  n === 1 || n === 1.2 || n === 1.3,
19312
19320
  "Unsupported GDEF table version."
19313
19321
  );
@@ -19335,11 +19343,11 @@ h1[1] = function() {
19335
19343
  coverage: this.parsePointer(T.coverage),
19336
19344
  values: this.parseValueRecordList()
19337
19345
  };
19338
- te.assert(!1, "0x" + t.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
19346
+ ee.assert(!1, "0x" + t.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
19339
19347
  };
19340
19348
  h1[2] = function() {
19341
19349
  var t = this.offset + this.relativeOffset, e = this.parseUShort();
19342
- te.assert(e === 1 || e === 2, "0x" + t.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
19350
+ ee.assert(e === 1 || e === 2, "0x" + t.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
19343
19351
  var n = this.parsePointer(T.coverage), i = this.parseUShort(), s = this.parseUShort();
19344
19352
  if (e === 1)
19345
19353
  return {
@@ -19401,7 +19409,7 @@ h1[9] = function() {
19401
19409
  function $y(r, t) {
19402
19410
  t = t || 0;
19403
19411
  var e = new T(r, t), n = e.parseVersion(1);
19404
- return te.argument(n === 1 || n === 1.1, "Unsupported GPOS table version " + n), n === 1 ? {
19412
+ return ee.argument(n === 1 || n === 1.1, "Unsupported GPOS table version " + n), n === 1 ? {
19405
19413
  version: n,
19406
19414
  scripts: e.parseScriptList(),
19407
19415
  features: e.parseFeatureList(),
@@ -19428,7 +19436,7 @@ function Xy(r) {
19428
19436
  var t = {};
19429
19437
  r.skip("uShort");
19430
19438
  var e = r.parseUShort();
19431
- te.argument(e === 0, "Unsupported kern sub-table version."), r.skip("uShort", 2);
19439
+ ee.argument(e === 0, "Unsupported kern sub-table version."), r.skip("uShort", 2);
19432
19440
  var n = r.parseUShort();
19433
19441
  r.skip("uShort", 3);
19434
19442
  for (var i = 0; i < n; i += 1) {
@@ -19519,84 +19527,84 @@ function Jy(r, t) {
19519
19527
  } else
19520
19528
  throw new Error("Unsupported OpenType signature " + u);
19521
19529
  for (var c, d, h, f, p, _, m, v, y, F, E, k, S = 0; S < a; S += 1) {
19522
- var w = o[S], x = void 0;
19523
- switch (w.tag) {
19530
+ var x = o[S], w = void 0;
19531
+ switch (x.tag) {
19524
19532
  case "cmap":
19525
- x = _e(s, w), i.tables.cmap = S4.parse(x.data, x.offset), i.encoding = new x4(i.tables.cmap);
19533
+ w = _e(s, x), i.tables.cmap = S4.parse(w.data, w.offset), i.encoding = new x4(i.tables.cmap);
19526
19534
  break;
19527
19535
  case "cvt ":
19528
- x = _e(s, w), k = new q.Parser(x.data, x.offset), i.tables.cvt = k.parseShortList(w.length / 2);
19536
+ w = _e(s, x), k = new q.Parser(w.data, w.offset), i.tables.cvt = k.parseShortList(x.length / 2);
19529
19537
  break;
19530
19538
  case "fvar":
19531
- d = w;
19539
+ d = x;
19532
19540
  break;
19533
19541
  case "fpgm":
19534
- x = _e(s, w), k = new q.Parser(x.data, x.offset), i.tables.fpgm = k.parseByteList(w.length);
19542
+ w = _e(s, x), k = new q.Parser(w.data, w.offset), i.tables.fpgm = k.parseByteList(x.length);
19535
19543
  break;
19536
19544
  case "head":
19537
- x = _e(s, w), i.tables.head = N4.parse(x.data, x.offset), i.unitsPerEm = i.tables.head.unitsPerEm, e = i.tables.head.indexToLocFormat;
19545
+ w = _e(s, x), i.tables.head = N4.parse(w.data, w.offset), i.unitsPerEm = i.tables.head.unitsPerEm, e = i.tables.head.indexToLocFormat;
19538
19546
  break;
19539
19547
  case "hhea":
19540
- x = _e(s, w), i.tables.hhea = z4.parse(x.data, x.offset), i.ascender = i.tables.hhea.ascender, i.descender = i.tables.hhea.descender, i.numberOfHMetrics = i.tables.hhea.numberOfHMetrics;
19548
+ w = _e(s, x), i.tables.hhea = z4.parse(w.data, w.offset), i.ascender = i.tables.hhea.ascender, i.descender = i.tables.hhea.descender, i.numberOfHMetrics = i.tables.hhea.numberOfHMetrics;
19541
19549
  break;
19542
19550
  case "hmtx":
19543
- m = w;
19551
+ m = x;
19544
19552
  break;
19545
19553
  case "ltag":
19546
- x = _e(s, w), n = $4.parse(x.data, x.offset);
19554
+ w = _e(s, x), n = $4.parse(w.data, w.offset);
19547
19555
  break;
19548
19556
  case "maxp":
19549
- x = _e(s, w), i.tables.maxp = H4.parse(x.data, x.offset), i.numGlyphs = i.tables.maxp.numGlyphs;
19557
+ w = _e(s, x), i.tables.maxp = H4.parse(w.data, w.offset), i.numGlyphs = i.tables.maxp.numGlyphs;
19550
19558
  break;
19551
19559
  case "name":
19552
- F = w;
19560
+ F = x;
19553
19561
  break;
19554
19562
  case "OS/2":
19555
- x = _e(s, w), i.tables.os2 = Zn.parse(x.data, x.offset);
19563
+ w = _e(s, x), i.tables.os2 = Zn.parse(w.data, w.offset);
19556
19564
  break;
19557
19565
  case "post":
19558
- x = _e(s, w), i.tables.post = V4.parse(x.data, x.offset), i.glyphNames = new x0(i.tables.post);
19566
+ w = _e(s, x), i.tables.post = V4.parse(w.data, w.offset), i.glyphNames = new x0(i.tables.post);
19559
19567
  break;
19560
19568
  case "prep":
19561
- x = _e(s, w), k = new q.Parser(x.data, x.offset), i.tables.prep = k.parseByteList(w.length);
19569
+ w = _e(s, x), k = new q.Parser(w.data, w.offset), i.tables.prep = k.parseByteList(x.length);
19562
19570
  break;
19563
19571
  case "glyf":
19564
- h = w;
19572
+ h = x;
19565
19573
  break;
19566
19574
  case "loca":
19567
- y = w;
19575
+ y = x;
19568
19576
  break;
19569
19577
  case "CFF ":
19570
- c = w;
19578
+ c = x;
19571
19579
  break;
19572
19580
  case "kern":
19573
- v = w;
19581
+ v = x;
19574
19582
  break;
19575
19583
  case "GDEF":
19576
- f = w;
19584
+ f = x;
19577
19585
  break;
19578
19586
  case "GPOS":
19579
- p = w;
19587
+ p = x;
19580
19588
  break;
19581
19589
  case "GSUB":
19582
- _ = w;
19590
+ _ = x;
19583
19591
  break;
19584
19592
  case "meta":
19585
- E = w;
19593
+ E = x;
19586
19594
  break;
19587
19595
  }
19588
19596
  }
19589
- var A = _e(s, F);
19590
- if (i.tables.name = Y4.parse(A.data, A.offset, n), i.names = i.tables.name, h && y) {
19591
- var R = e === 0, B = _e(s, y), M = Ky.parse(B.data, B.offset, i.numGlyphs, R), $ = _e(s, h);
19597
+ var O = _e(s, F);
19598
+ if (i.tables.name = Y4.parse(O.data, O.offset, n), i.names = i.tables.name, h && y) {
19599
+ var R = e === 0, I = _e(s, y), M = Ky.parse(I.data, I.offset, i.numGlyphs, R), $ = _e(s, h);
19592
19600
  i.glyphs = t6.parse($.data, $.offset, M, i, t);
19593
19601
  } else if (c) {
19594
- var I = _e(s, c);
19595
- P4.parse(I.data, I.offset, i, t);
19602
+ var A = _e(s, c);
19603
+ P4.parse(A.data, A.offset, i, t);
19596
19604
  } else
19597
19605
  throw new Error("Font doesn't contain TrueType or CFF outlines.");
19598
- var O = _e(s, m);
19599
- if (U4.parse(i, O.data, O.offset, i.numberOfHMetrics, i.numGlyphs, i.glyphs, t), h_(i, t), v) {
19606
+ var B = _e(s, m);
19607
+ if (U4.parse(i, B.data, B.offset, i.numberOfHMetrics, i.numGlyphs, i.glyphs, t), h_(i, t), v) {
19600
19608
  var L = _e(s, v);
19601
19609
  i.kerningPairs = Vy.parse(L.data, L.offset);
19602
19610
  } else
@@ -19821,16 +19829,16 @@ function Qn(r, t, e, n, i) {
19821
19829
  else {
19822
19830
  const E = p, S = r.substring(E).match(Ln);
19823
19831
  if (S) {
19824
- let w = 0;
19832
+ let x = 0;
19825
19833
  do
19826
- w += h[f].length, p += h[f].length, f++;
19827
- while (w < S[0].length);
19834
+ x += h[f].length, p += h[f].length, f++;
19835
+ while (x < S[0].length);
19828
19836
  c.push(...Qn(r.slice(E, E + S[0].length), t + E, e, n, i));
19829
19837
  continue;
19830
19838
  } else {
19831
- let w = d[f + 1], x = h[f + 1];
19832
- for (; (w == null ? void 0 : w.index) === 0 && !Ln.test(x); )
19833
- p += h[f].length, f++, w = d[f + 1], x = h[f + 1];
19839
+ let x = d[f + 1], w = h[f + 1];
19840
+ for (; (x == null ? void 0 : x.index) === 0 && !Ln.test(w); )
19841
+ p += h[f].length, f++, x = d[f + 1], w = h[f + 1];
19834
19842
  c.push(...Qn(r.slice(E, p + h[f].length), t + E, e, n, i));
19835
19843
  }
19836
19844
  }
@@ -19912,7 +19920,7 @@ class dF {
19912
19920
  }
19913
19921
  }
19914
19922
  }
19915
- var se = /* @__PURE__ */ ((r) => (r.Af = "af", r.As = "as", r.Be = "be", r.Bg = "bg", r.Bn = "bn", r.Ca = "ca", r.Cop = "cop", r.Cs = "cs", r.Cu = "cu", r.Cy = "cy", r.Da = "da", r.De1901 = "de-1901", r.De1996 = "de-1996", r.DeCh1901 = "de-ch-1901", r.ElMonoton = "el-monoton", r.ElPolyton = "el-polyton", r.EnGb = "en-gb", r.EnUs = "en-us", r.Es = "es", r.Et = "et", r.Eu = "eu", r.Fi = "fi", r.Fr = "fr", r.Fur = "fur", r.Ga = "ga", r.Gl = "gl", r.Grc = "grc", r.Gu = "gu", r.Hi = "hi", r.Hr = "hr", r.Hsb = "hsb", r.Hu = "hu", r.Hy = "hy", r.Ia = "ia", r.Id = "id", r.Is = "is", r.It = "it", r.Ka = "ka", r.Kmr = "kmr", r.Kn = "kn", r.LaXClassic = "la-x-classic", r.LaXLiturgic = "la-x-liturgic", r.La = "la", r.Lt = "lt", r.Lv = "lv", r.Ml = "ml", r.MnCyrlXLmc = "mn-cyrl-x-lmc", r.MnCyrl = "mn-cyrl", r.Mr = "mr", r.MulEthi = "mul-ethi", r.Nb = "nb", r.Nl = "nl", r.Nn = "nn", r.No = "no", r.Oc = "oc", r.Or = "or", r.Pa = "pa", r.Pi = "pi", r.Pl = "pl", r.Pms = "pms", r.Pt = "pt", r.Rm = "rm", r.Ro = "ro", r.Ru = "ru", r.Sa = "sa", r.ShCyrl = "sh-cyrl", r.ShLatn = "sh-latn", r.Sk = "sk", r.Sl = "sl", r.SrCyrl = "sr-cyrl", r.Sv = "sv", r.Ta = "ta", r.Te = "te", r.Th = "th", r.Tk = "tk", r.Tr = "tr", r.Uk = "uk", r.ZhLatnPinyin = "zh-latn-pinyin", r.UNKNOWN = "unknown", r))(se || {});
19923
+ var ie = /* @__PURE__ */ ((r) => (r.Af = "af", r.As = "as", r.Be = "be", r.Bg = "bg", r.Bn = "bn", r.Ca = "ca", r.Cop = "cop", r.Cs = "cs", r.Cu = "cu", r.Cy = "cy", r.Da = "da", r.De1901 = "de-1901", r.De1996 = "de-1996", r.DeCh1901 = "de-ch-1901", r.ElMonoton = "el-monoton", r.ElPolyton = "el-polyton", r.EnGb = "en-gb", r.EnUs = "en-us", r.Es = "es", r.Et = "et", r.Eu = "eu", r.Fi = "fi", r.Fr = "fr", r.Fur = "fur", r.Ga = "ga", r.Gl = "gl", r.Grc = "grc", r.Gu = "gu", r.Hi = "hi", r.Hr = "hr", r.Hsb = "hsb", r.Hu = "hu", r.Hy = "hy", r.Ia = "ia", r.Id = "id", r.Is = "is", r.It = "it", r.Ka = "ka", r.Kmr = "kmr", r.Kn = "kn", r.LaXClassic = "la-x-classic", r.LaXLiturgic = "la-x-liturgic", r.La = "la", r.Lt = "lt", r.Lv = "lv", r.Ml = "ml", r.MnCyrlXLmc = "mn-cyrl-x-lmc", r.MnCyrl = "mn-cyrl", r.Mr = "mr", r.MulEthi = "mul-ethi", r.Nb = "nb", r.Nl = "nl", r.Nn = "nn", r.No = "no", r.Oc = "oc", r.Or = "or", r.Pa = "pa", r.Pi = "pi", r.Pl = "pl", r.Pms = "pms", r.Pt = "pt", r.Rm = "rm", r.Ro = "ro", r.Ru = "ru", r.Sa = "sa", r.ShCyrl = "sh-cyrl", r.ShLatn = "sh-latn", r.Sk = "sk", r.Sl = "sl", r.SrCyrl = "sr-cyrl", r.Sv = "sv", r.Ta = "ta", r.Te = "te", r.Th = "th", r.Tk = "tk", r.Tr = "tr", r.Uk = "uk", r.ZhLatnPinyin = "zh-latn-pinyin", r.UNKNOWN = "unknown", r))(ie || {});
19916
19924
  function fF(r, t, e, n, i, s) {
19917
19925
  const a = [];
19918
19926
  let o = 0;
@@ -19989,7 +19997,7 @@ function vF(r, t) {
19989
19997
  return e === re.FALSE && n === re.TRUE;
19990
19998
  }
19991
19999
  function bF(r, t, e, n, i, s = !1) {
19992
- var A;
20000
+ var O;
19993
20001
  const {
19994
20002
  gridType: a = $e.LINES,
19995
20003
  charSpace: o = 0,
@@ -20002,116 +20010,116 @@ function bF(r, t, e, n, i, s = !1) {
20002
20010
  const { hyphen: y, languageDetector: F } = r, E = sF(e.getBody(), h);
20003
20011
  let k = [];
20004
20012
  s && (k = uF(E)), Am(d);
20005
- const S = F.detect(t), w = vF(f, i), x = i.doNotHyphenateCaps === re.TRUE;
20006
- for (S !== se.UNKNOWN && w && (y.hasPattern(S) ? d = new dF(d, y, S, x) : y.loadPattern(S)); m = d.nextBreakPoint(); ) {
20007
- const R = t.slice(_, m.position), B = [];
20013
+ const S = F.detect(t), x = vF(f, i), w = i.doNotHyphenateCaps === re.TRUE;
20014
+ for (S !== ie.UNKNOWN && x && (y.hasPattern(S) ? d = new dF(d, y, S, w) : y.loadPattern(S)); m = d.nextBreakPoint(); ) {
20015
+ const R = t.slice(_, m.position), I = [];
20008
20016
  if ($2.isReady && s) {
20009
- const I = [];
20010
- let O = 0;
20011
- for (O = v; O < k.length; O++) {
20012
- const L = k[O], { end: N } = L;
20017
+ const A = [];
20018
+ let B = 0;
20019
+ for (B = v; B < k.length; B++) {
20020
+ const L = k[B], { end: N } = L;
20013
20021
  if (N > m.position)
20014
20022
  break;
20015
- I.push(L);
20023
+ A.push(L);
20016
20024
  }
20017
- v = O;
20018
- for (const L of I) {
20025
+ v = B;
20026
+ for (const L of A) {
20019
20027
  const { start: N, char: P } = L, G = rt(N, e, n, i, f);
20020
20028
  if (P === V.TAB) {
20021
20029
  const K = A2(o, u, a, p), j = ar(G, K);
20022
- B.push(j);
20030
+ I.push(j);
20023
20031
  } else if (Pn(P)) {
20024
20032
  const K = et(P, G);
20025
- B.push(K);
20033
+ I.push(K);
20026
20034
  } else {
20027
20035
  const K = et(P, G, void 0, L);
20028
- B.push(K);
20036
+ I.push(K);
20029
20037
  }
20030
20038
  }
20031
20039
  } else {
20032
- let I = R, O = _;
20033
- for (; I.length > 0; ) {
20034
- const L = (A = I.match(/^[\s\S]/gu)) == null ? void 0 : A[0];
20040
+ let A = R, B = _;
20041
+ for (; A.length > 0; ) {
20042
+ const L = (O = A.match(/^[\s\S]/gu)) == null ? void 0 : O[0];
20035
20043
  if (L == null)
20036
20044
  break;
20037
20045
  if (L === V.CUSTOM_BLOCK) {
20038
- const N = rt(O, e, n, i, f);
20046
+ const N = rt(B, e, n, i, f);
20039
20047
  let P = null;
20040
- const G = e.getCustomBlock(n.startIndex + O);
20048
+ const G = e.getCustomBlock(n.startIndex + B);
20041
20049
  if (G != null) {
20042
20050
  const { blockId: K } = G, j = l[K];
20043
20051
  if (j.layoutType === u1.INLINE) {
20044
- const { width: Q, height: ie } = j.docTransform.size, { drawingId: fe } = j;
20045
- P = or(N, Q, ie, fe);
20052
+ const { width: ne, height: se } = j.docTransform.size, { drawingId: fe } = j;
20053
+ P = or(N, ne, se, fe);
20046
20054
  } else
20047
20055
  P = or(N, 0, 0, j.drawingId);
20048
20056
  }
20049
- P == null && (P = et(L, N)), B.push(P), O += L.length, I = I.substring(L.length);
20057
+ P == null && (P = et(L, N)), I.push(P), B += L.length, A = A.substring(L.length);
20050
20058
  } else if (/\s/.test(L) || K2(L)) {
20051
- const N = rt(O, e, n, i, f);
20059
+ const N = rt(B, e, n, i, f);
20052
20060
  let P = null;
20053
20061
  if (L === V.TAB) {
20054
20062
  const G = A2(o, u, a, p);
20055
20063
  P = ar(N, G);
20056
20064
  } else
20057
20065
  P = et(L, N);
20058
- B.push(P), O += L.length, I = I.substring(L.length);
20059
- } else if (Pn(I)) {
20066
+ I.push(P), B += L.length, A = A.substring(L.length);
20067
+ } else if (Pn(A)) {
20060
20068
  const { step: N, glyphGroup: P } = pF(
20061
- O,
20062
- I,
20069
+ B,
20070
+ A,
20063
20071
  e,
20064
20072
  n,
20065
20073
  i,
20066
20074
  f
20067
20075
  );
20068
- B.push(...P), O += N, I = I.substring(N);
20076
+ I.push(...P), B += N, A = A.substring(N);
20069
20077
  } else if (Ii(L)) {
20070
20078
  const { step: N, glyphGroup: P } = gF(
20071
- O,
20072
- I,
20079
+ B,
20080
+ A,
20073
20081
  e,
20074
20082
  n,
20075
20083
  i,
20076
20084
  f
20077
20085
  );
20078
- B.push(...P), O += N, I = I.substring(N);
20086
+ I.push(...P), B += N, A = A.substring(N);
20079
20087
  } else if (Mi(L)) {
20080
20088
  const { step: N, glyphGroup: P } = DF(
20081
- O,
20082
- I,
20089
+ B,
20090
+ A,
20083
20091
  e,
20084
20092
  n,
20085
20093
  i,
20086
20094
  f
20087
20095
  );
20088
- B.push(...P), O += N, I = I.substring(N);
20096
+ I.push(...P), B += N, A = A.substring(N);
20089
20097
  } else {
20090
20098
  const { step: N, glyphGroup: P } = fF(
20091
- O,
20092
- I,
20099
+ B,
20100
+ A,
20093
20101
  e,
20094
20102
  n,
20095
20103
  i,
20096
20104
  f
20097
20105
  );
20098
- B.push(...P), O += N, I = I.substring(N);
20106
+ I.push(...P), B += N, A = A.substring(N);
20099
20107
  }
20100
20108
  }
20101
20109
  }
20102
- mF(B);
20110
+ mF(I);
20103
20111
  const M = [[]];
20104
- for (let I = 0; I < B.length; I++) {
20105
- const O = M[M.length - 1], L = B[I];
20106
- L.streamType === V.CUSTOM_BLOCK && L.width !== 0 ? M.push([L]) : O.push(L);
20112
+ for (let A = 0; A < I.length; A++) {
20113
+ const B = M[M.length - 1], L = I[A];
20114
+ L.streamType === V.CUSTOM_BLOCK && L.width !== 0 ? M.push([L]) : B.push(L);
20107
20115
  }
20108
20116
  const $ = M[M.length - 1];
20109
- for (const I of M) {
20110
- const O = I.map((L) => L.content).join();
20117
+ for (const A of M) {
20118
+ const B = A.map((L) => L.content).join();
20111
20119
  c.push({
20112
- text: O,
20113
- glyphs: I,
20114
- breakPointType: I === $ ? m.type : Pe.Normal
20120
+ text: B,
20121
+ glyphs: A,
20122
+ breakPointType: A === $ ? m.type : Pe.Normal
20115
20123
  });
20116
20124
  }
20117
20125
  _ = m.position;
@@ -20513,19 +20521,19 @@ function B1(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20513
20521
  else {
20514
20522
  const F = h.parent, E = GF(t);
20515
20523
  if (F && E && !XF(F)) {
20516
- const { paragraphLineGapDefault: k, linePitch: S, lineSpacing: w, spacingRule: x, snapToGrid: A, gridType: R } = n4(n, i), { boundingBoxAscent: B, boundingBoxDescent: M } = E, $ = B + M, { contentHeight: I } = g6(
20524
+ const { paragraphLineGapDefault: k, linePitch: S, lineSpacing: x, spacingRule: w, snapToGrid: O, gridType: R } = n4(n, i), { boundingBoxAscent: I, boundingBoxDescent: M } = E, $ = I + M, { contentHeight: A } = g6(
20517
20525
  $,
20518
20526
  k,
20519
20527
  S,
20520
20528
  R,
20521
- w,
20522
20529
  x,
20523
- A
20530
+ w,
20531
+ O
20524
20532
  );
20525
- if (F.contentHeight < I) {
20526
- const O = jF(F), L = O.length;
20533
+ if (F.contentHeight < A) {
20534
+ const B = jF(F), L = B.length;
20527
20535
  let N = [], P = 1;
20528
- L > 2 && O[0].glyphType === Ge.LIST ? (N = [O[0], O[1]], P = 2) : N = [O[0]];
20536
+ L > 2 && B[0].glyphType === Ge.LIST ? (N = [B[0], B[1]], P = 2) : N = [B[0]];
20529
20537
  const G = F.parent, { paragraphStart: K } = G == null ? void 0 : G.lines.pop();
20530
20538
  Vt(
20531
20539
  r,
@@ -20535,12 +20543,12 @@ function B1(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20535
20543
  i,
20536
20544
  K,
20537
20545
  a,
20538
- B + M
20546
+ I + M
20539
20547
  );
20540
- for (let j = P; j < O.length; j++)
20548
+ for (let j = P; j < B.length; j++)
20541
20549
  B1(
20542
20550
  r,
20543
- [O[j]],
20551
+ [B[j]],
20544
20552
  e,
20545
20553
  n,
20546
20554
  i,
@@ -20583,9 +20591,9 @@ function Vt(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20583
20591
  // borderBottom,
20584
20592
  // borderLeft,
20585
20593
  // borderRight,
20586
- indentFirstLine: w = 0,
20587
- hanging: x = 0,
20588
- indentStart: A = 0,
20594
+ indentFirstLine: x = 0,
20595
+ hanging: w = 0,
20596
+ indentStart: O = 0,
20589
20597
  indentEnd: R = 0
20590
20598
  // tabStops = [],
20591
20599
  // keepLines = BooleanNumber.FALSE,
@@ -20593,24 +20601,24 @@ function Vt(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20593
20601
  // wordWrap = BooleanNumber.FALSE,
20594
20602
  // widowControl = BooleanNumber.FALSE,
20595
20603
  // shading,
20596
- } = _, { paragraphLineGapDefault: B, linePitch: M, lineSpacing: $, spacingRule: I, snapToGrid: O, gridType: L } = n4(
20604
+ } = _, { paragraphLineGapDefault: I, linePitch: M, lineSpacing: $, spacingRule: A, snapToGrid: B, gridType: L } = n4(
20597
20605
  n,
20598
20606
  i
20599
20607
  ), { paddingTop: N, paddingBottom: P, contentHeight: G, lineSpacingApply: K } = g6(
20600
20608
  p,
20601
- B,
20609
+ I,
20602
20610
  M,
20603
20611
  L,
20604
20612
  $,
20605
- I,
20606
- O
20607
- ), { marginTop: j, spaceBelowApply: Q } = NF(
20613
+ A,
20614
+ B
20615
+ ), { marginTop: j, spaceBelowApply: ne } = NF(
20608
20616
  K,
20609
20617
  k,
20610
20618
  S,
20611
20619
  s,
20612
20620
  d
20613
- ), ie = j + N + G + P;
20621
+ ), se = j + N + G + P;
20614
20622
  let fe = c.parent;
20615
20623
  fe || (fe = _0(u));
20616
20624
  const ve = (d == null ? void 0 : d.lineHeight) || 0, ge = (d == null ? void 0 : d.top) || 0, de = ve + ge, { pageWidth: ue, headerId: Re, footerId: be } = u, pe = (r1 = (w1 = v == null ? void 0 : v.get(Re)) == null ? void 0 : w1.get(ue)) == null ? void 0 : r1.skeDrawings, Se = (x1 = (Me = y == null ? void 0 : y.get(be)) == null ? void 0 : Me.get(ue)) == null ? void 0 : x1.skeDrawings;
@@ -20624,23 +20632,23 @@ function Vt(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20624
20632
  }
20625
20633
  if (m != null && m.size > 0) {
20626
20634
  const Ze = [...m.values()].filter((p1) => p1.drawingOrigin.docTransform.positionV.relativeFrom !== he.LINE);
20627
- Zr(r, de, ie, c, Ze, i.paragraphIndex, (dt = F == null ? void 0 : F.get(E)) == null ? void 0 : dt.top);
20635
+ Zr(r, de, se, c, Ze, i.paragraphIndex, (dt = F == null ? void 0 : F.get(E)) == null ? void 0 : dt.top);
20628
20636
  }
20629
20637
  const xe = FF(
20630
- ie,
20638
+ se,
20631
20639
  de,
20632
20640
  u.skeDrawings,
20633
20641
  pe,
20634
20642
  Se
20635
20643
  );
20636
- if (ie + xe > fe.height && c.lines.length > 0 && u.sections.length > 0) {
20644
+ if (se + xe > fe.height && c.lines.length > 0 && u.sections.length > 0) {
20637
20645
  i4(c, !0), d6(r, t, e, n, i, s, a, o);
20638
20646
  return;
20639
20647
  }
20640
- const ye = d ? d.lineIndex + 1 : 0, { charSpace: Te, defaultTabStop: Oe } = BD(n, i), Ie = A2(Te, Oe, L, O), { paddingLeft: S1, paddingRight: Ae } = PF(
20641
- w,
20648
+ const ye = d ? d.lineIndex + 1 : 0, { charSpace: Te, defaultTabStop: Oe } = BD(n, i), Ie = A2(Te, Oe, L, B), { paddingLeft: S1, paddingRight: Ae } = PF(
20642
20649
  x,
20643
- A,
20650
+ w,
20651
+ O,
20644
20652
  R,
20645
20653
  Ie,
20646
20654
  s
@@ -20648,7 +20656,7 @@ function Vt(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20648
20656
  E,
20649
20657
  J2.PARAGRAPH,
20650
20658
  {
20651
- lineHeight: ie,
20659
+ lineHeight: se,
20652
20660
  contentHeight: G,
20653
20661
  lineTop: xe,
20654
20662
  paddingLeft: S1,
@@ -20656,7 +20664,7 @@ function Vt(r, t, e, n, i, s = !1, a = Pe.Normal, o) {
20656
20664
  paddingTop: N,
20657
20665
  paddingBottom: P,
20658
20666
  marginTop: j,
20659
- spaceBelowApply: Q
20667
+ spaceBelowApply: ne
20660
20668
  },
20661
20669
  c.width,
20662
20670
  ye,
@@ -20701,11 +20709,11 @@ function MF(r, t, e, n) {
20701
20709
  continue;
20702
20710
  const m = (c = (l = (u = _.page.sections[0]) == null ? void 0 : u.columns[0]) == null ? void 0 : l.lines[0]) == null ? void 0 : c.paragraphIndex, v = (f = (h = (d = i.sections[0]) == null ? void 0 : d.columns[0]) == null ? void 0 : h.lines[0]) == null ? void 0 : f.paragraphIndex;
20703
20711
  _.page && m && v && m !== v && (_.page.skeDrawings.delete(p.drawingId), Un([_.page], (y) => {
20704
- var w, x, A;
20705
- const { lineHeight: F, top: E } = y, k = (x = (w = y.parent) == null ? void 0 : w.width) != null ? x : 0;
20712
+ var x, w, O;
20713
+ const { lineHeight: F, top: E } = y, k = (w = (x = y.parent) == null ? void 0 : x.width) != null ? w : 0;
20706
20714
  if (a)
20707
20715
  return;
20708
- Vr(_.drawing, F, E, k) && (a = !0, r.isDirty = !0, r.layoutStartPointer.paragraphIndex = Math.min(y.paragraphIndex, (A = r.layoutStartPointer.paragraphIndex) != null ? A : Number.POSITIVE_INFINITY), r.paragraphsOpenNewPage.add(n));
20716
+ Vr(_.drawing, F, E, k) && (a = !0, r.isDirty = !0, r.layoutStartPointer.paragraphIndex = Math.min(y.paragraphIndex, (O = r.layoutStartPointer.paragraphIndex) != null ? O : Number.POSITIVE_INFINITY), r.paragraphsOpenNewPage.add(n));
20709
20717
  }));
20710
20718
  }
20711
20719
  return a = !1, Un([i], (p) => {
@@ -20721,12 +20729,12 @@ function MF(r, t, e, n) {
20721
20729
  continue;
20722
20730
  if (Vr(S, _, m, v)) {
20723
20731
  a = !0, r.isDirty = !0, r.layoutStartPointer.paragraphIndex = Math.min(p.paragraphIndex, (E = r.layoutStartPointer.paragraphIndex) != null ? E : Number.POSITIVE_INFINITY);
20724
- let x = r.drawingsCache.get(k.drawingId);
20725
- x == null && (x = {
20732
+ let w = r.drawingsCache.get(k.drawingId);
20733
+ w == null && (w = {
20726
20734
  count: 0,
20727
20735
  drawing: k,
20728
20736
  page: i
20729
- }, r.drawingsCache.set(k.drawingId, x)), x.count++, x.drawing = k, x.page = i;
20737
+ }, r.drawingsCache.set(k.drawingId, w)), w.count++, w.drawing = k, w.page = i;
20730
20738
  }
20731
20739
  }
20732
20740
  }), s;
@@ -21119,48 +21127,48 @@ function aC(r, t, e, n, i) {
21119
21127
  drawingAnchor: y
21120
21128
  };
21121
21129
  r.paragraphConfigCache.set(c, k);
21122
- const S = iC(p, v), w = QF(p, o, S);
21123
- sC(p, w, v), k.bulletSkeleton = w;
21124
- for (let R = 0, B = d.length; R < B; R++) {
21130
+ const S = iC(p, v), x = QF(p, o, S);
21131
+ sC(p, x, v), k.bulletSkeleton = x;
21132
+ for (let R = 0, I = d.length; R < I; R++) {
21125
21133
  const M = d[R], $ = s.getCustomBlock(M);
21126
21134
  if ($ == null)
21127
21135
  continue;
21128
- const { blockId: I } = $, O = u[I];
21129
- O.layoutType !== u1.INLINE ? F.set(I, ti(O)) : E.set(I, ti(O));
21136
+ const { blockId: A } = $, B = u[A];
21137
+ B.layoutType !== u1.INLINE ? F.set(A, ti(B)) : E.set(A, ti(B));
21130
21138
  }
21131
- let x = [e], A = !0;
21132
- for (const { text: R, glyphs: B, breakPointType: M } of t) {
21139
+ let w = [e], O = !0;
21140
+ for (const { text: R, glyphs: I, breakPointType: M } of t) {
21133
21141
  const $ = () => {
21134
- B.length !== 0 && (x = TF(
21142
+ I.length !== 0 && (w = TF(
21135
21143
  r,
21136
- B,
21137
- x,
21144
+ I,
21145
+ w,
21138
21146
  i,
21139
21147
  k,
21140
- A,
21148
+ O,
21141
21149
  M
21142
- ), A = !1);
21150
+ ), O = !1);
21143
21151
  };
21144
21152
  if (R.endsWith(V.PAGE_BREAK)) {
21145
- $(), x.push(
21153
+ $(), w.push(
21146
21154
  Et(
21147
21155
  r,
21148
21156
  i,
21149
21157
  a,
21150
- ni(x[x.length - 1]),
21158
+ ni(w[w.length - 1]),
21151
21159
  Ht.PAGE
21152
21160
  )
21153
21161
  ), F.clear(), E.clear();
21154
21162
  continue;
21155
21163
  } else if (R.endsWith(V.COLUMN_BREAK)) {
21156
21164
  $();
21157
- const I = x[x.length - 1], O = O2(I);
21158
- O && !O.isLast ? i4(O.column, !0) : x.push(
21165
+ const A = w[w.length - 1], B = O2(A);
21166
+ B && !B.isLast ? i4(B.column, !0) : w.push(
21159
21167
  Et(
21160
21168
  r,
21161
21169
  i,
21162
21170
  a,
21163
- ni(I),
21171
+ ni(A),
21164
21172
  Ht.COLUMN
21165
21173
  )
21166
21174
  );
@@ -21168,7 +21176,7 @@ function aC(r, t, e, n, i) {
21168
21176
  }
21169
21177
  $();
21170
21178
  }
21171
- return x;
21179
+ return w;
21172
21180
  }
21173
21181
  function oC(r) {
21174
21182
  switch (r) {
@@ -21444,13 +21452,13 @@ const j2 = class j2 {
21444
21452
  constructor() {
21445
21453
  g(this, "_patterns", /* @__PURE__ */ new Map());
21446
21454
  g(this, "_hyphenCache", /* @__PURE__ */ new Map());
21447
- this._preloadPatterns(), this.loadPattern(se.EnGb);
21455
+ this._preloadPatterns(), this.loadPattern(ie.EnGb);
21448
21456
  }
21449
21457
  static getInstance() {
21450
21458
  return this._instance == null && (this._instance = new j2()), this._instance;
21451
21459
  }
21452
21460
  _preloadPatterns() {
21453
- this._patterns.set(se.EnUs, ri(t0)), this._loadExceptionsToCache(se.EnUs, t0);
21461
+ this._patterns.set(ie.EnUs, ri(t0)), this._loadExceptionsToCache(ie.EnUs, t0);
21454
21462
  }
21455
21463
  _loadExceptionsToCache(t, e) {
21456
21464
  if (e.length < 3)
@@ -21758,59 +21766,59 @@ function VC(r, t) {
21758
21766
  }
21759
21767
  const qC = {
21760
21768
  // cmn Mandarin Chinese 885M
21761
- spa: se.Es,
21769
+ spa: ie.Es,
21762
21770
  // Spanish 332M
21763
- eng: se.EnUs,
21771
+ eng: ie.EnUs,
21764
21772
  // English 322M
21765
- rus: se.Ru,
21773
+ rus: ie.Ru,
21766
21774
  // Russian 288M
21767
21775
  // arb: Standard Arabic 280M
21768
- ben: se.Bn,
21776
+ ben: ie.Bn,
21769
21777
  // Bengali 196M
21770
- hin: se.Hi,
21778
+ hin: ie.Hi,
21771
21779
  // Hindi 182M
21772
- por: se.Pt,
21780
+ por: ie.Pt,
21773
21781
  // Portuguese 182M
21774
- ind: se.Id,
21782
+ ind: ie.Id,
21775
21783
  // Indonesian 140M
21776
21784
  // jpn: Japanese 125M
21777
- fra: se.Fr,
21785
+ fra: ie.Fr,
21778
21786
  // French 124M
21779
- deu: se.De1901,
21787
+ deu: ie.De1901,
21780
21788
  // German 121M TODO: use which langs: German?
21781
21789
  // jav: Javanese(Javanese) 76M
21782
21790
  // jav: Javanese(Latin) 76M
21783
21791
  // kor: Korean 75M
21784
- tel: se.Te,
21792
+ tel: ie.Te,
21785
21793
  // Telugu 73M
21786
21794
  // vie: Vietnamese 67M
21787
- mar: se.Mr,
21795
+ mar: ie.Mr,
21788
21796
  // Marathi 65M
21789
- ita: se.It,
21797
+ ita: ie.It,
21790
21798
  // Italian 63M
21791
- tam: se.Ta,
21799
+ tam: ie.Ta,
21792
21800
  // Tamil 62M
21793
- tur: se.Tr,
21801
+ tur: ie.Tr,
21794
21802
  // Turkish 59M
21795
21803
  // urd: Urdu 54M
21796
- guj: se.Gu,
21804
+ guj: ie.Gu,
21797
21805
  // Gujarati 44M
21798
- pol: se.Pl,
21806
+ pol: ie.Pl,
21799
21807
  // Polish 44M
21800
- ukr: se.Uk,
21808
+ ukr: ie.Uk,
21801
21809
  // Ukrainian 41M
21802
- kan: se.Kn,
21810
+ kan: ie.Kn,
21803
21811
  // Kannada 38M
21804
21812
  // mai: Maithili 35M
21805
- mal: se.Ml,
21813
+ mal: ie.Ml,
21806
21814
  // Malayalam 34M
21807
21815
  // pes: Iranian Persian 33M
21808
21816
  // mya: Burmese 31M
21809
21817
  // swh: Swahili(individual language)
21810
21818
  // sun: Sundanese 27M
21811
- ron: se.Ro,
21819
+ ron: ie.Ro,
21812
21820
  // Romanian 26M
21813
- pan: se.Pa,
21821
+ pan: ie.Pa,
21814
21822
  // Panjabi 26M
21815
21823
  // bho: Bhojpuri 25M
21816
21824
  // amh: Amharic 23M
@@ -21818,21 +21826,21 @@ const qC = {
21818
21826
  // fuv: Nigerian Fulfulde 22M
21819
21827
  // bos: Bosnian(Cyrillic) 21M
21820
21828
  // bos: Bosnian(Latin) 21M
21821
- hrv: se.Hr,
21829
+ hrv: ie.Hr,
21822
21830
  // Croatian 21M
21823
- nld: se.Nl,
21831
+ nld: ie.Nl,
21824
21832
  // Dutch 21M
21825
- srp: se.SrCyrl,
21833
+ srp: ie.SrCyrl,
21826
21834
  // Serbian(Cyrillic) 21M
21827
21835
  // srp: Serbian(Latin) 21M
21828
- tha: se.Th,
21836
+ tha: ie.Th,
21829
21837
  // Thai 21M
21830
21838
  // ckb: Central Kurdish 20M
21831
21839
  // yor: Yoruba 20M
21832
- uzn: se.Kmr,
21840
+ uzn: ie.Kmr,
21833
21841
  // Northern Uzbek(Cyrillic) 18M
21834
21842
  // uzn: Northern Uzbek(Latin) 18M
21835
- zlm: se.Ml,
21843
+ zlm: ie.Ml,
21836
21844
  // Malay(individual language)(Arabic) 18M
21837
21845
  // zlm: Malay(individual language)(Latin) 18M
21838
21846
  // ibo: Igbo 17M
@@ -21840,19 +21848,19 @@ const qC = {
21840
21848
  // ceb: Cebuano 15M
21841
21849
  // skr: Saraiki 15M
21842
21850
  // tgl: Tagalog 15M
21843
- hun: se.Hu,
21851
+ hun: ie.Hu,
21844
21852
  // Hungarian 15M
21845
21853
  // azj: North Azerbaijani(Cyrillic) 14M
21846
21854
  // azj: North Azerbaijani(Latin) 14M
21847
21855
  // sin: Sinhala 13M
21848
21856
  // koi: Komi - Permyak 13M
21849
- ell: se.ElMonoton,
21857
+ ell: ie.ElMonoton,
21850
21858
  // Modern Greek(1453-) 12M
21851
- ces: se.Cs,
21859
+ ces: ie.Cs,
21852
21860
  // Czech 12M
21853
21861
  // mag: Magahi 11M
21854
21862
  // run: Rundi 11M
21855
- bel: se.Be,
21863
+ bel: ie.Be,
21856
21864
  // Belarusian 10M
21857
21865
  // plt: Plateau Malagasy 10M
21858
21866
  // qug: Chimborazo Highland Quichua 10M
@@ -21862,9 +21870,9 @@ const qC = {
21862
21870
  // pbu: Northern Pashto 10M
21863
21871
  // kin: Kinyarwanda 9M
21864
21872
  // zul: Zulu 9M
21865
- bul: se.Bg,
21873
+ bul: ie.Bg,
21866
21874
  // Bulgarian 9M
21867
- swe: se.Sv,
21875
+ swe: ie.Sv,
21868
21876
  // Swedish 9M
21869
21877
  // lin: Lingala 8M
21870
21878
  // som: Somali 8M
@@ -21872,7 +21880,7 @@ const qC = {
21872
21880
  // hnj: Hmong Njua 8M
21873
21881
  // ilo: Iloko 8M
21874
21882
  // kaz: Kazakh
21875
- und: se.UNKNOWN
21883
+ und: ie.UNKNOWN
21876
21884
  // Undetermined
21877
21885
  }, X2 = class X2 {
21878
21886
  constructor() {
@@ -21888,7 +21896,7 @@ const qC = {
21888
21896
  if (e)
21889
21897
  return e;
21890
21898
  const n = UC(t);
21891
- return e = (i = qC[n]) != null ? i : se.UNKNOWN, this._detectCache.set(t, e), e;
21899
+ return e = (i = qC[n]) != null ? i : ie.UNKNOWN, this._detectCache.set(t, e), e;
21892
21900
  }
21893
21901
  dispose() {
21894
21902
  this._detectCache.clear();
@@ -22030,38 +22038,38 @@ class qt extends R2 {
22030
22038
  for (const E of y) {
22031
22039
  const { lines: k, width: S } = E;
22032
22040
  this._findLiquid.translateSave(), this._findLiquid.translateColumn(E);
22033
- const w = k.length;
22034
- for (let x = 0; x < w; x++) {
22035
- const A = k[x], { divides: R, type: B, lineHeight: M = 0 } = A;
22036
- if (B !== J2.BLOCK) {
22037
- this._findLiquid.translateSave(), this._findLiquid.translateLine(A);
22038
- const { y: $ } = this._findLiquid, I = $, O = $ + M, L = Math.abs(o - O), N = R.length;
22041
+ const x = k.length;
22042
+ for (let w = 0; w < x; w++) {
22043
+ const O = k[w], { divides: R, type: I, lineHeight: M = 0 } = O;
22044
+ if (I !== J2.BLOCK) {
22045
+ this._findLiquid.translateSave(), this._findLiquid.translateLine(O);
22046
+ const { y: $ } = this._findLiquid, A = $, B = $ + M, L = Math.abs(o - B), N = R.length;
22039
22047
  for (let P = 0; P < N; P++) {
22040
22048
  const G = R[P], { glyphGroup: K, width: j } = G;
22041
22049
  this._findLiquid.translateSave(), this._findLiquid.translateDivide(G);
22042
- const { x: Q } = this._findLiquid;
22043
- for (const ie of K) {
22044
- if (!ie.content || ie.content.length === 0)
22050
+ const { x: ne } = this._findLiquid;
22051
+ for (const se of K) {
22052
+ if (!se.content || se.content.length === 0)
22045
22053
  continue;
22046
- const { width: fe, left: ve } = ie, ge = Q + ve, de = Q + ve + fe, ue = Math.abs(a - de);
22047
- if (o >= I && o <= O) {
22054
+ const { width: fe, left: ve } = se, ge = ne + ve, de = ne + ve + fe, ue = Math.abs(a - de);
22055
+ if (o >= A && o <= B) {
22048
22056
  if (a >= ge && a <= de)
22049
22057
  return {
22050
- node: ie,
22058
+ node: se,
22051
22059
  ratioX: a / (ge + de),
22052
- ratioY: o / (I + O)
22060
+ ratioY: o / (A + B)
22053
22061
  };
22054
22062
  h !== Number.NEGATIVE_INFINITY && (c = [], d = []), c.push({
22055
- node: ie,
22063
+ node: se,
22056
22064
  ratioX: a / (ge + de),
22057
- ratioY: o / (I + O)
22065
+ ratioY: o / (A + B)
22058
22066
  }), d.push(ue), h = Number.NEGATIVE_INFINITY;
22059
22067
  continue;
22060
22068
  }
22061
22069
  L < h && (h = L, c = [], d = []), L === h && (c.push({
22062
- node: ie,
22070
+ node: se,
22063
22071
  ratioX: a / (ge + de),
22064
- ratioY: o / (I + O)
22072
+ ratioY: o / (A + B)
22065
22073
  }), d.push(ue));
22066
22074
  }
22067
22075
  this._findLiquid.translateRestore();
@@ -22242,18 +22250,18 @@ class qt extends R2 {
22242
22250
  const { divides: y, st: F, ed: E } = v, k = y.length;
22243
22251
  if (!(e < F || e > E))
22244
22252
  for (let S = 0; S < k; S++) {
22245
- const w = y[S], { glyphGroup: x, st: A, ed: R } = w;
22246
- if (e < A || e > R)
22253
+ const x = y[S], { glyphGroup: w, st: O, ed: R } = x;
22254
+ if (e < O || e > R)
22247
22255
  continue;
22248
- let B = e - A;
22249
- for (const M of x)
22250
- if (B -= M.count, B < 0)
22256
+ let I = e - O;
22257
+ for (const M of w)
22258
+ if (I -= M.count, I < 0)
22251
22259
  return {
22252
22260
  page: s,
22253
22261
  section: l,
22254
22262
  column: f,
22255
22263
  line: v,
22256
- divide: w,
22264
+ divide: x,
22257
22265
  glyph: M
22258
22266
  };
22259
22267
  }
@@ -22938,19 +22946,19 @@ let s0 = class extends R2 {
22938
22946
  continue;
22939
22947
  const E = new st(v), { vertexAngle: k } = a2(y), S = (c = (l = n[h]) == null ? void 0 : l.w) != null ? c : a;
22940
22948
  typeof S == "number" && F === t1.WRAP && v.updateDocumentDataPageSize(S);
22941
- const w = qt.create(E, this._localService);
22942
- w.calculate();
22943
- let { height: x = 0 } = (d = b2(w, k)) != null ? d : {};
22944
- if (w) {
22945
- const A = w.getSkeletonData(), {
22949
+ const x = qt.create(E, this._localService);
22950
+ x.calculate();
22951
+ let { height: w = 0 } = (d = b2(x, k)) != null ? d : {};
22952
+ if (x) {
22953
+ const O = x.getSkeletonData(), {
22946
22954
  marginTop: R,
22947
- marginBottom: B,
22955
+ marginBottom: I,
22948
22956
  marginLeft: M,
22949
22957
  marginRight: $
22950
- } = A.pages[A.pages.length - 1], I = Math.abs(Ye(k));
22951
- x += R * Math.cos(I) + $ * Math.sin(I) + B * Math.cos(I) + M * Math.sin(I);
22958
+ } = O.pages[O.pages.length - 1], A = Math.abs(Ye(k));
22959
+ w += R * Math.cos(A) + $ * Math.sin(A) + I * Math.cos(A) + M * Math.sin(A);
22952
22960
  }
22953
- o = Math.max(o, x);
22961
+ o = Math.max(o, w);
22954
22962
  }
22955
22963
  return Math.min(o, J6);
22956
22964
  }
@@ -23560,22 +23568,22 @@ let s0 = class extends R2 {
23560
23568
  if (!a)
23561
23569
  return !0;
23562
23570
  if (this._worksheet.getColVisible(e) === !1 || this._worksheet.getRowVisible(t) === !1) {
23563
- const { isMerged: S, isMergedMainCell: w } = x2(
23571
+ const { isMerged: S, isMergedMainCell: x } = x2(
23564
23572
  t,
23565
23573
  e,
23566
23574
  this._dataMergeCache
23567
23575
  );
23568
- if (S && !w)
23576
+ if (S && !x)
23569
23577
  return !0;
23570
- if (!w)
23578
+ if (!x)
23571
23579
  return !0;
23572
23580
  }
23573
23581
  const u = this._stylesCache, l = this._styles.getStyleByCell(a);
23574
23582
  if (!n && l && l.bg && l.bg.rgb) {
23575
23583
  const S = l.bg.rgb;
23576
23584
  u.background[S] || (u.background[S] = new s1()), u.background[S].setValue(t, e, S);
23577
- const x = this.getCellByIndexWithNoHeader(t, e);
23578
- (k = u.backgroundPositions) == null || k.setValue(t, e, x);
23585
+ const w = this.getCellByIndexWithNoHeader(t, e);
23586
+ (k = u.backgroundPositions) == null || k.setValue(t, e, w);
23579
23587
  }
23580
23588
  if (!n && l && l.bd && (i ? (this._setMergeBorderProps(J.TOP, u, i), this._setMergeBorderProps(J.BOTTOM, u, i), this._setMergeBorderProps(J.LEFT, u, i), this._setMergeBorderProps(J.RIGHT, u, i)) : this.intersectMergeRange(t, e) || (this._setBorderProps(t, e, J.TOP, l, u), this._setBorderProps(t, e, J.BOTTOM, l, u), this._setBorderProps(t, e, J.LEFT, l, u), this._setBorderProps(t, e, J.RIGHT, l, u)), this._setBorderProps(t, e, J.TL_BR, l, u), this._setBorderProps(t, e, J.TL_BC, l, u), this._setBorderProps(t, e, J.TL_MR, l, u), this._setBorderProps(t, e, J.BL_TR, l, u), this._setBorderProps(t, e, J.ML_TR, l, u), this._setBorderProps(t, e, J.BC_TR, l, u)), s === !0)
23581
23589
  return this._makeDocumentSkeletonDirty(t, e), !0;
@@ -23595,7 +23603,7 @@ let s0 = class extends R2 {
23595
23603
  if (v) {
23596
23604
  const S = qt.create(v, this._localService);
23597
23605
  S.calculate();
23598
- const w = {
23606
+ const x = {
23599
23607
  documentSkeleton: S,
23600
23608
  vertexAngle: F,
23601
23609
  centerAngle: E,
@@ -23603,7 +23611,7 @@ let s0 = class extends R2 {
23603
23611
  horizontalAlign: m,
23604
23612
  wrapStrategy: p
23605
23613
  };
23606
- y.setValue(t, e, w), this._calculateOverflowCell(t, e, w);
23614
+ y.setValue(t, e, x), this._calculateOverflowCell(t, e, x);
23607
23615
  }
23608
23616
  n ? this._renderedCellCache.setValue(t, e, !0) : this._renderedCellCache.setValue(t, e, !1);
23609
23617
  }
@@ -23826,44 +23834,44 @@ class iE extends ct {
23826
23834
  e.save();
23827
23835
  const y = this._getScale(n);
23828
23836
  f && Object.keys(f).forEach((F) => {
23829
- f[F].forValue((k, S, w) => {
23837
+ f[F].forValue((k, S, x) => {
23830
23838
  var Re, be, pe, Se, xe;
23831
23839
  if (!u && !T2(o, k, S))
23832
23840
  return !0;
23833
- const x = this.getCellIndex(
23841
+ const w = this.getCellIndex(
23834
23842
  k,
23835
23843
  S,
23836
23844
  p,
23837
23845
  m,
23838
23846
  c
23839
23847
  );
23840
- let { startY: A, endY: R, startX: B, endX: M } = x;
23841
- const { isMerged: $, isMergedMainCell: I, mergeInfo: O } = x;
23848
+ let { startY: O, endY: R, startX: I, endX: M } = w;
23849
+ const { isMerged: $, isMergedMainCell: A, mergeInfo: B } = w;
23842
23850
  if ($)
23843
23851
  return !0;
23844
- const L = s && s.length > 0 ? s : o, N = $i(L, [O]);
23845
- if (!Qp(N, k) || (I && (A = O.startY, R = O.endY, B = O.startX, M = O.endX), s && !this.isRowInRanges(O.startRow, O.endRow, s)))
23852
+ const L = s && s.length > 0 ? s : o, N = $i(L, [B]);
23853
+ if (!Qp(N, k) || (A && (O = B.startY, R = B.endY, I = B.startX, M = B.endX), s && !this.isRowInRanges(B.startRow, B.endRow, s)))
23846
23854
  return !0;
23847
23855
  const P = h.getCell(k, S) || {};
23848
23856
  if ((Re = P.fontRenderExtension) != null && Re.isSkip)
23849
23857
  return !0;
23850
- const G = d.getValue(k, S), { horizontalAlign: K, vertexAngle: j = 0, centerAngle: Q = 0 } = w;
23858
+ const G = d.getValue(k, S), { horizontalAlign: K, vertexAngle: j = 0, centerAngle: ne = 0 } = x;
23851
23859
  if (!G && !T2(N, k, S))
23852
23860
  return !0;
23853
- let ie = K;
23854
- K === oe.UNSPECIFIED && (Q === Ue && j === Ue ? ie = oe.CENTER : (j > 0 && j !== Ue || j === -Ue) && (ie = oe.RIGHT)), e.save(), e.beginPath();
23861
+ let se = K;
23862
+ K === oe.UNSPECIFIED && (ne === Ue && j === Ue ? se = oe.CENTER : (j > 0 && j !== Ue || j === -Ue) && (se = oe.RIGHT)), e.save(), e.beginPath();
23855
23863
  const fe = (pe = (be = P.fontRenderExtension) == null ? void 0 : be.rightOffset) != null ? pe : 0, ve = (xe = (Se = P.fontRenderExtension) == null ? void 0 : Se.leftOffset) != null ? xe : 0;
23856
23864
  let ge = !0;
23857
- j === 0 && (B = B + ve, M = M - fe, (fe !== 0 || ve !== 0) && (ge = !1));
23858
- const de = M - B, ue = R - A;
23865
+ j === 0 && (I = I + ve, M = M - fe, (fe !== 0 || ve !== 0) && (ge = !1));
23866
+ const de = M - I, ue = R - O;
23859
23867
  if (G && ge) {
23860
23868
  const { startColumn: ye, startRow: Te, endColumn: Oe, endRow: Ie } = G;
23861
23869
  ye === Oe && ye === S ? (e.rectByPrecision(
23862
- B + 1 / y,
23863
- A + 1 / y,
23870
+ I + 1 / y,
23871
+ O + 1 / y,
23864
23872
  de - 2 / y,
23865
23873
  ue - 2 / y
23866
- ), e.clip()) : ie === oe.CENTER ? this._clipRectangleForOverflow(
23874
+ ), e.clip()) : se === oe.CENTER ? this._clipRectangleForOverflow(
23867
23875
  e,
23868
23876
  Te,
23869
23877
  Ie,
@@ -23872,7 +23880,7 @@ class iE extends ct {
23872
23880
  y,
23873
23881
  p,
23874
23882
  m
23875
- ) : ie === oe.RIGHT ? this._clipRectangleForOverflow(
23883
+ ) : se === oe.RIGHT ? this._clipRectangleForOverflow(
23876
23884
  e,
23877
23885
  Te,
23878
23886
  k,
@@ -23892,8 +23900,8 @@ class iE extends ct {
23892
23900
  m
23893
23901
  );
23894
23902
  } else
23895
- e.rectByPrecision(B + 1 / y, A + 1 / y, de - 2 / y, ue - 2 / y), e.clip();
23896
- e.translate(B + ze, A + ze), this._renderDocuments(e, w, B, A, M, R, k, S, d), e.closePath(), e.restore();
23903
+ e.rectByPrecision(I + 1 / y, O + 1 / y, de - 2 / y, ue - 2 / y), e.clip();
23904
+ e.translate(I + ze, O + ze), this._renderDocuments(e, x, I, O, M, R, k, S, d), e.closePath(), e.restore();
23897
23905
  });
23898
23906
  }), e.restore();
23899
23907
  }
@@ -23964,12 +23972,14 @@ class cE extends ct {
23964
23972
  }
23965
23973
  // eslint-disable-next-line max-lines-per-function
23966
23974
  draw(e, n, i, s) {
23975
+ if (e.__mode === "printing")
23976
+ return;
23967
23977
  const { worksheet: a, rowColumnSegment: o } = i;
23968
23978
  if (!a)
23969
23979
  return;
23970
23980
  const u = /* @__PURE__ */ new Set();
23971
23981
  Fi.foreach(o, (l, c) => {
23972
- var E, k, S, w, x;
23982
+ var E, k, S, x;
23973
23983
  let d = a.getCell(l, c);
23974
23984
  const h = this.getCellIndex(
23975
23985
  l,
@@ -23980,40 +23990,40 @@ class cE extends ct {
23980
23990
  ), { isMerged: f, isMergedMainCell: p, mergeInfo: _ } = h;
23981
23991
  let { startY: m, endY: v, startX: y, endX: F } = h;
23982
23992
  if ((p || f) && (m = _.startY, v = _.endY, y = _.startX, F = _.endX), f) {
23983
- const A = {
23993
+ const w = {
23984
23994
  row: _.startRow,
23985
23995
  col: _.startColumn
23986
23996
  };
23987
- d = a.getCell(A.row, A.col);
23997
+ d = a.getCell(w.row, w.col);
23988
23998
  }
23989
23999
  if (!this.isRenderDiffRangesByRow(_.startRow, _.endRow, s))
23990
24000
  return !0;
23991
24001
  if (h.isMerged || h.isMergedMainCell) {
23992
- const A = lE(_);
23993
- if (u.has(A))
24002
+ const w = lE(_);
24003
+ if (u.has(w))
23994
24004
  return;
23995
- u.add(A);
24005
+ u.add(w);
23996
24006
  }
23997
- if (!(!a.getColVisible(c) || !a.getRowVisible(l)) && d && !((E = d.markers) != null && E.isSkip)) {
23998
- if ((k = d.markers) != null && k.tr) {
24007
+ if (!(!a.getColVisible(c) || !a.getRowVisible(l)) && d) {
24008
+ if ((E = d.markers) != null && E.tr) {
23999
24009
  e.save();
24000
- const A = d.markers.tr, R = F, B = m;
24001
- e.fillStyle = A.color, e.moveTo(R, B), e.beginPath(), e.lineTo(R - A.size, B), e.lineTo(R, B + A.size), e.lineTo(R, B), e.closePath(), e.fill(), e.restore();
24010
+ const w = d.markers.tr, O = F, R = m;
24011
+ e.fillStyle = w.color, e.moveTo(O, R), e.beginPath(), e.lineTo(O - w.size, R), e.lineTo(O, R + w.size), e.lineTo(O, R), e.closePath(), e.fill(), e.restore();
24002
24012
  }
24003
- if ((S = d.markers) != null && S.tl) {
24013
+ if ((k = d.markers) != null && k.tl) {
24004
24014
  e.save();
24005
- const A = d.markers.tl, R = y, B = m;
24006
- e.fillStyle = A.color, e.moveTo(R, B), e.beginPath(), e.lineTo(R + A.size, B), e.lineTo(R, B + A.size), e.lineTo(R, B), e.closePath(), e.fill(), e.restore();
24015
+ const w = d.markers.tl, O = y, R = m;
24016
+ e.fillStyle = w.color, e.moveTo(O, R), e.beginPath(), e.lineTo(O + w.size, R), e.lineTo(O, R + w.size), e.lineTo(O, R), e.closePath(), e.fill(), e.restore();
24007
24017
  }
24008
- if ((w = d.markers) != null && w.br) {
24018
+ if ((S = d.markers) != null && S.br) {
24009
24019
  e.save();
24010
- const A = d.markers.br, R = F, B = v;
24011
- e.fillStyle = A.color, e.moveTo(R, B), e.beginPath(), e.lineTo(R - A.size, B), e.lineTo(R, B - A.size), e.lineTo(R, B), e.closePath(), e.fill(), e.restore();
24020
+ const w = d.markers.br, O = F, R = v;
24021
+ e.fillStyle = w.color, e.moveTo(O, R), e.beginPath(), e.lineTo(O - w.size, R), e.lineTo(O, R - w.size), e.lineTo(O, R), e.closePath(), e.fill(), e.restore();
24012
24022
  }
24013
24023
  if ((x = d.markers) != null && x.bl) {
24014
24024
  e.save();
24015
- const A = d.markers.bl, R = y, B = v;
24016
- e.fillStyle = A.color, e.moveTo(R, B), e.beginPath(), e.lineTo(R + A.size, B), e.lineTo(R, B - A.size), e.lineTo(R, B), e.closePath(), e.fill(), e.restore();
24025
+ const w = d.markers.bl, O = y, R = v;
24026
+ e.fillStyle = w.color, e.moveTo(O, R), e.beginPath(), e.lineTo(O + w.size, R), e.lineTo(O, R - w.size), e.lineTo(O, R), e.closePath(), e.fill(), e.restore();
24017
24027
  }
24018
24028
  }
24019
24029
  });
@@ -24269,7 +24279,7 @@ class SE extends rn {
24269
24279
  this._preBackgroundColor = "";
24270
24280
  }
24271
24281
  _drawLine(e, n, i, s, a) {
24272
- var w;
24282
+ var x;
24273
24283
  const { s: o, cl: u, t: l, c = re.TRUE } = i;
24274
24284
  if (o !== re.TRUE)
24275
24285
  return;
@@ -24279,7 +24289,7 @@ class SE extends rn {
24279
24289
  renderConfig: f = {}
24280
24290
  } = this.extensionOffset, { left: p, width: _ } = n, { centerAngle: m = 0, vertexAngle: v = 0 } = f, y = Ye(m), F = Ye(v);
24281
24291
  e.save(), e.translateWithPrecisionRatio(ze, ze);
24282
- const E = (c === re.TRUE ? at((w = n.ts) == null ? void 0 : w.cl) : at(u)) || ot;
24292
+ const E = (c === re.TRUE ? at((x = n.ts) == null ? void 0 : x.cl) : at(u)) || ot;
24283
24293
  e.strokeStyle = E, this._setLineType(e, l || i1.SINGLE);
24284
24294
  const k = zt(
24285
24295
  d.addByPoint(p, s),
@@ -24346,7 +24356,7 @@ class sn extends F6 {
24346
24356
  // private _textAngleRotateOffset: number = 0;
24347
24357
  constructor(e, n, i) {
24348
24358
  super(e, n, i);
24349
- g(this, "onPageRenderObservable", new ee());
24359
+ g(this, "onPageRenderObservable", new Q());
24350
24360
  g(this, "docsLeft", 0);
24351
24361
  g(this, "docsTop", 0);
24352
24362
  g(this, "_drawLiquid", new Q2());
@@ -24436,39 +24446,39 @@ class sn extends F6 {
24436
24446
  marginRight: E = 0,
24437
24447
  width: k,
24438
24448
  height: S,
24439
- renderConfig: w = {}
24449
+ renderConfig: x = {}
24440
24450
  } = _, {
24441
- verticalAlign: x = Pt.TOP,
24451
+ verticalAlign: w = Pt.TOP,
24442
24452
  // Do not make changes, otherwise the document will not render.
24443
- horizontalAlign: A = oe.LEFT,
24453
+ horizontalAlign: O = oe.LEFT,
24444
24454
  // Do not make changes, otherwise the document will not render.
24445
24455
  centerAngle: R = 0,
24446
- vertexAngle: B = 0,
24456
+ vertexAngle: I = 0,
24447
24457
  wrapStrategy: M = t1.UNSPECIFIED,
24448
24458
  cellValueType: $
24449
24459
  // isRotateNonEastAsian = BooleanNumber.FALSE,
24450
- } = w, I = this._horizontalHandler(
24460
+ } = x, A = this._horizontalHandler(
24451
24461
  k,
24452
24462
  F,
24453
24463
  E,
24454
- A,
24455
- B,
24464
+ O,
24465
+ I,
24456
24466
  R,
24457
24467
  $
24458
- ), O = this._verticalHandler(
24468
+ ), B = this._verticalHandler(
24459
24469
  S,
24460
24470
  v,
24461
24471
  y,
24462
- x
24463
- ), L = z.create(I, O), N = Ye(R), P = Ye(B), G = P - N;
24472
+ w
24473
+ ), L = z.create(A, B), N = Ye(R), P = Ye(I), G = P - N;
24464
24474
  if (this.isSkipByDiffBounds(_, c, d, n)) {
24465
- const { x: Q, y: ie } = this._drawLiquid.translatePage(
24475
+ const { x: ne, y: se } = this._drawLiquid.translatePage(
24466
24476
  _,
24467
24477
  this.pageLayoutType,
24468
24478
  this.pageMarginLeft,
24469
24479
  this.pageMarginTop
24470
24480
  );
24471
- d += Q, c += ie;
24481
+ d += ne, c += se;
24472
24482
  continue;
24473
24483
  }
24474
24484
  this.onPageRenderObservable.notifyObservers({
@@ -24477,10 +24487,10 @@ class sn extends F6 {
24477
24487
  pageTop: c,
24478
24488
  ctx: e
24479
24489
  }), this._startRotation(e, G);
24480
- for (const Q of m) {
24481
- const { columns: ie } = Q;
24482
- this._drawLiquid.translateSection(Q);
24483
- for (const fe of ie) {
24490
+ for (const ne of m) {
24491
+ const { columns: se } = ne;
24492
+ this._drawLiquid.translateSection(ne);
24493
+ for (const fe of se) {
24484
24494
  const { lines: ve, width: ge } = fe;
24485
24495
  this._drawLiquid.translateSave(), this._drawLiquid.translateColumn(fe);
24486
24496
  const de = ve.length;
@@ -24500,26 +24510,26 @@ class sn extends F6 {
24500
24510
  Oe,
24501
24511
  F,
24502
24512
  E,
24503
- A,
24504
- B,
24513
+ O,
24514
+ I,
24505
24515
  R
24506
24516
  );
24507
24517
  let Ae = this._verticalHandler(
24508
24518
  pe,
24509
24519
  v,
24510
24520
  y,
24511
- x
24521
+ w
24512
24522
  ) - ye;
24513
24523
  pe > this.height && (P < 0 ? Ae = this.height - (pe + ye) : Ae = -ye), ue = z.create(Ie + xe, Ae), this._drawLiquid.translate(0, -Te), Re = be;
24514
24524
  } else
24515
- M === t1.WRAP && (A !== oe.UNSPECIFIED || $ !== Q1.NUMBER) && (ue.x = F);
24525
+ M === t1.WRAP && (O !== oe.UNSPECIFIED || $ !== Q1.NUMBER) && (ue.x = F);
24516
24526
  for (let be = 0; be < de; be++) {
24517
24527
  const pe = ve[be], { divides: Se, asc: xe = 0, type: ye, lineHeight: Te = 0 } = pe, Oe = xe, Ie = Oe * Math.sin(N), S1 = Oe * Math.cos(N);
24518
24528
  if (ye === J2.BLOCK)
24519
24529
  for (const Ae of o)
24520
24530
  Ae.type === a0.LINE && (Ae.extensionOffset = {
24521
24531
  alignOffset: ue,
24522
- renderConfig: w
24532
+ renderConfig: x
24523
24533
  }, Ae.draw(e, a, pe));
24524
24534
  else {
24525
24535
  this._drawLiquid.translateSave(), this._drawLiquid.translateLine(pe, !0), Re && this._drawLiquid.translate(Re[be]);
@@ -24565,7 +24575,7 @@ class sn extends F6 {
24565
24575
  spanPointWithFont: an,
24566
24576
  centerPoint: p1,
24567
24577
  alignOffset: ue,
24568
- renderConfig: w
24578
+ renderConfig: x
24569
24579
  };
24570
24580
  for (const M0 of l)
24571
24581
  M0.extensionOffset = on, M0.draw(e, a, Me);
@@ -24803,8 +24813,8 @@ class gS extends Qi {
24803
24813
  renderByViewport(e, n, i) {
24804
24814
  const { diffBounds: s, diffX: a, diffY: o, viewPortPosition: u, cacheCanvas: l, leftOrigin: c, topOrigin: d, bufferEdgeX: h, bufferEdgeY: f, isDirty: p, isForceDirty: _ } = n, { rowHeaderWidth: m, columnHeaderHeight: v } = i, { a: y = 1, d: F = 1 } = e.getTransform(), E = h * y / window.devicePixelRatio, k = f * F / window.devicePixelRatio, S = l.getContext();
24805
24815
  S.save();
24806
- const { left: w, top: x, right: A, bottom: R } = u, B = A - w + m, M = R - x + v, $ = _ || this.isForceDirty(), I = p || this.isDirty();
24807
- s.length === 0 || a === 0 && o === 0 || $ || I ? (I || $) && this.refreshCacheCanvas(n, { cacheCanvas: l, cacheCtx: S, mainCtx: e, topOrigin: d, leftOrigin: c, bufferEdgeX: h, bufferEdgeY: f }) : (s.length !== 0 || a !== 0 || o !== 0) && this.paintNewAreaForScrolling(n, {
24816
+ const { left: x, top: w, right: O, bottom: R } = u, I = O - x + m, M = R - w + v, $ = _ || this.isForceDirty(), A = p || this.isDirty();
24817
+ s.length === 0 || a === 0 && o === 0 || $ || A ? (A || $) && this.refreshCacheCanvas(n, { cacheCanvas: l, cacheCtx: S, mainCtx: e, topOrigin: d, leftOrigin: c, bufferEdgeX: h, bufferEdgeY: f }) : (s.length !== 0 || a !== 0 || o !== 0) && this.paintNewAreaForScrolling(n, {
24808
24818
  cacheCanvas: l,
24809
24819
  cacheCtx: S,
24810
24820
  mainCtx: e,
@@ -24817,8 +24827,8 @@ class gS extends Qi {
24817
24827
  columnHeaderHeight: v,
24818
24828
  rowHeaderWidth: m
24819
24829
  });
24820
- const O = E * Math.min(1, window.devicePixelRatio), L = k * Math.min(1, window.devicePixelRatio);
24821
- this._applyCache(l, e, O, L, B, M, w, x, B, M), S.restore();
24830
+ const B = E * Math.min(1, window.devicePixelRatio), L = k * Math.min(1, window.devicePixelRatio);
24831
+ this._applyCache(l, e, B, L, I, M, x, w, I, M), S.restore();
24822
24832
  }
24823
24833
  paintNewAreaForScrolling(e, n) {
24824
24834
  const { cacheCanvas: i, cacheCtx: s, mainCtx: a, topOrigin: o, leftOrigin: u, bufferEdgeX: l, bufferEdgeY: c, scaleX: d, scaleY: h, columnHeaderHeight: f, rowHeaderWidth: p } = n, { shouldCacheUpdate: _, diffCacheBounds: m, diffX: v, diffY: y } = e;
@@ -24826,8 +24836,8 @@ class gS extends Qi {
24826
24836
  const F = a.getTransform();
24827
24837
  if (s.setTransform(F.a, F.b, F.c, F.d, 0, 0), s.translateWithPrecision(F.e / F.a - u + l, F.f / F.d - o + c), _)
24828
24838
  for (const E of m) {
24829
- const { left: k, right: S, bottom: w, top: x } = E, A = k - p, R = x - f, B = S - k, M = w - x;
24830
- s.clearRectByPrecision(A, R, B, M), s.save(), s.beginPath(), s.rectByPrecision(A, R, B, M), s.closePath(), s.clip(), this.draw(s, {
24839
+ const { left: k, right: S, bottom: x, top: w } = E, O = k - p, R = w - f, I = S - k, M = x - w;
24840
+ s.clearRectByPrecision(O, R, I, M), s.save(), s.beginPath(), s.rectByPrecision(O, R, I, M), s.closePath(), s.clip(), this.draw(s, {
24831
24841
  ...e,
24832
24842
  diffBounds: [E]
24833
24843
  }), s.restore();
@@ -24939,19 +24949,19 @@ class gS extends Qi {
24939
24949
  if (!h || !p || f === void 0 || _ === void 0)
24940
24950
  return;
24941
24951
  e.save(), e.setLineWidthByPrecision(1), e.strokeStyle = Ne([214, 216, 219]);
24942
- const m = p.length, v = h.length, y = 0.4, F = l - u + 1, E = d - c + 1, k = Math.ceil(F * y), S = Math.ceil(E * y), w = Math.max(Math.floor(u - k), 0), x = Math.min(Math.ceil(l + k), v - 1), A = Math.min(Math.ceil(d + S), m - 1), R = Math.max(Math.floor(c - S), 0), B = p[R - 1] || 0, M = h[w - 1] || 0, $ = p[A], I = h[x];
24943
- e.translateWithPrecisionRatio(ze, ze), e.beginPath(), e.moveToByPrecision(B, M), e.lineToByPrecision($, M), e.moveToByPrecision(B, M), e.lineToByPrecision(B, I), e.closePathByEnv(), e.stroke();
24944
- for (let O = w; O <= x; O++) {
24945
- if (O < 0 || O > v - 1)
24952
+ const m = p.length, v = h.length, y = 0.4, F = l - u + 1, E = d - c + 1, k = Math.ceil(F * y), S = Math.ceil(E * y), x = Math.max(Math.floor(u - k), 0), w = Math.min(Math.ceil(l + k), v - 1), O = Math.min(Math.ceil(d + S), m - 1), R = Math.max(Math.floor(c - S), 0), I = p[R - 1] || 0, M = h[x - 1] || 0, $ = p[O], A = h[w];
24953
+ e.translateWithPrecisionRatio(ze, ze), e.beginPath(), e.moveToByPrecision(I, M), e.lineToByPrecision($, M), e.moveToByPrecision(I, M), e.lineToByPrecision(I, A), e.closePathByEnv(), e.stroke();
24954
+ for (let B = x; B <= w; B++) {
24955
+ if (B < 0 || B > v - 1)
24946
24956
  continue;
24947
- const L = h[O];
24948
- e.beginPath(), e.moveToByPrecision(B, L), e.lineToByPrecision($, L), e.closePathByEnv(), e.stroke();
24957
+ const L = h[B];
24958
+ e.beginPath(), e.moveToByPrecision(I, L), e.lineToByPrecision($, L), e.closePathByEnv(), e.stroke();
24949
24959
  }
24950
- for (let O = R; O <= A; O++) {
24951
- if (O < 0 || O > m - 1)
24960
+ for (let B = R; B <= O; B++) {
24961
+ if (B < 0 || B > m - 1)
24952
24962
  continue;
24953
- const L = p[O];
24954
- e.beginPath(), e.moveToByPrecision(L, M), e.lineToByPrecision(L, I), e.closePathByEnv(), e.stroke();
24963
+ const L = p[B];
24964
+ e.beginPath(), e.moveToByPrecision(L, M), e.lineToByPrecision(L, A), e.closePathByEnv(), e.stroke();
24955
24965
  }
24956
24966
  this._clearRectangle(e, h, p, s), this._clearRectangle(e, h, p, a.toNativeArray()), e.restore();
24957
24967
  }
@@ -25473,7 +25483,7 @@ class We extends Tt {
25473
25483
  for (; m.length > 0 && !isNaN(m[0]); ) {
25474
25484
  let v, y = [];
25475
25485
  const F = u, E = l;
25476
- let k, S, w, x, A, R, B, M, $, I;
25486
+ let k, S, x, w, O, R, I, M, $, A;
25477
25487
  switch (_) {
25478
25488
  case "l":
25479
25489
  u += m.shift() || 0, l += m.shift() || 0, v = "L", y.push(u, l);
@@ -25482,11 +25492,11 @@ class We extends Tt {
25482
25492
  u = m.shift() || 0, l = m.shift() || 0, y.push(u, l);
25483
25493
  break;
25484
25494
  case "m": {
25485
- const O = m.shift() || 0, L = m.shift() || 0;
25486
- if (u += O, l += L, v = "M", a.length > 2 && a[a.length - 1].command === "z") {
25495
+ const B = m.shift() || 0, L = m.shift() || 0;
25496
+ if (u += B, l += L, v = "M", a.length > 2 && a[a.length - 1].command === "z") {
25487
25497
  for (let N = a.length - 2; N >= 0; N--)
25488
25498
  if (a[N].command === "M") {
25489
- u = a[N].points[0] + O, l = a[N].points[1] + L;
25499
+ u = a[N].points[0] + B, l = a[N].points[1] + L;
25490
25500
  break;
25491
25501
  }
25492
25502
  }
@@ -25520,10 +25530,10 @@ class We extends Tt {
25520
25530
  ), u += m.shift() || 0, l += m.shift() || 0, v = "C", y.push(u, l);
25521
25531
  break;
25522
25532
  case "S":
25523
- S = u, w = l, k = a[a.length - 1], k.command === "C" && (S = u + (u - k.points[2]), w = l + (l - k.points[3])), y.push(S, w, m.shift() || 0, m.shift() || 0), u = m.shift() || 0, l = m.shift() || 0, v = "C", y.push(u, l);
25533
+ S = u, x = l, k = a[a.length - 1], k.command === "C" && (S = u + (u - k.points[2]), x = l + (l - k.points[3])), y.push(S, x, m.shift() || 0, m.shift() || 0), u = m.shift() || 0, l = m.shift() || 0, v = "C", y.push(u, l);
25524
25534
  break;
25525
25535
  case "s":
25526
- S = u, w = l, k = a[a.length - 1], k.command === "C" && (S = u + (u - k.points[2]), w = l + (l - k.points[3])), y.push(S, w, u + (m.shift() || 0), l + (m.shift() || 0)), u += m.shift() || 0, l += m.shift() || 0, v = "C", y.push(u, l);
25536
+ S = u, x = l, k = a[a.length - 1], k.command === "C" && (S = u + (u - k.points[2]), x = l + (l - k.points[3])), y.push(S, x, u + (m.shift() || 0), l + (m.shift() || 0)), u += m.shift() || 0, l += m.shift() || 0, v = "C", y.push(u, l);
25527
25537
  break;
25528
25538
  case "Q":
25529
25539
  y.push(m.shift() || 0, m.shift() || 0), u = m.shift() || 0, l = m.shift() || 0, y.push(u, l);
@@ -25532,16 +25542,16 @@ class We extends Tt {
25532
25542
  y.push(u + (m.shift() || 0), l + (m.shift() || 0)), u += m.shift() || 0, l += m.shift() || 0, v = "Q", y.push(u, l);
25533
25543
  break;
25534
25544
  case "T":
25535
- S = u, w = l, k = a[a.length - 1], k.command === "Q" && (S = u + (u - k.points[0]), w = l + (l - k.points[1])), u = m.shift() || 0, l = m.shift() || 0, v = "Q", y.push(S, w, u, l);
25545
+ S = u, x = l, k = a[a.length - 1], k.command === "Q" && (S = u + (u - k.points[0]), x = l + (l - k.points[1])), u = m.shift() || 0, l = m.shift() || 0, v = "Q", y.push(S, x, u, l);
25536
25546
  break;
25537
25547
  case "t":
25538
- S = u, w = l, k = a[a.length - 1], k.command === "Q" && (S = u + (u - k.points[0]), w = l + (l - k.points[1])), u += m.shift() || 0, l += m.shift() || 0, v = "Q", y.push(S, w, u, l);
25548
+ S = u, x = l, k = a[a.length - 1], k.command === "Q" && (S = u + (u - k.points[0]), x = l + (l - k.points[1])), u += m.shift() || 0, l += m.shift() || 0, v = "Q", y.push(S, x, u, l);
25539
25549
  break;
25540
25550
  case "A":
25541
- x = m.shift() || 0, A = m.shift() || 0, R = m.shift() || 0, B = m.shift() || 0, M = m.shift() || 0, $ = u, I = l, u = m.shift() || 0, l = m.shift() || 0, v = "A", y = this.convertEndpointToCenterParameterization($, I, u, l, B, M, x, A, R);
25551
+ w = m.shift() || 0, O = m.shift() || 0, R = m.shift() || 0, I = m.shift() || 0, M = m.shift() || 0, $ = u, A = l, u = m.shift() || 0, l = m.shift() || 0, v = "A", y = this.convertEndpointToCenterParameterization($, A, u, l, I, M, w, O, R);
25542
25552
  break;
25543
25553
  case "a":
25544
- x = m.shift() || 0, A = m.shift() || 0, R = m.shift() || 0, B = m.shift() || 0, M = m.shift() || 0, $ = u, I = l, u += m.shift() || 0, l += m.shift() || 0, v = "A", y = this.convertEndpointToCenterParameterization($, I, u, l, B, M, x, A, R);
25554
+ w = m.shift() || 0, O = m.shift() || 0, R = m.shift() || 0, I = m.shift() || 0, M = m.shift() || 0, $ = u, A = l, u += m.shift() || 0, l += m.shift() || 0, v = "A", y = this.convertEndpointToCenterParameterization($, A, u, l, I, M, w, O, R);
25545
25555
  break;
25546
25556
  }
25547
25557
  a.push({
@@ -25622,9 +25632,9 @@ class We extends Tt {
25622
25632
  (u * u * (l * l) - u * u * (f * f) - l * l * (h * h)) / (u * u * (f * f) + l * l * (h * h))
25623
25633
  );
25624
25634
  a === o && (_ *= -1), isNaN(_) && (_ = 0);
25625
- const m = _ * u * f / l, v = _ * -l * h / u, y = (e + i) / 2 + Math.cos(d) * m - Math.sin(d) * v, F = (n + s) / 2 + Math.sin(d) * m + Math.cos(d) * v, E = (B) => Math.sqrt(B[0] * B[0] + B[1] * B[1]), k = (B, M) => (B[0] * M[0] + B[1] * M[1]) / (E(B) * E(M)), S = (B, M) => (B[0] * M[1] < B[1] * M[0] ? -1 : 1) * Math.acos(k(B, M)), w = S([1, 0], [(h - m) / u, (f - v) / l]), x = [(h - m) / u, (f - v) / l], A = [(-1 * h - m) / u, (-1 * f - v) / l];
25626
- let R = S(x, A);
25627
- return k(x, A) <= -1 && (R = Math.PI), k(x, A) >= 1 && (R = 0), o === 0 && R > 0 && (R -= 2 * Math.PI), o === 1 && R < 0 && (R += 2 * Math.PI), [y, F, u, l, w, R, d, o];
25635
+ const m = _ * u * f / l, v = _ * -l * h / u, y = (e + i) / 2 + Math.cos(d) * m - Math.sin(d) * v, F = (n + s) / 2 + Math.sin(d) * m + Math.cos(d) * v, E = (I) => Math.sqrt(I[0] * I[0] + I[1] * I[1]), k = (I, M) => (I[0] * M[0] + I[1] * M[1]) / (E(I) * E(M)), S = (I, M) => (I[0] * M[1] < I[1] * M[0] ? -1 : 1) * Math.acos(k(I, M)), x = S([1, 0], [(h - m) / u, (f - v) / l]), w = [(h - m) / u, (f - v) / l], O = [(-1 * h - m) / u, (-1 * f - v) / l];
25636
+ let R = S(w, O);
25637
+ return k(w, O) <= -1 && (R = Math.PI), k(w, O) >= 1 && (R = 0), o === 0 && R > 0 && (R -= 2 * Math.PI), o === 1 && R < 0 && (R += 2 * Math.PI), [y, F, u, l, x, R, d, o];
25628
25638
  }
25629
25639
  toJson() {
25630
25640
  const e = {};
@@ -25804,7 +25814,7 @@ const ui = "M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 5
25804
25814
  class pS extends xE {
25805
25815
  constructor() {
25806
25816
  super(...arguments);
25807
- g(this, "onSlideChangePageByNavigationObservable", new ee());
25817
+ g(this, "onSlideChangePageByNavigationObservable", new Q());
25808
25818
  g(this, "_navigationEnabled", !1);
25809
25819
  }
25810
25820
  activeFirstPage() {
@@ -25955,8 +25965,8 @@ class DS extends j1 {
25955
25965
  class AE extends k1 {
25956
25966
  constructor() {
25957
25967
  super(...arguments);
25958
- g(this, "onInputChangedObservable", new ee());
25959
- g(this, "onTransformChangeObservable", new ee());
25968
+ g(this, "onInputChangedObservable", new Q());
25969
+ g(this, "onTransformChangeObservable", new Q());
25960
25970
  g(this, "_scenes", {});
25961
25971
  g(this, "_activeScene", null);
25962
25972
  }
@@ -26016,11 +26026,11 @@ class o0 extends AE {
26016
26026
  /**
26017
26027
  * Observable raised when the engine begins a new frame
26018
26028
  */
26019
- g(this, "onBeginFrameObservable", new ee());
26029
+ g(this, "onBeginFrameObservable", new Q());
26020
26030
  /**
26021
26031
  * Observable raised when the engine ends the current frame
26022
26032
  */
26023
- g(this, "onEndFrameObservable", new ee());
26033
+ g(this, "onEndFrameObservable", new Q());
26024
26034
  g(this, "_container");
26025
26035
  g(this, "_canvas");
26026
26036
  g(this, "_renderingQueueLaunched", !1);
@@ -26933,11 +26943,11 @@ class UE extends k1 {
26933
26943
  g(this, "boundBoxFunc");
26934
26944
  g(this, "useSingleNodeRotation", !1);
26935
26945
  g(this, "shouldOverdrawWholeArea", !1);
26936
- g(this, "onChangeStartObservable", new ee());
26937
- g(this, "onChangingObservable", new ee());
26938
- g(this, "onChangeEndObservable", new ee());
26939
- g(this, "onClearControlObservable", new ee());
26940
- g(this, "onCreateControlObservable", new ee());
26946
+ g(this, "onChangeStartObservable", new Q());
26947
+ g(this, "onChangingObservable", new Q());
26948
+ g(this, "onChangeEndObservable", new Q());
26949
+ g(this, "onClearControlObservable", new Q());
26950
+ g(this, "onCreateControlObservable", new Q());
26941
26951
  g(this, "_startOffsetX", -1);
26942
26952
  g(this, "_startOffsetY", -1);
26943
26953
  g(this, "_startStateMap", /* @__PURE__ */ new Map());
@@ -27003,7 +27013,7 @@ class UE extends k1 {
27003
27013
  }
27004
27014
  // eslint-disable-next-line complexity
27005
27015
  _getConfig(e) {
27006
- var N, P, G, K, j, Q, ie, fe, ve, ge, de, ue, Re, be, pe, Se, xe, ye, Te, Oe, Ie, S1, Ae, Ke, w1, r1, Me, x1, g1;
27016
+ var N, P, G, K, j, ne, se, fe, ve, ge, de, ue, Re, be, pe, Se, xe, ye, Te, Oe, Ie, S1, Ae, Ke, w1, r1, Me, x1, g1;
27007
27017
  const n = e.transformerConfig;
27008
27018
  let {
27009
27019
  isCropper: i,
@@ -27025,18 +27035,18 @@ class UE extends k1 {
27025
27035
  anchorFill: E,
27026
27036
  anchorStroke: k,
27027
27037
  anchorStrokeWidth: S,
27028
- anchorSize: w,
27029
- anchorCornerRadius: x,
27030
- keepRatio: A,
27038
+ anchorSize: x,
27039
+ anchorCornerRadius: w,
27040
+ keepRatio: O,
27031
27041
  centeredScaling: R,
27032
- enabledAnchors: B,
27042
+ enabledAnchors: I,
27033
27043
  flipEnabled: M,
27034
27044
  ignoreStroke: $,
27035
- boundBoxFunc: I,
27036
- useSingleNodeRotation: O,
27045
+ boundBoxFunc: A,
27046
+ useSingleNodeRotation: B,
27037
27047
  shouldOverdrawWholeArea: L
27038
27048
  } = this;
27039
- return n != null && (i = (N = n.isCropper) != null ? N : i, s = (P = n.hoverEnabled) != null ? P : s, a = (G = n.hoverEnterFunc) != null ? G : a, o = (K = n.hoverLeaveFunc) != null ? K : o, u = (j = n.resizeEnabled) != null ? j : u, l = (Q = n.rotateEnabled) != null ? Q : l, c = (ie = n.rotationSnaps) != null ? ie : c, d = (fe = n.rotationSnapTolerance) != null ? fe : d, h = (ve = n.rotateAnchorOffset) != null ? ve : h, f = (ge = n.rotateSize) != null ? ge : f, p = (de = n.rotateCornerRadius) != null ? de : p, _ = (ue = n.borderEnabled) != null ? ue : _, m = (Re = n.borderStroke) != null ? Re : m, v = (be = n.borderStrokeWidth) != null ? be : v, y = (pe = n.borderDash) != null ? pe : y, F = (Se = n.borderSpacing) != null ? Se : F, E = (xe = n.anchorFill) != null ? xe : E, k = (ye = n.anchorStroke) != null ? ye : k, S = (Te = n.anchorStrokeWidth) != null ? Te : S, w = (Oe = n.anchorSize) != null ? Oe : w, x = (Ie = n.anchorCornerRadius) != null ? Ie : x, A = (S1 = n.keepRatio) != null ? S1 : A, R = (Ae = n.centeredScaling) != null ? Ae : R, B = (Ke = n.enabledAnchors) != null ? Ke : B, M = (w1 = n.flipEnabled) != null ? w1 : M, $ = (r1 = n.ignoreStroke) != null ? r1 : $, I = (Me = n.boundBoxFunc) != null ? Me : I, O = (x1 = n.useSingleNodeRotation) != null ? x1 : O, L = (g1 = n.shouldOverdrawWholeArea) != null ? g1 : L), {
27049
+ return n != null && (i = (N = n.isCropper) != null ? N : i, s = (P = n.hoverEnabled) != null ? P : s, a = (G = n.hoverEnterFunc) != null ? G : a, o = (K = n.hoverLeaveFunc) != null ? K : o, u = (j = n.resizeEnabled) != null ? j : u, l = (ne = n.rotateEnabled) != null ? ne : l, c = (se = n.rotationSnaps) != null ? se : c, d = (fe = n.rotationSnapTolerance) != null ? fe : d, h = (ve = n.rotateAnchorOffset) != null ? ve : h, f = (ge = n.rotateSize) != null ? ge : f, p = (de = n.rotateCornerRadius) != null ? de : p, _ = (ue = n.borderEnabled) != null ? ue : _, m = (Re = n.borderStroke) != null ? Re : m, v = (be = n.borderStrokeWidth) != null ? be : v, y = (pe = n.borderDash) != null ? pe : y, F = (Se = n.borderSpacing) != null ? Se : F, E = (xe = n.anchorFill) != null ? xe : E, k = (ye = n.anchorStroke) != null ? ye : k, S = (Te = n.anchorStrokeWidth) != null ? Te : S, x = (Oe = n.anchorSize) != null ? Oe : x, w = (Ie = n.anchorCornerRadius) != null ? Ie : w, O = (S1 = n.keepRatio) != null ? S1 : O, R = (Ae = n.centeredScaling) != null ? Ae : R, I = (Ke = n.enabledAnchors) != null ? Ke : I, M = (w1 = n.flipEnabled) != null ? w1 : M, $ = (r1 = n.ignoreStroke) != null ? r1 : $, A = (Me = n.boundBoxFunc) != null ? Me : A, B = (x1 = n.useSingleNodeRotation) != null ? x1 : B, L = (g1 = n.shouldOverdrawWholeArea) != null ? g1 : L), {
27040
27050
  isCropper: i,
27041
27051
  hoverEnabled: s,
27042
27052
  hoverEnterFunc: a,
@@ -27056,15 +27066,15 @@ class UE extends k1 {
27056
27066
  anchorFill: E,
27057
27067
  anchorStroke: k,
27058
27068
  anchorStrokeWidth: S,
27059
- anchorSize: w,
27060
- anchorCornerRadius: x,
27061
- keepRatio: A,
27069
+ anchorSize: x,
27070
+ anchorCornerRadius: w,
27071
+ keepRatio: O,
27062
27072
  centeredScaling: R,
27063
- enabledAnchors: B,
27073
+ enabledAnchors: I,
27064
27074
  flipEnabled: M,
27065
27075
  ignoreStroke: $,
27066
- boundBoxFunc: I,
27067
- useSingleNodeRotation: O,
27076
+ boundBoxFunc: A,
27077
+ useSingleNodeRotation: B,
27068
27078
  shouldOverdrawWholeArea: L
27069
27079
  };
27070
27080
  }
@@ -27362,8 +27372,8 @@ class UE extends k1 {
27362
27372
  type: 0
27363
27373
  /* MOVE_START */
27364
27374
  }), this._selectedObjectMap.forEach((E) => {
27365
- const { width: k, height: S, left: w, top: x } = E.getState();
27366
- this._startStateMap.set(E.oKey, { width: k, height: S, left: w, top: x });
27375
+ const { width: k, height: S, left: x, top: w } = E.getState();
27376
+ this._startStateMap.set(E.oKey, { width: k, height: S, left: x, top: w });
27367
27377
  });
27368
27378
  else {
27369
27379
  this.onChangeStartObservable.notifyObservers({
@@ -27371,8 +27381,8 @@ class UE extends k1 {
27371
27381
  type: 0
27372
27382
  /* MOVE_START */
27373
27383
  });
27374
- const { width: E, height: k, left: S, top: w } = i.getState();
27375
- this._startStateMap.set(i.oKey, { width: E, height: k, left: S, top: w });
27384
+ const { width: E, height: k, left: S, top: x } = i.getState();
27385
+ this._startStateMap.set(i.oKey, { width: E, height: k, left: S, top: x });
27376
27386
  }
27377
27387
  this._moveBufferSkip = !1, this._moveObserver = l.onPointerMoveObserver.add((E) => {
27378
27388
  const { offsetX: k, offsetY: S } = E;
@@ -27768,34 +27778,34 @@ class UE extends k1 {
27768
27778
  return;
27769
27779
  const F = e.oKey, E = this._selectedObjectMap.size + e.maxZIndex + zE, k = e.getLayerIndex() || NE, S = [];
27770
27780
  if (p && !l) {
27771
- const A = new Be(`__SpreadsheetTransformerOutline___${E}`, {
27781
+ const O = new Be(`__SpreadsheetTransformerOutline___${E}`, {
27772
27782
  zIndex: E - 1,
27773
27783
  evented: !1,
27774
27784
  strokeWidth: m,
27775
27785
  stroke: _,
27776
27786
  ...this._getOutlinePosition(o, a, v, m)
27777
27787
  });
27778
- S.push(A);
27788
+ S.push(O);
27779
27789
  }
27780
27790
  if (c && !l) {
27781
- const { left: A, top: R } = this._getRotateAnchorPosition(
27791
+ const { left: O, top: R } = this._getRotateAnchorPosition(
27782
27792
  "__SpreadsheetTransformerRotateLine__",
27783
27793
  a,
27784
27794
  o,
27785
27795
  e
27786
- ), B = new Be(`__SpreadsheetTransformerRotateLine___${E}`, {
27796
+ ), I = new Be(`__SpreadsheetTransformerRotateLine___${E}`, {
27787
27797
  zIndex: E - 1,
27788
27798
  evented: !1,
27789
- left: A,
27799
+ left: O,
27790
27800
  top: R,
27791
27801
  height: d,
27792
27802
  width: 1,
27793
27803
  strokeWidth: m,
27794
27804
  stroke: _
27795
- }), { left: M, top: $ } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", a, o, e), I = this._getRotateAnchorCursor(
27805
+ }), { left: M, top: $ } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", a, o, e), A = this._getRotateAnchorCursor(
27796
27806
  "__SpreadsheetTransformerRotate__"
27797
27807
  /* ROTATE */
27798
- ), O = new Be(`__SpreadsheetTransformerRotate___${E}`, {
27808
+ ), B = new Be(`__SpreadsheetTransformerRotate___${E}`, {
27799
27809
  zIndex: E - 1,
27800
27810
  left: M,
27801
27811
  top: $,
@@ -27805,18 +27815,18 @@ class UE extends k1 {
27805
27815
  strokeWidth: m * 2,
27806
27816
  stroke: _
27807
27817
  });
27808
- this._attachEventToRotate(O, e), this._attachHover(O, I, le.DEFAULT), S.push(B, O);
27818
+ this._attachEventToRotate(B, e), this._attachHover(B, A, le.DEFAULT), S.push(I, B);
27809
27819
  }
27810
27820
  if (c)
27811
- for (let A = 0, R = y.length; A < R; A++) {
27812
- if (y[A] !== 1)
27821
+ for (let O = 0, R = y.length; O < R; O++) {
27822
+ if (y[O] !== 1)
27813
27823
  continue;
27814
- const M = PE[A];
27824
+ const M = PE[O];
27815
27825
  let $;
27816
27826
  l ? $ = this._createCopperResizeAnchor(M, e, E) : $ = this._createResizeAnchor(M, e, E), this._attachEventToAnchor($, M, e), S.push($);
27817
27827
  }
27818
- const w = new li(`__SpreadsheetTransformer___${F}`, ...S);
27819
- return w.zIndex = E, w.evented = !1, w.openSelfSizeMode(), w.transformByState({ left: i, top: s, angle: u, width: o, height: a }), this.getScene().addObject(w, k), l ? this._copperControl = w : (this._transformerControlMap.has(F) && this._transformerControlMap.get(F).dispose(), this._transformerControlMap.set(F, w), this.onCreateControlObservable.notifyObservers(w)), w;
27828
+ const x = new li(`__SpreadsheetTransformer___${F}`, ...S);
27829
+ return x.zIndex = E, x.evented = !1, x.openSelfSizeMode(), x.transformByState({ left: i, top: s, angle: u, width: o, height: a }), this.getScene().addObject(x, k), l ? this._copperControl = x : (this._transformerControlMap.has(F) && this._transformerControlMap.get(F).dispose(), this._transformerControlMap.set(F, x), this.onCreateControlObservable.notifyObservers(x)), x;
27820
27830
  }
27821
27831
  _getTopScene() {
27822
27832
  var n;
@@ -28015,22 +28025,22 @@ let u0 = a1;
28015
28025
  class $E extends k1 {
28016
28026
  constructor(e) {
28017
28027
  super();
28018
- g(this, "onTransformChangeObservable", new ee());
28019
- g(this, "onFileLoadedObservable", new ee());
28020
- g(this, "onPointerDownObserver", new ee());
28021
- g(this, "onPointerMoveObserver", new ee());
28022
- g(this, "onPointerUpObserver", new ee());
28023
- g(this, "onPointerEnterObserver", new ee());
28024
- g(this, "onPointerLeaveObserver", new ee());
28025
- g(this, "onDragEnterObserver", new ee());
28026
- g(this, "onDragOverObserver", new ee());
28027
- g(this, "onDragLeaveObserver", new ee());
28028
- g(this, "onDropObserver", new ee());
28029
- g(this, "onDblclickObserver", new ee());
28030
- g(this, "onTripleClickObserver", new ee());
28031
- g(this, "onMouseWheelObserver", new ee());
28032
- g(this, "onKeyDownObservable", new ee());
28033
- g(this, "onKeyUpObservable", new ee());
28028
+ g(this, "onTransformChangeObservable", new Q());
28029
+ g(this, "onFileLoadedObservable", new Q());
28030
+ g(this, "onPointerDownObserver", new Q());
28031
+ g(this, "onPointerMoveObserver", new Q());
28032
+ g(this, "onPointerUpObserver", new Q());
28033
+ g(this, "onPointerEnterObserver", new Q());
28034
+ g(this, "onPointerLeaveObserver", new Q());
28035
+ g(this, "onDragEnterObserver", new Q());
28036
+ g(this, "onDragOverObserver", new Q());
28037
+ g(this, "onDragLeaveObserver", new Q());
28038
+ g(this, "onDropObserver", new Q());
28039
+ g(this, "onDblclickObserver", new Q());
28040
+ g(this, "onTripleClickObserver", new Q());
28041
+ g(this, "onMouseWheelObserver", new Q());
28042
+ g(this, "onKeyDownObservable", new Q());
28043
+ g(this, "onKeyUpObservable", new Q());
28034
28044
  g(this, "debounceParentTimeout", -1);
28035
28045
  g(this, "_sceneKey", "");
28036
28046
  g(this, "_width", 100);
@@ -28750,9 +28760,7 @@ let l0 = class extends k1 {
28750
28760
  return this._defaultEngine || (this._defaultEngine = new o0()), this._defaultEngine;
28751
28761
  }
28752
28762
  dispose() {
28753
- super.dispose(), this._renderMap.forEach((t) => {
28754
- this._disposeItem(t);
28755
- }), this._renderControllers.clear(), this._renderMap.clear(), this._currentRender$.complete();
28763
+ super.dispose(), this._renderMap.forEach((t) => this._disposeItem(t)), this._renderControllers.clear(), this._renderMap.clear(), this._currentRender$.complete();
28756
28764
  }
28757
28765
  registerRenderController(t, e) {
28758
28766
  this._renderControllers.has(t) || this._renderControllers.set(t, /* @__PURE__ */ new Set());
@@ -28766,15 +28774,17 @@ let l0 = class extends k1 {
28766
28774
  var e;
28767
28775
  return Array.from((e = this._renderControllers.get(t)) != null ? e : []);
28768
28776
  }
28769
- createRenderWithEngine(t, e) {
28770
- return this._createRender(t, e, !1);
28771
- }
28772
28777
  create(t) {
28773
28778
  this._createRender$.next(t);
28774
28779
  }
28775
28780
  createRender(t) {
28776
28781
  return this._createRender(t, new o0());
28777
28782
  }
28783
+ withCurrentTypeOfUnit(t, e) {
28784
+ var i;
28785
+ const n = this._univerInstanceService.getCurrentUnitForType(t);
28786
+ return n ? (i = this.getRenderById(n.getUnitId())) == null ? void 0 : i.with(e) : null;
28787
+ }
28778
28788
  _createRender(t, e, n = !0) {
28779
28789
  const i = this.getRenderById(t);
28780
28790
  let s = !0;
@@ -28807,6 +28817,9 @@ let l0 = class extends k1 {
28807
28817
  };
28808
28818
  return this._addRenderUnit(t, c), c;
28809
28819
  }
28820
+ addRender(t, e) {
28821
+ this._addRenderUnit(t, e);
28822
+ }
28810
28823
  _addRenderUnit(t, e) {
28811
28824
  this._renderMap.set(t, e);
28812
28825
  }
@@ -28852,7 +28865,7 @@ var ZE = Object.defineProperty, JE = Object.getOwnPropertyDescriptor, QE = (r, t
28852
28865
  (a = r[s]) && (i = (n ? a(t, e, i) : a(i)) || i);
28853
28866
  return n && i && ZE(t, e, i), i;
28854
28867
  }, ek = (r, t) => (e, n) => t(e, n, r);
28855
- const tk = f0("univer.render-engine"), nk = "render-engine";
28868
+ const tk = f0("univer.render-engine"), nk = "RENDER_ENGINE_PLUGIN";
28856
28869
  var Rn;
28857
28870
  let hi = (Rn = class extends G6 {
28858
28871
  constructor(r, t) {
@@ -29060,12 +29073,12 @@ class vS extends Tt {
29060
29073
  const { width: n, height: i, left: s, top: a, angle: o } = this, { width: u = 0, height: l = 0, left: c = 0, top: d = 0, angle: h } = e.preValue, { left: f = 0, top: p = 0, right: _ = 0, bottom: m = 0 } = this.srcRect;
29061
29074
  let v = f, y = p, F = _, E = m, k = !1;
29062
29075
  if (u !== 0 && u !== n) {
29063
- const S = f / u, w = _ / u;
29064
- v = n * S, F = n * w, k = !0;
29076
+ const S = f / u, x = _ / u;
29077
+ v = n * S, F = n * x, k = !0;
29065
29078
  }
29066
29079
  if (l !== 0 && l !== i) {
29067
- const S = p / l, w = m / l;
29068
- y = i * S, E = i * w, k = !0;
29080
+ const S = p / l, x = m / l;
29081
+ y = i * S, E = i * x, k = !0;
29069
29082
  }
29070
29083
  k && this.setSrcRect({
29071
29084
  left: v,
@@ -29551,11 +29564,11 @@ class yS {
29551
29564
  g(this, "preViewportScrollY", 0);
29552
29565
  g(this, "_deltaViewportScrollX", 0);
29553
29566
  g(this, "_deltaViewportScrollY", 0);
29554
- g(this, "onMouseWheelObserver", new ee());
29555
- g(this, "onScrollAfterObserver", new ee());
29556
- g(this, "onScrollBeforeObserver", new ee());
29557
- g(this, "onScrollStopObserver", new ee());
29558
- g(this, "onScrollByBarObserver", new ee());
29567
+ g(this, "onMouseWheelObserver", new Q());
29568
+ g(this, "onScrollAfterObserver", new Q());
29569
+ g(this, "onScrollBeforeObserver", new Q());
29570
+ g(this, "onScrollStopObserver", new Q());
29571
+ g(this, "onScrollByBarObserver", new Q());
29559
29572
  g(this, "_viewportKey", "");
29560
29573
  /**
29561
29574
  * viewport top origin value in logic, scale does not affect it.
@@ -30324,36 +30337,36 @@ class gi {
30324
30337
  return this._selectionIterator(a, o, (u, l, c, d, h, f) => {
30325
30338
  const { lineHeight: p, marginTop: _, asc: m } = f, { glyphGroup: v, st: y } = h, { x: F, y: E } = this._liquid;
30326
30339
  let k, S;
30327
- const w = v[u], x = v[l], A = v[u - 1], R = (w == null ? void 0 : w.left) || 0, B = (w == null ? void 0 : w.width) || 0, M = (x == null ? void 0 : x.left) || 0, $ = (x == null ? void 0 : x.width) || 0, I = (w == null ? void 0 : w.glyphType) === Ge.LIST, { startOffset: O, endOffset: L } = uk(v, u, l, y), N = a.glyph === u && c ? a.isBack : !0, P = o.glyph === l && d ? o.isBack : !1, G = a === o, K = N && A != null ? A : w;
30340
+ const x = v[u], w = v[l], O = v[u - 1], R = (x == null ? void 0 : x.left) || 0, I = (x == null ? void 0 : x.width) || 0, M = (w == null ? void 0 : w.left) || 0, $ = (w == null ? void 0 : w.width) || 0, A = (x == null ? void 0 : x.glyphType) === Ge.LIST, { startOffset: B, endOffset: L } = uk(v, u, l, y), N = a.glyph === u && c ? a.isBack : !0, P = o.glyph === l && d ? o.isBack : !1, G = a === o, K = N && O != null ? O : x;
30328
30341
  if (u === 0 && l === v.length - 1)
30329
30342
  k = {
30330
- startX: F + R + (I ? B : 0),
30343
+ startX: F + R + (A ? I : 0),
30331
30344
  startY: E,
30332
30345
  endX: F + M + $,
30333
30346
  endY: E + p
30334
30347
  }, S = {
30335
- startX: F + R + (I ? B : 0),
30348
+ startX: F + R + (A ? I : 0),
30336
30349
  startY: E + _ + m - K.bBox.ba,
30337
30350
  endX: F + M + $,
30338
30351
  endY: E + _ + m + K.bBox.bd
30339
30352
  };
30340
30353
  else {
30341
- const j = N && !I;
30354
+ const j = N && !A;
30342
30355
  k = {
30343
- startX: F + R + (j ? 0 : B),
30356
+ startX: F + R + (j ? 0 : I),
30344
30357
  startY: E,
30345
30358
  endX: F + M + (P ? 0 : $),
30346
30359
  endY: E + p
30347
30360
  }, S = {
30348
- startX: F + R + (j ? 0 : B),
30361
+ startX: F + R + (j ? 0 : I),
30349
30362
  startY: E + _ + m - K.bBox.ba,
30350
30363
  endX: F + M + (P ? 0 : $),
30351
30364
  endY: E + _ + m + K.bBox.bd
30352
30365
  };
30353
30366
  }
30354
30367
  n.push(this._pushToPoints(k)), i.push(this._pushToPoints(S)), s.push({
30355
- startOffset: N ? O : O + w.count,
30356
- endOffset: P ? L : L + x.count,
30368
+ startOffset: N ? B : B + x.count,
30369
+ endOffset: P ? L : L + w.count,
30357
30370
  collapsed: G
30358
30371
  });
30359
30372
  }), {
@@ -30467,24 +30480,24 @@ class gi {
30467
30480
  );
30468
30481
  this._liquid.translateSection(y);
30469
30482
  for (let S = E; S <= k; S++) {
30470
- const w = F[S], x = w.lines, { start_next: A, end_next: R } = this._getSelectionRuler(
30483
+ const x = F[S], w = x.lines, { start_next: O, end_next: R } = this._getSelectionRuler(
30471
30484
  mt.column,
30472
30485
  t,
30473
30486
  e,
30474
- x.length - 1,
30487
+ w.length - 1,
30475
30488
  S
30476
30489
  );
30477
- this._liquid.translateColumn(w);
30478
- for (let B = A; B <= R; B++) {
30479
- const M = x[B], { divides: $ } = M, { start_next: I, end_next: O } = this._getSelectionRuler(
30490
+ this._liquid.translateColumn(x);
30491
+ for (let I = O; I <= R; I++) {
30492
+ const M = w[I], { divides: $ } = M, { start_next: A, end_next: B } = this._getSelectionRuler(
30480
30493
  mt.line,
30481
30494
  t,
30482
30495
  e,
30483
30496
  $.length - 1,
30484
- B
30497
+ I
30485
30498
  );
30486
30499
  this._liquid.translateSave(), this._liquid.translateLine(M);
30487
- for (let L = I; L <= O; L++) {
30500
+ for (let L = A; L <= B; L++) {
30488
30501
  const N = $[L];
30489
30502
  this._liquid.translateSave(), this._liquid.translateDivide(N);
30490
30503
  const { glyphGroup: P } = N, { start_next: G, end_next: K } = this._getSelectionRuler(
@@ -30494,8 +30507,8 @@ class gi {
30494
30507
  P.length - 1,
30495
30508
  L
30496
30509
  );
30497
- let j = !1, Q = !1;
30498
- h === o && v === _ && S === E && B === A && L === I && (j = !0), h === u && v === m && S === k && B === R && L === O && (Q = !0), n && n(G, K, j, Q, N, M, w, y, f), this._liquid.translateRestore();
30510
+ let j = !1, ne = !1;
30511
+ h === o && v === _ && S === E && I === O && L === A && (j = !0), h === u && v === m && S === k && I === R && L === B && (ne = !0), n && n(G, K, j, ne, N, M, x, y, f), this._liquid.translateRestore();
30499
30512
  }
30500
30513
  this._liquid.translateRestore();
30501
30514
  }