@univerjs/core 0.2.8 → 0.2.10

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.
Files changed (71) hide show
  1. package/lib/cjs/index.js +7 -9
  2. package/lib/es/index.js +220 -688
  3. package/lib/types/common/equal.d.ts +15 -3
  4. package/lib/types/common/interceptor.d.ts +1 -1
  5. package/lib/types/{types/interfaces/i-extra-model-data.d.ts → common/mixin.d.ts} +9 -11
  6. package/lib/types/common/unit.d.ts +2 -1
  7. package/lib/types/docs/data-model/document-data-model.d.ts +2 -3
  8. package/lib/types/index.d.ts +5 -9
  9. package/lib/types/services/authz-io/type.d.ts +2 -2
  10. package/lib/types/services/command/command.service.d.ts +111 -28
  11. package/lib/types/services/lifecycle/lifecycle.d.ts +5 -0
  12. package/lib/types/services/permission/type.d.ts +2 -2
  13. package/lib/types/services/resource-loader/resource-loader.service.d.ts +3 -5
  14. package/lib/types/services/resource-loader/type.d.ts +4 -6
  15. package/lib/types/services/resource-manager/resource-manager.service.d.ts +4 -4
  16. package/lib/types/services/resource-manager/type.d.ts +9 -5
  17. package/lib/types/services/undoredo/undoredo.service.d.ts +1 -1
  18. package/lib/types/shared/check-if-move.d.ts +1 -1
  19. package/lib/types/shared/color/color.d.ts +1 -1
  20. package/lib/types/shared/common.d.ts +2 -4
  21. package/lib/types/shared/numfmt.d.ts +2 -1
  22. package/lib/types/shared/object-matrix-query.d.ts +1 -1
  23. package/lib/types/shared/object-matrix.d.ts +1 -1
  24. package/lib/types/shared/range.d.ts +1 -1
  25. package/lib/types/shared/rectangle.d.ts +1 -1
  26. package/lib/types/shared/tools.d.ts +1 -2
  27. package/lib/types/shared/types/numfmt.type.d.ts +227 -0
  28. package/lib/types/shared/types.d.ts +7 -13
  29. package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +1 -1
  30. package/lib/types/sheets/column-manager.d.ts +2 -2
  31. package/lib/types/sheets/empty-snapshot.d.ts +1 -1
  32. package/lib/types/sheets/range.d.ts +2 -1
  33. package/lib/types/sheets/row-manager.d.ts +1 -1
  34. package/lib/types/sheets/sheet-snapshot-utils.d.ts +1 -1
  35. package/lib/types/sheets/styles.d.ts +2 -1
  36. package/lib/types/sheets/typedef.d.ts +451 -0
  37. package/lib/types/sheets/util.d.ts +3 -0
  38. package/lib/types/sheets/view-model.d.ts +2 -2
  39. package/lib/types/sheets/workbook.d.ts +13 -4
  40. package/lib/types/sheets/worksheet.d.ts +11 -1
  41. package/lib/types/slides/slide-model.d.ts +0 -1
  42. package/lib/types/types/const/const.d.ts +4 -0
  43. package/lib/types/types/enum/locale-type.d.ts +3 -1
  44. package/lib/types/types/enum/text-style.d.ts +1 -1
  45. package/lib/types/types/interfaces/i-cell-custom-render.d.ts +2 -2
  46. package/lib/types/types/interfaces/i-data-validation.d.ts +1 -1
  47. package/lib/types/types/interfaces/i-document-data.d.ts +2 -4
  48. package/lib/types/types/interfaces/i-slide-data.d.ts +5 -3
  49. package/lib/types/types/interfaces/index.d.ts +0 -11
  50. package/lib/types/univer.d.ts +14 -2
  51. package/lib/umd/index.js +7 -9
  52. package/package.json +5 -5
  53. package/lib/types/common/type-util.d.ts +0 -16
  54. package/lib/types/common/type-utils.d.ts +0 -16
  55. package/lib/types/services/snapshot/__tests__/snapshot-mock.d.ts +0 -22
  56. package/lib/types/services/snapshot/snapshot-server.service.d.ts +0 -42
  57. package/lib/types/services/snapshot/snapshot-transform.d.ts +0 -31
  58. package/lib/types/services/snapshot/snapshot-utils.d.ts +0 -19
  59. package/lib/types/types/interfaces/i-cell-data.d.ts +0 -66
  60. package/lib/types/types/interfaces/i-column-data.d.ts +0 -14
  61. package/lib/types/types/interfaces/i-freeze.d.ts +0 -21
  62. package/lib/types/types/interfaces/i-range.d.ts +0 -208
  63. package/lib/types/types/interfaces/i-row-data.d.ts +0 -26
  64. package/lib/types/types/interfaces/i-selection-data.d.ts +0 -58
  65. package/lib/types/types/interfaces/i-service-data.d.ts +0 -17
  66. package/lib/types/types/interfaces/i-univer-data.d.ts +0 -13
  67. package/lib/types/types/interfaces/i-workbook-data.d.ts +0 -39
  68. package/lib/types/types/interfaces/i-worksheet-data.d.ts +0 -54
  69. package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +0 -17
  70. /package/lib/types/services/{snapshot/__tests__/snapshot-transform.spec.d.ts → __tests__/resources.spec.d.ts} +0 -0
  71. /package/lib/types/{types/interfaces/__tests__/i-cell-data.spec.d.ts → sheets/__tests__/cell-data.spec.d.ts} +0 -0
package/lib/es/index.js CHANGED
@@ -728,13 +728,13 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
728
728
  if (obj != null)
729
729
  return "r" in obj ? obj : "l" in obj ? hsl2Rgb(obj) : hsv2Rgb(obj);
