@univerjs/core 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +8 -8
- package/lib/es/index.js +657 -674
- package/lib/index.js +657 -674
- package/lib/types/services/command/command.service.d.ts +2 -0
- package/lib/types/services/context/context.d.ts +4 -0
- package/lib/types/shared/index.d.ts +1 -0
- package/lib/types/shared/intervals.d.ts +17 -0
- package/lib/types/sheets/span-model.d.ts +0 -10
- package/lib/types/sheets/util.d.ts +1 -0
- package/lib/umd/index.js +8 -8
- package/package.json +3 -3
package/lib/es/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var wc = (e, t, n) => t in e ? Ic(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var p = (e, t, n) => wc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { createIdentifier as ot, Inject as wt, Injector as zn } from "@wendellhu/redi";
|
|
5
5
|
export * from "@wendellhu/redi";
|
|
6
|
-
import { Subscription as Oc, Subject as it, Observable as yr, filter as wr, ReplaySubject as vc, take as Sc, tap as la, debounceTime as bc, map as
|
|
6
|
+
import { Subscription as Oc, Subject as it, Observable as yr, filter as wr, ReplaySubject as vc, take as Sc, tap as la, debounceTime as bc, map as ro, BehaviorSubject as nt, merge as Fl, timer as Ac, distinctUntilChanged as yc, firstValueFrom as Nc, skip as $l, of as Lr, combineLatest as Tc } from "rxjs";
|
|
7
7
|
import { filter as Mc, debounceTime as Lc, first as xc, map as Dc } from "rxjs/operators";
|
|
8
8
|
import { defaultTheme as xr } from "@univerjs/themes";
|
|
9
9
|
function Uc(e, t) {
|
|
@@ -71,7 +71,7 @@ function Fc() {
|
|
|
71
71
|
function $c() {
|
|
72
72
|
Pc(), kc(), Fc();
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function vs(e, t) {
|
|
75
75
|
const n = e.indexOf(t);
|
|
76
76
|
return n > -1 ? (e.splice(n, 1), !0) : !1;
|
|
77
77
|
}
|
|
@@ -117,9 +117,9 @@ function QC(e) {
|
|
|
117
117
|
function vt(e) {
|
|
118
118
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
119
119
|
}
|
|
120
|
-
var
|
|
120
|
+
var Ys, ua;
|
|
121
121
|
function Bc() {
|
|
122
|
-
if (ua) return
|
|
122
|
+
if (ua) return Ys;
|
|
123
123
|
ua = 1;
|
|
124
124
|
var e = function(t) {
|
|
125
125
|
if (t = t || {}, this.Promise = t.Promise || Promise, this.queues = /* @__PURE__ */ Object.create(null), this.domainReentrant = t.domainReentrant || !1, this.domainReentrant) {
|
|
@@ -215,11 +215,11 @@ function Bc() {
|
|
|
215
215
|
} catch (n) {
|
|
216
216
|
return this.Promise.reject(n);
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, Ys = e, Ys;
|
|
219
219
|
}
|
|
220
|
-
var
|
|
220
|
+
var zs, ca;
|
|
221
221
|
function jc() {
|
|
222
|
-
return ca || (ca = 1,
|
|
222
|
+
return ca || (ca = 1, zs = Bc()), zs;
|
|
223
223
|
}
|
|
224
224
|
var Wc = jc();
|
|
225
225
|
const eR = /* @__PURE__ */ vt(Wc), Yc = /* @__PURE__ */ new Set(["true", "false"]);
|
|
@@ -264,12 +264,12 @@ function Zc(e, t) {
|
|
|
264
264
|
}
|
|
265
265
|
return !0;
|
|
266
266
|
}
|
|
267
|
-
class
|
|
267
|
+
class Ci extends Error {
|
|
268
268
|
constructor(t) {
|
|
269
269
|
super(t), this.name = "CustomCommandExecutionError";
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
class iR extends
|
|
272
|
+
class iR extends Ci {
|
|
273
273
|
constructor() {
|
|
274
274
|
super("Canceled by facade"), this.name = "CanceledError";
|
|
275
275
|
}
|
|
@@ -330,7 +330,7 @@ class lR {
|
|
|
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
|
+
), () => vs(this._interceptorsByName.get(r), n);
|
|
334
334
|
}
|
|
335
335
|
getInterceptPoints() {
|
|
336
336
|
return this._interceptorPoints;
|
|
@@ -385,7 +385,7 @@ class cR {
|
|
|
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
|
+
), () => vs(this._asyncInterceptorsByName.get(r), n);
|
|
389
389
|
}
|
|
390
390
|
getInterceptPoints() {
|
|
391
391
|
return this._asyncInterceptorPoints;
|
|
@@ -440,7 +440,7 @@ function nh(e, t, n) {
|
|
|
440
440
|
}
|
|
441
441
|
return [r, s, i];
|
|
442
442
|
}
|
|
443
|
-
const
|
|
443
|
+
const Vs = { r: 1, g: 1, b: 1 }, Gs = { r: 0, g: 0, b: 0 }, rh = fs(Vs.r, Vs.g, Vs.b), sh = fs(Gs.r, Gs.g, Gs.b);
|
|
444
444
|
function ih(e) {
|
|
445
445
|
const t = fs(e[0], e[1], e[2]), n = ha(
|
|
446
446
|
rh,
|
|
@@ -496,7 +496,7 @@ function Gn(e) {
|
|
|
496
496
|
return e != null && typeof e == "object";
|
|
497
497
|
}
|
|
498
498
|
var _h = "[object Symbol]";
|
|
499
|
-
function
|
|
499
|
+
function Ss(e) {
|
|
500
500
|
return typeof e == "symbol" || Gn(e) && Nr(e) == _h;
|
|
501
501
|
}
|
|
502
502
|
function ph(e, t) {
|
|
@@ -510,7 +510,7 @@ function Vl(e) {
|
|
|
510
510
|
return e;
|
|
511
511
|
if (Bn(e))
|
|
512
512
|
return ph(e, Vl) + "";
|
|
513
|
-
if (
|
|
513
|
+
if (Ss(e))
|
|
514
514
|
return ma ? ma.call(e) : "";
|
|
515
515
|
var t = e + "";
|
|
516
516
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -533,7 +533,7 @@ var ga = NaN, wh = /^[-+]0x[0-9a-f]+$/i, Oh = /^0b[01]+$/i, vh = /^0o[0-7]+$/i,
|
|
|
533
533
|
function _a(e) {
|
|
534
534
|
if (typeof e == "number")
|
|
535
535
|
return e;
|
|
536
|
-
if (
|
|
536
|
+
if (Ss(e))
|
|
537
537
|
return ga;
|
|
538
538
|
if (Ot(e)) {
|
|
539
539
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -549,14 +549,14 @@ function Gl(e) {
|
|
|
549
549
|
return e;
|
|
550
550
|
}
|
|
551
551
|
var bh = "[object AsyncFunction]", Ah = "[object Function]", yh = "[object GeneratorFunction]", Nh = "[object Proxy]";
|
|
552
|
-
function
|
|
552
|
+
function so(e) {
|
|
553
553
|
if (!Ot(e))
|
|
554
554
|
return !1;
|
|
555
555
|
var t = Nr(e);
|
|
556
556
|
return t == Ah || t == yh || t == bh || t == Nh;
|
|
557
557
|
}
|
|
558
|
-
var
|
|
559
|
-
var e = /[^.]+$/.exec(
|
|
558
|
+
var Ks = Rn["__core-js_shared__"], pa = (function() {
|
|
559
|
+
var e = /[^.]+$/.exec(Ks && Ks.keys && Ks.keys.IE_PROTO || "");
|
|
560
560
|
return e ? "Symbol(src)_1." + e : "";
|
|
561
561
|
})();
|
|
562
562
|
function Th(e) {
|
|
@@ -582,13 +582,13 @@ var Dh = /[\\^$.*+?()[\]{}|]/g, Uh = /^\[object .+?Constructor\]$/, Ph = Functio
|
|
|
582
582
|
function Bh(e) {
|
|
583
583
|
if (!Ot(e) || Th(e))
|
|
584
584
|
return !1;
|
|
585
|
-
var t =
|
|
585
|
+
var t = so(e) ? Hh : Uh;
|
|
586
586
|
return t.test(xh(e));
|
|
587
587
|
}
|
|
588
588
|
function jh(e, t) {
|
|
589
589
|
return e == null ? void 0 : e[t];
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function io(e, t) {
|
|
592
592
|
var n = jh(e, t);
|
|
593
593
|
return Bh(n) ? n : void 0;
|
|
594
594
|
}
|
|
@@ -644,7 +644,7 @@ function qh(e) {
|
|
|
644
644
|
}
|
|
645
645
|
var ms = (function() {
|
|
646
646
|
try {
|
|
647
|
-
var e =
|
|
647
|
+
var e = io(Object, "defineProperty");
|
|
648
648
|
return e({}, "", {}), e;
|
|
649
649
|
} catch {
|
|
650
650
|
}
|
|
@@ -656,11 +656,11 @@ var ms = (function() {
|
|
|
656
656
|
writable: !0
|
|
657
657
|
});
|
|
658
658
|
} : Gl, Zh = Xh(Jh), Qh = 9007199254740991, ed = /^(?:0|[1-9]\d*)$/;
|
|
659
|
-
function
|
|
659
|
+
function oo(e, t) {
|
|
660
660
|
var n = typeof e;
|
|
661
661
|
return t = t == null ? Qh : t, !!t && (n == "number" || n != "symbol" && ed.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function ao(e, t, n) {
|
|
664
664
|
t == "__proto__" && ms ? ms(e, t, {
|
|
665
665
|
configurable: !0,
|
|
666
666
|
enumerable: !0,
|
|
@@ -668,20 +668,20 @@ function lo(e, t, n) {
|
|
|
668
668
|
writable: !0
|
|
669
669
|
}) : e[t] = n;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function bs(e, t) {
|
|
672
672
|
return e === t || e !== e && t !== t;
|
|
673
673
|
}
|
|
674
674
|
var td = Object.prototype, nd = td.hasOwnProperty;
|
|
675
675
|
function Kl(e, t, n) {
|
|
676
676
|
var r = e[t];
|
|
677
|
-
(!(nd.call(e, t) &&
|
|
677
|
+
(!(nd.call(e, t) && bs(r, n)) || n === void 0 && !(t in e)) && ao(e, t, n);
|
|
678
678
|
}
|
|
679
679
|
function rd(e, t, n, r) {
|
|
680
680
|
var s = !n;
|
|
681
681
|
n || (n = {});
|
|
682
682
|
for (var i = -1, o = t.length; ++i < o; ) {
|
|
683
683
|
var a = t[i], l = void 0;
|
|
684
|
-
l === void 0 && (l = e[a]), s ?
|
|
684
|
+
l === void 0 && (l = e[a]), s ? ao(n, a, l) : Kl(n, a, l);
|
|
685
685
|
}
|
|
686
686
|
return n;
|
|
687
687
|
}
|
|
@@ -703,14 +703,14 @@ var od = 9007199254740991;
|
|
|
703
703
|
function Xl(e) {
|
|
704
704
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= od;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
return e != null && Xl(e.length) && !
|
|
706
|
+
function lo(e) {
|
|
707
|
+
return e != null && Xl(e.length) && !so(e);
|
|
708
708
|
}
|
|
709
709
|
function ad(e, t, n) {
|
|
710
710
|
if (!Ot(n))
|
|
711
711
|
return !1;
|
|
712
712
|
var r = typeof t;
|
|
713
|
-
return (r == "number" ?
|
|
713
|
+
return (r == "number" ? lo(n) && oo(t, n.length) : r == "string" && t in n) ? bs(n[t], e) : !1;
|
|
714
714
|
}
|
|
715
715
|
function ql(e) {
|
|
716
716
|
return id(function(t, n) {
|
|
@@ -736,7 +736,7 @@ var cd = "[object Arguments]";
|
|
|
736
736
|
function Ra(e) {
|
|
737
737
|
return Gn(e) && Nr(e) == cd;
|
|
738
738
|
}
|
|
739
|
-
var Zl = Object.prototype, hd = Zl.hasOwnProperty, dd = Zl.propertyIsEnumerable,
|
|
739
|
+
var Zl = Object.prototype, hd = Zl.hasOwnProperty, dd = Zl.propertyIsEnumerable, Ri = Ra(/* @__PURE__ */ (function() {
|
|
740
740
|
return arguments;
|
|
741
741
|
})()) ? Ra : function(e) {
|
|
742
742
|
return Gn(e) && hd.call(e, "callee") && !dd.call(e, "callee");
|
|
@@ -755,21 +755,21 @@ function Bd(e) {
|
|
|
755
755
|
return e(t);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
var tu = typeof exports == "object" && exports && !exports.nodeType && exports, Er = tu && typeof module == "object" && module && !module.nodeType && module, jd = Er && Er.exports === tu,
|
|
758
|
+
var tu = typeof exports == "object" && exports && !exports.nodeType && exports, Er = tu && typeof module == "object" && module && !module.nodeType && module, jd = Er && Er.exports === tu, Xs = jd && Yl.process, Oa = (function() {
|
|
759
759
|
try {
|
|
760
760
|
var e = Er && Er.require && Er.require("util").types;
|
|
761
|
-
return e ||
|
|
761
|
+
return e || Xs && Xs.binding && Xs.binding("util");
|
|
762
762
|
} catch {
|
|
763
763
|
}
|
|
764
764
|
})(), va = Oa && Oa.isTypedArray, nu = va ? Bd(va) : Hd;
|
|
765
765
|
function Wd(e, t) {
|
|
766
|
-
var n = Bn(e), r = !n &&
|
|
766
|
+
var n = Bn(e), r = !n && Ri(e), s = !n && !r && eu(e), i = !n && !r && !s && nu(e), o = n || r || s || i, a = o ? ud(e.length, String) : [], l = a.length;
|
|
767
767
|
for (var u in e)
|
|
768
768
|
o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
769
769
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
770
770
|
s && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
771
771
|
i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
772
|
-
|
|
772
|
+
oo(u, l)) || a.push(u);
|
|
773
773
|
return a;
|
|
774
774
|
}
|
|
775
775
|
function Yd(e, t) {
|
|
@@ -794,16 +794,16 @@ function Kd(e) {
|
|
|
794
794
|
return n;
|
|
795
795
|
}
|
|
796
796
|
function ru(e) {
|
|
797
|
-
return
|
|
797
|
+
return lo(e) ? Wd(e) : Kd(e);
|
|
798
798
|
}
|
|
799
799
|
var Xd = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qd = /^\w*$/;
|
|
800
800
|
function Jd(e, t) {
|
|
801
801
|
if (Bn(e))
|
|
802
802
|
return !1;
|
|
803
803
|
var n = typeof e;
|
|
804
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null ||
|
|
804
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || Ss(e) ? !0 : qd.test(e) || !Xd.test(e) || t != null && e in Object(t);
|
|
805
805
|
}
|
|
806
|
-
var Or =
|
|
806
|
+
var Or = io(Object, "create");
|
|
807
807
|
function Zd() {
|
|
808
808
|
this.__data__ = Or ? Or(null) : {}, this.size = 0;
|
|
809
809
|
}
|
|
@@ -845,29 +845,29 @@ En.prototype.set = uf;
|
|
|
845
845
|
function cf() {
|
|
846
846
|
this.__data__ = [], this.size = 0;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function As(e, t) {
|
|
849
849
|
for (var n = e.length; n--; )
|
|
850
|
-
if (
|
|
850
|
+
if (bs(e[n][0], t))
|
|
851
851
|
return n;
|
|
852
852
|
return -1;
|
|
853
853
|
}
|
|
854
854
|
var hf = Array.prototype, df = hf.splice;
|
|
855
855
|
function ff(e) {
|
|
856
|
-
var t = this.__data__, n =
|
|
856
|
+
var t = this.__data__, n = As(t, e);
|
|
857
857
|
if (n < 0)
|
|
858
858
|
return !1;
|
|
859
859
|
var r = t.length - 1;
|
|
860
860
|
return n == r ? t.pop() : df.call(t, n, 1), --this.size, !0;
|
|
861
861
|
}
|
|
862
862
|
function mf(e) {
|
|
863
|
-
var t = this.__data__, n =
|
|
863
|
+
var t = this.__data__, n = As(t, e);
|
|
864
864
|
return n < 0 ? void 0 : t[n][1];
|
|
865
865
|
}
|
|
866
866
|
function gf(e) {
|
|
867
|
-
return
|
|
867
|
+
return As(this.__data__, e) > -1;
|
|
868
868
|
}
|
|
869
869
|
function _f(e, t) {
|
|
870
|
-
var n = this.__data__, r =
|
|
870
|
+
var n = this.__data__, r = As(n, e);
|
|
871
871
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
872
872
|
}
|
|
873
873
|
function Gt(e) {
|
|
@@ -882,7 +882,7 @@ Gt.prototype.delete = ff;
|
|
|
882
882
|
Gt.prototype.get = mf;
|
|
883
883
|
Gt.prototype.has = gf;
|
|
884
884
|
Gt.prototype.set = _f;
|
|
885
|
-
var su =
|
|
885
|
+
var su = io(Rn, "Map");
|
|
886
886
|
function pf() {
|
|
887
887
|
this.size = 0, this.__data__ = {
|
|
888
888
|
hash: new En(),
|
|
@@ -894,22 +894,22 @@ function Ef(e) {
|
|
|
894
894
|
var t = typeof e;
|
|
895
895
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function ys(e, t) {
|
|
898
898
|
var n = e.__data__;
|
|
899
899
|
return Ef(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
900
900
|
}
|
|
901
901
|
function Cf(e) {
|
|
902
|
-
var t =
|
|
902
|
+
var t = ys(this, e).delete(e);
|
|
903
903
|
return this.size -= t ? 1 : 0, t;
|
|
904
904
|
}
|
|
905
905
|
function Rf(e) {
|
|
906
|
-
return
|
|
906
|
+
return ys(this, e).get(e);
|
|
907
907
|
}
|
|
908
908
|
function If(e) {
|
|
909
|
-
return
|
|
909
|
+
return ys(this, e).has(e);
|
|
910
910
|
}
|
|
911
911
|
function wf(e, t) {
|
|
912
|
-
var n =
|
|
912
|
+
var n = ys(this, e), r = n.size;
|
|
913
913
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
914
914
|
}
|
|
915
915
|
function nn(e) {
|
|
@@ -925,7 +925,7 @@ nn.prototype.get = Rf;
|
|
|
925
925
|
nn.prototype.has = If;
|
|
926
926
|
nn.prototype.set = wf;
|
|
927
927
|
var Of = "Expected a function";
|
|
928
|
-
function
|
|
928
|
+
function uo(e, t) {
|
|
929
929
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
930
930
|
throw new TypeError(Of);
|
|
931
931
|
var n = function() {
|
|
@@ -935,12 +935,12 @@ function co(e, t) {
|
|
|
935
935
|
var o = e.apply(this, r);
|
|
936
936
|
return n.cache = i.set(s, o) || i, o;
|
|
937
937
|
};
|
|
938
|
-
return n.cache = new (
|
|
938
|
+
return n.cache = new (uo.Cache || nn)(), n;
|
|
939
939
|
}
|
|
940
|
-
|
|
940
|
+
uo.Cache = nn;
|
|
941
941
|
var vf = 500;
|
|
942
942
|
function Sf(e) {
|
|
943
|
-
var t =
|
|
943
|
+
var t = uo(e, function(r) {
|
|
944
944
|
return n.size === vf && n.clear(), r;
|
|
945
945
|
}), n = t.cache;
|
|
946
946
|
return t;
|
|
@@ -958,7 +958,7 @@ function iu(e, t) {
|
|
|
958
958
|
return Bn(e) ? e : Jd(e, t) ? [e] : yf(Nf(e));
|
|
959
959
|
}
|
|
960
960
|
function ou(e) {
|
|
961
|
-
if (typeof e == "string" ||
|
|
961
|
+
if (typeof e == "string" || Ss(e))
|
|
962
962
|
return e;
|
|
963
963
|
var t = e + "";
|
|
964
964
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
@@ -1043,7 +1043,7 @@ function Xf(e) {
|
|
|
1043
1043
|
return t;
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
var qf = Xf(),
|
|
1046
|
+
var qf = Xf(), qs = function() {
|
|
1047
1047
|
return Rn.Date.now();
|
|
1048
1048
|
}, Jf = "Expected a function", Zf = Math.max, Qf = Math.min;
|
|
1049
1049
|
function fR(e, t, n) {
|
|
@@ -1067,7 +1067,7 @@ function fR(e, t, n) {
|
|
|
1067
1067
|
return l === void 0 || S >= t || S < 0 || h && y >= i;
|
|
1068
1068
|
}
|
|
1069
1069
|
function b() {
|
|
1070
|
-
var C =
|
|
1070
|
+
var C = qs();
|
|
1071
1071
|
if (R(C))
|
|
1072
1072
|
return $(C);
|
|
1073
1073
|
a = setTimeout(b, _(C));
|
|
@@ -1079,10 +1079,10 @@ function fR(e, t, n) {
|
|
|
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 : $(qs());
|
|
1083
1083
|
}
|
|
1084
1084
|
function w() {
|
|
1085
|
-
var C =
|
|
1085
|
+
var C = qs(), S = R(C);
|
|
1086
1086
|
if (r = arguments, s = this, l = C, S) {
|
|
1087
1087
|
if (a === void 0)
|
|
1088
1088
|
return g(l);
|
|
@@ -1093,13 +1093,13 @@ function fR(e, t, n) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
return w.cancel = k, w.flush = W, w;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
(n !== void 0 && !
|
|
1096
|
+
function Ii(e, t, n) {
|
|
1097
|
+
(n !== void 0 && !bs(e[t], n) || n === void 0 && !(t in e)) && ao(e, t, n);
|
|
1098
1098
|
}
|
|
1099
1099
|
function em(e) {
|
|
1100
|
-
return Gn(e) &&
|
|
1100
|
+
return Gn(e) && lo(e);
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function wi(e, t) {
|
|
1103
1103
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
|
1104
1104
|
return e[t];
|
|
1105
1105
|
}
|
|
@@ -1107,32 +1107,32 @@ function tm(e) {
|
|
|
1107
1107
|
return rd(e, ru(e));
|
|
1108
1108
|
}
|
|
1109
1109
|
function nm(e, t, n, r, s, i, o) {
|
|
1110
|
-
var a =
|
|
1110
|
+
var a = wi(e, n), l = wi(t, n), u = o.get(l);
|
|
1111
1111
|
if (u) {
|
|
1112
|
-
|
|
1112
|
+
Ii(e, n, u);
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
1115
|
var c = i ? i(a, l, n + "", e, t, o) : void 0, h = c === void 0;
|
|
1116
1116
|
if (h) {
|
|
1117
1117
|
var d = Bn(l), f = !d && eu(l), g = !d && !f && nu(l);
|
|
1118
|
-
c = l, d || f || g ? Bn(a) ? c = a : em(a) ? c = zh(a) : f ? (h = !1, c = zf(l)) : g ? (h = !1, c = Gf(l)) : c = [] : kf(l) ||
|
|
1118
|
+
c = l, d || f || g ? Bn(a) ? c = a : em(a) ? c = zh(a) : f ? (h = !1, c = zf(l)) : g ? (h = !1, c = Gf(l)) : c = [] : kf(l) || Ri(l) ? (c = a, Ri(a) ? c = tm(a) : (!Ot(a) || so(a)) && (c = Kf(l))) : h = !1;
|
|
1119
1119
|
}
|
|
1120
|
-
h && (o.set(l, c), s(c, l, r, i, o), o.delete(l)),
|
|
1120
|
+
h && (o.set(l, c), s(c, l, r, i, o), o.delete(l)), Ii(e, n, c);
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function co(e, t, n, r, s) {
|
|
1123
1123
|
e !== t && qf(t, function(i, o) {
|
|
1124
1124
|
if (s || (s = new Kn()), Ot(i))
|
|
1125
|
-
nm(e, t, o, n,
|
|
1125
|
+
nm(e, t, o, n, co, r, s);
|
|
1126
1126
|
else {
|
|
1127
|
-
var a = r ? r(
|
|
1128
|
-
a === void 0 && (a = i),
|
|
1127
|
+
var a = r ? r(wi(e, o), i, o + "", e, t, s) : void 0;
|
|
1128
|
+
a === void 0 && (a = i), Ii(e, o, a);
|
|
1129
1129
|
}
|
|
1130
1130
|
}, ru);
|
|
1131
1131
|
}
|
|
1132
1132
|
var mR = ql(function(e, t, n, r) {
|
|
1133
|
-
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1133
|
+
co(e, t, n, r);
|
|
1134
|
+
}), ho = ql(function(e, t, n) {
|
|
1135
|
+
co(e, t, n);
|
|
1136
1136
|
});
|
|
1137
1137
|
function rm(e, t, n, r) {
|
|
1138
1138
|
if (!Ot(e))
|
|
@@ -1144,7 +1144,7 @@ function rm(e, t, n, r) {
|
|
|
1144
1144
|
return e;
|
|
1145
1145
|
if (s != o) {
|
|
1146
1146
|
var c = a[l];
|
|
1147
|
-
u = void 0, u === void 0 && (u = Ot(c) ? c :
|
|
1147
|
+
u = void 0, u === void 0 && (u = Ot(c) ? c : oo(t[s + 1]) ? [] : {});
|
|
1148
1148
|
}
|
|
1149
1149
|
Kl(a, l, u), a = a[l];
|
|
1150
1150
|
}
|
|
@@ -1282,7 +1282,7 @@ function Ye(e) {
|
|
|
1282
1282
|
} : e : Ye(() => {
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
|
-
class
|
|
1285
|
+
class fo {
|
|
1286
1286
|
constructor() {
|
|
1287
1287
|
p(this, "_disposables", /* @__PURE__ */ new Set());
|
|
1288
1288
|
}
|
|
@@ -1303,7 +1303,7 @@ class mo {
|
|
|
1303
1303
|
class Ge {
|
|
1304
1304
|
constructor() {
|
|
1305
1305
|
p(this, "_disposed", !1);
|
|
1306
|
-
p(this, "_collection", new
|
|
1306
|
+
p(this, "_collection", new fo());
|
|
1307
1307
|
}
|
|
1308
1308
|
disposeWithMe(t) {
|
|
1309
1309
|
return this._collection.add(t);
|
|
@@ -1340,8 +1340,8 @@ class wR extends Ge {
|
|
|
1340
1340
|
this._ref -= 1, this._ref === 0 && (this._rootDisposable.dispose(), this.dispose());
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
-
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 || {}),
|
|
1344
|
-
class
|
|
1343
|
+
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 || {}), Oi = /* @__PURE__ */ ((e) => (e[e.SomeCollaborator = 0] = "SomeCollaborator", e[e.AllCollaborator = 1] = "AllCollaborator", e[e.OneSelf = 2] = "OneSelf", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Oi || {});
|
|
1344
|
+
class mo extends Ge {
|
|
1345
1345
|
}
|
|
1346
1346
|
const du = /* @__PURE__ */ new Set([
|
|
1347
1347
|
"ac",
|
|
@@ -1697,7 +1697,7 @@ const qt = [
|
|
|
1697
1697
|
"Y",
|
|
1698
1698
|
"Z"
|
|
1699
1699
|
];
|
|
1700
|
-
function
|
|
1700
|
+
function go(e, t) {
|
|
1701
1701
|
const n = Z.getValueType(e), r = Z.getValueType(t);
|
|
1702
1702
|
return n !== r ? !1 : Z.isArray(e) ? _m(e, t) : Z.isObject(e) ? pm(e, t) : Z.isDate(e) ? e.getTime() === t.getTime() : Z.isRegExp(e) ? e.toString() === t.toString() : e === t;
|
|
1703
1703
|
}
|
|
@@ -1706,7 +1706,7 @@ function _m(e, t) {
|
|
|
1706
1706
|
return !1;
|
|
1707
1707
|
for (let n = 0, r = e.length; n < r; n++) {
|
|
1708
1708
|
const s = e[n], i = t[n];
|
|
1709
|
-
if (!
|
|
1709
|
+
if (!go(s, i))
|
|
1710
1710
|
return !1;
|
|
1711
1711
|
}
|
|
1712
1712
|
return !0;
|
|
@@ -1719,7 +1719,7 @@ function pm(e, t) {
|
|
|
1719
1719
|
if (!r.includes(s))
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
const i = e[s], o = t[s];
|
|
1722
|
-
if (!
|
|
1722
|
+
if (!go(i, o))
|
|
1723
1723
|
return !1;
|
|
1724
1724
|
}
|
|
1725
1725
|
return !0;
|
|
@@ -1836,7 +1836,7 @@ class Z {
|
|
|
1836
1836
|
return Number(Number(t).toFixed(n));
|
|
1837
1837
|
}
|
|
1838
1838
|
static diffValue(t, n) {
|
|
1839
|
-
return
|
|
1839
|
+
return go(t, n);
|
|
1840
1840
|
}
|
|
1841
1841
|
static deepClone(t) {
|
|
1842
1842
|
if (!this.isDefine(t))
|
|
@@ -2054,7 +2054,7 @@ function bR(e) {
|
|
|
2054
2054
|
return 0;
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
|
-
var bm = /* @__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))(bm || {}), 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 || {}), Am = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Am || {}), ym = /* @__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))(ym || {}), Nm = /* @__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))(Nm || {}), Tm = /* @__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))(Tm || {}), Mm = /* @__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))(Mm || {}), Lm = /* @__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))(Lm || {}), xm = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(xm || {}), 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 || {}), Dm = /* @__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))(Dm || {}), 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 || {}), at = /* @__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))(at || {}), po = /* @__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))(po || {}), Um = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Um || {}), Pm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Pm || {}), 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 || {}), km = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(km || {}), gu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(gu || {}), Fm = /* @__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))(Fm || {}), $m = /* @__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))($m || {}), Hm = /* @__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))(Hm || {}), Bm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Bm || {}), jm = /* @__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))(jm || {}), Wm = /* @__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))(Wm || {}), Ym = /* @__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))(Ym || {}), 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 || {}), zm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(zm || {}), Vm = /* @__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))(Vm || {}), Gm = /* @__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))(Gm || {}), Km = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(Jm || {}), Zm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Zm || {}), Qm = /* @__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))(Qm || {}), ar = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ar || {}), eg = /* @__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))(eg || {}), tg = /* @__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))(tg || {}), ng = /* @__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))(ng || {}), rg = /* @__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))(rg || {}), sg = /* @__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))(sg || {}), ig = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(ig || {}), og = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(og || {}), 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 || {});
|
|
2057
|
+
var bm = /* @__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))(bm || {}), Ns = /* @__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))(Ns || {}), 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 || {}), Am = /* @__PURE__ */ ((e) => (e[e.RANGE = 0] = "RANGE", e[e.SHEET = 1] = "SHEET", e))(Am || {}), ym = /* @__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))(ym || {}), Nm = /* @__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))(Nm || {}), Tm = /* @__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))(Tm || {}), Mm = /* @__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))(Mm || {}), Lm = /* @__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))(Lm || {}), xm = /* @__PURE__ */ ((e) => (e[e.GRID = 0] = "GRID", e[e.KANBAN = 1] = "KANBAN", e[e.GANTT = 2] = "GANTT", e))(xm || {}), 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 || {}), Dm = /* @__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))(Dm || {}), 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 || {}), Si = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ITALIC = 1] = "ITALIC", e))(Si || {}), bi = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.BOLD = 1] = "BOLD", e))(bi || {}), 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 || {}), at = /* @__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))(at || {}), _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 || {}), Um = /* @__PURE__ */ ((e) => (e[e.character = 0] = "character", e[e.paragraph = 1] = "paragraph", e[e.table = 2] = "table", e[e.numbering = 3] = "numbering", e))(Um || {}), Pm = /* @__PURE__ */ ((e) => (e[e.TAB = 0] = "TAB", e[e.SPACE = 1] = "SPACE", e[e.NOTHING = 2] = "NOTHING", e))(Pm || {}), 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 || {}), Ts = /* @__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))(Ts || {}), 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 || {}), km = /* @__PURE__ */ ((e) => (e[e.DRAWING = 0] = "DRAWING", e[e.CUSTOM = 1] = "CUSTOM", e))(km || {}), gu = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.TRADITIONAL = 1] = "TRADITIONAL", e[e.MODERN = 2] = "MODERN", e))(gu || {}), Fm = /* @__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))(Fm || {}), $m = /* @__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))($m || {}), Hm = /* @__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))(Hm || {}), Bm = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.TBRL = 1] = "TBRL", e[e.LRTBV = 2] = "LRTBV", e))(Bm || {}), jm = /* @__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))(jm || {}), Wm = /* @__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))(Wm || {}), Ym = /* @__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))(Ym || {}), 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 || {}), zm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(zm || {}), Vm = /* @__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))(Vm || {}), Gm = /* @__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))(Gm || {}), Km = /* @__PURE__ */ ((e) => (e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.SPECIFIED = 1] = "SPECIFIED", e))(Km || {}), Xm = /* @__PURE__ */ ((e) => (e[e.START = 0] = "START", e[e.CENTER = 1] = "CENTER", e[e.END = 2] = "END", e))(Xm || {}), qm = /* @__PURE__ */ ((e) => (e[e.AUTO_FIT = 0] = "AUTO_FIT", e[e.FIXED = 1] = "FIXED", e))(qm || {}), Jm = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.WRAP = 1] = "WRAP", e))(Jm || {}), Zm = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.AT_LEAST = 1] = "AT_LEAST", e[e.EXACT = 2] = "EXACT", e))(Zm || {}), Qm = /* @__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))(Qm || {}), ar = /* @__PURE__ */ ((e) => (e.NORMAL = "normal", e.BOLD = "bold", e.ITALIC = "italic", e))(ar || {}), eg = /* @__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))(eg || {}), tg = /* @__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))(tg || {}), ng = /* @__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))(ng || {}), rg = /* @__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))(rg || {}), sg = /* @__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))(sg || {}), ig = /* @__PURE__ */ ((e) => (e[e.compressPunctuation = 0] = "compressPunctuation", e[e.compressPunctuationAndJapaneseKana = 1] = "compressPunctuationAndJapaneseKana", e[e.doNotCompress = 2] = "doNotCompress", e))(ig || {}), og = /* @__PURE__ */ ((e) => (e[e.PORTRAIT = 0] = "PORTRAIT", e[e.LANDSCAPE = 1] = "LANDSCAPE", e))(og || {}), 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 || {});
|
|
2058
2058
|
const AR = [
|
|
2059
2059
|
"A3",
|
|
2060
2060
|
"A4",
|
|
@@ -2070,7 +2070,7 @@ const AR = [
|
|
|
2070
2070
|
/* Folio */
|
|
2071
2071
|
];
|
|
2072
2072
|
var ag = /* @__PURE__ */ ((e) => (e[e.forward = 0] = "forward", e[e.backward = 1] = "backward", e[e.front = 2] = "front", e[e.back = 3] = "back", e))(ag || {}), lg = /* @__PURE__ */ ((e) => (e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e[e.DRAWING_IMAGE = 0] = "DRAWING_IMAGE", e[e.DRAWING_SHAPE = 1] = "DRAWING_SHAPE", e[e.DRAWING_CHART = 2] = "DRAWING_CHART", e[e.DRAWING_TABLE = 3] = "DRAWING_TABLE", e[e.DRAWING_SMART_ART = 4] = "DRAWING_SMART_ART", e[e.DRAWING_VIDEO = 5] = "DRAWING_VIDEO", e[e.DRAWING_GROUP = 6] = "DRAWING_GROUP", e[e.DRAWING_UNIT = 7] = "DRAWING_UNIT", e[e.DRAWING_DOM = 8] = "DRAWING_DOM", e))(lg || {}), _u = /* @__PURE__ */ ((e) => (e[e.SLIDE = 0] = "SLIDE", e[e.MASTER = 1] = "MASTER", e[e.LAYOUT = 2] = "LAYOUT", e[e.HANDOUT_MASTER = 3] = "HANDOUT_MASTER", e[e.NOTES_MASTER = 4] = "NOTES_MASTER", e))(_u || {}), ug = /* @__PURE__ */ ((e) => (e[e.SHAPE = 0] = "SHAPE", e[e.IMAGE = 1] = "IMAGE", e[e.TEXT = 2] = "TEXT", e[e.SPREADSHEET = 3] = "SPREADSHEET", e[e.DOCUMENT = 4] = "DOCUMENT", e[e.SLIDE = 5] = "SLIDE", e))(ug || {}), cg = /* @__PURE__ */ ((e) => (e[e.RELATIVE_SLIDE_LINK_UNSPECIFIED = 0] = "RELATIVE_SLIDE_LINK_UNSPECIFIED", e[e.NEXT_SLIDE = 1] = "NEXT_SLIDE", e[e.PREVIOUS_SLIDE = 2] = "PREVIOUS_SLIDE", e[e.FIRST_SLIDE = 3] = "FIRST_SLIDE", e[e.LAST_SLIDE = 4] = "LAST_SLIDE", e))(cg || {});
|
|
2073
|
-
function hg(e = tt(6), t =
|
|
2073
|
+
function hg(e = tt(6), t = Ns.EN_US, n = "") {
|
|
2074
2074
|
return {
|
|
2075
2075
|
id: e,
|
|
2076
2076
|
locale: t,
|
|
@@ -2185,7 +2185,7 @@ function fg() {
|
|
|
2185
2185
|
}
|
|
2186
2186
|
return Pr.default = e, Pr;
|
|
2187
2187
|
}
|
|
2188
|
-
var
|
|
2188
|
+
var Js = {}, Ta;
|
|
2189
2189
|
function pu() {
|
|
2190
2190
|
return Ta || (Ta = 1, (function(e) {
|
|
2191
2191
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.eachChildOf = e.advancer = e.readCursor = e.writeCursor = e.WriteCursor = e.ReadCursor = e.isValidPathItem = void 0;
|
|
@@ -2412,18 +2412,18 @@ function pu() {
|
|
|
2412
2412
|
g && c.ascend(), R && h.ascend();
|
|
2413
2413
|
}
|
|
2414
2414
|
e.eachChildOf = u;
|
|
2415
|
-
})(
|
|
2415
|
+
})(Js)), Js;
|
|
2416
2416
|
}
|
|
2417
|
-
var
|
|
2417
|
+
var Zs = {}, Ma;
|
|
2418
2418
|
function Eu() {
|
|
2419
2419
|
return Ma || (Ma = 1, (function(e) {
|
|
2420
2420
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConflictType = void 0, (function(t) {
|
|
2421
2421
|
t[t.RM_UNEXPECTED_CONTENT = 1] = "RM_UNEXPECTED_CONTENT", t[t.DROP_COLLISION = 2] = "DROP_COLLISION", t[t.BLACKHOLE = 3] = "BLACKHOLE";
|
|
2422
2422
|
})(e.ConflictType || (e.ConflictType = {}));
|
|
2423
|
-
})(
|
|
2423
|
+
})(Zs)), Zs;
|
|
2424
2424
|
}
|
|
2425
2425
|
var Nt = {}, cn = {}, La;
|
|
2426
|
-
function
|
|
2426
|
+
function po() {
|
|
2427
2427
|
return La || (La = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.uniToStrPos = cn.strPosToUni = void 0, cn.strPosToUni = (e, t = e.length) => {
|
|
2428
2428
|
let n = 0, r = 0;
|
|
2429
2429
|
for (; r < t; r++) {
|
|
@@ -2442,11 +2442,11 @@ function Eo() {
|
|
|
2442
2442
|
return n;
|
|
2443
2443
|
}), cn;
|
|
2444
2444
|
}
|
|
2445
|
-
var
|
|
2446
|
-
function
|
|
2445
|
+
var Qs = {}, xa;
|
|
2446
|
+
function Ai() {
|
|
2447
2447
|
return xa || (xa = 1, (function(e) {
|
|
2448
2448
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.uniSlice = e.dlen = e.eachOp = void 0;
|
|
2449
|
-
const t =
|
|
2449
|
+
const t = po(), n = (w) => {
|
|
2450
2450
|
if (!Array.isArray(w))
|
|
2451
2451
|
throw Error("Op must be an array of components");
|
|
2452
2452
|
let C = null;
|
|
@@ -2718,13 +2718,13 @@ function yi() {
|
|
|
2718
2718
|
};
|
|
2719
2719
|
}
|
|
2720
2720
|
e.default = W;
|
|
2721
|
-
})(
|
|
2721
|
+
})(Qs)), Qs;
|
|
2722
2722
|
}
|
|
2723
2723
|
var kr = {}, Da;
|
|
2724
2724
|
function mg() {
|
|
2725
2725
|
if (Da) return kr;
|
|
2726
2726
|
Da = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
|
|
2727
|
-
const e =
|
|
2727
|
+
const e = Ai(), t = po();
|
|
2728
2728
|
function n(r, s) {
|
|
2729
2729
|
return {
|
|
2730
2730
|
// Returns the text content of the document
|
|
@@ -2786,7 +2786,7 @@ function gg() {
|
|
|
2786
2786
|
return d && d.__esModule ? d : { default: d };
|
|
2787
2787
|
};
|
|
2788
2788
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.type = e.remove = e.insert = void 0;
|
|
2789
|
-
const i =
|
|
2789
|
+
const i = po(), o = r(Ai()), a = s(mg()), l = {
|
|
2790
2790
|
create(d) {
|
|
2791
2791
|
return d;
|
|
2792
2792
|
},
|
|
@@ -2818,7 +2818,7 @@ function gg() {
|
|
|
2818
2818
|
slice: o.uniSlice
|
|
2819
2819
|
}, u = o.default(l), c = Object.assign(Object.assign({}, u), { api: a.default });
|
|
2820
2820
|
e.type = c, e.insert = (d, f) => f.length === 0 ? [] : d === 0 ? [f] : [d, f], e.remove = (d, f) => o.dlen(f) === 0 ? [] : d === 0 ? [{ d: f }] : [d, { d: f }];
|
|
2821
|
-
var h =
|
|
2821
|
+
var h = Ai();
|
|
2822
2822
|
Object.defineProperty(e, "makeType", { enumerable: !0, get: function() {
|
|
2823
2823
|
return h.default;
|
|
2824
2824
|
} });
|
|
@@ -3419,15 +3419,15 @@ function _g() {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
const At = Be - se;
|
|
3421
3421
|
let Wt = In(At);
|
|
3422
|
-
const
|
|
3422
|
+
const Ws = At - Ve;
|
|
3423
3423
|
let Mr = null;
|
|
3424
3424
|
{
|
|
3425
3425
|
let Kt, yt;
|
|
3426
3426
|
for (; Lt && typeof (Kt = re.getKey()) == "number"; ) {
|
|
3427
3427
|
yt = Kt - rt;
|
|
3428
3428
|
const wn = re.getComponent(), ln = h(wn);
|
|
3429
|
-
if (yt >
|
|
3430
|
-
if (yt ===
|
|
3429
|
+
if (yt > Ws) break;
|
|
3430
|
+
if (yt === Ws) {
|
|
3431
3431
|
if (!ln) {
|
|
3432
3432
|
Mr = re;
|
|
3433
3433
|
break;
|
|
@@ -3448,7 +3448,7 @@ function _g() {
|
|
|
3448
3448
|
Lt = re.nextSibling();
|
|
3449
3449
|
}
|
|
3450
3450
|
}
|
|
3451
|
-
const aa =
|
|
3451
|
+
const aa = Ws + rt + jt + an;
|
|
3452
3452
|
o(aa >= 0, "trying to descend to a negative index"), he.descend(aa), Xe && (Ue = Wt = Mr = null, Ce++), be(Ue, Ee, Wt, Mr, he, Se) && an++, he.ascend();
|
|
3453
3453
|
} else {
|
|
3454
3454
|
let Ue;
|
|
@@ -3619,7 +3619,7 @@ const Eg = /* @__PURE__ */ vt(lt), yR = /* @__PURE__ */ Uc({
|
|
|
3619
3619
|
default: Eg
|
|
3620
3620
|
}, [lt]);
|
|
3621
3621
|
var pe = /* @__PURE__ */ ((e) => (e[e.COVER = 0] = "COVER", e[e.REPLACE = 1] = "REPLACE", e))(pe || {}), J = /* @__PURE__ */ ((e) => (e.RETAIN = "r", e.INSERT = "i", e.DELETE = "d", e))(J || {});
|
|
3622
|
-
const
|
|
3622
|
+
const Ms = ot("univer.config-service");
|
|
3623
3623
|
class Cg {
|
|
3624
3624
|
constructor() {
|
|
3625
3625
|
p(this, "_configChanged$", new it());
|
|
@@ -3636,7 +3636,7 @@ class Cg {
|
|
|
3636
3636
|
var o;
|
|
3637
3637
|
const { merge: s = !1 } = r || {};
|
|
3638
3638
|
let i = (o = this._config.get(t)) != null ? o : {};
|
|
3639
|
-
s ? i =
|
|
3639
|
+
s ? i = ho(i, n) : i = n, this._config.set(t, i), this._configChanged$.next({ [t]: i });
|
|
3640
3640
|
}
|
|
3641
3641
|
deleteConfig(t) {
|
|
3642
3642
|
return this._config.delete(t);
|
|
@@ -3719,10 +3719,10 @@ var vg = Object.getOwnPropertyDescriptor, Sg = (e, t, n, r) => {
|
|
|
3719
3719
|
for (var s = r > 1 ? void 0 : r ? vg(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
3720
3720
|
(o = e[i]) && (s = o(s) || s);
|
|
3721
3721
|
return s;
|
|
3722
|
-
},
|
|
3723
|
-
const
|
|
3724
|
-
var
|
|
3725
|
-
const
|
|
3722
|
+
}, ei = (e, t) => (n, r) => t(n, r, e);
|
|
3723
|
+
const yi = "command.logExecution";
|
|
3724
|
+
var Ls = /* @__PURE__ */ ((e) => (e[e.COMMAND = 0] = "COMMAND", e[e.OPERATION = 1] = "OPERATION", e[e.MUTATION = 2] = "MUTATION", e))(Ls || {});
|
|
3725
|
+
const xs = ot("univer.core.command-service");
|
|
3726
3726
|
class bg {
|
|
3727
3727
|
constructor() {
|
|
3728
3728
|
p(this, "_commands", /* @__PURE__ */ new Map());
|
|
@@ -3753,7 +3753,7 @@ const Ag = {
|
|
|
3753
3753
|
type: 0,
|
|
3754
3754
|
handler: () => !0
|
|
3755
3755
|
};
|
|
3756
|
-
let
|
|
3756
|
+
let Ni = class extends Ge {
|
|
3757
3757
|
constructor(t, n, r) {
|
|
3758
3758
|
super();
|
|
3759
3759
|
p(this, "_commandRegistry");
|
|
@@ -3768,6 +3768,9 @@ let Ti = class extends Ge {
|
|
|
3768
3768
|
dispose() {
|
|
3769
3769
|
super.dispose(), this._commandExecutedListeners.length = 0, this._beforeCommandExecutionListeners.length = 0, this._collabMutationListeners.length = 0;
|
|
3770
3770
|
}
|
|
3771
|
+
disposed() {
|
|
3772
|
+
return this._disposed;
|
|
3773
|
+
}
|
|
3771
3774
|
hasCommand(t) {
|
|
3772
3775
|
return this._commandRegistry.hasCommand(t);
|
|
3773
3776
|
}
|
|
@@ -3820,7 +3823,7 @@ let Ti = class extends Ge {
|
|
|
3820
3823
|
}
|
|
3821
3824
|
throw new Error(`[CommandService]: command "${t}" is not registered.`);
|
|
3822
3825
|
} catch (s) {
|
|
3823
|
-
if (s instanceof
|
|
3826
|
+
if (s instanceof Ci)
|
|
3824
3827
|
return !1;
|
|
3825
3828
|
throw s;
|
|
3826
3829
|
}
|
|
@@ -3850,13 +3853,13 @@ let Ti = class extends Ge {
|
|
|
3850
3853
|
}
|
|
3851
3854
|
throw new Error(`[CommandService]: command "${t}" is not registered.`);
|
|
3852
3855
|
} catch (i) {
|
|
3853
|
-
if (i instanceof
|
|
3856
|
+
if (i instanceof Ci)
|
|
3854
3857
|
return !1;
|
|
3855
3858
|
throw i;
|
|
3856
3859
|
}
|
|
3857
3860
|
}
|
|
3858
3861
|
_pushCommandExecutionStack(t) {
|
|
3859
|
-
return this._commandExecutionStack.push(t), Ye(() =>
|
|
3862
|
+
return this._commandExecutionStack.push(t), Ye(() => vs(this._commandExecutionStack, t));
|
|
3860
3863
|
}
|
|
3861
3864
|
_registerMultiCommand(t) {
|
|
3862
3865
|
const n = this._commandRegistry.getCommand(t.id);
|
|
@@ -3867,7 +3870,7 @@ let Ti = class extends Ge {
|
|
|
3867
3870
|
r = n[0];
|
|
3868
3871
|
} else {
|
|
3869
3872
|
r = new yg(t.id);
|
|
3870
|
-
const i = new
|
|
3873
|
+
const i = new fo();
|
|
3871
3874
|
i.add(this._commandRegistry.registerCommand(r)), i.add(
|
|
3872
3875
|
Ye(() => {
|
|
3873
3876
|
this._multiCommandDisposables.delete(t.id);
|
|
@@ -3883,7 +3886,7 @@ let Ti = class extends Ge {
|
|
|
3883
3886
|
async _execute(t, n, r) {
|
|
3884
3887
|
if (r != null && r.syncOnly)
|
|
3885
3888
|
return !0;
|
|
3886
|
-
this._configService.getConfig(
|
|
3889
|
+
this._configService.getConfig(yi) !== !1 && this._logService.debug(
|
|
3887
3890
|
"[CommandService]",
|
|
3888
3891
|
`${"|-".repeat(Math.max(this._commandExecutingLevel, 0))}executing command "${t.id}"`
|
|
3889
3892
|
), this._commandExecutingLevel++;
|
|
@@ -3898,7 +3901,7 @@ let Ti = class extends Ge {
|
|
|
3898
3901
|
_syncExecute(t, n, r) {
|
|
3899
3902
|
if (r != null && r.syncOnly)
|
|
3900
3903
|
return !0;
|
|
3901
|
-
this._configService.getConfig(
|
|
3904
|
+
this._configService.getConfig(yi) !== !1 && this._logService.debug(
|
|
3902
3905
|
"[CommandService]",
|
|
3903
3906
|
`${"|-".repeat(Math.max(0, this._commandExecutingLevel))}executing command "${t.id}".`
|
|
3904
3907
|
), this._commandExecutingLevel++;
|
|
@@ -3913,11 +3916,11 @@ let Ti = class extends Ge {
|
|
|
3913
3916
|
return s;
|
|
3914
3917
|
}
|
|
3915
3918
|
};
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
],
|
|
3919
|
+
Ni = Sg([
|
|
3920
|
+
ei(0, wt(zn)),
|
|
3921
|
+
ei(1, Ct),
|
|
3922
|
+
ei(2, Ms)
|
|
3923
|
+
], Ni);
|
|
3921
3924
|
class yg {
|
|
3922
3925
|
constructor(t) {
|
|
3923
3926
|
p(this, "name");
|
|
@@ -3949,7 +3952,7 @@ class yg {
|
|
|
3949
3952
|
return this._implementations.length > 0;
|
|
3950
3953
|
}
|
|
3951
3954
|
}
|
|
3952
|
-
function
|
|
3955
|
+
function Eo(e, t, n) {
|
|
3953
3956
|
const r = e.map((s) => () => t.syncExecuteCommand(s.id, s.params, n));
|
|
3954
3957
|
return om(r);
|
|
3955
3958
|
}
|
|
@@ -3980,7 +3983,7 @@ function TR(e = 0) {
|
|
|
3980
3983
|
return t.pipe(
|
|
3981
3984
|
la((r) => n.push(r)),
|
|
3982
3985
|
bc(e),
|
|
3983
|
-
|
|
3986
|
+
ro(() => n),
|
|
3984
3987
|
la(() => n = [])
|
|
3985
3988
|
);
|
|
3986
3989
|
};
|
|
@@ -3995,7 +3998,7 @@ function LR(e, t) {
|
|
|
3995
3998
|
}
|
|
3996
3999
|
const xR = (e) => new Promise((t) => {
|
|
3997
4000
|
Fl(
|
|
3998
|
-
Ng(e.onCommandExecuted.bind(e)).pipe(Mc(([n]) => n.type ===
|
|
4001
|
+
Ng(e.onCommandExecuted.bind(e)).pipe(Mc(([n]) => n.type === Ls.MUTATION)),
|
|
3999
4002
|
Ac(300)
|
|
4000
4003
|
).pipe(Lc(16), xc()).subscribe(() => {
|
|
4001
4004
|
t();
|
|
@@ -4068,7 +4071,7 @@ function PR(e, t) {
|
|
|
4068
4071
|
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;
|
|
4069
4072
|
return Math.abs(a - n) > $r || Math.abs(l - r) > $r || Math.abs(d - g) > $r || Math.abs(f - _) > $r || Math.abs(h - o) > Lg;
|
|
4070
4073
|
}
|
|
4071
|
-
function
|
|
4074
|
+
function ti(e, t, n) {
|
|
4072
4075
|
const { dataStream: r, textRuns: s = [] } = e;
|
|
4073
4076
|
let i = t;
|
|
4074
4077
|
const o = [];
|
|
@@ -4092,11 +4095,11 @@ function kR(e, t = !0) {
|
|
|
4092
4095
|
let i = "", o = -1;
|
|
4093
4096
|
for (const a of s) {
|
|
4094
4097
|
const { startIndex: l, paragraphStyle: u = {} } = a, { spaceAbove: c, spaceBelow: h, lineSpacing: d } = u, f = [];
|
|
4095
|
-
c != null && (typeof c == "number" ? f.push(`margin-top: ${c}px`) : f.push(`margin-top: ${c.v}px`)), h != null && (typeof h == "number" ? f.push(`margin-bottom: ${h}px`) : f.push(`margin-bottom: ${h.v}px`)), d != null && f.push(`line-height: ${d}`), l > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${
|
|
4098
|
+
c != null && (typeof c == "number" ? f.push(`margin-top: ${c}px`) : f.push(`margin-top: ${c.v}px`)), h != null && (typeof h == "number" ? f.push(`margin-bottom: ${h}px`) : f.push(`margin-bottom: ${h.v}px`)), d != null && f.push(`line-height: ${d}`), l > o + 1 ? i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}>${ti(e, o + 1, l)}</p>` : i += `<p class="UniverNormal" ${f.length ? `style="${f.join("; ")};"` : ""}></p>`, o = l;
|
|
4096
4099
|
}
|
|
4097
|
-
return o !== r.length && (i +=
|
|
4100
|
+
return o !== r.length && (i += ti(e, o, r.length)), i;
|
|
4098
4101
|
} else
|
|
4099
|
-
return
|
|
4102
|
+
return ti(e, 0, e.dataStream.length);
|
|
4100
4103
|
}
|
|
4101
4104
|
function $a(e, t) {
|
|
4102
4105
|
const { st: n, ed: r, ts: s = {} } = t, { ff: i, fs: o, it: a, bl: l, ul: u, st: c, ol: h, bg: d, cl: f, va: g } = s;
|
|
@@ -4105,7 +4108,7 @@ function $a(e, t) {
|
|
|
4105
4108
|
return a === ie.TRUE && (_ = `<i>${_}</i>`), g === Zt.SUPERSCRIPT ? _ = `<sup>${_}</sup>` : g === Zt.SUBSCRIPT && (_ = `<sub>${_}</sub>`), (u == null ? void 0 : u.s) === ie.TRUE && (_ = `<u>${_}</u>`), (c == null ? void 0 : c.s) === ie.TRUE && (_ = `<s>${_}</s>`), l === ie.TRUE && (_ = `<strong>${_}</strong>`), i && R.push(`font-family: ${i}`), f && R.push(`color: ${f.rgb}`), o && R.push(`font-size: ${o}pt`), h && R.push("text-decoration: overline"), d && R.push(`background: ${d.rgb}`), R.length ? `<span style="${R.join("; ")};">${_}</span>` : _;
|
|
4106
4109
|
}
|
|
4107
4110
|
const xg = {
|
|
4108
|
-
[
|
|
4111
|
+
[_o.OFFICE]: {
|
|
4109
4112
|
[at.ACCENT1]: "#4472C4",
|
|
4110
4113
|
[at.ACCENT2]: "#ED7D31",
|
|
4111
4114
|
[at.ACCENT3]: "#A5A5A5",
|
|
@@ -4120,20 +4123,20 @@ const xg = {
|
|
|
4120
4123
|
[at.FOLLOWED_HYPERLINK]: "#954F72"
|
|
4121
4124
|
}
|
|
4122
4125
|
};
|
|
4123
|
-
class
|
|
4126
|
+
class Co {
|
|
4124
4127
|
constructor() {
|
|
4125
4128
|
p(this, "_themeValue", at.LIGHT1);
|
|
4126
4129
|
p(this, "_themeColors");
|
|
4127
4130
|
p(this, "_themeTint");
|
|
4128
4131
|
p(this, "_rgbValue", "");
|
|
4129
4132
|
p(this, "_colorType");
|
|
4130
|
-
this._colorType = Mt.UNSUPPORTED, this._themeColors =
|
|
4133
|
+
this._colorType = Mt.UNSUPPORTED, this._themeColors = _o.OFFICE, this._themeTint = 0;
|
|
4131
4134
|
}
|
|
4132
4135
|
asRgbColor() {
|
|
4133
|
-
return new
|
|
4136
|
+
return new Ti(this._rgbValue, this);
|
|
4134
4137
|
}
|
|
4135
4138
|
asThemeColor() {
|
|
4136
|
-
return new
|
|
4139
|
+
return new Mi(this._themeValue, this._themeTint, this._themeColors, this);
|
|
4137
4140
|
}
|
|
4138
4141
|
build() {
|
|
4139
4142
|
switch (this._colorType) {
|
|
@@ -4172,7 +4175,7 @@ class Wn {
|
|
|
4172
4175
|
static hexValueToRgbColor(t) {
|
|
4173
4176
|
t ? t.indexOf("#") > -1 && (t = t.substring(1)) : t = "#000000";
|
|
4174
4177
|
const n = +`0x${t[0]}${t[1]}`, r = +`0x${t[2]}${t[3]}`, s = +`0x${t[4]}${t[5]}`;
|
|
4175
|
-
return new
|
|
4178
|
+
return new Co().setRgbColor(`rgb(${n},${r},${s})`).asRgbColor();
|
|
4176
4179
|
}
|
|
4177
4180
|
static hexToRgbString(t) {
|
|
4178
4181
|
const n = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
|
|
@@ -4215,7 +4218,7 @@ class Dg {
|
|
|
4215
4218
|
this._lightness = (o + a) / 2, this._lightness < 0.5 ? this._saturation = l / (a + o) : this._saturation = l / (2 - a - o), n === a && (this._hue = (r - s) / l), r === a && (this._hue = 2 + (s - n) / l), s === a && (this._hue = 4 + (n - r) / l), this._hue *= 60, this._hue < 0 && (this._hue += 360), this._alpha = i;
|
|
4216
4219
|
}
|
|
4217
4220
|
asRgbColor() {
|
|
4218
|
-
const t = new
|
|
4221
|
+
const t = new Co();
|
|
4219
4222
|
if (this._saturation === 0)
|
|
4220
4223
|
return t.setRgbColor(
|
|
4221
4224
|
`rgba(${this._lightness * 255},${this._lightness * 255},${this._lightness * 255},${this._alpha * 255})`
|
|
@@ -4306,7 +4309,7 @@ const Et = class Et extends Wn {
|
|
|
4306
4309
|
p(Et, "RGB_COLOR_AMT", 0), p(Et, "RGBA_EXTRACT", new RegExp(
|
|
4307
4310
|
"\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*"
|
|
4308
4311
|
)), p(Et, "RGB_EXTRACT", new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));
|
|
4309
|
-
let
|
|
4312
|
+
let Ti = Et;
|
|
4310
4313
|
const Jt = class Jt extends Wn {
|
|
4311
4314
|
constructor(n, r, s, i) {
|
|
4312
4315
|
super(i);
|
|
@@ -4353,7 +4356,7 @@ const Jt = class Jt extends Wn {
|
|
|
4353
4356
|
}
|
|
4354
4357
|
};
|
|
4355
4358
|
p(Jt, "_cacheThemeColor", /* @__PURE__ */ new Map());
|
|
4356
|
-
let
|
|
4359
|
+
let Mi = Jt;
|
|
4357
4360
|
const FR = "rgb(", $R = "rgba(", Ha = {
|
|
4358
4361
|
aliceblue: [240, 248, 255],
|
|
4359
4362
|
antiquewhite: [250, 235, 215],
|
|
@@ -4588,7 +4591,7 @@ class Tt {
|
|
|
4588
4591
|
}
|
|
4589
4592
|
getLuminance() {
|
|
4590
4593
|
let { r: t, g: n, b: r } = this.toRgb();
|
|
4591
|
-
return t =
|
|
4594
|
+
return t = ni(t), n = ni(n), r = ni(r), Number((0.2126 * t + 0.7152 * n + 0.0722 * r).toFixed(3));
|
|
4592
4595
|
}
|
|
4593
4596
|
getBrightness() {
|
|
4594
4597
|
const { r: t, g: n, b: r } = this.toRgb();
|
|
@@ -4618,7 +4621,7 @@ class Tt {
|
|
|
4618
4621
|
};
|
|
4619
4622
|
}
|
|
4620
4623
|
}
|
|
4621
|
-
const Hr = (e) => e.length === 1 ? `0${e}` : e,
|
|
4624
|
+
const Hr = (e) => e.length === 1 ? `0${e}` : e, ni = (e) => (e /= 255, e <= 0.03928 ? e / 12.92 : ((e + 0.055) / 1.055) ** 2.4), Cu = (e) => {
|
|
4622
4625
|
if (zg(e)) {
|
|
4623
4626
|
if ("r" in e) {
|
|
4624
4627
|
const r = {
|
|
@@ -4715,7 +4718,7 @@ const Hr = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4715
4718
|
const t = Cu(e);
|
|
4716
4719
|
if (t != null)
|
|
4717
4720
|
return "r" in t ? t : "l" in t ? Hg(t) : Bg(t);
|
|
4718
|
-
},
|
|
4721
|
+
}, ri = (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), Hg = (e) => {
|
|
4719
4722
|
let { h: t, s: n, l: r } = e;
|
|
4720
4723
|
t /= 360, n /= 100, r /= 100;
|
|
4721
4724
|
let s = 0, i = 0, o = 0;
|
|
@@ -4723,7 +4726,7 @@ const Hr = (e) => e.length === 1 ? `0${e}` : e, ri = (e) => (e /= 255, e <= 0.03
|
|
|
4723
4726
|
s = i = o = r;
|
|
4724
4727
|
else {
|
|
4725
4728
|
const l = r < 0.5 ? r * (1 + n) : r + n - r * n, u = 2 * r - l;
|
|
4726
|
-
s =
|
|
4729
|
+
s = ri(u, l, t + 1 / 3), i = ri(u, l, t), o = ri(u, l, t - 1 / 3);
|
|
4727
4730
|
}
|
|
4728
4731
|
const a = {
|
|
4729
4732
|
r: Math.round(s * 255),
|
|
@@ -4873,7 +4876,7 @@ function zR(e, t, n) {
|
|
|
4873
4876
|
};
|
|
4874
4877
|
}
|
|
4875
4878
|
var lr = /* @__PURE__ */ ((e) => (e.Raw = "raw", e.Intercepted = "intercepted", e.Both = "both", e))(lr || {});
|
|
4876
|
-
const ur = 2, cr = 2 ** 2, ts = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6,
|
|
4879
|
+
const ur = 2, cr = 2 ** 2, ts = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6, Li = 2 ** 7, xi = 2 ** 8, Di = 2 ** 9, qg = 0, Jg = 2958466, Zg = -694324, Qg = 35830291, e_ = -1, Ba = 1, Pn = 6, Ro = "general", Io = "hash", kn = "zero", wo = "qmark", Oo = "slash", vr = "group", _s = "scale", vo = "comma", So = "break", Ds = "text", bo = "plus", Ao = "minus", ps = "point", yo = "space", No = "percent", Us = "digit", To = "calendar", Sr = "error", Mo = "datetime", Lo = "duration", xo = "condition", Do = "dbnum", Uo = "natnum", Po = "locale", ko = "color", Ru = "modifier", Fo = "ampm", $o = "escaped", Ho = "string", Bo = "skip", jo = "exp", Wo = "fill", Yo = "paren", Ps = "char", t_ = [
|
|
4877
4880
|
"#000",
|
|
4878
4881
|
"#FFF",
|
|
4879
4882
|
"#F00",
|
|
@@ -4926,7 +4929,7 @@ const ur = 2, cr = 2 ** 2, ts = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6, x
|
|
|
4926
4929
|
"#3CC",
|
|
4927
4930
|
"#9C0",
|
|
4928
4931
|
"#FC0"
|
|
4929
|
-
],
|
|
4932
|
+
], Ui = [
|
|
4930
4933
|
"¤",
|
|
4931
4934
|
"$",
|
|
4932
4935
|
"£",
|
|
@@ -4954,7 +4957,7 @@ const ur = 2, cr = 2 ** 2, ts = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6, x
|
|
|
4954
4957
|
"₽",
|
|
4955
4958
|
"₾",
|
|
4956
4959
|
"₿"
|
|
4957
|
-
],
|
|
4960
|
+
], Pi = new RegExp("[" + Ui.join("") + "]"), si = Object.freeze({
|
|
4958
4961
|
1078: "af",
|
|
4959
4962
|
// Afrikaans
|
|
4960
4963
|
1052: "sq",
|
|
@@ -5352,7 +5355,7 @@ const ur = 2, cr = 2 ** 2, ts = 2 ** 3, hr = 2 ** 4, dr = 2 ** 5, fr = 2 ** 6, x
|
|
|
5352
5355
|
bool: E("TRUE;FALSE"),
|
|
5353
5356
|
preferMDY: !1
|
|
5354
5357
|
};
|
|
5355
|
-
function
|
|
5358
|
+
function zo(e) {
|
|
5356
5359
|
const t = Iu.exec(e);
|
|
5357
5360
|
if (!t)
|
|
5358
5361
|
throw new SyntaxError(`Malformed locale: ${e}`);
|
|
@@ -5362,29 +5365,29 @@ function Vo(e) {
|
|
|
5362
5365
|
territory: t[2] || ""
|
|
5363
5366
|
};
|
|
5364
5367
|
}
|
|
5365
|
-
function
|
|
5368
|
+
function Vo(e) {
|
|
5366
5369
|
if (typeof e == "number")
|
|
5367
|
-
return
|
|
5370
|
+
return si[e & 65535] || null;
|
|
5368
5371
|
const t = parseInt(e, 16);
|
|
5369
|
-
return isFinite(t) &&
|
|
5372
|
+
return isFinite(t) && si[t & 65535] ? si[t & 65535] || null : Iu.test(e) ? e : null;
|
|
5370
5373
|
}
|
|
5371
5374
|
function qn(e) {
|
|
5372
|
-
const t =
|
|
5375
|
+
const t = Vo(e);
|
|
5373
5376
|
let n = null;
|
|
5374
5377
|
if (t) {
|
|
5375
|
-
const r =
|
|
5378
|
+
const r = zo(t);
|
|
5376
5379
|
n = Tn[r.lang] || Tn[r.language] || null;
|
|
5377
5380
|
}
|
|
5378
5381
|
return n;
|
|
5379
5382
|
}
|
|
5380
|
-
function
|
|
5383
|
+
function ki(e) {
|
|
5381
5384
|
return Object.assign({}, n_, e);
|
|
5382
5385
|
}
|
|
5383
5386
|
function te(e, t) {
|
|
5384
|
-
const n = typeof t == "object" ? t :
|
|
5385
|
-
return Tn[n.lang] =
|
|
5387
|
+
const n = typeof t == "object" ? t : zo(t);
|
|
5388
|
+
return Tn[n.lang] = ki(e), n.language !== n.lang && !Tn[n.language] && (Tn[n.language] = ki(e)), Tn[n.lang];
|
|
5386
5389
|
}
|
|
5387
|
-
const Qt =
|
|
5390
|
+
const Qt = ki({ group: ",", preferMDY: !0 });
|
|
5388
5391
|
Qt.isDefault = !0;
|
|
5389
5392
|
te({
|
|
5390
5393
|
group: ",",
|
|
@@ -5394,7 +5397,7 @@ te({
|
|
|
5394
5397
|
dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期"),
|
|
5395
5398
|
ddd: E("周日;周一;周二;周三;周四;周五;周六")
|
|
5396
5399
|
}, "zh_CN");
|
|
5397
|
-
const
|
|
5400
|
+
const Go = {
|
|
5398
5401
|
group: ",",
|
|
5399
5402
|
ampm: E("上午;下午"),
|
|
5400
5403
|
mmmm: E("1月;2月;3月;4月;5月;6月;7月;8月;9月;10月;11月;12月"),
|
|
@@ -5403,16 +5406,16 @@ const Ko = {
|
|
|
5403
5406
|
ddd: E("周日;周一;周二;周三;周四;周五;周六")
|
|
5404
5407
|
};
|
|
5405
5408
|
te({
|
|
5406
|
-
...
|
|
5409
|
+
...Go,
|
|
5407
5410
|
nan: "非數值",
|
|
5408
5411
|
dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期")
|
|
5409
5412
|
}, "zh_TW");
|
|
5410
5413
|
te({
|
|
5411
|
-
...
|
|
5414
|
+
...Go,
|
|
5412
5415
|
dddd: E("~日;~一;~二;~三;~四;~五;~六", "星期")
|
|
5413
5416
|
}, "zh_HK");
|
|
5414
5417
|
te({
|
|
5415
|
-
...
|
|
5418
|
+
...Go,
|
|
5416
5419
|
ampm: E("午前;午後"),
|
|
5417
5420
|
dddd: E("日~;月~;火~;水~;木~;金~;土~", "曜日"),
|
|
5418
5421
|
ddd: E("日;月;火;水;木;金;土")
|
|
@@ -5472,7 +5475,7 @@ te(De({
|
|
|
5472
5475
|
dddd: E("sunnun~;maanan~;tiis~;keskiviikkona;tors~;perjan~;lauan~", "taina"),
|
|
5473
5476
|
bool: E("TOSI;EPÄTOSI")
|
|
5474
5477
|
}, -1, 2), "fi");
|
|
5475
|
-
const
|
|
5478
|
+
const Ko = De({
|
|
5476
5479
|
group: " ",
|
|
5477
5480
|
decimal: ",",
|
|
5478
5481
|
mmmm: E("janvier;février;mars;avril;mai;juin;juillet;août;septembre;octobre;novembre;décembre"),
|
|
@@ -5480,9 +5483,9 @@ const Xo = De({
|
|
|
5480
5483
|
dddd: E("~manche;lun~;mar~;mercre~;jeu~;vendre~;same~", "di"),
|
|
5481
5484
|
bool: E("VRAI;FAUX")
|
|
5482
5485
|
}, -1, 13);
|
|
5483
|
-
te({ ...
|
|
5484
|
-
te({ ...
|
|
5485
|
-
te({ group: "'", decimal: ".", ...
|
|
5486
|
+
te({ ...Ko }, "fr");
|
|
5487
|
+
te({ ...Ko, mmm: E("janv.;févr.;mars;avr.;mai;juin;juill.;août;sept.;oct.;nov.;déc.") }, "fr_CA");
|
|
5488
|
+
te({ group: "'", decimal: ".", ...Ko }, "fr_CH");
|
|
5486
5489
|
const wu = De({
|
|
5487
5490
|
mmmm: E("Januar;Februar;März;April;Mai;Juni;Juli;August;September;Oktober;November;Dezember"),
|
|
5488
5491
|
mmm: E("Jan.;Feb.;März;Apr.;Mai;Juni;Juli;Aug.;Sept.;Okt.;Nov.;Dez."),
|
|
@@ -5579,7 +5582,7 @@ const $t = {
|
|
|
5579
5582
|
dddd: E("domingo;lunes;martes;miércoles;jueves;viernes;sábado"),
|
|
5580
5583
|
ddd: E("dom;lun;mar;mié;jue;vie;sáb"),
|
|
5581
5584
|
bool: E("VERDADERO;FALSO")
|
|
5582
|
-
}, r_ = E("ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"),
|
|
5585
|
+
}, r_ = E("ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic"), Xo = E("ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.");
|
|
5583
5586
|
te({ ...$t }, "es");
|
|
5584
5587
|
te({ ...$t }, "es_AR");
|
|
5585
5588
|
te({ ...$t }, "es_BO");
|
|
@@ -5587,9 +5590,9 @@ te({ ...$t }, "es_CL");
|
|
|
5587
5590
|
te({ ...$t }, "es_CO");
|
|
5588
5591
|
te({ ...$t }, "es_EC");
|
|
5589
5592
|
te({ ...$t, mmm: r_, ampm: E("a.m.;p.m.") }, "es_MX");
|
|
5590
|
-
te({ ...$t, mmm:
|
|
5591
|
-
te({ ...$t, mmm:
|
|
5592
|
-
te({ ...$t, mmm:
|
|
5593
|
+
te({ ...$t, mmm: Xo }, "es_PY");
|
|
5594
|
+
te({ ...$t, mmm: Xo }, "es_UY");
|
|
5595
|
+
te({ ...$t, mmm: Xo, mmmm: E("enero;febrero;marzo;abril;mayo;junio;julio;agosto;setiembre;octubre;noviembre;diciembre") }, "es_VE");
|
|
5593
5596
|
te({
|
|
5594
5597
|
decimal: ",",
|
|
5595
5598
|
ampm: E("fm;em"),
|
|
@@ -5952,8 +5955,8 @@ function Nu(e, t = 0, n = !0) {
|
|
|
5952
5955
|
const r = ht(e);
|
|
5953
5956
|
return t === Pn ? o_(r) : t === e_ ? i_(r) : yu(r, n);
|
|
5954
5957
|
}
|
|
5955
|
-
const Br = Math.floor,
|
|
5956
|
-
function
|
|
5958
|
+
const Br = Math.floor, ii = 86400;
|
|
5959
|
+
function qo(e, t) {
|
|
5957
5960
|
let n = null;
|
|
5958
5961
|
if (Array.isArray(e)) {
|
|
5959
5962
|
const [r, s, i, o, a, l] = e;
|
|
@@ -5979,10 +5982,10 @@ function Jo(e, t) {
|
|
|
5979
5982
|
}
|
|
5980
5983
|
function a_(e, t) {
|
|
5981
5984
|
let n = e | 0;
|
|
5982
|
-
const r =
|
|
5985
|
+
const r = ii * (e - n);
|
|
5983
5986
|
let s = Br(r);
|
|
5984
|
-
r - s > 0.9999 && (s += 1, s ===
|
|
5985
|
-
const i = s < 0 ?
|
|
5987
|
+
r - s > 0.9999 && (s += 1, s === ii && (s = 0, n += 1));
|
|
5988
|
+
const i = s < 0 ? ii + s : s, [o, a, l] = Nu(e, 0, t && t.leap1900), u = Br(i / 60 / 60) % 60, c = Br(i / 60) % 60, h = Br(i) % 60;
|
|
5986
5989
|
return [o, a, l, u, c, h];
|
|
5987
5990
|
}
|
|
5988
5991
|
const l_ = [
|
|
@@ -6085,23 +6088,23 @@ function ja(e, t) {
|
|
|
6085
6088
|
l_.forEach((e) => {
|
|
6086
6089
|
e[0] !== "?" && ja(e, Tu), e[0] !== "!" && ja(e, Mu);
|
|
6087
6090
|
});
|
|
6088
|
-
const h_ = (/* @__PURE__ */ new Date()).getUTCFullYear(), Wa = ".", d_ = ",",
|
|
6091
|
+
const h_ = (/* @__PURE__ */ new Date()).getUTCFullYear(), Wa = ".", d_ = ",", oi = " ", Cr = " ", Rr = " ", ns = "'", rs = "٬", f_ = {
|
|
6089
6092
|
".": [d_, Cr, Rr, ns, rs],
|
|
6090
6093
|
",": [Wa, Cr, Rr, ns, rs],
|
|
6091
6094
|
"٫": [Wa, Cr, Rr, ns, rs]
|
|
6092
|
-
},
|
|
6093
|
-
function
|
|
6095
|
+
}, ai = (e) => e && e.length === 1 && e >= "0" && e <= "9";
|
|
6096
|
+
function Jo(e, t = {}) {
|
|
6094
6097
|
const n = qn(t.locale || "") || Qt, r = n.decimal, s = [...f_[r] || [ns, rs]];
|
|
6095
|
-
!s.includes(n.group) && n.group !==
|
|
6098
|
+
!s.includes(n.group) && n.group !== oi && n.group !== r && s.push(n.group);
|
|
6096
6099
|
let i = "", o = "", a = 1, l = "", u = !1, c = !1, h = !1, d = !1, f = !1, g = null, _ = !1, R = 0;
|
|
6097
|
-
const b = [
|
|
6100
|
+
const b = [oi, Cr, Rr, "+", "%", "(", "-"].concat(Ui);
|
|
6098
6101
|
for (; b.includes(e[R]); ) {
|
|
6099
6102
|
const S = e[R];
|
|
6100
6103
|
if (S === "-") {
|
|
6101
6104
|
if (u || c)
|
|
6102
6105
|
return null;
|
|
6103
6106
|
u = !0, a = -1;
|
|
6104
|
-
} else if (
|
|
6107
|
+
} else if (Pi.test(S)) {
|
|
6105
6108
|
if (f)
|
|
6106
6109
|
return null;
|
|
6107
6110
|
f = !0, g = S;
|
|
@@ -6117,7 +6120,7 @@ function Zo(e, t = {}) {
|
|
|
6117
6120
|
R++;
|
|
6118
6121
|
}
|
|
6119
6122
|
let $ = !1, k;
|
|
6120
|
-
if (e[R] === r ||
|
|
6123
|
+
if (e[R] === r || ai(e[R]))
|
|
6121
6124
|
for (; R < e.length; ) {
|
|
6122
6125
|
const S = e[R];
|
|
6123
6126
|
if (!k && s.includes(S))
|
|
@@ -6126,7 +6129,7 @@ function Zo(e, t = {}) {
|
|
|
6126
6129
|
if ($)
|
|
6127
6130
|
break;
|
|
6128
6131
|
i += ".", $ = !0;
|
|
6129
|
-
} else if (
|
|
6132
|
+
} else if (ai(S))
|
|
6130
6133
|
i += S;
|
|
6131
6134
|
else
|
|
6132
6135
|
break;
|
|
@@ -6135,15 +6138,15 @@ function Zo(e, t = {}) {
|
|
|
6135
6138
|
if (e[R] === "e" || e[R] === "E") {
|
|
6136
6139
|
o += e[R], R++, (e[R] === "+" || e[R] === "-") && (o += e[R], R++);
|
|
6137
6140
|
const S = R;
|
|
6138
|
-
for (;
|
|
6141
|
+
for (; ai(e[R]); )
|
|
6139
6142
|
o += e[R], R++;
|
|
6140
6143
|
if (S === R)
|
|
6141
6144
|
return null;
|
|
6142
6145
|
}
|
|
6143
|
-
const W = [
|
|
6146
|
+
const W = [oi, Cr, Rr, "%", "$", ")"].concat(Ui);
|
|
6144
6147
|
for (; W.includes(e[R]); ) {
|
|
6145
6148
|
const S = e[R];
|
|
6146
|
-
if (
|
|
6149
|
+
if (Pi.test(S)) {
|
|
6147
6150
|
if (f)
|
|
6148
6151
|
return null;
|
|
6149
6152
|
f = !0, g = S, _ = !0;
|
|
@@ -6246,7 +6249,7 @@ const Ya = (e, t, n = !1) => {
|
|
|
6246
6249
|
const u = /^\d\d\d\d\b/.exec(e);
|
|
6247
6250
|
u && (a = Dt(e.slice(u[0].length), t[l], { ...n, year: +u[0], path: s + l }, r));
|
|
6248
6251
|
} else if (l === "x") {
|
|
6249
|
-
const u =
|
|
6252
|
+
const u = ks(e, { locale: r.locale });
|
|
6250
6253
|
u && (a = Dt("", t[l], { ...n, time: u.v, tf: u.z, path: s + l }, r));
|
|
6251
6254
|
} else
|
|
6252
6255
|
throw new Error(`Unknown date token "${l}"`);
|
|
@@ -6258,7 +6261,7 @@ const Ya = (e, t, n = !1) => {
|
|
|
6258
6261
|
const n = e.map((r, s) => [Lu(r), s + 1, t]);
|
|
6259
6262
|
return n.sort((r, s) => s[0].length - r[0].length), n;
|
|
6260
6263
|
};
|
|
6261
|
-
function
|
|
6264
|
+
function Zo(e, t = {}) {
|
|
6262
6265
|
var i;
|
|
6263
6266
|
const n = qn(t.locale || "") || Qt, r = {
|
|
6264
6267
|
mon: jr(n.mmmm, "F").concat(jr(n.mmm, "M")),
|
|
@@ -6293,15 +6296,15 @@ function Qo(e, t = {}) {
|
|
|
6293
6296
|
}
|
|
6294
6297
|
return null;
|
|
6295
6298
|
}
|
|
6296
|
-
const
|
|
6297
|
-
function
|
|
6299
|
+
const li = (e) => e.replace(/\s+/g, "").trim().replace(/\./g, "").toLowerCase();
|
|
6300
|
+
function ks(e, t = {}) {
|
|
6298
6301
|
const n = qn(t.locale || "") || Qt, r = /^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?=\s*[^\s\d]|$)/.exec(e);
|
|
6299
6302
|
let s = "";
|
|
6300
6303
|
if (r) {
|
|
6301
|
-
const i =
|
|
6302
|
-
if (i ===
|
|
6304
|
+
const i = li(e.slice(r[0].length));
|
|
6305
|
+
if (i === li(n.ampm[0]) || i === "a" || i === "am")
|
|
6303
6306
|
s = "a";
|
|
6304
|
-
else if (i ===
|
|
6307
|
+
else if (i === li(n.ampm[1]) || i === "p" || i === "pm")
|
|
6305
6308
|
s = "p";
|
|
6306
6309
|
else if (i)
|
|
6307
6310
|
return null;
|
|
@@ -6333,7 +6336,7 @@ function xu(e, t = {}) {
|
|
|
6333
6336
|
}
|
|
6334
6337
|
function g_(e, t) {
|
|
6335
6338
|
var n, r, s;
|
|
6336
|
-
return (s = (r = (n =
|
|
6339
|
+
return (s = (r = (n = Jo(e, t)) != null ? n : Zo(e, t)) != null ? r : ks(e, t)) != null ? s : xu(e, t);
|
|
6337
6340
|
}
|
|
6338
6341
|
function hn(e, t, n) {
|
|
6339
6342
|
return t[n + "_max"] = e.length, t[n + "_min"] = e.replace(/#/g, "").length, t;
|
|
@@ -6343,7 +6346,7 @@ function We(e, t) {
|
|
|
6343
6346
|
}
|
|
6344
6347
|
function za(e, t) {
|
|
6345
6348
|
const n = e && e.type;
|
|
6346
|
-
return n ===
|
|
6349
|
+
return n === Io || n === kn || n === wo || n === Us && t === "den";
|
|
6347
6350
|
}
|
|
6348
6351
|
function mr(e) {
|
|
6349
6352
|
var k, W, w;
|
|
@@ -6369,39 +6372,39 @@ function mr(e) {
|
|
|
6369
6372
|
let o, a = !1, l = -1, u = !1, c = "", h = !1;
|
|
6370
6373
|
for (; ++l < e.length && !u; ) {
|
|
6371
6374
|
const C = e[l], S = C.type || Sr;
|
|
6372
|
-
if (c += C.raw, S ===
|
|
6375
|
+
if (c += C.raw, S === Ro)
|
|
6373
6376
|
n.general = !0, We(C, t);
|
|
6374
6377
|
else if (za(C, r)) {
|
|
6375
6378
|
const y = n[r + "_pattern"];
|
|
6376
6379
|
za(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 }, We(s, t));
|
|
6377
|
-
} else if (S ===
|
|
6380
|
+
} else if (S === Yo)
|
|
6378
6381
|
C.value === "(" && (n.parens = !0), We(C.value, t);
|
|
6379
|
-
else if (S ===
|
|
6382
|
+
else if (S === Us)
|
|
6380
6383
|
We(C.value, t);
|
|
6381
|
-
else if (S ===
|
|
6384
|
+
else if (S === Oo)
|
|
6382
6385
|
if (h = !0, n[r + "_pattern"].length) {
|
|
6383
6386
|
if (!s)
|
|
6384
6387
|
throw new SyntaxError("Format pattern is missing a numerator");
|
|
6385
6388
|
n.fractions = !0, n.num_pattern.push(n[r + "_pattern"].pop()), s.type = "num", r = "den", We({ type: "div" }, t);
|
|
6386
6389
|
} else
|
|
6387
6390
|
We(C.value, t);
|
|
6388
|
-
else if (S ===
|
|
6391
|
+
else if (S === vo)
|
|
6389
6392
|
We(",", t);
|
|
6390
6393
|
else if (S === _s)
|
|
6391
6394
|
n.scale = 1e-3 ** C.raw.length;
|
|
6392
6395
|
else if (S === vr) {
|
|
6393
6396
|
if (r === "int" && (n.grouping = !0), r === "den")
|
|
6394
6397
|
throw new SyntaxError("Cannot group denominator digits");
|
|
6395
|
-
} else if (S ===
|
|
6398
|
+
} else if (S === yo)
|
|
6396
6399
|
We(C, t);
|
|
6397
|
-
else if (S ===
|
|
6400
|
+
else if (S === So) {
|
|
6398
6401
|
u = !0;
|
|
6399
6402
|
break;
|
|
6400
|
-
} else if (S ===
|
|
6403
|
+
} else if (S === Ds)
|
|
6401
6404
|
n.text = !0, We(C, t);
|
|
6402
|
-
else if (S ===
|
|
6405
|
+
else if (S === bo || S === Ao)
|
|
6403
6406
|
We(C, t);
|
|
6404
|
-
else if (S ===
|
|
6407
|
+
else if (S === Lo) {
|
|
6405
6408
|
const y = C.value.toLowerCase(), F = y[0], H = { type: "", size: 0, date: 1, pad: y.length };
|
|
6406
6409
|
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), We(H, t);
|
|
6407
6410
|
} else if (n.date && S === ps && ((k = e[l + 1]) == null ? void 0 : k.type) === kn) {
|
|
@@ -6409,16 +6412,16 @@ function mr(e) {
|
|
|
6409
6412
|
l++;
|
|
6410
6413
|
let F = "0";
|
|
6411
6414
|
((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;
|
|
6412
|
-
const H = [fr, xi, Di
|
|
6415
|
+
const H = [fr, Li, xi, Di][y];
|
|
6413
6416
|
n.date = n.date | H, n.date_eval = !0, n.sec_decimals = Math.max(n.sec_decimals, y), We({
|
|
6414
6417
|
type: "subsec",
|
|
6415
6418
|
size: H,
|
|
6416
6419
|
decimals: y,
|
|
6417
6420
|
date: 1
|
|
6418
6421
|
}, t);
|
|
6419
|
-
} else if (S ===
|
|
6422
|
+
} else if (S === To)
|
|
6420
6423
|
a || (C.value === "B2" || C.value === "b2" ? n.date_system = Pn : n.date_system = Ba);
|
|
6421
|
-
else if (S ===
|
|
6424
|
+
else if (S === Mo) {
|
|
6422
6425
|
const y = { type: "", size: 0, date: 1 }, F = C.value.toLowerCase(), H = F[0];
|
|
6423
6426
|
if (F === "y" || F === "yy")
|
|
6424
6427
|
y.size = ur, y.type = "year-short";
|
|
@@ -6446,38 +6449,38 @@ function mr(e) {
|
|
|
6446
6449
|
m && m.size & dr ? y.used = !0 : m && m.indeterminate && (delete m.indeterminate, m.size = dr, m.type = "min", y.used = !0);
|
|
6447
6450
|
}
|
|
6448
6451
|
n.date = n.date | y.size, n.date_eval = !0, i.push(y), We(y, t);
|
|
6449
|
-
} else if (S ===
|
|
6452
|
+
} else if (S === Fo)
|
|
6450
6453
|
n.clock = 12, n.date = n.date | hr, n.date_eval = !0, C.short = C.value === "A/P", We(C, t);
|
|
6451
|
-
else if (S ===
|
|
6454
|
+
else if (S === Ho || S === $o || S === Ps)
|
|
6452
6455
|
We(C.value, t);
|
|
6453
|
-
else if (S ===
|
|
6456
|
+
else if (S === xo)
|
|
6454
6457
|
n.condition = [
|
|
6455
6458
|
C.value[0],
|
|
6456
6459
|
// operator
|
|
6457
6460
|
parseFloat(C.value[1])
|
|
6458
6461
|
// operand
|
|
6459
6462
|
];
|
|
6460
|
-
else if (S ===
|
|
6463
|
+
else if (S === Po) {
|
|
6461
6464
|
const y = C.value.split("-"), F = y.length < 2 ? "" : y.slice(1).join("-"), H = y[0];
|
|
6462
6465
|
H && We(H, t);
|
|
6463
|
-
const m =
|
|
6466
|
+
const m = Vo(F);
|
|
6464
6467
|
m && (n.locale = m);
|
|
6465
6468
|
const D = parseInt(F, 16);
|
|
6466
6469
|
isFinite(D) && D & 16711680 && (D >> 16 & 255) === 6 && (n.date_system = Pn), a = !0;
|
|
6467
|
-
} else if (S ===
|
|
6470
|
+
} else if (S === ko) {
|
|
6468
6471
|
let y, F = C.value.toLowerCase();
|
|
6469
6472
|
(y = /^color\s*(\d+)$/i.exec(F)) && (F = parseInt(y[1], 10)), n.color = F;
|
|
6470
|
-
} else if (S ===
|
|
6473
|
+
} else if (S === No)
|
|
6471
6474
|
n.scale = 100, n.percent = !0, We("%", t);
|
|
6472
6475
|
else if (S === ps)
|
|
6473
6476
|
We(C, t), n.date || (n.dec_fractions = !0, r = "frac");
|
|
6474
|
-
else if (S === Wo)
|
|
6475
|
-
n.exponential = !0, n.exp_plus = C.value.includes("+"), r = "man", We({ type: "exp", plus: n.exp_plus }, t);
|
|
6476
6477
|
else if (S === jo)
|
|
6478
|
+
n.exponential = !0, n.exp_plus = C.value.includes("+"), r = "man", We({ type: "exp", plus: n.exp_plus }, t);
|
|
6479
|
+
else if (S === Bo)
|
|
6477
6480
|
We(C, t);
|
|
6478
|
-
else if (S ===
|
|
6481
|
+
else if (S === Wo)
|
|
6479
6482
|
We(C, t);
|
|
6480
|
-
else if (!(S ===
|
|
6483
|
+
else if (!(S === Do || S === Uo)) throw S === Sr ? new SyntaxError(`Illegal character: ${c}`) : new SyntaxError(`Unknown token ${S} in ${c}`);
|
|
6481
6484
|
o = C;
|
|
6482
6485
|
}
|
|
6483
6486
|
if (n.tokensUsed = l, n.pattern = c, /^((?:\[[^\]]+\])+)(;|$)/.test(n.pattern) && !/^\[(?:h+|m+|s+)\]/.test(n.pattern) && We({ 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)
|
|
@@ -6638,8 +6641,8 @@ function Ka(e, t, n, r) {
|
|
|
6638
6641
|
h = Math.trunc(e);
|
|
6639
6642
|
const N = er * (e - h);
|
|
6640
6643
|
if (d = Math.floor(N), W = N - d, Math.abs(W) < 1e-6 ? W = 0 : W > 0.9999 && (W = 0, d += 1, d === er && (d = 0, h += 1)), W) {
|
|
6641
|
-
const M = t.date &
|
|
6642
|
-
(M ===
|
|
6644
|
+
const M = t.date & Di || t.date & xi || t.date & Li;
|
|
6645
|
+
(M === Di && W > 0.9995 || M === xi && W > 0.995 || M === Li && W > 0.95 || !M && W >= 0.5) && (d++, W = 0);
|
|
6643
6646
|
}
|
|
6644
6647
|
if (h || t.date_system) {
|
|
6645
6648
|
const M = Nu(e, t.date_system, n.leap1900);
|
|
@@ -6787,7 +6790,7 @@ function Ka(e, t, n, r) {
|
|
|
6787
6790
|
return m.join("");
|
|
6788
6791
|
}
|
|
6789
6792
|
const R_ = mr([
|
|
6790
|
-
{ type:
|
|
6793
|
+
{ type: Ds, value: "@", raw: "@" }
|
|
6791
6794
|
]);
|
|
6792
6795
|
function Pu(e, t) {
|
|
6793
6796
|
for (let n = 0; n < 3; n++) {
|
|
@@ -6869,7 +6872,7 @@ function S_(e, t = null) {
|
|
|
6869
6872
|
color: 0,
|
|
6870
6873
|
parentheses: 0,
|
|
6871
6874
|
grouped: n.grouping ? 1 : 0
|
|
6872
|
-
}, o = !i.isDate && !i.isText && !n.error && n.tokens.some((d) => d.type === "string" && (t ? d.value === t :
|
|
6875
|
+
}, o = !i.isDate && !i.isText && !n.error && n.tokens.some((d) => d.type === "string" && (t ? d.value === t : Pi.test(d.value)));
|
|
6873
6876
|
let a = "G", l = s >= 0 ? Math.min(15, s) : "", u = "", c = "";
|
|
6874
6877
|
if (r && r.color && (c = "-", i.color = 1), n.parens && (u = "()", i.parentheses = 1), o)
|
|
6875
6878
|
a = "C", i.type = "currency";
|
|
@@ -6899,47 +6902,47 @@ function b_(e) {
|
|
|
6899
6902
|
};
|
|
6900
6903
|
}
|
|
6901
6904
|
const A_ = [
|
|
6902
|
-
[
|
|
6903
|
-
[
|
|
6905
|
+
[Ro, /^General/i, 0],
|
|
6906
|
+
[Io, /^#/, 0],
|
|
6904
6907
|
[kn, /^0/, 0],
|
|
6905
|
-
[
|
|
6906
|
-
[
|
|
6908
|
+
[wo, /^\?/, 0],
|
|
6909
|
+
[Oo, /^\//, 0],
|
|
6907
6910
|
// Commas are dealt with as a special case in the tokenizer but will end up
|
|
6908
6911
|
// as one of these:
|
|
6909
6912
|
// [ TOKEN_GROUP, /^(,),*/, 1 ],
|
|
6910
6913
|
// [ TOKEN_SCALE, /^(,),*/, 1 ],
|
|
6911
6914
|
// [ TOKEN_COMMA, /^(,),*/, 1 ],
|
|
6912
|
-
[
|
|
6913
|
-
[
|
|
6914
|
-
[
|
|
6915
|
-
[
|
|
6915
|
+
[So, /^;/, 0],
|
|
6916
|
+
[Ds, /^@/, 0],
|
|
6917
|
+
[bo, /^\+/, 0],
|
|
6918
|
+
[Ao, /^-/, 0],
|
|
6916
6919
|
[ps, /^\./, 0],
|
|
6917
|
-
[
|
|
6918
|
-
[
|
|
6919
|
-
[
|
|
6920
|
-
[
|
|
6920
|
+
[yo, /^ /, 0],
|
|
6921
|
+
[No, /^%/, 0],
|
|
6922
|
+
[Us, /^[1-9]/, 0],
|
|
6923
|
+
[To, /^(?:B[12])/i, 0],
|
|
6921
6924
|
[Sr, /^B$/, 0],
|
|
6922
6925
|
// pattern must not end in a "B"
|
|
6923
|
-
[
|
|
6924
|
-
[
|
|
6925
|
-
[
|
|
6926
|
-
[
|
|
6927
|
-
[
|
|
6928
|
-
[
|
|
6929
|
-
[
|
|
6926
|
+
[Mo, /^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/, 0],
|
|
6927
|
+
[Lo, /^(?:\[(h+|m+|s+)\])/i, 1],
|
|
6928
|
+
[xo, /^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/, [1, 2]],
|
|
6929
|
+
[Do, /^\[(DBNum[0-4]?\d)\]/i, 1],
|
|
6930
|
+
[Uo, /^\[(NatNum[0-4]?\d)\]/i, 1],
|
|
6931
|
+
[Po, /^\[\$([^\]]+)\]/, 1],
|
|
6932
|
+
[ko, /^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*\d+)\]/i, 1],
|
|
6930
6933
|
// conditionally allow these open ended directions?
|
|
6931
6934
|
[Ru, /^\[([^\]]+)\]/, 1],
|
|
6932
|
-
[
|
|
6933
|
-
[
|
|
6934
|
-
[
|
|
6935
|
-
[
|
|
6935
|
+
[Fo, /^(?:AM\/PM|am\/pm|A\/P)/, 0],
|
|
6936
|
+
[$o, /^\\(.)/, 1],
|
|
6937
|
+
[Ho, /^"([^"]*?)"/, 1],
|
|
6938
|
+
[Bo, /^_(\\.|.)/, 1],
|
|
6936
6939
|
// Google Sheets and Excel diverge on "e": Excel only accepts E.
|
|
6937
|
-
[
|
|
6938
|
-
[
|
|
6939
|
-
[
|
|
6940
|
+
[jo, /^[Ee]([+-])/, 1],
|
|
6941
|
+
[Wo, /^\*(\\.|.)/, 1],
|
|
6942
|
+
[Yo, /^[()]/, 0],
|
|
6940
6943
|
[Sr, /^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/, 0],
|
|
6941
|
-
[
|
|
6942
|
-
], y_ = 63, N_ = 35, T_ = 48, M_ = 57,
|
|
6944
|
+
[Ps, /^./, 0]
|
|
6945
|
+
], y_ = 63, N_ = 35, T_ = 48, M_ = 57, ui = (e) => {
|
|
6943
6946
|
const t = (e || "\0").charCodeAt(0);
|
|
6944
6947
|
return t === y_ || t === N_ || t >= T_ && t <= M_;
|
|
6945
6948
|
};
|
|
@@ -6955,9 +6958,9 @@ function Mn(e) {
|
|
|
6955
6958
|
i = a.length;
|
|
6956
6959
|
const l = e[t - 1] || "";
|
|
6957
6960
|
let u = !1, c = !1;
|
|
6958
|
-
|
|
6961
|
+
ui(l) ? (u = !0, c = !0) : l === "." && (c = !0);
|
|
6959
6962
|
const h = o[2] || "";
|
|
6960
|
-
if (u && (!h || h === ";") && (u = !1), c &&
|
|
6963
|
+
if (u && (!h || h === ";") && (u = !1), c && ui(h) && (c = !1), u && !c)
|
|
6961
6964
|
n.push({ type: vr, value: ",", raw: a });
|
|
6962
6965
|
else if (!u && c)
|
|
6963
6966
|
n.push({ type: _s, value: ",", raw: a });
|
|
@@ -6965,7 +6968,7 @@ function Mn(e) {
|
|
|
6965
6968
|
const d = { type: _s, value: ",", raw: a };
|
|
6966
6969
|
n.push(d), r.push(d);
|
|
6967
6970
|
} else
|
|
6968
|
-
n.push({ type:
|
|
6971
|
+
n.push({ type: vo, value: ",", raw: a });
|
|
6969
6972
|
} else {
|
|
6970
6973
|
let a;
|
|
6971
6974
|
for (const [l, u, c] of A_) {
|
|
@@ -6976,17 +6979,17 @@ function Mn(e) {
|
|
|
6976
6979
|
break;
|
|
6977
6980
|
}
|
|
6978
6981
|
}
|
|
6979
|
-
r.length && a.raw === ";" && (r.length = 0), r.length &&
|
|
6982
|
+
r.length && a.raw === ";" && (r.length = 0), r.length && ui(a.raw) && (r.forEach((l) => l.type = vr), r.length = 0);
|
|
6980
6983
|
}
|
|
6981
6984
|
if (!i) {
|
|
6982
6985
|
const a = s[0];
|
|
6983
|
-
i = 1, n.push({ type:
|
|
6986
|
+
i = 1, n.push({ type: Ps, value: a, raw: a });
|
|
6984
6987
|
}
|
|
6985
6988
|
t += i;
|
|
6986
6989
|
}
|
|
6987
6990
|
return n;
|
|
6988
6991
|
}
|
|
6989
|
-
const
|
|
6992
|
+
const ci = (e) => {
|
|
6990
6993
|
const t = e.condition;
|
|
6991
6994
|
t && t[1] < 0 && (t[0] === "<" || t[0] === "<=" || t[0] === "=") || e.tokens.unshift({
|
|
6992
6995
|
type: "minus",
|
|
@@ -7010,7 +7013,7 @@ function L_(e) {
|
|
|
7010
7013
|
throw new Error("Unexpected partition");
|
|
7011
7014
|
s = o;
|
|
7012
7015
|
}
|
|
7013
|
-
o.locale && (r =
|
|
7016
|
+
o.locale && (r = Vo(o.locale)), t.push(o), i = ((h = u[o.tokensUsed]) == null ? void 0 : h.type) === "break" ? 1 : 0, u = u.slice(o.tokensUsed + i), a++;
|
|
7014
7017
|
} while (i && a < 4 && l < 3);
|
|
7015
7018
|
if (i)
|
|
7016
7019
|
throw new Error("Unexpected partition");
|
|
@@ -7023,8 +7026,8 @@ function L_(e) {
|
|
|
7023
7026
|
const d = t.length;
|
|
7024
7027
|
if (d === 1 && (t[1] = mr(Mn("General")), t[1].generated = !0), d < 3) {
|
|
7025
7028
|
const f = t[0], g = t[1];
|
|
7026
|
-
if (
|
|
7027
|
-
|
|
7029
|
+
if (ci(f), g.condition)
|
|
7030
|
+
ci(g);
|
|
7028
7031
|
else {
|
|
7029
7032
|
const _ = f.condition;
|
|
7030
7033
|
(_[0] === "=" || _[1] >= 0 && (_[0] === ">" || _[0] === ">=")) && g.tokens.unshift({
|
|
@@ -7033,7 +7036,7 @@ function L_(e) {
|
|
|
7033
7036
|
});
|
|
7034
7037
|
}
|
|
7035
7038
|
} else
|
|
7036
|
-
t.forEach(
|
|
7039
|
+
t.forEach(ci);
|
|
7037
7040
|
} else {
|
|
7038
7041
|
if (t.length < 4 && s)
|
|
7039
7042
|
for (let d = 0, f = t.length; d < f; d++)
|
|
@@ -7082,12 +7085,12 @@ function rn(e, t = !1) {
|
|
|
7082
7085
|
}
|
|
7083
7086
|
function Hu(e, t, n = {}) {
|
|
7084
7087
|
var o;
|
|
7085
|
-
const r = Object.assign({}, bu, n), s = rn(e, r.throws), i = (o =
|
|
7088
|
+
const r = Object.assign({}, bu, n), s = rn(e, r.throws), i = (o = qo(t, r)) != null ? o : t;
|
|
7086
7089
|
return w_(i, s, r);
|
|
7087
7090
|
}
|
|
7088
7091
|
function x_(e, t, n) {
|
|
7089
7092
|
var o;
|
|
7090
|
-
const r = Object.assign({}, bu, n), s = rn(e, r.throws), i = (o =
|
|
7093
|
+
const r = Object.assign({}, bu, n), s = rn(e, r.throws), i = (o = qo(t, r)) != null ? o : t;
|
|
7091
7094
|
return I_(i, s, r);
|
|
7092
7095
|
}
|
|
7093
7096
|
function D_(e) {
|
|
@@ -7118,45 +7121,45 @@ function $_(e) {
|
|
|
7118
7121
|
return t.dateInfo || (t.dateInfo = b_(t.partitions)), t.dateInfo;
|
|
7119
7122
|
}
|
|
7120
7123
|
const yn = Object.freeze({
|
|
7121
|
-
AMPM:
|
|
7122
|
-
BREAK:
|
|
7123
|
-
CALENDAR:
|
|
7124
|
-
CHAR:
|
|
7125
|
-
COLOR:
|
|
7126
|
-
COMMA:
|
|
7127
|
-
CONDITION:
|
|
7128
|
-
DATETIME:
|
|
7129
|
-
DBNUM:
|
|
7130
|
-
DIGIT:
|
|
7131
|
-
DURATION:
|
|
7124
|
+
AMPM: Fo,
|
|
7125
|
+
BREAK: So,
|
|
7126
|
+
CALENDAR: To,
|
|
7127
|
+
CHAR: Ps,
|
|
7128
|
+
COLOR: ko,
|
|
7129
|
+
COMMA: vo,
|
|
7130
|
+
CONDITION: xo,
|
|
7131
|
+
DATETIME: Mo,
|
|
7132
|
+
DBNUM: Do,
|
|
7133
|
+
DIGIT: Us,
|
|
7134
|
+
DURATION: Lo,
|
|
7132
7135
|
ERROR: Sr,
|
|
7133
|
-
ESCAPED:
|
|
7134
|
-
EXP:
|
|
7135
|
-
FILL:
|
|
7136
|
-
GENERAL:
|
|
7136
|
+
ESCAPED: $o,
|
|
7137
|
+
EXP: jo,
|
|
7138
|
+
FILL: Wo,
|
|
7139
|
+
GENERAL: Ro,
|
|
7137
7140
|
GROUP: vr,
|
|
7138
|
-
HASH:
|
|
7139
|
-
LOCALE:
|
|
7140
|
-
MINUS:
|
|
7141
|
+
HASH: Io,
|
|
7142
|
+
LOCALE: Po,
|
|
7143
|
+
MINUS: Ao,
|
|
7141
7144
|
MODIFIER: Ru,
|
|
7142
|
-
NATNUM:
|
|
7143
|
-
PAREN:
|
|
7144
|
-
PERCENT:
|
|
7145
|
-
PLUS:
|
|
7145
|
+
NATNUM: Uo,
|
|
7146
|
+
PAREN: Yo,
|
|
7147
|
+
PERCENT: No,
|
|
7148
|
+
PLUS: bo,
|
|
7146
7149
|
POINT: ps,
|
|
7147
|
-
QMARK:
|
|
7150
|
+
QMARK: wo,
|
|
7148
7151
|
SCALE: _s,
|
|
7149
|
-
SKIP:
|
|
7150
|
-
SLASH:
|
|
7151
|
-
SPACE:
|
|
7152
|
-
STRING:
|
|
7153
|
-
TEXT:
|
|
7152
|
+
SKIP: Bo,
|
|
7153
|
+
SLASH: Oo,
|
|
7154
|
+
SPACE: yo,
|
|
7155
|
+
STRING: Ho,
|
|
7156
|
+
TEXT: Ds,
|
|
7154
7157
|
ZERO: kn
|
|
7155
7158
|
}), VR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7156
7159
|
__proto__: null,
|
|
7157
7160
|
addLocale: te,
|
|
7158
7161
|
dateFromSerial: a_,
|
|
7159
|
-
dateToSerial:
|
|
7162
|
+
dateToSerial: qo,
|
|
7160
7163
|
dec2frac: Au,
|
|
7161
7164
|
format: Hu,
|
|
7162
7165
|
formatColor: x_,
|
|
@@ -7168,10 +7171,10 @@ const yn = Object.freeze({
|
|
|
7168
7171
|
isTextFormat: P_,
|
|
7169
7172
|
isValidFormat: k_,
|
|
7170
7173
|
parseBool: xu,
|
|
7171
|
-
parseDate:
|
|
7172
|
-
parseLocale:
|
|
7173
|
-
parseNumber:
|
|
7174
|
-
parseTime:
|
|
7174
|
+
parseDate: Zo,
|
|
7175
|
+
parseLocale: zo,
|
|
7176
|
+
parseNumber: Jo,
|
|
7177
|
+
parseTime: ks,
|
|
7175
7178
|
parseValue: g_,
|
|
7176
7179
|
round: Rt,
|
|
7177
7180
|
tokenTypes: yn,
|
|
@@ -7208,7 +7211,7 @@ const XR = (e, t) => {
|
|
|
7208
7211
|
return r === s;
|
|
7209
7212
|
}, j_ = /* @__PURE__ */ new Set(["m d"]), W_ = /* @__PURE__ */ new Set(["h:mm AM/PM", "hh:mm AM/PM"]), Y_ = (e) => {
|
|
7210
7213
|
var s, i;
|
|
7211
|
-
const t = (i = (s =
|
|
7214
|
+
const t = (i = (s = Zo(e)) != null ? s : ks(e)) != null ? i : Jo(e);
|
|
7212
7215
|
if (!t) return null;
|
|
7213
7216
|
const { v: n, z: r } = t;
|
|
7214
7217
|
return r && (j_.has(r) || W_.has(r) && !/\s(A|AM|P|PM)$/i.test(e) || r.includes("#,##0") && Hu(r, n) !== e) ? null : t;
|
|
@@ -7733,7 +7736,7 @@ function Yt(e) {
|
|
|
7733
7736
|
if (e.rgb)
|
|
7734
7737
|
return new Tt(e.rgb).toHexString();
|
|
7735
7738
|
if (e.th)
|
|
7736
|
-
return new
|
|
7739
|
+
return new Co().setThemeColor(e.th).asThemeColor().asRgbColor().getCssString();
|
|
7737
7740
|
}
|
|
7738
7741
|
return null;
|
|
7739
7742
|
}
|
|
@@ -8678,7 +8681,7 @@ sn.extend(Ap);
|
|
|
8678
8681
|
sn.extend(Mp);
|
|
8679
8682
|
sn.extend(Cp);
|
|
8680
8683
|
sn.extend(gp);
|
|
8681
|
-
function
|
|
8684
|
+
function Qo(e, t, n, r) {
|
|
8682
8685
|
if (e > t)
|
|
8683
8686
|
throw new Error("a1 should be less than a2");
|
|
8684
8687
|
if (n > r)
|
|
@@ -8729,9 +8732,32 @@ function f1(e) {
|
|
|
8729
8732
|
t = e.charCodeAt(n) + (t << 6) + (t << 16) - t;
|
|
8730
8733
|
return t >>> 0;
|
|
8731
8734
|
}
|
|
8732
|
-
function m1(
|
|
8735
|
+
function m1(e) {
|
|
8736
|
+
if (e.length === 0)
|
|
8737
|
+
return [];
|
|
8738
|
+
const t = e.slice().sort((i, o) => (Array.isArray(i) ? i[0] : i) - (Array.isArray(o) ? o[0] : o)), n = [];
|
|
8739
|
+
let r = Array.isArray(t[0]) ? t[0][0] : t[0], s = r;
|
|
8740
|
+
for (let i = 1; i < t.length; i++) {
|
|
8741
|
+
const o = t[i];
|
|
8742
|
+
let a, l;
|
|
8743
|
+
Array.isArray(o) ? (a = o[0], l = o[1]) : (a = o, l = o), a <= s + 1 ? s = Math.max(s, l) : (n.push([r, s]), r = a, s = l);
|
|
8744
|
+
}
|
|
8745
|
+
return n.push([r, s]), n;
|
|
8746
|
+
}
|
|
8747
|
+
function g1(e) {
|
|
8748
|
+
if (e.length === 0)
|
|
8749
|
+
return [];
|
|
8750
|
+
const t = e.slice().sort((i, o) => i[0] - o[0]), n = [];
|
|
8751
|
+
let [r, s] = t[0];
|
|
8752
|
+
for (let i = 1; i < t.length; i++) {
|
|
8753
|
+
const [o, a] = t[i];
|
|
8754
|
+
o <= s + 1 ? s = Math.max(s, a) : (n.push([r, s]), r = o, s = a);
|
|
8755
|
+
}
|
|
8756
|
+
return n.push([r, s]), n;
|
|
8757
|
+
}
|
|
8758
|
+
function _1(...e) {
|
|
8733
8759
|
let t;
|
|
8734
|
-
return e.length === 1 && Array.isArray(e[0]) ? t = e[0] : t = e,
|
|
8760
|
+
return e.length === 1 && Array.isArray(e[0]) ? t = e[0] : t = e, ho({}, ...t);
|
|
8735
8761
|
}
|
|
8736
8762
|
const Me = /* @__PURE__ */ Symbol("newer"), qe = /* @__PURE__ */ Symbol("older");
|
|
8737
8763
|
class Up {
|
|
@@ -8790,7 +8816,7 @@ class cl {
|
|
|
8790
8816
|
};
|
|
8791
8817
|
}
|
|
8792
8818
|
}
|
|
8793
|
-
class
|
|
8819
|
+
class ea {
|
|
8794
8820
|
constructor(...t) {
|
|
8795
8821
|
p(this, "_keymap");
|
|
8796
8822
|
p(this, "size", 0);
|
|
@@ -8818,7 +8844,7 @@ class Es {
|
|
|
8818
8844
|
}
|
|
8819
8845
|
onShift(t) {
|
|
8820
8846
|
if (this._onShiftListeners.indexOf(t) === -1)
|
|
8821
|
-
return this._onShiftListeners.push(t), Ye(() =>
|
|
8847
|
+
return this._onShiftListeners.push(t), Ye(() => vs(this._onShiftListeners, t));
|
|
8822
8848
|
throw new Error("[LRUMap]: the listener has been registered!");
|
|
8823
8849
|
}
|
|
8824
8850
|
_initialize(t, n) {
|
|
@@ -8916,7 +8942,7 @@ class Yr {
|
|
|
8916
8942
|
return this.getValueType(t) === "[object Number]";
|
|
8917
8943
|
}
|
|
8918
8944
|
}
|
|
8919
|
-
const
|
|
8945
|
+
const p1 = {
|
|
8920
8946
|
sheetId: "",
|
|
8921
8947
|
range: {
|
|
8922
8948
|
startRow: -1,
|
|
@@ -8924,17 +8950,17 @@ const g1 = {
|
|
|
8924
8950
|
startColumn: -1,
|
|
8925
8951
|
endColumn: -1
|
|
8926
8952
|
}
|
|
8927
|
-
},
|
|
8953
|
+
}, E1 = {
|
|
8928
8954
|
startRow: -1,
|
|
8929
8955
|
startColumn: -1,
|
|
8930
8956
|
endRow: -1,
|
|
8931
8957
|
endColumn: -1
|
|
8932
|
-
},
|
|
8958
|
+
}, C1 = {
|
|
8933
8959
|
startRow: 0,
|
|
8934
8960
|
startColumn: 0,
|
|
8935
8961
|
endRow: 0,
|
|
8936
8962
|
endColumn: 0
|
|
8937
|
-
},
|
|
8963
|
+
}, R1 = {
|
|
8938
8964
|
row: 0,
|
|
8939
8965
|
column: 0
|
|
8940
8966
|
}, st = {
|
|
@@ -9041,7 +9067,7 @@ const g1 = {
|
|
|
9041
9067
|
width: 300,
|
|
9042
9068
|
height: 300
|
|
9043
9069
|
}
|
|
9044
|
-
},
|
|
9070
|
+
}, I1 = [Hl, zc, Bl], w1 = {
|
|
9045
9071
|
[Je.HEADING_1]: { fs: 20, bl: 1 },
|
|
9046
9072
|
// Heading 1: 20pt, bold
|
|
9047
9073
|
[Je.HEADING_2]: { fs: 18, bl: 1 },
|
|
@@ -9059,7 +9085,7 @@ const g1 = {
|
|
|
9059
9085
|
[Je.SUBTITLE]: { fs: 15, cl: { rgb: "#999999" } },
|
|
9060
9086
|
// Subtitle: 15pt
|
|
9061
9087
|
[Je.NAMED_STYLE_TYPE_UNSPECIFIED]: null
|
|
9062
|
-
}, On = 4,
|
|
9088
|
+
}, On = 4, O1 = {
|
|
9063
9089
|
[Je.HEADING_1]: {
|
|
9064
9090
|
spaceAbove: {
|
|
9065
9091
|
v: 20
|
|
@@ -9125,9 +9151,9 @@ const g1 = {
|
|
|
9125
9151
|
}
|
|
9126
9152
|
},
|
|
9127
9153
|
[Je.NAMED_STYLE_TYPE_UNSPECIFIED]: null
|
|
9128
|
-
},
|
|
9154
|
+
}, v1 = "univer-sheets-chart-print-chart", S1 = "univer-docs-drawing-printing";
|
|
9129
9155
|
var $p = /* @__PURE__ */ ((e) => (e.ARRAY_CONVERTOR = "ARRAY_CONVERTOR", e.MATRIX_CONVERTOR = "MATRIX_CONVERTOR", e))($p || {});
|
|
9130
|
-
const
|
|
9156
|
+
const b1 = {
|
|
9131
9157
|
[pt.A3]: {
|
|
9132
9158
|
width: 1123,
|
|
9133
9159
|
height: 1587
|
|
@@ -9476,7 +9502,7 @@ const Ir = class Ir {
|
|
|
9476
9502
|
getFontStyle() {
|
|
9477
9503
|
var n, r;
|
|
9478
9504
|
const { p: t } = (n = this.getValue()) != null ? n : {};
|
|
9479
|
-
return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? zr("it", t.body) === ie.TRUE ?
|
|
9505
|
+
return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? zr("it", t.body) === ie.TRUE ? Si.ITALIC : Si.NORMAL : this._getFontStyles()[0][0];
|
|
9480
9506
|
}
|
|
9481
9507
|
/**
|
|
9482
9508
|
* Returns the font styles of the cells in the range.
|
|
@@ -9493,7 +9519,7 @@ const Ir = class Ir {
|
|
|
9493
9519
|
getFontWeight() {
|
|
9494
9520
|
var n, r;
|
|
9495
9521
|
const { p: t } = (n = this.getValue()) != null ? n : {};
|
|
9496
|
-
return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? zr("bl", t.body) === ie.TRUE ?
|
|
9522
|
+
return t && Array.isArray((r = t.body) == null ? void 0 : r.textRuns) && t.body.textRuns.length > 0 ? zr("bl", t.body) === ie.TRUE ? bi.BOLD : bi.NORMAL : this._getFontWeights()[0][0];
|
|
9497
9523
|
}
|
|
9498
9524
|
/**
|
|
9499
9525
|
* Returns the font weights of the cells in the range.
|
|
@@ -9725,7 +9751,7 @@ function tr(e, t, n) {
|
|
|
9725
9751
|
function Hp(e, t) {
|
|
9726
9752
|
return e < t ? -1 : e > t ? 1 : 0;
|
|
9727
9753
|
}
|
|
9728
|
-
class
|
|
9754
|
+
class Fi {
|
|
9729
9755
|
constructor(t = 9) {
|
|
9730
9756
|
this._maxEntries = Math.max(4, t), this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4)), this.clear();
|
|
9731
9757
|
}
|
|
@@ -9740,7 +9766,7 @@ class $i {
|
|
|
9740
9766
|
for (; n; ) {
|
|
9741
9767
|
for (let o = 0; o < n.children.length; o++) {
|
|
9742
9768
|
const a = n.children[o], l = n.leaf ? s(a) : a;
|
|
9743
|
-
Gr(t, l) && (n.leaf ? r.push(a) :
|
|
9769
|
+
Gr(t, l) && (n.leaf ? r.push(a) : di(t, l) ? this._all(a, r) : i.push(a));
|
|
9744
9770
|
}
|
|
9745
9771
|
n = i.pop();
|
|
9746
9772
|
}
|
|
@@ -9754,7 +9780,7 @@ class $i {
|
|
|
9754
9780
|
for (let s = 0; s < n.children.length; s++) {
|
|
9755
9781
|
const i = n.children[s], o = n.leaf ? this.toBBox(i) : i;
|
|
9756
9782
|
if (Gr(t, o)) {
|
|
9757
|
-
if (n.leaf ||
|
|
9783
|
+
if (n.leaf || di(t, o)) return !0;
|
|
9758
9784
|
r.push(i);
|
|
9759
9785
|
}
|
|
9760
9786
|
}
|
|
@@ -9800,7 +9826,7 @@ class $i {
|
|
|
9800
9826
|
if (c !== -1)
|
|
9801
9827
|
return r.children.splice(c, 1), i.push(r), this._condense(i), this;
|
|
9802
9828
|
}
|
|
9803
|
-
!u && !r.leaf &&
|
|
9829
|
+
!u && !r.leaf && di(r, s) ? (i.push(r), o.push(a), a = 0, l = r, r = r.children[0]) : l ? (a++, r = l.children[a], u = !1) : r = null;
|
|
9804
9830
|
}
|
|
9805
9831
|
return this;
|
|
9806
9832
|
}
|
|
@@ -9847,7 +9873,7 @@ class $i {
|
|
|
9847
9873
|
for (; s.push(n), !(n.leaf || s.length - 1 === r); ) {
|
|
9848
9874
|
let i = 1 / 0, o = 1 / 0, a;
|
|
9849
9875
|
for (let l = 0; l < n.children.length; l++) {
|
|
9850
|
-
const u = n.children[l], c =
|
|
9876
|
+
const u = n.children[l], c = hi(u), h = Yp(t, u) - c;
|
|
9851
9877
|
h < o ? (o = h, i = c < i ? c : i, a = u) : h === o && c < i && (i = c, a = u);
|
|
9852
9878
|
}
|
|
9853
9879
|
n = a || n.children[0];
|
|
@@ -9873,7 +9899,7 @@ class $i {
|
|
|
9873
9899
|
_chooseSplitIndex(t, n, r) {
|
|
9874
9900
|
let s, i = 1 / 0, o = 1 / 0;
|
|
9875
9901
|
for (let a = n; a <= r - n; a++) {
|
|
9876
|
-
const l = gr(t, 0, a, this.toBBox), u = gr(t, a, r, this.toBBox), c = zp(l, u), h =
|
|
9902
|
+
const l = gr(t, 0, a, this.toBBox), u = gr(t, a, r, this.toBBox), c = zp(l, u), h = hi(l) + hi(u);
|
|
9877
9903
|
c < i ? (i = c, s = a, o = h < o ? h : o) : c === i && h < o && (o = h, s = a);
|
|
9878
9904
|
}
|
|
9879
9905
|
return s || r - n;
|
|
@@ -9933,7 +9959,7 @@ function jp(e, t) {
|
|
|
9933
9959
|
function Wp(e, t) {
|
|
9934
9960
|
return e.minY - t.minY;
|
|
9935
9961
|
}
|
|
9936
|
-
function
|
|
9962
|
+
function hi(e) {
|
|
9937
9963
|
return (e.maxX - e.minX) * (e.maxY - e.minY);
|
|
9938
9964
|
}
|
|
9939
9965
|
function Vr(e) {
|
|
@@ -9946,7 +9972,7 @@ function zp(e, t) {
|
|
|
9946
9972
|
const n = Math.max(e.minX, t.minX), r = Math.max(e.minY, t.minY), s = Math.min(e.maxX, t.maxX), i = Math.min(e.maxY, t.maxY);
|
|
9947
9973
|
return Math.max(0, s - n) * Math.max(0, i - r);
|
|
9948
9974
|
}
|
|
9949
|
-
function
|
|
9975
|
+
function di(e, t) {
|
|
9950
9976
|
return e.minX <= t.minX && e.minY <= t.minY && t.maxX <= e.maxX && t.maxY <= e.maxY;
|
|
9951
9977
|
}
|
|
9952
9978
|
function Gr(e, t) {
|
|
@@ -9971,7 +9997,7 @@ function hl(e, t, n, r, s) {
|
|
|
9971
9997
|
Wu(e, o, t, n, s), i.push(t, o, o, n);
|
|
9972
9998
|
}
|
|
9973
9999
|
}
|
|
9974
|
-
function
|
|
10000
|
+
function A1(e, t, n, r = !1) {
|
|
9975
10001
|
if (t === 0 && n === 0)
|
|
9976
10002
|
return e;
|
|
9977
10003
|
let s = { ...e };
|
|
@@ -10211,7 +10237,7 @@ const zt = class zt {
|
|
|
10211
10237
|
* ```
|
|
10212
10238
|
*/
|
|
10213
10239
|
static doAnyRangesIntersect(t, n) {
|
|
10214
|
-
const r = new
|
|
10240
|
+
const r = new Fi();
|
|
10215
10241
|
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);
|
|
10216
10242
|
}
|
|
10217
10243
|
/**
|
|
@@ -10644,7 +10670,7 @@ function e0(e, t) {
|
|
|
10644
10670
|
e[n][r] = void 0;
|
|
10645
10671
|
});
|
|
10646
10672
|
}
|
|
10647
|
-
function
|
|
10673
|
+
function y1(e, t) {
|
|
10648
10674
|
const n = e.toFullArray(), r = [];
|
|
10649
10675
|
for (; ; ) {
|
|
10650
10676
|
const s = Zp(n, t);
|
|
@@ -10654,7 +10680,7 @@ function b1(e, t) {
|
|
|
10654
10680
|
}
|
|
10655
10681
|
return r;
|
|
10656
10682
|
}
|
|
10657
|
-
class
|
|
10683
|
+
class N1 {
|
|
10658
10684
|
constructor(t, n) {
|
|
10659
10685
|
p(this, "_values", []);
|
|
10660
10686
|
p(this, "_keys", []);
|
|
@@ -10731,7 +10757,7 @@ function gl(e, t, n, r) {
|
|
|
10731
10757
|
}
|
|
10732
10758
|
};
|
|
10733
10759
|
}
|
|
10734
|
-
function
|
|
10760
|
+
function T1(e) {
|
|
10735
10761
|
if (e == null || e.length === 0)
|
|
10736
10762
|
return Number.NaN;
|
|
10737
10763
|
const t = e.toLowerCase().split(""), n = t.length, r = (o) => o.charCodeAt(0) - 96;
|
|
@@ -10740,12 +10766,12 @@ function y1(e) {
|
|
|
10740
10766
|
i = r(t[o]), s += i * 26 ** (n - o - 1);
|
|
10741
10767
|
return s === 0 ? Number.NaN : s - 1;
|
|
10742
10768
|
}
|
|
10743
|
-
const
|
|
10744
|
-
function
|
|
10745
|
-
const t = zu -
|
|
10769
|
+
const Es = 65, zu = 90, t0 = 97;
|
|
10770
|
+
function M1(e) {
|
|
10771
|
+
const t = zu - Es + 1;
|
|
10746
10772
|
let n = "";
|
|
10747
10773
|
for (; e >= 0; )
|
|
10748
|
-
n = String.fromCharCode(e % t +
|
|
10774
|
+
n = String.fromCharCode(e % t + Es) + n, e = Math.floor(e / t) - 1;
|
|
10749
10775
|
return n;
|
|
10750
10776
|
}
|
|
10751
10777
|
function n0(e, t) {
|
|
@@ -10754,23 +10780,23 @@ function n0(e, t) {
|
|
|
10754
10780
|
n += e, t--;
|
|
10755
10781
|
return n;
|
|
10756
10782
|
}
|
|
10757
|
-
function
|
|
10758
|
-
const n = zu -
|
|
10783
|
+
function L1(e, t = !1) {
|
|
10784
|
+
const n = zu - Es + 1;
|
|
10759
10785
|
let r = t0;
|
|
10760
|
-
t && (r =
|
|
10786
|
+
t && (r = Es);
|
|
10761
10787
|
const s = String.fromCharCode(e % n + r), i = Math.floor(e / n) + 1;
|
|
10762
10788
|
return n0(s, i);
|
|
10763
10789
|
}
|
|
10764
|
-
function
|
|
10790
|
+
function x1(e, t) {
|
|
10765
10791
|
return e.zIndex > t.zIndex ? 1 : e.zIndex === t.zIndex ? 0 : -1;
|
|
10766
10792
|
}
|
|
10767
|
-
function
|
|
10793
|
+
function D1(e, t) {
|
|
10768
10794
|
return e.zIndex > t.zIndex ? -1 : e.zIndex === t.zIndex ? 0 : 1;
|
|
10769
10795
|
}
|
|
10770
|
-
function
|
|
10796
|
+
function Fs(e = "index", t = 1) {
|
|
10771
10797
|
return (n, r) => n[e] > r[e] ? t : n[e] === r[e] ? 0 : -t;
|
|
10772
10798
|
}
|
|
10773
|
-
function
|
|
10799
|
+
function $s(e, t = !1) {
|
|
10774
10800
|
const n = [];
|
|
10775
10801
|
for (const r of e) {
|
|
10776
10802
|
const { st: s, ed: i, ts: o } = r;
|
|
@@ -10820,7 +10846,7 @@ function Vu(e, t, n, r) {
|
|
|
10820
10846
|
} else
|
|
10821
10847
|
h.st += n, h.ed += n, a || (a = !0, i.push(...l)), i.push(h);
|
|
10822
10848
|
}
|
|
10823
|
-
a || (a = !0, i.push(...l)), e.textRuns =
|
|
10849
|
+
a || (a = !0, i.push(...l)), e.textRuns = $s(i);
|
|
10824
10850
|
}
|
|
10825
10851
|
function Gu(e, t, n, r) {
|
|
10826
10852
|
const { paragraphs: s } = e;
|
|
@@ -10839,7 +10865,7 @@ function Gu(e, t, n, r) {
|
|
|
10839
10865
|
const h = c.startIndex;
|
|
10840
10866
|
a = o.indexOf(h);
|
|
10841
10867
|
}
|
|
10842
|
-
a !== -1 && s.splice(a, 1), s.push(...i), s.sort(
|
|
10868
|
+
a !== -1 && s.splice(a, 1), s.push(...i), s.sort(Fs("startIndex"));
|
|
10843
10869
|
}
|
|
10844
10870
|
}
|
|
10845
10871
|
function Ku(e, t, n, r) {
|
|
@@ -10856,7 +10882,7 @@ function Ku(e, t, n, r) {
|
|
|
10856
10882
|
const l = i[o];
|
|
10857
10883
|
l.startIndex += r;
|
|
10858
10884
|
}
|
|
10859
|
-
s.push(...i), s.sort(
|
|
10885
|
+
s.push(...i), s.sort(Fs("startIndex"));
|
|
10860
10886
|
}
|
|
10861
10887
|
}
|
|
10862
10888
|
function Xu(e, t, n, r) {
|
|
@@ -10871,7 +10897,7 @@ function Xu(e, t, n, r) {
|
|
|
10871
10897
|
const l = i[o];
|
|
10872
10898
|
l.startIndex += r;
|
|
10873
10899
|
}
|
|
10874
|
-
s.push(...i), s.sort(
|
|
10900
|
+
s.push(...i), s.sort(Fs("startIndex"));
|
|
10875
10901
|
}
|
|
10876
10902
|
s.length && !e.customBlocks && (e.customBlocks = s);
|
|
10877
10903
|
}
|
|
@@ -10889,7 +10915,7 @@ function qu(e, t, n, r) {
|
|
|
10889
10915
|
const l = i[o];
|
|
10890
10916
|
l.startIndex += r, l.endIndex += r;
|
|
10891
10917
|
}
|
|
10892
|
-
s.push(...i), s.sort(
|
|
10918
|
+
s.push(...i), s.sort(Fs("startIndex"));
|
|
10893
10919
|
}
|
|
10894
10920
|
}
|
|
10895
10921
|
const Ju = "$", _l = (e) => e.split(Ju)[0];
|
|
@@ -10911,7 +10937,7 @@ function ta(e) {
|
|
|
10911
10937
|
}
|
|
10912
10938
|
return t;
|
|
10913
10939
|
}
|
|
10914
|
-
function
|
|
10940
|
+
function $i(e, t) {
|
|
10915
10941
|
const n = e.findIndex((s) => s.startIndex < t && s.endIndex >= t), r = e[n];
|
|
10916
10942
|
r && e.splice(n, 1, {
|
|
10917
10943
|
rangeId: r.rangeId,
|
|
@@ -10938,7 +10964,7 @@ function Zu(e) {
|
|
|
10938
10964
|
}
|
|
10939
10965
|
return t.push(n), t;
|
|
10940
10966
|
}
|
|
10941
|
-
function
|
|
10967
|
+
function Hi(e, t) {
|
|
10942
10968
|
e.filter((r) => r.startIndex < t && r.endIndex >= t).forEach((r) => {
|
|
10943
10969
|
const s = e.indexOf(r);
|
|
10944
10970
|
e.splice(s, 1, {
|
|
@@ -10957,7 +10983,7 @@ function Bi(e, t) {
|
|
|
10957
10983
|
function r0(e, t, n, r) {
|
|
10958
10984
|
e.customRanges || (e.customRanges = []);
|
|
10959
10985
|
const { customRanges: s } = e;
|
|
10960
|
-
|
|
10986
|
+
$i(s, r);
|
|
10961
10987
|
for (let o = 0, a = s.length; o < a; o++) {
|
|
10962
10988
|
const l = s[o], { startIndex: u } = l;
|
|
10963
10989
|
u >= r && (l.startIndex += n, l.endIndex += n);
|
|
@@ -10975,7 +11001,7 @@ function r0(e, t, n, r) {
|
|
|
10975
11001
|
function s0(e, t, n, r) {
|
|
10976
11002
|
e.customDecorations || (e.customDecorations = []);
|
|
10977
11003
|
const { customDecorations: s } = e;
|
|
10978
|
-
|
|
11004
|
+
Hi(s, r);
|
|
10979
11005
|
for (let o = 0, a = s.length; o < a; o++) {
|
|
10980
11006
|
const l = s[o], { startIndex: u } = l;
|
|
10981
11007
|
u >= r && (l.startIndex += n, l.endIndex += n);
|
|
@@ -11097,7 +11123,7 @@ function rc(e, t, n) {
|
|
|
11097
11123
|
});
|
|
11098
11124
|
continue;
|
|
11099
11125
|
} else if (h <= s && d >= i) {
|
|
11100
|
-
const f =
|
|
11126
|
+
const f = Qo(h, d, s, i);
|
|
11101
11127
|
if (f.length === 0 || (c.startIndex = f[0], c.endIndex = f[1], c.startIndex === c.endIndex))
|
|
11102
11128
|
continue;
|
|
11103
11129
|
} else i < h && (c.startIndex -= t, c.endIndex -= t);
|
|
@@ -11117,7 +11143,7 @@ function i0(e, t, n) {
|
|
|
11117
11143
|
o.push(c);
|
|
11118
11144
|
continue;
|
|
11119
11145
|
} else if (Math.max(s, h) <= Math.min(i, d)) {
|
|
11120
|
-
const f =
|
|
11146
|
+
const f = Qo(h, d, s, i);
|
|
11121
11147
|
if (f.length === 0)
|
|
11122
11148
|
continue;
|
|
11123
11149
|
c.startIndex = f[0], c.endIndex = f[1];
|
|
@@ -11138,7 +11164,7 @@ function o0(e, t, n, r = !0) {
|
|
|
11138
11164
|
a.push(h);
|
|
11139
11165
|
continue;
|
|
11140
11166
|
} else if (Math.max(i, d) <= Math.min(o, f)) {
|
|
11141
|
-
const g =
|
|
11167
|
+
const g = Qo(d, f, i, o);
|
|
11142
11168
|
if (g.length === 0)
|
|
11143
11169
|
continue;
|
|
11144
11170
|
h.startIndex = g[0], h.endIndex = g[1];
|
|
@@ -11164,7 +11190,7 @@ const Kr = {
|
|
|
11164
11190
|
].map((t, n) => ({
|
|
11165
11191
|
glyphFormat: ` %${n + 1}`,
|
|
11166
11192
|
glyphSymbol: t,
|
|
11167
|
-
bulletAlignment:
|
|
11193
|
+
bulletAlignment: Ts.START,
|
|
11168
11194
|
textStyle: {
|
|
11169
11195
|
fs: 12
|
|
11170
11196
|
},
|
|
@@ -11175,7 +11201,7 @@ const Kr = {
|
|
|
11175
11201
|
}
|
|
11176
11202
|
})), bn = (e) => e.map((t, n) => ({
|
|
11177
11203
|
...t,
|
|
11178
|
-
bulletAlignment:
|
|
11204
|
+
bulletAlignment: Ts.START,
|
|
11179
11205
|
textStyle: {
|
|
11180
11206
|
fs: 12
|
|
11181
11207
|
},
|
|
@@ -11187,7 +11213,7 @@ const Kr = {
|
|
|
11187
11213
|
})), pl = (e, t) => new Array(9).fill(0).map((n, r) => ({
|
|
11188
11214
|
glyphFormat: ` %${r + 1}`,
|
|
11189
11215
|
glyphSymbol: e,
|
|
11190
|
-
bulletAlignment:
|
|
11216
|
+
bulletAlignment: Ts.START,
|
|
11191
11217
|
textStyle: {
|
|
11192
11218
|
fs: 16
|
|
11193
11219
|
},
|
|
@@ -11197,7 +11223,7 @@ const Kr = {
|
|
|
11197
11223
|
indentStart: { v: 21 * r },
|
|
11198
11224
|
textStyle: t
|
|
11199
11225
|
}
|
|
11200
|
-
})),
|
|
11226
|
+
})), Hs = {
|
|
11201
11227
|
BULLET_LIST: {
|
|
11202
11228
|
listType: "BULLET_LIST",
|
|
11203
11229
|
nestingLevel: Sn(["●", "○", "■"])
|
|
@@ -11320,7 +11346,7 @@ const Kr = {
|
|
|
11320
11346
|
)
|
|
11321
11347
|
}
|
|
11322
11348
|
}, Xr = (e) => {
|
|
11323
|
-
const { glyphFormat: t, glyphType: n } = e, r = Z.deepClone(
|
|
11349
|
+
const { glyphFormat: t, glyphType: n } = e, r = Z.deepClone(Hs.ORDER_LIST);
|
|
11324
11350
|
return r.nestingLevel[0].glyphFormat = t, r.nestingLevel[0].glyphType = n, r;
|
|
11325
11351
|
}, l0 = {
|
|
11326
11352
|
ORDER_LIST_QUICK_2: Xr(Kr[
|
|
@@ -11340,8 +11366,8 @@ const Kr = {
|
|
|
11340
11366
|
/* ORDER_LIST_QUICK_6 */
|
|
11341
11367
|
])
|
|
11342
11368
|
};
|
|
11343
|
-
Object.assign(
|
|
11344
|
-
const
|
|
11369
|
+
Object.assign(Hs, l0);
|
|
11370
|
+
const U1 = {
|
|
11345
11371
|
"1.": "ORDER_LIST",
|
|
11346
11372
|
"a)": "ORDER_LIST_QUICK_2",
|
|
11347
11373
|
"a.": "ORDER_LIST_QUICK_3",
|
|
@@ -11416,7 +11442,7 @@ function sc(e, t, n) {
|
|
|
11416
11442
|
}
|
|
11417
11443
|
u();
|
|
11418
11444
|
const c = r[r.length - 1], h = e[s - 1], d = t[i - 1];
|
|
11419
|
-
return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)),
|
|
11445
|
+
return c && c.ed !== Math.max(h.ed, d.ed) && (h.ed > d.ed ? r.push(h) : r.push(d)), $s(r);
|
|
11420
11446
|
}
|
|
11421
11447
|
function h0(e, t, n, r, s) {
|
|
11422
11448
|
const { paragraphs: i } = e, { paragraphs: o } = t;
|
|
@@ -11556,7 +11582,7 @@ function m0(e, t, n, r, s) {
|
|
|
11556
11582
|
return qu(e, t, n, r), a;
|
|
11557
11583
|
}
|
|
11558
11584
|
function g0(e, t, n, r, s) {
|
|
11559
|
-
e.customRanges || (e.customRanges = []),
|
|
11585
|
+
e.customRanges || (e.customRanges = []), $i(e.customRanges, r), $i(e.customRanges, r + n);
|
|
11560
11586
|
const i = r, o = r + n - 1, { customRanges: a } = t, l = [], u = /* @__PURE__ */ new Map();
|
|
11561
11587
|
e.customRanges.forEach((h) => {
|
|
11562
11588
|
const { startIndex: d, endIndex: f } = h;
|
|
@@ -11573,7 +11599,7 @@ function g0(e, t, n, r, s) {
|
|
|
11573
11599
|
}), e.customRanges = ta(l), c) : [];
|
|
11574
11600
|
}
|
|
11575
11601
|
function _0(e, t, n, r, s) {
|
|
11576
|
-
e.customDecorations || (e.customDecorations = []),
|
|
11602
|
+
e.customDecorations || (e.customDecorations = []), Hi(e.customDecorations, r), Hi(e.customDecorations, r + n);
|
|
11577
11603
|
const i = [], { customDecorations: o } = e, { customDecorations: a = [] } = t;
|
|
11578
11604
|
if (s === pe.REPLACE) {
|
|
11579
11605
|
for (let l = 0; l < o.length; l++) {
|
|
@@ -11608,7 +11634,7 @@ function _0(e, t, n, r, s) {
|
|
|
11608
11634
|
return e.customDecorations = Zu(o), i;
|
|
11609
11635
|
}
|
|
11610
11636
|
var ic = /* @__PURE__ */ ((e) => (e[e.copy = 0] = "copy", e[e.cut = 1] = "cut", e))(ic || {});
|
|
11611
|
-
function
|
|
11637
|
+
function Bi(e, t, n, r = !0) {
|
|
11612
11638
|
const { textRuns: s } = e;
|
|
11613
11639
|
if (s) {
|
|
11614
11640
|
const i = [];
|
|
@@ -11624,7 +11650,7 @@ function ji(e, t, n, r = !0) {
|
|
|
11624
11650
|
ed: n
|
|
11625
11651
|
}) : i.push(a));
|
|
11626
11652
|
}
|
|
11627
|
-
return
|
|
11653
|
+
return $s(
|
|
11628
11654
|
i.map((o) => {
|
|
11629
11655
|
const { st: a, ed: l } = o;
|
|
11630
11656
|
return {
|
|
@@ -11668,7 +11694,7 @@ function E0(e, t, n) {
|
|
|
11668
11694
|
startIndex: i.startIndex - t
|
|
11669
11695
|
}));
|
|
11670
11696
|
}
|
|
11671
|
-
function
|
|
11697
|
+
function P1(e, t, n) {
|
|
11672
11698
|
const { sectionBreaks: r = [] } = e, s = [];
|
|
11673
11699
|
for (const i of r) {
|
|
11674
11700
|
const { startIndex: o } = i;
|
|
@@ -11696,7 +11722,7 @@ function kt(e, t, n, r = !0, s = 1) {
|
|
|
11696
11722
|
const { dataStream: i } = e, o = {
|
|
11697
11723
|
dataStream: i.slice(t, n)
|
|
11698
11724
|
};
|
|
11699
|
-
o.textRuns =
|
|
11725
|
+
o.textRuns = Bi(e, t, n, r);
|
|
11700
11726
|
const a = p0(e, t, n);
|
|
11701
11727
|
if (a.length && (o.tables = a), o.paragraphs = E0(e, t, n), s === 1) {
|
|
11702
11728
|
const u = I0(e, t, n);
|
|
@@ -11705,7 +11731,7 @@ function kt(e, t, n, r = !0, s = 1) {
|
|
|
11705
11731
|
const { customRanges: l } = R0(e, t, n);
|
|
11706
11732
|
return l ? o.customRanges = l : r && (o.customRanges = []), o.customBlocks = C0(e, t, n), o;
|
|
11707
11733
|
}
|
|
11708
|
-
function
|
|
11734
|
+
function k1(e) {
|
|
11709
11735
|
const { dataStream: t, textRuns: n, paragraphs: r, customRanges: s, customDecorations: i, tables: o } = e;
|
|
11710
11736
|
let a = 0, l = 0;
|
|
11711
11737
|
s == null || s.forEach((c) => {
|
|
@@ -11984,7 +12010,7 @@ function L0(e, t, n, r, s) {
|
|
|
11984
12010
|
}
|
|
11985
12011
|
h();
|
|
11986
12012
|
const d = i[i.length - 1], f = t[o - 1], g = e[a - 1];
|
|
11987
|
-
return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)),
|
|
12013
|
+
return d.ed !== Math.max(f.ed, g.ed) && (f.ed > g.ed ? i.push(f) : i.push(g)), $s(i, !0);
|
|
11988
12014
|
}
|
|
11989
12015
|
function x0(e, t, n, r, s) {
|
|
11990
12016
|
if (e == null || t == null)
|
|
@@ -12420,7 +12446,7 @@ let tn = xn;
|
|
|
12420
12446
|
tn.registerSubtype(Te);
|
|
12421
12447
|
var P0 = /* @__PURE__ */ ((e) => (e.PARAGRAPH = "PARAGRAPH", e.SECTION_BREAK = "SECTION_BREAK", e.TABLE = "TABLE", e.TABLE_ROW = "TABLE_ROW", e.TABLE_CELL = "TABLE_CELL", e.CUSTOM_BLOCK = "CUSTOM_BLOCK", e))(P0 || {}), dt = /* @__PURE__ */ ((e) => (e.PARAGRAPH = "\r", e.SECTION_BREAK = `
|
|
12422
12448
|
`, e.TABLE_START = "", e.TABLE_ROW_START = "\x1B", e.TABLE_CELL_START = "", e.TABLE_CELL_END = "", e.TABLE_ROW_END = "", e.TABLE_END = "", e.CUSTOM_RANGE_START = "", e.CUSTOM_RANGE_END = "", e.COLUMN_BREAK = "\v", e.PAGE_BREAK = "\f", e.DOCS_END = "\0", e.TAB = " ", e.CUSTOM_BLOCK = "\b", e.LETTER = "", e.SPACE = " ", e))(dt || {});
|
|
12423
|
-
function
|
|
12449
|
+
function F1(e) {
|
|
12424
12450
|
return `${e}`;
|
|
12425
12451
|
}
|
|
12426
12452
|
const k0 = [
|
|
@@ -12478,7 +12504,7 @@ const k0 = [
|
|
|
12478
12504
|
id: "default_doc",
|
|
12479
12505
|
documentStyle: {}
|
|
12480
12506
|
};
|
|
12481
|
-
class H0 extends
|
|
12507
|
+
class H0 extends mo {
|
|
12482
12508
|
constructor(n) {
|
|
12483
12509
|
var r;
|
|
12484
12510
|
super();
|
|
@@ -12530,7 +12556,7 @@ class H0 extends go {
|
|
|
12530
12556
|
var s;
|
|
12531
12557
|
const n = (s = this.snapshot.lists) != null ? s : {};
|
|
12532
12558
|
return {
|
|
12533
|
-
...
|
|
12559
|
+
...Hs,
|
|
12534
12560
|
...n
|
|
12535
12561
|
};
|
|
12536
12562
|
}
|
|
@@ -12767,9 +12793,9 @@ function V0(e, t) {
|
|
|
12767
12793
|
collapsed: r === s
|
|
12768
12794
|
};
|
|
12769
12795
|
}
|
|
12770
|
-
var
|
|
12796
|
+
var fi, Il;
|
|
12771
12797
|
function G0() {
|
|
12772
|
-
if (Il) return
|
|
12798
|
+
if (Il) return fi;
|
|
12773
12799
|
Il = 1;
|
|
12774
12800
|
var e = -1, t = 1, n = 0;
|
|
12775
12801
|
function r(m, D, O, T, A) {
|
|
@@ -13128,7 +13154,7 @@ function G0() {
|
|
|
13128
13154
|
function H(m, D, O, T) {
|
|
13129
13155
|
return r(m, D, O, T, !0);
|
|
13130
13156
|
}
|
|
13131
|
-
return H.INSERT = t, H.DELETE = e, H.EQUAL = n,
|
|
13157
|
+
return H.INSERT = t, H.DELETE = e, H.EQUAL = n, fi = H, fi;
|
|
13132
13158
|
}
|
|
13133
13159
|
var K0 = G0();
|
|
13134
13160
|
const uc = /* @__PURE__ */ vt(K0);
|
|
@@ -13317,7 +13343,7 @@ const eE = (e) => {
|
|
|
13317
13343
|
switch (f) {
|
|
13318
13344
|
// retain
|
|
13319
13345
|
case 0: {
|
|
13320
|
-
const _ =
|
|
13346
|
+
const _ = Bi(n, u, u + g.length, !1), R = Bi(a, u, u + g.length, !1), b = {
|
|
13321
13347
|
t: J.RETAIN,
|
|
13322
13348
|
body: Q0(_, R) ? void 0 : {
|
|
13323
13349
|
textRuns: _ == null ? void 0 : _.map(($) => {
|
|
@@ -13447,7 +13473,7 @@ function iE(e) {
|
|
|
13447
13473
|
function oE(e, t, n, r) {
|
|
13448
13474
|
return Math.max(e, n) <= Math.min(t, r);
|
|
13449
13475
|
}
|
|
13450
|
-
function
|
|
13476
|
+
function ji(e, t, n, r) {
|
|
13451
13477
|
const { startOffset: s, endOffset: i } = e, o = r != null ? r : ra(t, n), a = [];
|
|
13452
13478
|
let l = -1;
|
|
13453
13479
|
for (let u = 0; u < o.length; u++) {
|
|
@@ -13456,10 +13482,10 @@ function Wi(e, t, n, r) {
|
|
|
13456
13482
|
}
|
|
13457
13483
|
return a;
|
|
13458
13484
|
}
|
|
13459
|
-
function
|
|
13485
|
+
function Wi(e, t, n) {
|
|
13460
13486
|
const r = [], s = ra(t, n);
|
|
13461
13487
|
for (const i of e) {
|
|
13462
|
-
const o =
|
|
13488
|
+
const o = ji(i, t, n, s);
|
|
13463
13489
|
r.push(...o);
|
|
13464
13490
|
}
|
|
13465
13491
|
return r;
|
|
@@ -13616,7 +13642,7 @@ const dE = (e) => {
|
|
|
13616
13642
|
const { paragraphs: t, document: n, type: r } = e, s = new Xn();
|
|
13617
13643
|
s.reset();
|
|
13618
13644
|
const i = new Te(), o = (u = n.getSnapshot().lists) != null ? u : {}, a = (h = (c = n.getBody()) == null ? void 0 : c.tables) != null ? h : [], l = {
|
|
13619
|
-
...
|
|
13645
|
+
...Hs,
|
|
13620
13646
|
...o
|
|
13621
13647
|
};
|
|
13622
13648
|
for (const d of t) {
|
|
@@ -13666,7 +13692,7 @@ const dE = (e) => {
|
|
|
13666
13692
|
cursor: o,
|
|
13667
13693
|
deleteLen: a,
|
|
13668
13694
|
textX: l
|
|
13669
|
-
} = 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 =
|
|
13695
|
+
} = 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 = Wi(t, c, h), f = new Xn();
|
|
13670
13696
|
o && f.moveCursorTo(o);
|
|
13671
13697
|
const g = l != null ? l : new Te();
|
|
13672
13698
|
d.sort((W, w) => W.startIndex - w.startIndex);
|
|
@@ -13734,8 +13760,8 @@ p(Qe, "customRange", {
|
|
|
13734
13760
|
retain: J0
|
|
13735
13761
|
}), p(Qe, "range", {
|
|
13736
13762
|
isIntersects: oE,
|
|
13737
|
-
getParagraphsInRange:
|
|
13738
|
-
getParagraphsInRanges:
|
|
13763
|
+
getParagraphsInRange: ji,
|
|
13764
|
+
getParagraphsInRanges: Wi
|
|
13739
13765
|
}), p(Qe, "transform", {
|
|
13740
13766
|
getPlainText: na,
|
|
13741
13767
|
fromPlainText: $0,
|
|
@@ -13752,13 +13778,13 @@ p(Qe, "customRange", {
|
|
|
13752
13778
|
},
|
|
13753
13779
|
util: {
|
|
13754
13780
|
transform: ra,
|
|
13755
|
-
getParagraphsInRange:
|
|
13756
|
-
getParagraphsInRanges:
|
|
13781
|
+
getParagraphsInRange: ji,
|
|
13782
|
+
getParagraphsInRanges: Wi
|
|
13757
13783
|
}
|
|
13758
13784
|
}), p(Qe, "drawing", {
|
|
13759
13785
|
add: rE
|
|
13760
13786
|
});
|
|
13761
|
-
function
|
|
13787
|
+
function $1(e, t, n, r) {
|
|
13762
13788
|
var u;
|
|
13763
13789
|
if (t === "")
|
|
13764
13790
|
return e;
|
|
@@ -13805,7 +13831,7 @@ function hc(e) {
|
|
|
13805
13831
|
var t;
|
|
13806
13832
|
return e.body = mE((t = e.body) != null ? t : { dataStream: "" }), e.drawingsOrder || (e.drawingsOrder = []), e.drawings || (e.drawings = {}), e.documentStyle || (e.documentStyle = {}), e;
|
|
13807
13833
|
}
|
|
13808
|
-
class
|
|
13834
|
+
class Bs {
|
|
13809
13835
|
/**
|
|
13810
13836
|
* Creates a new TextStyleValue instance
|
|
13811
13837
|
* @param {ITextStyle} style The initial style object
|
|
@@ -13830,7 +13856,7 @@ class js {
|
|
|
13830
13856
|
* ```
|
|
13831
13857
|
*/
|
|
13832
13858
|
static create(t = {}) {
|
|
13833
|
-
return new
|
|
13859
|
+
return new Bs(t);
|
|
13834
13860
|
}
|
|
13835
13861
|
/**
|
|
13836
13862
|
* Gets the font family
|
|
@@ -14014,7 +14040,7 @@ class js {
|
|
|
14014
14040
|
return { ...this._style };
|
|
14015
14041
|
}
|
|
14016
14042
|
}
|
|
14017
|
-
class pn extends
|
|
14043
|
+
class pn extends Bs {
|
|
14018
14044
|
/**
|
|
14019
14045
|
* Creates a new TextStyleBuilder instance
|
|
14020
14046
|
* @param {ITextStyle} style Initial style object
|
|
@@ -14312,7 +14338,7 @@ class fn {
|
|
|
14312
14338
|
return { ...this._decoration };
|
|
14313
14339
|
}
|
|
14314
14340
|
}
|
|
14315
|
-
class
|
|
14341
|
+
class js {
|
|
14316
14342
|
constructor(t = {}) {
|
|
14317
14343
|
p(this, "_style");
|
|
14318
14344
|
this._style = t;
|
|
@@ -14327,7 +14353,7 @@ class Ws {
|
|
|
14327
14353
|
* ```
|
|
14328
14354
|
*/
|
|
14329
14355
|
static create(t = {}) {
|
|
14330
|
-
return new
|
|
14356
|
+
return new js(t);
|
|
14331
14357
|
}
|
|
14332
14358
|
/**
|
|
14333
14359
|
* Gets the first line indent
|
|
@@ -14651,7 +14677,7 @@ class Ws {
|
|
|
14651
14677
|
* ```
|
|
14652
14678
|
*/
|
|
14653
14679
|
copy() {
|
|
14654
|
-
return
|
|
14680
|
+
return Cs.create(Z.deepClone(this._style));
|
|
14655
14681
|
}
|
|
14656
14682
|
/**
|
|
14657
14683
|
* Gets the value
|
|
@@ -14666,7 +14692,7 @@ class Ws {
|
|
|
14666
14692
|
return this._style;
|
|
14667
14693
|
}
|
|
14668
14694
|
}
|
|
14669
|
-
class
|
|
14695
|
+
class Cs extends js {
|
|
14670
14696
|
/**
|
|
14671
14697
|
* Creates a new paragraph style builder
|
|
14672
14698
|
* @param style The paragraph style
|
|
@@ -14678,7 +14704,7 @@ class Rs extends Ws {
|
|
|
14678
14704
|
* ```
|
|
14679
14705
|
*/
|
|
14680
14706
|
static create(t = {}) {
|
|
14681
|
-
return new
|
|
14707
|
+
return new Cs(t);
|
|
14682
14708
|
}
|
|
14683
14709
|
constructor(t = {}) {
|
|
14684
14710
|
super(t);
|
|
@@ -15057,7 +15083,7 @@ class Rs extends Ws {
|
|
|
15057
15083
|
* ```
|
|
15058
15084
|
*/
|
|
15059
15085
|
copy() {
|
|
15060
|
-
return
|
|
15086
|
+
return Cs.create(Z.deepClone(this._style));
|
|
15061
15087
|
}
|
|
15062
15088
|
/**
|
|
15063
15089
|
* Builds and returns the final paragraph style configuration
|
|
@@ -15158,7 +15184,7 @@ class mn {
|
|
|
15158
15184
|
*/
|
|
15159
15185
|
getParagraphStyle() {
|
|
15160
15186
|
var t, n;
|
|
15161
|
-
return
|
|
15187
|
+
return js.create((n = (t = this._data.body) == null ? void 0 : t.paragraphs) == null ? void 0 : n[0].paragraphStyle);
|
|
15162
15188
|
}
|
|
15163
15189
|
/**
|
|
15164
15190
|
* Gets the paragraph bullet of the current RichTextValue instance
|
|
@@ -15204,7 +15230,7 @@ class mn {
|
|
|
15204
15230
|
var t, n;
|
|
15205
15231
|
return ((n = (t = this._data.body) == null ? void 0 : t.textRuns) != null ? n : []).map((r) => ({
|
|
15206
15232
|
...r,
|
|
15207
|
-
ts: r.ts ?
|
|
15233
|
+
ts: r.ts ? Bs.create(r.ts) : null
|
|
15208
15234
|
}));
|
|
15209
15235
|
}
|
|
15210
15236
|
/**
|
|
@@ -15420,7 +15446,7 @@ class Fn extends mn {
|
|
|
15420
15446
|
return typeof n == "number" ? this.insertRichText(n, a) : this.insertRichText(a);
|
|
15421
15447
|
}
|
|
15422
15448
|
}
|
|
15423
|
-
const
|
|
15449
|
+
const H1 = "__default_document_sub_component_id20231101__";
|
|
15424
15450
|
class gE {
|
|
15425
15451
|
constructor() {
|
|
15426
15452
|
/**
|
|
@@ -15438,7 +15464,7 @@ class gE {
|
|
|
15438
15464
|
this.isStopPropagation = !0;
|
|
15439
15465
|
}
|
|
15440
15466
|
}
|
|
15441
|
-
class
|
|
15467
|
+
class B1 extends it {
|
|
15442
15468
|
constructor() {
|
|
15443
15469
|
super(...arguments);
|
|
15444
15470
|
p(this, "_sortedObservers", []);
|
|
@@ -15487,7 +15513,7 @@ class $1 extends it {
|
|
|
15487
15513
|
throw new Error("[EventSubject]: cannot emit event on a closed subject.");
|
|
15488
15514
|
}
|
|
15489
15515
|
}
|
|
15490
|
-
function
|
|
15516
|
+
function j1(e) {
|
|
15491
15517
|
return new yr((t) => {
|
|
15492
15518
|
const n = e.subscribeEvent((r) => {
|
|
15493
15519
|
t.next(r);
|
|
@@ -15495,14 +15521,14 @@ function H1(e) {
|
|
|
15495
15521
|
return () => n.unsubscribe();
|
|
15496
15522
|
});
|
|
15497
15523
|
}
|
|
15498
|
-
const sa = ot("core.resource-manager.service"),
|
|
15524
|
+
const sa = ot("core.resource-manager.service"), Yi = {
|
|
15499
15525
|
[Re.Editor]: "Editor",
|
|
15500
15526
|
[Re.Owner]: "Owner",
|
|
15501
15527
|
[Re.Reader]: "Reader",
|
|
15502
15528
|
[Re.UNRECOGNIZED]: "UNRECOGNIZED"
|
|
15503
|
-
},
|
|
15504
|
-
userID: `${
|
|
15505
|
-
name:
|
|
15529
|
+
}, zi = (e) => e ? {
|
|
15530
|
+
userID: `${Yi[e]}_${tt(8)}`,
|
|
15531
|
+
name: Yi[e],
|
|
15506
15532
|
avatar: ""
|
|
15507
15533
|
} : {
|
|
15508
15534
|
userID: "",
|
|
@@ -15510,14 +15536,14 @@ const sa = ot("core.resource-manager.service"), zi = {
|
|
|
15510
15536
|
avatar: "",
|
|
15511
15537
|
anonymous: !0,
|
|
15512
15538
|
canBindAnonymous: !1
|
|
15513
|
-
}, _E = (e, t) => e.startsWith(
|
|
15514
|
-
class
|
|
15539
|
+
}, _E = (e, t) => e.startsWith(Yi[t]);
|
|
15540
|
+
class Rs extends Ge {
|
|
15515
15541
|
constructor() {
|
|
15516
15542
|
super(...arguments);
|
|
15517
15543
|
p(this, "_model", /* @__PURE__ */ new Map());
|
|
15518
15544
|
p(this, "_userChange$", new it());
|
|
15519
15545
|
p(this, "userChange$", this._userChange$.asObservable());
|
|
15520
|
-
p(this, "_currentUser$", new nt(
|
|
15546
|
+
p(this, "_currentUser$", new nt(zi()));
|
|
15521
15547
|
/**
|
|
15522
15548
|
* When the current user undergoes a switch or change
|
|
15523
15549
|
* @memberof UserManagerService
|
|
@@ -15558,7 +15584,7 @@ var pE = Object.getOwnPropertyDescriptor, EE = (e, t, n, r) => {
|
|
|
15558
15584
|
(o = e[i]) && (s = o(s) || s);
|
|
15559
15585
|
return s;
|
|
15560
15586
|
}, wl = (e, t) => (n, r) => t(n, r, e);
|
|
15561
|
-
let
|
|
15587
|
+
let Vi = class {
|
|
15562
15588
|
constructor(e, t) {
|
|
15563
15589
|
p(this, "_permissionMap", /* @__PURE__ */ new Map([]));
|
|
15564
15590
|
// Store explicit permission overrides: key is "objectID:action", value is the allowed state
|
|
@@ -15567,7 +15593,7 @@ let Gi = class {
|
|
|
15567
15593
|
}
|
|
15568
15594
|
_initDefaultUser() {
|
|
15569
15595
|
const e = this._userManagerService.getCurrentUser();
|
|
15570
|
-
e && e.userID || this._userManagerService.setCurrentUser(
|
|
15596
|
+
e && e.userID || this._userManagerService.setCurrentUser(zi(Re.Owner));
|
|
15571
15597
|
}
|
|
15572
15598
|
_getRole(e) {
|
|
15573
15599
|
const t = this._userManagerService.getCurrentUser();
|
|
@@ -15670,10 +15696,10 @@ let Gi = class {
|
|
|
15670
15696
|
shareRole: Re.Owner,
|
|
15671
15697
|
shareScope: -1,
|
|
15672
15698
|
scope: {
|
|
15673
|
-
read:
|
|
15674
|
-
edit:
|
|
15699
|
+
read: Oi.AllCollaborator,
|
|
15700
|
+
edit: Oi.AllCollaborator
|
|
15675
15701
|
},
|
|
15676
|
-
creator:
|
|
15702
|
+
creator: zi(Re.Owner),
|
|
15677
15703
|
strategies: i.map((a) => ({ action: a.action, role: a.role })),
|
|
15678
15704
|
actions: e.actions.map((a) => {
|
|
15679
15705
|
const l = `${r}:${a}`;
|
|
@@ -15747,12 +15773,12 @@ let Gi = class {
|
|
|
15747
15773
|
async putCollaborators(e) {
|
|
15748
15774
|
}
|
|
15749
15775
|
};
|
|
15750
|
-
|
|
15776
|
+
Vi = EE([
|
|
15751
15777
|
wl(0, sa),
|
|
15752
|
-
wl(1, wt(
|
|
15753
|
-
],
|
|
15754
|
-
const CE = ot("IAuthzIoIoService"),
|
|
15755
|
-
class
|
|
15778
|
+
wl(1, wt(Rs))
|
|
15779
|
+
], Vi);
|
|
15780
|
+
const CE = ot("IAuthzIoIoService"), W1 = ot("univer.confirm-service");
|
|
15781
|
+
class Y1 {
|
|
15756
15782
|
constructor() {
|
|
15757
15783
|
p(this, "confirmOptions$", new it());
|
|
15758
15784
|
}
|
|
@@ -15769,7 +15795,7 @@ class j1 {
|
|
|
15769
15795
|
throw new Error("This is not implemented in the test service!");
|
|
15770
15796
|
}
|
|
15771
15797
|
}
|
|
15772
|
-
const qr = "FOCUSING_UNIT", pr = "FOCUSING_SHEET", Jr = "FOCUSING_DOC", Zr = "FOCUSING_SLIDE",
|
|
15798
|
+
const qr = "FOCUSING_UNIT", pr = "FOCUSING_SHEET", Jr = "FOCUSING_DOC", Zr = "FOCUSING_SLIDE", z1 = "FOCUSING_EDITOR_BUT_HIDDEN", RE = "EDITOR_ACTIVATED", V1 = "FOCUSING_EDITOR_INPUT_FORMULA", IE = "FOCUSING_FX_BAR_EDITOR", G1 = "FOCUSING_UNIVER_EDITOR", K1 = "FOCUSING_EDITOR_INPUT_FORMULA", X1 = "FOCUSING_COMMENT_EDITOR", q1 = "FOCUSING_PANEL_EDITOR", J1 = "FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE", Z1 = "FOCUSING_COMMON_DRAWINGS", Q1 = "FOCUSING_SHAPE_TEXT_EDITOR", eI = "FORMULA_EDITOR_ACTIVATED";
|
|
15773
15799
|
class wE extends Ge {
|
|
15774
15800
|
constructor() {
|
|
15775
15801
|
super(...arguments);
|
|
@@ -15783,11 +15809,11 @@ class wE extends Ge {
|
|
|
15783
15809
|
this._error$.next({ errorKey: n });
|
|
15784
15810
|
}
|
|
15785
15811
|
}
|
|
15786
|
-
var
|
|
15787
|
-
const Ol = ot("core.image-io.service"), vl = ot("core.url-image.service"), vE = "0.15.
|
|
15812
|
+
var Gi = /* @__PURE__ */ ((e) => (e.URL = "URL", e.UUID = "UUID", e.BASE64 = "BASE64", e))(Gi || {}), OE = /* @__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))(OE || {});
|
|
15813
|
+
const Ol = ot("core.image-io.service"), vl = ot("core.url-image.service"), vE = "0.15.3", SE = {
|
|
15788
15814
|
version: vE
|
|
15789
15815
|
};
|
|
15790
|
-
function bE(e = "", t =
|
|
15816
|
+
function bE(e = "", t = Ns.ZH_CN, n = "") {
|
|
15791
15817
|
return {
|
|
15792
15818
|
id: e,
|
|
15793
15819
|
sheetOrder: [],
|
|
@@ -15802,7 +15828,7 @@ function bE(e = "", t = Ts.ZH_CN, n = "") {
|
|
|
15802
15828
|
class AE {
|
|
15803
15829
|
constructor(t = {}) {
|
|
15804
15830
|
p(this, "_styles");
|
|
15805
|
-
p(this, "_cacheMap", new
|
|
15831
|
+
p(this, "_cacheMap", new ea(1e5));
|
|
15806
15832
|
this._styles = t, this._generateCacheMap();
|
|
15807
15833
|
}
|
|
15808
15834
|
each(t) {
|
|
@@ -15861,10 +15887,10 @@ class AE {
|
|
|
15861
15887
|
return null;
|
|
15862
15888
|
}
|
|
15863
15889
|
}
|
|
15864
|
-
const
|
|
15890
|
+
const tI = (e, t) => t.length === e.length && !e.some((n) => t.some((r) => !en.equals(r, n))), nI = (e, t) => t.length === e.length && e.every((n, r) => {
|
|
15865
15891
|
const s = t[r];
|
|
15866
15892
|
return s.unitId === n.unitId && s.sheetId === n.sheetId && en.equals(n.range, s.range);
|
|
15867
|
-
}),
|
|
15893
|
+
}), Ki = {
|
|
15868
15894
|
t: 0,
|
|
15869
15895
|
b: 2,
|
|
15870
15896
|
// must over 1, see https://github.com/dream-num/univer/issues/2727
|
|
@@ -15884,7 +15910,7 @@ function Qr(e, t, n = {}) {
|
|
|
15884
15910
|
verticalAlign: a = Dn.UNSPECIFIED,
|
|
15885
15911
|
wrapStrategy: l = jn.UNSPECIFIED,
|
|
15886
15912
|
cellValueType: u
|
|
15887
|
-
} = n, { t: c, r: h, b: d, l: f } = i ||
|
|
15913
|
+
} = n, { t: c, r: h, b: d, l: f } = i || Ki, { vertexAngle: g, centerAngle: _ } = dc(s), R = {
|
|
15888
15914
|
id: "d",
|
|
15889
15915
|
body: {
|
|
15890
15916
|
dataStream: `${e}${Gc}`,
|
|
@@ -15961,8 +15987,8 @@ function NE(e) {
|
|
|
15961
15987
|
function bl(e) {
|
|
15962
15988
|
if (!e)
|
|
15963
15989
|
return {};
|
|
15964
|
-
const { ff: t, fs: n, it: r, bl: s, ul: i, st: o, ol: a, cl: l
|
|
15965
|
-
return t && (
|
|
15990
|
+
const { ff: t, fs: n, it: r, bl: s, ul: i, st: o, ol: a, cl: l } = e, u = {};
|
|
15991
|
+
return t && (u.ff = t), n && (u.fs = n), r && (u.it = r), s && (u.bl = s), i && (u.ul = i), o && (u.st = o), a && (u.ol = a), l && (u.cl = l), u;
|
|
15966
15992
|
}
|
|
15967
15993
|
function TE(e, t, n) {
|
|
15968
15994
|
var i;
|
|
@@ -15990,7 +16016,7 @@ function TE(e, t, n) {
|
|
|
15990
16016
|
function ME(e) {
|
|
15991
16017
|
return e != null;
|
|
15992
16018
|
}
|
|
15993
|
-
function
|
|
16019
|
+
function rI() {
|
|
15994
16020
|
return {
|
|
15995
16021
|
p: null,
|
|
15996
16022
|
s: null,
|
|
@@ -16071,7 +16097,7 @@ function DE(e) {
|
|
|
16071
16097
|
const t = {};
|
|
16072
16098
|
return e.p !== void 0 && (t.p = e.p === null ? null : It(e.p)), e.s !== void 0 && (e.s === null || typeof e.s == "string" ? t.s = e.s : t.s = It(e.s)), e.v !== void 0 && (t.v = e.v), e.t !== void 0 && (t.t = e.t), e.f !== void 0 && (t.f = e.f), e.ref !== void 0 && (t.ref = e.ref), e.xf !== void 0 && (t.xf = e.xf), e.si !== void 0 && (t.si = e.si), e.custom !== void 0 && (t.custom = e.custom === null ? null : It(e.custom)), t;
|
|
16073
16099
|
}
|
|
16074
|
-
function
|
|
16100
|
+
function sI(e) {
|
|
16075
16101
|
if (e == null)
|
|
16076
16102
|
return e;
|
|
16077
16103
|
const t = {};
|
|
@@ -16481,7 +16507,7 @@ class HE {
|
|
|
16481
16507
|
return (n = this.getRow(t)) == null ? void 0 : n.custom;
|
|
16482
16508
|
}
|
|
16483
16509
|
}
|
|
16484
|
-
const
|
|
16510
|
+
const iI = "DEFAULT_WORKSHEET_ROW_COUNT", BE = 1e3, oI = "DEFAULT_WORKSHEET_COLUMN_COUNT", jE = 20, aI = "DEFAULT_WORKSHEET_ROW_HEIGHT", WE = 24, lI = "DEFAULT_WORKSHEET_COLUMN_WIDTH", YE = 88, uI = "DEFAULT_WORKSHEET_ROW_TITLE_WIDTH", zE = 46, cI = "DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT", VE = 20;
|
|
16485
16511
|
function GE(e) {
|
|
16486
16512
|
const t = {
|
|
16487
16513
|
name: "Sheet1",
|
|
@@ -16557,15 +16583,14 @@ class KE extends Ge {
|
|
|
16557
16583
|
* @property the original merge data
|
|
16558
16584
|
*/
|
|
16559
16585
|
p(this, "_mergeData");
|
|
16560
|
-
p(this, "_rangeMap", new
|
|
16561
|
-
p(this, "_skeletonCache", new Es(5e4));
|
|
16586
|
+
p(this, "_rangeMap", new ea(5e4));
|
|
16562
16587
|
this._init(n.concat());
|
|
16563
16588
|
}
|
|
16564
16589
|
_init(n) {
|
|
16565
16590
|
this._mergeData = n, this._createCache(n);
|
|
16566
16591
|
}
|
|
16567
16592
|
_clearCache() {
|
|
16568
|
-
this._cellCache.clear(), this._rowCache.clear(), this._columnCache.clear(), this._hasAll = !1, this._allIndex = -1, this._rangeMap.clear(), this.
|
|
16593
|
+
this._cellCache.clear(), this._rowCache.clear(), this._columnCache.clear(), this._hasAll = !1, this._allIndex = -1, this._rangeMap.clear(), this._hasColumn = !1, this._hasRow = !1;
|
|
16569
16594
|
}
|
|
16570
16595
|
_createCache(n) {
|
|
16571
16596
|
let r = 0;
|
|
@@ -16645,43 +16670,6 @@ class KE extends Ge {
|
|
|
16645
16670
|
}), u.push(l)), l++;
|
|
16646
16671
|
return this._rangeMap.set(a, u), o;
|
|
16647
16672
|
}
|
|
16648
|
-
/**
|
|
16649
|
-
* @deprecated sigificant performance impact, use _getCellMergeInfo instead.
|
|
16650
|
-
* @param startRow
|
|
16651
|
-
* @param startColumn
|
|
16652
|
-
* @param endRow
|
|
16653
|
-
* @param endColumn
|
|
16654
|
-
*/
|
|
16655
|
-
getMergedCellRangeForSkeleton(n, r, s, i) {
|
|
16656
|
-
const o = [], a = this._mergeData, l = `${n}-${r}-${s}-${i}`;
|
|
16657
|
-
if (this._skeletonCache.has(l))
|
|
16658
|
-
return this._getSkeletonRangeFromCache(l);
|
|
16659
|
-
const u = [];
|
|
16660
|
-
for (let c = 0; c < a.length; c++) {
|
|
16661
|
-
const {
|
|
16662
|
-
startRow: h,
|
|
16663
|
-
endRow: d,
|
|
16664
|
-
startColumn: f,
|
|
16665
|
-
endColumn: g
|
|
16666
|
-
} = a[c];
|
|
16667
|
-
for (let _ = n; _ <= s; _++) {
|
|
16668
|
-
let R = !1;
|
|
16669
|
-
for (let b = r; b <= i; b++)
|
|
16670
|
-
if (_ >= h && _ <= d && b >= f && b <= g) {
|
|
16671
|
-
o.push({
|
|
16672
|
-
startRow: h,
|
|
16673
|
-
endRow: d,
|
|
16674
|
-
startColumn: f,
|
|
16675
|
-
endColumn: g
|
|
16676
|
-
}), u.push(c), R = !0;
|
|
16677
|
-
break;
|
|
16678
|
-
}
|
|
16679
|
-
if (R)
|
|
16680
|
-
break;
|
|
16681
|
-
}
|
|
16682
|
-
}
|
|
16683
|
-
return this._skeletonCache.set(l, u), o;
|
|
16684
|
-
}
|
|
16685
16673
|
_getRangeFromCache(n) {
|
|
16686
16674
|
const r = this._rangeMap.get(n) || [], s = [];
|
|
16687
16675
|
for (const i of r)
|
|
@@ -16690,14 +16678,6 @@ class KE extends Ge {
|
|
|
16690
16678
|
});
|
|
16691
16679
|
return s;
|
|
16692
16680
|
}
|
|
16693
|
-
_getSkeletonRangeFromCache(n) {
|
|
16694
|
-
const r = this._skeletonCache.get(n) || [], s = [];
|
|
16695
|
-
for (const i of r)
|
|
16696
|
-
s.push({
|
|
16697
|
-
...this._mergeData[i]
|
|
16698
|
-
});
|
|
16699
|
-
return s;
|
|
16700
|
-
}
|
|
16701
16681
|
_getMergeDataIndex(n, r) {
|
|
16702
16682
|
var i;
|
|
16703
16683
|
if (this._hasAll)
|
|
@@ -16761,7 +16741,7 @@ const Nl = {
|
|
|
16761
16741
|
displayRawFormula: !1,
|
|
16762
16742
|
ignoreTextRotation: !1
|
|
16763
16743
|
};
|
|
16764
|
-
class
|
|
16744
|
+
class Is {
|
|
16765
16745
|
constructor(t, n, r) {
|
|
16766
16746
|
p(this, "_sheetId");
|
|
16767
16747
|
p(this, "_snapshot");
|
|
@@ -16984,7 +16964,7 @@ class ws {
|
|
|
16984
16964
|
*/
|
|
16985
16965
|
clone() {
|
|
16986
16966
|
const { _snapshot: t } = this, n = kE(t);
|
|
16987
|
-
return new
|
|
16967
|
+
return new Is(this.unitId, n, this._styles);
|
|
16988
16968
|
}
|
|
16989
16969
|
/**
|
|
16990
16970
|
* Get the merged cell list of the sheet.
|
|
@@ -17461,7 +17441,7 @@ class ws {
|
|
|
17461
17441
|
let a, l = "document";
|
|
17462
17442
|
const u = NE(n), c = o ? st.tr : u.textRotation || st.tr;
|
|
17463
17443
|
let h = u.horizontalAlign || st.ht;
|
|
17464
|
-
const d = u.verticalAlign || st.vt, f = u.wrapStrategy || st.tb, g = u.paddingData ||
|
|
17444
|
+
const d = u.verticalAlign || st.vt, f = u.wrapStrategy || st.tb, g = u.paddingData || Ki;
|
|
17465
17445
|
if (t.f && i)
|
|
17466
17446
|
a = Qr(t.f.toString(), {}, { verticalAlign: d }), h = st.ht;
|
|
17467
17447
|
else if (t.p) {
|
|
@@ -17525,7 +17505,7 @@ class ws {
|
|
|
17525
17505
|
return o.documentModel == null && (o.documentModel = Qr("", i)), o;
|
|
17526
17506
|
const a = "";
|
|
17527
17507
|
let l = "document";
|
|
17528
|
-
const u = st.tr, c = st.ht, h = st.vt, d = st.tb, f =
|
|
17508
|
+
const u = st.tr, c = st.ht, h = st.vt, d = st.tb, f = Ki;
|
|
17529
17509
|
return l = Al({}).fontCache, {
|
|
17530
17510
|
documentModel: Qr(a, i),
|
|
17531
17511
|
fontString: l,
|
|
@@ -17570,7 +17550,7 @@ function qE(e) {
|
|
|
17570
17550
|
const n = e.v;
|
|
17571
17551
|
return typeof n == "string" ? e.t === gn.BOOLEAN ? n.toUpperCase() : n.replace(/[\r\n]/g, "") : typeof n == "number" ? e.t === gn.BOOLEAN ? n ? "TRUE" : "FALSE" : n.toString() : typeof n == "boolean" ? n ? "TRUE" : "FALSE" : "";
|
|
17572
17552
|
}
|
|
17573
|
-
function
|
|
17553
|
+
function hI(e) {
|
|
17574
17554
|
if (e === null)
|
|
17575
17555
|
return "";
|
|
17576
17556
|
if (e != null && e.p) {
|
|
@@ -17587,10 +17567,10 @@ var JE = Object.getOwnPropertyDescriptor, ZE = (e, t, n, r) => {
|
|
|
17587
17567
|
(o = e[i]) && (s = o(s) || s);
|
|
17588
17568
|
return s;
|
|
17589
17569
|
}, QE = (e, t) => (n, r) => t(n, r, e);
|
|
17590
|
-
function
|
|
17570
|
+
function dI(e, t) {
|
|
17591
17571
|
return `${e.getUnitId()}|${t.getSheetId()}`;
|
|
17592
17572
|
}
|
|
17593
|
-
let
|
|
17573
|
+
let ws = class extends mo {
|
|
17594
17574
|
constructor(t = {}, n) {
|
|
17595
17575
|
super();
|
|
17596
17576
|
p(this, "type", Oe.UNIVER_SHEET);
|
|
@@ -17685,7 +17665,7 @@ let Os = class extends go {
|
|
|
17685
17665
|
if (s[t])
|
|
17686
17666
|
return !1;
|
|
17687
17667
|
s[t] = r, i.splice(n, 0, t), this.ensureSheetOrderUnique();
|
|
17688
|
-
const o = new
|
|
17668
|
+
const o = new Is(this._unitId, r, this._styles);
|
|
17689
17669
|
return this._worksheets.set(t, o), this._sheetCreated$.next(o), !0;
|
|
17690
17670
|
}
|
|
17691
17671
|
getSheetOrders() {
|
|
@@ -17848,7 +17828,7 @@ let Os = class extends go {
|
|
|
17848
17828
|
for (const i in r) {
|
|
17849
17829
|
const o = r[i], { name: a } = o;
|
|
17850
17830
|
o.name = this.uniqueSheetName(a), o.name !== a && this._logService.debug("[Workbook]", `The worksheet name ${a} is duplicated, we changed it to ${o.name}. Please fix the problem in your snapshot.`);
|
|
17851
|
-
const l = new
|
|
17831
|
+
const l = new Is(this._unitId, o, this._styles);
|
|
17852
17832
|
n.set(i, l), s.includes(i) || s.push(i);
|
|
17853
17833
|
}
|
|
17854
17834
|
this.ensureSheetOrderUnique(), this.ensureActiveSheet();
|
|
@@ -17868,10 +17848,10 @@ let Os = class extends go {
|
|
|
17868
17848
|
this._snapshot.custom = t;
|
|
17869
17849
|
}
|
|
17870
17850
|
};
|
|
17871
|
-
|
|
17851
|
+
ws = ZE([
|
|
17872
17852
|
QE(1, Ct)
|
|
17873
|
-
],
|
|
17874
|
-
class fc extends
|
|
17853
|
+
], ws);
|
|
17854
|
+
class fc extends mo {
|
|
17875
17855
|
constructor(n) {
|
|
17876
17856
|
var r;
|
|
17877
17857
|
super();
|
|
@@ -17968,9 +17948,9 @@ var eC = Object.getOwnPropertyDescriptor, tC = (e, t, n, r) => {
|
|
|
17968
17948
|
for (var s = r > 1 ? void 0 : r ? eC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
17969
17949
|
(o = e[i]) && (s = o(s) || s);
|
|
17970
17950
|
return s;
|
|
17971
|
-
},
|
|
17951
|
+
}, mi = (e, t) => (n, r) => t(n, r, e);
|
|
17972
17952
|
const Ar = ot("univer.current");
|
|
17973
|
-
let
|
|
17953
|
+
let Xi = class extends Ge {
|
|
17974
17954
|
constructor(t, n, r) {
|
|
17975
17955
|
super();
|
|
17976
17956
|
p(this, "_unitsByType", /* @__PURE__ */ new Map());
|
|
@@ -18004,7 +17984,7 @@ let qi = class extends Ge {
|
|
|
18004
17984
|
};
|
|
18005
17985
|
}
|
|
18006
17986
|
getCurrentTypeOfUnit$(t) {
|
|
18007
|
-
return this.currentUnits$.pipe(
|
|
17987
|
+
return this.currentUnits$.pipe(ro((n) => {
|
|
18008
17988
|
var r;
|
|
18009
17989
|
return (r = n.get(t)) != null ? r : null;
|
|
18010
17990
|
}), yc());
|
|
@@ -18075,7 +18055,7 @@ let qi = class extends Ge {
|
|
|
18075
18055
|
return t ? (n = this._getUnitById(t)) == null ? void 0 : n[0] : null;
|
|
18076
18056
|
}
|
|
18077
18057
|
focusUnit(t) {
|
|
18078
|
-
this._focused$.next(t), this.focused instanceof
|
|
18058
|
+
this._focused$.next(t), this.focused instanceof ws ? (this._contextService.setContextValue(qr, !0), this._contextService.setContextValue(Jr, !1), this._contextService.setContextValue(pr, !0), this._contextService.setContextValue(Zr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof Ft ? (this._contextService.setContextValue(qr, !0), this._contextService.setContextValue(Jr, !0), this._contextService.setContextValue(pr, !1), this._contextService.setContextValue(Zr, !1), this.setCurrentUnitForType(t)) : this.focused instanceof fc ? (this._contextService.setContextValue(qr, !0), this._contextService.setContextValue(Jr, !1), this._contextService.setContextValue(pr, !1), this._contextService.setContextValue(Zr, !0), this.setCurrentUnitForType(t)) : (this._contextService.setContextValue(qr, !1), this._contextService.setContextValue(Jr, !1), this._contextService.setContextValue(pr, !1), this._contextService.setContextValue(Zr, !1));
|
|
18079
18059
|
}
|
|
18080
18060
|
getFocusedUnit() {
|
|
18081
18061
|
return this.focused;
|
|
@@ -18108,11 +18088,11 @@ let qi = class extends Ge {
|
|
|
18108
18088
|
}
|
|
18109
18089
|
}
|
|
18110
18090
|
};
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18115
|
-
],
|
|
18091
|
+
Xi = tC([
|
|
18092
|
+
mi(0, wt(zn)),
|
|
18093
|
+
mi(1, Tr),
|
|
18094
|
+
mi(2, wt(Ct))
|
|
18095
|
+
], Xi);
|
|
18116
18096
|
var ke = /* @__PURE__ */ ((e) => (e[e.Starting = 0] = "Starting", e[e.Ready = 1] = "Ready", e[e.Rendered = 2] = "Rendered", e[e.Steady = 3] = "Steady", e))(ke || {});
|
|
18117
18097
|
const mc = {
|
|
18118
18098
|
0: "Starting",
|
|
@@ -18162,7 +18142,7 @@ let Yn = class extends Ge {
|
|
|
18162
18142
|
return Nc(this.lifecycle$.pipe(
|
|
18163
18143
|
wr((n) => n >= t),
|
|
18164
18144
|
Fa((n) => n === t),
|
|
18165
|
-
|
|
18145
|
+
ro(() => {
|
|
18166
18146
|
})
|
|
18167
18147
|
)).catch((n) => n.name === "EmptyError" ? Promise.reject(new iC(t)) : Promise.reject(n));
|
|
18168
18148
|
}
|
|
@@ -18198,11 +18178,11 @@ function gc(e) {
|
|
|
18198
18178
|
);
|
|
18199
18179
|
}
|
|
18200
18180
|
}
|
|
18201
|
-
const
|
|
18181
|
+
const fI = ot("ILocalStorageService");
|
|
18202
18182
|
class $n extends Ge {
|
|
18203
18183
|
constructor() {
|
|
18204
18184
|
super();
|
|
18205
|
-
p(this, "_currentLocale$", new nt(
|
|
18185
|
+
p(this, "_currentLocale$", new nt(Ns.ZH_CN));
|
|
18206
18186
|
p(this, "currentLocale$", this._currentLocale$.asObservable());
|
|
18207
18187
|
p(this, "_locales", null);
|
|
18208
18188
|
p(this, "localeChanged$", new it());
|
|
@@ -18256,7 +18236,7 @@ class $n extends Ge {
|
|
|
18256
18236
|
*/
|
|
18257
18237
|
load(n) {
|
|
18258
18238
|
var r;
|
|
18259
|
-
this._locales =
|
|
18239
|
+
this._locales = ho((r = this._locales) != null ? r : {}, n);
|
|
18260
18240
|
}
|
|
18261
18241
|
setLocale(n) {
|
|
18262
18242
|
this._currentLocale$.next(n), this.localeChanged$.next();
|
|
@@ -18282,17 +18262,17 @@ var oC = Object.getOwnPropertyDescriptor, aC = (e, t, n, r) => {
|
|
|
18282
18262
|
(o = e[i]) && (s = o(s) || s);
|
|
18283
18263
|
return s;
|
|
18284
18264
|
}, lC = (e, t) => (n, r) => t(n, r, e);
|
|
18285
|
-
let
|
|
18265
|
+
let qi = class {
|
|
18286
18266
|
constructor(e) {
|
|
18287
18267
|
this._userManagerService = e;
|
|
18288
18268
|
}
|
|
18289
18269
|
async list(e) {
|
|
18290
18270
|
return {
|
|
18291
18271
|
list: [{
|
|
18292
|
-
type:
|
|
18272
|
+
type: vi.PERSON,
|
|
18293
18273
|
mentions: [
|
|
18294
18274
|
{
|
|
18295
|
-
objectType:
|
|
18275
|
+
objectType: vi.PERSON,
|
|
18296
18276
|
objectId: this._userManagerService.getCurrentUser().userID,
|
|
18297
18277
|
label: this._userManagerService.getCurrentUser().name,
|
|
18298
18278
|
metadata: {
|
|
@@ -18309,9 +18289,9 @@ let Ji = class {
|
|
|
18309
18289
|
};
|
|
18310
18290
|
}
|
|
18311
18291
|
};
|
|
18312
|
-
|
|
18313
|
-
lC(0, wt(
|
|
18314
|
-
],
|
|
18292
|
+
qi = aC([
|
|
18293
|
+
lC(0, wt(Rs))
|
|
18294
|
+
], qi);
|
|
18315
18295
|
const uC = ot("univer.service.mention-io");
|
|
18316
18296
|
var _c = /* @__PURE__ */ ((e) => (e.INIT = "init", e.FETCHING = "fetching", e.DONE = "done", e))(_c || {});
|
|
18317
18297
|
const cC = ot("univer.permission-service");
|
|
@@ -18403,7 +18383,7 @@ var fC = Object.getOwnPropertyDescriptor, mC = (e, t, n, r) => {
|
|
|
18403
18383
|
for (var s = r > 1 ? void 0 : r ? fC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
18404
18384
|
(o = e[i]) && (s = o(s) || s);
|
|
18405
18385
|
return s;
|
|
18406
|
-
},
|
|
18386
|
+
}, gi = (e, t) => (n, r) => t(n, r, e);
|
|
18407
18387
|
const gC = 4, pc = /* @__PURE__ */ Symbol("DependentOn");
|
|
18408
18388
|
class Tl extends Ge {
|
|
18409
18389
|
onStarting() {
|
|
@@ -18437,12 +18417,12 @@ class _C {
|
|
|
18437
18417
|
this._plugins.forEach(t);
|
|
18438
18418
|
}
|
|
18439
18419
|
}
|
|
18440
|
-
function
|
|
18420
|
+
function mI(...e) {
|
|
18441
18421
|
return function(t) {
|
|
18442
18422
|
t[pc] = e;
|
|
18443
18423
|
};
|
|
18444
18424
|
}
|
|
18445
|
-
let
|
|
18425
|
+
let Os = class {
|
|
18446
18426
|
constructor(e, t, n) {
|
|
18447
18427
|
p(this, "_pluginRegistry", /* @__PURE__ */ new Map());
|
|
18448
18428
|
p(this, "_pluginStore", new _C());
|
|
@@ -18555,18 +18535,18 @@ let vs = class {
|
|
|
18555
18535
|
return this._pluginStore.addPlugin(n), this._loadedPlugins.add(e.pluginName), this._logService.debug("[PluginService]", `Plugin "${n.getPluginName()}" loaded.`), n;
|
|
18556
18536
|
}
|
|
18557
18537
|
};
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
],
|
|
18538
|
+
Os = mC([
|
|
18539
|
+
gi(0, wt(zn)),
|
|
18540
|
+
gi(1, wt(Yn)),
|
|
18541
|
+
gi(2, Ct)
|
|
18542
|
+
], Os);
|
|
18563
18543
|
const Ml = ot("resource-loader-service");
|
|
18564
18544
|
var pC = Object.getOwnPropertyDescriptor, EC = (e, t, n, r) => {
|
|
18565
18545
|
for (var s = r > 1 ? void 0 : r ? pC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
18566
18546
|
(o = e[i]) && (s = o(s) || s);
|
|
18567
18547
|
return s;
|
|
18568
18548
|
}, CC = (e, t) => (n, r) => t(n, r, e);
|
|
18569
|
-
let
|
|
18549
|
+
let Ji = class extends Ge {
|
|
18570
18550
|
constructor(t) {
|
|
18571
18551
|
super();
|
|
18572
18552
|
p(this, "_resourceMap", /* @__PURE__ */ new Map());
|
|
@@ -18626,10 +18606,10 @@ let Zi = class extends Ge {
|
|
|
18626
18606
|
this._register$.complete(), this._resourceMap.clear();
|
|
18627
18607
|
}
|
|
18628
18608
|
};
|
|
18629
|
-
|
|
18609
|
+
Ji = EC([
|
|
18630
18610
|
CC(0, Ct)
|
|
18631
|
-
],
|
|
18632
|
-
class
|
|
18611
|
+
], Ji);
|
|
18612
|
+
class Zi extends Ge {
|
|
18633
18613
|
constructor() {
|
|
18634
18614
|
super();
|
|
18635
18615
|
p(this, "_darkMode$", new nt(!1));
|
|
@@ -18703,7 +18683,7 @@ var RC = Object.getOwnPropertyDescriptor, IC = (e, t, n, r) => {
|
|
|
18703
18683
|
for (var s = r > 1 ? void 0 : r ? RC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
18704
18684
|
(o = e[i]) && (s = o(s) || s);
|
|
18705
18685
|
return s;
|
|
18706
|
-
},
|
|
18686
|
+
}, _i = (e, t) => (n, r) => t(n, r, e);
|
|
18707
18687
|
const ia = ot("univer.undo-redo.service"), wC = 20;
|
|
18708
18688
|
class Ec {
|
|
18709
18689
|
dispose() {
|
|
@@ -18715,31 +18695,31 @@ class Ec {
|
|
|
18715
18695
|
const OC = "univer.command.redo", vC = "univer.command.undo", SC = new class extends Ec {
|
|
18716
18696
|
constructor() {
|
|
18717
18697
|
super(...arguments);
|
|
18718
|
-
p(this, "type",
|
|
18698
|
+
p(this, "type", Ls.COMMAND);
|
|
18719
18699
|
p(this, "id", vC);
|
|
18720
18700
|
}
|
|
18721
18701
|
handler(t) {
|
|
18722
18702
|
const n = t.get(ia), r = n.pitchTopUndoElement();
|
|
18723
18703
|
if (!r)
|
|
18724
18704
|
return !1;
|
|
18725
|
-
const s = t.get(
|
|
18726
|
-
return
|
|
18705
|
+
const s = t.get(xs);
|
|
18706
|
+
return Eo(r.undoMutations, s) ? (n.popUndoToRedo(), !0) : !1;
|
|
18727
18707
|
}
|
|
18728
18708
|
}(), bC = new class extends Ec {
|
|
18729
18709
|
constructor() {
|
|
18730
18710
|
super(...arguments);
|
|
18731
|
-
p(this, "type",
|
|
18711
|
+
p(this, "type", Ls.COMMAND);
|
|
18732
18712
|
p(this, "id", OC);
|
|
18733
18713
|
}
|
|
18734
18714
|
handler(t) {
|
|
18735
18715
|
const n = t.get(ia), r = n.pitchTopRedoElement();
|
|
18736
18716
|
if (!r)
|
|
18737
18717
|
return !1;
|
|
18738
|
-
const s = t.get(
|
|
18739
|
-
return
|
|
18718
|
+
const s = t.get(xs);
|
|
18719
|
+
return Eo(r.redoMutations, s) ? (n.popRedoToUndo(), !0) : !1;
|
|
18740
18720
|
}
|
|
18741
18721
|
}();
|
|
18742
|
-
let
|
|
18722
|
+
let Qi = class extends Ge {
|
|
18743
18723
|
constructor(t, n, r) {
|
|
18744
18724
|
super();
|
|
18745
18725
|
p(this, "undoRedoStatus$");
|
|
@@ -18798,7 +18778,7 @@ let eo = class extends Ge {
|
|
|
18798
18778
|
}
|
|
18799
18779
|
rollback(t, n) {
|
|
18800
18780
|
const r = n || this._getFocusedUnitId(), s = this._getUndoStack(r), i = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
|
|
18801
|
-
i && i.id === t && (s.pop(),
|
|
18781
|
+
i && i.id === t && (s.pop(), Eo(i.undoMutations, this._commandService));
|
|
18802
18782
|
}
|
|
18803
18783
|
__tempBatchingUndoRedo(t) {
|
|
18804
18784
|
if (this._batchingStatus.has(t))
|
|
@@ -18847,15 +18827,15 @@ let eo = class extends Ge {
|
|
|
18847
18827
|
return n ? r ? t = Bl : s ? t = Hl : 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;
|
|
18848
18828
|
}
|
|
18849
18829
|
};
|
|
18850
|
-
|
|
18851
|
-
|
|
18852
|
-
|
|
18853
|
-
|
|
18854
|
-
],
|
|
18830
|
+
Qi = IC([
|
|
18831
|
+
_i(0, Ar),
|
|
18832
|
+
_i(1, xs),
|
|
18833
|
+
_i(2, Tr)
|
|
18834
|
+
], Qi);
|
|
18855
18835
|
class AC {
|
|
18856
18836
|
constructor(t, n = 1e3) {
|
|
18857
18837
|
p(this, "_imageCacheMap");
|
|
18858
|
-
this._injector = t, this._imageCacheMap = new
|
|
18838
|
+
this._injector = t, this._imageCacheMap = new ea(n);
|
|
18859
18839
|
}
|
|
18860
18840
|
_getImageCacheKey(t, n) {
|
|
18861
18841
|
return `${t}-${n}`;
|
|
@@ -18864,13 +18844,13 @@ class AC {
|
|
|
18864
18844
|
const i = this._getImageCacheKey(t, n), o = this._imageCacheMap.get(i);
|
|
18865
18845
|
return o || ((async () => {
|
|
18866
18846
|
const a = new Image(), l = this._injector.has(Ol) ? this._injector.get(Ol) : null, u = this._injector.has(vl) ? this._injector.get(vl) : null;
|
|
18867
|
-
if (t ===
|
|
18847
|
+
if (t === Gi.UUID)
|
|
18868
18848
|
try {
|
|
18869
18849
|
a.src = await (l == null ? void 0 : l.getImage(n)) || "";
|
|
18870
18850
|
} catch (c) {
|
|
18871
18851
|
console.error(c);
|
|
18872
18852
|
}
|
|
18873
|
-
else if (t ===
|
|
18853
|
+
else if (t === Gi.URL)
|
|
18874
18854
|
try {
|
|
18875
18855
|
const c = await (u == null ? void 0 : u.getImage(n));
|
|
18876
18856
|
a.src = c || n;
|
|
@@ -18887,10 +18867,10 @@ class AC {
|
|
|
18887
18867
|
})(), null);
|
|
18888
18868
|
}
|
|
18889
18869
|
}
|
|
18890
|
-
function
|
|
18870
|
+
function gI(e) {
|
|
18891
18871
|
return !(e.length === 0 || e.length > 31 || e.startsWith("'") || e.endsWith("'") || /[:\\\/\?\*\[\]]/.test(e));
|
|
18892
18872
|
}
|
|
18893
|
-
function
|
|
18873
|
+
function _I(e, t) {
|
|
18894
18874
|
return !(!e || e.length === 0 || e.length > 255 || t.has(e) || /[ :\\\/\?\*\[\]]/.test(e) || !/^[\p{L}_]/u.test(e) || /^\$?[A-Za-z]{1,3}\$?[0-9]+$/.test(e) || /^[rR]\d+[cC]\d+$/.test(e) || /^\d+$/.test(e));
|
|
18895
18875
|
}
|
|
18896
18876
|
const Ll = [
|
|
@@ -18903,7 +18883,7 @@ const Ll = [
|
|
|
18903
18883
|
Uint32Array,
|
|
18904
18884
|
Float32Array,
|
|
18905
18885
|
Float64Array
|
|
18906
|
-
],
|
|
18886
|
+
], pi = 1, rr = 8;
|
|
18907
18887
|
class oa {
|
|
18908
18888
|
/**
|
|
18909
18889
|
* Creates an index from raw `ArrayBuffer` data.
|
|
@@ -18916,8 +18896,8 @@ class oa {
|
|
|
18916
18896
|
if (n !== 219)
|
|
18917
18897
|
throw new Error("Data does not appear to be in a KDBush format.");
|
|
18918
18898
|
const s = r >> 4;
|
|
18919
|
-
if (s !==
|
|
18920
|
-
throw new Error(`Got v${s} data when expected v${
|
|
18899
|
+
if (s !== pi)
|
|
18900
|
+
throw new Error(`Got v${s} data when expected v${pi}.`);
|
|
18921
18901
|
const i = Ll[r & 15];
|
|
18922
18902
|
if (!i)
|
|
18923
18903
|
throw new Error("Unrecognized array type.");
|
|
@@ -18937,7 +18917,7 @@ class oa {
|
|
|
18937
18917
|
const i = Ll.indexOf(this.ArrayType), o = t * 2 * this.ArrayType.BYTES_PER_ELEMENT, a = t * this.IndexArrayType.BYTES_PER_ELEMENT, l = (8 - a % 8) % 8;
|
|
18938
18918
|
if (i < 0)
|
|
18939
18919
|
throw new Error(`Unexpected typed array class: ${r}.`);
|
|
18940
|
-
s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, rr, t), this.coords = new this.ArrayType(this.data, rr + a + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(rr + o + a + l), this.ids = new this.IndexArrayType(this.data, rr, t), this.coords = new this.ArrayType(this.data, rr + a + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (
|
|
18920
|
+
s && s instanceof ArrayBuffer ? (this.data = s, this.ids = new this.IndexArrayType(this.data, rr, t), this.coords = new this.ArrayType(this.data, rr + a + l, t * 2), this._pos = t * 2, this._finished = !0) : (this.data = new ArrayBuffer(rr + o + a + l), this.ids = new this.IndexArrayType(this.data, rr, t), this.coords = new this.ArrayType(this.data, rr + a + l, t * 2), this._pos = 0, this._finished = !1, new Uint8Array(this.data, 0, 2).set([219, (pi << 4) + i]), new Uint16Array(this.data, 2, 1)[0] = n, new Uint32Array(this.data, 4, 1)[0] = t);
|
|
18941
18921
|
}
|
|
18942
18922
|
/**
|
|
18943
18923
|
* Add a point to the index.
|
|
@@ -18956,7 +18936,7 @@ class oa {
|
|
|
18956
18936
|
const t = this._pos >> 1;
|
|
18957
18937
|
if (t !== this.numItems)
|
|
18958
18938
|
throw new Error(`Added ${t} items when expected ${this.numItems}.`);
|
|
18959
|
-
return
|
|
18939
|
+
return eo(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0), this._finished = !0, this;
|
|
18960
18940
|
}
|
|
18961
18941
|
/**
|
|
18962
18942
|
* Search the index for items within a given bounding box.
|
|
@@ -19006,10 +18986,10 @@ class oa {
|
|
|
19006
18986
|
return l;
|
|
19007
18987
|
}
|
|
19008
18988
|
}
|
|
19009
|
-
function
|
|
18989
|
+
function eo(e, t, n, r, s, i) {
|
|
19010
18990
|
if (s - r <= n) return;
|
|
19011
18991
|
const o = r + s >> 1;
|
|
19012
|
-
Cc(e, t, o, r, s, i),
|
|
18992
|
+
Cc(e, t, o, r, s, i), eo(e, t, n, r, o - 1, 1 - i), eo(e, t, n, o + 1, s, 1 - i);
|
|
19013
18993
|
}
|
|
19014
18994
|
function Cc(e, t, n, r, s, i) {
|
|
19015
18995
|
for (; s > r; ) {
|
|
@@ -19027,9 +19007,9 @@ function Cc(e, t, n, r, s, i) {
|
|
|
19027
19007
|
}
|
|
19028
19008
|
}
|
|
19029
19009
|
function sr(e, t, n, r) {
|
|
19030
|
-
|
|
19010
|
+
Ei(e, n, r), Ei(t, 2 * n, 2 * r), Ei(t, 2 * n + 1, 2 * r + 1);
|
|
19031
19011
|
}
|
|
19032
|
-
function
|
|
19012
|
+
function Ei(e, t, n) {
|
|
19033
19013
|
const r = e[t];
|
|
19034
19014
|
e[t] = e[n], e[n] = r;
|
|
19035
19015
|
}
|
|
@@ -19037,7 +19017,7 @@ function xl(e, t, n, r) {
|
|
|
19037
19017
|
const s = e - n, i = t - r;
|
|
19038
19018
|
return s * s + i * i;
|
|
19039
19019
|
}
|
|
19040
|
-
class
|
|
19020
|
+
class pI {
|
|
19041
19021
|
constructor(t = !1) {
|
|
19042
19022
|
p(this, "_tree", /* @__PURE__ */ new Map());
|
|
19043
19023
|
// unitId -> subUnitId -> row -> column -> ids
|
|
@@ -19049,7 +19029,7 @@ class mI {
|
|
|
19049
19029
|
this.clear();
|
|
19050
19030
|
}
|
|
19051
19031
|
getTree(t, n) {
|
|
19052
|
-
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
|
|
19032
|
+
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 Fi()), this._tree.get(t).get(n);
|
|
19053
19033
|
}
|
|
19054
19034
|
_getOneCellCache(t, n, r, s) {
|
|
19055
19035
|
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);
|
|
@@ -19218,16 +19198,16 @@ class mI {
|
|
|
19218
19198
|
for (const n in t) {
|
|
19219
19199
|
this._tree.set(n, /* @__PURE__ */ new Map());
|
|
19220
19200
|
for (const r in t[n]) {
|
|
19221
|
-
const s = new
|
|
19201
|
+
const s = new Fi();
|
|
19222
19202
|
s.fromJSON(t[n][r]), this._tree.get(n).set(r, s);
|
|
19223
19203
|
}
|
|
19224
19204
|
}
|
|
19225
19205
|
}
|
|
19226
19206
|
}
|
|
19227
|
-
function
|
|
19207
|
+
function EI(e) {
|
|
19228
19208
|
return new Promise((t) => setTimeout(t, e));
|
|
19229
19209
|
}
|
|
19230
|
-
function
|
|
19210
|
+
function CI(e = 1) {
|
|
19231
19211
|
return new Promise((t) => {
|
|
19232
19212
|
let n = 0;
|
|
19233
19213
|
const r = () => {
|
|
@@ -19241,7 +19221,7 @@ var yC = Object.getOwnPropertyDescriptor, NC = (e, t, n, r) => {
|
|
|
19241
19221
|
(o = e[i]) && (s = o(s) || s);
|
|
19242
19222
|
return s;
|
|
19243
19223
|
}, TC = (e, t) => (n, r) => t(n, r, e);
|
|
19244
|
-
let
|
|
19224
|
+
let to = class extends Ge {
|
|
19245
19225
|
constructor(t) {
|
|
19246
19226
|
super();
|
|
19247
19227
|
p(this, "_fontLocale");
|
|
@@ -19263,15 +19243,15 @@ let no = class extends Ge {
|
|
|
19263
19243
|
_localeInitial() {
|
|
19264
19244
|
}
|
|
19265
19245
|
};
|
|
19266
|
-
|
|
19246
|
+
to = NC([
|
|
19267
19247
|
TC(0, wt($n))
|
|
19268
|
-
],
|
|
19248
|
+
], to);
|
|
19269
19249
|
var MC = Object.getOwnPropertyDescriptor, LC = (e, t, n, r) => {
|
|
19270
19250
|
for (var s = r > 1 ? void 0 : r ? MC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
19271
19251
|
(o = e[i]) && (s = o(s) || s);
|
|
19272
19252
|
return s;
|
|
19273
19253
|
}, es = (e, t) => (n, r) => t(n, r, e);
|
|
19274
|
-
let Dl = class extends
|
|
19254
|
+
let Dl = class extends to {
|
|
19275
19255
|
constructor(t, n, r, s, i, o) {
|
|
19276
19256
|
super(r);
|
|
19277
19257
|
/**
|
|
@@ -19843,7 +19823,7 @@ let Dl = class extends no {
|
|
|
19843
19823
|
Dl = LC([
|
|
19844
19824
|
es(2, wt($n)),
|
|
19845
19825
|
es(3, Tr),
|
|
19846
|
-
es(4,
|
|
19826
|
+
es(4, Ms),
|
|
19847
19827
|
es(5, wt(zn))
|
|
19848
19828
|
], Dl);
|
|
19849
19829
|
function Rc(e, t, n, r) {
|
|
@@ -19859,7 +19839,7 @@ function Rc(e, t, n, r) {
|
|
|
19859
19839
|
endX: u
|
|
19860
19840
|
};
|
|
19861
19841
|
}
|
|
19862
|
-
function
|
|
19842
|
+
function RI(e, t, n, r) {
|
|
19863
19843
|
return Rc(e, t, n, r);
|
|
19864
19844
|
}
|
|
19865
19845
|
function ir(e, t, n, r, s) {
|
|
@@ -19949,13 +19929,13 @@ function DC(e, t, n, r) {
|
|
|
19949
19929
|
const { y: s } = n;
|
|
19950
19930
|
return e = e / t + s - r, e;
|
|
19951
19931
|
}
|
|
19952
|
-
const
|
|
19932
|
+
const II = ["script", "style", "meta", "comment", "link"];
|
|
19953
19933
|
var UC = /* @__PURE__ */ ((e) => (e[e.INFO = 0] = "INFO", e[e.STOP = 1] = "STOP", e[e.WARNING = 2] = "WARNING", e))(UC || {}), PC = /* @__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))(PC || {}), kC = /* @__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))(kC || {}), FC = /* @__PURE__ */ ((e) => (e[e.TEXT = 0] = "TEXT", e[e.ARROW = 1] = "ARROW", e[e.CUSTOM = 2] = "CUSTOM", e))(FC || {}), $C = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.INVALID = "invalid", e.VALIDATING = "validating", e))($C || {}), HC = /* @__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))(HC || {}), BC = Object.getOwnPropertyDescriptor, jC = (e, t, n, r) => {
|
|
19954
19934
|
for (var s = r > 1 ? void 0 : r ? BC(t, n) : t, i = e.length - 1, o; i >= 0; i--)
|
|
19955
19935
|
(o = e[i]) && (s = o(s) || s);
|
|
19956
19936
|
return s;
|
|
19957
19937
|
}, Ul = (e, t) => (n, r) => t(n, r, e);
|
|
19958
|
-
let
|
|
19938
|
+
let no = class extends Ge {
|
|
19959
19939
|
constructor(e, t) {
|
|
19960
19940
|
super(), this._resourceManagerService = e, this._univerInstanceService = t, this._init();
|
|
19961
19941
|
}
|
|
@@ -20020,11 +20000,11 @@ let ro = class extends Ge {
|
|
|
20020
20000
|
return r.resources = n, r;
|
|
20021
20001
|
}
|
|
20022
20002
|
};
|
|
20023
|
-
|
|
20003
|
+
no = jC([
|
|
20024
20004
|
Ul(0, wt(sa)),
|
|
20025
20005
|
Ul(1, wt(Ar))
|
|
20026
|
-
],
|
|
20027
|
-
class
|
|
20006
|
+
], no);
|
|
20007
|
+
class wI {
|
|
20028
20008
|
/**
|
|
20029
20009
|
* Create a Univer instance.
|
|
20030
20010
|
* @param config Configuration data for Univer
|
|
@@ -20033,15 +20013,15 @@ class CI {
|
|
|
20033
20013
|
constructor(t = {}, n) {
|
|
20034
20014
|
p(this, "_startedTypes", /* @__PURE__ */ new Set());
|
|
20035
20015
|
p(this, "_injector");
|
|
20036
|
-
p(this, "_disposingCallbacks", new
|
|
20016
|
+
p(this, "_disposingCallbacks", new fo());
|
|
20037
20017
|
const r = this._injector = WC(n, t == null ? void 0 : t.override), { theme: s, darkMode: i, locale: o, locales: a, logLevel: l, logCommandExecution: u } = t;
|
|
20038
|
-
s && this._injector.get(
|
|
20018
|
+
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(Ms).setConfig(yi, u), this._init(r);
|
|
20039
20019
|
}
|
|
20040
20020
|
get _univerInstanceService() {
|
|
20041
20021
|
return this._injector.get(Ar);
|
|
20042
20022
|
}
|
|
20043
20023
|
get _pluginService() {
|
|
20044
|
-
return this._injector.get(
|
|
20024
|
+
return this._injector.get(Os);
|
|
20045
20025
|
}
|
|
20046
20026
|
/**
|
|
20047
20027
|
* @ignore
|
|
@@ -20091,7 +20071,7 @@ class CI {
|
|
|
20091
20071
|
return this._injector.get(Ct).warn("[Univer]", "Univer.createUniverSlide is deprecated, use createUnit instead"), this._univerInstanceService.createUnit(Oe.UNIVER_SLIDE, t);
|
|
20092
20072
|
}
|
|
20093
20073
|
_init(t) {
|
|
20094
|
-
this._univerInstanceService.registerCtorForType(Oe.UNIVER_SHEET,
|
|
20074
|
+
this._univerInstanceService.registerCtorForType(Oe.UNIVER_SHEET, ws), this._univerInstanceService.registerCtorForType(Oe.UNIVER_DOC, Ft), this._univerInstanceService.registerCtorForType(Oe.UNIVER_SLIDE, fc);
|
|
20095
20075
|
const n = t.get(Ar);
|
|
20096
20076
|
n.__setCreateHandler(
|
|
20097
20077
|
(r, s, i, o) => {
|
|
@@ -20127,31 +20107,31 @@ function WC(e, t) {
|
|
|
20127
20107
|
const n = dC([
|
|
20128
20108
|
[wE],
|
|
20129
20109
|
[$n],
|
|
20130
|
-
[
|
|
20110
|
+
[Zi],
|
|
20131
20111
|
[Yn],
|
|
20132
|
-
[
|
|
20133
|
-
[
|
|
20112
|
+
[Os],
|
|
20113
|
+
[Rs],
|
|
20134
20114
|
// abstract services
|
|
20135
|
-
[Ar, { useClass:
|
|
20115
|
+
[Ar, { useClass: Xi }],
|
|
20136
20116
|
[cC, { useClass: hC }],
|
|
20137
20117
|
[Ct, { useClass: wg, lazy: !0 }],
|
|
20138
|
-
[
|
|
20139
|
-
[ia, { useClass:
|
|
20140
|
-
[
|
|
20118
|
+
[xs, { useClass: Ni }],
|
|
20119
|
+
[ia, { useClass: Qi, lazy: !0 }],
|
|
20120
|
+
[Ms, { useClass: Cg }],
|
|
20141
20121
|
[Tr, { useClass: Rg }],
|
|
20142
|
-
[sa, { useClass:
|
|
20143
|
-
[Ml, { useClass:
|
|
20144
|
-
[CE, { useClass:
|
|
20145
|
-
[uC, { useClass:
|
|
20122
|
+
[sa, { useClass: Ji, lazy: !0 }],
|
|
20123
|
+
[Ml, { useClass: no, lazy: !0 }],
|
|
20124
|
+
[CE, { useClass: Vi }],
|
|
20125
|
+
[uC, { useClass: qi, lazy: !0 }]
|
|
20146
20126
|
], t), r = e ? e.createChild(n) : new zn(n);
|
|
20147
20127
|
return Jc(r, [
|
|
20148
|
-
[
|
|
20128
|
+
[Rs],
|
|
20149
20129
|
[Ml]
|
|
20150
20130
|
]), r;
|
|
20151
20131
|
}
|
|
20152
20132
|
$c();
|
|
20153
20133
|
export {
|
|
20154
|
-
|
|
20134
|
+
T1 as ABCToNumber,
|
|
20155
20135
|
Xc as AUTO_HEIGHT_FOR_MERGED_CELLS,
|
|
20156
20136
|
Ne as AbsoluteRefType,
|
|
20157
20137
|
nr as ActionIterator,
|
|
@@ -20161,7 +20141,7 @@ export {
|
|
|
20161
20141
|
Nm as ArrowsAndMarkersShapes,
|
|
20162
20142
|
cR as AsyncInterceptorManager,
|
|
20163
20143
|
eR as AsyncLock,
|
|
20164
|
-
|
|
20144
|
+
Vi as AuthzIoLocalService,
|
|
20165
20145
|
Em as AutoFillSeries,
|
|
20166
20146
|
Zt as BaselineOffset,
|
|
20167
20147
|
ym as BasicShapes,
|
|
@@ -20170,55 +20150,55 @@ export {
|
|
|
20170
20150
|
xe as BorderStyleTypes,
|
|
20171
20151
|
Cm as BorderType,
|
|
20172
20152
|
Qe as BuildTextUtils,
|
|
20173
|
-
|
|
20153
|
+
Ts as BulletAlignment,
|
|
20174
20154
|
Ha as COLORS,
|
|
20175
|
-
|
|
20155
|
+
yi as COMMAND_LOG_EXECUTION_CONFIG_KEY,
|
|
20176
20156
|
iR as CanceledError,
|
|
20177
20157
|
lr as CellModeEnum,
|
|
20178
20158
|
gn as CellValueType,
|
|
20179
20159
|
Wn as Color,
|
|
20180
|
-
|
|
20160
|
+
Co as ColorBuilder,
|
|
20181
20161
|
Tt as ColorKit,
|
|
20182
20162
|
Mt as ColorType,
|
|
20183
20163
|
Hm as ColumnSeparatorType,
|
|
20184
|
-
|
|
20185
|
-
|
|
20164
|
+
Ni as CommandService,
|
|
20165
|
+
Ls as CommandType,
|
|
20186
20166
|
Rm as CommonHideTypes,
|
|
20187
20167
|
Cg as ConfigService,
|
|
20188
20168
|
Rg as ContextService,
|
|
20189
20169
|
Im as CopyPasteType,
|
|
20190
|
-
|
|
20170
|
+
Ci as CustomCommandExecutionError,
|
|
20191
20171
|
Un as CustomDecorationType,
|
|
20192
20172
|
Cn as CustomRangeType,
|
|
20193
|
-
|
|
20173
|
+
R1 as DEFAULT_CELL,
|
|
20194
20174
|
oc as DEFAULT_DOC,
|
|
20195
|
-
|
|
20175
|
+
H1 as DEFAULT_DOCUMENT_SUB_COMPONENT_ID,
|
|
20196
20176
|
Gc as DEFAULT_EMPTY_DOCUMENT_VALUE,
|
|
20197
20177
|
Bu as DEFAULT_NUMBER_FORMAT,
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20178
|
+
E1 as DEFAULT_RANGE,
|
|
20179
|
+
p1 as DEFAULT_RANGE_ARRAY,
|
|
20180
|
+
C1 as DEFAULT_SELECTION,
|
|
20201
20181
|
Fp as DEFAULT_SLIDE,
|
|
20202
20182
|
st as DEFAULT_STYLES,
|
|
20203
20183
|
H_ as DEFAULT_TEXT_FORMAT,
|
|
20204
20184
|
B_ as DEFAULT_TEXT_FORMAT_EXCEL,
|
|
20205
20185
|
jE as DEFAULT_WORKSHEET_COLUMN_COUNT,
|
|
20206
|
-
|
|
20186
|
+
oI as DEFAULT_WORKSHEET_COLUMN_COUNT_KEY,
|
|
20207
20187
|
VE as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT,
|
|
20208
|
-
|
|
20188
|
+
cI as DEFAULT_WORKSHEET_COLUMN_TITLE_HEIGHT_KEY,
|
|
20209
20189
|
YE as DEFAULT_WORKSHEET_COLUMN_WIDTH,
|
|
20210
|
-
|
|
20190
|
+
lI as DEFAULT_WORKSHEET_COLUMN_WIDTH_KEY,
|
|
20211
20191
|
BE as DEFAULT_WORKSHEET_ROW_COUNT,
|
|
20212
|
-
|
|
20192
|
+
iI as DEFAULT_WORKSHEET_ROW_COUNT_KEY,
|
|
20213
20193
|
WE as DEFAULT_WORKSHEET_ROW_HEIGHT,
|
|
20214
|
-
|
|
20194
|
+
aI as DEFAULT_WORKSHEET_ROW_HEIGHT_KEY,
|
|
20215
20195
|
zE as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH,
|
|
20216
|
-
|
|
20196
|
+
uI as DEFAULT_WORKSHEET_ROW_TITLE_WIDTH_KEY,
|
|
20217
20197
|
Vc as DOCS_COMMENT_EDITOR_UNIT_ID_KEY,
|
|
20218
20198
|
Bl as DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY,
|
|
20219
20199
|
Hl as DOCS_NORMAL_EDITOR_UNIT_ID_KEY,
|
|
20220
20200
|
zc as DOCS_ZEN_EDITOR_UNIT_ID_KEY,
|
|
20221
|
-
|
|
20201
|
+
S1 as DOC_DRAWING_PRINTING_COMPONENT_KEY,
|
|
20222
20202
|
Xg as DOC_RANGE_TYPE,
|
|
20223
20203
|
Vm as DashStyleType,
|
|
20224
20204
|
P0 as DataStreamTreeNodeType,
|
|
@@ -20230,13 +20210,13 @@ export {
|
|
|
20230
20210
|
$C as DataValidationStatus,
|
|
20231
20211
|
HC as DataValidationType,
|
|
20232
20212
|
wm as DeleteDirection,
|
|
20233
|
-
|
|
20213
|
+
mI as DependentOn,
|
|
20234
20214
|
wg as DesktopLogService,
|
|
20235
20215
|
Om as DeveloperMetadataVisibility,
|
|
20236
20216
|
vm as Dimension,
|
|
20237
20217
|
Sm as Direction,
|
|
20238
20218
|
Ge as Disposable,
|
|
20239
|
-
|
|
20219
|
+
fo as DisposableCollection,
|
|
20240
20220
|
Um as DocStyleType,
|
|
20241
20221
|
Ft as DocumentDataModel,
|
|
20242
20222
|
gu as DocumentFlavor,
|
|
@@ -20245,35 +20225,36 @@ export {
|
|
|
20245
20225
|
$p as EXTENSION_NAMES,
|
|
20246
20226
|
wE as ErrorService,
|
|
20247
20227
|
gE as EventState,
|
|
20248
|
-
|
|
20249
|
-
|
|
20250
|
-
|
|
20228
|
+
B1 as EventSubject,
|
|
20229
|
+
X1 as FOCUSING_COMMENT_EDITOR,
|
|
20230
|
+
Z1 as FOCUSING_COMMON_DRAWINGS,
|
|
20251
20231
|
Jr as FOCUSING_DOC,
|
|
20252
|
-
|
|
20253
|
-
|
|
20254
|
-
|
|
20232
|
+
z1 as FOCUSING_EDITOR_BUT_HIDDEN,
|
|
20233
|
+
V1 as FOCUSING_EDITOR_INPUT_FORMULA,
|
|
20234
|
+
K1 as FOCUSING_EDITOR_STANDALONE,
|
|
20255
20235
|
IE as FOCUSING_FX_BAR_EDITOR,
|
|
20256
|
-
|
|
20236
|
+
q1 as FOCUSING_PANEL_EDITOR,
|
|
20237
|
+
Q1 as FOCUSING_SHAPE_TEXT_EDITOR,
|
|
20257
20238
|
pr as FOCUSING_SHEET,
|
|
20258
20239
|
Zr as FOCUSING_SLIDE,
|
|
20259
20240
|
qr as FOCUSING_UNIT,
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20241
|
+
G1 as FOCUSING_UNIVER_EDITOR,
|
|
20242
|
+
J1 as FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE,
|
|
20243
|
+
eI as FORMULA_EDITOR_ACTIVATED,
|
|
20263
20244
|
Pm as FollowNumberWithType,
|
|
20264
|
-
|
|
20245
|
+
Si as FontItalic,
|
|
20265
20246
|
ar as FontStyleType,
|
|
20266
|
-
|
|
20247
|
+
bi as FontWeight,
|
|
20267
20248
|
Fm as GridType,
|
|
20268
20249
|
Dg as HLSColor,
|
|
20269
20250
|
Pt as HorizontalAlign,
|
|
20270
20251
|
CE as IAuthzIoService,
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20252
|
+
xs as ICommandService,
|
|
20253
|
+
Ms as IConfigService,
|
|
20254
|
+
W1 as IConfirmService,
|
|
20274
20255
|
Tr as IContextService,
|
|
20275
20256
|
Ol as IImageIoService,
|
|
20276
|
-
|
|
20257
|
+
fI as ILocalStorageService,
|
|
20277
20258
|
Ct as ILogService,
|
|
20278
20259
|
uC as IMentionIOService,
|
|
20279
20260
|
cC as IPermissionService,
|
|
@@ -20284,7 +20265,7 @@ export {
|
|
|
20284
20265
|
ia as IUndoRedoService,
|
|
20285
20266
|
Ar as IUniverInstanceService,
|
|
20286
20267
|
AC as ImageCacheMap,
|
|
20287
|
-
|
|
20268
|
+
Gi as ImageSourceType,
|
|
20288
20269
|
OE as ImageUploadStatusType,
|
|
20289
20270
|
or as InterceptorEffectEnum,
|
|
20290
20271
|
lR as InterceptorManager,
|
|
@@ -20292,21 +20273,21 @@ export {
|
|
|
20292
20273
|
yR as JSON1,
|
|
20293
20274
|
tn as JSONX,
|
|
20294
20275
|
Yr as LRUHelper,
|
|
20295
|
-
|
|
20276
|
+
ea as LRUMap,
|
|
20296
20277
|
Yn as LifecycleService,
|
|
20297
20278
|
ke as LifecycleStages,
|
|
20298
20279
|
iC as LifecycleUnreachableError,
|
|
20299
20280
|
me as ListGlyphType,
|
|
20300
|
-
|
|
20281
|
+
Qi as LocalUndoRedoService,
|
|
20301
20282
|
$n as LocaleService,
|
|
20302
|
-
|
|
20283
|
+
Ns as LocaleType,
|
|
20303
20284
|
Ig as LogLevel,
|
|
20304
20285
|
$r as MOVE_BUFFER_VALUE,
|
|
20305
20286
|
Xn as MemoryCursor,
|
|
20306
|
-
|
|
20307
|
-
|
|
20308
|
-
|
|
20309
|
-
|
|
20287
|
+
qi as MentionIOLocalService,
|
|
20288
|
+
vi as MentionType,
|
|
20289
|
+
w1 as NAMED_STYLE_MAP,
|
|
20290
|
+
O1 as NAMED_STYLE_SPACE_MAP,
|
|
20310
20291
|
Je as NamedStyleType,
|
|
20311
20292
|
Ag as NilCommand,
|
|
20312
20293
|
ng as NumberUnitType,
|
|
@@ -20314,54 +20295,54 @@ export {
|
|
|
20314
20295
|
eg as ObjectRelativeFromH,
|
|
20315
20296
|
tg as ObjectRelativeFromV,
|
|
20316
20297
|
Tm as OtherShapes,
|
|
20317
|
-
|
|
20298
|
+
b1 as PAGE_SIZE,
|
|
20318
20299
|
AR as PAPER_TYPES,
|
|
20319
|
-
|
|
20320
|
-
|
|
20300
|
+
Hs as PRESET_LIST_TYPE,
|
|
20301
|
+
v1 as PRINT_CHART_COMPONENT_KEY,
|
|
20321
20302
|
ug as PageElementType,
|
|
20322
20303
|
og as PageOrientType,
|
|
20323
20304
|
_u as PageType,
|
|
20324
20305
|
pt as PaperType,
|
|
20325
20306
|
jm as ParagraphElementType,
|
|
20326
|
-
|
|
20327
|
-
|
|
20307
|
+
Cs as ParagraphStyleBuilder,
|
|
20308
|
+
js as ParagraphStyleValue,
|
|
20328
20309
|
hC as PermissionService,
|
|
20329
20310
|
_c as PermissionStatus,
|
|
20330
20311
|
Tl as Plugin,
|
|
20331
|
-
|
|
20312
|
+
Os as PluginService,
|
|
20332
20313
|
Ym as PositionedObjectLayoutType,
|
|
20333
20314
|
Vt as PresetListType,
|
|
20334
20315
|
Am as ProtectionType,
|
|
20335
20316
|
a0 as QuickListType,
|
|
20336
|
-
|
|
20317
|
+
U1 as QuickListTypeMap,
|
|
20337
20318
|
Kg as RANGE_DIRECTION,
|
|
20338
20319
|
ge as RANGE_TYPE,
|
|
20339
|
-
|
|
20320
|
+
Fi as RBush,
|
|
20340
20321
|
wR as RCDisposable,
|
|
20341
20322
|
$R as RGBA_PAREN,
|
|
20342
20323
|
FR as RGB_PAREN,
|
|
20343
20324
|
Lg as ROTATE_BUFFER_VALUE,
|
|
20344
|
-
|
|
20325
|
+
pI as RTree,
|
|
20345
20326
|
br as Range,
|
|
20346
20327
|
en as Rectangle,
|
|
20347
20328
|
bC as RedoCommand,
|
|
20348
20329
|
OC as RedoCommandId,
|
|
20349
|
-
|
|
20330
|
+
N1 as RefAlias,
|
|
20350
20331
|
cu as Registry,
|
|
20351
20332
|
hu as RegistryAsMap,
|
|
20352
20333
|
Lm as RelativeDate,
|
|
20353
20334
|
cg as RelativeSlideLink,
|
|
20354
|
-
|
|
20355
|
-
|
|
20335
|
+
Ji as ResourceManagerService,
|
|
20336
|
+
Ti as RgbColor,
|
|
20356
20337
|
Fn as RichTextBuilder,
|
|
20357
20338
|
mn as RichTextValue,
|
|
20358
20339
|
IR as RxDisposable,
|
|
20359
|
-
|
|
20340
|
+
I1 as SHEET_EDITOR_UNITS,
|
|
20360
20341
|
$m as SectionType,
|
|
20361
20342
|
Dl as SheetSkeleton,
|
|
20362
20343
|
xm as SheetTypes,
|
|
20363
20344
|
XE as SheetViewModel,
|
|
20364
|
-
|
|
20345
|
+
to as Skeleton,
|
|
20365
20346
|
ic as SliceBodyType,
|
|
20366
20347
|
fc as SlideDataModel,
|
|
20367
20348
|
zm as SpacingRule,
|
|
@@ -20374,38 +20355,38 @@ export {
|
|
|
20374
20355
|
Zm as TableRowHeightRule,
|
|
20375
20356
|
Km as TableSizeType,
|
|
20376
20357
|
Jm as TableTextWrapType,
|
|
20377
|
-
|
|
20358
|
+
Y1 as TestConfirmService,
|
|
20378
20359
|
Dm as TextDecoration,
|
|
20379
20360
|
fn as TextDecorationBuilder,
|
|
20380
20361
|
gs as TextDirection,
|
|
20381
20362
|
Bm as TextDirectionType,
|
|
20382
20363
|
pn as TextStyleBuilder,
|
|
20383
|
-
|
|
20364
|
+
Bs as TextStyleValue,
|
|
20384
20365
|
Te as TextX,
|
|
20385
20366
|
J as TextXActionType,
|
|
20386
|
-
|
|
20367
|
+
Mi as ThemeColor,
|
|
20387
20368
|
at as ThemeColorType,
|
|
20388
|
-
|
|
20389
|
-
|
|
20369
|
+
_o as ThemeColors,
|
|
20370
|
+
Zi as ThemeService,
|
|
20390
20371
|
Z as Tools,
|
|
20391
20372
|
SC as UndoCommand,
|
|
20392
20373
|
vC as UndoCommandId,
|
|
20393
|
-
|
|
20394
|
-
|
|
20395
|
-
|
|
20374
|
+
mo as UnitModel,
|
|
20375
|
+
wI as Univer,
|
|
20376
|
+
Xi as UniverInstanceService,
|
|
20396
20377
|
Oe as UniverInstanceType,
|
|
20397
20378
|
pe as UpdateDocsAttributeType,
|
|
20398
|
-
|
|
20379
|
+
Rs as UserManagerService,
|
|
20399
20380
|
Dn as VerticalAlign,
|
|
20400
20381
|
Qm as VerticalAlignmentType,
|
|
20401
|
-
|
|
20402
|
-
|
|
20382
|
+
ws as Workbook,
|
|
20383
|
+
Is as Worksheet,
|
|
20403
20384
|
jn as WrapStrategy,
|
|
20404
20385
|
Wm as WrapTextType,
|
|
20405
20386
|
TE as addLinkToDocumentModel,
|
|
20406
20387
|
xR as afterInitApply,
|
|
20407
20388
|
MR as afterTime,
|
|
20408
|
-
|
|
20389
|
+
EI as awaitTime,
|
|
20409
20390
|
Mg as binSearchFirstGreaterThanTarget,
|
|
20410
20391
|
DR as binarySearchArray,
|
|
20411
20392
|
TR as bufferDebounceTime,
|
|
@@ -20418,7 +20399,7 @@ export {
|
|
|
20418
20399
|
Lp as checkParagraphHasIndentByStyle,
|
|
20419
20400
|
DE as cloneCellData,
|
|
20420
20401
|
UE as cloneCellDataMatrix,
|
|
20421
|
-
|
|
20402
|
+
sI as cloneCellDataWithSpanAndDisplay,
|
|
20422
20403
|
It as cloneValue,
|
|
20423
20404
|
kE as cloneWorksheetData,
|
|
20424
20405
|
UR as codeToBlob,
|
|
@@ -20433,32 +20414,33 @@ export {
|
|
|
20433
20414
|
l1 as covertCellValues,
|
|
20434
20415
|
$a as covertTextRunToHtml,
|
|
20435
20416
|
uR as createAsyncInterceptorKey,
|
|
20436
|
-
|
|
20417
|
+
zi as createDefaultUser,
|
|
20437
20418
|
Qr as createDocumentModelWithStyle,
|
|
20438
20419
|
aR as createInterceptorKey,
|
|
20439
20420
|
nR as createInternalEditorID,
|
|
20440
20421
|
SR as createREGEXFromWildChar,
|
|
20441
20422
|
gl as createRowColIter,
|
|
20442
|
-
|
|
20423
|
+
_I as customNameCharacterCheck,
|
|
20443
20424
|
sn as dayjs,
|
|
20444
20425
|
fR as debounce,
|
|
20445
20426
|
XC as dedupe,
|
|
20446
20427
|
qC as dedupeBy,
|
|
20447
20428
|
ju as deepCompare,
|
|
20448
|
-
|
|
20429
|
+
CI as delayAnimationFrame,
|
|
20449
20430
|
Dp as deleteContent,
|
|
20450
20431
|
qE as extractPureTextFromCell,
|
|
20451
20432
|
Ng as fromCallback,
|
|
20452
|
-
|
|
20433
|
+
j1 as fromEventSubject,
|
|
20434
|
+
m1 as generateIntervalsByPoints,
|
|
20453
20435
|
tt as generateRandomId,
|
|
20454
20436
|
Mf as get,
|
|
20455
20437
|
_n as getArrayLength,
|
|
20456
20438
|
kt as getBodySlice,
|
|
20457
|
-
|
|
20439
|
+
ti as getBodySliceHtml,
|
|
20458
20440
|
s1 as getBorderStyleType,
|
|
20459
20441
|
Rc as getCellCoordByIndexSimple,
|
|
20460
20442
|
zR as getCellInfoInMergeData,
|
|
20461
|
-
|
|
20443
|
+
RI as getCellPositionByIndexSimple,
|
|
20462
20444
|
jR as getCellValueType,
|
|
20463
20445
|
ir as getCellWithCoordByIndexCore,
|
|
20464
20446
|
Yt as getColorStyle,
|
|
@@ -20466,23 +20448,23 @@ export {
|
|
|
20466
20448
|
I0 as getCustomDecorationSlice,
|
|
20467
20449
|
R0 as getCustomRangeSlice,
|
|
20468
20450
|
i1 as getDocsUpdateBody,
|
|
20469
|
-
|
|
20451
|
+
rI as getEmptyCell,
|
|
20470
20452
|
qp as getIntersectRange,
|
|
20471
20453
|
Y_ as getNumfmtParseValueFilter,
|
|
20472
|
-
|
|
20454
|
+
hI as getOriginCellValue,
|
|
20473
20455
|
E0 as getParagraphsSlice,
|
|
20474
20456
|
na as getPlainText,
|
|
20475
20457
|
bR as getReverseDirection,
|
|
20476
|
-
|
|
20458
|
+
P1 as getSectionBreakSlice,
|
|
20477
20459
|
p0 as getTableSlice,
|
|
20478
|
-
|
|
20460
|
+
Bi as getTextRunSlice,
|
|
20479
20461
|
xC as getTransformOffsetX,
|
|
20480
20462
|
DC as getTransformOffsetY,
|
|
20481
|
-
|
|
20463
|
+
dI as getWorksheetUID,
|
|
20482
20464
|
ZC as groupBy,
|
|
20483
20465
|
r1 as handleStyleToString,
|
|
20484
20466
|
f1 as hashAlgorithm,
|
|
20485
|
-
|
|
20467
|
+
Qo as horizontalLineSegmentsSubtraction,
|
|
20486
20468
|
JR as insertMatrixArray,
|
|
20487
20469
|
xp as insertTextToContent,
|
|
20488
20470
|
hR as invertColorByHSL,
|
|
@@ -20503,39 +20485,40 @@ export {
|
|
|
20503
20485
|
WR as isNullCell,
|
|
20504
20486
|
sm as isNumeric,
|
|
20505
20487
|
XR as isPatternEqualWithoutDecimal,
|
|
20506
|
-
|
|
20488
|
+
tI as isRangesEqual,
|
|
20507
20489
|
d1 as isRealNum,
|
|
20508
20490
|
pR as isSafeNumeric,
|
|
20509
20491
|
q_ as isSameStyleTextRun,
|
|
20510
20492
|
GR as isTextFormat,
|
|
20511
|
-
|
|
20493
|
+
nI as isUnitRangesEqual,
|
|
20512
20494
|
o1 as isValidRange,
|
|
20513
20495
|
BR as isWhiteColor,
|
|
20514
20496
|
QC as makeArray,
|
|
20515
20497
|
t1 as makeCellRangeToRangeData,
|
|
20516
20498
|
e1 as makeCellToSelection,
|
|
20517
|
-
|
|
20499
|
+
F1 as makeCustomRangeStream,
|
|
20518
20500
|
qR as mapObjectMatrix,
|
|
20519
|
-
|
|
20520
|
-
|
|
20501
|
+
ho as merge,
|
|
20502
|
+
g1 as mergeIntervals,
|
|
20503
|
+
_1 as mergeLocales,
|
|
20521
20504
|
dC as mergeOverrideWithDependencies,
|
|
20522
20505
|
RR as mergeSets,
|
|
20523
20506
|
mR as mergeWith,
|
|
20524
20507
|
GE as mergeWorksheetSnapshotWithDefault,
|
|
20525
20508
|
_R as mixinClass,
|
|
20526
20509
|
Za as moveMatrixArray,
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20531
|
-
|
|
20532
|
-
|
|
20510
|
+
A1 as moveRangeByOffset,
|
|
20511
|
+
gI as nameCharacterCheck,
|
|
20512
|
+
k1 as normalizeBody,
|
|
20513
|
+
$s as normalizeTextRuns,
|
|
20514
|
+
M1 as numberToABC,
|
|
20515
|
+
L1 as numberToListABC,
|
|
20533
20516
|
VR as numfmt,
|
|
20534
|
-
|
|
20517
|
+
y1 as queryObjectMatrix,
|
|
20535
20518
|
sR as registerDependencies,
|
|
20536
|
-
|
|
20519
|
+
vs as remove,
|
|
20537
20520
|
n0 as repeatStringNumTimes,
|
|
20538
|
-
|
|
20521
|
+
$1 as replaceInDocumentBody,
|
|
20539
20522
|
CR as requestImmediateMacroTask,
|
|
20540
20523
|
OR as resolveWithBasePath,
|
|
20541
20524
|
JC as rotate,
|
|
@@ -20544,15 +20527,15 @@ export {
|
|
|
20544
20527
|
YR as selectionToArray,
|
|
20545
20528
|
om as sequence,
|
|
20546
20529
|
im as sequenceAsync,
|
|
20547
|
-
|
|
20530
|
+
Eo as sequenceExecute,
|
|
20548
20531
|
NR as sequenceExecuteAsync,
|
|
20549
20532
|
gR as set,
|
|
20550
20533
|
Zc as shallowEqual,
|
|
20551
|
-
|
|
20534
|
+
II as skipParseTagNames,
|
|
20552
20535
|
QR as sliceMatrixArray,
|
|
20553
|
-
|
|
20554
|
-
|
|
20555
|
-
|
|
20536
|
+
x1 as sortRules,
|
|
20537
|
+
D1 as sortRulesByDesc,
|
|
20538
|
+
Fs as sortRulesFactory,
|
|
20556
20539
|
Ja as spliceArray,
|
|
20557
20540
|
Yu as splitIntoGrid,
|
|
20558
20541
|
Fa as takeAfter,
|