reacthub-pixitweenjs 0.2.73 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +601 -598
- package/dist/index.umd.js +36 -36
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as At from "react";
|
|
2
|
-
import LT, { useEffect as Yn, useState as zn, useRef as
|
|
2
|
+
import LT, { useEffect as Yn, useState as zn, useRef as Xt, useLayoutEffect as Kv, useCallback as vn, useContext as wo, useReducer as FT } from "react";
|
|
3
3
|
import { withFilters as BT, Container as Xe, Sprite as Mf, useApp as DT, AnimatedSprite as UT, Text as $T } from "@pixi/react";
|
|
4
4
|
import Ee from "gsap";
|
|
5
5
|
import * as _n from "pixi.js";
|
|
@@ -110,7 +110,7 @@ const Fs = At.createContext({}), Ge = {
|
|
|
110
110
|
}, lB = ({
|
|
111
111
|
children: e
|
|
112
112
|
}) => {
|
|
113
|
-
const [t, r] = zn(!1), n =
|
|
113
|
+
const [t, r] = zn(!1), n = Xt(), i = Xt(), a = Xt(1e-3);
|
|
114
114
|
Kv(() => (i.current = Ee.context(() => {
|
|
115
115
|
n.current && n.current.progress(0).kill(), n.current && n.current.clear(), n.current && Ee.killTweensOf(n.current), n.current = Ee.timeline({
|
|
116
116
|
paused: !0,
|
|
@@ -507,7 +507,7 @@ function HA(e) {
|
|
|
507
507
|
}
|
|
508
508
|
var VA = HA;
|
|
509
509
|
const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Gi = At.forwardRef((e, t) => {
|
|
510
|
-
const [r, n] = At.useState(!1), [i, a] = zn(!1), [l, u] = zn(!1), [f, h] = zn(e.initialAlpha), d =
|
|
510
|
+
const [r, n] = At.useState(!1), [i, a] = zn(!1), [l, u] = zn(!1), [f, h] = zn(e.initialAlpha), d = Xt(null), p = Xt(null), c = Xt(null), v = Xt(null), m = Xt(e.initialAlpha), { tl: y } = wo(Fs), {
|
|
511
511
|
uniqueId: b,
|
|
512
512
|
startAt: _,
|
|
513
513
|
endAt: w,
|
|
@@ -526,7 +526,7 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
526
526
|
disabled: M,
|
|
527
527
|
ignoreTlForVideo: F,
|
|
528
528
|
pointerdown: q,
|
|
529
|
-
pointerout:
|
|
529
|
+
pointerout: Z,
|
|
530
530
|
pointerover: z,
|
|
531
531
|
isText: rt,
|
|
532
532
|
isDragging: W,
|
|
@@ -548,13 +548,13 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
548
548
|
u(!0), z && z();
|
|
549
549
|
}, []), j = () => {
|
|
550
550
|
console.log("reverse complete"), m.current = T, h(T);
|
|
551
|
-
}, G = (
|
|
552
|
-
m.current =
|
|
553
|
-
}, K = (
|
|
554
|
-
m.current =
|
|
551
|
+
}, G = (J) => {
|
|
552
|
+
m.current = J.alpha, h(J.alpha);
|
|
553
|
+
}, K = (J) => {
|
|
554
|
+
m.current = J.alpha, h(J.alpha);
|
|
555
555
|
};
|
|
556
556
|
At.useEffect(() => {
|
|
557
|
-
let
|
|
557
|
+
let J = Ee.context(() => {
|
|
558
558
|
});
|
|
559
559
|
if (d.current && y.current) {
|
|
560
560
|
const nt = {
|
|
@@ -566,10 +566,10 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
566
566
|
}, dt = {
|
|
567
567
|
onComplete: K,
|
|
568
568
|
onCompleteParams: [{ alpha: 0 }]
|
|
569
|
-
},
|
|
570
|
-
|
|
569
|
+
}, pt = ZT(R || "None");
|
|
570
|
+
J = Ee.context(() => {
|
|
571
571
|
var bt, Tt;
|
|
572
|
-
ys(
|
|
572
|
+
ys(pt.from) ? ys(pt.to) ? ys(pt.fromTo) ? y.current.to(
|
|
573
573
|
d.current,
|
|
574
574
|
{ alpha: 1, duration: 0.1, ...ot },
|
|
575
575
|
_
|
|
@@ -579,8 +579,8 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
579
579
|
Number(w) - 0.09
|
|
580
580
|
) : y.current.fromTo(
|
|
581
581
|
d.current,
|
|
582
|
-
(bt =
|
|
583
|
-
{ ...(Tt =
|
|
582
|
+
(bt = pt.fromTo) == null ? void 0 : bt.from,
|
|
583
|
+
{ ...(Tt = pt.fromTo) == null ? void 0 : Tt.to, ...ot },
|
|
584
584
|
_
|
|
585
585
|
).to(
|
|
586
586
|
d.current,
|
|
@@ -588,13 +588,13 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
588
588
|
Number(w) - 0.09
|
|
589
589
|
) : y.current.to(
|
|
590
590
|
d.current,
|
|
591
|
-
{ alpha: 1, duration: 0.1, ...
|
|
591
|
+
{ alpha: 1, duration: 0.1, ...pt.to, ...ot },
|
|
592
592
|
_
|
|
593
593
|
).to(
|
|
594
594
|
d.current,
|
|
595
595
|
{ alpha: 0, duration: 0.1, ...dt },
|
|
596
596
|
Number(w) - 0.09
|
|
597
|
-
) : y.current.from(d.current, { ...
|
|
597
|
+
) : y.current.from(d.current, { ...pt.from }, _).to(
|
|
598
598
|
d.current,
|
|
599
599
|
{ alpha: 1, duration: 0.1, ...ot },
|
|
600
600
|
_
|
|
@@ -606,47 +606,47 @@ const ys = /* @__PURE__ */ Zn(VA), WA = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
return () => {
|
|
609
|
-
y.current && (y.current.progress(0).kill(), Ee.killTweensOf(y.current)),
|
|
609
|
+
y.current && (y.current.progress(0).kill(), Ee.killTweensOf(y.current)), J.revert();
|
|
610
610
|
};
|
|
611
611
|
}, [R, _, w, F]);
|
|
612
612
|
const X = At.useCallback(() => {
|
|
613
613
|
a(!0);
|
|
614
614
|
}, []), $ = At.useCallback(
|
|
615
|
-
(
|
|
616
|
-
console.log("changeEnd",
|
|
615
|
+
(J) => {
|
|
616
|
+
console.log("changeEnd", J), e.onAnchorTransformationEnd && (console.log("running onAnchorTransformationEnd"), e.onAnchorTransformationEnd(J)), a(!1);
|
|
617
617
|
},
|
|
618
618
|
[]
|
|
619
619
|
), V = BT(Xe, {
|
|
620
620
|
matrix: _n.filters.ColorMatrixFilter
|
|
621
621
|
});
|
|
622
622
|
console.log("abstraction props", e), console.log("alphaRef", b, m.current, f, T);
|
|
623
|
-
const
|
|
623
|
+
const Q = m.current || f;
|
|
624
624
|
return /* @__PURE__ */ ee.jsxs(Xe, { ref: p, children: [
|
|
625
625
|
/* @__PURE__ */ ee.jsxs(
|
|
626
626
|
Xe,
|
|
627
627
|
{
|
|
628
628
|
ref: d,
|
|
629
|
-
alpha:
|
|
629
|
+
alpha: Q,
|
|
630
630
|
position: [x, A],
|
|
631
631
|
pivot: [x, A],
|
|
632
632
|
width: I,
|
|
633
633
|
height: S,
|
|
634
634
|
scale: O,
|
|
635
635
|
rotation: L,
|
|
636
|
-
...!M && !i && !W &&
|
|
636
|
+
...!M && !i && !W && Q > 0 && {
|
|
637
637
|
interactive: !0,
|
|
638
638
|
buttonMode: !0,
|
|
639
639
|
pointerdown: q,
|
|
640
640
|
pointerover: z,
|
|
641
|
-
pointerout:
|
|
641
|
+
pointerout: Z
|
|
642
642
|
},
|
|
643
643
|
children: [
|
|
644
644
|
!D && /* @__PURE__ */ ee.jsx(
|
|
645
645
|
V,
|
|
646
646
|
{
|
|
647
647
|
scale: 1,
|
|
648
|
-
apply: ({ matrix:
|
|
649
|
-
C === bi.BlackAndWhite ?
|
|
648
|
+
apply: ({ matrix: J }) => {
|
|
649
|
+
C === bi.BlackAndWhite ? J.desaturate() : C === bi.Sepia ? J.sepia() : C === bi.RetroVintage || C === bi.NightVision ? J.negative() : C === bi.Normal && J.reset();
|
|
650
650
|
},
|
|
651
651
|
matrix: {
|
|
652
652
|
enabled: !0,
|
|
@@ -679,7 +679,7 @@ Gi.whyDidYouRender = {
|
|
|
679
679
|
logOnDifferentValues: !0,
|
|
680
680
|
customName: "AbstractContainer"
|
|
681
681
|
};
|
|
682
|
-
var Qn = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(Qn || {}), lg = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(lg || {}), tf = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(tf || {}), Ct = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ADD = 1] = "ADD", e[e.MULTIPLY = 2] = "MULTIPLY", e[e.SCREEN = 3] = "SCREEN", e[e.OVERLAY = 4] = "OVERLAY", e[e.DARKEN = 5] = "DARKEN", e[e.LIGHTEN = 6] = "LIGHTEN", e[e.COLOR_DODGE = 7] = "COLOR_DODGE", e[e.COLOR_BURN = 8] = "COLOR_BURN", e[e.HARD_LIGHT = 9] = "HARD_LIGHT", e[e.SOFT_LIGHT = 10] = "SOFT_LIGHT", e[e.DIFFERENCE = 11] = "DIFFERENCE", e[e.EXCLUSION = 12] = "EXCLUSION", e[e.HUE = 13] = "HUE", e[e.SATURATION = 14] = "SATURATION", e[e.COLOR = 15] = "COLOR", e[e.LUMINOSITY = 16] = "LUMINOSITY", e[e.NORMAL_NPM = 17] = "NORMAL_NPM", e[e.ADD_NPM = 18] = "ADD_NPM", e[e.SCREEN_NPM = 19] = "SCREEN_NPM", e[e.NONE = 20] = "NONE", e[e.SRC_OVER = 0] = "SRC_OVER", e[e.SRC_IN = 21] = "SRC_IN", e[e.SRC_OUT = 22] = "SRC_OUT", e[e.SRC_ATOP = 23] = "SRC_ATOP", e[e.DST_OVER = 24] = "DST_OVER", e[e.DST_IN = 25] = "DST_IN", e[e.DST_OUT = 26] = "DST_OUT", e[e.DST_ATOP = 27] = "DST_ATOP", e[e.ERASE = 26] = "ERASE", e[e.SUBTRACT = 28] = "SUBTRACT", e[e.XOR = 29] = "XOR", e))(Ct || {}), mn = /* @__PURE__ */ ((e) => (e[e.POINTS = 0] = "POINTS", e[e.LINES = 1] = "LINES", e[e.LINE_LOOP = 2] = "LINE_LOOP", e[e.LINE_STRIP = 3] = "LINE_STRIP", e[e.TRIANGLES = 4] = "TRIANGLES", e[e.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", e[e.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", e))(mn || {}), yt = /* @__PURE__ */ ((e) => (e[e.RGBA = 6408] = "RGBA", e[e.RGB = 6407] = "RGB", e[e.RG = 33319] = "RG", e[e.RED = 6403] = "RED", e[e.RGBA_INTEGER = 36249] = "RGBA_INTEGER", e[e.RGB_INTEGER = 36248] = "RGB_INTEGER", e[e.RG_INTEGER = 33320] = "RG_INTEGER", e[e.RED_INTEGER = 36244] = "RED_INTEGER", e[e.ALPHA = 6406] = "ALPHA", e[e.LUMINANCE = 6409] = "LUMINANCE", e[e.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", e[e.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", e[e.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", e))(yt || {}), Oi = /* @__PURE__ */ ((e) => (e[e.TEXTURE_2D = 3553] = "TEXTURE_2D", e[e.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", e[e.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", e[e.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", e[e.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", e[e.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", e[e.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", e))(Oi || {}),
|
|
682
|
+
var Qn = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(Qn || {}), lg = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(lg || {}), tf = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(tf || {}), Ct = /* @__PURE__ */ ((e) => (e[e.NORMAL = 0] = "NORMAL", e[e.ADD = 1] = "ADD", e[e.MULTIPLY = 2] = "MULTIPLY", e[e.SCREEN = 3] = "SCREEN", e[e.OVERLAY = 4] = "OVERLAY", e[e.DARKEN = 5] = "DARKEN", e[e.LIGHTEN = 6] = "LIGHTEN", e[e.COLOR_DODGE = 7] = "COLOR_DODGE", e[e.COLOR_BURN = 8] = "COLOR_BURN", e[e.HARD_LIGHT = 9] = "HARD_LIGHT", e[e.SOFT_LIGHT = 10] = "SOFT_LIGHT", e[e.DIFFERENCE = 11] = "DIFFERENCE", e[e.EXCLUSION = 12] = "EXCLUSION", e[e.HUE = 13] = "HUE", e[e.SATURATION = 14] = "SATURATION", e[e.COLOR = 15] = "COLOR", e[e.LUMINOSITY = 16] = "LUMINOSITY", e[e.NORMAL_NPM = 17] = "NORMAL_NPM", e[e.ADD_NPM = 18] = "ADD_NPM", e[e.SCREEN_NPM = 19] = "SCREEN_NPM", e[e.NONE = 20] = "NONE", e[e.SRC_OVER = 0] = "SRC_OVER", e[e.SRC_IN = 21] = "SRC_IN", e[e.SRC_OUT = 22] = "SRC_OUT", e[e.SRC_ATOP = 23] = "SRC_ATOP", e[e.DST_OVER = 24] = "DST_OVER", e[e.DST_IN = 25] = "DST_IN", e[e.DST_OUT = 26] = "DST_OUT", e[e.DST_ATOP = 27] = "DST_ATOP", e[e.ERASE = 26] = "ERASE", e[e.SUBTRACT = 28] = "SUBTRACT", e[e.XOR = 29] = "XOR", e))(Ct || {}), mn = /* @__PURE__ */ ((e) => (e[e.POINTS = 0] = "POINTS", e[e.LINES = 1] = "LINES", e[e.LINE_LOOP = 2] = "LINE_LOOP", e[e.LINE_STRIP = 3] = "LINE_STRIP", e[e.TRIANGLES = 4] = "TRIANGLES", e[e.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", e[e.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", e))(mn || {}), yt = /* @__PURE__ */ ((e) => (e[e.RGBA = 6408] = "RGBA", e[e.RGB = 6407] = "RGB", e[e.RG = 33319] = "RG", e[e.RED = 6403] = "RED", e[e.RGBA_INTEGER = 36249] = "RGBA_INTEGER", e[e.RGB_INTEGER = 36248] = "RGB_INTEGER", e[e.RG_INTEGER = 33320] = "RG_INTEGER", e[e.RED_INTEGER = 36244] = "RED_INTEGER", e[e.ALPHA = 6406] = "ALPHA", e[e.LUMINANCE = 6409] = "LUMINANCE", e[e.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", e[e.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", e[e.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", e))(yt || {}), Oi = /* @__PURE__ */ ((e) => (e[e.TEXTURE_2D = 3553] = "TEXTURE_2D", e[e.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", e[e.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", e[e.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", e[e.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", e[e.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", e[e.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", e))(Oi || {}), Vt = /* @__PURE__ */ ((e) => (e[e.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", e[e.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", e[e.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", e[e.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", e[e.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", e[e.UNSIGNED_INT = 5125] = "UNSIGNED_INT", e[e.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", e[e.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", e[e.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", e[e.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", e[e.BYTE = 5120] = "BYTE", e[e.SHORT = 5122] = "SHORT", e[e.INT = 5124] = "INT", e[e.FLOAT = 5126] = "FLOAT", e[e.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", e[e.HALF_FLOAT = 36193] = "HALF_FLOAT", e))(Vt || {}), ef = /* @__PURE__ */ ((e) => (e[e.FLOAT = 0] = "FLOAT", e[e.INT = 1] = "INT", e[e.UINT = 2] = "UINT", e))(ef || {}), Ur = /* @__PURE__ */ ((e) => (e[e.NEAREST = 0] = "NEAREST", e[e.LINEAR = 1] = "LINEAR", e))(Ur || {}), Os = /* @__PURE__ */ ((e) => (e[e.CLAMP = 33071] = "CLAMP", e[e.REPEAT = 10497] = "REPEAT", e[e.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", e))(Os || {}), Xn = /* @__PURE__ */ ((e) => (e[e.OFF = 0] = "OFF", e[e.POW2 = 1] = "POW2", e[e.ON = 2] = "ON", e[e.ON_MANUAL = 3] = "ON_MANUAL", e))(Xn || {}), xn = /* @__PURE__ */ ((e) => (e[e.NPM = 0] = "NPM", e[e.UNPACK = 1] = "UNPACK", e[e.PMA = 2] = "PMA", e[e.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", e[e.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", e[e.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", e))(xn || {}), Fn = /* @__PURE__ */ ((e) => (e[e.NO = 0] = "NO", e[e.YES = 1] = "YES", e[e.AUTO = 2] = "AUTO", e[e.BLEND = 0] = "BLEND", e[e.CLEAR = 1] = "CLEAR", e[e.BLIT = 2] = "BLIT", e))(Fn || {}), Uf = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.MANUAL = 1] = "MANUAL", e))(Uf || {}), pr = /* @__PURE__ */ ((e) => (e.LOW = "lowp", e.MEDIUM = "mediump", e.HIGH = "highp", e))(pr || {}), Te = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.SCISSOR = 1] = "SCISSOR", e[e.STENCIL = 2] = "STENCIL", e[e.SPRITE = 3] = "SPRITE", e[e.COLOR = 4] = "COLOR", e))(Te || {}), be = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.LOW = 2] = "LOW", e[e.MEDIUM = 4] = "MEDIUM", e[e.HIGH = 8] = "HIGH", e))(be || {}), $r = /* @__PURE__ */ ((e) => (e[e.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", e[e.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", e[e.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", e))($r || {});
|
|
683
683
|
const XA = {
|
|
684
684
|
createCanvas: (e, t) => {
|
|
685
685
|
const r = document.createElement("canvas");
|
|
@@ -1197,31 +1197,31 @@ lo.exports;
|
|
|
1197
1197
|
D = A(D / x);
|
|
1198
1198
|
return A(G + (x + 1) * D / (D + p));
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
var k = [], j = D.length, G, K = 0, X = m, $ = v, V,
|
|
1202
|
-
for (V = D.lastIndexOf(y), V < 0 && (V = 0),
|
|
1203
|
-
D.charCodeAt(
|
|
1204
|
-
for (
|
|
1205
|
-
for (nt = K, ot = 1, dt = f;
|
|
1200
|
+
function Z(D) {
|
|
1201
|
+
var k = [], j = D.length, G, K = 0, X = m, $ = v, V, Q, J, nt, ot, dt, pt, bt, Tt;
|
|
1202
|
+
for (V = D.lastIndexOf(y), V < 0 && (V = 0), Q = 0; Q < V; ++Q)
|
|
1203
|
+
D.charCodeAt(Q) >= 128 && O("not-basic"), k.push(D.charCodeAt(Q));
|
|
1204
|
+
for (J = V > 0 ? V + 1 : 0; J < j; ) {
|
|
1205
|
+
for (nt = K, ot = 1, dt = f; J >= j && O("invalid-input"), pt = M(D.charCodeAt(J++)), (pt >= f || pt > A((u - K) / ot)) && O("overflow"), K += pt * ot, bt = dt <= $ ? h : dt >= $ + d ? d : dt - $, !(pt < bt); dt += f)
|
|
1206
1206
|
Tt = f - bt, ot > A(u / Tt) && O("overflow"), ot *= Tt;
|
|
1207
1207
|
G = k.length + 1, $ = q(K - nt, G, nt == 0), A(K / G) > u - X && O("overflow"), X += A(K / G), K %= G, k.splice(K++, 0, X);
|
|
1208
1208
|
}
|
|
1209
1209
|
return P(k);
|
|
1210
1210
|
}
|
|
1211
1211
|
function z(D) {
|
|
1212
|
-
var k, j, G, K, X, $, V,
|
|
1213
|
-
for (D = C(D),
|
|
1212
|
+
var k, j, G, K, X, $, V, Q, J, nt, ot, dt = [], pt, bt, Tt, le;
|
|
1213
|
+
for (D = C(D), pt = D.length, k = m, j = 0, X = v, $ = 0; $ < pt; ++$)
|
|
1214
1214
|
ot = D[$], ot < 128 && dt.push(I(ot));
|
|
1215
|
-
for (G = K = dt.length, K && dt.push(y); G <
|
|
1216
|
-
for (V = u, $ = 0; $ <
|
|
1215
|
+
for (G = K = dt.length, K && dt.push(y); G < pt; ) {
|
|
1216
|
+
for (V = u, $ = 0; $ < pt; ++$)
|
|
1217
1217
|
ot = D[$], ot >= k && ot < V && (V = ot);
|
|
1218
|
-
for (bt = G + 1, V - k > A((u - j) / bt) && O("overflow"), j += (V - k) * bt, k = V, $ = 0; $ <
|
|
1218
|
+
for (bt = G + 1, V - k > A((u - j) / bt) && O("overflow"), j += (V - k) * bt, k = V, $ = 0; $ < pt; ++$)
|
|
1219
1219
|
if (ot = D[$], ot < k && ++j > u && O("overflow"), ot == k) {
|
|
1220
|
-
for (
|
|
1221
|
-
le =
|
|
1220
|
+
for (Q = j, J = f; nt = J <= X ? h : J >= X + d ? d : J - X, !(Q < nt); J += f)
|
|
1221
|
+
le = Q - nt, Tt = f - nt, dt.push(
|
|
1222
1222
|
I(F(nt + le % Tt, 0))
|
|
1223
|
-
),
|
|
1224
|
-
dt.push(I(F(
|
|
1223
|
+
), Q = A(le / Tt);
|
|
1224
|
+
dt.push(I(F(Q, 0))), X = q(j, bt, G == K), j = 0, ++G;
|
|
1225
1225
|
}
|
|
1226
1226
|
++j, ++k;
|
|
1227
1227
|
}
|
|
@@ -1229,7 +1229,7 @@ lo.exports;
|
|
|
1229
1229
|
}
|
|
1230
1230
|
function rt(D) {
|
|
1231
1231
|
return R(D, function(k) {
|
|
1232
|
-
return b.test(k) ?
|
|
1232
|
+
return b.test(k) ? Z(k.slice(4).toLowerCase()) : k;
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
1235
|
function W(D) {
|
|
@@ -1255,7 +1255,7 @@ lo.exports;
|
|
|
1255
1255
|
decode: C,
|
|
1256
1256
|
encode: P
|
|
1257
1257
|
},
|
|
1258
|
-
decode:
|
|
1258
|
+
decode: Z,
|
|
1259
1259
|
encode: z,
|
|
1260
1260
|
toASCII: W,
|
|
1261
1261
|
toUnicode: rt
|
|
@@ -1637,10 +1637,10 @@ var lf = HS, Ep = lf.custom, Ap = bg(Ep) ? Ep : null, eO = function e(t, r, n, i
|
|
|
1637
1637
|
return "[Circular]";
|
|
1638
1638
|
function c(M, F, q) {
|
|
1639
1639
|
if (F && (i = tO.call(i), i.push(F)), q) {
|
|
1640
|
-
var
|
|
1640
|
+
var Z = {
|
|
1641
1641
|
depth: a.depth
|
|
1642
1642
|
};
|
|
1643
|
-
return gn(a, "quoteStyle") && (
|
|
1643
|
+
return gn(a, "quoteStyle") && (Z.quoteStyle = a.quoteStyle), e(M, Z, n + 1, i);
|
|
1644
1644
|
}
|
|
1645
1645
|
return e(M, a, n + 1, i);
|
|
1646
1646
|
}
|
|
@@ -2148,8 +2148,8 @@ var Vf = jf, ji = jS, bO = eO, xO = Vf("%TypeError%"), La = Vf("%WeakMap%", !0),
|
|
|
2148
2148
|
}
|
|
2149
2149
|
typeof w.get(Eu) > "u" && (T = 0);
|
|
2150
2150
|
}
|
|
2151
|
-
if (typeof f == "function" ? _ = f(r, _) : _ instanceof Date ? _ = p(_) : n === "comma" && en(_) && (_ = Ya.maybeMap(_, function(
|
|
2152
|
-
return
|
|
2151
|
+
if (typeof f == "function" ? _ = f(r, _) : _ instanceof Date ? _ = p(_) : n === "comma" && en(_) && (_ = Ya.maybeMap(_, function(Z) {
|
|
2152
|
+
return Z instanceof Date ? p(Z) : Z;
|
|
2153
2153
|
})), _ === null) {
|
|
2154
2154
|
if (a)
|
|
2155
2155
|
return u && !m ? u(r, ke.encoder, y, "key", c) : r;
|
|
@@ -2492,8 +2492,8 @@ Or.prototype.parse = function(e, t, r) {
|
|
|
2492
2492
|
}
|
|
2493
2493
|
var q = u.indexOf("#");
|
|
2494
2494
|
q !== -1 && (this.hash = u.substr(q), u = u.slice(0, q));
|
|
2495
|
-
var
|
|
2496
|
-
if (
|
|
2495
|
+
var Z = u.indexOf("?");
|
|
2496
|
+
if (Z !== -1 ? (this.search = u.substr(Z), this.query = u.substr(Z + 1), t && (this.query = pf.parse(this.query)), u = u.slice(0, Z)) : t && (this.search = "", this.query = {}), u && (this.pathname = u), Ri[d] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
2497
2497
|
var C = this.pathname || "", z = this.search || "";
|
|
2498
2498
|
this.path = C + z;
|
|
2499
2499
|
}
|
|
@@ -3434,7 +3434,7 @@ const zC = {
|
|
|
3434
3434
|
}
|
|
3435
3435
|
static fromBuffer(e, t, r, n) {
|
|
3436
3436
|
e = e || new Float32Array(t * r * 4);
|
|
3437
|
-
const i = new Yf(e, { width: t, height: r }), a = e instanceof Float32Array ?
|
|
3437
|
+
const i = new Yf(e, { width: t, height: r }), a = e instanceof Float32Array ? Vt.FLOAT : Vt.UNSIGNED_BYTE;
|
|
3438
3438
|
return new wi(i, Object.assign({}, zC, n || { width: t, height: r, type: a }));
|
|
3439
3439
|
}
|
|
3440
3440
|
static addToCache(e, t) {
|
|
@@ -3455,8 +3455,8 @@ const zC = {
|
|
|
3455
3455
|
return null;
|
|
3456
3456
|
}
|
|
3457
3457
|
};
|
|
3458
|
-
let
|
|
3459
|
-
|
|
3458
|
+
let Wt = wi;
|
|
3459
|
+
Wt.defaultOptions = {
|
|
3460
3460
|
mipmap: Xn.POW2,
|
|
3461
3461
|
anisotropicLevel: 0,
|
|
3462
3462
|
scaleMode: Ur.LINEAR,
|
|
@@ -3464,9 +3464,9 @@ Vt.defaultOptions = {
|
|
|
3464
3464
|
alphaMode: xn.UNPACK,
|
|
3465
3465
|
target: Oi.TEXTURE_2D,
|
|
3466
3466
|
format: yt.RGBA,
|
|
3467
|
-
type:
|
|
3467
|
+
type: Vt.UNSIGNED_BYTE
|
|
3468
3468
|
};
|
|
3469
|
-
|
|
3469
|
+
Wt._globalBatch = 0;
|
|
3470
3470
|
class _f {
|
|
3471
3471
|
constructor() {
|
|
3472
3472
|
this.texArray = null, this.blend = 0, this.type = mn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
|
|
@@ -3496,7 +3496,7 @@ let HC = 0, nr = class kg {
|
|
|
3496
3496
|
}
|
|
3497
3497
|
};
|
|
3498
3498
|
class vo {
|
|
3499
|
-
constructor(t, r = 0, n = !1, i =
|
|
3499
|
+
constructor(t, r = 0, n = !1, i = Vt.FLOAT, a, l, u, f = 1) {
|
|
3500
3500
|
this.buffer = t, this.size = r, this.normalized = n, this.type = i, this.stride = a, this.start = l, this.instance = u, this.divisor = f;
|
|
3501
3501
|
}
|
|
3502
3502
|
destroy() {
|
|
@@ -3643,7 +3643,7 @@ class Li {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
class Lg extends Li {
|
|
3645
3645
|
constructor(t = !1) {
|
|
3646
|
-
super(), this._buffer = new nr(null, t, !1), this._indexBuffer = new nr(null, t, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1,
|
|
3646
|
+
super(), this._buffer = new nr(null, t, !1), this._indexBuffer = new nr(null, t, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1, Vt.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, !1, Vt.FLOAT).addAttribute("aColor", this._buffer, 4, !0, Vt.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, !0, Vt.FLOAT).addIndex(this._indexBuffer);
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
3649
|
const go = Math.PI * 2, YC = 180 / Math.PI, Ms = Math.PI / 180;
|
|
@@ -4891,7 +4891,7 @@ const br = class extends qg {
|
|
|
4891
4891
|
_bufferedTextures: e,
|
|
4892
4892
|
maxTextures: t
|
|
4893
4893
|
} = this, r = br._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
4894
|
-
let l = ++
|
|
4894
|
+
let l = ++Wt._globalBatch, u = 0, f = r[0], h = 0;
|
|
4895
4895
|
n.copyBoundTextures(i, t);
|
|
4896
4896
|
for (let d = 0; d < this._bufferSize; ++d) {
|
|
4897
4897
|
const p = e[d];
|
|
@@ -4900,7 +4900,7 @@ const br = class extends qg {
|
|
|
4900
4900
|
f.count > 0 && (n.boundArray(f, i, l, t), this.buildDrawCalls(f, h, this._bufferSize), ++u, ++l);
|
|
4901
4901
|
for (let d = 0; d < i.length; d++)
|
|
4902
4902
|
i[d] = null;
|
|
4903
|
-
|
|
4903
|
+
Wt._globalBatch = l;
|
|
4904
4904
|
}
|
|
4905
4905
|
buildDrawCalls(e, t, r) {
|
|
4906
4906
|
const {
|
|
@@ -5257,7 +5257,7 @@ class wf {
|
|
|
5257
5257
|
return this.colorTextures[0];
|
|
5258
5258
|
}
|
|
5259
5259
|
addColorTexture(t = 0, r) {
|
|
5260
|
-
return this.colorTextures[t] = r || new
|
|
5260
|
+
return this.colorTextures[t] = r || new Wt(null, {
|
|
5261
5261
|
scaleMode: Ur.NEAREST,
|
|
5262
5262
|
resolution: 1,
|
|
5263
5263
|
mipmap: Xn.OFF,
|
|
@@ -5266,14 +5266,14 @@ class wf {
|
|
|
5266
5266
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
5267
5267
|
}
|
|
5268
5268
|
addDepthTexture(t) {
|
|
5269
|
-
return this.depthTexture = t || new
|
|
5269
|
+
return this.depthTexture = t || new Wt(new yR(null, { width: this.width, height: this.height }), {
|
|
5270
5270
|
scaleMode: Ur.NEAREST,
|
|
5271
5271
|
resolution: 1,
|
|
5272
5272
|
width: this.width,
|
|
5273
5273
|
height: this.height,
|
|
5274
5274
|
mipmap: Xn.OFF,
|
|
5275
5275
|
format: yt.DEPTH_COMPONENT,
|
|
5276
|
-
type:
|
|
5276
|
+
type: Vt.UNSIGNED_SHORT
|
|
5277
5277
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
5278
5278
|
}
|
|
5279
5279
|
enableDepth() {
|
|
@@ -5302,7 +5302,7 @@ class wf {
|
|
|
5302
5302
|
this.depthTexture && (this.depthTexture.destroy(), this.depthTexture = null, ++this.dirtyId, ++this.dirtyFormat);
|
|
5303
5303
|
}
|
|
5304
5304
|
}
|
|
5305
|
-
class Hg extends
|
|
5305
|
+
class Hg extends Wt {
|
|
5306
5306
|
constructor(t = {}) {
|
|
5307
5307
|
if (typeof t == "number") {
|
|
5308
5308
|
const r = arguments[0], n = arguments[1], i = arguments[2], a = arguments[3];
|
|
@@ -5440,9 +5440,9 @@ function za(e) {
|
|
|
5440
5440
|
}, e.emit = function() {
|
|
5441
5441
|
};
|
|
5442
5442
|
}
|
|
5443
|
-
class
|
|
5443
|
+
class Ht extends So {
|
|
5444
5444
|
constructor(t, r, n, i, a, l, u) {
|
|
5445
|
-
if (super(), this.noFrame = !1, r || (this.noFrame = !0, r = new ne(0, 0, 1, 1)), t instanceof
|
|
5445
|
+
if (super(), this.noFrame = !1, r || (this.noFrame = !0, r = new ne(0, 0, 1, 1)), t instanceof Ht && (t = t.baseTexture), this.baseTexture = t, this._frame = r, this.trim = i, this.valid = !1, this._uvs = Qp, this.uvMatrix = null, this.orig = n || r, this._rotate = Number(a || 0), a === !0)
|
|
5446
5446
|
this._rotate = 2;
|
|
5447
5447
|
else if (this._rotate % 2 !== 0)
|
|
5448
5448
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -5464,15 +5464,15 @@ class zt extends So {
|
|
|
5464
5464
|
if (this.baseTexture) {
|
|
5465
5465
|
if (t) {
|
|
5466
5466
|
const { resource: r } = this.baseTexture;
|
|
5467
|
-
r != null && r.url && Fr[r.url] &&
|
|
5467
|
+
r != null && r.url && Fr[r.url] && Ht.removeFromCache(r.url), this.baseTexture.destroy();
|
|
5468
5468
|
}
|
|
5469
5469
|
this.baseTexture.off("loaded", this.onBaseTextureUpdated, this), this.baseTexture.off("update", this.onBaseTextureUpdated, this), this.baseTexture = null;
|
|
5470
5470
|
}
|
|
5471
|
-
this._frame = null, this._uvs = null, this.trim = null, this.orig = null, this.valid = !1,
|
|
5471
|
+
this._frame = null, this._uvs = null, this.trim = null, this.orig = null, this.valid = !1, Ht.removeFromCache(this), this.textureCacheIds = null;
|
|
5472
5472
|
}
|
|
5473
5473
|
clone() {
|
|
5474
5474
|
var i;
|
|
5475
|
-
const t = this._frame.clone(), r = this._frame === this.orig ? t : this.orig.clone(), n = new
|
|
5475
|
+
const t = this._frame.clone(), r = this._frame === this.orig ? t : this.orig.clone(), n = new Ht(this.baseTexture, !this.noFrame && t, r, (i = this.trim) == null ? void 0 : i.clone(), this.rotate, this.defaultAnchor, this.defaultBorders);
|
|
5476
5476
|
return this.noFrame && (n._frame = t), n;
|
|
5477
5477
|
}
|
|
5478
5478
|
updateUvs() {
|
|
@@ -5483,10 +5483,10 @@ class zt extends So {
|
|
|
5483
5483
|
let a = null;
|
|
5484
5484
|
if (i)
|
|
5485
5485
|
a = t;
|
|
5486
|
-
else if (t instanceof
|
|
5486
|
+
else if (t instanceof Wt) {
|
|
5487
5487
|
if (!t.cacheId) {
|
|
5488
5488
|
const u = (r == null ? void 0 : r.pixiIdPrefix) || "pixiid";
|
|
5489
|
-
t.cacheId = `${u}-${Ps()}`,
|
|
5489
|
+
t.cacheId = `${u}-${Ps()}`, Wt.addToCache(t, t.cacheId);
|
|
5490
5490
|
}
|
|
5491
5491
|
a = t.cacheId;
|
|
5492
5492
|
} else {
|
|
@@ -5499,23 +5499,23 @@ class zt extends So {
|
|
|
5499
5499
|
let l = Fr[a];
|
|
5500
5500
|
if (i && n && !l)
|
|
5501
5501
|
throw new Error(`The cacheId "${a}" does not exist in TextureCache.`);
|
|
5502
|
-
return !l && !(t instanceof
|
|
5502
|
+
return !l && !(t instanceof Wt) ? (r.resolution || (r.resolution = zp(t)), l = new Ht(new Wt(t, r)), l.baseTexture.cacheId = a, Wt.addToCache(l.baseTexture, a), Ht.addToCache(l, a)) : !l && t instanceof Wt && (l = new Ht(t), Ht.addToCache(l, a)), l;
|
|
5503
5503
|
}
|
|
5504
5504
|
static fromURL(t, r) {
|
|
5505
|
-
const n = Object.assign({ autoLoad: !1 }, r == null ? void 0 : r.resourceOptions), i =
|
|
5505
|
+
const n = Object.assign({ autoLoad: !1 }, r == null ? void 0 : r.resourceOptions), i = Ht.from(t, Object.assign({ resourceOptions: n }, r), !1), a = i.baseTexture.resource;
|
|
5506
5506
|
return i.baseTexture.valid ? Promise.resolve(i) : a.load().then(() => Promise.resolve(i));
|
|
5507
5507
|
}
|
|
5508
5508
|
static fromBuffer(t, r, n, i) {
|
|
5509
|
-
return new
|
|
5509
|
+
return new Ht(Wt.fromBuffer(t, r, n, i));
|
|
5510
5510
|
}
|
|
5511
5511
|
static fromLoader(t, r, n, i) {
|
|
5512
|
-
const a = new
|
|
5513
|
-
scaleMode:
|
|
5512
|
+
const a = new Wt(t, Object.assign({
|
|
5513
|
+
scaleMode: Wt.defaultOptions.scaleMode,
|
|
5514
5514
|
resolution: zp(r)
|
|
5515
5515
|
}, i)), { resource: l } = a;
|
|
5516
5516
|
l instanceof Vg && (l.url = r);
|
|
5517
|
-
const u = new
|
|
5518
|
-
return n || (n = r),
|
|
5517
|
+
const u = new Ht(a);
|
|
5518
|
+
return n || (n = r), Wt.addToCache(u.baseTexture, n), Ht.addToCache(u, n), n !== r && (Wt.addToCache(u.baseTexture, r), Ht.addToCache(u, r)), u.baseTexture.valid ? Promise.resolve(u) : new Promise((f) => {
|
|
5519
5519
|
u.baseTexture.once("loaded", () => f(u));
|
|
5520
5520
|
});
|
|
5521
5521
|
}
|
|
@@ -5567,17 +5567,17 @@ class zt extends So {
|
|
|
5567
5567
|
return this.baseTexture;
|
|
5568
5568
|
}
|
|
5569
5569
|
static get EMPTY() {
|
|
5570
|
-
return
|
|
5570
|
+
return Ht._EMPTY || (Ht._EMPTY = new Ht(new Wt()), za(Ht._EMPTY), za(Ht._EMPTY.baseTexture)), Ht._EMPTY;
|
|
5571
5571
|
}
|
|
5572
5572
|
static get WHITE() {
|
|
5573
|
-
if (!
|
|
5573
|
+
if (!Ht._WHITE) {
|
|
5574
5574
|
const t = Dt.ADAPTER.createCanvas(16, 16), r = t.getContext("2d");
|
|
5575
|
-
t.width = 16, t.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16),
|
|
5575
|
+
t.width = 16, t.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), Ht._WHITE = new Ht(Wt.from(t)), za(Ht._WHITE), za(Ht._WHITE.baseTexture);
|
|
5576
5576
|
}
|
|
5577
|
-
return
|
|
5577
|
+
return Ht._WHITE;
|
|
5578
5578
|
}
|
|
5579
5579
|
}
|
|
5580
|
-
class ko extends
|
|
5580
|
+
class ko extends Ht {
|
|
5581
5581
|
constructor(t, r) {
|
|
5582
5582
|
super(t, r), this.valid = !0, this.filterFrame = null, this.filterPoolKey = null, this.updateUvs();
|
|
5583
5583
|
}
|
|
@@ -7044,13 +7044,13 @@ Er.extension = {
|
|
|
7044
7044
|
te.add(Er);
|
|
7045
7045
|
class Du {
|
|
7046
7046
|
constructor(t) {
|
|
7047
|
-
this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type =
|
|
7047
|
+
this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = Vt.UNSIGNED_BYTE, this.internalFormat = yt.RGBA, this.samplerType = 0;
|
|
7048
7048
|
}
|
|
7049
7049
|
}
|
|
7050
7050
|
function XR(e) {
|
|
7051
7051
|
let t;
|
|
7052
7052
|
return "WebGL2RenderingContext" in globalThis && e instanceof globalThis.WebGL2RenderingContext ? t = {
|
|
7053
|
-
[
|
|
7053
|
+
[Vt.UNSIGNED_BYTE]: {
|
|
7054
7054
|
[yt.RGBA]: e.RGBA8,
|
|
7055
7055
|
[yt.RGB]: e.RGB8,
|
|
7056
7056
|
[yt.RG]: e.RG8,
|
|
@@ -7063,7 +7063,7 @@ function XR(e) {
|
|
|
7063
7063
|
[yt.LUMINANCE]: e.LUMINANCE,
|
|
7064
7064
|
[yt.LUMINANCE_ALPHA]: e.LUMINANCE_ALPHA
|
|
7065
7065
|
},
|
|
7066
|
-
[
|
|
7066
|
+
[Vt.BYTE]: {
|
|
7067
7067
|
[yt.RGBA]: e.RGBA8_SNORM,
|
|
7068
7068
|
[yt.RGB]: e.RGB8_SNORM,
|
|
7069
7069
|
[yt.RG]: e.RG8_SNORM,
|
|
@@ -7073,92 +7073,92 @@ function XR(e) {
|
|
|
7073
7073
|
[yt.RG_INTEGER]: e.RG8I,
|
|
7074
7074
|
[yt.RED_INTEGER]: e.R8I
|
|
7075
7075
|
},
|
|
7076
|
-
[
|
|
7076
|
+
[Vt.UNSIGNED_SHORT]: {
|
|
7077
7077
|
[yt.RGBA_INTEGER]: e.RGBA16UI,
|
|
7078
7078
|
[yt.RGB_INTEGER]: e.RGB16UI,
|
|
7079
7079
|
[yt.RG_INTEGER]: e.RG16UI,
|
|
7080
7080
|
[yt.RED_INTEGER]: e.R16UI,
|
|
7081
7081
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT16
|
|
7082
7082
|
},
|
|
7083
|
-
[
|
|
7083
|
+
[Vt.SHORT]: {
|
|
7084
7084
|
[yt.RGBA_INTEGER]: e.RGBA16I,
|
|
7085
7085
|
[yt.RGB_INTEGER]: e.RGB16I,
|
|
7086
7086
|
[yt.RG_INTEGER]: e.RG16I,
|
|
7087
7087
|
[yt.RED_INTEGER]: e.R16I
|
|
7088
7088
|
},
|
|
7089
|
-
[
|
|
7089
|
+
[Vt.UNSIGNED_INT]: {
|
|
7090
7090
|
[yt.RGBA_INTEGER]: e.RGBA32UI,
|
|
7091
7091
|
[yt.RGB_INTEGER]: e.RGB32UI,
|
|
7092
7092
|
[yt.RG_INTEGER]: e.RG32UI,
|
|
7093
7093
|
[yt.RED_INTEGER]: e.R32UI,
|
|
7094
7094
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT24
|
|
7095
7095
|
},
|
|
7096
|
-
[
|
|
7096
|
+
[Vt.INT]: {
|
|
7097
7097
|
[yt.RGBA_INTEGER]: e.RGBA32I,
|
|
7098
7098
|
[yt.RGB_INTEGER]: e.RGB32I,
|
|
7099
7099
|
[yt.RG_INTEGER]: e.RG32I,
|
|
7100
7100
|
[yt.RED_INTEGER]: e.R32I
|
|
7101
7101
|
},
|
|
7102
|
-
[
|
|
7102
|
+
[Vt.FLOAT]: {
|
|
7103
7103
|
[yt.RGBA]: e.RGBA32F,
|
|
7104
7104
|
[yt.RGB]: e.RGB32F,
|
|
7105
7105
|
[yt.RG]: e.RG32F,
|
|
7106
7106
|
[yt.RED]: e.R32F,
|
|
7107
7107
|
[yt.DEPTH_COMPONENT]: e.DEPTH_COMPONENT32F
|
|
7108
7108
|
},
|
|
7109
|
-
[
|
|
7109
|
+
[Vt.HALF_FLOAT]: {
|
|
7110
7110
|
[yt.RGBA]: e.RGBA16F,
|
|
7111
7111
|
[yt.RGB]: e.RGB16F,
|
|
7112
7112
|
[yt.RG]: e.RG16F,
|
|
7113
7113
|
[yt.RED]: e.R16F
|
|
7114
7114
|
},
|
|
7115
|
-
[
|
|
7115
|
+
[Vt.UNSIGNED_SHORT_5_6_5]: {
|
|
7116
7116
|
[yt.RGB]: e.RGB565
|
|
7117
7117
|
},
|
|
7118
|
-
[
|
|
7118
|
+
[Vt.UNSIGNED_SHORT_4_4_4_4]: {
|
|
7119
7119
|
[yt.RGBA]: e.RGBA4
|
|
7120
7120
|
},
|
|
7121
|
-
[
|
|
7121
|
+
[Vt.UNSIGNED_SHORT_5_5_5_1]: {
|
|
7122
7122
|
[yt.RGBA]: e.RGB5_A1
|
|
7123
7123
|
},
|
|
7124
|
-
[
|
|
7124
|
+
[Vt.UNSIGNED_INT_2_10_10_10_REV]: {
|
|
7125
7125
|
[yt.RGBA]: e.RGB10_A2,
|
|
7126
7126
|
[yt.RGBA_INTEGER]: e.RGB10_A2UI
|
|
7127
7127
|
},
|
|
7128
|
-
[
|
|
7128
|
+
[Vt.UNSIGNED_INT_10F_11F_11F_REV]: {
|
|
7129
7129
|
[yt.RGB]: e.R11F_G11F_B10F
|
|
7130
7130
|
},
|
|
7131
|
-
[
|
|
7131
|
+
[Vt.UNSIGNED_INT_5_9_9_9_REV]: {
|
|
7132
7132
|
[yt.RGB]: e.RGB9_E5
|
|
7133
7133
|
},
|
|
7134
|
-
[
|
|
7134
|
+
[Vt.UNSIGNED_INT_24_8]: {
|
|
7135
7135
|
[yt.DEPTH_STENCIL]: e.DEPTH24_STENCIL8
|
|
7136
7136
|
},
|
|
7137
|
-
[
|
|
7137
|
+
[Vt.FLOAT_32_UNSIGNED_INT_24_8_REV]: {
|
|
7138
7138
|
[yt.DEPTH_STENCIL]: e.DEPTH32F_STENCIL8
|
|
7139
7139
|
}
|
|
7140
7140
|
} : t = {
|
|
7141
|
-
[
|
|
7141
|
+
[Vt.UNSIGNED_BYTE]: {
|
|
7142
7142
|
[yt.RGBA]: e.RGBA,
|
|
7143
7143
|
[yt.RGB]: e.RGB,
|
|
7144
7144
|
[yt.ALPHA]: e.ALPHA,
|
|
7145
7145
|
[yt.LUMINANCE]: e.LUMINANCE,
|
|
7146
7146
|
[yt.LUMINANCE_ALPHA]: e.LUMINANCE_ALPHA
|
|
7147
7147
|
},
|
|
7148
|
-
[
|
|
7148
|
+
[Vt.UNSIGNED_SHORT_5_6_5]: {
|
|
7149
7149
|
[yt.RGB]: e.RGB
|
|
7150
7150
|
},
|
|
7151
|
-
[
|
|
7151
|
+
[Vt.UNSIGNED_SHORT_4_4_4_4]: {
|
|
7152
7152
|
[yt.RGBA]: e.RGBA
|
|
7153
7153
|
},
|
|
7154
|
-
[
|
|
7154
|
+
[Vt.UNSIGNED_SHORT_5_5_5_1]: {
|
|
7155
7155
|
[yt.RGBA]: e.RGBA
|
|
7156
7156
|
}
|
|
7157
7157
|
}, t;
|
|
7158
7158
|
}
|
|
7159
7159
|
class um {
|
|
7160
7160
|
constructor(t) {
|
|
7161
|
-
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new
|
|
7161
|
+
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new Wt(), this.hasIntegerTextures = !1;
|
|
7162
7162
|
}
|
|
7163
7163
|
contextChange() {
|
|
7164
7164
|
const t = this.gl = this.renderer.gl;
|
|
@@ -7214,7 +7214,7 @@ class um {
|
|
|
7214
7214
|
}
|
|
7215
7215
|
initTextureType(t, r) {
|
|
7216
7216
|
var n;
|
|
7217
|
-
r.internalFormat = ((n = this.internalFormats[t.type]) == null ? void 0 : n[t.format]) ?? t.format, this.webGLVersion === 2 && t.type ===
|
|
7217
|
+
r.internalFormat = ((n = this.internalFormats[t.type]) == null ? void 0 : n[t.format]) ?? t.format, this.webGLVersion === 2 && t.type === Vt.HALF_FLOAT ? r.type = this.gl.HALF_FLOAT : r.type = t.type;
|
|
7218
7218
|
}
|
|
7219
7219
|
updateTexture(t) {
|
|
7220
7220
|
var i;
|
|
@@ -7361,34 +7361,34 @@ Dt.RENDER_OPTIONS = {
|
|
|
7361
7361
|
Object.defineProperties(Dt, {
|
|
7362
7362
|
WRAP_MODE: {
|
|
7363
7363
|
get() {
|
|
7364
|
-
return
|
|
7364
|
+
return Wt.defaultOptions.wrapMode;
|
|
7365
7365
|
},
|
|
7366
7366
|
set(e) {
|
|
7367
|
-
qt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),
|
|
7367
|
+
qt("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), Wt.defaultOptions.wrapMode = e;
|
|
7368
7368
|
}
|
|
7369
7369
|
},
|
|
7370
7370
|
SCALE_MODE: {
|
|
7371
7371
|
get() {
|
|
7372
|
-
return
|
|
7372
|
+
return Wt.defaultOptions.scaleMode;
|
|
7373
7373
|
},
|
|
7374
7374
|
set(e) {
|
|
7375
|
-
qt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),
|
|
7375
|
+
qt("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), Wt.defaultOptions.scaleMode = e;
|
|
7376
7376
|
}
|
|
7377
7377
|
},
|
|
7378
7378
|
MIPMAP_TEXTURES: {
|
|
7379
7379
|
get() {
|
|
7380
|
-
return
|
|
7380
|
+
return Wt.defaultOptions.mipmap;
|
|
7381
7381
|
},
|
|
7382
7382
|
set(e) {
|
|
7383
|
-
qt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),
|
|
7383
|
+
qt("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), Wt.defaultOptions.mipmap = e;
|
|
7384
7384
|
}
|
|
7385
7385
|
},
|
|
7386
7386
|
ANISOTROPIC_LEVEL: {
|
|
7387
7387
|
get() {
|
|
7388
|
-
return
|
|
7388
|
+
return Wt.defaultOptions.anisotropicLevel;
|
|
7389
7389
|
},
|
|
7390
7390
|
set(e) {
|
|
7391
|
-
qt("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),
|
|
7391
|
+
qt("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"), Wt.defaultOptions.anisotropicLevel = e;
|
|
7392
7392
|
}
|
|
7393
7393
|
},
|
|
7394
7394
|
FILTER_RESOLUTION: {
|
|
@@ -7915,7 +7915,7 @@ class vm extends Ns {
|
|
|
7915
7915
|
const { width: n, height: i } = r || {};
|
|
7916
7916
|
super(n, i), this.items = [], this.itemDirtyIds = [];
|
|
7917
7917
|
for (let a = 0; a < t; a++) {
|
|
7918
|
-
const l = new
|
|
7918
|
+
const l = new Wt();
|
|
7919
7919
|
this.items.push(l), this.itemDirtyIds.push(-2);
|
|
7920
7920
|
}
|
|
7921
7921
|
this.length = t, this._load = null, this.baseTexture = null;
|
|
@@ -8916,9 +8916,9 @@ Jn.parse = function() {
|
|
|
8916
8916
|
}
|
|
8917
8917
|
function q(z) {
|
|
8918
8918
|
var rt, W;
|
|
8919
|
-
return W = /^[\n\r\t\s]+/.exec(t), W &&
|
|
8919
|
+
return W = /^[\n\r\t\s]+/.exec(t), W && Z(W[0].length), rt = z.exec(t), rt && Z(rt[0].length), rt;
|
|
8920
8920
|
}
|
|
8921
|
-
function
|
|
8921
|
+
function Z(z) {
|
|
8922
8922
|
t = t.substr(z);
|
|
8923
8923
|
}
|
|
8924
8924
|
return function(z) {
|
|
@@ -9586,7 +9586,7 @@ void main(void)
|
|
|
9586
9586
|
`;
|
|
9587
9587
|
const Cf = class extends Qt {
|
|
9588
9588
|
constructor(t) {
|
|
9589
|
-
super(WI, XI), this.offset = 100, this.fillMode = Cf.TRANSPARENT, this.average = !1, this.seed = 0, this.minSize = 8, this.sampleSize = 512, this._slices = 0, this._offsets = new Float32Array(1), this._sizes = new Float32Array(1), this._direction = -1, this.uniforms.dimensions = new Float32Array(2), this._canvas = document.createElement("canvas"), this._canvas.width = 4, this._canvas.height = this.sampleSize, this.texture =
|
|
9589
|
+
super(WI, XI), this.offset = 100, this.fillMode = Cf.TRANSPARENT, this.average = !1, this.seed = 0, this.minSize = 8, this.sampleSize = 512, this._slices = 0, this._offsets = new Float32Array(1), this._sizes = new Float32Array(1), this._direction = -1, this.uniforms.dimensions = new Float32Array(2), this._canvas = document.createElement("canvas"), this._canvas.width = 4, this._canvas.height = this.sampleSize, this.texture = Ht.from(this._canvas, { scaleMode: Ur.NEAREST }), Object.assign(this, Cf.defaults, t);
|
|
9590
9590
|
}
|
|
9591
9591
|
apply(t, r, n, i) {
|
|
9592
9592
|
const { width: a, height: l } = r.filterFrame;
|
|
@@ -11026,7 +11026,7 @@ const js = (e) => {
|
|
|
11026
11026
|
temperatureFilter: v
|
|
11027
11027
|
};
|
|
11028
11028
|
}, CB = At.forwardRef((e, t) => {
|
|
11029
|
-
const r =
|
|
11029
|
+
const r = Xt(null), n = Xt(null), {
|
|
11030
11030
|
src: i,
|
|
11031
11031
|
transformation: { x: a, y: l, width: u, height: f, anchor: h, colorCorrection: d = {} },
|
|
11032
11032
|
pointerdown: p
|
|
@@ -11303,27 +11303,27 @@ function MP(e, t) {
|
|
|
11303
11303
|
d.push(T - S * M, x - O * M, T + S * F, x + O * F), j >= 0 && (a.join === wr.ROUND ? c += kn(T, x, T - S * M, x - O * M, T - L * M, x - R * M, d, !1) + 4 : c += 2, d.push(T - L * F, x - R * F, T + L * M, x + R * M));
|
|
11304
11304
|
continue;
|
|
11305
11305
|
}
|
|
11306
|
-
const X = (-S + _) * (-O + x) - (-S + T) * (-O + w), $ = (-L + A) * (-R + x) - (-L + T) * (-R + I), V = (rt * $ - D * X) / G,
|
|
11306
|
+
const X = (-S + _) * (-O + x) - (-S + T) * (-O + w), $ = (-L + A) * (-R + x) - (-L + T) * (-R + I), V = (rt * $ - D * X) / G, Q = (k * X - W * $) / G, J = (V - T) * (V - T) + (Q - x) * (Q - x), nt = T + (V - T) * M, ot = x + (Q - x) * M, dt = T - (V - T) * F, pt = x - (Q - x) * F, bt = Math.min(rt * rt + W * W, D * D + k * k), Tt = K ? M : F, le = bt + Tt * Tt * y, zt = J <= le;
|
|
11307
11307
|
let st = a.join;
|
|
11308
|
-
if (st === wr.MITER &&
|
|
11308
|
+
if (st === wr.MITER && J / y > b && (st = wr.BEVEL), zt)
|
|
11309
11309
|
switch (st) {
|
|
11310
11310
|
case wr.MITER: {
|
|
11311
|
-
d.push(nt, ot, dt,
|
|
11311
|
+
d.push(nt, ot, dt, pt);
|
|
11312
11312
|
break;
|
|
11313
11313
|
}
|
|
11314
11314
|
case wr.BEVEL: {
|
|
11315
|
-
K ? d.push(nt, ot, T + S * F, x + O * F, nt, ot, T + L * F, x + R * F) : d.push(T - S * M, x - O * M, dt,
|
|
11315
|
+
K ? d.push(nt, ot, T + S * F, x + O * F, nt, ot, T + L * F, x + R * F) : d.push(T - S * M, x - O * M, dt, pt, T - L * M, x - R * M, dt, pt), c += 2;
|
|
11316
11316
|
break;
|
|
11317
11317
|
}
|
|
11318
11318
|
case wr.ROUND: {
|
|
11319
|
-
K ? (d.push(nt, ot, T + S * F, x + O * F), c += kn(T, x, T + S * F, x + O * F, T + L * F, x + R * F, d, !0) + 4, d.push(nt, ot, T + L * F, x + R * F)) : (d.push(T - S * M, x - O * M, dt,
|
|
11319
|
+
K ? (d.push(nt, ot, T + S * F, x + O * F), c += kn(T, x, T + S * F, x + O * F, T + L * F, x + R * F, d, !0) + 4, d.push(nt, ot, T + L * F, x + R * F)) : (d.push(T - S * M, x - O * M, dt, pt), c += kn(T, x, T - S * M, x - O * M, T - L * M, x - R * M, d, !1) + 4, d.push(T - L * M, x - R * M, dt, pt));
|
|
11320
11320
|
break;
|
|
11321
11321
|
}
|
|
11322
11322
|
}
|
|
11323
11323
|
else {
|
|
11324
11324
|
switch (d.push(T - S * M, x - O * M, T + S * F, x + O * F), st) {
|
|
11325
11325
|
case wr.MITER: {
|
|
11326
|
-
K ? d.push(dt,
|
|
11326
|
+
K ? d.push(dt, pt, dt, pt) : d.push(nt, ot, nt, ot), c += 2;
|
|
11327
11327
|
break;
|
|
11328
11328
|
}
|
|
11329
11329
|
case wr.ROUND: {
|
|
@@ -11335,9 +11335,9 @@ function MP(e, t) {
|
|
|
11335
11335
|
}
|
|
11336
11336
|
}
|
|
11337
11337
|
_ = n[(p - 2) * 2], w = n[(p - 2) * 2 + 1], T = n[(p - 1) * 2], x = n[(p - 1) * 2 + 1], S = -(w - x), O = _ - T, C = Math.sqrt(S * S + O * O), S /= C, O /= C, S *= m, O *= m, d.push(T - S * M, x - O * M, T + S * F, x + O * F), f || (a.cap === qn.ROUND ? c += kn(T - S * (M - F) * 0.5, x - O * (M - F) * 0.5, T - S * M, x - O * M, T + S * F, x + O * F, d, !1) + 2 : a.cap === qn.SQUARE && (c += pv(T, x, S, O, M, F, !1, d)));
|
|
11338
|
-
const q = t.indices,
|
|
11338
|
+
const q = t.indices, Z = Fi.epsilon * Fi.epsilon;
|
|
11339
11339
|
for (let z = v; z < c + v - 2; ++z)
|
|
11340
|
-
_ = d[z * 2], w = d[z * 2 + 1], T = d[(z + 1) * 2], x = d[(z + 1) * 2 + 1], A = d[(z + 2) * 2], I = d[(z + 2) * 2 + 1], !(Math.abs(_ * (x - I) + T * (I - w) + A * (w - x)) <
|
|
11340
|
+
_ = d[z * 2], w = d[z * 2 + 1], T = d[(z + 1) * 2], x = d[(z + 1) * 2 + 1], A = d[(z + 2) * 2], I = d[(z + 2) * 2 + 1], !(Math.abs(_ * (x - I) + T * (I - w) + A * (w - x)) < Z) && q.push(z, z + 1, z + 2);
|
|
11341
11341
|
}
|
|
11342
11342
|
function kP(e, t) {
|
|
11343
11343
|
let r = 0;
|
|
@@ -11944,7 +11944,7 @@ const yi = new se(), Mm = class extends Lg {
|
|
|
11944
11944
|
return this.points.length < Mm.BATCHABLE_SIZE * 2;
|
|
11945
11945
|
}
|
|
11946
11946
|
buildDrawCalls() {
|
|
11947
|
-
let e = ++
|
|
11947
|
+
let e = ++Wt._globalBatch;
|
|
11948
11948
|
for (let d = 0; d < this.drawCalls.length; d++)
|
|
11949
11949
|
this.drawCalls[d].texArray.clear(), Xa.push(this.drawCalls[d]);
|
|
11950
11950
|
this.drawCalls.length = 0;
|
|
@@ -11957,7 +11957,7 @@ const yi = new se(), Mm = class extends Lg {
|
|
|
11957
11957
|
const p = this.batches[d], c = 8, v = p.style, m = v.texture.baseTexture;
|
|
11958
11958
|
u !== !!v.native && (u = !!v.native, f = u ? mn.LINES : mn.TRIANGLES, a = null, i = c, e++), a !== m && (a = m, m._batchEnabled !== e && (i === c && (e++, i = 0, n.size > 0 && (n = Xa.pop(), n || (n = new _f(), n.texArray = new xf()), this.drawCalls.push(n)), n.start = h, n.size = 0, n.texArray.count = 0, n.type = f), m.touched = 1, m._batchEnabled = e, m._batchLocation = i, m.wrapMode = Os.REPEAT, n.texArray.elements[n.texArray.count++] = m, i++)), n.size += p.size, h += p.size, l = m._batchLocation, this.addColors(t, v.color, v.alpha, p.attribSize, p.attribStart), this.addTextureIds(r, l, p.attribSize, p.attribStart);
|
|
11959
11959
|
}
|
|
11960
|
-
|
|
11960
|
+
Wt._globalBatch = e, this.packAttributes();
|
|
11961
11961
|
}
|
|
11962
11962
|
packAttributes() {
|
|
11963
11963
|
const e = this.points, t = this.uvs, r = this.colors, n = this.textureIds, i = new ArrayBuffer(e.length * 3 * 4), a = new Float32Array(i), l = new Uint32Array(i);
|
|
@@ -12029,14 +12029,14 @@ let km = Mm;
|
|
|
12029
12029
|
km.BATCHABLE_SIZE = 100;
|
|
12030
12030
|
class Bo {
|
|
12031
12031
|
constructor() {
|
|
12032
|
-
this.color = 16777215, this.alpha = 1, this.texture =
|
|
12032
|
+
this.color = 16777215, this.alpha = 1, this.texture = Ht.WHITE, this.matrix = null, this.visible = !1, this.reset();
|
|
12033
12033
|
}
|
|
12034
12034
|
clone() {
|
|
12035
12035
|
const t = new Bo();
|
|
12036
12036
|
return t.color = this.color, t.alpha = this.alpha, t.texture = this.texture, t.matrix = this.matrix, t.visible = this.visible, t;
|
|
12037
12037
|
}
|
|
12038
12038
|
reset() {
|
|
12039
|
-
this.color = 16777215, this.alpha = 1, this.texture =
|
|
12039
|
+
this.color = 16777215, this.alpha = 1, this.texture = Ht.WHITE, this.matrix = null, this.visible = !1;
|
|
12040
12040
|
}
|
|
12041
12041
|
destroy() {
|
|
12042
12042
|
this.texture = null, this.matrix = null;
|
|
@@ -12088,7 +12088,7 @@ const qu = {}, no = class extends Di {
|
|
|
12088
12088
|
lineTextureStyle(e) {
|
|
12089
12089
|
const t = {
|
|
12090
12090
|
width: 0,
|
|
12091
|
-
texture:
|
|
12091
|
+
texture: Ht.WHITE,
|
|
12092
12092
|
color: e != null && e.texture ? 16777215 : 0,
|
|
12093
12093
|
matrix: null,
|
|
12094
12094
|
alignment: 0.5,
|
|
@@ -12154,7 +12154,7 @@ const qu = {}, no = class extends Di {
|
|
|
12154
12154
|
return dv.arc(u, f, e, t, r, n, i, a, d), this;
|
|
12155
12155
|
}
|
|
12156
12156
|
beginFill(e = 0, t) {
|
|
12157
|
-
return this.beginTextureFill({ texture:
|
|
12157
|
+
return this.beginTextureFill({ texture: Ht.WHITE, color: e, alpha: t });
|
|
12158
12158
|
}
|
|
12159
12159
|
normalizeColor(e) {
|
|
12160
12160
|
const t = Le.shared.setValue(e.color ?? 0);
|
|
@@ -12162,7 +12162,7 @@ const qu = {}, no = class extends Di {
|
|
|
12162
12162
|
}
|
|
12163
12163
|
beginTextureFill(e) {
|
|
12164
12164
|
const t = {
|
|
12165
|
-
texture:
|
|
12165
|
+
texture: Ht.WHITE,
|
|
12166
12166
|
color: 16777215,
|
|
12167
12167
|
matrix: null
|
|
12168
12168
|
};
|
|
@@ -13159,8 +13159,8 @@ var fN = function() {
|
|
|
13159
13159
|
for (var P = 0; P < C; P++)
|
|
13160
13160
|
m.push(cN(O, L)), O += L;
|
|
13161
13161
|
return m.map(function(M) {
|
|
13162
|
-
var F = zu(M[0], l, u, b, y, I, S), q = F.x,
|
|
13163
|
-
return { x1: q, y1:
|
|
13162
|
+
var F = zu(M[0], l, u, b, y, I, S), q = F.x, Z = F.y, z = zu(M[1], l, u, b, y, I, S), rt = z.x, W = z.y, D = zu(M[2], l, u, b, y, I, S), k = D.x, j = D.y;
|
|
13163
|
+
return { x1: q, y1: Z, x2: rt, y2: W, x: k, y: j };
|
|
13164
13164
|
});
|
|
13165
13165
|
};
|
|
13166
13166
|
class dN extends ac {
|
|
@@ -13993,7 +13993,7 @@ ve.prototype.unshort = function() {
|
|
|
13993
13993
|
};
|
|
13994
13994
|
var DN = ve, UN = DN;
|
|
13995
13995
|
const $N = /* @__PURE__ */ Zn(UN), RB = At.forwardRef((e, t) => {
|
|
13996
|
-
const [r, n] = At.useState(null), i =
|
|
13996
|
+
const [r, n] = At.useState(null), i = Xt(null), a = Xt(null), l = Xt(null), {
|
|
13997
13997
|
path: u,
|
|
13998
13998
|
transformation: {
|
|
13999
13999
|
x: f,
|
|
@@ -14140,7 +14140,7 @@ const Iv = /* @__PURE__ */ Zn(pM), IB = (e) => {
|
|
|
14140
14140
|
isDragging: !1
|
|
14141
14141
|
}, [, r] = At.useState(!1);
|
|
14142
14142
|
console.log("allProps", e);
|
|
14143
|
-
const n =
|
|
14143
|
+
const n = Xt(null), i = Xt(t), a = Xt(null), { tl: l, isDragging: u } = wo(Fs), { uniqueId: f, src: h, startAt: d, endAt: p, mute: c, speed: v } = e, m = e.audioStartAt || d, y = e.audioEndAt || p, b = At.useRef(null);
|
|
14144
14144
|
Br(Ge.PAUSE, () => {
|
|
14145
14145
|
var S;
|
|
14146
14146
|
n.current && b.current && ((S = b.current) == null || S.pause(), i.current.isPlaying = !1);
|
|
@@ -15284,7 +15284,7 @@ const j4 = (e) => ({
|
|
|
15284
15284
|
});
|
|
15285
15285
|
}), [r, t]), r.instance);
|
|
15286
15286
|
}, z4 = (e) => {
|
|
15287
|
-
const t =
|
|
15287
|
+
const t = Xt(e);
|
|
15288
15288
|
return Yn(() => {
|
|
15289
15289
|
t.current = e;
|
|
15290
15290
|
}, [e]), t;
|
|
@@ -15347,7 +15347,7 @@ var xo = { exports: {} };
|
|
|
15347
15347
|
xo.exports;
|
|
15348
15348
|
(function(e, t) {
|
|
15349
15349
|
(function() {
|
|
15350
|
-
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", p = 1, c = 2, v = 4, m = 1, y = 2, b = 1, _ = 2, w = 4, T = 8, x = 16, A = 32, I = 64, S = 128, O = 256, L = 512, R = 30, C = "...", P = 800, M = 16, F = 1, q = 2,
|
|
15350
|
+
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", h = 500, d = "__lodash_placeholder__", p = 1, c = 2, v = 4, m = 1, y = 2, b = 1, _ = 2, w = 4, T = 8, x = 16, A = 32, I = 64, S = 128, O = 256, L = 512, R = 30, C = "...", P = 800, M = 16, F = 1, q = 2, Z = 3, z = 1 / 0, rt = 9007199254740991, W = 17976931348623157e292, D = 0 / 0, k = 4294967295, j = k - 1, G = k >>> 1, K = [
|
|
15351
15351
|
["ary", S],
|
|
15352
15352
|
["bind", b],
|
|
15353
15353
|
["bindKey", _],
|
|
@@ -15357,7 +15357,7 @@ xo.exports;
|
|
|
15357
15357
|
["partial", A],
|
|
15358
15358
|
["partialRight", I],
|
|
15359
15359
|
["rearg", O]
|
|
15360
|
-
], X = "[object Arguments]", $ = "[object Array]", V = "[object AsyncFunction]",
|
|
15360
|
+
], X = "[object Arguments]", $ = "[object Array]", V = "[object AsyncFunction]", Q = "[object Boolean]", J = "[object Date]", nt = "[object DOMException]", ot = "[object Error]", dt = "[object Function]", pt = "[object GeneratorFunction]", bt = "[object Map]", Tt = "[object Number]", le = "[object Null]", zt = "[object Object]", st = "[object Promise]", lt = "[object Proxy]", vt = "[object RegExp]", gt = "[object Set]", ct = "[object String]", It = "[object Symbol]", kt = "[object Undefined]", Pt = "[object WeakMap]", qe = "[object WeakSet]", Be = "[object ArrayBuffer]", Yt = "[object DataView]", Xi = "[object Float32Array]", ue = "[object Float64Array]", sr = "[object Int8Array]", Xo = "[object Int16Array]", Ko = "[object Int32Array]", Yo = "[object Uint8Array]", Zo = "[object Uint8ClampedArray]", Qo = "[object Uint16Array]", Jo = "[object Uint32Array]", ry = /\b__p \+= '';/g, ny = /\b(__p \+=) '' \+/g, iy = /(__e\(.*?\)|\b__t\)) \+\n'';/g, cc = /&(?:amp|lt|gt|quot|#39);/g, hc = /[&<>"']/g, sy = RegExp(cc.source), ay = RegExp(hc.source), oy = /<%-([\s\S]+?)%>/g, ly = /<%([\s\S]+?)%>/g, dc = /<%=([\s\S]+?)%>/g, uy = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, fy = /^\w*$/, cy = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, tl = /[\\^$.*+?()[\]{}|]/g, hy = RegExp(tl.source), el = /^\s+/, dy = /\s/, py = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, vy = /\{\n\/\* \[wrapped with (.+)\] \*/, gy = /,? & /, my = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, yy = /[()=,{}\[\]\/\s]/, _y = /\\(\\)?/g, by = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pc = /\w*$/, xy = /^[-+]0x[0-9a-f]+$/i, wy = /^0b[01]+$/i, Ty = /^\[object .+?Constructor\]$/, Ey = /^0o[0-7]+$/i, Ay = /^(?:0|[1-9]\d*)$/, Sy = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, qs = /($^)/, Oy = /['\n\r\u2028\u2029\\]/g, zs = "\\ud800-\\udfff", Cy = "\\u0300-\\u036f", Ry = "\\ufe20-\\ufe2f", Iy = "\\u20d0-\\u20ff", vc = Cy + Ry + Iy, gc = "\\u2700-\\u27bf", mc = "a-z\\xdf-\\xf6\\xf8-\\xff", Py = "\\xac\\xb1\\xd7\\xf7", Ny = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", My = "\\u2000-\\u206f", ky = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", yc = "A-Z\\xc0-\\xd6\\xd8-\\xde", _c = "\\ufe0e\\ufe0f", bc = Py + Ny + My + ky, rl = "['’]", Ly = "[" + zs + "]", xc = "[" + bc + "]", Hs = "[" + vc + "]", wc = "\\d+", Fy = "[" + gc + "]", Tc = "[" + mc + "]", Ec = "[^" + zs + bc + wc + gc + mc + yc + "]", nl = "\\ud83c[\\udffb-\\udfff]", By = "(?:" + Hs + "|" + nl + ")", Ac = "[^" + zs + "]", il = "(?:\\ud83c[\\udde6-\\uddff]){2}", sl = "[\\ud800-\\udbff][\\udc00-\\udfff]", ti = "[" + yc + "]", Sc = "\\u200d", Oc = "(?:" + Tc + "|" + Ec + ")", Dy = "(?:" + ti + "|" + Ec + ")", Cc = "(?:" + rl + "(?:d|ll|m|re|s|t|ve))?", Rc = "(?:" + rl + "(?:D|LL|M|RE|S|T|VE))?", Ic = By + "?", Pc = "[" + _c + "]?", Uy = "(?:" + Sc + "(?:" + [Ac, il, sl].join("|") + ")" + Pc + Ic + ")*", $y = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Gy = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Nc = Pc + Ic + Uy, jy = "(?:" + [Fy, il, sl].join("|") + ")" + Nc, qy = "(?:" + [Ac + Hs + "?", Hs, il, sl, Ly].join("|") + ")", zy = RegExp(rl, "g"), Hy = RegExp(Hs, "g"), al = RegExp(nl + "(?=" + nl + ")|" + qy + Nc, "g"), Vy = RegExp([
|
|
15361
15361
|
ti + "?" + Tc + "+" + Cc + "(?=" + [xc, ti, "$"].join("|") + ")",
|
|
15362
15362
|
Dy + "+" + Rc + "(?=" + [xc, ti + Oc, "$"].join("|") + ")",
|
|
15363
15363
|
ti + "?" + Oc + "+" + Cc,
|
|
@@ -15398,9 +15398,9 @@ xo.exports;
|
|
|
15398
15398
|
"parseInt",
|
|
15399
15399
|
"setTimeout"
|
|
15400
15400
|
], Yy = -1, ae = {};
|
|
15401
|
-
ae[Xi] = ae[ue] = ae[sr] = ae[Xo] = ae[Ko] = ae[Yo] = ae[Zo] = ae[Qo] = ae[Jo] = !0, ae[X] = ae[$] = ae[Be] = ae[
|
|
15401
|
+
ae[Xi] = ae[ue] = ae[sr] = ae[Xo] = ae[Ko] = ae[Yo] = ae[Zo] = ae[Qo] = ae[Jo] = !0, ae[X] = ae[$] = ae[Be] = ae[Q] = ae[Yt] = ae[J] = ae[ot] = ae[dt] = ae[bt] = ae[Tt] = ae[zt] = ae[vt] = ae[gt] = ae[ct] = ae[Pt] = !1;
|
|
15402
15402
|
var ie = {};
|
|
15403
|
-
ie[X] = ie[$] = ie[Be] = ie[Yt] = ie[
|
|
15403
|
+
ie[X] = ie[$] = ie[Be] = ie[Yt] = ie[Q] = ie[J] = ie[Xi] = ie[ue] = ie[sr] = ie[Xo] = ie[Ko] = ie[bt] = ie[Tt] = ie[zt] = ie[vt] = ie[gt] = ie[ct] = ie[It] = ie[Yo] = ie[Zo] = ie[Qo] = ie[Jo] = !0, ie[ot] = ie[dt] = ie[Pt] = !1;
|
|
15404
15404
|
var Zy = {
|
|
15405
15405
|
// Latin-1 Supplement block.
|
|
15406
15406
|
À: "A",
|
|
@@ -16213,10 +16213,10 @@ xo.exports;
|
|
|
16213
16213
|
if (H = f_(s), !Y)
|
|
16214
16214
|
return ze(s, H);
|
|
16215
16215
|
} else {
|
|
16216
|
-
var ht = Me(s), mt = ht == dt || ht ==
|
|
16216
|
+
var ht = Me(s), mt = ht == dt || ht == pt;
|
|
16217
16217
|
if (dn(s))
|
|
16218
16218
|
return Ph(s, Y);
|
|
16219
|
-
if (ht ==
|
|
16219
|
+
if (ht == zt || ht == X || mt && !N) {
|
|
16220
16220
|
if (H = et || mt ? {} : Yh(s), !Y)
|
|
16221
16221
|
return et ? J1(s, w1(H, s)) : Q1(s, oh(H, s));
|
|
16222
16222
|
} else {
|
|
@@ -16391,15 +16391,15 @@ xo.exports;
|
|
|
16391
16391
|
return ge(s) && De(s) == Be;
|
|
16392
16392
|
}
|
|
16393
16393
|
function P1(s) {
|
|
16394
|
-
return ge(s) && De(s) ==
|
|
16394
|
+
return ge(s) && De(s) == J;
|
|
16395
16395
|
}
|
|
16396
16396
|
function is(s, o, g, E, N) {
|
|
16397
16397
|
return s === o ? !0 : s == null || o == null || !ge(s) && !ge(o) ? s !== s && o !== o : N1(s, o, g, E, is, N);
|
|
16398
16398
|
}
|
|
16399
16399
|
function N1(s, o, g, E, N, U) {
|
|
16400
16400
|
var H = Nt(s), Y = Nt(o), et = H ? $ : Me(s), ut = Y ? $ : Me(o);
|
|
16401
|
-
et = et == X ?
|
|
16402
|
-
var ft = et ==
|
|
16401
|
+
et = et == X ? zt : et, ut = ut == X ? zt : ut;
|
|
16402
|
+
var ft = et == zt, ht = ut == zt, mt = et == ut;
|
|
16403
16403
|
if (mt && dn(s)) {
|
|
16404
16404
|
if (!dn(o))
|
|
16405
16405
|
return !1;
|
|
@@ -16451,10 +16451,10 @@ xo.exports;
|
|
|
16451
16451
|
return o.test(Pn(s));
|
|
16452
16452
|
}
|
|
16453
16453
|
function k1(s) {
|
|
16454
|
-
return ge(s) && De(s) ==
|
|
16454
|
+
return ge(s) && De(s) == vt;
|
|
16455
16455
|
}
|
|
16456
16456
|
function L1(s) {
|
|
16457
|
-
return ge(s) && Me(s) ==
|
|
16457
|
+
return ge(s) && Me(s) == gt;
|
|
16458
16458
|
}
|
|
16459
16459
|
function F1(s) {
|
|
16460
16460
|
return ge(s) && Ca(s.length) && !!ae[De(s)];
|
|
@@ -17118,7 +17118,7 @@ xo.exports;
|
|
|
17118
17118
|
function zh(s) {
|
|
17119
17119
|
return function(o) {
|
|
17120
17120
|
var g = Me(o);
|
|
17121
|
-
return g == bt ? ml(o) : g ==
|
|
17121
|
+
return g == bt ? ml(o) : g == gt ? b0(o) : h0(o, s(o));
|
|
17122
17122
|
};
|
|
17123
17123
|
}
|
|
17124
17124
|
function Vr(s, o, g, E, N, U, H, Y) {
|
|
@@ -17199,18 +17199,18 @@ xo.exports;
|
|
|
17199
17199
|
s = s.buffer, o = o.buffer;
|
|
17200
17200
|
case Be:
|
|
17201
17201
|
return !(s.byteLength != o.byteLength || !U(new ta(s), new ta(o)));
|
|
17202
|
+
case Q:
|
|
17202
17203
|
case J:
|
|
17203
|
-
case Z:
|
|
17204
17204
|
case Tt:
|
|
17205
17205
|
return yr(+s, +o);
|
|
17206
17206
|
case ot:
|
|
17207
17207
|
return s.name == o.name && s.message == o.message;
|
|
17208
|
-
case
|
|
17208
|
+
case vt:
|
|
17209
17209
|
case ct:
|
|
17210
17210
|
return s == o + "";
|
|
17211
17211
|
case bt:
|
|
17212
17212
|
var Y = ml;
|
|
17213
|
-
case
|
|
17213
|
+
case gt:
|
|
17214
17214
|
var et = E & m;
|
|
17215
17215
|
if (Y || (Y = Xs), s.size != o.size && !et)
|
|
17216
17216
|
return !1;
|
|
@@ -17319,8 +17319,8 @@ xo.exports;
|
|
|
17319
17319
|
an(o, Vl(s)), s = ea(s);
|
|
17320
17320
|
return o;
|
|
17321
17321
|
} : fu, Me = De;
|
|
17322
|
-
(bl && Me(new bl(new ArrayBuffer(1))) != Yt || Zi && Me(new Zi()) != bt || xl && Me(xl.resolve()) != st || ai && Me(new ai()) !=
|
|
17323
|
-
var o = De(s), g = o ==
|
|
17322
|
+
(bl && Me(new bl(new ArrayBuffer(1))) != Yt || Zi && Me(new Zi()) != bt || xl && Me(xl.resolve()) != st || ai && Me(new ai()) != gt || Qi && Me(new Qi()) != Pt) && (Me = function(s) {
|
|
17323
|
+
var o = De(s), g = o == zt ? s.constructor : r, E = g ? Pn(g) : "";
|
|
17324
17324
|
if (E)
|
|
17325
17325
|
switch (E) {
|
|
17326
17326
|
case q0:
|
|
@@ -17330,7 +17330,7 @@ xo.exports;
|
|
|
17330
17330
|
case H0:
|
|
17331
17331
|
return st;
|
|
17332
17332
|
case V0:
|
|
17333
|
-
return
|
|
17333
|
+
return gt;
|
|
17334
17334
|
case W0:
|
|
17335
17335
|
return Pt;
|
|
17336
17336
|
}
|
|
@@ -17382,8 +17382,8 @@ xo.exports;
|
|
|
17382
17382
|
switch (o) {
|
|
17383
17383
|
case Be:
|
|
17384
17384
|
return Ul(s);
|
|
17385
|
+
case Q:
|
|
17385
17386
|
case J:
|
|
17386
|
-
case Z:
|
|
17387
17387
|
return new E(+s);
|
|
17388
17388
|
case Yt:
|
|
17389
17389
|
return X1(s, g);
|
|
@@ -17402,9 +17402,9 @@ xo.exports;
|
|
|
17402
17402
|
case Tt:
|
|
17403
17403
|
case ct:
|
|
17404
17404
|
return new E(s);
|
|
17405
|
-
case pt:
|
|
17406
|
-
return K1(s);
|
|
17407
17405
|
case vt:
|
|
17406
|
+
return K1(s);
|
|
17407
|
+
case gt:
|
|
17408
17408
|
return new E();
|
|
17409
17409
|
case It:
|
|
17410
17410
|
return Y1(s);
|
|
@@ -18001,7 +18001,7 @@ xo.exports;
|
|
|
18001
18001
|
if (He(s))
|
|
18002
18002
|
return Ra(s) ? ni(s) : s.length;
|
|
18003
18003
|
var o = Me(s);
|
|
18004
|
-
return o == bt || o ==
|
|
18004
|
+
return o == bt || o == gt ? s.size : Rl(s).length;
|
|
18005
18005
|
}
|
|
18006
18006
|
function tx(s, o, g) {
|
|
18007
18007
|
var E = Nt(s) ? cl : V1;
|
|
@@ -18232,7 +18232,7 @@ xo.exports;
|
|
|
18232
18232
|
return ge(s) && He(s);
|
|
18233
18233
|
}
|
|
18234
18234
|
function Tx(s) {
|
|
18235
|
-
return s === !0 || s === !1 || ge(s) && De(s) ==
|
|
18235
|
+
return s === !0 || s === !1 || ge(s) && De(s) == Q;
|
|
18236
18236
|
}
|
|
18237
18237
|
var dn = B0 || cu, Ex = Fc ? Ye(Fc) : P1;
|
|
18238
18238
|
function Ax(s) {
|
|
@@ -18244,7 +18244,7 @@ xo.exports;
|
|
|
18244
18244
|
if (He(s) && (Nt(s) || typeof s == "string" || typeof s.splice == "function" || dn(s) || hi(s) || Nn(s)))
|
|
18245
18245
|
return !s.length;
|
|
18246
18246
|
var o = Me(s);
|
|
18247
|
-
if (o == bt || o ==
|
|
18247
|
+
if (o == bt || o == gt)
|
|
18248
18248
|
return !s.size;
|
|
18249
18249
|
if (os(s))
|
|
18250
18250
|
return !Rl(s).length;
|
|
@@ -18274,7 +18274,7 @@ xo.exports;
|
|
|
18274
18274
|
if (!he(s))
|
|
18275
18275
|
return !1;
|
|
18276
18276
|
var o = De(s);
|
|
18277
|
-
return o == dt || o ==
|
|
18277
|
+
return o == dt || o == pt || o == V || o == lt;
|
|
18278
18278
|
}
|
|
18279
18279
|
function wd(s) {
|
|
18280
18280
|
return typeof s == "number" && s == Mt(s);
|
|
@@ -18314,7 +18314,7 @@ xo.exports;
|
|
|
18314
18314
|
return typeof s == "number" || ge(s) && De(s) == Tt;
|
|
18315
18315
|
}
|
|
18316
18316
|
function us(s) {
|
|
18317
|
-
if (!ge(s) || De(s) !=
|
|
18317
|
+
if (!ge(s) || De(s) != zt)
|
|
18318
18318
|
return !1;
|
|
18319
18319
|
var o = ea(s);
|
|
18320
18320
|
if (o === null)
|
|
@@ -18353,7 +18353,7 @@ xo.exports;
|
|
|
18353
18353
|
return Ra(s) ? gr(s) : ze(s);
|
|
18354
18354
|
if (Yi && s[Yi])
|
|
18355
18355
|
return _0(s[Yi]());
|
|
18356
|
-
var o = Me(s), g = o == bt ? ml : o ==
|
|
18356
|
+
var o = Me(s), g = o == bt ? ml : o == gt ? Xs : di;
|
|
18357
18357
|
return g(s);
|
|
18358
18358
|
}
|
|
18359
18359
|
function Yr(s) {
|
|
@@ -18930,7 +18930,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
18930
18930
|
return this.reverse()[s](g).reverse();
|
|
18931
18931
|
};
|
|
18932
18932
|
}), or(["filter", "map", "takeWhile"], function(s, o) {
|
|
18933
|
-
var g = o + 1, E = g == F || g ==
|
|
18933
|
+
var g = o + 1, E = g == F || g == Z;
|
|
18934
18934
|
Ut.prototype[s] = function(N) {
|
|
18935
18935
|
var U = this.clone();
|
|
18936
18936
|
return U.__iteratees__.push({
|
|
@@ -19023,7 +19023,7 @@ const Y4 = {
|
|
|
19023
19023
|
totalFrames: 0,
|
|
19024
19024
|
totalDuration: 0
|
|
19025
19025
|
}, PB = At.forwardRef((e, t) => {
|
|
19026
|
-
const [r, n] = At.useState([]), [, i] = At.useState(0), [a, l] = At.useState([]), [, u] = zn(0), [, f] = zn(!1), [h, d] = U4({ autoPlay: !1 }), p =
|
|
19026
|
+
const [r, n] = At.useState([]), [, i] = At.useState(0), [a, l] = At.useState([]), [, u] = zn(0), [, f] = zn(!1), [h, d] = U4({ autoPlay: !1 }), p = Xt(null), c = Xt(null), v = Xt(Y4), m = Xt(), { tl: y, isDragging: b } = wo(Fs), { frames: _, delays: w } = h, {
|
|
19027
19027
|
src: T,
|
|
19028
19028
|
startAt: x,
|
|
19029
19029
|
endAt: A,
|
|
@@ -19037,86 +19037,87 @@ const Y4 = {
|
|
|
19037
19037
|
y: P,
|
|
19038
19038
|
animation: M,
|
|
19039
19039
|
colorCorrection: F = {}
|
|
19040
|
-
}
|
|
19040
|
+
},
|
|
19041
|
+
pointerdown: q
|
|
19041
19042
|
} = e, {
|
|
19042
|
-
temperatureFilter:
|
|
19043
|
-
sharpnessFilter:
|
|
19044
|
-
hueFilter:
|
|
19045
|
-
blurFilter:
|
|
19046
|
-
adjustmentFilter:
|
|
19047
|
-
} = js(F), { blurRadius:
|
|
19048
|
-
W4(T, d), Br(Ge.PAUSE, (
|
|
19049
|
-
console.log("pause event",
|
|
19043
|
+
temperatureFilter: Z,
|
|
19044
|
+
sharpnessFilter: z,
|
|
19045
|
+
hueFilter: rt,
|
|
19046
|
+
blurFilter: W,
|
|
19047
|
+
adjustmentFilter: D
|
|
19048
|
+
} = js(F), { blurRadius: k = 0 } = F, j = 0.1;
|
|
19049
|
+
W4(T, d), Br(Ge.PAUSE, (nt) => {
|
|
19050
|
+
console.log("pause event", nt), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19050
19051
|
}), At.useEffect(() => {
|
|
19051
19052
|
v.current && p.current && (b ? (p.current.stop(), v.current.isPlaying = !1, v.current.isDragging = !0) : v.current.isDragging = !1);
|
|
19052
19053
|
}, [b]), At.useEffect(() => {
|
|
19053
19054
|
if (!ys(_)) {
|
|
19054
|
-
const
|
|
19055
|
-
const { data:
|
|
19056
|
-
return _n.Texture.fromBuffer(
|
|
19057
|
-
}),
|
|
19058
|
-
(
|
|
19059
|
-
texture:
|
|
19060
|
-
time: w[
|
|
19055
|
+
const nt = v4(_, (pt) => {
|
|
19056
|
+
const { data: bt, width: Tt, height: le } = pt, zt = new Uint8Array(bt);
|
|
19057
|
+
return _n.Texture.fromBuffer(zt, Tt, le);
|
|
19058
|
+
}), ot = nt.map(
|
|
19059
|
+
(pt, bt) => ({
|
|
19060
|
+
texture: pt,
|
|
19061
|
+
time: w[bt]
|
|
19061
19062
|
})
|
|
19062
19063
|
);
|
|
19063
|
-
n(
|
|
19064
|
-
let
|
|
19065
|
-
w.forEach((
|
|
19066
|
-
|
|
19067
|
-
}), i(
|
|
19064
|
+
n(nt), l(ot);
|
|
19065
|
+
let dt = 0;
|
|
19066
|
+
w.forEach((pt) => {
|
|
19067
|
+
dt += pt * 10;
|
|
19068
|
+
}), i(dt), v.current.totalDuration = dt, v.current.totalFrames = _.length;
|
|
19068
19069
|
}
|
|
19069
19070
|
}, [_, w]);
|
|
19070
|
-
const
|
|
19071
|
+
const G = Xv.debounce((nt) => {
|
|
19071
19072
|
if (p.current) {
|
|
19072
|
-
let
|
|
19073
|
-
const
|
|
19074
|
-
|
|
19073
|
+
let ot = nt === 0 ? 0 : nt / j;
|
|
19074
|
+
const dt = v.current.totalFrames;
|
|
19075
|
+
ot = ot >= dt ? dt : ot, p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
|
|
19075
19076
|
}
|
|
19076
|
-
}, 50),
|
|
19077
|
+
}, 50), K = Xv.debounce(() => {
|
|
19077
19078
|
p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19078
|
-
}, 150),
|
|
19079
|
+
}, 150), X = (nt) => {
|
|
19079
19080
|
if (p.current) {
|
|
19080
|
-
let
|
|
19081
|
-
const
|
|
19082
|
-
|
|
19081
|
+
let ot = nt === 0 ? 0 : nt / j;
|
|
19082
|
+
const dt = v.current.totalFrames;
|
|
19083
|
+
ot = ot >= dt ? dt : ot, p.current.gotoAndPlay(ot || 0), v.current.isPlaying = !0;
|
|
19083
19084
|
}
|
|
19084
|
-
}, X = () => {
|
|
19085
|
-
console.log("local gif time complete"), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19086
19085
|
}, $ = () => {
|
|
19086
|
+
console.log("local gif time complete"), p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19087
|
+
}, V = () => {
|
|
19087
19088
|
p.current && (p.current.stop(), v.current.isPlaying = !1);
|
|
19088
|
-
},
|
|
19089
|
-
var
|
|
19090
|
-
const
|
|
19091
|
-
p.current && v.current.isDragging ? (
|
|
19089
|
+
}, Q = (nt) => {
|
|
19090
|
+
var dt;
|
|
19091
|
+
const ot = nt + ((dt = m.current) == null ? void 0 : dt.time());
|
|
19092
|
+
p.current && v.current.isDragging ? (G(ot), K(), v.current.isPlaying = !1) : p.current && !v.current.isPlaying && (G(ot), v.current.isPlaying = !0);
|
|
19092
19093
|
}, J = () => {
|
|
19093
19094
|
f(!0);
|
|
19094
19095
|
};
|
|
19095
19096
|
return Yn(() => {
|
|
19096
|
-
let
|
|
19097
|
+
let nt = Ee.context(() => {
|
|
19097
19098
|
});
|
|
19098
19099
|
if (c.current && y.current) {
|
|
19099
|
-
const
|
|
19100
|
+
const ot = {
|
|
19100
19101
|
duration: Number(S) - Number(I),
|
|
19101
|
-
onStart:
|
|
19102
|
-
onComplete:
|
|
19102
|
+
onStart: X,
|
|
19103
|
+
onComplete: $,
|
|
19103
19104
|
onStartParams: [I, S],
|
|
19104
19105
|
onCompleteParams: [],
|
|
19105
|
-
onInterrupt:
|
|
19106
|
-
onUpdate:
|
|
19106
|
+
onInterrupt: V,
|
|
19107
|
+
onUpdate: Q,
|
|
19107
19108
|
onUpdateParams: [I, S]
|
|
19108
19109
|
};
|
|
19109
|
-
m.current && m.current.kill(),
|
|
19110
|
+
m.current && m.current.kill(), nt = Ee.context(() => {
|
|
19110
19111
|
m.current = Ee.from(
|
|
19111
19112
|
c.current,
|
|
19112
19113
|
// @ts-ignore
|
|
19113
|
-
|
|
19114
|
+
ot,
|
|
19114
19115
|
I
|
|
19115
19116
|
), y.current.add(m.current, x);
|
|
19116
19117
|
});
|
|
19117
19118
|
}
|
|
19118
19119
|
return () => {
|
|
19119
|
-
m.current && (m.current.kill(), Ee.killTweensOf(m.current)),
|
|
19120
|
+
m.current && (m.current.kill(), Ee.killTweensOf(m.current)), nt.revert(), c.current && c.current.destroy();
|
|
19120
19121
|
};
|
|
19121
19122
|
}, [M, x, A, I, S]), /* @__PURE__ */ ee.jsx(
|
|
19122
19123
|
Gi,
|
|
@@ -19136,16 +19137,18 @@ const Y4 = {
|
|
|
19136
19137
|
loop: O,
|
|
19137
19138
|
textures: a,
|
|
19138
19139
|
onComplete: J,
|
|
19139
|
-
onFrameChange: (
|
|
19140
|
+
onFrameChange: (nt) => u(nt),
|
|
19140
19141
|
anchor: 0.5,
|
|
19141
19142
|
forwardRef: p,
|
|
19143
|
+
interactive: !0,
|
|
19144
|
+
pointerdown: q,
|
|
19142
19145
|
filters: [
|
|
19143
|
-
|
|
19144
|
-
Q,
|
|
19146
|
+
Z,
|
|
19145
19147
|
z,
|
|
19146
|
-
|
|
19148
|
+
rt,
|
|
19149
|
+
D,
|
|
19147
19150
|
// conditionally add blur filter
|
|
19148
|
-
...
|
|
19151
|
+
...k > 0 ? [W] : []
|
|
19149
19152
|
]
|
|
19150
19153
|
}
|
|
19151
19154
|
) })
|
|
@@ -19562,8 +19565,8 @@ var ey = { exports: {} };
|
|
|
19562
19565
|
P === null && (P = Function.prototype);
|
|
19563
19566
|
var q = Object.getOwnPropertyDescriptor(P, M);
|
|
19564
19567
|
if (q === void 0) {
|
|
19565
|
-
var
|
|
19566
|
-
return
|
|
19568
|
+
var Z = Object.getPrototypeOf(P);
|
|
19569
|
+
return Z === null ? void 0 : C(Z, M, F);
|
|
19567
19570
|
} else {
|
|
19568
19571
|
if ("value" in q)
|
|
19569
19572
|
return q.value;
|
|
@@ -19606,23 +19609,23 @@ var ey = { exports: {} };
|
|
|
19606
19609
|
}, {
|
|
19607
19610
|
key: "format",
|
|
19608
19611
|
value: function(F, q) {
|
|
19609
|
-
var
|
|
19610
|
-
|
|
19612
|
+
var Z = c.default.query(F, c.default.Scope.BLOCK_ATTRIBUTE);
|
|
19613
|
+
Z != null && this.attributes.attribute(Z, q);
|
|
19611
19614
|
}
|
|
19612
19615
|
}, {
|
|
19613
19616
|
key: "formatAt",
|
|
19614
|
-
value: function(F, q,
|
|
19615
|
-
this.format(
|
|
19617
|
+
value: function(F, q, Z, z) {
|
|
19618
|
+
this.format(Z, z);
|
|
19616
19619
|
}
|
|
19617
19620
|
}, {
|
|
19618
19621
|
key: "insertAt",
|
|
19619
|
-
value: function(F, q,
|
|
19622
|
+
value: function(F, q, Z) {
|
|
19620
19623
|
if (typeof q == "string" && q.endsWith(`
|
|
19621
19624
|
`)) {
|
|
19622
19625
|
var z = c.default.create(L.blotName);
|
|
19623
19626
|
this.parent.insertBefore(z, F === 0 ? this : this.next), z.insertAt(0, q.slice(0, -1));
|
|
19624
19627
|
} else
|
|
19625
|
-
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q,
|
|
19628
|
+
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q, Z);
|
|
19626
19629
|
}
|
|
19627
19630
|
}]), P;
|
|
19628
19631
|
}(c.default.Embed);
|
|
@@ -19649,14 +19652,14 @@ var ey = { exports: {} };
|
|
|
19649
19652
|
}
|
|
19650
19653
|
}, {
|
|
19651
19654
|
key: "formatAt",
|
|
19652
|
-
value: function(F, q,
|
|
19653
|
-
q <= 0 || (c.default.query(
|
|
19655
|
+
value: function(F, q, Z, z) {
|
|
19656
|
+
q <= 0 || (c.default.query(Z, c.default.Scope.BLOCK) ? F + q === this.length() && this.format(Z, z) : l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "formatAt", this).call(this, F, Math.min(q, this.length() - F - 1), Z, z), this.cache = {});
|
|
19654
19657
|
}
|
|
19655
19658
|
}, {
|
|
19656
19659
|
key: "insertAt",
|
|
19657
|
-
value: function(F, q,
|
|
19658
|
-
if (
|
|
19659
|
-
return l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q,
|
|
19660
|
+
value: function(F, q, Z) {
|
|
19661
|
+
if (Z != null)
|
|
19662
|
+
return l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertAt", this).call(this, F, q, Z);
|
|
19660
19663
|
if (q.length !== 0) {
|
|
19661
19664
|
var z = q.split(`
|
|
19662
19665
|
`), rt = z.shift();
|
|
@@ -19670,8 +19673,8 @@ var ey = { exports: {} };
|
|
|
19670
19673
|
}, {
|
|
19671
19674
|
key: "insertBefore",
|
|
19672
19675
|
value: function(F, q) {
|
|
19673
|
-
var
|
|
19674
|
-
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertBefore", this).call(this, F, q),
|
|
19676
|
+
var Z = this.children.head;
|
|
19677
|
+
l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "insertBefore", this).call(this, F, q), Z instanceof m.default && Z.remove(), this.cache = {};
|
|
19675
19678
|
}
|
|
19676
19679
|
}, {
|
|
19677
19680
|
key: "length",
|
|
@@ -19703,8 +19706,8 @@ var ey = { exports: {} };
|
|
|
19703
19706
|
value: function(F) {
|
|
19704
19707
|
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
19705
19708
|
if (q && (F === 0 || F >= this.length() - S)) {
|
|
19706
|
-
var
|
|
19707
|
-
return F === 0 ? (this.parent.insertBefore(
|
|
19709
|
+
var Z = this.clone();
|
|
19710
|
+
return F === 0 ? (this.parent.insertBefore(Z, this), this) : (this.parent.insertBefore(Z, this.next), Z);
|
|
19708
19711
|
} else {
|
|
19709
19712
|
var z = l(P.prototype.__proto__ || Object.getPrototypeOf(P.prototype), "split", this).call(this, F, q);
|
|
19710
19713
|
return this.cache = {}, z;
|
|
@@ -19735,8 +19738,8 @@ var ey = { exports: {} };
|
|
|
19735
19738
|
try {
|
|
19736
19739
|
for (var $ = D[Symbol.iterator](), V; !(G = (V = $.next()).done) && (j.push(V.value), !(k && j.length === k)); G = !0)
|
|
19737
19740
|
;
|
|
19738
|
-
} catch (
|
|
19739
|
-
K = !0, X =
|
|
19741
|
+
} catch (Q) {
|
|
19742
|
+
K = !0, X = Q;
|
|
19740
19743
|
} finally {
|
|
19741
19744
|
try {
|
|
19742
19745
|
!G && $.return && $.return();
|
|
@@ -19818,9 +19821,9 @@ var ey = { exports: {} };
|
|
|
19818
19821
|
}), this.editor = new p.default(this.scroll), this.selection = new T.default(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.theme.init(), this.emitter.on(v.default.events.EDITOR_CHANGE, function(X) {
|
|
19819
19822
|
X === v.default.events.TEXT_CHANGE && k.root.classList.toggle("ql-blank", k.editor.isBlank());
|
|
19820
19823
|
}), this.emitter.on(v.default.events.SCROLL_UPDATE, function(X, $) {
|
|
19821
|
-
var V = k.selection.lastRange,
|
|
19822
|
-
|
|
19823
|
-
return k.editor.update(null, $,
|
|
19824
|
+
var V = k.selection.lastRange, Q = V && V.length === 0 ? V.index : void 0;
|
|
19825
|
+
Z.call(k, function() {
|
|
19826
|
+
return k.editor.update(null, $, Q);
|
|
19824
19827
|
}, X);
|
|
19825
19828
|
});
|
|
19826
19829
|
var K = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + G + "<p><br></p></div>");
|
|
@@ -19845,7 +19848,7 @@ var ey = { exports: {} };
|
|
|
19845
19848
|
key: "deleteText",
|
|
19846
19849
|
value: function(k, j, G) {
|
|
19847
19850
|
var K = this, X = z(k, j, G), $ = l(X, 4);
|
|
19848
|
-
return k = $[0], j = $[1], G = $[3],
|
|
19851
|
+
return k = $[0], j = $[1], G = $[3], Z.call(this, function() {
|
|
19849
19852
|
return K.editor.deleteText(k, j);
|
|
19850
19853
|
}, G, k, -1 * j);
|
|
19851
19854
|
}
|
|
@@ -19870,7 +19873,7 @@ var ey = { exports: {} };
|
|
|
19870
19873
|
key: "format",
|
|
19871
19874
|
value: function(k, j) {
|
|
19872
19875
|
var G = this, K = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : v.default.sources.API;
|
|
19873
|
-
return
|
|
19876
|
+
return Z.call(this, function() {
|
|
19874
19877
|
var X = G.getSelection(!0), $ = new h.default();
|
|
19875
19878
|
if (X == null)
|
|
19876
19879
|
return $;
|
|
@@ -19887,16 +19890,16 @@ var ey = { exports: {} };
|
|
|
19887
19890
|
}, {
|
|
19888
19891
|
key: "formatLine",
|
|
19889
19892
|
value: function(k, j, G, K, X) {
|
|
19890
|
-
var $ = this, V = void 0,
|
|
19891
|
-
return k =
|
|
19893
|
+
var $ = this, V = void 0, Q = z(k, j, G, K, X), J = l(Q, 4);
|
|
19894
|
+
return k = J[0], j = J[1], V = J[2], X = J[3], Z.call(this, function() {
|
|
19892
19895
|
return $.editor.formatLine(k, j, V);
|
|
19893
19896
|
}, X, k, 0);
|
|
19894
19897
|
}
|
|
19895
19898
|
}, {
|
|
19896
19899
|
key: "formatText",
|
|
19897
19900
|
value: function(k, j, G, K, X) {
|
|
19898
|
-
var $ = this, V = void 0,
|
|
19899
|
-
return k =
|
|
19901
|
+
var $ = this, V = void 0, Q = z(k, j, G, K, X), J = l(Q, 4);
|
|
19902
|
+
return k = J[0], j = J[1], V = J[2], X = J[3], Z.call(this, function() {
|
|
19900
19903
|
return $.editor.formatText(k, j, V);
|
|
19901
19904
|
}, X, k, 0);
|
|
19902
19905
|
}
|
|
@@ -19979,15 +19982,15 @@ var ey = { exports: {} };
|
|
|
19979
19982
|
key: "insertEmbed",
|
|
19980
19983
|
value: function(k, j, G) {
|
|
19981
19984
|
var K = this, X = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : W.sources.API;
|
|
19982
|
-
return
|
|
19985
|
+
return Z.call(this, function() {
|
|
19983
19986
|
return K.editor.insertEmbed(k, j, G);
|
|
19984
19987
|
}, X, k);
|
|
19985
19988
|
}
|
|
19986
19989
|
}, {
|
|
19987
19990
|
key: "insertText",
|
|
19988
19991
|
value: function(k, j, G, K, X) {
|
|
19989
|
-
var $ = this, V = void 0,
|
|
19990
|
-
return k =
|
|
19992
|
+
var $ = this, V = void 0, Q = z(k, 0, G, K, X), J = l(Q, 4);
|
|
19993
|
+
return k = J[0], V = J[2], X = J[3], Z.call(this, function() {
|
|
19991
19994
|
return $.editor.insertText(k, j, V);
|
|
19992
19995
|
}, X, k, j.length);
|
|
19993
19996
|
}
|
|
@@ -20020,7 +20023,7 @@ var ey = { exports: {} };
|
|
|
20020
20023
|
key: "removeFormat",
|
|
20021
20024
|
value: function(k, j, G) {
|
|
20022
20025
|
var K = this, X = z(k, j, G), $ = l(X, 4);
|
|
20023
|
-
return k = $[0], j = $[1], G = $[3],
|
|
20026
|
+
return k = $[0], j = $[1], G = $[3], Z.call(this, function() {
|
|
20024
20027
|
return K.editor.removeFormat(k, j);
|
|
20025
20028
|
}, G, k);
|
|
20026
20029
|
}
|
|
@@ -20033,13 +20036,13 @@ var ey = { exports: {} };
|
|
|
20033
20036
|
key: "setContents",
|
|
20034
20037
|
value: function(k) {
|
|
20035
20038
|
var j = this, G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
20036
|
-
return
|
|
20039
|
+
return Z.call(this, function() {
|
|
20037
20040
|
k = new h.default(k);
|
|
20038
20041
|
var K = j.getLength(), X = j.editor.deleteText(0, K), $ = j.editor.applyDelta(k), V = $.ops[$.ops.length - 1];
|
|
20039
20042
|
V != null && typeof V.insert == "string" && V.insert[V.insert.length - 1] === `
|
|
20040
20043
|
` && (j.editor.deleteText(j.getLength() - 1, 1), $.delete(1));
|
|
20041
|
-
var
|
|
20042
|
-
return
|
|
20044
|
+
var Q = X.compose($);
|
|
20045
|
+
return Q;
|
|
20043
20046
|
}, G);
|
|
20044
20047
|
}
|
|
20045
20048
|
}, {
|
|
@@ -20068,7 +20071,7 @@ var ey = { exports: {} };
|
|
|
20068
20071
|
key: "updateContents",
|
|
20069
20072
|
value: function(k) {
|
|
20070
20073
|
var j = this, G = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v.default.sources.API;
|
|
20071
|
-
return
|
|
20074
|
+
return Z.call(this, function() {
|
|
20072
20075
|
return k = new h.default(k), j.editor.applyDelta(k, G);
|
|
20073
20076
|
}, G, !0);
|
|
20074
20077
|
}
|
|
@@ -20119,15 +20122,15 @@ var ey = { exports: {} };
|
|
|
20119
20122
|
return D.modules[X] && (K[X] = D.modules[X]), K;
|
|
20120
20123
|
}, {}), D;
|
|
20121
20124
|
}
|
|
20122
|
-
function
|
|
20125
|
+
function Z(W, D, k, j) {
|
|
20123
20126
|
if (this.options.strict && !this.isEnabled() && D === v.default.sources.USER)
|
|
20124
20127
|
return new h.default();
|
|
20125
20128
|
var G = k == null ? null : this.getSelection(), K = this.editor.delta, X = W();
|
|
20126
20129
|
if (G != null && (k === !0 && (k = G.index), j == null ? G = rt(G, X, D) : j !== 0 && (G = rt(G, k, j, D)), this.setSelection(G, v.default.sources.SILENT)), X.length() > 0) {
|
|
20127
20130
|
var $, V = [v.default.events.TEXT_CHANGE, X, K, D];
|
|
20128
20131
|
if (($ = this.emitter).emit.apply($, [v.default.events.EDITOR_CHANGE].concat(V)), D !== v.default.sources.SILENT) {
|
|
20129
|
-
var
|
|
20130
|
-
(
|
|
20132
|
+
var Q;
|
|
20133
|
+
(Q = this.emitter).emit.apply(Q, V);
|
|
20131
20134
|
}
|
|
20132
20135
|
}
|
|
20133
20136
|
return X;
|
|
@@ -20141,15 +20144,15 @@ var ey = { exports: {} };
|
|
|
20141
20144
|
return null;
|
|
20142
20145
|
var G = void 0, K = void 0;
|
|
20143
20146
|
if (D instanceof h.default) {
|
|
20144
|
-
var X = [W.index, W.index + W.length].map(function(
|
|
20145
|
-
return D.transformPosition(
|
|
20147
|
+
var X = [W.index, W.index + W.length].map(function(J) {
|
|
20148
|
+
return D.transformPosition(J, j !== v.default.sources.USER);
|
|
20146
20149
|
}), $ = l(X, 2);
|
|
20147
20150
|
G = $[0], K = $[1];
|
|
20148
20151
|
} else {
|
|
20149
|
-
var V = [W.index, W.index + W.length].map(function(
|
|
20150
|
-
return
|
|
20151
|
-
}),
|
|
20152
|
-
G =
|
|
20152
|
+
var V = [W.index, W.index + W.length].map(function(J) {
|
|
20153
|
+
return J < D || J === D && j === v.default.sources.USER ? J : k >= 0 ? J + k : Math.max(D, J + k);
|
|
20154
|
+
}), Q = l(V, 2);
|
|
20155
|
+
G = Q[0], K = Q[1];
|
|
20153
20156
|
}
|
|
20154
20157
|
return new w.Range(G, K - G);
|
|
20155
20158
|
}
|
|
@@ -20501,7 +20504,7 @@ var ey = { exports: {} };
|
|
|
20501
20504
|
function O(L, R) {
|
|
20502
20505
|
var C = [], P = !0, M = !1, F = void 0;
|
|
20503
20506
|
try {
|
|
20504
|
-
for (var q = L[Symbol.iterator](),
|
|
20507
|
+
for (var q = L[Symbol.iterator](), Z; !(P = (Z = q.next()).done) && (C.push(Z.value), !(R && C.length === R)); P = !0)
|
|
20505
20508
|
;
|
|
20506
20509
|
} catch (z) {
|
|
20507
20510
|
M = !0, F = z;
|
|
@@ -20600,8 +20603,8 @@ var ey = { exports: {} };
|
|
|
20600
20603
|
if (P !== 0 && !(p.default.query(M, p.default.Scope.BLOCK) == null || M === this.statics.blotName && F === this.statics.formats(this.domNode))) {
|
|
20601
20604
|
var q = this.newlineIndex(C);
|
|
20602
20605
|
if (!(q < 0 || q >= C + P)) {
|
|
20603
|
-
var
|
|
20604
|
-
rt.format(M, F), W instanceof L && W.formatAt(0, C -
|
|
20606
|
+
var Z = this.newlineIndex(C, !0) + 1, z = q - Z + 1, rt = this.isolate(Z, z), W = rt.next;
|
|
20607
|
+
rt.format(M, F), W instanceof L && W.formatAt(0, C - Z + P - z, M, F);
|
|
20605
20608
|
}
|
|
20606
20609
|
}
|
|
20607
20610
|
}
|
|
@@ -20609,8 +20612,8 @@ var ey = { exports: {} };
|
|
|
20609
20612
|
key: "insertAt",
|
|
20610
20613
|
value: function(C, P, M) {
|
|
20611
20614
|
if (M == null) {
|
|
20612
|
-
var F = this.descendant(_.default, C), q = a(F, 2),
|
|
20613
|
-
|
|
20615
|
+
var F = this.descendant(_.default, C), q = a(F, 2), Z = q[0], z = q[1];
|
|
20616
|
+
Z.insertAt(z, P);
|
|
20614
20617
|
}
|
|
20615
20618
|
}
|
|
20616
20619
|
}, {
|
|
@@ -20679,8 +20682,8 @@ var ey = { exports: {} };
|
|
|
20679
20682
|
try {
|
|
20680
20683
|
for (var $ = D[Symbol.iterator](), V; !(G = (V = $.next()).done) && (j.push(V.value), !(k && j.length === k)); G = !0)
|
|
20681
20684
|
;
|
|
20682
|
-
} catch (
|
|
20683
|
-
K = !0, X =
|
|
20685
|
+
} catch (Q) {
|
|
20686
|
+
K = !0, X = Q;
|
|
20684
20687
|
} finally {
|
|
20685
20688
|
try {
|
|
20686
20689
|
!G && $.return && $.return();
|
|
@@ -20719,7 +20722,7 @@ var ey = { exports: {} };
|
|
|
20719
20722
|
if (!(W instanceof D))
|
|
20720
20723
|
throw new TypeError("Cannot call a class as a function");
|
|
20721
20724
|
}
|
|
20722
|
-
var q = /^[ -~]*$/,
|
|
20725
|
+
var q = /^[ -~]*$/, Z = function() {
|
|
20723
20726
|
function W(D) {
|
|
20724
20727
|
F(this, W), this.scroll = D, this.delta = this.getDelta();
|
|
20725
20728
|
}
|
|
@@ -20730,19 +20733,19 @@ var ey = { exports: {} };
|
|
|
20730
20733
|
this.scroll.update();
|
|
20731
20734
|
var K = this.scroll.length();
|
|
20732
20735
|
return this.scroll.batchStart(), k = rt(k), k.reduce(function(X, $) {
|
|
20733
|
-
var V = $.retain || $.delete || $.insert.length || 1,
|
|
20736
|
+
var V = $.retain || $.delete || $.insert.length || 1, Q = $.attributes || {};
|
|
20734
20737
|
if ($.insert != null) {
|
|
20735
20738
|
if (typeof $.insert == "string") {
|
|
20736
|
-
var
|
|
20737
|
-
|
|
20738
|
-
`) && G && (G = !1,
|
|
20739
|
-
`) && (G = !0), j.scroll.insertAt(X,
|
|
20740
|
-
var nt = j.scroll.line(X), ot = l(nt, 2), dt = ot[0],
|
|
20739
|
+
var J = $.insert;
|
|
20740
|
+
J.endsWith(`
|
|
20741
|
+
`) && G && (G = !1, J = J.slice(0, -1)), X >= K && !J.endsWith(`
|
|
20742
|
+
`) && (G = !0), j.scroll.insertAt(X, J);
|
|
20743
|
+
var nt = j.scroll.line(X), ot = l(nt, 2), dt = ot[0], pt = ot[1], bt = (0, C.default)({}, (0, w.bubbleFormats)(dt));
|
|
20741
20744
|
if (dt instanceof T.default) {
|
|
20742
|
-
var Tt = dt.descendant(v.default.Leaf,
|
|
20743
|
-
bt = (0, C.default)(bt, (0, w.bubbleFormats)(
|
|
20745
|
+
var Tt = dt.descendant(v.default.Leaf, pt), le = l(Tt, 1), zt = le[0];
|
|
20746
|
+
bt = (0, C.default)(bt, (0, w.bubbleFormats)(zt));
|
|
20744
20747
|
}
|
|
20745
|
-
|
|
20748
|
+
Q = p.default.attributes.diff(bt, Q) || {};
|
|
20746
20749
|
} else if (a($.insert) === "object") {
|
|
20747
20750
|
var st = Object.keys($.insert)[0];
|
|
20748
20751
|
if (st == null)
|
|
@@ -20751,8 +20754,8 @@ var ey = { exports: {} };
|
|
|
20751
20754
|
}
|
|
20752
20755
|
K += V;
|
|
20753
20756
|
}
|
|
20754
|
-
return Object.keys(
|
|
20755
|
-
j.scroll.formatAt(X, V, lt,
|
|
20757
|
+
return Object.keys(Q).forEach(function(lt) {
|
|
20758
|
+
j.scroll.formatAt(X, V, lt, Q[lt]);
|
|
20756
20759
|
}), X + V;
|
|
20757
20760
|
}, 0), k.reduce(function(X, $) {
|
|
20758
20761
|
return typeof $.delete == "number" ? (j.scroll.deleteAt(X, $.delete), X) : X + ($.retain || $.insert.length || 1);
|
|
@@ -20770,15 +20773,15 @@ var ey = { exports: {} };
|
|
|
20770
20773
|
return this.scroll.update(), Object.keys(K).forEach(function(X) {
|
|
20771
20774
|
if (!(G.scroll.whitelist != null && !G.scroll.whitelist[X])) {
|
|
20772
20775
|
var $ = G.scroll.lines(k, Math.max(j, 1)), V = j;
|
|
20773
|
-
$.forEach(function(
|
|
20774
|
-
var
|
|
20775
|
-
if (!(
|
|
20776
|
-
|
|
20776
|
+
$.forEach(function(Q) {
|
|
20777
|
+
var J = Q.length();
|
|
20778
|
+
if (!(Q instanceof y.default))
|
|
20779
|
+
Q.format(X, K[X]);
|
|
20777
20780
|
else {
|
|
20778
|
-
var nt = k -
|
|
20779
|
-
|
|
20781
|
+
var nt = k - Q.offset(G.scroll), ot = Q.newlineIndex(nt + V) - nt + 1;
|
|
20782
|
+
Q.formatAt(nt, ot, X, K[X]);
|
|
20780
20783
|
}
|
|
20781
|
-
V -=
|
|
20784
|
+
V -= J;
|
|
20782
20785
|
});
|
|
20783
20786
|
}
|
|
20784
20787
|
}), this.scroll.optimize(), this.update(new h.default().retain(k).retain(j, (0, S.default)(K)));
|
|
@@ -20808,17 +20811,17 @@ var ey = { exports: {} };
|
|
|
20808
20811
|
value: function(k) {
|
|
20809
20812
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, G = [], K = [];
|
|
20810
20813
|
j === 0 ? this.scroll.path(k).forEach(function($) {
|
|
20811
|
-
var V = l($, 1),
|
|
20812
|
-
|
|
20814
|
+
var V = l($, 1), Q = V[0];
|
|
20815
|
+
Q instanceof T.default ? G.push(Q) : Q instanceof v.default.Leaf && K.push(Q);
|
|
20813
20816
|
}) : (G = this.scroll.lines(k, j), K = this.scroll.descendants(v.default.Leaf, k, j));
|
|
20814
20817
|
var X = [G, K].map(function($) {
|
|
20815
20818
|
if ($.length === 0)
|
|
20816
20819
|
return {};
|
|
20817
20820
|
for (var V = (0, w.bubbleFormats)($.shift()); Object.keys(V).length > 0; ) {
|
|
20818
|
-
var
|
|
20819
|
-
if (
|
|
20821
|
+
var Q = $.shift();
|
|
20822
|
+
if (Q == null)
|
|
20820
20823
|
return V;
|
|
20821
|
-
V = z((0, w.bubbleFormats)(
|
|
20824
|
+
V = z((0, w.bubbleFormats)(Q), V);
|
|
20822
20825
|
}
|
|
20823
20826
|
return V;
|
|
20824
20827
|
});
|
|
@@ -20861,10 +20864,10 @@ var ey = { exports: {} };
|
|
|
20861
20864
|
}, {
|
|
20862
20865
|
key: "removeFormat",
|
|
20863
20866
|
value: function(k, j) {
|
|
20864
|
-
var G = this.getText(k, j), K = this.scroll.line(k + j), X = l(K, 2), $ = X[0], V = X[1],
|
|
20865
|
-
$ != null && ($ instanceof y.default ?
|
|
20867
|
+
var G = this.getText(k, j), K = this.scroll.line(k + j), X = l(K, 2), $ = X[0], V = X[1], Q = 0, J = new h.default();
|
|
20868
|
+
$ != null && ($ instanceof y.default ? Q = $.newlineIndex(V) - V + 1 : Q = $.length() - V, J = $.delta().slice(V, V + Q - 1).insert(`
|
|
20866
20869
|
`));
|
|
20867
|
-
var nt = this.getContents(k, j +
|
|
20870
|
+
var nt = this.getContents(k, j + Q), ot = nt.diff(new h.default().insert(G).concat(J)), dt = new h.default().retain(k).concat(ot);
|
|
20868
20871
|
return this.applyDelta(dt);
|
|
20869
20872
|
}
|
|
20870
20873
|
}, {
|
|
@@ -20872,9 +20875,9 @@ var ey = { exports: {} };
|
|
|
20872
20875
|
value: function(k) {
|
|
20873
20876
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, K = this.delta;
|
|
20874
20877
|
if (j.length === 1 && j[0].type === "characterData" && j[0].target.data.match(q) && v.default.find(j[0].target)) {
|
|
20875
|
-
var X = v.default.find(j[0].target), $ = (0, w.bubbleFormats)(X), V = X.offset(this.scroll),
|
|
20876
|
-
k = ot.reduce(function(dt,
|
|
20877
|
-
return
|
|
20878
|
+
var X = v.default.find(j[0].target), $ = (0, w.bubbleFormats)(X), V = X.offset(this.scroll), Q = j[0].oldValue.replace(_.default.CONTENTS, ""), J = new h.default().insert(Q), nt = new h.default().insert(X.value()), ot = new h.default().retain(V).concat(J.diff(nt, G));
|
|
20879
|
+
k = ot.reduce(function(dt, pt) {
|
|
20880
|
+
return pt.insert ? dt.insert(pt.insert, $) : dt.push(pt);
|
|
20878
20881
|
}, new h.default()), this.delta = K.compose(k);
|
|
20879
20882
|
} else
|
|
20880
20883
|
this.delta = this.getDelta(), (!k || !(0, L.default)(K.compose(k), this.delta)) && (k = K.diff(this.delta, G));
|
|
@@ -20902,7 +20905,7 @@ var ey = { exports: {} };
|
|
|
20902
20905
|
return D.push(k);
|
|
20903
20906
|
}, new h.default());
|
|
20904
20907
|
}
|
|
20905
|
-
n.default =
|
|
20908
|
+
n.default = Z;
|
|
20906
20909
|
},
|
|
20907
20910
|
/* 15 */
|
|
20908
20911
|
/***/
|
|
@@ -20914,7 +20917,7 @@ var ey = { exports: {} };
|
|
|
20914
20917
|
function O(L, R) {
|
|
20915
20918
|
var C = [], P = !0, M = !1, F = void 0;
|
|
20916
20919
|
try {
|
|
20917
|
-
for (var q = L[Symbol.iterator](),
|
|
20920
|
+
for (var q = L[Symbol.iterator](), Z; !(P = (Z = q.next()).done) && (C.push(Z.value), !(R && C.length === R)); P = !0)
|
|
20918
20921
|
;
|
|
20919
20922
|
} catch (z) {
|
|
20920
20923
|
M = !0, F = z;
|
|
@@ -20983,8 +20986,8 @@ var ey = { exports: {} };
|
|
|
20983
20986
|
}
|
|
20984
20987
|
}), this.emitter.on(m.default.events.SCROLL_OPTIMIZE, function(P, M) {
|
|
20985
20988
|
if (M.range) {
|
|
20986
|
-
var F = M.range, q = F.startNode,
|
|
20987
|
-
C.setNativeRange(q,
|
|
20989
|
+
var F = M.range, q = F.startNode, Z = F.startOffset, z = F.endNode, rt = F.endOffset;
|
|
20990
|
+
C.setNativeRange(q, Z, z, rt);
|
|
20988
20991
|
}
|
|
20989
20992
|
}), this.update(m.default.sources.SILENT);
|
|
20990
20993
|
}
|
|
@@ -21047,22 +21050,22 @@ var ey = { exports: {} };
|
|
|
21047
21050
|
value: function(R) {
|
|
21048
21051
|
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, P = this.scroll.length();
|
|
21049
21052
|
R = Math.min(R, P - 1), C = Math.min(R + C, P - 1) - R;
|
|
21050
|
-
var M = void 0, F = this.scroll.leaf(R), q = a(F, 2),
|
|
21051
|
-
if (
|
|
21053
|
+
var M = void 0, F = this.scroll.leaf(R), q = a(F, 2), Z = q[0], z = q[1];
|
|
21054
|
+
if (Z == null)
|
|
21052
21055
|
return null;
|
|
21053
|
-
var rt =
|
|
21056
|
+
var rt = Z.position(z, !0), W = a(rt, 2);
|
|
21054
21057
|
M = W[0], z = W[1];
|
|
21055
21058
|
var D = document.createRange();
|
|
21056
21059
|
if (C > 0) {
|
|
21057
21060
|
D.setStart(M, z);
|
|
21058
21061
|
var k = this.scroll.leaf(R + C), j = a(k, 2);
|
|
21059
|
-
if (
|
|
21062
|
+
if (Z = j[0], z = j[1], Z == null)
|
|
21060
21063
|
return null;
|
|
21061
|
-
var G =
|
|
21064
|
+
var G = Z.position(z, !0), K = a(G, 2);
|
|
21062
21065
|
return M = K[0], z = K[1], D.setEnd(M, z), D.getBoundingClientRect();
|
|
21063
21066
|
} else {
|
|
21064
21067
|
var X = "left", $ = void 0;
|
|
21065
|
-
return M instanceof Text ? (z < M.data.length ? (D.setStart(M, z), D.setEnd(M, z + 1)) : (D.setStart(M, z - 1), D.setEnd(M, z), X = "right"), $ = D.getBoundingClientRect()) : ($ =
|
|
21068
|
+
return M instanceof Text ? (z < M.data.length ? (D.setStart(M, z), D.setEnd(M, z + 1)) : (D.setStart(M, z - 1), D.setEnd(M, z), X = "right"), $ = D.getBoundingClientRect()) : ($ = Z.domNode.getBoundingClientRect(), z > 0 && (X = "right")), {
|
|
21066
21069
|
bottom: $.top + $.height,
|
|
21067
21070
|
height: $.height,
|
|
21068
21071
|
left: $[X],
|
|
@@ -21103,8 +21106,8 @@ var ey = { exports: {} };
|
|
|
21103
21106
|
value: function(R) {
|
|
21104
21107
|
var C = this, P = [[R.start.node, R.start.offset]];
|
|
21105
21108
|
R.native.collapsed || P.push([R.end.node, R.end.offset]);
|
|
21106
|
-
var M = P.map(function(
|
|
21107
|
-
var z = a(
|
|
21109
|
+
var M = P.map(function(Z) {
|
|
21110
|
+
var z = a(Z, 2), rt = z[0], W = z[1], D = f.default.find(rt, !0), k = D.offset(C.scroll);
|
|
21108
21111
|
return W === 0 ? k : D instanceof f.default.Container ? k + D.length() : k + D.index(rt, W);
|
|
21109
21112
|
}), F = Math.min(Math.max.apply(Math, w(M)), this.scroll.length() - 1), q = Math.min.apply(Math, [F].concat(w(M)));
|
|
21110
21113
|
return new A(q, F - q);
|
|
@@ -21134,9 +21137,9 @@ var ey = { exports: {} };
|
|
|
21134
21137
|
key: "rangeToNative",
|
|
21135
21138
|
value: function(R) {
|
|
21136
21139
|
var C = this, P = R.collapsed ? [R.index] : [R.index, R.index + R.length], M = [], F = this.scroll.length();
|
|
21137
|
-
return P.forEach(function(q,
|
|
21140
|
+
return P.forEach(function(q, Z) {
|
|
21138
21141
|
q = Math.min(F - 1, q);
|
|
21139
|
-
var z = void 0, rt = C.scroll.leaf(q), W = a(rt, 2), D = W[0], k = W[1], j = D.position(k,
|
|
21142
|
+
var z = void 0, rt = C.scroll.leaf(q), W = a(rt, 2), D = W[0], k = W[1], j = D.position(k, Z !== 0), G = a(j, 2);
|
|
21140
21143
|
z = G[0], k = G[1], M.push(z, k);
|
|
21141
21144
|
}), M.length < 2 && (M = M.concat(M)), M;
|
|
21142
21145
|
}
|
|
@@ -21147,12 +21150,12 @@ var ey = { exports: {} };
|
|
|
21147
21150
|
if (C != null) {
|
|
21148
21151
|
var P = this.getBounds(C.index, C.length);
|
|
21149
21152
|
if (P != null) {
|
|
21150
|
-
var M = this.scroll.length() - 1, F = this.scroll.line(Math.min(C.index, M)), q = a(F, 1),
|
|
21153
|
+
var M = this.scroll.length() - 1, F = this.scroll.line(Math.min(C.index, M)), q = a(F, 1), Z = q[0], z = Z;
|
|
21151
21154
|
if (C.length > 0) {
|
|
21152
21155
|
var rt = this.scroll.line(Math.min(C.index + C.length, M)), W = a(rt, 1);
|
|
21153
21156
|
z = W[0];
|
|
21154
21157
|
}
|
|
21155
|
-
if (!(
|
|
21158
|
+
if (!(Z == null || z == null)) {
|
|
21156
21159
|
var D = R.getBoundingClientRect();
|
|
21157
21160
|
P.top < D.top ? R.scrollTop -= D.top - P.top : P.bottom > D.bottom && (R.scrollTop += P.bottom - D.bottom);
|
|
21158
21161
|
}
|
|
@@ -21168,8 +21171,8 @@ var ey = { exports: {} };
|
|
|
21168
21171
|
if (q != null)
|
|
21169
21172
|
if (R != null) {
|
|
21170
21173
|
this.hasFocus() || this.root.focus();
|
|
21171
|
-
var
|
|
21172
|
-
if (
|
|
21174
|
+
var Z = (this.getNativeRange() || {}).native;
|
|
21175
|
+
if (Z == null || F || R !== Z.startContainer || C !== Z.startOffset || P !== Z.endContainer || M !== Z.endOffset) {
|
|
21173
21176
|
R.tagName == "BR" && (C = [].indexOf.call(R.parentNode.childNodes, R), R = R.parentNode), P.tagName == "BR" && (M = [].indexOf.call(P.parentNode.childNodes, P), P = P.parentNode);
|
|
21174
21177
|
var z = document.createRange();
|
|
21175
21178
|
z.setStart(R, C), z.setEnd(P, M), q.removeAllRanges(), q.addRange(z);
|
|
@@ -21194,10 +21197,10 @@ var ey = { exports: {} };
|
|
|
21194
21197
|
value: function() {
|
|
21195
21198
|
var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m.default.sources.USER, C = this.lastRange, P = this.getRange(), M = a(P, 2), F = M[0], q = M[1];
|
|
21196
21199
|
if (this.lastRange = F, this.lastRange != null && (this.savedRange = this.lastRange), !(0, c.default)(C, this.lastRange)) {
|
|
21197
|
-
var
|
|
21200
|
+
var Z;
|
|
21198
21201
|
!this.composing && q != null && q.native.collapsed && q.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
21199
21202
|
var z = [m.default.events.SELECTION_CHANGE, (0, d.default)(this.lastRange), (0, d.default)(C), R];
|
|
21200
|
-
if ((
|
|
21203
|
+
if ((Z = this.emitter).emit.apply(Z, [m.default.events.EDITOR_CHANGE].concat(z)), R !== m.default.sources.SILENT) {
|
|
21201
21204
|
var rt;
|
|
21202
21205
|
(rt = this.emitter).emit.apply(rt, z);
|
|
21203
21206
|
}
|
|
@@ -21695,8 +21698,8 @@ var ey = { exports: {} };
|
|
|
21695
21698
|
}
|
|
21696
21699
|
if (Object.getOwnPropertySymbols)
|
|
21697
21700
|
for (var q = Object.getOwnPropertySymbols(O), M = 0; M < q.length; M++) {
|
|
21698
|
-
var
|
|
21699
|
-
z && !z.enumerable && !T || (R[
|
|
21701
|
+
var Z = q[M], z = Object.getOwnPropertyDescriptor(O, Z);
|
|
21702
|
+
z && !z.enumerable && !T || (R[Z] = S(O[Z], L - 1), z.enumerable || Object.defineProperty(R, Z, {
|
|
21700
21703
|
enumerable: !1
|
|
21701
21704
|
}));
|
|
21702
21705
|
}
|
|
@@ -21750,18 +21753,18 @@ var ey = { exports: {} };
|
|
|
21750
21753
|
});
|
|
21751
21754
|
var a = function() {
|
|
21752
21755
|
function R(C, P) {
|
|
21753
|
-
var M = [], F = !0, q = !1,
|
|
21756
|
+
var M = [], F = !0, q = !1, Z = void 0;
|
|
21754
21757
|
try {
|
|
21755
21758
|
for (var z = C[Symbol.iterator](), rt; !(F = (rt = z.next()).done) && (M.push(rt.value), !(P && M.length === P)); F = !0)
|
|
21756
21759
|
;
|
|
21757
21760
|
} catch (W) {
|
|
21758
|
-
q = !0,
|
|
21761
|
+
q = !0, Z = W;
|
|
21759
21762
|
} finally {
|
|
21760
21763
|
try {
|
|
21761
21764
|
!F && z.return && z.return();
|
|
21762
21765
|
} finally {
|
|
21763
21766
|
if (q)
|
|
21764
|
-
throw
|
|
21767
|
+
throw Z;
|
|
21765
21768
|
}
|
|
21766
21769
|
}
|
|
21767
21770
|
return M;
|
|
@@ -21792,8 +21795,8 @@ var ey = { exports: {} };
|
|
|
21792
21795
|
} else {
|
|
21793
21796
|
if ("value" in F)
|
|
21794
21797
|
return F.value;
|
|
21795
|
-
var
|
|
21796
|
-
return
|
|
21798
|
+
var Z = F.get;
|
|
21799
|
+
return Z === void 0 ? void 0 : Z.call(M);
|
|
21797
21800
|
}
|
|
21798
21801
|
}, f = i(0), h = x(f), d = i(8), p = x(d), c = i(4), v = x(c), m = i(16), y = x(m), b = i(13), _ = x(b), w = i(25), T = x(w);
|
|
21799
21802
|
function x(R) {
|
|
@@ -21821,8 +21824,8 @@ var ey = { exports: {} };
|
|
|
21821
21824
|
function C(P, M) {
|
|
21822
21825
|
A(this, C);
|
|
21823
21826
|
var F = I(this, (C.__proto__ || Object.getPrototypeOf(C)).call(this, P));
|
|
21824
|
-
return F.emitter = M.emitter, Array.isArray(M.whitelist) && (F.whitelist = M.whitelist.reduce(function(q,
|
|
21825
|
-
return q[
|
|
21827
|
+
return F.emitter = M.emitter, Array.isArray(M.whitelist) && (F.whitelist = M.whitelist.reduce(function(q, Z) {
|
|
21828
|
+
return q[Z] = !0, q;
|
|
21826
21829
|
}, {})), F.domNode.addEventListener("DOMNodeInserted", function() {
|
|
21827
21830
|
}), F.optimize(), F.enable(), F;
|
|
21828
21831
|
}
|
|
@@ -21839,7 +21842,7 @@ var ey = { exports: {} };
|
|
|
21839
21842
|
}, {
|
|
21840
21843
|
key: "deleteAt",
|
|
21841
21844
|
value: function(M, F) {
|
|
21842
|
-
var q = this.line(M),
|
|
21845
|
+
var q = this.line(M), Z = a(q, 2), z = Z[0], rt = Z[1], W = this.line(M + F), D = a(W, 1), k = D[0];
|
|
21843
21846
|
if (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "deleteAt", this).call(this, M, F), k != null && z !== k && rt > 0) {
|
|
21844
21847
|
if (z instanceof c.BlockEmbed || k instanceof c.BlockEmbed) {
|
|
21845
21848
|
this.optimize();
|
|
@@ -21868,8 +21871,8 @@ var ey = { exports: {} };
|
|
|
21868
21871
|
}
|
|
21869
21872
|
}, {
|
|
21870
21873
|
key: "formatAt",
|
|
21871
|
-
value: function(M, F, q,
|
|
21872
|
-
this.whitelist != null && !this.whitelist[q] || (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "formatAt", this).call(this, M, F, q,
|
|
21874
|
+
value: function(M, F, q, Z) {
|
|
21875
|
+
this.whitelist != null && !this.whitelist[q] || (u(C.prototype.__proto__ || Object.getPrototypeOf(C.prototype), "formatAt", this).call(this, M, F, q, Z), this.optimize());
|
|
21873
21876
|
}
|
|
21874
21877
|
}, {
|
|
21875
21878
|
key: "insertAt",
|
|
@@ -21877,9 +21880,9 @@ var ey = { exports: {} };
|
|
|
21877
21880
|
if (!(q != null && this.whitelist != null && !this.whitelist[F])) {
|
|
21878
21881
|
if (M >= this.length())
|
|
21879
21882
|
if (q == null || h.default.query(F, h.default.Scope.BLOCK) == null) {
|
|
21880
|
-
var
|
|
21881
|
-
this.appendChild(
|
|
21882
|
-
`) && (F = F.slice(0, -1)),
|
|
21883
|
+
var Z = h.default.create(this.statics.defaultChild);
|
|
21884
|
+
this.appendChild(Z), q == null && F.endsWith(`
|
|
21885
|
+
`) && (F = F.slice(0, -1)), Z.insertAt(0, F, q);
|
|
21883
21886
|
} else {
|
|
21884
21887
|
var z = h.default.create(F, q);
|
|
21885
21888
|
this.appendChild(z);
|
|
@@ -21911,10 +21914,10 @@ var ey = { exports: {} };
|
|
|
21911
21914
|
}, {
|
|
21912
21915
|
key: "lines",
|
|
21913
21916
|
value: function() {
|
|
21914
|
-
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function
|
|
21917
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, q = function Z(z, rt, W) {
|
|
21915
21918
|
var D = [], k = W;
|
|
21916
21919
|
return z.children.forEachAt(rt, W, function(j, G, K) {
|
|
21917
|
-
O(j) ? D.push(j) : j instanceof h.default.Container && (D = D.concat(
|
|
21920
|
+
O(j) ? D.push(j) : j instanceof h.default.Container && (D = D.concat(Z(j, G, k))), k -= K;
|
|
21918
21921
|
}), D;
|
|
21919
21922
|
};
|
|
21920
21923
|
return q(this, M, F);
|
|
@@ -21953,46 +21956,46 @@ var ey = { exports: {} };
|
|
|
21953
21956
|
} : function($) {
|
|
21954
21957
|
return $ && typeof Symbol == "function" && $.constructor === Symbol && $ !== Symbol.prototype ? "symbol" : typeof $;
|
|
21955
21958
|
}, l = function() {
|
|
21956
|
-
function $(V,
|
|
21957
|
-
var
|
|
21959
|
+
function $(V, Q) {
|
|
21960
|
+
var J = [], nt = !0, ot = !1, dt = void 0;
|
|
21958
21961
|
try {
|
|
21959
|
-
for (var
|
|
21962
|
+
for (var pt = V[Symbol.iterator](), bt; !(nt = (bt = pt.next()).done) && (J.push(bt.value), !(Q && J.length === Q)); nt = !0)
|
|
21960
21963
|
;
|
|
21961
21964
|
} catch (Tt) {
|
|
21962
21965
|
ot = !0, dt = Tt;
|
|
21963
21966
|
} finally {
|
|
21964
21967
|
try {
|
|
21965
|
-
!nt &&
|
|
21968
|
+
!nt && pt.return && pt.return();
|
|
21966
21969
|
} finally {
|
|
21967
21970
|
if (ot)
|
|
21968
21971
|
throw dt;
|
|
21969
21972
|
}
|
|
21970
21973
|
}
|
|
21971
|
-
return
|
|
21974
|
+
return J;
|
|
21972
21975
|
}
|
|
21973
|
-
return function(V,
|
|
21976
|
+
return function(V, Q) {
|
|
21974
21977
|
if (Array.isArray(V))
|
|
21975
21978
|
return V;
|
|
21976
21979
|
if (Symbol.iterator in Object(V))
|
|
21977
|
-
return $(V,
|
|
21980
|
+
return $(V, Q);
|
|
21978
21981
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
21979
21982
|
};
|
|
21980
21983
|
}(), u = function() {
|
|
21981
|
-
function $(V,
|
|
21982
|
-
for (var
|
|
21983
|
-
var nt = J
|
|
21984
|
+
function $(V, Q) {
|
|
21985
|
+
for (var J = 0; J < Q.length; J++) {
|
|
21986
|
+
var nt = Q[J];
|
|
21984
21987
|
nt.enumerable = nt.enumerable || !1, nt.configurable = !0, "value" in nt && (nt.writable = !0), Object.defineProperty(V, nt.key, nt);
|
|
21985
21988
|
}
|
|
21986
21989
|
}
|
|
21987
|
-
return function(V,
|
|
21988
|
-
return
|
|
21990
|
+
return function(V, Q, J) {
|
|
21991
|
+
return Q && $(V.prototype, Q), J && $(V, J), V;
|
|
21989
21992
|
};
|
|
21990
21993
|
}(), f = i(21), h = R(f), d = i(11), p = R(d), c = i(3), v = R(c), m = i(2), y = R(m), b = i(20), _ = R(b), w = i(0), T = R(w), x = i(5), A = R(x), I = i(10), S = R(I), O = i(9), L = R(O);
|
|
21991
21994
|
function R($) {
|
|
21992
21995
|
return $ && $.__esModule ? $ : { default: $ };
|
|
21993
21996
|
}
|
|
21994
|
-
function C($, V,
|
|
21995
|
-
return V in $ ? Object.defineProperty($, V, { value:
|
|
21997
|
+
function C($, V, Q) {
|
|
21998
|
+
return V in $ ? Object.defineProperty($, V, { value: Q, enumerable: !0, configurable: !0, writable: !0 }) : $[V] = Q, $;
|
|
21996
21999
|
}
|
|
21997
22000
|
function P($, V) {
|
|
21998
22001
|
if (!($ instanceof V))
|
|
@@ -22008,27 +22011,27 @@ var ey = { exports: {} };
|
|
|
22008
22011
|
throw new TypeError("Super expression must either be null or a function, not " + typeof V);
|
|
22009
22012
|
$.prototype = Object.create(V && V.prototype, { constructor: { value: $, enumerable: !1, writable: !0, configurable: !0 } }), V && (Object.setPrototypeOf ? Object.setPrototypeOf($, V) : $.__proto__ = V);
|
|
22010
22013
|
}
|
|
22011
|
-
var q = (0, S.default)("quill:keyboard"),
|
|
22014
|
+
var q = (0, S.default)("quill:keyboard"), Z = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", z = function($) {
|
|
22012
22015
|
F(V, $), u(V, null, [{
|
|
22013
22016
|
key: "match",
|
|
22014
|
-
value: function(
|
|
22017
|
+
value: function(J, nt) {
|
|
22015
22018
|
return nt = X(nt), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(ot) {
|
|
22016
|
-
return !!nt[ot] !==
|
|
22017
|
-
}) ? !1 : nt.key === (
|
|
22019
|
+
return !!nt[ot] !== J[ot] && nt[ot] !== null;
|
|
22020
|
+
}) ? !1 : nt.key === (J.which || J.keyCode);
|
|
22018
22021
|
}
|
|
22019
22022
|
}]);
|
|
22020
|
-
function V(
|
|
22023
|
+
function V(Q, J) {
|
|
22021
22024
|
P(this, V);
|
|
22022
|
-
var nt = M(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this,
|
|
22025
|
+
var nt = M(this, (V.__proto__ || Object.getPrototypeOf(V)).call(this, Q, J));
|
|
22023
22026
|
return nt.bindings = {}, Object.keys(nt.options.bindings).forEach(function(ot) {
|
|
22024
|
-
ot === "list autofill" &&
|
|
22027
|
+
ot === "list autofill" && Q.scroll.whitelist != null && !Q.scroll.whitelist.list || nt.options.bindings[ot] && nt.addBinding(nt.options.bindings[ot]);
|
|
22025
22028
|
}), nt.addBinding({ key: V.keys.ENTER, shiftKey: null }, j), nt.addBinding({ key: V.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
22026
22029
|
}), /Firefox/i.test(navigator.userAgent) ? (nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0 }, W), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !0 }, D)) : (nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, W), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, D)), nt.addBinding({ key: V.keys.BACKSPACE }, { collapsed: !1 }, k), nt.addBinding({ key: V.keys.DELETE }, { collapsed: !1 }, k), nt.addBinding({ key: V.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, W), nt.listen(), nt;
|
|
22027
22030
|
}
|
|
22028
22031
|
return u(V, [{
|
|
22029
22032
|
key: "addBinding",
|
|
22030
|
-
value: function(
|
|
22031
|
-
var nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, dt = X(
|
|
22033
|
+
value: function(J) {
|
|
22034
|
+
var nt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, dt = X(J);
|
|
22032
22035
|
if (dt == null || dt.key == null)
|
|
22033
22036
|
return q.warn("Attempted to add invalid keyboard binding", dt);
|
|
22034
22037
|
typeof nt == "function" && (nt = { handler: nt }), typeof ot == "function" && (ot = { handler: ot }), dt = (0, v.default)(dt, nt, ot), this.bindings[dt.key] = this.bindings[dt.key] || [], this.bindings[dt.key].push(dt);
|
|
@@ -22036,20 +22039,20 @@ var ey = { exports: {} };
|
|
|
22036
22039
|
}, {
|
|
22037
22040
|
key: "listen",
|
|
22038
22041
|
value: function() {
|
|
22039
|
-
var
|
|
22042
|
+
var J = this;
|
|
22040
22043
|
this.quill.root.addEventListener("keydown", function(nt) {
|
|
22041
22044
|
if (!nt.defaultPrevented) {
|
|
22042
|
-
var ot = nt.which || nt.keyCode, dt = (
|
|
22045
|
+
var ot = nt.which || nt.keyCode, dt = (J.bindings[ot] || []).filter(function(ue) {
|
|
22043
22046
|
return V.match(nt, ue);
|
|
22044
22047
|
});
|
|
22045
22048
|
if (dt.length !== 0) {
|
|
22046
|
-
var
|
|
22047
|
-
if (!(
|
|
22048
|
-
var bt =
|
|
22049
|
-
collapsed:
|
|
22050
|
-
empty:
|
|
22051
|
-
format:
|
|
22052
|
-
offset:
|
|
22049
|
+
var pt = J.quill.getSelection();
|
|
22050
|
+
if (!(pt == null || !J.quill.hasFocus())) {
|
|
22051
|
+
var bt = J.quill.getLine(pt.index), Tt = l(bt, 2), le = Tt[0], zt = Tt[1], st = J.quill.getLeaf(pt.index), lt = l(st, 2), vt = lt[0], gt = lt[1], ct = pt.length === 0 ? [vt, gt] : J.quill.getLeaf(pt.index + pt.length), It = l(ct, 2), kt = It[0], Pt = It[1], qe = vt instanceof T.default.Text ? vt.value().slice(0, gt) : "", Be = kt instanceof T.default.Text ? kt.value().slice(Pt) : "", Yt = {
|
|
22052
|
+
collapsed: pt.length === 0,
|
|
22053
|
+
empty: pt.length === 0 && le.length() <= 1,
|
|
22054
|
+
format: J.quill.getFormat(pt),
|
|
22055
|
+
offset: zt,
|
|
22053
22056
|
prefix: qe,
|
|
22054
22057
|
suffix: Be
|
|
22055
22058
|
}, Xi = dt.some(function(ue) {
|
|
@@ -22064,7 +22067,7 @@ var ey = { exports: {} };
|
|
|
22064
22067
|
return ue.format[sr] === !0 ? Yt.format[sr] != null : ue.format[sr] === !1 ? Yt.format[sr] == null : (0, p.default)(ue.format[sr], Yt.format[sr]);
|
|
22065
22068
|
}))
|
|
22066
22069
|
return !1;
|
|
22067
|
-
return ue.prefix != null && !ue.prefix.test(Yt.prefix) || ue.suffix != null && !ue.suffix.test(Yt.suffix) ? !1 : ue.handler.call(
|
|
22070
|
+
return ue.prefix != null && !ue.prefix.test(Yt.prefix) || ue.suffix != null && !ue.suffix.test(Yt.suffix) ? !1 : ue.handler.call(J, pt, Yt) !== !0;
|
|
22068
22071
|
});
|
|
22069
22072
|
Xi && nt.preventDefault();
|
|
22070
22073
|
}
|
|
@@ -22093,8 +22096,8 @@ var ey = { exports: {} };
|
|
|
22093
22096
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
22094
22097
|
key: z.keys.TAB,
|
|
22095
22098
|
format: ["blockquote", "indent", "list"],
|
|
22096
|
-
handler: function(V,
|
|
22097
|
-
if (
|
|
22099
|
+
handler: function(V, Q) {
|
|
22100
|
+
if (Q.collapsed && Q.offset !== 0)
|
|
22098
22101
|
return !0;
|
|
22099
22102
|
this.quill.format("indent", "+1", A.default.sources.USER);
|
|
22100
22103
|
}
|
|
@@ -22104,8 +22107,8 @@ var ey = { exports: {} };
|
|
|
22104
22107
|
shiftKey: !0,
|
|
22105
22108
|
format: ["blockquote", "indent", "list"],
|
|
22106
22109
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
22107
|
-
handler: function(V,
|
|
22108
|
-
if (
|
|
22110
|
+
handler: function(V, Q) {
|
|
22111
|
+
if (Q.collapsed && Q.offset !== 0)
|
|
22109
22112
|
return !0;
|
|
22110
22113
|
this.quill.format("indent", "-1", A.default.sources.USER);
|
|
22111
22114
|
}
|
|
@@ -22119,8 +22122,8 @@ var ey = { exports: {} };
|
|
|
22119
22122
|
altKey: null,
|
|
22120
22123
|
format: ["indent", "list"],
|
|
22121
22124
|
offset: 0,
|
|
22122
|
-
handler: function(V,
|
|
22123
|
-
|
|
22125
|
+
handler: function(V, Q) {
|
|
22126
|
+
Q.format.indent != null ? this.quill.format("indent", "-1", A.default.sources.USER) : Q.format.list != null && this.quill.format("list", !1, A.default.sources.USER);
|
|
22124
22127
|
}
|
|
22125
22128
|
},
|
|
22126
22129
|
"indent code-block": G(!0),
|
|
@@ -22138,8 +22141,8 @@ var ey = { exports: {} };
|
|
|
22138
22141
|
key: z.keys.TAB,
|
|
22139
22142
|
handler: function(V) {
|
|
22140
22143
|
this.quill.history.cutoff();
|
|
22141
|
-
var
|
|
22142
|
-
this.quill.updateContents(
|
|
22144
|
+
var Q = new y.default().retain(V.index).delete(V.length).insert(" ");
|
|
22145
|
+
this.quill.updateContents(Q, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index + 1, A.default.sources.SILENT);
|
|
22143
22146
|
}
|
|
22144
22147
|
},
|
|
22145
22148
|
"list empty enter": {
|
|
@@ -22147,8 +22150,8 @@ var ey = { exports: {} };
|
|
|
22147
22150
|
collapsed: !0,
|
|
22148
22151
|
format: ["list"],
|
|
22149
22152
|
empty: !0,
|
|
22150
|
-
handler: function(V,
|
|
22151
|
-
this.quill.format("list", !1, A.default.sources.USER),
|
|
22153
|
+
handler: function(V, Q) {
|
|
22154
|
+
this.quill.format("list", !1, A.default.sources.USER), Q.format.indent && this.quill.format("indent", !1, A.default.sources.USER);
|
|
22152
22155
|
}
|
|
22153
22156
|
},
|
|
22154
22157
|
"checklist enter": {
|
|
@@ -22156,9 +22159,9 @@ var ey = { exports: {} };
|
|
|
22156
22159
|
collapsed: !0,
|
|
22157
22160
|
format: { list: "checked" },
|
|
22158
22161
|
handler: function(V) {
|
|
22159
|
-
var
|
|
22162
|
+
var Q = this.quill.getLine(V.index), J = l(Q, 2), nt = J[0], ot = J[1], dt = (0, v.default)({}, nt.formats(), { list: "checked" }), pt = new y.default().retain(V.index).insert(`
|
|
22160
22163
|
`, dt).retain(nt.length() - ot - 1).retain(1, { list: "unchecked" });
|
|
22161
|
-
this.quill.updateContents(
|
|
22164
|
+
this.quill.updateContents(pt, A.default.sources.USER), this.quill.setSelection(V.index + 1, A.default.sources.SILENT), this.quill.scrollIntoView();
|
|
22162
22165
|
}
|
|
22163
22166
|
},
|
|
22164
22167
|
"header enter": {
|
|
@@ -22166,10 +22169,10 @@ var ey = { exports: {} };
|
|
|
22166
22169
|
collapsed: !0,
|
|
22167
22170
|
format: ["header"],
|
|
22168
22171
|
suffix: /^$/,
|
|
22169
|
-
handler: function(V,
|
|
22170
|
-
var
|
|
22171
|
-
`,
|
|
22172
|
-
this.quill.updateContents(
|
|
22172
|
+
handler: function(V, Q) {
|
|
22173
|
+
var J = this.quill.getLine(V.index), nt = l(J, 2), ot = nt[0], dt = nt[1], pt = new y.default().retain(V.index).insert(`
|
|
22174
|
+
`, Q.format).retain(ot.length() - dt - 1).retain(1, { header: null });
|
|
22175
|
+
this.quill.updateContents(pt, A.default.sources.USER), this.quill.setSelection(V.index + 1, A.default.sources.SILENT), this.quill.scrollIntoView();
|
|
22173
22176
|
}
|
|
22174
22177
|
},
|
|
22175
22178
|
"list autofill": {
|
|
@@ -22177,12 +22180,12 @@ var ey = { exports: {} };
|
|
|
22177
22180
|
collapsed: !0,
|
|
22178
22181
|
format: { list: !1 },
|
|
22179
22182
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
22180
|
-
handler: function(V,
|
|
22181
|
-
var
|
|
22182
|
-
if (
|
|
22183
|
+
handler: function(V, Q) {
|
|
22184
|
+
var J = Q.prefix.length, nt = this.quill.getLine(V.index), ot = l(nt, 2), dt = ot[0], pt = ot[1];
|
|
22185
|
+
if (pt > J)
|
|
22183
22186
|
return !0;
|
|
22184
22187
|
var bt = void 0;
|
|
22185
|
-
switch (
|
|
22188
|
+
switch (Q.prefix.trim()) {
|
|
22186
22189
|
case "[]":
|
|
22187
22190
|
case "[ ]":
|
|
22188
22191
|
bt = "unchecked";
|
|
@@ -22198,8 +22201,8 @@ var ey = { exports: {} };
|
|
|
22198
22201
|
bt = "ordered";
|
|
22199
22202
|
}
|
|
22200
22203
|
this.quill.insertText(V.index, " ", A.default.sources.USER), this.quill.history.cutoff();
|
|
22201
|
-
var Tt = new y.default().retain(V.index -
|
|
22202
|
-
this.quill.updateContents(Tt, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index -
|
|
22204
|
+
var Tt = new y.default().retain(V.index - pt).delete(J + 1).retain(dt.length() - 2 - pt).retain(1, { list: bt });
|
|
22205
|
+
this.quill.updateContents(Tt, A.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(V.index - J, A.default.sources.SILENT);
|
|
22203
22206
|
}
|
|
22204
22207
|
},
|
|
22205
22208
|
"code exit": {
|
|
@@ -22209,7 +22212,7 @@ var ey = { exports: {} };
|
|
|
22209
22212
|
prefix: /\n\n$/,
|
|
22210
22213
|
suffix: /^\s+$/,
|
|
22211
22214
|
handler: function(V) {
|
|
22212
|
-
var
|
|
22215
|
+
var Q = this.quill.getLine(V.index), J = l(Q, 2), nt = J[0], ot = J[1], dt = new y.default().retain(V.index + nt.length() - ot - 2).retain(1, { "code-block": null }).delete(1);
|
|
22213
22216
|
this.quill.updateContents(dt, A.default.sources.USER);
|
|
22214
22217
|
}
|
|
22215
22218
|
},
|
|
@@ -22220,63 +22223,63 @@ var ey = { exports: {} };
|
|
|
22220
22223
|
}
|
|
22221
22224
|
};
|
|
22222
22225
|
function rt($, V) {
|
|
22223
|
-
var
|
|
22224
|
-
return
|
|
22226
|
+
var Q, J = $ === z.keys.LEFT ? "prefix" : "suffix";
|
|
22227
|
+
return Q = {
|
|
22225
22228
|
key: $,
|
|
22226
22229
|
shiftKey: V,
|
|
22227
22230
|
altKey: null
|
|
22228
|
-
}, C(
|
|
22231
|
+
}, C(Q, J, /^$/), C(Q, "handler", function(ot) {
|
|
22229
22232
|
var dt = ot.index;
|
|
22230
22233
|
$ === z.keys.RIGHT && (dt += ot.length + 1);
|
|
22231
|
-
var
|
|
22234
|
+
var pt = this.quill.getLeaf(dt), bt = l(pt, 1), Tt = bt[0];
|
|
22232
22235
|
return Tt instanceof T.default.Embed ? ($ === z.keys.LEFT ? V ? this.quill.setSelection(ot.index - 1, ot.length + 1, A.default.sources.USER) : this.quill.setSelection(ot.index - 1, A.default.sources.USER) : V ? this.quill.setSelection(ot.index, ot.length + 1, A.default.sources.USER) : this.quill.setSelection(ot.index + ot.length + 1, A.default.sources.USER), !1) : !0;
|
|
22233
|
-
}),
|
|
22236
|
+
}), Q;
|
|
22234
22237
|
}
|
|
22235
22238
|
function W($, V) {
|
|
22236
22239
|
if (!($.index === 0 || this.quill.getLength() <= 1)) {
|
|
22237
|
-
var
|
|
22240
|
+
var Q = this.quill.getLine($.index), J = l(Q, 1), nt = J[0], ot = {};
|
|
22238
22241
|
if (V.offset === 0) {
|
|
22239
|
-
var dt = this.quill.getLine($.index - 1),
|
|
22242
|
+
var dt = this.quill.getLine($.index - 1), pt = l(dt, 1), bt = pt[0];
|
|
22240
22243
|
if (bt != null && bt.length() > 1) {
|
|
22241
22244
|
var Tt = nt.formats(), le = this.quill.getFormat($.index - 1, 1);
|
|
22242
22245
|
ot = _.default.attributes.diff(Tt, le) || {};
|
|
22243
22246
|
}
|
|
22244
22247
|
}
|
|
22245
|
-
var
|
|
22246
|
-
this.quill.deleteText($.index -
|
|
22248
|
+
var zt = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix) ? 2 : 1;
|
|
22249
|
+
this.quill.deleteText($.index - zt, zt, A.default.sources.USER), Object.keys(ot).length > 0 && this.quill.formatLine($.index - zt, zt, ot, A.default.sources.USER), this.quill.focus();
|
|
22247
22250
|
}
|
|
22248
22251
|
}
|
|
22249
22252
|
function D($, V) {
|
|
22250
|
-
var
|
|
22251
|
-
if (!($.index >= this.quill.getLength() -
|
|
22252
|
-
var
|
|
22253
|
-
if (V.offset >=
|
|
22253
|
+
var Q = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix) ? 2 : 1;
|
|
22254
|
+
if (!($.index >= this.quill.getLength() - Q)) {
|
|
22255
|
+
var J = {}, nt = 0, ot = this.quill.getLine($.index), dt = l(ot, 1), pt = dt[0];
|
|
22256
|
+
if (V.offset >= pt.length() - 1) {
|
|
22254
22257
|
var bt = this.quill.getLine($.index + 1), Tt = l(bt, 1), le = Tt[0];
|
|
22255
22258
|
if (le) {
|
|
22256
|
-
var
|
|
22257
|
-
|
|
22259
|
+
var zt = pt.formats(), st = this.quill.getFormat($.index, 1);
|
|
22260
|
+
J = _.default.attributes.diff(zt, st) || {}, nt = le.length();
|
|
22258
22261
|
}
|
|
22259
22262
|
}
|
|
22260
|
-
this.quill.deleteText($.index,
|
|
22263
|
+
this.quill.deleteText($.index, Q, A.default.sources.USER), Object.keys(J).length > 0 && this.quill.formatLine($.index + nt - 1, Q, J, A.default.sources.USER);
|
|
22261
22264
|
}
|
|
22262
22265
|
}
|
|
22263
22266
|
function k($) {
|
|
22264
|
-
var V = this.quill.getLines($),
|
|
22267
|
+
var V = this.quill.getLines($), Q = {};
|
|
22265
22268
|
if (V.length > 1) {
|
|
22266
|
-
var
|
|
22267
|
-
|
|
22269
|
+
var J = V[0].formats(), nt = V[V.length - 1].formats();
|
|
22270
|
+
Q = _.default.attributes.diff(nt, J) || {};
|
|
22268
22271
|
}
|
|
22269
|
-
this.quill.deleteText($, A.default.sources.USER), Object.keys(
|
|
22272
|
+
this.quill.deleteText($, A.default.sources.USER), Object.keys(Q).length > 0 && this.quill.formatLine($.index, 1, Q, A.default.sources.USER), this.quill.setSelection($.index, A.default.sources.SILENT), this.quill.focus();
|
|
22270
22273
|
}
|
|
22271
22274
|
function j($, V) {
|
|
22272
|
-
var
|
|
22275
|
+
var Q = this;
|
|
22273
22276
|
$.length > 0 && this.quill.scroll.deleteAt($.index, $.length);
|
|
22274
|
-
var
|
|
22277
|
+
var J = Object.keys(V.format).reduce(function(nt, ot) {
|
|
22275
22278
|
return T.default.query(ot, T.default.Scope.BLOCK) && !Array.isArray(V.format[ot]) && (nt[ot] = V.format[ot]), nt;
|
|
22276
22279
|
}, {});
|
|
22277
22280
|
this.quill.insertText($.index, `
|
|
22278
|
-
`,
|
|
22279
|
-
|
|
22281
|
+
`, J, A.default.sources.USER), this.quill.setSelection($.index + 1, A.default.sources.SILENT), this.quill.focus(), Object.keys(V.format).forEach(function(nt) {
|
|
22282
|
+
J[nt] == null && (Array.isArray(V.format[nt]) || nt !== "link" && Q.quill.format(nt, V.format[nt], A.default.sources.USER));
|
|
22280
22283
|
});
|
|
22281
22284
|
}
|
|
22282
22285
|
function G($) {
|
|
@@ -22284,13 +22287,13 @@ var ey = { exports: {} };
|
|
|
22284
22287
|
key: z.keys.TAB,
|
|
22285
22288
|
shiftKey: !$,
|
|
22286
22289
|
format: { "code-block": !0 },
|
|
22287
|
-
handler: function(
|
|
22288
|
-
var
|
|
22290
|
+
handler: function(Q) {
|
|
22291
|
+
var J = T.default.query("code-block"), nt = Q.index, ot = Q.length, dt = this.quill.scroll.descendant(J, nt), pt = l(dt, 2), bt = pt[0], Tt = pt[1];
|
|
22289
22292
|
if (bt != null) {
|
|
22290
|
-
var le = this.quill.getIndex(bt),
|
|
22293
|
+
var le = this.quill.getIndex(bt), zt = bt.newlineIndex(Tt, !0) + 1, st = bt.newlineIndex(le + Tt + ot), lt = bt.domNode.textContent.slice(zt, st).split(`
|
|
22291
22294
|
`);
|
|
22292
|
-
Tt = 0, lt.forEach(function(
|
|
22293
|
-
$ ? (bt.insertAt(
|
|
22295
|
+
Tt = 0, lt.forEach(function(vt, gt) {
|
|
22296
|
+
$ ? (bt.insertAt(zt + Tt, J.TAB), Tt += J.TAB.length, gt === 0 ? nt += J.TAB.length : ot += J.TAB.length) : vt.startsWith(J.TAB) && (bt.deleteAt(zt + Tt, J.TAB.length), Tt -= J.TAB.length, gt === 0 ? nt -= J.TAB.length : ot -= J.TAB.length), Tt += vt.length + 1;
|
|
22294
22297
|
}), this.quill.update(A.default.sources.USER), this.quill.setSelection(nt, ot, A.default.sources.SILENT);
|
|
22295
22298
|
}
|
|
22296
22299
|
}
|
|
@@ -22300,8 +22303,8 @@ var ey = { exports: {} };
|
|
|
22300
22303
|
return {
|
|
22301
22304
|
key: $[0].toUpperCase(),
|
|
22302
22305
|
shortKey: !0,
|
|
22303
|
-
handler: function(
|
|
22304
|
-
this.quill.format($, !
|
|
22306
|
+
handler: function(Q, J) {
|
|
22307
|
+
this.quill.format($, !J.format[$], A.default.sources.USER);
|
|
22305
22308
|
}
|
|
22306
22309
|
};
|
|
22307
22310
|
}
|
|
@@ -22315,9 +22318,9 @@ var ey = { exports: {} };
|
|
|
22315
22318
|
$.key = $.key.toUpperCase().charCodeAt(0);
|
|
22316
22319
|
else
|
|
22317
22320
|
return null;
|
|
22318
|
-
return $.shortKey && ($[
|
|
22321
|
+
return $.shortKey && ($[Z] = $.shortKey, delete $.shortKey), $;
|
|
22319
22322
|
}
|
|
22320
|
-
n.default = z, n.SHORTKEY =
|
|
22323
|
+
n.default = z, n.SHORTKEY = Z;
|
|
22321
22324
|
},
|
|
22322
22325
|
/* 24 */
|
|
22323
22326
|
/***/
|
|
@@ -22811,8 +22814,8 @@ var ey = { exports: {} };
|
|
|
22811
22814
|
value: !0
|
|
22812
22815
|
});
|
|
22813
22816
|
var a = i(0), l = q(a), u = i(5), f = q(u), h = i(4), d = q(h), p = i(16), c = q(p), v = i(25), m = q(v), y = i(24), b = q(y), _ = i(35), w = q(_), T = i(6), x = q(T), A = i(22), I = q(A), S = i(7), O = q(S), L = i(55), R = q(L), C = i(42), P = q(C), M = i(23), F = q(M);
|
|
22814
|
-
function q(
|
|
22815
|
-
return
|
|
22817
|
+
function q(Z) {
|
|
22818
|
+
return Z && Z.__esModule ? Z : { default: Z };
|
|
22816
22819
|
}
|
|
22817
22820
|
f.default.register({
|
|
22818
22821
|
"blots/block": d.default,
|
|
@@ -23524,8 +23527,8 @@ var ey = { exports: {} };
|
|
|
23524
23527
|
} else {
|
|
23525
23528
|
if ("value" in $)
|
|
23526
23529
|
return $.value;
|
|
23527
|
-
var
|
|
23528
|
-
return
|
|
23530
|
+
var Q = $.get;
|
|
23531
|
+
return Q === void 0 ? void 0 : Q.call(X);
|
|
23529
23532
|
}
|
|
23530
23533
|
}, u = i(3), f = L(u), h = i(2), d = L(h), p = i(8), c = L(p), v = i(23), m = L(v), y = i(34), b = L(y), _ = i(59), w = L(_), T = i(60), x = L(T), A = i(28), I = L(A), S = i(61), O = L(S);
|
|
23531
23534
|
function L(j) {
|
|
@@ -23545,15 +23548,15 @@ var ey = { exports: {} };
|
|
|
23545
23548
|
throw new TypeError("Super expression must either be null or a function, not " + typeof G);
|
|
23546
23549
|
j.prototype = Object.create(G && G.prototype, { constructor: { value: j, enumerable: !1, writable: !0, configurable: !0 } }), G && (Object.setPrototypeOf ? Object.setPrototypeOf(j, G) : j.__proto__ = G);
|
|
23547
23550
|
}
|
|
23548
|
-
var M = [!1, "center", "right", "justify"], F = ["#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"], q = [!1, "serif", "monospace"],
|
|
23551
|
+
var M = [!1, "center", "right", "justify"], F = ["#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"], q = [!1, "serif", "monospace"], Z = ["1", "2", "3", !1], z = ["small", !1, "large", "huge"], rt = function(j) {
|
|
23549
23552
|
P(G, j);
|
|
23550
23553
|
function G(K, X) {
|
|
23551
23554
|
R(this, G);
|
|
23552
|
-
var $ = C(this, (G.__proto__ || Object.getPrototypeOf(G)).call(this, K, X)), V = function J
|
|
23555
|
+
var $ = C(this, (G.__proto__ || Object.getPrototypeOf(G)).call(this, K, X)), V = function Q(J) {
|
|
23553
23556
|
if (!document.body.contains(K.root))
|
|
23554
|
-
return document.body.removeEventListener("click",
|
|
23555
|
-
$.tooltip != null && !$.tooltip.root.contains(
|
|
23556
|
-
nt.container.contains(
|
|
23557
|
+
return document.body.removeEventListener("click", Q);
|
|
23558
|
+
$.tooltip != null && !$.tooltip.root.contains(J.target) && document.activeElement !== $.tooltip.textbox && !$.quill.hasFocus() && $.tooltip.hide(), $.pickers != null && $.pickers.forEach(function(nt) {
|
|
23559
|
+
nt.container.contains(J.target) || nt.close();
|
|
23557
23560
|
});
|
|
23558
23561
|
};
|
|
23559
23562
|
return K.emitter.listenDOM("click", document.body, V), $;
|
|
@@ -23568,16 +23571,16 @@ var ey = { exports: {} };
|
|
|
23568
23571
|
key: "buildButtons",
|
|
23569
23572
|
value: function(X, $) {
|
|
23570
23573
|
X.forEach(function(V) {
|
|
23571
|
-
var
|
|
23572
|
-
|
|
23573
|
-
if (
|
|
23574
|
-
if (
|
|
23575
|
-
V.innerHTML = $[
|
|
23576
|
-
else if (typeof $[
|
|
23577
|
-
V.innerHTML = $[
|
|
23574
|
+
var Q = V.getAttribute("class") || "";
|
|
23575
|
+
Q.split(/\s+/).forEach(function(J) {
|
|
23576
|
+
if (J.startsWith("ql-") && (J = J.slice(3), $[J] != null))
|
|
23577
|
+
if (J === "direction")
|
|
23578
|
+
V.innerHTML = $[J][""] + $[J].rtl;
|
|
23579
|
+
else if (typeof $[J] == "string")
|
|
23580
|
+
V.innerHTML = $[J];
|
|
23578
23581
|
else {
|
|
23579
23582
|
var nt = V.value || "";
|
|
23580
|
-
nt != null && $[
|
|
23583
|
+
nt != null && $[J][nt] && (V.innerHTML = $[J][nt]);
|
|
23581
23584
|
}
|
|
23582
23585
|
});
|
|
23583
23586
|
});
|
|
@@ -23586,21 +23589,21 @@ var ey = { exports: {} };
|
|
|
23586
23589
|
key: "buildPickers",
|
|
23587
23590
|
value: function(X, $) {
|
|
23588
23591
|
var V = this;
|
|
23589
|
-
this.pickers = X.map(function(
|
|
23590
|
-
if (
|
|
23591
|
-
return
|
|
23592
|
-
if (
|
|
23593
|
-
var nt =
|
|
23594
|
-
return
|
|
23592
|
+
this.pickers = X.map(function(J) {
|
|
23593
|
+
if (J.classList.contains("ql-align"))
|
|
23594
|
+
return J.querySelector("option") == null && k(J, M), new x.default(J, $.align);
|
|
23595
|
+
if (J.classList.contains("ql-background") || J.classList.contains("ql-color")) {
|
|
23596
|
+
var nt = J.classList.contains("ql-background") ? "background" : "color";
|
|
23597
|
+
return J.querySelector("option") == null && k(J, F, nt === "background" ? "#ffffff" : "#000000"), new w.default(J, $[nt]);
|
|
23595
23598
|
} else
|
|
23596
|
-
return
|
|
23599
|
+
return J.querySelector("option") == null && (J.classList.contains("ql-font") ? k(J, q) : J.classList.contains("ql-header") ? k(J, Z) : J.classList.contains("ql-size") && k(J, z)), new I.default(J);
|
|
23597
23600
|
});
|
|
23598
|
-
var
|
|
23601
|
+
var Q = function() {
|
|
23599
23602
|
V.pickers.forEach(function(nt) {
|
|
23600
23603
|
nt.update();
|
|
23601
23604
|
});
|
|
23602
23605
|
};
|
|
23603
|
-
this.quill.on(c.default.events.EDITOR_CHANGE,
|
|
23606
|
+
this.quill.on(c.default.events.EDITOR_CHANGE, Q);
|
|
23604
23607
|
}
|
|
23605
23608
|
}]), G;
|
|
23606
23609
|
}(b.default);
|
|
@@ -23679,8 +23682,8 @@ var ey = { exports: {} };
|
|
|
23679
23682
|
break;
|
|
23680
23683
|
var V = this.quill.getSelection(!0);
|
|
23681
23684
|
if (V != null) {
|
|
23682
|
-
var
|
|
23683
|
-
this.quill.insertEmbed(
|
|
23685
|
+
var Q = V.index + V.length;
|
|
23686
|
+
this.quill.insertEmbed(Q, this.root.getAttribute("data-mode"), X, c.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(Q + 1, " ", c.default.sources.USER), this.quill.setSelection(Q + 2, c.default.sources.USER);
|
|
23684
23687
|
}
|
|
23685
23688
|
break;
|
|
23686
23689
|
}
|
|
@@ -24127,8 +24130,8 @@ var ey = { exports: {} };
|
|
|
24127
24130
|
return [[i, x], [a, A]];
|
|
24128
24131
|
var R = v(x, A);
|
|
24129
24132
|
if (R) {
|
|
24130
|
-
var C = R[0], P = R[1], M = R[2], F = R[3], q = R[4],
|
|
24131
|
-
return
|
|
24133
|
+
var C = R[0], P = R[1], M = R[2], F = R[3], q = R[4], Z = u(C, M), z = u(P, F);
|
|
24134
|
+
return Z.concat([[l, q]], z);
|
|
24132
24135
|
}
|
|
24133
24136
|
return h(x, A);
|
|
24134
24137
|
}
|
|
@@ -24136,8 +24139,8 @@ var ey = { exports: {} };
|
|
|
24136
24139
|
for (var I = x.length, S = A.length, O = Math.ceil((I + S) / 2), L = O, R = 2 * O, C = new Array(R), P = new Array(R), M = 0; M < R; M++)
|
|
24137
24140
|
C[M] = -1, P[M] = -1;
|
|
24138
24141
|
C[L + 1] = 0, P[L + 1] = 0;
|
|
24139
|
-
for (var F = I - S, q = F % 2 != 0,
|
|
24140
|
-
for (var k = -D +
|
|
24142
|
+
for (var F = I - S, q = F % 2 != 0, Z = 0, z = 0, rt = 0, W = 0, D = 0; D < O; D++) {
|
|
24143
|
+
for (var k = -D + Z; k <= D - z; k += 2) {
|
|
24141
24144
|
var j = L + k, G;
|
|
24142
24145
|
k == -D || k != D && C[j - 1] < C[j + 1] ? G = C[j + 1] : G = C[j - 1] + 1;
|
|
24143
24146
|
for (var K = G - k; G < I && K < S && x.charAt(G) == A.charAt(K); )
|
|
@@ -24145,7 +24148,7 @@ var ey = { exports: {} };
|
|
|
24145
24148
|
if (C[j] = G, G > I)
|
|
24146
24149
|
z += 2;
|
|
24147
24150
|
else if (K > S)
|
|
24148
|
-
|
|
24151
|
+
Z += 2;
|
|
24149
24152
|
else if (q) {
|
|
24150
24153
|
var X = L + F - k;
|
|
24151
24154
|
if (X >= 0 && X < R && P[X] != -1) {
|
|
@@ -24158,11 +24161,11 @@ var ey = { exports: {} };
|
|
|
24158
24161
|
for (var V = -D + rt; V <= D - W; V += 2) {
|
|
24159
24162
|
var X = L + V, $;
|
|
24160
24163
|
V == -D || V != D && P[X - 1] < P[X + 1] ? $ = P[X + 1] : $ = P[X - 1] + 1;
|
|
24161
|
-
for (var
|
|
24162
|
-
$++,
|
|
24164
|
+
for (var Q = $ - V; $ < I && Q < S && x.charAt(I - $ - 1) == A.charAt(S - Q - 1); )
|
|
24165
|
+
$++, Q++;
|
|
24163
24166
|
if (P[X] = $, $ > I)
|
|
24164
24167
|
W += 2;
|
|
24165
|
-
else if (
|
|
24168
|
+
else if (Q > S)
|
|
24166
24169
|
rt += 2;
|
|
24167
24170
|
else if (!q) {
|
|
24168
24171
|
var j = L + F - V;
|
|
@@ -24203,11 +24206,11 @@ var ey = { exports: {} };
|
|
|
24203
24206
|
var V = p(
|
|
24204
24207
|
z.substring(W),
|
|
24205
24208
|
rt.substring(k)
|
|
24206
|
-
),
|
|
24209
|
+
), Q = c(
|
|
24207
24210
|
z.substring(0, W),
|
|
24208
24211
|
rt.substring(0, k)
|
|
24209
24212
|
);
|
|
24210
|
-
j.length <
|
|
24213
|
+
j.length < Q + V && (j = rt.substring(k - Q, k) + rt.substring(k, k + V), G = z.substring(0, W - Q), K = z.substring(W + V), X = rt.substring(0, k - Q), $ = rt.substring(k + V));
|
|
24211
24214
|
}
|
|
24212
24215
|
return j.length * 2 >= z.length ? [
|
|
24213
24216
|
G,
|
|
@@ -24231,8 +24234,8 @@ var ey = { exports: {} };
|
|
|
24231
24234
|
R ? L ? C = L[4].length > R[4].length ? L : R : C = R : C = L;
|
|
24232
24235
|
var P, M, F, q;
|
|
24233
24236
|
x.length > A.length ? (P = C[0], M = C[1], F = C[2], q = C[3]) : (F = C[0], q = C[1], P = C[2], M = C[3]);
|
|
24234
|
-
var
|
|
24235
|
-
return [P, M, F, q,
|
|
24237
|
+
var Z = C[4];
|
|
24238
|
+
return [P, M, F, q, Z];
|
|
24236
24239
|
}
|
|
24237
24240
|
function m(x) {
|
|
24238
24241
|
x.push([l, ""]);
|
|
@@ -24471,10 +24474,10 @@ var ey = { exports: {} };
|
|
|
24471
24474
|
} : function(st) {
|
|
24472
24475
|
return st && typeof Symbol == "function" && st.constructor === Symbol && st !== Symbol.prototype ? "symbol" : typeof st;
|
|
24473
24476
|
}, l = function() {
|
|
24474
|
-
function st(lt,
|
|
24475
|
-
var
|
|
24477
|
+
function st(lt, vt) {
|
|
24478
|
+
var gt = [], ct = !0, It = !1, kt = void 0;
|
|
24476
24479
|
try {
|
|
24477
|
-
for (var Pt = lt[Symbol.iterator](), qe; !(ct = (qe = Pt.next()).done) && (
|
|
24480
|
+
for (var Pt = lt[Symbol.iterator](), qe; !(ct = (qe = Pt.next()).done) && (gt.push(qe.value), !(vt && gt.length === vt)); ct = !0)
|
|
24478
24481
|
;
|
|
24479
24482
|
} catch (Be) {
|
|
24480
24483
|
It = !0, kt = Be;
|
|
@@ -24486,31 +24489,31 @@ var ey = { exports: {} };
|
|
|
24486
24489
|
throw kt;
|
|
24487
24490
|
}
|
|
24488
24491
|
}
|
|
24489
|
-
return
|
|
24492
|
+
return gt;
|
|
24490
24493
|
}
|
|
24491
|
-
return function(lt,
|
|
24494
|
+
return function(lt, vt) {
|
|
24492
24495
|
if (Array.isArray(lt))
|
|
24493
24496
|
return lt;
|
|
24494
24497
|
if (Symbol.iterator in Object(lt))
|
|
24495
|
-
return st(lt,
|
|
24498
|
+
return st(lt, vt);
|
|
24496
24499
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
24497
24500
|
};
|
|
24498
24501
|
}(), u = function() {
|
|
24499
|
-
function st(lt,
|
|
24500
|
-
for (var
|
|
24501
|
-
var ct =
|
|
24502
|
+
function st(lt, vt) {
|
|
24503
|
+
for (var gt = 0; gt < vt.length; gt++) {
|
|
24504
|
+
var ct = vt[gt];
|
|
24502
24505
|
ct.enumerable = ct.enumerable || !1, ct.configurable = !0, "value" in ct && (ct.writable = !0), Object.defineProperty(lt, ct.key, ct);
|
|
24503
24506
|
}
|
|
24504
24507
|
}
|
|
24505
|
-
return function(lt,
|
|
24506
|
-
return
|
|
24508
|
+
return function(lt, vt, gt) {
|
|
24509
|
+
return vt && st(lt.prototype, vt), gt && st(lt, gt), lt;
|
|
24507
24510
|
};
|
|
24508
24511
|
}(), f = i(3), h = P(f), d = i(2), p = P(d), c = i(0), v = P(c), m = i(5), y = P(m), b = i(10), _ = P(b), w = i(9), T = P(w), x = i(36), A = i(37), I = i(13), S = P(I), O = i(26), L = i(38), R = i(39), C = i(40);
|
|
24509
24512
|
function P(st) {
|
|
24510
24513
|
return st && st.__esModule ? st : { default: st };
|
|
24511
24514
|
}
|
|
24512
|
-
function M(st, lt,
|
|
24513
|
-
return lt in st ? Object.defineProperty(st, lt, { value:
|
|
24515
|
+
function M(st, lt, vt) {
|
|
24516
|
+
return lt in st ? Object.defineProperty(st, lt, { value: vt, enumerable: !0, configurable: !0, writable: !0 }) : st[lt] = vt, st;
|
|
24514
24517
|
}
|
|
24515
24518
|
function F(st, lt) {
|
|
24516
24519
|
if (!(st instanceof lt))
|
|
@@ -24521,35 +24524,35 @@ var ey = { exports: {} };
|
|
|
24521
24524
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
24522
24525
|
return lt && (typeof lt == "object" || typeof lt == "function") ? lt : st;
|
|
24523
24526
|
}
|
|
24524
|
-
function
|
|
24527
|
+
function Z(st, lt) {
|
|
24525
24528
|
if (typeof lt != "function" && lt !== null)
|
|
24526
24529
|
throw new TypeError("Super expression must either be null or a function, not " + typeof lt);
|
|
24527
24530
|
st.prototype = Object.create(lt && lt.prototype, { constructor: { value: st, enumerable: !1, writable: !0, configurable: !0 } }), lt && (Object.setPrototypeOf ? Object.setPrototypeOf(st, lt) : st.__proto__ = lt);
|
|
24528
24531
|
}
|
|
24529
|
-
var z = (0, _.default)("quill:clipboard"), rt = "__ql-matcher", W = [[Node.TEXT_NODE,
|
|
24532
|
+
var z = (0, _.default)("quill:clipboard"), rt = "__ql-matcher", W = [[Node.TEXT_NODE, zt], [Node.TEXT_NODE, bt], ["br", ot], [Node.ELEMENT_NODE, bt], [Node.ELEMENT_NODE, nt], [Node.ELEMENT_NODE, Tt], [Node.ELEMENT_NODE, J], [Node.ELEMENT_NODE, le], ["li", pt], ["b", Q.bind(Q, "bold")], ["i", Q.bind(Q, "italic")], ["style", dt]], D = [x.AlignAttribute, L.DirectionAttribute].reduce(function(st, lt) {
|
|
24530
24533
|
return st[lt.keyName] = lt, st;
|
|
24531
24534
|
}, {}), k = [x.AlignStyle, A.BackgroundStyle, O.ColorStyle, L.DirectionStyle, R.FontStyle, C.SizeStyle].reduce(function(st, lt) {
|
|
24532
24535
|
return st[lt.keyName] = lt, st;
|
|
24533
24536
|
}, {}), j = function(st) {
|
|
24534
|
-
|
|
24535
|
-
function lt(
|
|
24537
|
+
Z(lt, st);
|
|
24538
|
+
function lt(vt, gt) {
|
|
24536
24539
|
F(this, lt);
|
|
24537
|
-
var ct = q(this, (lt.__proto__ || Object.getPrototypeOf(lt)).call(this,
|
|
24540
|
+
var ct = q(this, (lt.__proto__ || Object.getPrototypeOf(lt)).call(this, vt, gt));
|
|
24538
24541
|
return ct.quill.root.addEventListener("paste", ct.onPaste.bind(ct)), ct.container = ct.quill.addContainer("ql-clipboard"), ct.container.setAttribute("contenteditable", !0), ct.container.setAttribute("tabindex", -1), ct.matchers = [], W.concat(ct.options.matchers).forEach(function(It) {
|
|
24539
24542
|
var kt = l(It, 2), Pt = kt[0], qe = kt[1];
|
|
24540
|
-
!
|
|
24543
|
+
!gt.matchVisual && qe === Tt || ct.addMatcher(Pt, qe);
|
|
24541
24544
|
}), ct;
|
|
24542
24545
|
}
|
|
24543
24546
|
return u(lt, [{
|
|
24544
24547
|
key: "addMatcher",
|
|
24545
|
-
value: function(
|
|
24546
|
-
this.matchers.push([
|
|
24548
|
+
value: function(gt, ct) {
|
|
24549
|
+
this.matchers.push([gt, ct]);
|
|
24547
24550
|
}
|
|
24548
24551
|
}, {
|
|
24549
24552
|
key: "convert",
|
|
24550
|
-
value: function(
|
|
24551
|
-
if (typeof
|
|
24552
|
-
return this.container.innerHTML =
|
|
24553
|
+
value: function(gt) {
|
|
24554
|
+
if (typeof gt == "string")
|
|
24555
|
+
return this.container.innerHTML = gt.replace(/\>\r?\n +\</g, "><"), this.convert();
|
|
24553
24556
|
var ct = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
24554
24557
|
if (ct[S.default.blotName]) {
|
|
24555
24558
|
var It = this.container.innerText;
|
|
@@ -24561,20 +24564,20 @@ var ey = { exports: {} };
|
|
|
24561
24564
|
}
|
|
24562
24565
|
}, {
|
|
24563
24566
|
key: "dangerouslyPasteHTML",
|
|
24564
|
-
value: function(
|
|
24567
|
+
value: function(gt, ct) {
|
|
24565
24568
|
var It = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : y.default.sources.API;
|
|
24566
|
-
if (typeof
|
|
24567
|
-
this.quill.setContents(this.convert(
|
|
24569
|
+
if (typeof gt == "string")
|
|
24570
|
+
this.quill.setContents(this.convert(gt), ct), this.quill.setSelection(0, y.default.sources.SILENT);
|
|
24568
24571
|
else {
|
|
24569
24572
|
var kt = this.convert(ct);
|
|
24570
|
-
this.quill.updateContents(new p.default().retain(
|
|
24573
|
+
this.quill.updateContents(new p.default().retain(gt).concat(kt), It), this.quill.setSelection(gt + kt.length(), y.default.sources.SILENT);
|
|
24571
24574
|
}
|
|
24572
24575
|
}
|
|
24573
24576
|
}, {
|
|
24574
24577
|
key: "onPaste",
|
|
24575
|
-
value: function(
|
|
24578
|
+
value: function(gt) {
|
|
24576
24579
|
var ct = this;
|
|
24577
|
-
if (!(
|
|
24580
|
+
if (!(gt.defaultPrevented || !this.quill.isEnabled())) {
|
|
24578
24581
|
var It = this.quill.getSelection(), kt = new p.default().retain(It.index), Pt = this.quill.scrollingContainer.scrollTop;
|
|
24579
24582
|
this.container.focus(), this.quill.selection.update(y.default.sources.SILENT), setTimeout(function() {
|
|
24580
24583
|
kt = kt.concat(ct.convert()).delete(It.length), ct.quill.updateContents(kt, y.default.sources.USER), ct.quill.setSelection(kt.length() - It.length, y.default.sources.SILENT), ct.quill.scrollingContainer.scrollTop = Pt, ct.quill.focus();
|
|
@@ -24584,7 +24587,7 @@ var ey = { exports: {} };
|
|
|
24584
24587
|
}, {
|
|
24585
24588
|
key: "prepareMatching",
|
|
24586
24589
|
value: function() {
|
|
24587
|
-
var
|
|
24590
|
+
var gt = this, ct = [], It = [];
|
|
24588
24591
|
return this.matchers.forEach(function(kt) {
|
|
24589
24592
|
var Pt = l(kt, 2), qe = Pt[0], Be = Pt[1];
|
|
24590
24593
|
switch (qe) {
|
|
@@ -24595,7 +24598,7 @@ var ey = { exports: {} };
|
|
|
24595
24598
|
ct.push(Be);
|
|
24596
24599
|
break;
|
|
24597
24600
|
default:
|
|
24598
|
-
[].forEach.call(
|
|
24601
|
+
[].forEach.call(gt.container.querySelectorAll(qe), function(Yt) {
|
|
24599
24602
|
Yt[rt] = Yt[rt] || [], Yt[rt].push(Be);
|
|
24600
24603
|
});
|
|
24601
24604
|
break;
|
|
@@ -24608,11 +24611,11 @@ var ey = { exports: {} };
|
|
|
24608
24611
|
matchers: [],
|
|
24609
24612
|
matchVisual: !0
|
|
24610
24613
|
};
|
|
24611
|
-
function G(st, lt,
|
|
24612
|
-
return (typeof lt > "u" ? "undefined" : a(lt)) === "object" ? Object.keys(lt).reduce(function(
|
|
24613
|
-
return G(
|
|
24614
|
-
}, st) : st.reduce(function(
|
|
24615
|
-
return ct.attributes && ct.attributes[lt] ?
|
|
24614
|
+
function G(st, lt, vt) {
|
|
24615
|
+
return (typeof lt > "u" ? "undefined" : a(lt)) === "object" ? Object.keys(lt).reduce(function(gt, ct) {
|
|
24616
|
+
return G(gt, ct, lt[ct]);
|
|
24617
|
+
}, st) : st.reduce(function(gt, ct) {
|
|
24618
|
+
return ct.attributes && ct.attributes[lt] ? gt.push(ct) : gt.insert(ct.insert, (0, h.default)({}, M({}, lt, vt), ct.attributes));
|
|
24616
24619
|
}, new p.default());
|
|
24617
24620
|
}
|
|
24618
24621
|
function K(st) {
|
|
@@ -24622,13 +24625,13 @@ var ey = { exports: {} };
|
|
|
24622
24625
|
return st[lt] || (st[lt] = window.getComputedStyle(st));
|
|
24623
24626
|
}
|
|
24624
24627
|
function X(st, lt) {
|
|
24625
|
-
for (var
|
|
24626
|
-
var ct = st.ops[
|
|
24628
|
+
for (var vt = "", gt = st.ops.length - 1; gt >= 0 && vt.length < lt.length; --gt) {
|
|
24629
|
+
var ct = st.ops[gt];
|
|
24627
24630
|
if (typeof ct.insert != "string")
|
|
24628
24631
|
break;
|
|
24629
|
-
|
|
24632
|
+
vt = ct.insert + vt;
|
|
24630
24633
|
}
|
|
24631
|
-
return
|
|
24634
|
+
return vt.slice(-1 * lt.length) === lt;
|
|
24632
24635
|
}
|
|
24633
24636
|
function $(st) {
|
|
24634
24637
|
if (st.childNodes.length === 0)
|
|
@@ -24636,37 +24639,37 @@ var ey = { exports: {} };
|
|
|
24636
24639
|
var lt = K(st);
|
|
24637
24640
|
return ["block", "list-item"].indexOf(lt.display) > -1;
|
|
24638
24641
|
}
|
|
24639
|
-
function V(st, lt,
|
|
24640
|
-
return st.nodeType === st.TEXT_NODE ?
|
|
24641
|
-
return ct(st,
|
|
24642
|
-
}, new p.default()) : st.nodeType === st.ELEMENT_NODE ? [].reduce.call(st.childNodes || [], function(
|
|
24643
|
-
var It = V(ct, lt,
|
|
24642
|
+
function V(st, lt, vt) {
|
|
24643
|
+
return st.nodeType === st.TEXT_NODE ? vt.reduce(function(gt, ct) {
|
|
24644
|
+
return ct(st, gt);
|
|
24645
|
+
}, new p.default()) : st.nodeType === st.ELEMENT_NODE ? [].reduce.call(st.childNodes || [], function(gt, ct) {
|
|
24646
|
+
var It = V(ct, lt, vt);
|
|
24644
24647
|
return ct.nodeType === st.ELEMENT_NODE && (It = lt.reduce(function(kt, Pt) {
|
|
24645
24648
|
return Pt(ct, kt);
|
|
24646
24649
|
}, It), It = (ct[rt] || []).reduce(function(kt, Pt) {
|
|
24647
24650
|
return Pt(ct, kt);
|
|
24648
|
-
}, It)),
|
|
24651
|
+
}, It)), gt.concat(It);
|
|
24649
24652
|
}, new p.default()) : new p.default();
|
|
24650
24653
|
}
|
|
24651
|
-
function
|
|
24652
|
-
return G(
|
|
24654
|
+
function Q(st, lt, vt) {
|
|
24655
|
+
return G(vt, st, !0);
|
|
24653
24656
|
}
|
|
24654
|
-
function
|
|
24655
|
-
var
|
|
24656
|
-
return
|
|
24657
|
+
function J(st, lt) {
|
|
24658
|
+
var vt = v.default.Attributor.Attribute.keys(st), gt = v.default.Attributor.Class.keys(st), ct = v.default.Attributor.Style.keys(st), It = {};
|
|
24659
|
+
return vt.concat(gt).concat(ct).forEach(function(kt) {
|
|
24657
24660
|
var Pt = v.default.query(kt, v.default.Scope.ATTRIBUTE);
|
|
24658
24661
|
Pt != null && (It[Pt.attrName] = Pt.value(st), It[Pt.attrName]) || (Pt = D[kt], Pt != null && (Pt.attrName === kt || Pt.keyName === kt) && (It[Pt.attrName] = Pt.value(st) || void 0), Pt = k[kt], Pt != null && (Pt.attrName === kt || Pt.keyName === kt) && (Pt = k[kt], It[Pt.attrName] = Pt.value(st) || void 0));
|
|
24659
24662
|
}), Object.keys(It).length > 0 && (lt = G(lt, It)), lt;
|
|
24660
24663
|
}
|
|
24661
24664
|
function nt(st, lt) {
|
|
24662
|
-
var
|
|
24663
|
-
if (
|
|
24665
|
+
var vt = v.default.query(st);
|
|
24666
|
+
if (vt == null)
|
|
24664
24667
|
return lt;
|
|
24665
|
-
if (
|
|
24666
|
-
var
|
|
24667
|
-
ct != null && (vt
|
|
24668
|
+
if (vt.prototype instanceof v.default.Embed) {
|
|
24669
|
+
var gt = {}, ct = vt.value(st);
|
|
24670
|
+
ct != null && (gt[vt.blotName] = ct, lt = new p.default().insert(gt, vt.formats(st)));
|
|
24668
24671
|
} else
|
|
24669
|
-
typeof
|
|
24672
|
+
typeof vt.formats == "function" && (lt = G(lt, vt.blotName, vt.formats(st)));
|
|
24670
24673
|
return lt;
|
|
24671
24674
|
}
|
|
24672
24675
|
function ot(st, lt) {
|
|
@@ -24677,14 +24680,14 @@ var ey = { exports: {} };
|
|
|
24677
24680
|
function dt() {
|
|
24678
24681
|
return new p.default();
|
|
24679
24682
|
}
|
|
24680
|
-
function
|
|
24681
|
-
var
|
|
24682
|
-
if (
|
|
24683
|
+
function pt(st, lt) {
|
|
24684
|
+
var vt = v.default.query(st);
|
|
24685
|
+
if (vt == null || vt.blotName !== "list-item" || !X(lt, `
|
|
24683
24686
|
`))
|
|
24684
24687
|
return lt;
|
|
24685
|
-
for (var
|
|
24686
|
-
(v.default.query(ct) || {}).blotName === "list" && (
|
|
24687
|
-
return
|
|
24688
|
+
for (var gt = -1, ct = st.parentNode; !ct.classList.contains("ql-clipboard"); )
|
|
24689
|
+
(v.default.query(ct) || {}).blotName === "list" && (gt += 1), ct = ct.parentNode;
|
|
24690
|
+
return gt <= 0 ? lt : lt.compose(new p.default().retain(lt.length() - 1).retain(1, { indent: gt }));
|
|
24688
24691
|
}
|
|
24689
24692
|
function bt(st, lt) {
|
|
24690
24693
|
return X(lt, `
|
|
@@ -24695,31 +24698,31 @@ var ey = { exports: {} };
|
|
|
24695
24698
|
if ($(st) && st.nextElementSibling != null && !X(lt, `
|
|
24696
24699
|
|
|
24697
24700
|
`)) {
|
|
24698
|
-
var
|
|
24699
|
-
st.nextElementSibling.offsetTop > st.offsetTop +
|
|
24701
|
+
var vt = st.offsetHeight + parseFloat(K(st).marginTop) + parseFloat(K(st).marginBottom);
|
|
24702
|
+
st.nextElementSibling.offsetTop > st.offsetTop + vt * 1.5 && lt.insert(`
|
|
24700
24703
|
`);
|
|
24701
24704
|
}
|
|
24702
24705
|
return lt;
|
|
24703
24706
|
}
|
|
24704
24707
|
function le(st, lt) {
|
|
24705
|
-
var
|
|
24706
|
-
return
|
|
24708
|
+
var vt = {}, gt = st.style || {};
|
|
24709
|
+
return gt.fontStyle && K(st).fontStyle === "italic" && (vt.italic = !0), gt.fontWeight && (K(st).fontWeight.startsWith("bold") || parseInt(K(st).fontWeight) >= 700) && (vt.bold = !0), Object.keys(vt).length > 0 && (lt = G(lt, vt)), parseFloat(gt.textIndent || 0) > 0 && (lt = new p.default().insert(" ").concat(lt)), lt;
|
|
24707
24710
|
}
|
|
24708
|
-
function
|
|
24709
|
-
var
|
|
24711
|
+
function zt(st, lt) {
|
|
24712
|
+
var vt = st.data;
|
|
24710
24713
|
if (st.parentNode.tagName === "O:P")
|
|
24711
|
-
return lt.insert(
|
|
24712
|
-
if (
|
|
24714
|
+
return lt.insert(vt.trim());
|
|
24715
|
+
if (vt.trim().length === 0 && st.parentNode.classList.contains("ql-clipboard"))
|
|
24713
24716
|
return lt;
|
|
24714
24717
|
if (!K(st.parentNode).whiteSpace.startsWith("pre")) {
|
|
24715
|
-
var
|
|
24718
|
+
var gt = function(It, kt) {
|
|
24716
24719
|
return kt = kt.replace(/[^\u00a0]/g, ""), kt.length < 1 && It ? " " : kt;
|
|
24717
24720
|
};
|
|
24718
|
-
|
|
24721
|
+
vt = vt.replace(/\r\n/g, " ").replace(/\n/g, " "), vt = vt.replace(/\s\s+/g, gt.bind(gt, !0)), (st.previousSibling == null && $(st.parentNode) || st.previousSibling != null && $(st.previousSibling)) && (vt = vt.replace(/^\s+/, gt.bind(gt, !1))), (st.nextSibling == null && $(st.parentNode) || st.nextSibling != null && $(st.nextSibling)) && (vt = vt.replace(/\s+$/, gt.bind(gt, !1)));
|
|
24719
24722
|
}
|
|
24720
|
-
return lt.insert(
|
|
24723
|
+
return lt.insert(vt);
|
|
24721
24724
|
}
|
|
24722
|
-
n.default = j, n.matchAttributor =
|
|
24725
|
+
n.default = j, n.matchAttributor = J, n.matchBlot = nt, n.matchNewline = bt, n.matchSpacing = Tt, n.matchText = zt;
|
|
24723
24726
|
},
|
|
24724
24727
|
/* 56 */
|
|
24725
24728
|
/***/
|
|
@@ -24799,17 +24802,17 @@ var ey = { exports: {} };
|
|
|
24799
24802
|
}), n.addControls = n.default = void 0;
|
|
24800
24803
|
var a = function() {
|
|
24801
24804
|
function C(P, M) {
|
|
24802
|
-
var F = [], q = !0,
|
|
24805
|
+
var F = [], q = !0, Z = !1, z = void 0;
|
|
24803
24806
|
try {
|
|
24804
24807
|
for (var rt = P[Symbol.iterator](), W; !(q = (W = rt.next()).done) && (F.push(W.value), !(M && F.length === M)); q = !0)
|
|
24805
24808
|
;
|
|
24806
24809
|
} catch (D) {
|
|
24807
|
-
|
|
24810
|
+
Z = !0, z = D;
|
|
24808
24811
|
} finally {
|
|
24809
24812
|
try {
|
|
24810
24813
|
!q && rt.return && rt.return();
|
|
24811
24814
|
} finally {
|
|
24812
|
-
if (
|
|
24815
|
+
if (Z)
|
|
24813
24816
|
throw z;
|
|
24814
24817
|
}
|
|
24815
24818
|
}
|
|
@@ -24859,8 +24862,8 @@ var ey = { exports: {} };
|
|
|
24859
24862
|
T(this, P);
|
|
24860
24863
|
var q = x(this, (P.__proto__ || Object.getPrototypeOf(P)).call(this, M, F));
|
|
24861
24864
|
if (Array.isArray(q.options.container)) {
|
|
24862
|
-
var
|
|
24863
|
-
L(
|
|
24865
|
+
var Z = document.createElement("div");
|
|
24866
|
+
L(Z, q.options.container), M.container.parentNode.insertBefore(Z, M.container), q.container = Z;
|
|
24864
24867
|
} else
|
|
24865
24868
|
typeof q.options.container == "string" ? q.container = document.querySelector(q.options.container) : q.container = q.options.container;
|
|
24866
24869
|
if (!(q.container instanceof HTMLElement)) {
|
|
@@ -24886,17 +24889,17 @@ var ey = { exports: {} };
|
|
|
24886
24889
|
}, {
|
|
24887
24890
|
key: "attach",
|
|
24888
24891
|
value: function(F) {
|
|
24889
|
-
var q = this,
|
|
24892
|
+
var q = this, Z = [].find.call(F.classList, function(rt) {
|
|
24890
24893
|
return rt.indexOf("ql-") === 0;
|
|
24891
24894
|
});
|
|
24892
|
-
if (
|
|
24893
|
-
if (
|
|
24894
|
-
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[
|
|
24895
|
-
I.warn("ignoring attaching to disabled format",
|
|
24895
|
+
if (Z) {
|
|
24896
|
+
if (Z = Z.slice(3), F.tagName === "BUTTON" && F.setAttribute("type", "button"), this.handlers[Z] == null) {
|
|
24897
|
+
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Z] == null) {
|
|
24898
|
+
I.warn("ignoring attaching to disabled format", Z, F);
|
|
24896
24899
|
return;
|
|
24897
24900
|
}
|
|
24898
|
-
if (d.default.query(
|
|
24899
|
-
I.warn("ignoring attaching to nonexistent format",
|
|
24901
|
+
if (d.default.query(Z) == null) {
|
|
24902
|
+
I.warn("ignoring attaching to nonexistent format", Z, F);
|
|
24900
24903
|
return;
|
|
24901
24904
|
}
|
|
24902
24905
|
}
|
|
@@ -24912,24 +24915,24 @@ var ey = { exports: {} };
|
|
|
24912
24915
|
F.classList.contains("ql-active") ? W = !1 : W = F.value || !F.hasAttribute("value"), rt.preventDefault();
|
|
24913
24916
|
q.quill.focus();
|
|
24914
24917
|
var k = q.quill.selection.getRange(), j = a(k, 1), G = j[0];
|
|
24915
|
-
if (q.handlers[
|
|
24916
|
-
q.handlers[
|
|
24917
|
-
else if (d.default.query(
|
|
24918
|
-
if (W = prompt("Enter " +
|
|
24918
|
+
if (q.handlers[Z] != null)
|
|
24919
|
+
q.handlers[Z].call(q, W);
|
|
24920
|
+
else if (d.default.query(Z).prototype instanceof d.default.Embed) {
|
|
24921
|
+
if (W = prompt("Enter " + Z), !W)
|
|
24919
24922
|
return;
|
|
24920
|
-
q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({},
|
|
24923
|
+
q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({}, Z, W)), c.default.sources.USER);
|
|
24921
24924
|
} else
|
|
24922
|
-
q.quill.format(
|
|
24925
|
+
q.quill.format(Z, W, c.default.sources.USER);
|
|
24923
24926
|
q.update(G);
|
|
24924
|
-
}), this.controls.push([
|
|
24927
|
+
}), this.controls.push([Z, F]);
|
|
24925
24928
|
}
|
|
24926
24929
|
}
|
|
24927
24930
|
}, {
|
|
24928
24931
|
key: "update",
|
|
24929
24932
|
value: function(F) {
|
|
24930
24933
|
var q = F == null ? {} : this.quill.getFormat(F);
|
|
24931
|
-
this.controls.forEach(function(
|
|
24932
|
-
var z = a(
|
|
24934
|
+
this.controls.forEach(function(Z) {
|
|
24935
|
+
var z = a(Z, 2), rt = z[0], W = z[1];
|
|
24933
24936
|
if (W.tagName === "SELECT") {
|
|
24934
24937
|
var D = void 0;
|
|
24935
24938
|
if (F == null)
|
|
@@ -24964,8 +24967,8 @@ var ey = { exports: {} };
|
|
|
24964
24967
|
if (typeof q == "string")
|
|
24965
24968
|
O(F, q);
|
|
24966
24969
|
else {
|
|
24967
|
-
var
|
|
24968
|
-
Array.isArray(z) ? R(F,
|
|
24970
|
+
var Z = Object.keys(q)[0], z = q[Z];
|
|
24971
|
+
Array.isArray(z) ? R(F, Z, z) : O(F, Z, z);
|
|
24969
24972
|
}
|
|
24970
24973
|
}), C.appendChild(F);
|
|
24971
24974
|
});
|
|
@@ -24973,8 +24976,8 @@ var ey = { exports: {} };
|
|
|
24973
24976
|
function R(C, P, M) {
|
|
24974
24977
|
var F = document.createElement("select");
|
|
24975
24978
|
F.classList.add("ql-" + P), M.forEach(function(q) {
|
|
24976
|
-
var
|
|
24977
|
-
q !== !1 ?
|
|
24979
|
+
var Z = document.createElement("option");
|
|
24980
|
+
q !== !1 ? Z.setAttribute("value", q) : Z.setAttribute("selected", "selected"), F.appendChild(Z);
|
|
24978
24981
|
}), C.appendChild(F);
|
|
24979
24982
|
}
|
|
24980
24983
|
S.DEFAULTS = {
|
|
@@ -24998,8 +25001,8 @@ var ey = { exports: {} };
|
|
|
24998
25001
|
indent: function(P) {
|
|
24999
25002
|
var M = this.quill.getSelection(), F = this.quill.getFormat(M), q = parseInt(F.indent || 0);
|
|
25000
25003
|
if (P === "+1" || P === "-1") {
|
|
25001
|
-
var
|
|
25002
|
-
F.direction === "rtl" && (
|
|
25004
|
+
var Z = P === "+1" ? 1 : -1;
|
|
25005
|
+
F.direction === "rtl" && (Z *= -1), this.quill.format("indent", q + Z, c.default.sources.USER);
|
|
25003
25006
|
}
|
|
25004
25007
|
},
|
|
25005
25008
|
link: function(P) {
|
|
@@ -25215,18 +25218,18 @@ var ey = { exports: {} };
|
|
|
25215
25218
|
});
|
|
25216
25219
|
var a = function() {
|
|
25217
25220
|
function R(C, P) {
|
|
25218
|
-
var M = [], F = !0, q = !1,
|
|
25221
|
+
var M = [], F = !0, q = !1, Z = void 0;
|
|
25219
25222
|
try {
|
|
25220
25223
|
for (var z = C[Symbol.iterator](), rt; !(F = (rt = z.next()).done) && (M.push(rt.value), !(P && M.length === P)); F = !0)
|
|
25221
25224
|
;
|
|
25222
25225
|
} catch (W) {
|
|
25223
|
-
q = !0,
|
|
25226
|
+
q = !0, Z = W;
|
|
25224
25227
|
} finally {
|
|
25225
25228
|
try {
|
|
25226
25229
|
!F && z.return && z.return();
|
|
25227
25230
|
} finally {
|
|
25228
25231
|
if (q)
|
|
25229
|
-
throw
|
|
25232
|
+
throw Z;
|
|
25230
25233
|
}
|
|
25231
25234
|
}
|
|
25232
25235
|
return M;
|
|
@@ -25247,8 +25250,8 @@ var ey = { exports: {} };
|
|
|
25247
25250
|
} else {
|
|
25248
25251
|
if ("value" in F)
|
|
25249
25252
|
return F.value;
|
|
25250
|
-
var
|
|
25251
|
-
return
|
|
25253
|
+
var Z = F.get;
|
|
25254
|
+
return Z === void 0 ? void 0 : Z.call(M);
|
|
25252
25255
|
}
|
|
25253
25256
|
}, u = function() {
|
|
25254
25257
|
function R(C, P) {
|
|
@@ -25333,9 +25336,9 @@ var ey = { exports: {} };
|
|
|
25333
25336
|
M.restoreFocus(), M.quill.formatText(q, "link", !1, p.default.sources.USER), delete M.linkRange;
|
|
25334
25337
|
}
|
|
25335
25338
|
F.preventDefault(), M.hide();
|
|
25336
|
-
}), this.quill.on(p.default.events.SELECTION_CHANGE, function(F, q,
|
|
25339
|
+
}), this.quill.on(p.default.events.SELECTION_CHANGE, function(F, q, Z) {
|
|
25337
25340
|
if (F != null) {
|
|
25338
|
-
if (F.length === 0 &&
|
|
25341
|
+
if (F.length === 0 && Z === p.default.sources.USER) {
|
|
25339
25342
|
var z = M.quill.scroll.descendant(y.default, F.index), rt = a(z, 2), W = rt[0], D = rt[1];
|
|
25340
25343
|
if (W != null) {
|
|
25341
25344
|
M.linkRange = new b.Range(F.index - D, W.length());
|
|
@@ -25364,7 +25367,7 @@ var ey = { exports: {} };
|
|
|
25364
25367
|
Object.defineProperty(n, "__esModule", {
|
|
25365
25368
|
value: !0
|
|
25366
25369
|
});
|
|
25367
|
-
var a = i(29), l = ct(a), u = i(36), f = i(38), h = i(64), d = i(65), p = ct(d), c = i(66), v = ct(c), m = i(67), y = ct(m), b = i(37), _ = i(26), w = i(39), T = i(40), x = i(56), A = ct(x), I = i(68), S = ct(I), O = i(27), L = ct(O), R = i(69), C = ct(R), P = i(70), M = ct(P), F = i(71), q = ct(F),
|
|
25370
|
+
var a = i(29), l = ct(a), u = i(36), f = i(38), h = i(64), d = i(65), p = ct(d), c = i(66), v = ct(c), m = i(67), y = ct(m), b = i(37), _ = i(26), w = i(39), T = i(40), x = i(56), A = ct(x), I = i(68), S = ct(I), O = i(27), L = ct(O), R = i(69), C = ct(R), P = i(70), M = ct(P), F = i(71), q = ct(F), Z = i(72), z = ct(Z), rt = i(73), W = ct(rt), D = i(13), k = ct(D), j = i(74), G = ct(j), K = i(75), X = ct(K), $ = i(57), V = ct($), Q = i(41), J = ct(Q), nt = i(28), ot = ct(nt), dt = i(59), pt = ct(dt), bt = i(60), Tt = ct(bt), le = i(61), zt = ct(le), st = i(108), lt = ct(st), vt = i(62), gt = ct(vt);
|
|
25368
25371
|
function ct(It) {
|
|
25369
25372
|
return It && It.__esModule ? It : { default: It };
|
|
25370
25373
|
}
|
|
@@ -25408,12 +25411,12 @@ var ey = { exports: {} };
|
|
|
25408
25411
|
"modules/syntax": X.default,
|
|
25409
25412
|
"modules/toolbar": V.default,
|
|
25410
25413
|
"themes/bubble": lt.default,
|
|
25411
|
-
"themes/snow":
|
|
25412
|
-
"ui/icons":
|
|
25414
|
+
"themes/snow": gt.default,
|
|
25415
|
+
"ui/icons": J.default,
|
|
25413
25416
|
"ui/picker": ot.default,
|
|
25414
25417
|
"ui/icon-picker": Tt.default,
|
|
25415
|
-
"ui/color-picker":
|
|
25416
|
-
"ui/tooltip":
|
|
25418
|
+
"ui/color-picker": pt.default,
|
|
25419
|
+
"ui/tooltip": zt.default
|
|
25417
25420
|
}, !0), n.default = l.default;
|
|
25418
25421
|
},
|
|
25419
25422
|
/* 64 */
|
|
@@ -26491,11 +26494,11 @@ var ey = { exports: {} };
|
|
|
26491
26494
|
if (P === d.default.events.SELECTION_CHANGE)
|
|
26492
26495
|
if (M != null && M.length > 0 && q === d.default.sources.USER) {
|
|
26493
26496
|
C.show(), C.root.style.left = "0px", C.root.style.width = "", C.root.style.width = C.root.offsetWidth + "px";
|
|
26494
|
-
var
|
|
26495
|
-
if (
|
|
26497
|
+
var Z = C.quill.getLines(M.index, M.length);
|
|
26498
|
+
if (Z.length === 1)
|
|
26496
26499
|
C.position(C.quill.getBounds(M));
|
|
26497
26500
|
else {
|
|
26498
|
-
var z =
|
|
26501
|
+
var z = Z[Z.length - 1], rt = C.quill.getIndex(z), W = Math.min(z.length() - 1, M.index + M.length - rt), D = C.quill.getBounds(new v.Range(rt, W));
|
|
26499
26502
|
C.position(D);
|
|
26500
26503
|
}
|
|
26501
26504
|
} else
|
|
@@ -26549,7 +26552,7 @@ const Q4 = /* @__PURE__ */ Zn(Z4);
|
|
|
26549
26552
|
const NB = At.forwardRef((e, t) => {
|
|
26550
26553
|
const [r, n] = zn(!1);
|
|
26551
26554
|
console.log("allProps", e);
|
|
26552
|
-
const i =
|
|
26555
|
+
const i = Xt(null), a = Xt(null), l = Xt(null), u = Xt(null), f = Xt(16), h = Xt(null), {
|
|
26553
26556
|
uniqueId: d,
|
|
26554
26557
|
text: p,
|
|
26555
26558
|
disabled: c,
|
|
@@ -26579,7 +26582,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26579
26582
|
letterSpacing: F,
|
|
26580
26583
|
colorCorrection: q = {}
|
|
26581
26584
|
} = v, {
|
|
26582
|
-
temperatureFilter:
|
|
26585
|
+
temperatureFilter: Z,
|
|
26583
26586
|
sharpnessFilter: z,
|
|
26584
26587
|
hueFilter: rt,
|
|
26585
26588
|
blurFilter: W,
|
|
@@ -26647,10 +26650,10 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26647
26650
|
};
|
|
26648
26651
|
return At.useEffect(() => {
|
|
26649
26652
|
if (r && l.current) {
|
|
26650
|
-
let
|
|
26651
|
-
if (
|
|
26652
|
-
|
|
26653
|
-
const
|
|
26653
|
+
let Q = document.getElementById("note-editor");
|
|
26654
|
+
if (Q) {
|
|
26655
|
+
Q.style.position = "absolute", Q.style.zIndex = "10", Q.style.left = b + "px", Q.style.top = _ + "px", Q.style.backgroundColor = "var(--chakra-color-darkShark)", Q.style.transform = "scale(1.5)", Q.style.width = "300px", Q.style.height = "100px", Q.style.color = "#fff", Q.style.fontSize = "20px", Q.style.border = "1px solid #CBCEE0";
|
|
26656
|
+
const J = {
|
|
26654
26657
|
// This will overwrite the default binding also named 'tab'
|
|
26655
26658
|
esc: {
|
|
26656
26659
|
key: 27,
|
|
@@ -26670,7 +26673,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26670
26673
|
toolbar: !1,
|
|
26671
26674
|
keyboard: {
|
|
26672
26675
|
bindings: {
|
|
26673
|
-
...
|
|
26676
|
+
...J
|
|
26674
26677
|
}
|
|
26675
26678
|
}
|
|
26676
26679
|
},
|
|
@@ -26682,7 +26685,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26682
26685
|
$(V.root.innerText);
|
|
26683
26686
|
}), V.setText(p), V.focus(), V.off("text-change", () => {
|
|
26684
26687
|
console.log("removed");
|
|
26685
|
-
}), V.hasFocus() || (
|
|
26688
|
+
}), V.hasFocus() || (Q.style.display = "none");
|
|
26686
26689
|
}
|
|
26687
26690
|
}
|
|
26688
26691
|
}, [b, _, r]), /* @__PURE__ */ ee.jsx(Gi, { ...e, ref: t, isText: !0, children: /* @__PURE__ */ ee.jsxs(Xe, { ref: i, children: [
|
|
@@ -26702,7 +26705,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26702
26705
|
},
|
|
26703
26706
|
ref: a,
|
|
26704
26707
|
filters: [
|
|
26705
|
-
|
|
26708
|
+
Z,
|
|
26706
26709
|
z,
|
|
26707
26710
|
rt,
|
|
26708
26711
|
D,
|
|
@@ -26726,7 +26729,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26726
26729
|
const [, r] = At.useState(!1), [, n] = At.useState({
|
|
26727
26730
|
isWaiting: !1,
|
|
26728
26731
|
isStalled: !1
|
|
26729
|
-
}), [i, a] = At.useState(), l =
|
|
26732
|
+
}), [i, a] = At.useState(), l = Xt(null), u = Xt(null), f = Xt(null), h = Xt(J4), d = Xt(), { tl: p, isDragging: c } = wo(Fs), {
|
|
26730
26733
|
uniqueId: v,
|
|
26731
26734
|
mute: m = !1,
|
|
26732
26735
|
src: y,
|
|
@@ -26741,7 +26744,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26741
26744
|
sharpnessFilter: M,
|
|
26742
26745
|
hueFilter: F,
|
|
26743
26746
|
blurFilter: q,
|
|
26744
|
-
adjustmentFilter:
|
|
26747
|
+
adjustmentFilter: Z
|
|
26745
26748
|
} = js(L), z = y || "", rt = At.useMemo(() => {
|
|
26746
26749
|
const G = document.createElement("video");
|
|
26747
26750
|
return G.src = y, G.crossOrigin = "Anonymus", G.autoplay = !1, G.currentTime = w === 0 ? 1e-3 : w, G;
|
|
@@ -26824,9 +26827,9 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26824
26827
|
f.current && f.current.pause(), n({ isWaiting: !0, isStalled: !1 });
|
|
26825
26828
|
}, V = function() {
|
|
26826
26829
|
n({ isWaiting: !1, isStalled: !1 });
|
|
26827
|
-
},
|
|
26830
|
+
}, Q = function() {
|
|
26828
26831
|
n({ isWaiting: !1, isStalled: !0 });
|
|
26829
|
-
},
|
|
26832
|
+
}, J = Math.round((Number(w) + Number.EPSILON) * 100) / 100, nt = Math.round((Number(T) + Number.EPSILON) * 100) / 100, ot = `${z}#t=${J},${nt}`;
|
|
26830
26833
|
return console.log("urlTimestap", ot), _n.Texture.fromLoader(rt, ot, v, {
|
|
26831
26834
|
pixiIdPrefix: v,
|
|
26832
26835
|
resourceOptions: {
|
|
@@ -26835,12 +26838,12 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26835
26838
|
updateFPS: 30
|
|
26836
26839
|
}
|
|
26837
26840
|
}).then((dt) => {
|
|
26838
|
-
dt && (a(dt), f.current = dt.baseTexture.resource.source, f.current.id = v, f.current.addEventListener("loadedmetadata", K), f.current.addEventListener("ended", X), f.current.addEventListener("loadstart", $), f.current.addEventListener("canplaythrough", V), f.current.addEventListener("stalled",
|
|
26841
|
+
dt && (a(dt), f.current = dt.baseTexture.resource.source, f.current.id = v, f.current.addEventListener("loadedmetadata", K), f.current.addEventListener("ended", X), f.current.addEventListener("loadstart", $), f.current.addEventListener("canplaythrough", V), f.current.addEventListener("stalled", Q));
|
|
26839
26842
|
}), () => {
|
|
26840
26843
|
f.current && (f.current.pause(), f.current.removeEventListener("loadedmetadata", K), f.current.removeEventListener("ended", X), f.current.removeEventListener("loadstart", $), f.current.removeEventListener(
|
|
26841
26844
|
"canplaythrough",
|
|
26842
26845
|
V
|
|
26843
|
-
), f.current.removeEventListener("stalled",
|
|
26846
|
+
), f.current.removeEventListener("stalled", Q));
|
|
26844
26847
|
};
|
|
26845
26848
|
}, [z, v, w, T, rt]), /* @__PURE__ */ ee.jsx(Gi, { ...e, ref: t, ignoreTlForVideo: !0, children: /* @__PURE__ */ ee.jsx(Xe, { ref: u, children: i && /* @__PURE__ */ ee.jsx(
|
|
26846
26849
|
Mf,
|
|
@@ -26858,7 +26861,7 @@ const NB = At.forwardRef((e, t) => {
|
|
|
26858
26861
|
P,
|
|
26859
26862
|
M,
|
|
26860
26863
|
F,
|
|
26861
|
-
|
|
26864
|
+
Z,
|
|
26862
26865
|
// conditionally add blur filter
|
|
26863
26866
|
...C > 0 ? [q] : []
|
|
26864
26867
|
]
|