730
730
  }, "toRgbColor"), hue2Rgb = /* @__PURE__ */ __name((p, q, t) => (t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? p + (q - p) * 6 * t : t < 1 / 2 ? q : t < 2 / 3 ? p + (q - p) * (2 / 3 - t) * 6 : p), "hue2Rgb"), hsl2Rgb = /* @__PURE__ */ __name((color) => {
731
- let { h, s, l: l2 } = color;
732
- h /= 360, s /= 100, l2 /= 100;
731
+ let { h, s, l } = color;
732
+ h /= 360, s /= 100, l /= 100;
733
733
  let r = 0, g = 0, b = 0;
734
734
  if (s === 0)
735
- r = g = b = l2;
735
+ r = g = b = l;
736
736
  else {
737
- const q = l2 < 0.5 ? l2 * (1 + s) : l2 + s - l2 * s, p = 2 * l2 - q;
737
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s, p = 2 * l - q;
738
738
  r = hue2Rgb(p, q, h + 1 / 3), g = hue2Rgb(p, q, h), b = hue2Rgb(p, q, h - 1 / 3);
739
739
  }
740
740
  const IRgbColor = {
@@ -755,13 +755,13 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
755
755
  }, "hsv2Rgb"), rgb2Hsl = /* @__PURE__ */ __name((color) => {
756
756
  let { r, g, b } = color;
757
757
  r /= 255, g /= 255, b /= 255;
758
- const max = Math.max(r, g, b), min = Math.min(r, g, b), l2 = (max + min) / 2;
758
+ const max = Math.max(r, g, b), min = Math.min(r, g, b), l = (max + min) / 2;
759
759
  let h, s;
760
760
  if (max === min)
761
761
  h = s = 0;
762
762
  else {
763
763
  const d = max - min;
764
- switch (s = l2 > 0.5 ? d / (2 - max - min) : d / (max + min), max) {
764
+ switch (s = l > 0.5 ? d / (2 - max - min) : d / (max + min), max) {
765
765
  case r:
766
766
  h = (g - b) / d + (g < b ? 6 : 0);
767
767
  break;
@@ -777,7 +777,7 @@ const pad2 = /* @__PURE__ */ __name((v) => v.length === 1 ? `0${v}` : v, "pad2")
777
777
  const hslColor = {
778
778
  h: Math.round(h * 360),
779
779
  s: Math.round(s * 100),
780
- l: Math.round(l2 * 100)
780
+ l: Math.round(l * 100)
781
781
  };
782
782
  return color.a !== void 0 && (hslColor.a = color.a), hslColor;
783
783
  }, "rgb2Hsl"), rgb2Hsv = /* @__PURE__ */ __name((color) => {
@@ -846,7 +846,7 @@ function isCellV(cell) {
846
846
  return cell != null && (typeof cell == "string" || typeof cell == "number" || typeof cell == "boolean");
847
847
  }
848
848
  __name(isCellV, "isCellV");
849
- var DocStyleType = /* @__PURE__ */ ((DocStyleType2) => (DocStyleType2[DocStyleType2.character = 0] = "character", DocStyleType2[DocStyleType2.paragraph = 1] = "paragraph", DocStyleType2[DocStyleType2.table = 2] = "table", DocStyleType2[DocStyleType2.numbering = 3] = "numbering", DocStyleType2))(DocStyleType || {}), FollowNumberWithType = /* @__PURE__ */ ((FollowNumberWithType2) => (FollowNumberWithType2[FollowNumberWithType2.TAB = 0] = "TAB", FollowNumberWithType2[FollowNumberWithType2.SPACE = 1] = "SPACE", FollowNumberWithType2[FollowNumberWithType2.NOTHING = 2] = "NOTHING", FollowNumberWithType2))(FollowNumberWithType || {}), GlyphType = /* @__PURE__ */ ((GlyphType2) => (GlyphType2[GlyphType2.BULLET = 0] = "BULLET", GlyphType2[GlyphType2.NONE = 1] = "NONE", GlyphType2[GlyphType2.DECIMAL = 2] = "DECIMAL", GlyphType2[GlyphType2.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", GlyphType2[GlyphType2.UPPER_LETTER = 4] = "UPPER_LETTER", GlyphType2[GlyphType2.LOWER_LETTER = 5] = "LOWER_LETTER", GlyphType2[GlyphType2.UPPER_ROMAN = 6] = "UPPER_ROMAN", GlyphType2[GlyphType2.LOWER_ROMAN = 7] = "LOWER_ROMAN", GlyphType2[GlyphType2.ORDINAL = 8] = "ORDINAL", GlyphType2[GlyphType2.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", GlyphType2[GlyphType2.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", GlyphType2[GlyphType2.HEX = 11] = "HEX", GlyphType2[GlyphType2.CHICAGO = 12] = "CHICAGO", GlyphType2[GlyphType2.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", GlyphType2[GlyphType2.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", GlyphType2[GlyphType2.AIUEO = 15] = "AIUEO", GlyphType2[GlyphType2.IROHA = 16] = "IROHA", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", GlyphType2[GlyphType2.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", GlyphType2[GlyphType2.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", GlyphType2[GlyphType2.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", GlyphType2[GlyphType2.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", GlyphType2[GlyphType2.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", GlyphType2[GlyphType2.GANADA = 25] = "GANADA", GlyphType2[GlyphType2.CHOSUNG = 26] = "CHOSUNG", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", GlyphType2[GlyphType2.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", GlyphType2[GlyphType2.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", GlyphType2[GlyphType2.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", GlyphType2[GlyphType2.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", GlyphType2[GlyphType2.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", GlyphType2[GlyphType2.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", GlyphType2[GlyphType2.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", GlyphType2[GlyphType2.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", GlyphType2[GlyphType2.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", GlyphType2[GlyphType2.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", GlyphType2[GlyphType2.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", GlyphType2[GlyphType2.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", GlyphType2[GlyphType2.HEBREW1 = 49] = "HEBREW1", GlyphType2[GlyphType2.HEBREW2 = 50] = "HEBREW2", GlyphType2[GlyphType2.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", GlyphType2[GlyphType2.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", GlyphType2[GlyphType2.HINDI_VOWELS = 53] = "HINDI_VOWELS", GlyphType2[GlyphType2.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", GlyphType2[GlyphType2.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", GlyphType2[GlyphType2.HINDI_COUNTING = 56] = "HINDI_COUNTING", GlyphType2[GlyphType2.THAI_LETTERS = 57] = "THAI_LETTERS", GlyphType2[GlyphType2.THAI_NUMBERS = 58] = "THAI_NUMBERS", GlyphType2[GlyphType2.THAI_COUNTING = 59] = "THAI_COUNTING", GlyphType2[GlyphType2.CUSTOM = 60] = "CUSTOM", GlyphType2))(GlyphType || {}), BulletAlignment = /* @__PURE__ */ ((BulletAlignment2) => (BulletAlignment2[BulletAlignment2.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", BulletAlignment2[BulletAlignment2.START = 1] = "START", BulletAlignment2[BulletAlignment2.CENTER = 2] = "CENTER", BulletAlignment2[BulletAlignment2.END = 3] = "END", BulletAlignment2[BulletAlignment2.BOTH = 4] = "BOTH", BulletAlignment2))(BulletAlignment || {}), CustomRangeType = /* @__PURE__ */ ((CustomRangeType2) => (CustomRangeType2[CustomRangeType2.HYPERLINK = 0] = "HYPERLINK", CustomRangeType2[CustomRangeType2.FIELD = 1] = "FIELD", CustomRangeType2[CustomRangeType2.SDT = 2] = "SDT", CustomRangeType2[CustomRangeType2.BOOKMARK = 3] = "BOOKMARK", CustomRangeType2[CustomRangeType2.COMMENT = 4] = "COMMENT", CustomRangeType2[CustomRangeType2.CUSTOM = 5] = "CUSTOM", CustomRangeType2[CustomRangeType2.MENTION = 6] = "MENTION", CustomRangeType2[CustomRangeType2.UNI_FORMULA = 7] = "UNI_FORMULA", CustomRangeType2))(CustomRangeType || {}), CustomDecorationType = /* @__PURE__ */ ((CustomDecorationType2) => (CustomDecorationType2[CustomDecorationType2.COMMENT = 0] = "COMMENT", CustomDecorationType2))(CustomDecorationType || {}), BlockType = /* @__PURE__ */ ((BlockType2) => (BlockType2[BlockType2.DRAWING = 0] = "DRAWING", BlockType2[BlockType2.CUSTOM = 1] = "CUSTOM", BlockType2))(BlockType || {}), DocumentFlavor = /* @__PURE__ */ ((DocumentFlavor2) => (DocumentFlavor2[DocumentFlavor2.TRADITIONAL = 0] = "TRADITIONAL", DocumentFlavor2[DocumentFlavor2.MODERN = 1] = "MODERN", DocumentFlavor2))(DocumentFlavor || {}), GridType = /* @__PURE__ */ ((GridType2) => (GridType2[GridType2.DEFAULT = 0] = "DEFAULT", GridType2[GridType2.LINES = 1] = "LINES", GridType2[GridType2.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", GridType2[GridType2.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", GridType2))(GridType || {}), SectionType = /* @__PURE__ */ ((SectionType2) => (SectionType2[SectionType2.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", SectionType2[SectionType2.CONTINUOUS = 1] = "CONTINUOUS", SectionType2[SectionType2.NEXT_PAGE = 2] = "NEXT_PAGE", SectionType2[SectionType2.EVEN_PAGE = 3] = "EVEN_PAGE", SectionType2[SectionType2.ODD_PAGE = 4] = "ODD_PAGE", SectionType2))(SectionType || {}), ColumnSeparatorType = /* @__PURE__ */ ((ColumnSeparatorType2) => (ColumnSeparatorType2[ColumnSeparatorType2.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", ColumnSeparatorType2[ColumnSeparatorType2.NONE = 1] = "NONE", ColumnSeparatorType2[ColumnSeparatorType2.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", ColumnSeparatorType2))(ColumnSeparatorType || {}), TextDirectionType = /* @__PURE__ */ ((TextDirectionType2) => (TextDirectionType2[TextDirectionType2.NORMAL = 0] = "NORMAL", TextDirectionType2[TextDirectionType2.TBRL = 1] = "TBRL", TextDirectionType2[TextDirectionType2.LRTBV = 2] = "LRTBV", TextDirectionType2))(TextDirectionType || {}), ParagraphElementType = /* @__PURE__ */ ((ParagraphElementType2) => (ParagraphElementType2[ParagraphElementType2.TEXT_RUN = 0] = "TEXT_RUN", ParagraphElementType2[ParagraphElementType2.AUTO_TEXT = 1] = "AUTO_TEXT", ParagraphElementType2[ParagraphElementType2.PAGE_BREAK = 2] = "PAGE_BREAK", ParagraphElementType2[ParagraphElementType2.COLUMN_BREAK = 3] = "COLUMN_BREAK", ParagraphElementType2[ParagraphElementType2.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", ParagraphElementType2[ParagraphElementType2.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", ParagraphElementType2[ParagraphElementType2.EQUATION = 6] = "EQUATION", ParagraphElementType2[ParagraphElementType2.DRAWING = 7] = "DRAWING", ParagraphElementType2[ParagraphElementType2.PERSON = 8] = "PERSON", ParagraphElementType2[ParagraphElementType2.RICH_LINK = 9] = "RICH_LINK", ParagraphElementType2))(ParagraphElementType || {}), WrapTextType = /* @__PURE__ */ ((WrapTextType2) => (WrapTextType2[WrapTextType2.BOTH_SIDES = 0] = "BOTH_SIDES", WrapTextType2[WrapTextType2.LEFT = 1] = "LEFT", WrapTextType2[WrapTextType2.RIGHT = 2] = "RIGHT", WrapTextType2[WrapTextType2.LARGEST = 3] = "LARGEST", WrapTextType2))(WrapTextType || {}), PositionedObjectLayoutType = /* @__PURE__ */ ((PositionedObjectLayoutType2) => (PositionedObjectLayoutType2[PositionedObjectLayoutType2.INLINE = 0] = "INLINE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_NONE = 1] = "WRAP_NONE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_POLYGON = 2] = "WRAP_POLYGON", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_SQUARE = 3] = "WRAP_SQUARE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_THROUGH = 4] = "WRAP_THROUGH", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TIGHT = 5] = "WRAP_TIGHT", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", PositionedObjectLayoutType2))(PositionedObjectLayoutType || {}), NamedStyleType = /* @__PURE__ */ ((NamedStyleType2) => (NamedStyleType2[NamedStyleType2.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", NamedStyleType2[NamedStyleType2.NORMAL_TEXT = 1] = "NORMAL_TEXT", NamedStyleType2[NamedStyleType2.TITLE = 2] = "TITLE", NamedStyleType2[NamedStyleType2.SUBTITLE = 3] = "SUBTITLE", NamedStyleType2[NamedStyleType2.HEADING_1 = 4] = "HEADING_1", NamedStyleType2[NamedStyleType2.HEADING_2 = 5] = "HEADING_2", NamedStyleType2[NamedStyleType2.HEADING_3 = 6] = "HEADING_3", NamedStyleType2[NamedStyleType2.HEADING_4 = 7] = "HEADING_4", NamedStyleType2[NamedStyleType2.HEADING_5 = 8] = "HEADING_5", NamedStyleType2[NamedStyleType2.HEADING_6 = 9] = "HEADING_6", NamedStyleType2))(NamedStyleType || {}), SpacingRule = /* @__PURE__ */ ((SpacingRule2) => (SpacingRule2[SpacingRule2.AUTO = 0] = "AUTO", SpacingRule2[SpacingRule2.AT_LEAST = 1] = "AT_LEAST", SpacingRule2[SpacingRule2.EXACT = 2] = "EXACT", SpacingRule2))(SpacingRule || {}), DashStyleType = /* @__PURE__ */ ((DashStyleType2) => (DashStyleType2[DashStyleType2.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", DashStyleType2[DashStyleType2.SOLID = 1] = "SOLID", DashStyleType2[DashStyleType2.DOT = 2] = "DOT", DashStyleType2[DashStyleType2.DASH = 3] = "DASH", DashStyleType2))(DashStyleType || {}), TabStopAlignment = /* @__PURE__ */ ((TabStopAlignment2) => (TabStopAlignment2[TabStopAlignment2.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", TabStopAlignment2[TabStopAlignment2.START = 1] = "START", TabStopAlignment2[TabStopAlignment2.CENTER = 2] = "CENTER", TabStopAlignment2[TabStopAlignment2.END = 3] = "END", TabStopAlignment2))(TabStopAlignment || {}), TableSizeType = /* @__PURE__ */ ((TableSizeType2) => (TableSizeType2[TableSizeType2.UNSPECIFIED = 0] = "UNSPECIFIED", TableSizeType2[TableSizeType2.SPECIFIED = 1] = "SPECIFIED", TableSizeType2))(TableSizeType || {}), TableAlignmentType = /* @__PURE__ */ ((TableAlignmentType2) => (TableAlignmentType2[TableAlignmentType2.START = 0] = "START", TableAlignmentType2[TableAlignmentType2.CENTER = 1] = "CENTER", TableAlignmentType2[TableAlignmentType2.END = 2] = "END", TableAlignmentType2))(TableAlignmentType || {}), TableLayoutType = /* @__PURE__ */ ((TableLayoutType2) => (TableLayoutType2[TableLayoutType2.AUTO_FIT = 0] = "AUTO_FIT", TableLayoutType2[TableLayoutType2.FIXED = 1] = "FIXED", TableLayoutType2))(TableLayoutType || {}), TableTextWrapType = /* @__PURE__ */ ((TableTextWrapType2) => (TableTextWrapType2[TableTextWrapType2.NONE = 0] = "NONE", TableTextWrapType2[TableTextWrapType2.WRAP = 1] = "WRAP", TableTextWrapType2))(TableTextWrapType || {}), TableCellHeightRule = /* @__PURE__ */ ((TableCellHeightRule2) => (TableCellHeightRule2[TableCellHeightRule2.AUTO = 0] = "AUTO", TableCellHeightRule2[TableCellHeightRule2.AT_LEAST = 1] = "AT_LEAST", TableCellHeightRule2[TableCellHeightRule2.EXACT = 2] = "EXACT", TableCellHeightRule2))(TableCellHeightRule || {}), VerticalAlignmentType = /* @__PURE__ */ ((VerticalAlignmentType2) => (VerticalAlignmentType2[VerticalAlignmentType2.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", VerticalAlignmentType2[VerticalAlignmentType2.BOTH = 1] = "BOTH", VerticalAlignmentType2[VerticalAlignmentType2.TOP = 2] = "TOP", VerticalAlignmentType2[VerticalAlignmentType2.CENTER = 3] = "CENTER", VerticalAlignmentType2[VerticalAlignmentType2.BOTTOM = 4] = "BOTTOM", VerticalAlignmentType2))(VerticalAlignmentType || {}), FontStyleType = /* @__PURE__ */ ((FontStyleType2) => (FontStyleType2.NORMAL = "normal", FontStyleType2.BOLD = "bold", FontStyleType2.ITALIC = "italic", FontStyleType2))(FontStyleType || {}), ObjectRelativeFromH = /* @__PURE__ */ ((ObjectRelativeFromH2) => (ObjectRelativeFromH2[ObjectRelativeFromH2.PAGE = 0] = "PAGE", ObjectRelativeFromH2[ObjectRelativeFromH2.COLUMN = 1] = "COLUMN", ObjectRelativeFromH2[ObjectRelativeFromH2.CHARACTER = 2] = "CHARACTER", ObjectRelativeFromH2[ObjectRelativeFromH2.MARGIN = 3] = "MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.LEFT_MARGIN = 6] = "LEFT_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", ObjectRelativeFromH2))(ObjectRelativeFromH || {}), ObjectRelativeFromV = /* @__PURE__ */ ((ObjectRelativeFromV2) => (ObjectRelativeFromV2[ObjectRelativeFromV2.PAGE = 0] = "PAGE", ObjectRelativeFromV2[ObjectRelativeFromV2.PARAGRAPH = 1] = "PARAGRAPH", ObjectRelativeFromV2[ObjectRelativeFromV2.LINE = 2] = "LINE", ObjectRelativeFromV2[ObjectRelativeFromV2.MARGIN = 3] = "MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.TOP_MARGIN = 4] = "TOP_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", ObjectRelativeFromV2))(ObjectRelativeFromV || {}), NumberUnitType = /* @__PURE__ */ ((NumberUnitType2) => (NumberUnitType2[NumberUnitType2.POINT = 0] = "POINT", NumberUnitType2[NumberUnitType2.LINE = 1] = "LINE", NumberUnitType2[NumberUnitType2.CHARACTER = 2] = "CHARACTER", NumberUnitType2[NumberUnitType2.PIXEL = 3] = "PIXEL", NumberUnitType2[NumberUnitType2.PERCENT = 4] = "PERCENT", NumberUnitType2))(NumberUnitType || {}), AlignTypeH = /* @__PURE__ */ ((AlignTypeH2) => (AlignTypeH2[AlignTypeH2.CENTER = 0] = "CENTER", AlignTypeH2[AlignTypeH2.INSIDE = 1] = "INSIDE", AlignTypeH2[AlignTypeH2.LEFT = 2] = "LEFT", AlignTypeH2[AlignTypeH2.OUTSIDE = 3] = "OUTSIDE", AlignTypeH2[AlignTypeH2.RIGHT = 4] = "RIGHT", AlignTypeH2[AlignTypeH2.BOTH = 5] = "BOTH", AlignTypeH2[AlignTypeH2.DISTRIBUTE = 6] = "DISTRIBUTE", AlignTypeH2))(AlignTypeH || {}), AlignTypeV = /* @__PURE__ */ ((AlignTypeV2) => (AlignTypeV2[AlignTypeV2.BOTTOM = 0] = "BOTTOM", AlignTypeV2[AlignTypeV2.CENTER = 1] = "CENTER", AlignTypeV2[AlignTypeV2.INSIDE = 2] = "INSIDE", AlignTypeV2[AlignTypeV2.OUTSIDE = 3] = "OUTSIDE", AlignTypeV2[AlignTypeV2.TOP = 4] = "TOP", AlignTypeV2))(AlignTypeV || {}), characterSpacingControlType = /* @__PURE__ */ ((characterSpacingControlType2) => (characterSpacingControlType2[characterSpacingControlType2.compressPunctuation = 0] = "compressPunctuation", characterSpacingControlType2[characterSpacingControlType2.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", characterSpacingControlType2[characterSpacingControlType2.doNotCompress = 2] = "doNotCompress", characterSpacingControlType2))(characterSpacingControlType || {}), PageOrientType = /* @__PURE__ */ ((PageOrientType2) => (PageOrientType2[PageOrientType2.PORTRAIT = 0] = "PORTRAIT", PageOrientType2[PageOrientType2.LANDSCAPE = 1] = "LANDSCAPE", PageOrientType2))(PageOrientType || {}), ArrangeTypeEnum = /* @__PURE__ */ ((ArrangeTypeEnum2) => (ArrangeTypeEnum2[ArrangeTypeEnum2.forward = 0] = "forward", ArrangeTypeEnum2[ArrangeTypeEnum2.backward = 1] = "backward", ArrangeTypeEnum2[ArrangeTypeEnum2.front = 2] = "front", ArrangeTypeEnum2[ArrangeTypeEnum2.back = 3] = "back", ArrangeTypeEnum2))(ArrangeTypeEnum || {}), DrawingTypeEnum = /* @__PURE__ */ ((DrawingTypeEnum2) => (DrawingTypeEnum2[DrawingTypeEnum2.UNRECOGNIZED = -1] = "UNRECOGNIZED", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_IMAGE = 0] = "DRAWING_IMAGE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SHAPE = 1] = "DRAWING_SHAPE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_CHART = 2] = "DRAWING_CHART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_TABLE = 3] = "DRAWING_TABLE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SMART_ART = 4] = "DRAWING_SMART_ART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_VIDEO = 5] = "DRAWING_VIDEO", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_GROUP = 6] = "DRAWING_GROUP", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_UNIT = 7] = "DRAWING_UNIT", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_DOM = 8] = "DRAWING_DOM", DrawingTypeEnum2))(DrawingTypeEnum || {}), RANGE_TYPE = /* @__PURE__ */ ((RANGE_TYPE2) => (RANGE_TYPE2[RANGE_TYPE2.NORMAL = 0] = "NORMAL", RANGE_TYPE2[RANGE_TYPE2.ROW = 1] = "ROW", RANGE_TYPE2[RANGE_TYPE2.COLUMN = 2] = "COLUMN", RANGE_TYPE2[RANGE_TYPE2.ALL = 3] = "ALL", RANGE_TYPE2))(RANGE_TYPE || {}), AbsoluteRefType = /* @__PURE__ */ ((AbsoluteRefType2) => (AbsoluteRefType2[AbsoluteRefType2.NONE = 0] = "NONE", AbsoluteRefType2[AbsoluteRefType2.ROW = 1] = "ROW", AbsoluteRefType2[AbsoluteRefType2.COLUMN = 2] = "COLUMN", AbsoluteRefType2[AbsoluteRefType2.ALL = 3] = "ALL", AbsoluteRefType2))(AbsoluteRefType || {});
849
+ var RANGE_TYPE = /* @__PURE__ */ ((RANGE_TYPE2) => (RANGE_TYPE2[RANGE_TYPE2.NORMAL = 0] = "NORMAL", RANGE_TYPE2[RANGE_TYPE2.ROW = 1] = "ROW", RANGE_TYPE2[RANGE_TYPE2.COLUMN = 2] = "COLUMN", RANGE_TYPE2[RANGE_TYPE2.ALL = 3] = "ALL", RANGE_TYPE2))(RANGE_TYPE || {}), AbsoluteRefType = /* @__PURE__ */ ((AbsoluteRefType2) => (AbsoluteRefType2[AbsoluteRefType2.NONE = 0] = "NONE", AbsoluteRefType2[AbsoluteRefType2.ROW = 1] = "ROW", AbsoluteRefType2[AbsoluteRefType2.COLUMN = 2] = "COLUMN", AbsoluteRefType2[AbsoluteRefType2.ALL = 3] = "ALL", AbsoluteRefType2))(AbsoluteRefType || {});
850
850
  function selectionToArray(range) {
851
851
  return [range.startRow, range.startColumn, range.endRow, range.endColumn];
852
852
  }
@@ -892,7 +892,6 @@ function getCellInfoInMergeData(row, column, mergeData) {
892
892
  };
893
893
  }
894
894
  __name(getCellInfoInMergeData, "getCellInfoInMergeData");
895
- var PageType = /* @__PURE__ */ ((PageType2) => (PageType2[PageType2.SLIDE = 0] = "SLIDE", PageType2[PageType2.MASTER = 1] = "MASTER", PageType2[PageType2.LAYOUT = 2] = "LAYOUT", PageType2[PageType2.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", PageType2[PageType2.NOTES_MASTER = 4] = "NOTES_MASTER", PageType2))(PageType || {}), PageElementType = /* @__PURE__ */ ((PageElementType2) => (PageElementType2[PageElementType2.SHAPE = 0] = "SHAPE", PageElementType2[PageElementType2.IMAGE = 1] = "IMAGE", PageElementType2[PageElementType2.TEXT = 2] = "TEXT", PageElementType2[PageElementType2.SPREADSHEET = 3] = "SPREADSHEET", PageElementType2[PageElementType2.DOCUMENT = 4] = "DOCUMENT", PageElementType2[PageElementType2.SLIDE = 5] = "SLIDE", PageElementType2))(PageElementType || {}), RelativeSlideLink = /* @__PURE__ */ ((RelativeSlideLink2) => (RelativeSlideLink2[RelativeSlideLink2.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", RelativeSlideLink2[RelativeSlideLink2.NEXT_SLIDE = 1] = "NEXT_SLIDE", RelativeSlideLink2[RelativeSlideLink2.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", RelativeSlideLink2[RelativeSlideLink2.FIRST_SLIDE = 3] = "FIRST_SLIDE", RelativeSlideLink2[RelativeSlideLink2.LAST_SLIDE = 4] = "LAST_SLIDE", RelativeSlideLink2))(RelativeSlideLink || {});
896
895
  const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
897
896
  let random = /* @__PURE__ */ __name((bytes) => crypto.getRandomValues(new Uint8Array(bytes)), "random"), customRandom = /* @__PURE__ */ __name((alphabet, defaultSize, getRandom) => {
898
897
  let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1, step = -~(1.6 * mask * defaultSize / alphabet.length);
@@ -1978,9 +1977,6 @@ const rmsPrefix = /^-ms-/, rDashAlpha = /-([a-z])/g, alphabets = [
1978
1977
  static isBlank(value) {
1979
1978
  return this.isDefine(value) ? this.isString(value) ? value.trim() === "" : !1 : !0;
1980
1979
  }
1981
- static isAssignableFrom(object, clazz) {
1982
- return object instanceof clazz;
1983
- }
1984
1980
  static isBoolean(value) {
1985
1981
  return this.getValueType(value) === "[object Boolean]";
1986
1982
  }
@@ -2410,8 +2406,8 @@ function handleStyleToString(style, isCell = !1) {
2410
2406
  "pd",
2411
2407
  () => {
2412
2408
  var _a14, _b2, _c, _d, _e, _f, _g, _h;
2413
- const b = `${(_a14 = style.pd) == null ? void 0 : _a14.b}pt`, t = `${(_b2 = style.pd) == null ? void 0 : _b2.t}pt`, l2 = `${(_c = style.pd) == null ? void 0 : _c.l}pt`, r = `${(_d = style.pd) == null ? void 0 : _d.r}pt`;
2414
- (_e = style.pd) != null && _e.b && (str += `padding-bottom: ${b}; `), (_f = style.pd) != null && _f.t && (str += `padding-top: ${t}; `), (_g = style.pd) != null && _g.l && (str += `padding-left: ${l2}; `), (_h = style.pd) != null && _h.r && (str += `padding-right: ${r}; `);
2409
+ const b = `${(_a14 = style.pd) == null ? void 0 : _a14.b}pt`, t = `${(_b2 = style.pd) == null ? void 0 : _b2.t}pt`, l = `${(_c = style.pd) == null ? void 0 : _c.l}pt`, r = `${(_d = style.pd) == null ? void 0 : _d.r}pt`;
2410
+ (_e = style.pd) != null && _e.b && (str += `padding-bottom: ${b}; `), (_f = style.pd) != null && _f.t && (str += `padding-top: ${t}; `), (_g = style.pd) != null && _g.l && (str += `padding-left: ${l}; `), (_h = style.pd) != null && _h.r && (str += `padding-right: ${r}; `);
2415
2411
  }
2416
2412
  ]
2417
2413
  ]), cellSkip = ["bd", "tr", "tb"];
@@ -2560,7 +2556,7 @@ function __read(o, n) {
2560
2556
  }
2561
2557
  __name(__read, "__read");
2562
2558
  function __spreadArray$2(to, from, pack) {
2563
- if (pack || arguments.length === 2) for (var i = 0, l2 = from.length, ar; i < l2; i++)
2559
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
2564
2560
  (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
2565
2561
  return to.concat(ar || Array.prototype.slice.call(from));
2566
2562
  }
@@ -3756,7 +3752,7 @@ function covertTextRunToHtml(dataStream, textRun) {
3756
3752
  return it === BooleanNumber.TRUE && (html = `<i>${html}</i>`), va === BaselineOffset.SUPERSCRIPT ? html = `<sup>${html}</sup>` : va === BaselineOffset.SUBSCRIPT && (html = `<sub>${html}</sub>`), (ul == null ? void 0 : ul.s) === BooleanNumber.TRUE && (html = `<u>${html}</u>`), (st == null ? void 0 : st.s) === BooleanNumber.TRUE && (html = `<s>${html}</s>`), bl === BooleanNumber.TRUE && (html = `<strong>${html}</strong>`), ff && style.push(`font-family: ${ff}`), cl && style.push(`color: ${cl.rgb}`), fs && style.push(`font-size: ${fs}pt`), ol && style.push("text-decoration: overline"), bg && style.push(`background: ${bg.rgb}`), style.length ? `<span style="${style.join("; ")};">${html}</span>` : html;
3757
3753
  }
3758
3754
  __name(covertTextRunToHtml, "covertTextRunToHtml");
3759
- var numfmt$1 = { exports: {} };
3755
+ var numfmt$2 = { exports: {} };
3760
3756
  (function(module, exports) {
3761
3757
  (function(e, t) {
3762
3758
  module.exports = t();
@@ -3784,7 +3780,7 @@ var numfmt$1 = { exports: {} };
3784
3780
  return isFinite(t2) && n[65535 & t2] ? n[65535 & t2] || null : a.test(e2) ? e2 : null;
3785
3781
  }
3786
3782
  __name(o, "o");
3787
- function l2(e2) {
3783
+ function l(e2) {
3788
3784
  const t2 = o(e2);
3789
3785
  let n2 = null;
3790
3786
  if (t2) {
@@ -3793,7 +3789,7 @@ var numfmt$1 = { exports: {} };
3793
3789
  }
3794
3790
  return n2;
3795
3791
  }
3796
- __name(l2, "l");
3792
+ __name(l, "l");
3797
3793
  function d(e2) {
3798
3794
  return Object.assign({}, i, e2);
3799
3795
  }
@@ -3816,14 +3812,14 @@ var numfmt$1 = { exports: {} };
3816
3812
  __name(c, "c"), u.isDefault = !0, m({ group: ",", ampm: ["上午", "下午"], mmmm: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"] }, "zh_CN"), m({ group: ",", nan: "非數值", ampm: ["上午", "下午"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], ddd: ["週日", "週一", "週二", "週三", "週四", "週五", "週六"] }, "zh_TW"), m({ group: ",", ampm: ["午前", "午後"], mmmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], mmm: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"], dddd: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], ddd: ["日", "月", "火", "水", "木", "金", "土"] }, "ja"), m({ group: ",", ampm: ["오전", "오후"], mmmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], mmm: ["1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"], dddd: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"], ddd: ["일", "월", "화", "수", "목", "금", "토"] }, "ko"), m({ group: ",", ampm: ["ก่อนเที่ยง", "หลังเที่ยง"], mmmm: ["มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"], mmm: ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."], dddd: ["วันอาทิตย์", "วันจันทร์", "วันอังคาร", "วันพุธ", "วันพฤหัสบดี", "วันศุกร์", "วันเสาร์"], ddd: ["อา.", "จ.", "อ.", "พ.", "พฤ.", "ศ.", "ส."] }, "th"), m({ decimal: ",", ampm: ["dop.", "odp."], mmmm: ["ledna", "února", "března", "dubna", "května", "června", "července", "srpna", "září", "října", "listopadu", "prosince"], mmm: ["led", "úno", "bře", "dub", "kvě", "čvn", "čvc", "srp", "zář", "říj", "lis", "pro"], dddd: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], ddd: ["ne", "po", "út", "st", "čt", "pá", "so"] }, "cs"), m({ group: ".", decimal: ",", mmmm: ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mar.", "apr.", "maj", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "da"), m({ group: ".", decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mrt.", "apr.", "mei", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], ddd: ["zo", "ma", "di", "wo", "do", "vr", "za"] }, "nl"), m({ group: "," }, "en"), m({ decimal: ",", nan: "epäluku", ampm: ["ap.", "ip."], mmmm: ["tammikuuta", "helmikuuta", "maaliskuuta", "huhtikuuta", "toukokuuta", "kesäkuuta", "heinäkuuta", "elokuuta", "syyskuuta", "lokakuuta", "marraskuuta", "joulukuuta"], mmm: ["tammik.", "helmik.", "maalisk.", "huhtik.", "toukok.", "kesäk.", "heinäk.", "elok.", "syysk.", "lokak.", "marrask.", "jouluk."], dddd: ["sunnuntaina", "maanantaina", "tiistaina", "keskiviikkona", "torstaina", "perjantaina", "lauantaina"], ddd: ["su", "ma", "ti", "ke", "to", "pe", "la"] }, "fi"), m({ group: " ", decimal: ",", mmmm: ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"], mmm: ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc."], dddd: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], ddd: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."] }, "fr"), m({ group: ".", decimal: ",", mmmm: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], mmm: ["Jan.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sept.", "Okt.", "Nov.", "Dez."], dddd: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], ddd: ["So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."] }, "de"), m({ group: ".", decimal: ",", ampm: ["π.μ.", "μ.μ."], mmmm: ["Ιανουαρίου", "Φεβρουαρίου", "Μαρτίου", "Απριλίου", "Μαΐου", "Ιουνίου", "Ιουλίου", "Αυγούστου", "Σεπτεμβρίου", "Οκτωβρίου", "Νοεμβρίου", "Δεκεμβρίου"], mmm: ["Ιαν", "Φεβ", "Μαρ", "Απρ", "Μαΐ", "Ιουν", "Ιουλ", "Αυγ", "Σεπ", "Οκτ", "Νοε", "Δεκ"], dddd: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"], ddd: ["Κυρ", "Δευ", "Τρί", "Τετ", "Πέμ", "Παρ", "Σάβ"] }, "el"), m({ decimal: ",", ampm: ["de.", "du."], mmmm: ["január", "február", "március", "április", "május", "június", "július", "augusztus", "szeptember", "október", "november", "december"], mmm: ["jan.", "febr.", "márc.", "ápr.", "máj.", "jún.", "júl.", "aug.", "szept.", "okt.", "nov.", "dec."], dddd: ["vasárnap", "hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat"], ddd: ["V", "H", "K", "Sze", "Cs", "P", "Szo"] }, "hu"), m({ group: ".", decimal: ",", ampm: ["f.h.", "e.h."], mmmm: ["janúar", "febrúar", "mars", "apríl", "maí", "júní", "júlí", "ágúst", "september", "október", "nóvember", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "maí", "jún.", "júl.", "ágú.", "sep.", "okt.", "nóv.", "des."], dddd: ["sunnudagur", "mánudagur", "þriðjudagur", "miðvikudagur", "fimmtudagur", "föstudagur", "laugardagur"], ddd: ["sun.", "mán.", "þri.", "mið.", "fim.", "fös.", "lau."] }, "is"), m({ group: ".", decimal: ",", mmmm: ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"], mmm: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"], dddd: ["Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu"], ddd: ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"] }, "id"), m({ group: ".", decimal: ",", mmmm: ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre"], mmm: ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic"], dddd: ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], ddd: ["dom", "lun", "mar", "mer", "gio", "ven", "sab"] }, "it"), m({ decimal: ",", ampm: ["a.m.", "p.m."], mmmm: ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], mmm: ["jan.", "feb.", "mar.", "apr.", "mai", "jun.", "jul.", "aug.", "sep.", "okt.", "nov.", "des."], dddd: ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], ddd: ["søn.", "man.", "tir.", "ons.", "tor.", "fre.", "lør."] }, "nb"), m({ decimal: ",", mmmm: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"], mmm: ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru"], dddd: ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], ddd: ["niedz.", "pon.", "wt.", "śr.", "czw.", "pt.", "sob."] }, "pl"), m({ group: ".", decimal: ",", mmmm: ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro"], mmm: ["jan.", "fev.", "mar.", "abr.", "mai.", "jun.", "jul.", "ago.", "set.", "out.", "nov.", "dez."], dddd: ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], ddd: ["dom.", "seg.", "ter.", "qua.", "qui.", "sex.", "sáb."] }, "pt"), m({ decimal: ",", nan: "не число", mmmm: ["января", "февраля", "марта", "апреля", "мая", "июня", "июля", "августа", "сентября", "октября", "ноября", "декабря"], mmm: ["янв.", "февр.", "мар.", "апр.", "мая", "июн.", "июл.", "авг.", "сент.", "окт.", "нояб.", "дек."], dddd: ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], ddd: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"] }, "ru"), m({ decimal: ",", mmmm: ["januára", "februára", "marca", "apríla", "mája", "júna", "júla", "augusta", "septembra", "októbra", "novembra", "decembra"], mmm: ["jan", "feb", "mar", "apr", "máj", "jún", "júl", "aug", "sep", "okt", "nov", "dec"], dddd: ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], ddd: ["ne", "po", "ut", "st", "št", "pi", "so"] }, "sk"), m({ group: ".", decimal: ",", ampm: ["a. m.", "p. m."], mmmm: ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"], mmm: ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sept.", "oct.", "nov.", "dic."], dddd: ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], ddd: ["dom.", "lun.", "mar.", "mié.", "jue.", "vie.", "sáb."] }, "es"), m({ decimal: ",", ampm: ["fm", "em"], mmmm: ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december"], mmm: ["jan.", "feb.", "mars", "apr.", "maj", "juni", "juli", "aug.", "sep.", "okt.", "nov.", "dec."], dddd: ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], ddd: ["sön", "mån", "tis", "ons", "tors", "fre", "lör"] }, "sv"), m({ group: ".", decimal: ",", ampm: ["ÖÖ", "ÖS"], mmmm: ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"], mmm: ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], dddd: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], ddd: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cmt"] }, "tr");
3817
3813
  function p(e2, t2, n2) {
3818
3814
  const a2 = e2 < 0 ? -1 : 1, r2 = 10 ** (t2 || 2), i2 = 10 ** (n2 || 2);
3819
- let s2, o2, l3 = Math.abs(e2), d2 = 0, m2 = 0, u2 = 0, c2 = 1;
3820
- if ((e2 = l3) % 1 == 0) o2 = [e2 * a2, 1];
3815
+ let s2, o2, l2 = Math.abs(e2), d2 = 0, m2 = 0, u2 = 0, c2 = 1;
3816
+ if ((e2 = l2) % 1 == 0) o2 = [e2 * a2, 1];
3821
3817
  else if (e2 < 1e-19) o2 = [a2, 1e19];
3822
3818
  else if (e2 > 1e19) o2 = [1e19 * a2, 1];
3823
3819
  else {
3824
3820
  do
3825
- if (l3 = 1 / (l3 - Math.floor(l3)), s2 = c2, c2 = c2 * Math.floor(l3) + d2, d2 = s2, m2 = u2, u2 = Math.floor(e2 * c2 + 0.5), u2 >= r2 || c2 >= i2) return [a2 * m2, d2];
3826
- while (Math.abs(e2 - u2 / c2) >= 1e-10 && l3 !== Math.floor(l3));
3821
+ if (l2 = 1 / (l2 - Math.floor(l2)), s2 = c2, c2 = c2 * Math.floor(l2) + d2, d2 = s2, m2 = u2, u2 = Math.floor(e2 * c2 + 0.5), u2 >= r2 || c2 >= i2) return [a2 * m2, d2];
3822
+ while (Math.abs(e2 - u2 / c2) >= 1e-10 && l2 !== Math.floor(l2));
3827
3823
  o2 = [a2 * u2, c2];
3828
3824
  }
3829
3825
  return o2;
@@ -3841,10 +3837,10 @@ var numfmt$1 = { exports: {} };
3841
3837
  }
3842
3838
  __name(h, "h");
3843
3839
  const y = { "#": "", 0: "0", "?": " " }, _ = { "@": "text", "-": "minus", "+": "plus" }, b = ["#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#000", "#FFF", "#F00", "#0F0", "#00F", "#FF0", "#F0F", "#0FF", "#800", "#080", "#008", "#880", "#808", "#088", "#CCC", "#888", "#99F", "#936", "#FFC", "#CFF", "#606", "#F88", "#06C", "#CCF", "#008", "#F0F", "#FF0", "#0FF", "#808", "#800", "#088", "#00F", "#0CF", "#CFF", "#CFC", "#FF9", "#9CF", "#F9C", "#C9F", "#FC9", "#36F", "#3CC", "#9C0", "#FC0"], j = ["¤", "$", "£", "¥", "֏", "؋", "৳", "฿", "៛", "₡", "₦", "₩", "₪", "₫", "€", "₭", "₮", "₱", "₲", "₴", "₸", "₹", "₺", "₼", "₽", "₾", "₿"], v = new RegExp("[" + j.join("") + "]");
3844
- function M2(e2, t2, n2) {
3840
+ function M(e2, t2, n2) {
3845
3841
  return t2[n2 + "_max"] = e2.length, t2[n2 + "_min"] = e2.replace(/#/g, "").length, t2;
3846
3842
  }
3847
- __name(M2, "M");
3843
+ __name(M, "M");
3848
3844
  const k = {};
3849
3845
  function x(e2) {
3850
3846
  if (!(e2 in k)) {
@@ -3865,7 +3861,7 @@ var numfmt$1 = { exports: {} };
3865
3861
  function z(e2) {
3866
3862
  const t2 = [], n2 = { scale: 1, percent: !1, text: !1, date: 0, date_eval: !1, date_system: 1, sec_decimals: 0, general: !1, clock: 24, int_pattern: [], frac_pattern: [], man_pattern: [], den_pattern: [], num_pattern: [], tokens: t2 };
3867
3863
  let a2 = e2 + "", r2 = "int", i2 = !1, s2 = null;
3868
- const l3 = [];
3864
+ const l2 = [];
3869
3865
  let d2, m2, u2 = !1;
3870
3866
  for (; a2 && !i2; ) {
3871
3867
  if (d2 = /^General/i.exec(a2)) n2.general = !0, F({ type: "general" }, t2);
@@ -3884,7 +3880,7 @@ var numfmt$1 = { exports: {} };
3884
3880
  if (d2 = /^[@+-]/.exec(a2)) d2[0] === "@" && (n2.text = !0), F({ type: _[d2[0]] }, t2);
3885
3881
  else if (d2 = /^(?:\[(h+|m+|s+)\])/i.exec(a2)) {
3886
3882
  const e3 = d2[1].toLowerCase(), a3 = e3[0], r3 = { type: "", size: 0, date: 1, raw: d2[0], pad: e3.length };
3887
- a3 === "h" ? (r3.size = 16, r3.type = "hour-elap") : a3 === "m" ? (r3.size = 32, r3.type = "min-elap") : (r3.size = 64, r3.type = "sec-elap"), n2.date = n2.date | r3.size, l3.push(r3), F(r3, t2);
3883
+ a3 === "h" ? (r3.size = 16, r3.type = "hour-elap") : a3 === "m" ? (r3.size = 32, r3.type = "min-elap") : (r3.size = 64, r3.type = "sec-elap"), n2.date = n2.date | r3.size, l2.push(r3), F(r3, t2);
3888
3884
  } else if (d2 = /^(?:B2)/i.exec(a2)) u2 || (n2.date_system = 6);
3889
3885
  else if (d2 = /^(?:B1)/i.exec(a2)) u2 || (n2.date_system = 1);
3890
3886
  else if (d2 = /^(?:([hHmMsSyYbBdDegG])\1*)/.exec(a2)) {
@@ -3899,14 +3895,14 @@ var numfmt$1 = { exports: {} };
3899
3895
  else if (r3 === "h") e3.size = 16, e3.type = "hour", e3.pad = /hh/i.test(a3);
3900
3896
  else if (r3 === "m") {
3901
3897
  a3.length === 3 ? (e3.size = 4, e3.type = "monthname-short") : a3.length === 5 ? (e3.size = 4, e3.type = "monthname-single") : a3.length >= 4 && (e3.size = 4, e3.type = "monthname");
3902
- const t3 = l3[l3.length - 1];
3898
+ const t3 = l2[l2.length - 1];
3903
3899
  !e3.type && t3 && !t3.used && 80 & t3.size && (t3.used = !0, e3.size = 32, e3.type = "min", e3.pad = /mm/.test(a3)), e3.type || (e3.size = 4, e3.type = "month", e3.pad = /mm/.test(a3), e3.indeterminate = !0);
3904
3900
  } else if (r3 === "s") {
3905
3901
  e3.size = 64, e3.type = "sec", e3.pad = /ss/.test(a3);
3906
- const t3 = l3[l3.length - 1];
3902
+ const t3 = l2[l2.length - 1];
3907
3903
  t3 && 32 & t3.size ? e3.used = !0 : t3 && t3.indeterminate && (delete t3.indeterminate, t3.size = 32, t3.type = "min", e3.used = !0);
3908
3904
  }
3909
- n2.date = n2.date | e3.size, n2.date_eval = !0, l3.push(e3), F(e3, t2);
3905
+ n2.date = n2.date | e3.size, n2.date_eval = !0, l2.push(e3), F(e3, t2);
3910
3906
  } else if (d2 = /^(?:AM\/PM|am\/pm|A\/P)/.exec(a2)) n2.clock = 12, n2.date = 16 | n2.date, n2.date_eval = !0, F({ type: "am", short: d2[0] === "A/P" }, t2);
3911
3907
  else if (n2.date && (d2 = /^\.0{1,3}/i.exec(a2))) {
3912
3908
  const e3 = d2[0].length - 1, a3 = [64, 128, 256, 512][e3];
@@ -3940,10 +3936,10 @@ var numfmt$1 = { exports: {} };
3940
3936
  const e3 = c2.split(","), t3 = e3.length;
3941
3937
  t3 === 2 ? (n2.group_pri = e3[1].length, n2.group_sec = n2.group_pri) : t3 > 2 && (n2.group_pri = e3[t3 - 1].length, n2.group_sec = e3[t3 - 2].length);
3942
3938
  } else n2.group_pri = 0, n2.group_sec = 0;
3943
- M2(c2.replace(/[,]/g, ""), n2, "int"), M2(n2.frac_pattern.join(""), n2, "frac"), M2(n2.man_pattern.join(""), n2, "man");
3939
+ M(c2.replace(/[,]/g, ""), n2, "int"), M(n2.frac_pattern.join(""), n2, "frac"), M(n2.man_pattern.join(""), n2, "man");
3944
3940
  let p2 = n2.num_pattern.join(""), f2 = n2.den_pattern.join("");
3945
3941
  const g2 = /\?/.test(f2) || /\?/.test(p2);
3946
- return f2 = f2.replace(/\d/g, g2 ? "?" : "#"), g2 && (f2 = f2.replace(/#$/g, "?")), M2(p2, n2, "num"), M2(f2, n2, "den"), g2 && (p2 = p2.replace(/#$/g, "?")), n2.int_padding = x(n2.int_pattern.join("")), n2.man_padding = x(n2.man_pattern.join("")), n2.num_padding = x(p2), n2.den_padding = x(f2), n2.den_pattern.length && (n2.denominator = parseInt(n2.den_pattern.join("").replace(/\D/g, ""), 10)), n2.integer = !!n2.int_pattern.join("").length, n2.fractions && t2.forEach((e3, n3) => {
3942
+ return f2 = f2.replace(/\d/g, g2 ? "?" : "#"), g2 && (f2 = f2.replace(/#$/g, "?")), M(p2, n2, "num"), M(f2, n2, "den"), g2 && (p2 = p2.replace(/#$/g, "?")), n2.int_padding = x(n2.int_pattern.join("")), n2.man_padding = x(n2.man_pattern.join("")), n2.num_padding = x(p2), n2.den_padding = x(f2), n2.den_pattern.length && (n2.denominator = parseInt(n2.den_pattern.join("").replace(/\D/g, ""), 10)), n2.integer = !!n2.int_pattern.join("").length, n2.fractions && t2.forEach((e3, n3) => {
3947
3943
  const a3 = t2[n3 + 1];
3948
3944
  e3.type === "string" && a3 && (a3.type === "num" ? e3.rule = "num+int" : a3.type === "div" ? e3.rule = "num" : a3.type === "den" && (e3.rule = "den"));
3949
3945
  }), n2;
@@ -3955,14 +3951,14 @@ var numfmt$1 = { exports: {} };
3955
3951
  }, "w");
3956
3952
  function D(e2) {
3957
3953
  const t2 = [];
3958
- let n2, a2 = !1, r2 = null, i2 = e2, s2 = 0, l3 = !1, d2 = 0, m2 = 0;
3954
+ let n2, a2 = !1, r2 = null, i2 = e2, s2 = 0, l2 = !1, d2 = 0, m2 = 0;
3959
3955
  do {
3960
- if (l3 = z(i2), (l3.date || l3.general) && (l3.int_pattern.length || l3.frac_pattern.length || l3.scale !== 1 || l3.text)) throw new Error("Illegal format");
3961
- if (l3.condition && (m2++, a2 = !0), l3.text) {
3956
+ if (l2 = z(i2), (l2.date || l2.general) && (l2.int_pattern.length || l2.frac_pattern.length || l2.scale !== 1 || l2.text)) throw new Error("Illegal format");
3957
+ if (l2.condition && (m2++, a2 = !0), l2.text) {
3962
3958
  if (r2) throw new Error("Unexpected partition");
3963
- r2 = l3;
3959
+ r2 = l2;
3964
3960
  }
3965
- l3.locale && (n2 = o(l3.locale)), t2.push(l3), s2 = i2.charAt(l3.pattern.length) === ";" ? 1 : 0, i2 = i2.slice(l3.pattern.length + s2), d2++;
3961
+ l2.locale && (n2 = o(l2.locale)), t2.push(l2), s2 = i2.charAt(l2.pattern.length) === ";" ? 1 : 0, i2 = i2.slice(l2.pattern.length + s2), d2++;
3966
3962
  } while (s2 && d2 < 4 && m2 < 3);
3967
3963
  if (s2) throw new Error("Unexpected partition");
3968
3964
  if (m2 > 2) throw new Error("Unexpected condition");
@@ -4040,7 +4036,7 @@ var numfmt$1 = { exports: {} };
4040
4036
  return t2 === 6 ? A(a2) : t2 === -1 ? E(a2) : C(a2, n2);
4041
4037
  }
4042
4038
  __name(Y, "Y");
4043
- const T = Math.floor, N2 = 86400;
4039
+ const T = Math.floor, N = 86400;
4044
4040
  function P(e2, t2) {
4045
4041
  let n2 = null;
4046
4042
  if (Array.isArray(e2)) {
@@ -4059,15 +4055,15 @@ var numfmt$1 = { exports: {} };
4059
4055
  __name(P, "P");
4060
4056
  function I2(e2, t2) {
4061
4057
  let n2 = 0 | e2;
4062
- const a2 = N2 * (e2 - n2);
4058
+ const a2 = N * (e2 - n2);
4063
4059
  let r2 = T(a2);
4064
- a2 - r2 > 0.9999 && (r2 += 1, r2 === N2 && (r2 = 0, n2 += 1));
4065
- const i2 = r2 < 0 ? N2 + r2 : r2, [s2, o2, l3] = Y(e2, 0, t2 && t2.leap1900), d2 = T(i2 / 60 / 60) % 60, m2 = T(i2 / 60) % 60, u2 = T(i2) % 60;
4060
+ a2 - r2 > 0.9999 && (r2 += 1, r2 === N && (r2 = 0, n2 += 1));
4061
+ const i2 = r2 < 0 ? N + r2 : r2, [s2, o2, l2] = Y(e2, 0, t2 && t2.leap1900), d2 = T(i2 / 60 / 60) % 60, m2 = T(i2 / 60) % 60, u2 = T(i2) % 60;
4066
4062
  if (t2 && t2.nativeDate) {
4067
4063
  const e3 = /* @__PURE__ */ new Date(0);
4068
- return e3.setUTCFullYear(s2, o2 - 1, l3), e3.setUTCHours(d2, m2, u2), e3;
4064
+ return e3.setUTCFullYear(s2, o2 - 1, l2), e3.setUTCHours(d2, m2, u2), e3;
4069
4065
  }
4070
- return [s2, o2, l3, d2, m2, u2];
4066
+ return [s2, o2, l2, d2, m2, u2];
4071
4067
  }
4072
4068
  __name(I2, "I");
4073
4069
  function O(e2) {
@@ -4078,12 +4074,12 @@ var numfmt$1 = { exports: {} };
4078
4074
  return !!(e2[0] && e2[0].date || e2[1] && e2[1].date || e2[2] && e2[2].date || e2[3] && e2[3].date);
4079
4075
  }
4080
4076
  __name(J, "J");
4081
- function L2(e2) {
4077
+ function L(e2) {
4082
4078
  const [t2, n2, a2, r2] = e2;
4083
4079
  return !(t2 && !t2.generated || n2 && !n2.generated || a2 && !a2.generated || !r2 || !r2.text || r2.generated);
4084
4080
  }
4085
- __name(L2, "L");
4086
- const U = { text: 15, datetime: 10.8, date: 10.8, time: 10.8, percent: 10.6, currency: 10.4, grouped: 10.2, scientific: 6, number: 4, fraction: 2, general: 0, error: 0 }, R = [["DMY", 1], ["DM", 2], ["MY", 3], ["MDY", 4], ["MD", 5], ["hmsa", 6], ["hma", 7], ["hms", 8], ["hm", 9]], G = { total: 1, sign: 0, period: 0, int: 1, frac: 0 }, H2 = /* @__PURE__ */ __name((e2, t2) => e2.replace(/\./, t2.decimal), "H");
4081
+ __name(L, "L");
4082
+ const U = { text: 15, datetime: 10.8, date: 10.8, time: 10.8, percent: 10.6, currency: 10.4, grouped: 10.2, scientific: 6, number: 4, fraction: 2, general: 0, error: 0 }, R = [["DMY", 1], ["DM", 2], ["MY", 3], ["MDY", 4], ["MD", 5], ["hmsa", 6], ["hma", 7], ["hms", 8], ["hm", 9]], G2 = { total: 1, sign: 0, period: 0, int: 1, frac: 0 }, H2 = /* @__PURE__ */ __name((e2, t2) => e2.replace(/\./, t2.decimal), "H");
4087
4083
  function B(e2, t2, n2, a2) {
4088
4084
  const r2 = 0 | n2;
4089
4085
  if (typeof n2 == "string") e2.push(n2);
@@ -4095,7 +4091,7 @@ var numfmt$1 = { exports: {} };
4095
4091
  const s2 = function(e3) {
4096
4092
  let t4 = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
4097
4093
  const n3 = Math.abs(e3);
4098
- if (!n3) return G;
4094
+ if (!n3) return G2;
4099
4095
  const a3 = t4 && e3 < 0 ? 1 : 0, r4 = Math.floor(n3), i3 = Math.floor(Math.log10(n3) + 1);
4100
4096
  let s3 = 0, o3 = 0;
4101
4097
  if (r4 !== n3) {
@@ -4138,7 +4134,7 @@ var numfmt$1 = { exports: {} };
4138
4134
  return t2 > 1 ? Math.floor(n2 / t2) * t2 : n2;
4139
4135
  }, "Z");
4140
4136
  function K(e2, t2, n2, a2) {
4141
- let r2 = "", i2 = "", s2 = "", o2 = "", l3 = "", d2 = 0, m2 = 0 | e2, f2 = 0, g2 = 0, h2 = 1, _2 = 0, b2 = 0, j2 = 0, v2 = 0, M3 = 0, k2 = 0;
4137
+ let r2 = "", i2 = "", s2 = "", o2 = "", l2 = "", d2 = 0, m2 = 0 | e2, f2 = 0, g2 = 0, h2 = 1, _2 = 0, b2 = 0, j2 = 0, v2 = 0, M2 = 0, k2 = 0;
4142
4138
  const x2 = a2 || u;
4143
4139
  if (!t2.text && isFinite(t2.scale) && t2.scale !== 1 && (e2 = function(e3) {
4144
4140
  if (e3 === 0) return e3;
@@ -4154,21 +4150,21 @@ var numfmt$1 = { exports: {} };
4154
4150
  }
4155
4151
  if (t2.integer) {
4156
4152
  const n3 = Math.abs(c(e2, t2.fractions ? 1 : t2.frac_max));
4157
- l3 += n3 < 1 ? "" : Math.floor(n3);
4153
+ l2 += n3 < 1 ? "" : Math.floor(n3);
4158
4154
  }
4159
4155
  if (t2.grouping) {
4160
- let e3 = "", n3 = l3.length;
4161
- for (n3 > t2.group_pri && (n3 -= t2.group_pri, e3 = x2.group + l3.slice(n3, n3 + t2.group_pri) + e3); n3 > t2.group_sec; ) n3 -= t2.group_sec, e3 = x2.group + l3.slice(n3, n3 + t2.group_sec) + e3;
4162
- l3 = n3 ? l3.slice(0, n3) + e3 : e3;
4156
+ let e3 = "", n3 = l2.length;
4157
+ for (n3 > t2.group_pri && (n3 -= t2.group_pri, e3 = x2.group + l2.slice(n3, n3 + t2.group_pri) + e3); n3 > t2.group_sec; ) n3 -= t2.group_sec, e3 = x2.group + l2.slice(n3, n3 + t2.group_sec) + e3;
4158
+ l2 = n3 ? l2.slice(0, n3) + e3 : e3;
4163
4159
  }
4164
4160
  t2.dec_fractions && (o2 = String(c(e2, t2.frac_max)).split(".")[1] || "");
4165
4161
  let F2 = !1;
4166
4162
  if (t2.fractions) {
4167
4163
  const n3 = Math.abs(t2.integer ? e2 % 1 : e2);
4168
- if (n3) if (F2 = !0, isFinite(t2.denominator)) s2 += t2.denominator, i2 += c(n3 * t2.denominator), i2 === "0" && (i2 = "", s2 = "", F2 = !1, l3 || (l3 = "0"));
4164
+ if (n3) if (F2 = !0, isFinite(t2.denominator)) s2 += t2.denominator, i2 += c(n3 * t2.denominator), i2 === "0" && (i2 = "", s2 = "", F2 = !1, l2 || (l2 = "0"));
4169
4165
  else {
4170
4166
  const e3 = p(n3, t2.integer ? t2.num_max : 1 / 0, t2.den_max);
4171
- i2 += e3[0], s2 += e3[1], t2.integer && i2 === "0" && (l3 || (l3 = "0"), i2 = "", s2 = "", F2 = !1);
4167
+ i2 += e3[0], s2 += e3[1], t2.integer && i2 === "0" && (l2 || (l2 = "0"), i2 = "", s2 = "", F2 = !1);
4172
4168
  }
4173
4169
  }
4174
4170
  if (t2.date) {
@@ -4184,7 +4180,7 @@ var numfmt$1 = { exports: {} };
4184
4180
  }
4185
4181
  if (f2) {
4186
4182
  const e3 = f2 < 0 ? $ + f2 : f2;
4187
- M3 = Math.floor(e3) % 60, v2 = Math.floor(e3 / 60) % 60, j2 = Math.floor(e3 / 60 / 60) % 60;
4183
+ M2 = Math.floor(e3) % 60, v2 = Math.floor(e3 / 60) % 60, j2 = Math.floor(e3 / 60 / 60) % 60;
4188
4184
  }
4189
4185
  if (b2 = (6 + m2) % 7, t2.date_eval && (z2 = e2, w2 = m2 + f2 / $, n2.dateSpanLarge ? z2 < -694324 || w2 >= 35830291 : z2 < 0 || w2 >= 2958466)) {
4190
4186
  if (n2.dateErrorThrows) throw new Error("Date out of bounds");
@@ -4192,7 +4188,7 @@ var numfmt$1 = { exports: {} };
4192
4188
  }
4193
4189
  }
4194
4190
  var z2, w2;
4195
- if (t2.int_padding && (l3 = t2.int_padding.length === 1 ? l3 || t2.int_padding : t2.int_padding.substring(0, t2.int_padding.length - l3.length) + l3), t2.num_padding && (i2 = t2.num_padding.length === 1 ? i2 || t2.num_padding : t2.num_padding.substring(0, t2.num_padding.length - i2.length) + i2), t2.den_padding && (s2 = t2.den_padding.length === 1 ? s2 || t2.den_padding : s2 + t2.den_padding.slice(s2.length)), t2.man_padding) {
4191
+ if (t2.int_padding && (l2 = t2.int_padding.length === 1 ? l2 || t2.int_padding : t2.int_padding.substring(0, t2.int_padding.length - l2.length) + l2), t2.num_padding && (i2 = t2.num_padding.length === 1 ? i2 || t2.num_padding : t2.num_padding.substring(0, t2.num_padding.length - i2.length) + i2), t2.den_padding && (s2 = t2.den_padding.length === 1 ? s2 || t2.den_padding : s2 + t2.den_padding.slice(s2.length)), t2.man_padding) {
4196
4192
  const e3 = t2.exp_plus ? "+" : "";
4197
4193
  r2 = t2.man_padding.length === 1 ? (d2 < 0 ? "-" : e3) + (r2 || t2.man_padding) : (d2 < 0 ? "-" : e3) + t2.man_padding.slice(0, t2.man_padding.length - r2.length) + r2;
4198
4194
  }
@@ -4201,25 +4197,25 @@ var numfmt$1 = { exports: {} };
4201
4197
  const C2 = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
4202
4198
  for (let d3 = 0, u2 = t2.tokens.length; d3 < u2; d3++) {
4203
4199
  const u3 = t2.tokens[d3], c2 = u3.num ? u3.num.length : 0;
4204
- if (u3.type === "string") u3.rule ? u3.rule === "num" ? F2 ? D2.push(u3.value) : (t2.num_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "num+int" ? F2 && l3 ? D2.push(u3.value) : t2.den_min > 0 && (l3 || t2.num_min) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "den" && (F2 ? D2.push(u3.value) : (t2.den_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"]))) : D2.push(u3.value);
4200
+ if (u3.type === "string") u3.rule ? u3.rule === "num" ? F2 ? D2.push(u3.value) : (t2.num_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "num+int" ? F2 && l2 ? D2.push(u3.value) : t2.den_min > 0 && (l2 || t2.num_min) && D2.push(u3.value.replace(/./g, y["?"])) : u3.rule === "den" && (F2 ? D2.push(u3.value) : (t2.den_min > 0 || t2.den_min > 0) && D2.push(u3.value.replace(/./g, y["?"]))) : D2.push(u3.value);
4205
4201
  else if (u3.type === "error") D2.push(n2.invalid);
4206
4202
  else if (u3.type === "point") D2.push(t2.date ? u3.value : x2.decimal);
4207
4203
  else if (u3.type === "general") B(D2, 0, e2, x2);
4208
4204
  else if (u3.type === "exp") D2.push(x2.exponent);
4209
- else if (u3.type === "minus") u3.volatile && t2.date || u3.volatile && (e2 >= 0 || typeof e2 != "number") || (u3.volatile && !t2.fractions && (t2.integer || t2.dec_fractions) ? (e2 < 0 && l3 && l3 !== "0" || o2) && D2.push(x2.negative) : D2.push(x2.negative));
4205
+ else if (u3.type === "minus") u3.volatile && t2.date || u3.volatile && (e2 >= 0 || typeof e2 != "number") || (u3.volatile && !t2.fractions && (t2.integer || t2.dec_fractions) ? (e2 < 0 && l2 && l2 !== "0" || o2) && D2.push(x2.negative) : D2.push(x2.negative));
4210
4206
  else if (u3.type === "plus") D2.push(x2.positive);
4211
4207
  else if (u3.type === "text") D2.push(e2);
4212
4208
  else if (u3.type === "div") F2 ? D2.push("/") : t2.num_min > 0 || t2.den_min > 0 ? D2.push(y["?"]) : D2.push(y["#"]);
4213
- else if (u3.type === "int") if (t2.int_pattern.length === 1) D2.push(l3);
4209
+ else if (u3.type === "int") if (t2.int_pattern.length === 1) D2.push(l2);
4214
4210
  else {
4215
4211
  const e3 = S2 ? t2.int_pattern.join("").length - C2.int : 1 / 0, n3 = S2 === t2.int_pattern.length - 1 ? 0 : t2.int_pattern.join("").length - (C2.int + u3.num.length);
4216
- D2.push(l3.substring(l3.length - e3, l3.length - n3)), S2++, C2.int += u3.num.length;
4212
+ D2.push(l2.substring(l2.length - e3, l2.length - n3)), S2++, C2.int += u3.num.length;
4217
4213
  }
4218
4214
  else if (u3.type === "frac") {
4219
4215
  const e3 = C2.frac;
4220
4216
  for (let t3 = 0; t3 < c2; t3++) D2.push(o2[t3 + e3] || y[u3.num[t3]]);
4221
4217
  C2.frac += c2;
4222
- } else if (u3.type in W) t2[u3.type + "_pattern"].length === 1 ? (u3.type === "int" && D2.push(l3), u3.type === "frac" && D2.push(o2), u3.type === "man" && D2.push(r2), u3.type === "num" && D2.push(i2), u3.type === "den" && D2.push(s2)) : (D2.push(W[u3.type].slice(C2[u3.type], C2[u3.type] + c2)), C2[u3.type] += c2);
4218
+ } else if (u3.type in W) t2[u3.type + "_pattern"].length === 1 ? (u3.type === "int" && D2.push(l2), u3.type === "frac" && D2.push(o2), u3.type === "man" && D2.push(r2), u3.type === "num" && D2.push(i2), u3.type === "den" && D2.push(s2)) : (D2.push(W[u3.type].slice(C2[u3.type], C2[u3.type] + c2)), C2[u3.type] += c2);
4223
4219
  else if (u3.type === "year") g2 < 0 && D2.push(x2.negative), D2.push(String(Math.abs(g2)).padStart(4, "0"));
4224
4220
  else if (u3.type === "year-short") {
4225
4221
  const e3 = g2 % 100;
@@ -4235,7 +4231,7 @@ var numfmt$1 = { exports: {} };
4235
4231
  const e3 = j2 % t2.clock || (t2.clock < 24 ? t2.clock : 0);
4236
4232
  D2.push(u3.pad && e3 < 10 ? "0" : "", e3);
4237
4233
  } else if (u3.type === "min") D2.push(u3.pad && v2 < 10 ? "0" : "", v2);
4238
- else if (u3.type === "sec") D2.push(u3.pad && M3 < 10 ? "0" : "", M3);
4234
+ else if (u3.type === "sec") D2.push(u3.pad && M2 < 10 ? "0" : "", M2);
4239
4235
  else if (u3.type === "subsec") {
4240
4236
  D2.push(x2.decimal);
4241
4237
  const e3 = k2.toFixed(t2.sec_decimals);
@@ -4293,18 +4289,18 @@ var numfmt$1 = { exports: {} };
4293
4289
  const t2 = new RegExp("^([\\s+%" + j.join("") + "(-]*)(((?:(?:\\d[\\d,]*)(?:\\.\\d*)?|(?:\\.\\d+)))([eE][+-]?\\d+)?)([\\s%" + j.join("") + ")]*)$").exec(e2);
4294
4290
  if (t2) {
4295
4291
  const [, e3, n2, a2, r2, i2] = t2;
4296
- let s2 = 1, o2 = "", l3 = !1, d2 = !1, m2 = !1, u2 = !1, c2 = !1, p2 = null, f2 = !1, g2 = parseFloat(n2.replace(/,/g, ""));
4292
+ let s2 = 1, o2 = "", l2 = !1, d2 = !1, m2 = !1, u2 = !1, c2 = !1, p2 = null, f2 = !1, g2 = parseFloat(n2.replace(/,/g, ""));
4297
4293
  if (!isFinite(g2)) return null;
4298
4294
  for (let t3 = 0; t3 < e3.length; t3++) {
4299
4295
  const n3 = e3[t3];
4300
4296
  if (n3 === "-") {
4301
- if (l3 || d2) return null;
4302
- l3 = !0, s2 = -1;
4297
+ if (l2 || d2) return null;
4298
+ l2 = !0, s2 = -1;
4303
4299
  } else if (v.test(n3)) {
4304
4300
  if (c2) return null;
4305
4301
  c2 = !0, p2 = n3;
4306
4302
  } else if (n3 === "(") {
4307
- if (d2 || l3) return null;
4303
+ if (d2 || l2) return null;
4308
4304
  d2 = !0, s2 = -1;
4309
4305
  } else if (n3 === "%") {
4310
4306
  if (u2) return null;
@@ -4351,8 +4347,8 @@ var numfmt$1 = { exports: {} };
4351
4347
  if (r3) {
4352
4348
  const i3 = r3[1] === "-" || r3[1] === "/" || r3[1] === "." ? r3[1] : " ";
4353
4349
  if (!n2.sep || n2.sep === i3) {
4354
- const l3 = r3[0].replace(/\s+/g, " ");
4355
- s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, sep: i3, path: a2 + l3 });
4350
+ const l2 = r3[0].replace(/\s+/g, " ");
4351
+ s2 = se(e2.slice(r3[0].length), t2[o2], { ...n2, sep: i3, path: a2 + l2 });
4356
4352
  }
4357
4353
  }
4358
4354
  } else if (o2 === " ") {
@@ -4445,7 +4441,7 @@ var numfmt$1 = { exports: {} };
4445
4441
  }, "i"), s2 = /* @__PURE__ */ __name((e3, t3) => {
4446
4442
  const n3 = i2(t3);
4447
4443
  return function(e4, t4, n4) {
4448
- const a3 = l2(n4.locale), r3 = t4[3] ? t4[3] : V;
4444
+ const a3 = l(n4.locale), r3 = t4[3] ? t4[3] : V;
4449
4445
  if (typeof e4 == "boolean" && (e4 = e4 ? "TRUE" : "FALSE"), e4 == null) return "";
4450
4446
  if (typeof e4 != "number") return K(e4, r3, n4, a3);
4451
4447
  if (!isFinite(e4)) {
@@ -4464,9 +4460,9 @@ var numfmt$1 = { exports: {} };
4464
4460
  const o2 = function(e3) {
4465
4461
  var t3;
4466
4462
  let n3 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
4467
- const [a3, r3] = e3, i3 = a3.frac_max, s3 = { type: "general", isDate: J(e3), isText: L2(e3), isPercent: O(e3), maxDecimals: a3.general ? 9 : i3, scale: (t3 = a3.scale) !== null && t3 !== void 0 ? t3 : 1, color: 0, parentheses: 0, grouped: a3.grouping ? 1 : 0, _partitions: e3 }, o3 = !s3.isDate && !s3.isText && !a3.error && a3.tokens.some((e4) => e4.type === "string" && (n3 ? e4.value === n3 : v.test(e4.value)));
4468
- let l3 = "G", d2 = i3 >= 0 ? Math.min(15, i3) : "", m2 = "", u2 = "";
4469
- if (r3 && r3.color && (u2 = "-", s3.color = 1), a3.parens && (m2 = "()", s3.parentheses = 1), o3) l3 = "C", s3.type = "currency";
4463
+ const [a3, r3] = e3, i3 = a3.frac_max, s3 = { type: "general", isDate: J(e3), isText: L(e3), isPercent: O(e3), maxDecimals: a3.general ? 9 : i3, scale: (t3 = a3.scale) !== null && t3 !== void 0 ? t3 : 1, color: 0, parentheses: 0, grouped: a3.grouping ? 1 : 0, _partitions: e3 }, o3 = !s3.isDate && !s3.isText && !a3.error && a3.tokens.some((e4) => e4.type === "string" && (n3 ? e4.value === n3 : v.test(e4.value)));
4464
+ let l2 = "G", d2 = i3 >= 0 ? Math.min(15, i3) : "", m2 = "", u2 = "";
4465
+ if (r3 && r3.color && (u2 = "-", s3.color = 1), a3.parens && (m2 = "()", s3.parentheses = 1), o3) l2 = "C", s3.type = "currency";
4470
4466
  else if (a3.error) s3.type = "error", s3.maxDecimals = 0;
4471
4467
  else if (s3.isDate) {
4472
4468
  let e4 = 0, t4 = 0, n4 = "";
@@ -4475,9 +4471,9 @@ var numfmt$1 = { exports: {} };
4475
4471
  /^(b-)?year/.test(r5) ? (n4 += "Y", t4++) : r5.startsWith("month") ? (n4 += "M", t4++) : /^(week)?day/.test(r5) ? (n4 += "D", t4++) : r5 !== "hour" && r5 !== "min" && r5 !== "sec" && r5 !== "am" || (n4 += r5[0], e4++);
4476
4472
  }), s3.type = "date", t4 && e4 ? s3.type = "datetime" : !t4 && e4 && (s3.type = "time");
4477
4473
  const r4 = R.find((e5) => n4.startsWith(e5[0]));
4478
- l3 = r4 ? "D" : "G", d2 = r4 ? r4[1] : "";
4479
- } else s3.isText ? (l3 = "G", s3.type = "text", d2 = "", s3.maxDecimals = 0) : a3.general ? (l3 = "G", s3.type = "general", d2 = "") : a3.fractions ? (l3 = "G", s3.type = "fraction", d2 = "") : a3.exponential ? (l3 = "S", s3.type = "scientific") : s3.isPercent ? (l3 = "P", s3.type = "percent") : a3.grouping ? (l3 = ",", s3.type = "grouped") : (a3.int_max || i3) && (l3 = "F", s3.type = "number");
4480
- return s3.code = l3 + d2 + u2 + m2, s3.level = U[s3.type], Object.freeze(s3);
4474
+ l2 = r4 ? "D" : "G", d2 = r4 ? r4[1] : "";
4475
+ } else s3.isText ? (l2 = "G", s3.type = "text", d2 = "", s3.maxDecimals = 0) : a3.general ? (l2 = "G", s3.type = "general", d2 = "") : a3.fractions ? (l2 = "G", s3.type = "fraction", d2 = "") : a3.exponential ? (l2 = "S", s3.type = "scientific") : s3.isPercent ? (l2 = "P", s3.type = "percent") : a3.grouping ? (l2 = ",", s3.type = "grouped") : (a3.int_max || i3) && (l2 = "F", s3.type = "number");
4476
+ return s3.code = l2 + d2 + u2 + m2, s3.level = U[s3.type], Object.freeze(s3);
4481
4477
  }(a2, (t2 || {}).currency) || new SyntaxError();
4482
4478
  return s2.info = o2, s2.dateInfo = function(e3) {
4483
4479
  const [t3] = e3;
@@ -4497,7 +4493,7 @@ var numfmt$1 = { exports: {} };
4497
4493
  }
4498
4494
  }(e2), n2.error || (me[e2] = n2)), ue(n2, t2);
4499
4495
  }
4500
- __name(ce, "ce"), ce.isDate = (e2) => ce(e2, { throws: !1 }).isDate(), ce.isPercent = (e2) => ce(e2, { throws: !1 }).isPercent(), ce.isText = (e2) => ce(e2, { throws: !1 }).isText(), ce.getInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).info, ce.getDateInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).dateInfo, ce.dateToSerial = P, ce.dateFromSerial = I2, ce.options = h, ce.dec2frac = p, ce.round = c, ce.codeToLocale = n, ce.parseLocale = s, ce.getLocale = l2, ce.addLocale = (e2, t2) => {
4496
+ __name(ce, "ce"), ce.isDate = (e2) => ce(e2, { throws: !1 }).isDate(), ce.isPercent = (e2) => ce(e2, { throws: !1 }).isPercent(), ce.isText = (e2) => ce(e2, { throws: !1 }).isText(), ce.getInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).info, ce.getDateInfo = (e2, t2) => ce(e2, { ...t2, throws: !1 }).dateInfo, ce.dateToSerial = P, ce.dateFromSerial = I2, ce.options = h, ce.dec2frac = p, ce.round = c, ce.codeToLocale = n, ce.parseLocale = s, ce.getLocale = l, ce.addLocale = (e2, t2) => {
4501
4497
  const n2 = s(t2);
4502
4498
  return delete me[n2.lang], delete me[n2.language], m(e2, n2);
4503
4499
  }, ce.format = function(e2, t2, n2) {
@@ -4512,9 +4508,9 @@ var numfmt$1 = { exports: {} };
4512
4508
  return t = t.default;
4513
4509
  }();
4514
4510
  });
4515
- })(numfmt$1);
4516
- var numfmtExports = numfmt$1.exports, numfmt = numfmtExports;
4517
- const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(numfmt), DEFAULT_RANGE_ARRAY = {
4511
+ })(numfmt$2);
4512
+ var numfmtExports = numfmt$2.exports, numfmt$1 = numfmtExports;
4513
+ const _numfmt = /* @__PURE__ */ getDefaultExportFromCjs(numfmt$1), numfmt = _numfmt, DEFAULT_RANGE_ARRAY = {
4518
4514
  sheetId: "",
4519
4515
  range: {
4520
4516
  startRow: -1,
@@ -4630,7 +4626,7 @@ const index$2 = /* @__PURE__ */ getDefaultExportFromCjs(numfmt), DEFAULT_RANGE_A
4630
4626
  width: 300,
4631
4627
  height: 300
4632
4628
  }
4633
- };
4629
+ }, UNIVER_INTERNAL = "__univer_internal__";
4634
4630
  var EXTENSION_NAMES = /* @__PURE__ */ ((EXTENSION_NAMES2) => (EXTENSION_NAMES2.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", EXTENSION_NAMES2.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", EXTENSION_NAMES2))(EXTENSION_NAMES || {});
4635
4631
  function isAllFormatInTextRuns(key, body) {
4636
4632
  const { textRuns = [] } = body;
@@ -4777,7 +4773,7 @@ const _Range = class _Range {
4777
4773
  * @returns — A range containing a single cell at the specified coordinates.
4778
4774
  */
4779
4775
  getCell(row, column) {
4780
- const { startRow, endRow, startColumn, endColumn } = this._range, cell = {
4776
+ const { startRow, startColumn } = this._range, cell = {
4781
4777
  startRow: startRow + row,
4782
4778
  endRow: startRow + row,
4783
4779
  startColumn: startColumn + column,
@@ -5706,7 +5702,7 @@ var IdleValue = (
5706
5702
  return t;
5707
5703
  }, __assign$1.apply(this, arguments);
5708
5704
  }, "__assign$1"), __spreadArray$1 = /* @__PURE__ */ __name(function(to, from, pack) {
5709
- if (pack || arguments.length === 2) for (var i = 0, l2 = from.length, ar; i < l2; i++)
5705
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
5710
5706
  (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
5711
5707
  return to.concat(ar || Array.prototype.slice.call(from));
5712
5708
  }, "__spreadArray$1"), MAX_RESOLUTIONS_QUEUED = 300, NotInstantiatedSymbol = Symbol("$$NOT_INSTANTIATED_SYMBOL"), CircularDependencyError = (
@@ -6126,7 +6122,7 @@ function WithDependency(id, quantity, lookUp) {
6126
6122
  }
6127
6123
  __name(WithDependency, "WithDependency");
6128
6124
  var __spreadArray = /* @__PURE__ */ __name(function(to, from, pack) {
6129
- if (pack || arguments.length === 2) for (var i = 0, l2 = from.length, ar; i < l2; i++)
6125
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
6130
6126
  (ar || !(i in from)) && (ar || (ar = Array.prototype.slice.call(from, 0, i)), ar[i] = from[i]);
6131
6127
  return to.concat(ar || Array.prototype.slice.call(from));
6132
6128
  }, "__spreadArray");
@@ -6328,8 +6324,7 @@ const ICommandService = createIdentifier("anywhere.command-service"), _CommandRe
6328
6324
  if (this._commands.has(command.id))
6329
6325
  throw new Error(`[CommandRegistry]: command "${command.id}" has been registered before.`);
6330
6326
  return this._commands.set(command.id, command), this._commandTypes.set(command.id, command.type), toDisposable(() => {
6331
- var _a13;
6332
- this._commands.delete(command.id), this._commandTypes.delete(command.id), (_a13 = command.onDispose) == null || _a13.call(command);
6327
+ this._commands.delete(command.id), this._commandTypes.delete(command.id);
6333
6328
  });
6334
6329
  }
6335
6330
  hasCommand(id) {
@@ -6520,9 +6515,8 @@ const _MultiCommand = class _MultiCommand {
6520
6515
  registerImplementation(implementation) {
6521
6516
  const registry = { command: implementation };
6522
6517
  return this._implementations.push(registry), this._implementations.sort((a, b) => b.command.priority - a.command.priority), toDisposable(() => {
6523
- var _a13;
6524
6518
  const index2 = this._implementations.indexOf(registry);
6525
- this._implementations.splice(index2, 1), (_a13 = implementation.onDispose) == null || _a13.call(implementation);
6519
+ this._implementations.splice(index2, 1);
6526
6520
  });
6527
6521
  }
6528
6522
  hasImplementations() {
@@ -6568,12 +6562,7 @@ const afterInitApply = /* @__PURE__ */ __name((commandService) => new Promise((r
6568
6562
  res();
6569
6563
  });
6570
6564
  }), "afterInitApply");
6571
- var N = /* @__PURE__ */ ((E) => (E[E.UNDEFINED = 0] = "UNDEFINED", E[E.OK = 1] = "OK", E[E.INTERNAL_ERROR = 2] = "INTERNAL_ERROR", E[E.PERMISSION_DENIED = 3] = "PERMISSION_DENIED", E[E.NOT_FOUND = 4] = "NOT_FOUND", E[E.UNAUTHENTICATED = 5] = "UNAUTHENTICATED", E[E.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", E[E.INVALID_ARGUMENT = 7] = "INVALID_ARGUMENT", E[E.TOO_MANY_REQUESTS = 8] = "TOO_MANY_REQUESTS", E[E.COMPLETION_FINISHED = 9] = "COMPLETION_FINISHED", E[E.CHANGESET_REVISION_CONFILICT = 5001] = "CHANGESET_REVISION_CONFILICT", E[E.SNAPSHOT_INVALID_SNAPSHOT = 6001] = "SNAPSHOT_INVALID_SNAPSHOT", E[E.SNAPSHOT_HAS_BEEN_REMOVED = 6002] = "SNAPSHOT_HAS_BEEN_REMOVED", E[E.APPLY_REJECT = 7001] = "APPLY_REJECT", E[E.APPLY_NON_SEQUENTIAL_REVISION = 7002] = "APPLY_NON_SEQUENTIAL_REVISION", E[E.APPLY_REVISION_CONFILICT = 7003] = "APPLY_REVISION_CONFILICT", E[E.APPLY_PERMISSION_DENIED = 7004] = "APPLY_PERMISSION_DENIED", E[E.CONNECTOR_DATA_TOO_LARGE = 8001] = "CONNECTOR_DATA_TOO_LARGE", E[E.LICENSE_MAX_UNITS_EXCEEDED = 9001] = "LICENSE_MAX_UNITS_EXCEEDED", E[E.LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED = 9002] = "LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED", E[E.LICENSE_IMPORT_SIZE_EXCEEDED = 9003] = "LICENSE_IMPORT_SIZE_EXCEEDED", E[E.LICENSE_EXPORT_SIZE_EXCEEDED = 9004] = "LICENSE_EXPORT_SIZE_EXCEEDED", E[E.LICENSE_DISTRO_REJECTED = 9005] = "LICENSE_DISTRO_REJECTED", E[E.YUUMI_UNABLE_LOAD_URL = 10001] = "YUUMI_UNABLE_LOAD_URL", E[E.YUUMI_URL_COL_OUT_OF_RANGE = 10002] = "YUUMI_URL_COL_OUT_OF_RANGE", E[E.YUUMI_RATE_OVER_LIMIT = 10003] = "YUUMI_RATE_OVER_LIMIT", E[E.YUUMI_SUBSCRIPTION_NOT_FOUND = 10004] = "YUUMI_SUBSCRIPTION_NOT_FOUND", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(N || {});
6572
- function H(E) {
6573
- return !!(E && E.code && E.code !== N.OK && E.code !== "OK");
6574
- }
6575
- __name(H, "H");
6576
- var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), L = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(L || {}), M = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(M || {}), l = /* @__PURE__ */ ((E) => (E[E.Unkonwn = 0] = "Unkonwn", E[E.Workbook = 1] = "Workbook", E[E.Worksheet = 2] = "Worksheet", E[E.SelectRange = 3] = "SelectRange", E[E.Document = 4] = "Document", E[E.Slide = 5] = "Slide", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(l || {});
6565
+ var I = /* @__PURE__ */ ((E) => (E[E.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", E[E.UNIVER_DOC = 1] = "UNIVER_DOC", E[E.UNIVER_SHEET = 2] = "UNIVER_SHEET", E[E.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", E[E.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(I || {}), G = /* @__PURE__ */ ((E) => (E[E.Reader = 0] = "Reader", E[E.Editor = 1] = "Editor", E[E.Owner = 2] = "Owner", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(G || {}), H = /* @__PURE__ */ ((E) => (E[E.SomeCollaborator = 0] = "SomeCollaborator", E[E.AllCollaborator = 1] = "AllCollaborator", E[E.OneSelf = 2] = "OneSelf", E[E.UNRECOGNIZED = -1] = "UNRECOGNIZED", E))(H || {});
6577
6566
  const _UnitModel = class _UnitModel extends Disposable {
6578
6567
  };
6579
6568
  __name(_UnitModel, "UnitModel");
@@ -6623,14 +6612,14 @@ function makeCustomRangeStream(stream) {
6623
6612
  return `${stream}`;
6624
6613
  }
6625
6614
  __name(makeCustomRangeStream, "makeCustomRangeStream");
6626
- var QuickListType = /* @__PURE__ */ ((QuickListType2) => (QuickListType2.ORDER_LIST_QUICK_1 = "1.", QuickListType2.ORDER_LIST_QUICK_2 = "a)", QuickListType2.ORDER_LIST_QUICK_3 = "a.", QuickListType2.ORDER_LIST_QUICK_4 = "i.", QuickListType2.ORDER_LIST_QUICK_5 = "A.", QuickListType2.ORDER_LIST_QUICK_6 = "I.", QuickListType2.ORDER_LIST_QUICK_7 = "01.", QuickListType2))(QuickListType || {}), PresetListType = /* @__PURE__ */ ((PresetListType2) => (PresetListType2.BULLET_LIST = "BULLET_LIST", PresetListType2.BULLET_LIST_1 = "BULLET_LIST_1", PresetListType2.BULLET_LIST_2 = "BULLET_LIST_2", PresetListType2.BULLET_LIST_3 = "BULLET_LIST_3", PresetListType2.BULLET_LIST_4 = "BULLET_LIST_4", PresetListType2.BULLET_LIST_5 = "BULLET_LIST_5", PresetListType2.ORDER_LIST = "ORDER_LIST", PresetListType2.ORDER_LIST_1 = "ORDER_LIST_1", PresetListType2.ORDER_LIST_2 = "ORDER_LIST_2", PresetListType2.ORDER_LIST_3 = "ORDER_LIST_3", PresetListType2.ORDER_LIST_4 = "ORDER_LIST_4", PresetListType2.ORDER_LIST_5 = "ORDER_LIST_5", PresetListType2.ORDER_LIST_QUICK_2 = "ORDER_LIST_QUICK_2", PresetListType2.ORDER_LIST_QUICK_3 = "ORDER_LIST_QUICK_3", PresetListType2.ORDER_LIST_QUICK_4 = "ORDER_LIST_QUICK_4", PresetListType2.ORDER_LIST_QUICK_5 = "ORDER_LIST_QUICK_5", PresetListType2.ORDER_LIST_QUICK_6 = "ORDER_LIST_QUICK_6", PresetListType2.CHECK_LIST = "CHECK_LIST", PresetListType2.CHECK_LIST_CHECKED = "CHECK_LIST_CHECKED", PresetListType2))(PresetListType || {});
6615
+ var DocStyleType = /* @__PURE__ */ ((DocStyleType2) => (DocStyleType2[DocStyleType2.character = 0] = "character", DocStyleType2[DocStyleType2.paragraph = 1] = "paragraph", DocStyleType2[DocStyleType2.table = 2] = "table", DocStyleType2[DocStyleType2.numbering = 3] = "numbering", DocStyleType2))(DocStyleType || {}), FollowNumberWithType = /* @__PURE__ */ ((FollowNumberWithType2) => (FollowNumberWithType2[FollowNumberWithType2.TAB = 0] = "TAB", FollowNumberWithType2[FollowNumberWithType2.SPACE = 1] = "SPACE", FollowNumberWithType2[FollowNumberWithType2.NOTHING = 2] = "NOTHING", FollowNumberWithType2))(FollowNumberWithType || {}), GlyphType = /* @__PURE__ */ ((GlyphType2) => (GlyphType2[GlyphType2.BULLET = 0] = "BULLET", GlyphType2[GlyphType2.NONE = 1] = "NONE", GlyphType2[GlyphType2.DECIMAL = 2] = "DECIMAL", GlyphType2[GlyphType2.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", GlyphType2[GlyphType2.UPPER_LETTER = 4] = "UPPER_LETTER", GlyphType2[GlyphType2.LOWER_LETTER = 5] = "LOWER_LETTER", GlyphType2[GlyphType2.UPPER_ROMAN = 6] = "UPPER_ROMAN", GlyphType2[GlyphType2.LOWER_ROMAN = 7] = "LOWER_ROMAN", GlyphType2[GlyphType2.ORDINAL = 8] = "ORDINAL", GlyphType2[GlyphType2.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", GlyphType2[GlyphType2.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", GlyphType2[GlyphType2.HEX = 11] = "HEX", GlyphType2[GlyphType2.CHICAGO = 12] = "CHICAGO", GlyphType2[GlyphType2.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", GlyphType2[GlyphType2.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", GlyphType2[GlyphType2.AIUEO = 15] = "AIUEO", GlyphType2[GlyphType2.IROHA = 16] = "IROHA", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", GlyphType2[GlyphType2.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", GlyphType2[GlyphType2.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", GlyphType2[GlyphType2.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", GlyphType2[GlyphType2.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", GlyphType2[GlyphType2.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", GlyphType2[GlyphType2.GANADA = 25] = "GANADA", GlyphType2[GlyphType2.CHOSUNG = 26] = "CHOSUNG", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", GlyphType2[GlyphType2.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", GlyphType2[GlyphType2.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", GlyphType2[GlyphType2.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", GlyphType2[GlyphType2.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", GlyphType2[GlyphType2.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", GlyphType2[GlyphType2.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", GlyphType2[GlyphType2.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", GlyphType2[GlyphType2.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", GlyphType2[GlyphType2.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", GlyphType2[GlyphType2.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", GlyphType2[GlyphType2.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", GlyphType2[GlyphType2.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", GlyphType2[GlyphType2.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", GlyphType2[GlyphType2.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", GlyphType2[GlyphType2.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", GlyphType2[GlyphType2.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", GlyphType2[GlyphType2.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", GlyphType2[GlyphType2.HEBREW1 = 49] = "HEBREW1", GlyphType2[GlyphType2.HEBREW2 = 50] = "HEBREW2", GlyphType2[GlyphType2.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", GlyphType2[GlyphType2.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", GlyphType2[GlyphType2.HINDI_VOWELS = 53] = "HINDI_VOWELS", GlyphType2[GlyphType2.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", GlyphType2[GlyphType2.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", GlyphType2[GlyphType2.HINDI_COUNTING = 56] = "HINDI_COUNTING", GlyphType2[GlyphType2.THAI_LETTERS = 57] = "THAI_LETTERS", GlyphType2[GlyphType2.THAI_NUMBERS = 58] = "THAI_NUMBERS", GlyphType2[GlyphType2.THAI_COUNTING = 59] = "THAI_COUNTING", GlyphType2[GlyphType2.CUSTOM = 60] = "CUSTOM", GlyphType2))(GlyphType || {}), BulletAlignment = /* @__PURE__ */ ((BulletAlignment2) => (BulletAlignment2[BulletAlignment2.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", BulletAlignment2[BulletAlignment2.START = 1] = "START", BulletAlignment2[BulletAlignment2.CENTER = 2] = "CENTER", BulletAlignment2[BulletAlignment2.END = 3] = "END", BulletAlignment2[BulletAlignment2.BOTH = 4] = "BOTH", BulletAlignment2))(BulletAlignment || {}), CustomRangeType = /* @__PURE__ */ ((CustomRangeType2) => (CustomRangeType2[CustomRangeType2.HYPERLINK = 0] = "HYPERLINK", CustomRangeType2[CustomRangeType2.FIELD = 1] = "FIELD", CustomRangeType2[CustomRangeType2.SDT = 2] = "SDT", CustomRangeType2[CustomRangeType2.BOOKMARK = 3] = "BOOKMARK", CustomRangeType2[CustomRangeType2.COMMENT = 4] = "COMMENT", CustomRangeType2[CustomRangeType2.CUSTOM = 5] = "CUSTOM", CustomRangeType2[CustomRangeType2.MENTION = 6] = "MENTION", CustomRangeType2[CustomRangeType2.UNI_FORMULA = 7] = "UNI_FORMULA", CustomRangeType2))(CustomRangeType || {}), CustomDecorationType = /* @__PURE__ */ ((CustomDecorationType2) => (CustomDecorationType2[CustomDecorationType2.COMMENT = 0] = "COMMENT", CustomDecorationType2))(CustomDecorationType || {}), BlockType = /* @__PURE__ */ ((BlockType2) => (BlockType2[BlockType2.DRAWING = 0] = "DRAWING", BlockType2[BlockType2.CUSTOM = 1] = "CUSTOM", BlockType2))(BlockType || {}), DocumentFlavor = /* @__PURE__ */ ((DocumentFlavor2) => (DocumentFlavor2[DocumentFlavor2.TRADITIONAL = 0] = "TRADITIONAL", DocumentFlavor2[DocumentFlavor2.MODERN = 1] = "MODERN", DocumentFlavor2))(DocumentFlavor || {}), GridType = /* @__PURE__ */ ((GridType2) => (GridType2[GridType2.DEFAULT = 0] = "DEFAULT", GridType2[GridType2.LINES = 1] = "LINES", GridType2[GridType2.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", GridType2[GridType2.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", GridType2))(GridType || {}), SectionType = /* @__PURE__ */ ((SectionType2) => (SectionType2[SectionType2.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", SectionType2[SectionType2.CONTINUOUS = 1] = "CONTINUOUS", SectionType2[SectionType2.NEXT_PAGE = 2] = "NEXT_PAGE", SectionType2[SectionType2.EVEN_PAGE = 3] = "EVEN_PAGE", SectionType2[SectionType2.ODD_PAGE = 4] = "ODD_PAGE", SectionType2))(SectionType || {}), ColumnSeparatorType = /* @__PURE__ */ ((ColumnSeparatorType2) => (ColumnSeparatorType2[ColumnSeparatorType2.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", ColumnSeparatorType2[ColumnSeparatorType2.NONE = 1] = "NONE", ColumnSeparatorType2[ColumnSeparatorType2.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", ColumnSeparatorType2))(ColumnSeparatorType || {}), TextDirectionType = /* @__PURE__ */ ((TextDirectionType2) => (TextDirectionType2[TextDirectionType2.NORMAL = 0] = "NORMAL", TextDirectionType2[TextDirectionType2.TBRL = 1] = "TBRL", TextDirectionType2[TextDirectionType2.LRTBV = 2] = "LRTBV", TextDirectionType2))(TextDirectionType || {}), ParagraphElementType = /* @__PURE__ */ ((ParagraphElementType2) => (ParagraphElementType2[ParagraphElementType2.TEXT_RUN = 0] = "TEXT_RUN", ParagraphElementType2[ParagraphElementType2.AUTO_TEXT = 1] = "AUTO_TEXT", ParagraphElementType2[ParagraphElementType2.PAGE_BREAK = 2] = "PAGE_BREAK", ParagraphElementType2[ParagraphElementType2.COLUMN_BREAK = 3] = "COLUMN_BREAK", ParagraphElementType2[ParagraphElementType2.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", ParagraphElementType2[ParagraphElementType2.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", ParagraphElementType2[ParagraphElementType2.EQUATION = 6] = "EQUATION", ParagraphElementType2[ParagraphElementType2.DRAWING = 7] = "DRAWING", ParagraphElementType2[ParagraphElementType2.PERSON = 8] = "PERSON", ParagraphElementType2[ParagraphElementType2.RICH_LINK = 9] = "RICH_LINK", ParagraphElementType2))(ParagraphElementType || {}), WrapTextType = /* @__PURE__ */ ((WrapTextType2) => (WrapTextType2[WrapTextType2.BOTH_SIDES = 0] = "BOTH_SIDES", WrapTextType2[WrapTextType2.LEFT = 1] = "LEFT", WrapTextType2[WrapTextType2.RIGHT = 2] = "RIGHT", WrapTextType2[WrapTextType2.LARGEST = 3] = "LARGEST", WrapTextType2))(WrapTextType || {}), PositionedObjectLayoutType = /* @__PURE__ */ ((PositionedObjectLayoutType2) => (PositionedObjectLayoutType2[PositionedObjectLayoutType2.INLINE = 0] = "INLINE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_NONE = 1] = "WRAP_NONE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_POLYGON = 2] = "WRAP_POLYGON", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_SQUARE = 3] = "WRAP_SQUARE", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_THROUGH = 4] = "WRAP_THROUGH", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TIGHT = 5] = "WRAP_TIGHT", PositionedObjectLayoutType2[PositionedObjectLayoutType2.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", PositionedObjectLayoutType2))(PositionedObjectLayoutType || {}), NamedStyleType = /* @__PURE__ */ ((NamedStyleType2) => (NamedStyleType2[NamedStyleType2.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", NamedStyleType2[NamedStyleType2.NORMAL_TEXT = 1] = "NORMAL_TEXT", NamedStyleType2[NamedStyleType2.TITLE = 2] = "TITLE", NamedStyleType2[NamedStyleType2.SUBTITLE = 3] = "SUBTITLE", NamedStyleType2[NamedStyleType2.HEADING_1 = 4] = "HEADING_1", NamedStyleType2[NamedStyleType2.HEADING_2 = 5] = "HEADING_2", NamedStyleType2[NamedStyleType2.HEADING_3 = 6] = "HEADING_3", NamedStyleType2[NamedStyleType2.HEADING_4 = 7] = "HEADING_4", NamedStyleType2[NamedStyleType2.HEADING_5 = 8] = "HEADING_5", NamedStyleType2[NamedStyleType2.HEADING_6 = 9] = "HEADING_6", NamedStyleType2))(NamedStyleType || {}), SpacingRule = /* @__PURE__ */ ((SpacingRule2) => (SpacingRule2[SpacingRule2.AUTO = 0] = "AUTO", SpacingRule2[SpacingRule2.AT_LEAST = 1] = "AT_LEAST", SpacingRule2[SpacingRule2.EXACT = 2] = "EXACT", SpacingRule2))(SpacingRule || {}), DashStyleType = /* @__PURE__ */ ((DashStyleType2) => (DashStyleType2[DashStyleType2.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", DashStyleType2[DashStyleType2.SOLID = 1] = "SOLID", DashStyleType2[DashStyleType2.DOT = 2] = "DOT", DashStyleType2[DashStyleType2.DASH = 3] = "DASH", DashStyleType2))(DashStyleType || {}), TabStopAlignment = /* @__PURE__ */ ((TabStopAlignment2) => (TabStopAlignment2[TabStopAlignment2.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", TabStopAlignment2[TabStopAlignment2.START = 1] = "START", TabStopAlignment2[TabStopAlignment2.CENTER = 2] = "CENTER", TabStopAlignment2[TabStopAlignment2.END = 3] = "END", TabStopAlignment2))(TabStopAlignment || {}), TableSizeType = /* @__PURE__ */ ((TableSizeType2) => (TableSizeType2[TableSizeType2.UNSPECIFIED = 0] = "UNSPECIFIED", TableSizeType2[TableSizeType2.SPECIFIED = 1] = "SPECIFIED", TableSizeType2))(TableSizeType || {}), TableAlignmentType = /* @__PURE__ */ ((TableAlignmentType2) => (TableAlignmentType2[TableAlignmentType2.START = 0] = "START", TableAlignmentType2[TableAlignmentType2.CENTER = 1] = "CENTER", TableAlignmentType2[TableAlignmentType2.END = 2] = "END", TableAlignmentType2))(TableAlignmentType || {}), TableLayoutType = /* @__PURE__ */ ((TableLayoutType2) => (TableLayoutType2[TableLayoutType2.AUTO_FIT = 0] = "AUTO_FIT", TableLayoutType2[TableLayoutType2.FIXED = 1] = "FIXED", TableLayoutType2))(TableLayoutType || {}), TableTextWrapType = /* @__PURE__ */ ((TableTextWrapType2) => (TableTextWrapType2[TableTextWrapType2.NONE = 0] = "NONE", TableTextWrapType2[TableTextWrapType2.WRAP = 1] = "WRAP", TableTextWrapType2))(TableTextWrapType || {}), TableCellHeightRule = /* @__PURE__ */ ((TableCellHeightRule2) => (TableCellHeightRule2[TableCellHeightRule2.AUTO = 0] = "AUTO", TableCellHeightRule2[TableCellHeightRule2.AT_LEAST = 1] = "AT_LEAST", TableCellHeightRule2[TableCellHeightRule2.EXACT = 2] = "EXACT", TableCellHeightRule2))(TableCellHeightRule || {}), VerticalAlignmentType = /* @__PURE__ */ ((VerticalAlignmentType2) => (VerticalAlignmentType2[VerticalAlignmentType2.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", VerticalAlignmentType2[VerticalAlignmentType2.BOTH = 1] = "BOTH", VerticalAlignmentType2[VerticalAlignmentType2.TOP = 2] = "TOP", VerticalAlignmentType2[VerticalAlignmentType2.CENTER = 3] = "CENTER", VerticalAlignmentType2[VerticalAlignmentType2.BOTTOM = 4] = "BOTTOM", VerticalAlignmentType2))(VerticalAlignmentType || {}), FontStyleType = /* @__PURE__ */ ((FontStyleType2) => (FontStyleType2.NORMAL = "normal", FontStyleType2.BOLD = "bold", FontStyleType2.ITALIC = "italic", FontStyleType2))(FontStyleType || {}), ObjectRelativeFromH = /* @__PURE__ */ ((ObjectRelativeFromH2) => (ObjectRelativeFromH2[ObjectRelativeFromH2.PAGE = 0] = "PAGE", ObjectRelativeFromH2[ObjectRelativeFromH2.COLUMN = 1] = "COLUMN", ObjectRelativeFromH2[ObjectRelativeFromH2.CHARACTER = 2] = "CHARACTER", ObjectRelativeFromH2[ObjectRelativeFromH2.MARGIN = 3] = "MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.LEFT_MARGIN = 6] = "LEFT_MARGIN", ObjectRelativeFromH2[ObjectRelativeFromH2.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", ObjectRelativeFromH2))(ObjectRelativeFromH || {}), ObjectRelativeFromV = /* @__PURE__ */ ((ObjectRelativeFromV2) => (ObjectRelativeFromV2[ObjectRelativeFromV2.PAGE = 0] = "PAGE", ObjectRelativeFromV2[ObjectRelativeFromV2.PARAGRAPH = 1] = "PARAGRAPH", ObjectRelativeFromV2[ObjectRelativeFromV2.LINE = 2] = "LINE", ObjectRelativeFromV2[ObjectRelativeFromV2.MARGIN = 3] = "MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.TOP_MARGIN = 4] = "TOP_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", ObjectRelativeFromV2[ObjectRelativeFromV2.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", ObjectRelativeFromV2))(ObjectRelativeFromV || {}), NumberUnitType = /* @__PURE__ */ ((NumberUnitType2) => (NumberUnitType2[NumberUnitType2.POINT = 0] = "POINT", NumberUnitType2[NumberUnitType2.LINE = 1] = "LINE", NumberUnitType2[NumberUnitType2.CHARACTER = 2] = "CHARACTER", NumberUnitType2[NumberUnitType2.PIXEL = 3] = "PIXEL", NumberUnitType2[NumberUnitType2.PERCENT = 4] = "PERCENT", NumberUnitType2))(NumberUnitType || {}), AlignTypeH = /* @__PURE__ */ ((AlignTypeH2) => (AlignTypeH2[AlignTypeH2.CENTER = 0] = "CENTER", AlignTypeH2[AlignTypeH2.INSIDE = 1] = "INSIDE", AlignTypeH2[AlignTypeH2.LEFT = 2] = "LEFT", AlignTypeH2[AlignTypeH2.OUTSIDE = 3] = "OUTSIDE", AlignTypeH2[AlignTypeH2.RIGHT = 4] = "RIGHT", AlignTypeH2[AlignTypeH2.BOTH = 5] = "BOTH", AlignTypeH2[AlignTypeH2.DISTRIBUTE = 6] = "DISTRIBUTE", AlignTypeH2))(AlignTypeH || {}), AlignTypeV = /* @__PURE__ */ ((AlignTypeV2) => (AlignTypeV2[AlignTypeV2.BOTTOM = 0] = "BOTTOM", AlignTypeV2[AlignTypeV2.CENTER = 1] = "CENTER", AlignTypeV2[AlignTypeV2.INSIDE = 2] = "INSIDE", AlignTypeV2[AlignTypeV2.OUTSIDE = 3] = "OUTSIDE", AlignTypeV2[AlignTypeV2.TOP = 4] = "TOP", AlignTypeV2))(AlignTypeV || {}), characterSpacingControlType = /* @__PURE__ */ ((characterSpacingControlType2) => (characterSpacingControlType2[characterSpacingControlType2.compressPunctuation = 0] = "compressPunctuation", characterSpacingControlType2[characterSpacingControlType2.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", characterSpacingControlType2[characterSpacingControlType2.doNotCompress = 2] = "doNotCompress", characterSpacingControlType2))(characterSpacingControlType || {}), PageOrientType = /* @__PURE__ */ ((PageOrientType2) => (PageOrientType2[PageOrientType2.PORTRAIT = 0] = "PORTRAIT", PageOrientType2[PageOrientType2.LANDSCAPE = 1] = "LANDSCAPE", PageOrientType2))(PageOrientType || {}), ArrangeTypeEnum = /* @__PURE__ */ ((ArrangeTypeEnum2) => (ArrangeTypeEnum2[ArrangeTypeEnum2.forward = 0] = "forward", ArrangeTypeEnum2[ArrangeTypeEnum2.backward = 1] = "backward", ArrangeTypeEnum2[ArrangeTypeEnum2.front = 2] = "front", ArrangeTypeEnum2[ArrangeTypeEnum2.back = 3] = "back", ArrangeTypeEnum2))(ArrangeTypeEnum || {}), DrawingTypeEnum = /* @__PURE__ */ ((DrawingTypeEnum2) => (DrawingTypeEnum2[DrawingTypeEnum2.UNRECOGNIZED = -1] = "UNRECOGNIZED", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_IMAGE = 0] = "DRAWING_IMAGE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SHAPE = 1] = "DRAWING_SHAPE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_CHART = 2] = "DRAWING_CHART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_TABLE = 3] = "DRAWING_TABLE", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_SMART_ART = 4] = "DRAWING_SMART_ART", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_VIDEO = 5] = "DRAWING_VIDEO", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_GROUP = 6] = "DRAWING_GROUP", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_UNIT = 7] = "DRAWING_UNIT", DrawingTypeEnum2[DrawingTypeEnum2.DRAWING_DOM = 8] = "DRAWING_DOM", DrawingTypeEnum2))(DrawingTypeEnum || {}), QuickListType = /* @__PURE__ */ ((QuickListType2) => (QuickListType2.ORDER_LIST_QUICK_1 = "1.", QuickListType2.ORDER_LIST_QUICK_2 = "a)", QuickListType2.ORDER_LIST_QUICK_3 = "a.", QuickListType2.ORDER_LIST_QUICK_4 = "i.", QuickListType2.ORDER_LIST_QUICK_5 = "A.", QuickListType2.ORDER_LIST_QUICK_6 = "I.", QuickListType2.ORDER_LIST_QUICK_7 = "01.", QuickListType2))(QuickListType || {}), PresetListType = /* @__PURE__ */ ((PresetListType2) => (PresetListType2.BULLET_LIST = "BULLET_LIST", PresetListType2.BULLET_LIST_1 = "BULLET_LIST_1", PresetListType2.BULLET_LIST_2 = "BULLET_LIST_2", PresetListType2.BULLET_LIST_3 = "BULLET_LIST_3", PresetListType2.BULLET_LIST_4 = "BULLET_LIST_4", PresetListType2.BULLET_LIST_5 = "BULLET_LIST_5", PresetListType2.ORDER_LIST = "ORDER_LIST", PresetListType2.ORDER_LIST_1 = "ORDER_LIST_1", PresetListType2.ORDER_LIST_2 = "ORDER_LIST_2", PresetListType2.ORDER_LIST_3 = "ORDER_LIST_3", PresetListType2.ORDER_LIST_4 = "ORDER_LIST_4", PresetListType2.ORDER_LIST_5 = "ORDER_LIST_5", PresetListType2.ORDER_LIST_QUICK_2 = "ORDER_LIST_QUICK_2", PresetListType2.ORDER_LIST_QUICK_3 = "ORDER_LIST_QUICK_3", PresetListType2.ORDER_LIST_QUICK_4 = "ORDER_LIST_QUICK_4", PresetListType2.ORDER_LIST_QUICK_5 = "ORDER_LIST_QUICK_5", PresetListType2.ORDER_LIST_QUICK_6 = "ORDER_LIST_QUICK_6", PresetListType2.CHECK_LIST = "CHECK_LIST", PresetListType2.CHECK_LIST_CHECKED = "CHECK_LIST_CHECKED", PresetListType2))(PresetListType || {});
6627
6616
  const orderListSymbolMap = {
6628
- "a)": { glyphFormat: " %1)", glyphType: GlyphType.DECIMAL },
6629
- "1.": { glyphFormat: " %1.", glyphType: GlyphType.DECIMAL },
6630
- "a.": { glyphFormat: " %1.", glyphType: GlyphType.LOWER_LETTER },
6631
- "A.": { glyphFormat: " %1.", glyphType: GlyphType.UPPER_LETTER },
6632
- "i.": { glyphFormat: " %1.", glyphType: GlyphType.LOWER_ROMAN },
6633
- "I.": { glyphFormat: " %1.", glyphType: GlyphType.UPPER_LETTER }
6617
+ "a)": { glyphFormat: "%1)", glyphType: GlyphType.DECIMAL },
6618
+ "1.": { glyphFormat: "%1.", glyphType: GlyphType.DECIMAL },
6619
+ "a.": { glyphFormat: "%1.", glyphType: GlyphType.LOWER_LETTER },
6620
+ "A.": { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
6621
+ "i.": { glyphFormat: "%1.", glyphType: GlyphType.LOWER_ROMAN },
6622
+ "I.": { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER }
6634
6623
  }, bulletListFactory = /* @__PURE__ */ __name((symbols) => [
6635
6624
  ...symbols,
6636
6625
  ...symbols,
@@ -6699,95 +6688,88 @@ const orderListSymbolMap = {
6699
6688
  ORDER_LIST: {
6700
6689
  listType: "ORDER_LIST",
6701
6690
  nestingLevel: orderListFactory([
6702
- { glyphFormat: " %1.", glyphType: GlyphType.DECIMAL },
6703
- { glyphFormat: " %2.", glyphType: GlyphType.LOWER_LETTER },
6704
- { glyphFormat: " %3.", glyphType: GlyphType.LOWER_ROMAN },
6705
- { glyphFormat: " %4.", glyphType: GlyphType.DECIMAL },
6706
- { glyphFormat: " %5.", glyphType: GlyphType.LOWER_LETTER },
6707
- { glyphFormat: " %6.", glyphType: GlyphType.LOWER_ROMAN },
6708
- { glyphFormat: " %7.", glyphType: GlyphType.DECIMAL },
6709
- { glyphFormat: " %8.", glyphType: GlyphType.LOWER_LETTER },
6710
- { glyphFormat: " %9.", glyphType: GlyphType.LOWER_ROMAN }
6691
+ { glyphFormat: "%1.", glyphType: GlyphType.DECIMAL },
6692
+ { glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
6693
+ { glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
6694
+ { glyphFormat: "%4.", glyphType: GlyphType.DECIMAL },
6695
+ { glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
6696
+ { glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
6697
+ { glyphFormat: "%7.", glyphType: GlyphType.DECIMAL },
6698
+ { glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
6699
+ { glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
6711
6700
  ])
6712
6701
  },
6713
6702
  ORDER_LIST_1: {
6714
6703
  listType: "ORDER_LIST",
6715
6704
  nestingLevel: orderListFactory([
6716
- { glyphFormat: " %1)", glyphType: GlyphType.DECIMAL },
6717
- { glyphFormat: " %2)", glyphType: GlyphType.LOWER_LETTER },
6718
- { glyphFormat: " %3)", glyphType: GlyphType.LOWER_ROMAN },
6719
- { glyphFormat: " %4)", glyphType: GlyphType.DECIMAL },
6720
- { glyphFormat: " %5)", glyphType: GlyphType.LOWER_LETTER },
6721
- { glyphFormat: " %6)", glyphType: GlyphType.LOWER_ROMAN },
6722
- { glyphFormat: " %7)", glyphType: GlyphType.DECIMAL },
6723
- { glyphFormat: " %8)", glyphType: GlyphType.LOWER_LETTER },
6724
- { glyphFormat: " %9)", glyphType: GlyphType.LOWER_ROMAN }
6705
+ { glyphFormat: "%1)", glyphType: GlyphType.DECIMAL },
6706
+ { glyphFormat: "%2)", glyphType: GlyphType.LOWER_LETTER },
6707
+ { glyphFormat: "%3)", glyphType: GlyphType.LOWER_ROMAN },
6708
+ { glyphFormat: "%4)", glyphType: GlyphType.DECIMAL },
6709
+ { glyphFormat: "%5)", glyphType: GlyphType.LOWER_LETTER },
6710
+ { glyphFormat: "%6)", glyphType: GlyphType.LOWER_ROMAN },
6711
+ { glyphFormat: "%7)", glyphType: GlyphType.DECIMAL },
6712
+ { glyphFormat: "%8)", glyphType: GlyphType.LOWER_LETTER },
6713
+ { glyphFormat: "%9)", glyphType: GlyphType.LOWER_ROMAN }
6725
6714
  ])
6726
6715
  },
6727
6716
  ORDER_LIST_2: {
6728
6717
  listType: "ORDER_LIST",
6729
6718
  nestingLevel: orderListFactory([
6730
- " %1.",
6731
- " %1.%2.",
6732
- " %1.%2.%3.",
6733
- " %1.%2.%3.%4.",
6734
- " %1.%2.%3.%4.%5.",
6735
- " %1.%2.%3.%4.%5.%6.",
6736
- " %1.%2.%3.%4.%5.%6.%7."
6719
+ "%1.",
6720
+ "%1.%2.",
6721
+ "%1.%2.%3.",
6722
+ "%1.%2.%3.%4.",
6723
+ "%1.%2.%3.%4.%5.",
6724
+ "%1.%2.%3.%4.%5.%6.",
6725
+ "%1.%2.%3.%4.%5.%6.%7."
6737
6726
  ].map((format) => ({ glyphFormat: format, glyphType: GlyphType.DECIMAL })))
6738
6727
  },
6739
6728
  ORDER_LIST_3: {
6740
6729
  listType: "ORDER_LIST",
6741
6730
  nestingLevel: orderListFactory([
6742
- { glyphFormat: " %1.", glyphType: GlyphType.UPPER_LETTER },
6743
- { glyphFormat: " %2.", glyphType: GlyphType.LOWER_LETTER },
6744
- { glyphFormat: " %3.", glyphType: GlyphType.LOWER_ROMAN },
6745
- { glyphFormat: " %4.", glyphType: GlyphType.UPPER_LETTER },
6746
- { glyphFormat: " %5.", glyphType: GlyphType.LOWER_LETTER },
6747
- { glyphFormat: " %6.", glyphType: GlyphType.LOWER_ROMAN },
6748
- { glyphFormat: " %7.", glyphType: GlyphType.UPPER_LETTER },
6749
- { glyphFormat: " %8.", glyphType: GlyphType.LOWER_LETTER },
6750
- { glyphFormat: " %9.", glyphType: GlyphType.LOWER_ROMAN }
6731
+ { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
6732
+ { glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
6733
+ { glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
6734
+ { glyphFormat: "%4.", glyphType: GlyphType.UPPER_LETTER },
6735
+ { glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
6736
+ { glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
6737
+ { glyphFormat: "%7.", glyphType: GlyphType.UPPER_LETTER },
6738
+ { glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
6739
+ { glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
6751
6740
  ])
6752
6741
  },
6753
6742
  ORDER_LIST_4: {
6754
6743
  listType: "ORDER_LIST",
6755
6744
  nestingLevel: orderListFactory([
6756
- { glyphFormat: " %1.", glyphType: GlyphType.UPPER_LETTER },
6757
- { glyphFormat: " %2.", glyphType: GlyphType.DECIMAL },
6758
- { glyphFormat: " %3.", glyphType: GlyphType.LOWER_ROMAN },
6759
- { glyphFormat: " %4.", glyphType: GlyphType.UPPER_LETTER },
6760
- { glyphFormat: " %5.", glyphType: GlyphType.DECIMAL },
6761
- { glyphFormat: " %6.", glyphType: GlyphType.LOWER_ROMAN },
6762
- { glyphFormat: " %7.", glyphType: GlyphType.UPPER_LETTER },
6763
- { glyphFormat: " %8.", glyphType: GlyphType.DECIMAL },
6764
- { glyphFormat: " %9.", glyphType: GlyphType.LOWER_ROMAN }
6745
+ { glyphFormat: "%1.", glyphType: GlyphType.UPPER_LETTER },
6746
+ { glyphFormat: "%2.", glyphType: GlyphType.DECIMAL },
6747
+ { glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
6748
+ { glyphFormat: "%4.", glyphType: GlyphType.UPPER_LETTER },
6749
+ { glyphFormat: "%5.", glyphType: GlyphType.DECIMAL },
6750
+ { glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
6751
+ { glyphFormat: "%7.", glyphType: GlyphType.UPPER_LETTER },
6752
+ { glyphFormat: "%8.", glyphType: GlyphType.DECIMAL },
6753
+ { glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
6765
6754
  ])
6766
6755
  },
6767
6756
  ORDER_LIST_5: {
6768
6757
  listType: "ORDER_LIST",
6769
6758
  nestingLevel: orderListFactory([
6770
- { glyphFormat: " %1.", glyphType: GlyphType.DECIMAL_ZERO },
6771
- { glyphFormat: " %2.", glyphType: GlyphType.LOWER_LETTER },
6772
- { glyphFormat: " %3.", glyphType: GlyphType.LOWER_ROMAN },
6773
- { glyphFormat: " %4.", glyphType: GlyphType.DECIMAL_ZERO },
6774
- { glyphFormat: " %5.", glyphType: GlyphType.LOWER_LETTER },
6775
- { glyphFormat: " %6.", glyphType: GlyphType.LOWER_ROMAN },
6776
- { glyphFormat: " %7.", glyphType: GlyphType.DECIMAL_ZERO },
6777
- { glyphFormat: " %8.", glyphType: GlyphType.LOWER_LETTER },
6778
- { glyphFormat: " %9.", glyphType: GlyphType.LOWER_ROMAN }
6759
+ { glyphFormat: "%1.", glyphType: GlyphType.DECIMAL_ZERO },
6760
+ { glyphFormat: "%2.", glyphType: GlyphType.LOWER_LETTER },
6761
+ { glyphFormat: "%3.", glyphType: GlyphType.LOWER_ROMAN },
6762
+ { glyphFormat: "%4.", glyphType: GlyphType.DECIMAL_ZERO },
6763
+ { glyphFormat: "%5.", glyphType: GlyphType.LOWER_LETTER },
6764
+ { glyphFormat: "%6.", glyphType: GlyphType.LOWER_ROMAN },
6765
+ { glyphFormat: "%7.", glyphType: GlyphType.DECIMAL_ZERO },
6766
+ { glyphFormat: "%8.", glyphType: GlyphType.LOWER_LETTER },
6767
+ { glyphFormat: "%9.", glyphType: GlyphType.LOWER_ROMAN }
6779
6768
  ])
6780
6769
  },
6781
6770
  CHECK_LIST: {
6782
6771
  listType: "CHECK_LIST",
6783
- nestingLevel: checkListFactory(
6784
- "☐",
6785
- {
6786
- st: {
6787
- s: BooleanNumber.FALSE
6788
- }
6789
- }
6790
- )
6772
+ nestingLevel: checkListFactory("☐")
6791
6773
  },
6792
6774
  CHECK_LIST_CHECKED: {
6793
6775
  listType: "CHECK_LIST_CHECKED",
@@ -7071,14 +7053,16 @@ function deleteTextRuns(body, textLength, currentIndex) {
7071
7053
  const newTextRuns = [];
7072
7054
  for (let i = 0, len = textRuns.length; i < len; i++) {
7073
7055
  const textRun = textRuns[i], { st, ed } = textRun;
7074
- if (startIndex <= st && endIndex >= ed) {
7075
- removeTextRuns.push({
7056
+ if (startIndex <= st && endIndex >= ed)
7057
+ if (removeTextRuns.push({
7076
7058
  ...textRun,
7077
7059
  st: st - startIndex,
7078
7060
  ed: ed - startIndex
7079
- });
7080
- continue;
7081
- } else st <= startIndex && ed >= endIndex ? (removeTextRuns.push({
7061
+ }), startIndex === st)
7062
+ textRun.ed = st;
7063
+ else
7064
+ continue;
7065
+ else st <= startIndex && ed >= endIndex ? (removeTextRuns.push({
7082
7066
  ...textRun,
7083
7067
  st: startIndex - startIndex,
7084
7068
  ed: endIndex - startIndex
@@ -9720,15 +9704,17 @@ const DEFAULT_DOC = {
9720
9704
  getBody() {
9721
9705
  return this.snapshot.body;
9722
9706
  }
9723
- getShouldRenderLoopImmediately() {
9724
- return this.snapshot.shouldStartRenderingImmediately !== !1;
9725
- }
9726
- getContainer() {
9727
- return this.snapshot.container;
9728
- }
9729
9707
  getSnapshot() {
9730
9708
  return this.snapshot;
9731
9709
  }
9710
+ getBulletPresetList() {
9711
+ var _a13;
9712
+ const customLists = (_a13 = this.snapshot.lists) != null ? _a13 : {};
9713
+ return {
9714
+ ...PRESET_LIST_TYPE,
9715
+ ...customLists
9716
+ };
9717
+ }
9732
9718
  updateDocumentId(unitId) {
9733
9719
  this.snapshot.id = unitId;
9734
9720
  }
@@ -9746,8 +9732,8 @@ const DEFAULT_DOC = {
9746
9732
  };
9747
9733
  }
9748
9734
  updateDocumentDataMargin(data) {
9749
- const { t, l: l2, b, r } = data, { documentStyle } = this.snapshot;
9750
- t != null && (documentStyle.marginTop = t), l2 != null && (documentStyle.marginLeft = l2), b != null && (documentStyle.marginBottom = b), r != null && (documentStyle.marginRight = r);
9735
+ const { t, l, b, r } = data, { documentStyle } = this.snapshot;
9736
+ t != null && (documentStyle.marginTop = t), l != null && (documentStyle.marginLeft = l), b != null && (documentStyle.marginBottom = b), r != null && (documentStyle.marginRight = r);
9751
9737
  }
9752
9738
  updateDocumentDataPageSize(width, height) {
9753
9739
  const { documentStyle } = this.snapshot;
@@ -9848,12 +9834,12 @@ const _DocumentDataModel = class _DocumentDataModel extends DocumentDataModelSim
9848
9834
  if (headers)
9849
9835
  for (const headerId in headers) {
9850
9836
  const header = headers[headerId];
9851
- this.headerModelMap.set(headerId, new _DocumentDataModel(header));
9837
+ this.headerModelMap.set(headerId, new _DocumentDataModel(header)), this.headerModelMap.get(headerId).updateDocumentId(this.getUnitId());
9852
9838
  }
9853
9839
  if (footers)
9854
9840
  for (const footerId in footers) {
9855
9841
  const footer = footers[footerId];
9856
- this.footerModelMap.set(footerId, new _DocumentDataModel(footer));
9842
+ this.footerModelMap.set(footerId, new _DocumentDataModel(footer)), this.footerModelMap.get(footerId).updateDocumentId(this.getUnitId());
9857
9843
  }
9858
9844
  }
9859
9845
  updateDocumentId(unitId) {
@@ -10219,7 +10205,6 @@ function mergeWorksheetSnapshotWithDefault(snapshot) {
10219
10205
  height: DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
10220
10206
  hidden: BooleanNumber.FALSE
10221
10207
  },
10222
- selections: ["A1"],
10223
10208
  rightToLeft: BooleanNumber.FALSE
10224
10209
  };
10225
10210
  return Object.keys(defaultSnapshot).forEach((_key) => {
@@ -10372,6 +10357,16 @@ const _Worksheet = class _Worksheet {
10372
10357
  }
10373
10358
  return null;
10374
10359
  }
10360
+ /**
10361
+ * Get cellData, includes cellData, customRender, markers, dataValidate, etc.
10362
+ *
10363
+ * WARNING: All sheet CELL_CONTENT interceptors will be called in this method, cause performance issue.
10364
+ * example: this._sheetInterceptorService.intercept(INTERCEPTOR_POINT.CELL_CONTENT);
10365
+ *
10366
+ * @param row
10367
+ * @param col
10368
+ * @returns ICellDataForSheetInterceptor
10369
+ */
10375
10370
  getCell(row, col) {
10376
10371
  return row < 0 || col < 0 ? null : this._viewModel.getCell(row, col);
10377
10372
  }
@@ -10690,7 +10685,7 @@ function extractPureTextFromCell(cell) {
10690
10685
  return typeof rawValue == "string" ? cell.t === CellValueType.BOOLEAN ? rawValue.toUpperCase() : rawValue.replace(/[\r\n]/g, "") : typeof rawValue == "number" ? cell.t === CellValueType.BOOLEAN ? rawValue ? "TRUE" : "FALSE" : rawValue.toString() : typeof rawValue == "boolean" ? rawValue ? "TRUE" : "FALSE" : "";
10691
10686
  }
10692
10687
  __name(extractPureTextFromCell, "extractPureTextFromCell");
10693
- const version = "0.2.8";
10688
+ const version = "0.2.10";
10694
10689
  function getEmptySnapshot(unitID = "", locale = LocaleType.ZH_CN, name = "") {
10695
10690
  return {
10696
10691
  id: unitID,
@@ -10756,15 +10751,26 @@ let Workbook = (_a3 = class extends UnitModel {
10756
10751
  get name() {
10757
10752
  return this._name$.getValue();
10758
10753
  }
10754
+ static isIRangeType(range) {
10755
+ return typeof range == "string" || "startRow" in range || "row" in range;
10756
+ }
10759
10757
  dispose() {
10760
10758
  super.dispose(), this._sheetCreated$.complete(), this._sheetDisposed$.complete(), this._activeSheet$.complete(), this._name$.complete();
10761
10759
  }
10760
+ /**
10761
+ * Create a clone of the current snapshot.
10762
+ * Call resourceLoaderService.saveWorkbook to save the data associated with the current plugin if needed.
10763
+ * @memberof Workbook
10764
+ */
10762
10765
  save() {
10763
10766
  return Tools.deepClone(this._snapshot);
10764
10767
  }
10765
- static isIRangeType(range) {
10766
- return typeof range == "string" || "startRow" in range || "row" in range;
10767
- }
10768
+ /**
10769
+ * Get current snapshot reference.
10770
+ * Call resourceLoaderService.saveWorkbook to save the data associated with the current plugin if needed.
10771
+ * @return {*} {IWorkbookData}
10772
+ * @memberof Workbook
10773
+ */
10768
10774
  getSnapshot() {
10769
10775
  return this._snapshot;
10770
10776
  }
@@ -10785,12 +10791,6 @@ let Workbook = (_a3 = class extends UnitModel {
10785
10791
  incrementRev() {
10786
10792
  this._snapshot.rev = this.getRev() + 1;
10787
10793
  }
10788
- getShouldRenderLoopImmediately() {
10789
- return this._snapshot.shouldStartRenderingImmediately !== !1;
10790
- }
10791
- getContainer() {
10792
- return this._snapshot.container;
10793
- }
10794
10794
  /**
10795
10795
  * Add a Worksheet into Workbook.
10796
10796
  */
@@ -10950,6 +10950,7 @@ let Workbook = (_a3 = class extends UnitModel {
10950
10950
  Workbook = __decorateClass$7([
10951
10951
  __decorateParam$6(1, ILogService)
10952
10952
  ], Workbook);
10953
+ var PageType = /* @__PURE__ */ ((PageType2) => (PageType2[PageType2.SLIDE = 0] = "SLIDE", PageType2[PageType2.MASTER = 1] = "MASTER", PageType2[PageType2.LAYOUT = 2] = "LAYOUT", PageType2[PageType2.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", PageType2[PageType2.NOTES_MASTER = 4] = "NOTES_MASTER", PageType2))(PageType || {}), PageElementType = /* @__PURE__ */ ((PageElementType2) => (PageElementType2[PageElementType2.SHAPE = 0] = "SHAPE", PageElementType2[PageElementType2.IMAGE = 1] = "IMAGE", PageElementType2[PageElementType2.TEXT = 2] = "TEXT", PageElementType2[PageElementType2.SPREADSHEET = 3] = "SPREADSHEET", PageElementType2[PageElementType2.DOCUMENT = 4] = "DOCUMENT", PageElementType2[PageElementType2.SLIDE = 5] = "SLIDE", PageElementType2))(PageElementType || {}), RelativeSlideLink = /* @__PURE__ */ ((RelativeSlideLink2) => (RelativeSlideLink2[RelativeSlideLink2.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", RelativeSlideLink2[RelativeSlideLink2.NEXT_SLIDE = 1] = "NEXT_SLIDE", RelativeSlideLink2[RelativeSlideLink2.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", RelativeSlideLink2[RelativeSlideLink2.FIRST_SLIDE = 3] = "FIRST_SLIDE", RelativeSlideLink2[RelativeSlideLink2.LAST_SLIDE = 4] = "LAST_SLIDE", RelativeSlideLink2))(RelativeSlideLink || {});
10953
10954
  const _SlideDataModel = class _SlideDataModel extends UnitModel {
10954
10955
  constructor(snapshot) {
10955
10956
  var _a13;
@@ -10976,9 +10977,6 @@ const _SlideDataModel = class _SlideDataModel extends UnitModel {
10976
10977
  var _a13;
10977
10978
  this._snapshot.title = name, this._name$.next(name), this._unitId = (_a13 = this._snapshot.id) != null ? _a13 : generateRandomId(6);
10978
10979
  }
10979
- getContainer() {
10980
- return this._snapshot.container;
10981
- }
10982
10980
  getSnapshot() {
10983
10981
  return this._snapshot;
10984
10982
  }
@@ -11219,13 +11217,9 @@ let LifecycleService = (_a5 = class extends Disposable {
11219
11217
  return this._lifecycle$.getValue();
11220
11218
  }
11221
11219
  set stage(stage) {
11222
- if (stage < this.stage)
11223
- throw new Error("[LifecycleService]: lifecycle stage cannot go backward!");
11224
- if (stage !== this.stage) {
11225
- if (this._lock)
11226
- throw new Error("[LifecycleService]: cannot set new stage when related logic is all handled!");
11227
- this._lock = !0, this._reportProgress(stage), this._lifecycle$.next(stage), this._lock = !1;
11228
- }
11220
+ if (this._lock) throw new Error("[LifecycleService]: cannot set new stage when related logic is all handled!");
11221
+ if (stage < this.stage) throw new Error("[LifecycleService]: lifecycle stage cannot go backward!");
11222
+ stage !== this.stage && (this._lock = !0, this._reportProgress(stage), this._lifecycle$.next(stage), this._lock = !1);
11229
11223
  }
11230
11224
  dispose() {
11231
11225
  this._lifecycle$.complete(), super.dispose();
@@ -11509,12 +11503,7 @@ var __defProp$4 = Object.defineProperty, __getOwnPropDesc$4 = Object.getOwnPrope
11509
11503
  }, "__decorateClass$4"), __decorateParam$3 = /* @__PURE__ */ __name((index2, decorator) => (target, key) => decorator(target, key, index2), "__decorateParam$3"), _a7;
11510
11504
  let ResourceLoaderService = (_a7 = class extends Disposable {
11511
11505
  constructor(_resourceManagerService, _univerInstanceService) {
11512
- super();
11513
- __publicField(this, "saveWorkbook", /* @__PURE__ */ __name((workbook) => {
11514
- const unitId = workbook.getUnitId(), resources = this._resourceManagerService.getResources(unitId, I.UNIVER_SHEET), snapshot = workbook.getSnapshot();
11515
- return snapshot.resources = resources, snapshot;
11516
- }, "saveWorkbook"));
11517
- this._resourceManagerService = _resourceManagerService, this._univerInstanceService = _univerInstanceService, this._init();
11506
+ super(), this._resourceManagerService = _resourceManagerService, this._univerInstanceService = _univerInstanceService, this._init();
11518
11507
  }
11519
11508
  _init() {
11520
11509
  const handleHookAdd = /* @__PURE__ */ __name((hook) => {
@@ -11569,8 +11558,11 @@ let ResourceLoaderService = (_a7 = class extends Disposable {
11569
11558
  })
11570
11559
  );
11571
11560
  }
11572
- saveDoc(doc) {
11573
- const unitId = doc.getUnitId(), resources = this._resourceManagerService.getResources(unitId, I.UNIVER_DOC), snapshot = doc.getSnapshot();
11561
+ saveUnit(unitId) {
11562
+ const unit = this._univerInstanceService.getUnit(unitId);
11563
+ if (!unit)
11564
+ return null;
11565
+ const resources = this._resourceManagerService.getResources(unitId, unit.type), snapshot = Tools.deepClone(unit.getSnapshot());
11574
11566
  return snapshot.resources = resources, snapshot;
11575
11567
  }
11576
11568
  }, __name(_a7, "ResourceLoaderService"), _a7);
@@ -11992,10 +11984,10 @@ function mergeOverrideWithDependencies(dependencies, override) {
11992
11984
  }
11993
11985
  __name(mergeOverrideWithDependencies, "mergeOverrideWithDependencies");
11994
11986
  const nameMap = {
11995
- [M.Editor]: "Editor",
11996
- [M.Owner]: "Owner",
11997
- [M.Reader]: "Reader",
11998
- [M.UNRECOGNIZED]: "UNRECOGNIZED"
11987
+ [G.Editor]: "Editor",
11988
+ [G.Owner]: "Owner",
11989
+ [G.Reader]: "Reader",
11990
+ [G.UNRECOGNIZED]: "UNRECOGNIZED"
11999
11991
  }, createDefaultUser = /* @__PURE__ */ __name((type2) => type2 ? {
12000
11992
  userID: `${nameMap[type2]}_${Tools.generateRandomId(8)}`,
12001
11993
  name: nameMap[type2],
@@ -12066,7 +12058,7 @@ let AuthzIoLocalService = (_a12 = class {
12066
12058
  }
12067
12059
  _initDefaultUser() {
12068
12060
  const currentUser = this._userManagerService.getCurrentUser();
12069
- currentUser && currentUser.userID || this._userManagerService.setCurrentUser(createDefaultUser(M.Owner));
12061
+ currentUser && currentUser.userID || this._userManagerService.setCurrentUser(createDefaultUser(G.Owner));
12070
12062
  }
12071
12063
  _getRole(type2) {
12072
12064
  const user = this._userManagerService.getCurrentUser();
@@ -12094,19 +12086,7 @@ let AuthzIoLocalService = (_a12 = class {
12094
12086
  });
12095
12087
  }
12096
12088
  async create(config) {
12097
- const id = Tools.generateRandomId(8);
12098
- switch (config.objectType) {
12099
- case l.SelectRange: {
12100
- const params = config.selectRangeObject;
12101
- this._permissionMap.set(id, { ...params, objectType: config.objectType });
12102
- break;
12103
- }
12104
- case l.Worksheet: {
12105
- const params = config.worksheetObject;
12106
- this._permissionMap.set(id, { ...params, objectType: config.objectType, readScope: L.SomeCollaborator });
12107
- }
12108
- }
12109
- return id;
12089
+ return generateRandomId(8);
12110
12090
  }
12111
12091
  async allowed(_config) {
12112
12092
  return Promise.resolve([]);
@@ -12126,10 +12106,13 @@ let AuthzIoLocalService = (_a12 = class {
12126
12106
  objectType: rule.objectType,
12127
12107
  name: rule.name,
12128
12108
  shareOn: !1,
12129
- shareRole: M.Owner,
12109
+ shareRole: G.Owner,
12130
12110
  shareScope: -1,
12131
- creator: createDefaultUser(M.Owner),
12132
- // mock data
12111
+ scope: {
12112
+ read: H.AllCollaborator,
12113
+ edit: H.AllCollaborator
12114
+ },
12115
+ creator: createDefaultUser(G.Owner),
12133
12116
  strategies: [
12134
12117
  {
12135
12118
  action: 6,
@@ -12182,13 +12165,9 @@ let AuthzIoLocalService = (_a12 = class {
12182
12165
  {
12183
12166
  action: 40,
12184
12167
  role: 1
12185
- },
12186
- {
12187
- action: 41,
12188
- role: 1
12189
12168
  }
12190
12169
  ],
12191
- actions: config.actions.map((a) => ({ action: a, allowed: this._getRole(M.Owner) || this._getRole(M.Editor) }))
12170
+ actions: config.actions.map((a) => ({ action: a, allowed: this._getRole(G.Owner) || this._getRole(G.Editor) }))
12192
12171
  };
12193
12172
  result.push(item);
12194
12173
  }
@@ -12317,10 +12296,6 @@ function createUniverInjector(parentInjector, override) {
12317
12296
  return parentInjector ? parentInjector.createChild(dependencies) : new Injector(dependencies);
12318
12297
  }
12319
12298
  __name(createUniverInjector, "createUniverInjector");
12320
- const isRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange))), "isRangesEqual"), isUnitRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && oldRanges.every((oldRange, i) => {
12321
- const current = ranges[i];
12322
- return current.unitId === oldRange.unitId && current.sheetId === oldRange.sheetId && Rectangle.equals(oldRange.range, current.range);
12323
- }), "isUnitRangesEqual");
12324
12299
  function shallowEqual(objA, objB) {
12325
12300
  if (Object.is(objA, objB))
12326
12301
  return !0;
@@ -12535,453 +12510,21 @@ const composeInterceptors = /* @__PURE__ */ __name((interceptors) => function(in
12535
12510
  };
12536
12511
  __name(_InterceptorManager, "InterceptorManager");
12537
12512
  let InterceptorManager = _InterceptorManager;
12538
- const ISnapshotServerService = createIdentifier(
12539
- "univer.snapshot-server-service"
12540
- ), _ClientSnapshotServerService = class _ClientSnapshotServerService {
12541
- constructor() {
12542
- __publicField(this, "_sheetBlockCache", /* @__PURE__ */ new Map());
12543
- }
12544
- /** Load snapshot from a database. */
12545
- getUnitOnRev(context, params) {
12546
- return Promise.resolve({
12547
- snapshot: {
12548
- unitID: "",
12549
- type: I.UNIVER_SHEET,
12550
- rev: 0,
12551
- workbook: void 0,
12552
- doc: void 0
12553
- },
12554
- changesets: [],
12555
- error: {
12556
- code: N.OK,
12557
- message: ""
12558
- }
12559
- });
12560
- }
12561
- /** Load sheet block from a database. */
12562
- getSheetBlock(context, params) {
12563
- const block = this._sheetBlockCache.get(params.blockID);
12564
- return Promise.resolve({
12565
- block,
12566
- error: {
12567
- code: N.OK,
12568
- message: ""
12569
- }
12570
- });
12571
- }
12572
- /** Fetch missing changeset */
12573
- fetchMissingChangesets(context, params) {
12574
- return Promise.resolve({
12575
- changesets: [],
12576
- error: {
12577
- code: N.OK,
12578
- message: ""
12579
- }
12580
- });
12581
- }
12582
- getResourcesRequest(context, params) {
12583
- return Promise.resolve({
12584
- resources: {},
12585
- error: {
12586
- code: N.OK,
12587
- message: ""
12588
- }
12589
- });
12590
- }
12591
- /** Save snapshot to a database. */
12592
- saveSnapshot(context, params) {
12593
- return Promise.resolve({
12594
- error: {
12595
- code: N.OK,
12596
- message: ""
12597
- }
12598
- });
12599
- }
12600
- /** Save sheet block to a database. */
12601
- saveSheetBlock(context, params) {
12602
- const { block } = params;
12603
- return block ? (this._sheetBlockCache.set(block.id, block), Promise.resolve({
12604
- error: {
12605
- code: N.OK,
12606
- message: ""
12607
- },
12608
- blockID: block.id
12609
- })) : Promise.resolve({
12610
- error: {
12611
- code: N.UNDEFINED,
12612
- message: "block is required"
12613
- },
12614
- blockID: ""
12615
- });
12616
- }
12617
- /** Save changeset to a database. */
12618
- saveChangeset(context, params) {
12619
- return Promise.resolve({
12620
- error: {
12621
- code: N.OK,
12622
- message: ""
12623
- },
12624
- concurrent: []
12625
- });
12626
- }
12627
- };
12628
- __name(_ClientSnapshotServerService, "ClientSnapshotServerService");
12629
- let ClientSnapshotServerService = _ClientSnapshotServerService;
12630
- function b64EncodeUnicode(str) {
12631
- return btoa(
12632
- encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode(Number.parseInt(p1, 16)))
12633
- );
12634
- }
12635
- __name(b64EncodeUnicode, "b64EncodeUnicode");
12636
- function b64DecodeUnicode(str) {
12637
- return decodeURIComponent(
12638
- Array.prototype.map.call(atob(str), (c) => `%${`00${c.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")
12639
- );
12640
- }
12641
- __name(b64DecodeUnicode, "b64DecodeUnicode");
12642
- const textEncoder = new TextEncoder(), textDecoder = new TextDecoder();
12643
- function encodeWorksheetOtherMetas(worksheet) {
12644
- const cloned = Tools.deepClone(worksheet);
12645
- return delete cloned.id, delete cloned.name, delete cloned.rowCount, delete cloned.columnCount, delete cloned.cellData, textEncoder.encode(JSON.stringify(cloned));
12646
- }
12647
- __name(encodeWorksheetOtherMetas, "encodeWorksheetOtherMetas");
12648
- function encodeWorkbookOtherMetas(workbook) {
12649
- const cloned = Tools.deepClone(workbook);
12650
- return delete cloned.id, delete cloned.rev, delete cloned.name, delete cloned.sheetOrder, delete cloned.sheets, textEncoder.encode(JSON.stringify(cloned));
12651
- }
12652
- __name(encodeWorkbookOtherMetas, "encodeWorkbookOtherMetas");
12653
- function encodeDocOriginalMeta(document2) {
12654
- const cloned = Tools.deepClone(document2);
12655
- return delete cloned.id, delete cloned.rev, delete cloned.title, delete cloned.resources, textEncoder.encode(JSON.stringify(cloned));
12656
- }
12657
- __name(encodeDocOriginalMeta, "encodeDocOriginalMeta");
12658
- function decodeWorksheetOtherMetas(buffer) {
12659
- return JSON.parse(typeof buffer == "string" ? b64DecodeUnicode(buffer) : textDecoder.decode(buffer));
12660
- }
12661
- __name(decodeWorksheetOtherMetas, "decodeWorksheetOtherMetas");
12662
- function decodePartOfCellData(buffer) {
12663
- return JSON.parse(typeof buffer == "string" ? b64DecodeUnicode(buffer) : textDecoder.decode(buffer));
12664
- }
12665
- __name(decodePartOfCellData, "decodePartOfCellData");
12666
- function decodeDocOriginalMeta(buffer) {
12667
- return JSON.parse(typeof buffer == "string" ? b64DecodeUnicode(buffer) : textDecoder.decode(buffer));
12668
- }
12669
- __name(decodeDocOriginalMeta, "decodeDocOriginalMeta");
12670
- const FRAGMENT_ROW_COUNT = 256 * 20;
12671
- function splitCellDataToBlocks(cellData, maxColumn) {
12672
- const utilObjectMatrix = new ObjectMatrix(cellData), length = utilObjectMatrix.getLength(), blocks = [];
12673
- let i = 0;
12674
- for (; i < length; ) {
12675
- const endRow = Math.min(i + FRAGMENT_ROW_COUNT, length - 1), slice = utilObjectMatrix.getSlice(i, Math.min(i + FRAGMENT_ROW_COUNT, length - 1), 0, maxColumn), data = serializeCellDataSlice(slice);
12676
- blocks.push({
12677
- id: Tools.generateRandomId(19, "0123456789"),
12678
- // an random ID for client, this would be changed after the block is saved in the server
12679
- startRow: i,
12680
- endRow,
12681
- data
12682
- }), i += FRAGMENT_ROW_COUNT;
12683
- }
12684
- return blocks;
12685
- }
12686
- __name(splitCellDataToBlocks, "splitCellDataToBlocks");
12687
- function serializeCellDataSlice(slice) {
12688
- const data = slice.getData();
12689
- return textEncoder.encode(JSON.stringify(data));
12690
- }
12691
- __name(serializeCellDataSlice, "serializeCellDataSlice");
12692
- async function generateTempDocumentSnapshot(_context, document2, unitID, rev) {
12693
- var _a13;
12694
- const documentMeta = {
12695
- unitID: document2.id,
12696
- rev,
12697
- creator: "",
12698
- name: (_a13 = document2.title) != null ? _a13 : "",
12699
- resources: document2.resources || [],
12700
- originalMeta: encodeDocOriginalMeta(document2)
12701
- };
12702
- return {
12703
- snapshot: {
12704
- unitID,
12705
- rev: documentMeta.rev,
12706
- type: I.UNIVER_DOC,
12707
- workbook: void 0,
12708
- doc: documentMeta
12709
- }
12710
- };
12711
- }
12712
- __name(generateTempDocumentSnapshot, "generateTempDocumentSnapshot");
12713
- async function generateTemporarySnap(context, workbook, unitID, rev, snapshotService) {
12714
- const blockMeta = {}, sheetMetas = {};
12715
- if (!await Promise.all(
12716
- Object.entries(workbook.sheets).map(async ([sheetID, worksheet]) => {
12717
- const sheetMeta = {
12718
- id: worksheet.id,
12719
- type: SheetTypes.GRID,
12720
- name: worksheet.name,
12721
- rowCount: worksheet.rowCount,
12722
- columnCount: worksheet.columnCount,
12723
- originalMeta: encodeWorksheetOtherMetas(worksheet)
12724
- };
12725
- if (sheetMetas[sheetID] = sheetMeta, worksheet.cellData) {
12726
- const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.rowCount), responses = await Promise.all(
12727
- sheetBlocks.map(
12728
- (block) => snapshotService.saveSheetBlock(context, {
12729
- unitID,
12730
- type: I.UNIVER_SHEET,
12731
- block
12732
- })
12733
- )
12734
- );
12735
- if (responses.some((response) => {
12736
- var _a13;
12737
- return ((_a13 = response.error) == null ? void 0 : _a13.code) !== N.OK;
12738
- }))
12739
- return !1;
12740
- blockMeta[sheetID] = {
12741
- sheetID,
12742
- blocks: responses.map((response) => response.blockID)
12743
- };
12744
- }
12745
- return !0;
12746
- })
12747
- ))
12748
- throw new Error("[transformWorkbookDataToSnapshot()]: Failed to save sheet blocks.");
12749
- const originalMeta = encodeWorkbookOtherMetas(workbook), workbookMeta = {
12750
- unitID: workbook.id,
12751
- rev,
12752
- creator: "",
12753
- name: workbook.name,
12754
- sheetOrder: workbook.sheetOrder,
12755
- sheets: sheetMetas,
12756
- blockMeta,
12757
- // this should not be empty
12758
- resources: workbook.resources || [],
12759
- originalMeta
12760
- };
12761
- return {
12762
- snapshotRes: {
12763
- unitID,
12764
- rev: workbookMeta.rev,
12765
- type: I.UNIVER_SHEET,
12766
- workbook: workbookMeta,
12767
- doc: void 0
12768
- }
12769
- };
12770
- }
12771
- __name(generateTemporarySnap, "generateTemporarySnap");
12772
- async function transformWorkbookDataToSnapshot(context, workbook, unitID, rev, snapshotService) {
12773
- var _a13, _b2;
12774
- const blockMeta = {}, sheetMetas = {};
12775
- if (!await Promise.all(
12776
- Object.entries(workbook.sheets).map(async ([sheetID, worksheet]) => {
12777
- const sheetMeta = {
12778
- id: worksheet.id,
12779
- type: SheetTypes.GRID,
12780
- name: worksheet.name,
12781
- rowCount: worksheet.rowCount,
12782
- columnCount: worksheet.columnCount,
12783
- originalMeta: encodeWorksheetOtherMetas(worksheet)
12784
- };
12785
- if (sheetMetas[sheetID] = sheetMeta, worksheet.cellData) {
12786
- const sheetBlocks = splitCellDataToBlocks(worksheet.cellData, worksheet.rowCount), responses = await Promise.all(
12787
- sheetBlocks.map(
12788
- (block) => snapshotService.saveSheetBlock(context, {
12789
- unitID,
12790
- type: I.UNIVER_SHEET,
12791
- block
12792
- })
12793
- )
12794
- );
12795
- if (responses.some((response) => {
12796
- var _a14;
12797
- return ((_a14 = response.error) == null ? void 0 : _a14.code) !== N.OK;
12798
- }))
12799
- return !1;
12800
- blockMeta[sheetID] = {
12801
- sheetID,
12802
- blocks: responses.map((response) => response.blockID)
12803
- };
12804
- }
12805
- return !0;
12806
- })
12807
- ))
12808
- throw new Error("[transformWorkbookDataToSnapshot()]: Failed to save sheet blocks.");
12809
- const originalMeta = encodeWorkbookOtherMetas(workbook), workbookMeta = {
12810
- unitID: workbook.id,
12811
- rev,
12812
- creator: "",
12813
- name: workbook.name,
12814
- sheetOrder: workbook.sheetOrder,
12815
- sheets: sheetMetas,
12816
- blockMeta,
12817
- // this should not be empty
12818
- resources: workbook.resources || [],
12819
- originalMeta
12820
- }, snapshot = {
12821
- unitID,
12822
- rev: workbookMeta.rev,
12823
- type: I.UNIVER_SHEET,
12824
- workbook: workbookMeta,
12825
- doc: void 0
12826
- }, saveResult = await snapshotService.saveSnapshot(context, {
12827
- unitID,
12828
- type: I.UNIVER_SHEET,
12829
- snapshot
12830
- });
12831
- if (H(saveResult.error))
12832
- throw new Error(
12833
- `transformWorkbookDataToSnapshot(): Failed to save snapshot.
12834
- ErrorCode: ${(_a13 = saveResult.error) == null ? void 0 : _a13.code}:${(_b2 = saveResult.error) == null ? void 0 : _b2.message}`
12835
- );
12836
- return {
12837
- snapshot
12838
- };
12839
- }
12840
- __name(transformWorkbookDataToSnapshot, "transformWorkbookDataToSnapshot");
12841
- function transformSnapshotToWorkbookData(snapshot, sheetBlocks, _context) {
12842
- const workbookMeta = snapshot.workbook;
12843
- if (!workbookMeta)
12844
- throw new Error("");
12845
- const sheetMap = {};
12846
- Object.entries(workbookMeta.sheets).forEach(([sheetID, sheetMeta]) => {
12847
- const otherMeta2 = decodeWorksheetOtherMetas(sheetMeta.originalMeta);
12848
- sheetMap[sheetID] = {
12849
- id: sheetMeta.id,
12850
- name: sheetMeta.name,
12851
- rowCount: sheetMeta.rowCount,
12852
- columnCount: sheetMeta.columnCount,
12853
- ...otherMeta2
12854
- };
12855
- });
12856
- const sheetBlocksMap = /* @__PURE__ */ new Map();
12857
- sheetBlocks.forEach((block) => {
12858
- sheetBlocksMap.set(block.id, block);
12859
- }), workbookMeta.blockMeta && Object.entries(workbookMeta.blockMeta).forEach(([sheetID, blocksOfSheet]) => {
12860
- var _a13;
12861
- const worksheetConfig = sheetMap[sheetID];
12862
- worksheetConfig.cellData = {};
12863
- const blocks = [];
12864
- (_a13 = blocksOfSheet.blocks) == null || _a13.forEach((blockID) => {
12865
- const block = sheetBlocksMap.get(blockID);
12866
- if (block)
12867
- blocks.push(block);
12868
- else
12869
- throw new Error("");
12870
- }), blocks.forEach((block) => {
12871
- const partOfCellData = decodePartOfCellData(block.data);
12872
- Object.entries(partOfCellData).forEach(([rowNumber, rowData]) => {
12873
- const row = worksheetConfig.cellData[+rowNumber] = {};
12874
- Object.entries(rowData).forEach(([columnNumber, cellData]) => {
12875
- row[+columnNumber] = cellData;
12876
- });
12877
- });
12878
- });
12879
- });
12880
- const otherMeta = decodeWorksheetOtherMetas(workbookMeta.originalMeta);
12881
- return {
12882
- id: snapshot.unitID || workbookMeta.unitID,
12883
- rev: snapshot.rev || workbookMeta.rev,
12884
- name: workbookMeta.name,
12885
- sheetOrder: workbookMeta.sheetOrder,
12886
- appVersion: "",
12887
- locale: LocaleType.EN_US,
12888
- sheets: sheetMap,
12889
- styles: {},
12890
- resources: workbookMeta.resources || [],
12891
- ...otherMeta
12892
- };
12893
- }
12894
- __name(transformSnapshotToWorkbookData, "transformSnapshotToWorkbookData");
12895
- function transformSnapshotToDocumentData(snapshot) {
12896
- const documentMeta = snapshot.doc;
12897
- if (documentMeta == null)
12898
- throw new Error("transformSnapshotToDocumentData(): snapshot.doc is undefined.");
12899
- const { unitID, rev, name, originalMeta, resources = [] } = documentMeta, {
12900
- body,
12901
- documentStyle = {},
12902
- settings = {},
12903
- drawings = {},
12904
- drawingsOrder = [],
12905
- tableSource = {},
12906
- headers = {},
12907
- footers = {},
12908
- lists = {}
12909
- } = decodeDocOriginalMeta(originalMeta);
12910
- return {
12911
- id: unitID,
12912
- rev,
12913
- locale: LocaleType.EN_US,
12914
- title: name,
12915
- body,
12916
- documentStyle,
12917
- settings,
12918
- drawings,
12919
- drawingsOrder,
12920
- resources,
12921
- tableSource,
12922
- headers,
12923
- footers,
12924
- lists
12925
- };
12926
- }
12927
- __name(transformSnapshotToDocumentData, "transformSnapshotToDocumentData");
12928
- async function transformDocumentDataToSnapshot(context, document2, unitID, rev, snapshotService) {
12929
- var _a13, _b2, _c;
12930
- const documentMeta = {
12931
- unitID: document2.id,
12932
- rev,
12933
- creator: "",
12934
- name: (_a13 = document2.title) != null ? _a13 : "",
12935
- resources: document2.resources || [],
12936
- originalMeta: encodeDocOriginalMeta(document2)
12937
- }, snapshot = {
12938
- unitID,
12939
- rev: documentMeta.rev,
12940
- type: I.UNIVER_DOC,
12941
- workbook: void 0,
12942
- doc: documentMeta
12943
- }, saveResult = await snapshotService.saveSnapshot(context, {
12944
- unitID,
12945
- type: I.UNIVER_DOC,
12946
- snapshot
12947
- });
12948
- if (H(saveResult.error))
12949
- throw new Error(
12950
- `transformDocumentDataToSnapshot(): Failed to save snapshot.
12951
- ErrorCode: ${(_b2 = saveResult.error) == null ? void 0 : _b2.code}:${(_c = saveResult.error) == null ? void 0 : _c.message}`
12952
- );
12953
- return {
12954
- snapshot
12955
- };
12956
- }
12957
- __name(transformDocumentDataToSnapshot, "transformDocumentDataToSnapshot");
12958
- async function getSheetBlocksFromSnapshot(snapshot, snapshotService) {
12959
- const workbookMeta = snapshot.workbook;
12960
- if (!workbookMeta)
12961
- throw new Error("Workbook metadata is not available");
12962
- const blocks = [], promises = [];
12963
- return Object.entries(workbookMeta.blockMeta).forEach(([_, blocksOfSheet]) => {
12964
- const blockPromises = blocksOfSheet.blocks.map(async (blockID) => {
12965
- const params = {
12966
- unitID: workbookMeta.unitID,
12967
- type: I.UNIVER_SHEET,
12968
- blockID
12969
- }, { block } = await snapshotService.getSheetBlock({}, params);
12970
- if (block)
12971
- blocks.push(block);
12972
- else
12973
- throw new Error("Block not found");
12974
- });
12975
- promises.push(...blockPromises);
12976
- }), await Promise.all(promises), blocks;
12977
- }
12978
- __name(getSheetBlocksFromSnapshot, "getSheetBlocksFromSnapshot");
12513
+ const isRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && !oldRanges.some((oldRange) => ranges.some((range) => !Rectangle.equals(range, oldRange))), "isRangesEqual"), isUnitRangesEqual = /* @__PURE__ */ __name((oldRanges, ranges) => ranges.length === oldRanges.length && oldRanges.every((oldRange, i) => {
12514
+ const current = ranges[i];
12515
+ return current.unitId === oldRange.unitId && current.sheetId === oldRange.sheetId && Rectangle.equals(oldRange.range, current.range);
12516
+ }), "isUnitRangesEqual");
12979
12517
  var DataValidationErrorStyle = /* @__PURE__ */ ((DataValidationErrorStyle2) => (DataValidationErrorStyle2[DataValidationErrorStyle2.INFO = 0] = "INFO", DataValidationErrorStyle2[DataValidationErrorStyle2.STOP = 1] = "STOP", DataValidationErrorStyle2[DataValidationErrorStyle2.WARNING = 2] = "WARNING", DataValidationErrorStyle2))(DataValidationErrorStyle || {}), DataValidationImeMode = /* @__PURE__ */ ((DataValidationImeMode2) => (DataValidationImeMode2[DataValidationImeMode2.DISABLED = 0] = "DISABLED", DataValidationImeMode2[DataValidationImeMode2.FULL_ALPHA = 1] = "FULL_ALPHA", DataValidationImeMode2[DataValidationImeMode2.FULL_HANGUL = 2] = "FULL_HANGUL", DataValidationImeMode2[DataValidationImeMode2.FULL_KATAKANA = 3] = "FULL_KATAKANA", DataValidationImeMode2[DataValidationImeMode2.HALF_ALPHA = 4] = "HALF_ALPHA", DataValidationImeMode2[DataValidationImeMode2.HALF_HANGUL = 5] = "HALF_HANGUL", DataValidationImeMode2[DataValidationImeMode2.HALF_KATAKANA = 6] = "HALF_KATAKANA", DataValidationImeMode2[DataValidationImeMode2.HIRAGANA = 7] = "HIRAGANA", DataValidationImeMode2[DataValidationImeMode2.NO_CONTROL = 8] = "NO_CONTROL", DataValidationImeMode2[DataValidationImeMode2.OFF = 9] = "OFF", DataValidationImeMode2[DataValidationImeMode2.ON = 10] = "ON", DataValidationImeMode2))(DataValidationImeMode || {}), DataValidationOperator = /* @__PURE__ */ ((DataValidationOperator2) => (DataValidationOperator2.BETWEEN = "between", DataValidationOperator2.EQUAL = "equal", DataValidationOperator2.GREATER_THAN = "greaterThan", DataValidationOperator2.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", DataValidationOperator2.LESS_THAN = "lessThan", DataValidationOperator2.LESS_THAN_OR_EQUAL = "lessThanOrEqual", DataValidationOperator2.NOT_BETWEEN = "notBetween", DataValidationOperator2.NOT_EQUAL = "notEqual", DataValidationOperator2))(DataValidationOperator || {}), DataValidationType = /* @__PURE__ */ ((DataValidationType2) => (DataValidationType2.CUSTOM = "custom", DataValidationType2.LIST = "list", DataValidationType2.LIST_MULTIPLE = "listMultiple", DataValidationType2.NONE = "none", DataValidationType2.TEXT_LENGTH = "textLength", DataValidationType2.DATE = "date", DataValidationType2.TIME = "time", DataValidationType2.WHOLE = "whole", DataValidationType2.DECIMAL = "decimal", DataValidationType2.CHECKBOX = "checkbox", DataValidationType2))(DataValidationType || {}), DataValidationStatus = /* @__PURE__ */ ((DataValidationStatus2) => (DataValidationStatus2.VALID = "valid", DataValidationStatus2.INVALID = "invalid", DataValidationStatus2.VALIDATING = "validating", DataValidationStatus2))(DataValidationStatus || {});
12980
12518
  const skipParseTagNames = ["script", "style", "meta", "comment", "link"];
12981
12519
  function nameCharacterCheck(name) {
12982
12520
  return !(name.length === 0 || name.length > 31 || name.startsWith("'") || name.endsWith("'") || /[:\\\/\?\*\[\]]/.test(name));
12983
12521
  }
12984
12522
  __name(nameCharacterCheck, "nameCharacterCheck");
12523
+ function mixinClass(targetClassPrototype, mixin) {
12524
+ for (const key in mixin)
12525
+ mixin.hasOwnProperty(key) && (targetClassPrototype[key] = mixin[key]);
12526
+ }
12527
+ __name(mixinClass, "mixinClass");
12985
12528
  installShims();
12986
12529
  export {
12987
12530
  ABCToNumber,
@@ -13002,7 +12545,6 @@ export {
13002
12545
  BulletAlignment,
13003
12546
  COLORS,
13004
12547
  CellValueType,
13005
- ClientSnapshotServerService,
13006
12548
  Color,
13007
12549
  ColorBuilder,
13008
12550
  ColorKit,
@@ -13098,7 +12640,6 @@ export {
13098
12640
  IPermissionService,
13099
12641
  IResourceLoaderService,
13100
12642
  IResourceManagerService,
13101
- ISnapshotServerService,
13102
12643
  IUndoRedoService,
13103
12644
  IUniverInstanceService,
13104
12645
  Inject,
@@ -13193,6 +12734,7 @@ export {
13193
12734
  ThemeColors,
13194
12735
  ThemeService,
13195
12736
  Tools,
12737
+ UNIVER_INTERNAL,
13196
12738
  UndoCommand,
13197
12739
  UndoCommandId,
13198
12740
  UnitModel,
@@ -13211,8 +12753,6 @@ export {
13211
12753
  WrapStrategy,
13212
12754
  WrapTextType,
13213
12755
  afterInitApply,
13214
- b64DecodeUnicode,
13215
- b64EncodeUnicode,
13216
12756
  binarySearchArray,
13217
12757
  cellToRange,
13218
12758
  characterSpacingControlType,
@@ -13244,8 +12784,6 @@ export {
13244
12784
  fromEventSubject,
13245
12785
  fromObservable,
13246
12786
  generateRandomId,
13247
- generateTempDocumentSnapshot,
13248
- generateTemporarySnap,
13249
12787
  getArrayLength,
13250
12788
  getBodySlice,
13251
12789
  getBodySliceHtml,
@@ -13257,7 +12795,6 @@ export {
13257
12795
  getCustomRangeSlice,
13258
12796
  getDocsUpdateBody,
13259
12797
  getReverseDirection,
13260
- getSheetBlocksFromSnapshot,
13261
12798
  getWorksheetUID,
13262
12799
  groupBy,
13263
12800
  handleStyleToString,
@@ -13297,6 +12834,7 @@ export {
13297
12834
  mergeOverrideWithDependencies,
13298
12835
  mergeSets,
13299
12836
  mergeWorksheetSnapshotWithDefault,
12837
+ mixinClass,
13300
12838
  moveMatrixArray,
13301
12839
  moveRangeByOffset,
13302
12840
  nameCharacterCheck,
@@ -13304,7 +12842,7 @@ export {
13304
12842
  normalizeTextRuns,
13305
12843
  numberToABC,
13306
12844
  numberToListABC,
13307
- index$2 as numfmt,
12845
+ numfmt,
13308
12846
  orderSearchArray,
13309
12847
  queryObjectMatrix,
13310
12848
  remove,
@@ -13328,14 +12866,8 @@ export {
13328
12866
  sortRulesFactory,
13329
12867
  spliceArray,
13330
12868
  takeAfter,
13331
- textDecoder,
13332
- textEncoder,
13333
12869
  throttle,
13334
12870
  toDisposable,
13335
- transformDocumentDataToSnapshot,
13336
- transformSnapshotToDocumentData,
13337
- transformSnapshotToWorkbookData,
13338
- transformWorkbookDataToSnapshot,
13339
12871
  updateAttributeByDelete,
13340
12872
  updateAttributeByInsert,
13341
12873
  useDependency,