@rainte/ant 0.0.26 → 0.0.28
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.
|
@@ -453,158 +453,24 @@ function nd() {
|
|
|
453
453
|
var r = {};
|
|
454
454
|
return r.NODE_ENV === "production" ? $i.exports = ed() : $i.exports = td(), $i.exports;
|
|
455
455
|
}
|
|
456
|
-
var Wt = nd(), Dc =
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
className: void 0,
|
|
460
|
-
style: void 0,
|
|
461
|
-
attr: void 0
|
|
462
|
-
}, jl = $r.createContext && /* @__PURE__ */ $r.createContext(Dc), rd = ["attr", "size", "title"];
|
|
463
|
-
function sd(r, e) {
|
|
464
|
-
if (r == null) return {};
|
|
465
|
-
var t = id(r, e), n, s;
|
|
466
|
-
if (Object.getOwnPropertySymbols) {
|
|
467
|
-
var i = Object.getOwnPropertySymbols(r);
|
|
468
|
-
for (s = 0; s < i.length; s++)
|
|
469
|
-
n = i[s], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
470
|
-
}
|
|
471
|
-
return t;
|
|
472
|
-
}
|
|
473
|
-
function id(r, e) {
|
|
474
|
-
if (r == null) return {};
|
|
475
|
-
var t = {};
|
|
476
|
-
for (var n in r)
|
|
477
|
-
if (Object.prototype.hasOwnProperty.call(r, n)) {
|
|
478
|
-
if (e.indexOf(n) >= 0) continue;
|
|
479
|
-
t[n] = r[n];
|
|
480
|
-
}
|
|
481
|
-
return t;
|
|
482
|
-
}
|
|
483
|
-
function ro() {
|
|
484
|
-
return ro = Object.assign ? Object.assign.bind() : function(r) {
|
|
485
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
486
|
-
var t = arguments[e];
|
|
487
|
-
for (var n in t)
|
|
488
|
-
Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
489
|
-
}
|
|
490
|
-
return r;
|
|
491
|
-
}, ro.apply(this, arguments);
|
|
492
|
-
}
|
|
493
|
-
function Il(r, e) {
|
|
494
|
-
var t = Object.keys(r);
|
|
495
|
-
if (Object.getOwnPropertySymbols) {
|
|
496
|
-
var n = Object.getOwnPropertySymbols(r);
|
|
497
|
-
e && (n = n.filter(function(s) {
|
|
498
|
-
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
499
|
-
})), t.push.apply(t, n);
|
|
500
|
-
}
|
|
501
|
-
return t;
|
|
502
|
-
}
|
|
503
|
-
function so(r) {
|
|
504
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
505
|
-
var t = arguments[e] != null ? arguments[e] : {};
|
|
506
|
-
e % 2 ? Il(Object(t), !0).forEach(function(n) {
|
|
507
|
-
od(r, n, t[n]);
|
|
508
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Il(Object(t)).forEach(function(n) {
|
|
509
|
-
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
return r;
|
|
513
|
-
}
|
|
514
|
-
function od(r, e, t) {
|
|
515
|
-
return e = ad(e), e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
516
|
-
}
|
|
517
|
-
function ad(r) {
|
|
518
|
-
var e = ld(r, "string");
|
|
519
|
-
return typeof e == "symbol" ? e : e + "";
|
|
520
|
-
}
|
|
521
|
-
function ld(r, e) {
|
|
522
|
-
if (typeof r != "object" || !r) return r;
|
|
523
|
-
var t = r[Symbol.toPrimitive];
|
|
524
|
-
if (t !== void 0) {
|
|
525
|
-
var n = t.call(r, e);
|
|
526
|
-
if (typeof n != "object") return n;
|
|
527
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
528
|
-
}
|
|
529
|
-
return (e === "string" ? String : Number)(r);
|
|
530
|
-
}
|
|
531
|
-
function Bc(r) {
|
|
532
|
-
return r && r.map((e, t) => /* @__PURE__ */ $r.createElement(e.tag, so({
|
|
533
|
-
key: t
|
|
534
|
-
}, e.attr), Bc(e.child)));
|
|
535
|
-
}
|
|
536
|
-
function ud(r) {
|
|
537
|
-
return (e) => /* @__PURE__ */ $r.createElement(cd, ro({
|
|
538
|
-
attr: so({}, r.attr)
|
|
539
|
-
}, e), Bc(r.child));
|
|
540
|
-
}
|
|
541
|
-
function cd(r) {
|
|
542
|
-
var e = (t) => {
|
|
543
|
-
var {
|
|
544
|
-
attr: n,
|
|
545
|
-
size: s,
|
|
546
|
-
title: i
|
|
547
|
-
} = r, a = sd(r, rd), u = s || t.size || "1em", f;
|
|
548
|
-
return t.className && (f = t.className), r.className && (f = (f ? f + " " : "") + r.className), /* @__PURE__ */ $r.createElement("svg", ro({
|
|
549
|
-
stroke: "currentColor",
|
|
550
|
-
fill: "currentColor",
|
|
551
|
-
strokeWidth: "0"
|
|
552
|
-
}, t.attr, n, a, {
|
|
553
|
-
className: f,
|
|
554
|
-
style: so(so({
|
|
555
|
-
color: r.color || t.color
|
|
556
|
-
}, t.style), r.style),
|
|
557
|
-
height: u,
|
|
558
|
-
width: u,
|
|
559
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
560
|
-
}), i && /* @__PURE__ */ $r.createElement("title", null, i), r.children);
|
|
561
|
-
};
|
|
562
|
-
return jl !== void 0 ? /* @__PURE__ */ $r.createElement(jl.Consumer, null, (t) => e(t)) : e(Dc);
|
|
563
|
-
}
|
|
564
|
-
function $l(r) {
|
|
565
|
-
return ud({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }, child: [] }] })(r);
|
|
566
|
-
}
|
|
567
|
-
const fd = (r) => Array.isArray(r) ? r : r && r.fileList, Ml = {
|
|
568
|
-
maxCount: 1,
|
|
569
|
-
multiple: !0,
|
|
570
|
-
showUploadList: !0
|
|
571
|
-
};
|
|
572
|
-
function hd(r) {
|
|
573
|
-
var u;
|
|
574
|
-
const { value: e, ...t } = r, n = fd(e), s = Array.isArray(n) ? n.length : 0, i = t.maxCount ?? Ml.maxCount ?? 1;
|
|
575
|
-
let a;
|
|
576
|
-
return s < i && ((u = t.listType) != null && u.startsWith("picture-") ? a = /* @__PURE__ */ Wt.jsx($l, {}) : a = /* @__PURE__ */ Wt.jsx(Qh, { icon: /* @__PURE__ */ Wt.jsx($l, {}), children: " 上传" })), /* @__PURE__ */ Wt.jsx(
|
|
577
|
-
Xh,
|
|
578
|
-
{
|
|
579
|
-
...Ml,
|
|
580
|
-
...t,
|
|
581
|
-
fileList: n,
|
|
582
|
-
onChange: (f) => {
|
|
583
|
-
var d;
|
|
584
|
-
return (d = t.onChange) == null ? void 0 : d.call(t, f.fileList);
|
|
585
|
-
},
|
|
586
|
-
children: s < i && a
|
|
587
|
-
}
|
|
588
|
-
);
|
|
589
|
-
}
|
|
590
|
-
var Uc = typeof global == "object" && global && global.Object === Object && global, dd = typeof self == "object" && self && self.Object === Object && self, ar = Uc || dd || Function("return this")(), Dr = ar.Symbol, Fc = Object.prototype, pd = Fc.hasOwnProperty, gd = Fc.toString, ei = Dr ? Dr.toStringTag : void 0;
|
|
591
|
-
function md(r) {
|
|
592
|
-
var e = pd.call(r, ei), t = r[ei];
|
|
456
|
+
var Wt = nd(), Dc = typeof global == "object" && global && global.Object === Object && global, rd = typeof self == "object" && self && self.Object === Object && self, ar = Dc || rd || Function("return this")(), Dr = ar.Symbol, Bc = Object.prototype, sd = Bc.hasOwnProperty, id = Bc.toString, ei = Dr ? Dr.toStringTag : void 0;
|
|
457
|
+
function od(r) {
|
|
458
|
+
var e = sd.call(r, ei), t = r[ei];
|
|
593
459
|
try {
|
|
594
460
|
r[ei] = void 0;
|
|
595
461
|
var n = !0;
|
|
596
462
|
} catch {
|
|
597
463
|
}
|
|
598
|
-
var s =
|
|
464
|
+
var s = id.call(r);
|
|
599
465
|
return n && (e ? r[ei] = t : delete r[ei]), s;
|
|
600
466
|
}
|
|
601
|
-
var
|
|
602
|
-
function
|
|
603
|
-
return
|
|
467
|
+
var ad = Object.prototype, ld = ad.toString;
|
|
468
|
+
function ud(r) {
|
|
469
|
+
return ld.call(r);
|
|
604
470
|
}
|
|
605
|
-
var
|
|
471
|
+
var cd = "[object Null]", fd = "[object Undefined]", jl = Dr ? Dr.toStringTag : void 0;
|
|
606
472
|
function Ks(r) {
|
|
607
|
-
return r == null ? r === void 0 ?
|
|
473
|
+
return r == null ? r === void 0 ? fd : cd : jl && jl in Object(r) ? od(r) : ud(r);
|
|
608
474
|
}
|
|
609
475
|
function mr(r) {
|
|
610
476
|
return r != null && typeof r == "object";
|
|
@@ -614,28 +480,28 @@ function Ur(r) {
|
|
|
614
480
|
var e = typeof r;
|
|
615
481
|
return r != null && (e == "object" || e == "function");
|
|
616
482
|
}
|
|
617
|
-
function
|
|
483
|
+
function Uc(r) {
|
|
618
484
|
return r;
|
|
619
485
|
}
|
|
620
|
-
var
|
|
486
|
+
var hd = "[object AsyncFunction]", dd = "[object Function]", pd = "[object GeneratorFunction]", gd = "[object Proxy]";
|
|
621
487
|
function Za(r) {
|
|
622
488
|
if (!Ur(r))
|
|
623
489
|
return !1;
|
|
624
490
|
var e = Ks(r);
|
|
625
|
-
return e ==
|
|
491
|
+
return e == dd || e == pd || e == hd || e == gd;
|
|
626
492
|
}
|
|
627
|
-
var Vo = ar["__core-js_shared__"],
|
|
493
|
+
var Vo = ar["__core-js_shared__"], Il = function() {
|
|
628
494
|
var r = /[^.]+$/.exec(Vo && Vo.keys && Vo.keys.IE_PROTO || "");
|
|
629
495
|
return r ? "Symbol(src)_1." + r : "";
|
|
630
496
|
}();
|
|
631
|
-
function
|
|
632
|
-
return !!
|
|
497
|
+
function md(r) {
|
|
498
|
+
return !!Il && Il in r;
|
|
633
499
|
}
|
|
634
|
-
var
|
|
500
|
+
var yd = Function.prototype, bd = yd.toString;
|
|
635
501
|
function os(r) {
|
|
636
502
|
if (r != null) {
|
|
637
503
|
try {
|
|
638
|
-
return
|
|
504
|
+
return bd.call(r);
|
|
639
505
|
} catch {
|
|
640
506
|
}
|
|
641
507
|
try {
|
|
@@ -645,36 +511,36 @@ function os(r) {
|
|
|
645
511
|
}
|
|
646
512
|
return "";
|
|
647
513
|
}
|
|
648
|
-
var
|
|
649
|
-
"^" +
|
|
514
|
+
var vd = /[\\^$.*+?()[\]{}|]/g, wd = /^\[object .+?Constructor\]$/, xd = Function.prototype, Ed = Object.prototype, Sd = xd.toString, Od = Ed.hasOwnProperty, Ad = RegExp(
|
|
515
|
+
"^" + Sd.call(Od).replace(vd, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
650
516
|
);
|
|
651
|
-
function
|
|
652
|
-
if (!Ur(r) ||
|
|
517
|
+
function Td(r) {
|
|
518
|
+
if (!Ur(r) || md(r))
|
|
653
519
|
return !1;
|
|
654
|
-
var e = Za(r) ?
|
|
520
|
+
var e = Za(r) ? Ad : wd;
|
|
655
521
|
return e.test(os(r));
|
|
656
522
|
}
|
|
657
|
-
function
|
|
523
|
+
function Nd(r, e) {
|
|
658
524
|
return r == null ? void 0 : r[e];
|
|
659
525
|
}
|
|
660
526
|
function as(r, e) {
|
|
661
|
-
var t =
|
|
662
|
-
return
|
|
527
|
+
var t = Nd(r, e);
|
|
528
|
+
return Td(t) ? t : void 0;
|
|
663
529
|
}
|
|
664
|
-
var ha = as(ar, "WeakMap"),
|
|
530
|
+
var ha = as(ar, "WeakMap"), $l = Object.create, _d = /* @__PURE__ */ function() {
|
|
665
531
|
function r() {
|
|
666
532
|
}
|
|
667
533
|
return function(e) {
|
|
668
534
|
if (!Ur(e))
|
|
669
535
|
return {};
|
|
670
|
-
if (
|
|
671
|
-
return
|
|
536
|
+
if ($l)
|
|
537
|
+
return $l(e);
|
|
672
538
|
r.prototype = e;
|
|
673
539
|
var t = new r();
|
|
674
540
|
return r.prototype = void 0, t;
|
|
675
541
|
};
|
|
676
542
|
}();
|
|
677
|
-
function
|
|
543
|
+
function Cd(r, e, t) {
|
|
678
544
|
switch (t.length) {
|
|
679
545
|
case 0:
|
|
680
546
|
return r.call(e);
|
|
@@ -687,56 +553,56 @@ function Dd(r, e, t) {
|
|
|
687
553
|
}
|
|
688
554
|
return r.apply(e, t);
|
|
689
555
|
}
|
|
690
|
-
function
|
|
556
|
+
function Ld(r, e) {
|
|
691
557
|
var t = -1, n = r.length;
|
|
692
558
|
for (e || (e = Array(n)); ++t < n; )
|
|
693
559
|
e[t] = r[t];
|
|
694
560
|
return e;
|
|
695
561
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
562
|
+
var kd = 800, Rd = 16, Pd = Date.now;
|
|
563
|
+
function qd(r) {
|
|
698
564
|
var e = 0, t = 0;
|
|
699
565
|
return function() {
|
|
700
|
-
var n =
|
|
566
|
+
var n = Pd(), s = Rd - (n - t);
|
|
701
567
|
if (t = n, s > 0) {
|
|
702
|
-
if (++e >=
|
|
568
|
+
if (++e >= kd)
|
|
703
569
|
return arguments[0];
|
|
704
570
|
} else
|
|
705
571
|
e = 0;
|
|
706
572
|
return r.apply(void 0, arguments);
|
|
707
573
|
};
|
|
708
574
|
}
|
|
709
|
-
function
|
|
575
|
+
function jd(r) {
|
|
710
576
|
return function() {
|
|
711
577
|
return r;
|
|
712
578
|
};
|
|
713
579
|
}
|
|
714
|
-
var
|
|
580
|
+
var ro = function() {
|
|
715
581
|
try {
|
|
716
582
|
var r = as(Object, "defineProperty");
|
|
717
583
|
return r({}, "", {}), r;
|
|
718
584
|
} catch {
|
|
719
585
|
}
|
|
720
|
-
}(),
|
|
721
|
-
return
|
|
586
|
+
}(), Id = ro ? function(r, e) {
|
|
587
|
+
return ro(r, "toString", {
|
|
722
588
|
configurable: !0,
|
|
723
589
|
enumerable: !1,
|
|
724
|
-
value:
|
|
590
|
+
value: jd(e),
|
|
725
591
|
writable: !0
|
|
726
592
|
});
|
|
727
|
-
} :
|
|
728
|
-
function
|
|
593
|
+
} : Uc, $d = qd(Id);
|
|
594
|
+
function Md(r, e) {
|
|
729
595
|
for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
|
|
730
596
|
;
|
|
731
597
|
return r;
|
|
732
598
|
}
|
|
733
|
-
var
|
|
734
|
-
function
|
|
599
|
+
var Dd = 9007199254740991, Bd = /^(?:0|[1-9]\d*)$/;
|
|
600
|
+
function Fc(r, e) {
|
|
735
601
|
var t = typeof r;
|
|
736
|
-
return e = e ??
|
|
602
|
+
return e = e ?? Dd, !!e && (t == "number" || t != "symbol" && Bd.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
737
603
|
}
|
|
738
604
|
function Xa(r, e, t) {
|
|
739
|
-
e == "__proto__" &&
|
|
605
|
+
e == "__proto__" && ro ? ro(r, e, {
|
|
740
606
|
configurable: !0,
|
|
741
607
|
enumerable: !0,
|
|
742
608
|
value: t,
|
|
@@ -746,169 +612,169 @@ function Xa(r, e, t) {
|
|
|
746
612
|
function Si(r, e) {
|
|
747
613
|
return r === e || r !== r && e !== e;
|
|
748
614
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
615
|
+
var Ud = Object.prototype, Fd = Ud.hasOwnProperty;
|
|
616
|
+
function Kc(r, e, t) {
|
|
751
617
|
var n = r[e];
|
|
752
|
-
(!(
|
|
618
|
+
(!(Fd.call(r, e) && Si(n, t)) || t === void 0 && !(e in r)) && Xa(r, e, t);
|
|
753
619
|
}
|
|
754
|
-
function
|
|
620
|
+
function Kd(r, e, t, n) {
|
|
755
621
|
var s = !t;
|
|
756
622
|
t || (t = {});
|
|
757
623
|
for (var i = -1, a = e.length; ++i < a; ) {
|
|
758
624
|
var u = e[i], f = void 0;
|
|
759
|
-
f === void 0 && (f = r[u]), s ? Xa(t, u, f) :
|
|
625
|
+
f === void 0 && (f = r[u]), s ? Xa(t, u, f) : Kc(t, u, f);
|
|
760
626
|
}
|
|
761
627
|
return t;
|
|
762
628
|
}
|
|
763
|
-
var
|
|
764
|
-
function
|
|
765
|
-
return e =
|
|
766
|
-
for (var n = arguments, s = -1, i =
|
|
629
|
+
var Ml = Math.max;
|
|
630
|
+
function Hd(r, e, t) {
|
|
631
|
+
return e = Ml(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
632
|
+
for (var n = arguments, s = -1, i = Ml(n.length - e, 0), a = Array(i); ++s < i; )
|
|
767
633
|
a[s] = n[e + s];
|
|
768
634
|
s = -1;
|
|
769
635
|
for (var u = Array(e + 1); ++s < e; )
|
|
770
636
|
u[s] = n[s];
|
|
771
|
-
return u[e] = t(a),
|
|
637
|
+
return u[e] = t(a), Cd(r, this, u);
|
|
772
638
|
};
|
|
773
639
|
}
|
|
774
|
-
function
|
|
775
|
-
return
|
|
640
|
+
function zd(r, e) {
|
|
641
|
+
return $d(Hd(r, e, Uc), r + "");
|
|
776
642
|
}
|
|
777
|
-
var
|
|
778
|
-
function
|
|
779
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
643
|
+
var Vd = 9007199254740991;
|
|
644
|
+
function Hc(r) {
|
|
645
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Vd;
|
|
780
646
|
}
|
|
781
647
|
function bo(r) {
|
|
782
|
-
return r != null &&
|
|
648
|
+
return r != null && Hc(r.length) && !Za(r);
|
|
783
649
|
}
|
|
784
|
-
function
|
|
650
|
+
function Wd(r, e, t) {
|
|
785
651
|
if (!Ur(t))
|
|
786
652
|
return !1;
|
|
787
653
|
var n = typeof e;
|
|
788
|
-
return (n == "number" ? bo(t) &&
|
|
654
|
+
return (n == "number" ? bo(t) && Fc(e, t.length) : n == "string" && e in t) ? Si(t[e], r) : !1;
|
|
789
655
|
}
|
|
790
|
-
function
|
|
791
|
-
return
|
|
656
|
+
function Yd(r) {
|
|
657
|
+
return zd(function(e, t) {
|
|
792
658
|
var n = -1, s = t.length, i = s > 1 ? t[s - 1] : void 0, a = s > 2 ? t[2] : void 0;
|
|
793
|
-
for (i = r.length > 3 && typeof i == "function" ? (s--, i) : void 0, a &&
|
|
659
|
+
for (i = r.length > 3 && typeof i == "function" ? (s--, i) : void 0, a && Wd(t[0], t[1], a) && (i = s < 3 ? void 0 : i, s = 1), e = Object(e); ++n < s; ) {
|
|
794
660
|
var u = t[n];
|
|
795
661
|
u && r(e, u, n, i);
|
|
796
662
|
}
|
|
797
663
|
return e;
|
|
798
664
|
});
|
|
799
665
|
}
|
|
800
|
-
var
|
|
666
|
+
var Gd = Object.prototype;
|
|
801
667
|
function Qa(r) {
|
|
802
|
-
var e = r && r.constructor, t = typeof e == "function" && e.prototype ||
|
|
668
|
+
var e = r && r.constructor, t = typeof e == "function" && e.prototype || Gd;
|
|
803
669
|
return r === t;
|
|
804
670
|
}
|
|
805
|
-
function
|
|
671
|
+
function Jd(r, e) {
|
|
806
672
|
for (var t = -1, n = Array(r); ++t < r; )
|
|
807
673
|
n[t] = e(t);
|
|
808
674
|
return n;
|
|
809
675
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
812
|
-
return mr(r) && Ks(r) ==
|
|
676
|
+
var Zd = "[object Arguments]";
|
|
677
|
+
function Dl(r) {
|
|
678
|
+
return mr(r) && Ks(r) == Zd;
|
|
813
679
|
}
|
|
814
|
-
var
|
|
680
|
+
var zc = Object.prototype, Xd = zc.hasOwnProperty, Qd = zc.propertyIsEnumerable, da = Dl(/* @__PURE__ */ function() {
|
|
815
681
|
return arguments;
|
|
816
|
-
}()) ?
|
|
817
|
-
return mr(r) &&
|
|
682
|
+
}()) ? Dl : function(r) {
|
|
683
|
+
return mr(r) && Xd.call(r, "callee") && !Qd.call(r, "callee");
|
|
818
684
|
};
|
|
819
|
-
function
|
|
685
|
+
function ep() {
|
|
820
686
|
return !1;
|
|
821
687
|
}
|
|
822
|
-
var
|
|
823
|
-
ut[
|
|
824
|
-
ut[
|
|
825
|
-
function
|
|
826
|
-
return mr(r) &&
|
|
688
|
+
var Vc = typeof exports == "object" && exports && !exports.nodeType && exports, Bl = Vc && typeof module == "object" && module && !module.nodeType && module, tp = Bl && Bl.exports === Vc, Ul = tp ? ar.Buffer : void 0, np = Ul ? Ul.isBuffer : void 0, di = np || ep, rp = "[object Arguments]", sp = "[object Array]", ip = "[object Boolean]", op = "[object Date]", ap = "[object Error]", lp = "[object Function]", up = "[object Map]", cp = "[object Number]", fp = "[object Object]", hp = "[object RegExp]", dp = "[object Set]", pp = "[object String]", gp = "[object WeakMap]", mp = "[object ArrayBuffer]", yp = "[object DataView]", bp = "[object Float32Array]", vp = "[object Float64Array]", wp = "[object Int8Array]", xp = "[object Int16Array]", Ep = "[object Int32Array]", Sp = "[object Uint8Array]", Op = "[object Uint8ClampedArray]", Ap = "[object Uint16Array]", Tp = "[object Uint32Array]", ut = {};
|
|
689
|
+
ut[bp] = ut[vp] = ut[wp] = ut[xp] = ut[Ep] = ut[Sp] = ut[Op] = ut[Ap] = ut[Tp] = !0;
|
|
690
|
+
ut[rp] = ut[sp] = ut[mp] = ut[ip] = ut[yp] = ut[op] = ut[ap] = ut[lp] = ut[up] = ut[cp] = ut[fp] = ut[hp] = ut[dp] = ut[pp] = ut[gp] = !1;
|
|
691
|
+
function Np(r) {
|
|
692
|
+
return mr(r) && Hc(r.length) && !!ut[Ks(r)];
|
|
827
693
|
}
|
|
828
694
|
function el(r) {
|
|
829
695
|
return function(e) {
|
|
830
696
|
return r(e);
|
|
831
697
|
};
|
|
832
698
|
}
|
|
833
|
-
var
|
|
699
|
+
var Wc = typeof exports == "object" && exports && !exports.nodeType && exports, li = Wc && typeof module == "object" && module && !module.nodeType && module, _p = li && li.exports === Wc, Wo = _p && Dc.process, $s = function() {
|
|
834
700
|
try {
|
|
835
701
|
var r = li && li.require && li.require("util").types;
|
|
836
702
|
return r || Wo && Wo.binding && Wo.binding("util");
|
|
837
703
|
} catch {
|
|
838
704
|
}
|
|
839
|
-
}(),
|
|
840
|
-
function
|
|
841
|
-
var t = ts(r), n = !t && da(r), s = !t && !n && di(r), i = !t && !n && !s && tl(r), a = t || n || s || i, u = a ?
|
|
705
|
+
}(), Fl = $s && $s.isTypedArray, tl = Fl ? el(Fl) : Np, Cp = Object.prototype, Lp = Cp.hasOwnProperty;
|
|
706
|
+
function Yc(r, e) {
|
|
707
|
+
var t = ts(r), n = !t && da(r), s = !t && !n && di(r), i = !t && !n && !s && tl(r), a = t || n || s || i, u = a ? Jd(r.length, String) : [], f = u.length;
|
|
842
708
|
for (var d in r)
|
|
843
|
-
(e ||
|
|
709
|
+
(e || Lp.call(r, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
844
710
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
845
711
|
s && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
846
712
|
i && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
847
|
-
|
|
713
|
+
Fc(d, f))) && u.push(d);
|
|
848
714
|
return u;
|
|
849
715
|
}
|
|
850
|
-
function
|
|
716
|
+
function Gc(r, e) {
|
|
851
717
|
return function(t) {
|
|
852
718
|
return r(e(t));
|
|
853
719
|
};
|
|
854
720
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
721
|
+
var kp = Gc(Object.keys, Object), Rp = Object.prototype, Pp = Rp.hasOwnProperty;
|
|
722
|
+
function qp(r) {
|
|
857
723
|
if (!Qa(r))
|
|
858
|
-
return
|
|
724
|
+
return kp(r);
|
|
859
725
|
var e = [];
|
|
860
726
|
for (var t in Object(r))
|
|
861
|
-
|
|
727
|
+
Pp.call(r, t) && t != "constructor" && e.push(t);
|
|
862
728
|
return e;
|
|
863
729
|
}
|
|
864
|
-
function
|
|
865
|
-
return bo(r) ?
|
|
730
|
+
function jp(r) {
|
|
731
|
+
return bo(r) ? Yc(r) : qp(r);
|
|
866
732
|
}
|
|
867
|
-
function
|
|
733
|
+
function Ip(r) {
|
|
868
734
|
var e = [];
|
|
869
735
|
if (r != null)
|
|
870
736
|
for (var t in Object(r))
|
|
871
737
|
e.push(t);
|
|
872
738
|
return e;
|
|
873
739
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
740
|
+
var $p = Object.prototype, Mp = $p.hasOwnProperty;
|
|
741
|
+
function Dp(r) {
|
|
876
742
|
if (!Ur(r))
|
|
877
|
-
return
|
|
743
|
+
return Ip(r);
|
|
878
744
|
var e = Qa(r), t = [];
|
|
879
745
|
for (var n in r)
|
|
880
|
-
n == "constructor" && (e || !
|
|
746
|
+
n == "constructor" && (e || !Mp.call(r, n)) || t.push(n);
|
|
881
747
|
return t;
|
|
882
748
|
}
|
|
883
|
-
function
|
|
884
|
-
return bo(r) ?
|
|
749
|
+
function Jc(r) {
|
|
750
|
+
return bo(r) ? Yc(r, !0) : Dp(r);
|
|
885
751
|
}
|
|
886
752
|
var pi = as(Object, "create");
|
|
887
|
-
function
|
|
753
|
+
function Bp() {
|
|
888
754
|
this.__data__ = pi ? pi(null) : {}, this.size = 0;
|
|
889
755
|
}
|
|
890
|
-
function
|
|
756
|
+
function Up(r) {
|
|
891
757
|
var e = this.has(r) && delete this.__data__[r];
|
|
892
758
|
return this.size -= e ? 1 : 0, e;
|
|
893
759
|
}
|
|
894
|
-
var
|
|
895
|
-
function
|
|
760
|
+
var Fp = "__lodash_hash_undefined__", Kp = Object.prototype, Hp = Kp.hasOwnProperty;
|
|
761
|
+
function zp(r) {
|
|
896
762
|
var e = this.__data__;
|
|
897
763
|
if (pi) {
|
|
898
764
|
var t = e[r];
|
|
899
|
-
return t ===
|
|
765
|
+
return t === Fp ? void 0 : t;
|
|
900
766
|
}
|
|
901
|
-
return
|
|
767
|
+
return Hp.call(e, r) ? e[r] : void 0;
|
|
902
768
|
}
|
|
903
|
-
var
|
|
904
|
-
function
|
|
769
|
+
var Vp = Object.prototype, Wp = Vp.hasOwnProperty;
|
|
770
|
+
function Yp(r) {
|
|
905
771
|
var e = this.__data__;
|
|
906
|
-
return pi ? e[r] !== void 0 :
|
|
772
|
+
return pi ? e[r] !== void 0 : Wp.call(e, r);
|
|
907
773
|
}
|
|
908
|
-
var
|
|
909
|
-
function
|
|
774
|
+
var Gp = "__lodash_hash_undefined__";
|
|
775
|
+
function Jp(r, e) {
|
|
910
776
|
var t = this.__data__;
|
|
911
|
-
return this.size += this.has(r) ? 0 : 1, t[r] = pi && e === void 0 ?
|
|
777
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = pi && e === void 0 ? Gp : e, this;
|
|
912
778
|
}
|
|
913
779
|
function ns(r) {
|
|
914
780
|
var e = -1, t = r == null ? 0 : r.length;
|
|
@@ -917,12 +783,12 @@ function ns(r) {
|
|
|
917
783
|
this.set(n[0], n[1]);
|
|
918
784
|
}
|
|
919
785
|
}
|
|
920
|
-
ns.prototype.clear =
|
|
921
|
-
ns.prototype.delete =
|
|
922
|
-
ns.prototype.get =
|
|
923
|
-
ns.prototype.has =
|
|
924
|
-
ns.prototype.set =
|
|
925
|
-
function
|
|
786
|
+
ns.prototype.clear = Bp;
|
|
787
|
+
ns.prototype.delete = Up;
|
|
788
|
+
ns.prototype.get = zp;
|
|
789
|
+
ns.prototype.has = Yp;
|
|
790
|
+
ns.prototype.set = Jp;
|
|
791
|
+
function Zp() {
|
|
926
792
|
this.__data__ = [], this.size = 0;
|
|
927
793
|
}
|
|
928
794
|
function vo(r, e) {
|
|
@@ -931,22 +797,22 @@ function vo(r, e) {
|
|
|
931
797
|
return t;
|
|
932
798
|
return -1;
|
|
933
799
|
}
|
|
934
|
-
var
|
|
935
|
-
function
|
|
800
|
+
var Xp = Array.prototype, Qp = Xp.splice;
|
|
801
|
+
function eg(r) {
|
|
936
802
|
var e = this.__data__, t = vo(e, r);
|
|
937
803
|
if (t < 0)
|
|
938
804
|
return !1;
|
|
939
805
|
var n = e.length - 1;
|
|
940
|
-
return t == n ? e.pop() :
|
|
806
|
+
return t == n ? e.pop() : Qp.call(e, t, 1), --this.size, !0;
|
|
941
807
|
}
|
|
942
|
-
function
|
|
808
|
+
function tg(r) {
|
|
943
809
|
var e = this.__data__, t = vo(e, r);
|
|
944
810
|
return t < 0 ? void 0 : e[t][1];
|
|
945
811
|
}
|
|
946
|
-
function
|
|
812
|
+
function ng(r) {
|
|
947
813
|
return vo(this.__data__, r) > -1;
|
|
948
814
|
}
|
|
949
|
-
function
|
|
815
|
+
function rg(r, e) {
|
|
950
816
|
var t = this.__data__, n = vo(t, r);
|
|
951
817
|
return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
|
|
952
818
|
}
|
|
@@ -957,38 +823,38 @@ function vr(r) {
|
|
|
957
823
|
this.set(n[0], n[1]);
|
|
958
824
|
}
|
|
959
825
|
}
|
|
960
|
-
vr.prototype.clear =
|
|
961
|
-
vr.prototype.delete =
|
|
962
|
-
vr.prototype.get =
|
|
963
|
-
vr.prototype.has =
|
|
964
|
-
vr.prototype.set =
|
|
826
|
+
vr.prototype.clear = Zp;
|
|
827
|
+
vr.prototype.delete = eg;
|
|
828
|
+
vr.prototype.get = tg;
|
|
829
|
+
vr.prototype.has = ng;
|
|
830
|
+
vr.prototype.set = rg;
|
|
965
831
|
var gi = as(ar, "Map");
|
|
966
|
-
function
|
|
832
|
+
function sg() {
|
|
967
833
|
this.size = 0, this.__data__ = {
|
|
968
834
|
hash: new ns(),
|
|
969
835
|
map: new (gi || vr)(),
|
|
970
836
|
string: new ns()
|
|
971
837
|
};
|
|
972
838
|
}
|
|
973
|
-
function
|
|
839
|
+
function ig(r) {
|
|
974
840
|
var e = typeof r;
|
|
975
841
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
976
842
|
}
|
|
977
843
|
function wo(r, e) {
|
|
978
844
|
var t = r.__data__;
|
|
979
|
-
return
|
|
845
|
+
return ig(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
980
846
|
}
|
|
981
|
-
function
|
|
847
|
+
function og(r) {
|
|
982
848
|
var e = wo(this, r).delete(r);
|
|
983
849
|
return this.size -= e ? 1 : 0, e;
|
|
984
850
|
}
|
|
985
|
-
function
|
|
851
|
+
function ag(r) {
|
|
986
852
|
return wo(this, r).get(r);
|
|
987
853
|
}
|
|
988
|
-
function
|
|
854
|
+
function lg(r) {
|
|
989
855
|
return wo(this, r).has(r);
|
|
990
856
|
}
|
|
991
|
-
function
|
|
857
|
+
function ug(r, e) {
|
|
992
858
|
var t = wo(this, r), n = t.size;
|
|
993
859
|
return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
|
|
994
860
|
}
|
|
@@ -999,45 +865,45 @@ function ls(r) {
|
|
|
999
865
|
this.set(n[0], n[1]);
|
|
1000
866
|
}
|
|
1001
867
|
}
|
|
1002
|
-
ls.prototype.clear =
|
|
1003
|
-
ls.prototype.delete =
|
|
1004
|
-
ls.prototype.get =
|
|
1005
|
-
ls.prototype.has =
|
|
1006
|
-
ls.prototype.set =
|
|
1007
|
-
function
|
|
868
|
+
ls.prototype.clear = sg;
|
|
869
|
+
ls.prototype.delete = og;
|
|
870
|
+
ls.prototype.get = ag;
|
|
871
|
+
ls.prototype.has = lg;
|
|
872
|
+
ls.prototype.set = ug;
|
|
873
|
+
function cg(r, e) {
|
|
1008
874
|
for (var t = -1, n = e.length, s = r.length; ++t < n; )
|
|
1009
875
|
r[s + t] = e[t];
|
|
1010
876
|
return r;
|
|
1011
877
|
}
|
|
1012
|
-
var
|
|
1013
|
-
function
|
|
1014
|
-
if (!mr(r) || Ks(r) !=
|
|
878
|
+
var Zc = Gc(Object.getPrototypeOf, Object), fg = "[object Object]", hg = Function.prototype, dg = Object.prototype, Xc = hg.toString, pg = dg.hasOwnProperty, gg = Xc.call(Object);
|
|
879
|
+
function mg(r) {
|
|
880
|
+
if (!mr(r) || Ks(r) != fg)
|
|
1015
881
|
return !1;
|
|
1016
|
-
var e =
|
|
882
|
+
var e = Zc(r);
|
|
1017
883
|
if (e === null)
|
|
1018
884
|
return !0;
|
|
1019
|
-
var t =
|
|
1020
|
-
return typeof t == "function" && t instanceof t &&
|
|
885
|
+
var t = pg.call(e, "constructor") && e.constructor;
|
|
886
|
+
return typeof t == "function" && t instanceof t && Xc.call(t) == gg;
|
|
1021
887
|
}
|
|
1022
|
-
function
|
|
888
|
+
function yg() {
|
|
1023
889
|
this.__data__ = new vr(), this.size = 0;
|
|
1024
890
|
}
|
|
1025
|
-
function
|
|
891
|
+
function bg(r) {
|
|
1026
892
|
var e = this.__data__, t = e.delete(r);
|
|
1027
893
|
return this.size = e.size, t;
|
|
1028
894
|
}
|
|
1029
|
-
function
|
|
895
|
+
function vg(r) {
|
|
1030
896
|
return this.__data__.get(r);
|
|
1031
897
|
}
|
|
1032
|
-
function
|
|
898
|
+
function wg(r) {
|
|
1033
899
|
return this.__data__.has(r);
|
|
1034
900
|
}
|
|
1035
|
-
var
|
|
1036
|
-
function
|
|
901
|
+
var xg = 200;
|
|
902
|
+
function Eg(r, e) {
|
|
1037
903
|
var t = this.__data__;
|
|
1038
904
|
if (t instanceof vr) {
|
|
1039
905
|
var n = t.__data__;
|
|
1040
|
-
if (!gi || n.length <
|
|
906
|
+
if (!gi || n.length < xg - 1)
|
|
1041
907
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
1042
908
|
t = this.__data__ = new ls(n);
|
|
1043
909
|
}
|
|
@@ -1047,204 +913,204 @@ function rr(r) {
|
|
|
1047
913
|
var e = this.__data__ = new vr(r);
|
|
1048
914
|
this.size = e.size;
|
|
1049
915
|
}
|
|
1050
|
-
rr.prototype.clear =
|
|
1051
|
-
rr.prototype.delete =
|
|
1052
|
-
rr.prototype.get =
|
|
1053
|
-
rr.prototype.has =
|
|
1054
|
-
rr.prototype.set =
|
|
1055
|
-
var
|
|
1056
|
-
function
|
|
916
|
+
rr.prototype.clear = yg;
|
|
917
|
+
rr.prototype.delete = bg;
|
|
918
|
+
rr.prototype.get = vg;
|
|
919
|
+
rr.prototype.has = wg;
|
|
920
|
+
rr.prototype.set = Eg;
|
|
921
|
+
var Qc = typeof exports == "object" && exports && !exports.nodeType && exports, Kl = Qc && typeof module == "object" && module && !module.nodeType && module, Sg = Kl && Kl.exports === Qc, Hl = Sg ? ar.Buffer : void 0, zl = Hl ? Hl.allocUnsafe : void 0;
|
|
922
|
+
function ef(r, e) {
|
|
1057
923
|
if (e)
|
|
1058
924
|
return r.slice();
|
|
1059
|
-
var t = r.length, n =
|
|
925
|
+
var t = r.length, n = zl ? zl(t) : new r.constructor(t);
|
|
1060
926
|
return r.copy(n), n;
|
|
1061
927
|
}
|
|
1062
|
-
function
|
|
928
|
+
function Og(r, e) {
|
|
1063
929
|
for (var t = -1, n = r == null ? 0 : r.length, s = 0, i = []; ++t < n; ) {
|
|
1064
930
|
var a = r[t];
|
|
1065
931
|
e(a, t, r) && (i[s++] = a);
|
|
1066
932
|
}
|
|
1067
933
|
return i;
|
|
1068
934
|
}
|
|
1069
|
-
function
|
|
935
|
+
function Ag() {
|
|
1070
936
|
return [];
|
|
1071
937
|
}
|
|
1072
|
-
var
|
|
1073
|
-
return r == null ? [] : (r = Object(r),
|
|
1074
|
-
return
|
|
938
|
+
var Tg = Object.prototype, Ng = Tg.propertyIsEnumerable, Vl = Object.getOwnPropertySymbols, _g = Vl ? function(r) {
|
|
939
|
+
return r == null ? [] : (r = Object(r), Og(Vl(r), function(e) {
|
|
940
|
+
return Ng.call(r, e);
|
|
1075
941
|
}));
|
|
1076
|
-
} :
|
|
1077
|
-
function
|
|
942
|
+
} : Ag;
|
|
943
|
+
function Cg(r, e, t) {
|
|
1078
944
|
var n = e(r);
|
|
1079
|
-
return ts(r) ? n :
|
|
945
|
+
return ts(r) ? n : cg(n, t(r));
|
|
1080
946
|
}
|
|
1081
947
|
function pa(r) {
|
|
1082
|
-
return
|
|
948
|
+
return Cg(r, jp, _g);
|
|
1083
949
|
}
|
|
1084
|
-
var ga = as(ar, "DataView"), ma = as(ar, "Promise"), ya = as(ar, "Set"),
|
|
1085
|
-
(ga && jn(new ga(new ArrayBuffer(1))) !=
|
|
1086
|
-
var e = Ks(r), t = e ==
|
|
950
|
+
var ga = as(ar, "DataView"), ma = as(ar, "Promise"), ya = as(ar, "Set"), Wl = "[object Map]", Lg = "[object Object]", Yl = "[object Promise]", Gl = "[object Set]", Jl = "[object WeakMap]", Zl = "[object DataView]", kg = os(ga), Rg = os(gi), Pg = os(ma), qg = os(ya), jg = os(ha), jn = Ks;
|
|
951
|
+
(ga && jn(new ga(new ArrayBuffer(1))) != Zl || gi && jn(new gi()) != Wl || ma && jn(ma.resolve()) != Yl || ya && jn(new ya()) != Gl || ha && jn(new ha()) != Jl) && (jn = function(r) {
|
|
952
|
+
var e = Ks(r), t = e == Lg ? r.constructor : void 0, n = t ? os(t) : "";
|
|
1087
953
|
if (n)
|
|
1088
954
|
switch (n) {
|
|
1089
|
-
case
|
|
1090
|
-
return tu;
|
|
1091
|
-
case Fg:
|
|
955
|
+
case kg:
|
|
1092
956
|
return Zl;
|
|
1093
|
-
case
|
|
1094
|
-
return
|
|
1095
|
-
case
|
|
1096
|
-
return
|
|
1097
|
-
case
|
|
1098
|
-
return
|
|
957
|
+
case Rg:
|
|
958
|
+
return Wl;
|
|
959
|
+
case Pg:
|
|
960
|
+
return Yl;
|
|
961
|
+
case qg:
|
|
962
|
+
return Gl;
|
|
963
|
+
case jg:
|
|
964
|
+
return Jl;
|
|
1099
965
|
}
|
|
1100
966
|
return e;
|
|
1101
967
|
});
|
|
1102
|
-
var
|
|
1103
|
-
function
|
|
968
|
+
var Ig = Object.prototype, $g = Ig.hasOwnProperty;
|
|
969
|
+
function Mg(r) {
|
|
1104
970
|
var e = r.length, t = new r.constructor(e);
|
|
1105
|
-
return e && typeof r[0] == "string" &&
|
|
971
|
+
return e && typeof r[0] == "string" && $g.call(r, "index") && (t.index = r.index, t.input = r.input), t;
|
|
1106
972
|
}
|
|
1107
|
-
var
|
|
973
|
+
var so = ar.Uint8Array;
|
|
1108
974
|
function nl(r) {
|
|
1109
975
|
var e = new r.constructor(r.byteLength);
|
|
1110
|
-
return new
|
|
976
|
+
return new so(e).set(new so(r)), e;
|
|
1111
977
|
}
|
|
1112
|
-
function
|
|
978
|
+
function Dg(r, e) {
|
|
1113
979
|
var t = nl(r.buffer);
|
|
1114
980
|
return new r.constructor(t, r.byteOffset, r.byteLength);
|
|
1115
981
|
}
|
|
1116
|
-
var
|
|
1117
|
-
function
|
|
1118
|
-
var e = new r.constructor(r.source,
|
|
982
|
+
var Bg = /\w*$/;
|
|
983
|
+
function Ug(r) {
|
|
984
|
+
var e = new r.constructor(r.source, Bg.exec(r));
|
|
1119
985
|
return e.lastIndex = r.lastIndex, e;
|
|
1120
986
|
}
|
|
1121
|
-
var
|
|
1122
|
-
function
|
|
1123
|
-
return
|
|
987
|
+
var Xl = Dr ? Dr.prototype : void 0, Ql = Xl ? Xl.valueOf : void 0;
|
|
988
|
+
function Fg(r) {
|
|
989
|
+
return Ql ? Object(Ql.call(r)) : {};
|
|
1124
990
|
}
|
|
1125
|
-
function
|
|
991
|
+
function tf(r, e) {
|
|
1126
992
|
var t = e ? nl(r.buffer) : r.buffer;
|
|
1127
993
|
return new r.constructor(t, r.byteOffset, r.length);
|
|
1128
994
|
}
|
|
1129
|
-
var
|
|
1130
|
-
function
|
|
995
|
+
var Kg = "[object Boolean]", Hg = "[object Date]", zg = "[object Map]", Vg = "[object Number]", Wg = "[object RegExp]", Yg = "[object Set]", Gg = "[object String]", Jg = "[object Symbol]", Zg = "[object ArrayBuffer]", Xg = "[object DataView]", Qg = "[object Float32Array]", em = "[object Float64Array]", tm = "[object Int8Array]", nm = "[object Int16Array]", rm = "[object Int32Array]", sm = "[object Uint8Array]", im = "[object Uint8ClampedArray]", om = "[object Uint16Array]", am = "[object Uint32Array]";
|
|
996
|
+
function lm(r, e, t) {
|
|
1131
997
|
var n = r.constructor;
|
|
1132
998
|
switch (e) {
|
|
1133
|
-
case
|
|
999
|
+
case Zg:
|
|
1134
1000
|
return nl(r);
|
|
1001
|
+
case Kg:
|
|
1002
|
+
case Hg:
|
|
1003
|
+
return new n(+r);
|
|
1004
|
+
case Xg:
|
|
1005
|
+
return Dg(r);
|
|
1135
1006
|
case Qg:
|
|
1136
1007
|
case em:
|
|
1137
|
-
return new n(+r);
|
|
1138
|
-
case lm:
|
|
1139
|
-
return Gg(r);
|
|
1140
|
-
case um:
|
|
1141
|
-
case cm:
|
|
1142
|
-
case fm:
|
|
1143
|
-
case hm:
|
|
1144
|
-
case dm:
|
|
1145
|
-
case pm:
|
|
1146
|
-
case gm:
|
|
1147
|
-
case mm:
|
|
1148
|
-
case ym:
|
|
1149
|
-
return rf(r, t);
|
|
1150
1008
|
case tm:
|
|
1151
|
-
return new n();
|
|
1152
1009
|
case nm:
|
|
1153
|
-
case im:
|
|
1154
|
-
return new n(r);
|
|
1155
1010
|
case rm:
|
|
1156
|
-
return Zg(r);
|
|
1157
1011
|
case sm:
|
|
1158
|
-
|
|
1012
|
+
case im:
|
|
1159
1013
|
case om:
|
|
1160
|
-
|
|
1014
|
+
case am:
|
|
1015
|
+
return tf(r, t);
|
|
1016
|
+
case zg:
|
|
1017
|
+
return new n();
|
|
1018
|
+
case Vg:
|
|
1019
|
+
case Gg:
|
|
1020
|
+
return new n(r);
|
|
1021
|
+
case Wg:
|
|
1022
|
+
return Ug(r);
|
|
1023
|
+
case Yg:
|
|
1024
|
+
return new n();
|
|
1025
|
+
case Jg:
|
|
1026
|
+
return Fg(r);
|
|
1161
1027
|
}
|
|
1162
1028
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return typeof r.constructor == "function" && !Qa(r) ?
|
|
1029
|
+
function nf(r) {
|
|
1030
|
+
return typeof r.constructor == "function" && !Qa(r) ? _d(Zc(r)) : {};
|
|
1165
1031
|
}
|
|
1166
|
-
var
|
|
1167
|
-
function
|
|
1168
|
-
return mr(r) && jn(r) ==
|
|
1032
|
+
var um = "[object Map]";
|
|
1033
|
+
function cm(r) {
|
|
1034
|
+
return mr(r) && jn(r) == um;
|
|
1169
1035
|
}
|
|
1170
|
-
var
|
|
1171
|
-
function
|
|
1172
|
-
return mr(r) && jn(r) ==
|
|
1036
|
+
var eu = $s && $s.isMap, fm = eu ? el(eu) : cm, hm = "[object Set]";
|
|
1037
|
+
function dm(r) {
|
|
1038
|
+
return mr(r) && jn(r) == hm;
|
|
1173
1039
|
}
|
|
1174
|
-
var
|
|
1175
|
-
ot[
|
|
1176
|
-
ot[
|
|
1040
|
+
var tu = $s && $s.isSet, pm = tu ? el(tu) : dm, gm = 1, rf = "[object Arguments]", mm = "[object Array]", ym = "[object Boolean]", bm = "[object Date]", vm = "[object Error]", sf = "[object Function]", wm = "[object GeneratorFunction]", xm = "[object Map]", Em = "[object Number]", of = "[object Object]", Sm = "[object RegExp]", Om = "[object Set]", Am = "[object String]", Tm = "[object Symbol]", Nm = "[object WeakMap]", _m = "[object ArrayBuffer]", Cm = "[object DataView]", Lm = "[object Float32Array]", km = "[object Float64Array]", Rm = "[object Int8Array]", Pm = "[object Int16Array]", qm = "[object Int32Array]", jm = "[object Uint8Array]", Im = "[object Uint8ClampedArray]", $m = "[object Uint16Array]", Mm = "[object Uint32Array]", ot = {};
|
|
1041
|
+
ot[rf] = ot[mm] = ot[_m] = ot[Cm] = ot[ym] = ot[bm] = ot[Lm] = ot[km] = ot[Rm] = ot[Pm] = ot[qm] = ot[xm] = ot[Em] = ot[of] = ot[Sm] = ot[Om] = ot[Am] = ot[Tm] = ot[jm] = ot[Im] = ot[$m] = ot[Mm] = !0;
|
|
1042
|
+
ot[vm] = ot[sf] = ot[Nm] = !1;
|
|
1177
1043
|
function Zi(r, e, t, n, s, i) {
|
|
1178
|
-
var a, u = e &
|
|
1044
|
+
var a, u = e & gm;
|
|
1179
1045
|
if (a !== void 0)
|
|
1180
1046
|
return a;
|
|
1181
1047
|
if (!Ur(r))
|
|
1182
1048
|
return r;
|
|
1183
1049
|
var f = ts(r);
|
|
1184
1050
|
if (f)
|
|
1185
|
-
a =
|
|
1051
|
+
a = Mg(r);
|
|
1186
1052
|
else {
|
|
1187
|
-
var d = jn(r), m = d ==
|
|
1053
|
+
var d = jn(r), m = d == sf || d == wm;
|
|
1188
1054
|
if (di(r))
|
|
1189
|
-
return
|
|
1190
|
-
if (d ==
|
|
1191
|
-
a = m ? {} :
|
|
1055
|
+
return ef(r, u);
|
|
1056
|
+
if (d == of || d == rf || m && !s)
|
|
1057
|
+
a = m ? {} : nf(r);
|
|
1192
1058
|
else {
|
|
1193
1059
|
if (!ot[d])
|
|
1194
1060
|
return s ? r : {};
|
|
1195
|
-
a =
|
|
1061
|
+
a = lm(r, d, u);
|
|
1196
1062
|
}
|
|
1197
1063
|
}
|
|
1198
1064
|
i || (i = new rr());
|
|
1199
1065
|
var w = i.get(r);
|
|
1200
1066
|
if (w)
|
|
1201
1067
|
return w;
|
|
1202
|
-
i.set(r, a),
|
|
1068
|
+
i.set(r, a), pm(r) ? r.forEach(function(A) {
|
|
1203
1069
|
a.add(Zi(A, e, t, A, r, i));
|
|
1204
|
-
}) :
|
|
1070
|
+
}) : fm(r) && r.forEach(function(A, E) {
|
|
1205
1071
|
a.set(E, Zi(A, e, t, E, r, i));
|
|
1206
1072
|
});
|
|
1207
1073
|
var y = pa, x = f ? void 0 : y(r);
|
|
1208
|
-
return
|
|
1209
|
-
x && (E = A, A = r[E]),
|
|
1074
|
+
return Md(x || r, function(A, E) {
|
|
1075
|
+
x && (E = A, A = r[E]), Kc(a, E, Zi(A, e, t, E, r, i));
|
|
1210
1076
|
}), a;
|
|
1211
1077
|
}
|
|
1212
|
-
var
|
|
1078
|
+
var Dm = 1, Bm = 4;
|
|
1213
1079
|
function qs(r) {
|
|
1214
|
-
return Zi(r,
|
|
1080
|
+
return Zi(r, Dm | Bm);
|
|
1215
1081
|
}
|
|
1216
|
-
var
|
|
1217
|
-
function
|
|
1218
|
-
return this.__data__.set(r,
|
|
1082
|
+
var Um = "__lodash_hash_undefined__";
|
|
1083
|
+
function Fm(r) {
|
|
1084
|
+
return this.__data__.set(r, Um), this;
|
|
1219
1085
|
}
|
|
1220
|
-
function
|
|
1086
|
+
function Km(r) {
|
|
1221
1087
|
return this.__data__.has(r);
|
|
1222
1088
|
}
|
|
1223
|
-
function
|
|
1089
|
+
function io(r) {
|
|
1224
1090
|
var e = -1, t = r == null ? 0 : r.length;
|
|
1225
1091
|
for (this.__data__ = new ls(); ++e < t; )
|
|
1226
1092
|
this.add(r[e]);
|
|
1227
1093
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
function
|
|
1094
|
+
io.prototype.add = io.prototype.push = Fm;
|
|
1095
|
+
io.prototype.has = Km;
|
|
1096
|
+
function Hm(r, e) {
|
|
1231
1097
|
for (var t = -1, n = r == null ? 0 : r.length; ++t < n; )
|
|
1232
1098
|
if (e(r[t], t, r))
|
|
1233
1099
|
return !0;
|
|
1234
1100
|
return !1;
|
|
1235
1101
|
}
|
|
1236
|
-
function
|
|
1102
|
+
function zm(r, e) {
|
|
1237
1103
|
return r.has(e);
|
|
1238
1104
|
}
|
|
1239
|
-
var
|
|
1240
|
-
function
|
|
1241
|
-
var a = t &
|
|
1105
|
+
var Vm = 1, Wm = 2;
|
|
1106
|
+
function af(r, e, t, n, s, i) {
|
|
1107
|
+
var a = t & Vm, u = r.length, f = e.length;
|
|
1242
1108
|
if (u != f && !(a && f > u))
|
|
1243
1109
|
return !1;
|
|
1244
1110
|
var d = i.get(r), m = i.get(e);
|
|
1245
1111
|
if (d && m)
|
|
1246
1112
|
return d == e && m == r;
|
|
1247
|
-
var w = -1, y = !0, x = t &
|
|
1113
|
+
var w = -1, y = !0, x = t & Wm ? new io() : void 0;
|
|
1248
1114
|
for (i.set(r, e), i.set(e, r); ++w < u; ) {
|
|
1249
1115
|
var A = r[w], E = e[w];
|
|
1250
1116
|
if (n)
|
|
@@ -1256,8 +1122,8 @@ function uf(r, e, t, n, s, i) {
|
|
|
1256
1122
|
break;
|
|
1257
1123
|
}
|
|
1258
1124
|
if (x) {
|
|
1259
|
-
if (!
|
|
1260
|
-
if (!
|
|
1125
|
+
if (!Hm(e, function($, W) {
|
|
1126
|
+
if (!zm(x, W) && (A === $ || s(A, $, t, n, i)))
|
|
1261
1127
|
return x.push(W);
|
|
1262
1128
|
})) {
|
|
1263
1129
|
y = !1;
|
|
@@ -1270,62 +1136,62 @@ function uf(r, e, t, n, s, i) {
|
|
|
1270
1136
|
}
|
|
1271
1137
|
return i.delete(r), i.delete(e), y;
|
|
1272
1138
|
}
|
|
1273
|
-
function
|
|
1139
|
+
function Ym(r) {
|
|
1274
1140
|
var e = -1, t = Array(r.size);
|
|
1275
1141
|
return r.forEach(function(n, s) {
|
|
1276
1142
|
t[++e] = [s, n];
|
|
1277
1143
|
}), t;
|
|
1278
1144
|
}
|
|
1279
|
-
function
|
|
1145
|
+
function Gm(r) {
|
|
1280
1146
|
var e = -1, t = Array(r.size);
|
|
1281
1147
|
return r.forEach(function(n) {
|
|
1282
1148
|
t[++e] = n;
|
|
1283
1149
|
}), t;
|
|
1284
1150
|
}
|
|
1285
|
-
var
|
|
1286
|
-
function
|
|
1151
|
+
var Jm = 1, Zm = 2, Xm = "[object Boolean]", Qm = "[object Date]", ey = "[object Error]", ty = "[object Map]", ny = "[object Number]", ry = "[object RegExp]", sy = "[object Set]", iy = "[object String]", oy = "[object Symbol]", ay = "[object ArrayBuffer]", ly = "[object DataView]", nu = Dr ? Dr.prototype : void 0, Yo = nu ? nu.valueOf : void 0;
|
|
1152
|
+
function uy(r, e, t, n, s, i, a) {
|
|
1287
1153
|
switch (t) {
|
|
1288
|
-
case
|
|
1154
|
+
case ly:
|
|
1289
1155
|
if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
|
|
1290
1156
|
return !1;
|
|
1291
1157
|
r = r.buffer, e = e.buffer;
|
|
1292
|
-
case
|
|
1293
|
-
return !(r.byteLength != e.byteLength || !i(new
|
|
1294
|
-
case
|
|
1295
|
-
case
|
|
1296
|
-
case
|
|
1158
|
+
case ay:
|
|
1159
|
+
return !(r.byteLength != e.byteLength || !i(new so(r), new so(e)));
|
|
1160
|
+
case Xm:
|
|
1161
|
+
case Qm:
|
|
1162
|
+
case ny:
|
|
1297
1163
|
return Si(+r, +e);
|
|
1298
|
-
case
|
|
1164
|
+
case ey:
|
|
1299
1165
|
return r.name == e.name && r.message == e.message;
|
|
1300
|
-
case
|
|
1301
|
-
case
|
|
1166
|
+
case ry:
|
|
1167
|
+
case iy:
|
|
1302
1168
|
return r == e + "";
|
|
1303
|
-
case
|
|
1304
|
-
var u =
|
|
1305
|
-
case
|
|
1306
|
-
var f = n &
|
|
1307
|
-
if (u || (u =
|
|
1169
|
+
case ty:
|
|
1170
|
+
var u = Ym;
|
|
1171
|
+
case sy:
|
|
1172
|
+
var f = n & Jm;
|
|
1173
|
+
if (u || (u = Gm), r.size != e.size && !f)
|
|
1308
1174
|
return !1;
|
|
1309
1175
|
var d = a.get(r);
|
|
1310
1176
|
if (d)
|
|
1311
1177
|
return d == e;
|
|
1312
|
-
n |=
|
|
1313
|
-
var m =
|
|
1178
|
+
n |= Zm, a.set(r, e);
|
|
1179
|
+
var m = af(u(r), u(e), n, s, i, a);
|
|
1314
1180
|
return a.delete(r), m;
|
|
1315
|
-
case
|
|
1181
|
+
case oy:
|
|
1316
1182
|
if (Yo)
|
|
1317
1183
|
return Yo.call(r) == Yo.call(e);
|
|
1318
1184
|
}
|
|
1319
1185
|
return !1;
|
|
1320
1186
|
}
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1323
|
-
var a = t &
|
|
1187
|
+
var cy = 1, fy = Object.prototype, hy = fy.hasOwnProperty;
|
|
1188
|
+
function dy(r, e, t, n, s, i) {
|
|
1189
|
+
var a = t & cy, u = pa(r), f = u.length, d = pa(e), m = d.length;
|
|
1324
1190
|
if (f != m && !a)
|
|
1325
1191
|
return !1;
|
|
1326
1192
|
for (var w = f; w--; ) {
|
|
1327
1193
|
var y = u[w];
|
|
1328
|
-
if (!(a ? y in e :
|
|
1194
|
+
if (!(a ? y in e : hy.call(e, y)))
|
|
1329
1195
|
return !1;
|
|
1330
1196
|
}
|
|
1331
1197
|
var x = i.get(r), A = i.get(e);
|
|
@@ -1350,10 +1216,10 @@ function Sy(r, e, t, n, s, i) {
|
|
|
1350
1216
|
}
|
|
1351
1217
|
return i.delete(r), i.delete(e), E;
|
|
1352
1218
|
}
|
|
1353
|
-
var
|
|
1354
|
-
function
|
|
1355
|
-
var a = ts(r), u = ts(e), f = a ?
|
|
1356
|
-
f = f ==
|
|
1219
|
+
var py = 1, ru = "[object Arguments]", su = "[object Array]", Mi = "[object Object]", gy = Object.prototype, iu = gy.hasOwnProperty;
|
|
1220
|
+
function my(r, e, t, n, s, i) {
|
|
1221
|
+
var a = ts(r), u = ts(e), f = a ? su : jn(r), d = u ? su : jn(e);
|
|
1222
|
+
f = f == ru ? Mi : f, d = d == ru ? Mi : d;
|
|
1357
1223
|
var m = f == Mi, w = d == Mi, y = f == d;
|
|
1358
1224
|
if (y && di(r)) {
|
|
1359
1225
|
if (!di(e))
|
|
@@ -1361,20 +1227,20 @@ function Ty(r, e, t, n, s, i) {
|
|
|
1361
1227
|
a = !0, m = !1;
|
|
1362
1228
|
}
|
|
1363
1229
|
if (y && !m)
|
|
1364
|
-
return i || (i = new rr()), a || tl(r) ?
|
|
1365
|
-
if (!(t &
|
|
1366
|
-
var x = m &&
|
|
1230
|
+
return i || (i = new rr()), a || tl(r) ? af(r, e, t, n, s, i) : uy(r, e, f, t, n, s, i);
|
|
1231
|
+
if (!(t & py)) {
|
|
1232
|
+
var x = m && iu.call(r, "__wrapped__"), A = w && iu.call(e, "__wrapped__");
|
|
1367
1233
|
if (x || A) {
|
|
1368
1234
|
var E = x ? r.value() : r, T = A ? e.value() : e;
|
|
1369
1235
|
return i || (i = new rr()), s(E, T, t, n, i);
|
|
1370
1236
|
}
|
|
1371
1237
|
}
|
|
1372
|
-
return y ? (i || (i = new rr()),
|
|
1238
|
+
return y ? (i || (i = new rr()), dy(r, e, t, n, s, i)) : !1;
|
|
1373
1239
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return r === e ? !0 : r == null || e == null || !mr(r) && !mr(e) ? r !== r && e !== e :
|
|
1240
|
+
function lf(r, e, t, n, s) {
|
|
1241
|
+
return r === e ? !0 : r == null || e == null || !mr(r) && !mr(e) ? r !== r && e !== e : my(r, e, t, n, lf, s);
|
|
1376
1242
|
}
|
|
1377
|
-
function
|
|
1243
|
+
function yy(r) {
|
|
1378
1244
|
return function(e, t, n) {
|
|
1379
1245
|
for (var s = -1, i = Object(e), a = n(e), u = a.length; u--; ) {
|
|
1380
1246
|
var f = a[++s];
|
|
@@ -1384,21 +1250,21 @@ function Ny(r) {
|
|
|
1384
1250
|
return e;
|
|
1385
1251
|
};
|
|
1386
1252
|
}
|
|
1387
|
-
var
|
|
1253
|
+
var by = yy();
|
|
1388
1254
|
function ba(r, e, t) {
|
|
1389
1255
|
(t !== void 0 && !Si(r[e], t) || t === void 0 && !(e in r)) && Xa(r, e, t);
|
|
1390
1256
|
}
|
|
1391
|
-
function
|
|
1257
|
+
function vy(r) {
|
|
1392
1258
|
return mr(r) && bo(r);
|
|
1393
1259
|
}
|
|
1394
1260
|
function va(r, e) {
|
|
1395
1261
|
if (!(e === "constructor" && typeof r[e] == "function") && e != "__proto__")
|
|
1396
1262
|
return r[e];
|
|
1397
1263
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return
|
|
1264
|
+
function wy(r) {
|
|
1265
|
+
return Kd(r, Jc(r));
|
|
1400
1266
|
}
|
|
1401
|
-
function
|
|
1267
|
+
function xy(r, e, t, n, s, i, a) {
|
|
1402
1268
|
var u = va(r, t), f = va(e, t), d = a.get(f);
|
|
1403
1269
|
if (d) {
|
|
1404
1270
|
ba(r, t, d);
|
|
@@ -1407,25 +1273,25 @@ function ky(r, e, t, n, s, i, a) {
|
|
|
1407
1273
|
var m = i ? i(u, f, t + "", r, e, a) : void 0, w = m === void 0;
|
|
1408
1274
|
if (w) {
|
|
1409
1275
|
var y = ts(f), x = !y && di(f), A = !y && !x && tl(f);
|
|
1410
|
-
m = f, y || x || A ? ts(u) ? m = u :
|
|
1276
|
+
m = f, y || x || A ? ts(u) ? m = u : vy(u) ? m = Ld(u) : x ? (w = !1, m = ef(f, !0)) : A ? (w = !1, m = tf(f, !0)) : m = [] : mg(f) || da(f) ? (m = u, da(u) ? m = wy(u) : (!Ur(u) || Za(u)) && (m = nf(f))) : w = !1;
|
|
1411
1277
|
}
|
|
1412
1278
|
w && (a.set(f, m), s(m, f, n, i, a), a.delete(f)), ba(r, t, m);
|
|
1413
1279
|
}
|
|
1414
|
-
function
|
|
1415
|
-
r !== e &&
|
|
1280
|
+
function uf(r, e, t, n, s) {
|
|
1281
|
+
r !== e && by(e, function(i, a) {
|
|
1416
1282
|
if (s || (s = new rr()), Ur(i))
|
|
1417
|
-
|
|
1283
|
+
xy(r, e, a, t, uf, n, s);
|
|
1418
1284
|
else {
|
|
1419
1285
|
var u = n ? n(va(r, a), i, a + "", r, e, s) : void 0;
|
|
1420
1286
|
u === void 0 && (u = i), ba(r, a, u);
|
|
1421
1287
|
}
|
|
1422
|
-
},
|
|
1288
|
+
}, Jc);
|
|
1423
1289
|
}
|
|
1424
1290
|
function rl(r, e) {
|
|
1425
|
-
return
|
|
1291
|
+
return lf(r, e);
|
|
1426
1292
|
}
|
|
1427
|
-
var Mr =
|
|
1428
|
-
|
|
1293
|
+
var Mr = Yd(function(r, e, t) {
|
|
1294
|
+
uf(r, e, t);
|
|
1429
1295
|
}), Pe = /* @__PURE__ */ ((r) => (r[r.TYPE = 3] = "TYPE", r[r.LEVEL = 12] = "LEVEL", r[r.ATTRIBUTE = 13] = "ATTRIBUTE", r[r.BLOT = 14] = "BLOT", r[r.INLINE = 7] = "INLINE", r[r.BLOCK = 11] = "BLOCK", r[r.BLOCK_BLOT = 10] = "BLOCK_BLOT", r[r.INLINE_BLOT = 6] = "INLINE_BLOT", r[r.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", r[r.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", r[r.ANY = 15] = "ANY", r))(Pe || {});
|
|
1430
1296
|
class ir {
|
|
1431
1297
|
constructor(e, t, n = {}) {
|
|
@@ -1458,7 +1324,7 @@ class js extends Error {
|
|
|
1458
1324
|
e = "[Parchment] " + e, super(e), this.message = e, this.name = this.constructor.name;
|
|
1459
1325
|
}
|
|
1460
1326
|
}
|
|
1461
|
-
const
|
|
1327
|
+
const cf = class wa {
|
|
1462
1328
|
constructor() {
|
|
1463
1329
|
this.attributes = {}, this.classes = {}, this.tags = {}, this.types = {};
|
|
1464
1330
|
}
|
|
@@ -1509,12 +1375,12 @@ const hf = class wa {
|
|
|
1509
1375
|
});
|
|
1510
1376
|
}
|
|
1511
1377
|
};
|
|
1512
|
-
|
|
1513
|
-
let Ms =
|
|
1514
|
-
function
|
|
1378
|
+
cf.blots = /* @__PURE__ */ new WeakMap();
|
|
1379
|
+
let Ms = cf;
|
|
1380
|
+
function ou(r, e) {
|
|
1515
1381
|
return (r.getAttribute("class") || "").split(/\s+/).filter((t) => t.indexOf(`${e}-`) === 0);
|
|
1516
1382
|
}
|
|
1517
|
-
class
|
|
1383
|
+
class Ey extends ir {
|
|
1518
1384
|
static keys(e) {
|
|
1519
1385
|
return (e.getAttribute("class") || "").split(/\s+/).map((t) => t.split("-").slice(0, -1).join("-"));
|
|
1520
1386
|
}
|
|
@@ -1522,21 +1388,21 @@ class Ry extends ir {
|
|
|
1522
1388
|
return this.canAdd(e, t) ? (this.remove(e), e.classList.add(`${this.keyName}-${t}`), !0) : !1;
|
|
1523
1389
|
}
|
|
1524
1390
|
remove(e) {
|
|
1525
|
-
|
|
1391
|
+
ou(e, this.keyName).forEach((t) => {
|
|
1526
1392
|
e.classList.remove(t);
|
|
1527
1393
|
}), e.classList.length === 0 && e.removeAttribute("class");
|
|
1528
1394
|
}
|
|
1529
1395
|
value(e) {
|
|
1530
|
-
const t = (
|
|
1396
|
+
const t = (ou(e, this.keyName)[0] || "").slice(this.keyName.length + 1);
|
|
1531
1397
|
return this.canAdd(e, t) ? t : "";
|
|
1532
1398
|
}
|
|
1533
1399
|
}
|
|
1534
|
-
const Dn =
|
|
1400
|
+
const Dn = Ey;
|
|
1535
1401
|
function Go(r) {
|
|
1536
1402
|
const e = r.split("-"), t = e.slice(1).map((n) => n[0].toUpperCase() + n.slice(1)).join("");
|
|
1537
1403
|
return e[0] + t;
|
|
1538
1404
|
}
|
|
1539
|
-
class
|
|
1405
|
+
class Sy extends ir {
|
|
1540
1406
|
static keys(e) {
|
|
1541
1407
|
return (e.getAttribute("style") || "").split(";").map((t) => t.split(":")[0].trim());
|
|
1542
1408
|
}
|
|
@@ -1551,8 +1417,8 @@ class Py extends ir {
|
|
|
1551
1417
|
return this.canAdd(e, t) ? t : "";
|
|
1552
1418
|
}
|
|
1553
1419
|
}
|
|
1554
|
-
const Fr =
|
|
1555
|
-
class
|
|
1420
|
+
const Fr = Sy;
|
|
1421
|
+
class Oy {
|
|
1556
1422
|
constructor(e) {
|
|
1557
1423
|
this.attributes = {}, this.domNode = e, this.build();
|
|
1558
1424
|
}
|
|
@@ -1588,7 +1454,7 @@ class qy {
|
|
|
1588
1454
|
);
|
|
1589
1455
|
}
|
|
1590
1456
|
}
|
|
1591
|
-
const xo =
|
|
1457
|
+
const xo = Oy, ff = class {
|
|
1592
1458
|
constructor(e, t) {
|
|
1593
1459
|
this.scroll = e, this.domNode = t, Ms.blots.set(t, this), this.prev = null, this.next = null;
|
|
1594
1460
|
}
|
|
@@ -1661,9 +1527,9 @@ const xo = qy, df = class {
|
|
|
1661
1527
|
return n.appendChild(this), n;
|
|
1662
1528
|
}
|
|
1663
1529
|
};
|
|
1664
|
-
|
|
1665
|
-
let
|
|
1666
|
-
const
|
|
1530
|
+
ff.blotName = "abstract";
|
|
1531
|
+
let hf = ff;
|
|
1532
|
+
const df = class extends hf {
|
|
1667
1533
|
/**
|
|
1668
1534
|
* Returns the value represented by domNode if it is this Blot's type
|
|
1669
1535
|
* No checking that domNode can represent this Blot type is required so
|
|
@@ -1698,10 +1564,10 @@ const gf = class extends pf {
|
|
|
1698
1564
|
};
|
|
1699
1565
|
}
|
|
1700
1566
|
};
|
|
1701
|
-
|
|
1702
|
-
let
|
|
1703
|
-
const Dt =
|
|
1704
|
-
class
|
|
1567
|
+
df.scope = Pe.INLINE_BLOT;
|
|
1568
|
+
let Ay = df;
|
|
1569
|
+
const Dt = Ay;
|
|
1570
|
+
class Ty {
|
|
1705
1571
|
constructor() {
|
|
1706
1572
|
this.head = null, this.tail = null, this.length = 0;
|
|
1707
1573
|
}
|
|
@@ -1803,7 +1669,7 @@ class Iy {
|
|
|
1803
1669
|
return t;
|
|
1804
1670
|
}
|
|
1805
1671
|
}
|
|
1806
|
-
function
|
|
1672
|
+
function au(r, e) {
|
|
1807
1673
|
const t = e.find(r);
|
|
1808
1674
|
if (t)
|
|
1809
1675
|
return t;
|
|
@@ -1816,7 +1682,7 @@ function fu(r, e) {
|
|
|
1816
1682
|
}), r.parentNode && r.parentNode.replaceChild(n.domNode, r), n.attach(), n;
|
|
1817
1683
|
}
|
|
1818
1684
|
}
|
|
1819
|
-
const
|
|
1685
|
+
const pf = class Pr extends hf {
|
|
1820
1686
|
constructor(e, t) {
|
|
1821
1687
|
super(e, t), this.uiNode = null, this.build();
|
|
1822
1688
|
}
|
|
@@ -1835,9 +1701,9 @@ const mf = class Pr extends pf {
|
|
|
1835
1701
|
* Called during construction, should fill its own children LinkedList.
|
|
1836
1702
|
*/
|
|
1837
1703
|
build() {
|
|
1838
|
-
this.children = new
|
|
1704
|
+
this.children = new Ty(), Array.from(this.domNode.childNodes).filter((e) => e !== this.uiNode).reverse().forEach((e) => {
|
|
1839
1705
|
try {
|
|
1840
|
-
const t =
|
|
1706
|
+
const t = au(e, this.scroll);
|
|
1841
1707
|
this.insertBefore(t, this.children.head || void 0);
|
|
1842
1708
|
} catch (t) {
|
|
1843
1709
|
if (t instanceof js)
|
|
@@ -1963,15 +1829,15 @@ const mf = class Pr extends pf {
|
|
|
1963
1829
|
}), n.filter((i) => i.parentNode === this.domNode && i !== this.uiNode).sort((i, a) => i === a ? 0 : i.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : -1).forEach((i) => {
|
|
1964
1830
|
let a = null;
|
|
1965
1831
|
i.nextSibling != null && (a = this.scroll.find(i.nextSibling));
|
|
1966
|
-
const u =
|
|
1832
|
+
const u = au(i, this.scroll);
|
|
1967
1833
|
(u.next !== a || u.next == null) && (u.parent != null && u.parent.removeChild(this), this.insertBefore(u, a || void 0));
|
|
1968
1834
|
}), this.enforceAllowedChildren();
|
|
1969
1835
|
}
|
|
1970
1836
|
};
|
|
1971
|
-
|
|
1972
|
-
let
|
|
1973
|
-
const $n =
|
|
1974
|
-
function
|
|
1837
|
+
pf.uiClass = "";
|
|
1838
|
+
let Ny = pf;
|
|
1839
|
+
const $n = Ny;
|
|
1840
|
+
function _y(r, e) {
|
|
1975
1841
|
if (Object.keys(r).length !== Object.keys(e).length)
|
|
1976
1842
|
return !1;
|
|
1977
1843
|
for (const t in r)
|
|
@@ -2020,7 +1886,7 @@ const _s = class Cs extends $n {
|
|
|
2020
1886
|
if (Object.keys(t).length === 0)
|
|
2021
1887
|
return this.unwrap();
|
|
2022
1888
|
const n = this.next;
|
|
2023
|
-
n instanceof Cs && n.prev === this &&
|
|
1889
|
+
n instanceof Cs && n.prev === this && _y(t, n.formats()) && (n.moveChildren(this), n.remove());
|
|
2024
1890
|
}
|
|
2025
1891
|
replaceWith(e, t) {
|
|
2026
1892
|
const n = super.replaceWith(e, t);
|
|
@@ -2037,8 +1903,8 @@ const _s = class Cs extends $n {
|
|
|
2037
1903
|
}
|
|
2038
1904
|
};
|
|
2039
1905
|
_s.allowedChildren = [_s, Dt], _s.blotName = "inline", _s.scope = Pe.INLINE_BLOT, _s.tagName = "SPAN";
|
|
2040
|
-
let
|
|
2041
|
-
const sl =
|
|
1906
|
+
let Cy = _s;
|
|
1907
|
+
const sl = Cy, Ls = class xa extends $n {
|
|
2042
1908
|
static create(e) {
|
|
2043
1909
|
return super.create(e);
|
|
2044
1910
|
}
|
|
@@ -2092,8 +1958,8 @@ Ls.blotName = "block", Ls.scope = Pe.BLOCK_BLOT, Ls.tagName = "P", Ls.allowedChi
|
|
|
2092
1958
|
Ls,
|
|
2093
1959
|
Dt
|
|
2094
1960
|
];
|
|
2095
|
-
let
|
|
2096
|
-
const mi =
|
|
1961
|
+
let Ly = Ls;
|
|
1962
|
+
const mi = Ly, Ea = class extends $n {
|
|
2097
1963
|
checkMerge() {
|
|
2098
1964
|
return this.next !== null && this.next.statics.blotName === this.statics.blotName;
|
|
2099
1965
|
}
|
|
@@ -2111,9 +1977,9 @@ const mi = By, Ea = class extends $n {
|
|
|
2111
1977
|
}
|
|
2112
1978
|
};
|
|
2113
1979
|
Ea.blotName = "container", Ea.scope = Pe.BLOCK_BLOT;
|
|
2114
|
-
let
|
|
2115
|
-
const Eo =
|
|
2116
|
-
class
|
|
1980
|
+
let ky = Ea;
|
|
1981
|
+
const Eo = ky;
|
|
1982
|
+
class Ry extends Dt {
|
|
2117
1983
|
static formats(e, t) {
|
|
2118
1984
|
}
|
|
2119
1985
|
format(e, t) {
|
|
@@ -2126,17 +1992,17 @@ class Fy extends Dt {
|
|
|
2126
1992
|
return this.statics.formats(this.domNode, this.scroll);
|
|
2127
1993
|
}
|
|
2128
1994
|
}
|
|
2129
|
-
const an =
|
|
1995
|
+
const an = Ry, Py = {
|
|
2130
1996
|
attributes: !0,
|
|
2131
1997
|
characterData: !0,
|
|
2132
1998
|
characterDataOldValue: !0,
|
|
2133
1999
|
childList: !0,
|
|
2134
2000
|
subtree: !0
|
|
2135
|
-
},
|
|
2001
|
+
}, qy = 100, ks = class extends $n {
|
|
2136
2002
|
constructor(e, t) {
|
|
2137
2003
|
super(null, t), this.registry = e, this.scroll = this, this.build(), this.observer = new MutationObserver((n) => {
|
|
2138
2004
|
this.update(n);
|
|
2139
|
-
}), this.observer.observe(this.domNode,
|
|
2005
|
+
}), this.observer.observe(this.domNode, Py), this.attach();
|
|
2140
2006
|
}
|
|
2141
2007
|
create(e, t) {
|
|
2142
2008
|
return this.registry.create(this, e, t);
|
|
@@ -2181,7 +2047,7 @@ const an = Fy, Ky = {
|
|
|
2181
2047
|
};
|
|
2182
2048
|
let u = e;
|
|
2183
2049
|
for (let f = 0; u.length > 0; f += 1) {
|
|
2184
|
-
if (f >=
|
|
2050
|
+
if (f >= qy)
|
|
2185
2051
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
2186
2052
|
for (u.forEach((d) => {
|
|
2187
2053
|
const m = this.find(d.target, !0);
|
|
@@ -2207,8 +2073,8 @@ const an = Fy, Ky = {
|
|
|
2207
2073
|
}
|
|
2208
2074
|
};
|
|
2209
2075
|
ks.blotName = "scroll", ks.defaultChild = mi, ks.allowedChildren = [mi, Eo], ks.scope = Pe.BLOCK_BLOT, ks.tagName = "DIV";
|
|
2210
|
-
let
|
|
2211
|
-
const il =
|
|
2076
|
+
let jy = ks;
|
|
2077
|
+
const il = jy, Sa = class gf extends Dt {
|
|
2212
2078
|
static create(e) {
|
|
2213
2079
|
return document.createTextNode(e);
|
|
2214
2080
|
}
|
|
@@ -2231,7 +2097,7 @@ const il = zy, Sa = class yf extends Dt {
|
|
|
2231
2097
|
return this.text.length;
|
|
2232
2098
|
}
|
|
2233
2099
|
optimize(e) {
|
|
2234
|
-
super.optimize(e), this.text = this.statics.value(this.domNode), this.text.length === 0 ? this.remove() : this.next instanceof
|
|
2100
|
+
super.optimize(e), this.text = this.statics.value(this.domNode), this.text.length === 0 ? this.remove() : this.next instanceof gf && this.next.prev === this && (this.insertAt(this.length(), this.next.value()), this.next.remove());
|
|
2235
2101
|
}
|
|
2236
2102
|
position(e, t = !1) {
|
|
2237
2103
|
return [this.domNode, e];
|
|
@@ -2254,8 +2120,8 @@ const il = zy, Sa = class yf extends Dt {
|
|
|
2254
2120
|
}
|
|
2255
2121
|
};
|
|
2256
2122
|
Sa.blotName = "text", Sa.scope = Pe.INLINE_BLOT;
|
|
2257
|
-
let
|
|
2258
|
-
const
|
|
2123
|
+
let Iy = Sa;
|
|
2124
|
+
const oo = Iy, $y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2259
2125
|
__proto__: null,
|
|
2260
2126
|
Attributor: ir,
|
|
2261
2127
|
AttributorStore: xo,
|
|
@@ -2270,12 +2136,12 @@ const lo = Vy, Wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2270
2136
|
Scope: Pe,
|
|
2271
2137
|
ScrollBlot: il,
|
|
2272
2138
|
StyleAttributor: Fr,
|
|
2273
|
-
TextBlot:
|
|
2139
|
+
TextBlot: oo
|
|
2274
2140
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2275
|
-
var Di = { exports: {} }, Jo,
|
|
2276
|
-
function
|
|
2277
|
-
if (
|
|
2278
|
-
|
|
2141
|
+
var Di = { exports: {} }, Jo, lu;
|
|
2142
|
+
function My() {
|
|
2143
|
+
if (lu) return Jo;
|
|
2144
|
+
lu = 1;
|
|
2279
2145
|
var r = -1, e = 1, t = 0;
|
|
2280
2146
|
function n(S, Y, k, K, B) {
|
|
2281
2147
|
if (S === Y)
|
|
@@ -2637,9 +2503,9 @@ function Yy() {
|
|
|
2637
2503
|
}
|
|
2638
2504
|
var ii = { exports: {} };
|
|
2639
2505
|
ii.exports;
|
|
2640
|
-
var
|
|
2641
|
-
function
|
|
2642
|
-
return
|
|
2506
|
+
var uu;
|
|
2507
|
+
function mf() {
|
|
2508
|
+
return uu || (uu = 1, function(r, e) {
|
|
2643
2509
|
var t = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", a = "[object Array]", u = "[object Boolean]", f = "[object Date]", d = "[object Error]", m = "[object Function]", w = "[object GeneratorFunction]", y = "[object Map]", x = "[object Number]", A = "[object Object]", E = "[object Promise]", T = "[object RegExp]", $ = "[object Set]", W = "[object String]", X = "[object Symbol]", he = "[object WeakMap]", ae = "[object ArrayBuffer]", ue = "[object DataView]", ne = "[object Float32Array]", re = "[object Float64Array]", Te = "[object Int8Array]", Se = "[object Int16Array]", S = "[object Int32Array]", Y = "[object Uint8Array]", k = "[object Uint8ClampedArray]", K = "[object Uint16Array]", B = "[object Uint32Array]", R = /[\\^$.*+?()[\]{}|]/g, V = /\w*$/, H = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, G = {};
|
|
2644
2510
|
G[i] = G[a] = G[ae] = G[ue] = G[u] = G[f] = G[ne] = G[re] = G[Te] = G[Se] = G[S] = G[y] = G[x] = G[A] = G[T] = G[$] = G[W] = G[X] = G[Y] = G[k] = G[K] = G[B] = !0, G[d] = G[m] = G[he] = !1;
|
|
2645
2511
|
var le = typeof qr == "object" && qr && qr.Object === Object && qr, pe = typeof self == "object" && self && self.Object === Object && self, we = le || pe || Function("return this")(), Le = e && !e.nodeType && e, be = Le && !0 && r && !r.nodeType && r, Ue = be && be.exports === Le;
|
|
@@ -3085,9 +2951,9 @@ function bf() {
|
|
|
3085
2951
|
}
|
|
3086
2952
|
var oi = { exports: {} };
|
|
3087
2953
|
oi.exports;
|
|
3088
|
-
var
|
|
3089
|
-
function
|
|
3090
|
-
return
|
|
2954
|
+
var cu;
|
|
2955
|
+
function yf() {
|
|
2956
|
+
return cu || (cu = 1, function(r, e) {
|
|
3091
2957
|
var t = 200, n = "__lodash_hash_undefined__", s = 1, i = 2, a = 9007199254740991, u = "[object Arguments]", f = "[object Array]", d = "[object AsyncFunction]", m = "[object Boolean]", w = "[object Date]", y = "[object Error]", x = "[object Function]", A = "[object GeneratorFunction]", E = "[object Map]", T = "[object Number]", $ = "[object Null]", W = "[object Object]", X = "[object Promise]", he = "[object Proxy]", ae = "[object RegExp]", ue = "[object Set]", ne = "[object String]", re = "[object Symbol]", Te = "[object Undefined]", Se = "[object WeakMap]", S = "[object ArrayBuffer]", Y = "[object DataView]", k = "[object Float32Array]", K = "[object Float64Array]", B = "[object Int8Array]", R = "[object Int16Array]", V = "[object Int32Array]", H = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", G = "[object Uint16Array]", le = "[object Uint32Array]", pe = /[\\^$.*+?()[\]{}|]/g, we = /^\[object .+?Constructor\]$/, Le = /^(?:0|[1-9]\d*)$/, be = {};
|
|
3092
2958
|
be[k] = be[K] = be[B] = be[R] = be[V] = be[H] = be[ee] = be[G] = be[le] = !0, be[u] = be[f] = be[S] = be[m] = be[Y] = be[w] = be[y] = be[x] = be[E] = be[T] = be[W] = be[ae] = be[ue] = be[ne] = be[Se] = !1;
|
|
3093
2959
|
var Ue = typeof qr == "object" && qr && qr.Object === Object && qr, We = typeof self == "object" && self && self.Object === Object && self, je = Ue || We || Function("return this")(), oe = e && !e.nodeType && e, qe = oe && !0 && r && !r.nodeType && r, Ie = qe && qe.exports === oe, Oe = Ie && Ue.process, De = function() {
|
|
@@ -3564,11 +3430,11 @@ function vf() {
|
|
|
3564
3430
|
r.exports = bn;
|
|
3565
3431
|
}(oi, oi.exports)), oi.exports;
|
|
3566
3432
|
}
|
|
3567
|
-
var Bi = {},
|
|
3568
|
-
function
|
|
3569
|
-
if (
|
|
3570
|
-
|
|
3571
|
-
const r =
|
|
3433
|
+
var Bi = {}, fu;
|
|
3434
|
+
function Dy() {
|
|
3435
|
+
if (fu) return Bi;
|
|
3436
|
+
fu = 1, Object.defineProperty(Bi, "__esModule", { value: !0 });
|
|
3437
|
+
const r = mf(), e = yf();
|
|
3572
3438
|
var t;
|
|
3573
3439
|
return function(n) {
|
|
3574
3440
|
function s(f = {}, d = {}, m = !1) {
|
|
@@ -3605,10 +3471,10 @@ function Gy() {
|
|
|
3605
3471
|
n.transform = u;
|
|
3606
3472
|
}(t || (t = {})), Bi.default = t, Bi;
|
|
3607
3473
|
}
|
|
3608
|
-
var Ui = {},
|
|
3609
|
-
function
|
|
3610
|
-
if (
|
|
3611
|
-
|
|
3474
|
+
var Ui = {}, hu;
|
|
3475
|
+
function bf() {
|
|
3476
|
+
if (hu) return Ui;
|
|
3477
|
+
hu = 1, Object.defineProperty(Ui, "__esModule", { value: !0 });
|
|
3612
3478
|
var r;
|
|
3613
3479
|
return function(e) {
|
|
3614
3480
|
function t(n) {
|
|
@@ -3617,11 +3483,11 @@ function wf() {
|
|
|
3617
3483
|
e.length = t;
|
|
3618
3484
|
}(r || (r = {})), Ui.default = r, Ui;
|
|
3619
3485
|
}
|
|
3620
|
-
var Fi = {},
|
|
3621
|
-
function
|
|
3622
|
-
if (
|
|
3623
|
-
|
|
3624
|
-
const r =
|
|
3486
|
+
var Fi = {}, du;
|
|
3487
|
+
function By() {
|
|
3488
|
+
if (du) return Fi;
|
|
3489
|
+
du = 1, Object.defineProperty(Fi, "__esModule", { value: !0 });
|
|
3490
|
+
const r = bf();
|
|
3625
3491
|
class e {
|
|
3626
3492
|
constructor(n) {
|
|
3627
3493
|
this.ops = n, this.index = 0, this.offset = 0;
|
|
@@ -3666,15 +3532,15 @@ function Jy() {
|
|
|
3666
3532
|
}
|
|
3667
3533
|
return Fi.default = e, Fi;
|
|
3668
3534
|
}
|
|
3669
|
-
var
|
|
3670
|
-
function
|
|
3671
|
-
return
|
|
3535
|
+
var pu;
|
|
3536
|
+
function Uy() {
|
|
3537
|
+
return pu || (pu = 1, function(r, e) {
|
|
3672
3538
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AttributeMap = e.OpIterator = e.Op = void 0;
|
|
3673
|
-
const t =
|
|
3539
|
+
const t = My(), n = mf(), s = yf(), i = Dy();
|
|
3674
3540
|
e.AttributeMap = i.default;
|
|
3675
|
-
const a =
|
|
3541
|
+
const a = bf();
|
|
3676
3542
|
e.Op = a.default;
|
|
3677
|
-
const u =
|
|
3543
|
+
const u = By();
|
|
3678
3544
|
e.OpIterator = u.default;
|
|
3679
3545
|
const f = "\0", d = (w, y) => {
|
|
3680
3546
|
if (typeof w != "object" || w === null)
|
|
@@ -3930,7 +3796,7 @@ function Zy() {
|
|
|
3930
3796
|
m.Op = a.default, m.OpIterator = u.default, m.AttributeMap = i.default, m.handlers = {}, e.default = m, r.exports = m, r.exports.default = m;
|
|
3931
3797
|
}(Di, Di.exports)), Di.exports;
|
|
3932
3798
|
}
|
|
3933
|
-
var An =
|
|
3799
|
+
var An = Uy();
|
|
3934
3800
|
const Re = /* @__PURE__ */ Mc(An);
|
|
3935
3801
|
class Bn extends an {
|
|
3936
3802
|
static value() {
|
|
@@ -3947,9 +3813,9 @@ class Bn extends an {
|
|
|
3947
3813
|
}
|
|
3948
3814
|
Bn.blotName = "break";
|
|
3949
3815
|
Bn.tagName = "BR";
|
|
3950
|
-
let Mn = class extends
|
|
3816
|
+
let Mn = class extends oo {
|
|
3951
3817
|
};
|
|
3952
|
-
const
|
|
3818
|
+
const Fy = {
|
|
3953
3819
|
"&": "&",
|
|
3954
3820
|
"<": "<",
|
|
3955
3821
|
">": ">",
|
|
@@ -3957,7 +3823,7 @@ const Xy = {
|
|
|
3957
3823
|
"'": "'"
|
|
3958
3824
|
};
|
|
3959
3825
|
function So(r) {
|
|
3960
|
-
return r.replace(/[&<>"']/g, (e) =>
|
|
3826
|
+
return r.replace(/[&<>"']/g, (e) => Fy[e]);
|
|
3961
3827
|
}
|
|
3962
3828
|
const tr = class tr extends sl {
|
|
3963
3829
|
static compare(e, t) {
|
|
@@ -3994,14 +3860,14 @@ Ae(tr, "order", [
|
|
|
3994
3860
|
// Must be higher
|
|
3995
3861
|
]);
|
|
3996
3862
|
let or = tr;
|
|
3997
|
-
const
|
|
3863
|
+
const gu = 1;
|
|
3998
3864
|
class Rt extends mi {
|
|
3999
3865
|
constructor() {
|
|
4000
3866
|
super(...arguments);
|
|
4001
3867
|
Ae(this, "cache", {});
|
|
4002
3868
|
}
|
|
4003
3869
|
delta() {
|
|
4004
|
-
return this.cache.delta == null && (this.cache.delta =
|
|
3870
|
+
return this.cache.delta == null && (this.cache.delta = vf(this)), this.cache.delta;
|
|
4005
3871
|
}
|
|
4006
3872
|
deleteAt(t, n) {
|
|
4007
3873
|
super.deleteAt(t, n), this.cache = {};
|
|
@@ -4028,7 +3894,7 @@ class Rt extends mi {
|
|
|
4028
3894
|
super.insertBefore(t, n), s instanceof Bn && s.remove(), this.cache = {};
|
|
4029
3895
|
}
|
|
4030
3896
|
length() {
|
|
4031
|
-
return this.cache.length == null && (this.cache.length = super.length() +
|
|
3897
|
+
return this.cache.length == null && (this.cache.length = super.length() + gu), this.cache.length;
|
|
4032
3898
|
}
|
|
4033
3899
|
moveChildren(t, n) {
|
|
4034
3900
|
super.moveChildren(t, n), this.cache = {};
|
|
@@ -4044,7 +3910,7 @@ class Rt extends mi {
|
|
|
4044
3910
|
}
|
|
4045
3911
|
split(t) {
|
|
4046
3912
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
4047
|
-
if (n && (t === 0 || t >= this.length() -
|
|
3913
|
+
if (n && (t === 0 || t >= this.length() - gu)) {
|
|
4048
3914
|
const i = this.clone();
|
|
4049
3915
|
return t === 0 ? (this.parent.insertBefore(i, this), this) : (this.parent.insertBefore(i, this.next), i);
|
|
4050
3916
|
}
|
|
@@ -4089,7 +3955,7 @@ class On extends an {
|
|
|
4089
3955
|
}
|
|
4090
3956
|
}
|
|
4091
3957
|
On.scope = Pe.BLOCK_BLOT;
|
|
4092
|
-
function
|
|
3958
|
+
function vf(r) {
|
|
4093
3959
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
4094
3960
|
return r.descendants(Dt).reduce((t, n) => n.length() === 0 ? t : t.insert(n.value(), En(n, {}, e)), new Re()).insert(`
|
|
4095
3961
|
`, En(r));
|
|
@@ -4198,9 +4064,9 @@ const xn = class xn extends an {
|
|
|
4198
4064
|
};
|
|
4199
4065
|
Ae(xn, "blotName", "cursor"), Ae(xn, "className", "ql-cursor"), Ae(xn, "tagName", "span"), Ae(xn, "CONTENTS", "\uFEFF");
|
|
4200
4066
|
let Ds = xn;
|
|
4201
|
-
var Zo = { exports: {} },
|
|
4202
|
-
function
|
|
4203
|
-
return
|
|
4067
|
+
var Zo = { exports: {} }, mu;
|
|
4068
|
+
function Ky() {
|
|
4069
|
+
return mu || (mu = 1, function(r) {
|
|
4204
4070
|
var e = Object.prototype.hasOwnProperty, t = "~";
|
|
4205
4071
|
function n() {
|
|
4206
4072
|
}
|
|
@@ -4305,10 +4171,10 @@ function Qy() {
|
|
|
4305
4171
|
}, u.prototype.off = u.prototype.removeListener, u.prototype.addListener = u.prototype.on, u.prefixed = t, u.EventEmitter = u, r.exports = u;
|
|
4306
4172
|
}(Zo)), Zo.exports;
|
|
4307
4173
|
}
|
|
4308
|
-
var
|
|
4309
|
-
const
|
|
4174
|
+
var Hy = Ky();
|
|
4175
|
+
const zy = /* @__PURE__ */ Mc(Hy), Oa = /* @__PURE__ */ new WeakMap(), Aa = ["error", "warn", "log", "info"];
|
|
4310
4176
|
let Ta = "warn";
|
|
4311
|
-
function
|
|
4177
|
+
function wf(r) {
|
|
4312
4178
|
if (Ta && Aa.indexOf(r) <= Aa.indexOf(Ta)) {
|
|
4313
4179
|
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
4314
4180
|
t[n - 1] = arguments[n];
|
|
@@ -4316,14 +4182,14 @@ function Ef(r) {
|
|
|
4316
4182
|
}
|
|
4317
4183
|
}
|
|
4318
4184
|
function wr(r) {
|
|
4319
|
-
return Aa.reduce((e, t) => (e[t] =
|
|
4185
|
+
return Aa.reduce((e, t) => (e[t] = wf.bind(console, t, r), e), {});
|
|
4320
4186
|
}
|
|
4321
4187
|
wr.level = (r) => {
|
|
4322
4188
|
Ta = r;
|
|
4323
4189
|
};
|
|
4324
|
-
|
|
4325
|
-
const Xo = wr("quill:events"),
|
|
4326
|
-
|
|
4190
|
+
wf.level = wr.level;
|
|
4191
|
+
const Xo = wr("quill:events"), Vy = ["selectionchange", "mousedown", "mouseup", "click"];
|
|
4192
|
+
Vy.forEach((r) => {
|
|
4327
4193
|
document.addEventListener(r, function() {
|
|
4328
4194
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
4329
4195
|
t[n] = arguments[n];
|
|
@@ -4333,7 +4199,7 @@ nb.forEach((r) => {
|
|
|
4333
4199
|
});
|
|
4334
4200
|
});
|
|
4335
4201
|
});
|
|
4336
|
-
class Ce extends
|
|
4202
|
+
class Ce extends zy {
|
|
4337
4203
|
constructor() {
|
|
4338
4204
|
super(), this.domListeners = {}, this.on("error", Xo.error);
|
|
4339
4205
|
}
|
|
@@ -4386,7 +4252,7 @@ class rs {
|
|
|
4386
4252
|
this.index = e, this.length = t;
|
|
4387
4253
|
}
|
|
4388
4254
|
}
|
|
4389
|
-
class
|
|
4255
|
+
class Wy {
|
|
4390
4256
|
constructor(e, t) {
|
|
4391
4257
|
this.emitter = t, this.scroll = e, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new rs(0, 0), this.lastRange = this.savedRange, this.lastNative = null, this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, () => {
|
|
4392
4258
|
!this.mouseDown && !this.composing && setTimeout(this.update.bind(this, Ce.sources.USER), 1);
|
|
@@ -4606,8 +4472,8 @@ function ea(r, e) {
|
|
|
4606
4472
|
}
|
|
4607
4473
|
return r.contains(e);
|
|
4608
4474
|
}
|
|
4609
|
-
const
|
|
4610
|
-
let
|
|
4475
|
+
const Yy = /^[ -~]*$/;
|
|
4476
|
+
let Gy = class {
|
|
4611
4477
|
constructor(e) {
|
|
4612
4478
|
this.scroll = e, this.delta = this.getDelta();
|
|
4613
4479
|
}
|
|
@@ -4615,8 +4481,8 @@ let ib = class {
|
|
|
4615
4481
|
this.scroll.update();
|
|
4616
4482
|
let t = this.scroll.length();
|
|
4617
4483
|
this.scroll.batchStart();
|
|
4618
|
-
const n =
|
|
4619
|
-
return
|
|
4484
|
+
const n = yu(e), s = new Re();
|
|
4485
|
+
return Zy(n.ops.slice()).reduce((a, u) => {
|
|
4620
4486
|
const f = An.Op.length(u);
|
|
4621
4487
|
let d = u.attributes || {}, m = !1, w = !1;
|
|
4622
4488
|
if (u.insert != null) {
|
|
@@ -4703,7 +4569,7 @@ let ib = class {
|
|
|
4703
4569
|
for (; Object.keys(d).length > 0; ) {
|
|
4704
4570
|
const m = u.shift();
|
|
4705
4571
|
if (m == null) return d;
|
|
4706
|
-
d =
|
|
4572
|
+
d = Jy(En(m), d);
|
|
4707
4573
|
}
|
|
4708
4574
|
return d;
|
|
4709
4575
|
});
|
|
@@ -4724,7 +4590,7 @@ let ib = class {
|
|
|
4724
4590
|
return this.getContents(e, t).filter((n) => typeof n.insert == "string").map((n) => n.insert).join("");
|
|
4725
4591
|
}
|
|
4726
4592
|
insertContents(e, t) {
|
|
4727
|
-
const n =
|
|
4593
|
+
const n = yu(t), s = new Re().retain(e).concat(n);
|
|
4728
4594
|
return this.scroll.insertContents(e, n), this.update(s);
|
|
4729
4595
|
}
|
|
4730
4596
|
insertEmbed(e, t, n) {
|
|
@@ -4760,10 +4626,10 @@ let ib = class {
|
|
|
4760
4626
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
4761
4627
|
const s = this.delta;
|
|
4762
4628
|
if (t.length === 1 && t[0].type === "characterData" && // @ts-expect-error Fix me later
|
|
4763
|
-
t[0].target.data.match(
|
|
4629
|
+
t[0].target.data.match(Yy) && this.scroll.find(t[0].target)) {
|
|
4764
4630
|
const i = this.scroll.find(t[0].target), a = En(i), u = i.offset(this.scroll), f = t[0].oldValue.replace(Ds.CONTENTS, ""), d = new Re().insert(f), m = new Re().insert(i.value()), w = n && {
|
|
4765
|
-
oldRange:
|
|
4766
|
-
newRange:
|
|
4631
|
+
oldRange: bu(n.oldRange, -u),
|
|
4632
|
+
newRange: bu(n.newRange, -u)
|
|
4767
4633
|
};
|
|
4768
4634
|
e = new Re().retain(u).concat(d.diff(m, w)).reduce((x, A) => A.insert ? x.insert(A.insert, a) : x.push(A), new Re()), this.delta = s.compose(e);
|
|
4769
4635
|
} else
|
|
@@ -4824,7 +4690,7 @@ function yi(r, e, t) {
|
|
|
4824
4690
|
}
|
|
4825
4691
|
return r.domNode instanceof Element ? r.domNode.outerHTML : "";
|
|
4826
4692
|
}
|
|
4827
|
-
function
|
|
4693
|
+
function Jy(r, e) {
|
|
4828
4694
|
return Object.keys(e).reduce((t, n) => {
|
|
4829
4695
|
if (r[n] == null) return t;
|
|
4830
4696
|
const s = e[n];
|
|
@@ -4842,7 +4708,7 @@ function ta(r) {
|
|
|
4842
4708
|
return [e, ""];
|
|
4843
4709
|
}
|
|
4844
4710
|
}
|
|
4845
|
-
function
|
|
4711
|
+
function yu(r) {
|
|
4846
4712
|
return r.reduce((e, t) => {
|
|
4847
4713
|
if (typeof t.insert == "string") {
|
|
4848
4714
|
const n = t.insert.replace(/\r\n/g, `
|
|
@@ -4853,14 +4719,14 @@ function xu(r) {
|
|
|
4853
4719
|
return e.push(t);
|
|
4854
4720
|
}, new Re());
|
|
4855
4721
|
}
|
|
4856
|
-
function
|
|
4722
|
+
function bu(r, e) {
|
|
4857
4723
|
let {
|
|
4858
4724
|
index: t,
|
|
4859
4725
|
length: n
|
|
4860
4726
|
} = r;
|
|
4861
4727
|
return new rs(t + e, n);
|
|
4862
4728
|
}
|
|
4863
|
-
function
|
|
4729
|
+
function Zy(r) {
|
|
4864
4730
|
const e = [];
|
|
4865
4731
|
return r.forEach((t) => {
|
|
4866
4732
|
typeof t.insert == "string" ? t.insert.split(`
|
|
@@ -4926,7 +4792,7 @@ class ol extends an {
|
|
|
4926
4792
|
});
|
|
4927
4793
|
}
|
|
4928
4794
|
}
|
|
4929
|
-
class
|
|
4795
|
+
class Xy {
|
|
4930
4796
|
constructor(e, t) {
|
|
4931
4797
|
Ae(this, "isComposing", !1);
|
|
4932
4798
|
this.scroll = e, this.emitter = t, this.setupListeners();
|
|
@@ -4969,7 +4835,7 @@ Ae(fi, "DEFAULTS", {
|
|
|
4969
4835
|
default: fi
|
|
4970
4836
|
});
|
|
4971
4837
|
let Bs = fi;
|
|
4972
|
-
const
|
|
4838
|
+
const Qy = (r) => r.parentElement || r.getRootNode().host || null, eb = (r) => {
|
|
4973
4839
|
const e = r.getBoundingClientRect(), t = "offsetWidth" in r && Math.abs(e.width) / r.offsetWidth || 1, n = "offsetHeight" in r && Math.abs(e.height) / r.offsetHeight || 1;
|
|
4974
4840
|
return {
|
|
4975
4841
|
top: e.top,
|
|
@@ -4980,7 +4846,7 @@ const ub = (r) => r.parentElement || r.getRootNode().host || null, cb = (r) => {
|
|
|
4980
4846
|
}, Hi = (r) => {
|
|
4981
4847
|
const e = parseInt(r, 10);
|
|
4982
4848
|
return Number.isNaN(e) ? 0 : e;
|
|
4983
|
-
},
|
|
4849
|
+
}, vu = (r, e, t, n, s, i) => r < t && e > n ? 0 : r < t ? -(t - r + s) : e > n ? e - r > n - t ? r + s - t : e - n + i : 0, tb = (r, e) => {
|
|
4984
4850
|
var i, a, u;
|
|
4985
4851
|
const t = r.ownerDocument;
|
|
4986
4852
|
let n = e, s = r;
|
|
@@ -4990,7 +4856,7 @@ const ub = (r) => r.parentElement || r.getRootNode().host || null, cb = (r) => {
|
|
|
4990
4856
|
right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? t.documentElement.clientWidth,
|
|
4991
4857
|
bottom: ((a = window.visualViewport) == null ? void 0 : a.height) ?? t.documentElement.clientHeight,
|
|
4992
4858
|
left: 0
|
|
4993
|
-
} :
|
|
4859
|
+
} : eb(s), m = getComputedStyle(s), w = vu(n.left, n.right, d.left, d.right, Hi(m.scrollPaddingLeft), Hi(m.scrollPaddingRight)), y = vu(n.top, n.bottom, d.top, d.bottom, Hi(m.scrollPaddingTop), Hi(m.scrollPaddingBottom));
|
|
4994
4860
|
if (w || y)
|
|
4995
4861
|
if (f)
|
|
4996
4862
|
(u = t.defaultView) == null || u.scrollBy(w, y);
|
|
@@ -5008,11 +4874,11 @@ const ub = (r) => r.parentElement || r.getRootNode().host || null, cb = (r) => {
|
|
|
5008
4874
|
bottom: n.bottom - T
|
|
5009
4875
|
};
|
|
5010
4876
|
}
|
|
5011
|
-
s = f || m.position === "fixed" ? null :
|
|
4877
|
+
s = f || m.position === "fixed" ? null : Qy(s);
|
|
5012
4878
|
}
|
|
5013
|
-
},
|
|
4879
|
+
}, nb = 100, rb = ["block", "break", "cursor", "inline", "scroll", "text"], sb = (r, e, t) => {
|
|
5014
4880
|
const n = new Ms();
|
|
5015
|
-
return
|
|
4881
|
+
return rb.forEach((s) => {
|
|
5016
4882
|
const i = e.query(s);
|
|
5017
4883
|
i && n.register(i);
|
|
5018
4884
|
}), r.forEach((s) => {
|
|
@@ -5020,7 +4886,7 @@ const ub = (r) => r.parentElement || r.getRootNode().host || null, cb = (r) => {
|
|
|
5020
4886
|
i || t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);
|
|
5021
4887
|
let a = 0;
|
|
5022
4888
|
for (; i; )
|
|
5023
|
-
if (n.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, a += 1, a >
|
|
4889
|
+
if (n.register(i), i = "blotName" in i ? i.requiredContainer ?? null : null, a += 1, a > nb) {
|
|
5024
4890
|
t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);
|
|
5025
4891
|
break;
|
|
5026
4892
|
}
|
|
@@ -5051,7 +4917,7 @@ const qn = class qn {
|
|
|
5051
4917
|
}
|
|
5052
4918
|
constructor(e) {
|
|
5053
4919
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5054
|
-
if (this.options =
|
|
4920
|
+
if (this.options = ib(e, t), this.container = this.options.container, this.container == null) {
|
|
5055
4921
|
Is.error("Invalid Quill container", e);
|
|
5056
4922
|
return;
|
|
5057
4923
|
}
|
|
@@ -5063,7 +4929,7 @@ const qn = class qn {
|
|
|
5063
4929
|
throw new Error(`Cannot initialize Quill without "${s}" blot`);
|
|
5064
4930
|
if (this.scroll = new i(this.options.registry, this.root, {
|
|
5065
4931
|
emitter: this.emitter
|
|
5066
|
-
}), this.editor = new
|
|
4932
|
+
}), this.editor = new Gy(this.scroll), this.selection = new Wy(this.scroll, this.emitter), this.composition = new Xy(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.uploader = this.theme.addModule("uploader"), this.theme.addModule("input"), this.theme.addModule("uiNode"), this.theme.init(), this.emitter.on(Ce.events.EDITOR_CHANGE, (a) => {
|
|
5067
4933
|
a === Ce.events.TEXT_CHANGE && this.root.classList.toggle("ql-blank", this.editor.isBlank());
|
|
5068
4934
|
}), this.emitter.on(Ce.events.SCROLL_UPDATE, (a, u) => {
|
|
5069
4935
|
const f = this.selection.lastRange, [d] = this.selection.getRange(), m = f && d ? {
|
|
@@ -5242,7 +5108,7 @@ const qn = class qn {
|
|
|
5242
5108
|
return [e, t, , n] = gr(e, t, n), Pn.call(this, () => this.editor.removeFormat(e, t), n, e);
|
|
5243
5109
|
}
|
|
5244
5110
|
scrollRectIntoView(e) {
|
|
5245
|
-
|
|
5111
|
+
tb(this.root, e);
|
|
5246
5112
|
}
|
|
5247
5113
|
/**
|
|
5248
5114
|
* @deprecated Use Quill#scrollSelectionIntoView() instead.
|
|
@@ -5298,12 +5164,12 @@ Ae(qn, "DEFAULTS", {
|
|
|
5298
5164
|
theme: "default"
|
|
5299
5165
|
}), Ae(qn, "events", Ce.events), Ae(qn, "sources", Ce.sources), Ae(qn, "version", "2.0.3"), Ae(qn, "imports", {
|
|
5300
5166
|
delta: Re,
|
|
5301
|
-
parchment:
|
|
5167
|
+
parchment: $y,
|
|
5302
5168
|
"core/module": Un,
|
|
5303
5169
|
"core/theme": Bs
|
|
5304
5170
|
});
|
|
5305
5171
|
let ie = qn;
|
|
5306
|
-
function
|
|
5172
|
+
function wu(r) {
|
|
5307
5173
|
return typeof r == "string" ? document.querySelector(r) : r;
|
|
5308
5174
|
}
|
|
5309
5175
|
function na(r) {
|
|
@@ -5315,11 +5181,11 @@ function na(r) {
|
|
|
5315
5181
|
};
|
|
5316
5182
|
}, {});
|
|
5317
5183
|
}
|
|
5318
|
-
function
|
|
5184
|
+
function xu(r) {
|
|
5319
5185
|
return Object.fromEntries(Object.entries(r).filter((e) => e[1] !== void 0));
|
|
5320
5186
|
}
|
|
5321
|
-
function
|
|
5322
|
-
const t =
|
|
5187
|
+
function ib(r, e) {
|
|
5188
|
+
const t = wu(r);
|
|
5323
5189
|
if (!t)
|
|
5324
5190
|
throw new Error("Invalid Quill container");
|
|
5325
5191
|
const s = !e.theme || e.theme === ie.DEFAULTS.theme ? Bs : ie.import(`themes/${e.theme}`);
|
|
@@ -5341,11 +5207,11 @@ function gb(r, e) {
|
|
|
5341
5207
|
});
|
|
5342
5208
|
const m = Mr({}, na(i), na(u), d), w = {
|
|
5343
5209
|
...a,
|
|
5344
|
-
...
|
|
5345
|
-
...
|
|
5210
|
+
...xu(f),
|
|
5211
|
+
...xu(e)
|
|
5346
5212
|
};
|
|
5347
5213
|
let y = e.registry;
|
|
5348
|
-
return y ? e.formats && Is.warn('Ignoring "formats" option because "registry" is specified') : y = e.formats ?
|
|
5214
|
+
return y ? e.formats && Is.warn('Ignoring "formats" option because "registry" is specified') : y = e.formats ? sb(e.formats, w.registry, Is) : w.registry, {
|
|
5349
5215
|
...w,
|
|
5350
5216
|
registry: y,
|
|
5351
5217
|
container: t,
|
|
@@ -5360,7 +5226,7 @@ function gb(r, e) {
|
|
|
5360
5226
|
[E]: Mr({}, $.DEFAULTS || {}, T)
|
|
5361
5227
|
};
|
|
5362
5228
|
}, {}),
|
|
5363
|
-
bounds:
|
|
5229
|
+
bounds: wu(w.bounds)
|
|
5364
5230
|
};
|
|
5365
5231
|
}
|
|
5366
5232
|
function Pn(r, e, t, n) {
|
|
@@ -5368,7 +5234,7 @@ function Pn(r, e, t, n) {
|
|
|
5368
5234
|
return new Re();
|
|
5369
5235
|
let s = t == null ? null : this.getSelection();
|
|
5370
5236
|
const i = this.editor.delta, a = r();
|
|
5371
|
-
if (s != null && (t === !0 && (t = s.index), n == null ? s =
|
|
5237
|
+
if (s != null && (t === !0 && (t = s.index), n == null ? s = Eu(s, a, e) : n !== 0 && (s = Eu(s, t, n, e)), this.setSelection(s, Ce.sources.SILENT)), a.length() > 0) {
|
|
5372
5238
|
const u = [Ce.events.TEXT_CHANGE, a, i, e];
|
|
5373
5239
|
this.emitter.emit(Ce.events.EDITOR_CHANGE, ...u), e !== Ce.sources.SILENT && this.emitter.emit(...u);
|
|
5374
5240
|
}
|
|
@@ -5378,7 +5244,7 @@ function gr(r, e, t, n, s) {
|
|
|
5378
5244
|
let i = {};
|
|
5379
5245
|
return typeof r.index == "number" && typeof r.length == "number" ? typeof e != "number" ? (s = n, n = t, t = e, e = r.length, r = r.index) : (e = r.length, r = r.index) : typeof e != "number" && (s = n, n = t, t = e, e = 0), typeof t == "object" ? (i = t, s = n) : typeof t == "string" && (n != null ? i[t] = n : s = t), s = s || Ce.sources.API, [r, e, i, s];
|
|
5380
5246
|
}
|
|
5381
|
-
function
|
|
5247
|
+
function Eu(r, e, t, n) {
|
|
5382
5248
|
const s = typeof t == "number" ? t : 0;
|
|
5383
5249
|
if (r == null) return null;
|
|
5384
5250
|
let i, a;
|
|
@@ -5389,10 +5255,10 @@ function Tu(r, e, t, n) {
|
|
|
5389
5255
|
}
|
|
5390
5256
|
class us extends Eo {
|
|
5391
5257
|
}
|
|
5392
|
-
function
|
|
5258
|
+
function Su(r) {
|
|
5393
5259
|
return r instanceof Rt || r instanceof On;
|
|
5394
5260
|
}
|
|
5395
|
-
function
|
|
5261
|
+
function Ou(r) {
|
|
5396
5262
|
return typeof r.updateContent == "function";
|
|
5397
5263
|
}
|
|
5398
5264
|
class Ps extends il {
|
|
@@ -5506,14 +5372,14 @@ class Ps extends il {
|
|
|
5506
5372
|
return n instanceof Dt ? [n, s] : [null, -1];
|
|
5507
5373
|
}
|
|
5508
5374
|
line(e) {
|
|
5509
|
-
return e === this.length() ? this.line(e - 1) : this.descendant(
|
|
5375
|
+
return e === this.length() ? this.line(e - 1) : this.descendant(Su, e);
|
|
5510
5376
|
}
|
|
5511
5377
|
lines() {
|
|
5512
5378
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE;
|
|
5513
5379
|
const n = (s, i, a) => {
|
|
5514
5380
|
let u = [], f = a;
|
|
5515
5381
|
return s.children.forEachAt(i, a, (d, m, w) => {
|
|
5516
|
-
|
|
5382
|
+
Su(d) ? u.push(d) : d instanceof Eo && (u = u.concat(n(d, m, f))), f -= w;
|
|
5517
5383
|
}), u;
|
|
5518
5384
|
};
|
|
5519
5385
|
return n(this, e, t);
|
|
@@ -5538,12 +5404,12 @@ class Ps extends il {
|
|
|
5538
5404
|
target: s
|
|
5539
5405
|
} = n;
|
|
5540
5406
|
const i = this.find(s, !0);
|
|
5541
|
-
return i && !
|
|
5407
|
+
return i && !Ou(i);
|
|
5542
5408
|
}), e.length > 0 && this.emitter.emit(Ce.events.SCROLL_BEFORE_UPDATE, t, e), super.update(e.concat([])), e.length > 0 && this.emitter.emit(Ce.events.SCROLL_UPDATE, t, e);
|
|
5543
5409
|
}
|
|
5544
5410
|
updateEmbedAt(e, t, n) {
|
|
5545
5411
|
const [s] = this.descendant((i) => i instanceof On, e);
|
|
5546
|
-
s && s.statics.blotName === t &&
|
|
5412
|
+
s && s.statics.blotName === t && Ou(s) && s.updateContent(n);
|
|
5547
5413
|
}
|
|
5548
5414
|
handleDragStart(e) {
|
|
5549
5415
|
e.preventDefault();
|
|
@@ -5630,20 +5496,20 @@ function ra(r, e, t) {
|
|
|
5630
5496
|
const al = {
|
|
5631
5497
|
scope: Pe.BLOCK,
|
|
5632
5498
|
whitelist: ["right", "center", "justify"]
|
|
5633
|
-
},
|
|
5634
|
-
class
|
|
5499
|
+
}, ob = new ir("align", "align", al), xf = new Dn("align", "ql-align", al), Ef = new Fr("align", "text-align", al);
|
|
5500
|
+
class Sf extends Fr {
|
|
5635
5501
|
value(e) {
|
|
5636
5502
|
let t = super.value(e);
|
|
5637
5503
|
return t.startsWith("rgb(") ? (t = t.replace(/^[^\d]+/, "").replace(/[^\d]+$/, ""), `#${t.split(",").map((s) => `00${parseInt(s, 10).toString(16)}`.slice(-2)).join("")}`) : t;
|
|
5638
5504
|
}
|
|
5639
5505
|
}
|
|
5640
|
-
const
|
|
5506
|
+
const ab = new Dn("color", "ql-color", {
|
|
5641
5507
|
scope: Pe.INLINE
|
|
5642
|
-
}), ll = new
|
|
5508
|
+
}), ll = new Sf("color", "color", {
|
|
5643
5509
|
scope: Pe.INLINE
|
|
5644
|
-
}),
|
|
5510
|
+
}), lb = new Dn("background", "ql-bg", {
|
|
5645
5511
|
scope: Pe.INLINE
|
|
5646
|
-
}), ul = new
|
|
5512
|
+
}), ul = new Sf("background", "background-color", {
|
|
5647
5513
|
scope: Pe.INLINE
|
|
5648
5514
|
});
|
|
5649
5515
|
class cs extends us {
|
|
@@ -5683,22 +5549,22 @@ Ut.requiredContainer = cs;
|
|
|
5683
5549
|
const fl = {
|
|
5684
5550
|
scope: Pe.BLOCK,
|
|
5685
5551
|
whitelist: ["rtl"]
|
|
5686
|
-
},
|
|
5552
|
+
}, Of = new ir("direction", "dir", fl), Af = new Dn("direction", "ql-direction", fl), Tf = new Fr("direction", "direction", fl), Nf = {
|
|
5687
5553
|
scope: Pe.INLINE,
|
|
5688
5554
|
whitelist: ["serif", "monospace"]
|
|
5689
|
-
},
|
|
5690
|
-
class
|
|
5555
|
+
}, _f = new Dn("font", "ql-font", Nf);
|
|
5556
|
+
class ub extends Fr {
|
|
5691
5557
|
value(e) {
|
|
5692
5558
|
return super.value(e).replace(/["']/g, "");
|
|
5693
5559
|
}
|
|
5694
5560
|
}
|
|
5695
|
-
const
|
|
5561
|
+
const Cf = new ub("font", "font-family", Nf), Lf = new Dn("size", "ql-size", {
|
|
5696
5562
|
scope: Pe.INLINE,
|
|
5697
5563
|
whitelist: ["small", "large", "huge"]
|
|
5698
|
-
}),
|
|
5564
|
+
}), kf = new Fr("size", "font-size", {
|
|
5699
5565
|
scope: Pe.INLINE,
|
|
5700
5566
|
whitelist: ["10px", "18px", "32px"]
|
|
5701
|
-
}),
|
|
5567
|
+
}), cb = wr("quill:keyboard"), fb = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
|
|
5702
5568
|
class Oo extends Un {
|
|
5703
5569
|
static match(e, t) {
|
|
5704
5570
|
return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((n) => !!t[n] !== e[n] && t[n] !== null) ? !1 : t.key === e.key || t.key === e.which;
|
|
@@ -5754,9 +5620,9 @@ class Oo extends Un {
|
|
|
5754
5620
|
}
|
|
5755
5621
|
addBinding(e) {
|
|
5756
5622
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5757
|
-
const s =
|
|
5623
|
+
const s = db(e);
|
|
5758
5624
|
if (s == null) {
|
|
5759
|
-
|
|
5625
|
+
cb.warn("Attempted to add invalid keyboard binding", s);
|
|
5760
5626
|
return;
|
|
5761
5627
|
}
|
|
5762
5628
|
typeof t == "function" && (t = {
|
|
@@ -5782,7 +5648,7 @@ class Oo extends Un {
|
|
|
5782
5648
|
if (i && i.scroll !== this.quill.scroll) return;
|
|
5783
5649
|
const a = this.quill.getSelection();
|
|
5784
5650
|
if (a == null || !this.quill.hasFocus()) return;
|
|
5785
|
-
const [u, f] = this.quill.getLine(a.index), [d, m] = this.quill.getLeaf(a.index), [w, y] = a.length === 0 ? [d, m] : this.quill.getLeaf(a.index + a.length), x = d instanceof
|
|
5651
|
+
const [u, f] = this.quill.getLine(a.index), [d, m] = this.quill.getLeaf(a.index), [w, y] = a.length === 0 ? [d, m] : this.quill.getLeaf(a.index + a.length), x = d instanceof oo ? d.value().slice(0, m) : "", A = w instanceof oo ? w.value().slice(y) : "", E = {
|
|
5786
5652
|
collapsed: a.length === 0,
|
|
5787
5653
|
// @ts-expect-error Fix me later
|
|
5788
5654
|
empty: a.length === 0 && u.length() <= 1,
|
|
@@ -5850,7 +5716,7 @@ class Oo extends Un {
|
|
|
5850
5716
|
this.quill.updateContents(s, ie.sources.USER), this.quill.setSelection(e.index + 1, ie.sources.SILENT), this.quill.focus();
|
|
5851
5717
|
}
|
|
5852
5718
|
}
|
|
5853
|
-
const
|
|
5719
|
+
const hb = {
|
|
5854
5720
|
bindings: {
|
|
5855
5721
|
bold: sa("bold"),
|
|
5856
5722
|
italic: sa("italic"),
|
|
@@ -5885,8 +5751,8 @@ const Eb = {
|
|
|
5885
5751
|
e.format.indent != null ? this.quill.format("indent", "-1", ie.sources.USER) : e.format.list != null && this.quill.format("list", !1, ie.sources.USER);
|
|
5886
5752
|
}
|
|
5887
5753
|
},
|
|
5888
|
-
"indent code-block":
|
|
5889
|
-
"outdent code-block":
|
|
5754
|
+
"indent code-block": Au(!0),
|
|
5755
|
+
"outdent code-block": Au(!1),
|
|
5890
5756
|
"remove tab": {
|
|
5891
5757
|
key: "Tab",
|
|
5892
5758
|
shiftKey: !0,
|
|
@@ -5980,7 +5846,7 @@ const Eb = {
|
|
|
5980
5846
|
handler(r) {
|
|
5981
5847
|
const e = this.quill.getModule("table");
|
|
5982
5848
|
if (e) {
|
|
5983
|
-
const [t, n, s, i] = e.getTable(r), a =
|
|
5849
|
+
const [t, n, s, i] = e.getTable(r), a = pb(t, n, s, i);
|
|
5984
5850
|
if (a == null) return;
|
|
5985
5851
|
let u = t.offset();
|
|
5986
5852
|
if (a < 0) {
|
|
@@ -6070,12 +5936,12 @@ const Eb = {
|
|
|
6070
5936
|
"embed left shift": Vi("ArrowLeft", !0),
|
|
6071
5937
|
"embed right": Vi("ArrowRight", !1),
|
|
6072
5938
|
"embed right shift": Vi("ArrowRight", !0),
|
|
6073
|
-
"table down":
|
|
6074
|
-
"table up":
|
|
5939
|
+
"table down": Tu(!1),
|
|
5940
|
+
"table up": Tu(!0)
|
|
6075
5941
|
}
|
|
6076
5942
|
};
|
|
6077
|
-
Oo.DEFAULTS =
|
|
6078
|
-
function
|
|
5943
|
+
Oo.DEFAULTS = hb;
|
|
5944
|
+
function Au(r) {
|
|
6079
5945
|
return {
|
|
6080
5946
|
key: "Tab",
|
|
6081
5947
|
shiftKey: !r,
|
|
@@ -6129,7 +5995,7 @@ function sa(r) {
|
|
|
6129
5995
|
}
|
|
6130
5996
|
};
|
|
6131
5997
|
}
|
|
6132
|
-
function
|
|
5998
|
+
function Tu(r) {
|
|
6133
5999
|
return {
|
|
6134
6000
|
key: r ? "ArrowUp" : "ArrowDown",
|
|
6135
6001
|
collapsed: !0,
|
|
@@ -6152,7 +6018,7 @@ function Lu(r) {
|
|
|
6152
6018
|
}
|
|
6153
6019
|
};
|
|
6154
6020
|
}
|
|
6155
|
-
function
|
|
6021
|
+
function db(r) {
|
|
6156
6022
|
if (typeof r == "string" || typeof r == "number")
|
|
6157
6023
|
r = {
|
|
6158
6024
|
key: r
|
|
@@ -6161,7 +6027,7 @@ function Sb(r) {
|
|
|
6161
6027
|
r = qs(r);
|
|
6162
6028
|
else
|
|
6163
6029
|
return null;
|
|
6164
|
-
return r.shortKey && (r[
|
|
6030
|
+
return r.shortKey && (r[fb] = r.shortKey, delete r.shortKey), r;
|
|
6165
6031
|
}
|
|
6166
6032
|
function hl(r) {
|
|
6167
6033
|
let {
|
|
@@ -6176,48 +6042,48 @@ function hl(r) {
|
|
|
6176
6042
|
}
|
|
6177
6043
|
e.deleteText(t, ie.sources.USER), Object.keys(s).length > 0 && e.formatLine(t.index, 1, s, ie.sources.USER), e.setSelection(t.index, ie.sources.SILENT);
|
|
6178
6044
|
}
|
|
6179
|
-
function
|
|
6045
|
+
function pb(r, e, t, n) {
|
|
6180
6046
|
return e.prev == null && e.next == null ? t.prev == null && t.next == null ? n === 0 ? -1 : 1 : t.prev == null ? -1 : 1 : e.prev == null ? -1 : e.next == null ? 1 : null;
|
|
6181
6047
|
}
|
|
6182
|
-
const
|
|
6183
|
-
Array.from(r.querySelectorAll("br")).filter((e) =>
|
|
6048
|
+
const gb = /font-weight:\s*normal/, mb = ["P", "OL", "UL"], Nu = (r) => r && mb.includes(r.tagName), yb = (r) => {
|
|
6049
|
+
Array.from(r.querySelectorAll("br")).filter((e) => Nu(e.previousElementSibling) && Nu(e.nextElementSibling)).forEach((e) => {
|
|
6184
6050
|
var t;
|
|
6185
6051
|
(t = e.parentNode) == null || t.removeChild(e);
|
|
6186
6052
|
});
|
|
6187
|
-
},
|
|
6053
|
+
}, bb = (r) => {
|
|
6188
6054
|
Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter((e) => {
|
|
6189
6055
|
var t;
|
|
6190
|
-
return (t = e.getAttribute("style")) == null ? void 0 : t.match(
|
|
6056
|
+
return (t = e.getAttribute("style")) == null ? void 0 : t.match(gb);
|
|
6191
6057
|
}).forEach((e) => {
|
|
6192
6058
|
var n;
|
|
6193
6059
|
const t = r.createDocumentFragment();
|
|
6194
6060
|
t.append(...e.childNodes), (n = e.parentNode) == null || n.replaceChild(t, e);
|
|
6195
6061
|
});
|
|
6196
6062
|
};
|
|
6197
|
-
function
|
|
6198
|
-
r.querySelector('[id^="docs-internal-guid-"]') && (
|
|
6063
|
+
function vb(r) {
|
|
6064
|
+
r.querySelector('[id^="docs-internal-guid-"]') && (bb(r), yb(r));
|
|
6199
6065
|
}
|
|
6200
|
-
const
|
|
6201
|
-
const t = r.getAttribute("style"), n = t == null ? void 0 : t.match(
|
|
6066
|
+
const wb = /\bmso-list:[^;]*ignore/i, xb = /\bmso-list:[^;]*\bl(\d+)/i, Eb = /\bmso-list:[^;]*\blevel(\d+)/i, Sb = (r, e) => {
|
|
6067
|
+
const t = r.getAttribute("style"), n = t == null ? void 0 : t.match(xb);
|
|
6202
6068
|
if (!n)
|
|
6203
6069
|
return null;
|
|
6204
|
-
const s = Number(n[1]), i = t == null ? void 0 : t.match(
|
|
6070
|
+
const s = Number(n[1]), i = t == null ? void 0 : t.match(Eb), a = i ? Number(i[1]) : 1, u = new RegExp(`@list l${s}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`, "i"), f = e.match(u), d = f && f[1] === "bullet" ? "bullet" : "ordered";
|
|
6205
6071
|
return {
|
|
6206
6072
|
id: s,
|
|
6207
6073
|
indent: a,
|
|
6208
6074
|
type: d,
|
|
6209
6075
|
element: r
|
|
6210
6076
|
};
|
|
6211
|
-
},
|
|
6077
|
+
}, Ob = (r) => {
|
|
6212
6078
|
var a, u;
|
|
6213
6079
|
const e = Array.from(r.querySelectorAll("[style*=mso-list]")), t = [], n = [];
|
|
6214
6080
|
e.forEach((f) => {
|
|
6215
|
-
(f.getAttribute("style") || "").match(
|
|
6081
|
+
(f.getAttribute("style") || "").match(wb) ? t.push(f) : n.push(f);
|
|
6216
6082
|
}), t.forEach((f) => {
|
|
6217
6083
|
var d;
|
|
6218
6084
|
return (d = f.parentNode) == null ? void 0 : d.removeChild(f);
|
|
6219
6085
|
});
|
|
6220
|
-
const s = r.documentElement.innerHTML, i = n.map((f) =>
|
|
6086
|
+
const s = r.documentElement.innerHTML, i = n.map((f) => Sb(f, s)).filter((f) => f);
|
|
6221
6087
|
for (; i.length; ) {
|
|
6222
6088
|
const f = [];
|
|
6223
6089
|
let d = i.shift();
|
|
@@ -6240,17 +6106,17 @@ const Lb = /\bmso-list:[^;]*ignore/i, kb = /\bmso-list:[^;]*\bl(\d+)/i, Rb = /\b
|
|
|
6240
6106
|
});
|
|
6241
6107
|
}
|
|
6242
6108
|
};
|
|
6243
|
-
function
|
|
6244
|
-
r.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" &&
|
|
6109
|
+
function Ab(r) {
|
|
6110
|
+
r.documentElement.getAttribute("xmlns:w") === "urn:schemas-microsoft-com:office:word" && Ob(r);
|
|
6245
6111
|
}
|
|
6246
|
-
const
|
|
6247
|
-
r.documentElement &&
|
|
6112
|
+
const Tb = [Ab, vb], Nb = (r) => {
|
|
6113
|
+
r.documentElement && Tb.forEach((e) => {
|
|
6248
6114
|
e(r);
|
|
6249
6115
|
});
|
|
6250
|
-
},
|
|
6251
|
-
class
|
|
6116
|
+
}, _b = wr("quill:clipboard"), Cb = [[Node.TEXT_NODE, Ub], [Node.TEXT_NODE, Cu], ["br", qb], [Node.ELEMENT_NODE, Cu], [Node.ELEMENT_NODE, Pb], [Node.ELEMENT_NODE, Rb], [Node.ELEMENT_NODE, Db], ["li", $b], ["ol, ul", Mb], ["pre", jb], ["tr", Bb], ["b", ia("bold")], ["i", ia("italic")], ["strike", ia("strike")], ["style", Ib]], Lb = [ob, Of].reduce((r, e) => (r[e.keyName] = e, r), {}), _u = [Ef, ul, ll, Tf, Cf, kf].reduce((r, e) => (r[e.keyName] = e, r), {});
|
|
6117
|
+
class Rf extends Un {
|
|
6252
6118
|
constructor(e, t) {
|
|
6253
|
-
super(e, t), this.quill.root.addEventListener("copy", (n) => this.onCaptureCopy(n, !1)), this.quill.root.addEventListener("cut", (n) => this.onCaptureCopy(n, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [],
|
|
6119
|
+
super(e, t), this.quill.root.addEventListener("copy", (n) => this.onCaptureCopy(n, !1)), this.quill.root.addEventListener("cut", (n) => this.onCaptureCopy(n, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], Cb.concat(this.options.matchers ?? []).forEach((n) => {
|
|
6254
6120
|
let [s, i] = n;
|
|
6255
6121
|
this.addMatcher(s, i);
|
|
6256
6122
|
});
|
|
@@ -6274,7 +6140,7 @@ class qf extends Un {
|
|
|
6274
6140
|
`) && (i.ops[i.ops.length - 1].attributes == null || s.table) ? i.compose(new Re().retain(i.length() - 1).delete(1)) : i;
|
|
6275
6141
|
}
|
|
6276
6142
|
normalizeHTML(e) {
|
|
6277
|
-
|
|
6143
|
+
Nb(e);
|
|
6278
6144
|
}
|
|
6279
6145
|
convertHTML(e) {
|
|
6280
6146
|
const t = new DOMParser().parseFromString(e, "text/html");
|
|
@@ -6366,7 +6232,7 @@ class qf extends Un {
|
|
|
6366
6232
|
text: n,
|
|
6367
6233
|
html: s
|
|
6368
6234
|
}, i);
|
|
6369
|
-
|
|
6235
|
+
_b.log("onPaste", a, {
|
|
6370
6236
|
text: n,
|
|
6371
6237
|
html: s
|
|
6372
6238
|
});
|
|
@@ -6397,7 +6263,7 @@ class qf extends Un {
|
|
|
6397
6263
|
}), [n, s];
|
|
6398
6264
|
}
|
|
6399
6265
|
}
|
|
6400
|
-
Ae(
|
|
6266
|
+
Ae(Rf, "DEFAULTS", {
|
|
6401
6267
|
matchers: []
|
|
6402
6268
|
});
|
|
6403
6269
|
function fs(r, e, t, n) {
|
|
@@ -6428,12 +6294,12 @@ function jr(r, e) {
|
|
|
6428
6294
|
const t = e.query(r);
|
|
6429
6295
|
return t && t.prototype instanceof an ? !1 : ["address", "article", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "iframe", "li", "main", "nav", "ol", "output", "p", "pre", "section", "table", "td", "tr", "ul", "video"].includes(r.tagName.toLowerCase());
|
|
6430
6296
|
}
|
|
6431
|
-
function
|
|
6297
|
+
function kb(r, e) {
|
|
6432
6298
|
return r.previousElementSibling && r.nextElementSibling && !jr(r.previousElementSibling, e) && !jr(r.nextElementSibling, e);
|
|
6433
6299
|
}
|
|
6434
6300
|
const Wi = /* @__PURE__ */ new WeakMap();
|
|
6435
|
-
function
|
|
6436
|
-
return r == null ? !1 : (Wi.has(r) || (r.tagName === "PRE" ? Wi.set(r, !0) : Wi.set(r,
|
|
6301
|
+
function Pf(r) {
|
|
6302
|
+
return r == null ? !1 : (Wi.has(r) || (r.tagName === "PRE" ? Wi.set(r, !0) : Wi.set(r, Pf(r.parentNode))), Wi.get(r));
|
|
6437
6303
|
}
|
|
6438
6304
|
function dl(r, e, t, n, s) {
|
|
6439
6305
|
return e.nodeType === e.TEXT_NODE ? n.reduce((i, a) => a(e, i, r), new Re()) : e.nodeType === e.ELEMENT_NODE ? Array.from(e.childNodes || []).reduce((i, a) => {
|
|
@@ -6444,17 +6310,17 @@ function dl(r, e, t, n, s) {
|
|
|
6444
6310
|
function ia(r) {
|
|
6445
6311
|
return (e, t, n) => fs(t, r, !0, n);
|
|
6446
6312
|
}
|
|
6447
|
-
function
|
|
6313
|
+
function Rb(r, e, t) {
|
|
6448
6314
|
const n = ir.keys(r), s = Dn.keys(r), i = Fr.keys(r), a = {};
|
|
6449
6315
|
return n.concat(s).concat(i).forEach((u) => {
|
|
6450
6316
|
let f = t.query(u, Pe.ATTRIBUTE);
|
|
6451
|
-
f != null && (a[f.attrName] = f.value(r), a[f.attrName]) || (f =
|
|
6317
|
+
f != null && (a[f.attrName] = f.value(r), a[f.attrName]) || (f = Lb[u], f != null && (f.attrName === u || f.keyName === u) && (a[f.attrName] = f.value(r) || void 0), f = _u[u], f != null && (f.attrName === u || f.keyName === u) && (f = _u[u], a[f.attrName] = f.value(r) || void 0));
|
|
6452
6318
|
}), Object.entries(a).reduce((u, f) => {
|
|
6453
6319
|
let [d, m] = f;
|
|
6454
6320
|
return fs(u, d, m, t);
|
|
6455
6321
|
}, e);
|
|
6456
6322
|
}
|
|
6457
|
-
function
|
|
6323
|
+
function Pb(r, e, t) {
|
|
6458
6324
|
const n = t.query(r);
|
|
6459
6325
|
if (n == null) return e;
|
|
6460
6326
|
if (n.prototype instanceof an) {
|
|
@@ -6467,19 +6333,19 @@ function Kb(r, e, t) {
|
|
|
6467
6333
|
return fs(e, n.blotName, n.formats(r, t), t);
|
|
6468
6334
|
return e;
|
|
6469
6335
|
}
|
|
6470
|
-
function
|
|
6336
|
+
function qb(r, e) {
|
|
6471
6337
|
return Oi(e, `
|
|
6472
6338
|
`) || e.insert(`
|
|
6473
6339
|
`), e;
|
|
6474
6340
|
}
|
|
6475
|
-
function
|
|
6341
|
+
function jb(r, e, t) {
|
|
6476
6342
|
const n = t.query("code-block"), s = n && "formats" in n && typeof n.formats == "function" ? n.formats(r, t) : !0;
|
|
6477
6343
|
return fs(e, "code-block", s, t);
|
|
6478
6344
|
}
|
|
6479
|
-
function
|
|
6345
|
+
function Ib() {
|
|
6480
6346
|
return new Re();
|
|
6481
6347
|
}
|
|
6482
|
-
function
|
|
6348
|
+
function $b(r, e, t) {
|
|
6483
6349
|
const n = t.query(r);
|
|
6484
6350
|
if (n == null || // @ts-expect-error
|
|
6485
6351
|
n.blotName !== "list" || !Oi(e, `
|
|
@@ -6493,13 +6359,13 @@ function Wb(r, e, t) {
|
|
|
6493
6359
|
...u.attributes || {}
|
|
6494
6360
|
}) : a, new Re());
|
|
6495
6361
|
}
|
|
6496
|
-
function
|
|
6362
|
+
function Mb(r, e, t) {
|
|
6497
6363
|
const n = r;
|
|
6498
6364
|
let s = n.tagName === "OL" ? "ordered" : "bullet";
|
|
6499
6365
|
const i = n.getAttribute("data-checked");
|
|
6500
6366
|
return i && (s = i === "true" ? "checked" : "unchecked"), fs(e, "list", s, t);
|
|
6501
6367
|
}
|
|
6502
|
-
function
|
|
6368
|
+
function Cu(r, e, t) {
|
|
6503
6369
|
if (!Oi(e, `
|
|
6504
6370
|
`)) {
|
|
6505
6371
|
if (jr(r, t) && (r.childNodes.length > 0 || r instanceof HTMLParagraphElement))
|
|
@@ -6521,7 +6387,7 @@ function Pu(r, e, t) {
|
|
|
6521
6387
|
}
|
|
6522
6388
|
return e;
|
|
6523
6389
|
}
|
|
6524
|
-
function
|
|
6390
|
+
function Db(r, e, t) {
|
|
6525
6391
|
var i;
|
|
6526
6392
|
const n = {}, s = r.style || {};
|
|
6527
6393
|
return s.fontStyle === "italic" && (n.italic = !0), s.textDecoration === "underline" && (n.underline = !0), s.textDecoration === "line-through" && (n.strike = !0), ((i = s.fontWeight) != null && i.startsWith("bold") || // @ts-expect-error Fix me later
|
|
@@ -6530,7 +6396,7 @@ function Gb(r, e, t) {
|
|
|
6530
6396
|
return fs(a, f, d, t);
|
|
6531
6397
|
}, e), parseFloat(s.textIndent || 0) > 0 ? new Re().insert(" ").concat(e) : e;
|
|
6532
6398
|
}
|
|
6533
|
-
function
|
|
6399
|
+
function Bb(r, e, t) {
|
|
6534
6400
|
var s, i;
|
|
6535
6401
|
const n = ((s = r.parentElement) == null ? void 0 : s.tagName) === "TABLE" ? r.parentElement : (i = r.parentElement) == null ? void 0 : i.parentElement;
|
|
6536
6402
|
if (n != null) {
|
|
@@ -6539,20 +6405,20 @@ function Jb(r, e, t) {
|
|
|
6539
6405
|
}
|
|
6540
6406
|
return e;
|
|
6541
6407
|
}
|
|
6542
|
-
function
|
|
6408
|
+
function Ub(r, e, t) {
|
|
6543
6409
|
var s;
|
|
6544
6410
|
let n = r.data;
|
|
6545
6411
|
if (((s = r.parentElement) == null ? void 0 : s.tagName) === "O:P")
|
|
6546
6412
|
return e.insert(n.trim());
|
|
6547
|
-
if (!
|
|
6413
|
+
if (!Pf(r)) {
|
|
6548
6414
|
if (n.trim().length === 0 && n.includes(`
|
|
6549
|
-
`) && !
|
|
6415
|
+
`) && !kb(r, t))
|
|
6550
6416
|
return e;
|
|
6551
6417
|
n = n.replace(/[^\S\u00a0]/g, " "), n = n.replace(/ {2,}/g, " "), (r.previousSibling == null && r.parentElement != null && jr(r.parentElement, t) || r.previousSibling instanceof Element && jr(r.previousSibling, t)) && (n = n.replace(/^ /, "")), (r.nextSibling == null && r.parentElement != null && jr(r.parentElement, t) || r.nextSibling instanceof Element && jr(r.nextSibling, t)) && (n = n.replace(/ $/, "")), n = n.replaceAll(" ", " ");
|
|
6552
6418
|
}
|
|
6553
6419
|
return e.insert(n);
|
|
6554
6420
|
}
|
|
6555
|
-
class
|
|
6421
|
+
class qf extends Un {
|
|
6556
6422
|
constructor(t, n) {
|
|
6557
6423
|
super(t, n);
|
|
6558
6424
|
Ae(this, "lastRecorded", 0);
|
|
@@ -6619,7 +6485,7 @@ class If extends Un {
|
|
|
6619
6485
|
this.change("redo", "undo");
|
|
6620
6486
|
}
|
|
6621
6487
|
transform(t) {
|
|
6622
|
-
|
|
6488
|
+
Lu(this.stack.undo, t), Lu(this.stack.redo, t);
|
|
6623
6489
|
}
|
|
6624
6490
|
undo() {
|
|
6625
6491
|
this.change("undo", "redo");
|
|
@@ -6628,17 +6494,17 @@ class If extends Un {
|
|
|
6628
6494
|
if (t.range)
|
|
6629
6495
|
this.quill.setSelection(t.range, ie.sources.USER);
|
|
6630
6496
|
else {
|
|
6631
|
-
const n =
|
|
6497
|
+
const n = Kb(this.quill.scroll, t.delta);
|
|
6632
6498
|
this.quill.setSelection(n, ie.sources.USER);
|
|
6633
6499
|
}
|
|
6634
6500
|
}
|
|
6635
6501
|
}
|
|
6636
|
-
Ae(
|
|
6502
|
+
Ae(qf, "DEFAULTS", {
|
|
6637
6503
|
delay: 1e3,
|
|
6638
6504
|
maxStack: 100,
|
|
6639
6505
|
userOnly: !1
|
|
6640
6506
|
});
|
|
6641
|
-
function
|
|
6507
|
+
function Lu(r, e) {
|
|
6642
6508
|
let t = e;
|
|
6643
6509
|
for (let n = r.length - 1; n >= 0; n -= 1) {
|
|
6644
6510
|
const s = r[n];
|
|
@@ -6648,15 +6514,15 @@ function qu(r, e) {
|
|
|
6648
6514
|
}, t = s.delta.transform(t), r[n].delta.length() === 0 && r.splice(n, 1);
|
|
6649
6515
|
}
|
|
6650
6516
|
}
|
|
6651
|
-
function
|
|
6517
|
+
function Fb(r, e) {
|
|
6652
6518
|
const t = e.ops[e.ops.length - 1];
|
|
6653
6519
|
return t == null ? !1 : t.insert != null ? typeof t.insert == "string" && t.insert.endsWith(`
|
|
6654
6520
|
`) : t.attributes != null ? Object.keys(t.attributes).some((n) => r.query(n, Pe.BLOCK) != null) : !1;
|
|
6655
6521
|
}
|
|
6656
|
-
function
|
|
6522
|
+
function Kb(r, e) {
|
|
6657
6523
|
const t = e.reduce((s, i) => s + (i.delete || 0), 0);
|
|
6658
6524
|
let n = e.length() - t;
|
|
6659
|
-
return
|
|
6525
|
+
return Fb(r, e) && (n -= 1), n;
|
|
6660
6526
|
}
|
|
6661
6527
|
function Na(r, e) {
|
|
6662
6528
|
if (!r) return r;
|
|
@@ -6666,7 +6532,7 @@ function Na(r, e) {
|
|
|
6666
6532
|
length: n - t
|
|
6667
6533
|
};
|
|
6668
6534
|
}
|
|
6669
|
-
class
|
|
6535
|
+
class jf extends Un {
|
|
6670
6536
|
constructor(e, t) {
|
|
6671
6537
|
super(e, t), e.root.addEventListener("drop", (n) => {
|
|
6672
6538
|
var a;
|
|
@@ -6693,7 +6559,7 @@ class $f extends Un {
|
|
|
6693
6559
|
}), n.length > 0 && this.options.handler.call(this, e, n);
|
|
6694
6560
|
}
|
|
6695
6561
|
}
|
|
6696
|
-
|
|
6562
|
+
jf.DEFAULTS = {
|
|
6697
6563
|
mimetypes: ["image/png", "image/jpeg"],
|
|
6698
6564
|
handler(r, e) {
|
|
6699
6565
|
if (!this.quill.scroll.query("image"))
|
|
@@ -6712,8 +6578,8 @@ $f.DEFAULTS = {
|
|
|
6712
6578
|
});
|
|
6713
6579
|
}
|
|
6714
6580
|
};
|
|
6715
|
-
const
|
|
6716
|
-
class
|
|
6581
|
+
const Hb = ["insertText", "insertReplacementText"];
|
|
6582
|
+
class zb extends Un {
|
|
6717
6583
|
constructor(e, t) {
|
|
6718
6584
|
super(e, t), e.root.addEventListener("beforeinput", (n) => {
|
|
6719
6585
|
this.handleBeforeInput(n);
|
|
@@ -6738,12 +6604,12 @@ class t1 extends Un {
|
|
|
6738
6604
|
return this.quill.setSelection(e.index + t.length, 0, ie.sources.SILENT), !0;
|
|
6739
6605
|
}
|
|
6740
6606
|
handleBeforeInput(e) {
|
|
6741
|
-
if (this.quill.composition.isComposing || e.defaultPrevented || !
|
|
6607
|
+
if (this.quill.composition.isComposing || e.defaultPrevented || !Hb.includes(e.inputType))
|
|
6742
6608
|
return;
|
|
6743
6609
|
const t = e.getTargetRanges ? e.getTargetRanges()[0] : null;
|
|
6744
6610
|
if (!t || t.collapsed === !0)
|
|
6745
6611
|
return;
|
|
6746
|
-
const n =
|
|
6612
|
+
const n = Vb(e);
|
|
6747
6613
|
if (n == null)
|
|
6748
6614
|
return;
|
|
6749
6615
|
const s = this.quill.selection.normalizeNative(t), i = s ? this.quill.selection.normalizedToRange(s) : null;
|
|
@@ -6754,13 +6620,13 @@ class t1 extends Un {
|
|
|
6754
6620
|
e && this.replaceText(e);
|
|
6755
6621
|
}
|
|
6756
6622
|
}
|
|
6757
|
-
function
|
|
6623
|
+
function Vb(r) {
|
|
6758
6624
|
var e;
|
|
6759
6625
|
return typeof r.data == "string" ? r.data : (e = r.dataTransfer) != null && e.types.includes("text/plain") ? r.dataTransfer.getData("text/plain") : null;
|
|
6760
6626
|
}
|
|
6761
|
-
const
|
|
6762
|
-
r.key === "ArrowUp" || r.key === "ArrowDown" || r.key === "Home" ||
|
|
6763
|
-
class
|
|
6627
|
+
const Wb = /Mac/i.test(navigator.platform), Yb = 100, Gb = (r) => !!(r.key === "ArrowLeft" || r.key === "ArrowRight" || // RTL scripts or moving from the end of the previous line
|
|
6628
|
+
r.key === "ArrowUp" || r.key === "ArrowDown" || r.key === "Home" || Wb && r.key === "a" && r.ctrlKey === !0);
|
|
6629
|
+
class Jb extends Un {
|
|
6764
6630
|
constructor(t, n) {
|
|
6765
6631
|
super(t, n);
|
|
6766
6632
|
Ae(this, "isListening", !1);
|
|
@@ -6786,7 +6652,7 @@ class o1 extends Un {
|
|
|
6786
6652
|
}
|
|
6787
6653
|
handleNavigationShortcuts() {
|
|
6788
6654
|
this.quill.root.addEventListener("keydown", (t) => {
|
|
6789
|
-
!t.defaultPrevented &&
|
|
6655
|
+
!t.defaultPrevented && Gb(t) && this.ensureListeningToSelectionChange();
|
|
6790
6656
|
});
|
|
6791
6657
|
}
|
|
6792
6658
|
/**
|
|
@@ -6796,7 +6662,7 @@ class o1 extends Un {
|
|
|
6796
6662
|
* the selection within the handler of a `selectionchange` event.
|
|
6797
6663
|
*/
|
|
6798
6664
|
ensureListeningToSelectionChange() {
|
|
6799
|
-
if (this.selectionChangeDeadline = Date.now() +
|
|
6665
|
+
if (this.selectionChangeDeadline = Date.now() + Yb, this.isListening) return;
|
|
6800
6666
|
this.isListening = !0;
|
|
6801
6667
|
const t = () => {
|
|
6802
6668
|
this.isListening = !1, Date.now() <= this.selectionChangeDeadline && this.handleSelectionChange();
|
|
@@ -6826,14 +6692,14 @@ ie.register({
|
|
|
6826
6692
|
"blots/inline": or,
|
|
6827
6693
|
"blots/scroll": Ps,
|
|
6828
6694
|
"blots/text": Mn,
|
|
6829
|
-
"modules/clipboard":
|
|
6830
|
-
"modules/history":
|
|
6695
|
+
"modules/clipboard": Rf,
|
|
6696
|
+
"modules/history": qf,
|
|
6831
6697
|
"modules/keyboard": Oo,
|
|
6832
|
-
"modules/uploader":
|
|
6833
|
-
"modules/input":
|
|
6834
|
-
"modules/uiNode":
|
|
6698
|
+
"modules/uploader": jf,
|
|
6699
|
+
"modules/input": zb,
|
|
6700
|
+
"modules/uiNode": Jb
|
|
6835
6701
|
});
|
|
6836
|
-
class
|
|
6702
|
+
class Zb extends Dn {
|
|
6837
6703
|
add(e, t) {
|
|
6838
6704
|
let n = 0;
|
|
6839
6705
|
if (t === "+1" || t === "-1") {
|
|
@@ -6849,7 +6715,7 @@ class a1 extends Dn {
|
|
|
6849
6715
|
return parseInt(super.value(e), 10) || void 0;
|
|
6850
6716
|
}
|
|
6851
6717
|
}
|
|
6852
|
-
const
|
|
6718
|
+
const Xb = new Zb("indent", "ql-indent", {
|
|
6853
6719
|
scope: Pe.BLOCK,
|
|
6854
6720
|
// @ts-expect-error
|
|
6855
6721
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
@@ -6919,14 +6785,14 @@ class Ir extends or {
|
|
|
6919
6785
|
return e.getAttribute("href");
|
|
6920
6786
|
}
|
|
6921
6787
|
static sanitize(e) {
|
|
6922
|
-
return
|
|
6788
|
+
return If(e, this.PROTOCOL_WHITELIST) ? e : this.SANITIZED_URL;
|
|
6923
6789
|
}
|
|
6924
6790
|
format(e, t) {
|
|
6925
6791
|
e !== this.statics.blotName || !t ? super.format(e, t) : this.domNode.setAttribute("href", this.constructor.sanitize(t));
|
|
6926
6792
|
}
|
|
6927
6793
|
}
|
|
6928
6794
|
Ae(Ir, "blotName", "link"), Ae(Ir, "tagName", "A"), Ae(Ir, "SANITIZED_URL", "about:blank"), Ae(Ir, "PROTOCOL_WHITELIST", ["http", "https", "mailto", "tel", "sms"]);
|
|
6929
|
-
function
|
|
6795
|
+
function If(r, e) {
|
|
6930
6796
|
const t = document.createElement("a");
|
|
6931
6797
|
t.href = r;
|
|
6932
6798
|
const n = t.href.slice(0, t.href.indexOf(":"));
|
|
@@ -6969,37 +6835,37 @@ class Xi extends ol {
|
|
|
6969
6835
|
}
|
|
6970
6836
|
}
|
|
6971
6837
|
Ae(Xi, "blotName", "formula"), Ae(Xi, "className", "ql-formula"), Ae(Xi, "tagName", "SPAN");
|
|
6972
|
-
const
|
|
6838
|
+
const ku = ["alt", "height", "width"];
|
|
6973
6839
|
class qa extends an {
|
|
6974
6840
|
static create(e) {
|
|
6975
6841
|
const t = super.create(e);
|
|
6976
6842
|
return typeof e == "string" && t.setAttribute("src", this.sanitize(e)), t;
|
|
6977
6843
|
}
|
|
6978
6844
|
static formats(e) {
|
|
6979
|
-
return
|
|
6845
|
+
return ku.reduce((t, n) => (e.hasAttribute(n) && (t[n] = e.getAttribute(n)), t), {});
|
|
6980
6846
|
}
|
|
6981
6847
|
static match(e) {
|
|
6982
6848
|
return /\.(jpe?g|gif|png)$/.test(e) || /^data:image\/.+;base64/.test(e);
|
|
6983
6849
|
}
|
|
6984
6850
|
static sanitize(e) {
|
|
6985
|
-
return
|
|
6851
|
+
return If(e, ["http", "https", "data"]) ? e : "//:0";
|
|
6986
6852
|
}
|
|
6987
6853
|
static value(e) {
|
|
6988
6854
|
return e.getAttribute("src");
|
|
6989
6855
|
}
|
|
6990
6856
|
format(e, t) {
|
|
6991
|
-
|
|
6857
|
+
ku.indexOf(e) > -1 ? t ? this.domNode.setAttribute(e, t) : this.domNode.removeAttribute(e) : super.format(e, t);
|
|
6992
6858
|
}
|
|
6993
6859
|
}
|
|
6994
6860
|
Ae(qa, "blotName", "image"), Ae(qa, "tagName", "IMG");
|
|
6995
|
-
const
|
|
6861
|
+
const Ru = ["height", "width"];
|
|
6996
6862
|
class Qi extends On {
|
|
6997
6863
|
static create(e) {
|
|
6998
6864
|
const t = super.create(e);
|
|
6999
6865
|
return t.setAttribute("frameborder", "0"), t.setAttribute("allowfullscreen", "true"), t.setAttribute("src", this.sanitize(e)), t;
|
|
7000
6866
|
}
|
|
7001
6867
|
static formats(e) {
|
|
7002
|
-
return
|
|
6868
|
+
return Ru.reduce((t, n) => (e.hasAttribute(n) && (t[n] = e.getAttribute(n)), t), {});
|
|
7003
6869
|
}
|
|
7004
6870
|
static sanitize(e) {
|
|
7005
6871
|
return Ir.sanitize(e);
|
|
@@ -7008,7 +6874,7 @@ class Qi extends On {
|
|
|
7008
6874
|
return e.getAttribute("src");
|
|
7009
6875
|
}
|
|
7010
6876
|
format(e, t) {
|
|
7011
|
-
|
|
6877
|
+
Ru.indexOf(e) > -1 ? t ? this.domNode.setAttribute(e, t) : this.domNode.removeAttribute(e) : super.format(e, t);
|
|
7012
6878
|
}
|
|
7013
6879
|
html() {
|
|
7014
6880
|
const {
|
|
@@ -7079,7 +6945,7 @@ class ui extends cs {
|
|
|
7079
6945
|
`, i = Sn.formats(this.children.head.domNode);
|
|
7080
6946
|
if (t || this.forceNext || this.cachedText !== s) {
|
|
7081
6947
|
if (s.trim().length > 0 || this.cachedText == null) {
|
|
7082
|
-
const a = this.children.reduce((f, d) => f.concat(
|
|
6948
|
+
const a = this.children.reduce((f, d) => f.concat(vf(d, !1)), new Re()), u = e(s, i);
|
|
7083
6949
|
a.diff(u).reduce((f, d) => {
|
|
7084
6950
|
let {
|
|
7085
6951
|
retain: m,
|
|
@@ -7109,7 +6975,7 @@ ${So(this.code(e, t))}
|
|
|
7109
6975
|
ui.allowedChildren = [Sn];
|
|
7110
6976
|
Sn.requiredContainer = ui;
|
|
7111
6977
|
Sn.allowedChildren = [yr, Ds, Mn, Bn];
|
|
7112
|
-
const
|
|
6978
|
+
const Qb = (r, e, t) => {
|
|
7113
6979
|
if (typeof r.versionString == "string") {
|
|
7114
6980
|
const n = r.versionString.split(".")[0];
|
|
7115
6981
|
if (parseInt(n, 10) >= 11)
|
|
@@ -7119,7 +6985,7 @@ const u1 = (r, e, t) => {
|
|
|
7119
6985
|
}
|
|
7120
6986
|
return r.highlight(e, t).value;
|
|
7121
6987
|
};
|
|
7122
|
-
class
|
|
6988
|
+
class $f extends Un {
|
|
7123
6989
|
static register() {
|
|
7124
6990
|
ie.register(yr, !0), ie.register(Sn, !0), ie.register(ui, !0);
|
|
7125
6991
|
}
|
|
@@ -7175,7 +7041,7 @@ class Df extends Un {
|
|
|
7175
7041
|
[Ut.blotName]: t
|
|
7176
7042
|
}), s.insert(i)), new Re());
|
|
7177
7043
|
const n = this.quill.root.ownerDocument.createElement("div");
|
|
7178
|
-
return n.classList.add(Ut.className), n.innerHTML =
|
|
7044
|
+
return n.classList.add(Ut.className), n.innerHTML = Qb(this.options.hljs, t, e), dl(this.quill.scroll, n, [(s, i) => {
|
|
7179
7045
|
const a = ai.value(s);
|
|
7180
7046
|
return a ? i.compose(new Re().retain(i.length(), {
|
|
7181
7047
|
[yr.blotName]: a
|
|
@@ -7187,7 +7053,7 @@ class Df extends Un {
|
|
|
7187
7053
|
}), a.insert(u)), i)], /* @__PURE__ */ new WeakMap());
|
|
7188
7054
|
}
|
|
7189
7055
|
}
|
|
7190
|
-
|
|
7056
|
+
$f.DEFAULTS = {
|
|
7191
7057
|
hljs: window.hljs,
|
|
7192
7058
|
interval: 1e3,
|
|
7193
7059
|
languages: [{
|
|
@@ -7345,7 +7211,7 @@ In.requiredContainer = br;
|
|
|
7345
7211
|
function pl() {
|
|
7346
7212
|
return `row-${Math.random().toString(36).slice(2, 6)}`;
|
|
7347
7213
|
}
|
|
7348
|
-
let
|
|
7214
|
+
let e1 = class extends Un {
|
|
7349
7215
|
static register() {
|
|
7350
7216
|
ie.register(In), ie.register(br), ie.register(sr), ie.register(Us);
|
|
7351
7217
|
}
|
|
@@ -7430,16 +7296,16 @@ let c1 = class extends Un {
|
|
|
7430
7296
|
});
|
|
7431
7297
|
}
|
|
7432
7298
|
};
|
|
7433
|
-
const
|
|
7299
|
+
const Pu = wr("quill:toolbar");
|
|
7434
7300
|
class gl extends Un {
|
|
7435
7301
|
constructor(e, t) {
|
|
7436
7302
|
var n, s;
|
|
7437
7303
|
if (super(e, t), Array.isArray(this.options.container)) {
|
|
7438
7304
|
const i = document.createElement("div");
|
|
7439
|
-
i.setAttribute("role", "toolbar"),
|
|
7305
|
+
i.setAttribute("role", "toolbar"), t1(i, this.options.container), (s = (n = e.container) == null ? void 0 : n.parentNode) == null || s.insertBefore(i, e.container), this.container = i;
|
|
7440
7306
|
} else typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
|
|
7441
7307
|
if (!(this.container instanceof HTMLElement)) {
|
|
7442
|
-
|
|
7308
|
+
Pu.error("Container required for toolbar", this.options);
|
|
7443
7309
|
return;
|
|
7444
7310
|
}
|
|
7445
7311
|
this.container.classList.add("ql-toolbar"), this.controls = [], this.handlers = {}, this.options.handlers && Object.keys(this.options.handlers).forEach((i) => {
|
|
@@ -7460,7 +7326,7 @@ class gl extends Un {
|
|
|
7460
7326
|
let t = Array.from(e.classList).find((s) => s.indexOf("ql-") === 0);
|
|
7461
7327
|
if (!t) return;
|
|
7462
7328
|
if (t = t.slice(3), e.tagName === "BUTTON" && e.setAttribute("type", "button"), this.handlers[t] == null && this.quill.scroll.query(t) == null) {
|
|
7463
|
-
|
|
7329
|
+
Pu.warn("ignoring attaching to nonexistent format", t, e);
|
|
7464
7330
|
return;
|
|
7465
7331
|
}
|
|
7466
7332
|
const n = e.tagName === "SELECT" ? "change" : "click";
|
|
@@ -7517,24 +7383,24 @@ class gl extends Un {
|
|
|
7517
7383
|
}
|
|
7518
7384
|
}
|
|
7519
7385
|
gl.DEFAULTS = {};
|
|
7520
|
-
function
|
|
7386
|
+
function qu(r, e, t) {
|
|
7521
7387
|
const n = document.createElement("button");
|
|
7522
7388
|
n.setAttribute("type", "button"), n.classList.add(`ql-${e}`), n.setAttribute("aria-pressed", "false"), t != null ? (n.value = t, n.setAttribute("aria-label", `${e}: ${t}`)) : n.setAttribute("aria-label", e), r.appendChild(n);
|
|
7523
7389
|
}
|
|
7524
|
-
function
|
|
7390
|
+
function t1(r, e) {
|
|
7525
7391
|
Array.isArray(e[0]) || (e = [e]), e.forEach((t) => {
|
|
7526
7392
|
const n = document.createElement("span");
|
|
7527
7393
|
n.classList.add("ql-formats"), t.forEach((s) => {
|
|
7528
7394
|
if (typeof s == "string")
|
|
7529
|
-
|
|
7395
|
+
qu(n, s);
|
|
7530
7396
|
else {
|
|
7531
7397
|
const i = Object.keys(s)[0], a = s[i];
|
|
7532
|
-
Array.isArray(a) ?
|
|
7398
|
+
Array.isArray(a) ? n1(n, i, a) : qu(n, i, a);
|
|
7533
7399
|
}
|
|
7534
7400
|
}), r.appendChild(n);
|
|
7535
7401
|
});
|
|
7536
7402
|
}
|
|
7537
|
-
function
|
|
7403
|
+
function n1(r, e, t) {
|
|
7538
7404
|
const n = document.createElement("select");
|
|
7539
7405
|
n.classList.add(`ql-${e}`), t.forEach((s) => {
|
|
7540
7406
|
const i = document.createElement("option");
|
|
@@ -7577,56 +7443,56 @@ gl.DEFAULTS = {
|
|
|
7577
7443
|
}
|
|
7578
7444
|
}
|
|
7579
7445
|
};
|
|
7580
|
-
const d1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', p1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', g1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', m1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', y1 = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', b1 = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', v1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', w1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Du = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', x1 = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', E1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', S1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', O1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', A1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', T1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', N1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', _1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', C1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', L1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', k1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', R1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', P1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', q1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', j1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', I1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', $1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', M1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', D1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', B1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', U1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', F1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', K1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', H1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', vi = {
|
|
7446
|
+
const r1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', s1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', i1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', o1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', a1 = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', l1 = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', u1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', c1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', ju = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', f1 = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', h1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', d1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', p1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', g1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', m1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', y1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', b1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', v1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', w1 = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', x1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', E1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', S1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', O1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', A1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', T1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', N1 = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', _1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', C1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', L1 = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', k1 = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', R1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', P1 = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', q1 = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', vi = {
|
|
7581
7447
|
align: {
|
|
7582
|
-
"":
|
|
7583
|
-
center:
|
|
7584
|
-
right:
|
|
7585
|
-
justify:
|
|
7448
|
+
"": r1,
|
|
7449
|
+
center: s1,
|
|
7450
|
+
right: i1,
|
|
7451
|
+
justify: o1
|
|
7586
7452
|
},
|
|
7587
|
-
background:
|
|
7588
|
-
blockquote:
|
|
7589
|
-
bold:
|
|
7590
|
-
clean:
|
|
7591
|
-
code:
|
|
7592
|
-
"code-block":
|
|
7593
|
-
color:
|
|
7453
|
+
background: a1,
|
|
7454
|
+
blockquote: l1,
|
|
7455
|
+
bold: u1,
|
|
7456
|
+
clean: c1,
|
|
7457
|
+
code: ju,
|
|
7458
|
+
"code-block": ju,
|
|
7459
|
+
color: f1,
|
|
7594
7460
|
direction: {
|
|
7595
|
-
"":
|
|
7596
|
-
rtl:
|
|
7461
|
+
"": h1,
|
|
7462
|
+
rtl: d1
|
|
7597
7463
|
},
|
|
7598
|
-
formula:
|
|
7464
|
+
formula: p1,
|
|
7599
7465
|
header: {
|
|
7600
|
-
1:
|
|
7601
|
-
2:
|
|
7602
|
-
3:
|
|
7603
|
-
4:
|
|
7604
|
-
5:
|
|
7605
|
-
6:
|
|
7466
|
+
1: g1,
|
|
7467
|
+
2: m1,
|
|
7468
|
+
3: y1,
|
|
7469
|
+
4: b1,
|
|
7470
|
+
5: v1,
|
|
7471
|
+
6: w1
|
|
7606
7472
|
},
|
|
7607
|
-
italic:
|
|
7608
|
-
image:
|
|
7473
|
+
italic: x1,
|
|
7474
|
+
image: E1,
|
|
7609
7475
|
indent: {
|
|
7610
|
-
"+1":
|
|
7611
|
-
"-1":
|
|
7476
|
+
"+1": S1,
|
|
7477
|
+
"-1": O1
|
|
7612
7478
|
},
|
|
7613
|
-
link:
|
|
7479
|
+
link: A1,
|
|
7614
7480
|
list: {
|
|
7615
|
-
bullet:
|
|
7616
|
-
check:
|
|
7617
|
-
ordered:
|
|
7481
|
+
bullet: T1,
|
|
7482
|
+
check: N1,
|
|
7483
|
+
ordered: _1
|
|
7618
7484
|
},
|
|
7619
7485
|
script: {
|
|
7620
|
-
sub:
|
|
7621
|
-
super:
|
|
7486
|
+
sub: C1,
|
|
7487
|
+
super: L1
|
|
7622
7488
|
},
|
|
7623
|
-
strike:
|
|
7624
|
-
table:
|
|
7625
|
-
underline:
|
|
7626
|
-
video:
|
|
7627
|
-
},
|
|
7628
|
-
let
|
|
7629
|
-
function
|
|
7489
|
+
strike: k1,
|
|
7490
|
+
table: R1,
|
|
7491
|
+
underline: P1,
|
|
7492
|
+
video: q1
|
|
7493
|
+
}, j1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';
|
|
7494
|
+
let Iu = 0;
|
|
7495
|
+
function $u(r, e) {
|
|
7630
7496
|
r.setAttribute(e, `${r.getAttribute(e) !== "true"}`);
|
|
7631
7497
|
}
|
|
7632
7498
|
class Ao {
|
|
@@ -7645,7 +7511,7 @@ class Ao {
|
|
|
7645
7511
|
}), this.select.addEventListener("change", this.update.bind(this));
|
|
7646
7512
|
}
|
|
7647
7513
|
togglePicker() {
|
|
7648
|
-
this.container.classList.toggle("ql-expanded"),
|
|
7514
|
+
this.container.classList.toggle("ql-expanded"), $u(this.label, "aria-expanded"), $u(this.options, "aria-hidden");
|
|
7649
7515
|
}
|
|
7650
7516
|
buildItem(e) {
|
|
7651
7517
|
const t = document.createElement("span");
|
|
@@ -7666,11 +7532,11 @@ class Ao {
|
|
|
7666
7532
|
}
|
|
7667
7533
|
buildLabel() {
|
|
7668
7534
|
const e = document.createElement("span");
|
|
7669
|
-
return e.classList.add("ql-picker-label"), e.innerHTML =
|
|
7535
|
+
return e.classList.add("ql-picker-label"), e.innerHTML = j1, e.tabIndex = "0", e.setAttribute("role", "button"), e.setAttribute("aria-expanded", "false"), this.container.appendChild(e), e;
|
|
7670
7536
|
}
|
|
7671
7537
|
buildOptions() {
|
|
7672
7538
|
const e = document.createElement("span");
|
|
7673
|
-
e.classList.add("ql-picker-options"), e.setAttribute("aria-hidden", "true"), e.tabIndex = "-1", e.id = `ql-picker-options-${
|
|
7539
|
+
e.classList.add("ql-picker-options"), e.setAttribute("aria-hidden", "true"), e.tabIndex = "-1", e.id = `ql-picker-options-${Iu}`, Iu += 1, this.label.setAttribute("aria-controls", e.id), this.options = e, Array.from(this.select.options).forEach((t) => {
|
|
7674
7540
|
const n = this.buildItem(t);
|
|
7675
7541
|
e.appendChild(n), t.selected === !0 && this.selectItem(n);
|
|
7676
7542
|
}), this.container.appendChild(e);
|
|
@@ -7705,7 +7571,7 @@ class Ao {
|
|
|
7705
7571
|
this.label.classList.toggle("ql-active", t);
|
|
7706
7572
|
}
|
|
7707
7573
|
}
|
|
7708
|
-
class
|
|
7574
|
+
class Mf extends Ao {
|
|
7709
7575
|
constructor(e, t) {
|
|
7710
7576
|
super(e), this.label.innerHTML = t, this.container.classList.add("ql-color-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0, 7).forEach((n) => {
|
|
7711
7577
|
n.classList.add("ql-primary");
|
|
@@ -7721,7 +7587,7 @@ class Bf extends Ao {
|
|
|
7721
7587
|
n && (n.tagName === "line" ? n.style.stroke = s : n.style.fill = s);
|
|
7722
7588
|
}
|
|
7723
7589
|
}
|
|
7724
|
-
class
|
|
7590
|
+
class Df extends Ao {
|
|
7725
7591
|
constructor(e, t) {
|
|
7726
7592
|
super(e), this.container.classList.add("ql-icon-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((n) => {
|
|
7727
7593
|
n.innerHTML = t[n.getAttribute("data-value") || ""];
|
|
@@ -7736,15 +7602,15 @@ class Uf extends Ao {
|
|
|
7736
7602
|
}
|
|
7737
7603
|
}
|
|
7738
7604
|
}
|
|
7739
|
-
const
|
|
7605
|
+
const I1 = (r) => {
|
|
7740
7606
|
const {
|
|
7741
7607
|
overflowY: e
|
|
7742
7608
|
} = getComputedStyle(r, null);
|
|
7743
7609
|
return e !== "visible" && e !== "clip";
|
|
7744
7610
|
};
|
|
7745
|
-
class
|
|
7611
|
+
class Bf {
|
|
7746
7612
|
constructor(e, t) {
|
|
7747
|
-
this.quill = e, this.boundsContainer = t || document.body, this.root = e.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE,
|
|
7613
|
+
this.quill = e, this.boundsContainer = t || document.body, this.root = e.addContainer("ql-tooltip"), this.root.innerHTML = this.constructor.TEMPLATE, I1(this.quill.root) && this.quill.root.addEventListener("scroll", () => {
|
|
7748
7614
|
this.root.style.marginTop = `${-1 * this.quill.root.scrollTop}px`;
|
|
7749
7615
|
}), this.hide();
|
|
7750
7616
|
}
|
|
@@ -7766,7 +7632,7 @@ class Ff {
|
|
|
7766
7632
|
this.root.classList.remove("ql-editing"), this.root.classList.remove("ql-hidden");
|
|
7767
7633
|
}
|
|
7768
7634
|
}
|
|
7769
|
-
const
|
|
7635
|
+
const $1 = [!1, "center", "right", "justify"], M1 = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], D1 = [!1, "serif", "monospace"], B1 = ["1", "2", "3", !1], U1 = ["small", !1, "large", "huge"];
|
|
7770
7636
|
class Ni extends Bs {
|
|
7771
7637
|
constructor(e, t) {
|
|
7772
7638
|
super(e, t);
|
|
@@ -7804,13 +7670,13 @@ class Ni extends Bs {
|
|
|
7804
7670
|
}
|
|
7805
7671
|
buildPickers(e, t) {
|
|
7806
7672
|
this.pickers = Array.from(e).map((s) => {
|
|
7807
|
-
if (s.classList.contains("ql-align") && (s.querySelector("option") == null && ti(s,
|
|
7808
|
-
return new
|
|
7673
|
+
if (s.classList.contains("ql-align") && (s.querySelector("option") == null && ti(s, $1), typeof t.align == "object"))
|
|
7674
|
+
return new Df(s, t.align);
|
|
7809
7675
|
if (s.classList.contains("ql-background") || s.classList.contains("ql-color")) {
|
|
7810
7676
|
const i = s.classList.contains("ql-background") ? "background" : "color";
|
|
7811
|
-
return s.querySelector("option") == null && ti(s,
|
|
7677
|
+
return s.querySelector("option") == null && ti(s, M1, i === "background" ? "#ffffff" : "#000000"), new Mf(s, t[i]);
|
|
7812
7678
|
}
|
|
7813
|
-
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? ti(s,
|
|
7679
|
+
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? ti(s, D1) : s.classList.contains("ql-header") ? ti(s, B1) : s.classList.contains("ql-size") && ti(s, U1)), new Ao(s);
|
|
7814
7680
|
});
|
|
7815
7681
|
const n = () => {
|
|
7816
7682
|
this.pickers.forEach((s) => {
|
|
@@ -7841,7 +7707,7 @@ Ni.DEFAULTS = Mr({}, Bs.DEFAULTS, {
|
|
|
7841
7707
|
}
|
|
7842
7708
|
}
|
|
7843
7709
|
});
|
|
7844
|
-
class
|
|
7710
|
+
class Uf extends Bf {
|
|
7845
7711
|
constructor(e, t) {
|
|
7846
7712
|
super(e, t), this.textbox = this.root.querySelector('input[type="text"]'), this.listen();
|
|
7847
7713
|
}
|
|
@@ -7878,7 +7744,7 @@ class Kf extends Ff {
|
|
|
7878
7744
|
break;
|
|
7879
7745
|
}
|
|
7880
7746
|
case "video":
|
|
7881
|
-
e =
|
|
7747
|
+
e = F1(e);
|
|
7882
7748
|
// eslint-disable-next-line no-fallthrough
|
|
7883
7749
|
case "formula": {
|
|
7884
7750
|
if (!e) break;
|
|
@@ -7899,7 +7765,7 @@ class Kf extends Ff {
|
|
|
7899
7765
|
this.textbox.value = "", this.hide();
|
|
7900
7766
|
}
|
|
7901
7767
|
}
|
|
7902
|
-
function
|
|
7768
|
+
function F1(r) {
|
|
7903
7769
|
let e = r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
7904
7770
|
return e ? `${e[1] || "https"}://www.youtube.com/embed/${e[2]}?showinfo=0` : (e = r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? `${e[1] || "https"}://player.vimeo.com/video/${e[2]}/` : r;
|
|
7905
7771
|
}
|
|
@@ -7910,12 +7776,12 @@ function ti(r, e) {
|
|
|
7910
7776
|
n === t ? s.setAttribute("selected", "selected") : s.setAttribute("value", String(n)), r.appendChild(s);
|
|
7911
7777
|
});
|
|
7912
7778
|
}
|
|
7913
|
-
const
|
|
7779
|
+
const K1 = [["bold", "italic", "link"], [{
|
|
7914
7780
|
header: 1
|
|
7915
7781
|
}, {
|
|
7916
7782
|
header: 2
|
|
7917
7783
|
}, "blockquote"]];
|
|
7918
|
-
class
|
|
7784
|
+
class Ff extends Uf {
|
|
7919
7785
|
constructor(e, t) {
|
|
7920
7786
|
super(e, t), this.quill.on(Ce.events.EDITOR_CHANGE, (n, s, i, a) => {
|
|
7921
7787
|
if (n === Ce.events.SELECTION_CHANGE)
|
|
@@ -7954,16 +7820,16 @@ class Hf extends Kf {
|
|
|
7954
7820
|
return n.style.marginLeft = "", t !== 0 && (n.style.marginLeft = `${-1 * t - n.offsetWidth / 2}px`), t;
|
|
7955
7821
|
}
|
|
7956
7822
|
}
|
|
7957
|
-
Ae(
|
|
7958
|
-
class
|
|
7823
|
+
Ae(Ff, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
|
|
7824
|
+
class Kf extends Ni {
|
|
7959
7825
|
constructor(e, t) {
|
|
7960
|
-
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container =
|
|
7826
|
+
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container = K1), super(e, t), this.quill.container.classList.add("ql-bubble");
|
|
7961
7827
|
}
|
|
7962
7828
|
extendToolbar(e) {
|
|
7963
|
-
this.tooltip = new
|
|
7829
|
+
this.tooltip = new Ff(this.quill, this.options.bounds), e.container != null && (this.tooltip.root.appendChild(e.container), this.buildButtons(e.container.querySelectorAll("button"), vi), this.buildPickers(e.container.querySelectorAll("select"), vi));
|
|
7964
7830
|
}
|
|
7965
7831
|
}
|
|
7966
|
-
|
|
7832
|
+
Kf.DEFAULTS = Mr({}, Ni.DEFAULTS, {
|
|
7967
7833
|
modules: {
|
|
7968
7834
|
toolbar: {
|
|
7969
7835
|
handlers: {
|
|
@@ -7974,14 +7840,14 @@ zf.DEFAULTS = Mr({}, Ni.DEFAULTS, {
|
|
|
7974
7840
|
}
|
|
7975
7841
|
}
|
|
7976
7842
|
});
|
|
7977
|
-
const
|
|
7843
|
+
const H1 = [[{
|
|
7978
7844
|
header: ["1", "2", "3", !1]
|
|
7979
7845
|
}], ["bold", "italic", "underline", "link"], [{
|
|
7980
7846
|
list: "ordered"
|
|
7981
7847
|
}, {
|
|
7982
7848
|
list: "bullet"
|
|
7983
7849
|
}], ["clean"]];
|
|
7984
|
-
class
|
|
7850
|
+
class Hf extends Uf {
|
|
7985
7851
|
constructor() {
|
|
7986
7852
|
super(...arguments);
|
|
7987
7853
|
Ae(this, "preview", this.root.querySelector("a.ql-preview"));
|
|
@@ -8017,13 +7883,13 @@ class Vf extends Kf {
|
|
|
8017
7883
|
super.show(), this.root.removeAttribute("data-mode");
|
|
8018
7884
|
}
|
|
8019
7885
|
}
|
|
8020
|
-
Ae(
|
|
8021
|
-
class
|
|
7886
|
+
Ae(Hf, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
|
|
7887
|
+
class zf extends Ni {
|
|
8022
7888
|
constructor(e, t) {
|
|
8023
|
-
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container =
|
|
7889
|
+
t.modules.toolbar != null && t.modules.toolbar.container == null && (t.modules.toolbar.container = H1), super(e, t), this.quill.container.classList.add("ql-snow");
|
|
8024
7890
|
}
|
|
8025
7891
|
extendToolbar(e) {
|
|
8026
|
-
e.container != null && (e.container.classList.add("ql-snow"), this.buildButtons(e.container.querySelectorAll("button"), vi), this.buildPickers(e.container.querySelectorAll("select"), vi), this.tooltip = new
|
|
7892
|
+
e.container != null && (e.container.classList.add("ql-snow"), this.buildButtons(e.container.querySelectorAll("button"), vi), this.buildPickers(e.container.querySelectorAll("select"), vi), this.tooltip = new Hf(this.quill, this.options.bounds), e.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
|
|
8027
7893
|
key: "k",
|
|
8028
7894
|
shortKey: !0
|
|
8029
7895
|
}, (t, n) => {
|
|
@@ -8031,7 +7897,7 @@ class Wf extends Ni {
|
|
|
8031
7897
|
}));
|
|
8032
7898
|
}
|
|
8033
7899
|
}
|
|
8034
|
-
|
|
7900
|
+
zf.DEFAULTS = Mr({}, Ni.DEFAULTS, {
|
|
8035
7901
|
modules: {
|
|
8036
7902
|
toolbar: {
|
|
8037
7903
|
handlers: {
|
|
@@ -8053,28 +7919,28 @@ Wf.DEFAULTS = Mr({}, Ni.DEFAULTS, {
|
|
|
8053
7919
|
}
|
|
8054
7920
|
});
|
|
8055
7921
|
ie.register({
|
|
8056
|
-
"attributors/attribute/direction":
|
|
8057
|
-
"attributors/class/align":
|
|
8058
|
-
"attributors/class/background":
|
|
8059
|
-
"attributors/class/color":
|
|
8060
|
-
"attributors/class/direction":
|
|
8061
|
-
"attributors/class/font":
|
|
8062
|
-
"attributors/class/size":
|
|
8063
|
-
"attributors/style/align":
|
|
7922
|
+
"attributors/attribute/direction": Of,
|
|
7923
|
+
"attributors/class/align": xf,
|
|
7924
|
+
"attributors/class/background": lb,
|
|
7925
|
+
"attributors/class/color": ab,
|
|
7926
|
+
"attributors/class/direction": Af,
|
|
7927
|
+
"attributors/class/font": _f,
|
|
7928
|
+
"attributors/class/size": Lf,
|
|
7929
|
+
"attributors/style/align": Ef,
|
|
8064
7930
|
"attributors/style/background": ul,
|
|
8065
7931
|
"attributors/style/color": ll,
|
|
8066
|
-
"attributors/style/direction":
|
|
8067
|
-
"attributors/style/font":
|
|
8068
|
-
"attributors/style/size":
|
|
7932
|
+
"attributors/style/direction": Tf,
|
|
7933
|
+
"attributors/style/font": Cf,
|
|
7934
|
+
"attributors/style/size": kf
|
|
8069
7935
|
}, !0);
|
|
8070
7936
|
ie.register({
|
|
8071
|
-
"formats/align":
|
|
8072
|
-
"formats/direction":
|
|
8073
|
-
"formats/indent":
|
|
7937
|
+
"formats/align": xf,
|
|
7938
|
+
"formats/direction": Af,
|
|
7939
|
+
"formats/indent": Xb,
|
|
8074
7940
|
"formats/background": ul,
|
|
8075
7941
|
"formats/color": ll,
|
|
8076
|
-
"formats/font":
|
|
8077
|
-
"formats/size":
|
|
7942
|
+
"formats/font": _f,
|
|
7943
|
+
"formats/size": Lf,
|
|
8078
7944
|
"formats/blockquote": _a,
|
|
8079
7945
|
"formats/code-block": Ut,
|
|
8080
7946
|
"formats/header": Ca,
|
|
@@ -8089,18 +7955,18 @@ ie.register({
|
|
|
8089
7955
|
"formats/formula": Xi,
|
|
8090
7956
|
"formats/image": qa,
|
|
8091
7957
|
"formats/video": Qi,
|
|
8092
|
-
"modules/syntax":
|
|
8093
|
-
"modules/table":
|
|
7958
|
+
"modules/syntax": $f,
|
|
7959
|
+
"modules/table": e1,
|
|
8094
7960
|
"modules/toolbar": gl,
|
|
8095
|
-
"themes/bubble":
|
|
8096
|
-
"themes/snow":
|
|
7961
|
+
"themes/bubble": Kf,
|
|
7962
|
+
"themes/snow": zf,
|
|
8097
7963
|
"ui/icons": vi,
|
|
8098
7964
|
"ui/picker": Ao,
|
|
8099
|
-
"ui/icon-picker":
|
|
8100
|
-
"ui/color-picker":
|
|
8101
|
-
"ui/tooltip":
|
|
7965
|
+
"ui/icon-picker": Df,
|
|
7966
|
+
"ui/color-picker": Mf,
|
|
7967
|
+
"ui/tooltip": Bf
|
|
8102
7968
|
}, !0);
|
|
8103
|
-
function
|
|
7969
|
+
function z1(r) {
|
|
8104
7970
|
const { value: e, style: t, ...n } = r, s = Wh(null), i = { theme: "snow", ...n };
|
|
8105
7971
|
return Yh(() => {
|
|
8106
7972
|
const a = s.current, u = a.ownerDocument.createElement("div");
|
|
@@ -8116,13 +7982,147 @@ function t0(r) {
|
|
|
8116
7982
|
};
|
|
8117
7983
|
}, [s]), /* @__PURE__ */ Wt.jsx("div", { ref: s, style: { height: "100%" } });
|
|
8118
7984
|
}
|
|
7985
|
+
var Vf = {
|
|
7986
|
+
color: void 0,
|
|
7987
|
+
size: void 0,
|
|
7988
|
+
className: void 0,
|
|
7989
|
+
style: void 0,
|
|
7990
|
+
attr: void 0
|
|
7991
|
+
}, Mu = $r.createContext && /* @__PURE__ */ $r.createContext(Vf), V1 = ["attr", "size", "title"];
|
|
7992
|
+
function W1(r, e) {
|
|
7993
|
+
if (r == null) return {};
|
|
7994
|
+
var t = Y1(r, e), n, s;
|
|
7995
|
+
if (Object.getOwnPropertySymbols) {
|
|
7996
|
+
var i = Object.getOwnPropertySymbols(r);
|
|
7997
|
+
for (s = 0; s < i.length; s++)
|
|
7998
|
+
n = i[s], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
7999
|
+
}
|
|
8000
|
+
return t;
|
|
8001
|
+
}
|
|
8002
|
+
function Y1(r, e) {
|
|
8003
|
+
if (r == null) return {};
|
|
8004
|
+
var t = {};
|
|
8005
|
+
for (var n in r)
|
|
8006
|
+
if (Object.prototype.hasOwnProperty.call(r, n)) {
|
|
8007
|
+
if (e.indexOf(n) >= 0) continue;
|
|
8008
|
+
t[n] = r[n];
|
|
8009
|
+
}
|
|
8010
|
+
return t;
|
|
8011
|
+
}
|
|
8012
|
+
function ao() {
|
|
8013
|
+
return ao = Object.assign ? Object.assign.bind() : function(r) {
|
|
8014
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
8015
|
+
var t = arguments[e];
|
|
8016
|
+
for (var n in t)
|
|
8017
|
+
Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
8018
|
+
}
|
|
8019
|
+
return r;
|
|
8020
|
+
}, ao.apply(this, arguments);
|
|
8021
|
+
}
|
|
8022
|
+
function Du(r, e) {
|
|
8023
|
+
var t = Object.keys(r);
|
|
8024
|
+
if (Object.getOwnPropertySymbols) {
|
|
8025
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
8026
|
+
e && (n = n.filter(function(s) {
|
|
8027
|
+
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
8028
|
+
})), t.push.apply(t, n);
|
|
8029
|
+
}
|
|
8030
|
+
return t;
|
|
8031
|
+
}
|
|
8032
|
+
function lo(r) {
|
|
8033
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
8034
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
8035
|
+
e % 2 ? Du(Object(t), !0).forEach(function(n) {
|
|
8036
|
+
G1(r, n, t[n]);
|
|
8037
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Du(Object(t)).forEach(function(n) {
|
|
8038
|
+
Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
|
|
8039
|
+
});
|
|
8040
|
+
}
|
|
8041
|
+
return r;
|
|
8042
|
+
}
|
|
8043
|
+
function G1(r, e, t) {
|
|
8044
|
+
return e = J1(e), e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
8045
|
+
}
|
|
8046
|
+
function J1(r) {
|
|
8047
|
+
var e = Z1(r, "string");
|
|
8048
|
+
return typeof e == "symbol" ? e : e + "";
|
|
8049
|
+
}
|
|
8050
|
+
function Z1(r, e) {
|
|
8051
|
+
if (typeof r != "object" || !r) return r;
|
|
8052
|
+
var t = r[Symbol.toPrimitive];
|
|
8053
|
+
if (t !== void 0) {
|
|
8054
|
+
var n = t.call(r, e);
|
|
8055
|
+
if (typeof n != "object") return n;
|
|
8056
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8057
|
+
}
|
|
8058
|
+
return (e === "string" ? String : Number)(r);
|
|
8059
|
+
}
|
|
8060
|
+
function Wf(r) {
|
|
8061
|
+
return r && r.map((e, t) => /* @__PURE__ */ $r.createElement(e.tag, lo({
|
|
8062
|
+
key: t
|
|
8063
|
+
}, e.attr), Wf(e.child)));
|
|
8064
|
+
}
|
|
8065
|
+
function X1(r) {
|
|
8066
|
+
return (e) => /* @__PURE__ */ $r.createElement(Q1, ao({
|
|
8067
|
+
attr: lo({}, r.attr)
|
|
8068
|
+
}, e), Wf(r.child));
|
|
8069
|
+
}
|
|
8070
|
+
function Q1(r) {
|
|
8071
|
+
var e = (t) => {
|
|
8072
|
+
var {
|
|
8073
|
+
attr: n,
|
|
8074
|
+
size: s,
|
|
8075
|
+
title: i
|
|
8076
|
+
} = r, a = W1(r, V1), u = s || t.size || "1em", f;
|
|
8077
|
+
return t.className && (f = t.className), r.className && (f = (f ? f + " " : "") + r.className), /* @__PURE__ */ $r.createElement("svg", ao({
|
|
8078
|
+
stroke: "currentColor",
|
|
8079
|
+
fill: "currentColor",
|
|
8080
|
+
strokeWidth: "0"
|
|
8081
|
+
}, t.attr, n, a, {
|
|
8082
|
+
className: f,
|
|
8083
|
+
style: lo(lo({
|
|
8084
|
+
color: r.color || t.color
|
|
8085
|
+
}, t.style), r.style),
|
|
8086
|
+
height: u,
|
|
8087
|
+
width: u,
|
|
8088
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8089
|
+
}), i && /* @__PURE__ */ $r.createElement("title", null, i), r.children);
|
|
8090
|
+
};
|
|
8091
|
+
return Mu !== void 0 ? /* @__PURE__ */ $r.createElement(Mu.Consumer, null, (t) => e(t)) : e(Vf);
|
|
8092
|
+
}
|
|
8093
|
+
function Bu(r) {
|
|
8094
|
+
return X1({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }, child: [] }] })(r);
|
|
8095
|
+
}
|
|
8096
|
+
const e0 = (r) => Array.isArray(r) ? r : r && r.fileList, Uu = {
|
|
8097
|
+
maxCount: 1,
|
|
8098
|
+
multiple: !0,
|
|
8099
|
+
showUploadList: !0
|
|
8100
|
+
};
|
|
8101
|
+
function t0(r) {
|
|
8102
|
+
var u;
|
|
8103
|
+
const { value: e, ...t } = r, n = e0(e), s = Array.isArray(n) ? n.length : 0, i = t.maxCount ?? Uu.maxCount ?? 1;
|
|
8104
|
+
let a;
|
|
8105
|
+
return s < i && ((u = t.listType) != null && u.startsWith("picture-") ? a = /* @__PURE__ */ Wt.jsx(Bu, {}) : a = /* @__PURE__ */ Wt.jsx(Qh, { icon: /* @__PURE__ */ Wt.jsx(Bu, {}), children: " 上传" })), /* @__PURE__ */ Wt.jsx(
|
|
8106
|
+
Xh,
|
|
8107
|
+
{
|
|
8108
|
+
...Uu,
|
|
8109
|
+
...t,
|
|
8110
|
+
fileList: n,
|
|
8111
|
+
onChange: (f) => {
|
|
8112
|
+
var d;
|
|
8113
|
+
return (d = t.onChange) == null ? void 0 : d.call(t, f.fileList);
|
|
8114
|
+
},
|
|
8115
|
+
children: s < i && a
|
|
8116
|
+
}
|
|
8117
|
+
);
|
|
8118
|
+
}
|
|
8119
8119
|
function Yf({ children: r }) {
|
|
8120
8120
|
const n = {
|
|
8121
8121
|
upload: {
|
|
8122
|
-
renderFormItem: (s, i) => /* @__PURE__ */ Wt.jsx(
|
|
8122
|
+
renderFormItem: (s, i) => /* @__PURE__ */ Wt.jsx(t0, { ...i.fieldProps })
|
|
8123
8123
|
},
|
|
8124
8124
|
editor: {
|
|
8125
|
-
renderFormItem: (s, i) => /* @__PURE__ */ Wt.jsx(
|
|
8125
|
+
renderFormItem: (s, i) => /* @__PURE__ */ Wt.jsx(z1, { ...i.fieldProps })
|
|
8126
8126
|
}
|
|
8127
8127
|
};
|
|
8128
8128
|
return /* @__PURE__ */ Wt.jsx(Gh, { valueTypeMap: n, children: r });
|
|
@@ -9616,7 +9616,7 @@ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObje
|
|
|
9616
9616
|
typeof Br != "function" && (Br = void 0);
|
|
9617
9617
|
if (!Br && !xi && !po)
|
|
9618
9618
|
try {
|
|
9619
|
-
import("./browser-ponyfill-
|
|
9619
|
+
import("./browser-ponyfill-s2UibeSs.js").then((r) => r.b).then(function(r) {
|
|
9620
9620
|
Br = r.default;
|
|
9621
9621
|
}).catch(function() {
|
|
9622
9622
|
});
|
|
@@ -15775,10 +15775,11 @@ const ex = Pt, Dx = {
|
|
|
15775
15775
|
LNG_ZH: Ja
|
|
15776
15776
|
};
|
|
15777
15777
|
export {
|
|
15778
|
+
z1 as E,
|
|
15778
15779
|
r0 as F,
|
|
15779
15780
|
Yf as P,
|
|
15780
15781
|
hx as T,
|
|
15781
|
-
|
|
15782
|
+
t0 as U,
|
|
15782
15783
|
qr as c,
|
|
15783
15784
|
Mc as g,
|
|
15784
15785
|
Dx as i
|