@univerjs/core 0.14.0 → 0.15.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 +3 -3
- package/lib/es/facade.js +2 -2
- package/lib/es/index.js +871 -826
- package/lib/facade.js +2 -2
- package/lib/index.js +871 -826
- package/lib/types/services/authz-io/authz-io-local.service.d.ts +20 -0
- package/lib/types/types/interfaces/i-drawing.d.ts +6 -1
- package/lib/umd/index.js +3 -3
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var Rc = (e, t, n) => t in e ? Cc(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var p = (e, t, n) => Rc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
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 it, Observable as yr, filter as wr, ReplaySubject as wc, take as Oc, tap as aa, debounceTime as
|
|
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 vc, map as ro, BehaviorSubject as nt, merge as Pl, timer as Sc, distinctUntilChanged as bc, firstValueFrom as Ac, skip as kl, of as Lr, combineLatest as yc } from "rxjs";
|
|
7
7
|
import { filter as Nc, debounceTime as Tc, first as Mc, map as Lc } from "rxjs/operators";
|
|
8
8
|
import { defaultTheme as xr } from "@univerjs/themes";
|
|
9
9
|
function xc(e, t) {
|
|
@@ -71,7 +71,7 @@ function Pc() {
|
|
|
71
71
|
function kc() {
|
|
72
72
|
Dc(), Uc(), Pc();
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Ss(e, t) {
|
|
75
75
|
const n = e.indexOf(t);
|
|
76
76
|
return n > -1 ? (e.splice(n, 1), !0) : !1;
|
|
77
77
|
}
|
|
@@ -114,11 +114,11 @@ function qC(e, t) {
|
|
|
114
114
|
function JC(e) {
|
|
115
115
|
return Array.isArray(e) ? e : [e];
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function vt(e) {
|
|
118
118
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
119
119
|
}
|
|
120
120
|
var zs, la;
|
|
121
|
-
function
|
|
121
|
+
function $c() {
|
|
122
122
|
if (la) return zs;
|
|
123
123
|
la = 1;
|
|
124
124
|
var e = function(t) {
|
|
@@ -152,8 +152,8 @@ function Hc() {
|
|
|
152
152
|
}, W)), n.length === 1) {
|
|
153
153
|
var w = !1;
|
|
154
154
|
try {
|
|
155
|
-
n(function(C,
|
|
156
|
-
w || (w = !0, f(k, C,
|
|
155
|
+
n(function(C, S) {
|
|
156
|
+
w || (w = !0, f(k, C, S));
|
|
157
157
|
});
|
|
158
158
|
} catch (C) {
|
|
159
159
|
w || (w = !0, f(k, C));
|
|
@@ -185,10 +185,10 @@ function Hc() {
|
|
|
185
185
|
u = null, f(!1, new Error("async-lock timed out in queue " + t));
|
|
186
186
|
}, b));
|
|
187
187
|
}
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
188
|
+
var $ = s.maxOccupationTime || d.maxOccupationTime;
|
|
189
|
+
if ($ && (c = setTimeout(function() {
|
|
190
190
|
d.queues[t] && f(!1, new Error("Maximum occupation time is exceeded in queue " + t));
|
|
191
|
-
},
|
|
191
|
+
}, $)), a)
|
|
192
192
|
return a;
|
|
193
193
|
}, e.prototype._acquireBatch = function(t, n, r, s) {
|
|
194
194
|
typeof r != "function" && (s = r, r = null);
|
|
@@ -218,16 +218,16 @@ function Hc() {
|
|
|
218
218
|
}, zs = e, zs;
|
|
219
219
|
}
|
|
220
220
|
var Vs, ua;
|
|
221
|
-
function
|
|
222
|
-
return ua || (ua = 1, Vs =
|
|
221
|
+
function Hc() {
|
|
222
|
+
return ua || (ua = 1, Vs = $c()), Vs;
|
|
223
223
|
}
|
|
224
|
-
var Bc =
|
|
225
|
-
const ZC = /* @__PURE__ */
|
|
224
|
+
var Bc = Hc();
|
|
225
|
+
const ZC = /* @__PURE__ */ vt(Bc), jc = /* @__PURE__ */ new Set(["true", "false"]);
|
|
226
226
|
function QC(e) {
|
|
227
227
|
return jc.has(e.toLowerCase());
|
|
228
228
|
}
|
|
229
|
-
const Vn = "__INTERNAL_EDITOR__", Fl = `${Vn}DOCS_NORMAL`,
|
|
230
|
-
`, Vc = "isRowStylePrecedeColumnStyle", Gc = Symbol("AUTO_HEIGHT_FOR_MERGED_CELLS");
|
|
229
|
+
const Vn = "__INTERNAL_EDITOR__", Fl = `${Vn}DOCS_NORMAL`, $l = `${Vn}DOCS_FORMULA_BAR`, Wc = `${Vn}ZEN_EDITOR`, Yc = `${Vn}COMMENT_EDITOR`, zc = `\r
|
|
230
|
+
`, Vc = "isRowStylePrecedeColumnStyle", Gc = /* @__PURE__ */ Symbol("AUTO_HEIGHT_FOR_MERGED_CELLS");
|
|
231
231
|
function eR(e) {
|
|
232
232
|
return `${Vn}${e}`;
|
|
233
233
|
}
|
|
@@ -330,7 +330,7 @@ class oR {
|
|
|
330
330
|
return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
|
|
331
331
|
})
|
|
332
332
|
// from large to small
|
|
333
|
-
), () =>
|
|
333
|
+
), () => Ss(this._interceptorsByName.get(r), n);
|
|
334
334
|
}
|
|
335
335
|
getInterceptPoints() {
|
|
336
336
|
return this._interceptorPoints;
|
|
@@ -385,7 +385,7 @@ class lR {
|
|
|
385
385
|
return ((a = o.priority) != null ? a : 0) - ((l = i.priority) != null ? l : 0);
|
|
386
386
|
})
|
|
387
387
|
// from large to small
|
|
388
|
-
), () =>
|
|
388
|
+
), () => Ss(this._asyncInterceptorsByName.get(r), n);
|
|
389
389
|
}
|
|
390
390
|
getInterceptPoints() {
|
|
391
391
|
return this._asyncInterceptorPoints;
|
|
@@ -394,7 +394,7 @@ class lR {
|
|
|
394
394
|
this._asyncInterceptorsByName.clear();
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Hl(e) {
|
|
398
398
|
return e.map((t) => t / 255);
|
|
399
399
|
}
|
|
400
400
|
function Bl(e) {
|
|
@@ -453,7 +453,7 @@ function rh(e) {
|
|
|
453
453
|
return i;
|
|
454
454
|
}
|
|
455
455
|
function uR(e) {
|
|
456
|
-
return Bl(rh(
|
|
456
|
+
return Bl(rh(Hl(e)));
|
|
457
457
|
}
|
|
458
458
|
const _t = [
|
|
459
459
|
[0.333, -0.667, -0.667, 0, 1],
|
|
@@ -471,9 +471,9 @@ function sh(e) {
|
|
|
471
471
|
return s = s.map((i) => i > 1 ? 1 : i < 0 ? 0 : i), s;
|
|
472
472
|
}
|
|
473
473
|
function cR(e) {
|
|
474
|
-
return Bl(sh(
|
|
474
|
+
return Bl(sh(Hl(e)));
|
|
475
475
|
}
|
|
476
|
-
var jl = typeof global == "object" && global && global.Object === Object && global, ih = typeof self == "object" && self && self.Object === Object && self, Rn = jl || ih || Function("return this")(),
|
|
476
|
+
var jl = typeof global == "object" && global && global.Object === Object && global, ih = typeof self == "object" && self && self.Object === Object && self, Rn = jl || ih || Function("return this")(), Hn = Rn.Symbol, Wl = Object.prototype, oh = Wl.hasOwnProperty, ah = Wl.toString, Zn = Hn ? Hn.toStringTag : void 0;
|
|
477
477
|
function lh(e) {
|
|
478
478
|
var t = oh.call(e, Zn), n = e[Zn];
|
|
479
479
|
try {
|
|
@@ -488,7 +488,7 @@ var uh = Object.prototype, ch = uh.toString;
|
|
|
488
488
|
function hh(e) {
|
|
489
489
|
return ch.call(e);
|
|
490
490
|
}
|
|
491
|
-
var dh = "[object Null]", fh = "[object Undefined]", ha =
|
|
491
|
+
var dh = "[object Null]", fh = "[object Undefined]", ha = Hn ? Hn.toStringTag : void 0;
|
|
492
492
|
function Nr(e) {
|
|
493
493
|
return e == null ? e === void 0 ? fh : dh : ha && ha in Object(e) ? lh(e) : hh(e);
|
|
494
494
|
}
|
|
@@ -504,7 +504,7 @@ function gh(e, t) {
|
|
|
504
504
|
s[n] = t(e[n], n, e);
|
|
505
505
|
return s;
|
|
506
506
|
}
|
|
507
|
-
var Bn = Array.isArray, da =
|
|
507
|
+
var Bn = Array.isArray, da = Hn ? Hn.prototype : void 0, fa = da ? da.toString : void 0;
|
|
508
508
|
function Yl(e) {
|
|
509
509
|
if (typeof e == "string")
|
|
510
510
|
return e;
|
|
@@ -548,12 +548,12 @@ function ga(e) {
|
|
|
548
548
|
function zl(e) {
|
|
549
549
|
return e;
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var vh = "[object AsyncFunction]", Sh = "[object Function]", bh = "[object GeneratorFunction]", Ah = "[object Proxy]";
|
|
552
552
|
function so(e) {
|
|
553
553
|
if (!Ot(e))
|
|
554
554
|
return !1;
|
|
555
555
|
var t = Nr(e);
|
|
556
|
-
return t ==
|
|
556
|
+
return t == Sh || t == bh || t == vh || t == Ah;
|
|
557
557
|
}
|
|
558
558
|
var Xs = Rn["__core-js_shared__"], _a = (function() {
|
|
559
559
|
var e = /[^.]+$/.exec(Xs && Xs.keys && Xs.keys.IE_PROTO || "");
|
|
@@ -579,18 +579,18 @@ function Mh(e) {
|
|
|
579
579
|
var Lh = /[\\^$.*+?()[\]{}|]/g, xh = /^\[object .+?Constructor\]$/, Dh = Function.prototype, Uh = Object.prototype, Ph = Dh.toString, kh = Uh.hasOwnProperty, Fh = RegExp(
|
|
580
580
|
"^" + Ph.call(kh).replace(Lh, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
581
581
|
);
|
|
582
|
-
function
|
|
582
|
+
function $h(e) {
|
|
583
583
|
if (!Ot(e) || yh(e))
|
|
584
584
|
return !1;
|
|
585
585
|
var t = so(e) ? Fh : xh;
|
|
586
586
|
return t.test(Mh(e));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Hh(e, t) {
|
|
589
589
|
return e == null ? void 0 : e[t];
|
|
590
590
|
}
|
|
591
591
|
function io(e, t) {
|
|
592
|
-
var n =
|
|
593
|
-
return
|
|
592
|
+
var n = Hh(e, t);
|
|
593
|
+
return $h(n) ? n : void 0;
|
|
594
594
|
}
|
|
595
595
|
var pa = Object.create, Bh = /* @__PURE__ */ (function() {
|
|
596
596
|
function e() {
|
|
@@ -744,24 +744,24 @@ 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]",
|
|
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]", vd = "[object Set]", Sd = "[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
748
|
Pe[Nd] = Pe[Td] = Pe[Md] = Pe[Ld] = Pe[xd] = Pe[Dd] = Pe[Ud] = Pe[Pd] = Pe[kd] = !0;
|
|
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[
|
|
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[vd] = Pe[Sd] = Pe[bd] = !1;
|
|
750
750
|
function Fd(e) {
|
|
751
751
|
return Gn(e) && Gl(e.length) && !!Pe[Nr(e)];
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function $d(e) {
|
|
754
754
|
return function(t) {
|
|
755
755
|
return e(t);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
var Ql = typeof exports == "object" && exports && !exports.nodeType && exports, Er = Ql && typeof module == "object" && module && !module.nodeType && module,
|
|
758
|
+
var Ql = typeof exports == "object" && exports && !exports.nodeType && exports, Er = Ql && typeof module == "object" && module && !module.nodeType && module, Hd = Er && Er.exports === Ql, qs = Hd && jl.process, wa = (function() {
|
|
759
759
|
try {
|
|
760
760
|
var e = Er && Er.require && Er.require("util").types;
|
|
761
761
|
return e || qs && qs.binding && qs.binding("util");
|
|
762
762
|
} catch {
|
|
763
763
|
}
|
|
764
|
-
})(), Oa = wa && wa.isTypedArray, eu = Oa ?
|
|
764
|
+
})(), Oa = wa && wa.isTypedArray, eu = Oa ? $d(Oa) : Fd;
|
|
765
765
|
function Bd(e, t) {
|
|
766
766
|
var n = Bn(e), r = !n && Ii(e), s = !n && !r && Zl(e), i = !n && !r && !s && eu(e), o = n || r || s || i, a = o ? ad(e.length, String) : [], l = a.length;
|
|
767
767
|
for (var u in e)
|
|
@@ -945,10 +945,10 @@ function Of(e) {
|
|
|
945
945
|
}), n = t.cache;
|
|
946
946
|
return t;
|
|
947
947
|
}
|
|
948
|
-
var
|
|
948
|
+
var vf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Sf = /\\(\\)?/g, bf = Of(function(e) {
|
|
949
949
|
var t = [];
|
|
950
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(
|
|
951
|
-
t.push(s ? i.replace(
|
|
950
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(vf, function(n, r, s, i) {
|
|
951
|
+
t.push(s ? i.replace(Sf, "$1") : r || n);
|
|
952
952
|
}), t;
|
|
953
953
|
});
|
|
954
954
|
function Af(e) {
|
|
@@ -993,15 +993,15 @@ function kf(e) {
|
|
|
993
993
|
function Ff(e) {
|
|
994
994
|
return this.__data__.get(e);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function $f(e) {
|
|
997
997
|
return this.__data__.has(e);
|
|
998
998
|
}
|
|
999
|
-
var
|
|
999
|
+
var Hf = 200;
|
|
1000
1000
|
function Bf(e, t) {
|
|
1001
1001
|
var n = this.__data__;
|
|
1002
1002
|
if (n instanceof Gt) {
|
|
1003
1003
|
var r = n.__data__;
|
|
1004
|
-
if (!nu || r.length <
|
|
1004
|
+
if (!nu || r.length < Hf - 1)
|
|
1005
1005
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
1006
1006
|
n = this.__data__ = new nn(r);
|
|
1007
1007
|
}
|
|
@@ -1014,10 +1014,10 @@ function Kn(e) {
|
|
|
1014
1014
|
Kn.prototype.clear = Pf;
|
|
1015
1015
|
Kn.prototype.delete = kf;
|
|
1016
1016
|
Kn.prototype.get = Ff;
|
|
1017
|
-
Kn.prototype.has =
|
|
1017
|
+
Kn.prototype.has = $f;
|
|
1018
1018
|
Kn.prototype.set = Bf;
|
|
1019
|
-
var au = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
1020
|
-
|
|
1019
|
+
var au = typeof exports == "object" && exports && !exports.nodeType && exports, va = au && typeof module == "object" && module && !module.nodeType && module, jf = va && va.exports === au, Sa = jf ? Rn.Buffer : void 0;
|
|
1020
|
+
Sa && Sa.allocUnsafe;
|
|
1021
1021
|
function Wf(e, t) {
|
|
1022
1022
|
return e.slice();
|
|
1023
1023
|
}
|
|
@@ -1052,38 +1052,38 @@ function hR(e, t, n) {
|
|
|
1052
1052
|
throw new TypeError(Xf);
|
|
1053
1053
|
t = ga(t) || 0, Ot(n) && (c = !!n.leading, h = "maxWait" in n, i = h ? qf(ga(n.maxWait) || 0, t) : i, d = "trailing" in n ? !!n.trailing : d);
|
|
1054
1054
|
function f(C) {
|
|
1055
|
-
var
|
|
1056
|
-
return r = s = void 0, u = C, o = e.apply(y,
|
|
1055
|
+
var S = r, y = s;
|
|
1056
|
+
return r = s = void 0, u = C, o = e.apply(y, S), o;
|
|
1057
1057
|
}
|
|
1058
1058
|
function g(C) {
|
|
1059
1059
|
return u = C, a = setTimeout(b, t), c ? f(C) : o;
|
|
1060
1060
|
}
|
|
1061
1061
|
function _(C) {
|
|
1062
|
-
var
|
|
1062
|
+
var S = C - l, y = C - u, F = t - S;
|
|
1063
1063
|
return h ? Jf(F, i - y) : F;
|
|
1064
1064
|
}
|
|
1065
1065
|
function R(C) {
|
|
1066
|
-
var
|
|
1067
|
-
return l === void 0 ||
|
|
1066
|
+
var S = C - l, y = C - u;
|
|
1067
|
+
return l === void 0 || S >= t || S < 0 || h && y >= i;
|
|
1068
1068
|
}
|
|
1069
1069
|
function b() {
|
|
1070
1070
|
var C = Js();
|
|
1071
1071
|
if (R(C))
|
|
1072
|
-
return
|
|
1072
|
+
return $(C);
|
|
1073
1073
|
a = setTimeout(b, _(C));
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1075
|
+
function $(C) {
|
|
1076
1076
|
return a = void 0, d && r ? f(C) : (r = s = void 0, o);
|
|
1077
1077
|
}
|
|
1078
1078
|
function k() {
|
|
1079
1079
|
a !== void 0 && clearTimeout(a), u = 0, r = l = s = a = void 0;
|
|
1080
1080
|
}
|
|
1081
1081
|
function W() {
|
|
1082
|
-
return a === void 0 ? o :
|
|
1082
|
+
return a === void 0 ? o : $(Js());
|
|
1083
1083
|
}
|
|
1084
1084
|
function w() {
|
|
1085
|
-
var C = Js(),
|
|
1086
|
-
if (r = arguments, s = this, l = C,
|
|
1085
|
+
var C = Js(), S = R(C);
|
|
1086
|
+
if (r = arguments, s = this, l = C, S) {
|
|
1087
1087
|
if (a === void 0)
|
|
1088
1088
|
return g(l);
|
|
1089
1089
|
if (h)
|
|
@@ -1345,7 +1345,7 @@ class IR extends Ge {
|
|
|
1345
1345
|
this._ref -= 1, this._ref === 0 && (this._rootDisposable.dispose(), this.dispose());
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
var Oe = /* @__PURE__ */ ((e) => (e[e.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", e[e.UNIVER_DOC = 1] = "UNIVER_DOC", e[e.UNIVER_SHEET = 2] = "UNIVER_SHEET", e[e.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", e[e.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Oe || {}),
|
|
1348
|
+
var Oe = /* @__PURE__ */ ((e) => (e[e.UNIVER_UNKNOWN = 0] = "UNIVER_UNKNOWN", e[e.UNIVER_DOC = 1] = "UNIVER_DOC", e[e.UNIVER_SHEET = 2] = "UNIVER_SHEET", e[e.UNIVER_SLIDE = 3] = "UNIVER_SLIDE", e[e.UNIVER_PROJECT = 4] = "UNIVER_PROJECT", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Oe || {}), Re = /* @__PURE__ */ ((e) => (e[e.Reader = 0] = "Reader", e[e.Editor = 1] = "Editor", e[e.Owner = 2] = "Owner", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Re || {}), vi = /* @__PURE__ */ ((e) => (e[e.SomeCollaborator = 0] = "SomeCollaborator", e[e.AllCollaborator = 1] = "AllCollaborator", e[e.OneSelf = 2] = "OneSelf", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(vi || {});
|
|
1349
1349
|
class mo extends Ge {
|
|
1350
1350
|
}
|
|
1351
1351
|
const om = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
@@ -2039,7 +2039,7 @@ function OR(e) {
|
|
|
2039
2039
|
return new RegExp(`^${n}$`, "i");
|
|
2040
2040
|
}
|
|
2041
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
|
-
function
|
|
2042
|
+
function vR(e) {
|
|
2043
2043
|
switch (e) {
|
|
2044
2044
|
case 3:
|
|
2045
2045
|
return 1;
|
|
@@ -2051,8 +2051,8 @@ 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 || {}), 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
|
-
const
|
|
2054
|
+
var vm = /* @__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))(vm || {}), 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 || {}), Si = /* @__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))(Si || {}), Sm = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Sm || {}), 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 || {}), $m = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))($m || {}), Hm = /* @__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))(Hm || {}), 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
|
+
const SR = [
|
|
2056
2056
|
"A3",
|
|
2057
2057
|
"A4",
|
|
2058
2058
|
"A5",
|
|
@@ -2383,10 +2383,10 @@ function gu() {
|
|
|
2383
2383
|
function _(R) {
|
|
2384
2384
|
let b;
|
|
2385
2385
|
for (; g; ) {
|
|
2386
|
-
const
|
|
2386
|
+
const $ = b = c.getKey();
|
|
2387
2387
|
if (R != null) {
|
|
2388
2388
|
let k = !1;
|
|
2389
|
-
if (h && typeof
|
|
2389
|
+
if (h && typeof $ == "number" && (b = h($, c.getComponent()), b < 0 && (b = ~b, k = !0)), r(b, R))
|
|
2390
2390
|
return null;
|
|
2391
2391
|
if (b === R && !k)
|
|
2392
2392
|
return c;
|
|
@@ -2403,8 +2403,8 @@ function gu() {
|
|
|
2403
2403
|
function u(c, h, d) {
|
|
2404
2404
|
let f, g, _, R;
|
|
2405
2405
|
for (f = g = c && c.descendFirst(), _ = R = h && h.descendFirst(); f || _; ) {
|
|
2406
|
-
let b = f ? c.getKey() : null,
|
|
2407
|
-
b !== null &&
|
|
2406
|
+
let b = f ? c.getKey() : null, $ = _ ? h.getKey() : null;
|
|
2407
|
+
b !== null && $ !== null && (r($, b) ? $ = null : b !== $ && (b = null)), d(b == null ? $ : b, b != null ? c : null, $ != null ? h : null), b != null && f && (f = c.nextSibling()), $ != null && _ && (_ = h.nextSibling());
|
|
2408
2408
|
}
|
|
2409
2409
|
g && c.ascend(), R && h.ascend();
|
|
2410
2410
|
}
|
|
@@ -2447,8 +2447,8 @@ function yi() {
|
|
|
2447
2447
|
if (!Array.isArray(w))
|
|
2448
2448
|
throw Error("Op must be an array of components");
|
|
2449
2449
|
let C = null;
|
|
2450
|
-
for (let
|
|
2451
|
-
const y = w[
|
|
2450
|
+
for (let S = 0; S < w.length; S++) {
|
|
2451
|
+
const y = w[S];
|
|
2452
2452
|
switch (typeof y) {
|
|
2453
2453
|
case "object":
|
|
2454
2454
|
if (typeof y.d != "number" && typeof y.d != "string")
|
|
@@ -2473,28 +2473,28 @@ function yi() {
|
|
|
2473
2473
|
throw Error("Op has a trailing skip");
|
|
2474
2474
|
};
|
|
2475
2475
|
function r(w, C) {
|
|
2476
|
-
let
|
|
2476
|
+
let S = 0, y = 0;
|
|
2477
2477
|
for (let F = 0; F < w.length; F++) {
|
|
2478
|
-
const
|
|
2479
|
-
switch (C(
|
|
2478
|
+
const H = w[F];
|
|
2479
|
+
switch (C(H, S, y), typeof H) {
|
|
2480
2480
|
case "object":
|
|
2481
|
-
|
|
2481
|
+
S += e.dlen(H.d);
|
|
2482
2482
|
break;
|
|
2483
2483
|
case "string":
|
|
2484
|
-
y += t.strPosToUni(
|
|
2484
|
+
y += t.strPosToUni(H);
|
|
2485
2485
|
break;
|
|
2486
2486
|
case "number":
|
|
2487
|
-
|
|
2487
|
+
S += H, y += H;
|
|
2488
2488
|
break;
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
e.eachOp = r;
|
|
2493
2493
|
function s(w, C) {
|
|
2494
|
-
const
|
|
2495
|
-
return r(w, (F,
|
|
2496
|
-
y(C(F,
|
|
2497
|
-
}), h(
|
|
2494
|
+
const S = [], y = a(S);
|
|
2495
|
+
return r(w, (F, H, m) => {
|
|
2496
|
+
y(C(F, H, m));
|
|
2497
|
+
}), h(S);
|
|
2498
2498
|
}
|
|
2499
2499
|
const i = (w) => w, o = (w) => s(w, i);
|
|
2500
2500
|
e.dlen = (w) => typeof w == "number" ? w : t.strPosToUni(w);
|
|
@@ -2503,82 +2503,82 @@ function yi() {
|
|
|
2503
2503
|
w.push(C);
|
|
2504
2504
|
else if (typeof C == typeof w[w.length - 1])
|
|
2505
2505
|
if (typeof C == "object") {
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2506
|
+
const S = w[w.length - 1];
|
|
2507
|
+
S.d = typeof S.d == "string" && typeof C.d == "string" ? S.d + C.d : e.dlen(S.d) + e.dlen(C.d);
|
|
2508
2508
|
} else
|
|
2509
2509
|
w[w.length - 1] += C;
|
|
2510
2510
|
else
|
|
2511
2511
|
w.push(C);
|
|
2512
2512
|
}, l = (w) => typeof w == "number" ? w : typeof w == "string" ? t.strPosToUni(w) : typeof w.d == "number" ? w.d : t.strPosToUni(w.d);
|
|
2513
|
-
e.uniSlice = (w, C,
|
|
2514
|
-
const y = t.uniToStrPos(w, C), F =
|
|
2513
|
+
e.uniSlice = (w, C, S) => {
|
|
2514
|
+
const y = t.uniToStrPos(w, C), F = S == null ? 1 / 0 : t.uniToStrPos(w, S);
|
|
2515
2515
|
return w.slice(y, F);
|
|
2516
2516
|
};
|
|
2517
|
-
const u = (w, C,
|
|
2518
|
-
let C = 0,
|
|
2519
|
-
return { take: (
|
|
2517
|
+
const u = (w, C, S) => typeof w == "number" ? S == null ? w - C : Math.min(w, S) - C : e.uniSlice(w, C, S), c = (w) => {
|
|
2518
|
+
let C = 0, S = 0;
|
|
2519
|
+
return { take: (H, m) => {
|
|
2520
2520
|
if (C === w.length)
|
|
2521
|
-
return
|
|
2521
|
+
return H === -1 ? null : H;
|
|
2522
2522
|
const D = w[C];
|
|
2523
2523
|
let O;
|
|
2524
2524
|
if (typeof D == "number")
|
|
2525
|
-
return
|
|
2525
|
+
return H === -1 || D - S <= H ? (O = D - S, ++C, S = 0, O) : (S += H, H);
|
|
2526
2526
|
if (typeof D == "string") {
|
|
2527
|
-
if (
|
|
2528
|
-
return O = D.slice(
|
|
2527
|
+
if (H === -1 || m === "i" || t.strPosToUni(D.slice(S)) <= H)
|
|
2528
|
+
return O = D.slice(S), ++C, S = 0, O;
|
|
2529
2529
|
{
|
|
2530
|
-
const T =
|
|
2531
|
-
return O = D.slice(
|
|
2530
|
+
const T = S + t.uniToStrPos(D.slice(S), H);
|
|
2531
|
+
return O = D.slice(S, T), S = T, O;
|
|
2532
2532
|
}
|
|
2533
2533
|
} else {
|
|
2534
|
-
if (
|
|
2535
|
-
return O = { d: u(D.d,
|
|
2534
|
+
if (H === -1 || m === "d" || e.dlen(D.d) - S <= H)
|
|
2535
|
+
return O = { d: u(D.d, S) }, ++C, S = 0, O;
|
|
2536
2536
|
{
|
|
2537
|
-
let T = u(D.d,
|
|
2538
|
-
return
|
|
2537
|
+
let T = u(D.d, S, S + H);
|
|
2538
|
+
return S += H, { d: T };
|
|
2539
2539
|
}
|
|
2540
2540
|
}
|
|
2541
2541
|
}, peek: () => w[C] };
|
|
2542
2542
|
}, h = (w) => (w.length > 0 && typeof w[w.length - 1] == "number" && w.pop(), w);
|
|
2543
|
-
function d(w, C,
|
|
2544
|
-
if (
|
|
2545
|
-
throw Error("side (" +
|
|
2543
|
+
function d(w, C, S) {
|
|
2544
|
+
if (S !== "left" && S !== "right")
|
|
2545
|
+
throw Error("side (" + S + ") must be 'left' or 'right'");
|
|
2546
2546
|
n(w), n(C);
|
|
2547
|
-
const y = [], F = a(y), { take:
|
|
2547
|
+
const y = [], F = a(y), { take: H, peek: m } = c(w);
|
|
2548
2548
|
for (let O = 0; O < C.length; O++) {
|
|
2549
2549
|
const T = C[O];
|
|
2550
|
-
let A,
|
|
2550
|
+
let A, v;
|
|
2551
2551
|
switch (typeof T) {
|
|
2552
2552
|
case "number":
|
|
2553
2553
|
for (A = T; A > 0; )
|
|
2554
|
-
|
|
2554
|
+
v = H(A, "i"), F(v), typeof v != "string" && (A -= l(v));
|
|
2555
2555
|
break;
|
|
2556
2556
|
case "string":
|
|
2557
|
-
|
|
2557
|
+
S === "left" && typeof m() == "string" && F(H(-1)), F(t.strPosToUni(T));
|
|
2558
2558
|
break;
|
|
2559
2559
|
case "object":
|
|
2560
2560
|
for (A = e.dlen(T.d); A > 0; )
|
|
2561
|
-
switch (
|
|
2561
|
+
switch (v = H(A, "i"), typeof v) {
|
|
2562
2562
|
case "number":
|
|
2563
|
-
A -=
|
|
2563
|
+
A -= v;
|
|
2564
2564
|
break;
|
|
2565
2565
|
case "string":
|
|
2566
|
-
F(
|
|
2566
|
+
F(v);
|
|
2567
2567
|
break;
|
|
2568
2568
|
case "object":
|
|
2569
|
-
A -= e.dlen(
|
|
2569
|
+
A -= e.dlen(v.d);
|
|
2570
2570
|
}
|
|
2571
2571
|
break;
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
let D;
|
|
2575
|
-
for (; D =
|
|
2575
|
+
for (; D = H(-1); )
|
|
2576
2576
|
F(D);
|
|
2577
2577
|
return h(y);
|
|
2578
2578
|
}
|
|
2579
2579
|
function f(w, C) {
|
|
2580
2580
|
n(w), n(C);
|
|
2581
|
-
const
|
|
2581
|
+
const S = [], y = a(S), { take: F } = c(w);
|
|
2582
2582
|
for (let m = 0; m < C.length; m++) {
|
|
2583
2583
|
const D = C[m];
|
|
2584
2584
|
let O, T;
|
|
@@ -2607,33 +2607,33 @@ function yi() {
|
|
|
2607
2607
|
break;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
let
|
|
2611
|
-
for (;
|
|
2612
|
-
y(
|
|
2613
|
-
return h(
|
|
2610
|
+
let H;
|
|
2611
|
+
for (; H = F(-1); )
|
|
2612
|
+
y(H);
|
|
2613
|
+
return h(S);
|
|
2614
2614
|
}
|
|
2615
2615
|
const g = (w, C) => {
|
|
2616
|
-
let
|
|
2617
|
-
for (let y = 0; y < C.length && w >
|
|
2616
|
+
let S = 0;
|
|
2617
|
+
for (let y = 0; y < C.length && w > S; y++) {
|
|
2618
2618
|
const F = C[y];
|
|
2619
2619
|
switch (typeof F) {
|
|
2620
2620
|
case "number": {
|
|
2621
|
-
|
|
2621
|
+
S += F;
|
|
2622
2622
|
break;
|
|
2623
2623
|
}
|
|
2624
2624
|
case "string":
|
|
2625
|
-
const
|
|
2626
|
-
|
|
2625
|
+
const H = t.strPosToUni(F);
|
|
2626
|
+
S += H, w += H;
|
|
2627
2627
|
break;
|
|
2628
2628
|
case "object":
|
|
2629
|
-
w -= Math.min(e.dlen(F.d), w -
|
|
2629
|
+
w -= Math.min(e.dlen(F.d), w - S);
|
|
2630
2630
|
break;
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
2633
2633
|
return w;
|
|
2634
|
-
}, _ = (w, C) => typeof w == "number" ? g(w, C) : w.map((
|
|
2635
|
-
function R(w, C,
|
|
2636
|
-
return s(w, (y, F) => typeof y == "object" && typeof y.d == "number" ? { d:
|
|
2634
|
+
}, _ = (w, C) => typeof w == "number" ? g(w, C) : w.map((S) => g(S, C));
|
|
2635
|
+
function R(w, C, S) {
|
|
2636
|
+
return s(w, (y, F) => typeof y == "object" && typeof y.d == "number" ? { d: S.slice(C, F, F + y.d) } : y);
|
|
2637
2637
|
}
|
|
2638
2638
|
function b(w) {
|
|
2639
2639
|
return s(w, (C) => {
|
|
@@ -2651,13 +2651,13 @@ function yi() {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
});
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function $(w) {
|
|
2655
2655
|
return s(w, (C) => typeof C == "object" && typeof C.d == "string" ? { d: t.strPosToUni(C.d) } : C);
|
|
2656
2656
|
}
|
|
2657
2657
|
function k(w) {
|
|
2658
2658
|
let C = !0;
|
|
2659
|
-
return r(w, (
|
|
2660
|
-
typeof
|
|
2659
|
+
return r(w, (S) => {
|
|
2660
|
+
typeof S == "object" && typeof S.d == "number" && (C = !1);
|
|
2661
2661
|
}), C;
|
|
2662
2662
|
}
|
|
2663
2663
|
function W(w) {
|
|
@@ -2679,20 +2679,20 @@ function yi() {
|
|
|
2679
2679
|
},
|
|
2680
2680
|
/** Apply an operation to a document snapshot
|
|
2681
2681
|
*/
|
|
2682
|
-
apply(C,
|
|
2683
|
-
n(
|
|
2682
|
+
apply(C, S) {
|
|
2683
|
+
n(S);
|
|
2684
2684
|
const y = w.builder(C);
|
|
2685
|
-
for (let F = 0; F <
|
|
2686
|
-
const
|
|
2687
|
-
switch (typeof
|
|
2685
|
+
for (let F = 0; F < S.length; F++) {
|
|
2686
|
+
const H = S[F];
|
|
2687
|
+
switch (typeof H) {
|
|
2688
2688
|
case "number":
|
|
2689
|
-
y.skip(
|
|
2689
|
+
y.skip(H);
|
|
2690
2690
|
break;
|
|
2691
2691
|
case "string":
|
|
2692
|
-
y.append(
|
|
2692
|
+
y.append(H);
|
|
2693
2693
|
break;
|
|
2694
2694
|
case "object":
|
|
2695
|
-
y.del(e.dlen(
|
|
2695
|
+
y.del(e.dlen(H.d));
|
|
2696
2696
|
break;
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
@@ -2703,13 +2703,13 @@ function yi() {
|
|
|
2703
2703
|
transformPosition: g,
|
|
2704
2704
|
transformSelection: _,
|
|
2705
2705
|
isInvertible: k,
|
|
2706
|
-
makeInvertible(C,
|
|
2707
|
-
return R(C,
|
|
2706
|
+
makeInvertible(C, S) {
|
|
2707
|
+
return R(C, S, w);
|
|
2708
2708
|
},
|
|
2709
|
-
stripInvertible:
|
|
2709
|
+
stripInvertible: $,
|
|
2710
2710
|
invert: b,
|
|
2711
|
-
invertWithDoc(C,
|
|
2712
|
-
return b(R(C,
|
|
2711
|
+
invertWithDoc(C, S) {
|
|
2712
|
+
return b(R(C, S, w));
|
|
2713
2713
|
},
|
|
2714
2714
|
isNoop: (C) => C.length === 0
|
|
2715
2715
|
};
|
|
@@ -2847,13 +2847,13 @@ function mg() {
|
|
|
2847
2847
|
},
|
|
2848
2848
|
registerSubtype: b,
|
|
2849
2849
|
checkValidOp: F,
|
|
2850
|
-
normalize:
|
|
2850
|
+
normalize: H,
|
|
2851
2851
|
apply: m,
|
|
2852
2852
|
transformPosition: D,
|
|
2853
2853
|
compose: O,
|
|
2854
2854
|
tryTransform: L,
|
|
2855
2855
|
transform: q,
|
|
2856
|
-
makeInvertible:
|
|
2856
|
+
makeInvertible: v,
|
|
2857
2857
|
invert: T,
|
|
2858
2858
|
invertWithDoc: N,
|
|
2859
2859
|
RM_UNEXPECTED_CONTENT: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
@@ -2883,7 +2883,7 @@ function mg() {
|
|
|
2883
2883
|
let x = I.type ? I.type : I;
|
|
2884
2884
|
x.name && (R[x.name] = x), x.uri && (R[x.uri] = x);
|
|
2885
2885
|
}
|
|
2886
|
-
const
|
|
2886
|
+
const $ = (I) => {
|
|
2887
2887
|
const x = R[I];
|
|
2888
2888
|
if (x) return x;
|
|
2889
2889
|
throw Error("Missing type: " + I);
|
|
@@ -2897,15 +2897,15 @@ function mg() {
|
|
|
2897
2897
|
invert: (I) => -I,
|
|
2898
2898
|
transform: (I) => I
|
|
2899
2899
|
});
|
|
2900
|
-
const W = (I) => I == null ? null : I.et ?
|
|
2901
|
-
const [B, j] = typeof x == "string" ? [
|
|
2900
|
+
const W = (I) => I == null ? null : I.et ? $(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" ? [$(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
|
-
function
|
|
2904
|
+
function S(I) {
|
|
2905
2905
|
o(typeof I == "number"), o(I >= 0), o(I === (0 | I));
|
|
2906
2906
|
}
|
|
2907
2907
|
function y(I) {
|
|
2908
|
-
typeof I == "number" ?
|
|
2908
|
+
typeof I == "number" ? S(I) : o(typeof I == "string");
|
|
2909
2909
|
}
|
|
2910
2910
|
function F(I) {
|
|
2911
2911
|
if (I === null) return;
|
|
@@ -2913,8 +2913,8 @@ function mg() {
|
|
|
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")
|
|
2917
|
-
else if (U === "d")
|
|
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") S(G), o(!x.has(G)), x.add(G), o(j.r === void 0);
|
|
2917
|
+
else if (U === "d") S(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;
|
|
2920
2920
|
const X = W(j);
|
|
@@ -2943,7 +2943,7 @@ function mg() {
|
|
|
2943
2943
|
B(I, !0), o(x.size === Y.size, "Mismatched picks and drops in op");
|
|
2944
2944
|
for (let j = 0; j < x.size; j++) o(x.has(j)), o(Y.has(j));
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function H(I) {
|
|
2947
2947
|
let x = 0, Y = [];
|
|
2948
2948
|
const z = s.writeCursor();
|
|
2949
2949
|
return z.mergeTree(I, (B, j) => {
|
|
@@ -3057,47 +3057,47 @@ function mg() {
|
|
|
3057
3057
|
K.d != null && (G[K.d] = B.clone());
|
|
3058
3058
|
});
|
|
3059
3059
|
const _e = s.writeCursor();
|
|
3060
|
-
return (function K(ce, Le, ye,
|
|
3060
|
+
return (function K(ce, Le, ye, Ie, Fe, Ht, et, Ke) {
|
|
3061
3061
|
o(Le || ye);
|
|
3062
|
-
const
|
|
3063
|
-
if (ut != null)
|
|
3064
|
-
else if (mt && mt.r !== void 0)
|
|
3062
|
+
const $e = a(Le), mt = a(ye), St = !!mt && mt.r !== void 0, on = !!$e && $e.i !== void 0, gt = $e ? $e.d : null, ut = mt ? mt.p : null, Bt = (Ht || St) && ut == null;
|
|
3063
|
+
if (ut != null) Ie = G[ut], et = ee[ut] = new s.WriteCursor();
|
|
3064
|
+
else if (mt && mt.r !== void 0) Ie = null;
|
|
3065
3065
|
else {
|
|
3066
|
-
const se = a(
|
|
3067
|
-
se && se.d != null && (
|
|
3066
|
+
const se = a(Ie);
|
|
3067
|
+
se && se.d != null && (Ie = null);
|
|
3068
3068
|
}
|
|
3069
|
-
const be = a(
|
|
3070
|
-
if (gt != null) if (ce = U[gt], Ke = Q[gt] = new s.WriteCursor(), Bt)
|
|
3069
|
+
const be = a(Ie);
|
|
3070
|
+
if (gt != null) if (ce = U[gt], Ke = Q[gt] = new s.WriteCursor(), Bt) Ht && !St && Ke.write("r", !0);
|
|
3071
3071
|
else {
|
|
3072
3072
|
const se = X[gt] = Y++;
|
|
3073
3073
|
et.write("d", se);
|
|
3074
3074
|
}
|
|
3075
|
-
else if (
|
|
3075
|
+
else if ($e && $e.i !== void 0) ce = null;
|
|
3076
3076
|
else {
|
|
3077
3077
|
const se = a(ce);
|
|
3078
3078
|
se && se.p != null && (ce = null);
|
|
3079
3079
|
}
|
|
3080
3080
|
let ae;
|
|
3081
|
-
on ? (o(Fe === void 0), ae =
|
|
3082
|
-
const Ee = (ut == null ? !on ||
|
|
3081
|
+
on ? (o(Fe === void 0), ae = $e.i) : ae = Fe;
|
|
3082
|
+
const Ee = (ut == null ? !on || Ht || St : ae === void 0) ? null : et.getComponent();
|
|
3083
3083
|
if (ut != null) {
|
|
3084
3084
|
if (!(Fe !== void 0 || on)) {
|
|
3085
3085
|
const se = gt != null ? X[gt] : Y++;
|
|
3086
3086
|
ne[ut] = se, Ke.write("p", se);
|
|
3087
3087
|
}
|
|
3088
|
-
} else
|
|
3089
|
-
const ue = Bt ? null : W(
|
|
3088
|
+
} else St && (on || Fe !== void 0 || (mt.r, Ke.write("r", mt.r)));
|
|
3089
|
+
const ue = Bt ? null : W($e), re = W(be);
|
|
3090
3090
|
if ((ue || re) && (ue && ue.name, re && re.name), ue && re) {
|
|
3091
3091
|
o(ue === re);
|
|
3092
|
-
const se = w(
|
|
3092
|
+
const se = w($e), Ce = w(be), Ve = ue.compose(se, Ce);
|
|
3093
3093
|
C(et, ue, Ve), de.add(be);
|
|
3094
|
-
} else ue ? C(et, ue, w(
|
|
3094
|
+
} else ue ? C(et, ue, w($e)) : re && (C(et, re, w(be)), de.add(be));
|
|
3095
3095
|
const he = typeof ae == "object" && ae != null;
|
|
3096
|
-
let
|
|
3097
|
-
const Ze = s.advancer(
|
|
3096
|
+
let Se = !1, ve = 0, Ae = 0, ze = 0, We = 0, He = 0;
|
|
3097
|
+
const Ze = s.advancer(Ie, (se, Ce) => h(Ce) ? We - se - 1 : se - We, (se, Ce) => {
|
|
3098
3098
|
h(Ce) && We++;
|
|
3099
|
-
}), we = s.advancer(ce, (se, Ce) => c(Ce) ?
|
|
3100
|
-
c(Ce) &&
|
|
3099
|
+
}), we = s.advancer(ce, (se, Ce) => c(Ce) ? ve - se - 1 : se - ve, (se, Ce) => {
|
|
3100
|
+
c(Ce) && ve++;
|
|
3101
3101
|
});
|
|
3102
3102
|
if (s.eachChildOf(Le, ye, (se, Ce, Ve) => {
|
|
3103
3103
|
let rt, jt, an = se, bt = se, Jn = se;
|
|
@@ -3105,29 +3105,29 @@ function mg() {
|
|
|
3105
3105
|
let Xe = se + ze;
|
|
3106
3106
|
jt = Ze(Xe), bt = Xe + We;
|
|
3107
3107
|
let Be = se + Ae;
|
|
3108
|
-
rt = we(Be), h(a(jt)) && (rt = null), an = Be +
|
|
3108
|
+
rt = we(Be), h(a(jt)) && (rt = null), an = Be + ve, Jn = se + He, o(an >= 0, "p1PickKey is negative"), o(bt >= 0, "p2DropKey is negative");
|
|
3109
3109
|
const At = h(a(Ce)), Wt = c(a(Ve));
|
|
3110
|
-
(At || Wt && !Bt) &&
|
|
3110
|
+
(At || Wt && !Bt) && He--, At && Ae--, Wt && ze--;
|
|
3111
3111
|
} else rt = we(se), jt = Ze(se);
|
|
3112
3112
|
Ke.descend(an), et.descend(bt);
|
|
3113
3113
|
const In = he && !h(a(Ce)) ? ae[Jn] : void 0, Lt = K(rt, Ce, Ve, jt, In, Bt, et, Ke);
|
|
3114
3114
|
var xt, fe, Ue;
|
|
3115
|
-
he && !Bt ? In !== Lt && (
|
|
3115
|
+
he && !Bt ? In !== Lt && (Se || (ae = Array.isArray(ae) ? ae.slice() : Object.assign({}, ae), Se = !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 (
|
|
3117
|
+
else if (!Ht && !St && 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
3119
|
const Le = K.p;
|
|
3120
3120
|
if (Le != null) {
|
|
3121
3121
|
const ye = X[Le];
|
|
3122
3122
|
ye != null && ce.write("p", ye);
|
|
3123
|
-
const
|
|
3124
|
-
|
|
3123
|
+
const Ie = Q[Le];
|
|
3124
|
+
Ie && Ie.get(), Ie && ce.mergeTree(Ie.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
3127
|
const Le = K.d;
|
|
3128
3128
|
if (Le != null) {
|
|
3129
|
-
const
|
|
3130
|
-
|
|
3129
|
+
const Ie = ne[Le];
|
|
3130
|
+
Ie != null && ce.write("d", Ie);
|
|
3131
3131
|
const Fe = ee[Le];
|
|
3132
3132
|
Fe && ce.mergeTree(Fe.get());
|
|
3133
3133
|
} else K.i !== void 0 && ce.write("i", K.i);
|
|
@@ -3190,7 +3190,7 @@ function mg() {
|
|
|
3190
3190
|
}))), Y.get();
|
|
3191
3191
|
}
|
|
3192
3192
|
const A = (I, x) => I.some((Y) => typeof Y == "object" && (Array.isArray(Y) ? A(Y, x) : x(Y)));
|
|
3193
|
-
function
|
|
3193
|
+
function v(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;
|
|
@@ -3219,28 +3219,28 @@ function mg() {
|
|
|
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);
|
|
3222
|
-
let
|
|
3223
|
-
if (
|
|
3222
|
+
let Ie = W(K);
|
|
3223
|
+
if (Ie && Ie.makeInvertible) {
|
|
3224
3224
|
const Fe = w(K);
|
|
3225
|
-
C(ne,
|
|
3225
|
+
C(ne, Ie, Ie.makeInvertible(Fe, de), !0);
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
3228
|
let ce = 0, Le = 0;
|
|
3229
|
-
const ye = s.advancer(G, (
|
|
3229
|
+
const ye = s.advancer(G, (Ie, Fe) => c(Fe) ? ce - Ie - 1 : Ie - ce, (Ie, Fe) => {
|
|
3230
3230
|
c(Fe) && ce++;
|
|
3231
3231
|
});
|
|
3232
|
-
for (const
|
|
3233
|
-
const Fe =
|
|
3234
|
-
ne.descend(
|
|
3232
|
+
for (const Ie of X) if (typeof Ie == "number") {
|
|
3233
|
+
const Fe = Ie - Le, Ht = ye(Fe), et = Fe + ce, Ke = _(de, _e ? Fe : et);
|
|
3234
|
+
ne.descend(Ie), U(Ht, X, ne, Ke, _e), h(X.getComponent()) && Le++, ne.ascend();
|
|
3235
3235
|
} else {
|
|
3236
|
-
const Fe = _(de,
|
|
3237
|
-
ne.descend(
|
|
3236
|
+
const Fe = _(de, Ie);
|
|
3237
|
+
ne.descend(Ie), U(ye(Ie), X, ne, Fe, _e), ne.ascend();
|
|
3238
3238
|
}
|
|
3239
3239
|
ye.end();
|
|
3240
3240
|
})(Y.clone(), Y, z, x, !1)), z.get();
|
|
3241
3241
|
}
|
|
3242
3242
|
function N(I, x) {
|
|
3243
|
-
return T(
|
|
3243
|
+
return T(v(I, x));
|
|
3244
3244
|
}
|
|
3245
3245
|
const M = (I) => {
|
|
3246
3246
|
if (I == null) return null;
|
|
@@ -3260,45 +3260,45 @@ function mg() {
|
|
|
3260
3260
|
};
|
|
3261
3261
|
F(I), F(x);
|
|
3262
3262
|
let B = null;
|
|
3263
|
-
const j = [], Q = [], ee = [], U = [], G = [], X = [], ne = [], de = [], _e = [], K = [], ce = [], Le = [], ye = [],
|
|
3264
|
-
let
|
|
3265
|
-
const et = s.readCursor(I), Ke = s.readCursor(x),
|
|
3263
|
+
const j = [], Q = [], ee = [], U = [], G = [], X = [], ne = [], de = [], _e = [], K = [], ce = [], Le = [], ye = [], Ie = [], Fe = [];
|
|
3264
|
+
let Ht = 0;
|
|
3265
|
+
const et = s.readCursor(I), Ke = s.readCursor(x), $e = 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()));
|
|
3269
3269
|
const he = ae.getComponent();
|
|
3270
|
-
let
|
|
3271
|
-
he && (
|
|
3272
|
-
const
|
|
3273
|
-
for (const Ae of ae) be(ae,
|
|
3274
|
-
|
|
3270
|
+
let Se;
|
|
3271
|
+
he && (Se = he.p) != null && (G[Se] = Ee ? Ee.clone() : null, ee[Se] = ae.clone(), ue && (K[Se] = !0, _e[Se] = ue), re && re.p != null && (Ie[Se] = re.p));
|
|
3272
|
+
const ve = s.advancer(Ee);
|
|
3273
|
+
for (const Ae of ae) be(ae, ve(Ae), ue);
|
|
3274
|
+
ve.end();
|
|
3275
3275
|
})(Ke, et, null), (function be(ae, Ee, ue, re, he) {
|
|
3276
|
-
const
|
|
3277
|
-
let
|
|
3278
|
-
|
|
3276
|
+
const Se = ue.getComponent();
|
|
3277
|
+
let ve, Ae = !1;
|
|
3278
|
+
Se && ((ve = Se.d) != null ? (U[ve] = ue.clone(), re != null && (Fe[re] == null && (Fe[re] = []), Fe[re].push(ve)), K[ve], ae = G[ve] || null, Ee = ee[ve] || null, K[ve] ? (he && (ce[ve] = !0), he = _e[ve] || null) : !he || z !== 1 && Ie[ve] != null || B == null && (B = {
|
|
3279
3279
|
type: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
3280
3280
|
op1: e.removeOp(he.getPath()),
|
|
3281
3281
|
op2: e.moveOp(Ee.getPath(), ue.getPath())
|
|
3282
|
-
}), Ae = !0) :
|
|
3282
|
+
}), Ae = !0) : Se.i !== void 0 && (ae = Ee = null, Ae = !0, he && B == null && (B = {
|
|
3283
3283
|
type: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
3284
3284
|
op1: e.removeOp(he.getPath()),
|
|
3285
|
-
op2: e.insertOp(ue.getPath(),
|
|
3285
|
+
op2: e.insertOp(ue.getPath(), Se.i)
|
|
3286
3286
|
})));
|
|
3287
3287
|
const ze = a(ae);
|
|
3288
3288
|
ze && (ze.r !== void 0 ? he = ae.clone() : ze.p != null && (ze.p, re = ze.p, he = null));
|
|
3289
|
-
const We = W(
|
|
3289
|
+
const We = W(Se);
|
|
3290
3290
|
We && he && B == null && (B = {
|
|
3291
3291
|
type: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
3292
3292
|
op1: e.removeOp(he.getPath()),
|
|
3293
|
-
op2: e.editOp(ue.getPath(), We, w(
|
|
3293
|
+
op2: e.editOp(ue.getPath(), We, w(Se), !0)
|
|
3294
3294
|
});
|
|
3295
|
-
let
|
|
3296
|
-
const we = s.advancer(Ee, (Ce, Ve) => c(Ve) ?
|
|
3297
|
-
c(Ve) &&
|
|
3295
|
+
let He = 0, Ze = 0;
|
|
3296
|
+
const we = s.advancer(Ee, (Ce, Ve) => c(Ve) ? He - Ce - 1 : Ce - He, (Ce, Ve) => {
|
|
3297
|
+
c(Ve) && He++;
|
|
3298
3298
|
}), se = s.advancer(ae);
|
|
3299
3299
|
for (const Ce of ue) if (typeof Ce == "number") {
|
|
3300
3300
|
const Ve = Ce - Ze, rt = we(Ve);
|
|
3301
|
-
Ze += +be(se(Ve +
|
|
3301
|
+
Ze += +be(se(Ve + He), rt, ue, re, he);
|
|
3302
3302
|
} else {
|
|
3303
3303
|
const Ve = we(Ce);
|
|
3304
3304
|
be(se(Ce), Ve, ue, re, he);
|
|
@@ -3310,75 +3310,75 @@ function mg() {
|
|
|
3310
3310
|
};
|
|
3311
3311
|
ce.map((be) => !!be);
|
|
3312
3312
|
const mt = [];
|
|
3313
|
-
let
|
|
3313
|
+
let St = null;
|
|
3314
3314
|
(function be(ae, Ee, ue, re, he) {
|
|
3315
|
-
let
|
|
3316
|
-
const
|
|
3317
|
-
if (c(
|
|
3318
|
-
const we =
|
|
3319
|
-
we != null ? (ue = U[we], re = Le[we] = s.writeCursor(),
|
|
3315
|
+
let Se = !1;
|
|
3316
|
+
const ve = a(Ee);
|
|
3317
|
+
if (c(ve)) {
|
|
3318
|
+
const we = ve.p;
|
|
3319
|
+
we != null ? (ue = U[we], re = Le[we] = s.writeCursor(), Se = !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) {
|
|
3323
3323
|
const we = Ae.p;
|
|
3324
|
-
we != null ? (he && (de[we] = he), mt[we] = he || z === 1 &&
|
|
3324
|
+
we != null ? (he && (de[we] = he), mt[we] = he || z === 1 && Se ? null : re.getComponent(), j[we] = ae.clone(), ue && (ne[we] = ue.clone())) : Ae.r !== void 0 && (he || re.write("r", !0), (he || Se) && (St == null && (St = /* @__PURE__ */ new Set()), St.add(Ae)));
|
|
3325
3325
|
}
|
|
3326
3326
|
let ze = 0, We = 0;
|
|
3327
|
-
const
|
|
3327
|
+
const He = s.advancer(Ee, void 0, (we, se) => {
|
|
3328
3328
|
c(se) && ze++;
|
|
3329
3329
|
}), Ze = s.advancer(ue, (we, se) => h(se) ? ~(we - We) : we - We, (we, se) => {
|
|
3330
3330
|
h(se) && We++;
|
|
3331
3331
|
});
|
|
3332
3332
|
if (ae) for (const we of ae) if (typeof we == "string") {
|
|
3333
|
-
const se =
|
|
3333
|
+
const se = He(we), Ce = Ze(we);
|
|
3334
3334
|
re.descend(we), be(ae, se, Ce, re, he), re.ascend();
|
|
3335
3335
|
} else {
|
|
3336
|
-
const se =
|
|
3336
|
+
const se = He(we), Ce = we - ze, Ve = c(a(se)) ? null : Ze(Ce), rt = Ce + We;
|
|
3337
3337
|
o(rt >= 0), re.descend(rt), be(ae, se, Ve, re, he), re.ascend();
|
|
3338
3338
|
}
|
|
3339
|
-
|
|
3340
|
-
})(et, Ke, Ke.clone(),
|
|
3339
|
+
He.end(), Ze.end();
|
|
3340
|
+
})(et, Ke, Ke.clone(), $e, null), $e.reset();
|
|
3341
3341
|
let on = [];
|
|
3342
|
-
if ((function be(ae, Ee, ue, re, he,
|
|
3342
|
+
if ((function be(ae, Ee, ue, re, he, Se) {
|
|
3343
3343
|
o(Ee);
|
|
3344
|
-
const
|
|
3344
|
+
const ve = Ee.getComponent();
|
|
3345
3345
|
let Ae = a(re), ze = !1;
|
|
3346
3346
|
const We = (fe, Ue, Xe) => fe ? e.moveOp(fe.getPath(), Ue.getPath()) : e.insertOp(Ue.getPath(), Xe.i);
|
|
3347
|
-
if (h(
|
|
3348
|
-
const fe =
|
|
3347
|
+
if (h(ve)) {
|
|
3348
|
+
const fe = ve.d;
|
|
3349
3349
|
fe != null && (Q[fe] = Ee.clone());
|
|
3350
3350
|
const Ue = fe != null ? mt[fe] : null;
|
|
3351
3351
|
let Xe = !1;
|
|
3352
|
-
if (
|
|
3352
|
+
if (ve.i !== void 0 || fe != null && Ue) {
|
|
3353
3353
|
let Be;
|
|
3354
|
-
Ae && (Ae.i !== void 0 || (Be = Ae.d) != null && !K[Be]) && (Xe = Be != null ? fe != null && fe ===
|
|
3354
|
+
Ae && (Ae.i !== void 0 || (Be = Ae.d) != null && !K[Be]) && (Xe = Be != null ? fe != null && fe === Ie[Be] : n.default(Ae.i, ve.i), Xe || Be != null && z !== 1 && Ie[Be] != null || B == null && (B = {
|
|
3355
3355
|
type: i.ConflictType.DROP_COLLISION,
|
|
3356
|
-
op1: We(fe != null ? j[fe] : null, Ee,
|
|
3356
|
+
op1: We(fe != null ? j[fe] : null, Ee, ve),
|
|
3357
3357
|
op2: We(Be != null ? ee[Be] : null, re, Ae)
|
|
3358
|
-
})), Xe || (
|
|
3358
|
+
})), Xe || (Se ? B == null && (B = {
|
|
3359
3359
|
type: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
3360
|
-
op1: We(fe != null ? j[fe] : null, Ee,
|
|
3361
|
-
op2: e.removeOp(
|
|
3362
|
-
}) : (fe != null ? (on[
|
|
3360
|
+
op1: We(fe != null ? j[fe] : null, Ee, ve),
|
|
3361
|
+
op2: e.removeOp(Se.getPath())
|
|
3362
|
+
}) : (fe != null ? (on[Ht] = fe, he.write("d", Ue.p = Ht++)) : he.write("i", r.default(ve.i)), ze = !0));
|
|
3363
3363
|
} else if (fe != null && !Ue) {
|
|
3364
3364
|
const Be = de[fe];
|
|
3365
|
-
Be && (
|
|
3365
|
+
Be && (Se = Be.clone());
|
|
3366
3366
|
}
|
|
3367
|
-
fe != null ? (ae = j[fe], ue = X[fe], re = ne[fe]) :
|
|
3367
|
+
fe != null ? (ae = j[fe], ue = X[fe], re = ne[fe]) : ve.i !== void 0 && (ae = ue = null, Xe || (re = null));
|
|
3368
3368
|
} else c(a(ae)) && (ae = ue = re = null);
|
|
3369
|
-
const
|
|
3369
|
+
const He = a(ae), Ze = a(ue);
|
|
3370
3370
|
if (c(Ze)) {
|
|
3371
3371
|
const fe = Ze.p;
|
|
3372
|
-
Ze.r !== void 0 && (
|
|
3373
|
-
} else !h(
|
|
3372
|
+
Ze.r !== void 0 && (!He || He.r === void 0) || K[fe] ? (re = null, Se = ue.clone()) : fe != null && (re = U[fe], z !== 1 && Ie[fe] != null || ((he = ye[fe]) || (he = ye[fe] = s.writeCursor()), he.reset(), Se = null));
|
|
3373
|
+
} else !h(ve) && h(Ae) && (re = null);
|
|
3374
3374
|
Ae = re != null ? re.getComponent() : null;
|
|
3375
|
-
const we = W(
|
|
3375
|
+
const we = W(ve);
|
|
3376
3376
|
if (we) {
|
|
3377
|
-
const fe = w(
|
|
3378
|
-
if (
|
|
3377
|
+
const fe = w(ve);
|
|
3378
|
+
if (Se) B == null && (B = {
|
|
3379
3379
|
type: i.ConflictType.RM_UNEXPECTED_CONTENT,
|
|
3380
3380
|
op1: e.editOp(Ee.getPath(), we, fe, !0),
|
|
3381
|
-
op2: e.removeOp(
|
|
3381
|
+
op2: e.removeOp(Se.getPath())
|
|
3382
3382
|
});
|
|
3383
3383
|
else {
|
|
3384
3384
|
const Ue = W(Ae);
|
|
@@ -3408,7 +3408,7 @@ function mg() {
|
|
|
3408
3408
|
if (wn) {
|
|
3409
3409
|
se--;
|
|
3410
3410
|
const ln = yt.p;
|
|
3411
|
-
|
|
3411
|
+
Ie.includes(ln), yt.d, a(ye[yt.d]), c(a(ye[yt.d])), (yt.r === void 0 || St && St.has(yt)) && (ln == null || !mt[ln] || z !== 1 && Ie.includes(ln)) || jt--;
|
|
3412
3412
|
}
|
|
3413
3413
|
bt = ae.nextSibling();
|
|
3414
3414
|
}
|
|
@@ -3440,13 +3440,13 @@ function mg() {
|
|
|
3440
3440
|
}
|
|
3441
3441
|
if (ln) {
|
|
3442
3442
|
const Xt = wn.d;
|
|
3443
|
-
K[Xt],
|
|
3443
|
+
K[Xt], Ie[Xt], wn.i === void 0 && (K[Xt] || Ie[Xt] != null && z !== 1) ? (K[Xt] || Ie[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;
|
|
3449
|
-
o(oa >= 0, "trying to descend to a negative index"), he.descend(oa), Xe && (Ue = Wt = Mr = null, Ce++), be(Ue, Ee, Wt, Mr, he,
|
|
3449
|
+
o(oa >= 0, "trying to descend to a negative index"), he.descend(oa), Xe && (Ue = Wt = Mr = null, Ce++), be(Ue, Ee, Wt, Mr, he, Se) && an++, he.ascend();
|
|
3450
3450
|
} else {
|
|
3451
3451
|
let Ue;
|
|
3452
3452
|
for (; bt && (Ue = ae.getKey(), typeof Ue != "string" || !(Ue > fe || Ue === fe)); ) bt = ae.nextSibling();
|
|
@@ -3454,30 +3454,30 @@ function mg() {
|
|
|
3454
3454
|
let At;
|
|
3455
3455
|
for (; Lt && (At = re.getKey(), typeof At != "string" || !(At > fe || At === fe)); ) Lt = re.nextSibling();
|
|
3456
3456
|
const Wt = Lt && At === fe ? re : null;
|
|
3457
|
-
he.descend(fe), be(Xe, Ee, Be, Wt, he,
|
|
3457
|
+
he.descend(fe), be(Xe, Ee, Be, Wt, he, Se), he.ascend();
|
|
3458
3458
|
}
|
|
3459
3459
|
return In.end(), Jn && ae.ascend(), xt && re.ascend(), ze;
|
|
3460
|
-
})(et, et.clone(), Ke, Ke.clone(),
|
|
3460
|
+
})(et, et.clone(), Ke, Ke.clone(), $e, null), B) return {
|
|
3461
3461
|
ok: !1,
|
|
3462
3462
|
conflict: B
|
|
3463
3463
|
};
|
|
3464
|
-
|
|
3464
|
+
$e.reset();
|
|
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 || Le.length) && (gt(Ke,
|
|
3468
|
+
(K.length || Le.length) && (gt(Ke, $e, (be, ae, Ee) => {
|
|
3469
3469
|
K[be] && !ce[be] && Ee.write("r", !0), Le[be] && Ee.mergeTree(Le[be].get());
|
|
3470
|
-
}),
|
|
3470
|
+
}), $e.reset());
|
|
3471
3471
|
const ut = [], Bt = [];
|
|
3472
3472
|
if ((ye.length || K.length) && !B) {
|
|
3473
|
-
const be = s.readCursor(M(
|
|
3473
|
+
const be = s.readCursor(M($e.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
|
-
}), (function ae(Ee, ue, re, he,
|
|
3480
|
+
}), (function ae(Ee, ue, re, he, Se, ve) {
|
|
3481
3481
|
const Ae = a(ue);
|
|
3482
3482
|
if (Ae && c(Ae)) if (Ae.p != null) {
|
|
3483
3483
|
const se = Ae.p;
|
|
@@ -3492,36 +3492,36 @@ function mg() {
|
|
|
3492
3492
|
Ce && (Ce.get(), he.mergeTree(Ce.get()), re = s.readCursor(Ce.get()));
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
|
-
let We = 0,
|
|
3495
|
+
let We = 0, He = 0;
|
|
3496
3496
|
const Ze = s.advancer(ue, void 0, (se, Ce) => {
|
|
3497
3497
|
c(Ce) && We--;
|
|
3498
|
-
}), we = s.advancer(re, (se, Ce) => h(Ce) ? -(se -
|
|
3499
|
-
h(Ce) &&
|
|
3498
|
+
}), we = s.advancer(re, (se, Ce) => h(Ce) ? -(se - He) - 1 : se - He, (se, Ce) => {
|
|
3499
|
+
h(Ce) && He++;
|
|
3500
3500
|
});
|
|
3501
3501
|
for (const se of Ee) if (typeof se == "number") {
|
|
3502
|
-
const Ce = Ze(se), Ve = se + We, rt = we(Ve), jt = Ve +
|
|
3502
|
+
const Ce = Ze(se), Ve = se + We, rt = we(Ve), jt = Ve + He;
|
|
3503
3503
|
he.descend(jt), ae(Ee, Ce, rt, he), he.ascend();
|
|
3504
3504
|
} else he.descend(se), ae(Ee, Ze(se), we(se), he), he.ascend();
|
|
3505
3505
|
Ze.end(), we.end();
|
|
3506
|
-
})(Ke, be, be.clone(),
|
|
3506
|
+
})(Ke, be, be.clone(), $e), $e.reset(), B) return {
|
|
3507
3507
|
ok: !1,
|
|
3508
3508
|
conflict: B
|
|
3509
3509
|
};
|
|
3510
|
-
if (
|
|
3511
|
-
const ae = Bt.map((ue) => ue ? ue.get() : null), Ee = s.readCursor(M(
|
|
3512
|
-
if (gt(Ee,
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3510
|
+
if ($e.get(), Bt.length) {
|
|
3511
|
+
const ae = Bt.map((ue) => ue ? ue.get() : null), Ee = s.readCursor(M($e.get()));
|
|
3512
|
+
if (gt(Ee, $e, (ue, re, he) => {
|
|
3513
|
+
const Se = ae[ue];
|
|
3514
|
+
Se && (he.mergeTree(Se), ae[ue] = null);
|
|
3515
3515
|
}), ae.find((ue) => ue)) {
|
|
3516
3516
|
const ue = s.writeCursor(), re = s.writeCursor();
|
|
3517
|
-
let he = 0,
|
|
3518
|
-
ae.forEach((
|
|
3519
|
-
|
|
3517
|
+
let he = 0, Se = 0;
|
|
3518
|
+
ae.forEach((ve) => {
|
|
3519
|
+
ve != null && gt(s.readCursor(ve), null, (Ae) => {
|
|
3520
3520
|
const ze = on[Ae];
|
|
3521
3521
|
ue.writeMove(j[ze].getPath(), Q[ze].getPath(), he++);
|
|
3522
3522
|
const We = Fe[ze];
|
|
3523
|
-
We && We.forEach((
|
|
3524
|
-
K[
|
|
3523
|
+
We && We.forEach((He) => {
|
|
3524
|
+
K[He] || z !== 1 && Ie[He] != null || re.writeMove(ee[He].getPath(), U[He].getPath(), Se++);
|
|
3525
3525
|
});
|
|
3526
3526
|
});
|
|
3527
3527
|
}), B = {
|
|
@@ -3537,7 +3537,7 @@ function mg() {
|
|
|
3537
3537
|
conflict: B
|
|
3538
3538
|
} : {
|
|
3539
3539
|
ok: !0,
|
|
3540
|
-
result:
|
|
3540
|
+
result: $e.get()
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
3543
|
const P = (I) => {
|
|
@@ -3579,7 +3579,7 @@ function mg() {
|
|
|
3579
3579
|
const { conflict: Q } = j;
|
|
3580
3580
|
I(Q) || P(Q);
|
|
3581
3581
|
const [ee, U] = oe(Q, z);
|
|
3582
|
-
x = O(
|
|
3582
|
+
x = O(H(x), ee), Y = O(H(Y), U), B = O(B, U);
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
@@ -3611,7 +3611,7 @@ function gg() {
|
|
|
3611
3611
|
})(un)), un;
|
|
3612
3612
|
}
|
|
3613
3613
|
var at = gg();
|
|
3614
|
-
const _g = /* @__PURE__ */
|
|
3614
|
+
const _g = /* @__PURE__ */ vt(at), bR = /* @__PURE__ */ xc({
|
|
3615
3615
|
__proto__: null,
|
|
3616
3616
|
default: _g
|
|
3617
3617
|
}, [at]);
|
|
@@ -3720,7 +3720,7 @@ var wg = Object.getOwnPropertyDescriptor, Og = (e, t, n, r) => {
|
|
|
3720
3720
|
const Ni = "command.logExecution";
|
|
3721
3721
|
var xs = /* @__PURE__ */ ((e) => (e[e.COMMAND = 0] = "COMMAND", e[e.OPERATION = 1] = "OPERATION", e[e.MUTATION = 2] = "MUTATION", e))(xs || {});
|
|
3722
3722
|
const Ds = lt("univer.core.command-service");
|
|
3723
|
-
class
|
|
3723
|
+
class vg {
|
|
3724
3724
|
constructor() {
|
|
3725
3725
|
p(this, "_commands", /* @__PURE__ */ new Map());
|
|
3726
3726
|
p(this, "_commandTypes", /* @__PURE__ */ new Map());
|
|
@@ -3745,7 +3745,7 @@ class Sg {
|
|
|
3745
3745
|
return this._commandTypes.get(t);
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
3748
|
-
const
|
|
3748
|
+
const Sg = {
|
|
3749
3749
|
id: "nil",
|
|
3750
3750
|
type: 0,
|
|
3751
3751
|
handler: () => !0
|
|
@@ -3760,7 +3760,7 @@ let Ti = class extends Ge {
|
|
|
3760
3760
|
p(this, "_multiCommandDisposables", /* @__PURE__ */ new Map());
|
|
3761
3761
|
p(this, "_commandExecutingLevel", 0);
|
|
3762
3762
|
p(this, "_commandExecutionStack", []);
|
|
3763
|
-
this._injector = t, this._logService = n, this._configService = r, this._commandRegistry = new
|
|
3763
|
+
this._injector = t, this._logService = n, this._configService = r, this._commandRegistry = new vg(), this.registerCommand(Sg);
|
|
3764
3764
|
}
|
|
3765
3765
|
dispose() {
|
|
3766
3766
|
super.dispose(), this._commandExecutedListeners.length = 0, this._beforeCommandExecutionListeners.length = 0, this._collabMutationListeners.length = 0;
|
|
@@ -3853,7 +3853,7 @@ let Ti = class extends Ge {
|
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
3855
|
_pushCommandExecutionStack(t) {
|
|
3856
|
-
return this._commandExecutionStack.push(t), je(() =>
|
|
3856
|
+
return this._commandExecutionStack.push(t), je(() => Ss(this._commandExecutionStack, t));
|
|
3857
3857
|
}
|
|
3858
3858
|
_registerMultiCommand(t) {
|
|
3859
3859
|
const n = this._commandRegistry.getCommand(t.id);
|
|
@@ -3976,7 +3976,7 @@ function yR(e = 0) {
|
|
|
3976
3976
|
let n = [];
|
|
3977
3977
|
return t.pipe(
|
|
3978
3978
|
aa((r) => n.push(r)),
|
|
3979
|
-
|
|
3979
|
+
vc(e),
|
|
3980
3980
|
ro(() => n),
|
|
3981
3981
|
aa(() => n = [])
|
|
3982
3982
|
);
|
|
@@ -3993,7 +3993,7 @@ function TR(e, t) {
|
|
|
3993
3993
|
const MR = (e) => new Promise((t) => {
|
|
3994
3994
|
Pl(
|
|
3995
3995
|
Ag(e.onCommandExecuted.bind(e)).pipe(Nc(([n]) => n.type === xs.MUTATION)),
|
|
3996
|
-
|
|
3996
|
+
Sc(300)
|
|
3997
3997
|
).pipe(Tc(16), Mc()).subscribe(() => {
|
|
3998
3998
|
t();
|
|
3999
3999
|
});
|
|
@@ -4058,12 +4058,12 @@ function xR(e) {
|
|
|
4058
4058
|
const t = new Blob([e], { type: "text/javascript" });
|
|
4059
4059
|
return window.URL.createObjectURL(t);
|
|
4060
4060
|
}
|
|
4061
|
-
const
|
|
4061
|
+
const $r = 2, Tg = 1;
|
|
4062
4062
|
function DR(e, t) {
|
|
4063
4063
|
if (t == null || e == null)
|
|
4064
4064
|
return !0;
|
|
4065
4065
|
const { left: n = 0, top: r = 0, height: s = 0, width: i = 0, angle: o = 0 } = t, { left: a = 0, top: l = 0, height: u = 0, width: c = 0, angle: h = 0 } = e, d = c, f = u, g = i, _ = s;
|
|
4066
|
-
return Math.abs(a - n) >
|
|
4066
|
+
return Math.abs(a - n) > $r || Math.abs(l - r) > $r || Math.abs(d - g) > $r || Math.abs(f - _) > $r || Math.abs(h - o) > Tg;
|
|
4067
4067
|
}
|
|
4068
4068
|
function ni(e, t, n) {
|
|
4069
4069
|
const { dataStream: r, textRuns: s = [] } = e;
|
|
@@ -4351,7 +4351,7 @@ const Jt = class Jt extends Wn {
|
|
|
4351
4351
|
};
|
|
4352
4352
|
p(Jt, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
4353
4353
|
let Li = Jt;
|
|
4354
|
-
const PR = "rgb(", kR = "rgba(",
|
|
4354
|
+
const PR = "rgb(", kR = "rgba(", $a = {
|
|
4355
4355
|
aliceblue: [240, 248, 255],
|
|
4356
4356
|
antiquewhite: [250, 235, 215],
|
|
4357
4357
|
aqua: [0, 255, 255],
|
|
@@ -4559,10 +4559,10 @@ class Tt {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
toHexString(t) {
|
|
4561
4561
|
const { r: n, g: r, b: s, a: i = 1 } = this.toRgb(), o = i < 1, a = [
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4562
|
+
Hr(Math.round(n).toString(16)),
|
|
4563
|
+
Hr(Math.round(r).toString(16)),
|
|
4564
|
+
Hr(Math.round(s).toString(16)),
|
|
4565
|
+
Hr(Math.round(i * 255).toString(16))
|
|
4566
4566
|
];
|
|
4567
4567
|
return t && a[0][0] === a[0][1] && a[1][0] === a[1][1] && a[2][0] === a[2][1] && a[3][0] === a[3][1] ? o ? `#${a[0][0]}${a[1][0]}${a[2][0]}${a[3][0]}` : `#${a[0][0]}${a[1][0]}${a[2][0]}` : o ? `#${a[0]}${a[1]}${a[2]}${a[3]}` : `#${a[0]}${a[1]}${a[2]}`;
|
|
4568
4568
|
}
|
|
@@ -4570,7 +4570,7 @@ class Tt {
|
|
|
4570
4570
|
return Bg(this.toRgb());
|
|
4571
4571
|
}
|
|
4572
4572
|
toHsl() {
|
|
4573
|
-
return
|
|
4573
|
+
return Hg(this.toRgb());
|
|
4574
4574
|
}
|
|
4575
4575
|
lighten(t = 10) {
|
|
4576
4576
|
const n = this.toHsl();
|
|
@@ -4615,7 +4615,7 @@ class Tt {
|
|
|
4615
4615
|
};
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
|
-
const
|
|
4618
|
+
const Hr = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03928 ? e / 12.92 : ((e + 0.055) / 1.055) ** 2.4), pu = (e) => {
|
|
4619
4619
|
if (Wg(e)) {
|
|
4620
4620
|
if ("r" in e) {
|
|
4621
4621
|
const r = {
|
|
@@ -4641,8 +4641,8 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4641
4641
|
return e.a !== void 0 && (n.a = e.a), n;
|
|
4642
4642
|
}
|
|
4643
4643
|
const t = e.trim().toLowerCase();
|
|
4644
|
-
if (
|
|
4645
|
-
const n =
|
|
4644
|
+
if ($a[t]) {
|
|
4645
|
+
const n = $a[t], r = {
|
|
4646
4646
|
r: Math.round(n[0]),
|
|
4647
4647
|
g: Math.round(n[1]),
|
|
4648
4648
|
b: Math.round(n[2])
|
|
@@ -4711,7 +4711,7 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4711
4711
|
}, kg = (e) => {
|
|
4712
4712
|
const t = pu(e);
|
|
4713
4713
|
if (t != null)
|
|
4714
|
-
return "r" in t ? t : "l" in t ? Fg(t) :
|
|
4714
|
+
return "r" in t ? t : "l" in t ? Fg(t) : $g(t);
|
|
4715
4715
|
}, si = (e, t, n) => (n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), Fg = (e) => {
|
|
4716
4716
|
let { h: t, s: n, l: r } = e;
|
|
4717
4717
|
t /= 360, n /= 100, r /= 100;
|
|
@@ -4728,7 +4728,7 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4728
4728
|
b: Math.round(o * 255)
|
|
4729
4729
|
};
|
|
4730
4730
|
return e.a !== void 0 && (a.a = e.a), a;
|
|
4731
|
-
},
|
|
4731
|
+
}, $g = (e) => {
|
|
4732
4732
|
let { h: t, s: n, v: r } = e;
|
|
4733
4733
|
t = t / 360 * 6, n /= 100, r /= 100;
|
|
4734
4734
|
const s = Math.floor(t), i = t - s, o = r * (1 - n), a = r * (1 - i * n), l = r * (1 - (1 - i) * n), u = s % 6, c = [r, a, o, o, l, r][u], h = [l, r, r, a, o, o][u], d = [o, o, l, r, r, a][u], f = {
|
|
@@ -4737,7 +4737,7 @@ const $r = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4737
4737
|
b: d * 255
|
|
4738
4738
|
};
|
|
4739
4739
|
return e.a !== void 0 && (f.a = e.a), f;
|
|
4740
|
-
},
|
|
4740
|
+
}, Hg = (e) => {
|
|
4741
4741
|
let { r: t, g: n, b: r } = e;
|
|
4742
4742
|
t /= 255, n /= 255, r /= 255;
|
|
4743
4743
|
const s = Math.max(t, n, r), i = Math.min(t, n, r), o = (s + i) / 2;
|
|
@@ -4798,14 +4798,14 @@ function FR(e) {
|
|
|
4798
4798
|
const t = /^#(?:[0]{3}|[0]{6})\b/, n = /^rgb\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*\)$/, r = /^rgba\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*,\s*(1|1\.0*|0?\.\d+)\)$/, s = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
|
|
4799
4799
|
return !!(t.test(e) || n.test(e) || r.test(e) || s.test(e) || i.test(e));
|
|
4800
4800
|
}
|
|
4801
|
-
function
|
|
4801
|
+
function $R(e) {
|
|
4802
4802
|
const t = /^#(?:[Ff]{3}|[Ff]{6})\b/, n = /^rgb\s*\(\s*255\s*,\s*255\s*,\s*255\s*\)$/, r = /^rgba\s*\(\s*255\s*,\s*255\s*,\s*255\s*,\s*(1|1\.0*|0?\.\d+)\)$/, s = /^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*\)$/, i = /^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;
|
|
4803
4803
|
return !!(t.test(e) || n.test(e) || r.test(e) || s.test(e) || i.test(e));
|
|
4804
4804
|
}
|
|
4805
4805
|
function Yg(e) {
|
|
4806
4806
|
return e && (e.s !== void 0 || e.p !== void 0 || e.v !== void 0 || e.t !== void 0 || e.f !== void 0 || e.si !== void 0 || e.custom !== void 0);
|
|
4807
4807
|
}
|
|
4808
|
-
function
|
|
4808
|
+
function HR(e) {
|
|
4809
4809
|
if (e.t !== void 0)
|
|
4810
4810
|
return e.t;
|
|
4811
4811
|
if (typeof e.v == "string")
|
|
@@ -4898,7 +4898,7 @@ function zR(e, t, n) {
|
|
|
4898
4898
|
s[i + 1] = s[i];
|
|
4899
4899
|
s[e] = t;
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function Ha(e, t, n) {
|
|
4902
4902
|
const r = Object.keys(n).reduce((s, i) => Math.max(s, Number.parseInt(i)), 0) + 1;
|
|
4903
4903
|
for (let s = e; s < r; s++)
|
|
4904
4904
|
s < e + t ? delete n[s] : n[s] !== void 0 && (n[s - t] = n[s], delete n[s]);
|
|
@@ -5093,11 +5093,11 @@ class ft {
|
|
|
5093
5093
|
}
|
|
5094
5094
|
}
|
|
5095
5095
|
removeRows(t, n) {
|
|
5096
|
-
|
|
5096
|
+
Ha(t, n, this._matrix);
|
|
5097
5097
|
}
|
|
5098
5098
|
removeColumns(t, n) {
|
|
5099
5099
|
this.forEach((r, s) => {
|
|
5100
|
-
s &&
|
|
5100
|
+
s && Ha(t, n, s);
|
|
5101
5101
|
});
|
|
5102
5102
|
}
|
|
5103
5103
|
/**
|
|
@@ -5338,12 +5338,12 @@ function qg(e) {
|
|
|
5338
5338
|
startColumn: _,
|
|
5339
5339
|
endRow: R,
|
|
5340
5340
|
endColumn: b,
|
|
5341
|
-
startY:
|
|
5341
|
+
startY: $,
|
|
5342
5342
|
endY: k,
|
|
5343
5343
|
startX: W,
|
|
5344
5344
|
endX: w
|
|
5345
5345
|
} = i;
|
|
5346
|
-
c = g, h = _, d = R, f = b, o =
|
|
5346
|
+
c = g, h = _, d = R, f = b, o = $, a = k, l = W, u = w;
|
|
5347
5347
|
}
|
|
5348
5348
|
return s && (o = i.startY, a = i.endY, l = i.startX, u = i.endX, d = i.endRow, f = i.endColumn), {
|
|
5349
5349
|
startRow: c,
|
|
@@ -5612,19 +5612,19 @@ function t_() {
|
|
|
5612
5612
|
(function(n, r) {
|
|
5613
5613
|
e.exports = r();
|
|
5614
5614
|
})(e_, (function() {
|
|
5615
|
-
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", l = "hour", u = "day", c = "week", h = "month", d = "quarter", f = "year", g = "date", _ = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
5616
|
-
var A = ["th", "st", "nd", "rd"],
|
|
5617
|
-
return "[" + T + (A[(
|
|
5618
|
-
} }, k = function(T, A,
|
|
5615
|
+
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", l = "hour", u = "day", c = "week", h = "month", d = "quarter", f = "year", g = "date", _ = "Invalid Date", R = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
5616
|
+
var A = ["th", "st", "nd", "rd"], v = T % 100;
|
|
5617
|
+
return "[" + T + (A[(v - 20) % 10] || A[v] || A[0]) + "]";
|
|
5618
|
+
} }, k = function(T, A, v) {
|
|
5619
5619
|
var N = String(T);
|
|
5620
|
-
return !N || N.length >= A ? T : "" + Array(A + 1 - N.length).join(
|
|
5620
|
+
return !N || N.length >= A ? T : "" + Array(A + 1 - N.length).join(v) + T;
|
|
5621
5621
|
}, W = { s: k, z: function(T) {
|
|
5622
|
-
var A = -T.utcOffset(),
|
|
5622
|
+
var A = -T.utcOffset(), v = Math.abs(A), N = Math.floor(v / 60), M = v % 60;
|
|
5623
5623
|
return (A <= 0 ? "+" : "-") + k(N, 2, "0") + ":" + k(M, 2, "0");
|
|
5624
|
-
}, m: function T(A,
|
|
5625
|
-
if (A.date() <
|
|
5626
|
-
var N = 12 * (
|
|
5627
|
-
return +(-(N + (
|
|
5624
|
+
}, m: function T(A, v) {
|
|
5625
|
+
if (A.date() < v.date()) return -T(v, A);
|
|
5626
|
+
var N = 12 * (v.year() - A.year()) + (v.month() - A.month()), M = A.clone().add(N, h), L = v - M < 0, P = A.clone().add(N + (L ? -1 : 1), h);
|
|
5627
|
+
return +(-(N + (v - 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) {
|
|
@@ -5632,15 +5632,15 @@ function t_() {
|
|
|
5632
5632
|
}, u: function(T) {
|
|
5633
5633
|
return T === void 0;
|
|
5634
5634
|
} }, w = "en", C = {};
|
|
5635
|
-
C[w] =
|
|
5636
|
-
var
|
|
5637
|
-
return T instanceof D || !(!T || !T[
|
|
5638
|
-
}, F = function T(A,
|
|
5635
|
+
C[w] = $;
|
|
5636
|
+
var S = "$isDayjsObject", y = function(T) {
|
|
5637
|
+
return T instanceof D || !(!T || !T[S]);
|
|
5638
|
+
}, F = function T(A, v, N) {
|
|
5639
5639
|
var M;
|
|
5640
5640
|
if (!A) return w;
|
|
5641
5641
|
if (typeof A == "string") {
|
|
5642
5642
|
var L = A.toLowerCase();
|
|
5643
|
-
C[L] && (M = L),
|
|
5643
|
+
C[L] && (M = L), v && (C[L] = v, M = L);
|
|
5644
5644
|
var P = A.split("-");
|
|
5645
5645
|
if (!M && P.length > 1) return T(P[0]);
|
|
5646
5646
|
} else {
|
|
@@ -5648,20 +5648,20 @@ function t_() {
|
|
|
5648
5648
|
C[q] = A, M = q;
|
|
5649
5649
|
}
|
|
5650
5650
|
return !N && M && (w = M), M || !N && w;
|
|
5651
|
-
},
|
|
5651
|
+
}, H = function(T, A) {
|
|
5652
5652
|
if (y(T)) return T.clone();
|
|
5653
|
-
var
|
|
5654
|
-
return
|
|
5653
|
+
var v = typeof A == "object" ? A : {};
|
|
5654
|
+
return v.date = T, v.args = arguments, new D(v);
|
|
5655
5655
|
}, m = W;
|
|
5656
5656
|
m.l = F, m.i = y, m.w = function(T, A) {
|
|
5657
|
-
return
|
|
5657
|
+
return H(T, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
5658
5658
|
};
|
|
5659
5659
|
var D = (function() {
|
|
5660
|
-
function T(
|
|
5661
|
-
this.$L = F(
|
|
5660
|
+
function T(v) {
|
|
5661
|
+
this.$L = F(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[S] = !0;
|
|
5662
5662
|
}
|
|
5663
5663
|
var A = T.prototype;
|
|
5664
|
-
return A.parse = function(
|
|
5664
|
+
return A.parse = function(v) {
|
|
5665
5665
|
this.$d = (function(N) {
|
|
5666
5666
|
var M = N.date, L = N.utc;
|
|
5667
5667
|
if (M === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -5675,29 +5675,29 @@ function t_() {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
5677
5677
|
return new Date(M);
|
|
5678
|
-
})(
|
|
5678
|
+
})(v), this.init();
|
|
5679
5679
|
}, A.init = function() {
|
|
5680
|
-
var
|
|
5681
|
-
this.$y =
|
|
5680
|
+
var v = this.$d;
|
|
5681
|
+
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
5682
5682
|
}, A.$utils = function() {
|
|
5683
5683
|
return m;
|
|
5684
5684
|
}, A.isValid = function() {
|
|
5685
5685
|
return this.$d.toString() !== _;
|
|
5686
|
-
}, A.isSame = function(
|
|
5687
|
-
var M =
|
|
5686
|
+
}, A.isSame = function(v, N) {
|
|
5687
|
+
var M = H(v);
|
|
5688
5688
|
return this.startOf(N) <= M && M <= this.endOf(N);
|
|
5689
|
-
}, A.isAfter = function(
|
|
5690
|
-
return
|
|
5691
|
-
}, A.isBefore = function(
|
|
5692
|
-
return this.endOf(N) <
|
|
5693
|
-
}, A.$g = function(
|
|
5694
|
-
return m.u(
|
|
5689
|
+
}, A.isAfter = function(v, N) {
|
|
5690
|
+
return H(v) < this.startOf(N);
|
|
5691
|
+
}, A.isBefore = function(v, N) {
|
|
5692
|
+
return this.endOf(N) < H(v);
|
|
5693
|
+
}, A.$g = function(v, N, M) {
|
|
5694
|
+
return m.u(v) ? this[N] : this.set(M, v);
|
|
5695
5695
|
}, A.unix = function() {
|
|
5696
5696
|
return Math.floor(this.valueOf() / 1e3);
|
|
5697
5697
|
}, A.valueOf = function() {
|
|
5698
5698
|
return this.$d.getTime();
|
|
5699
|
-
}, A.startOf = function(
|
|
5700
|
-
var M = this, L = !!m.u(N) || N, P = m.p(
|
|
5699
|
+
}, A.startOf = function(v, N) {
|
|
5700
|
+
var M = this, L = !!m.u(N) || N, P = m.p(v), 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
5702
|
return L ? Q : Q.endOf(u);
|
|
5703
5703
|
}, V = function(B, j) {
|
|
@@ -5723,38 +5723,38 @@ function t_() {
|
|
|
5723
5723
|
default:
|
|
5724
5724
|
return this.clone();
|
|
5725
5725
|
}
|
|
5726
|
-
}, A.endOf = function(
|
|
5727
|
-
return this.startOf(
|
|
5728
|
-
}, A.$set = function(
|
|
5729
|
-
var M, L = m.p(
|
|
5726
|
+
}, A.endOf = function(v) {
|
|
5727
|
+
return this.startOf(v, !1);
|
|
5728
|
+
}, A.$set = function(v, N) {
|
|
5729
|
+
var M, L = m.p(v), 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
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);
|
|
5734
5734
|
return this.init(), this;
|
|
5735
|
-
}, A.set = function(
|
|
5736
|
-
return this.clone().$set(
|
|
5737
|
-
}, A.get = function(
|
|
5738
|
-
return this[m.p(
|
|
5739
|
-
}, A.add = function(
|
|
5735
|
+
}, A.set = function(v, N) {
|
|
5736
|
+
return this.clone().$set(v, N);
|
|
5737
|
+
}, A.get = function(v) {
|
|
5738
|
+
return this[m.p(v)]();
|
|
5739
|
+
}, A.add = function(v, N) {
|
|
5740
5740
|
var M, L = this;
|
|
5741
|
-
|
|
5741
|
+
v = Number(v);
|
|
5742
5742
|
var P = m.p(N), q = function(le) {
|
|
5743
|
-
var I =
|
|
5744
|
-
return m.w(I.date(I.date() + Math.round(le *
|
|
5743
|
+
var I = H(L);
|
|
5744
|
+
return m.w(I.date(I.date() + Math.round(le * v)), L);
|
|
5745
5745
|
};
|
|
5746
|
-
if (P === h) return this.set(h, this.$M +
|
|
5747
|
-
if (P === f) return this.set(f, this.$y +
|
|
5746
|
+
if (P === h) return this.set(h, this.$M + v);
|
|
5747
|
+
if (P === f) return this.set(f, this.$y + v);
|
|
5748
5748
|
if (P === u) return q(1);
|
|
5749
5749
|
if (P === c) return q(7);
|
|
5750
|
-
var V = (M = {}, M[a] = r, M[l] = s, M[o] = n, M)[P] || 1, oe = this.$d.getTime() +
|
|
5750
|
+
var V = (M = {}, M[a] = r, M[l] = s, M[o] = n, M)[P] || 1, oe = this.$d.getTime() + v * V;
|
|
5751
5751
|
return m.w(oe, this);
|
|
5752
|
-
}, A.subtract = function(
|
|
5753
|
-
return this.add(-1 *
|
|
5754
|
-
}, A.format = function(
|
|
5752
|
+
}, A.subtract = function(v, N) {
|
|
5753
|
+
return this.add(-1 * v, N);
|
|
5754
|
+
}, A.format = function(v) {
|
|
5755
5755
|
var N = this, M = this.$locale();
|
|
5756
5756
|
if (!this.isValid()) return M.invalidDate || _;
|
|
5757
|
-
var L =
|
|
5757
|
+
var L = v || "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
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");
|
|
@@ -5819,8 +5819,8 @@ function t_() {
|
|
|
5819
5819
|
}));
|
|
5820
5820
|
}, A.utcOffset = function() {
|
|
5821
5821
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
5822
|
-
}, A.diff = function(
|
|
5823
|
-
var L, P = this, q = m.p(N), V =
|
|
5822
|
+
}, A.diff = function(v, N, M) {
|
|
5823
|
+
var L, P = this, q = m.p(N), V = H(v), oe = (V.utcOffset() - this.utcOffset()) * r, le = this - V, I = function() {
|
|
5824
5824
|
return m.m(P, V);
|
|
5825
5825
|
};
|
|
5826
5826
|
switch (q) {
|
|
@@ -5856,9 +5856,9 @@ function t_() {
|
|
|
5856
5856
|
return this.endOf(h).$D;
|
|
5857
5857
|
}, A.$locale = function() {
|
|
5858
5858
|
return C[this.$L];
|
|
5859
|
-
}, A.locale = function(
|
|
5860
|
-
if (!
|
|
5861
|
-
var M = this.clone(), L = F(
|
|
5859
|
+
}, A.locale = function(v, N) {
|
|
5860
|
+
if (!v) return this.$L;
|
|
5861
|
+
var M = this.clone(), L = F(v, N, !0);
|
|
5862
5862
|
return L && (M.$L = L), M;
|
|
5863
5863
|
}, A.clone = function() {
|
|
5864
5864
|
return m.w(this.$d, this);
|
|
@@ -5872,20 +5872,20 @@ function t_() {
|
|
|
5872
5872
|
return this.$d.toUTCString();
|
|
5873
5873
|
}, T;
|
|
5874
5874
|
})(), O = D.prototype;
|
|
5875
|
-
return
|
|
5875
|
+
return H.prototype = O, [["$ms", i], ["$s", o], ["$m", a], ["$H", l], ["$W", u], ["$M", h], ["$y", f], ["$D", g]].forEach((function(T) {
|
|
5876
5876
|
O[T[1]] = function(A) {
|
|
5877
5877
|
return this.$g(A, T[0], T[1]);
|
|
5878
5878
|
};
|
|
5879
|
-
})),
|
|
5880
|
-
return T.$i || (T(A, D,
|
|
5881
|
-
},
|
|
5882
|
-
return
|
|
5883
|
-
},
|
|
5879
|
+
})), H.extend = function(T, A) {
|
|
5880
|
+
return T.$i || (T(A, D, H), T.$i = !0), H;
|
|
5881
|
+
}, H.locale = F, H.isDayjs = y, H.unix = function(T) {
|
|
5882
|
+
return H(1e3 * T);
|
|
5883
|
+
}, H.en = C[w], H.Ls = C, H.p = {}, H;
|
|
5884
5884
|
}));
|
|
5885
5885
|
})(ts)), ts.exports;
|
|
5886
5886
|
}
|
|
5887
5887
|
var n_ = t_();
|
|
5888
|
-
const rn = /* @__PURE__ */
|
|
5888
|
+
const rn = /* @__PURE__ */ vt(n_);
|
|
5889
5889
|
var ns = { exports: {} }, r_ = ns.exports, za;
|
|
5890
5890
|
function s_() {
|
|
5891
5891
|
return za || (za = 1, (function(e, t) {
|
|
@@ -5937,7 +5937,7 @@ function s_() {
|
|
|
5937
5937
|
})(ns)), ns.exports;
|
|
5938
5938
|
}
|
|
5939
5939
|
var i_ = s_();
|
|
5940
|
-
const o_ = /* @__PURE__ */
|
|
5940
|
+
const o_ = /* @__PURE__ */ vt(i_);
|
|
5941
5941
|
var rs = { exports: {} }, a_ = rs.exports, Va;
|
|
5942
5942
|
function l_() {
|
|
5943
5943
|
return Va || (Va = 1, (function(e, t) {
|
|
@@ -5953,21 +5953,21 @@ function l_() {
|
|
|
5953
5953
|
}, h = [/[+-]\d\d:?(\d\d)?|Z/, function(R) {
|
|
5954
5954
|
(this.zone || (this.zone = {})).offset = (function(b) {
|
|
5955
5955
|
if (!b || b === "Z") return 0;
|
|
5956
|
-
var
|
|
5957
|
-
return k === 0 ? 0 :
|
|
5956
|
+
var $ = b.match(/([+-]|\d\d)/g), k = 60 * $[1] + (+$[2] || 0);
|
|
5957
|
+
return k === 0 ? 0 : $[0] === "+" ? -k : k;
|
|
5958
5958
|
})(R);
|
|
5959
5959
|
}], d = function(R) {
|
|
5960
5960
|
var b = l[R];
|
|
5961
5961
|
return b && (b.indexOf ? b : b.s.concat(b.f));
|
|
5962
5962
|
}, f = function(R, b) {
|
|
5963
|
-
var
|
|
5963
|
+
var $, k = l.meridiem;
|
|
5964
5964
|
if (k) {
|
|
5965
5965
|
for (var W = 1; W <= 24; W += 1) if (R.indexOf(k(W, 0, b)) > -1) {
|
|
5966
|
-
|
|
5966
|
+
$ = W > 12;
|
|
5967
5967
|
break;
|
|
5968
5968
|
}
|
|
5969
|
-
} else
|
|
5970
|
-
return
|
|
5969
|
+
} else $ = R === (b ? "pm" : "PM");
|
|
5970
|
+
return $;
|
|
5971
5971
|
}, g = { A: [a, function(R) {
|
|
5972
5972
|
this.afternoon = f(R, !1);
|
|
5973
5973
|
}], a: [a, function(R) {
|
|
@@ -5981,14 +5981,14 @@ function l_() {
|
|
|
5981
5981
|
}], SSS: [/\d{3}/, function(R) {
|
|
5982
5982
|
this.milliseconds = +R;
|
|
5983
5983
|
}], s: [o, c("seconds")], ss: [o, c("seconds")], m: [o, c("minutes")], mm: [o, c("minutes")], H: [o, c("hours")], h: [o, c("hours")], HH: [o, c("hours")], hh: [o, c("hours")], D: [o, c("day")], DD: [i, c("day")], Do: [a, function(R) {
|
|
5984
|
-
var b = l.ordinal,
|
|
5985
|
-
if (this.day =
|
|
5984
|
+
var b = l.ordinal, $ = R.match(/\d+/);
|
|
5985
|
+
if (this.day = $[0], b) for (var k = 1; k <= 31; k += 1) b(k).replace(/\[|\]/g, "") === R && (this.day = k);
|
|
5986
5986
|
}], w: [o, c("week")], ww: [i, c("week")], M: [o, c("month")], MM: [i, c("month")], MMM: [a, function(R) {
|
|
5987
|
-
var b = d("months"),
|
|
5987
|
+
var b = d("months"), $ = (d("monthsShort") || b.map((function(k) {
|
|
5988
5988
|
return k.slice(0, 3);
|
|
5989
5989
|
}))).indexOf(R) + 1;
|
|
5990
|
-
if (
|
|
5991
|
-
this.month =
|
|
5990
|
+
if ($ < 1) throw new Error();
|
|
5991
|
+
this.month = $ % 12 || $;
|
|
5992
5992
|
}], MMMM: [a, function(R) {
|
|
5993
5993
|
var b = d("months").indexOf(R) + 1;
|
|
5994
5994
|
if (b < 1) throw new Error();
|
|
@@ -5997,24 +5997,24 @@ function l_() {
|
|
|
5997
5997
|
this.year = u(R);
|
|
5998
5998
|
}], YYYY: [/\d{4}/, c("year")], Z: h, ZZ: h };
|
|
5999
5999
|
function _(R) {
|
|
6000
|
-
var b,
|
|
6001
|
-
b = R,
|
|
6002
|
-
for (var k = (R = b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(
|
|
6000
|
+
var b, $;
|
|
6001
|
+
b = R, $ = l && l.formats;
|
|
6002
|
+
for (var k = (R = b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(H, m, D) {
|
|
6003
6003
|
var O = D && D.toUpperCase();
|
|
6004
|
-
return m ||
|
|
6005
|
-
return A ||
|
|
6004
|
+
return m || $[D] || n[D] || $[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(T, A, v) {
|
|
6005
|
+
return A || v.slice(1);
|
|
6006
6006
|
}));
|
|
6007
6007
|
}))).match(r), W = k.length, w = 0; w < W; w += 1) {
|
|
6008
|
-
var C = k[w],
|
|
6008
|
+
var C = k[w], S = g[C], y = S && S[0], F = S && S[1];
|
|
6009
6009
|
k[w] = F ? { regex: y, parser: F } : C.replace(/^\[|\]$/g, "");
|
|
6010
6010
|
}
|
|
6011
|
-
return function(
|
|
6011
|
+
return function(H) {
|
|
6012
6012
|
for (var m = {}, D = 0, O = 0; D < W; D += 1) {
|
|
6013
6013
|
var T = k[D];
|
|
6014
6014
|
if (typeof T == "string") O += T.length;
|
|
6015
6015
|
else {
|
|
6016
|
-
var A = T.regex,
|
|
6017
|
-
|
|
6016
|
+
var A = T.regex, v = T.parser, N = H.slice(O), M = A.exec(N)[0];
|
|
6017
|
+
v.call(m, M), H = H.replace(M, "");
|
|
6018
6018
|
}
|
|
6019
6019
|
}
|
|
6020
6020
|
return (function(L) {
|
|
@@ -6026,16 +6026,16 @@ function l_() {
|
|
|
6026
6026
|
})(m), m;
|
|
6027
6027
|
};
|
|
6028
6028
|
}
|
|
6029
|
-
return function(R, b,
|
|
6030
|
-
|
|
6029
|
+
return function(R, b, $) {
|
|
6030
|
+
$.p.customParseFormat = !0, R && R.parseTwoDigitYear && (u = R.parseTwoDigitYear);
|
|
6031
6031
|
var k = b.prototype, W = k.parse;
|
|
6032
6032
|
k.parse = function(w) {
|
|
6033
|
-
var C = w.date,
|
|
6034
|
-
this.$u =
|
|
6033
|
+
var C = w.date, S = w.utc, y = w.args;
|
|
6034
|
+
this.$u = S;
|
|
6035
6035
|
var F = y[1];
|
|
6036
6036
|
if (typeof F == "string") {
|
|
6037
|
-
var
|
|
6038
|
-
m && (O = y[2]), l = this.$locale(),
|
|
6037
|
+
var H = y[2] === !0, m = y[3] === !0, D = H || m, O = y[2];
|
|
6038
|
+
m && (O = y[2]), l = this.$locale(), !H && O && (l = $.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
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;
|
|
@@ -6045,12 +6045,12 @@ function l_() {
|
|
|
6045
6045
|
} catch {
|
|
6046
6046
|
return /* @__PURE__ */ new Date("");
|
|
6047
6047
|
}
|
|
6048
|
-
})(C, F,
|
|
6048
|
+
})(C, F, S, $), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), D && C != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
6049
6049
|
} else if (F instanceof Array) for (var T = F.length, A = 1; A <= T; A += 1) {
|
|
6050
6050
|
y[1] = F[A - 1];
|
|
6051
|
-
var
|
|
6052
|
-
if (
|
|
6053
|
-
this.$d =
|
|
6051
|
+
var v = $.apply(this, y);
|
|
6052
|
+
if (v.isValid()) {
|
|
6053
|
+
this.$d = v.$d, this.$L = v.$L, this.init();
|
|
6054
6054
|
break;
|
|
6055
6055
|
}
|
|
6056
6056
|
A === T && (this.$d = /* @__PURE__ */ new Date(""));
|
|
@@ -6062,7 +6062,7 @@ function l_() {
|
|
|
6062
6062
|
})(rs)), rs.exports;
|
|
6063
6063
|
}
|
|
6064
6064
|
var u_ = l_();
|
|
6065
|
-
const c_ = /* @__PURE__ */
|
|
6065
|
+
const c_ = /* @__PURE__ */ vt(u_);
|
|
6066
6066
|
var ss = { exports: {} }, h_ = ss.exports, Ga;
|
|
6067
6067
|
function d_() {
|
|
6068
6068
|
return Ga || (Ga = 1, (function(e, t) {
|
|
@@ -6073,7 +6073,7 @@ function d_() {
|
|
|
6073
6073
|
var i = r.prototype, o = function(h) {
|
|
6074
6074
|
return h && (h.indexOf ? h : h.s);
|
|
6075
6075
|
}, a = function(h, d, f, g, _) {
|
|
6076
|
-
var R = h.name ? h : h.$locale(), b = o(R[d]),
|
|
6076
|
+
var R = h.name ? h : h.$locale(), b = o(R[d]), $ = o(R[f]), k = b || $.map((function(w) {
|
|
6077
6077
|
return w.slice(0, g);
|
|
6078
6078
|
}));
|
|
6079
6079
|
if (!_) return k;
|
|
@@ -6142,7 +6142,7 @@ function d_() {
|
|
|
6142
6142
|
})(ss)), ss.exports;
|
|
6143
6143
|
}
|
|
6144
6144
|
var f_ = d_();
|
|
6145
|
-
const m_ = /* @__PURE__ */
|
|
6145
|
+
const m_ = /* @__PURE__ */ vt(f_);
|
|
6146
6146
|
var is = { exports: {} }, g_ = is.exports, Ka;
|
|
6147
6147
|
function __() {
|
|
6148
6148
|
return Ka || (Ka = 1, (function(e, t) {
|
|
@@ -6157,8 +6157,8 @@ function __() {
|
|
|
6157
6157
|
var u = this.$locale().formats, c = (function(h, d) {
|
|
6158
6158
|
return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(f, g, _) {
|
|
6159
6159
|
var R = _ && _.toUpperCase();
|
|
6160
|
-
return g || d[_] || n[_] || d[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(b,
|
|
6161
|
-
return
|
|
6160
|
+
return g || d[_] || n[_] || d[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(b, $, k) {
|
|
6161
|
+
return $ || k.slice(1);
|
|
6162
6162
|
}));
|
|
6163
6163
|
}));
|
|
6164
6164
|
})(l, u === void 0 ? {} : u);
|
|
@@ -6169,7 +6169,7 @@ function __() {
|
|
|
6169
6169
|
})(is)), is.exports;
|
|
6170
6170
|
}
|
|
6171
6171
|
var p_ = __();
|
|
6172
|
-
const E_ = /* @__PURE__ */
|
|
6172
|
+
const E_ = /* @__PURE__ */ vt(p_);
|
|
6173
6173
|
var os = { exports: {} }, C_ = os.exports, Xa;
|
|
6174
6174
|
function R_() {
|
|
6175
6175
|
return Xa || (Xa = 1, (function(e, t) {
|
|
@@ -6207,15 +6207,15 @@ function R_() {
|
|
|
6207
6207
|
w === void 0 && (w = "");
|
|
6208
6208
|
var C = w.match(r);
|
|
6209
6209
|
if (!C) return null;
|
|
6210
|
-
var
|
|
6210
|
+
var S = ("" + C[0]).match(s) || ["-", 0, 0], y = S[0], F = 60 * +S[1] + +S[2];
|
|
6211
6211
|
return F === 0 ? 0 : y === "+" ? F : -F;
|
|
6212
6212
|
})(_), _ === null)) return this;
|
|
6213
|
-
var
|
|
6214
|
-
if (
|
|
6213
|
+
var $ = Math.abs(_) <= 16 ? 60 * _ : _;
|
|
6214
|
+
if ($ === 0) return this.utc(R);
|
|
6215
6215
|
var k = this.clone();
|
|
6216
|
-
if (R) return k.$offset =
|
|
6216
|
+
if (R) return k.$offset = $, k.$u = !1, k;
|
|
6217
6217
|
var W = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
6218
|
-
return (k = this.local().add(
|
|
6218
|
+
return (k = this.local().add($ + W, n)).$offset = $, k.$x.$localOffset = W, k;
|
|
6219
6219
|
};
|
|
6220
6220
|
var d = l.format;
|
|
6221
6221
|
l.format = function(_) {
|
|
@@ -6238,17 +6238,17 @@ function R_() {
|
|
|
6238
6238
|
var g = l.diff;
|
|
6239
6239
|
l.diff = function(_, R, b) {
|
|
6240
6240
|
if (_ && this.$u === _.$u) return g.call(this, _, R, b);
|
|
6241
|
-
var
|
|
6242
|
-
return g.call(
|
|
6241
|
+
var $ = this.local(), k = a(_).local();
|
|
6242
|
+
return g.call($, k, R, b);
|
|
6243
6243
|
};
|
|
6244
6244
|
};
|
|
6245
6245
|
}));
|
|
6246
6246
|
})(os)), os.exports;
|
|
6247
6247
|
}
|
|
6248
6248
|
var I_ = R_();
|
|
6249
|
-
const w_ = /* @__PURE__ */
|
|
6249
|
+
const w_ = /* @__PURE__ */ vt(I_);
|
|
6250
6250
|
var as = { exports: {} }, O_ = as.exports, qa;
|
|
6251
|
-
function
|
|
6251
|
+
function v_() {
|
|
6252
6252
|
return qa || (qa = 1, (function(e, t) {
|
|
6253
6253
|
(function(n, r) {
|
|
6254
6254
|
e.exports = r();
|
|
@@ -6262,8 +6262,8 @@ function S_() {
|
|
|
6262
6262
|
}));
|
|
6263
6263
|
})(as)), as.exports;
|
|
6264
6264
|
}
|
|
6265
|
-
var
|
|
6266
|
-
const b_ = /* @__PURE__ */
|
|
6265
|
+
var S_ = v_();
|
|
6266
|
+
const b_ = /* @__PURE__ */ vt(S_);
|
|
6267
6267
|
var ls = { exports: {} }, A_ = ls.exports, Ja;
|
|
6268
6268
|
function y_() {
|
|
6269
6269
|
return Ja || (Ja = 1, (function(e, t) {
|
|
@@ -6290,7 +6290,7 @@ function y_() {
|
|
|
6290
6290
|
})(ls)), ls.exports;
|
|
6291
6291
|
}
|
|
6292
6292
|
var N_ = y_();
|
|
6293
|
-
const T_ = /* @__PURE__ */
|
|
6293
|
+
const T_ = /* @__PURE__ */ vt(N_);
|
|
6294
6294
|
var us = { exports: {} }, M_ = us.exports, Za;
|
|
6295
6295
|
function L_() {
|
|
6296
6296
|
return Za || (Za = 1, (function(e, t) {
|
|
@@ -6307,7 +6307,7 @@ function L_() {
|
|
|
6307
6307
|
})(us)), us.exports;
|
|
6308
6308
|
}
|
|
6309
6309
|
var x_ = L_();
|
|
6310
|
-
const D_ = /* @__PURE__ */
|
|
6310
|
+
const D_ = /* @__PURE__ */ vt(x_);
|
|
6311
6311
|
rn.extend(c_);
|
|
6312
6312
|
rn.extend(o_);
|
|
6313
6313
|
rn.extend(b_);
|
|
@@ -6371,7 +6371,7 @@ function l1(...e) {
|
|
|
6371
6371
|
let t;
|
|
6372
6372
|
return e.length === 1 && Array.isArray(e[0]) ? t = e[0] : t = e, ho({}, ...t);
|
|
6373
6373
|
}
|
|
6374
|
-
const Me = Symbol("newer"), qe = Symbol("older");
|
|
6374
|
+
const Me = /* @__PURE__ */ Symbol("newer"), qe = /* @__PURE__ */ Symbol("older");
|
|
6375
6375
|
class F_ {
|
|
6376
6376
|
constructor(t) {
|
|
6377
6377
|
p(this, "entry");
|
|
@@ -6385,7 +6385,7 @@ class F_ {
|
|
|
6385
6385
|
return t ? (this.entry = t[Me], { done: !1, value: t.key }) : { done: !0, value: void 0 };
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
class
|
|
6388
|
+
class $_ {
|
|
6389
6389
|
constructor(t) {
|
|
6390
6390
|
p(this, "entry");
|
|
6391
6391
|
this.entry = t;
|
|
@@ -6398,7 +6398,7 @@ class H_ {
|
|
|
6398
6398
|
return t ? (this.entry = t[Me], { done: !1, value: t.value }) : { done: !0, value: void 0 };
|
|
6399
6399
|
}
|
|
6400
6400
|
}
|
|
6401
|
-
class
|
|
6401
|
+
class H_ {
|
|
6402
6402
|
constructor(t) {
|
|
6403
6403
|
p(this, "entry");
|
|
6404
6404
|
this.entry = t;
|
|
@@ -6456,7 +6456,7 @@ class _s {
|
|
|
6456
6456
|
}
|
|
6457
6457
|
onShift(t) {
|
|
6458
6458
|
if (this._onShiftListeners.indexOf(t) === -1)
|
|
6459
|
-
return this._onShiftListeners.push(t), je(() =>
|
|
6459
|
+
return this._onShiftListeners.push(t), je(() => Ss(this._onShiftListeners, t));
|
|
6460
6460
|
throw new Error("[LRUMap]: the listener has been registered!");
|
|
6461
6461
|
}
|
|
6462
6462
|
_initialize(t, n) {
|
|
@@ -6509,13 +6509,13 @@ class _s {
|
|
|
6509
6509
|
return new F_(this.oldest);
|
|
6510
6510
|
}
|
|
6511
6511
|
values() {
|
|
6512
|
-
return new
|
|
6512
|
+
return new $_(this.oldest);
|
|
6513
6513
|
}
|
|
6514
6514
|
entries() {
|
|
6515
6515
|
return this[Symbol.iterator]();
|
|
6516
6516
|
}
|
|
6517
6517
|
[Symbol.iterator]() {
|
|
6518
|
-
return new
|
|
6518
|
+
return new H_(this.oldest);
|
|
6519
6519
|
}
|
|
6520
6520
|
forEach(t, n) {
|
|
6521
6521
|
typeof n != "object" && (n = this);
|
|
@@ -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, 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",
|
|
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", vo = "slash", vr = "group", ps = "scale", So = "comma", bo = "break", Us = "text", Ao = "plus", yo = "minus", Es = "point", No = "space", To = "percent", Ps = "digit", Mo = "calendar", Sr = "error", Lo = "datetime", xo = "duration", Do = "condition", Uo = "dbnum", Po = "natnum", ko = "locale", Fo = "color", Cu = "modifier", $o = "ampm", Ho = "escaped", Bo = "string", jo = "skip", Wo = "exp", Yo = "fill", zo = "paren", ks = "char", V_ = [
|
|
6558
6558
|
"#000",
|
|
6559
6559
|
"#FFF",
|
|
6560
6560
|
"#F00",
|
|
@@ -7226,15 +7226,15 @@ te(De({
|
|
|
7226
7226
|
ddd: E("niedz.;pon.;wt.;śr.;czw.;pt.;sob."),
|
|
7227
7227
|
bool: E("PRAWDA;FAŁSZ")
|
|
7228
7228
|
}, 3, -1), "pl");
|
|
7229
|
-
const
|
|
7229
|
+
const vu = {
|
|
7230
7230
|
group: ".",
|
|
7231
7231
|
decimal: ",",
|
|
7232
7232
|
mmmm: E("janeiro;fevereiro;março;abril;maio;junho;julho;agosto;setembro;outubro;novembro;dezembro"),
|
|
7233
7233
|
dddd: E("domingo;segunda-feira;terça-feira;quarta-feira;quinta-feira;sexta-feira;sábado"),
|
|
7234
7234
|
bool: E("VERDADEIRO;FALSO")
|
|
7235
7235
|
};
|
|
7236
|
-
te(De(
|
|
7237
|
-
te(De(
|
|
7236
|
+
te(De(vu, 13, 13), "pt");
|
|
7237
|
+
te(De(vu, 13, 13), "pt_BR");
|
|
7238
7238
|
te({
|
|
7239
7239
|
decimal: ",",
|
|
7240
7240
|
nan: "не число",
|
|
@@ -7251,7 +7251,7 @@ te(De({
|
|
|
7251
7251
|
mmmm: E("januára;februára;marca;apríla;mája;júna;júla;augusta;septembra;októbra;novembra;decembra"),
|
|
7252
7252
|
dddd: E("nedeľa;pondelok;utorok;streda;štvrtok;piatok;sobota")
|
|
7253
7253
|
}, 3, 2), "sk");
|
|
7254
|
-
const
|
|
7254
|
+
const $t = {
|
|
7255
7255
|
group: ".",
|
|
7256
7256
|
decimal: ",",
|
|
7257
7257
|
ampm: E("a. m.;p. m."),
|
|
@@ -7261,16 +7261,16 @@ const Ht = {
|
|
|
7261
7261
|
ddd: E("dom;lun;mar;mié;jue;vie;sáb"),
|
|
7262
7262
|
bool: E("VERDADERO;FALSO")
|
|
7263
7263
|
}, K_ = E("ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"), qo = E("ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.");
|
|
7264
|
-
te({
|
|
7265
|
-
te({
|
|
7266
|
-
te({
|
|
7267
|
-
te({
|
|
7268
|
-
te({
|
|
7269
|
-
te({
|
|
7270
|
-
te({
|
|
7271
|
-
te({
|
|
7272
|
-
te({
|
|
7273
|
-
te({
|
|
7264
|
+
te({ ...$t }, "es");
|
|
7265
|
+
te({ ...$t }, "es_AR");
|
|
7266
|
+
te({ ...$t }, "es_BO");
|
|
7267
|
+
te({ ...$t }, "es_CL");
|
|
7268
|
+
te({ ...$t }, "es_CO");
|
|
7269
|
+
te({ ...$t }, "es_EC");
|
|
7270
|
+
te({ ...$t, mmm: K_, ampm: E("a.m.;p.m.") }, "es_MX");
|
|
7271
|
+
te({ ...$t, mmm: qo }, "es_PY");
|
|
7272
|
+
te({ ...$t, mmm: qo }, "es_UY");
|
|
7273
|
+
te({ ...$t, mmm: qo, mmmm: E("enero;febrero;marzo;abril;mayo;junio;julio;agosto;setiembre;octubre;noviembre;diciembre") }, "es_VE");
|
|
7274
7274
|
te({
|
|
7275
7275
|
decimal: ",",
|
|
7276
7276
|
ampm: E("fm;em"),
|
|
@@ -7526,7 +7526,7 @@ te({
|
|
|
7526
7526
|
ddd: E("रवि;सोम;मंगल;बुध;गुरु;शुक्र;शनि"),
|
|
7527
7527
|
ampm: E("am;pm")
|
|
7528
7528
|
}, "hi");
|
|
7529
|
-
const
|
|
7529
|
+
const Su = {
|
|
7530
7530
|
// Overflow error string
|
|
7531
7531
|
overflow: "######",
|
|
7532
7532
|
// dateErrorThrow needs to be off! [prev in locale]
|
|
@@ -7777,62 +7777,62 @@ function Zo(e, t = {}) {
|
|
|
7777
7777
|
let i = "", o = "", a = 1, l = "", u = !1, c = !1, h = !1, d = !1, f = !1, g = null, _ = !1, R = 0;
|
|
7778
7778
|
const b = [ai, Cr, Rr, "+", "%", "(", "-"].concat(Pi);
|
|
7779
7779
|
for (; b.includes(e[R]); ) {
|
|
7780
|
-
const
|
|
7781
|
-
if (
|
|
7780
|
+
const S = e[R];
|
|
7781
|
+
if (S === "-") {
|
|
7782
7782
|
if (u || c)
|
|
7783
7783
|
return null;
|
|
7784
7784
|
u = !0, a = -1;
|
|
7785
|
-
} else if (ki.test(
|
|
7785
|
+
} else if (ki.test(S)) {
|
|
7786
7786
|
if (f)
|
|
7787
7787
|
return null;
|
|
7788
|
-
f = !0, g =
|
|
7789
|
-
} else if (
|
|
7788
|
+
f = !0, g = S;
|
|
7789
|
+
} else if (S === "(") {
|
|
7790
7790
|
if (c || u)
|
|
7791
7791
|
return null;
|
|
7792
7792
|
c = !0, a = -1;
|
|
7793
|
-
} else if (
|
|
7793
|
+
} else if (S === "%") {
|
|
7794
7794
|
if (d)
|
|
7795
7795
|
return null;
|
|
7796
7796
|
d = !0;
|
|
7797
7797
|
}
|
|
7798
7798
|
R++;
|
|
7799
7799
|
}
|
|
7800
|
-
let
|
|
7800
|
+
let $ = !1, k;
|
|
7801
7801
|
if (e[R] === r || li(e[R]))
|
|
7802
7802
|
for (; R < e.length; ) {
|
|
7803
|
-
const
|
|
7804
|
-
if (!k && s.includes(
|
|
7805
|
-
k =
|
|
7806
|
-
else if (!(k && k ===
|
|
7807
|
-
if (
|
|
7803
|
+
const S = e[R];
|
|
7804
|
+
if (!k && s.includes(S))
|
|
7805
|
+
k = S;
|
|
7806
|
+
else if (!(k && k === S)) if (S === r) {
|
|
7807
|
+
if ($)
|
|
7808
7808
|
break;
|
|
7809
|
-
i += ".",
|
|
7810
|
-
} else if (li(
|
|
7811
|
-
i +=
|
|
7809
|
+
i += ".", $ = !0;
|
|
7810
|
+
} else if (li(S))
|
|
7811
|
+
i += S;
|
|
7812
7812
|
else
|
|
7813
7813
|
break;
|
|
7814
7814
|
R++;
|
|
7815
7815
|
}
|
|
7816
7816
|
if (e[R] === "e" || e[R] === "E") {
|
|
7817
7817
|
o += e[R], R++, (e[R] === "+" || e[R] === "-") && (o += e[R], R++);
|
|
7818
|
-
const
|
|
7818
|
+
const S = R;
|
|
7819
7819
|
for (; li(e[R]); )
|
|
7820
7820
|
o += e[R], R++;
|
|
7821
|
-
if (
|
|
7821
|
+
if (S === R)
|
|
7822
7822
|
return null;
|
|
7823
7823
|
}
|
|
7824
7824
|
const W = [ai, Cr, Rr, "%", "$", ")"].concat(Pi);
|
|
7825
7825
|
for (; W.includes(e[R]); ) {
|
|
7826
|
-
const
|
|
7827
|
-
if (ki.test(
|
|
7826
|
+
const S = e[R];
|
|
7827
|
+
if (ki.test(S)) {
|
|
7828
7828
|
if (f)
|
|
7829
7829
|
return null;
|
|
7830
|
-
f = !0, g =
|
|
7831
|
-
} else if (
|
|
7830
|
+
f = !0, g = S, _ = !0;
|
|
7831
|
+
} else if (S === ")") {
|
|
7832
7832
|
if (h || !c)
|
|
7833
7833
|
return null;
|
|
7834
7834
|
h = !0;
|
|
7835
|
-
} else if (
|
|
7835
|
+
} else if (S === "%") {
|
|
7836
7836
|
if (d)
|
|
7837
7837
|
return null;
|
|
7838
7838
|
d = !0;
|
|
@@ -7853,8 +7853,8 @@ function Zo(e, t = {}) {
|
|
|
7853
7853
|
return null;
|
|
7854
7854
|
l = i.includes(".") ? "0.00%" : "0%", w *= 0.01;
|
|
7855
7855
|
} else if (f) {
|
|
7856
|
-
const
|
|
7857
|
-
_ ? l =
|
|
7856
|
+
const S = i.includes(".") ? "#,##0.00" : "#,##0";
|
|
7857
|
+
_ ? l = S + g : l = g + S;
|
|
7858
7858
|
} else k && (l = i.includes(".") ? "#,##0.00" : "#,##0");
|
|
7859
7859
|
const C = { v: w * a };
|
|
7860
7860
|
return l && (C.z = l), C;
|
|
@@ -8049,116 +8049,116 @@ function mr(e) {
|
|
|
8049
8049
|
const i = [];
|
|
8050
8050
|
let o, a = !1, l = -1, u = !1, c = "", h = !1;
|
|
8051
8051
|
for (; ++l < e.length && !u; ) {
|
|
8052
|
-
const C = e[l],
|
|
8053
|
-
if (c += C.raw,
|
|
8052
|
+
const C = e[l], S = C.type || Sr;
|
|
8053
|
+
if (c += C.raw, S === Io)
|
|
8054
8054
|
n.general = !0, Ye(C, t);
|
|
8055
8055
|
else if (sl(C, r)) {
|
|
8056
8056
|
const y = n[r + "_pattern"];
|
|
8057
|
-
sl(o, r) || (o == null ? void 0 : o.type) ===
|
|
8058
|
-
} else if (
|
|
8057
|
+
sl(o, r) || (o == null ? void 0 : o.type) === vr ? (y.push((y.pop() || "") + C.value), s.num += C.value) : (y.push(C.value), s = { type: r, num: C.value }, Ye(s, t));
|
|
8058
|
+
} else if (S === zo)
|
|
8059
8059
|
C.value === "(" && (n.parens = !0), Ye(C.value, t);
|
|
8060
|
-
else if (
|
|
8060
|
+
else if (S === Ps)
|
|
8061
8061
|
Ye(C.value, t);
|
|
8062
|
-
else if (
|
|
8062
|
+
else if (S === vo)
|
|
8063
8063
|
if (h = !0, n[r + "_pattern"].length) {
|
|
8064
8064
|
if (!s)
|
|
8065
8065
|
throw new SyntaxError("Format pattern is missing a numerator");
|
|
8066
8066
|
n.fractions = !0, n.num_pattern.push(n[r + "_pattern"].pop()), s.type = "num", r = "den", Ye({ type: "div" }, t);
|
|
8067
8067
|
} else
|
|
8068
8068
|
Ye(C.value, t);
|
|
8069
|
-
else if (
|
|
8069
|
+
else if (S === So)
|
|
8070
8070
|
Ye(",", t);
|
|
8071
|
-
else if (
|
|
8071
|
+
else if (S === ps)
|
|
8072
8072
|
n.scale = 1e-3 ** C.raw.length;
|
|
8073
|
-
else if (
|
|
8073
|
+
else if (S === vr) {
|
|
8074
8074
|
if (r === "int" && (n.grouping = !0), r === "den")
|
|
8075
8075
|
throw new SyntaxError("Cannot group denominator digits");
|
|
8076
|
-
} else if (
|
|
8076
|
+
} else if (S === No)
|
|
8077
8077
|
Ye(C, t);
|
|
8078
|
-
else if (
|
|
8078
|
+
else if (S === bo) {
|
|
8079
8079
|
u = !0;
|
|
8080
8080
|
break;
|
|
8081
|
-
} else if (
|
|
8081
|
+
} else if (S === Us)
|
|
8082
8082
|
n.text = !0, Ye(C, t);
|
|
8083
|
-
else if (
|
|
8083
|
+
else if (S === Ao || S === yo)
|
|
8084
8084
|
Ye(C, t);
|
|
8085
|
-
else if (
|
|
8086
|
-
const y = C.value.toLowerCase(), F = y[0],
|
|
8087
|
-
F === "h" ? (
|
|
8088
|
-
} else if (n.date &&
|
|
8085
|
+
else if (S === xo) {
|
|
8086
|
+
const y = C.value.toLowerCase(), F = y[0], H = { type: "", size: 0, date: 1, pad: y.length };
|
|
8087
|
+
F === "h" ? (H.size = hr, H.type = "hour-elap") : F === "m" ? (H.size = dr, H.type = "min-elap") : (H.size = fr, H.type = "sec-elap"), n.date = n.date | H.size, i.push(H), Ye(H, t);
|
|
8088
|
+
} else if (n.date && S === Es && ((k = e[l + 1]) == null ? void 0 : k.type) === kn) {
|
|
8089
8089
|
let y = 1;
|
|
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
|
|
8094
|
-
n.date = n.date |
|
|
8093
|
+
const H = [fr, xi, Di, Ui][y];
|
|
8094
|
+
n.date = n.date | H, n.date_eval = !0, n.sec_decimals = Math.max(n.sec_decimals, y), Ye({
|
|
8095
8095
|
type: "subsec",
|
|
8096
|
-
size:
|
|
8096
|
+
size: H,
|
|
8097
8097
|
decimals: y,
|
|
8098
8098
|
date: 1
|
|
8099
8099
|
}, t);
|
|
8100
|
-
} else if (
|
|
8100
|
+
} else if (S === Mo)
|
|
8101
8101
|
a || (C.value === "B2" || C.value === "b2" ? n.date_system = Pn : n.date_system = el);
|
|
8102
|
-
else if (
|
|
8103
|
-
const y = { type: "", size: 0, date: 1 }, F = C.value.toLowerCase(),
|
|
8102
|
+
else if (S === Lo) {
|
|
8103
|
+
const y = { type: "", size: 0, date: 1 }, F = C.value.toLowerCase(), H = F[0];
|
|
8104
8104
|
if (F === "y" || F === "yy")
|
|
8105
8105
|
y.size = ur, y.type = "year-short";
|
|
8106
|
-
else if (
|
|
8106
|
+
else if (H === "y" || H === "e")
|
|
8107
8107
|
y.size = ur, y.type = "year";
|
|
8108
8108
|
else if (F === "b" || F === "bb")
|
|
8109
8109
|
y.size = ur, y.type = "b-year-short";
|
|
8110
|
-
else if (
|
|
8110
|
+
else if (H === "b")
|
|
8111
8111
|
y.size = ur, y.type = "b-year";
|
|
8112
8112
|
else if (F === "d" || F === "dd")
|
|
8113
8113
|
y.size = cs, y.type = "day", y.pad = /dd/.test(F);
|
|
8114
8114
|
else if (F === "ddd" || F === "aaa")
|
|
8115
8115
|
y.size = cs, y.type = "weekday-short";
|
|
8116
|
-
else if (
|
|
8116
|
+
else if (H === "d" || H === "a")
|
|
8117
8117
|
y.size = cs, y.type = "weekday";
|
|
8118
|
-
else if (
|
|
8118
|
+
else if (H === "h")
|
|
8119
8119
|
y.size = hr, y.type = "hour", y.pad = /hh/i.test(F);
|
|
8120
|
-
else if (
|
|
8120
|
+
else if (H === "m") {
|
|
8121
8121
|
F.length === 3 ? (y.size = cr, y.type = "monthname-short") : F.length === 5 ? (y.size = cr, y.type = "monthname-single") : F.length >= 4 && (y.size = cr, y.type = "monthname");
|
|
8122
8122
|
const m = i[i.length - 1];
|
|
8123
8123
|
!y.type && m && !m.used && m.size & (hr | fr) && (m.used = !0, y.size = dr, y.type = "min", y.pad = /mm/.test(F)), y.type || (y.size = cr, y.type = "month", y.pad = /mm/.test(F), y.indeterminate = !0);
|
|
8124
|
-
} else if (
|
|
8124
|
+
} else if (H === "s") {
|
|
8125
8125
|
y.size = fr, y.type = "sec", y.pad = /ss/.test(F);
|
|
8126
8126
|
const m = i[i.length - 1];
|
|
8127
8127
|
m && m.size & dr ? y.used = !0 : m && m.indeterminate && (delete m.indeterminate, m.size = dr, m.type = "min", y.used = !0);
|
|
8128
8128
|
}
|
|
8129
8129
|
n.date = n.date | y.size, n.date_eval = !0, i.push(y), Ye(y, t);
|
|
8130
|
-
} else if (
|
|
8130
|
+
} else if (S === $o)
|
|
8131
8131
|
n.clock = 12, n.date = n.date | hr, n.date_eval = !0, C.short = C.value === "A/P", Ye(C, t);
|
|
8132
|
-
else if (
|
|
8132
|
+
else if (S === Bo || S === Ho || S === ks)
|
|
8133
8133
|
Ye(C.value, t);
|
|
8134
|
-
else if (
|
|
8134
|
+
else if (S === Do)
|
|
8135
8135
|
n.condition = [
|
|
8136
8136
|
C.value[0],
|
|
8137
8137
|
// operator
|
|
8138
8138
|
parseFloat(C.value[1])
|
|
8139
8139
|
// operand
|
|
8140
8140
|
];
|
|
8141
|
-
else if (
|
|
8142
|
-
const y = C.value.split("-"), F = y.length < 2 ? "" : y.slice(1).join("-"),
|
|
8143
|
-
|
|
8141
|
+
else if (S === ko) {
|
|
8142
|
+
const y = C.value.split("-"), F = y.length < 2 ? "" : y.slice(1).join("-"), H = y[0];
|
|
8143
|
+
H && Ye(H, t);
|
|
8144
8144
|
const m = Go(F);
|
|
8145
8145
|
m && (n.locale = m);
|
|
8146
8146
|
const D = parseInt(F, 16);
|
|
8147
8147
|
isFinite(D) && D & 16711680 && (D >> 16 & 255) === 6 && (n.date_system = Pn), a = !0;
|
|
8148
|
-
} else if (
|
|
8148
|
+
} else if (S === Fo) {
|
|
8149
8149
|
let y, F = C.value.toLowerCase();
|
|
8150
8150
|
(y = /^color\s*(\d+)$/i.exec(F)) && (F = parseInt(y[1], 10)), n.color = F;
|
|
8151
|
-
} else if (
|
|
8151
|
+
} else if (S === To)
|
|
8152
8152
|
n.scale = 100, n.percent = !0, Ye("%", t);
|
|
8153
|
-
else if (
|
|
8153
|
+
else if (S === Es)
|
|
8154
8154
|
Ye(C, t), n.date || (n.dec_fractions = !0, r = "frac");
|
|
8155
|
-
else if (
|
|
8155
|
+
else if (S === Wo)
|
|
8156
8156
|
n.exponential = !0, n.exp_plus = C.value.includes("+"), r = "man", Ye({ type: "exp", plus: n.exp_plus }, t);
|
|
8157
|
-
else if (
|
|
8157
|
+
else if (S === jo)
|
|
8158
8158
|
Ye(C, t);
|
|
8159
|
-
else if (
|
|
8159
|
+
else if (S === Yo)
|
|
8160
8160
|
Ye(C, t);
|
|
8161
|
-
else if (!(
|
|
8161
|
+
else if (!(S === Uo || S === Po)) throw S === Sr ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${S} in ${c}`);
|
|
8162
8162
|
o = C;
|
|
8163
8163
|
}
|
|
8164
8164
|
if (n.tokensUsed = l, n.pattern = c, /^((?:\[[^\]]+\])+)(;|$)/.test(n.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n.pattern) && Ye({ type: "text" }, t), n.fractions && n.dec_fractions || n.grouping && !n.int_pattern.length || n.fractions && n.exponential || n.fractions && n.den_pattern.length * n.num_pattern.length === 0 || h && !n.fractions && !n.date || n.exponential && (n.int_pattern.length || n.frac_pattern.length) * n.man_pattern.length === 0)
|
|
@@ -8167,22 +8167,22 @@ function mr(e) {
|
|
|
8167
8167
|
hn(d, n, "int");
|
|
8168
8168
|
let _ = 0;
|
|
8169
8169
|
for (let C = 0; C < d.length; C++) {
|
|
8170
|
-
const
|
|
8171
|
-
/^[0-9?]/.test(
|
|
8170
|
+
const S = d[d.length - 1 - C];
|
|
8171
|
+
/^[0-9?]/.test(S) && (_ = C + 1);
|
|
8172
8172
|
}
|
|
8173
8173
|
n.int_min = _, hn(g, n, "frac"), hn(f, n, "man");
|
|
8174
8174
|
let R = n.num_pattern.join(""), b = n.den_pattern[0] || "";
|
|
8175
8175
|
if (b.includes("?") || R.includes("?") ? (b = b.replace(/\d/g, "?"), b = b.replace(/#$/g, "?"), hn(R, n, "num"), hn(b, n, "den"), R = R.replace(/#$/g, "?")) : (hn(R, n, "num"), hn(b, n, "den")), n.int_p = d, n.man_p = f, n.num_p = R, n.den_p = b, n.den_pattern.length && (n.denominator = parseInt(n.den_pattern.join("").replace(/\D/g, ""), 10)), n.integer = !!d.length, !n.integer && !n.exponential && g.length) {
|
|
8176
|
-
const C = n.tokens.findIndex((
|
|
8176
|
+
const C = n.tokens.findIndex((S) => S.type === "point");
|
|
8177
8177
|
n.tokens.splice(C, 0, { type: "int", value: "#" }), n.integer = !0, n.int_pattern = ["#"], n.int_p = "#";
|
|
8178
8178
|
}
|
|
8179
8179
|
if (n.fractions)
|
|
8180
8180
|
for (let C = 0; C < t.length - 1; C++) {
|
|
8181
|
-
const
|
|
8182
|
-
if (
|
|
8181
|
+
const S = t[C];
|
|
8182
|
+
if (S.type !== "string" && S.type !== "space")
|
|
8183
8183
|
continue;
|
|
8184
8184
|
const y = t[C + 1].type;
|
|
8185
|
-
y === "num" ?
|
|
8185
|
+
y === "num" ? S.rule = "num+int" : y === "div" ? S.rule = "num" : y === "den" && (S.rule = "den");
|
|
8186
8186
|
}
|
|
8187
8187
|
return n.grouping && n.int_pattern.length > 1 && (n.grouping = !1), n;
|
|
8188
8188
|
}
|
|
@@ -8278,7 +8278,7 @@ function dn(e, t = !1) {
|
|
|
8278
8278
|
}
|
|
8279
8279
|
const er = 86400, cp = (e, t, n) => n ? e < W_ || t >= Y_ : e < B_ || t >= j_;
|
|
8280
8280
|
function al(e, t, n, r) {
|
|
8281
|
-
var A,
|
|
8281
|
+
var A, v;
|
|
8282
8282
|
let s = "", i = "", o = "", a = "", l = "", u = "", c = 0, h = 0;
|
|
8283
8283
|
if (typeof e == "bigint") {
|
|
8284
8284
|
if (e <= Number.MAX_SAFE_INTEGER && e >= Number.MIN_SAFE_INTEGER)
|
|
@@ -8288,7 +8288,7 @@ function al(e, t, n, r) {
|
|
|
8288
8288
|
h = e;
|
|
8289
8289
|
} else
|
|
8290
8290
|
h = Math.trunc(e);
|
|
8291
|
-
let d = 0, f = 0, g = 1, _ = 0, R = 0, b = 0,
|
|
8291
|
+
let d = 0, f = 0, g = 1, _ = 0, R = 0, b = 0, $ = 0, k = 0, W = 0;
|
|
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);
|
|
@@ -8298,7 +8298,7 @@ function al(e, t, n, r) {
|
|
|
8298
8298
|
const N = Math.abs(Rt(e, t.fractions ? 1 : t.frac_max));
|
|
8299
8299
|
u += N < 1 ? "" : Math.floor(N);
|
|
8300
8300
|
}
|
|
8301
|
-
const C = (A = n.grouping[0]) != null ? A : 3,
|
|
8301
|
+
const C = (A = n.grouping[0]) != null ? A : 3, S = (v = n.grouping[1]) != null ? v : C;
|
|
8302
8302
|
t.dec_fractions && (l = String(Rt(e, t.frac_max)).split(".")[1] || "");
|
|
8303
8303
|
const y = !t.error && (t.num_p.includes("0") || t.den_p.includes("0"));
|
|
8304
8304
|
let F = y;
|
|
@@ -8328,7 +8328,7 @@ function al(e, t, n, r) {
|
|
|
8328
8328
|
}
|
|
8329
8329
|
if (d) {
|
|
8330
8330
|
const M = d < 0 ? er + d : d;
|
|
8331
|
-
k = Math.floor(M) % 60,
|
|
8331
|
+
k = Math.floor(M) % 60, $ = Math.floor(M / 60) % 60, b = Math.floor(M / 60 / 60) % 60;
|
|
8332
8332
|
}
|
|
8333
8333
|
if (R = (6 + h) % 7, t.date_eval && cp(e, h + d / er, n.dateSpanLarge)) {
|
|
8334
8334
|
if (n.dateErrorThrows)
|
|
@@ -8340,7 +8340,7 @@ function al(e, t, n, r) {
|
|
|
8340
8340
|
return n.overflow;
|
|
8341
8341
|
}
|
|
8342
8342
|
}
|
|
8343
|
-
const
|
|
8343
|
+
const H = dn("?", n.nbsp);
|
|
8344
8344
|
c < 0 ? i = "-" : t.exp_plus && (i = "+");
|
|
8345
8345
|
const m = [], D = (N, M, L, P) => {
|
|
8346
8346
|
const q = !P && N.length > M.length ? L.length + N.length - M.length : L.length;
|
|
@@ -8354,9 +8354,9 @@ function al(e, t, n, r) {
|
|
|
8354
8354
|
for (let N = 0, M = t.tokens.length; N < M; N++) {
|
|
8355
8355
|
const L = t.tokens[N], P = L.type, q = L.num ? L.num.length : 0;
|
|
8356
8356
|
if (P === "string")
|
|
8357
|
-
L.rule ? L.rule === "num" ? F ? m.push(L.value.replace(/ /g,
|
|
8357
|
+
L.rule ? L.rule === "num" ? F ? m.push(L.value.replace(/ /g, H)) : (t.num_min > 0 || t.den_min > 0) && m.push(L.value.replace(/./g, H)) : L.rule === "num+int" ? F && u ? m.push(L.value.replace(/ /g, H)) : t.den_min > 0 && (u || t.num_min) && m.push(L.value.replace(/./g, H)) : L.rule === "den" && (F ? m.push(L.value.replace(/ /g, H)) : (t.den_min > 0 || t.den_min > 0) && m.push(L.value.replace(/./g, H))) : m.push(L.value.replace(/ /g, H));
|
|
8358
8358
|
else if (P === "space")
|
|
8359
|
-
L.rule === "num+int" ? (F || t.num_min || t.den_min) && (u || t.num_min) && m.push(
|
|
8359
|
+
L.rule === "num+int" ? (F || t.num_min || t.den_min) && (u || t.num_min) && m.push(H) : m.push(H);
|
|
8360
8360
|
else if (P === "error")
|
|
8361
8361
|
m.push(n.invalid);
|
|
8362
8362
|
else if (P === "point")
|
|
@@ -8376,7 +8376,7 @@ function al(e, t, n, r) {
|
|
|
8376
8376
|
else if (P === "skip")
|
|
8377
8377
|
n.skipChar ? m.push(n.skipChar, L.value) : m.push(n.nbsp ? " " : " ");
|
|
8378
8378
|
else if (P === "div")
|
|
8379
|
-
F ? m.push("/") : t.num_min > 0 || t.den_min > 0 ? m.push(
|
|
8379
|
+
F ? m.push("/") : t.num_min > 0 || t.den_min > 0 ? m.push(H) : m.push(dn("#", n.nbsp));
|
|
8380
8380
|
else if (P === "int")
|
|
8381
8381
|
if (t.int_pattern.length === 1) {
|
|
8382
8382
|
const V = t.int_p, oe = Math.max(t.int_min, u.length);
|
|
@@ -8386,7 +8386,7 @@ function al(e, t, n, r) {
|
|
|
8386
8386
|
let z = "";
|
|
8387
8387
|
if (t.grouping) {
|
|
8388
8388
|
const B = I - 1 - C;
|
|
8389
|
-
B >= 0 && !(B %
|
|
8389
|
+
B >= 0 && !(B % S) && (z = x || Y === "0" ? w.group : dn("?", n.nbsp));
|
|
8390
8390
|
}
|
|
8391
8391
|
le += (x || dn(Y, n.nbsp)) + z;
|
|
8392
8392
|
}
|
|
@@ -8436,7 +8436,7 @@ function al(e, t, n, r) {
|
|
|
8436
8436
|
const V = b % t.clock || (t.clock < 24 ? t.clock : 0);
|
|
8437
8437
|
m.push(L.pad && V < 10 ? "0" : "", V);
|
|
8438
8438
|
} else if (P === "min")
|
|
8439
|
-
m.push(L.pad &&
|
|
8439
|
+
m.push(L.pad && $ < 10 ? "0" : "", $);
|
|
8440
8440
|
else if (P === "sec")
|
|
8441
8441
|
m.push(L.pad && k < 10 ? "0" : "", k);
|
|
8442
8442
|
else if (P === "subsec") {
|
|
@@ -8584,7 +8584,7 @@ const Ep = [
|
|
|
8584
8584
|
[wo, /^#/, 0],
|
|
8585
8585
|
[kn, /^0/, 0],
|
|
8586
8586
|
[Oo, /^\?/, 0],
|
|
8587
|
-
[
|
|
8587
|
+
[vo, /^\//, 0],
|
|
8588
8588
|
// Commas are dealt with as a special case in the tokenizer but will end up
|
|
8589
8589
|
// as one of these:
|
|
8590
8590
|
// [ TOKEN_GROUP, /^(,),*/, 1 ],
|
|
@@ -8599,7 +8599,7 @@ const Ep = [
|
|
|
8599
8599
|
[To, /^%/, 0],
|
|
8600
8600
|
[Ps, /^[1-9]/, 0],
|
|
8601
8601
|
[Mo, /^(?:B[12])/i, 0],
|
|
8602
|
-
[
|
|
8602
|
+
[Sr, /^B$/, 0],
|
|
8603
8603
|
// pattern must not end in a "B"
|
|
8604
8604
|
[Lo, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
|
|
8605
8605
|
[xo, /^(?:\[(h+|m+|s+)\])/i, 1],
|
|
@@ -8610,15 +8610,15 @@ const Ep = [
|
|
|
8610
8610
|
[Fo, /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*\d+)\]/i, 1],
|
|
8611
8611
|
// conditionally allow these open ended directions?
|
|
8612
8612
|
[Cu, /^\[([^\]]+)\]/, 1],
|
|
8613
|
-
[
|
|
8614
|
-
[
|
|
8613
|
+
[$o, /^(?:AM\/PM|am\/pm|A\/P)/, 0],
|
|
8614
|
+
[Ho, /^\\(.)/, 1],
|
|
8615
8615
|
[Bo, /^"([^"]*?)"/, 1],
|
|
8616
8616
|
[jo, /^_(\\.|.)/, 1],
|
|
8617
8617
|
// Google Sheets and Excel diverge on "e": Excel only accepts E.
|
|
8618
8618
|
[Wo, /^[Ee]([+-])/, 1],
|
|
8619
8619
|
[Yo, /^\*(\\.|.)/, 1],
|
|
8620
8620
|
[zo, /^[()]/, 0],
|
|
8621
|
-
[
|
|
8621
|
+
[Sr, /^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/, 0],
|
|
8622
8622
|
[ks, /^./, 0]
|
|
8623
8623
|
], Cp = 63, Rp = 35, Ip = 48, wp = 57, ci = (e) => {
|
|
8624
8624
|
const t = (e || "\0").charCodeAt(0);
|
|
@@ -8639,14 +8639,14 @@ function Mn(e) {
|
|
|
8639
8639
|
ci(l) ? (u = !0, c = !0) : l === "." && (c = !0);
|
|
8640
8640
|
const h = o[2] || "";
|
|
8641
8641
|
if (u && (!h || h === ";") && (u = !1), c && ci(h) && (c = !1), u && !c)
|
|
8642
|
-
n.push({ type:
|
|
8642
|
+
n.push({ type: vr, value: ",", raw: a });
|
|
8643
8643
|
else if (!u && c)
|
|
8644
8644
|
n.push({ type: ps, value: ",", raw: a });
|
|
8645
8645
|
else if (u && c) {
|
|
8646
8646
|
const d = { type: ps, value: ",", raw: a };
|
|
8647
8647
|
n.push(d), r.push(d);
|
|
8648
8648
|
} else
|
|
8649
|
-
n.push({ type:
|
|
8649
|
+
n.push({ type: So, value: ",", raw: a });
|
|
8650
8650
|
} else {
|
|
8651
8651
|
let a;
|
|
8652
8652
|
for (const [l, u, c] of Ep) {
|
|
@@ -8657,7 +8657,7 @@ function Mn(e) {
|
|
|
8657
8657
|
break;
|
|
8658
8658
|
}
|
|
8659
8659
|
}
|
|
8660
|
-
r.length && a.raw === ";" && (r.length = 0), r.length && ci(a.raw) && (r.forEach((l) => l.type =
|
|
8660
|
+
r.length && a.raw === ";" && (r.length = 0), r.length && ci(a.raw) && (r.forEach((l) => l.type = vr), r.length = 0);
|
|
8661
8661
|
}
|
|
8662
8662
|
if (!i) {
|
|
8663
8663
|
const a = s[0];
|
|
@@ -8761,17 +8761,17 @@ function sn(e, t = !1) {
|
|
|
8761
8761
|
}
|
|
8762
8762
|
return n;
|
|
8763
8763
|
}
|
|
8764
|
-
function
|
|
8764
|
+
function $u(e, t, n = {}) {
|
|
8765
8765
|
var o;
|
|
8766
|
-
const r = Object.assign({},
|
|
8766
|
+
const r = Object.assign({}, Su, n), s = sn(e, r.throws), i = (o = Jo(t, r)) != null ? o : t;
|
|
8767
8767
|
return fp(i, s, r);
|
|
8768
8768
|
}
|
|
8769
|
-
function
|
|
8769
|
+
function vp(e, t, n) {
|
|
8770
8770
|
var o;
|
|
8771
|
-
const r = Object.assign({},
|
|
8771
|
+
const r = Object.assign({}, Su, n), s = sn(e, r.throws), i = (o = Jo(t, r)) != null ? o : t;
|
|
8772
8772
|
return dp(i, s, r);
|
|
8773
8773
|
}
|
|
8774
|
-
function
|
|
8774
|
+
function Sp(e) {
|
|
8775
8775
|
const t = sn(e, !1);
|
|
8776
8776
|
return ku(t.partitions);
|
|
8777
8777
|
}
|
|
@@ -8799,23 +8799,23 @@ function Tp(e) {
|
|
|
8799
8799
|
return t.dateInfo || (t.dateInfo = pp(t.partitions)), t.dateInfo;
|
|
8800
8800
|
}
|
|
8801
8801
|
const yn = Object.freeze({
|
|
8802
|
-
AMPM:
|
|
8802
|
+
AMPM: $o,
|
|
8803
8803
|
BREAK: bo,
|
|
8804
8804
|
CALENDAR: Mo,
|
|
8805
8805
|
CHAR: ks,
|
|
8806
8806
|
COLOR: Fo,
|
|
8807
|
-
COMMA:
|
|
8807
|
+
COMMA: So,
|
|
8808
8808
|
CONDITION: Do,
|
|
8809
8809
|
DATETIME: Lo,
|
|
8810
8810
|
DBNUM: Uo,
|
|
8811
8811
|
DIGIT: Ps,
|
|
8812
8812
|
DURATION: xo,
|
|
8813
|
-
ERROR:
|
|
8814
|
-
ESCAPED:
|
|
8813
|
+
ERROR: Sr,
|
|
8814
|
+
ESCAPED: Ho,
|
|
8815
8815
|
EXP: Wo,
|
|
8816
8816
|
FILL: Yo,
|
|
8817
8817
|
GENERAL: Io,
|
|
8818
|
-
GROUP:
|
|
8818
|
+
GROUP: vr,
|
|
8819
8819
|
HASH: wo,
|
|
8820
8820
|
LOCALE: ko,
|
|
8821
8821
|
MINUS: yo,
|
|
@@ -8828,7 +8828,7 @@ const yn = Object.freeze({
|
|
|
8828
8828
|
QMARK: Oo,
|
|
8829
8829
|
SCALE: ps,
|
|
8830
8830
|
SKIP: jo,
|
|
8831
|
-
SLASH:
|
|
8831
|
+
SLASH: vo,
|
|
8832
8832
|
SPACE: No,
|
|
8833
8833
|
STRING: Bo,
|
|
8834
8834
|
TEXT: Us,
|
|
@@ -8839,12 +8839,12 @@ const yn = Object.freeze({
|
|
|
8839
8839
|
dateFromSerial: Z_,
|
|
8840
8840
|
dateToSerial: Jo,
|
|
8841
8841
|
dec2frac: bu,
|
|
8842
|
-
format:
|
|
8843
|
-
formatColor:
|
|
8842
|
+
format: $u,
|
|
8843
|
+
formatColor: vp,
|
|
8844
8844
|
getFormatDateInfo: Tp,
|
|
8845
8845
|
getFormatInfo: Np,
|
|
8846
8846
|
getLocale: qn,
|
|
8847
|
-
isDateFormat:
|
|
8847
|
+
isDateFormat: Sp,
|
|
8848
8848
|
isPercentFormat: bp,
|
|
8849
8849
|
isTextFormat: Ap,
|
|
8850
8850
|
isValidFormat: yp,
|
|
@@ -8892,7 +8892,7 @@ const d1 = (e, t) => {
|
|
|
8892
8892
|
const t = (i = (s = Qo(e)) != null ? s : Fs(e)) != null ? i : Zo(e);
|
|
8893
8893
|
if (!t) return null;
|
|
8894
8894
|
const { v: n, z: r } = t;
|
|
8895
|
-
return r && (Dp.has(r) || Up.has(r) && !/\s(A|AM|P|PM)$/i.test(e) || r.includes("#,##0") &&
|
|
8895
|
+
return r && (Dp.has(r) || Up.has(r) && !/\s(A|AM|P|PM)$/i.test(e) || r.includes("#,##0") && $u(r, n) !== e) ? null : t;
|
|
8896
8896
|
}, m1 = {
|
|
8897
8897
|
sheetId: "",
|
|
8898
8898
|
range: {
|
|
@@ -9018,7 +9018,7 @@ const d1 = (e, t) => {
|
|
|
9018
9018
|
width: 300,
|
|
9019
9019
|
height: 300
|
|
9020
9020
|
}
|
|
9021
|
-
}, E1 = [Fl, Wc,
|
|
9021
|
+
}, E1 = [Fl, Wc, $l], C1 = {
|
|
9022
9022
|
[Je.HEADING_1]: { fs: 20, bl: 1 },
|
|
9023
9023
|
// Heading 1: 20pt, bold
|
|
9024
9024
|
[Je.HEADING_2]: { fs: 18, bl: 1 },
|
|
@@ -9680,11 +9680,11 @@ p(Ir, "transformRange", (t, n) => {
|
|
|
9680
9680
|
};
|
|
9681
9681
|
});
|
|
9682
9682
|
let br = Ir;
|
|
9683
|
-
function
|
|
9683
|
+
function Hu(e, t, n = 0, r = e.length - 1, s = Fp) {
|
|
9684
9684
|
for (; r > n; ) {
|
|
9685
9685
|
if (r - n > 600) {
|
|
9686
9686
|
const l = r - n + 1, u = t - n + 1, c = Math.log(l), h = 0.5 * Math.exp(2 * c / 3), d = 0.5 * Math.sqrt(c * h * (l - h) / l) * (u - l / 2 < 0 ? -1 : 1), f = Math.max(n, Math.floor(t - u * h / l + d)), g = Math.min(r, Math.floor(t + (l - u) * h / l + d));
|
|
9687
|
-
|
|
9687
|
+
Hu(e, t, f, g, s);
|
|
9688
9688
|
}
|
|
9689
9689
|
const i = e[t];
|
|
9690
9690
|
let o = n, a = r;
|
|
@@ -9702,7 +9702,7 @@ function tr(e, t, n) {
|
|
|
9702
9702
|
function Fp(e, t) {
|
|
9703
9703
|
return e < t ? -1 : e > t ? 1 : 0;
|
|
9704
9704
|
}
|
|
9705
|
-
class
|
|
9705
|
+
class $i {
|
|
9706
9706
|
constructor(t = 9) {
|
|
9707
9707
|
this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
|
9708
9708
|
}
|
|
@@ -9773,7 +9773,7 @@ class Hi {
|
|
|
9773
9773
|
let a, l, u;
|
|
9774
9774
|
for (; r || i.length; ) {
|
|
9775
9775
|
if (r || (r = i.pop(), l = i[i.length - 1], a = o.pop(), u = !0), r.leaf) {
|
|
9776
|
-
const c =
|
|
9776
|
+
const c = $p(t, r.children, n);
|
|
9777
9777
|
if (c !== -1)
|
|
9778
9778
|
return r.children.splice(c, 1), i.push(r), this._condense(i), this;
|
|
9779
9779
|
}
|
|
@@ -9806,7 +9806,7 @@ class Hi {
|
|
|
9806
9806
|
const i = r - n + 1;
|
|
9807
9807
|
let o = this._maxEntries, a;
|
|
9808
9808
|
if (i <= o)
|
|
9809
|
-
return a = Nn(t.slice(n, r + 1)),
|
|
9809
|
+
return a = Nn(t.slice(n, r + 1)), vn(a, this.toBBox), a;
|
|
9810
9810
|
s || (s = Math.ceil(Math.log(i) / Math.log(o)), o = Math.ceil(i / Math.pow(o, s - 1))), a = Nn([]), a.leaf = !1, a.height = s;
|
|
9811
9811
|
const l = Math.ceil(i / o), u = l * Math.ceil(Math.sqrt(o));
|
|
9812
9812
|
cl(t, n, r, u, this.compareMinX);
|
|
@@ -9818,7 +9818,7 @@ class Hi {
|
|
|
9818
9818
|
a.children.push(this._build(t, d, f, s - 1));
|
|
9819
9819
|
}
|
|
9820
9820
|
}
|
|
9821
|
-
return
|
|
9821
|
+
return vn(a, this.toBBox), a;
|
|
9822
9822
|
}
|
|
9823
9823
|
_chooseSubtree(t, n, r, s) {
|
|
9824
9824
|
for (; s.push(n), !(n.leaf || s.length - 1 === r); ) {
|
|
@@ -9842,10 +9842,10 @@ class Hi {
|
|
|
9842
9842
|
const r = t[n], s = r.children.length, i = this._minEntries;
|
|
9843
9843
|
this._chooseSplitAxis(r, i, s);
|
|
9844
9844
|
const o = this._chooseSplitIndex(r, i, s), a = Nn(r.children.splice(o, r.children.length - o));
|
|
9845
|
-
a.height = r.height, a.leaf = r.leaf,
|
|
9845
|
+
a.height = r.height, a.leaf = r.leaf, vn(r, this.toBBox), vn(a, this.toBBox), n ? t[n - 1].children.push(a) : this._splitRoot(r, a);
|
|
9846
9846
|
}
|
|
9847
9847
|
_splitRoot(t, n) {
|
|
9848
|
-
this.data = Nn([t, n]), this.data.height = t.height + 1, this.data.leaf = !1,
|
|
9848
|
+
this.data = Nn([t, n]), this.data.height = t.height + 1, this.data.leaf = !1, vn(this.data, this.toBBox);
|
|
9849
9849
|
}
|
|
9850
9850
|
_chooseSplitIndex(t, n, r) {
|
|
9851
9851
|
let s, i = 1 / 0, o = 1 / 0;
|
|
@@ -9857,7 +9857,7 @@ class Hi {
|
|
|
9857
9857
|
}
|
|
9858
9858
|
// sorts node children by the best axis for split
|
|
9859
9859
|
_chooseSplitAxis(t, n, r) {
|
|
9860
|
-
const s = t.leaf ? this.compareMinX :
|
|
9860
|
+
const s = t.leaf ? this.compareMinX : Hp, i = t.leaf ? this.compareMinY : Bp, o = this._allDistMargin(t, n, r, s), a = this._allDistMargin(t, n, r, i);
|
|
9861
9861
|
o < a && t.children.sort(s);
|
|
9862
9862
|
}
|
|
9863
9863
|
// total margin of all possible split distributions where each node is at least m full
|
|
@@ -9881,16 +9881,16 @@ class Hi {
|
|
|
9881
9881
|
}
|
|
9882
9882
|
_condense(t) {
|
|
9883
9883
|
for (let n = t.length - 1, r; n >= 0; n--)
|
|
9884
|
-
t[n].children.length === 0 ? n > 0 ? (r = t[n - 1].children, r.splice(r.indexOf(t[n]), 1)) : this.clear() :
|
|
9884
|
+
t[n].children.length === 0 ? n > 0 ? (r = t[n - 1].children, r.splice(r.indexOf(t[n]), 1)) : this.clear() : vn(t[n], this.toBBox);
|
|
9885
9885
|
}
|
|
9886
9886
|
}
|
|
9887
|
-
function
|
|
9887
|
+
function $p(e, t, n) {
|
|
9888
9888
|
if (!n) return t.indexOf(e);
|
|
9889
9889
|
for (let r = 0; r < t.length; r++)
|
|
9890
9890
|
if (n(e, t[r])) return r;
|
|
9891
9891
|
return -1;
|
|
9892
9892
|
}
|
|
9893
|
-
function
|
|
9893
|
+
function vn(e, t) {
|
|
9894
9894
|
gr(e, 0, e.children.length, t, e);
|
|
9895
9895
|
}
|
|
9896
9896
|
function gr(e, t, n, r, s) {
|
|
@@ -9904,7 +9904,7 @@ function gr(e, t, n, r, s) {
|
|
|
9904
9904
|
function _r(e, t) {
|
|
9905
9905
|
return e.minX = Math.min(e.minX, t.minX), e.minY = Math.min(e.minY, t.minY), e.maxX = Math.max(e.maxX, t.maxX), e.maxY = Math.max(e.maxY, t.maxY), e;
|
|
9906
9906
|
}
|
|
9907
|
-
function
|
|
9907
|
+
function Hp(e, t) {
|
|
9908
9908
|
return e.minX - t.minX;
|
|
9909
9909
|
}
|
|
9910
9910
|
function Bp(e, t) {
|
|
@@ -9945,10 +9945,10 @@ function cl(e, t, n, r, s) {
|
|
|
9945
9945
|
for (; i.length; ) {
|
|
9946
9946
|
if (n = i.pop(), t = i.pop(), n - t <= r) continue;
|
|
9947
9947
|
const o = t + Math.ceil((n - t) / r / 2) * r;
|
|
9948
|
-
|
|
9948
|
+
Hu(e, o, t, n, s), i.push(t, o, o, n);
|
|
9949
9949
|
}
|
|
9950
9950
|
}
|
|
9951
|
-
function
|
|
9951
|
+
function v1(e, t, n, r = !1) {
|
|
9952
9952
|
if (t === 0 && n === 0)
|
|
9953
9953
|
return e;
|
|
9954
9954
|
let s = { ...e };
|
|
@@ -10188,7 +10188,7 @@ const zt = class zt {
|
|
|
10188
10188
|
* ```
|
|
10189
10189
|
*/
|
|
10190
10190
|
static doAnyRangesIntersect(t, n) {
|
|
10191
|
-
const r = new
|
|
10191
|
+
const r = new $i();
|
|
10192
10192
|
return r.load(t.map((s) => ({ minX: s.startColumn, minY: s.startRow, maxX: s.endColumn, maxY: s.endRow }))), n.some((s) => r.search({ minX: s.startColumn, minY: s.startRow, maxX: s.endColumn, maxY: s.endRow }).length > 0);
|
|
10193
10193
|
}
|
|
10194
10194
|
/**
|
|
@@ -10621,7 +10621,7 @@ function Zp(e, t) {
|
|
|
10621
10621
|
e[n][r] = void 0;
|
|
10622
10622
|
});
|
|
10623
10623
|
}
|
|
10624
|
-
function
|
|
10624
|
+
function S1(e, t) {
|
|
10625
10625
|
const n = e.toFullArray(), r = [];
|
|
10626
10626
|
for (; ; ) {
|
|
10627
10627
|
const s = qp(n, t);
|
|
@@ -10744,10 +10744,10 @@ function T1(e, t) {
|
|
|
10744
10744
|
function M1(e, t) {
|
|
10745
10745
|
return e.zIndex > t.zIndex ? -1 : e.zIndex === t.zIndex ? 0 : 1;
|
|
10746
10746
|
}
|
|
10747
|
-
function
|
|
10747
|
+
function $s(e = "index", t = 1) {
|
|
10748
10748
|
return (n, r) => n[e] > r[e] ? t : n[e] === r[e] ? 0 : -t;
|
|
10749
10749
|
}
|
|
10750
|
-
function
|
|
10750
|
+
function Hs(e, t = !1) {
|
|
10751
10751
|
const n = [];
|
|
10752
10752
|
for (const r of e) {
|
|
10753
10753
|
const { st: s, ed: i, ts: o } = r;
|
|
@@ -10797,7 +10797,7 @@ function Wu(e, t, n, r) {
|
|
|
10797
10797
|
} else
|
|
10798
10798
|
h.st += n, h.ed += n, a || (a = !0, i.push(...l)), i.push(h);
|
|
10799
10799
|
}
|
|
10800
|
-
a || (a = !0, i.push(...l)), e.textRuns =
|
|
10800
|
+
a || (a = !0, i.push(...l)), e.textRuns = Hs(i);
|
|
10801
10801
|
}
|
|
10802
10802
|
function Yu(e, t, n, r) {
|
|
10803
10803
|
const { paragraphs: s } = e;
|
|
@@ -10816,7 +10816,7 @@ function Yu(e, t, n, r) {
|
|
|
10816
10816
|
const h = c.startIndex;
|
|
10817
10817
|
a = o.indexOf(h);
|
|
10818
10818
|
}
|
|
10819
|
-
a !== -1 && s.splice(a, 1), s.push(...i), s.sort(
|
|
10819
|
+
a !== -1 && s.splice(a, 1), s.push(...i), s.sort($s("startIndex"));
|
|
10820
10820
|
}
|
|
10821
10821
|
}
|
|
10822
10822
|
function zu(e, t, n, r) {
|
|
@@ -10833,7 +10833,7 @@ function zu(e, t, n, r) {
|
|
|
10833
10833
|
const l = i[o];
|
|
10834
10834
|
l.startIndex += r;
|
|
10835
10835
|
}
|
|
10836
|
-
s.push(...i), s.sort(
|
|
10836
|
+
s.push(...i), s.sort($s("startIndex"));
|
|
10837
10837
|
}
|
|
10838
10838
|
}
|
|
10839
10839
|
function Vu(e, t, n, r) {
|
|
@@ -10848,7 +10848,7 @@ function Vu(e, t, n, r) {
|
|
|
10848
10848
|
const l = i[o];
|
|
10849
10849
|
l.startIndex += r;
|
|
10850
10850
|
}
|
|
10851
|
-
s.push(...i), s.sort(
|
|
10851
|
+
s.push(...i), s.sort($s("startIndex"));
|
|
10852
10852
|
}
|
|
10853
10853
|
s.length && !e.customBlocks && (e.customBlocks = s);
|
|
10854
10854
|
}
|
|
@@ -10866,7 +10866,7 @@ function Gu(e, t, n, r) {
|
|
|
10866
10866
|
const l = i[o];
|
|
10867
10867
|
l.startIndex += r, l.endIndex += r;
|
|
10868
10868
|
}
|
|
10869
|
-
s.push(...i), s.sort(
|
|
10869
|
+
s.push(...i), s.sort($s("startIndex"));
|
|
10870
10870
|
}
|
|
10871
10871
|
}
|
|
10872
10872
|
const Ku = "$", gl = (e) => e.split(Ku)[0];
|
|
@@ -10888,7 +10888,7 @@ function ea(e) {
|
|
|
10888
10888
|
}
|
|
10889
10889
|
return t;
|
|
10890
10890
|
}
|
|
10891
|
-
function
|
|
10891
|
+
function Hi(e, t) {
|
|
10892
10892
|
const n = e.findIndex((s) => s.startIndex < t && s.endIndex >= t), r = e[n];
|
|
10893
10893
|
r && e.splice(n, 1, {
|
|
10894
10894
|
rangeId: r.rangeId,
|
|
@@ -10934,7 +10934,7 @@ function Bi(e, t) {
|
|
|
10934
10934
|
function t0(e, t, n, r) {
|
|
10935
10935
|
e.customRanges || (e.customRanges = []);
|
|
10936
10936
|
const { customRanges: s } = e;
|
|
10937
|
-
|
|
10937
|
+
Hi(s, r);
|
|
10938
10938
|
for (let o = 0, a = s.length; o < a; o++) {
|
|
10939
10939
|
const l = s[o], { startIndex: u } = l;
|
|
10940
10940
|
u >= r && (l.startIndex += n, l.endIndex += n);
|
|
@@ -11134,7 +11134,7 @@ const Kr = {
|
|
|
11134
11134
|
"A.": { glyphType: me.UPPER_LETTER },
|
|
11135
11135
|
"i.": { glyphFormat: "%1.", glyphType: me.LOWER_ROMAN },
|
|
11136
11136
|
"I.": { glyphFormat: "%1.", glyphType: me.UPPER_LETTER }
|
|
11137
|
-
},
|
|
11137
|
+
}, Sn = (e) => [
|
|
11138
11138
|
...e,
|
|
11139
11139
|
...e,
|
|
11140
11140
|
...e
|
|
@@ -11177,27 +11177,27 @@ const Kr = {
|
|
|
11177
11177
|
})), Bs = {
|
|
11178
11178
|
BULLET_LIST: {
|
|
11179
11179
|
listType: "BULLET_LIST",
|
|
11180
|
-
nestingLevel:
|
|
11180
|
+
nestingLevel: Sn(["●", "○", "■"])
|
|
11181
11181
|
},
|
|
11182
11182
|
BULLET_LIST_1: {
|
|
11183
11183
|
listType: "BULLET_LIST",
|
|
11184
|
-
nestingLevel:
|
|
11184
|
+
nestingLevel: Sn(["❖", "➢", "■"])
|
|
11185
11185
|
},
|
|
11186
11186
|
BULLET_LIST_2: {
|
|
11187
11187
|
listType: "BULLET_LIST",
|
|
11188
|
-
nestingLevel:
|
|
11188
|
+
nestingLevel: Sn(["✔", "●", "◆"])
|
|
11189
11189
|
},
|
|
11190
11190
|
BULLET_LIST_3: {
|
|
11191
11191
|
listType: "BULLET_LIST",
|
|
11192
|
-
nestingLevel:
|
|
11192
|
+
nestingLevel: Sn(["■", "◆", "○"])
|
|
11193
11193
|
},
|
|
11194
11194
|
BULLET_LIST_4: {
|
|
11195
11195
|
listType: "BULLET_LIST",
|
|
11196
|
-
nestingLevel:
|
|
11196
|
+
nestingLevel: Sn(["✧", "○", "■"])
|
|
11197
11197
|
},
|
|
11198
11198
|
BULLET_LIST_5: {
|
|
11199
11199
|
listType: "BULLET_LIST",
|
|
11200
|
-
nestingLevel:
|
|
11200
|
+
nestingLevel: Sn(["➢", "○", "◆"])
|
|
11201
11201
|
},
|
|
11202
11202
|
ORDER_LIST: {
|
|
11203
11203
|
listType: "ORDER_LIST",
|
|
@@ -11363,9 +11363,9 @@ function tc(e, t, n) {
|
|
|
11363
11363
|
return l ? (r.push(l), l = null, !0) : !1;
|
|
11364
11364
|
}
|
|
11365
11365
|
for (; o < s && a < i; ) {
|
|
11366
|
-
const { st: f, ed: g, ts: _ } = e[o], { st: R, ed: b, ts:
|
|
11366
|
+
const { st: f, ed: g, ts: _ } = e[o], { st: R, ed: b, ts: $, sId: k } = t[a];
|
|
11367
11367
|
let W;
|
|
11368
|
-
if (n === pe.COVER ? W = {
|
|
11368
|
+
if (n === pe.COVER ? W = { ...$, ..._ } : W = { ..._ }, g < R)
|
|
11369
11369
|
u() || r.push(e[o]), o++;
|
|
11370
11370
|
else if (b < f)
|
|
11371
11371
|
u() || r.push(t[a]), a++;
|
|
@@ -11373,7 +11373,7 @@ function tc(e, t, n) {
|
|
|
11373
11373
|
const w = {
|
|
11374
11374
|
st: Math.min(f, R),
|
|
11375
11375
|
ed: Math.max(f, R),
|
|
11376
|
-
ts: f < R ? { ..._ } : {
|
|
11376
|
+
ts: f < R ? { ..._ } : { ...$ },
|
|
11377
11377
|
sId: f < R ? void 0 : k
|
|
11378
11378
|
};
|
|
11379
11379
|
w.ed > w.st && r.push(w), r.push({
|
|
@@ -11385,7 +11385,7 @@ function tc(e, t, n) {
|
|
|
11385
11385
|
const C = {
|
|
11386
11386
|
st: Math.min(g, b),
|
|
11387
11387
|
ed: Math.max(g, b),
|
|
11388
|
-
ts: g < b ? {
|
|
11388
|
+
ts: g < b ? { ...$ } : { ..._ },
|
|
11389
11389
|
sId: g < b ? k : void 0
|
|
11390
11390
|
};
|
|
11391
11391
|
l = C.ed > C.st ? C : null;
|
|
@@ -11393,7 +11393,7 @@ function tc(e, t, n) {
|
|
|
11393
11393
|
}
|
|
11394
11394
|
u();
|
|
11395
11395
|
const c = r[r.length - 1], h = e[s - 1], d = t[i - 1];
|
|
11396
|
-
return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)),
|
|
11396
|
+
return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)), Hs(r);
|
|
11397
11397
|
}
|
|
11398
11398
|
function u0(e, t, n, r, s) {
|
|
11399
11399
|
const { paragraphs: i } = e, { paragraphs: o } = t;
|
|
@@ -11415,15 +11415,15 @@ function u0(e, t, n, r, s) {
|
|
|
11415
11415
|
paragraphStyle: R,
|
|
11416
11416
|
bullet: b
|
|
11417
11417
|
} = g;
|
|
11418
|
-
let
|
|
11419
|
-
if (s === pe.COVER ? (
|
|
11418
|
+
let $, k;
|
|
11419
|
+
if (s === pe.COVER ? ($ = { ...R, ...h }, k = {
|
|
11420
11420
|
listId: "",
|
|
11421
11421
|
listType: Vt.BULLET_LIST,
|
|
11422
11422
|
nestingLevel: 0,
|
|
11423
11423
|
textStyle: {},
|
|
11424
11424
|
...b,
|
|
11425
11425
|
...d
|
|
11426
|
-
}) : (
|
|
11426
|
+
}) : ($ = { ...h, ...R }, k = {
|
|
11427
11427
|
listId: "",
|
|
11428
11428
|
listType: Vt.BULLET_LIST,
|
|
11429
11429
|
nestingLevel: 0,
|
|
@@ -11433,7 +11433,7 @@ function u0(e, t, n, r, s) {
|
|
|
11433
11433
|
}), c === _) {
|
|
11434
11434
|
f.push({
|
|
11435
11435
|
startIndex: c,
|
|
11436
|
-
paragraphStyle:
|
|
11436
|
+
paragraphStyle: $,
|
|
11437
11437
|
bullet: k
|
|
11438
11438
|
});
|
|
11439
11439
|
break;
|
|
@@ -11533,7 +11533,7 @@ function d0(e, t, n, r, s) {
|
|
|
11533
11533
|
return Gu(e, t, n, r), a;
|
|
11534
11534
|
}
|
|
11535
11535
|
function f0(e, t, n, r, s) {
|
|
11536
|
-
e.customRanges || (e.customRanges = []),
|
|
11536
|
+
e.customRanges || (e.customRanges = []), Hi(e.customRanges, r), Hi(e.customRanges, r + n);
|
|
11537
11537
|
const i = r, o = r + n - 1, { customRanges: a } = t, l = [], u = /* @__PURE__ */ new Map();
|
|
11538
11538
|
e.customRanges.forEach((h) => {
|
|
11539
11539
|
const { startIndex: d, endIndex: f } = h;
|
|
@@ -11601,7 +11601,7 @@ function ji(e, t, n, r = !0) {
|
|
|
11601
11601
|
ed: n
|
|
11602
11602
|
}) : i.push(a));
|
|
11603
11603
|
}
|
|
11604
|
-
return
|
|
11604
|
+
return Hs(
|
|
11605
11605
|
i.map((o) => {
|
|
11606
11606
|
const { st: a, ed: l } = o;
|
|
11607
11607
|
return {
|
|
@@ -11787,8 +11787,8 @@ function pl(e, t, n = pe.COVER) {
|
|
|
11787
11787
|
const f = [];
|
|
11788
11788
|
let g = 0, _ = 0;
|
|
11789
11789
|
for (; g < i.length && _ < u.length; ) {
|
|
11790
|
-
const R = i[g], b = u[_], { startIndex:
|
|
11791
|
-
|
|
11790
|
+
const R = i[g], b = u[_], { startIndex: $ } = R, { startIndex: k } = b;
|
|
11791
|
+
$ === k ? (f.push(Z.deepMerge(R, b)), g++, _++) : $ < k ? (f.push(Z.deepClone(R)), g++) : (f.push(Z.deepClone(b)), _++);
|
|
11792
11792
|
}
|
|
11793
11793
|
return g < i.length && f.push(...i.slice(g)), _ < u.length && f.push(...u.slice(_)), f.length && (r.paragraphs = f), r;
|
|
11794
11794
|
}
|
|
@@ -11848,7 +11848,7 @@ class nr {
|
|
|
11848
11848
|
} else return [];
|
|
11849
11849
|
}
|
|
11850
11850
|
}
|
|
11851
|
-
function
|
|
11851
|
+
function v0(e, t, n) {
|
|
11852
11852
|
const { dataStream: r } = e, s = n, i = n + t, o = qu(e, t, n), a = Ju(e, t, n), l = Zu(e, t, n), u = Qu(e, t, n), c = ec(e, t, n), h = r0(e, t, n), d = s0(e, t, n);
|
|
11853
11853
|
let f = "";
|
|
11854
11854
|
return r && (e.dataStream = k_(r, s, i), f = r.slice(s, i)), {
|
|
@@ -11862,17 +11862,17 @@ function S0(e, t, n) {
|
|
|
11862
11862
|
customDecorations: d
|
|
11863
11863
|
};
|
|
11864
11864
|
}
|
|
11865
|
-
function
|
|
11865
|
+
function S0(e, t, n, r) {
|
|
11866
11866
|
e.dataStream = P_(e.dataStream, r, t.dataStream), Wu(e, t, n, r), Yu(e, t, n, r), zu(e, t, n, r), Vu(e, t, n, r), Gu(e, t, n, r), t0(e, t, n, r), n0(e, t, n, r);
|
|
11867
11867
|
}
|
|
11868
11868
|
function b0(e, t, n, r, s = pe.COVER) {
|
|
11869
11869
|
return a0(e, t, n, r, s);
|
|
11870
11870
|
}
|
|
11871
11871
|
function A0(e, t, n) {
|
|
11872
|
-
return t <= 0 ? { dataStream: "" } :
|
|
11872
|
+
return t <= 0 ? { dataStream: "" } : v0(e, t, n);
|
|
11873
11873
|
}
|
|
11874
11874
|
function y0(e, t, n, r) {
|
|
11875
|
-
n !== 0 &&
|
|
11875
|
+
n !== 0 && S0(e, t, n, r);
|
|
11876
11876
|
}
|
|
11877
11877
|
function N0(e, t) {
|
|
11878
11878
|
const n = new Xn();
|
|
@@ -11911,7 +11911,7 @@ function T0(e, t, n, r, s) {
|
|
|
11911
11911
|
return c ? (i.push(c), c = null, !0) : !1;
|
|
11912
11912
|
}
|
|
11913
11913
|
for (; l < o && u < a; ) {
|
|
11914
|
-
const { st: _, ed: R, ts: b } = t[l], { st:
|
|
11914
|
+
const { st: _, ed: R, ts: b } = t[l], { st: $, ed: k, ts: W, sId: w } = e[u];
|
|
11915
11915
|
let C = {};
|
|
11916
11916
|
if (s === 0)
|
|
11917
11917
|
C = { ...b }, n === pe.COVER && r === pe.REPLACE && W && (C = Object.assign({}, W, C));
|
|
@@ -11919,33 +11919,33 @@ function T0(e, t, n, r, s) {
|
|
|
11919
11919
|
if (r === pe.REPLACE)
|
|
11920
11920
|
C = { ...W };
|
|
11921
11921
|
else if (b && W) {
|
|
11922
|
-
const
|
|
11923
|
-
for (const y of
|
|
11922
|
+
const S = Object.keys(b);
|
|
11923
|
+
for (const y of S)
|
|
11924
11924
|
W[y] && delete C[y];
|
|
11925
11925
|
}
|
|
11926
11926
|
} else if (r === pe.REPLACE) {
|
|
11927
11927
|
if (W) {
|
|
11928
|
-
const
|
|
11929
|
-
for (const y of
|
|
11928
|
+
const S = Object.keys(W);
|
|
11929
|
+
for (const y of S)
|
|
11930
11930
|
W[y] !== void 0 && (C[y] = W[y]);
|
|
11931
11931
|
}
|
|
11932
11932
|
} else if (W) {
|
|
11933
|
-
const
|
|
11934
|
-
for (const y of
|
|
11933
|
+
const S = Object.keys(W);
|
|
11934
|
+
for (const y of S)
|
|
11935
11935
|
C[y] !== void 0 && delete C[y];
|
|
11936
11936
|
}
|
|
11937
|
-
if (R <
|
|
11937
|
+
if (R < $)
|
|
11938
11938
|
h() || i.push(t[l]), l++;
|
|
11939
11939
|
else if (k < _)
|
|
11940
11940
|
h() || i.push(e[u]), u++;
|
|
11941
11941
|
else {
|
|
11942
|
-
const
|
|
11943
|
-
st: Math.min(_,
|
|
11944
|
-
ed: Math.max(_,
|
|
11945
|
-
ts: _ <
|
|
11942
|
+
const S = {
|
|
11943
|
+
st: Math.min(_, $),
|
|
11944
|
+
ed: Math.max(_, $),
|
|
11945
|
+
ts: _ < $ ? { ...b } : { ...W }
|
|
11946
11946
|
};
|
|
11947
|
-
|
|
11948
|
-
st: Math.max(_,
|
|
11947
|
+
S.ed > S.st && i.push(), i.push({
|
|
11948
|
+
st: Math.max(_, $),
|
|
11949
11949
|
ed: Math.min(R, k),
|
|
11950
11950
|
ts: C,
|
|
11951
11951
|
sId: w
|
|
@@ -11961,7 +11961,7 @@ function T0(e, t, n, r, s) {
|
|
|
11961
11961
|
}
|
|
11962
11962
|
h();
|
|
11963
11963
|
const d = i[i.length - 1], f = t[o - 1], g = e[a - 1];
|
|
11964
|
-
return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)),
|
|
11964
|
+
return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)), Hs(i, !0);
|
|
11965
11965
|
}
|
|
11966
11966
|
function M0(e, t, n, r, s) {
|
|
11967
11967
|
if (e == null || t == null)
|
|
@@ -12064,7 +12064,7 @@ function x0(e, t, n = !1) {
|
|
|
12064
12064
|
/* COVER */
|
|
12065
12065
|
);
|
|
12066
12066
|
b && (a.textRuns = b);
|
|
12067
|
-
const
|
|
12067
|
+
const $ = M0(
|
|
12068
12068
|
h,
|
|
12069
12069
|
_,
|
|
12070
12070
|
s,
|
|
@@ -12072,7 +12072,7 @@ function x0(e, t, n = !1) {
|
|
|
12072
12072
|
n ? 1 : 0
|
|
12073
12073
|
/* COVER */
|
|
12074
12074
|
);
|
|
12075
|
-
|
|
12075
|
+
$ && (a.customRanges = $);
|
|
12076
12076
|
const k = L0(
|
|
12077
12077
|
d,
|
|
12078
12078
|
R
|
|
@@ -12081,27 +12081,27 @@ function x0(e, t, n = !1) {
|
|
|
12081
12081
|
const W = [];
|
|
12082
12082
|
let w = 0, C = 0;
|
|
12083
12083
|
for (; w < c.length && C < g.length; ) {
|
|
12084
|
-
const
|
|
12085
|
-
if (F ===
|
|
12084
|
+
const S = c[w], y = g[C], { startIndex: F } = S, { startIndex: H } = y;
|
|
12085
|
+
if (F === H) {
|
|
12086
12086
|
let m = {
|
|
12087
12087
|
startIndex: F
|
|
12088
12088
|
};
|
|
12089
12089
|
n ? m = El(
|
|
12090
|
-
|
|
12090
|
+
S,
|
|
12091
12091
|
y,
|
|
12092
12092
|
s,
|
|
12093
12093
|
o,
|
|
12094
12094
|
1
|
|
12095
12095
|
/* COVER_ONLY_NOT_EXISTED */
|
|
12096
12096
|
) : m = El(
|
|
12097
|
-
|
|
12097
|
+
S,
|
|
12098
12098
|
y,
|
|
12099
12099
|
s,
|
|
12100
12100
|
o,
|
|
12101
12101
|
0
|
|
12102
12102
|
/* COVER */
|
|
12103
12103
|
), W.push(m), w++, C++;
|
|
12104
|
-
} else F <
|
|
12104
|
+
} else F < H ? w++ : (W.push(Z.deepClone(y)), C++);
|
|
12105
12105
|
}
|
|
12106
12106
|
return C < g.length && W.push(...g.slice(C)), W.length && (a.paragraphs = W), {
|
|
12107
12107
|
coverType: l,
|
|
@@ -12650,7 +12650,7 @@ class Ft extends F0 {
|
|
|
12650
12650
|
return ta((r = (n = this.getBody()) == null ? void 0 : n.dataStream) != null ? r : "");
|
|
12651
12651
|
}
|
|
12652
12652
|
}
|
|
12653
|
-
function
|
|
12653
|
+
function $0(e) {
|
|
12654
12654
|
const { ranges: t, id: n, type: r } = e, s = new Te();
|
|
12655
12655
|
let i = 0;
|
|
12656
12656
|
for (let o = 0; o < t.length; o++) {
|
|
@@ -12674,7 +12674,7 @@ function H0(e) {
|
|
|
12674
12674
|
}
|
|
12675
12675
|
return s;
|
|
12676
12676
|
}
|
|
12677
|
-
function
|
|
12677
|
+
function H0(e) {
|
|
12678
12678
|
var c, h, d;
|
|
12679
12679
|
const { id: t, segmentId: n, documentDataModel: r } = e, s = r == null ? void 0 : r.getBody();
|
|
12680
12680
|
if (!r || !s)
|
|
@@ -12753,16 +12753,16 @@ function z0() {
|
|
|
12753
12753
|
if (m === D)
|
|
12754
12754
|
return m ? [[n, m]] : [];
|
|
12755
12755
|
if (O != null) {
|
|
12756
|
-
var
|
|
12757
|
-
if (
|
|
12758
|
-
return
|
|
12756
|
+
var v = F(m, D, O);
|
|
12757
|
+
if (v)
|
|
12758
|
+
return v;
|
|
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
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]), L && P.push([n, L]),
|
|
12765
|
+
return M && P.unshift([n, M]), L && P.push([n, L]), $(P, A), T && h(P), P;
|
|
12766
12766
|
}
|
|
12767
12767
|
function s(m, D) {
|
|
12768
12768
|
var O;
|
|
@@ -12770,12 +12770,12 @@ function z0() {
|
|
|
12770
12770
|
return [[t, D]];
|
|
12771
12771
|
if (!D)
|
|
12772
12772
|
return [[e, m]];
|
|
12773
|
-
var T = m.length > D.length ? m : D, A = m.length > D.length ? D : m,
|
|
12774
|
-
if (
|
|
12773
|
+
var T = m.length > D.length ? m : D, A = m.length > D.length ? D : m, v = T.indexOf(A);
|
|
12774
|
+
if (v !== -1)
|
|
12775
12775
|
return O = [
|
|
12776
|
-
[t, T.substring(0,
|
|
12776
|
+
[t, T.substring(0, v)],
|
|
12777
12777
|
[n, A],
|
|
12778
|
-
[t, T.substring(
|
|
12778
|
+
[t, T.substring(v + A.length)]
|
|
12779
12779
|
], m.length > D.length && (O[0][0] = O[2][0] = e), O;
|
|
12780
12780
|
if (A.length === 1)
|
|
12781
12781
|
return [
|
|
@@ -12790,12 +12790,12 @@ function z0() {
|
|
|
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),
|
|
12793
|
+
for (var O = m.length, T = D.length, A = Math.ceil((O + T) / 2), v = A, N = 2 * A, M = new Array(N), L = new Array(N), P = 0; P < N; P++)
|
|
12794
12794
|
M[P] = -1, L[P] = -1;
|
|
12795
|
-
M[
|
|
12795
|
+
M[v + 1] = 0, L[v + 1] = 0;
|
|
12796
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
|
-
var B =
|
|
12798
|
+
var B = v + z, j;
|
|
12799
12799
|
z === -Y || z !== Y && M[B - 1] < M[B + 1] ? j = M[B + 1] : j = M[B - 1] + 1;
|
|
12800
12800
|
for (var Q = j - z; j < O && Q < T && m.charAt(j) === D.charAt(Q); )
|
|
12801
12801
|
j++, Q++;
|
|
@@ -12804,7 +12804,7 @@ function z0() {
|
|
|
12804
12804
|
else if (Q > T)
|
|
12805
12805
|
oe += 2;
|
|
12806
12806
|
else if (V) {
|
|
12807
|
-
var ee =
|
|
12807
|
+
var ee = v + q - z;
|
|
12808
12808
|
if (ee >= 0 && ee < N && L[ee] !== -1) {
|
|
12809
12809
|
var U = O - L[ee];
|
|
12810
12810
|
if (j >= U)
|
|
@@ -12813,7 +12813,7 @@ function z0() {
|
|
|
12813
12813
|
}
|
|
12814
12814
|
}
|
|
12815
12815
|
for (var G = -Y + I; G <= Y - x; G += 2) {
|
|
12816
|
-
var ee =
|
|
12816
|
+
var ee = v + G, U;
|
|
12817
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++;
|
|
@@ -12822,9 +12822,9 @@ function z0() {
|
|
|
12822
12822
|
else if (X > T)
|
|
12823
12823
|
I += 2;
|
|
12824
12824
|
else if (!V) {
|
|
12825
|
-
var B =
|
|
12825
|
+
var B = v + q - G;
|
|
12826
12826
|
if (B >= 0 && B < N && M[B] !== -1) {
|
|
12827
|
-
var j = M[B], Q =
|
|
12827
|
+
var j = M[B], Q = v + j - B;
|
|
12828
12828
|
if (U = O - U, j >= U)
|
|
12829
12829
|
return o(m, D, j, Q);
|
|
12830
12830
|
}
|
|
@@ -12837,14 +12837,14 @@ function z0() {
|
|
|
12837
12837
|
];
|
|
12838
12838
|
}
|
|
12839
12839
|
function o(m, D, O, T) {
|
|
12840
|
-
var A = m.substring(0, O),
|
|
12840
|
+
var A = m.substring(0, O), v = D.substring(0, T), N = m.substring(O), M = D.substring(T), L = r(A, v), P = r(N, M);
|
|
12841
12841
|
return L.concat(P);
|
|
12842
12842
|
}
|
|
12843
12843
|
function a(m, D) {
|
|
12844
12844
|
if (!m || !D || m.charAt(0) !== D.charAt(0))
|
|
12845
12845
|
return 0;
|
|
12846
|
-
for (var O = 0, T = Math.min(m.length, D.length), A = T,
|
|
12847
|
-
m.substring(
|
|
12846
|
+
for (var O = 0, T = Math.min(m.length, D.length), A = T, v = 0; O < A; )
|
|
12847
|
+
m.substring(v, A) == D.substring(v, A) ? (O = A, v = O) : T = A, A = Math.floor((T - O) / 2 + O);
|
|
12848
12848
|
return k(m.charCodeAt(A - 1)) && A--, A;
|
|
12849
12849
|
}
|
|
12850
12850
|
function l(m, D) {
|
|
@@ -12855,18 +12855,18 @@ function z0() {
|
|
|
12855
12855
|
var A = Math.min(O, T);
|
|
12856
12856
|
if (m == D)
|
|
12857
12857
|
return A;
|
|
12858
|
-
for (var
|
|
12858
|
+
for (var v = 0, N = 1; ; ) {
|
|
12859
12859
|
var M = m.substring(A - N), L = D.indexOf(M);
|
|
12860
12860
|
if (L == -1)
|
|
12861
|
-
return
|
|
12862
|
-
N += L, (L == 0 || m.substring(A - N) == D.substring(0, N)) && (
|
|
12861
|
+
return v;
|
|
12862
|
+
N += L, (L == 0 || m.substring(A - N) == D.substring(0, N)) && (v = N, N++);
|
|
12863
12863
|
}
|
|
12864
12864
|
}
|
|
12865
12865
|
function u(m, D) {
|
|
12866
12866
|
if (!m || !D || m.slice(-1) !== D.slice(-1))
|
|
12867
12867
|
return 0;
|
|
12868
|
-
for (var O = 0, T = Math.min(m.length, D.length), A = T,
|
|
12869
|
-
m.substring(m.length - A, m.length -
|
|
12868
|
+
for (var O = 0, T = Math.min(m.length, D.length), A = T, v = 0; O < A; )
|
|
12869
|
+
m.substring(m.length - A, m.length - v) == D.substring(D.length - A, D.length - v) ? (O = A, v = O) : T = A, A = Math.floor((T - O) / 2 + O);
|
|
12870
12870
|
return W(m.charCodeAt(m.length - A)) && A--, A;
|
|
12871
12871
|
}
|
|
12872
12872
|
function c(m, D) {
|
|
@@ -12892,7 +12892,7 @@ function z0() {
|
|
|
12892
12892
|
B
|
|
12893
12893
|
] : null;
|
|
12894
12894
|
}
|
|
12895
|
-
var
|
|
12895
|
+
var v = A(
|
|
12896
12896
|
O,
|
|
12897
12897
|
T,
|
|
12898
12898
|
Math.ceil(O.length / 4)
|
|
@@ -12901,38 +12901,38 @@ function z0() {
|
|
|
12901
12901
|
T,
|
|
12902
12902
|
Math.ceil(O.length / 2)
|
|
12903
12903
|
), M;
|
|
12904
|
-
if (!
|
|
12904
|
+
if (!v && !N)
|
|
12905
12905
|
return null;
|
|
12906
|
-
N ?
|
|
12906
|
+
N ? v ? M = v[4].length > N[4].length ? v : N : M = N : M = v;
|
|
12907
12907
|
var L, P, q, V;
|
|
12908
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
12910
|
return [L, P, q, V, oe];
|
|
12911
12911
|
}
|
|
12912
12912
|
function h(m) {
|
|
12913
|
-
for (var D = !1, O = [], T = 0, A = null,
|
|
12914
|
-
m[
|
|
12913
|
+
for (var D = !1, O = [], T = 0, A = null, v = 0, N = 0, M = 0, L = 0, P = 0; v < m.length; )
|
|
12914
|
+
m[v][0] == n ? (O[T++] = v, N = L, M = P, L = 0, P = 0, A = m[v][1]) : (m[v][0] == t ? L += m[v][1].length : P += m[v][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--,
|
|
12918
|
-
for (D &&
|
|
12919
|
-
if (m[
|
|
12920
|
-
var q = m[
|
|
12921
|
-
oe >= le ? (oe >= q.length / 2 || oe >= V.length / 2) && (m.splice(
|
|
12917
|
+
]), m[O[T - 1] + 1][0] = t, T--, T--, v = T > 0 ? O[T - 1] : -1, N = 0, M = 0, L = 0, P = 0, A = null, D = !0)), v++;
|
|
12918
|
+
for (D && $(m), b(m), v = 1; v < m.length; ) {
|
|
12919
|
+
if (m[v - 1][0] == e && m[v][0] == t) {
|
|
12920
|
+
var q = m[v - 1][1], V = m[v][1], oe = l(q, V), le = l(V, q);
|
|
12921
|
+
oe >= le ? (oe >= q.length / 2 || oe >= V.length / 2) && (m.splice(v, 0, [
|
|
12922
12922
|
n,
|
|
12923
12923
|
V.substring(0, oe)
|
|
12924
|
-
]), m[
|
|
12924
|
+
]), m[v - 1][1] = q.substring(
|
|
12925
12925
|
0,
|
|
12926
12926
|
q.length - oe
|
|
12927
|
-
), m[
|
|
12927
|
+
), m[v + 1][1] = V.substring(oe), v++) : (le >= q.length / 2 || le >= V.length / 2) && (m.splice(v, 0, [
|
|
12928
12928
|
n,
|
|
12929
12929
|
q.substring(0, le)
|
|
12930
|
-
]), m[
|
|
12930
|
+
]), m[v - 1][0] = t, m[v - 1][1] = V.substring(
|
|
12931
12931
|
0,
|
|
12932
12932
|
V.length - le
|
|
12933
|
-
), m[
|
|
12933
|
+
), m[v + 1][0] = e, m[v + 1][1] = q.substring(le), v++), v++;
|
|
12934
12934
|
}
|
|
12935
|
-
|
|
12935
|
+
v++;
|
|
12936
12936
|
}
|
|
12937
12937
|
}
|
|
12938
12938
|
var d = /[^a-zA-Z0-9]/, f = /\s/, g = /[\r\n]/, _ = /\n\r?\n$/, R = /^\r?\n\r?\n/;
|
|
@@ -12945,24 +12945,24 @@ function z0() {
|
|
|
12945
12945
|
}
|
|
12946
12946
|
for (var O = 1; O < m.length - 1; ) {
|
|
12947
12947
|
if (m[O - 1][0] == n && m[O + 1][0] == n) {
|
|
12948
|
-
var T = m[O - 1][1], A = m[O][1],
|
|
12948
|
+
var T = m[O - 1][1], A = m[O][1], v = m[O + 1][1], N = u(T, A);
|
|
12949
12949
|
if (N) {
|
|
12950
12950
|
var M = A.substring(A.length - N);
|
|
12951
|
-
T = T.substring(0, T.length - N), A = M + A.substring(0, A.length - N),
|
|
12951
|
+
T = T.substring(0, T.length - N), A = M + A.substring(0, A.length - N), v = M + v;
|
|
12952
12952
|
}
|
|
12953
|
-
for (var L = T, P = A, q =
|
|
12954
|
-
T += A.charAt(0), A = A.substring(1) +
|
|
12955
|
-
var oe = D(T, A) + D(A,
|
|
12956
|
-
oe >= V && (V = oe, L = T, P = A, q =
|
|
12953
|
+
for (var L = T, P = A, q = v, V = D(T, A) + D(A, v); A.charAt(0) === v.charAt(0); ) {
|
|
12954
|
+
T += A.charAt(0), A = A.substring(1) + v.charAt(0), v = v.substring(1);
|
|
12955
|
+
var oe = D(T, A) + D(A, v);
|
|
12956
|
+
oe >= V && (V = oe, L = T, P = A, q = v);
|
|
12957
12957
|
}
|
|
12958
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
|
}
|
|
12962
12962
|
}
|
|
12963
|
-
function
|
|
12963
|
+
function $(m, D) {
|
|
12964
12964
|
m.push([n, ""]);
|
|
12965
|
-
for (var O = 0, T = 0, A = 0,
|
|
12965
|
+
for (var O = 0, T = 0, A = 0, v = "", N = "", M; O < m.length; ) {
|
|
12966
12966
|
if (O < m.length - 1 && !m[O][1]) {
|
|
12967
12967
|
m.splice(O, 1);
|
|
12968
12968
|
continue;
|
|
@@ -12972,7 +12972,7 @@ function z0() {
|
|
|
12972
12972
|
A++, N += m[O][1], O++;
|
|
12973
12973
|
break;
|
|
12974
12974
|
case e:
|
|
12975
|
-
T++,
|
|
12975
|
+
T++, v += m[O][1], O++;
|
|
12976
12976
|
break;
|
|
12977
12977
|
case n:
|
|
12978
12978
|
var L = O - A - T - 1;
|
|
@@ -12982,44 +12982,44 @@ function z0() {
|
|
|
12982
12982
|
if (m[L][1] = m[L][1].slice(
|
|
12983
12983
|
0,
|
|
12984
12984
|
-1
|
|
12985
|
-
),
|
|
12985
|
+
), v = P + v, N = P + N, !m[L][1]) {
|
|
12986
12986
|
m.splice(L, 1), O--;
|
|
12987
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++,
|
|
12988
|
+
m[q] && m[q][0] === t && (A++, N = m[q][1] + N, q--), m[q] && m[q][0] === e && (T++, v = m[q][1] + v, q--), L = q;
|
|
12989
12989
|
}
|
|
12990
12990
|
}
|
|
12991
12991
|
if (w(m[O][1])) {
|
|
12992
12992
|
var P = m[O][1].charAt(0);
|
|
12993
|
-
m[O][1] = m[O][1].slice(1),
|
|
12993
|
+
m[O][1] = m[O][1].slice(1), v += P, N += P;
|
|
12994
12994
|
}
|
|
12995
12995
|
}
|
|
12996
12996
|
if (O < m.length - 1 && !m[O][1]) {
|
|
12997
12997
|
m.splice(O, 1);
|
|
12998
12998
|
break;
|
|
12999
12999
|
}
|
|
13000
|
-
if (
|
|
13001
|
-
|
|
13000
|
+
if (v.length > 0 || N.length > 0) {
|
|
13001
|
+
v.length > 0 && N.length > 0 && (M = a(N, v), M !== 0 && (L >= 0 ? m[L][1] += N.substring(
|
|
13002
13002
|
0,
|
|
13003
13003
|
M
|
|
13004
13004
|
) : (m.splice(0, 0, [
|
|
13005
13005
|
n,
|
|
13006
13006
|
N.substring(0, M)
|
|
13007
|
-
]), O++), N = N.substring(M),
|
|
13007
|
+
]), O++), N = N.substring(M), v = v.substring(M)), M = u(N, v), M !== 0 && (m[O][1] = N.substring(N.length - M) + m[O][1], N = N.substring(
|
|
13008
13008
|
0,
|
|
13009
13009
|
N.length - M
|
|
13010
|
-
),
|
|
13010
|
+
), v = v.substring(
|
|
13011
13011
|
0,
|
|
13012
|
-
|
|
13012
|
+
v.length - M
|
|
13013
13013
|
)));
|
|
13014
13014
|
var V = A + T;
|
|
13015
|
-
|
|
13015
|
+
v.length === 0 && N.length === 0 ? (m.splice(O - V, V), O = O - V) : v.length === 0 ? (m.splice(O - V, V, [t, N]), O = O - V + 1) : N.length === 0 ? (m.splice(O - V, V, [e, v]), O = O - V + 1) : (m.splice(
|
|
13016
13016
|
O - V,
|
|
13017
13017
|
V,
|
|
13018
|
-
[e,
|
|
13018
|
+
[e, v],
|
|
13019
13019
|
[t, N]
|
|
13020
13020
|
), O = O - V + 2);
|
|
13021
13021
|
}
|
|
13022
|
-
O !== 0 && m[O - 1][0] === n ? (m[O - 1][1] += m[O][1], m.splice(O, 1)) : O++, A = 0, T = 0,
|
|
13022
|
+
O !== 0 && m[O - 1][0] === n ? (m[O - 1][1] += m[O][1], m.splice(O, 1)) : O++, A = 0, T = 0, v = "", N = "";
|
|
13023
13023
|
break;
|
|
13024
13024
|
}
|
|
13025
13025
|
}
|
|
@@ -13032,7 +13032,7 @@ function z0() {
|
|
|
13032
13032
|
0,
|
|
13033
13033
|
m[O][1].length - m[O - 1][1].length
|
|
13034
13034
|
), m[O + 1][1] = m[O - 1][1] + m[O + 1][1], m.splice(O - 1, 1), oe = !0) : m[O][1].substring(0, m[O + 1][1].length) == m[O + 1][1] && (m[O - 1][1] += m[O + 1][1], m[O][1] = m[O][1].substring(m[O + 1][1].length) + m[O + 1][1], m.splice(O + 1, 1), oe = !0)), O++;
|
|
13035
|
-
oe &&
|
|
13035
|
+
oe && $(m, D);
|
|
13036
13036
|
}
|
|
13037
13037
|
function k(m) {
|
|
13038
13038
|
return m >= 55296 && m <= 56319;
|
|
@@ -13046,13 +13046,13 @@ function z0() {
|
|
|
13046
13046
|
function C(m) {
|
|
13047
13047
|
return k(m.charCodeAt(m.length - 1));
|
|
13048
13048
|
}
|
|
13049
|
-
function
|
|
13049
|
+
function S(m) {
|
|
13050
13050
|
for (var D = [], O = 0; O < m.length; O++)
|
|
13051
13051
|
m[O][1].length > 0 && D.push(m[O]);
|
|
13052
13052
|
return D;
|
|
13053
13053
|
}
|
|
13054
13054
|
function y(m, D, O, T) {
|
|
13055
|
-
return C(m) || w(T) ? null :
|
|
13055
|
+
return C(m) || w(T) ? null : S([
|
|
13056
13056
|
[n, m],
|
|
13057
13057
|
[e, D],
|
|
13058
13058
|
[t, O],
|
|
@@ -13060,11 +13060,11 @@ function z0() {
|
|
|
13060
13060
|
]);
|
|
13061
13061
|
}
|
|
13062
13062
|
function F(m, D, O) {
|
|
13063
|
-
var T = typeof O == "number" ? { index: O, length: 0 } : O.oldRange, A = typeof O == "number" ? null : O.newRange,
|
|
13063
|
+
var T = typeof O == "number" ? { index: O, length: 0 } : O.oldRange, A = typeof O == "number" ? null : O.newRange, v = m.length, N = D.length;
|
|
13064
13064
|
if (T.length === 0 && (A === null || A.length === 0)) {
|
|
13065
13065
|
var M = T.index, L = m.slice(0, M), P = m.slice(M), q = A ? A.index : null;
|
|
13066
13066
|
e: {
|
|
13067
|
-
var V = M + N -
|
|
13067
|
+
var V = M + N - v;
|
|
13068
13068
|
if (q !== null && q !== V || V < 0 || V > N)
|
|
13069
13069
|
break e;
|
|
13070
13070
|
var oe = D.slice(0, V), le = D.slice(V);
|
|
@@ -13082,7 +13082,7 @@ function z0() {
|
|
|
13082
13082
|
var j = M, oe = D.slice(0, j), le = D.slice(j);
|
|
13083
13083
|
if (oe !== L)
|
|
13084
13084
|
break e;
|
|
13085
|
-
var Q = Math.min(
|
|
13085
|
+
var Q = Math.min(v - 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);
|
|
@@ -13097,18 +13097,18 @@ function z0() {
|
|
|
13097
13097
|
var Y = D.slice(0, I), U = D.slice(N - Q);
|
|
13098
13098
|
if (x !== Y || ee !== U)
|
|
13099
13099
|
break e;
|
|
13100
|
-
var z = m.slice(I,
|
|
13100
|
+
var z = m.slice(I, v - Q), B = D.slice(I, N - Q);
|
|
13101
13101
|
return y(x, z, B, ee);
|
|
13102
13102
|
}
|
|
13103
13103
|
return null;
|
|
13104
13104
|
}
|
|
13105
|
-
function
|
|
13105
|
+
function H(m, D, O, T) {
|
|
13106
13106
|
return r(m, D, O, T, !0);
|
|
13107
13107
|
}
|
|
13108
|
-
return
|
|
13108
|
+
return H.INSERT = t, H.DELETE = e, H.EQUAL = n, mi = H, mi;
|
|
13109
13109
|
}
|
|
13110
13110
|
var V0 = z0();
|
|
13111
|
-
const oc = /* @__PURE__ */
|
|
13111
|
+
const oc = /* @__PURE__ */ vt(V0);
|
|
13112
13112
|
function G0(e) {
|
|
13113
13113
|
var h, d, f;
|
|
13114
13114
|
const { rangeId: t, segmentId: n, documentDataModel: r, insert: s } = e, i = (d = (h = r.getSelfOrHeaderFooterModel(n).getBody()) == null ? void 0 : h.customRanges) == null ? void 0 : d.find((g) => g.rangeId === t);
|
|
@@ -13147,13 +13147,13 @@ function K0(e) {
|
|
|
13147
13147
|
const h = Y0(c, o);
|
|
13148
13148
|
if (!h || !o)
|
|
13149
13149
|
return !1;
|
|
13150
|
-
const { startOffset: d, endOffset: f } = h, g = (k = o.customRanges) != null ? k : [], _ = (C,
|
|
13151
|
-
var O, T, A,
|
|
13152
|
-
const F = ic(C,
|
|
13150
|
+
const { startOffset: d, endOffset: f } = h, g = (k = o.customRanges) != null ? k : [], _ = (C, S, y) => {
|
|
13151
|
+
var O, T, A, v;
|
|
13152
|
+
const F = ic(C, S, g, r), H = Math.min((T = (O = F[0]) == null ? void 0 : O.startIndex) != null ? T : 1 / 0, C), m = Math.max((v = (A = F[F.length - 1]) == null ? void 0 : A.endIndex) != null ? v : -1 / 0, S), D = {
|
|
13153
13153
|
rangeId: y ? `${n}$${y}` : n,
|
|
13154
13154
|
rangeType: r,
|
|
13155
13155
|
startIndex: 0,
|
|
13156
|
-
endIndex: m -
|
|
13156
|
+
endIndex: m - H,
|
|
13157
13157
|
wholeEntity: s,
|
|
13158
13158
|
properties: {
|
|
13159
13159
|
...i
|
|
@@ -13161,10 +13161,10 @@ function K0(e) {
|
|
|
13161
13161
|
};
|
|
13162
13162
|
l.push({
|
|
13163
13163
|
t: J.RETAIN,
|
|
13164
|
-
len:
|
|
13164
|
+
len: H - a
|
|
13165
13165
|
}), l.push({
|
|
13166
13166
|
t: J.RETAIN,
|
|
13167
|
-
len: m -
|
|
13167
|
+
len: m - H + 1,
|
|
13168
13168
|
body: {
|
|
13169
13169
|
dataStream: "",
|
|
13170
13170
|
customRanges: [D]
|
|
@@ -13172,7 +13172,7 @@ function K0(e) {
|
|
|
13172
13172
|
coverType: pe.COVER
|
|
13173
13173
|
}), a = m + 1;
|
|
13174
13174
|
}, R = ((W = o.paragraphs) != null ? W : []).filter((C) => C.startIndex < f && C.startIndex > d), b = ((w = o.customBlocks) != null ? w : []).filter((C) => C.startIndex < f && C.startIndex > d);
|
|
13175
|
-
W0([d, f - 1], [...R.map((C) => C.startIndex), ...b.map((C) => C.startIndex)]).forEach(([C,
|
|
13175
|
+
W0([d, f - 1], [...R.map((C) => C.startIndex), ...b.map((C) => C.startIndex)]).forEach(([C, S], y) => _(C, S, y)), u = !0, l.selections = [{
|
|
13176
13176
|
startOffset: h.endOffset,
|
|
13177
13177
|
endOffset: h.endOffset,
|
|
13178
13178
|
collapsed: !0
|
|
@@ -13297,13 +13297,13 @@ const Z0 = (e) => {
|
|
|
13297
13297
|
const _ = ji(n, u, u + g.length, !1), R = ji(a, u, u + g.length, !1), b = {
|
|
13298
13298
|
t: J.RETAIN,
|
|
13299
13299
|
body: J0(_, R) ? void 0 : {
|
|
13300
|
-
textRuns: _ == null ? void 0 : _.map((
|
|
13301
|
-
var k, W, w, C,
|
|
13300
|
+
textRuns: _ == null ? void 0 : _.map(($) => {
|
|
13301
|
+
var k, W, w, C, S, y, F;
|
|
13302
13302
|
return {
|
|
13303
|
-
|
|
13303
|
+
...$,
|
|
13304
13304
|
ts: {
|
|
13305
|
-
|
|
13306
|
-
cl: (w = (W = (k =
|
|
13305
|
+
...$.ts,
|
|
13306
|
+
cl: (w = (W = (k = $.ts) == null ? void 0 : k.cl) == null ? void 0 : W.rgb) != null && w.includes(".") ? { rgb: s.getColorFromTheme((y = (S = (C = $.ts) == null ? void 0 : C.cl) == null ? void 0 : S.rgb) != null ? y : "") } : (F = $.ts) == null ? void 0 : F.cl
|
|
13307
13307
|
}
|
|
13308
13308
|
};
|
|
13309
13309
|
}),
|
|
@@ -13363,7 +13363,7 @@ function eE(e, t = "") {
|
|
|
13363
13363
|
throw new Error("Segment id not found in headers or footers");
|
|
13364
13364
|
}
|
|
13365
13365
|
const tE = (e) => {
|
|
13366
|
-
var _, R, b,
|
|
13366
|
+
var _, R, b, $;
|
|
13367
13367
|
const { selection: t, documentDataModel: n, drawings: r } = e, { collapsed: s, startOffset: i, segmentId: o } = t, a = new Te(), l = tn.getInstance(), u = [], c = n.getSelfOrHeaderFooterModel(o).getBody();
|
|
13368
13368
|
if (!c)
|
|
13369
13369
|
return !1;
|
|
@@ -13377,13 +13377,13 @@ const tE = (e) => {
|
|
|
13377
13377
|
else {
|
|
13378
13378
|
const k = ac([t], c, 0, null, !1);
|
|
13379
13379
|
a.push(...k);
|
|
13380
|
-
const W = Q0(c, [t]), w = (b = n.getDrawings()) != null ? b : {}, C = (
|
|
13381
|
-
if (
|
|
13382
|
-
for (const y of
|
|
13383
|
-
const F = w[y],
|
|
13384
|
-
if (F == null ||
|
|
13380
|
+
const W = Q0(c, [t]), w = (b = n.getDrawings()) != null ? b : {}, C = ($ = n.getDrawingsOrder()) != null ? $ : [], S = W.sort((y, F) => C.indexOf(y) > C.indexOf(F) ? -1 : C.indexOf(y) < C.indexOf(F) ? 1 : 0);
|
|
13381
|
+
if (S.length > 0)
|
|
13382
|
+
for (const y of S) {
|
|
13383
|
+
const F = w[y], H = C.indexOf(y);
|
|
13384
|
+
if (F == null || H < 0)
|
|
13385
13385
|
continue;
|
|
13386
|
-
const m = l.removeOp(["drawings", y], F), D = l.removeOp(["drawingsOrder",
|
|
13386
|
+
const m = l.removeOp(["drawings", y], F), D = l.removeOp(["drawingsOrder", H], y);
|
|
13387
13387
|
u.push(m), u.push(D), d++;
|
|
13388
13388
|
}
|
|
13389
13389
|
}
|
|
@@ -13603,8 +13603,8 @@ const cE = (e) => {
|
|
|
13603
13603
|
len: f - s.cursor
|
|
13604
13604
|
}), _) {
|
|
13605
13605
|
const b = _.listType;
|
|
13606
|
-
let
|
|
13607
|
-
R && (
|
|
13606
|
+
let $ = l[b].nestingLevel.length - 1;
|
|
13607
|
+
R && ($ = Math.min($, 2)), i.push({
|
|
13608
13608
|
t: J.RETAIN,
|
|
13609
13609
|
len: 1,
|
|
13610
13610
|
body: {
|
|
@@ -13617,7 +13617,7 @@ const cE = (e) => {
|
|
|
13617
13617
|
},
|
|
13618
13618
|
bullet: {
|
|
13619
13619
|
..._,
|
|
13620
|
-
nestingLevel: Math.max(Math.min(_.nestingLevel + r,
|
|
13620
|
+
nestingLevel: Math.max(Math.min(_.nestingLevel + r, $), 0)
|
|
13621
13621
|
}
|
|
13622
13622
|
}
|
|
13623
13623
|
]
|
|
@@ -13633,7 +13633,7 @@ const cE = (e) => {
|
|
|
13633
13633
|
}
|
|
13634
13634
|
return i;
|
|
13635
13635
|
}, hE = (e) => {
|
|
13636
|
-
var R, b,
|
|
13636
|
+
var R, b, $, k;
|
|
13637
13637
|
const {
|
|
13638
13638
|
textRanges: t,
|
|
13639
13639
|
segmentId: n,
|
|
@@ -13643,7 +13643,7 @@ const cE = (e) => {
|
|
|
13643
13643
|
cursor: o,
|
|
13644
13644
|
deleteLen: a,
|
|
13645
13645
|
textX: l
|
|
13646
|
-
} = e, u = r.getSelfOrHeaderFooterModel(n), c = (b = (R = u.getBody()) == null ? void 0 : R.paragraphs) != null ? b : [], h = (k = (
|
|
13646
|
+
} = e, u = r.getSelfOrHeaderFooterModel(n), c = (b = (R = u.getBody()) == null ? void 0 : R.paragraphs) != null ? b : [], h = (k = ($ = u.getBody()) == null ? void 0 : $.dataStream) != null ? k : "", d = Yi(t, c, h), f = new Xn();
|
|
13647
13647
|
o && f.moveCursorTo(o);
|
|
13648
13648
|
const g = l != null ? l : new Te();
|
|
13649
13649
|
d.sort((W, w) => W.startIndex - w.startIndex);
|
|
@@ -13656,17 +13656,17 @@ const cE = (e) => {
|
|
|
13656
13656
|
len: a
|
|
13657
13657
|
});
|
|
13658
13658
|
for (const W of d) {
|
|
13659
|
-
const { startIndex: w, paragraphStyle: C = {} } = W,
|
|
13659
|
+
const { startIndex: w, paragraphStyle: C = {} } = W, S = w - f.cursor;
|
|
13660
13660
|
g.push({
|
|
13661
13661
|
t: J.RETAIN,
|
|
13662
|
-
len:
|
|
13662
|
+
len: S,
|
|
13663
13663
|
...i ? {
|
|
13664
13664
|
body: {
|
|
13665
13665
|
dataStream: "",
|
|
13666
13666
|
textRuns: [{
|
|
13667
13667
|
ts: i,
|
|
13668
13668
|
st: 0,
|
|
13669
|
-
ed:
|
|
13669
|
+
ed: S
|
|
13670
13670
|
}]
|
|
13671
13671
|
},
|
|
13672
13672
|
coverType: pe.REPLACE
|
|
@@ -13700,8 +13700,8 @@ p(Qe, "customRange", {
|
|
|
13700
13700
|
getCustomRangesInterestsWithSelection: B0,
|
|
13701
13701
|
isIntersecting: sc
|
|
13702
13702
|
}), p(Qe, "customDecoration", {
|
|
13703
|
-
add:
|
|
13704
|
-
delete:
|
|
13703
|
+
add: $0,
|
|
13704
|
+
delete: H0
|
|
13705
13705
|
}), p(Qe, "selection", {
|
|
13706
13706
|
replace: q0,
|
|
13707
13707
|
makeSelection: nE,
|
|
@@ -15472,7 +15472,7 @@ class F1 extends it {
|
|
|
15472
15472
|
throw new Error("[EventSubject]: cannot emit event on a closed subject.");
|
|
15473
15473
|
}
|
|
15474
15474
|
}
|
|
15475
|
-
function
|
|
15475
|
+
function $1(e) {
|
|
15476
15476
|
return new yr((t) => {
|
|
15477
15477
|
const n = e.subscribeEvent((r) => {
|
|
15478
15478
|
t.next(r);
|
|
@@ -15481,10 +15481,10 @@ function H1(e) {
|
|
|
15481
15481
|
});
|
|
15482
15482
|
}
|
|
15483
15483
|
const ra = lt("core.resource-manager.service"), zi = {
|
|
15484
|
-
[
|
|
15485
|
-
[
|
|
15486
|
-
[
|
|
15487
|
-
[
|
|
15484
|
+
[Re.Editor]: "Editor",
|
|
15485
|
+
[Re.Owner]: "Owner",
|
|
15486
|
+
[Re.Reader]: "Reader",
|
|
15487
|
+
[Re.UNRECOGNIZED]: "UNRECOGNIZED"
|
|
15488
15488
|
}, Vi = (e) => e ? {
|
|
15489
15489
|
userID: `${zi[e]}_${tt(8)}`,
|
|
15490
15490
|
name: zi[e],
|
|
@@ -15546,11 +15546,13 @@ var gE = Object.getOwnPropertyDescriptor, _E = (e, t, n, r) => {
|
|
|
15546
15546
|
let Gi = class {
|
|
15547
15547
|
constructor(e, t) {
|
|
15548
15548
|
p(this, "_permissionMap", /* @__PURE__ */ new Map([]));
|
|
15549
|
+
// Store explicit permission overrides: key is "objectID:action", value is the allowed state
|
|
15550
|
+
p(this, "_permissionOverrides", /* @__PURE__ */ new Map());
|
|
15549
15551
|
this._resourceManagerService = e, this._userManagerService = t, this._initSnapshot(), this._initDefaultUser();
|
|
15550
15552
|
}
|
|
15551
15553
|
_initDefaultUser() {
|
|
15552
15554
|
const e = this._userManagerService.getCurrentUser();
|
|
15553
|
-
e && e.userID || this._userManagerService.setCurrentUser(Vi(
|
|
15555
|
+
e && e.userID || this._userManagerService.setCurrentUser(Vi(Re.Owner));
|
|
15554
15556
|
}
|
|
15555
15557
|
_getRole(e) {
|
|
15556
15558
|
const t = this._userManagerService.getCurrentUser();
|
|
@@ -15584,19 +15586,19 @@ let Gi = class {
|
|
|
15584
15586
|
name: (i == null ? void 0 : i.name) || "",
|
|
15585
15587
|
strategies: [
|
|
15586
15588
|
// 默认策略:Owner 和 Editor 拥有所有权限
|
|
15587
|
-
{ action: 6, role:
|
|
15588
|
-
{ action: 16, role:
|
|
15589
|
-
{ action: 17, role:
|
|
15590
|
-
{ action: 18, role:
|
|
15591
|
-
{ action: 19, role:
|
|
15592
|
-
{ action: 33, role:
|
|
15593
|
-
{ action: 34, role:
|
|
15594
|
-
{ action: 35, role:
|
|
15595
|
-
{ action: 36, role:
|
|
15596
|
-
{ action: 37, role:
|
|
15597
|
-
{ action: 38, role:
|
|
15598
|
-
{ action: 39, role:
|
|
15599
|
-
{ action: 40, role:
|
|
15589
|
+
{ action: 6, role: Re.Owner },
|
|
15590
|
+
{ action: 16, role: Re.Owner },
|
|
15591
|
+
{ action: 17, role: Re.Owner },
|
|
15592
|
+
{ action: 18, role: Re.Owner },
|
|
15593
|
+
{ action: 19, role: Re.Owner },
|
|
15594
|
+
{ action: 33, role: Re.Owner },
|
|
15595
|
+
{ action: 34, role: Re.Owner },
|
|
15596
|
+
{ action: 35, role: Re.Owner },
|
|
15597
|
+
{ action: 36, role: Re.Owner },
|
|
15598
|
+
{ action: 37, role: Re.Owner },
|
|
15599
|
+
{ action: 38, role: Re.Owner },
|
|
15600
|
+
{ action: 39, role: Re.Owner },
|
|
15601
|
+
{ action: 40, role: Re.Owner }
|
|
15600
15602
|
],
|
|
15601
15603
|
selectRangeObject: r
|
|
15602
15604
|
};
|
|
@@ -15605,14 +15607,17 @@ let Gi = class {
|
|
|
15605
15607
|
async allowed(e) {
|
|
15606
15608
|
const { objectID: t, actions: n } = e, r = this._permissionMap.get(t);
|
|
15607
15609
|
return r ? n.map((i) => {
|
|
15608
|
-
const o =
|
|
15609
|
-
|
|
15610
|
+
const o = `${t}:${i}`;
|
|
15611
|
+
if (this._permissionOverrides.has(o))
|
|
15612
|
+
return { action: i, allowed: this._permissionOverrides.get(o) };
|
|
15613
|
+
const a = r.strategies.find((l) => l.action === i);
|
|
15614
|
+
return a ? {
|
|
15610
15615
|
action: i,
|
|
15611
|
-
allowed: this._getRole(
|
|
15612
|
-
} : { action: i, allowed:
|
|
15616
|
+
allowed: this._getRole(a.role)
|
|
15617
|
+
} : { action: i, allowed: this._getRole(Re.Owner) || this._getRole(Re.Editor) };
|
|
15613
15618
|
}) : n.map((o) => ({
|
|
15614
15619
|
action: o,
|
|
15615
|
-
allowed: this._getRole(
|
|
15620
|
+
allowed: this._getRole(Re.Owner) || this._getRole(Re.Editor)
|
|
15616
15621
|
}));
|
|
15617
15622
|
}
|
|
15618
15623
|
async batchAllowed(e) {
|
|
@@ -15625,19 +15630,19 @@ let Gi = class {
|
|
|
15625
15630
|
}
|
|
15626
15631
|
async list(e) {
|
|
15627
15632
|
const t = [], n = [
|
|
15628
|
-
{ action: 6, role:
|
|
15629
|
-
{ action: 16, role:
|
|
15630
|
-
{ action: 17, role:
|
|
15631
|
-
{ action: 18, role:
|
|
15632
|
-
{ action: 19, role:
|
|
15633
|
-
{ action: 33, role:
|
|
15634
|
-
{ action: 34, role:
|
|
15635
|
-
{ action: 35, role:
|
|
15636
|
-
{ action: 36, role:
|
|
15637
|
-
{ action: 37, role:
|
|
15638
|
-
{ action: 38, role:
|
|
15639
|
-
{ action: 39, role:
|
|
15640
|
-
{ action: 40, role:
|
|
15633
|
+
{ action: 6, role: Re.Owner },
|
|
15634
|
+
{ action: 16, role: Re.Owner },
|
|
15635
|
+
{ action: 17, role: Re.Owner },
|
|
15636
|
+
{ action: 18, role: Re.Owner },
|
|
15637
|
+
{ action: 19, role: Re.Owner },
|
|
15638
|
+
{ action: 33, role: Re.Owner },
|
|
15639
|
+
{ action: 34, role: Re.Owner },
|
|
15640
|
+
{ action: 35, role: Re.Owner },
|
|
15641
|
+
{ action: 36, role: Re.Owner },
|
|
15642
|
+
{ action: 37, role: Re.Owner },
|
|
15643
|
+
{ action: 38, role: Re.Owner },
|
|
15644
|
+
{ action: 39, role: Re.Owner },
|
|
15645
|
+
{ action: 40, role: Re.Owner }
|
|
15641
15646
|
];
|
|
15642
15647
|
return e.objectIDs.forEach((r) => {
|
|
15643
15648
|
const s = this._permissionMap.get(r), i = (s == null ? void 0 : s.strategies) || n, o = {
|
|
@@ -15647,17 +15652,24 @@ let Gi = class {
|
|
|
15647
15652
|
// 默认 SelectRange = 3
|
|
15648
15653
|
name: (s == null ? void 0 : s.name) || "",
|
|
15649
15654
|
shareOn: !1,
|
|
15650
|
-
shareRole:
|
|
15655
|
+
shareRole: Re.Owner,
|
|
15651
15656
|
shareScope: -1,
|
|
15652
15657
|
scope: {
|
|
15653
|
-
read:
|
|
15654
|
-
edit:
|
|
15658
|
+
read: vi.AllCollaborator,
|
|
15659
|
+
edit: vi.AllCollaborator
|
|
15655
15660
|
},
|
|
15656
|
-
creator: Vi(
|
|
15661
|
+
creator: Vi(Re.Owner),
|
|
15657
15662
|
strategies: i.map((a) => ({ action: a.action, role: a.role })),
|
|
15658
15663
|
actions: e.actions.map((a) => {
|
|
15659
|
-
const l =
|
|
15660
|
-
|
|
15664
|
+
const l = `${r}:${a}`;
|
|
15665
|
+
if (this._permissionOverrides.has(l))
|
|
15666
|
+
return { action: a, allowed: this._permissionOverrides.get(l) };
|
|
15667
|
+
const u = i.find((c) => c.action === a);
|
|
15668
|
+
if (!u) {
|
|
15669
|
+
const c = this._getRole(Re.Owner) || this._getRole(Re.Editor);
|
|
15670
|
+
return { action: a, allowed: c };
|
|
15671
|
+
}
|
|
15672
|
+
return { action: a, allowed: this._getRole(u.role) };
|
|
15661
15673
|
})
|
|
15662
15674
|
};
|
|
15663
15675
|
t.push(o);
|
|
@@ -15679,7 +15691,39 @@ let Gi = class {
|
|
|
15679
15691
|
r && n && (r.strategies = n.map((s) => ({
|
|
15680
15692
|
action: s.action,
|
|
15681
15693
|
role: s.role
|
|
15682
|
-
})), this._permissionMap.set(t, r))
|
|
15694
|
+
})), this._permissionMap.set(t, r), n.forEach((s) => {
|
|
15695
|
+
s.role === Re.Reader ? this.setPermissionOverride(t, s.action, !1) : (s.role === Re.Owner || s.role === Re.Editor) && this.clearPermissionOverride(t, s.action);
|
|
15696
|
+
}));
|
|
15697
|
+
}
|
|
15698
|
+
/**
|
|
15699
|
+
* Set an explicit permission override for a specific action on an object.
|
|
15700
|
+
* This override takes precedence over strategies.
|
|
15701
|
+
* @param objectID - The permission object ID
|
|
15702
|
+
* @param action - The action number
|
|
15703
|
+
* @param allowed - Whether the action is allowed
|
|
15704
|
+
*/
|
|
15705
|
+
setPermissionOverride(e, t, n) {
|
|
15706
|
+
const r = `${e}:${t}`;
|
|
15707
|
+
this._permissionOverrides.set(r, n);
|
|
15708
|
+
}
|
|
15709
|
+
/**
|
|
15710
|
+
* Clear a specific permission override.
|
|
15711
|
+
* @param objectID - The permission object ID
|
|
15712
|
+
* @param action - The action number
|
|
15713
|
+
*/
|
|
15714
|
+
clearPermissionOverride(e, t) {
|
|
15715
|
+
const n = `${e}:${t}`;
|
|
15716
|
+
this._permissionOverrides.delete(n);
|
|
15717
|
+
}
|
|
15718
|
+
/**
|
|
15719
|
+
* Clear all permission overrides for an object.
|
|
15720
|
+
* @param objectID - The permission object ID
|
|
15721
|
+
*/
|
|
15722
|
+
clearAllOverrides(e) {
|
|
15723
|
+
const t = [];
|
|
15724
|
+
this._permissionOverrides.forEach((n, r) => {
|
|
15725
|
+
r.startsWith(`${e}:`) && t.push(r);
|
|
15726
|
+
}), t.forEach((n) => this._permissionOverrides.delete(n));
|
|
15683
15727
|
}
|
|
15684
15728
|
async updateCollaborator() {
|
|
15685
15729
|
}
|
|
@@ -15692,7 +15736,7 @@ Gi = _E([
|
|
|
15692
15736
|
Il(0, ra),
|
|
15693
15737
|
Il(1, wt(Is))
|
|
15694
15738
|
], Gi);
|
|
15695
|
-
const pE = lt("IAuthzIoIoService"),
|
|
15739
|
+
const pE = lt("IAuthzIoIoService"), H1 = lt("univer.confirm-service");
|
|
15696
15740
|
class B1 {
|
|
15697
15741
|
constructor() {
|
|
15698
15742
|
p(this, "confirmOptions$", new it());
|
|
@@ -15725,10 +15769,10 @@ class RE extends Ge {
|
|
|
15725
15769
|
}
|
|
15726
15770
|
}
|
|
15727
15771
|
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 || {});
|
|
15728
|
-
const wl = lt("core.image-io.service"), wE = "0.
|
|
15772
|
+
const wl = lt("core.image-io.service"), wE = "0.15.0", OE = {
|
|
15729
15773
|
version: wE
|
|
15730
15774
|
};
|
|
15731
|
-
function
|
|
15775
|
+
function vE(e = "", t = Ts.ZH_CN, n = "") {
|
|
15732
15776
|
return {
|
|
15733
15777
|
id: e,
|
|
15734
15778
|
sheetOrder: [],
|
|
@@ -15740,7 +15784,7 @@ function SE(e = "", t = Ts.ZH_CN, n = "") {
|
|
|
15740
15784
|
resources: []
|
|
15741
15785
|
};
|
|
15742
15786
|
}
|
|
15743
|
-
class
|
|
15787
|
+
class SE {
|
|
15744
15788
|
constructor(t = {}) {
|
|
15745
15789
|
p(this, "_styles");
|
|
15746
15790
|
p(this, "_cacheMap", new _s(1e5));
|
|
@@ -15771,7 +15815,8 @@ class vE {
|
|
|
15771
15815
|
n != null && (this._styles[t] = n, this._cacheMap.set(JSON.stringify(n), t));
|
|
15772
15816
|
}
|
|
15773
15817
|
remove(t) {
|
|
15774
|
-
|
|
15818
|
+
const n = this._styles[t];
|
|
15819
|
+
n && (delete this._styles[t], this._cacheMap.delete(JSON.stringify(n)));
|
|
15775
15820
|
}
|
|
15776
15821
|
toJSON() {
|
|
15777
15822
|
return this._styles;
|
|
@@ -15898,7 +15943,7 @@ function AE(e) {
|
|
|
15898
15943
|
paddingData: o
|
|
15899
15944
|
};
|
|
15900
15945
|
}
|
|
15901
|
-
function
|
|
15946
|
+
function vl(e) {
|
|
15902
15947
|
if (!e)
|
|
15903
15948
|
return {};
|
|
15904
15949
|
const { ff: t, fs: n, it: r, bl: s, ul: i, st: o, ol: a, cl: l, bg: u } = e, c = {};
|
|
@@ -15943,7 +15988,7 @@ function Q1() {
|
|
|
15943
15988
|
};
|
|
15944
15989
|
}
|
|
15945
15990
|
const TE = '"Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif';
|
|
15946
|
-
function
|
|
15991
|
+
function Sl(e) {
|
|
15947
15992
|
const t = st.ff, n = st.fs;
|
|
15948
15993
|
if (!e) {
|
|
15949
15994
|
const h = `${n}pt ${t}`;
|
|
@@ -16311,7 +16356,7 @@ class DE {
|
|
|
16311
16356
|
return (n = this.getRow(t)) == null ? void 0 : n.custom;
|
|
16312
16357
|
}
|
|
16313
16358
|
}
|
|
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",
|
|
16359
|
+
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", $E = 46, iI = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", HE = 20;
|
|
16315
16360
|
function BE(e) {
|
|
16316
16361
|
const t = {
|
|
16317
16362
|
name: "Sheet1",
|
|
@@ -16338,11 +16383,11 @@ function BE(e) {
|
|
|
16338
16383
|
columnData: {},
|
|
16339
16384
|
showGridlines: ie.TRUE,
|
|
16340
16385
|
rowHeader: {
|
|
16341
|
-
width:
|
|
16386
|
+
width: $E,
|
|
16342
16387
|
hidden: ie.FALSE
|
|
16343
16388
|
},
|
|
16344
16389
|
columnHeader: {
|
|
16345
|
-
height:
|
|
16390
|
+
height: HE,
|
|
16346
16391
|
hidden: ie.FALSE
|
|
16347
16392
|
},
|
|
16348
16393
|
rightToLeft: ie.FALSE
|
|
@@ -17349,8 +17394,8 @@ class ws {
|
|
|
17349
17394
|
u = h.endRow + 1;
|
|
17350
17395
|
continue;
|
|
17351
17396
|
}
|
|
17352
|
-
const
|
|
17353
|
-
return
|
|
17397
|
+
const $ = { row: u, col: h.startColumn, value: R };
|
|
17398
|
+
return $.colSpan = h.endColumn - h.startColumn + 1, $.rowSpan = h.endRow - h.startRow + 1, u = h.endRow + 1, { done: !1, value: $ };
|
|
17354
17399
|
}
|
|
17355
17400
|
const d = l.getCell(u, c);
|
|
17356
17401
|
if (!d && n)
|
|
@@ -17403,8 +17448,8 @@ class ws {
|
|
|
17403
17448
|
}
|
|
17404
17449
|
);
|
|
17405
17450
|
} else if (t.v != null) {
|
|
17406
|
-
const R =
|
|
17407
|
-
l =
|
|
17451
|
+
const R = vl(n);
|
|
17452
|
+
l = Sl(R).fontCache;
|
|
17408
17453
|
let b = KE(t);
|
|
17409
17454
|
t.t === gn.FORCE_STRING && i && (b = `'${b}`), a = Qr(b, R, {
|
|
17410
17455
|
...u,
|
|
@@ -17443,13 +17488,13 @@ class ws {
|
|
|
17443
17488
|
* Only used for cell edit, and no need to rotate text when edit cell content!
|
|
17444
17489
|
*/
|
|
17445
17490
|
getBlankCellDocumentModel(t, n, r) {
|
|
17446
|
-
const s = this.getComposedCellStyleByCellData(n, r, t), i =
|
|
17491
|
+
const s = this.getComposedCellStyleByCellData(n, r, t), i = vl(s), o = this.getCellDocumentModel(t, s, { ignoreTextRotation: !0 });
|
|
17447
17492
|
if (o != null)
|
|
17448
17493
|
return o.documentModel == null && (o.documentModel = Qr("", i)), o;
|
|
17449
17494
|
const a = "";
|
|
17450
17495
|
let l = "document";
|
|
17451
17496
|
const u = st.tr, c = st.ht, h = st.vt, d = st.tb, f = Ki;
|
|
17452
|
-
return l =
|
|
17497
|
+
return l = Sl({}).fontCache, {
|
|
17453
17498
|
documentModel: Qr(a, i),
|
|
17454
17499
|
fontString: l,
|
|
17455
17500
|
textRotation: u,
|
|
@@ -17544,10 +17589,10 @@ let Os = class extends mo {
|
|
|
17544
17589
|
p(this, "_name$");
|
|
17545
17590
|
p(this, "name$");
|
|
17546
17591
|
this._logService = n;
|
|
17547
|
-
const r =
|
|
17592
|
+
const r = vE();
|
|
17548
17593
|
Z.isEmptyObject(t) ? this._snapshot = r : this._snapshot = Z.commonExtend(r, t);
|
|
17549
17594
|
const { styles: s } = this._snapshot;
|
|
17550
|
-
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = tt(6)), this._unitId = this._snapshot.id, this._styles = new
|
|
17595
|
+
(this._snapshot.id == null || this._snapshot.id.length === 0) && (this._snapshot.id = tt(6)), this._unitId = this._snapshot.id, this._styles = new SE(s), this._count = 1, this._worksheets = /* @__PURE__ */ new Map(), this._name$ = new nt(t.name || ""), this.name$ = this._name$.asObservable(), this._parseWorksheetSnapshots();
|
|
17551
17596
|
}
|
|
17552
17597
|
get _activeSheet() {
|
|
17553
17598
|
return this._activeSheet$.getValue();
|
|
@@ -18122,7 +18167,7 @@ function fc(e) {
|
|
|
18122
18167
|
}
|
|
18123
18168
|
}
|
|
18124
18169
|
const uI = lt("ILocalStorageService");
|
|
18125
|
-
class
|
|
18170
|
+
class $n extends Ge {
|
|
18126
18171
|
constructor() {
|
|
18127
18172
|
super();
|
|
18128
18173
|
p(this, "_currentLocale$", new nt(Ts.ZH_CN));
|
|
@@ -18212,10 +18257,10 @@ let qi = class {
|
|
|
18212
18257
|
async list(e) {
|
|
18213
18258
|
return {
|
|
18214
18259
|
list: [{
|
|
18215
|
-
type:
|
|
18260
|
+
type: Si.PERSON,
|
|
18216
18261
|
mentions: [
|
|
18217
18262
|
{
|
|
18218
|
-
objectType:
|
|
18263
|
+
objectType: Si.PERSON,
|
|
18219
18264
|
objectId: this._userManagerService.getCurrentUser().userID,
|
|
18220
18265
|
label: this._userManagerService.getCurrentUser().name,
|
|
18221
18266
|
metadata: {
|
|
@@ -18327,7 +18372,7 @@ var hC = Object.getOwnPropertyDescriptor, dC = (e, t, n, r) => {
|
|
|
18327
18372
|
(o = e[i]) && (s = o(s) || s);
|
|
18328
18373
|
return s;
|
|
18329
18374
|
}, _i = (e, t) => (n, r) => t(n, r, e);
|
|
18330
|
-
const fC = 4, gc = Symbol("DependentOn");
|
|
18375
|
+
const fC = 4, gc = /* @__PURE__ */ Symbol("DependentOn");
|
|
18331
18376
|
class yl extends Ge {
|
|
18332
18377
|
onStarting() {
|
|
18333
18378
|
}
|
|
@@ -18365,7 +18410,7 @@ function cI(...e) {
|
|
|
18365
18410
|
t[gc] = e;
|
|
18366
18411
|
};
|
|
18367
18412
|
}
|
|
18368
|
-
let
|
|
18413
|
+
let vs = class {
|
|
18369
18414
|
constructor(e, t, n) {
|
|
18370
18415
|
p(this, "_pluginRegistry", /* @__PURE__ */ new Map());
|
|
18371
18416
|
p(this, "_pluginStore", new mC());
|
|
@@ -18478,11 +18523,11 @@ let Ss = class {
|
|
|
18478
18523
|
return this._pluginStore.addPlugin(n), this._loadedPlugins.add(e.pluginName), this._logService.debug("[PluginService]", `Plugin "${n.getPluginName()}" loaded.`), n;
|
|
18479
18524
|
}
|
|
18480
18525
|
};
|
|
18481
|
-
|
|
18526
|
+
vs = dC([
|
|
18482
18527
|
_i(0, wt(zn)),
|
|
18483
18528
|
_i(1, wt(Yn)),
|
|
18484
18529
|
_i(2, Ct)
|
|
18485
|
-
],
|
|
18530
|
+
], vs);
|
|
18486
18531
|
const Nl = lt("resource-loader-service");
|
|
18487
18532
|
var gC = Object.getOwnPropertyDescriptor, _C = (e, t, n, r) => {
|
|
18488
18533
|
for (var s = r > 1 ? void 0 : r ? gC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
@@ -18648,7 +18693,7 @@ const IC = "univer.command.redo", wC = "univer.command.undo", OC = new class ext
|
|
|
18648
18693
|
const s = t.get(Ds);
|
|
18649
18694
|
return Eo(r.undoMutations, s) ? (n.popUndoToRedo(), !0) : !1;
|
|
18650
18695
|
}
|
|
18651
|
-
}(),
|
|
18696
|
+
}(), vC = new class extends _c {
|
|
18652
18697
|
constructor() {
|
|
18653
18698
|
super(...arguments);
|
|
18654
18699
|
p(this, "type", xs.COMMAND);
|
|
@@ -18671,7 +18716,7 @@ let Qi = class extends Ge {
|
|
|
18671
18716
|
p(this, "_undoStacks", /* @__PURE__ */ new Map());
|
|
18672
18717
|
p(this, "_redoStacks", /* @__PURE__ */ new Map());
|
|
18673
18718
|
p(this, "_batchingStatus", /* @__PURE__ */ new Map());
|
|
18674
|
-
this._univerInstanceService = t, this._commandService = n, this._contextService = r, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(OC)), this.disposeWithMe(this._commandService.registerCommand(
|
|
18719
|
+
this._univerInstanceService = t, this._commandService = n, this._contextService = r, this.undoRedoStatus$ = this._undoRedoStatus$.asObservable(), this.disposeWithMe(this._commandService.registerCommand(OC)), this.disposeWithMe(this._commandService.registerCommand(vC)), this.disposeWithMe(je(() => this._undoRedoStatus$.complete())), this.disposeWithMe(je(this._univerInstanceService.focused$.subscribe(() => this._updateStatus())));
|
|
18675
18720
|
}
|
|
18676
18721
|
pushUndoRedo(t) {
|
|
18677
18722
|
const { unitID: n } = t, r = this._getRedoStack(n, !0), s = this._getUndoStack(n, !0);
|
|
@@ -18767,7 +18812,7 @@ let Qi = class extends Ge {
|
|
|
18767
18812
|
var i, o, a, l;
|
|
18768
18813
|
let t = "";
|
|
18769
18814
|
const n = this._contextService.getContextValue(pr), r = this._contextService.getContextValue(CE), s = this._contextService.getContextValue(EE);
|
|
18770
|
-
return n ? r ? t =
|
|
18815
|
+
return n ? r ? t = $l : s ? t = Fl : t = (o = (i = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : i.getUnitId()) != null ? o : "" : t = (l = (a = this._univerInstanceService.getFocusedUnit()) == null ? void 0 : a.getUnitId()) != null ? l : "", t;
|
|
18771
18816
|
}
|
|
18772
18817
|
};
|
|
18773
18818
|
Qi = CC([
|
|
@@ -18775,7 +18820,7 @@ Qi = CC([
|
|
|
18775
18820
|
pi(1, Ds),
|
|
18776
18821
|
pi(2, Tr)
|
|
18777
18822
|
], Qi);
|
|
18778
|
-
class
|
|
18823
|
+
class SC {
|
|
18779
18824
|
constructor(t, n = 100) {
|
|
18780
18825
|
p(this, "_imageCacheMap");
|
|
18781
18826
|
this._injector = t, this._imageCacheMap = new _s(n);
|
|
@@ -18889,8 +18934,8 @@ class ia {
|
|
|
18889
18934
|
const c = l.pop() || 0, h = l.pop() || 0, d = l.pop() || 0;
|
|
18890
18935
|
if (h - d <= a) {
|
|
18891
18936
|
for (let R = d; R <= h; R++) {
|
|
18892
|
-
const b = o[2 * R],
|
|
18893
|
-
b >= t && b <= r &&
|
|
18937
|
+
const b = o[2 * R], $ = o[2 * R + 1];
|
|
18938
|
+
b >= t && b <= r && $ >= n && $ <= s && u.push(i[R]);
|
|
18894
18939
|
}
|
|
18895
18940
|
continue;
|
|
18896
18941
|
}
|
|
@@ -18965,7 +19010,7 @@ class fI {
|
|
|
18965
19010
|
this.clear();
|
|
18966
19011
|
}
|
|
18967
19012
|
getTree(t, n) {
|
|
18968
|
-
return this._tree.has(t) || this._tree.set(t, /* @__PURE__ */ new Map()), this._tree.get(t).has(n) || this._tree.get(t).set(n, new
|
|
19013
|
+
return this._tree.has(t) || this._tree.set(t, /* @__PURE__ */ new Map()), this._tree.get(t).has(n) || this._tree.get(t).set(n, new $i()), this._tree.get(t).get(n);
|
|
18969
19014
|
}
|
|
18970
19015
|
_getOneCellCache(t, n, r, s) {
|
|
18971
19016
|
return this._oneCellCache.has(t) || this._oneCellCache.set(t, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).has(n) || this._oneCellCache.get(t).set(n, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).get(n).has(r) || this._oneCellCache.get(t).get(n).set(r, /* @__PURE__ */ new Map()), this._oneCellCache.get(t).get(n).get(r).has(s) || this._oneCellCache.get(t).get(n).get(r).set(s, /* @__PURE__ */ new Set()), this._oneCellCache.get(t).get(n).get(r).get(s);
|
|
@@ -19134,7 +19179,7 @@ class fI {
|
|
|
19134
19179
|
for (const n in t) {
|
|
19135
19180
|
this._tree.set(n, /* @__PURE__ */ new Map());
|
|
19136
19181
|
for (const r in t[n]) {
|
|
19137
|
-
const s = new
|
|
19182
|
+
const s = new $i();
|
|
19138
19183
|
s.fromJSON(t[n][r]), this._tree.get(n).set(r, s);
|
|
19139
19184
|
}
|
|
19140
19185
|
}
|
|
@@ -19180,7 +19225,7 @@ let to = class extends Ge {
|
|
|
19180
19225
|
}
|
|
19181
19226
|
};
|
|
19182
19227
|
to = AC([
|
|
19183
|
-
yC(0, wt(
|
|
19228
|
+
yC(0, wt($n))
|
|
19184
19229
|
], to);
|
|
19185
19230
|
var NC = Object.getOwnPropertyDescriptor, TC = (e, t, n, r) => {
|
|
19186
19231
|
for (var s = r > 1 ? void 0 : r ? NC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
@@ -19217,7 +19262,7 @@ let Ll = class extends to {
|
|
|
19217
19262
|
p(this, "_scrollX");
|
|
19218
19263
|
/** Viewport scrolled value */
|
|
19219
19264
|
p(this, "_scrollY");
|
|
19220
|
-
this.worksheet = t, this._styles = n, this._contextService = s, this._configService = i, this._injector = o, this._worksheetData = this.worksheet.getConfig(), this._cellData = this.worksheet.getCellMatrix(), this._imageCacheMap = new
|
|
19265
|
+
this.worksheet = t, this._styles = n, this._contextService = s, this._configService = i, this._injector = o, this._worksheetData = this.worksheet.getConfig(), this._cellData = this.worksheet.getCellMatrix(), this._imageCacheMap = new SC(this._injector), this.initConfig();
|
|
19221
19266
|
}
|
|
19222
19267
|
initConfig() {
|
|
19223
19268
|
var t, n;
|
|
@@ -19460,13 +19505,13 @@ let Ll = class extends to {
|
|
|
19460
19505
|
startRow: r,
|
|
19461
19506
|
endColumn: o,
|
|
19462
19507
|
endRow: i
|
|
19463
|
-
},
|
|
19508
|
+
}, $ = {
|
|
19464
19509
|
startColumn: g,
|
|
19465
19510
|
startRow: f,
|
|
19466
19511
|
endColumn: R,
|
|
19467
19512
|
endRow: _
|
|
19468
19513
|
};
|
|
19469
|
-
Kp(b,
|
|
19514
|
+
Kp(b, $) && (r = Math.min(r, f), s = Math.min(s, g), i = Math.max(i, _), o = Math.max(o, R), u.setValue(f, g, !0), l = !0, c++, h = $);
|
|
19470
19515
|
}
|
|
19471
19516
|
}
|
|
19472
19517
|
return n && c === 1 && en.contains(h, t) ? {
|
|
@@ -19757,7 +19802,7 @@ let Ll = class extends to {
|
|
|
19757
19802
|
}
|
|
19758
19803
|
};
|
|
19759
19804
|
Ll = TC([
|
|
19760
|
-
es(2, wt(
|
|
19805
|
+
es(2, wt($n)),
|
|
19761
19806
|
es(3, Tr),
|
|
19762
19807
|
es(4, Ls),
|
|
19763
19808
|
es(5, wt(zn))
|
|
@@ -19827,20 +19872,20 @@ function ir(e, t, n, r, s) {
|
|
|
19827
19872
|
};
|
|
19828
19873
|
const R = n.length - 1, b = r.length - 1;
|
|
19829
19874
|
if (u && h !== -1 && d !== -1) {
|
|
19830
|
-
const
|
|
19875
|
+
const $ = n[h - 1] || 0, k = n[f] || n[R], W = r[d - 1] || 0, w = r[g] || r[b];
|
|
19831
19876
|
_ = {
|
|
19832
19877
|
..._,
|
|
19833
|
-
startY:
|
|
19878
|
+
startY: $,
|
|
19834
19879
|
endY: k,
|
|
19835
19880
|
startX: W,
|
|
19836
19881
|
endX: w
|
|
19837
19882
|
};
|
|
19838
19883
|
} else if (!u && f !== -1 && g !== -1) {
|
|
19839
|
-
const
|
|
19884
|
+
const $ = n[f] || n[R], k = r[g] || r[b];
|
|
19840
19885
|
_ = {
|
|
19841
19886
|
..._,
|
|
19842
19887
|
startY: i,
|
|
19843
|
-
endY:
|
|
19888
|
+
endY: $,
|
|
19844
19889
|
startX: a,
|
|
19845
19890
|
endX: k
|
|
19846
19891
|
};
|
|
@@ -19866,8 +19911,8 @@ function LC(e, t, n, r) {
|
|
|
19866
19911
|
return e = e / t + s - r, e;
|
|
19867
19912
|
}
|
|
19868
19913
|
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 || {}),
|
|
19870
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
19914
|
+
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 || {}), $C = Object.getOwnPropertyDescriptor, HC = (e, t, n, r) => {
|
|
19915
|
+
for (var s = r > 1 ? void 0 : r ? $C(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
19871
19916
|
(o = e[i]) && (s = o(s) || s);
|
|
19872
19917
|
return s;
|
|
19873
19918
|
}, xl = (e, t) => (n, r) => t(n, r, e);
|
|
@@ -19936,7 +19981,7 @@ let no = class extends Ge {
|
|
|
19936
19981
|
return r.resources = n, r;
|
|
19937
19982
|
}
|
|
19938
19983
|
};
|
|
19939
|
-
no =
|
|
19984
|
+
no = HC([
|
|
19940
19985
|
xl(0, wt(ra)),
|
|
19941
19986
|
xl(1, wt(Ar))
|
|
19942
19987
|
], no);
|
|
@@ -19951,13 +19996,13 @@ class EI {
|
|
|
19951
19996
|
p(this, "_injector");
|
|
19952
19997
|
p(this, "_disposingCallbacks", new fo());
|
|
19953
19998
|
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;
|
|
19954
|
-
s && this._injector.get(Zi).setTheme(s), i && this._injector.get(Zi).setDarkMode(i), a && this._injector.get(
|
|
19999
|
+
s && this._injector.get(Zi).setTheme(s), i && this._injector.get(Zi).setDarkMode(i), a && this._injector.get($n).load(a), o && this._injector.get($n).setLocale(o), l && this._injector.get(Ct).setLogLevel(l), u !== void 0 && this._injector.get(Ls).setConfig(Ni, u), this._init(r);
|
|
19955
20000
|
}
|
|
19956
20001
|
get _univerInstanceService() {
|
|
19957
20002
|
return this._injector.get(Ar);
|
|
19958
20003
|
}
|
|
19959
20004
|
get _pluginService() {
|
|
19960
|
-
return this._injector.get(
|
|
20005
|
+
return this._injector.get(vs);
|
|
19961
20006
|
}
|
|
19962
20007
|
/**
|
|
19963
20008
|
* @ignore
|
|
@@ -19981,7 +20026,7 @@ class EI {
|
|
|
19981
20026
|
this._disposingCallbacks.dispose(), this._injector.dispose();
|
|
19982
20027
|
}
|
|
19983
20028
|
setLocale(t) {
|
|
19984
|
-
this._injector.get(
|
|
20029
|
+
this._injector.get($n).setLocale(t);
|
|
19985
20030
|
}
|
|
19986
20031
|
createUnit(t, n) {
|
|
19987
20032
|
return this._univerInstanceService.createUnit(t, n);
|
|
@@ -20042,10 +20087,10 @@ class EI {
|
|
|
20042
20087
|
function BC(e, t) {
|
|
20043
20088
|
const n = cC([
|
|
20044
20089
|
[RE],
|
|
20045
|
-
[
|
|
20090
|
+
[$n],
|
|
20046
20091
|
[Zi],
|
|
20047
20092
|
[Yn],
|
|
20048
|
-
[
|
|
20093
|
+
[vs],
|
|
20049
20094
|
[Is],
|
|
20050
20095
|
// abstract services
|
|
20051
20096
|
[Ar, { useClass: Xi }],
|
|
@@ -20087,7 +20132,7 @@ export {
|
|
|
20087
20132
|
pm as BorderType,
|
|
20088
20133
|
Qe as BuildTextUtils,
|
|
20089
20134
|
Ms as BulletAlignment,
|
|
20090
|
-
|
|
20135
|
+
$a as COLORS,
|
|
20091
20136
|
Ni as COMMAND_LOG_EXECUTION_CONFIG_KEY,
|
|
20092
20137
|
rR as CanceledError,
|
|
20093
20138
|
lr as CellModeEnum,
|
|
@@ -20120,7 +20165,7 @@ export {
|
|
|
20120
20165
|
Lp as DEFAULT_TEXT_FORMAT_EXCEL,
|
|
20121
20166
|
PE as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
20122
20167
|
tI as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
|
|
20123
|
-
|
|
20168
|
+
HE as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
20124
20169
|
iI as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
|
|
20125
20170
|
FE as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
20126
20171
|
rI as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
|
|
@@ -20128,10 +20173,10 @@ export {
|
|
|
20128
20173
|
eI as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
|
|
20129
20174
|
kE as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
20130
20175
|
nI as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
|
|
20131
|
-
|
|
20176
|
+
$E as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
20132
20177
|
sI as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
|
|
20133
20178
|
Yc as DOCS_COMMENT_EDITOR_UNIT_ID_KEY,
|
|
20134
|
-
|
|
20179
|
+
$l as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
20135
20180
|
Fl as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
20136
20181
|
Wc as DOCS_ZEN_EDITOR_UNIT_ID_KEY,
|
|
20137
20182
|
w1 as DOC_DRAWING_PRINTING_COMPONENT_KEY,
|
|
@@ -20186,7 +20231,7 @@ export {
|
|
|
20186
20231
|
pE as IAuthzIoService,
|
|
20187
20232
|
Ds as ICommandService,
|
|
20188
20233
|
Ls as IConfigService,
|
|
20189
|
-
|
|
20234
|
+
H1 as IConfirmService,
|
|
20190
20235
|
Tr as IContextService,
|
|
20191
20236
|
wl as IImageIoService,
|
|
20192
20237
|
uI as ILocalStorageService,
|
|
@@ -20198,12 +20243,12 @@ export {
|
|
|
20198
20243
|
Vc as IS_ROW_STYLE_PRECEDE_COLUMN_STYLE,
|
|
20199
20244
|
sa as IUndoRedoService,
|
|
20200
20245
|
Ar as IUniverInstanceService,
|
|
20201
|
-
|
|
20246
|
+
SC as ImageCacheMap,
|
|
20202
20247
|
uc as ImageSourceType,
|
|
20203
20248
|
IE as ImageUploadStatusType,
|
|
20204
20249
|
or as InterceptorEffectEnum,
|
|
20205
20250
|
oR as InterceptorManager,
|
|
20206
|
-
|
|
20251
|
+
vm as InterpolationPointType,
|
|
20207
20252
|
bR as JSON1,
|
|
20208
20253
|
tn as JSONX,
|
|
20209
20254
|
jr as LRUHelper,
|
|
@@ -20213,45 +20258,45 @@ export {
|
|
|
20213
20258
|
rC as LifecycleUnreachableError,
|
|
20214
20259
|
me as ListGlyphType,
|
|
20215
20260
|
Qi as LocalUndoRedoService,
|
|
20216
|
-
|
|
20261
|
+
$n as LocaleService,
|
|
20217
20262
|
Ts as LocaleType,
|
|
20218
20263
|
Cg as LogLevel,
|
|
20219
|
-
|
|
20264
|
+
$r as MOVE_BUFFER_VALUE,
|
|
20220
20265
|
Xn as MemoryCursor,
|
|
20221
20266
|
qi as MentionIOLocalService,
|
|
20222
|
-
|
|
20267
|
+
Si as MentionType,
|
|
20223
20268
|
C1 as NAMED_STYLE_MAP,
|
|
20224
20269
|
R1 as NAMED_STYLE_SPACE_MAP,
|
|
20225
20270
|
Je as NamedStyleType,
|
|
20226
|
-
|
|
20271
|
+
Sg as NilCommand,
|
|
20227
20272
|
eg as NumberUnitType,
|
|
20228
20273
|
ft as ObjectMatrix,
|
|
20229
20274
|
Zm as ObjectRelativeFromH,
|
|
20230
20275
|
Qm as ObjectRelativeFromV,
|
|
20231
20276
|
ym as OtherShapes,
|
|
20232
20277
|
O1 as PAGE_SIZE,
|
|
20233
|
-
|
|
20278
|
+
SR as PAPER_TYPES,
|
|
20234
20279
|
Bs as PRESET_LIST_TYPE,
|
|
20235
20280
|
I1 as PRINT_CHART_COMPONENT_KEY,
|
|
20236
20281
|
ag as PageElementType,
|
|
20237
20282
|
sg as PageOrientType,
|
|
20238
20283
|
mu as PageType,
|
|
20239
20284
|
pt as PaperType,
|
|
20240
|
-
|
|
20285
|
+
Hm as ParagraphElementType,
|
|
20241
20286
|
Rs as ParagraphStyleBuilder,
|
|
20242
20287
|
Ws as ParagraphStyleValue,
|
|
20243
20288
|
uC as PermissionService,
|
|
20244
20289
|
mc as PermissionStatus,
|
|
20245
20290
|
yl as Plugin,
|
|
20246
|
-
|
|
20291
|
+
vs as PluginService,
|
|
20247
20292
|
jm as PositionedObjectLayoutType,
|
|
20248
20293
|
Vt as PresetListType,
|
|
20249
|
-
|
|
20294
|
+
Sm as ProtectionType,
|
|
20250
20295
|
i0 as QuickListType,
|
|
20251
20296
|
L1 as QuickListTypeMap,
|
|
20252
20297
|
Vg as RANGE_DIRECTION,
|
|
20253
20298
|
ge as RANGE_TYPE,
|
|
20254
|
-
|
|
20299
|
+
$i as RBush,
|
|
20255
20300
|
IR as RCDisposable,
|
|
20256
20301
|
kR as RGBA_PAREN,
|
|
20257
20302
|
PR as RGB_PAREN,
|
|
@@ -20259,7 +20304,7 @@ export {
|
|
|
20259
20304
|
fI as RTree,
|
|
20260
20305
|
br as Range,
|
|
20261
20306
|
en as Rectangle,
|
|
20262
|
-
|
|
20307
|
+
vC as RedoCommand,
|
|
20263
20308
|
IC as RedoCommandId,
|
|
20264
20309
|
b1 as RefAlias,
|
|
20265
20310
|
lu as Registry,
|
|
@@ -20281,7 +20326,7 @@ export {
|
|
|
20281
20326
|
hc as SlideDataModel,
|
|
20282
20327
|
Wm as SpacingRule,
|
|
20283
20328
|
Nm as SpecialShapes,
|
|
20284
|
-
|
|
20329
|
+
SE as Styles,
|
|
20285
20330
|
Mg as THEME_COLORS,
|
|
20286
20331
|
zm as TabStopAlignment,
|
|
20287
20332
|
Gm as TableAlignmentType,
|
|
@@ -20293,7 +20338,7 @@ export {
|
|
|
20293
20338
|
Lm as TextDecoration,
|
|
20294
20339
|
fn as TextDecorationBuilder,
|
|
20295
20340
|
gs as TextDirection,
|
|
20296
|
-
|
|
20341
|
+
$m as TextDirectionType,
|
|
20297
20342
|
pn as TextStyleBuilder,
|
|
20298
20343
|
js as TextStyleValue,
|
|
20299
20344
|
Te as TextX,
|
|
@@ -20364,7 +20409,7 @@ export {
|
|
|
20364
20409
|
k_ as deleteContent,
|
|
20365
20410
|
KE as extractPureTextFromCell,
|
|
20366
20411
|
Ag as fromCallback,
|
|
20367
|
-
|
|
20412
|
+
$1 as fromEventSubject,
|
|
20368
20413
|
CR as fromObservable,
|
|
20369
20414
|
tt as generateRandomId,
|
|
20370
20415
|
Nf as get,
|
|
@@ -20375,7 +20420,7 @@ export {
|
|
|
20375
20420
|
Ec as getCellCoordByIndexSimple,
|
|
20376
20421
|
WR as getCellInfoInMergeData,
|
|
20377
20422
|
_I as getCellPositionByIndexSimple,
|
|
20378
|
-
|
|
20423
|
+
HR as getCellValueType,
|
|
20379
20424
|
ir as getCellWithCoordByIndexCore,
|
|
20380
20425
|
Yt as getColorStyle,
|
|
20381
20426
|
p0 as getCustomBlockSlice,
|
|
@@ -20388,7 +20433,7 @@ export {
|
|
|
20388
20433
|
aI as getOriginCellValue,
|
|
20389
20434
|
_0 as getParagraphsSlice,
|
|
20390
20435
|
ta as getPlainText,
|
|
20391
|
-
|
|
20436
|
+
vR as getReverseDirection,
|
|
20392
20437
|
x1 as getSectionBreakSlice,
|
|
20393
20438
|
g0 as getTableSlice,
|
|
20394
20439
|
ji as getTextRunSlice,
|
|
@@ -20426,7 +20471,7 @@ export {
|
|
|
20426
20471
|
c1 as isTextFormat,
|
|
20427
20472
|
Z1 as isUnitRangesEqual,
|
|
20428
20473
|
e1 as isValidRange,
|
|
20429
|
-
|
|
20474
|
+
$R as isWhiteColor,
|
|
20430
20475
|
JC as makeArray,
|
|
20431
20476
|
XR as makeCellRangeToRangeData,
|
|
20432
20477
|
KR as makeCellToSelection,
|
|
@@ -20440,16 +20485,16 @@ export {
|
|
|
20440
20485
|
BE as mergeWorksheetSnapshotWithDefault,
|
|
20441
20486
|
mR as mixinClass,
|
|
20442
20487
|
Ba as moveMatrixArray,
|
|
20443
|
-
|
|
20488
|
+
v1 as moveRangeByOffset,
|
|
20444
20489
|
hI as nameCharacterCheck,
|
|
20445
20490
|
D1 as normalizeBody,
|
|
20446
|
-
|
|
20491
|
+
Hs as normalizeTextRuns,
|
|
20447
20492
|
y1 as numberToABC,
|
|
20448
20493
|
N1 as numberToListABC,
|
|
20449
20494
|
u1 as numfmt,
|
|
20450
|
-
|
|
20495
|
+
S1 as queryObjectMatrix,
|
|
20451
20496
|
nR as registerDependencies,
|
|
20452
|
-
|
|
20497
|
+
Ss as remove,
|
|
20453
20498
|
e0 as repeatStringNumTimes,
|
|
20454
20499
|
P1 as replaceInDocumentBody,
|
|
20455
20500
|
pR as requestImmediateMacroTask,
|
|
@@ -20467,15 +20512,15 @@ export {
|
|
|
20467
20512
|
GR as sliceMatrixArray,
|
|
20468
20513
|
T1 as sortRules,
|
|
20469
20514
|
M1 as sortRulesByDesc,
|
|
20470
|
-
|
|
20471
|
-
|
|
20515
|
+
$s as sortRulesFactory,
|
|
20516
|
+
Ha as spliceArray,
|
|
20472
20517
|
Bu as splitIntoGrid,
|
|
20473
20518
|
ka as takeAfter,
|
|
20474
20519
|
oc as textDiff,
|
|
20475
20520
|
sR as throttle,
|
|
20476
20521
|
je as toDisposable,
|
|
20477
20522
|
Xc as touchDependencies,
|
|
20478
|
-
|
|
20479
|
-
|
|
20523
|
+
v0 as updateAttributeByDelete,
|
|
20524
|
+
S0 as updateAttributeByInsert,
|
|
20480
20525
|
_R as willLoseNumericPrecision
|
|
20481
20526
|
};
|