@univerjs/core 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +7 -7
- package/lib/es/index.js +621 -601
- package/lib/index.js +621 -601
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/confirm/confirm.service.d.ts +19 -0
- package/lib/types/sheets/workbook.d.ts +1 -1
- package/lib/umd/index.js +7 -7
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Cc = Object.defineProperty;
|
|
2
2
|
var Rc = (e, t, n) => t in e ? Cc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var p = (e, t, n) => Rc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { createIdentifier as
|
|
4
|
+
import { createIdentifier as lt, Inject as wt, Injector as zn } from "@wendellhu/redi";
|
|
5
5
|
export * from "@wendellhu/redi";
|
|
6
|
-
import { Subscription as Ic, Subject as
|
|
7
|
-
import { filter as Nc, debounceTime as Tc, first as Mc, map as
|
|
8
|
-
import { defaultTheme as
|
|
9
|
-
function
|
|
6
|
+
import { Subscription as Ic, Subject as it, Observable as yr, filter as wr, ReplaySubject as wc, take as Oc, tap as aa, debounceTime as Sc, map as ro, BehaviorSubject as nt, merge as Pl, timer as vc, distinctUntilChanged as bc, firstValueFrom as Ac, skip as kl, of as Lr, combineLatest as yc } from "rxjs";
|
|
7
|
+
import { filter as Nc, debounceTime as Tc, first as Mc, map as Lc } from "rxjs/operators";
|
|
8
|
+
import { defaultTheme as xr } from "@univerjs/themes";
|
|
9
|
+
function xc(e, t) {
|
|
10
10
|
for (var n = 0; n < t.length; n++) {
|
|
11
11
|
const r = t[n];
|
|
12
12
|
if (typeof r != "string" && !Array.isArray(r)) {
|
|
@@ -576,13 +576,13 @@ function Mh(e) {
|
|
|
576
576
|
}
|
|
577
577
|
return "";
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
"^" + Ph.call(kh).replace(
|
|
579
|
+
var Lh = /[\\^$.*+?()[\]{}|]/g, xh = /^\[object .+?Constructor\]$/, Dh = Function.prototype, Uh = Object.prototype, Ph = Dh.toString, kh = Uh.hasOwnProperty, Fh = RegExp(
|
|
580
|
+
"^" + Ph.call(kh).replace(Lh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
581
581
|
);
|
|
582
582
|
function Hh(e) {
|
|
583
583
|
if (!Ot(e) || yh(e))
|
|
584
584
|
return !1;
|
|
585
|
-
var t = so(e) ? Fh :
|
|
585
|
+
var t = so(e) ? Fh : xh;
|
|
586
586
|
return t.test(Mh(e));
|
|
587
587
|
}
|
|
588
588
|
function $h(e, t) {
|
|
@@ -744,8 +744,8 @@ var ql = Object.prototype, ud = ql.hasOwnProperty, cd = ql.propertyIsEnumerable,
|
|
|
744
744
|
function hd() {
|
|
745
745
|
return !1;
|
|
746
746
|
}
|
|
747
|
-
var Jl = typeof exports == "object" && exports && !exports.nodeType && exports, Ra = Jl && typeof module == "object" && module && !module.nodeType && module, dd = Ra && Ra.exports === Jl, Ia = dd ? Rn.Buffer : void 0, fd = Ia ? Ia.isBuffer : void 0, Zl = fd || hd, md = "[object Arguments]", gd = "[object Array]", _d = "[object Boolean]", pd = "[object Date]", Ed = "[object Error]", Cd = "[object Function]", Rd = "[object Map]", Id = "[object Number]", wd = "[object Object]", Od = "[object RegExp]", Sd = "[object Set]", vd = "[object String]", bd = "[object WeakMap]", Ad = "[object ArrayBuffer]", yd = "[object DataView]", Nd = "[object Float32Array]", Td = "[object Float64Array]", Md = "[object Int8Array]",
|
|
748
|
-
Pe[Nd] = Pe[Td] = Pe[Md] = Pe[
|
|
747
|
+
var Jl = typeof exports == "object" && exports && !exports.nodeType && exports, Ra = Jl && typeof module == "object" && module && !module.nodeType && module, dd = Ra && Ra.exports === Jl, Ia = dd ? Rn.Buffer : void 0, fd = Ia ? Ia.isBuffer : void 0, Zl = fd || hd, md = "[object Arguments]", gd = "[object Array]", _d = "[object Boolean]", pd = "[object Date]", Ed = "[object Error]", Cd = "[object Function]", Rd = "[object Map]", Id = "[object Number]", wd = "[object Object]", Od = "[object RegExp]", Sd = "[object Set]", vd = "[object String]", bd = "[object WeakMap]", Ad = "[object ArrayBuffer]", yd = "[object DataView]", Nd = "[object Float32Array]", Td = "[object Float64Array]", Md = "[object Int8Array]", Ld = "[object Int16Array]", xd = "[object Int32Array]", Dd = "[object Uint8Array]", Ud = "[object Uint8ClampedArray]", Pd = "[object Uint16Array]", kd = "[object Uint32Array]", Pe = {};
|
|
748
|
+
Pe[Nd] = Pe[Td] = Pe[Md] = Pe[Ld] = Pe[xd] = Pe[Dd] = Pe[Ud] = Pe[Pd] = Pe[kd] = !0;
|
|
749
749
|
Pe[md] = Pe[gd] = Pe[Ad] = Pe[_d] = Pe[yd] = Pe[pd] = Pe[Ed] = Pe[Cd] = Pe[Rd] = Pe[Id] = Pe[wd] = Pe[Od] = Pe[Sd] = Pe[vd] = Pe[bd] = !1;
|
|
750
750
|
function Fd(e) {
|
|
751
751
|
return Gn(e) && Gl(e.length) && !!Pe[Nr(e)];
|
|
@@ -973,14 +973,14 @@ function Nf(e, t, n) {
|
|
|
973
973
|
var r = e == null ? void 0 : yf(e, t);
|
|
974
974
|
return r === void 0 ? n : r;
|
|
975
975
|
}
|
|
976
|
-
var iu = jd(Object.getPrototypeOf, Object), Tf = "[object Object]", Mf = Function.prototype,
|
|
976
|
+
var iu = jd(Object.getPrototypeOf, Object), Tf = "[object Object]", Mf = Function.prototype, Lf = Object.prototype, ou = Mf.toString, xf = Lf.hasOwnProperty, Df = ou.call(Object);
|
|
977
977
|
function Uf(e) {
|
|
978
978
|
if (!Gn(e) || Nr(e) != Tf)
|
|
979
979
|
return !1;
|
|
980
980
|
var t = iu(e);
|
|
981
981
|
if (t === null)
|
|
982
982
|
return !0;
|
|
983
|
-
var n =
|
|
983
|
+
var n = xf.call(t, "constructor") && t.constructor;
|
|
984
984
|
return typeof n == "function" && n instanceof n && ou.call(n) == Df;
|
|
985
985
|
}
|
|
986
986
|
function Pf() {
|
|
@@ -1269,7 +1269,7 @@ function ER(e, t) {
|
|
|
1269
1269
|
return t.forEach((n) => e.add(n)), e;
|
|
1270
1270
|
}
|
|
1271
1271
|
function im(e) {
|
|
1272
|
-
return e instanceof Ic || e instanceof
|
|
1272
|
+
return e instanceof Ic || e instanceof it || e && "closed" in e && typeof e.unsubscribe < "u";
|
|
1273
1273
|
}
|
|
1274
1274
|
function je(e) {
|
|
1275
1275
|
let t = !1;
|
|
@@ -1324,7 +1324,7 @@ class Ge {
|
|
|
1324
1324
|
class RR extends Ge {
|
|
1325
1325
|
constructor() {
|
|
1326
1326
|
super(...arguments);
|
|
1327
|
-
p(this, "dispose$", new
|
|
1327
|
+
p(this, "dispose$", new it());
|
|
1328
1328
|
}
|
|
1329
1329
|
dispose() {
|
|
1330
1330
|
super.dispose(), this.dispose$.next(), this.dispose$.complete();
|
|
@@ -2038,7 +2038,7 @@ function OR(e) {
|
|
|
2038
2038
|
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\\\*/g, ".*").replace(/\\\?/g, ".");
|
|
2039
2039
|
return new RegExp(`^${n}$`, "i");
|
|
2040
2040
|
}
|
|
2041
|
-
var _m = /* @__PURE__ */ ((e) => (e[e.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", e[e.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", e))(_m || {}),
|
|
2041
|
+
var _m = /* @__PURE__ */ ((e) => (e[e.DEFAULT_SERIES = 0] = "DEFAULT_SERIES", e[e.ALTERNATE_SERIES = 1] = "ALTERNATE_SERIES", e))(_m || {}), xe = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.THIN = 1] = "THIN", e[e.HAIR = 2] = "HAIR", e[e.DOTTED = 3] = "DOTTED", e[e.DASHED = 4] = "DASHED", e[e.DASH_DOT = 5] = "DASH_DOT", e[e.DASH_DOT_DOT = 6] = "DASH_DOT_DOT", e[e.DOUBLE = 7] = "DOUBLE", e[e.MEDIUM = 8] = "MEDIUM", e[e.MEDIUM_DASHED = 9] = "MEDIUM_DASHED", e[e.MEDIUM_DASH_DOT = 10] = "MEDIUM_DASH_DOT", e[e.MEDIUM_DASH_DOT_DOT = 11] = "MEDIUM_DASH_DOT_DOT", e[e.SLANT_DASH_DOT = 12] = "SLANT_DASH_DOT", e[e.THICK = 13] = "THICK", e))(xe || {}), pm = /* @__PURE__ */ ((e) => (e.TOP = "top", e.BOTTOM = "bottom", e.LEFT = "left", e.RIGHT = "right", e.NONE = "none", e.ALL = "all", e.OUTSIDE = "outside", e.INSIDE = "inside", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e.TLBR = "tlbr", e.TLBC_TLMR = "tlbc_tlmr", e.TLBR_TLBC_TLMR = "tlbr_tlbc_tlmr", e.BLTR = "bl_tr", e.MLTR_BCTR = "mltr_bctr", e))(pm || {}), Mt = /* @__PURE__ */ ((e) => (e[e.UNSUPPORTED = 0] = "UNSUPPORTED", e[e.RGB = 1] = "RGB", e[e.HEX = 2] = "HEX", e[e.THEME = 3] = "THEME", e))(Mt || {}), Em = /* @__PURE__ */ ((e) => (e[e.ON = 0] = "ON", e[e.OFF = 1] = "OFF", e))(Em || {}), Cm = /* @__PURE__ */ ((e) => (e[e.PASTE_NORMAL = 0] = "PASTE_NORMAL", e[e.PASTE_NO_BORDERS = 1] = "PASTE_NO_BORDERS", e[e.PASTE_FORMAT = 2] = "PASTE_FORMAT", e[e.PASTE_FORMULA = 3] = "PASTE_FORMULA", e[e.PASTE_DATA_VALIDATION = 4] = "PASTE_DATA_VALIDATION", e[e.PASTE_VALUES = 5] = "PASTE_VALUES", e[e.PASTE_CONDITIONAL_FORMATTING = 6] = "PASTE_CONDITIONAL_FORMATTING", e[e.PASTE_COLUMN_WIDTHS = 7] = "PASTE_COLUMN_WIDTHS", e))(Cm || {}), Rm = /* @__PURE__ */ ((e) => (e[e.LEFT = 0] = "LEFT", e[e.RIGHT = 1] = "RIGHT", e))(Rm || {}), Im = /* @__PURE__ */ ((e) => (e[e.DOCUMENT = 0] = "DOCUMENT", e[e.PROJECT = 1] = "PROJECT", e))(Im || {}), wm = /* @__PURE__ */ ((e) => (e[e.COLUMNS = 0] = "COLUMNS", e[e.ROWS = 1] = "ROWS", e))(wm || {}), Om = /* @__PURE__ */ ((e) => (e[e.UP = 0] = "UP", e[e.RIGHT = 1] = "RIGHT", e[e.DOWN = 2] = "DOWN", e[e.LEFT = 3] = "LEFT", e))(Om || {});
|
|
2042
2042
|
function SR(e) {
|
|
2043
2043
|
switch (e) {
|
|
2044
2044
|
case 3:
|
|
@@ -2051,7 +2051,7 @@ function SR(e) {
|
|
|
2051
2051
|
return 0;
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
2054
|
-
var Sm = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(Sm || {}), Ts = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.JA_JP = "jaJP", e.KO_KR = "koKR", e.ES_ES = "esES", e.CA_ES = "caES", e))(Ts || {}), vi = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(vi || {}), vm = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(vm || {}), bm = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(bm || {}), Am = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Am || {}), ym = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(ym || {}), Nm = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(Nm || {}), Tm = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(Tm || {}), Mm = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(Mm || {}), gs = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(gs || {}), xm = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(xm || {}), Pt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Pt || {}), Dn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(Dn || {}), jn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))(jn || {}), bi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(bi || {}), Ai = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Ai || {}), Zt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(Zt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), gn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(gn || {}), it = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(it || {}), _o = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(_o || {}), Lm = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Lm || {}), Dm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Dm || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ms = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ms || {}), Cn = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(Cn || {}), Un = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(Un || {}), Um = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Um || {}), fu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(fu || {}), Pm = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(Pm || {}), km = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(km || {}), Fm = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(Fm || {}), Hm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Hm || {}), $m = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))($m || {}), Bm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(Bm || {}), jm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(jm || {}), Je = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(Je || {}), Wm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Wm || {}), Ym = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(Ym || {}), zm = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(zm || {}), Vm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(Vm || {}), Gm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Gm || {}), Km = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(Jm || {}), ar = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ar || {}), Zm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(Zm || {}), Qm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(Qm || {}), eg = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(eg || {}), tg = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(tg || {}), ng = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(ng || {}), rg = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(rg || {}), sg = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(sg || {}), pt = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(pt || {});
|
|
2054
|
+
var Sm = /* @__PURE__ */ ((e) => (e[e.INTERPOLATION_POINT_TYPE_UNSPECIFIED = 0] = "INTERPOLATION_POINT_TYPE_UNSPECIFIED", e[e.MIN = 1] = "MIN", e[e.MAX = 2] = "MAX", e[e.NUMBER = 3] = "NUMBER", e[e.PERCENT = 4] = "PERCENT", e[e.PERCENTILE = 5] = "PERCENTILE", e))(Sm || {}), Ts = /* @__PURE__ */ ((e) => (e.EN_US = "enUS", e.FR_FR = "frFR", e.ZH_CN = "zhCN", e.RU_RU = "ruRU", e.ZH_TW = "zhTW", e.VI_VN = "viVN", e.FA_IR = "faIR", e.JA_JP = "jaJP", e.KO_KR = "koKR", e.ES_ES = "esES", e.CA_ES = "caES", e))(Ts || {}), vi = /* @__PURE__ */ ((e) => (e[e.PERSON = 0] = "PERSON", e[e.FILE = 1] = "FILE", e[e.DATE = 2] = "DATE", e[e.LOCATION = 3] = "LOCATION", e[e.EVENT = 4] = "EVENT", e))(vi || {}), vm = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(vm || {}), bm = /* @__PURE__ */ ((e) => (e.Line = "line", e.LineInv = "lineInv", e.Triangle = "triangle", e.RtTriangle = "rtTriangle", e.Rect = "rect", e.Diamond = "diamond", e.Parallelogram = "parallelogram", e.Trapezoid = "trapezoid", e.NonIsocelesTrapezoid = "nonIsocelesTrapezoid", e.Pentagon = "pentagon", e.Hexagon = "hexagon", e.Heptagon = "heptagon", e.Octagon = "octagon", e.Decagon = "decagon", e.Dodecagon = "dodecagon", e.Star4 = "star4", e.Star5 = "star5", e.Star6 = "star6", e.Star7 = "star7", e.Star8 = "star8", e.Star10 = "star10", e.Star12 = "star12", e.Star16 = "star16", e.Star24 = "star24", e.Star32 = "star32", e.RoundRect = "roundRect", e.Round1Rect = "round1Rect", e.Round2SameRect = "round2SameRect", e.Round2DiagRect = "round2DiagRect", e.Ellipse = "ellipse", e))(bm || {}), Am = /* @__PURE__ */ ((e) => (e.RightArrow = "rightArrow", e.LeftArrow = "leftArrow", e.UpArrow = "upArrow", e.DownArrow = "downArrow", e.LeftRightArrow = "leftRightArrow", e.UpDownArrow = "upDownArrow", e.QuadArrow = "quadArrow", e.LeftRightUpArrow = "leftRightUpArrow", e.BentArrow = "bentArrow", e.UturnArrow = "uturnArrow", e.CircularArrow = "circularArrow", e.NotchedRightArrow = "notchedRightArrow", e.HomePlate = "homePlate", e.Chevron = "chevron", e.LeftCircularArrow = "leftCircularArrow", e.LeftRightCircularArrow = "leftRightCircularArrow", e))(Am || {}), ym = /* @__PURE__ */ ((e) => (e.Plaque = "plaque", e.Can = "can", e.Cube = "cube", e.Bevel = "bevel", e.Donut = "donut", e.NoSmoking = "noSmoking", e.BlockArc = "blockArc", e.FoldedCorner = "foldedCorner", e))(ym || {}), Nm = /* @__PURE__ */ ((e) => (e.SmileyFace = "smileyFace", e.Heart = "heart", e.LightningBolt = "lightningBolt", e.Sun = "sun", e.Moon = "moon", e.Cloud = "cloud", e.Arc = "arc", e.Backpack = "backpack", e.Frame = "frame", e.HalfFrame = "halfFrame", e.Corner = "corner", e.Chord = "chord", e.Pie = "pie", e.Teardrop = "teardrop", e.WedgeRectCallout = "wedgeRectCallout", e.WedgeRRectCallout = "wedgeRRectCallout", e.WedgeEllipseCallout = "wedgeEllipseCallout", e.CloudCallout = "cloudCallout", e.BorderCallout1 = "borderCallout1", e.BorderCallout2 = "borderCallout2", e.BorderCallout3 = "borderCallout3", e.AccentCallout1 = "accentCallout1", e.AccentCallout2 = "accentCallout2", e.AccentCallout3 = "accentCallout3", e.Callout1 = "callout1", e.Callout2 = "callout2", e.Callout3 = "callout3", e.ActionButtonBackPrevious = "actionButtonBackPrevious", e.ActionButtonEnd = "actionButtonEnd", e.ActionButtonForwardNext = "actionButtonForwardNext", e.ActionButtonHelp = "actionButtonHelp", e.ActionButtonHome = "actionButtonHome", e.ActionButtonInformation = "actionButtonInformation", e.ActionButtonMovie = "actionButtonMovie", e.ActionButtonReturn = "actionButtonReturn", e.ActionButtonSound = "actionButtonSound", e))(Nm || {}), Tm = /* @__PURE__ */ ((e) => (e[e.RELATIVE_DATE_UNSPECIFIED = 0] = "RELATIVE_DATE_UNSPECIFIED", e[e.PAST_YEAR = 1] = "PAST_YEAR", e[e.PAST_MONTH = 2] = "PAST_MONTH", e[e.PAST_WEEK = 3] = "PAST_WEEK", e[e.YESTERDAY = 4] = "YESTERDAY", e[e.TODAY = 5] = "TODAY", e[e.TOMORROW = 6] = "TOMORROW", e))(Tm || {}), Mm = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(Mm || {}), gs = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", e[e.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", e))(gs || {}), Lm = /* @__PURE__ */ ((e) => (e[e.DASH = 0] = "DASH", e[e.DASH_DOT_DOT_HEAVY = 1] = "DASH_DOT_DOT_HEAVY", e[e.DASH_DOT_HEAVY = 2] = "DASH_DOT_HEAVY", e[e.DASHED_HEAVY = 3] = "DASHED_HEAVY", e[e.DASH_LONG = 4] = "DASH_LONG", e[e.DASH_LONG_HEAVY = 5] = "DASH_LONG_HEAVY", e[e.DOT_DASH = 6] = "DOT_DASH", e[e.DOT_DOT_DASH = 7] = "DOT_DOT_DASH", e[e.DOTTED = 8] = "DOTTED", e[e.DOTTED_HEAVY = 9] = "DOTTED_HEAVY", e[e.DOUBLE = 10] = "DOUBLE", e[e.NONE = 11] = "NONE", e[e.SINGLE = 12] = "SINGLE", e[e.THICK = 13] = "THICK", e[e.WAVE = 14] = "WAVE", e[e.WAVY_DOUBLE = 15] = "WAVY_DOUBLE", e[e.WAVY_HEAVY = 16] = "WAVY_HEAVY", e[e.WORDS = 17] = "WORDS", e))(Lm || {}), Pt = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.LEFT = 1] = "LEFT", e[e.CENTER = 2] = "CENTER", e[e.RIGHT = 3] = "RIGHT", e[e.JUSTIFIED = 4] = "JUSTIFIED", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTED = 6] = "DISTRIBUTED", e))(Pt || {}), Dn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TOP = 1] = "TOP", e[e.MIDDLE = 2] = "MIDDLE", e[e.BOTTOM = 3] = "BOTTOM", e))(Dn || {}), jn = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.OVERFLOW = 1] = "OVERFLOW", e[e.CLIP = 2] = "CLIP", e[e.WRAP = 3] = "WRAP", e))(jn || {}), bi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(bi || {}), Ai = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(Ai || {}), Zt = /* @__PURE__ */ ((e) => (e[e.NORMAL = 1] = "NORMAL", e[e.SUBSCRIPT = 2] = "SUBSCRIPT", e[e.SUPERSCRIPT = 3] = "SUPERSCRIPT", e))(Zt || {}), ie = /* @__PURE__ */ ((e) => (e[e.FALSE = 0] = "FALSE", e[e.TRUE = 1] = "TRUE", e))(ie || {}), gn = /* @__PURE__ */ ((e) => (e[e.STRING = 1] = "STRING", e[e.NUMBER = 2] = "NUMBER", e[e.BOOLEAN = 3] = "BOOLEAN", e[e.FORCE_STRING = 4] = "FORCE_STRING", e))(gn || {}), ot = /* @__PURE__ */ ((e) => (e[e.DARK1 = 0] = "DARK1", e[e.LIGHT1 = 1] = "LIGHT1", e[e.DARK2 = 2] = "DARK2", e[e.LIGHT2 = 3] = "LIGHT2", e[e.ACCENT1 = 4] = "ACCENT1", e[e.ACCENT2 = 5] = "ACCENT2", e[e.ACCENT3 = 6] = "ACCENT3", e[e.ACCENT4 = 7] = "ACCENT4", e[e.ACCENT5 = 8] = "ACCENT5", e[e.ACCENT6 = 9] = "ACCENT6", e[e.HYPERLINK = 10] = "HYPERLINK", e[e.FOLLOWED_HYPERLINK = 11] = "FOLLOWED_HYPERLINK", e))(ot || {}), _o = /* @__PURE__ */ ((e) => (e.OFFICE = "Office", e.OFFICE_2007_2010 = "Office 2007-2010", e.GRAYSCALE = "Grayscale", e.BLUE_WARM = "Blue Warm", e.BLUE = "Blue", e.BLUE_II = "Blue II", e.BLUE_GREEN = "Blue Green", e.GREEN = "Green", e.GREEN_YELLOW = "Green Yellow", e.YELLOW = "Yellow", e.YELLOW_ORANGE = "Yellow Orange", e.ORANGE = "Orange", e.ORANGE_RED = "Orange Red", e.RED_ORANGE = "Red Orange", e.RED = "Red", e.RED_VIOLET = "Red Violet", e.VIOLET = "Violet", e.VIOLET_II = "Violet II", e.MEDIAN = "Median", e.PAPER = "Paper", e.MARQUEE = "Marquee", e.SLIPSTREAM = "Slipstream", e.Aspect = "Aspect", e))(_o || {}), xm = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(xm || {}), Dm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Dm || {}), me = /* @__PURE__ */ ((e) => (e[e.BULLET = 0] = "BULLET", e[e.NONE = 1] = "NONE", e[e.DECIMAL = 2] = "DECIMAL", e[e.DECIMAL_ZERO = 3] = "DECIMAL_ZERO", e[e.UPPER_LETTER = 4] = "UPPER_LETTER", e[e.LOWER_LETTER = 5] = "LOWER_LETTER", e[e.UPPER_ROMAN = 6] = "UPPER_ROMAN", e[e.LOWER_ROMAN = 7] = "LOWER_ROMAN", e[e.ORDINAL = 8] = "ORDINAL", e[e.CARDINAL_TEXT = 9] = "CARDINAL_TEXT", e[e.ORDINAL_TEXT = 10] = "ORDINAL_TEXT", e[e.HEX = 11] = "HEX", e[e.CHICAGO = 12] = "CHICAGO", e[e.IDEOGRAPH_DIGITAL = 13] = "IDEOGRAPH_DIGITAL", e[e.JAPANESE_COUNTING = 14] = "JAPANESE_COUNTING", e[e.AIUEO = 15] = "AIUEO", e[e.IROHA = 16] = "IROHA", e[e.DECIMAL_FULL_WIDTH = 17] = "DECIMAL_FULL_WIDTH", e[e.DECIMAL_HALF_WIDTH = 18] = "DECIMAL_HALF_WIDTH", e[e.JAPANESE_LEGAL = 19] = "JAPANESE_LEGAL", e[e.JAPANESE_DIGITAL_TEN_THOUSAND = 20] = "JAPANESE_DIGITAL_TEN_THOUSAND", e[e.DECIMAL_ENCLOSED_CIRCLE = 21] = "DECIMAL_ENCLOSED_CIRCLE", e[e.DECIMAL_FULL_WIDTH2 = 22] = "DECIMAL_FULL_WIDTH2", e[e.AIUEO_FULL_WIDTH = 23] = "AIUEO_FULL_WIDTH", e[e.IROHA_FULL_WIDTH = 24] = "IROHA_FULL_WIDTH", e[e.GANADA = 25] = "GANADA", e[e.CHOSUNG = 26] = "CHOSUNG", e[e.DECIMAL_ENCLOSED_FULLSTOP = 27] = "DECIMAL_ENCLOSED_FULLSTOP", e[e.DECIMAL_ENCLOSED_PAREN = 28] = "DECIMAL_ENCLOSED_PAREN", e[e.DECIMAL_ENCLOSED_CIRCLE_CHINESE = 29] = "DECIMAL_ENCLOSED_CIRCLE_CHINESE", e[e.IDEOGRAPH_ENCLOSED_CIRCLE = 30] = "IDEOGRAPH_ENCLOSED_CIRCLE", e[e.IDEOGRAPH_TRADITIONAL = 31] = "IDEOGRAPH_TRADITIONAL", e[e.IDEOGRAPH_ZODIAC = 32] = "IDEOGRAPH_ZODIAC", e[e.IDEOGRAPH_ZODIAC_TRADITIONAL = 33] = "IDEOGRAPH_ZODIAC_TRADITIONAL", e[e.TAIWANESE_COUNTING = 34] = "TAIWANESE_COUNTING", e[e.IDEOGRAPH_LEGAL_TRADITIONAL = 35] = "IDEOGRAPH_LEGAL_TRADITIONAL", e[e.TAIWANESE_COUNTING_THOUSAND = 36] = "TAIWANESE_COUNTING_THOUSAND", e[e.TAIWANESE_DIGITAL = 37] = "TAIWANESE_DIGITAL", e[e.CHINESE_COUNTING = 38] = "CHINESE_COUNTING", e[e.CHINESE_LEGAL_SIMPLIFIED = 39] = "CHINESE_LEGAL_SIMPLIFIED", e[e.CHINESE_COUNTING_THOUSAND = 40] = "CHINESE_COUNTING_THOUSAND", e[e.KOREAN_DIGITAL = 41] = "KOREAN_DIGITAL", e[e.KOREAN_COUNTING = 42] = "KOREAN_COUNTING", e[e.KOREAN_LEGAL = 43] = "KOREAN_LEGAL", e[e.KOREAN_DIGITAL2 = 44] = "KOREAN_DIGITAL2", e[e.VIETNAMESE_COUNTING = 45] = "VIETNAMESE_COUNTING", e[e.RUSSIAN_LOWER = 46] = "RUSSIAN_LOWER", e[e.RUSSIAN_UPPER = 47] = "RUSSIAN_UPPER", e[e.NUMBER_IN_DASH = 48] = "NUMBER_IN_DASH", e[e.HEBREW1 = 49] = "HEBREW1", e[e.HEBREW2 = 50] = "HEBREW2", e[e.ARABIC_ALPHA = 51] = "ARABIC_ALPHA", e[e.ARABIC_ABJAD = 52] = "ARABIC_ABJAD", e[e.HINDI_VOWELS = 53] = "HINDI_VOWELS", e[e.HINDI_CONSONANTS = 54] = "HINDI_CONSONANTS", e[e.HINDI_NUMBERS = 55] = "HINDI_NUMBERS", e[e.HINDI_COUNTING = 56] = "HINDI_COUNTING", e[e.THAI_LETTERS = 57] = "THAI_LETTERS", e[e.THAI_NUMBERS = 58] = "THAI_NUMBERS", e[e.THAI_COUNTING = 59] = "THAI_COUNTING", e[e.CUSTOM = 60] = "CUSTOM", e))(me || {}), Ms = /* @__PURE__ */ ((e) => (e[e.BULLET_ALIGNMENT_UNSPECIFIED = 0] = "BULLET_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e[e.BOTH = 4] = "BOTH", e))(Ms || {}), Cn = /* @__PURE__ */ ((e) => (e[e.HYPERLINK = 0] = "HYPERLINK", e[e.FIELD = 1] = "FIELD", e[e.SDT = 2] = "SDT", e[e.BOOKMARK = 3] = "BOOKMARK", e[e.COMMENT = 4] = "COMMENT", e[e.CUSTOM = 5] = "CUSTOM", e[e.MENTION = 6] = "MENTION", e[e.UNI_FORMULA = 7] = "UNI_FORMULA", e[e.DELTED = 9999] = "DELTED", e))(Cn || {}), Un = /* @__PURE__ */ ((e) => (e[e.COMMENT = 0] = "COMMENT", e[e.DELETED = 9999] = "DELETED", e))(Un || {}), Um = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(Um || {}), fu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(fu || {}), Pm = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 0] = "DEFAULT", e[e.LINES = 1] = "LINES", e[e.LINES_AND_CHARS = 2] = "LINES_AND_CHARS", e[e.SNAP_TO_CHARS = 3] = "SNAP_TO_CHARS", e))(Pm || {}), km = /* @__PURE__ */ ((e) => (e[e.SECTION_TYPE_UNSPECIFIED = 0] = "SECTION_TYPE_UNSPECIFIED", e[e.CONTINUOUS = 1] = "CONTINUOUS", e[e.NEXT_PAGE = 2] = "NEXT_PAGE", e[e.EVEN_PAGE = 3] = "EVEN_PAGE", e[e.ODD_PAGE = 4] = "ODD_PAGE", e))(km || {}), Fm = /* @__PURE__ */ ((e) => (e[e.COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0] = "COLUMN_SEPARATOR_STYLE_UNSPECIFIED", e[e.NONE = 1] = "NONE", e[e.BETWEEN_EACH_COLUMN = 2] = "BETWEEN_EACH_COLUMN", e))(Fm || {}), Hm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Hm || {}), $m = /* @__PURE__ */ ((e) => (e[e.TEXT_RUN = 0] = "TEXT_RUN", e[e.AUTO_TEXT = 1] = "AUTO_TEXT", e[e.PAGE_BREAK = 2] = "PAGE_BREAK", e[e.COLUMN_BREAK = 3] = "COLUMN_BREAK", e[e.FOOT_NOTE_REFERENCE = 4] = "FOOT_NOTE_REFERENCE", e[e.HORIZONTAL_RULE = 5] = "HORIZONTAL_RULE", e[e.EQUATION = 6] = "EQUATION", e[e.DRAWING = 7] = "DRAWING", e[e.PERSON = 8] = "PERSON", e[e.RICH_LINK = 9] = "RICH_LINK", e))($m || {}), Bm = /* @__PURE__ */ ((e) => (e[e.BOTH_SIDES = 0] = "BOTH_SIDES", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.LARGEST = 3] = "LARGEST", e))(Bm || {}), jm = /* @__PURE__ */ ((e) => (e[e.INLINE = 0] = "INLINE", e[e.WRAP_NONE = 1] = "WRAP_NONE", e[e.WRAP_POLYGON = 2] = "WRAP_POLYGON", e[e.WRAP_SQUARE = 3] = "WRAP_SQUARE", e[e.WRAP_THROUGH = 4] = "WRAP_THROUGH", e[e.WRAP_TIGHT = 5] = "WRAP_TIGHT", e[e.WRAP_TOP_AND_BOTTOM = 6] = "WRAP_TOP_AND_BOTTOM", e))(jm || {}), Je = /* @__PURE__ */ ((e) => (e[e.NAMED_STYLE_TYPE_UNSPECIFIED = 0] = "NAMED_STYLE_TYPE_UNSPECIFIED", e[e.NORMAL_TEXT = 1] = "NORMAL_TEXT", e[e.TITLE = 2] = "TITLE", e[e.SUBTITLE = 3] = "SUBTITLE", e[e.HEADING_1 = 4] = "HEADING_1", e[e.HEADING_2 = 5] = "HEADING_2", e[e.HEADING_3 = 6] = "HEADING_3", e[e.HEADING_4 = 7] = "HEADING_4", e[e.HEADING_5 = 8] = "HEADING_5", e))(Je || {}), Wm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Wm || {}), Ym = /* @__PURE__ */ ((e) => (e[e.DASH_STYLE_UNSPECIFIED = 0] = "DASH_STYLE_UNSPECIFIED", e[e.SOLID = 1] = "SOLID", e[e.DOT = 2] = "DOT", e[e.DASH = 3] = "DASH", e))(Ym || {}), zm = /* @__PURE__ */ ((e) => (e[e.TAB_STOP_ALIGNMENT_UNSPECIFIED = 0] = "TAB_STOP_ALIGNMENT_UNSPECIFIED", e[e.START = 1] = "START", e[e.CENTER = 2] = "CENTER", e[e.END = 3] = "END", e))(zm || {}), Vm = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(Vm || {}), Gm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Gm || {}), Km = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.CONTENT_ALIGNMENT_UNSPECIFIED = 0] = "CONTENT_ALIGNMENT_UNSPECIFIED", e[e.BOTH = 1] = "BOTH", e[e.TOP = 2] = "TOP", e[e.CENTER = 3] = "CENTER", e[e.BOTTOM = 4] = "BOTTOM", e))(Jm || {}), ar = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ar || {}), Zm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.COLUMN = 1] = "COLUMN", e[e.CHARACTER = 2] = "CHARACTER", e[e.MARGIN = 3] = "MARGIN", e[e.INSIDE_MARGIN = 4] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 5] = "OUTSIDE_MARGIN", e[e.LEFT_MARGIN = 6] = "LEFT_MARGIN", e[e.RIGHT_MARGIN = 7] = "RIGHT_MARGIN", e))(Zm || {}), Qm = /* @__PURE__ */ ((e) => (e[e.PAGE = 0] = "PAGE", e[e.PARAGRAPH = 1] = "PARAGRAPH", e[e.LINE = 2] = "LINE", e[e.MARGIN = 3] = "MARGIN", e[e.TOP_MARGIN = 4] = "TOP_MARGIN", e[e.BOTTOM_MARGIN = 5] = "BOTTOM_MARGIN", e[e.INSIDE_MARGIN = 6] = "INSIDE_MARGIN", e[e.OUTSIDE_MARGIN = 7] = "OUTSIDE_MARGIN", e))(Qm || {}), eg = /* @__PURE__ */ ((e) => (e[e.POINT = 0] = "POINT", e[e.LINE = 1] = "LINE", e[e.CHARACTER = 2] = "CHARACTER", e[e.PIXEL = 3] = "PIXEL", e[e.PERCENT = 4] = "PERCENT", e))(eg || {}), tg = /* @__PURE__ */ ((e) => (e[e.CENTER = 0] = "CENTER", e[e.INSIDE = 1] = "INSIDE", e[e.LEFT = 2] = "LEFT", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.RIGHT = 4] = "RIGHT", e[e.BOTH = 5] = "BOTH", e[e.DISTRIBUTE = 6] = "DISTRIBUTE", e))(tg || {}), ng = /* @__PURE__ */ ((e) => (e[e.BOTTOM = 0] = "BOTTOM", e[e.CENTER = 1] = "CENTER", e[e.INSIDE = 2] = "INSIDE", e[e.OUTSIDE = 3] = "OUTSIDE", e[e.TOP = 4] = "TOP", e))(ng || {}), rg = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(rg || {}), sg = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(sg || {}), pt = /* @__PURE__ */ ((e) => (e.Letter = "Letter", e.Tabloid = "Tabloid", e.Legal = "Legal", e.Statement = "Statement", e.Executive = "Executive", e.Folio = "Folio", e.A3 = "A3", e.A4 = "A4", e.A5 = "A5", e.B4 = "B4", e.B5 = "B5", e))(pt || {});
|
|
2055
2055
|
const vR = [
|
|
2056
2056
|
"A3",
|
|
2057
2057
|
"A4",
|
|
@@ -2439,9 +2439,9 @@ function po() {
|
|
|
2439
2439
|
return n;
|
|
2440
2440
|
}), cn;
|
|
2441
2441
|
}
|
|
2442
|
-
var ei = {},
|
|
2442
|
+
var ei = {}, La;
|
|
2443
2443
|
function yi() {
|
|
2444
|
-
return
|
|
2444
|
+
return La || (La = 1, (function(e) {
|
|
2445
2445
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.uniSlice = e.dlen = e.eachOp = void 0;
|
|
2446
2446
|
const t = po(), n = (w) => {
|
|
2447
2447
|
if (!Array.isArray(w))
|
|
@@ -2717,10 +2717,10 @@ function yi() {
|
|
|
2717
2717
|
e.default = W;
|
|
2718
2718
|
})(ei)), ei;
|
|
2719
2719
|
}
|
|
2720
|
-
var kr = {},
|
|
2720
|
+
var kr = {}, xa;
|
|
2721
2721
|
function dg() {
|
|
2722
|
-
if (
|
|
2723
|
-
|
|
2722
|
+
if (xa) return kr;
|
|
2723
|
+
xa = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
2724
2724
|
const e = yi(), t = po();
|
|
2725
2725
|
function n(r, s) {
|
|
2726
2726
|
return {
|
|
@@ -2833,8 +2833,8 @@ function mg() {
|
|
|
2833
2833
|
value: !0
|
|
2834
2834
|
}), e.editOp = e.replaceOp = e.insertOp = e.moveOp = e.removeOp = e.type = void 0;
|
|
2835
2835
|
const n = t(cg()), r = t(hg()), s = gu(), i = _u();
|
|
2836
|
-
function o(I,
|
|
2837
|
-
if (!I) throw new Error(
|
|
2836
|
+
function o(I, x) {
|
|
2837
|
+
if (!I) throw new Error(x);
|
|
2838
2838
|
}
|
|
2839
2839
|
e.type = {
|
|
2840
2840
|
name: "json1",
|
|
@@ -2851,7 +2851,7 @@ function mg() {
|
|
|
2851
2851
|
apply: m,
|
|
2852
2852
|
transformPosition: D,
|
|
2853
2853
|
compose: O,
|
|
2854
|
-
tryTransform:
|
|
2854
|
+
tryTransform: L,
|
|
2855
2855
|
transform: q,
|
|
2856
2856
|
makeInvertible: S,
|
|
2857
2857
|
invert: T,
|
|
@@ -2859,9 +2859,9 @@ function mg() {
|
|
|
2859
2859
|
RM_UNEXPECTED_CONTENT: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
2860
2860
|
DROP_COLLISION: i.ConflictType.DROP_COLLISION,
|
|
2861
2861
|
BLACKHOLE: i.ConflictType.BLACKHOLE,
|
|
2862
|
-
transformNoConflict: (I,
|
|
2862
|
+
transformNoConflict: (I, x, Y) => le(() => !0, I, x, Y),
|
|
2863
2863
|
typeAllowingConflictsPred: (I) => Object.assign(Object.assign({}, e.type), {
|
|
2864
|
-
transform: (
|
|
2864
|
+
transform: (x, Y, z) => le(I, x, Y, z)
|
|
2865
2865
|
})
|
|
2866
2866
|
};
|
|
2867
2867
|
const a = (I) => I ? I.getComponent() : null;
|
|
@@ -2869,27 +2869,27 @@ function mg() {
|
|
|
2869
2869
|
return I && typeof I == "object" && !Array.isArray(I);
|
|
2870
2870
|
}
|
|
2871
2871
|
const u = (I) => Array.isArray(I) ? I.slice() : I !== null && typeof I == "object" ? Object.assign({}, I) : I, c = (I) => I && (I.p != null || I.r !== void 0), h = (I) => I && (I.d != null || I.i !== void 0);
|
|
2872
|
-
function d(I,
|
|
2873
|
-
return o(I != null), typeof
|
|
2872
|
+
function d(I, x) {
|
|
2873
|
+
return o(I != null), typeof x == "number" ? (o(Array.isArray(I), "Invalid key - child is not an array"), (I = I.slice()).splice(x, 1)) : (o(l(I), "Invalid key - child is not an object"), delete (I = Object.assign({}, I))[x]), I;
|
|
2874
2874
|
}
|
|
2875
|
-
function f(I,
|
|
2876
|
-
return typeof
|
|
2875
|
+
function f(I, x, Y) {
|
|
2876
|
+
return typeof x == "number" ? (o(I != null, "Container is missing for key"), o(Array.isArray(I), "Cannot use numerical key for object container"), o(I.length >= x, "Cannot insert into out of bounds index"), I.splice(x, 0, Y)) : (o(l(I), "Cannot insert into missing item"), o(I[x] === void 0, "Trying to overwrite value at key. Your op needs to remove it first"), I[x] = Y), Y;
|
|
2877
2877
|
}
|
|
2878
|
-
e.removeOp = (I,
|
|
2879
|
-
z.write("r",
|
|
2880
|
-
}).get(), e.editOp = (I,
|
|
2881
|
-
const g = (I,
|
|
2878
|
+
e.removeOp = (I, x = !0) => s.writeCursor().writeAtPath(I, "r", x).get(), e.moveOp = (I, x) => s.writeCursor().writeMove(I, x).get(), e.insertOp = (I, x) => s.writeCursor().writeAtPath(I, "i", x).get(), e.replaceOp = (I, x, Y) => s.writeCursor().at(I, (z) => {
|
|
2879
|
+
z.write("r", x), z.write("i", Y);
|
|
2880
|
+
}).get(), e.editOp = (I, x, Y, z = !1) => s.writeCursor().at(I, (B) => C(B, x, Y, z)).get();
|
|
2881
|
+
const g = (I, x) => I != null && (typeof x == "number" ? Array.isArray(I) : typeof I == "object"), _ = (I, x) => g(I, x) ? I[x] : void 0, R = {};
|
|
2882
2882
|
function b(I) {
|
|
2883
|
-
let
|
|
2884
|
-
|
|
2883
|
+
let x = I.type ? I.type : I;
|
|
2884
|
+
x.name && (R[x.name] = x), x.uri && (R[x.uri] = x);
|
|
2885
2885
|
}
|
|
2886
2886
|
const H = (I) => {
|
|
2887
|
-
const
|
|
2888
|
-
if (
|
|
2887
|
+
const x = R[I];
|
|
2888
|
+
if (x) return x;
|
|
2889
2889
|
throw Error("Missing type: " + I);
|
|
2890
2890
|
};
|
|
2891
2891
|
b(fg());
|
|
2892
|
-
const k = (I,
|
|
2892
|
+
const k = (I, x) => I + x;
|
|
2893
2893
|
b({
|
|
2894
2894
|
name: "number",
|
|
2895
2895
|
apply: k,
|
|
@@ -2897,8 +2897,8 @@ function mg() {
|
|
|
2897
2897
|
invert: (I) => -I,
|
|
2898
2898
|
transform: (I) => I
|
|
2899
2899
|
});
|
|
2900
|
-
const W = (I) => I == null ? null : I.et ? H(I.et) : I.es ? R["text-unicode"] : I.ena != null ? R.number : null, w = (I) => I.es ? I.es : I.ena != null ? I.ena : I.e, C = (I,
|
|
2901
|
-
const [B, j] = typeof
|
|
2900
|
+
const W = (I) => I == null ? null : I.et ? H(I.et) : I.es ? R["text-unicode"] : I.ena != null ? R.number : null, w = (I) => I.es ? I.es : I.ena != null ? I.ena : I.e, C = (I, x, Y, z = !1) => {
|
|
2901
|
+
const [B, j] = typeof x == "string" ? [H(x), x] : [x, x.name];
|
|
2902
2902
|
!z && B.isNoop && B.isNoop(Y) || (j === "number" ? I.write("ena", Y) : j === "text-unicode" ? I.write("es", Y) : (I.write("et", j), I.write("e", Y)));
|
|
2903
2903
|
};
|
|
2904
2904
|
function v(I) {
|
|
@@ -2909,11 +2909,11 @@ function mg() {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
function F(I) {
|
|
2911
2911
|
if (I === null) return;
|
|
2912
|
-
const
|
|
2912
|
+
const x = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), z = (j) => {
|
|
2913
2913
|
let Q = !0, ee = !1;
|
|
2914
2914
|
for (let U in j) {
|
|
2915
2915
|
const G = j[U];
|
|
2916
|
-
if (Q = !1, o(U === "p" || U === "r" || U === "d" || U === "i" || U === "e" || U === "es" || U === "ena" || U === "et", "Invalid component item '" + U + "'"), U === "p") v(G), o(!
|
|
2916
|
+
if (Q = !1, o(U === "p" || U === "r" || U === "d" || U === "i" || U === "e" || U === "es" || U === "ena" || U === "et", "Invalid component item '" + U + "'"), U === "p") v(G), o(!x.has(G)), x.add(G), o(j.r === void 0);
|
|
2917
2917
|
else if (U === "d") v(G), o(!Y.has(G)), Y.add(G), o(j.i === void 0);
|
|
2918
2918
|
else if (U === "e" || U === "es" || U === "ena") {
|
|
2919
2919
|
o(!ee), ee = !0;
|
|
@@ -2940,11 +2940,11 @@ function mg() {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
return o(G !== 1, "Operation makes multiple descents. Remove some []"), o(U === 2 || U === 3), j[0];
|
|
2942
2942
|
};
|
|
2943
|
-
B(I, !0), o(
|
|
2944
|
-
for (let j = 0; j <
|
|
2943
|
+
B(I, !0), o(x.size === Y.size, "Mismatched picks and drops in op");
|
|
2944
|
+
for (let j = 0; j < x.size; j++) o(x.has(j)), o(Y.has(j));
|
|
2945
2945
|
}
|
|
2946
2946
|
function $(I) {
|
|
2947
|
-
let
|
|
2947
|
+
let x = 0, Y = [];
|
|
2948
2948
|
const z = s.writeCursor();
|
|
2949
2949
|
return z.mergeTree(I, (B, j) => {
|
|
2950
2950
|
const Q = W(B);
|
|
@@ -2953,14 +2953,14 @@ function mg() {
|
|
|
2953
2953
|
C(j, Q, Q.normalize ? Q.normalize(U) : U);
|
|
2954
2954
|
}
|
|
2955
2955
|
for (const U of ["r", "p", "i", "d"]) if (B[U] !== void 0) {
|
|
2956
|
-
const G = U === "p" || U === "d" ? (ee = B[U], Y[ee] == null && (Y[ee] =
|
|
2956
|
+
const G = U === "p" || U === "d" ? (ee = B[U], Y[ee] == null && (Y[ee] = x++), Y[ee]) : B[U];
|
|
2957
2957
|
j.write(U, G);
|
|
2958
2958
|
}
|
|
2959
2959
|
var ee;
|
|
2960
2960
|
}), z.get();
|
|
2961
2961
|
}
|
|
2962
|
-
function m(I,
|
|
2963
|
-
if (F(
|
|
2962
|
+
function m(I, x) {
|
|
2963
|
+
if (F(x), x === null) return I;
|
|
2964
2964
|
const Y = [];
|
|
2965
2965
|
return (function z(B, j) {
|
|
2966
2966
|
let Q = B, ee = 0, U = {
|
|
@@ -3003,11 +3003,11 @@ function mg() {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
var U, G, X;
|
|
3005
3005
|
return B;
|
|
3006
|
-
})(I,
|
|
3006
|
+
})(I, x), x);
|
|
3007
3007
|
}
|
|
3008
|
-
function D(I,
|
|
3009
|
-
I = I.slice(), F(
|
|
3010
|
-
const Y = s.readCursor(
|
|
3008
|
+
function D(I, x) {
|
|
3009
|
+
I = I.slice(), F(x);
|
|
3010
|
+
const Y = s.readCursor(x);
|
|
3011
3011
|
let z, B, j = !1;
|
|
3012
3012
|
const Q = [];
|
|
3013
3013
|
for (let U = 0; ; U++) {
|
|
@@ -3046,21 +3046,21 @@ function mg() {
|
|
|
3046
3046
|
U === z && ee();
|
|
3047
3047
|
}) : ee(), I;
|
|
3048
3048
|
}
|
|
3049
|
-
function O(I,
|
|
3050
|
-
if (F(I), F(
|
|
3051
|
-
if (
|
|
3049
|
+
function O(I, x) {
|
|
3050
|
+
if (F(I), F(x), I == null) return x;
|
|
3051
|
+
if (x == null) return I;
|
|
3052
3052
|
let Y = 0;
|
|
3053
|
-
const z = s.readCursor(I), B = s.readCursor(
|
|
3053
|
+
const z = s.readCursor(I), B = s.readCursor(x), j = s.writeCursor(), Q = [], ee = [], U = [], G = [], X = [], ne = [], de = /* @__PURE__ */ new Set();
|
|
3054
3054
|
z.traverse(null, (K) => {
|
|
3055
3055
|
K.p != null && (U[K.p] = z.clone());
|
|
3056
3056
|
}), B.traverse(null, (K) => {
|
|
3057
3057
|
K.d != null && (G[K.d] = B.clone());
|
|
3058
3058
|
});
|
|
3059
3059
|
const _e = s.writeCursor();
|
|
3060
|
-
return (function K(ce,
|
|
3061
|
-
o(
|
|
3062
|
-
const He = a(
|
|
3063
|
-
if (
|
|
3060
|
+
return (function K(ce, Le, ye, Re, Fe, $t, et, Ke) {
|
|
3061
|
+
o(Le || ye);
|
|
3062
|
+
const He = a(Le), mt = a(ye), vt = !!mt && mt.r !== void 0, on = !!He && He.i !== void 0, gt = He ? He.d : null, ut = mt ? mt.p : null, Bt = ($t || vt) && ut == null;
|
|
3063
|
+
if (ut != null) Re = G[ut], et = ee[ut] = new s.WriteCursor();
|
|
3064
3064
|
else if (mt && mt.r !== void 0) Re = null;
|
|
3065
3065
|
else {
|
|
3066
3066
|
const se = a(Re);
|
|
@@ -3079,11 +3079,11 @@ function mg() {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
let ae;
|
|
3081
3081
|
on ? (o(Fe === void 0), ae = He.i) : ae = Fe;
|
|
3082
|
-
const Ee = (
|
|
3083
|
-
if (
|
|
3082
|
+
const Ee = (ut == null ? !on || $t || vt : ae === void 0) ? null : et.getComponent();
|
|
3083
|
+
if (ut != null) {
|
|
3084
3084
|
if (!(Fe !== void 0 || on)) {
|
|
3085
3085
|
const se = gt != null ? X[gt] : Y++;
|
|
3086
|
-
ne[
|
|
3086
|
+
ne[ut] = se, Ke.write("p", se);
|
|
3087
3087
|
}
|
|
3088
3088
|
} else vt && (on || Fe !== void 0 || (mt.r, Ke.write("r", mt.r)));
|
|
3089
3089
|
const ue = Bt ? null : W(He), re = W(be);
|
|
@@ -3099,7 +3099,7 @@ function mg() {
|
|
|
3099
3099
|
}), we = s.advancer(ce, (se, Ce) => c(Ce) ? Se - se - 1 : se - Se, (se, Ce) => {
|
|
3100
3100
|
c(Ce) && Se++;
|
|
3101
3101
|
});
|
|
3102
|
-
if (s.eachChildOf(
|
|
3102
|
+
if (s.eachChildOf(Le, ye, (se, Ce, Ve) => {
|
|
3103
3103
|
let rt, jt, an = se, bt = se, Jn = se;
|
|
3104
3104
|
if (typeof se == "number") {
|
|
3105
3105
|
let Xe = se + ze;
|
|
@@ -3110,25 +3110,25 @@ function mg() {
|
|
|
3110
3110
|
(At || Wt && !Bt) && $e--, At && Ae--, Wt && ze--;
|
|
3111
3111
|
} else rt = we(se), jt = Ze(se);
|
|
3112
3112
|
Ke.descend(an), et.descend(bt);
|
|
3113
|
-
const In = he && !h(a(Ce)) ? ae[Jn] : void 0,
|
|
3114
|
-
var
|
|
3115
|
-
he && !Bt ? In !==
|
|
3113
|
+
const In = he && !h(a(Ce)) ? ae[Jn] : void 0, Lt = K(rt, Ce, Ve, jt, In, Bt, et, Ke);
|
|
3114
|
+
var xt, fe, Ue;
|
|
3115
|
+
he && !Bt ? In !== Lt && (ve || (ae = Array.isArray(ae) ? ae.slice() : Object.assign({}, ae), ve = !0), xt = ae, Ue = Lt, typeof (fe = Jn) == "number" ? (o(Array.isArray(xt)), o(fe < xt.length)) : (o(!Array.isArray(xt)), o(xt[fe] !== void 0)), Ue === void 0 ? typeof fe == "number" ? xt.splice(fe, 1) : delete xt[fe] : xt[fe] = Ue) : o(Lt === void 0), et.ascend(), Ke.ascend();
|
|
3116
3116
|
}), we.end(), Ze.end(), Ee != null) Ee.i = ae;
|
|
3117
|
-
else if (!$t && !vt &&
|
|
3117
|
+
else if (!$t && !vt && ut == null) return ae;
|
|
3118
3118
|
})(z, z.clone(), B, B.clone(), void 0, !1, j, _e), j.reset(), j.mergeTree(_e.get()), j.reset(), j.get(), Q.map((K) => K.get()), ee.map((K) => K.get()), z.traverse(j, (K, ce) => {
|
|
3119
|
-
const
|
|
3120
|
-
if (
|
|
3121
|
-
const ye = X[
|
|
3119
|
+
const Le = K.p;
|
|
3120
|
+
if (Le != null) {
|
|
3121
|
+
const ye = X[Le];
|
|
3122
3122
|
ye != null && ce.write("p", ye);
|
|
3123
|
-
const Re = Q[
|
|
3123
|
+
const Re = Q[Le];
|
|
3124
3124
|
Re && Re.get(), Re && ce.mergeTree(Re.get());
|
|
3125
3125
|
} else K.r !== void 0 && ce.write("r", K.r);
|
|
3126
3126
|
}), j.reset(), j.get(), B.traverse(j, (K, ce) => {
|
|
3127
|
-
const
|
|
3128
|
-
if (
|
|
3129
|
-
const Re = ne[
|
|
3127
|
+
const Le = K.d;
|
|
3128
|
+
if (Le != null) {
|
|
3129
|
+
const Re = ne[Le];
|
|
3130
3130
|
Re != null && ce.write("d", Re);
|
|
3131
|
-
const Fe = ee[
|
|
3131
|
+
const Fe = ee[Le];
|
|
3132
3132
|
Fe && ce.mergeTree(Fe.get());
|
|
3133
3133
|
} else K.i !== void 0 && ce.write("i", K.i);
|
|
3134
3134
|
const ye = W(K);
|
|
@@ -3137,7 +3137,7 @@ function mg() {
|
|
|
3137
3137
|
}
|
|
3138
3138
|
function T(I) {
|
|
3139
3139
|
if (I == null) return null;
|
|
3140
|
-
const
|
|
3140
|
+
const x = new s.ReadCursor(I), Y = new s.WriteCursor();
|
|
3141
3141
|
let z;
|
|
3142
3142
|
const B = [], j = [];
|
|
3143
3143
|
return (function Q(ee, U, G) {
|
|
@@ -3151,9 +3151,9 @@ function mg() {
|
|
|
3151
3151
|
let _e = 0;
|
|
3152
3152
|
for (const K of ee) {
|
|
3153
3153
|
U.descend(K);
|
|
3154
|
-
const ce = typeof K == "number" ? K - _e : K,
|
|
3154
|
+
const ce = typeof K == "number" ? K - _e : K, Le = _(G, ce);
|
|
3155
3155
|
h(ee.getComponent()) && _e++;
|
|
3156
|
-
const ye = Q(ee, U,
|
|
3156
|
+
const ye = Q(ee, U, Le);
|
|
3157
3157
|
if (G !== void 0 && ye !== void 0) {
|
|
3158
3158
|
if (de || (de = !0, G = u(G)), !g(G, ce)) throw Error("Cannot modify child - invalid operation");
|
|
3159
3159
|
G[ce] = ye;
|
|
@@ -3162,7 +3162,7 @@ function mg() {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
if (ne === void 0) return de ? G : void 0;
|
|
3164
3164
|
U.write("r", G);
|
|
3165
|
-
})(
|
|
3165
|
+
})(x, Y, void 0), z && (Y.reset(), (function Q(ee, U, G) {
|
|
3166
3166
|
const X = U.getComponent();
|
|
3167
3167
|
if (X) {
|
|
3168
3168
|
const K = X.d;
|
|
@@ -3177,11 +3177,11 @@ function mg() {
|
|
|
3177
3177
|
c(ce) && ne++;
|
|
3178
3178
|
});
|
|
3179
3179
|
for (const K of U) if (typeof K == "number") {
|
|
3180
|
-
const ce = K - de,
|
|
3181
|
-
G.descend(ye), Q(
|
|
3180
|
+
const ce = K - de, Le = _e(ce), ye = ce + ne;
|
|
3181
|
+
G.descend(ye), Q(Le, U, G), h(U.getComponent()) && de++, G.ascend();
|
|
3182
3182
|
} else G.descend(K), Q(_e(K), U, G), G.ascend();
|
|
3183
3183
|
_e.end();
|
|
3184
|
-
})(
|
|
3184
|
+
})(x.clone(), x, Y), j.length && (Y.reset(), x.traverse(Y, (Q, ee) => {
|
|
3185
3185
|
const U = Q.p;
|
|
3186
3186
|
if (U != null) {
|
|
3187
3187
|
const G = j[U];
|
|
@@ -3189,8 +3189,8 @@ function mg() {
|
|
|
3189
3189
|
}
|
|
3190
3190
|
}))), Y.get();
|
|
3191
3191
|
}
|
|
3192
|
-
const A = (I,
|
|
3193
|
-
function S(I,
|
|
3192
|
+
const A = (I, x) => I.some((Y) => typeof Y == "object" && (Array.isArray(Y) ? A(Y, x) : x(Y)));
|
|
3193
|
+
function S(I, x) {
|
|
3194
3194
|
if (I == null || !A(I, (U) => {
|
|
3195
3195
|
var G;
|
|
3196
3196
|
return U.r !== void 0 || ((G = W(U)) === null || G === void 0 ? void 0 : G.makeInvertible) != null;
|
|
@@ -3210,12 +3210,12 @@ function mg() {
|
|
|
3210
3210
|
let _e = 0;
|
|
3211
3211
|
for (const K of U) {
|
|
3212
3212
|
G.descend(K);
|
|
3213
|
-
const ce = typeof K == "number" ? K - _e : K,
|
|
3214
|
-
|
|
3213
|
+
const ce = typeof K == "number" ? K - _e : K, Le = _(X, ce), ye = ee(U, G, Le);
|
|
3214
|
+
Le !== ye && (de || (de = !0, X = u(X)), ye === void 0 ? (X = d(X, ce), typeof K == "number" && _e++) : X[ce] = ye), G.ascend();
|
|
3215
3215
|
}
|
|
3216
3216
|
return ne && (ne.r !== void 0 ? (G.write("r", r.default(X)), X = void 0) : ne.p != null && (X = void 0)), X;
|
|
3217
3217
|
};
|
|
3218
|
-
return ee(Y, z,
|
|
3218
|
+
return ee(Y, z, x), z.get(), B && (z.reset(), (function U(G, X, ne, de, _e) {
|
|
3219
3219
|
const K = X.getComponent();
|
|
3220
3220
|
if (K) {
|
|
3221
3221
|
K.i !== void 0 ? (de = K.i, _e = !0) : K.d != null && (de = Q[K.d], G = j[K.d], _e = !1, K.d);
|
|
@@ -3225,44 +3225,44 @@ function mg() {
|
|
|
3225
3225
|
C(ne, Re, Re.makeInvertible(Fe, de), !0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
|
-
let ce = 0,
|
|
3228
|
+
let ce = 0, Le = 0;
|
|
3229
3229
|
const ye = s.advancer(G, (Re, Fe) => c(Fe) ? ce - Re - 1 : Re - ce, (Re, Fe) => {
|
|
3230
3230
|
c(Fe) && ce++;
|
|
3231
3231
|
});
|
|
3232
3232
|
for (const Re of X) if (typeof Re == "number") {
|
|
3233
|
-
const Fe = Re -
|
|
3234
|
-
ne.descend(Re), U($t, X, ne, Ke, _e), h(X.getComponent()) &&
|
|
3233
|
+
const Fe = Re - Le, $t = ye(Fe), et = Fe + ce, Ke = _(de, _e ? Fe : et);
|
|
3234
|
+
ne.descend(Re), U($t, X, ne, Ke, _e), h(X.getComponent()) && Le++, ne.ascend();
|
|
3235
3235
|
} else {
|
|
3236
3236
|
const Fe = _(de, Re);
|
|
3237
3237
|
ne.descend(Re), U(ye(Re), X, ne, Fe, _e), ne.ascend();
|
|
3238
3238
|
}
|
|
3239
3239
|
ye.end();
|
|
3240
|
-
})(Y.clone(), Y, z,
|
|
3240
|
+
})(Y.clone(), Y, z, x, !1)), z.get();
|
|
3241
3241
|
}
|
|
3242
|
-
function N(I,
|
|
3243
|
-
return T(S(I,
|
|
3242
|
+
function N(I, x) {
|
|
3243
|
+
return T(S(I, x));
|
|
3244
3244
|
}
|
|
3245
3245
|
const M = (I) => {
|
|
3246
3246
|
if (I == null) return null;
|
|
3247
|
-
const
|
|
3247
|
+
const x = I.slice();
|
|
3248
3248
|
for (let Y = 0; Y < I.length; Y++) {
|
|
3249
|
-
const z =
|
|
3250
|
-
Array.isArray(z) && (
|
|
3249
|
+
const z = x[Y];
|
|
3250
|
+
Array.isArray(z) && (x[Y] = M(z));
|
|
3251
3251
|
}
|
|
3252
|
-
return
|
|
3252
|
+
return x;
|
|
3253
3253
|
};
|
|
3254
|
-
function
|
|
3254
|
+
function L(I, x, Y) {
|
|
3255
3255
|
o(Y === "left" || Y === "right", "Direction must be left or right");
|
|
3256
3256
|
const z = Y === "left" ? 0 : 1;
|
|
3257
|
-
if (
|
|
3257
|
+
if (x == null) return {
|
|
3258
3258
|
ok: !0,
|
|
3259
3259
|
result: I
|
|
3260
3260
|
};
|
|
3261
|
-
F(I), F(
|
|
3261
|
+
F(I), F(x);
|
|
3262
3262
|
let B = null;
|
|
3263
|
-
const j = [], Q = [], ee = [], U = [], G = [], X = [], ne = [], de = [], _e = [], K = [], ce = [],
|
|
3263
|
+
const j = [], Q = [], ee = [], U = [], G = [], X = [], ne = [], de = [], _e = [], K = [], ce = [], Le = [], ye = [], Re = [], Fe = [];
|
|
3264
3264
|
let $t = 0;
|
|
3265
|
-
const et = s.readCursor(I), Ke = s.readCursor(
|
|
3265
|
+
const et = s.readCursor(I), Ke = s.readCursor(x), He = s.writeCursor();
|
|
3266
3266
|
if ((function be(ae, Ee = null, ue) {
|
|
3267
3267
|
const re = a(Ee);
|
|
3268
3268
|
re && (re.r !== void 0 ? ue = Ee.clone() : re.p != null && (ue = null, X[re.p] = ae.clone()));
|
|
@@ -3316,7 +3316,7 @@ function mg() {
|
|
|
3316
3316
|
const Se = a(Ee);
|
|
3317
3317
|
if (c(Se)) {
|
|
3318
3318
|
const we = Se.p;
|
|
3319
|
-
we != null ? (ue = U[we], re =
|
|
3319
|
+
we != null ? (ue = U[we], re = Le[we] = s.writeCursor(), ve = !0, he = null) : (ue = null, he = Ee.clone());
|
|
3320
3320
|
} else h(a(ue)) && (ue = null);
|
|
3321
3321
|
const Ae = ae.getComponent();
|
|
3322
3322
|
if (Ae) {
|
|
@@ -3395,7 +3395,7 @@ function mg() {
|
|
|
3395
3395
|
const In = s.advancer(ue, void 0, (fe, Ue) => {
|
|
3396
3396
|
c(Ue) && Ve++;
|
|
3397
3397
|
});
|
|
3398
|
-
let
|
|
3398
|
+
let Lt = re != null && re.descendFirst(), xt = Lt;
|
|
3399
3399
|
for (const fe of Ee) if (typeof fe == "number") {
|
|
3400
3400
|
let Ue;
|
|
3401
3401
|
const Xe = h(Ee.getComponent()), Be = fe - Ce;
|
|
@@ -3420,7 +3420,7 @@ function mg() {
|
|
|
3420
3420
|
let Mr = null;
|
|
3421
3421
|
{
|
|
3422
3422
|
let Kt, yt;
|
|
3423
|
-
for (;
|
|
3423
|
+
for (; Lt && typeof (Kt = re.getKey()) == "number"; ) {
|
|
3424
3424
|
yt = Kt - rt;
|
|
3425
3425
|
const wn = re.getComponent(), ln = h(wn);
|
|
3426
3426
|
if (yt > Ys) break;
|
|
@@ -3442,7 +3442,7 @@ function mg() {
|
|
|
3442
3442
|
const Xt = wn.d;
|
|
3443
3443
|
K[Xt], Re[Xt], wn.i === void 0 && (K[Xt] || Re[Xt] != null && z !== 1) ? (K[Xt] || Re[Xt] != null && z === 0) && (rt++, an--) : rt++;
|
|
3444
3444
|
}
|
|
3445
|
-
|
|
3445
|
+
Lt = re.nextSibling();
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
3448
|
const oa = Ys + rt + jt + an;
|
|
@@ -3452,11 +3452,11 @@ function mg() {
|
|
|
3452
3452
|
for (; bt && (Ue = ae.getKey(), typeof Ue != "string" || !(Ue > fe || Ue === fe)); ) bt = ae.nextSibling();
|
|
3453
3453
|
const Xe = bt && Ue === fe ? ae : null, Be = In(fe);
|
|
3454
3454
|
let At;
|
|
3455
|
-
for (;
|
|
3456
|
-
const Wt =
|
|
3455
|
+
for (; Lt && (At = re.getKey(), typeof At != "string" || !(At > fe || At === fe)); ) Lt = re.nextSibling();
|
|
3456
|
+
const Wt = Lt && At === fe ? re : null;
|
|
3457
3457
|
he.descend(fe), be(Xe, Ee, Be, Wt, he, ve), he.ascend();
|
|
3458
3458
|
}
|
|
3459
|
-
return In.end(), Jn && ae.ascend(),
|
|
3459
|
+
return In.end(), Jn && ae.ascend(), xt && re.ascend(), ze;
|
|
3460
3460
|
})(et, et.clone(), Ke, Ke.clone(), He, null), B) return {
|
|
3461
3461
|
ok: !1,
|
|
3462
3462
|
conflict: B
|
|
@@ -3465,23 +3465,23 @@ function mg() {
|
|
|
3465
3465
|
const gt = (be, ae, Ee) => be.traverse(ae, (ue, re) => {
|
|
3466
3466
|
ue.d != null && Ee(ue.d, be, re);
|
|
3467
3467
|
});
|
|
3468
|
-
(K.length ||
|
|
3469
|
-
K[be] && !ce[be] && Ee.write("r", !0),
|
|
3468
|
+
(K.length || Le.length) && (gt(Ke, He, (be, ae, Ee) => {
|
|
3469
|
+
K[be] && !ce[be] && Ee.write("r", !0), Le[be] && Ee.mergeTree(Le[be].get());
|
|
3470
3470
|
}), He.reset());
|
|
3471
|
-
const
|
|
3471
|
+
const ut = [], Bt = [];
|
|
3472
3472
|
if ((ye.length || K.length) && !B) {
|
|
3473
3473
|
const be = s.readCursor(M(He.get()));
|
|
3474
3474
|
if (gt(be, null, (ae, Ee) => {
|
|
3475
|
-
|
|
3475
|
+
ut[ae] = Ee.clone();
|
|
3476
3476
|
}), ye.forEach((ae) => {
|
|
3477
3477
|
ae && gt(s.readCursor(ae.get()), null, (Ee, ue) => {
|
|
3478
|
-
|
|
3478
|
+
ut[Ee] = ue.clone();
|
|
3479
3479
|
});
|
|
3480
3480
|
}), (function ae(Ee, ue, re, he, ve, Se) {
|
|
3481
3481
|
const Ae = a(ue);
|
|
3482
3482
|
if (Ae && c(Ae)) if (Ae.p != null) {
|
|
3483
3483
|
const se = Ae.p;
|
|
3484
|
-
|
|
3484
|
+
ut[se].getPath(), re = ut[se], he = Bt[se] = s.writeCursor();
|
|
3485
3485
|
} else Ae.r !== void 0 && (re = null);
|
|
3486
3486
|
else h(a(re)) && (re = null);
|
|
3487
3487
|
const ze = Ee.getComponent();
|
|
@@ -3541,24 +3541,24 @@ function mg() {
|
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
3543
|
const P = (I) => {
|
|
3544
|
-
const
|
|
3545
|
-
throw
|
|
3544
|
+
const x = new Error("Transform detected write conflict");
|
|
3545
|
+
throw x.conflict = I, x.type = x.name = "writeConflict", x;
|
|
3546
3546
|
};
|
|
3547
|
-
function q(I,
|
|
3548
|
-
const z =
|
|
3547
|
+
function q(I, x, Y) {
|
|
3548
|
+
const z = L(I, x, Y);
|
|
3549
3549
|
if (z.ok) return z.result;
|
|
3550
3550
|
P(z.conflict);
|
|
3551
3551
|
}
|
|
3552
3552
|
const V = (I) => {
|
|
3553
|
-
const
|
|
3554
|
-
return s.readCursor(I).traverse(
|
|
3553
|
+
const x = s.writeCursor();
|
|
3554
|
+
return s.readCursor(I).traverse(x, (Y, z) => {
|
|
3555
3555
|
(h(Y) || W(Y)) && z.write("r", !0);
|
|
3556
|
-
}),
|
|
3557
|
-
}, oe = (I,
|
|
3556
|
+
}), x.get();
|
|
3557
|
+
}, oe = (I, x) => {
|
|
3558
3558
|
const { type: Y, op1: z, op2: B } = I;
|
|
3559
3559
|
switch (Y) {
|
|
3560
3560
|
case i.ConflictType.DROP_COLLISION:
|
|
3561
|
-
return
|
|
3561
|
+
return x === "left" ? [null, V(B)] : [V(z), null];
|
|
3562
3562
|
case i.ConflictType.RM_UNEXPECTED_CONTENT:
|
|
3563
3563
|
let j = !1;
|
|
3564
3564
|
return s.readCursor(z).traverse(null, (Q) => {
|
|
@@ -3570,16 +3570,16 @@ function mg() {
|
|
|
3570
3570
|
throw Error("Unrecognised conflict: " + Y);
|
|
3571
3571
|
}
|
|
3572
3572
|
};
|
|
3573
|
-
function le(I,
|
|
3573
|
+
function le(I, x, Y, z) {
|
|
3574
3574
|
let B = null;
|
|
3575
3575
|
for (; ; ) {
|
|
3576
|
-
const j = x
|
|
3576
|
+
const j = L(x, Y, z);
|
|
3577
3577
|
if (j.ok) return O(B, j.result);
|
|
3578
3578
|
{
|
|
3579
3579
|
const { conflict: Q } = j;
|
|
3580
3580
|
I(Q) || P(Q);
|
|
3581
3581
|
const [ee, U] = oe(Q, z);
|
|
3582
|
-
|
|
3582
|
+
x = O($(x), ee), Y = O($(Y), U), B = O(B, U);
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
@@ -3610,16 +3610,16 @@ function gg() {
|
|
|
3610
3610
|
} });
|
|
3611
3611
|
})(un)), un;
|
|
3612
3612
|
}
|
|
3613
|
-
var
|
|
3614
|
-
const _g = /* @__PURE__ */ St(
|
|
3613
|
+
var at = gg();
|
|
3614
|
+
const _g = /* @__PURE__ */ St(at), bR = /* @__PURE__ */ xc({
|
|
3615
3615
|
__proto__: null,
|
|
3616
3616
|
default: _g
|
|
3617
|
-
}, [
|
|
3617
|
+
}, [at]);
|
|
3618
3618
|
var pe = /* @__PURE__ */ ((e) => (e[e.COVER = 0] = "COVER", e[e.REPLACE = 1] = "REPLACE", e))(pe || {}), J = /* @__PURE__ */ ((e) => (e.RETAIN = "r", e.INSERT = "i", e.DELETE = "d", e))(J || {});
|
|
3619
|
-
const
|
|
3619
|
+
const Ls = lt("univer.config-service");
|
|
3620
3620
|
class pg {
|
|
3621
3621
|
constructor() {
|
|
3622
|
-
p(this, "_configChanged$", new
|
|
3622
|
+
p(this, "_configChanged$", new it());
|
|
3623
3623
|
p(this, "configChanged$", this._configChanged$.asObservable());
|
|
3624
3624
|
p(this, "_config", /* @__PURE__ */ new Map());
|
|
3625
3625
|
}
|
|
@@ -3646,11 +3646,11 @@ class pg {
|
|
|
3646
3646
|
});
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
|
-
const Tr =
|
|
3649
|
+
const Tr = lt("univer.context-service");
|
|
3650
3650
|
class Eg extends Ge {
|
|
3651
3651
|
constructor() {
|
|
3652
3652
|
super(...arguments);
|
|
3653
|
-
p(this, "_contextChanged$", new
|
|
3653
|
+
p(this, "_contextChanged$", new it());
|
|
3654
3654
|
p(this, "contextChanged$", this._contextChanged$.asObservable());
|
|
3655
3655
|
p(this, "_contextMap", /* @__PURE__ */ new Map());
|
|
3656
3656
|
}
|
|
@@ -3672,7 +3672,7 @@ class Eg extends Ge {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
3674
3674
|
var Cg = /* @__PURE__ */ ((e) => (e[e.SILENT = 0] = "SILENT", e[e.ERROR = 1] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 3] = "INFO", e[e.VERBOSE = 4] = "VERBOSE", e))(Cg || {});
|
|
3675
|
-
const Ct =
|
|
3675
|
+
const Ct = lt("univer.log");
|
|
3676
3676
|
class Rg extends Ge {
|
|
3677
3677
|
constructor() {
|
|
3678
3678
|
super(...arguments);
|
|
@@ -3718,8 +3718,8 @@ var wg = Object.getOwnPropertyDescriptor, Og = (e, t, n, r) => {
|
|
|
3718
3718
|
return s;
|
|
3719
3719
|
}, ti = (e, t) => (n, r) => t(n, r, e);
|
|
3720
3720
|
const Ni = "command.logExecution";
|
|
3721
|
-
var
|
|
3722
|
-
const Ds =
|
|
3721
|
+
var xs = /* @__PURE__ */ ((e) => (e[e.COMMAND = 0] = "COMMAND", e[e.OPERATION = 1] = "OPERATION", e[e.MUTATION = 2] = "MUTATION", e))(xs || {});
|
|
3722
|
+
const Ds = lt("univer.core.command-service");
|
|
3723
3723
|
class Sg {
|
|
3724
3724
|
constructor() {
|
|
3725
3725
|
p(this, "_commands", /* @__PURE__ */ new Map());
|
|
@@ -3913,7 +3913,7 @@ let Ti = class extends Ge {
|
|
|
3913
3913
|
Ti = Og([
|
|
3914
3914
|
ti(0, wt(zn)),
|
|
3915
3915
|
ti(1, Ct),
|
|
3916
|
-
ti(2,
|
|
3916
|
+
ti(2, Ls)
|
|
3917
3917
|
], Ti);
|
|
3918
3918
|
class bg {
|
|
3919
3919
|
constructor(t) {
|
|
@@ -3992,7 +3992,7 @@ function TR(e, t) {
|
|
|
3992
3992
|
}
|
|
3993
3993
|
const MR = (e) => new Promise((t) => {
|
|
3994
3994
|
Pl(
|
|
3995
|
-
Ag(e.onCommandExecuted.bind(e)).pipe(Nc(([n]) => n.type ===
|
|
3995
|
+
Ag(e.onCommandExecuted.bind(e)).pipe(Nc(([n]) => n.type === xs.MUTATION)),
|
|
3996
3996
|
vc(300)
|
|
3997
3997
|
).pipe(Tc(16), Mc()).subscribe(() => {
|
|
3998
3998
|
t();
|
|
@@ -4021,7 +4021,7 @@ function yg(e, t) {
|
|
|
4021
4021
|
}
|
|
4022
4022
|
return -1;
|
|
4023
4023
|
}
|
|
4024
|
-
function
|
|
4024
|
+
function LR(e, t) {
|
|
4025
4025
|
let n = 0, r = e.length - 1;
|
|
4026
4026
|
for (; n <= r; ) {
|
|
4027
4027
|
const s = Math.floor((r + n) / 2);
|
|
@@ -4054,7 +4054,7 @@ function Fr(e, t, n = !1) {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
return r;
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function xR(e) {
|
|
4058
4058
|
const t = new Blob([e], { type: "text/javascript" });
|
|
4059
4059
|
return window.URL.createObjectURL(t);
|
|
4060
4060
|
}
|
|
@@ -4103,23 +4103,23 @@ function Fa(e, t) {
|
|
|
4103
4103
|
}
|
|
4104
4104
|
const Mg = {
|
|
4105
4105
|
[_o.OFFICE]: {
|
|
4106
|
-
[
|
|
4107
|
-
[
|
|
4108
|
-
[
|
|
4109
|
-
[
|
|
4110
|
-
[
|
|
4111
|
-
[
|
|
4112
|
-
[
|
|
4113
|
-
[
|
|
4114
|
-
[
|
|
4115
|
-
[
|
|
4116
|
-
[
|
|
4117
|
-
[
|
|
4106
|
+
[ot.ACCENT1]: "#4472C4",
|
|
4107
|
+
[ot.ACCENT2]: "#ED7D31",
|
|
4108
|
+
[ot.ACCENT3]: "#A5A5A5",
|
|
4109
|
+
[ot.ACCENT4]: "#70AD47",
|
|
4110
|
+
[ot.ACCENT5]: "#5B9BD5",
|
|
4111
|
+
[ot.ACCENT6]: "#70AD47",
|
|
4112
|
+
[ot.DARK1]: "#000000",
|
|
4113
|
+
[ot.DARK2]: "#44546A",
|
|
4114
|
+
[ot.LIGHT1]: "#FFFFFF",
|
|
4115
|
+
[ot.LIGHT2]: "#E7E6E6",
|
|
4116
|
+
[ot.HYPERLINK]: "#0563C1",
|
|
4117
|
+
[ot.FOLLOWED_HYPERLINK]: "#954F72"
|
|
4118
4118
|
}
|
|
4119
4119
|
};
|
|
4120
4120
|
class Co {
|
|
4121
4121
|
constructor() {
|
|
4122
|
-
p(this, "_themeValue",
|
|
4122
|
+
p(this, "_themeValue", ot.LIGHT1);
|
|
4123
4123
|
p(this, "_themeColors");
|
|
4124
4124
|
p(this, "_themeTint");
|
|
4125
4125
|
p(this, "_rgbValue", "");
|
|
@@ -4130,7 +4130,7 @@ class Co {
|
|
|
4130
4130
|
return new Mi(this._rgbValue, this);
|
|
4131
4131
|
}
|
|
4132
4132
|
asThemeColor() {
|
|
4133
|
-
return new
|
|
4133
|
+
return new Li(this._themeValue, this._themeTint, this._themeColors, this);
|
|
4134
4134
|
}
|
|
4135
4135
|
build() {
|
|
4136
4136
|
switch (this._colorType) {
|
|
@@ -4198,7 +4198,7 @@ class Wn {
|
|
|
4198
4198
|
return !1;
|
|
4199
4199
|
}
|
|
4200
4200
|
}
|
|
4201
|
-
class
|
|
4201
|
+
class Lg {
|
|
4202
4202
|
constructor(t) {
|
|
4203
4203
|
p(this, "_saturation", 0);
|
|
4204
4204
|
p(this, "_hue", 0);
|
|
@@ -4331,7 +4331,7 @@ const Jt = class Jt extends Wn {
|
|
|
4331
4331
|
return s.get(this._themeColorType);
|
|
4332
4332
|
} else
|
|
4333
4333
|
s = /* @__PURE__ */ new Map(), Jt._cacheThemeColor.set(this._themeColors, s);
|
|
4334
|
-
const i = new
|
|
4334
|
+
const i = new Lg(Wn.hexValueToRgbColor(r));
|
|
4335
4335
|
i.setLightness(this.lumValue(this._themeTint, i.getLightness() * 255) / 255);
|
|
4336
4336
|
const o = i.asRgbColor();
|
|
4337
4337
|
return s.set(this._themeColorType, o), o;
|
|
@@ -4350,146 +4350,146 @@ const Jt = class Jt extends Wn {
|
|
|
4350
4350
|
}
|
|
4351
4351
|
};
|
|
4352
4352
|
p(Jt, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
4353
|
-
let
|
|
4353
|
+
let Li = Jt;
|
|
4354
4354
|
const PR = "rgb(", kR = "rgba(", Ha = {
|
|
4355
|
-
|
|
4356
|
-
|
|
4355
|
+
aliceblue: [240, 248, 255],
|
|
4356
|
+
antiquewhite: [250, 235, 215],
|
|
4357
4357
|
aqua: [0, 255, 255],
|
|
4358
4358
|
aquamarine: [127, 255, 212],
|
|
4359
4359
|
azure: [240, 255, 255],
|
|
4360
4360
|
beige: [245, 245, 220],
|
|
4361
4361
|
bisque: [255, 228, 196],
|
|
4362
4362
|
black: [0, 0, 0],
|
|
4363
|
-
|
|
4363
|
+
blanchealmond: [255, 235, 205],
|
|
4364
4364
|
blue: [0, 0, 255],
|
|
4365
|
-
|
|
4365
|
+
blueviolet: [138, 43, 226],
|
|
4366
4366
|
brown: [165, 42, 42],
|
|
4367
|
-
|
|
4368
|
-
|
|
4367
|
+
burlywood: [222, 184, 135],
|
|
4368
|
+
cadetblue: [95, 158, 160],
|
|
4369
4369
|
chartreuse: [127, 255, 0],
|
|
4370
4370
|
chocolate: [210, 105, 30],
|
|
4371
4371
|
coral: [255, 127, 80],
|
|
4372
|
-
|
|
4373
|
-
|
|
4372
|
+
cornflowerblue: [100, 149, 237],
|
|
4373
|
+
cornsilk: [255, 248, 220],
|
|
4374
4374
|
crimson: [220, 20, 60],
|
|
4375
4375
|
cyan: [0, 255, 255],
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4376
|
+
darkblue: [0, 0, 139],
|
|
4377
|
+
darkcyan: [0, 139, 139],
|
|
4378
|
+
darkgoldenrod: [184, 132, 11],
|
|
4379
|
+
darkgray: [169, 169, 169],
|
|
4380
|
+
darkgreen: [0, 100, 0],
|
|
4381
|
+
darkgrey: [169, 169, 169],
|
|
4382
|
+
darkkhaki: [189, 183, 107],
|
|
4383
|
+
darkmagenta: [139, 0, 139],
|
|
4384
|
+
darkolivegreen: [85, 107, 47],
|
|
4385
|
+
darkorange: [255, 140, 0],
|
|
4386
|
+
darkorchid: [153, 50, 204],
|
|
4387
|
+
darkred: [139, 0, 0],
|
|
4388
|
+
darksalmon: [233, 150, 122],
|
|
4389
|
+
darkseagreen: [143, 188, 143],
|
|
4390
|
+
darkslateblue: [72, 61, 139],
|
|
4391
|
+
darkslategray: [47, 79, 79],
|
|
4392
|
+
darkslategrey: [47, 79, 79],
|
|
4393
|
+
darkturquoise: [0, 206, 209],
|
|
4394
|
+
darkviolet: [148, 0, 211],
|
|
4395
|
+
darkyellow: [139, 128, 0],
|
|
4396
|
+
deeppink: [255, 20, 147],
|
|
4397
|
+
deepskyblue: [0, 191, 255],
|
|
4398
|
+
dimgray: [105, 105, 105],
|
|
4399
|
+
dimgrey: [105, 105, 105],
|
|
4400
|
+
dodgerblue: [30, 144, 255],
|
|
4401
4401
|
firebrick: [178, 34, 34],
|
|
4402
|
-
|
|
4403
|
-
|
|
4402
|
+
floralwhite: [255, 255, 240],
|
|
4403
|
+
forestgreen: [34, 139, 34],
|
|
4404
4404
|
fuchsia: [255, 0, 255],
|
|
4405
4405
|
gainsboro: [220, 220, 220],
|
|
4406
|
-
|
|
4406
|
+
ghostwhite: [248, 248, 255],
|
|
4407
4407
|
gold: [255, 215, 0],
|
|
4408
4408
|
goldenrod: [218, 165, 32],
|
|
4409
4409
|
gray: [128, 128, 128],
|
|
4410
4410
|
green: [0, 128, 0],
|
|
4411
|
-
|
|
4411
|
+
greenyellow: [173, 255, 47],
|
|
4412
4412
|
grey: [128, 128, 128],
|
|
4413
4413
|
honeydew: [240, 255, 240],
|
|
4414
|
-
|
|
4415
|
-
|
|
4414
|
+
hotpink: [255, 105, 180],
|
|
4415
|
+
indianred: [205, 92, 92],
|
|
4416
4416
|
indigo: [75, 0, 130],
|
|
4417
4417
|
ivory: [255, 255, 240],
|
|
4418
4418
|
khaki: [240, 230, 140],
|
|
4419
4419
|
lavender: [230, 230, 250],
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4420
|
+
lavenderblush: [255, 240, 245],
|
|
4421
|
+
lawngreen: [124, 252, 0],
|
|
4422
|
+
lemonchiffon: [255, 250, 205],
|
|
4423
4423
|
lightblue: [173, 216, 230],
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4424
|
+
lightcoral: [240, 128, 128],
|
|
4425
|
+
lightcyan: [224, 255, 255],
|
|
4426
|
+
lightgoldenrodyellow: [250, 250, 210],
|
|
4427
|
+
lightgray: [211, 211, 211],
|
|
4428
|
+
lightgreen: [144, 238, 144],
|
|
4429
|
+
lightgrey: [211, 211, 211],
|
|
4430
|
+
lightpink: [255, 182, 193],
|
|
4431
|
+
lightsalmon: [255, 160, 122],
|
|
4432
|
+
lightseagreen: [32, 178, 170],
|
|
4433
|
+
lightskyblue: [135, 206, 250],
|
|
4434
|
+
lightslategray: [119, 136, 153],
|
|
4435
|
+
lightslategrey: [119, 136, 153],
|
|
4436
|
+
lightsteelblue: [176, 196, 222],
|
|
4437
|
+
lightyellow: [255, 255, 224],
|
|
4438
4438
|
lime: [0, 255, 0],
|
|
4439
|
-
|
|
4439
|
+
limegreen: [50, 205, 50],
|
|
4440
4440
|
linen: [250, 240, 230],
|
|
4441
4441
|
magenta: [255, 0, 255],
|
|
4442
4442
|
maroon: [128, 0, 0],
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4443
|
+
mediumaquamarine: [102, 205, 170],
|
|
4444
|
+
mediumblue: [0, 0, 205],
|
|
4445
|
+
mediumorchid: [186, 85, 211],
|
|
4446
|
+
mediumpurple: [147, 112, 219],
|
|
4447
|
+
mediumseagreen: [60, 179, 113],
|
|
4448
|
+
mediumslateblue: [123, 104, 238],
|
|
4449
|
+
mediumspringgreen: [0, 250, 154],
|
|
4450
|
+
mediumturquoise: [72, 209, 204],
|
|
4451
|
+
mediumvioletred: [199, 21, 133],
|
|
4452
|
+
midbightblue: [25, 25, 112],
|
|
4453
|
+
mintcream: [245, 255, 250],
|
|
4454
|
+
mistyrose: [255, 228, 225],
|
|
4455
4455
|
moccasin: [255, 228, 181],
|
|
4456
|
-
|
|
4456
|
+
navajowhite: [255, 222, 173],
|
|
4457
4457
|
navy: [0, 0, 128],
|
|
4458
|
-
|
|
4458
|
+
oldlace: [253, 245, 230],
|
|
4459
4459
|
olive: [128, 128, 0],
|
|
4460
|
-
|
|
4460
|
+
olivedrab: [107, 142, 35],
|
|
4461
4461
|
orange: [255, 165, 0],
|
|
4462
|
-
|
|
4462
|
+
orangered: [255, 69, 0],
|
|
4463
4463
|
orchid: [218, 112, 214],
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4464
|
+
palegoldenrod: [238, 232, 170],
|
|
4465
|
+
palegreen: [152, 251, 152],
|
|
4466
|
+
paleturquoise: [175, 238, 238],
|
|
4467
|
+
palevioletred: [219, 112, 147],
|
|
4468
|
+
papayawhip: [255, 239, 213],
|
|
4469
|
+
peachpuff: [255, 218, 185],
|
|
4470
4470
|
peru: [205, 133, 63],
|
|
4471
4471
|
pink: [255, 192, 203],
|
|
4472
4472
|
plum: [221, 160, 203],
|
|
4473
|
-
|
|
4473
|
+
powderblue: [176, 224, 230],
|
|
4474
4474
|
purple: [128, 0, 128],
|
|
4475
|
-
|
|
4475
|
+
rebeccapurple: [102, 51, 153],
|
|
4476
4476
|
red: [255, 0, 0],
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4477
|
+
rosybrown: [188, 143, 143],
|
|
4478
|
+
royalblue: [65, 105, 225],
|
|
4479
|
+
saddlebrown: [139, 69, 19],
|
|
4480
4480
|
salmon: [250, 128, 114],
|
|
4481
|
-
|
|
4482
|
-
|
|
4481
|
+
sandybrown: [244, 164, 96],
|
|
4482
|
+
seagreen: [46, 139, 87],
|
|
4483
4483
|
seashell: [255, 245, 238],
|
|
4484
4484
|
sienna: [160, 82, 45],
|
|
4485
4485
|
silver: [192, 192, 192],
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4486
|
+
skyblue: [135, 206, 235],
|
|
4487
|
+
slateblue: [106, 90, 205],
|
|
4488
|
+
slategray: [119, 128, 144],
|
|
4489
|
+
slategrey: [119, 128, 144],
|
|
4490
4490
|
snow: [255, 255, 250],
|
|
4491
|
-
|
|
4492
|
-
|
|
4491
|
+
springgreen: [0, 255, 127],
|
|
4492
|
+
steelblue: [70, 130, 180],
|
|
4493
4493
|
tan: [210, 180, 140],
|
|
4494
4494
|
teal: [0, 128, 128],
|
|
4495
4495
|
thistle: [216, 191, 216],
|
|
@@ -4499,9 +4499,9 @@ const PR = "rgb(", kR = "rgba(", Ha = {
|
|
|
4499
4499
|
violet: [238, 130, 238],
|
|
4500
4500
|
wheat: [245, 222, 179],
|
|
4501
4501
|
white: [255, 255, 255],
|
|
4502
|
-
|
|
4502
|
+
whitesmoke: [245, 245, 245],
|
|
4503
4503
|
yellow: [255, 255, 0],
|
|
4504
|
-
|
|
4504
|
+
yellowgreen: [154, 205, 5]
|
|
4505
4505
|
};
|
|
4506
4506
|
class Tt {
|
|
4507
4507
|
constructor(t) {
|
|
@@ -4640,7 +4640,7 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4640
4640
|
};
|
|
4641
4641
|
return e.a !== void 0 && (n.a = e.a), n;
|
|
4642
4642
|
}
|
|
4643
|
-
const t = e.trim();
|
|
4643
|
+
const t = e.trim().toLowerCase();
|
|
4644
4644
|
if (Ha[t]) {
|
|
4645
4645
|
const n = Ha[t], r = {
|
|
4646
4646
|
r: Math.round(n[0]),
|
|
@@ -4650,14 +4650,14 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4650
4650
|
return r.a = n[3] || 1, r;
|
|
4651
4651
|
}
|
|
4652
4652
|
if (t.startsWith("#"))
|
|
4653
|
-
return
|
|
4653
|
+
return xg(t);
|
|
4654
4654
|
if (t.startsWith("rgb"))
|
|
4655
4655
|
return Dg(t);
|
|
4656
4656
|
if (t.startsWith("hsl"))
|
|
4657
4657
|
return Ug(t);
|
|
4658
4658
|
if (t.startsWith("hsv"))
|
|
4659
4659
|
return Pg(t);
|
|
4660
|
-
},
|
|
4660
|
+
}, xg = (e) => {
|
|
4661
4661
|
const t = e.substring(1), n = new RegExp(`.{1,${t.length >= 6 ? 2 : 1}}`, "g");
|
|
4662
4662
|
let r = t.match(n);
|
|
4663
4663
|
if (!r || r.length < 3)
|
|
@@ -4957,13 +4957,13 @@ function Xg(e, t, n, r) {
|
|
|
4957
4957
|
s[n + a - t] = o, o === void 0 && delete s[n + a - t];
|
|
4958
4958
|
});
|
|
4959
4959
|
}
|
|
4960
|
-
class
|
|
4960
|
+
class ft {
|
|
4961
4961
|
constructor(t = {}) {
|
|
4962
4962
|
p(this, "_matrix");
|
|
4963
4963
|
this._setOriginValue(t);
|
|
4964
4964
|
}
|
|
4965
4965
|
static MakeObjectMatrixSize(t) {
|
|
4966
|
-
return new
|
|
4966
|
+
return new ft({
|
|
4967
4967
|
[t - 1]: {}
|
|
4968
4968
|
});
|
|
4969
4969
|
}
|
|
@@ -5111,7 +5111,7 @@ class dt {
|
|
|
5111
5111
|
* @returns
|
|
5112
5112
|
*/
|
|
5113
5113
|
getFragment(t, n, r, s) {
|
|
5114
|
-
const i = new
|
|
5114
|
+
const i = new ft();
|
|
5115
5115
|
let o = 0;
|
|
5116
5116
|
for (let a = t; a <= n; a++) {
|
|
5117
5117
|
const l = {};
|
|
@@ -5136,7 +5136,7 @@ class dt {
|
|
|
5136
5136
|
* @returns
|
|
5137
5137
|
*/
|
|
5138
5138
|
getSlice(t, n, r, s) {
|
|
5139
|
-
const i = new
|
|
5139
|
+
const i = new ft();
|
|
5140
5140
|
for (let o = t; o <= n; o++)
|
|
5141
5141
|
for (let a = r; a <= s; a++) {
|
|
5142
5142
|
const l = this.getValue(o, a);
|
|
@@ -5145,7 +5145,7 @@ class dt {
|
|
|
5145
5145
|
return i;
|
|
5146
5146
|
}
|
|
5147
5147
|
getSliceDataAndCellCountByRows(t, n) {
|
|
5148
|
-
const r = new
|
|
5148
|
+
const r = new ft();
|
|
5149
5149
|
let s = 0;
|
|
5150
5150
|
for (let i = t; i <= n; i++) {
|
|
5151
5151
|
const o = this.getRow(i);
|
|
@@ -5250,7 +5250,7 @@ class dt {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
getArrayData() {
|
|
5252
5252
|
let t = 0, n = 0, r = !1, s = !1;
|
|
5253
|
-
const i = new
|
|
5253
|
+
const i = new ft();
|
|
5254
5254
|
return this.forEach((o, a) => {
|
|
5255
5255
|
r || (r = !0, t = o), Object.keys(a).forEach((l) => {
|
|
5256
5256
|
const u = Number(l);
|
|
@@ -5523,32 +5523,32 @@ function JR(e, t = !1) {
|
|
|
5523
5523
|
}
|
|
5524
5524
|
function Br(e) {
|
|
5525
5525
|
let t = "";
|
|
5526
|
-
return e ===
|
|
5526
|
+
return e === xe.NONE ? t = "none" : e === xe.THIN ? t = "0.5pt solid" : e === xe.HAIR ? t = "0.5pt double" : e === xe.DOTTED ? t = "0.5pt dotted" : e === xe.DASHED || e === xe.DASH_DOT ? t = "0.5pt dashed" : e === xe.DASH_DOT_DOT ? t = "0.5pt dotted" : e === xe.DOUBLE ? t = "0.5pt double" : e === xe.MEDIUM ? t = "1pt solid" : e === xe.MEDIUM_DASHED || e === xe.MEDIUM_DASH_DOT ? t = "1pt dashed" : e === xe.MEDIUM_DASH_DOT_DOT ? t = "1pt dotted" : e === xe.SLANT_DASH_DOT ? t = "0.5pt dashed" : e === xe.THICK && (t = "1.5pt solid"), t;
|
|
5527
5527
|
}
|
|
5528
5528
|
function ZR(e) {
|
|
5529
5529
|
let t = 0;
|
|
5530
5530
|
if (e = e.trim(), e === "none")
|
|
5531
|
-
t =
|
|
5531
|
+
t = xe.NONE;
|
|
5532
5532
|
else if (e === "0.5pt solid")
|
|
5533
|
-
t =
|
|
5533
|
+
t = xe.THIN;
|
|
5534
5534
|
else if (e === "0.5pt double")
|
|
5535
|
-
t =
|
|
5535
|
+
t = xe.HAIR;
|
|
5536
5536
|
else if (e === "0.5pt dotted")
|
|
5537
|
-
t =
|
|
5537
|
+
t = xe.DOTTED;
|
|
5538
5538
|
else if (e === "0.5pt dashed")
|
|
5539
|
-
t =
|
|
5539
|
+
t = xe.DASHED;
|
|
5540
5540
|
else if (e === "1pt solid")
|
|
5541
|
-
t =
|
|
5541
|
+
t = xe.MEDIUM;
|
|
5542
5542
|
else if (e === "1pt dashed")
|
|
5543
|
-
t =
|
|
5543
|
+
t = xe.MEDIUM_DASHED;
|
|
5544
5544
|
else if (e === "1pt dotted")
|
|
5545
|
-
t =
|
|
5545
|
+
t = xe.MEDIUM_DASH_DOT_DOT;
|
|
5546
5546
|
else if (e === "1.5pt solid")
|
|
5547
|
-
t =
|
|
5547
|
+
t = xe.THICK;
|
|
5548
5548
|
else if (!e.includes("none"))
|
|
5549
|
-
t =
|
|
5549
|
+
t = xe.THIN;
|
|
5550
5550
|
else
|
|
5551
|
-
return
|
|
5551
|
+
return xe.NONE;
|
|
5552
5552
|
return t;
|
|
5553
5553
|
}
|
|
5554
5554
|
function QR(e, t) {
|
|
@@ -5585,13 +5585,13 @@ function Wa(e) {
|
|
|
5585
5585
|
} : (Yg(e), e);
|
|
5586
5586
|
}
|
|
5587
5587
|
function n1(e, t) {
|
|
5588
|
-
const n = new
|
|
5588
|
+
const n = new ft(), { startRow: r, startColumn: s, endRow: i, endColumn: o } = t;
|
|
5589
5589
|
if (Z.isArray(e))
|
|
5590
5590
|
for (let a = 0; a <= i - r; a++)
|
|
5591
5591
|
for (let l = 0; l <= o - s; l++)
|
|
5592
5592
|
n.setValue(a + r, l + s, Wa(e[a][l]));
|
|
5593
5593
|
else
|
|
5594
|
-
new
|
|
5594
|
+
new ft(e).forValue((l, u, c) => {
|
|
5595
5595
|
n.setValue(l, u, Wa(c));
|
|
5596
5596
|
});
|
|
5597
5597
|
return n.getMatrix();
|
|
@@ -5623,8 +5623,8 @@ function t_() {
|
|
|
5623
5623
|
return (A <= 0 ? "+" : "-") + k(N, 2, "0") + ":" + k(M, 2, "0");
|
|
5624
5624
|
}, m: function T(A, S) {
|
|
5625
5625
|
if (A.date() < S.date()) return -T(S, A);
|
|
5626
|
-
var N = 12 * (S.year() - A.year()) + (S.month() - A.month()), M = A.clone().add(N, h),
|
|
5627
|
-
return +(-(N + (S - M) / (
|
|
5626
|
+
var N = 12 * (S.year() - A.year()) + (S.month() - A.month()), M = A.clone().add(N, h), L = S - M < 0, P = A.clone().add(N + (L ? -1 : 1), h);
|
|
5627
|
+
return +(-(N + (S - M) / (L ? M - P : P - M)) || 0);
|
|
5628
5628
|
}, a: function(T) {
|
|
5629
5629
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
5630
5630
|
}, p: function(T) {
|
|
@@ -5639,8 +5639,8 @@ function t_() {
|
|
|
5639
5639
|
var M;
|
|
5640
5640
|
if (!A) return w;
|
|
5641
5641
|
if (typeof A == "string") {
|
|
5642
|
-
var
|
|
5643
|
-
C[
|
|
5642
|
+
var L = A.toLowerCase();
|
|
5643
|
+
C[L] && (M = L), S && (C[L] = S, M = L);
|
|
5644
5644
|
var P = A.split("-");
|
|
5645
5645
|
if (!M && P.length > 1) return T(P[0]);
|
|
5646
5646
|
} else {
|
|
@@ -5663,7 +5663,7 @@ function t_() {
|
|
|
5663
5663
|
var A = T.prototype;
|
|
5664
5664
|
return A.parse = function(S) {
|
|
5665
5665
|
this.$d = (function(N) {
|
|
5666
|
-
var M = N.date,
|
|
5666
|
+
var M = N.date, L = N.utc;
|
|
5667
5667
|
if (M === null) return /* @__PURE__ */ new Date(NaN);
|
|
5668
5668
|
if (m.u(M)) return /* @__PURE__ */ new Date();
|
|
5669
5669
|
if (M instanceof Date) return new Date(M);
|
|
@@ -5671,7 +5671,7 @@ function t_() {
|
|
|
5671
5671
|
var P = M.match(R);
|
|
5672
5672
|
if (P) {
|
|
5673
5673
|
var q = P[2] - 1 || 0, V = (P[7] || "0").substring(0, 3);
|
|
5674
|
-
return
|
|
5674
|
+
return L ? new Date(Date.UTC(P[1], q, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, V)) : new Date(P[1], q, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, V);
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
5677
|
return new Date(M);
|
|
@@ -5697,37 +5697,37 @@ function t_() {
|
|
|
5697
5697
|
}, A.valueOf = function() {
|
|
5698
5698
|
return this.$d.getTime();
|
|
5699
5699
|
}, A.startOf = function(S, N) {
|
|
5700
|
-
var M = this,
|
|
5700
|
+
var M = this, L = !!m.u(N) || N, P = m.p(S), q = function(B, j) {
|
|
5701
5701
|
var Q = m.w(M.$u ? Date.UTC(M.$y, j, B) : new Date(M.$y, j, B), M);
|
|
5702
|
-
return
|
|
5702
|
+
return L ? Q : Q.endOf(u);
|
|
5703
5703
|
}, V = function(B, j) {
|
|
5704
|
-
return m.w(M.toDate()[B].apply(M.toDate("s"), (
|
|
5705
|
-
}, oe = this.$W, le = this.$M, I = this.$D,
|
|
5704
|
+
return m.w(M.toDate()[B].apply(M.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(j)), M);
|
|
5705
|
+
}, oe = this.$W, le = this.$M, I = this.$D, x = "set" + (this.$u ? "UTC" : "");
|
|
5706
5706
|
switch (P) {
|
|
5707
5707
|
case f:
|
|
5708
|
-
return
|
|
5708
|
+
return L ? q(1, 0) : q(31, 11);
|
|
5709
5709
|
case h:
|
|
5710
|
-
return
|
|
5710
|
+
return L ? q(1, le) : q(0, le + 1);
|
|
5711
5711
|
case c:
|
|
5712
5712
|
var Y = this.$locale().weekStart || 0, z = (oe < Y ? oe + 7 : oe) - Y;
|
|
5713
|
-
return q(
|
|
5713
|
+
return q(L ? I - z : I + (6 - z), le);
|
|
5714
5714
|
case u:
|
|
5715
5715
|
case g:
|
|
5716
|
-
return V(
|
|
5716
|
+
return V(x + "Hours", 0);
|
|
5717
5717
|
case l:
|
|
5718
|
-
return V(
|
|
5718
|
+
return V(x + "Minutes", 1);
|
|
5719
5719
|
case a:
|
|
5720
|
-
return V(
|
|
5720
|
+
return V(x + "Seconds", 2);
|
|
5721
5721
|
case o:
|
|
5722
|
-
return V(
|
|
5722
|
+
return V(x + "Milliseconds", 3);
|
|
5723
5723
|
default:
|
|
5724
5724
|
return this.clone();
|
|
5725
5725
|
}
|
|
5726
5726
|
}, A.endOf = function(S) {
|
|
5727
5727
|
return this.startOf(S, !1);
|
|
5728
5728
|
}, A.$set = function(S, N) {
|
|
5729
|
-
var M,
|
|
5730
|
-
if (
|
|
5729
|
+
var M, L = m.p(S), P = "set" + (this.$u ? "UTC" : ""), q = (M = {}, M[u] = P + "Date", M[g] = P + "Date", M[h] = P + "Month", M[f] = P + "FullYear", M[l] = P + "Hours", M[a] = P + "Minutes", M[o] = P + "Seconds", M[i] = P + "Milliseconds", M)[L], V = L === u ? this.$D + (N - this.$W) : N;
|
|
5730
|
+
if (L === h || L === f) {
|
|
5731
5731
|
var oe = this.clone().set(g, 1);
|
|
5732
5732
|
oe.$d[q](V), oe.init(), this.$d = oe.set(g, Math.min(this.$D, oe.daysInMonth())).$d;
|
|
5733
5733
|
} else q && this.$d[q](V);
|
|
@@ -5737,11 +5737,11 @@ function t_() {
|
|
|
5737
5737
|
}, A.get = function(S) {
|
|
5738
5738
|
return this[m.p(S)]();
|
|
5739
5739
|
}, A.add = function(S, N) {
|
|
5740
|
-
var M,
|
|
5740
|
+
var M, L = this;
|
|
5741
5741
|
S = Number(S);
|
|
5742
5742
|
var P = m.p(N), q = function(le) {
|
|
5743
|
-
var I = $(
|
|
5744
|
-
return m.w(I.date(I.date() + Math.round(le * S)),
|
|
5743
|
+
var I = $(L);
|
|
5744
|
+
return m.w(I.date(I.date() + Math.round(le * S)), L);
|
|
5745
5745
|
};
|
|
5746
5746
|
if (P === h) return this.set(h, this.$M + S);
|
|
5747
5747
|
if (P === f) return this.set(f, this.$y + S);
|
|
@@ -5754,15 +5754,15 @@ function t_() {
|
|
|
5754
5754
|
}, A.format = function(S) {
|
|
5755
5755
|
var N = this, M = this.$locale();
|
|
5756
5756
|
if (!this.isValid()) return M.invalidDate || _;
|
|
5757
|
-
var
|
|
5758
|
-
return j && (j[Q] || j(N,
|
|
5757
|
+
var L = S || "YYYY-MM-DDTHH:mm:ssZ", P = m.z(this), q = this.$H, V = this.$m, oe = this.$M, le = M.weekdays, I = M.months, x = M.meridiem, Y = function(j, Q, ee, U) {
|
|
5758
|
+
return j && (j[Q] || j(N, L)) || ee[Q].slice(0, U);
|
|
5759
5759
|
}, z = function(j) {
|
|
5760
5760
|
return m.s(q % 12 || 12, j, "0");
|
|
5761
|
-
}, B =
|
|
5761
|
+
}, B = x || function(j, Q, ee) {
|
|
5762
5762
|
var U = j < 12 ? "AM" : "PM";
|
|
5763
5763
|
return ee ? U.toLowerCase() : U;
|
|
5764
5764
|
};
|
|
5765
|
-
return
|
|
5765
|
+
return L.replace(b, (function(j, Q) {
|
|
5766
5766
|
return Q || (function(ee) {
|
|
5767
5767
|
switch (ee) {
|
|
5768
5768
|
case "YY":
|
|
@@ -5820,46 +5820,46 @@ function t_() {
|
|
|
5820
5820
|
}, A.utcOffset = function() {
|
|
5821
5821
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5822
5822
|
}, A.diff = function(S, N, M) {
|
|
5823
|
-
var
|
|
5823
|
+
var L, P = this, q = m.p(N), V = $(S), oe = (V.utcOffset() - this.utcOffset()) * r, le = this - V, I = function() {
|
|
5824
5824
|
return m.m(P, V);
|
|
5825
5825
|
};
|
|
5826
5826
|
switch (q) {
|
|
5827
5827
|
case f:
|
|
5828
|
-
|
|
5828
|
+
L = I() / 12;
|
|
5829
5829
|
break;
|
|
5830
5830
|
case h:
|
|
5831
|
-
|
|
5831
|
+
L = I();
|
|
5832
5832
|
break;
|
|
5833
5833
|
case d:
|
|
5834
|
-
|
|
5834
|
+
L = I() / 3;
|
|
5835
5835
|
break;
|
|
5836
5836
|
case c:
|
|
5837
|
-
|
|
5837
|
+
L = (le - oe) / 6048e5;
|
|
5838
5838
|
break;
|
|
5839
5839
|
case u:
|
|
5840
|
-
|
|
5840
|
+
L = (le - oe) / 864e5;
|
|
5841
5841
|
break;
|
|
5842
5842
|
case l:
|
|
5843
|
-
|
|
5843
|
+
L = le / s;
|
|
5844
5844
|
break;
|
|
5845
5845
|
case a:
|
|
5846
|
-
|
|
5846
|
+
L = le / r;
|
|
5847
5847
|
break;
|
|
5848
5848
|
case o:
|
|
5849
|
-
|
|
5849
|
+
L = le / n;
|
|
5850
5850
|
break;
|
|
5851
5851
|
default:
|
|
5852
|
-
|
|
5852
|
+
L = le;
|
|
5853
5853
|
}
|
|
5854
|
-
return M ?
|
|
5854
|
+
return M ? L : m.a(L);
|
|
5855
5855
|
}, A.daysInMonth = function() {
|
|
5856
5856
|
return this.endOf(h).$D;
|
|
5857
5857
|
}, A.$locale = function() {
|
|
5858
5858
|
return C[this.$L];
|
|
5859
5859
|
}, A.locale = function(S, N) {
|
|
5860
5860
|
if (!S) return this.$L;
|
|
5861
|
-
var M = this.clone(),
|
|
5862
|
-
return
|
|
5861
|
+
var M = this.clone(), L = F(S, N, !0);
|
|
5862
|
+
return L && (M.$L = L), M;
|
|
5863
5863
|
}, A.clone = function() {
|
|
5864
5864
|
return m.w(this.$d, this);
|
|
5865
5865
|
}, A.toDate = function() {
|
|
@@ -6017,11 +6017,11 @@ function l_() {
|
|
|
6017
6017
|
S.call(m, M), $ = $.replace(M, "");
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
6020
|
-
return (function(
|
|
6021
|
-
var P =
|
|
6020
|
+
return (function(L) {
|
|
6021
|
+
var P = L.afternoon;
|
|
6022
6022
|
if (P !== void 0) {
|
|
6023
|
-
var q =
|
|
6024
|
-
P ? q < 12 && (
|
|
6023
|
+
var q = L.hours;
|
|
6024
|
+
P ? q < 12 && (L.hours += 12) : q === 12 && (L.hours = 0), delete L.afternoon;
|
|
6025
6025
|
}
|
|
6026
6026
|
})(m), m;
|
|
6027
6027
|
};
|
|
@@ -6035,13 +6035,13 @@ function l_() {
|
|
|
6035
6035
|
var F = y[1];
|
|
6036
6036
|
if (typeof F == "string") {
|
|
6037
6037
|
var $ = y[2] === !0, m = y[3] === !0, D = $ || m, O = y[2];
|
|
6038
|
-
m && (O = y[2]), l = this.$locale(), !$ && O && (l = H.Ls[O]), this.$d = (function(N, M,
|
|
6038
|
+
m && (O = y[2]), l = this.$locale(), !$ && O && (l = H.Ls[O]), this.$d = (function(N, M, L, P) {
|
|
6039
6039
|
try {
|
|
6040
6040
|
if (["x", "X"].indexOf(M) > -1) return new Date((M === "X" ? 1e3 : 1) * N);
|
|
6041
|
-
var q = _(M)(N), V = q.year, oe = q.month, le = q.day, I = q.hours,
|
|
6041
|
+
var q = _(M)(N), V = q.year, oe = q.month, le = q.day, I = q.hours, x = q.minutes, Y = q.seconds, z = q.milliseconds, B = q.zone, j = q.week, Q = /* @__PURE__ */ new Date(), ee = le || (V || oe ? 1 : Q.getDate()), U = V || Q.getFullYear(), G = 0;
|
|
6042
6042
|
V && !oe || (G = oe > 0 ? oe - 1 : Q.getMonth());
|
|
6043
|
-
var X, ne = I || 0, de =
|
|
6044
|
-
return B ? new Date(Date.UTC(U, G, ee, ne, de, _e, K + 60 * B.offset * 1e3)) :
|
|
6043
|
+
var X, ne = I || 0, de = x || 0, _e = Y || 0, K = z || 0;
|
|
6044
|
+
return B ? new Date(Date.UTC(U, G, ee, ne, de, _e, K + 60 * B.offset * 1e3)) : L ? new Date(Date.UTC(U, G, ee, ne, de, _e, K)) : (X = new Date(U, G, ee, ne, de, _e, K), j && (X = P(X).week(j).toDate()), X);
|
|
6045
6045
|
} catch {
|
|
6046
6046
|
return /* @__PURE__ */ new Date("");
|
|
6047
6047
|
}
|
|
@@ -6292,7 +6292,7 @@ function y_() {
|
|
|
6292
6292
|
var N_ = y_();
|
|
6293
6293
|
const T_ = /* @__PURE__ */ St(N_);
|
|
6294
6294
|
var us = { exports: {} }, M_ = us.exports, Za;
|
|
6295
|
-
function
|
|
6295
|
+
function L_() {
|
|
6296
6296
|
return Za || (Za = 1, (function(e, t) {
|
|
6297
6297
|
(function(n, r) {
|
|
6298
6298
|
e.exports = r();
|
|
@@ -6306,8 +6306,8 @@ function x_() {
|
|
|
6306
6306
|
}));
|
|
6307
6307
|
})(us)), us.exports;
|
|
6308
6308
|
}
|
|
6309
|
-
var
|
|
6310
|
-
const D_ = /* @__PURE__ */ St(
|
|
6309
|
+
var x_ = L_();
|
|
6310
|
+
const D_ = /* @__PURE__ */ St(x_);
|
|
6311
6311
|
rn.extend(c_);
|
|
6312
6312
|
rn.extend(o_);
|
|
6313
6313
|
rn.extend(b_);
|
|
@@ -6554,7 +6554,7 @@ class jr {
|
|
|
6554
6554
|
return this.getValueType(t) === "[object Number]";
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
|
-
const ur = 2, cr = 2 ** 2, cs = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6,
|
|
6557
|
+
const ur = 2, cr = 2 ** 2, cs = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6, xi = 2 ** 7, Di = 2 ** 8, Ui = 2 ** 9, B_ = 0, j_ = 2958466, W_ = -694324, Y_ = 35830291, z_ = -1, el = 1, Pn = 6, Io = "general", wo = "hash", kn = "zero", Oo = "qmark", So = "slash", Sr = "group", ps = "scale", vo = "comma", bo = "break", Us = "text", Ao = "plus", yo = "minus", Es = "point", No = "space", To = "percent", Ps = "digit", Mo = "calendar", vr = "error", Lo = "datetime", xo = "duration", Do = "condition", Uo = "dbnum", Po = "natnum", ko = "locale", Fo = "color", Cu = "modifier", Ho = "ampm", $o = "escaped", Bo = "string", jo = "skip", Wo = "exp", Yo = "fill", zo = "paren", ks = "char", V_ = [
|
|
6558
6558
|
"#000",
|
|
6559
6559
|
"#FFF",
|
|
6560
6560
|
"#F00",
|
|
@@ -7590,7 +7590,7 @@ function bu(e, t = 2, n = 2) {
|
|
|
7590
7590
|
}
|
|
7591
7591
|
return d;
|
|
7592
7592
|
}
|
|
7593
|
-
const
|
|
7593
|
+
const ht = Math.floor;
|
|
7594
7594
|
function Au(e, t = !0) {
|
|
7595
7595
|
if (t && e >= 0) {
|
|
7596
7596
|
if (e === 0)
|
|
@@ -7601,12 +7601,12 @@ function Au(e, t = !0) {
|
|
|
7601
7601
|
return [1900, e < 32 ? 1 : 2, (e - 1) % 31 + 1];
|
|
7602
7602
|
}
|
|
7603
7603
|
let n = e + 68569 + 2415019;
|
|
7604
|
-
const r =
|
|
7605
|
-
n = n -
|
|
7606
|
-
const s =
|
|
7607
|
-
n = n -
|
|
7608
|
-
const i =
|
|
7609
|
-
n =
|
|
7604
|
+
const r = ht(4 * n / 146097);
|
|
7605
|
+
n = n - ht((146097 * r + 3) / 4);
|
|
7606
|
+
const s = ht(4e3 * (n + 1) / 1461001);
|
|
7607
|
+
n = n - ht(1461 * s / 4) + 31;
|
|
7608
|
+
const i = ht(80 * n / 2447), o = n - ht(2447 * i / 80);
|
|
7609
|
+
n = ht(i / 11);
|
|
7610
7610
|
const a = i + 2 - 12 * n;
|
|
7611
7611
|
return [100 * (r - 49) + s + n | 0, a | 0, o | 0];
|
|
7612
7612
|
}
|
|
@@ -7622,15 +7622,15 @@ function J_(e) {
|
|
|
7622
7622
|
return [1317, e < 32 ? 9 : 10, 1 + (e - 2) % 30];
|
|
7623
7623
|
const t = 10631 / 30, n = 8.01 / 60;
|
|
7624
7624
|
let r = e + 466935;
|
|
7625
|
-
const s =
|
|
7625
|
+
const s = ht(r / 10631);
|
|
7626
7626
|
r = r - 10631 * s;
|
|
7627
|
-
const i =
|
|
7628
|
-
r = r -
|
|
7629
|
-
const o =
|
|
7630
|
-
return o === 13 ? [30 * s + i, 12, 30] : [30 * s + i, o, r -
|
|
7627
|
+
const i = ht((r - n) / t);
|
|
7628
|
+
r = r - ht(i * t + n);
|
|
7629
|
+
const o = ht((r + 28.5001) / 29.5);
|
|
7630
|
+
return o === 13 ? [30 * s + i, 12, 30] : [30 * s + i, o, r - ht(29.5001 * o - 29)];
|
|
7631
7631
|
}
|
|
7632
7632
|
function yu(e, t = 0, n = !0) {
|
|
7633
|
-
const r =
|
|
7633
|
+
const r = ht(e);
|
|
7634
7634
|
return t === Pn ? J_(r) : t === z_ ? q_(r) : Au(r, n);
|
|
7635
7635
|
}
|
|
7636
7636
|
const Wr = Math.floor, oi = 86400;
|
|
@@ -7753,15 +7753,15 @@ const Q_ = [
|
|
|
7753
7753
|
"Y-M"
|
|
7754
7754
|
// 1908-Apr
|
|
7755
7755
|
], ep = { j: "d", d: "d", D: "ddd", l: "dddd", n: "m", m: "m", M: "mmm", F: "mmmm", y: "yy", Y: "yyyy" }, tp = { j: "dd", d: "dd", D: "ddd", l: "dddd", n: "mm", m: "mm", M: "mmm", F: "mmmm", y: "yy", Y: "yyyy" }, Nu = {}, Tu = {};
|
|
7756
|
-
function
|
|
7756
|
+
function ct(e, t, n = 1) {
|
|
7757
7757
|
if (e) {
|
|
7758
7758
|
const r = e[0], s = e.slice(1);
|
|
7759
|
-
r === "!" ?
|
|
7759
|
+
r === "!" ? ct(s, t, 4) : r === "?" ? ct(s, t, 2) : (t[r] = t[r] || {}, ct(s, t[r], n));
|
|
7760
7760
|
} else
|
|
7761
7761
|
t.$ = n;
|
|
7762
7762
|
}
|
|
7763
7763
|
function tl(e, t) {
|
|
7764
|
-
|
|
7764
|
+
ct(e, t), ct(e + " x", t), ct(e + " l", t), ct(e + " l x", t), ct("l " + e, t), ct("l " + e + " x", t), ct(e + " D", t), ct(e + " D x", t), ct("D " + e, t), ct("D " + e + " x", t);
|
|
7765
7765
|
}
|
|
7766
7766
|
Q_.forEach((e) => {
|
|
7767
7767
|
e[0] !== "?" && tl(e, Nu), e[0] !== "!" && tl(e, Tu);
|
|
@@ -8005,7 +8005,7 @@ function Fs(e, t = {}) {
|
|
|
8005
8005
|
}
|
|
8006
8006
|
return null;
|
|
8007
8007
|
}
|
|
8008
|
-
function
|
|
8008
|
+
function Lu(e, t = {}) {
|
|
8009
8009
|
const n = qn(t.locale || "") || Qt, r = e.trim().toLowerCase(), s = n.bool[0].toLowerCase();
|
|
8010
8010
|
if (r === "true" || r === s)
|
|
8011
8011
|
return { v: !0 };
|
|
@@ -8014,7 +8014,7 @@ function xu(e, t = {}) {
|
|
|
8014
8014
|
}
|
|
8015
8015
|
function op(e, t) {
|
|
8016
8016
|
var n, r, s;
|
|
8017
|
-
return (s = (r = (n = Zo(e, t)) != null ? n : Qo(e, t)) != null ? r : Fs(e, t)) != null ? s :
|
|
8017
|
+
return (s = (r = (n = Zo(e, t)) != null ? n : Qo(e, t)) != null ? r : Fs(e, t)) != null ? s : Lu(e, t);
|
|
8018
8018
|
}
|
|
8019
8019
|
function hn(e, t, n) {
|
|
8020
8020
|
return t[n + "_max"] = e.length, t[n + "_min"] = e.replace(/#/g, "").length, t;
|
|
@@ -8082,7 +8082,7 @@ function mr(e) {
|
|
|
8082
8082
|
n.text = !0, Ye(C, t);
|
|
8083
8083
|
else if (v === Ao || v === yo)
|
|
8084
8084
|
Ye(C, t);
|
|
8085
|
-
else if (v ===
|
|
8085
|
+
else if (v === xo) {
|
|
8086
8086
|
const y = C.value.toLowerCase(), F = y[0], $ = { type: "", size: 0, date: 1, pad: y.length };
|
|
8087
8087
|
F === "h" ? ($.size = hr, $.type = "hour-elap") : F === "m" ? ($.size = dr, $.type = "min-elap") : ($.size = fr, $.type = "sec-elap"), n.date = n.date | $.size, i.push($), Ye($, t);
|
|
8088
8088
|
} else if (n.date && v === Es && ((k = e[l + 1]) == null ? void 0 : k.type) === kn) {
|
|
@@ -8090,7 +8090,7 @@ function mr(e) {
|
|
|
8090
8090
|
l++;
|
|
8091
8091
|
let F = "0";
|
|
8092
8092
|
((W = e[l + 1]) == null ? void 0 : W.type) === kn && (F += "0", y = 2, l++), ((w = e[l + 1]) == null ? void 0 : w.type) === kn && (F += "0", y = 3, l++), c += F;
|
|
8093
|
-
const $ = [fr,
|
|
8093
|
+
const $ = [fr, xi, Di, Ui][y];
|
|
8094
8094
|
n.date = n.date | $, n.date_eval = !0, n.sec_decimals = Math.max(n.sec_decimals, y), Ye({
|
|
8095
8095
|
type: "subsec",
|
|
8096
8096
|
size: $,
|
|
@@ -8099,7 +8099,7 @@ function mr(e) {
|
|
|
8099
8099
|
}, t);
|
|
8100
8100
|
} else if (v === Mo)
|
|
8101
8101
|
a || (C.value === "B2" || C.value === "b2" ? n.date_system = Pn : n.date_system = el);
|
|
8102
|
-
else if (v ===
|
|
8102
|
+
else if (v === Lo) {
|
|
8103
8103
|
const y = { type: "", size: 0, date: 1 }, F = C.value.toLowerCase(), $ = F[0];
|
|
8104
8104
|
if (F === "y" || F === "yy")
|
|
8105
8105
|
y.size = ur, y.type = "year-short";
|
|
@@ -8192,7 +8192,7 @@ function ap(e) {
|
|
|
8192
8192
|
const t = Math.ceil(Math.log10(e < 0 ? -e : e)), n = 10 ** (16 - Math.floor(t));
|
|
8193
8193
|
return isFinite(n) ? Math.round(e * n) / n : 0;
|
|
8194
8194
|
}
|
|
8195
|
-
function
|
|
8195
|
+
function xu(e, t = 0) {
|
|
8196
8196
|
const n = Math.floor(Math.log10(e));
|
|
8197
8197
|
return t > 1 ? Math.floor(n / t) * t : n;
|
|
8198
8198
|
}
|
|
@@ -8255,7 +8255,7 @@ function ol(e, t, n, r) {
|
|
|
8255
8255
|
e.push(Math.abs(s));
|
|
8256
8256
|
else {
|
|
8257
8257
|
const i = Math.abs(n);
|
|
8258
|
-
let o =
|
|
8258
|
+
let o = xu(i), a = Du(i, o);
|
|
8259
8259
|
a === 10 && (a = 1, o++);
|
|
8260
8260
|
const l = up(i);
|
|
8261
8261
|
if (o >= -4 && o <= -1) {
|
|
@@ -8292,7 +8292,7 @@ function al(e, t, n, r) {
|
|
|
8292
8292
|
const w = r || Qt;
|
|
8293
8293
|
if (!t.text && isFinite(t.scale) && t.scale !== 1 && (e = ap(e * t.scale)), t.exponential) {
|
|
8294
8294
|
let N = Math.abs(e);
|
|
8295
|
-
N && (c =
|
|
8295
|
+
N && (c = xu(N, t.int_max)), e && !t.integer && c++, N = Du(N, c), t.int_max === 1 && Rt(N, t.frac_max) === 10 && (N = 1, c++), e = e < 0 ? -N : N, s += Math.abs(c);
|
|
8296
8296
|
}
|
|
8297
8297
|
if (t.integer) {
|
|
8298
8298
|
const N = Math.abs(Rt(e, t.fractions ? 1 : t.frac_max));
|
|
@@ -8319,8 +8319,8 @@ function al(e, t, n, r) {
|
|
|
8319
8319
|
h = Math.trunc(e);
|
|
8320
8320
|
const N = er * (e - h);
|
|
8321
8321
|
if (d = Math.floor(N), W = N - d, Math.abs(W) < 1e-6 ? W = 0 : W > 0.9999 && (W = 0, d += 1, d === er && (d = 0, h += 1)), W) {
|
|
8322
|
-
const M = t.date & Ui || t.date & Di || t.date &
|
|
8323
|
-
(M === Ui && W > 0.9995 || M === Di && W > 0.995 || M ===
|
|
8322
|
+
const M = t.date & Ui || t.date & Di || t.date & xi;
|
|
8323
|
+
(M === Ui && W > 0.9995 || M === Di && W > 0.995 || M === xi && W > 0.95 || !M && W >= 0.5) && (d++, W = 0);
|
|
8324
8324
|
}
|
|
8325
8325
|
if (h || t.date_system) {
|
|
8326
8326
|
const M = yu(e, t.date_system, n.leap1900);
|
|
@@ -8342,39 +8342,39 @@ function al(e, t, n, r) {
|
|
|
8342
8342
|
}
|
|
8343
8343
|
const $ = dn("?", n.nbsp);
|
|
8344
8344
|
c < 0 ? i = "-" : t.exp_plus && (i = "+");
|
|
8345
|
-
const m = [], D = (N, M,
|
|
8346
|
-
const q = !P && N.length > M.length ?
|
|
8345
|
+
const m = [], D = (N, M, L, P) => {
|
|
8346
|
+
const q = !P && N.length > M.length ? L.length + N.length - M.length : L.length;
|
|
8347
8347
|
N.length < M.length && (P += N.length - M.length);
|
|
8348
8348
|
for (let V = 0; V < q; V++)
|
|
8349
|
-
m.push(N[V + P] || dn(
|
|
8349
|
+
m.push(N[V + P] || dn(L[V], n.nbsp));
|
|
8350
8350
|
return q;
|
|
8351
8351
|
};
|
|
8352
8352
|
let O = !1;
|
|
8353
8353
|
const T = { int: 0, frac: 0, man: 0, num: 0, den: 0 };
|
|
8354
8354
|
for (let N = 0, M = t.tokens.length; N < M; N++) {
|
|
8355
|
-
const
|
|
8355
|
+
const L = t.tokens[N], P = L.type, q = L.num ? L.num.length : 0;
|
|
8356
8356
|
if (P === "string")
|
|
8357
|
-
|
|
8357
|
+
L.rule ? L.rule === "num" ? F ? m.push(L.value.replace(/ /g, $)) : (t.num_min > 0 || t.den_min > 0) && m.push(L.value.replace(/./g, $)) : L.rule === "num+int" ? F && u ? m.push(L.value.replace(/ /g, $)) : t.den_min > 0 && (u || t.num_min) && m.push(L.value.replace(/./g, $)) : L.rule === "den" && (F ? m.push(L.value.replace(/ /g, $)) : (t.den_min > 0 || t.den_min > 0) && m.push(L.value.replace(/./g, $))) : m.push(L.value.replace(/ /g, $));
|
|
8358
8358
|
else if (P === "space")
|
|
8359
|
-
|
|
8359
|
+
L.rule === "num+int" ? (F || t.num_min || t.den_min) && (u || t.num_min) && m.push($) : m.push($);
|
|
8360
8360
|
else if (P === "error")
|
|
8361
8361
|
m.push(n.invalid);
|
|
8362
8362
|
else if (P === "point")
|
|
8363
|
-
m.push(t.date ?
|
|
8363
|
+
m.push(t.date ? L.value : w.decimal);
|
|
8364
8364
|
else if (P === "general")
|
|
8365
8365
|
ol(m, t, e, w);
|
|
8366
8366
|
else if (P === "exp")
|
|
8367
8367
|
m.push(w.exponent);
|
|
8368
8368
|
else if (P === "minus")
|
|
8369
|
-
|
|
8369
|
+
L.volatile && t.date || L.volatile && (e >= 0 || typeof e != "number") || (L.volatile && !t.fractions && (t.integer || t.dec_fractions) ? (e < 0 && u && u !== "0" || l) && m.push(w.negative) : m.push(w.negative));
|
|
8370
8370
|
else if (P === "plus")
|
|
8371
8371
|
m.push(w.positive);
|
|
8372
8372
|
else if (P === "text")
|
|
8373
8373
|
m.push(e);
|
|
8374
8374
|
else if (P === "fill")
|
|
8375
|
-
n.fillChar && m.push(n.fillChar,
|
|
8375
|
+
n.fillChar && m.push(n.fillChar, L.value);
|
|
8376
8376
|
else if (P === "skip")
|
|
8377
|
-
n.skipChar ? m.push(n.skipChar,
|
|
8377
|
+
n.skipChar ? m.push(n.skipChar, L.value) : m.push(n.nbsp ? " " : " ");
|
|
8378
8378
|
else if (P === "div")
|
|
8379
8379
|
F ? m.push("/") : t.num_min > 0 || t.den_min > 0 ? m.push($) : m.push(dn("#", n.nbsp));
|
|
8380
8380
|
else if (P === "int")
|
|
@@ -8382,32 +8382,32 @@ function al(e, t, n, r) {
|
|
|
8382
8382
|
const V = t.int_p, oe = Math.max(t.int_min, u.length);
|
|
8383
8383
|
let le = "";
|
|
8384
8384
|
for (let I = oe; I > 0; I--) {
|
|
8385
|
-
const
|
|
8385
|
+
const x = u.charAt(u.length - I), Y = x ? "" : V.charAt(V.length - I) || V[0];
|
|
8386
8386
|
let z = "";
|
|
8387
8387
|
if (t.grouping) {
|
|
8388
8388
|
const B = I - 1 - C;
|
|
8389
|
-
B >= 0 && !(B % v) && (z =
|
|
8389
|
+
B >= 0 && !(B % v) && (z = x || Y === "0" ? w.group : dn("?", n.nbsp));
|
|
8390
8390
|
}
|
|
8391
|
-
le += (
|
|
8391
|
+
le += (x || dn(Y, n.nbsp)) + z;
|
|
8392
8392
|
}
|
|
8393
8393
|
m.push(le);
|
|
8394
8394
|
} else
|
|
8395
|
-
T.int += D(u, t.int_p,
|
|
8395
|
+
T.int += D(u, t.int_p, L.num, T.int);
|
|
8396
8396
|
else if (P === "frac") {
|
|
8397
8397
|
const V = T.frac;
|
|
8398
8398
|
for (let oe = 0; oe < q; oe++)
|
|
8399
|
-
m.push(l[oe + V] || dn(
|
|
8399
|
+
m.push(l[oe + V] || dn(L.num[oe], n.nbsp));
|
|
8400
8400
|
T.frac += q;
|
|
8401
8401
|
} else if (P === "man")
|
|
8402
|
-
!T[P] && !T.man && m.push(i), T.man += D(s, t.man_p,
|
|
8402
|
+
!T[P] && !T.man && m.push(i), T.man += D(s, t.man_p, L.num, T.man);
|
|
8403
8403
|
else if (P === "num")
|
|
8404
|
-
T.num += D(o, t.num_p,
|
|
8404
|
+
T.num += D(o, t.num_p, L.num, T.num);
|
|
8405
8405
|
else if (P === "den") {
|
|
8406
8406
|
const V = T.den;
|
|
8407
8407
|
for (let oe = 0; oe < q; oe++) {
|
|
8408
8408
|
let le = a[oe + V];
|
|
8409
8409
|
if (!le) {
|
|
8410
|
-
const I =
|
|
8410
|
+
const I = L.num[oe];
|
|
8411
8411
|
"123456789".includes(I) || O && I === "0" ? (O = !0, le = n.nbsp ? " " : " ") : !O && oe === q - 1 && I === "0" && !a ? le = "1" : le = dn(I, n.nbsp);
|
|
8412
8412
|
}
|
|
8413
8413
|
m.push(le);
|
|
@@ -8419,45 +8419,45 @@ function al(e, t, n, r) {
|
|
|
8419
8419
|
const V = f % 100;
|
|
8420
8420
|
m.push(V < 10 ? "0" : "", V);
|
|
8421
8421
|
} else if (P === "month")
|
|
8422
|
-
m.push(
|
|
8422
|
+
m.push(L.pad && g < 10 ? "0" : "", g);
|
|
8423
8423
|
else if (P === "monthname-single")
|
|
8424
8424
|
t.date_system === Pn ? m.push(w.mmmm6[g - 1].charAt(0)) : m.push(w.mmmm[g - 1].charAt(0));
|
|
8425
8425
|
else if (P === "monthname-short")
|
|
8426
8426
|
t.date_system === Pn ? m.push(w.mmm6[g - 1]) : m.push(w.mmm[g - 1]);
|
|
8427
8427
|
else if (P === "monthname")
|
|
8428
8428
|
t.date_system === Pn ? m.push(w.mmmm6[g - 1]) : m.push(w.mmmm[g - 1]);
|
|
8429
|
-
else if (
|
|
8429
|
+
else if (L.type === "weekday-short")
|
|
8430
8430
|
m.push(w.ddd[R]);
|
|
8431
8431
|
else if (P === "weekday")
|
|
8432
8432
|
m.push(w.dddd[R]);
|
|
8433
8433
|
else if (P === "day")
|
|
8434
|
-
m.push(
|
|
8434
|
+
m.push(L.pad && _ < 10 ? "0" : "", _);
|
|
8435
8435
|
else if (P === "hour") {
|
|
8436
8436
|
const V = b % t.clock || (t.clock < 24 ? t.clock : 0);
|
|
8437
|
-
m.push(
|
|
8437
|
+
m.push(L.pad && V < 10 ? "0" : "", V);
|
|
8438
8438
|
} else if (P === "min")
|
|
8439
|
-
m.push(
|
|
8439
|
+
m.push(L.pad && H < 10 ? "0" : "", H);
|
|
8440
8440
|
else if (P === "sec")
|
|
8441
|
-
m.push(
|
|
8441
|
+
m.push(L.pad && k < 10 ? "0" : "", k);
|
|
8442
8442
|
else if (P === "subsec") {
|
|
8443
8443
|
m.push(w.decimal);
|
|
8444
8444
|
const V = W.toFixed(t.sec_decimals);
|
|
8445
|
-
m.push(V.slice(2, 2 +
|
|
8445
|
+
m.push(V.slice(2, 2 + L.decimals));
|
|
8446
8446
|
} else if (P === "ampm") {
|
|
8447
8447
|
const V = b < 12 ? 0 : 1;
|
|
8448
|
-
|
|
8448
|
+
L.short && !r ? m.push("AP"[V]) : m.push(w.ampm[V]);
|
|
8449
8449
|
} else if (P === "hour-elap") {
|
|
8450
8450
|
e < 0 && m.push(w.negative);
|
|
8451
8451
|
const V = h * 24 + Math.floor(Math.abs(d) / 3600);
|
|
8452
|
-
m.push(String(Math.abs(V)).padStart(
|
|
8452
|
+
m.push(String(Math.abs(V)).padStart(L.pad, "0"));
|
|
8453
8453
|
} else if (P === "min-elap") {
|
|
8454
8454
|
e < 0 && m.push(w.negative);
|
|
8455
8455
|
const V = h * 1440 + Math.floor(Math.abs(d) / 60);
|
|
8456
|
-
m.push(String(Math.abs(V)).padStart(
|
|
8456
|
+
m.push(String(Math.abs(V)).padStart(L.pad, "0"));
|
|
8457
8457
|
} else if (P === "sec-elap") {
|
|
8458
8458
|
e < 0 && m.push(w.negative);
|
|
8459
8459
|
const V = h * er + Math.abs(d);
|
|
8460
|
-
m.push(String(Math.abs(V)).padStart(
|
|
8460
|
+
m.push(String(Math.abs(V)).padStart(L.pad, "0"));
|
|
8461
8461
|
} else if (P === "b-year")
|
|
8462
8462
|
m.push(f + 543);
|
|
8463
8463
|
else if (P === "b-year-short") {
|
|
@@ -8601,8 +8601,8 @@ const Ep = [
|
|
|
8601
8601
|
[Mo, /^(?:B[12])/i, 0],
|
|
8602
8602
|
[vr, /^B$/, 0],
|
|
8603
8603
|
// pattern must not end in a "B"
|
|
8604
|
-
[
|
|
8605
|
-
[
|
|
8604
|
+
[Lo, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
|
|
8605
|
+
[xo, /^(?:\[(h+|m+|s+)\])/i, 1],
|
|
8606
8606
|
[Do, /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/, [1, 2]],
|
|
8607
8607
|
[Uo, /^\[(DBNum[0-4]?\d)\]/i, 1],
|
|
8608
8608
|
[Po, /^\[(NatNum[0-4]?\d)\]/i, 1],
|
|
@@ -8806,10 +8806,10 @@ const yn = Object.freeze({
|
|
|
8806
8806
|
COLOR: Fo,
|
|
8807
8807
|
COMMA: vo,
|
|
8808
8808
|
CONDITION: Do,
|
|
8809
|
-
DATETIME:
|
|
8809
|
+
DATETIME: Lo,
|
|
8810
8810
|
DBNUM: Uo,
|
|
8811
8811
|
DIGIT: Ps,
|
|
8812
|
-
DURATION:
|
|
8812
|
+
DURATION: xo,
|
|
8813
8813
|
ERROR: vr,
|
|
8814
8814
|
ESCAPED: $o,
|
|
8815
8815
|
EXP: Wo,
|
|
@@ -8848,7 +8848,7 @@ const yn = Object.freeze({
|
|
|
8848
8848
|
isPercentFormat: bp,
|
|
8849
8849
|
isTextFormat: Ap,
|
|
8850
8850
|
isValidFormat: yp,
|
|
8851
|
-
parseBool:
|
|
8851
|
+
parseBool: Lu,
|
|
8852
8852
|
parseDate: Qo,
|
|
8853
8853
|
parseLocale: Vo,
|
|
8854
8854
|
parseNumber: Zo,
|
|
@@ -8857,12 +8857,12 @@ const yn = Object.freeze({
|
|
|
8857
8857
|
round: Rt,
|
|
8858
8858
|
tokenTypes: yn,
|
|
8859
8859
|
tokenize: Mn
|
|
8860
|
-
}, Symbol.toStringTag, { value: "Module" })), Mp = "@@@",
|
|
8860
|
+
}, Symbol.toStringTag, { value: "Module" })), Mp = "@@@", Lp = "@", xp = "General";
|
|
8861
8861
|
function c1(e) {
|
|
8862
|
-
return e === Mp || e ===
|
|
8862
|
+
return e === Mp || e === Lp;
|
|
8863
8863
|
}
|
|
8864
8864
|
function h1(e) {
|
|
8865
|
-
return e == null || e ===
|
|
8865
|
+
return e == null || e === xp;
|
|
8866
8866
|
}
|
|
8867
8867
|
const d1 = (e, t) => {
|
|
8868
8868
|
if (e && !t || !e && t)
|
|
@@ -9237,7 +9237,7 @@ const Ir = class Ir {
|
|
|
9237
9237
|
* @returns range matrix
|
|
9238
9238
|
*/
|
|
9239
9239
|
getMatrix() {
|
|
9240
|
-
const { startRow: t, endRow: n, startColumn: r, endColumn: s } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
9240
|
+
const { startRow: t, endRow: n, startColumn: r, endColumn: s } = this._range, i = this._worksheet.getCellMatrix(), o = new ft();
|
|
9241
9241
|
for (let a = t; a <= n; a++)
|
|
9242
9242
|
for (let l = r; l <= s; l++)
|
|
9243
9243
|
o.setValue(a, l, i.getValue(a, l) || null);
|
|
@@ -9249,7 +9249,7 @@ const Ir = class Ir {
|
|
|
9249
9249
|
* @returns range matrix object
|
|
9250
9250
|
*/
|
|
9251
9251
|
getMatrixObject() {
|
|
9252
|
-
const { startRow: t, endRow: n, startColumn: r, endColumn: s } = this._range, i = this._worksheet.getCellMatrix(), o = new
|
|
9252
|
+
const { startRow: t, endRow: n, startColumn: r, endColumn: s } = this._range, i = this._worksheet.getCellMatrix(), o = new ft();
|
|
9253
9253
|
for (let a = t; a <= n; a++)
|
|
9254
9254
|
for (let l = r; l <= s; l++)
|
|
9255
9255
|
o.setValue(a - t, l - r, i.getValue(a, l) || {});
|
|
@@ -11318,7 +11318,7 @@ const Kr = {
|
|
|
11318
11318
|
])
|
|
11319
11319
|
};
|
|
11320
11320
|
Object.assign(Bs, o0);
|
|
11321
|
-
const
|
|
11321
|
+
const L1 = {
|
|
11322
11322
|
"1.": "ORDER_LIST",
|
|
11323
11323
|
"a)": "ORDER_LIST_QUICK_2",
|
|
11324
11324
|
"a.": "ORDER_LIST_QUICK_3",
|
|
@@ -11645,7 +11645,7 @@ function _0(e, t, n) {
|
|
|
11645
11645
|
startIndex: i.startIndex - t
|
|
11646
11646
|
}));
|
|
11647
11647
|
}
|
|
11648
|
-
function
|
|
11648
|
+
function x1(e, t, n) {
|
|
11649
11649
|
const { sectionBreaks: r = [] } = e, s = [];
|
|
11650
11650
|
for (const i of r) {
|
|
11651
11651
|
const { startIndex: o } = i;
|
|
@@ -12018,7 +12018,7 @@ function El(e, t, n, r, s) {
|
|
|
12018
12018
|
}
|
|
12019
12019
|
return n === pe.REPLACE && r === pe.REPLACE ? i.bullet = s === 1 ? Z.deepClone(e.bullet) : Z.deepClone(t.bullet) : e.bullet === void 0 ? i.bullet = Z.deepClone(t.bullet) : n === pe.REPLACE || r === pe.REPLACE ? i.bullet = s === 0 && t.bullet ? Z.deepClone(t.bullet) : Z.deepClone(e.bullet) : s === 0 && t.bullet !== void 0 && (i.bullet = Z.deepClone(t.bullet)), i;
|
|
12020
12020
|
}
|
|
12021
|
-
function
|
|
12021
|
+
function L0(e, t) {
|
|
12022
12022
|
if (e == null || t == null)
|
|
12023
12023
|
return t;
|
|
12024
12024
|
if (e.length === 0 || t.length === 0)
|
|
@@ -12039,7 +12039,7 @@ function x0(e, t) {
|
|
|
12039
12039
|
}
|
|
12040
12040
|
return n;
|
|
12041
12041
|
}
|
|
12042
|
-
function
|
|
12042
|
+
function x0(e, t, n = !1) {
|
|
12043
12043
|
const { body: r, coverType: s = pe.COVER } = e, { body: i, coverType: o = pe.COVER } = t;
|
|
12044
12044
|
if (r == null || r.dataStream !== "" || i == null || i.dataStream !== "")
|
|
12045
12045
|
throw new Error("Data stream is not supported in retain transform.");
|
|
@@ -12073,7 +12073,7 @@ function L0(e, t, n = !1) {
|
|
|
12073
12073
|
/* COVER */
|
|
12074
12074
|
);
|
|
12075
12075
|
H && (a.customRanges = H);
|
|
12076
|
-
const k =
|
|
12076
|
+
const k = L0(
|
|
12077
12077
|
d,
|
|
12078
12078
|
R
|
|
12079
12079
|
);
|
|
@@ -12111,7 +12111,7 @@ function L0(e, t, n = !1) {
|
|
|
12111
12111
|
function Cl(e) {
|
|
12112
12112
|
return Object.keys(e).length === 1;
|
|
12113
12113
|
}
|
|
12114
|
-
const
|
|
12114
|
+
const Ln = class Ln {
|
|
12115
12115
|
constructor() {
|
|
12116
12116
|
p(this, "_actions", []);
|
|
12117
12117
|
}
|
|
@@ -12120,7 +12120,7 @@ const xn = class xn {
|
|
|
12120
12120
|
}
|
|
12121
12121
|
// eslint-disable-next-line complexity
|
|
12122
12122
|
static compose(t, n) {
|
|
12123
|
-
const r = new nr(t), s = new nr(n), i = new
|
|
12123
|
+
const r = new nr(t), s = new nr(n), i = new Ln();
|
|
12124
12124
|
for (; r.hasNext() || s.hasNext(); )
|
|
12125
12125
|
if (s.peekType() === J.INSERT)
|
|
12126
12126
|
i.push(s.next());
|
|
@@ -12181,7 +12181,7 @@ const xn = class xn {
|
|
|
12181
12181
|
}
|
|
12182
12182
|
// otherActions is the actions to be transformed.
|
|
12183
12183
|
static _transform(t, n, r = "right") {
|
|
12184
|
-
const s = new nr(t), i = new nr(n), o = new
|
|
12184
|
+
const s = new nr(t), i = new nr(n), o = new Ln();
|
|
12185
12185
|
for (; s.hasNext() || i.hasNext(); )
|
|
12186
12186
|
if (s.peekType() === J.INSERT && (r === "left" || i.peekType() !== J.INSERT)) {
|
|
12187
12187
|
const a = s.next();
|
|
@@ -12199,7 +12199,7 @@ const xn = class xn {
|
|
|
12199
12199
|
if (l.body == null || u.body == null)
|
|
12200
12200
|
o.push(u);
|
|
12201
12201
|
else {
|
|
12202
|
-
const { coverType: c, body: h } =
|
|
12202
|
+
const { coverType: c, body: h } = x0(l, u, r === "left");
|
|
12203
12203
|
o.push({
|
|
12204
12204
|
...u,
|
|
12205
12205
|
t: J.RETAIN,
|
|
@@ -12339,81 +12339,81 @@ const xn = class xn {
|
|
|
12339
12339
|
}
|
|
12340
12340
|
};
|
|
12341
12341
|
// static name = 'text-x';
|
|
12342
|
-
p(
|
|
12343
|
-
let Te =
|
|
12342
|
+
p(Ln, "id", "text-x"), p(Ln, "uri", "https://github.com/dream-num/univer#text-x");
|
|
12343
|
+
let Te = Ln;
|
|
12344
12344
|
Object.defineProperty(Te, "name", {
|
|
12345
12345
|
value: "text-x"
|
|
12346
12346
|
});
|
|
12347
|
-
const
|
|
12347
|
+
const xn = class xn {
|
|
12348
12348
|
static registerSubtype(t) {
|
|
12349
12349
|
var n;
|
|
12350
|
-
t == null || this._subTypes.has(t.name) && ((n = this._subTypes.get(t.name)) == null ? void 0 : n.id) !== Te.id || (this._subTypes.set(t.name, t),
|
|
12350
|
+
t == null || this._subTypes.has(t.name) && ((n = this._subTypes.get(t.name)) == null ? void 0 : n.id) !== Te.id || (this._subTypes.set(t.name, t), at.type.registerSubtype(t));
|
|
12351
12351
|
}
|
|
12352
12352
|
static apply(t, n) {
|
|
12353
|
-
if (!
|
|
12354
|
-
return
|
|
12353
|
+
if (!at.type.isNoop(n))
|
|
12354
|
+
return at.type.apply(t, n);
|
|
12355
12355
|
}
|
|
12356
12356
|
static compose(t, n) {
|
|
12357
|
-
return
|
|
12357
|
+
return at.type.compose(t, n);
|
|
12358
12358
|
}
|
|
12359
12359
|
static transform(t, n, r) {
|
|
12360
|
-
return
|
|
12360
|
+
return at.type.transform(t, n, r);
|
|
12361
12361
|
}
|
|
12362
12362
|
// Use to transform cursor position, just call TextXPro.transformPosition.
|
|
12363
12363
|
static transformPosition(t, n, r = "right") {
|
|
12364
12364
|
return t && t.length === 2 && t[0] === "body" && t[1].et === Te.name ? Te.transformPosition(t[1].e, n, r === "left") : n;
|
|
12365
12365
|
}
|
|
12366
12366
|
static invertWithDoc(t, n) {
|
|
12367
|
-
return
|
|
12367
|
+
return at.type.invertWithDoc(t, n);
|
|
12368
12368
|
}
|
|
12369
12369
|
static isNoop(t) {
|
|
12370
|
-
return
|
|
12370
|
+
return at.type.isNoop(t);
|
|
12371
12371
|
}
|
|
12372
12372
|
static getInstance() {
|
|
12373
|
-
return this._instance == null && (this._instance = new
|
|
12373
|
+
return this._instance == null && (this._instance = new xn()), this._instance;
|
|
12374
12374
|
}
|
|
12375
12375
|
// eslint-disable-next-line ts/no-explicit-any
|
|
12376
12376
|
removeOp(t, n) {
|
|
12377
|
-
return
|
|
12377
|
+
return at.removeOp(t, n);
|
|
12378
12378
|
}
|
|
12379
12379
|
moveOp(t, n) {
|
|
12380
|
-
return
|
|
12380
|
+
return at.moveOp(t, n);
|
|
12381
12381
|
}
|
|
12382
12382
|
// eslint-disable-next-line ts/no-explicit-any
|
|
12383
12383
|
insertOp(t, n) {
|
|
12384
|
-
return
|
|
12384
|
+
return at.insertOp(t, n);
|
|
12385
12385
|
}
|
|
12386
12386
|
// eslint-disable-next-line ts/no-explicit-any
|
|
12387
12387
|
replaceOp(t, n, r) {
|
|
12388
|
-
return
|
|
12388
|
+
return at.replaceOp(t, n, r);
|
|
12389
12389
|
}
|
|
12390
12390
|
editOp(t, n = ["body"]) {
|
|
12391
|
-
return
|
|
12391
|
+
return at.editOp(n, Te.name, t);
|
|
12392
12392
|
}
|
|
12393
12393
|
};
|
|
12394
12394
|
// static name = 'json-x';
|
|
12395
|
-
p(
|
|
12396
|
-
let tn =
|
|
12395
|
+
p(xn, "uri", "https://github.com/dream-num/univer#json-x"), p(xn, "_subTypes", /* @__PURE__ */ new Map()), p(xn, "_instance", null);
|
|
12396
|
+
let tn = xn;
|
|
12397
12397
|
tn.registerSubtype(Te);
|
|
12398
|
-
var D0 = /* @__PURE__ */ ((e) => (e.PARAGRAPH = "PARAGRAPH", e.SECTION_BREAK = "SECTION_BREAK", e.TABLE = "TABLE", e.TABLE_ROW = "TABLE_ROW", e.TABLE_CELL = "TABLE_CELL", e.CUSTOM_BLOCK = "CUSTOM_BLOCK", e))(D0 || {}),
|
|
12399
|
-
`, e.TABLE_START = "", e.TABLE_ROW_START = "\x1B", e.TABLE_CELL_START = "", e.TABLE_CELL_END = "", e.TABLE_ROW_END = "", e.TABLE_END = "", e.CUSTOM_RANGE_START = "", e.CUSTOM_RANGE_END = "", e.COLUMN_BREAK = "\v", e.PAGE_BREAK = "\f", e.DOCS_END = "\0", e.TAB = " ", e.CUSTOM_BLOCK = "\b", e.LETTER = "", e.SPACE = " ", e))(
|
|
12398
|
+
var D0 = /* @__PURE__ */ ((e) => (e.PARAGRAPH = "PARAGRAPH", e.SECTION_BREAK = "SECTION_BREAK", e.TABLE = "TABLE", e.TABLE_ROW = "TABLE_ROW", e.TABLE_CELL = "TABLE_CELL", e.CUSTOM_BLOCK = "CUSTOM_BLOCK", e))(D0 || {}), dt = /* @__PURE__ */ ((e) => (e.PARAGRAPH = "\r", e.SECTION_BREAK = `
|
|
12399
|
+
`, e.TABLE_START = "", e.TABLE_ROW_START = "\x1B", e.TABLE_CELL_START = "", e.TABLE_CELL_END = "", e.TABLE_ROW_END = "", e.TABLE_END = "", e.CUSTOM_RANGE_START = "", e.CUSTOM_RANGE_END = "", e.COLUMN_BREAK = "\v", e.PAGE_BREAK = "\f", e.DOCS_END = "\0", e.TAB = " ", e.CUSTOM_BLOCK = "\b", e.LETTER = "", e.SPACE = " ", e))(dt || {});
|
|
12400
12400
|
function U1(e) {
|
|
12401
12401
|
return `${e}`;
|
|
12402
12402
|
}
|
|
12403
12403
|
const U0 = [
|
|
12404
12404
|
// DataStreamTreeTokenType.PARAGRAPH, // 段落
|
|
12405
12405
|
// DataStreamTreeTokenType.SECTION_BREAK, // 章节
|
|
12406
|
-
|
|
12406
|
+
dt.TABLE_START,
|
|
12407
12407
|
// 表格开始
|
|
12408
|
-
|
|
12408
|
+
dt.TABLE_ROW_START,
|
|
12409
12409
|
// 表格开始
|
|
12410
|
-
|
|
12410
|
+
dt.TABLE_CELL_START,
|
|
12411
12411
|
// 表格开始
|
|
12412
|
-
|
|
12412
|
+
dt.TABLE_CELL_END,
|
|
12413
12413
|
// 表格开始
|
|
12414
|
-
|
|
12414
|
+
dt.TABLE_ROW_END,
|
|
12415
12415
|
// 表格开始
|
|
12416
|
-
|
|
12416
|
+
dt.TABLE_END
|
|
12417
12417
|
// 表格结束
|
|
12418
12418
|
// DataStreamTreeTokenType.COLUMN_BREAK, // 换列
|
|
12419
12419
|
// DataStreamTreeTokenType.PAGE_BREAK, // 换页
|
|
@@ -12759,10 +12759,10 @@ function z0() {
|
|
|
12759
12759
|
}
|
|
12760
12760
|
var N = a(m, D), M = m.substring(0, N);
|
|
12761
12761
|
m = m.substring(N), D = D.substring(N), N = u(m, D);
|
|
12762
|
-
var
|
|
12762
|
+
var L = m.substring(m.length - N);
|
|
12763
12763
|
m = m.substring(0, m.length - N), D = D.substring(0, D.length - N);
|
|
12764
12764
|
var P = s(m, D);
|
|
12765
|
-
return M && P.unshift([n, M]),
|
|
12765
|
+
return M && P.unshift([n, M]), L && P.push([n, L]), H(P, A), T && h(P), P;
|
|
12766
12766
|
}
|
|
12767
12767
|
function s(m, D) {
|
|
12768
12768
|
var O;
|
|
@@ -12784,16 +12784,16 @@ function z0() {
|
|
|
12784
12784
|
];
|
|
12785
12785
|
var N = c(m, D);
|
|
12786
12786
|
if (N) {
|
|
12787
|
-
var M = N[0],
|
|
12787
|
+
var M = N[0], L = N[1], P = N[2], q = N[3], V = N[4], oe = r(M, P), le = r(L, q);
|
|
12788
12788
|
return oe.concat([[n, V]], le);
|
|
12789
12789
|
}
|
|
12790
12790
|
return i(m, D);
|
|
12791
12791
|
}
|
|
12792
12792
|
function i(m, D) {
|
|
12793
|
-
for (var O = m.length, T = D.length, A = Math.ceil((O + T) / 2), S = A, N = 2 * A, M = new Array(N),
|
|
12794
|
-
M[P] = -1,
|
|
12795
|
-
M[S + 1] = 0,
|
|
12796
|
-
for (var q = O - T, V = q % 2 !== 0, oe = 0, le = 0, I = 0,
|
|
12793
|
+
for (var O = m.length, T = D.length, A = Math.ceil((O + T) / 2), S = A, N = 2 * A, M = new Array(N), L = new Array(N), P = 0; P < N; P++)
|
|
12794
|
+
M[P] = -1, L[P] = -1;
|
|
12795
|
+
M[S + 1] = 0, L[S + 1] = 0;
|
|
12796
|
+
for (var q = O - T, V = q % 2 !== 0, oe = 0, le = 0, I = 0, x = 0, Y = 0; Y < A; Y++) {
|
|
12797
12797
|
for (var z = -Y + oe; z <= Y - le; z += 2) {
|
|
12798
12798
|
var B = S + z, j;
|
|
12799
12799
|
z === -Y || z !== Y && M[B - 1] < M[B + 1] ? j = M[B + 1] : j = M[B - 1] + 1;
|
|
@@ -12805,20 +12805,20 @@ function z0() {
|
|
|
12805
12805
|
oe += 2;
|
|
12806
12806
|
else if (V) {
|
|
12807
12807
|
var ee = S + q - z;
|
|
12808
|
-
if (ee >= 0 && ee < N &&
|
|
12809
|
-
var U = O -
|
|
12808
|
+
if (ee >= 0 && ee < N && L[ee] !== -1) {
|
|
12809
|
+
var U = O - L[ee];
|
|
12810
12810
|
if (j >= U)
|
|
12811
12811
|
return o(m, D, j, Q);
|
|
12812
12812
|
}
|
|
12813
12813
|
}
|
|
12814
12814
|
}
|
|
12815
|
-
for (var G = -Y + I; G <= Y -
|
|
12815
|
+
for (var G = -Y + I; G <= Y - x; G += 2) {
|
|
12816
12816
|
var ee = S + G, U;
|
|
12817
|
-
G === -Y || G !== Y &&
|
|
12817
|
+
G === -Y || G !== Y && L[ee - 1] < L[ee + 1] ? U = L[ee + 1] : U = L[ee - 1] + 1;
|
|
12818
12818
|
for (var X = U - G; U < O && X < T && m.charAt(O - U - 1) === D.charAt(T - X - 1); )
|
|
12819
12819
|
U++, X++;
|
|
12820
|
-
if (
|
|
12821
|
-
|
|
12820
|
+
if (L[ee] = U, U > O)
|
|
12821
|
+
x += 2;
|
|
12822
12822
|
else if (X > T)
|
|
12823
12823
|
I += 2;
|
|
12824
12824
|
else if (!V) {
|
|
@@ -12837,8 +12837,8 @@ function z0() {
|
|
|
12837
12837
|
];
|
|
12838
12838
|
}
|
|
12839
12839
|
function o(m, D, O, T) {
|
|
12840
|
-
var A = m.substring(0, O), S = D.substring(0, T), N = m.substring(O), M = D.substring(T),
|
|
12841
|
-
return
|
|
12840
|
+
var A = m.substring(0, O), S = D.substring(0, T), N = m.substring(O), M = D.substring(T), L = r(A, S), P = r(N, M);
|
|
12841
|
+
return L.concat(P);
|
|
12842
12842
|
}
|
|
12843
12843
|
function a(m, D) {
|
|
12844
12844
|
if (!m || !D || m.charAt(0) !== D.charAt(0))
|
|
@@ -12856,10 +12856,10 @@ function z0() {
|
|
|
12856
12856
|
if (m == D)
|
|
12857
12857
|
return A;
|
|
12858
12858
|
for (var S = 0, N = 1; ; ) {
|
|
12859
|
-
var M = m.substring(A - N),
|
|
12860
|
-
if (
|
|
12859
|
+
var M = m.substring(A - N), L = D.indexOf(M);
|
|
12860
|
+
if (L == -1)
|
|
12861
12861
|
return S;
|
|
12862
|
-
N +=
|
|
12862
|
+
N += L, (L == 0 || m.substring(A - N) == D.substring(0, N)) && (S = N, N++);
|
|
12863
12863
|
}
|
|
12864
12864
|
}
|
|
12865
12865
|
function u(m, D) {
|
|
@@ -12873,16 +12873,16 @@ function z0() {
|
|
|
12873
12873
|
var O = m.length > D.length ? m : D, T = m.length > D.length ? D : m;
|
|
12874
12874
|
if (O.length < 4 || T.length * 2 < O.length)
|
|
12875
12875
|
return null;
|
|
12876
|
-
function A(le, I,
|
|
12877
|
-
for (var Y = le.substring(
|
|
12876
|
+
function A(le, I, x) {
|
|
12877
|
+
for (var Y = le.substring(x, x + Math.floor(le.length / 4)), z = -1, B = "", j, Q, ee, U; (z = I.indexOf(Y, z + 1)) !== -1; ) {
|
|
12878
12878
|
var G = a(
|
|
12879
|
-
le.substring(
|
|
12879
|
+
le.substring(x),
|
|
12880
12880
|
I.substring(z)
|
|
12881
12881
|
), X = u(
|
|
12882
|
-
le.substring(0,
|
|
12882
|
+
le.substring(0, x),
|
|
12883
12883
|
I.substring(0, z)
|
|
12884
12884
|
);
|
|
12885
|
-
B.length < X + G && (B = I.substring(z - X, z) + I.substring(z, z + G), j = le.substring(0,
|
|
12885
|
+
B.length < X + G && (B = I.substring(z - X, z) + I.substring(z, z + G), j = le.substring(0, x - X), Q = le.substring(x + G), ee = I.substring(0, z - X), U = I.substring(z + G));
|
|
12886
12886
|
}
|
|
12887
12887
|
return B.length * 2 >= le.length ? [
|
|
12888
12888
|
j,
|
|
@@ -12904,17 +12904,17 @@ function z0() {
|
|
|
12904
12904
|
if (!S && !N)
|
|
12905
12905
|
return null;
|
|
12906
12906
|
N ? S ? M = S[4].length > N[4].length ? S : N : M = N : M = S;
|
|
12907
|
-
var
|
|
12908
|
-
m.length > D.length ? (
|
|
12907
|
+
var L, P, q, V;
|
|
12908
|
+
m.length > D.length ? (L = M[0], P = M[1], q = M[2], V = M[3]) : (q = M[0], V = M[1], L = M[2], P = M[3]);
|
|
12909
12909
|
var oe = M[4];
|
|
12910
|
-
return [
|
|
12910
|
+
return [L, P, q, V, oe];
|
|
12911
12911
|
}
|
|
12912
12912
|
function h(m) {
|
|
12913
|
-
for (var D = !1, O = [], T = 0, A = null, S = 0, N = 0, M = 0,
|
|
12914
|
-
m[S][0] == n ? (O[T++] = S, N =
|
|
12913
|
+
for (var D = !1, O = [], T = 0, A = null, S = 0, N = 0, M = 0, L = 0, P = 0; S < m.length; )
|
|
12914
|
+
m[S][0] == n ? (O[T++] = S, N = L, M = P, L = 0, P = 0, A = m[S][1]) : (m[S][0] == t ? L += m[S][1].length : P += m[S][1].length, A && A.length <= Math.max(N, M) && A.length <= Math.max(L, P) && (m.splice(O[T - 1], 0, [
|
|
12915
12915
|
e,
|
|
12916
12916
|
A
|
|
12917
|
-
]), m[O[T - 1] + 1][0] = t, T--, T--, S = T > 0 ? O[T - 1] : -1, N = 0, M = 0,
|
|
12917
|
+
]), m[O[T - 1] + 1][0] = t, T--, T--, S = T > 0 ? O[T - 1] : -1, N = 0, M = 0, L = 0, P = 0, A = null, D = !0)), S++;
|
|
12918
12918
|
for (D && H(m), b(m), S = 1; S < m.length; ) {
|
|
12919
12919
|
if (m[S - 1][0] == e && m[S][0] == t) {
|
|
12920
12920
|
var q = m[S - 1][1], V = m[S][1], oe = l(q, V), le = l(V, q);
|
|
@@ -12940,7 +12940,7 @@ function z0() {
|
|
|
12940
12940
|
function D(le, I) {
|
|
12941
12941
|
if (!le || !I)
|
|
12942
12942
|
return 6;
|
|
12943
|
-
var
|
|
12943
|
+
var x = le.charAt(le.length - 1), Y = I.charAt(0), z = x.match(d), B = Y.match(d), j = z && x.match(f), Q = B && Y.match(f), ee = j && x.match(g), U = Q && Y.match(g), G = ee && le.match(_), X = U && I.match(R);
|
|
12944
12944
|
return G || X ? 5 : ee || U ? 4 : z && !j && Q ? 3 : j || Q ? 2 : z || B ? 1 : 0;
|
|
12945
12945
|
}
|
|
12946
12946
|
for (var O = 1; O < m.length - 1; ) {
|
|
@@ -12950,12 +12950,12 @@ function z0() {
|
|
|
12950
12950
|
var M = A.substring(A.length - N);
|
|
12951
12951
|
T = T.substring(0, T.length - N), A = M + A.substring(0, A.length - N), S = M + S;
|
|
12952
12952
|
}
|
|
12953
|
-
for (var
|
|
12953
|
+
for (var L = T, P = A, q = S, V = D(T, A) + D(A, S); A.charAt(0) === S.charAt(0); ) {
|
|
12954
12954
|
T += A.charAt(0), A = A.substring(1) + S.charAt(0), S = S.substring(1);
|
|
12955
12955
|
var oe = D(T, A) + D(A, S);
|
|
12956
|
-
oe >= V && (V = oe,
|
|
12956
|
+
oe >= V && (V = oe, L = T, P = A, q = S);
|
|
12957
12957
|
}
|
|
12958
|
-
m[O - 1][1] !=
|
|
12958
|
+
m[O - 1][1] != L && (L ? m[O - 1][1] = L : (m.splice(O - 1, 1), O--), m[O][1] = P, q ? m[O + 1][1] = q : (m.splice(O + 1, 1), O--));
|
|
12959
12959
|
}
|
|
12960
12960
|
O++;
|
|
12961
12961
|
}
|
|
@@ -12975,17 +12975,17 @@ function z0() {
|
|
|
12975
12975
|
T++, S += m[O][1], O++;
|
|
12976
12976
|
break;
|
|
12977
12977
|
case n:
|
|
12978
|
-
var
|
|
12978
|
+
var L = O - A - T - 1;
|
|
12979
12979
|
if (D) {
|
|
12980
|
-
if (
|
|
12981
|
-
var P = m[
|
|
12982
|
-
if (m[
|
|
12980
|
+
if (L >= 0 && C(m[L][1])) {
|
|
12981
|
+
var P = m[L][1].slice(-1);
|
|
12982
|
+
if (m[L][1] = m[L][1].slice(
|
|
12983
12983
|
0,
|
|
12984
12984
|
-1
|
|
12985
|
-
), S = P + S, N = P + N, !m[
|
|
12986
|
-
m.splice(
|
|
12987
|
-
var q =
|
|
12988
|
-
m[q] && m[q][0] === t && (A++, N = m[q][1] + N, q--), m[q] && m[q][0] === e && (T++, S = m[q][1] + S, q--),
|
|
12985
|
+
), S = P + S, N = P + N, !m[L][1]) {
|
|
12986
|
+
m.splice(L, 1), O--;
|
|
12987
|
+
var q = L - 1;
|
|
12988
|
+
m[q] && m[q][0] === t && (A++, N = m[q][1] + N, q--), m[q] && m[q][0] === e && (T++, S = m[q][1] + S, q--), L = q;
|
|
12989
12989
|
}
|
|
12990
12990
|
}
|
|
12991
12991
|
if (w(m[O][1])) {
|
|
@@ -12998,7 +12998,7 @@ function z0() {
|
|
|
12998
12998
|
break;
|
|
12999
12999
|
}
|
|
13000
13000
|
if (S.length > 0 || N.length > 0) {
|
|
13001
|
-
S.length > 0 && N.length > 0 && (M = a(N, S), M !== 0 && (
|
|
13001
|
+
S.length > 0 && N.length > 0 && (M = a(N, S), M !== 0 && (L >= 0 ? m[L][1] += N.substring(
|
|
13002
13002
|
0,
|
|
13003
13003
|
M
|
|
13004
13004
|
) : (m.splice(0, 0, [
|
|
@@ -13062,7 +13062,7 @@ function z0() {
|
|
|
13062
13062
|
function F(m, D, O) {
|
|
13063
13063
|
var T = typeof O == "number" ? { index: O, length: 0 } : O.oldRange, A = typeof O == "number" ? null : O.newRange, S = m.length, N = D.length;
|
|
13064
13064
|
if (T.length === 0 && (A === null || A.length === 0)) {
|
|
13065
|
-
var M = T.index,
|
|
13065
|
+
var M = T.index, L = m.slice(0, M), P = m.slice(M), q = A ? A.index : null;
|
|
13066
13066
|
e: {
|
|
13067
13067
|
var V = M + N - S;
|
|
13068
13068
|
if (q !== null && q !== V || V < 0 || V > N)
|
|
@@ -13070,35 +13070,35 @@ function z0() {
|
|
|
13070
13070
|
var oe = D.slice(0, V), le = D.slice(V);
|
|
13071
13071
|
if (le !== P)
|
|
13072
13072
|
break e;
|
|
13073
|
-
var I = Math.min(M, V),
|
|
13074
|
-
if (
|
|
13073
|
+
var I = Math.min(M, V), x = L.slice(0, I), Y = oe.slice(0, I);
|
|
13074
|
+
if (x !== Y)
|
|
13075
13075
|
break e;
|
|
13076
|
-
var z =
|
|
13077
|
-
return y(
|
|
13076
|
+
var z = L.slice(I), B = oe.slice(I);
|
|
13077
|
+
return y(x, z, B, P);
|
|
13078
13078
|
}
|
|
13079
13079
|
e: {
|
|
13080
13080
|
if (q !== null && q !== M)
|
|
13081
13081
|
break e;
|
|
13082
13082
|
var j = M, oe = D.slice(0, j), le = D.slice(j);
|
|
13083
|
-
if (oe !==
|
|
13083
|
+
if (oe !== L)
|
|
13084
13084
|
break e;
|
|
13085
13085
|
var Q = Math.min(S - j, N - j), ee = P.slice(P.length - Q), U = le.slice(le.length - Q);
|
|
13086
13086
|
if (ee !== U)
|
|
13087
13087
|
break e;
|
|
13088
13088
|
var z = P.slice(0, P.length - Q), B = le.slice(0, le.length - Q);
|
|
13089
|
-
return y(
|
|
13089
|
+
return y(L, z, B, ee);
|
|
13090
13090
|
}
|
|
13091
13091
|
}
|
|
13092
13092
|
if (T.length > 0 && A && A.length === 0)
|
|
13093
13093
|
e: {
|
|
13094
|
-
var
|
|
13094
|
+
var x = m.slice(0, T.index), ee = m.slice(T.index + T.length), I = x.length, Q = ee.length;
|
|
13095
13095
|
if (N < I + Q)
|
|
13096
13096
|
break e;
|
|
13097
13097
|
var Y = D.slice(0, I), U = D.slice(N - Q);
|
|
13098
|
-
if (
|
|
13098
|
+
if (x !== Y || ee !== U)
|
|
13099
13099
|
break e;
|
|
13100
13100
|
var z = m.slice(I, S - Q), B = D.slice(I, N - Q);
|
|
13101
|
-
return y(
|
|
13101
|
+
return y(x, z, B, ee);
|
|
13102
13102
|
}
|
|
13103
13103
|
return null;
|
|
13104
13104
|
}
|
|
@@ -13442,12 +13442,12 @@ function Yi(e, t, n) {
|
|
|
13442
13442
|
return r;
|
|
13443
13443
|
}
|
|
13444
13444
|
const iE = [
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13445
|
+
dt.PARAGRAPH,
|
|
13446
|
+
dt.TABLE_START,
|
|
13447
|
+
dt.TABLE_END,
|
|
13448
|
+
dt.TABLE_ROW_START,
|
|
13449
|
+
dt.TABLE_CELL_START,
|
|
13450
|
+
dt.TABLE_CELL_END
|
|
13451
13451
|
];
|
|
13452
13452
|
function na(e, t) {
|
|
13453
13453
|
const n = [];
|
|
@@ -15415,7 +15415,7 @@ class fE {
|
|
|
15415
15415
|
this.isStopPropagation = !0;
|
|
15416
15416
|
}
|
|
15417
15417
|
}
|
|
15418
|
-
class F1 extends
|
|
15418
|
+
class F1 extends it {
|
|
15419
15419
|
constructor() {
|
|
15420
15420
|
super(...arguments);
|
|
15421
15421
|
p(this, "_sortedObservers", []);
|
|
@@ -15480,7 +15480,7 @@ function H1(e) {
|
|
|
15480
15480
|
return () => n.unsubscribe();
|
|
15481
15481
|
});
|
|
15482
15482
|
}
|
|
15483
|
-
const ra =
|
|
15483
|
+
const ra = lt("core.resource-manager.service"), zi = {
|
|
15484
15484
|
[Ie.Editor]: "Editor",
|
|
15485
15485
|
[Ie.Owner]: "Owner",
|
|
15486
15486
|
[Ie.Reader]: "Reader",
|
|
@@ -15500,7 +15500,7 @@ class Is extends Ge {
|
|
|
15500
15500
|
constructor() {
|
|
15501
15501
|
super(...arguments);
|
|
15502
15502
|
p(this, "_model", /* @__PURE__ */ new Map());
|
|
15503
|
-
p(this, "_userChange$", new
|
|
15503
|
+
p(this, "_userChange$", new it());
|
|
15504
15504
|
p(this, "userChange$", this._userChange$.asObservable());
|
|
15505
15505
|
p(this, "_currentUser$", new nt(Vi()));
|
|
15506
15506
|
/**
|
|
@@ -15692,11 +15692,29 @@ Gi = _E([
|
|
|
15692
15692
|
Il(0, ra),
|
|
15693
15693
|
Il(1, wt(Is))
|
|
15694
15694
|
], Gi);
|
|
15695
|
-
const pE =
|
|
15695
|
+
const pE = lt("IAuthzIoIoService"), $1 = lt("univer.confirm-service");
|
|
15696
|
+
class B1 {
|
|
15697
|
+
constructor() {
|
|
15698
|
+
p(this, "confirmOptions$", new it());
|
|
15699
|
+
}
|
|
15700
|
+
dispose() {
|
|
15701
|
+
this.confirmOptions$.complete();
|
|
15702
|
+
}
|
|
15703
|
+
open(t) {
|
|
15704
|
+
throw new Error("This is not implemented in the test service!");
|
|
15705
|
+
}
|
|
15706
|
+
confirm(t) {
|
|
15707
|
+
return Promise.resolve(!0);
|
|
15708
|
+
}
|
|
15709
|
+
close(t) {
|
|
15710
|
+
throw new Error("This is not implemented in the test service!");
|
|
15711
|
+
}
|
|
15712
|
+
}
|
|
15713
|
+
const qr = "FOCUSING_UNIT", pr = "FOCUSING_SHEET", Jr = "FOCUSING_DOC", Zr = "FOCUSING_SLIDE", j1 = "FOCUSING_EDITOR_BUT_HIDDEN", EE = "EDITOR_ACTIVATED", W1 = "FOCUSING_EDITOR_INPUT_FORMULA", CE = "FOCUSING_FX_BAR_EDITOR", Y1 = "FOCUSING_UNIVER_EDITOR", z1 = "FOCUSING_EDITOR_INPUT_FORMULA", V1 = "FOCUSING_COMMENT_EDITOR", G1 = "FOCUSING_PANEL_EDITOR", K1 = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE", X1 = "FOCUSING_COMMON_DRAWINGS", q1 = "FORMULA_EDITOR_ACTIVATED";
|
|
15696
15714
|
class RE extends Ge {
|
|
15697
15715
|
constructor() {
|
|
15698
15716
|
super(...arguments);
|
|
15699
|
-
p(this, "_error$", new
|
|
15717
|
+
p(this, "_error$", new it());
|
|
15700
15718
|
p(this, "error$", this._error$.asObservable());
|
|
15701
15719
|
}
|
|
15702
15720
|
dispose() {
|
|
@@ -15707,7 +15725,7 @@ class RE extends Ge {
|
|
|
15707
15725
|
}
|
|
15708
15726
|
}
|
|
15709
15727
|
var uc = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(uc || {}), IE = /* @__PURE__ */ ((e) => (e.SUCCUSS = "0", e.ERROR_EXCEED_SIZE = "1", e.ERROR_IMAGE_TYPE = "2", e.ERROR_UPLOAD_COUNT_LIMIT = "3", e.ERROR_IMAGE = "4", e))(IE || {});
|
|
15710
|
-
const wl =
|
|
15728
|
+
const wl = lt("core.image-io.service"), wE = "0.14.0", OE = {
|
|
15711
15729
|
version: wE
|
|
15712
15730
|
};
|
|
15713
15731
|
function SE(e = "", t = Ts.ZH_CN, n = "") {
|
|
@@ -15783,7 +15801,7 @@ class vE {
|
|
|
15783
15801
|
return null;
|
|
15784
15802
|
}
|
|
15785
15803
|
}
|
|
15786
|
-
const
|
|
15804
|
+
const J1 = (e, t) => t.length === e.length && !e.some((n) => t.some((r) => !en.equals(r, n))), Z1 = (e, t) => t.length === e.length && e.every((n, r) => {
|
|
15787
15805
|
const s = t[r];
|
|
15788
15806
|
return s.unitId === n.unitId && s.sheetId === n.sheetId && en.equals(n.range, s.range);
|
|
15789
15807
|
}), Ki = {
|
|
@@ -15912,7 +15930,7 @@ function yE(e, t, n) {
|
|
|
15912
15930
|
function NE(e) {
|
|
15913
15931
|
return e != null;
|
|
15914
15932
|
}
|
|
15915
|
-
function
|
|
15933
|
+
function Q1() {
|
|
15916
15934
|
return {
|
|
15917
15935
|
p: null,
|
|
15918
15936
|
s: null,
|
|
@@ -15971,7 +15989,7 @@ function cc(e) {
|
|
|
15971
15989
|
let r = 0, s = t;
|
|
15972
15990
|
return n === ie.TRUE && (r = Ol, s = Ol), { centerAngle: r, vertexAngle: s };
|
|
15973
15991
|
}
|
|
15974
|
-
class
|
|
15992
|
+
class LE {
|
|
15975
15993
|
constructor(t, n) {
|
|
15976
15994
|
p(this, "_columnData", {});
|
|
15977
15995
|
this._config = t, this._columnData = n;
|
|
@@ -16133,7 +16151,7 @@ class xE {
|
|
|
16133
16151
|
return (n = this.getColumn(t)) == null ? void 0 : n.custom;
|
|
16134
16152
|
}
|
|
16135
16153
|
}
|
|
16136
|
-
const
|
|
16154
|
+
const xE = 2e3;
|
|
16137
16155
|
class DE {
|
|
16138
16156
|
constructor(t, n, r) {
|
|
16139
16157
|
p(this, "_rowData");
|
|
@@ -16198,7 +16216,7 @@ class DE {
|
|
|
16198
16216
|
if (n === this._config.defaultRowHeight)
|
|
16199
16217
|
r && (delete r.h, Object.keys(r).length === 0 && delete this._rowData[t]);
|
|
16200
16218
|
else {
|
|
16201
|
-
const s = Math.min(n,
|
|
16219
|
+
const s = Math.min(n, xE);
|
|
16202
16220
|
this._rowData[t] = r ? { ...r, h: s } : { h: s };
|
|
16203
16221
|
}
|
|
16204
16222
|
}
|
|
@@ -16293,7 +16311,7 @@ class DE {
|
|
|
16293
16311
|
return (n = this.getRow(t)) == null ? void 0 : n.custom;
|
|
16294
16312
|
}
|
|
16295
16313
|
}
|
|
16296
|
-
const
|
|
16314
|
+
const eI = "DEFAULT_WORKSHEET_ROW_COUNT", UE = 1e3, tI = "DEFAULT_WORKSHEET_COLUMN_COUNT", PE = 20, nI = "DEFAULT_WORKSHEET_ROW_HEIGHT", kE = 24, rI = "DEFAULT_WORKSHEET_COLUMN_WIDTH", FE = 88, sI = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", HE = 46, iI = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", $E = 20;
|
|
16297
16315
|
function BE(e) {
|
|
16298
16316
|
const t = {
|
|
16299
16317
|
name: "Sheet1",
|
|
@@ -16590,7 +16608,7 @@ function YE(e) {
|
|
|
16590
16608
|
const t = {};
|
|
16591
16609
|
return e.p !== void 0 && (t.p = e.p === null ? null : It(e.p)), e.s !== void 0 && (e.s === null || typeof e.s == "string" ? t.s = e.s : t.s = It(e.s)), e.v !== void 0 && (t.v = e.v), e.t !== void 0 && (t.t = e.t), e.f !== void 0 && (t.f = e.f), e.ref !== void 0 && (t.ref = e.ref), e.xf !== void 0 && (t.xf = e.xf), e.si !== void 0 && (t.si = e.si), e.custom !== void 0 && (t.custom = e.custom === null ? null : It(e.custom)), t;
|
|
16592
16610
|
}
|
|
16593
|
-
function
|
|
16611
|
+
function oI(e) {
|
|
16594
16612
|
if (e == null)
|
|
16595
16613
|
return e;
|
|
16596
16614
|
const t = {};
|
|
@@ -16700,7 +16718,7 @@ class ws {
|
|
|
16700
16718
|
var a;
|
|
16701
16719
|
this.unitId = t, this._styles = r, this._snapshot = BE(n);
|
|
16702
16720
|
const { columnData: s, rowData: i, cellData: o } = this._snapshot;
|
|
16703
|
-
this._sheetId = (a = this._snapshot.id) != null ? a : tt(6), this._cellData = new
|
|
16721
|
+
this._sheetId = (a = this._snapshot.id) != null ? a : tt(6), this._cellData = new ft(o), this._viewModel = new WE((l, u) => this.getCellRaw(l, u)), this._rowManager = new DE(this._snapshot, this._viewModel, i), this._columnManager = new LE(this._snapshot, s), this._spanModel = new jE(this._snapshot.mergeData);
|
|
16704
16722
|
}
|
|
16705
16723
|
/**
|
|
16706
16724
|
* @internal
|
|
@@ -17027,7 +17045,7 @@ class ws {
|
|
|
17027
17045
|
return n;
|
|
17028
17046
|
}
|
|
17029
17047
|
getMatrixWithMergedCells(t, n, r, s, i = lr.Raw) {
|
|
17030
|
-
const o = this.getCellMatrix(), a = this._spanModel.getMergedCellRange(t, n, r, s), l = new
|
|
17048
|
+
const o = this.getCellMatrix(), a = this._spanModel.getMergedCellRange(t, n, r, s), l = new ft();
|
|
17031
17049
|
return ml(t, r, n, s).forEach((u, c) => {
|
|
17032
17050
|
var d;
|
|
17033
17051
|
let h;
|
|
@@ -17475,7 +17493,7 @@ function KE(e) {
|
|
|
17475
17493
|
const n = e.v;
|
|
17476
17494
|
return typeof n == "string" ? e.t === gn.BOOLEAN ? n.toUpperCase() : n.replace(/[\r\n]/g, "") : typeof n == "number" ? e.t === gn.BOOLEAN ? n ? "TRUE" : "FALSE" : n.toString() : typeof n == "boolean" ? n ? "TRUE" : "FALSE" : "";
|
|
17477
17495
|
}
|
|
17478
|
-
function
|
|
17496
|
+
function aI(e) {
|
|
17479
17497
|
if (e === null)
|
|
17480
17498
|
return "";
|
|
17481
17499
|
if (e != null && e.p) {
|
|
@@ -17492,16 +17510,16 @@ var XE = Object.getOwnPropertyDescriptor, qE = (e, t, n, r) => {
|
|
|
17492
17510
|
(o = e[i]) && (s = o(s) || s);
|
|
17493
17511
|
return s;
|
|
17494
17512
|
}, JE = (e, t) => (n, r) => t(n, r, e);
|
|
17495
|
-
function
|
|
17513
|
+
function lI(e, t) {
|
|
17496
17514
|
return `${e.getUnitId()}|${t.getSheetId()}`;
|
|
17497
17515
|
}
|
|
17498
17516
|
let Os = class extends mo {
|
|
17499
17517
|
constructor(t = {}, n) {
|
|
17500
17518
|
super();
|
|
17501
17519
|
p(this, "type", Oe.UNIVER_SHEET);
|
|
17502
|
-
p(this, "_sheetCreated$", new
|
|
17520
|
+
p(this, "_sheetCreated$", new it());
|
|
17503
17521
|
p(this, "sheetCreated$", this._sheetCreated$.asObservable());
|
|
17504
|
-
p(this, "_sheetDisposed$", new
|
|
17522
|
+
p(this, "_sheetDisposed$", new it());
|
|
17505
17523
|
p(this, "sheetDisposed$", this._sheetDisposed$.asObservable());
|
|
17506
17524
|
p(this, "_activeSheet$", new nt(null));
|
|
17507
17525
|
p(this, "activeSheet$", this._activeSheet$.asObservable());
|
|
@@ -17711,12 +17729,12 @@ let Os = class extends mo {
|
|
|
17711
17729
|
this._snapshot = t;
|
|
17712
17730
|
}
|
|
17713
17731
|
/**
|
|
17714
|
-
* Check if sheet name is unique
|
|
17732
|
+
* Check if sheet name is unique, ignore case sensitivity
|
|
17715
17733
|
* @param name sheet name
|
|
17716
17734
|
* @returns True if sheet name is unique
|
|
17717
17735
|
*/
|
|
17718
17736
|
checkSheetName(t) {
|
|
17719
|
-
return this.getSheetsName().
|
|
17737
|
+
return this.getSheetsName().some((r) => r.toLowerCase() === t.toLowerCase());
|
|
17720
17738
|
}
|
|
17721
17739
|
/**
|
|
17722
17740
|
* Check whether the sheet name is unique and generate a new unique sheet name
|
|
@@ -17874,7 +17892,7 @@ var ZE = Object.getOwnPropertyDescriptor, QE = (e, t, n, r) => {
|
|
|
17874
17892
|
(o = e[i]) && (s = o(s) || s);
|
|
17875
17893
|
return s;
|
|
17876
17894
|
}, gi = (e, t) => (n, r) => t(n, r, e);
|
|
17877
|
-
const Ar =
|
|
17895
|
+
const Ar = lt("univer.current");
|
|
17878
17896
|
let Xi = class extends Ge {
|
|
17879
17897
|
constructor(t, n, r) {
|
|
17880
17898
|
super();
|
|
@@ -17884,9 +17902,9 @@ let Xi = class extends Ge {
|
|
|
17884
17902
|
p(this, "_currentUnits", /* @__PURE__ */ new Map());
|
|
17885
17903
|
p(this, "_currentUnits$", new nt(this._currentUnits));
|
|
17886
17904
|
p(this, "currentUnits$", this._currentUnits$.asObservable());
|
|
17887
|
-
p(this, "_unitAdded$", new
|
|
17905
|
+
p(this, "_unitAdded$", new it());
|
|
17888
17906
|
p(this, "unitAdded$", this._unitAdded$.asObservable());
|
|
17889
|
-
p(this, "_unitDisposed$", new
|
|
17907
|
+
p(this, "_unitDisposed$", new it());
|
|
17890
17908
|
p(this, "unitDisposed$", this._unitDisposed$.asObservable());
|
|
17891
17909
|
p(this, "_focused$", new nt(null));
|
|
17892
17910
|
p(this, "focused$", this._focused$.asObservable());
|
|
@@ -18089,13 +18107,13 @@ Yn = tC([
|
|
|
18089
18107
|
function fc(e) {
|
|
18090
18108
|
switch (e) {
|
|
18091
18109
|
case ke.Starting:
|
|
18092
|
-
return
|
|
18110
|
+
return Lr(ke.Starting);
|
|
18093
18111
|
case ke.Ready:
|
|
18094
|
-
return
|
|
18112
|
+
return Lr(ke.Starting, ke.Ready);
|
|
18095
18113
|
case ke.Rendered:
|
|
18096
|
-
return
|
|
18114
|
+
return Lr(ke.Starting, ke.Ready, ke.Rendered);
|
|
18097
18115
|
default:
|
|
18098
|
-
return
|
|
18116
|
+
return Lr(
|
|
18099
18117
|
ke.Starting,
|
|
18100
18118
|
ke.Ready,
|
|
18101
18119
|
ke.Rendered,
|
|
@@ -18103,14 +18121,14 @@ function fc(e) {
|
|
|
18103
18121
|
);
|
|
18104
18122
|
}
|
|
18105
18123
|
}
|
|
18106
|
-
const
|
|
18124
|
+
const uI = lt("ILocalStorageService");
|
|
18107
18125
|
class Hn extends Ge {
|
|
18108
18126
|
constructor() {
|
|
18109
18127
|
super();
|
|
18110
18128
|
p(this, "_currentLocale$", new nt(Ts.ZH_CN));
|
|
18111
18129
|
p(this, "currentLocale$", this._currentLocale$.asObservable());
|
|
18112
18130
|
p(this, "_locales", null);
|
|
18113
|
-
p(this, "localeChanged$", new
|
|
18131
|
+
p(this, "localeChanged$", new it());
|
|
18114
18132
|
/**
|
|
18115
18133
|
* Translate a key to the current locale
|
|
18116
18134
|
*
|
|
@@ -18217,14 +18235,14 @@ let qi = class {
|
|
|
18217
18235
|
qi = iC([
|
|
18218
18236
|
oC(0, wt(Is))
|
|
18219
18237
|
], qi);
|
|
18220
|
-
const aC =
|
|
18238
|
+
const aC = lt("univer.service.mention-io");
|
|
18221
18239
|
var mc = /* @__PURE__ */ ((e) => (e.INIT = "init", e.FETCHING = "fetching", e.DONE = "done", e))(mc || {});
|
|
18222
|
-
const lC =
|
|
18240
|
+
const lC = lt("univer.permission-service");
|
|
18223
18241
|
class uC extends Ge {
|
|
18224
18242
|
constructor() {
|
|
18225
18243
|
super(...arguments);
|
|
18226
18244
|
p(this, "_permissionPointMap", /* @__PURE__ */ new Map());
|
|
18227
|
-
p(this, "_permissionPointUpdate$", new
|
|
18245
|
+
p(this, "_permissionPointUpdate$", new it());
|
|
18228
18246
|
p(this, "permissionPointUpdate$", this._permissionPointUpdate$.asObservable());
|
|
18229
18247
|
p(this, "_showComponents", !0);
|
|
18230
18248
|
}
|
|
@@ -18272,7 +18290,7 @@ class uC extends Ge {
|
|
|
18272
18290
|
});
|
|
18273
18291
|
return yc(r).pipe(
|
|
18274
18292
|
// Check that all permissions exist
|
|
18275
|
-
|
|
18293
|
+
Lc((s) => s)
|
|
18276
18294
|
);
|
|
18277
18295
|
}
|
|
18278
18296
|
composePermission(n) {
|
|
@@ -18342,7 +18360,7 @@ class mC {
|
|
|
18342
18360
|
this._plugins.forEach(t);
|
|
18343
18361
|
}
|
|
18344
18362
|
}
|
|
18345
|
-
function
|
|
18363
|
+
function cI(...e) {
|
|
18346
18364
|
return function(t) {
|
|
18347
18365
|
t[gc] = e;
|
|
18348
18366
|
};
|
|
@@ -18465,7 +18483,7 @@ Ss = dC([
|
|
|
18465
18483
|
_i(1, wt(Yn)),
|
|
18466
18484
|
_i(2, Ct)
|
|
18467
18485
|
], Ss);
|
|
18468
|
-
const Nl =
|
|
18486
|
+
const Nl = lt("resource-loader-service");
|
|
18469
18487
|
var gC = Object.getOwnPropertyDescriptor, _C = (e, t, n, r) => {
|
|
18470
18488
|
for (var s = r > 1 ? void 0 : r ? gC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
18471
18489
|
(o = e[i]) && (s = o(s) || s);
|
|
@@ -18475,7 +18493,7 @@ let Ji = class extends Ge {
|
|
|
18475
18493
|
constructor(t) {
|
|
18476
18494
|
super();
|
|
18477
18495
|
p(this, "_resourceMap", /* @__PURE__ */ new Map());
|
|
18478
|
-
p(this, "_register$", new
|
|
18496
|
+
p(this, "_register$", new it());
|
|
18479
18497
|
p(this, "register$", this._register$.asObservable());
|
|
18480
18498
|
this._logService = t;
|
|
18481
18499
|
}
|
|
@@ -18541,11 +18559,11 @@ class Zi extends Ge {
|
|
|
18541
18559
|
p(this, "darkMode$", this._darkMode$.asObservable());
|
|
18542
18560
|
// Cache for valid theme colors
|
|
18543
18561
|
p(this, "_validColorCache", /* @__PURE__ */ new Map());
|
|
18544
|
-
p(this, "_currentTheme",
|
|
18562
|
+
p(this, "_currentTheme", xr);
|
|
18545
18563
|
p(this, "_currentTheme$", new nt(this._currentTheme));
|
|
18546
18564
|
p(this, "currentTheme$", this._currentTheme$.asObservable());
|
|
18547
18565
|
this.disposeWithMe(je(() => {
|
|
18548
|
-
this._currentTheme =
|
|
18566
|
+
this._currentTheme = xr, this._currentTheme$.complete(), this._darkMode$.complete();
|
|
18549
18567
|
}));
|
|
18550
18568
|
}
|
|
18551
18569
|
get darkMode() {
|
|
@@ -18567,10 +18585,10 @@ class Zi extends Ge {
|
|
|
18567
18585
|
let r = !1;
|
|
18568
18586
|
const s = n.split(".");
|
|
18569
18587
|
if (s.length === 1)
|
|
18570
|
-
r = n in
|
|
18588
|
+
r = n in xr;
|
|
18571
18589
|
else if (s.length === 2) {
|
|
18572
18590
|
const [i, o] = s;
|
|
18573
|
-
r = i in
|
|
18591
|
+
r = i in xr && o in this._currentTheme[i];
|
|
18574
18592
|
}
|
|
18575
18593
|
return this._validColorCache.set(n, r), r;
|
|
18576
18594
|
}
|
|
@@ -18609,7 +18627,7 @@ var EC = Object.getOwnPropertyDescriptor, CC = (e, t, n, r) => {
|
|
|
18609
18627
|
(o = e[i]) && (s = o(s) || s);
|
|
18610
18628
|
return s;
|
|
18611
18629
|
}, pi = (e, t) => (n, r) => t(n, r, e);
|
|
18612
|
-
const sa =
|
|
18630
|
+
const sa = lt("univer.undo-redo.service"), RC = 20;
|
|
18613
18631
|
class _c {
|
|
18614
18632
|
dispose() {
|
|
18615
18633
|
}
|
|
@@ -18620,7 +18638,7 @@ class _c {
|
|
|
18620
18638
|
const IC = "univer.command.redo", wC = "univer.command.undo", OC = new class extends _c {
|
|
18621
18639
|
constructor() {
|
|
18622
18640
|
super(...arguments);
|
|
18623
|
-
p(this, "type",
|
|
18641
|
+
p(this, "type", xs.COMMAND);
|
|
18624
18642
|
p(this, "id", wC);
|
|
18625
18643
|
}
|
|
18626
18644
|
handler(t) {
|
|
@@ -18633,7 +18651,7 @@ const IC = "univer.command.redo", wC = "univer.command.undo", OC = new class ext
|
|
|
18633
18651
|
}(), SC = new class extends _c {
|
|
18634
18652
|
constructor() {
|
|
18635
18653
|
super(...arguments);
|
|
18636
|
-
p(this, "type",
|
|
18654
|
+
p(this, "type", xs.COMMAND);
|
|
18637
18655
|
p(this, "id", IC);
|
|
18638
18656
|
}
|
|
18639
18657
|
handler(t) {
|
|
@@ -18785,10 +18803,10 @@ class vC {
|
|
|
18785
18803
|
})(), null);
|
|
18786
18804
|
}
|
|
18787
18805
|
}
|
|
18788
|
-
function
|
|
18806
|
+
function hI(e) {
|
|
18789
18807
|
return !(e.length === 0 || e.length > 31 || e.startsWith("'") || e.endsWith("'") || /[:\\\/\?\*\[\]]/.test(e));
|
|
18790
18808
|
}
|
|
18791
|
-
function
|
|
18809
|
+
function dI(e, t) {
|
|
18792
18810
|
return !(!e || e.length === 0 || e.length > 255 || t.has(e) || /[ :\\\/\?\*\[\]]/.test(e) || !/^[\p{L}_]/u.test(e) || /^\$?[A-Za-z]{1,3}\$?[0-9]+$/.test(e) || /^[rR]\d+[cC]\d+$/.test(e) || /^\d+$/.test(e));
|
|
18793
18811
|
}
|
|
18794
18812
|
const Tl = [
|
|
@@ -18935,7 +18953,7 @@ function Ml(e, t, n, r) {
|
|
|
18935
18953
|
const s = e - n, i = t - r;
|
|
18936
18954
|
return s * s + i * i;
|
|
18937
18955
|
}
|
|
18938
|
-
class
|
|
18956
|
+
class fI {
|
|
18939
18957
|
constructor(t = !1) {
|
|
18940
18958
|
p(this, "_tree", /* @__PURE__ */ new Map());
|
|
18941
18959
|
// unitId -> subUnitId -> row -> column -> ids
|
|
@@ -19122,10 +19140,10 @@ class hI {
|
|
|
19122
19140
|
}
|
|
19123
19141
|
}
|
|
19124
19142
|
}
|
|
19125
|
-
function
|
|
19143
|
+
function mI(e) {
|
|
19126
19144
|
return new Promise((t) => setTimeout(t, e));
|
|
19127
19145
|
}
|
|
19128
|
-
function
|
|
19146
|
+
function gI(e = 1) {
|
|
19129
19147
|
return new Promise((t) => {
|
|
19130
19148
|
let n = 0;
|
|
19131
19149
|
const r = () => {
|
|
@@ -19169,7 +19187,7 @@ var NC = Object.getOwnPropertyDescriptor, TC = (e, t, n, r) => {
|
|
|
19169
19187
|
(o = e[i]) && (s = o(s) || s);
|
|
19170
19188
|
return s;
|
|
19171
19189
|
}, es = (e, t) => (n, r) => t(n, r, e);
|
|
19172
|
-
let
|
|
19190
|
+
let Ll = class extends to {
|
|
19173
19191
|
constructor(t, n, r, s, i, o) {
|
|
19174
19192
|
super(r);
|
|
19175
19193
|
/**
|
|
@@ -19424,7 +19442,7 @@ let xl = class extends to {
|
|
|
19424
19442
|
endColumn: o
|
|
19425
19443
|
};
|
|
19426
19444
|
let l = !0;
|
|
19427
|
-
const u = new
|
|
19445
|
+
const u = new ft();
|
|
19428
19446
|
let c = 0, h = null;
|
|
19429
19447
|
for (; l; ) {
|
|
19430
19448
|
l = !1;
|
|
@@ -19543,7 +19561,7 @@ let xl = class extends to {
|
|
|
19543
19561
|
getRowIndexByOffsetY(t, n, r, s) {
|
|
19544
19562
|
var a;
|
|
19545
19563
|
const { rowHeightAccumulation: i } = this;
|
|
19546
|
-
t =
|
|
19564
|
+
t = LC(
|
|
19547
19565
|
t,
|
|
19548
19566
|
n,
|
|
19549
19567
|
r,
|
|
@@ -19738,12 +19756,12 @@ let xl = class extends to {
|
|
|
19738
19756
|
super.dispose(), this._rowHeightAccumulation = [], this._columnWidthAccumulation = [], this._rowTotalHeight = 0, this._columnTotalWidth = 0, this._rowHeaderWidth = 0, this._columnHeaderHeight = 0, this._worksheetData = null, this._cellData = null, this._styles = null, this.worksheet = null;
|
|
19739
19757
|
}
|
|
19740
19758
|
};
|
|
19741
|
-
|
|
19759
|
+
Ll = TC([
|
|
19742
19760
|
es(2, wt(Hn)),
|
|
19743
19761
|
es(3, Tr),
|
|
19744
|
-
es(4,
|
|
19762
|
+
es(4, Ls),
|
|
19745
19763
|
es(5, wt(zn))
|
|
19746
|
-
],
|
|
19764
|
+
], Ll);
|
|
19747
19765
|
function Ec(e, t, n, r) {
|
|
19748
19766
|
const s = e - 1, i = t - 1, o = n[s] || 0;
|
|
19749
19767
|
let a = n[e];
|
|
@@ -19757,7 +19775,7 @@ function Ec(e, t, n, r) {
|
|
|
19757
19775
|
endX: u
|
|
19758
19776
|
};
|
|
19759
19777
|
}
|
|
19760
|
-
function
|
|
19778
|
+
function _I(e, t, n, r) {
|
|
19761
19779
|
return Ec(e, t, n, r);
|
|
19762
19780
|
}
|
|
19763
19781
|
function ir(e, t, n, r, s) {
|
|
@@ -19843,16 +19861,16 @@ function MC(e, t, n, r) {
|
|
|
19843
19861
|
const { x: s } = n;
|
|
19844
19862
|
return e / t + s - r;
|
|
19845
19863
|
}
|
|
19846
|
-
function
|
|
19864
|
+
function LC(e, t, n, r) {
|
|
19847
19865
|
const { y: s } = n;
|
|
19848
19866
|
return e = e / t + s - r, e;
|
|
19849
19867
|
}
|
|
19850
|
-
const
|
|
19851
|
-
var
|
|
19868
|
+
const pI = ["script", "style", "meta", "comment", "link"];
|
|
19869
|
+
var xC = /* @__PURE__ */ ((e) => (e[e.INFO = 0] = "INFO", e[e.STOP = 1] = "STOP", e[e.WARNING = 2] = "WARNING", e))(xC || {}), DC = /* @__PURE__ */ ((e) => (e[e.DISABLED = 0] = "DISABLED", e[e.FULL_ALPHA = 1] = "FULL_ALPHA", e[e.FULL_HANGUL = 2] = "FULL_HANGUL", e[e.FULL_KATAKANA = 3] = "FULL_KATAKANA", e[e.HALF_ALPHA = 4] = "HALF_ALPHA", e[e.HALF_HANGUL = 5] = "HALF_HANGUL", e[e.HALF_KATAKANA = 6] = "HALF_KATAKANA", e[e.HIRAGANA = 7] = "HIRAGANA", e[e.NO_CONTROL = 8] = "NO_CONTROL", e[e.OFF = 9] = "OFF", e[e.ON = 10] = "ON", e))(DC || {}), UC = /* @__PURE__ */ ((e) => (e.BETWEEN = "between", e.EQUAL = "equal", e.GREATER_THAN = "greaterThan", e.GREATER_THAN_OR_EQUAL = "greaterThanOrEqual", e.LESS_THAN = "lessThan", e.LESS_THAN_OR_EQUAL = "lessThanOrEqual", e.NOT_BETWEEN = "notBetween", e.NOT_EQUAL = "notEqual", e))(UC || {}), PC = /* @__PURE__ */ ((e) => (e[e.TEXT = 0] = "TEXT", e[e.ARROW = 1] = "ARROW", e[e.CUSTOM = 2] = "CUSTOM", e))(PC || {}), kC = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.INVALID = "invalid", e.VALIDATING = "validating", e))(kC || {}), FC = /* @__PURE__ */ ((e) => (e.CUSTOM = "custom", e.LIST = "list", e.LIST_MULTIPLE = "listMultiple", e.NONE = "none", e.TEXT_LENGTH = "textLength", e.DATE = "date", e.TIME = "time", e.WHOLE = "whole", e.DECIMAL = "decimal", e.CHECKBOX = "checkbox", e.ANY = "any", e))(FC || {}), HC = Object.getOwnPropertyDescriptor, $C = (e, t, n, r) => {
|
|
19852
19870
|
for (var s = r > 1 ? void 0 : r ? HC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
19853
19871
|
(o = e[i]) && (s = o(s) || s);
|
|
19854
19872
|
return s;
|
|
19855
|
-
},
|
|
19873
|
+
}, xl = (e, t) => (n, r) => t(n, r, e);
|
|
19856
19874
|
let no = class extends Ge {
|
|
19857
19875
|
constructor(e, t) {
|
|
19858
19876
|
super(), this._resourceManagerService = e, this._univerInstanceService = t, this._init();
|
|
@@ -19919,10 +19937,10 @@ let no = class extends Ge {
|
|
|
19919
19937
|
}
|
|
19920
19938
|
};
|
|
19921
19939
|
no = $C([
|
|
19922
|
-
|
|
19923
|
-
|
|
19940
|
+
xl(0, wt(ra)),
|
|
19941
|
+
xl(1, wt(Ar))
|
|
19924
19942
|
], no);
|
|
19925
|
-
class
|
|
19943
|
+
class EI {
|
|
19926
19944
|
/**
|
|
19927
19945
|
* Create a Univer instance.
|
|
19928
19946
|
* @param config Configuration data for Univer
|
|
@@ -19933,7 +19951,7 @@ class _I {
|
|
|
19933
19951
|
p(this, "_injector");
|
|
19934
19952
|
p(this, "_disposingCallbacks", new fo());
|
|
19935
19953
|
const r = this._injector = BC(n, t == null ? void 0 : t.override), { theme: s, darkMode: i, locale: o, locales: a, logLevel: l, logCommandExecution: u } = t;
|
|
19936
|
-
s && this._injector.get(Zi).setTheme(s), i && this._injector.get(Zi).setDarkMode(i), a && this._injector.get(Hn).load(a), o && this._injector.get(Hn).setLocale(o), l && this._injector.get(Ct).setLogLevel(l), u !== void 0 && this._injector.get(
|
|
19954
|
+
s && this._injector.get(Zi).setTheme(s), i && this._injector.get(Zi).setDarkMode(i), a && this._injector.get(Hn).load(a), o && this._injector.get(Hn).setLocale(o), l && this._injector.get(Ct).setLogLevel(l), u !== void 0 && this._injector.get(Ls).setConfig(Ni, u), this._init(r);
|
|
19937
19955
|
}
|
|
19938
19956
|
get _univerInstanceService() {
|
|
19939
19957
|
return this._injector.get(Ar);
|
|
@@ -20035,7 +20053,7 @@ function BC(e, t) {
|
|
|
20035
20053
|
[Ct, { useClass: Rg, lazy: !0 }],
|
|
20036
20054
|
[Ds, { useClass: Ti }],
|
|
20037
20055
|
[sa, { useClass: Qi, lazy: !0 }],
|
|
20038
|
-
[
|
|
20056
|
+
[Ls, { useClass: pg }],
|
|
20039
20057
|
[Tr, { useClass: Eg }],
|
|
20040
20058
|
[ra, { useClass: Ji, lazy: !0 }],
|
|
20041
20059
|
[Nl, { useClass: no, lazy: !0 }],
|
|
@@ -20065,7 +20083,7 @@ export {
|
|
|
20065
20083
|
bm as BasicShapes,
|
|
20066
20084
|
Um as BlockType,
|
|
20067
20085
|
ie as BooleanNumber,
|
|
20068
|
-
|
|
20086
|
+
xe as BorderStyleTypes,
|
|
20069
20087
|
pm as BorderType,
|
|
20070
20088
|
Qe as BuildTextUtils,
|
|
20071
20089
|
Ms as BulletAlignment,
|
|
@@ -20080,7 +20098,7 @@ export {
|
|
|
20080
20098
|
Mt as ColorType,
|
|
20081
20099
|
Fm as ColumnSeparatorType,
|
|
20082
20100
|
Ti as CommandService,
|
|
20083
|
-
|
|
20101
|
+
xs as CommandType,
|
|
20084
20102
|
Em as CommonHideTypes,
|
|
20085
20103
|
pg as ConfigService,
|
|
20086
20104
|
Eg as ContextService,
|
|
@@ -20092,26 +20110,26 @@ export {
|
|
|
20092
20110
|
rc as DEFAULT_DOC,
|
|
20093
20111
|
k1 as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
20094
20112
|
zc as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
20095
|
-
|
|
20113
|
+
xp as DEFAULT_NUMBER_FORMAT,
|
|
20096
20114
|
g1 as DEFAULT_RANGE,
|
|
20097
20115
|
m1 as DEFAULT_RANGE_ARRAY,
|
|
20098
20116
|
_1 as DEFAULT_SELECTION,
|
|
20099
20117
|
Pp as DEFAULT_SLIDE,
|
|
20100
20118
|
st as DEFAULT_STYLES,
|
|
20101
20119
|
Mp as DEFAULT_TEXT_FORMAT,
|
|
20102
|
-
|
|
20120
|
+
Lp as DEFAULT_TEXT_FORMAT_EXCEL,
|
|
20103
20121
|
PE as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
20104
|
-
|
|
20122
|
+
tI as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
|
|
20105
20123
|
$E as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
20106
|
-
|
|
20124
|
+
iI as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
|
|
20107
20125
|
FE as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
20108
|
-
|
|
20126
|
+
rI as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
|
|
20109
20127
|
UE as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
20110
|
-
|
|
20128
|
+
eI as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
|
|
20111
20129
|
kE as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
20112
|
-
|
|
20130
|
+
nI as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
|
|
20113
20131
|
HE as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
20114
|
-
|
|
20132
|
+
sI as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
|
|
20115
20133
|
Yc as DOCS_COMMENT_EDITOR_UNIT_ID_KEY,
|
|
20116
20134
|
Hl as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
20117
20135
|
Fl as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
@@ -20120,22 +20138,22 @@ export {
|
|
|
20120
20138
|
Gg as DOC_RANGE_TYPE,
|
|
20121
20139
|
Ym as DashStyleType,
|
|
20122
20140
|
D0 as DataStreamTreeNodeType,
|
|
20123
|
-
|
|
20124
|
-
|
|
20141
|
+
dt as DataStreamTreeTokenType,
|
|
20142
|
+
xC as DataValidationErrorStyle,
|
|
20125
20143
|
DC as DataValidationImeMode,
|
|
20126
20144
|
UC as DataValidationOperator,
|
|
20127
20145
|
PC as DataValidationRenderMode,
|
|
20128
20146
|
kC as DataValidationStatus,
|
|
20129
20147
|
FC as DataValidationType,
|
|
20130
20148
|
Rm as DeleteDirection,
|
|
20131
|
-
|
|
20149
|
+
cI as DependentOn,
|
|
20132
20150
|
Rg as DesktopLogService,
|
|
20133
20151
|
Im as DeveloperMetadataVisibility,
|
|
20134
20152
|
wm as Dimension,
|
|
20135
20153
|
Om as Direction,
|
|
20136
20154
|
Ge as Disposable,
|
|
20137
20155
|
fo as DisposableCollection,
|
|
20138
|
-
|
|
20156
|
+
xm as DocStyleType,
|
|
20139
20157
|
Ft as DocumentDataModel,
|
|
20140
20158
|
fu as DocumentFlavor,
|
|
20141
20159
|
og as DrawingTypeEnum,
|
|
@@ -20144,33 +20162,34 @@ export {
|
|
|
20144
20162
|
RE as ErrorService,
|
|
20145
20163
|
fE as EventState,
|
|
20146
20164
|
F1 as EventSubject,
|
|
20147
|
-
|
|
20148
|
-
|
|
20165
|
+
V1 as FOCUSING_COMMENT_EDITOR,
|
|
20166
|
+
X1 as FOCUSING_COMMON_DRAWINGS,
|
|
20149
20167
|
Jr as FOCUSING_DOC,
|
|
20150
|
-
|
|
20151
|
-
|
|
20152
|
-
|
|
20168
|
+
j1 as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
20169
|
+
W1 as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
20170
|
+
z1 as FOCUSING_EDITOR_STANDALONE,
|
|
20153
20171
|
CE as FOCUSING_FX_BAR_EDITOR,
|
|
20154
|
-
|
|
20172
|
+
G1 as FOCUSING_PANEL_EDITOR,
|
|
20155
20173
|
pr as FOCUSING_SHEET,
|
|
20156
20174
|
Zr as FOCUSING_SLIDE,
|
|
20157
20175
|
qr as FOCUSING_UNIT,
|
|
20158
|
-
|
|
20159
|
-
|
|
20160
|
-
|
|
20176
|
+
Y1 as FOCUSING_UNIVER_EDITOR,
|
|
20177
|
+
K1 as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
|
|
20178
|
+
q1 as FORMULA_EDITOR_ACTIVATED,
|
|
20161
20179
|
Dm as FollowNumberWithType,
|
|
20162
20180
|
bi as FontItalic,
|
|
20163
20181
|
ar as FontStyleType,
|
|
20164
20182
|
Ai as FontWeight,
|
|
20165
20183
|
Pm as GridType,
|
|
20166
|
-
|
|
20184
|
+
Lg as HLSColor,
|
|
20167
20185
|
Pt as HorizontalAlign,
|
|
20168
20186
|
pE as IAuthzIoService,
|
|
20169
20187
|
Ds as ICommandService,
|
|
20170
|
-
|
|
20188
|
+
Ls as IConfigService,
|
|
20189
|
+
$1 as IConfirmService,
|
|
20171
20190
|
Tr as IContextService,
|
|
20172
20191
|
wl as IImageIoService,
|
|
20173
|
-
|
|
20192
|
+
uI as ILocalStorageService,
|
|
20174
20193
|
Ct as ILogService,
|
|
20175
20194
|
aC as IMentionIOService,
|
|
20176
20195
|
lC as IPermissionService,
|
|
@@ -20206,7 +20225,7 @@ export {
|
|
|
20206
20225
|
Je as NamedStyleType,
|
|
20207
20226
|
vg as NilCommand,
|
|
20208
20227
|
eg as NumberUnitType,
|
|
20209
|
-
|
|
20228
|
+
ft as ObjectMatrix,
|
|
20210
20229
|
Zm as ObjectRelativeFromH,
|
|
20211
20230
|
Qm as ObjectRelativeFromV,
|
|
20212
20231
|
ym as OtherShapes,
|
|
@@ -20229,7 +20248,7 @@ export {
|
|
|
20229
20248
|
Vt as PresetListType,
|
|
20230
20249
|
vm as ProtectionType,
|
|
20231
20250
|
i0 as QuickListType,
|
|
20232
|
-
|
|
20251
|
+
L1 as QuickListTypeMap,
|
|
20233
20252
|
Vg as RANGE_DIRECTION,
|
|
20234
20253
|
ge as RANGE_TYPE,
|
|
20235
20254
|
Hi as RBush,
|
|
@@ -20237,7 +20256,7 @@ export {
|
|
|
20237
20256
|
kR as RGBA_PAREN,
|
|
20238
20257
|
PR as RGB_PAREN,
|
|
20239
20258
|
Tg as ROTATE_BUFFER_VALUE,
|
|
20240
|
-
|
|
20259
|
+
fI as RTree,
|
|
20241
20260
|
br as Range,
|
|
20242
20261
|
en as Rectangle,
|
|
20243
20262
|
SC as RedoCommand,
|
|
@@ -20254,7 +20273,7 @@ export {
|
|
|
20254
20273
|
RR as RxDisposable,
|
|
20255
20274
|
E1 as SHEET_EDITOR_UNITS,
|
|
20256
20275
|
km as SectionType,
|
|
20257
|
-
|
|
20276
|
+
Ll as SheetSkeleton,
|
|
20258
20277
|
Mm as SheetTypes,
|
|
20259
20278
|
WE as SheetViewModel,
|
|
20260
20279
|
to as Skeleton,
|
|
@@ -20270,7 +20289,8 @@ export {
|
|
|
20270
20289
|
qm as TableRowHeightRule,
|
|
20271
20290
|
Vm as TableSizeType,
|
|
20272
20291
|
Xm as TableTextWrapType,
|
|
20273
|
-
|
|
20292
|
+
B1 as TestConfirmService,
|
|
20293
|
+
Lm as TextDecoration,
|
|
20274
20294
|
fn as TextDecorationBuilder,
|
|
20275
20295
|
gs as TextDirection,
|
|
20276
20296
|
Hm as TextDirectionType,
|
|
@@ -20278,15 +20298,15 @@ export {
|
|
|
20278
20298
|
js as TextStyleValue,
|
|
20279
20299
|
Te as TextX,
|
|
20280
20300
|
J as TextXActionType,
|
|
20281
|
-
|
|
20282
|
-
|
|
20301
|
+
Li as ThemeColor,
|
|
20302
|
+
ot as ThemeColorType,
|
|
20283
20303
|
_o as ThemeColors,
|
|
20284
20304
|
Zi as ThemeService,
|
|
20285
20305
|
Z as Tools,
|
|
20286
20306
|
OC as UndoCommand,
|
|
20287
20307
|
wC as UndoCommandId,
|
|
20288
20308
|
mo as UnitModel,
|
|
20289
|
-
|
|
20309
|
+
EI as Univer,
|
|
20290
20310
|
Xi as UniverInstanceService,
|
|
20291
20311
|
Oe as UniverInstanceType,
|
|
20292
20312
|
pe as UpdateDocsAttributeType,
|
|
@@ -20300,9 +20320,9 @@ export {
|
|
|
20300
20320
|
yE as addLinkToDocumentModel,
|
|
20301
20321
|
MR as afterInitApply,
|
|
20302
20322
|
NR as afterTime,
|
|
20303
|
-
|
|
20323
|
+
mI as awaitTime,
|
|
20304
20324
|
Ng as binSearchFirstGreaterThanTarget,
|
|
20305
|
-
|
|
20325
|
+
LR as binarySearchArray,
|
|
20306
20326
|
yR as bufferDebounceTime,
|
|
20307
20327
|
t1 as cellToRange,
|
|
20308
20328
|
rg as characterSpacingControlType,
|
|
@@ -20313,10 +20333,10 @@ export {
|
|
|
20313
20333
|
U_ as checkParagraphHasIndentByStyle,
|
|
20314
20334
|
YE as cloneCellData,
|
|
20315
20335
|
zE as cloneCellDataMatrix,
|
|
20316
|
-
|
|
20336
|
+
oI as cloneCellDataWithSpanAndDisplay,
|
|
20317
20337
|
It as cloneValue,
|
|
20318
20338
|
GE as cloneWorksheetData,
|
|
20319
|
-
|
|
20339
|
+
xR as codeToBlob,
|
|
20320
20340
|
pl as composeBody,
|
|
20321
20341
|
Jc as composeInterceptors,
|
|
20322
20342
|
Dr as composeStyles,
|
|
@@ -20334,13 +20354,13 @@ export {
|
|
|
20334
20354
|
eR as createInternalEditorID,
|
|
20335
20355
|
OR as createREGEXFromWildChar,
|
|
20336
20356
|
ml as createRowColIter,
|
|
20337
|
-
|
|
20357
|
+
dI as customNameCharacterCheck,
|
|
20338
20358
|
rn as dayjs,
|
|
20339
20359
|
hR as debounce,
|
|
20340
20360
|
GC as dedupe,
|
|
20341
20361
|
KC as dedupeBy,
|
|
20342
20362
|
Eu as deepCompare,
|
|
20343
|
-
|
|
20363
|
+
gI as delayAnimationFrame,
|
|
20344
20364
|
k_ as deleteContent,
|
|
20345
20365
|
KE as extractPureTextFromCell,
|
|
20346
20366
|
Ag as fromCallback,
|
|
@@ -20354,7 +20374,7 @@ export {
|
|
|
20354
20374
|
ZR as getBorderStyleType,
|
|
20355
20375
|
Ec as getCellCoordByIndexSimple,
|
|
20356
20376
|
WR as getCellInfoInMergeData,
|
|
20357
|
-
|
|
20377
|
+
_I as getCellPositionByIndexSimple,
|
|
20358
20378
|
$R as getCellValueType,
|
|
20359
20379
|
ir as getCellWithCoordByIndexCore,
|
|
20360
20380
|
Yt as getColorStyle,
|
|
@@ -20362,19 +20382,19 @@ export {
|
|
|
20362
20382
|
C0 as getCustomDecorationSlice,
|
|
20363
20383
|
E0 as getCustomRangeSlice,
|
|
20364
20384
|
QR as getDocsUpdateBody,
|
|
20365
|
-
|
|
20385
|
+
Q1 as getEmptyCell,
|
|
20366
20386
|
Kp as getIntersectRange,
|
|
20367
20387
|
f1 as getNumfmtParseValueFilter,
|
|
20368
|
-
|
|
20388
|
+
aI as getOriginCellValue,
|
|
20369
20389
|
_0 as getParagraphsSlice,
|
|
20370
20390
|
ta as getPlainText,
|
|
20371
20391
|
SR as getReverseDirection,
|
|
20372
|
-
|
|
20392
|
+
x1 as getSectionBreakSlice,
|
|
20373
20393
|
g0 as getTableSlice,
|
|
20374
20394
|
ji as getTextRunSlice,
|
|
20375
20395
|
MC as getTransformOffsetX,
|
|
20376
|
-
|
|
20377
|
-
|
|
20396
|
+
LC as getTransformOffsetY,
|
|
20397
|
+
lI as getWorksheetUID,
|
|
20378
20398
|
qC as groupBy,
|
|
20379
20399
|
JR as handleStyleToString,
|
|
20380
20400
|
a1 as hashAlgorithm,
|
|
@@ -20399,12 +20419,12 @@ export {
|
|
|
20399
20419
|
BR as isNullCell,
|
|
20400
20420
|
nm as isNumeric,
|
|
20401
20421
|
d1 as isPatternEqualWithoutDecimal,
|
|
20402
|
-
|
|
20422
|
+
J1 as isRangesEqual,
|
|
20403
20423
|
o1 as isRealNum,
|
|
20404
20424
|
gR as isSafeNumeric,
|
|
20405
20425
|
Qg as isSameStyleTextRun,
|
|
20406
20426
|
c1 as isTextFormat,
|
|
20407
|
-
|
|
20427
|
+
Z1 as isUnitRangesEqual,
|
|
20408
20428
|
e1 as isValidRange,
|
|
20409
20429
|
HR as isWhiteColor,
|
|
20410
20430
|
JC as makeArray,
|
|
@@ -20421,7 +20441,7 @@ export {
|
|
|
20421
20441
|
mR as mixinClass,
|
|
20422
20442
|
Ba as moveMatrixArray,
|
|
20423
20443
|
S1 as moveRangeByOffset,
|
|
20424
|
-
|
|
20444
|
+
hI as nameCharacterCheck,
|
|
20425
20445
|
D1 as normalizeBody,
|
|
20426
20446
|
$s as normalizeTextRuns,
|
|
20427
20447
|
y1 as numberToABC,
|
|
@@ -20443,7 +20463,7 @@ export {
|
|
|
20443
20463
|
AR as sequenceExecuteAsync,
|
|
20444
20464
|
fR as set,
|
|
20445
20465
|
qc as shallowEqual,
|
|
20446
|
-
|
|
20466
|
+
pI as skipParseTagNames,
|
|
20447
20467
|
GR as sliceMatrixArray,
|
|
20448
20468
|
T1 as sortRules,
|
|
20449
20469
|
M1 as sortRulesByDesc,
|