reacthub-pixitweenjs 0.2.27 → 0.2.29

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 CHANGED
@@ -1,8 +1,8 @@
1
- import * as ut from "react";
2
- import Wl, { useState as le, useRef as dt, useLayoutEffect as Yl, useCallback as Pe, useEffect as Pr, useContext as yi, useReducer as Xh } from "react";
1
+ import * as at from "react";
2
+ import Wl, { useState as ue, useRef as dt, useLayoutEffect as Yl, useCallback as Pe, useEffect as Pr, useContext as yi, useReducer as Xh } from "react";
3
3
  import { PixiComponent as Wh, applyDefaultProps as Yh, withFilters as sa, Container as Ft, Sprite as aa, useApp as Kl, AnimatedSprite as Kh, Graphics as Zh, Text as Qh } from "@pixi/react";
4
4
  import _e from "gsap";
5
- import * as de from "pixi.js";
5
+ import * as re from "pixi.js";
6
6
  import { Sound as Jh } from "@pixi/sound";
7
7
  var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
8
  function Mr(e) {
@@ -54,7 +54,7 @@ mi.Fragment = nc;
54
54
  mi.jsx = Ql;
55
55
  mi.jsxs = Ql;
56
56
  Zl.exports = mi;
57
- var ft = Zl.exports, or = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(or || {}), Jl = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(Jl || {}), As = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(As || {}), ot = /* @__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))(ot || {}), Fe = /* @__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))(Fe || {}), et = /* @__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))(et || {}), wr = /* @__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))(wr || {}), 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 || {}), Ss = /* @__PURE__ */ ((e) => (e[e.FLOAT = 0] = "FLOAT", e[e.INT = 1] = "INT", e[e.UINT = 2] = "UINT", e))(Ss || {}), Se = /* @__PURE__ */ ((e) => (e[e.NEAREST = 0] = "NEAREST", e[e.LINEAR = 1] = "LINEAR", e))(Se || {}), an = /* @__PURE__ */ ((e) => (e[e.CLAMP = 33071] = "CLAMP", e[e.REPEAT = 10497] = "REPEAT", e[e.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", e))(an || {}), ir = /* @__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))(ir || {}), Ue = /* @__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))(Ue || {}), He = /* @__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))(He || {}), oa = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.MANUAL = 1] = "MANUAL", e))(oa || {}), Jt = /* @__PURE__ */ ((e) => (e.LOW = "lowp", e.MEDIUM = "mediump", e.HIGH = "highp", e))(Jt || {}), Dt = /* @__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))(Dt || {}), Bt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.LOW = 2] = "LOW", e[e.MEDIUM = 4] = "MEDIUM", e[e.HIGH = 8] = "HIGH", e))(Bt || {}), be = /* @__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))(be || {});
57
+ var ft = Zl.exports, or = /* @__PURE__ */ ((e) => (e[e.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", e[e.WEBGL = 1] = "WEBGL", e[e.WEBGL2 = 2] = "WEBGL2", e))(or || {}), Jl = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.WEBGL = 1] = "WEBGL", e[e.CANVAS = 2] = "CANVAS", e))(Jl || {}), As = /* @__PURE__ */ ((e) => (e[e.COLOR = 16384] = "COLOR", e[e.DEPTH = 256] = "DEPTH", e[e.STENCIL = 1024] = "STENCIL", e))(As || {}), lt = /* @__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))(lt || {}), Fe = /* @__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))(Fe || {}), et = /* @__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))(et || {}), wr = /* @__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))(wr || {}), 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 || {}), Ss = /* @__PURE__ */ ((e) => (e[e.FLOAT = 0] = "FLOAT", e[e.INT = 1] = "INT", e[e.UINT = 2] = "UINT", e))(Ss || {}), Se = /* @__PURE__ */ ((e) => (e[e.NEAREST = 0] = "NEAREST", e[e.LINEAR = 1] = "LINEAR", e))(Se || {}), an = /* @__PURE__ */ ((e) => (e[e.CLAMP = 33071] = "CLAMP", e[e.REPEAT = 10497] = "REPEAT", e[e.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", e))(an || {}), ir = /* @__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))(ir || {}), Ue = /* @__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))(Ue || {}), He = /* @__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))(He || {}), oa = /* @__PURE__ */ ((e) => (e[e.AUTO = 0] = "AUTO", e[e.MANUAL = 1] = "MANUAL", e))(oa || {}), Jt = /* @__PURE__ */ ((e) => (e.LOW = "lowp", e.MEDIUM = "mediump", e.HIGH = "highp", e))(Jt || {}), Dt = /* @__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))(Dt || {}), Bt = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.LOW = 2] = "LOW", e[e.MEDIUM = 4] = "MEDIUM", e[e.HIGH = 8] = "HIGH", e))(Bt || {}), be = /* @__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))(be || {});
58
58
  const oc = {
59
59
  createCanvas: (e, t) => {
60
60
  const r = document.createElement("canvas");
@@ -535,7 +535,7 @@ ti.exports;
535
535
  "not-basic": "Illegal input >= 0x80 (not a basic code point)",
536
536
  "invalid-input": "Invalid input"
537
537
  }, v = l - h, x = Math.floor, S = String.fromCharCode, w;
538
- function T(k) {
538
+ function E(k) {
539
539
  throw new RangeError(_[k]);
540
540
  }
541
541
  function N(k, I) {
@@ -549,7 +549,7 @@ ti.exports;
549
549
  var j = k.split("."), G = N(j, I).join(".");
550
550
  return L + G;
551
551
  }
552
- function E(k) {
552
+ function T(k) {
553
553
  for (var I = [], P = 0, L = k.length, j, G; P < L; )
554
554
  j = k.charCodeAt(P++), j >= 55296 && j <= 56319 && P < L ? (G = k.charCodeAt(P++), (G & 64512) == 56320 ? I.push(((j & 1023) << 10) + (G & 1023) + 65536) : (I.push(j), P--)) : I.push(j);
555
555
  return I;
@@ -573,30 +573,30 @@ ti.exports;
573
573
  return x(L + (v + 1) * k / (k + f));
574
574
  }
575
575
  function U(k) {
576
- var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt, at, lt;
576
+ var I = [], P = k.length, L, j = 0, G = p, M = d, B, q, H, X, K, tt, rt, ot, ut;
577
577
  for (B = k.lastIndexOf(m), B < 0 && (B = 0), q = 0; q < B; ++q)
578
- k.charCodeAt(q) >= 128 && T("not-basic"), I.push(k.charCodeAt(q));
578
+ k.charCodeAt(q) >= 128 && E("not-basic"), I.push(k.charCodeAt(q));
579
579
  for (H = B > 0 ? B + 1 : 0; H < P; ) {
580
- for (X = j, K = 1, tt = l; H >= P && T("invalid-input"), rt = R(k.charCodeAt(H++)), (rt >= l || rt > x((o - j) / K)) && T("overflow"), j += rt * K, at = tt <= M ? h : tt >= M + c ? c : tt - M, !(rt < at); tt += l)
581
- lt = l - at, K > x(o / lt) && T("overflow"), K *= lt;
582
- L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G && T("overflow"), G += x(j / L), j %= L, I.splice(j++, 0, G);
580
+ for (X = j, K = 1, tt = l; H >= P && E("invalid-input"), rt = R(k.charCodeAt(H++)), (rt >= l || rt > x((o - j) / K)) && E("overflow"), j += rt * K, ot = tt <= M ? h : tt >= M + c ? c : tt - M, !(rt < ot); tt += l)
581
+ ut = l - ot, K > x(o / ut) && E("overflow"), K *= ut;
582
+ L = I.length + 1, M = F(j - X, L, X == 0), x(j / L) > o - G && E("overflow"), G += x(j / L), j %= L, I.splice(j++, 0, G);
583
583
  }
584
584
  return O(I);
585
585
  }
586
586
  function D(k) {
587
- var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt, at, lt, It;
588
- for (k = E(k), rt = k.length, I = p, P = 0, G = d, M = 0; M < rt; ++M)
587
+ var I, P, L, j, G, M, B, q, H, X, K, tt = [], rt, ot, ut, It;
588
+ for (k = T(k), rt = k.length, I = p, P = 0, G = d, M = 0; M < rt; ++M)
589
589
  K = k[M], K < 128 && tt.push(S(K));
590
590
  for (L = j = tt.length, j && tt.push(m); L < rt; ) {
591
591
  for (B = o, M = 0; M < rt; ++M)
592
592
  K = k[M], K >= I && K < B && (B = K);
593
- for (at = L + 1, B - I > x((o - P) / at) && T("overflow"), P += (B - I) * at, I = B, M = 0; M < rt; ++M)
594
- if (K = k[M], K < I && ++P > o && T("overflow"), K == I) {
593
+ for (ot = L + 1, B - I > x((o - P) / ot) && E("overflow"), P += (B - I) * ot, I = B, M = 0; M < rt; ++M)
594
+ if (K = k[M], K < I && ++P > o && E("overflow"), K == I) {
595
595
  for (q = P, H = l; X = H <= G ? h : H >= G + c ? c : H - G, !(q < X); H += l)
596
- It = q - X, lt = l - X, tt.push(
597
- S(C(X + It % lt, 0))
598
- ), q = x(It / lt);
599
- tt.push(S(C(q, 0))), G = F(P, at, L == j), P = 0, ++L;
596
+ It = q - X, ut = l - X, tt.push(
597
+ S(C(X + It % ut, 0))
598
+ ), q = x(It / ut);
599
+ tt.push(S(C(q, 0))), G = F(P, ot, L == j), P = 0, ++L;
600
600
  }
601
601
  ++P, ++I;
602
602
  }
@@ -627,7 +627,7 @@ ti.exports;
627
627
  * @type Object
628
628
  */
629
629
  ucs2: {
630
- decode: E,
630
+ decode: T,
631
631
  encode: O
632
632
  },
633
633
  decode: U,
@@ -1075,7 +1075,7 @@ var ks = sf, fo = ks.custom, po = cu(fo) ? fo : null, yf = function e(t, r, n, i
1075
1075
  if (bf(t))
1076
1076
  return qr(u(String(t)));
1077
1077
  if (!vf(t) && !yo(t)) {
1078
- var w = En(t, u), T = ho ? ho(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", A = !T && Vt && Object(t) === t && Vt in t ? da.call($e(t), 8, -1) : N ? "Object" : "", E = T || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", O = E + (A || N ? "[" + ge.call(lo.call([], A || [], N || []), ": ") + "] " : "");
1078
+ var w = En(t, u), E = ho ? ho(t) === Object.prototype : t instanceof Object || t.constructor === Object, N = t instanceof Object ? "" : "null prototype", A = !E && Vt && Object(t) === t && Vt in t ? da.call($e(t), 8, -1) : N ? "Object" : "", T = E || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", O = T + (A || N ? "[" + ge.call(lo.call([], A || [], N || []), ": ") + "] " : "");
1079
1079
  return w.length === 0 ? O + "{}" : f ? O + "{" + Ms(w, f) + "}" : O + "{ " + ge.call(w, ", ") + " }";
1080
1080
  }
1081
1081
  return String(t);
@@ -1540,17 +1540,17 @@ var pa = ha, Lr = ef, Mf = yf, Lf = pa("%TypeError%"), Tn = pa("%WeakMap%", !0),
1540
1540
  var w = [];
1541
1541
  if (typeof y > "u")
1542
1542
  return w;
1543
- var T;
1543
+ var E;
1544
1544
  if (n === "comma" && Ae(y))
1545
- p && o && (y = qn.maybeMap(y, o)), T = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
1545
+ p && o && (y = qn.maybeMap(y, o)), E = [{ value: y.length > 0 ? y.join(",") || null : void 0 }];
1546
1546
  else if (Ae(l))
1547
- T = l;
1547
+ E = l;
1548
1548
  else {
1549
1549
  var N = Object.keys(y);
1550
- T = h ? N.sort(h) : N;
1550
+ E = h ? N.sort(h) : N;
1551
1551
  }
1552
- for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r, E = 0; E < T.length; ++E) {
1553
- var O = T[E], R = typeof O == "object" && typeof O.value < "u" ? O.value : y[O];
1552
+ for (var A = i && Ae(y) && y.length === 1 ? r + "[]" : r, T = 0; T < E.length; ++T) {
1553
+ var O = E[T], R = typeof O == "object" && typeof O.value < "u" ? O.value : y[O];
1554
1554
  if (!(a && R === null)) {
1555
1555
  var C = Ae(y) ? typeof n == "function" ? n(A, O) : A : A + (c ? "." + O : "[" + O + "]");
1556
1556
  g.set(t, _);
@@ -1752,7 +1752,7 @@ var pa = ha, Lr = ef, Mf = yf, Lf = pa("%TypeError%"), Tn = pa("%WeakMap%", !0),
1752
1752
  parse: wd,
1753
1753
  stringify: xd
1754
1754
  }, Ad = Rc;
1755
- function he() {
1755
+ function ce() {
1756
1756
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
1757
1757
  }
1758
1758
  var Sd = /^([a-z0-9.+-]+:)/i, Od = /:[0-9]*$/, Rd = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Id = [
@@ -1801,12 +1801,12 @@ var Sd = /^([a-z0-9.+-]+:)/i, Od = /:[0-9]*$/, Rd = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
1801
1801
  "file:": !0
1802
1802
  }, Ds = Td;
1803
1803
  function _i(e, t, r) {
1804
- if (e && typeof e == "object" && e instanceof he)
1804
+ if (e && typeof e == "object" && e instanceof ce)
1805
1805
  return e;
1806
- var n = new he();
1806
+ var n = new ce();
1807
1807
  return n.parse(e, t, r), n;
1808
1808
  }
1809
- he.prototype.parse = function(e, t, r) {
1809
+ ce.prototype.parse = function(e, t, r) {
1810
1810
  if (typeof e != "string")
1811
1811
  throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
1812
1812
  var n = e.indexOf("?"), i = n !== -1 && n < e.indexOf("#") ? "?" : "#", s = e.split(i), a = /\\/g;
@@ -1847,15 +1847,15 @@ he.prototype.parse = function(e, t, r) {
1847
1847
  for (var x = "", S = 0, w = v.length; S < w; S++)
1848
1848
  v.charCodeAt(S) > 127 ? x += "x" : x += v[S];
1849
1849
  if (!x.match(xo)) {
1850
- var T = b.slice(0, d), N = b.slice(d + 1), A = v.match(kd);
1851
- A && (T.push(A[1]), N.unshift(A[2])), N.length && (o = "/" + N.join(".") + o), this.hostname = T.join(".");
1850
+ var E = b.slice(0, d), N = b.slice(d + 1), A = v.match(kd);
1851
+ A && (E.push(A[1]), N.unshift(A[2])), N.length && (o = "/" + N.join(".") + o), this.hostname = E.join(".");
1852
1852
  break;
1853
1853
  }
1854
1854
  }
1855
1855
  }
1856
1856
  this.hostname.length > Cd ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), y || (this.hostname = Ad.toASCII(this.hostname));
1857
- var E = this.port ? ":" + this.port : "", O = this.hostname || "";
1858
- this.host = O + E, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1857
+ var T = this.port ? ":" + this.port : "", O = this.hostname || "";
1858
+ this.host = O + T, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1859
1859
  }
1860
1860
  if (!Pd[c])
1861
1861
  for (var d = 0, _ = Fs.length; d < _; d++) {
@@ -1869,15 +1869,15 @@ he.prototype.parse = function(e, t, r) {
1869
1869
  F !== -1 && (this.hash = o.substr(F), o = o.slice(0, F));
1870
1870
  var U = o.indexOf("?");
1871
1871
  if (U !== -1 ? (this.search = o.substr(U), this.query = o.substr(U + 1), t && (this.query = Ds.parse(this.query)), o = o.slice(0, U)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Tr[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
1872
- var E = this.pathname || "", D = this.search || "";
1873
- this.path = E + D;
1872
+ var T = this.pathname || "", D = this.search || "";
1873
+ this.path = T + D;
1874
1874
  }
1875
1875
  return this.href = this.format(), this;
1876
1876
  };
1877
1877
  function Md(e) {
1878
- return typeof e == "string" && (e = _i(e)), e instanceof he ? e.format() : he.prototype.format.call(e);
1878
+ return typeof e == "string" && (e = _i(e)), e instanceof ce ? e.format() : ce.prototype.format.call(e);
1879
1879
  }
1880
- he.prototype.format = function() {
1880
+ ce.prototype.format = function() {
1881
1881
  var e = this.auth || "";
1882
1882
  e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
1883
1883
  var t = this.protocol || "", r = this.pathname || "", n = this.hash || "", i = !1, s = "";
@@ -1890,15 +1890,15 @@ he.prototype.format = function() {
1890
1890
  function Ld(e, t) {
1891
1891
  return _i(e, !1, !0).resolve(t);
1892
1892
  }
1893
- he.prototype.resolve = function(e) {
1893
+ ce.prototype.resolve = function(e) {
1894
1894
  return this.resolveObject(_i(e, !1, !0)).format();
1895
1895
  };
1896
- he.prototype.resolveObject = function(e) {
1896
+ ce.prototype.resolveObject = function(e) {
1897
1897
  if (typeof e == "string") {
1898
- var t = new he();
1898
+ var t = new ce();
1899
1899
  t.parse(e, !1, !0), e = t;
1900
1900
  }
1901
- for (var r = new he(), n = Object.keys(this), i = 0; i < n.length; i++) {
1901
+ for (var r = new ce(), n = Object.keys(this), i = 0; i < n.length; i++) {
1902
1902
  var s = n[i];
1903
1903
  r[s] = this[s];
1904
1904
  }
@@ -1946,10 +1946,10 @@ he.prototype.resolveObject = function(e) {
1946
1946
  }
1947
1947
  if (!b.length)
1948
1948
  return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
1949
- for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "", T = 0, N = b.length; N >= 0; N--)
1950
- S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1), T++) : T && (b.splice(N, 1), T--);
1949
+ for (var S = b.slice(-1)[0], w = (r.host || e.host || b.length > 1) && (S === "." || S === "..") || S === "", E = 0, N = b.length; N >= 0; N--)
1950
+ S = b[N], S === "." ? b.splice(N, 1) : S === ".." ? (b.splice(N, 1), E++) : E && (b.splice(N, 1), E--);
1951
1951
  if (!g && !y)
1952
- for (; T--; T)
1952
+ for (; E--; E)
1953
1953
  b.unshift("..");
1954
1954
  g && b[0] !== "" && (!b[0] || b[0].charAt(0) !== "/") && b.unshift(""), w && b.join("/").substr(-1) !== "/" && b.push("");
1955
1955
  var A = b[0] === "" || b[0] && b[0].charAt(0) === "/";
@@ -1960,7 +1960,7 @@ he.prototype.resolveObject = function(e) {
1960
1960
  }
1961
1961
  return g = g || r.host && b.length, g && !A && b.unshift(""), b.length > 0 ? r.pathname = b.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = e.auth || r.auth, r.slashes = r.slashes || e.slashes, r.href = r.format(), r;
1962
1962
  };
1963
- he.prototype.parseHost = function() {
1963
+ ce.prototype.parseHost = function() {
1964
1964
  var e = this.host, t = Od.exec(e);
1965
1965
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
1966
1966
  };
@@ -2335,7 +2335,7 @@ function Kd() {
2335
2335
  const e = [], t = [];
2336
2336
  for (let n = 0; n < 32; n++)
2337
2337
  e[n] = n, t[n] = n;
2338
- e[ot.NORMAL_NPM] = ot.NORMAL, e[ot.ADD_NPM] = ot.ADD, e[ot.SCREEN_NPM] = ot.SCREEN, t[ot.NORMAL] = ot.NORMAL_NPM, t[ot.ADD] = ot.ADD_NPM, t[ot.SCREEN] = ot.SCREEN_NPM;
2338
+ e[lt.NORMAL_NPM] = lt.NORMAL, e[lt.ADD_NPM] = lt.ADD, e[lt.SCREEN_NPM] = lt.SCREEN, t[lt.NORMAL] = lt.NORMAL_NPM, t[lt.ADD] = lt.ADD_NPM, t[lt.SCREEN] = lt.SCREEN_NPM;
2339
2339
  const r = [];
2340
2340
  return r.push(t), r.push(e), r;
2341
2341
  }
@@ -2521,7 +2521,7 @@ function np(e, t) {
2521
2521
  const ns = 0, is = 1, ss = 2, as = 3, os = 4, ls = 5;
2522
2522
  let xi = class Eu {
2523
2523
  constructor() {
2524
- this.data = 0, this.blendMode = ot.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
2524
+ this.data = 0, this.blendMode = lt.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
2525
2525
  }
2526
2526
  get blend() {
2527
2527
  return !!(this.data & 1 << ns);
@@ -2563,7 +2563,7 @@ let xi = class Eu {
2563
2563
  return this._blendMode;
2564
2564
  }
2565
2565
  set blendMode(t) {
2566
- this.blend = t !== ot.NONE, this._blendMode = t;
2566
+ this.blend = t !== lt.NONE, this._blendMode = t;
2567
2567
  }
2568
2568
  get polygonOffset() {
2569
2569
  return this._polygonOffset;
@@ -2595,7 +2595,7 @@ function Tu(e, t) {
2595
2595
  }
2596
2596
  throw new Error("Unrecognized source type to auto-detect Resource");
2597
2597
  }
2598
- class ce {
2598
+ class fe {
2599
2599
  constructor(t) {
2600
2600
  this.items = [], this._name = t, this._aliasCount = 0;
2601
2601
  }
@@ -2634,13 +2634,13 @@ class ce {
2634
2634
  return this._name;
2635
2635
  }
2636
2636
  }
2637
- Object.defineProperties(ce.prototype, {
2638
- dispatch: { value: ce.prototype.emit },
2639
- run: { value: ce.prototype.emit }
2637
+ Object.defineProperties(fe.prototype, {
2638
+ dispatch: { value: fe.prototype.emit },
2639
+ run: { value: fe.prototype.emit }
2640
2640
  });
2641
2641
  class cn {
2642
2642
  constructor(t = 0, r = 0) {
2643
- this._width = t, this._height = r, this.destroyed = !1, this.internal = !1, this.onResize = new ce("setRealSize"), this.onUpdate = new ce("update"), this.onError = new ce("onError");
2643
+ this._width = t, this._height = r, this.destroyed = !1, this.internal = !1, this.onResize = new fe("setRealSize"), this.onUpdate = new fe("update"), this.onError = new fe("onError");
2644
2644
  }
2645
2645
  bind(t) {
2646
2646
  this.onResize.add(t), this.onUpdate.add(t), this.onError.add(t), (this._width || this._height) && this.onResize.emit(this._width, this._height);
@@ -2843,7 +2843,7 @@ class qs {
2843
2843
  }
2844
2844
  let sp = 0, Kt = class Au {
2845
2845
  constructor(t, r = !0, n = !1) {
2846
- this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = n, this.static = r, this.id = sp++, this.disposeRunner = new ce("disposeBuffer");
2846
+ this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = n, this.static = r, this.id = sp++, this.disposeRunner = new fe("disposeBuffer");
2847
2847
  }
2848
2848
  update(t) {
2849
2849
  t instanceof Array && (t = new Float32Array(t)), this.data = t || this.data, this._updateID++;
@@ -2910,7 +2910,7 @@ const up = {
2910
2910
  };
2911
2911
  class Nr {
2912
2912
  constructor(t = [], r = {}) {
2913
- this.buffers = t, this.indexBuffer = null, this.attributes = r, this.glVertexArrayObjects = {}, this.id = lp++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new ce("disposeGeometry"), this.refCount = 0;
2913
+ this.buffers = t, this.indexBuffer = null, this.attributes = r, this.glVertexArrayObjects = {}, this.id = lp++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new fe("disposeGeometry"), this.refCount = 0;
2914
2914
  }
2915
2915
  addAttribute(t, r, n = 0, i = !1, s, a, o, l = !1) {
2916
2916
  if (!r)
@@ -3074,8 +3074,8 @@ class Tt {
3074
3074
  }
3075
3075
  intersects(t, r) {
3076
3076
  if (!r) {
3077
- const T = this.x < t.x ? t.x : this.x;
3078
- if ((this.right > t.right ? t.right : this.right) <= T)
3077
+ const E = this.x < t.x ? t.x : this.x;
3078
+ if ((this.right > t.right ? t.right : this.right) <= E)
3079
3079
  return !1;
3080
3080
  const A = this.y < t.y ? t.y : this.y;
3081
3081
  return (this.bottom > t.bottom ? t.bottom : this.bottom) > A;
@@ -4038,7 +4038,7 @@ let Oe = gr;
4038
4038
  Oe.defaultVertexPrecision = Jt.HIGH;
4039
4039
  Oe.defaultFragmentPrecision = br.apple.device ? Jt.HIGH : Jt.MEDIUM;
4040
4040
  let Ap = 0;
4041
- class fe {
4041
+ class de {
4042
4042
  constructor(t, r, n) {
4043
4043
  this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = Ap++, this.static = !!r, this.ubo = !!n, t instanceof Kt ? (this.buffer = t, this.buffer.type = be.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = t, this.ubo && (this.buffer = new Kt(new Float32Array(1)), this.buffer.type = be.UNIFORM_BUFFER, this.autoManage = !0));
4044
4044
  }
@@ -4047,20 +4047,20 @@ class fe {
4047
4047
  }
4048
4048
  add(t, r, n) {
4049
4049
  if (!this.ubo)
4050
- this.uniforms[t] = new fe(r, n);
4050
+ this.uniforms[t] = new de(r, n);
4051
4051
  else
4052
4052
  throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");
4053
4053
  }
4054
4054
  static from(t, r, n) {
4055
- return new fe(t, r, n);
4055
+ return new de(t, r, n);
4056
4056
  }
4057
4057
  static uboFrom(t, r) {
4058
- return new fe(t, r ?? !0, !0);
4058
+ return new de(t, r ?? !0, !0);
4059
4059
  }
4060
4060
  }
4061
4061
  class mn {
4062
4062
  constructor(t, r) {
4063
- this.uniformBindCount = 0, this.program = t, r ? r instanceof fe ? this.uniformGroup = r : this.uniformGroup = new fe(r) : this.uniformGroup = new fe({}), this.disposeRunner = new ce("disposeShader");
4063
+ this.uniformBindCount = 0, this.program = t, r ? r instanceof de ? this.uniformGroup = r : this.uniformGroup = new de(r) : this.uniformGroup = new de({}), this.disposeRunner = new fe("disposeShader");
4064
4064
  }
4065
4065
  checkUniformExists(t, r) {
4066
4066
  if (r.uniforms[t])
@@ -4095,7 +4095,7 @@ class Sp {
4095
4095
  const n = new Int32Array(t);
4096
4096
  for (let s = 0; s < t; s++)
4097
4097
  n[s] = s;
4098
- this.defaultGroupCache[t] = fe.from({ uSamplers: n }, !0);
4098
+ this.defaultGroupCache[t] = de.from({ uSamplers: n }, !0);
4099
4099
  let i = this.fragTemplate;
4100
4100
  i = i.replace(/%count%/gi, `${t}`), i = i.replace(/%forloop%/gi, this.generateSampleSrc(t)), this.programCache[t] = new Oe(this.vertexSrc, i);
4101
4101
  }
@@ -4199,9 +4199,9 @@ void main(void){
4199
4199
  vColor = aColor * tint;
4200
4200
  }
4201
4201
  `;
4202
- const ne = class extends Mu {
4202
+ const ie = class extends Mu {
4203
4203
  constructor(e) {
4204
- super(e), this.setShaderGenerator(), this.geometryClass = Su, this.vertexSize = 6, this.state = xi.for2d(), this.size = ne.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), e.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
4204
+ super(e), this.setShaderGenerator(), this.geometryClass = Su, this.vertexSize = 6, this.state = xi.for2d(), this.size = ie.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), e.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
4205
4205
  }
4206
4206
  static get defaultMaxTextures() {
4207
4207
  return this._defaultMaxTextures = this._defaultMaxTextures ?? Rp(32), this._defaultMaxTextures;
@@ -4225,14 +4225,14 @@ const ne = class extends Mu {
4225
4225
  return Ip;
4226
4226
  }
4227
4227
  setShaderGenerator({
4228
- vertex: e = ne.defaultVertexSrc,
4229
- fragment: t = ne.defaultFragmentTemplate
4228
+ vertex: e = ie.defaultVertexSrc,
4229
+ fragment: t = ie.defaultFragmentTemplate
4230
4230
  } = {}) {
4231
4231
  this.shaderGenerator = new Sp(e, t);
4232
4232
  }
4233
4233
  contextChange() {
4234
4234
  const e = this.renderer.gl;
4235
- yt.PREFER_ENV === or.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), ne.defaultMaxTextures), this.maxTextures = np(this.maxTextures, e)), this._shader = this.shaderGenerator.generateShader(this.maxTextures);
4235
+ yt.PREFER_ENV === or.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), ie.defaultMaxTextures), this.maxTextures = np(this.maxTextures, e)), this._shader = this.shaderGenerator.generateShader(this.maxTextures);
4236
4236
  for (let t = 0; t < this._packedGeometryPoolSize; t++)
4237
4237
  this._packedGeometries[t] = new this.geometryClass();
4238
4238
  this.initFlushBuffers();
@@ -4241,7 +4241,7 @@ const ne = class extends Mu {
4241
4241
  const {
4242
4242
  _drawCallPool: e,
4243
4243
  _textureArrayPool: t
4244
- } = ne, r = this.size / 4, n = Math.floor(r / this.maxTextures) + 1;
4244
+ } = ie, r = this.size / 4, n = Math.floor(r / this.maxTextures) + 1;
4245
4245
  for (; e.length < r; )
4246
4246
  e.push(new qs());
4247
4247
  for (; t.length < n; )
@@ -4259,7 +4259,7 @@ const ne = class extends Mu {
4259
4259
  const {
4260
4260
  _bufferedTextures: e,
4261
4261
  maxTextures: t
4262
- } = this, r = ne._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, s = this.renderer.textureGC.count;
4262
+ } = this, r = ie._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, s = this.renderer.textureGC.count;
4263
4263
  let a = ++gt._globalBatch, o = 0, l = r[0], h = 0;
4264
4264
  n.copyBoundTextures(i, t);
4265
4265
  for (let c = 0; c < this._bufferSize; ++c) {
@@ -4277,7 +4277,7 @@ const ne = class extends Mu {
4277
4277
  _attributeBuffer: i,
4278
4278
  _indexBuffer: s,
4279
4279
  vertexSize: a
4280
- } = this, o = ne._drawCallPool;
4280
+ } = this, o = ie._drawCallPool;
4281
4281
  let l = this._dcIndex, h = this._aIndex, c = this._iIndex, f = o[l];
4282
4282
  f.start = this._iIndex, f.texArray = e;
4283
4283
  for (let u = t; u < r; ++u) {
@@ -4298,10 +4298,10 @@ const ne = class extends Mu {
4298
4298
  _attributeBuffer: t,
4299
4299
  _indexBuffer: r
4300
4300
  } = this;
4301
- ne.canUploadSameBuffer ? (e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.updateBuffers()) : (this._packedGeometryPoolSize <= this._flushId && (this._packedGeometryPoolSize++, e[this._flushId] = new this.geometryClass()), e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.bind(e[this._flushId]), this.renderer.geometry.updateBuffers(), this._flushId++);
4301
+ ie.canUploadSameBuffer ? (e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.updateBuffers()) : (this._packedGeometryPoolSize <= this._flushId && (this._packedGeometryPoolSize++, e[this._flushId] = new this.geometryClass()), e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.bind(e[this._flushId]), this.renderer.geometry.updateBuffers(), this._flushId++);
4302
4302
  }
4303
4303
  drawBatches() {
4304
- const e = this._dcIndex, { gl: t, state: r } = this.renderer, n = ne._drawCallPool;
4304
+ const e = this._dcIndex, { gl: t, state: r } = this.renderer, n = ie._drawCallPool;
4305
4305
  let i = null;
4306
4306
  for (let s = 0; s < e; s++) {
4307
4307
  const { texArray: a, type: o, size: l, start: h, blend: c } = n[s];
@@ -4312,7 +4312,7 @@ const ne = class extends Mu {
4312
4312
  this._vertexCount !== 0 && (this._attributeBuffer = this.getAttributeBuffer(this._vertexCount), this._indexBuffer = this.getIndexBuffer(this._indexCount), this._aIndex = 0, this._iIndex = 0, this._dcIndex = 0, this.buildTexturesAndDrawCalls(), this.updateGeometry(), this.drawBatches(), this._bufferSize = 0, this._vertexCount = 0, this._indexCount = 0);
4313
4313
  }
4314
4314
  start() {
4315
- this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader), ne.canUploadSameBuffer && this.renderer.geometry.bind(this._packedGeometries[this._flushId]);
4315
+ this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader), ie.canUploadSameBuffer && this.renderer.geometry.bind(this._packedGeometries[this._flushId]);
4316
4316
  }
4317
4317
  stop() {
4318
4318
  this.flush();
@@ -4345,15 +4345,15 @@ const ne = class extends Mu {
4345
4345
  r[i++] = o + h[p];
4346
4346
  }
4347
4347
  };
4348
- let ae = ne;
4349
- ae.defaultBatchSize = 4096;
4350
- ae.extension = {
4348
+ let oe = ie;
4349
+ oe.defaultBatchSize = 4096;
4350
+ oe.extension = {
4351
4351
  name: "batch",
4352
4352
  type: pt.RendererPlugin
4353
4353
  };
4354
- ae._drawCallPool = [];
4355
- ae._textureArrayPool = [];
4356
- Et.add(ae);
4354
+ oe._drawCallPool = [];
4355
+ oe._textureArrayPool = [];
4356
+ Et.add(oe);
4357
4357
  var Cp = `varying vec2 vTextureCoord;
4358
4358
 
4359
4359
  uniform sampler2D uSampler;
@@ -4620,7 +4620,7 @@ class Pp extends va {
4620
4620
  }
4621
4621
  class Vs {
4622
4622
  constructor(t, r) {
4623
- this.width = Math.round(t || 100), this.height = Math.round(r || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new ce("disposeFramebuffer"), this.multisample = Bt.NONE;
4623
+ this.width = Math.round(t || 100), this.height = Math.round(r || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new fe("disposeFramebuffer"), this.multisample = Bt.NONE;
4624
4624
  }
4625
4625
  get colorTexture() {
4626
4626
  return this.colorTextures[0];
@@ -5083,7 +5083,7 @@ class Fp {
5083
5083
  const Mn = [new nt(), new nt(), new nt(), new nt()], hs = new Rt();
5084
5084
  class $u {
5085
5085
  constructor(t) {
5086
- this.renderer = t, this.defaultFilterStack = [{}], this.texturePool = new Uu(), this.statePool = [], this.quad = new Mp(), this.quadUv = new Lp(), this.tempRect = new Tt(), this.activeState = {}, this.globalUniforms = new fe({
5086
+ this.renderer = t, this.defaultFilterStack = [{}], this.texturePool = new Uu(), this.statePool = [], this.quad = new Mp(), this.quadUv = new Lp(), this.tempRect = new Tt(), this.activeState = {}, this.globalUniforms = new de({
5087
5087
  outputFrame: new Tt(),
5088
5088
  inputSize: new Float32Array(4),
5089
5089
  inputPixel: new Float32Array(4),
@@ -6253,11 +6253,11 @@ Si.extension = {
6253
6253
  };
6254
6254
  Et.add(Si);
6255
6255
  function ey(e, t = []) {
6256
- return t[ot.NORMAL] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.ADD] = [e.ONE, e.ONE], t[ot.MULTIPLY] = [e.DST_COLOR, e.ONE_MINUS_SRC_ALPHA, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.SCREEN] = [e.ONE, e.ONE_MINUS_SRC_COLOR, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.OVERLAY] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.DARKEN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.LIGHTEN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.COLOR_DODGE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.COLOR_BURN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.HARD_LIGHT] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.SOFT_LIGHT] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.DIFFERENCE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.EXCLUSION] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.HUE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.SATURATION] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.COLOR] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.LUMINOSITY] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.NONE] = [0, 0], t[ot.NORMAL_NPM] = [e.SRC_ALPHA, e.ONE_MINUS_SRC_ALPHA, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.ADD_NPM] = [e.SRC_ALPHA, e.ONE, e.ONE, e.ONE], t[ot.SCREEN_NPM] = [e.SRC_ALPHA, e.ONE_MINUS_SRC_COLOR, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[ot.SRC_IN] = [e.DST_ALPHA, e.ZERO], t[ot.SRC_OUT] = [e.ONE_MINUS_DST_ALPHA, e.ZERO], t[ot.SRC_ATOP] = [e.DST_ALPHA, e.ONE_MINUS_SRC_ALPHA], t[ot.DST_OVER] = [e.ONE_MINUS_DST_ALPHA, e.ONE], t[ot.DST_IN] = [e.ZERO, e.SRC_ALPHA], t[ot.DST_OUT] = [e.ZERO, e.ONE_MINUS_SRC_ALPHA], t[ot.DST_ATOP] = [e.ONE_MINUS_DST_ALPHA, e.SRC_ALPHA], t[ot.XOR] = [e.ONE_MINUS_DST_ALPHA, e.ONE_MINUS_SRC_ALPHA], t[ot.SUBTRACT] = [e.ONE, e.ONE, e.ONE, e.ONE, e.FUNC_REVERSE_SUBTRACT, e.FUNC_ADD], t;
6256
+ return t[lt.NORMAL] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.ADD] = [e.ONE, e.ONE], t[lt.MULTIPLY] = [e.DST_COLOR, e.ONE_MINUS_SRC_ALPHA, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.SCREEN] = [e.ONE, e.ONE_MINUS_SRC_COLOR, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.OVERLAY] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.DARKEN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.LIGHTEN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.COLOR_DODGE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.COLOR_BURN] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.HARD_LIGHT] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.SOFT_LIGHT] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.DIFFERENCE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.EXCLUSION] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.HUE] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.SATURATION] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.COLOR] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.LUMINOSITY] = [e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.NONE] = [0, 0], t[lt.NORMAL_NPM] = [e.SRC_ALPHA, e.ONE_MINUS_SRC_ALPHA, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.ADD_NPM] = [e.SRC_ALPHA, e.ONE, e.ONE, e.ONE], t[lt.SCREEN_NPM] = [e.SRC_ALPHA, e.ONE_MINUS_SRC_COLOR, e.ONE, e.ONE_MINUS_SRC_ALPHA], t[lt.SRC_IN] = [e.DST_ALPHA, e.ZERO], t[lt.SRC_OUT] = [e.ONE_MINUS_DST_ALPHA, e.ZERO], t[lt.SRC_ATOP] = [e.DST_ALPHA, e.ONE_MINUS_SRC_ALPHA], t[lt.DST_OVER] = [e.ONE_MINUS_DST_ALPHA, e.ONE], t[lt.DST_IN] = [e.ZERO, e.SRC_ALPHA], t[lt.DST_OUT] = [e.ZERO, e.ONE_MINUS_SRC_ALPHA], t[lt.DST_ATOP] = [e.ONE_MINUS_DST_ALPHA, e.SRC_ALPHA], t[lt.XOR] = [e.ONE_MINUS_DST_ALPHA, e.ONE_MINUS_SRC_ALPHA], t[lt.SUBTRACT] = [e.ONE, e.ONE, e.ONE, e.ONE, e.FUNC_REVERSE_SUBTRACT, e.FUNC_ADD], t;
6257
6257
  }
6258
6258
  const ry = 0, ny = 1, iy = 2, sy = 3, ay = 4, oy = 5, Xs = class {
6259
6259
  constructor() {
6260
- this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = ot.NONE, this._blendEq = !1, this.map = [], this.map[ry] = this.setBlend, this.map[ny] = this.setOffset, this.map[iy] = this.setCullFace, this.map[sy] = this.setDepthTest, this.map[ay] = this.setFrontFace, this.map[oy] = this.setDepthMask, this.checks = [], this.defaultState = new xi(), this.defaultState.blend = !0;
6260
+ this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = lt.NONE, this._blendEq = !1, this.map = [], this.map[ry] = this.setBlend, this.map[ny] = this.setOffset, this.map[iy] = this.setCullFace, this.map[sy] = this.setDepthTest, this.map[ay] = this.setFrontFace, this.map[oy] = this.setDepthMask, this.checks = [], this.defaultState = new xi(), this.defaultState.blend = !0;
6261
6261
  }
6262
6262
  contextChange(e) {
6263
6263
  this.gl = e, this.blendModes = ey(e), this.set(this.defaultState), this.reset();
@@ -6346,7 +6346,7 @@ class ly extends vi {
6346
6346
  }
6347
6347
  addRunners(...t) {
6348
6348
  t.forEach((r) => {
6349
- this.runners[r] = new ce(r);
6349
+ this.runners[r] = new fe(r);
6350
6350
  });
6351
6351
  }
6352
6352
  addSystem(t, r) {
@@ -6402,15 +6402,15 @@ const Xn = class {
6402
6402
  this.renderer = null;
6403
6403
  }
6404
6404
  };
6405
- let oe = Xn;
6406
- oe.defaultMode = oa.AUTO;
6407
- oe.defaultMaxIdle = 60 * 60;
6408
- oe.defaultCheckCountMax = 60 * 10;
6409
- oe.extension = {
6405
+ let le = Xn;
6406
+ le.defaultMode = oa.AUTO;
6407
+ le.defaultMaxIdle = 60 * 60;
6408
+ le.defaultCheckCountMax = 60 * 10;
6409
+ le.extension = {
6410
6410
  type: pt.RendererSystem,
6411
6411
  name: "textureGC"
6412
6412
  };
6413
- Et.add(oe);
6413
+ Et.add(le);
6414
6414
  class fs {
6415
6415
  constructor(t) {
6416
6416
  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 = et.RGBA, this.samplerType = 0;
@@ -6778,50 +6778,50 @@ Object.defineProperties(yt, {
6778
6778
  },
6779
6779
  SPRITE_MAX_TEXTURES: {
6780
6780
  get() {
6781
- return ae.defaultMaxTextures;
6781
+ return oe.defaultMaxTextures;
6782
6782
  },
6783
6783
  set(e) {
6784
- wt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), ae.defaultMaxTextures = e;
6784
+ wt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), oe.defaultMaxTextures = e;
6785
6785
  }
6786
6786
  },
6787
6787
  SPRITE_BATCH_SIZE: {
6788
6788
  get() {
6789
- return ae.defaultBatchSize;
6789
+ return oe.defaultBatchSize;
6790
6790
  },
6791
6791
  set(e) {
6792
- wt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), ae.defaultBatchSize = e;
6792
+ wt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), oe.defaultBatchSize = e;
6793
6793
  }
6794
6794
  },
6795
6795
  CAN_UPLOAD_SAME_BUFFER: {
6796
6796
  get() {
6797
- return ae.canUploadSameBuffer;
6797
+ return oe.canUploadSameBuffer;
6798
6798
  },
6799
6799
  set(e) {
6800
- wt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), ae.canUploadSameBuffer = e;
6800
+ wt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), oe.canUploadSameBuffer = e;
6801
6801
  }
6802
6802
  },
6803
6803
  GC_MODE: {
6804
6804
  get() {
6805
- return oe.defaultMode;
6805
+ return le.defaultMode;
6806
6806
  },
6807
6807
  set(e) {
6808
- wt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), oe.defaultMode = e;
6808
+ wt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), le.defaultMode = e;
6809
6809
  }
6810
6810
  },
6811
6811
  GC_MAX_IDLE: {
6812
6812
  get() {
6813
- return oe.defaultMaxIdle;
6813
+ return le.defaultMaxIdle;
6814
6814
  },
6815
6815
  set(e) {
6816
- wt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), oe.defaultMaxIdle = e;
6816
+ wt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), le.defaultMaxIdle = e;
6817
6817
  }
6818
6818
  },
6819
6819
  GC_MAX_CHECK_COUNT: {
6820
6820
  get() {
6821
- return oe.defaultCheckCountMax;
6821
+ return le.defaultCheckCountMax;
6822
6822
  },
6823
6823
  set(e) {
6824
- wt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), oe.defaultCheckCountMax = e;
6824
+ wt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), le.defaultCheckCountMax = e;
6825
6825
  }
6826
6826
  },
6827
6827
  PRECISION_VERTEX: {
@@ -7142,7 +7142,7 @@ sh.extension = {
7142
7142
  Et.add(sh);
7143
7143
  const Ws = class extends ly {
7144
7144
  constructor(e) {
7145
- super(), this.type = Jl.WEBGL, e = Object.assign({}, yt.RENDER_OPTIONS, e), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new fe({
7145
+ super(), this.type = Jl.WEBGL, e = Object.assign({}, yt.RENDER_OPTIONS, e), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new de({
7146
7146
  projectionMatrix: new Rt()
7147
7147
  }, !0);
7148
7148
  const t = {
@@ -8676,7 +8676,7 @@ const uh = {
8676
8676
  hi.triangulate(e, t);
8677
8677
  }
8678
8678
  };
8679
- var se = /* @__PURE__ */ ((e) => (e.MITER = "miter", e.BEVEL = "bevel", e.ROUND = "round", e))(se || {}), Je = /* @__PURE__ */ ((e) => (e.BUTT = "butt", e.ROUND = "round", e.SQUARE = "square", e))(Je || {});
8679
+ var ae = /* @__PURE__ */ ((e) => (e.MITER = "miter", e.BEVEL = "bevel", e.ROUND = "round", e))(ae || {}), Je = /* @__PURE__ */ ((e) => (e.BUTT = "butt", e.ROUND = "round", e.SQUARE = "square", e))(Je || {});
8680
8680
  const kr = {
8681
8681
  adaptive: !0,
8682
8682
  maxLength: 10,
@@ -8695,12 +8695,12 @@ class Yo {
8695
8695
  const o = a[a.length - 2], h = a[a.length - 1] - r, c = o - t, f = i - r, u = n - t, d = Math.abs(h * u - c * f);
8696
8696
  if (d < 1e-8 || s === 0)
8697
8697
  return (a[a.length - 2] !== t || a[a.length - 1] !== r) && a.push(t, r), null;
8698
- const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _), T = h * (b + _), N = u * (y + v), A = f * (y + v), E = Math.atan2(T - S, w - x), O = Math.atan2(A - S, N - x);
8698
+ const p = h * h + c * c, m = f * f + u * u, g = h * f + c * u, y = s * Math.sqrt(p) / d, b = s * Math.sqrt(m) / d, _ = y * g / p, v = b * g / m, x = y * u + b * c, S = y * f + b * h, w = c * (b + _), E = h * (b + _), N = u * (y + v), A = f * (y + v), T = Math.atan2(E - S, w - x), O = Math.atan2(A - S, N - x);
8699
8699
  return {
8700
8700
  cx: x + t,
8701
8701
  cy: S + r,
8702
8702
  radius: s,
8703
- startAngle: E,
8703
+ startAngle: T,
8704
8704
  endAngle: O,
8705
8705
  anticlockwise: c * f > u * h
8706
8706
  };
@@ -8785,49 +8785,49 @@ function wy(e, t) {
8785
8785
  const c = t.points, f = n.length / 2;
8786
8786
  let u = n.length;
8787
8787
  const d = c.length / 2, p = s.width / 2, m = p * p, g = s.miterLimit * s.miterLimit;
8788
- let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v), T = y - _, N = 0, A = 0, E = Math.sqrt(w * w + T * T);
8789
- w /= E, T /= E, w *= p, T *= p;
8788
+ let y = n[0], b = n[1], _ = n[2], v = n[3], x = 0, S = 0, w = -(b - v), E = y - _, N = 0, A = 0, T = Math.sqrt(w * w + E * E);
8789
+ w /= T, E /= T, w *= p, E *= p;
8790
8790
  const O = s.alignment, R = (1 - O) * 2, C = O * 2;
8791
- l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b - T * (R - C) * 0.5, y - w * R, b - T * R, y + w * C, b + T * C, c, !0) + 2 : s.cap === Je.SQUARE && (u += Ko(y, b, w, T, R, C, !0, c))), c.push(y - w * R, b - T * R, y + w * C, b + T * C);
8791
+ l || (s.cap === Je.ROUND ? u += qe(y - w * (R - C) * 0.5, b - E * (R - C) * 0.5, y - w * R, b - E * R, y + w * C, b + E * C, c, !0) + 2 : s.cap === Je.SQUARE && (u += Ko(y, b, w, E, R, C, !0, c))), c.push(y - w * R, b - E * R, y + w * C, b + E * C);
8792
8792
  for (let D = 1; D < f - 1; ++D) {
8793
- y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, N = -(v - S), A = _ - x, E = Math.sqrt(N * N + A * A), N /= E, A /= E, N *= p, A *= p;
8793
+ y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), E = y - _, T = Math.sqrt(w * w + E * E), w /= T, E /= T, w *= p, E *= p, N = -(v - S), A = _ - x, T = Math.sqrt(N * N + A * A), N /= T, A /= T, N *= p, A *= p;
8794
8794
  const z = _ - y, $ = b - v, k = _ - x, I = S - v, P = z * k + $ * I, L = $ * k - I * z, j = L < 0;
8795
8795
  if (Math.abs(L) < 1e-3 * Math.abs(P)) {
8796
- c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), P >= 0 && (s.join === se.ROUND ? u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
8796
+ c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), P >= 0 && (s.join === ae.ROUND ? u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
8797
8797
  continue;
8798
8798
  }
8799
- const G = (-w + y) * (-T + v) - (-w + _) * (-T + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, at = Math.min(z * z + $ * $, k * k + I * I), lt = j ? R : C, It = at + lt * lt * m, St = H <= It;
8799
+ const G = (-w + y) * (-E + v) - (-w + _) * (-E + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, ot = Math.min(z * z + $ * $, k * k + I * I), ut = j ? R : C, It = ot + ut * ut * m, St = H <= It;
8800
8800
  let V = s.join;
8801
- if (V === se.MITER && H / m > g && (V = se.BEVEL), St)
8801
+ if (V === ae.MITER && H / m > g && (V = ae.BEVEL), St)
8802
8802
  switch (V) {
8803
- case se.MITER: {
8803
+ case ae.MITER: {
8804
8804
  c.push(X, K, tt, rt);
8805
8805
  break;
8806
8806
  }
8807
- case se.BEVEL: {
8808
- j ? c.push(X, K, _ + w * C, v + T * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - T * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
8807
+ case ae.BEVEL: {
8808
+ j ? c.push(X, K, _ + w * C, v + E * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - E * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
8809
8809
  break;
8810
8810
  }
8811
- case se.ROUND: {
8812
- j ? (c.push(X, K, _ + w * C, v + T * C), u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - T * R, tt, rt), u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
8811
+ case ae.ROUND: {
8812
+ j ? (c.push(X, K, _ + w * C, v + E * C), u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - E * R, tt, rt), u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
8813
8813
  break;
8814
8814
  }
8815
8815
  }
8816
8816
  else {
8817
- switch (c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), V) {
8818
- case se.MITER: {
8817
+ switch (c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), V) {
8818
+ case ae.MITER: {
8819
8819
  j ? c.push(tt, rt, tt, rt) : c.push(X, K, X, K), u += 2;
8820
8820
  break;
8821
8821
  }
8822
- case se.ROUND: {
8823
- j ? u += qe(_, v, _ + w * C, v + T * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - T * R, _ - N * R, v - A * R, c, !1) + 2;
8822
+ case ae.ROUND: {
8823
+ j ? u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 2;
8824
8824
  break;
8825
8825
  }
8826
8826
  }
8827
8827
  c.push(_ - N * R, v - A * R, _ + N * C, v + A * C), u += 2;
8828
8828
  }
8829
8829
  }
8830
- y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v), T = y - _, E = Math.sqrt(w * w + T * T), w /= E, T /= E, w *= p, T *= p, c.push(_ - w * R, v - T * R, _ + w * C, v + T * C), l || (s.cap === Je.ROUND ? u += qe(_ - w * (R - C) * 0.5, v - T * (R - C) * 0.5, _ - w * R, v - T * R, _ + w * C, v + T * C, c, !1) + 2 : s.cap === Je.SQUARE && (u += Ko(_, v, w, T, R, C, !1, c)));
8830
+ y = n[(f - 2) * 2], b = n[(f - 2) * 2 + 1], _ = n[(f - 1) * 2], v = n[(f - 1) * 2 + 1], w = -(b - v), E = y - _, T = Math.sqrt(w * w + E * E), w /= T, E /= T, w *= p, E *= p, c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), l || (s.cap === Je.ROUND ? u += qe(_ - w * (R - C) * 0.5, v - E * (R - C) * 0.5, _ - w * R, v - E * R, _ + w * C, v + E * C, c, !1) + 2 : s.cap === Je.SQUARE && (u += Ko(_, v, w, E, R, C, !1, c)));
8831
8831
  const F = t.indices, U = kr.epsilon * kr.epsilon;
8832
8832
  for (let D = d; D < u + d - 2; ++D)
8833
8833
  y = c[D * 2], b = c[D * 2 + 1], _ = c[(D + 1) * 2], v = c[(D + 1) * 2 + 1], x = c[(D + 2) * 2], S = c[(D + 2) * 2 + 1], !(Math.abs(y * (v - S) + _ * (S - b) + x * (b - v)) < U) && F.push(D, D + 1, D + 2);
@@ -9101,7 +9101,7 @@ class Ri {
9101
9101
  }
9102
9102
  class Aa extends Ri {
9103
9103
  constructor() {
9104
- super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Je.BUTT, this.join = se.MITER, this.miterLimit = 10;
9104
+ super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Je.BUTT, this.join = ae.MITER, this.miterLimit = 10;
9105
9105
  }
9106
9106
  clone() {
9107
9107
  const t = new Aa();
@@ -9113,7 +9113,7 @@ class Aa extends Ri {
9113
9113
  }
9114
9114
  const ms = {}, Kn = class extends ar {
9115
9115
  constructor(e = null) {
9116
- super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new Ri(), this._lineStyle = new Aa(), this._matrix = null, this._holeMode = !1, this.state = xi.for2d(), this._geometry = e || new ch(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Xt(16777215), this.blendMode = ot.NORMAL;
9116
+ super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new Ri(), this._lineStyle = new Aa(), this._matrix = null, this._holeMode = !1, this.state = xi.for2d(), this._geometry = e || new ch(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Xt(16777215), this.blendMode = lt.NORMAL;
9117
9117
  }
9118
9118
  get geometry() {
9119
9119
  return this._geometry;
@@ -9151,7 +9151,7 @@ const ms = {}, Kn = class extends ar {
9151
9151
  alignment: 0.5,
9152
9152
  native: !1,
9153
9153
  cap: Je.BUTT,
9154
- join: se.MITER,
9154
+ join: ae.MITER,
9155
9155
  miterLimit: 10
9156
9156
  };
9157
9157
  e = Object.assign(t, e), this.normalizeColor(e), this.currentPath && this.startPoly();
@@ -9314,7 +9314,7 @@ const ms = {}, Kn = class extends ar {
9314
9314
  const s = {
9315
9315
  tint: new Float32Array([1, 1, 1, 1]),
9316
9316
  translationMatrix: new Rt(),
9317
- default: fe.from({ uSamplers: i }, !0)
9317
+ default: de.from({ uSamplers: i }, !0)
9318
9318
  }, a = e.plugins[r]._shader.program;
9319
9319
  ms[r] = new mn(a, s);
9320
9320
  }
@@ -10437,7 +10437,7 @@ let Xy = class Qt extends Vy {
10437
10437
  function Wy(e, t, r, n) {
10438
10438
  for (const i in t) {
10439
10439
  const s = r[i], a = n[i], o = t[i];
10440
- s !== a && (s && e.off(o, s), a && e.on(o, a));
10440
+ s !== a && (s && e instanceof re.DisplayObject && e.off(o, s), a && e.on(o, a));
10441
10441
  }
10442
10442
  }
10443
10443
  const jn = {}, Yy = Rt.IDENTITY, Ky = {
@@ -10446,9 +10446,13 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
10446
10446
  }, Zy = Wh("Transformer", {
10447
10447
  create: (e) => new Xy(e),
10448
10448
  applyProps(e, t, r) {
10449
- if (Yh(e, t, r), Wy(e, Ky, t, r), r.cursors && Object.assign(e.cursors, r.cursors), e.group = r.group || [], e.boundingBoxes = r.boundingBoxes || "all", e.boxScalingEnabled = r.boxScalingEnabled === !0, e.boxScalingTolerance = r.boxScalingTolerance !== void 0 ? r.boxScalingTolerance : e.boxScalingTolerance, e.boxRotationEnabled = r.boxRotationEnabled === !0, e.boxRotationTolerance = r.boxRotationTolerance !== void 0 ? r.boxRotationTolerance : e.boxRotationTolerance, e.centeredScaling = r.centeredScaling, e.enabledHandles = r.enabledHandles, e.lockAspectRatio = r.lockAspectRatio, e.projectionTransform.copyFrom(r.projectionTransform || Yy), e.skewRadius = r.skewRadius || e.skewRadius, e.rotateEnabled = r.rotateEnabled !== !1, e.scaleEnabled = r.scaleEnabled !== !1, e.skewEnabled = r.skewEnabled === !0, e.translateEnabled = r.translateEnabled !== !1, e.transientGroupTilt = r.transientGroupTilt, t.handleConstructor !== r.handleConstructor)
10450
- throw new Error("Transformer does not support changing the TransformerHandleConstructor!");
10451
- t.rotationSnaps !== r.rotationSnaps && (e.rotationSnaps = r.rotationSnaps), t.rotationSnapTolerance !== r.rotationSnapTolerance && (e.rotationSnapTolerance = r.rotationSnapTolerance), t.skewSnaps !== r.skewSnaps && (e.skewSnaps = r.skewSnaps), t.skewSnapTolerance !== r.skewSnapTolerance && (e.skewSnapTolerance = r.skewSnapTolerance);
10449
+ if (Yh(e, t, r), Wy(e, Ky, t, r), r.cursors && Object.assign(e.cursors, r.cursors), e.group = r.group || [], e.boundingBoxes = r.boundingBoxes || "all", e.boxScalingEnabled = r.boxScalingEnabled === !0, e.boxScalingTolerance = r.boxScalingTolerance !== void 0 ? r.boxScalingTolerance : e.boxScalingTolerance, e.boxRotationEnabled = r.boxRotationEnabled === !0, e.boxRotationTolerance = r.boxRotationTolerance !== void 0 ? r.boxRotationTolerance : e.boxRotationTolerance, e.centeredScaling = !!r.centeredScaling, e.enabledHandles = r.enabledHandles, e.lockAspectRatio = !!r.lockAspectRatio, e.projectionTransform.copyFrom(
10450
+ r.projectionTransform || Yy
10451
+ ), e.skewRadius = r.skewRadius || e.skewRadius, e.rotateEnabled = r.rotateEnabled !== !1, e.scaleEnabled = r.scaleEnabled !== !1, e.skewEnabled = r.skewEnabled === !0, e.translateEnabled = r.translateEnabled !== !1, e.transientGroupTilt = !!r.transientGroupTilt, t.handleConstructor !== r.handleConstructor)
10452
+ throw new Error(
10453
+ "Transformer does not support changing the TransformerHandleConstructor!"
10454
+ );
10455
+ t.rotationSnaps !== r.rotationSnaps && (e.rotationSnaps = r.rotationSnaps || []), t.rotationSnapTolerance !== r.rotationSnapTolerance && (e.rotationSnapTolerance = r.rotationSnapTolerance || 0), t.skewSnaps !== r.skewSnaps && (e.skewSnaps = r.skewSnaps || []), t.skewSnapTolerance !== r.skewSnapTolerance && (e.skewSnapTolerance = r.skewSnapTolerance || 0);
10452
10456
  const n = t.handleStyle || jn, i = r.handleStyle || jn;
10453
10457
  (n.color !== i.color || n.outlineColor !== i.outlineColor || n.outlineThickness !== i.outlineThickness || n.radius !== i.radius || n.shape !== i.shape) && (e.handleStyle = i);
10454
10458
  const s = t.wireframeStyle || jn, a = r.wireframeStyle || jn;
@@ -10457,67 +10461,79 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
10457
10461
  }), Sa = ({
10458
10462
  pixiTransformerRef: e,
10459
10463
  imageRef: t,
10460
- transformCommit: r,
10461
- transformChange: n,
10462
- mouseoverEvent: i,
10463
- onDoubleClick: s,
10464
- uniqueId: a = ""
10464
+ isMounted: r,
10465
+ transformCommit: n,
10466
+ transformChange: i,
10467
+ mouseoverEvent: s,
10468
+ onDoubleClick: a,
10469
+ uniqueId: o = ""
10465
10470
  }) => {
10466
- console.log("transformer props", {
10467
- pixiTransformerRef: e,
10468
- imageRef: t,
10469
- transformCommit: r,
10470
- transformChange: n,
10471
- mouseoverEvent: i,
10472
- onDoubleClick: s,
10473
- uniqueId: a
10474
- });
10475
- const o = de.utils.string2hex("#F3C409"), l = de.utils.string2hex("#F3C409"), h = ut.useRef({
10471
+ const l = re.utils.string2hex("#F3C409"), h = re.utils.string2hex("#F3C409"), c = at.useRef({
10476
10472
  isDragging: !1
10477
- }), c = ut.useCallback(
10478
- (u) => {
10479
- h.current.isDragging = !0, n && n(u);
10473
+ }), f = at.useCallback(() => {
10474
+ s && !c.current.isDragging && s(!0);
10475
+ }, [s]), u = at.useCallback(() => {
10476
+ s && !c.current.isDragging && s(!1);
10477
+ }, [s]), d = at.useCallback(() => {
10478
+ c.current.isDragging = !0;
10479
+ }, []), p = at.useCallback(() => {
10480
+ c.current.isDragging = !1;
10481
+ }, []), m = at.useCallback(() => {
10482
+ c.current.isDragging = !1;
10483
+ }, []), g = at.useCallback(() => {
10484
+ console.log("dobule click in pixi transformer"), a && a({ uniqueId: o });
10485
+ }, [a]), y = at.useCallback(
10486
+ (_) => {
10487
+ c.current.isDragging = !0, i && i(_);
10480
10488
  },
10481
- [n]
10482
- ), f = ut.useCallback(() => {
10489
+ [i]
10490
+ ), b = at.useCallback(() => {
10483
10491
  if (t.current === null)
10484
10492
  return;
10485
- const u = t.current.x, d = t.current.y, p = t.current.width, m = t.current.height, g = t.current.rotation, y = [
10493
+ const _ = t.current.x, v = t.current.y, x = t.current.width, S = t.current.height, w = t.current.rotation, E = [
10486
10494
  t.current.scale.x,
10487
10495
  t.current.scale.y
10488
10496
  ];
10489
- r && r({
10490
- uniqueId: a,
10497
+ n && n({
10498
+ uniqueId: o,
10491
10499
  transformation: {
10492
- x: Math.round(u),
10493
- y: Math.round(d),
10494
- width: Math.round(Math.max(5, p)),
10495
- height: Math.round(Math.max(5, m)),
10496
- rotate: Math.round(g),
10497
- scale: y
10500
+ x: Math.round(_),
10501
+ y: Math.round(v),
10502
+ width: Math.round(Math.max(5, x)),
10503
+ height: Math.round(Math.max(5, S)),
10504
+ rotate: Math.round(w),
10505
+ scale: E
10498
10506
  }
10499
- }), h.current.isDragging = !1;
10500
- }, [r]);
10501
- return /* @__PURE__ */ ft.jsx(
10507
+ }), c.current.isDragging = !1;
10508
+ }, [n]);
10509
+ return at.useEffect(() => (e.current && (e.current.on("mouseover", f), e.current.on("mouseout", u), e.current.on("mousedown", d), e.current.on("mouseup", p), e.current.on("mouseupoutside", m), e.current.addListener("dblclick", g)), () => {
10510
+ e.current && (e.current.off("mouseover", f), e.current.off("mouseout", u), e.current.off("mousedown", d), e.current.off("mouseup", p), e.current.off(
10511
+ "mouseupoutside",
10512
+ m
10513
+ ), e.current.removeListener(
10514
+ "dblclick",
10515
+ g
10516
+ ));
10517
+ }), []), /* @__PURE__ */ ft.jsx(
10502
10518
  Zy,
10503
10519
  {
10504
10520
  ref: e,
10505
- group: [t.current],
10521
+ group: r ? [t.current] : [],
10506
10522
  rotateEnabled: !0,
10507
10523
  boxRotationEnabled: !0,
10508
10524
  centeredScaling: !0,
10509
10525
  boxScalingEnabled: !0,
10510
- wireframeStyle: { thickness: 1, color: l },
10526
+ wireframeStyle: { thickness: 1, color: h },
10511
10527
  lockAspectRatio: !0,
10512
10528
  scaleEnabled: !0,
10513
10529
  handleStyle: {
10514
10530
  // color: colorYellow,
10515
- outlineColor: o,
10531
+ outlineColor: l,
10516
10532
  shape: "circle",
10517
10533
  radius: 9
10518
10534
  },
10519
- transformchange: c,
10520
- transformcommit: f
10535
+ transformchange: y,
10536
+ transformcommit: b
10521
10537
  }
10522
10538
  );
10523
10539
  };
@@ -10559,7 +10575,7 @@ function em() {
10559
10575
  var ll = Ii.emitCustomEvent = tm;
10560
10576
  Ii.newCustomEventEmitter = em;
10561
10577
  var dn = Ii.useCustomEventListener = Jy;
10562
- const vn = ut.createContext({}), tr = {
10578
+ const vn = at.createContext({}), tr = {
10563
10579
  STOP: "GSAP_STOP",
10564
10580
  PAUSE: "GSAP_PAUSE",
10565
10581
  PLAY: "GSAP_PLAY",
@@ -10573,7 +10589,7 @@ const vn = ut.createContext({}), tr = {
10573
10589
  }, rA = ({
10574
10590
  children: e
10575
10591
  }) => {
10576
- const [t, r] = le(!1), [n, i] = le(!1), s = dt(), a = dt(), o = dt(1e-3);
10592
+ const [t, r] = ue(!1), [n, i] = ue(!1), s = dt(), a = dt(), o = dt(1e-3);
10577
10593
  Yl(() => (a.current = _e.context(() => {
10578
10594
  s.current && s.current.progress(0).kill(), s.current = _e.timeline({
10579
10595
  paused: !0,
@@ -10889,7 +10905,7 @@ function Yg(e) {
10889
10905
  }
10890
10906
  var Kg = Yg;
10891
10907
  const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Ma = (e) => {
10892
- const [t, r] = ut.useState(!1), [, n] = le(!1), [, i] = le(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
10908
+ const [t, r] = at.useState(!1), [, n] = ue(!1), [, i] = ue(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
10893
10909
  uniqueId: c,
10894
10910
  startAt: f,
10895
10911
  endAt: u,
@@ -10901,18 +10917,18 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10901
10917
  const {
10902
10918
  contrast: S = 1,
10903
10919
  saturation: w = 1,
10904
- brightness: T = 1,
10920
+ brightness: E = 1,
10905
10921
  alpha: N = 1,
10906
10922
  blurRadius: A = 0
10907
- } = b || {}, E = {
10908
- ...T > 1 && { brightness: T },
10923
+ } = b || {}, T = {
10924
+ ...E > 1 && { brightness: E },
10909
10925
  ...S > 1 && { contrast: S },
10910
10926
  ...w > 1 && { saturation: w },
10911
10927
  ...N !== 0 && { alpha: N }
10912
10928
  };
10913
- ut.useEffect(() => {
10929
+ at.useEffect(() => {
10914
10930
  s.current && r(!0);
10915
- }, []), ut.useEffect(() => {
10931
+ }, []), at.useEffect(() => {
10916
10932
  let U = _e.context(() => {
10917
10933
  });
10918
10934
  if (s.current && h.current) {
@@ -10939,26 +10955,19 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10939
10955
  }
10940
10956
  return () => U.revert();
10941
10957
  }, [_, f, u]);
10942
- const O = ut.useCallback(() => {
10958
+ const O = at.useCallback(() => {
10943
10959
  n(!0);
10944
- }, []), R = ut.useCallback(
10960
+ }, []), R = at.useCallback(
10945
10961
  (U) => {
10946
10962
  console.log("changeEnd", U), e.onAnchorTransformationEnd && (console.log("running onAnchorTransformationEnd"), e.onAnchorTransformationEnd(U));
10947
10963
  },
10948
10964
  []
10949
10965
  ), C = sa(Ft, {
10950
- ...A > 0 && { blur: de.filters.BlurFilter },
10951
- ...!ee(E) && { adjust: wa },
10952
- matrix: de.filters.ColorMatrixFilter
10966
+ ...A > 0 && { blur: re.filters.BlurFilter },
10967
+ ...!ee(T) && { adjust: wa },
10968
+ matrix: re.filters.ColorMatrixFilter
10953
10969
  }), F = (b == null ? void 0 : b.enabled) || v && v !== Ye.Normal;
10954
- return console.log(
10955
- "all render props",
10956
- l,
10957
- s,
10958
- o,
10959
- a,
10960
- F
10961
- ), /* @__PURE__ */ ft.jsxs(Ft, { ref: a, children: [
10970
+ return /* @__PURE__ */ ft.jsxs(Ft, { ref: a, children: [
10962
10971
  /* @__PURE__ */ ft.jsxs(
10963
10972
  Ft,
10964
10973
  {
@@ -10974,7 +10983,7 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10974
10983
  {
10975
10984
  scale: 1,
10976
10985
  blur: { blur: A, quality: 4 },
10977
- adjust: E,
10986
+ adjust: T,
10978
10987
  apply: ({ matrix: U }) => {
10979
10988
  v === Ye.BlackAndWhite ? U.desaturate() : v === Ye.Sepia ? U.sepia() : v === Ye.RetroVintage || v === Ye.NightVision ? U.negative() : v === Ye.Normal && U.reset();
10980
10989
  },
@@ -10990,11 +10999,12 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
10990
10999
  ]
10991
11000
  }
10992
11001
  ),
10993
- x && t && /* @__PURE__ */ ft.jsx(
11002
+ x && /* @__PURE__ */ ft.jsx(
10994
11003
  Sa,
10995
11004
  {
10996
11005
  pixiTransformerRef: l,
10997
11006
  imageRef: s,
11007
+ isMounted: t,
10998
11008
  transformCommit: R,
10999
11009
  transformChange: O,
11000
11010
  mouseoverEvent: i,
@@ -11425,27 +11435,27 @@ function s0(e, t, r) {
11425
11435
  }
11426
11436
  function El(e, t, r, n) {
11427
11437
  var i = [
11428
- ue(Math.round(e).toString(16)),
11429
- ue(Math.round(t).toString(16)),
11430
- ue(Math.round(r).toString(16))
11438
+ he(Math.round(e).toString(16)),
11439
+ he(Math.round(t).toString(16)),
11440
+ he(Math.round(r).toString(16))
11431
11441
  ];
11432
11442
  return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
11433
11443
  }
11434
11444
  function a0(e, t, r, n, i) {
11435
11445
  var s = [
11436
- ue(Math.round(e).toString(16)),
11437
- ue(Math.round(t).toString(16)),
11438
- ue(Math.round(r).toString(16)),
11439
- ue(Ah(n))
11446
+ he(Math.round(e).toString(16)),
11447
+ he(Math.round(t).toString(16)),
11448
+ he(Math.round(r).toString(16)),
11449
+ he(Ah(n))
11440
11450
  ];
11441
11451
  return i && s[0].charAt(0) == s[0].charAt(1) && s[1].charAt(0) == s[1].charAt(1) && s[2].charAt(0) == s[2].charAt(1) && s[3].charAt(0) == s[3].charAt(1) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) + s[3].charAt(0) : s.join("");
11442
11452
  }
11443
11453
  function Tl(e, t, r, n) {
11444
11454
  var i = [
11445
- ue(Ah(n)),
11446
- ue(Math.round(e).toString(16)),
11447
- ue(Math.round(t).toString(16)),
11448
- ue(Math.round(r).toString(16))
11455
+ he(Ah(n)),
11456
+ he(Math.round(e).toString(16)),
11457
+ he(Math.round(t).toString(16)),
11458
+ he(Math.round(r).toString(16))
11449
11459
  ];
11450
11460
  return i.join("");
11451
11461
  }
@@ -11740,7 +11750,7 @@ function _0(e) {
11740
11750
  function x0(e) {
11741
11751
  return typeof e == "string" && e.indexOf("%") != -1;
11742
11752
  }
11743
- function ue(e) {
11753
+ function he(e) {
11744
11754
  return e.length == 1 ? "0" + e : "" + e;
11745
11755
  }
11746
11756
  function Kr(e) {
@@ -11752,7 +11762,7 @@ function Ah(e) {
11752
11762
  function Sl(e) {
11753
11763
  return Yt(e) / 255;
11754
11764
  }
11755
- var ie = function() {
11765
+ var se = function() {
11756
11766
  var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", i = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
11757
11767
  return {
11758
11768
  CSS_UNIT: new RegExp(r),
@@ -11769,7 +11779,7 @@ var ie = function() {
11769
11779
  };
11770
11780
  }();
11771
11781
  function Te(e) {
11772
- return !!ie.CSS_UNIT.exec(e);
11782
+ return !!se.CSS_UNIT.exec(e);
11773
11783
  }
11774
11784
  function w0(e) {
11775
11785
  e = e.replace(t0, "").replace(e0, "").toLowerCase();
@@ -11779,24 +11789,24 @@ function w0(e) {
11779
11789
  else if (e == "transparent")
11780
11790
  return { r: 0, g: 0, b: 0, a: 0, format: "name" };
11781
11791
  var r;
11782
- return (r = ie.rgb.exec(e)) ? { r: r[1], g: r[2], b: r[3] } : (r = ie.rgba.exec(e)) ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ie.hsl.exec(e)) ? { h: r[1], s: r[2], l: r[3] } : (r = ie.hsla.exec(e)) ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ie.hsv.exec(e)) ? { h: r[1], s: r[2], v: r[3] } : (r = ie.hsva.exec(e)) ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ie.hex8.exec(e)) ? {
11792
+ return (r = se.rgb.exec(e)) ? { r: r[1], g: r[2], b: r[3] } : (r = se.rgba.exec(e)) ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = se.hsl.exec(e)) ? { h: r[1], s: r[2], l: r[3] } : (r = se.hsla.exec(e)) ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = se.hsv.exec(e)) ? { h: r[1], s: r[2], v: r[3] } : (r = se.hsva.exec(e)) ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = se.hex8.exec(e)) ? {
11783
11793
  r: Yt(r[1]),
11784
11794
  g: Yt(r[2]),
11785
11795
  b: Yt(r[3]),
11786
11796
  a: Sl(r[4]),
11787
11797
  format: t ? "name" : "hex8"
11788
- } : (r = ie.hex6.exec(e)) ? {
11798
+ } : (r = se.hex6.exec(e)) ? {
11789
11799
  r: Yt(r[1]),
11790
11800
  g: Yt(r[2]),
11791
11801
  b: Yt(r[3]),
11792
11802
  format: t ? "name" : "hex"
11793
- } : (r = ie.hex4.exec(e)) ? {
11803
+ } : (r = se.hex4.exec(e)) ? {
11794
11804
  r: Yt(r[1] + "" + r[1]),
11795
11805
  g: Yt(r[2] + "" + r[2]),
11796
11806
  b: Yt(r[3] + "" + r[3]),
11797
11807
  a: Sl(r[4] + "" + r[4]),
11798
11808
  format: t ? "name" : "hex8"
11799
- } : (r = ie.hex3.exec(e)) ? {
11809
+ } : (r = se.hex3.exec(e)) ? {
11800
11810
  r: Yt(r[1] + "" + r[1]),
11801
11811
  g: Yt(r[2] + "" + r[2]),
11802
11812
  b: Yt(r[3] + "" + r[3]),
@@ -11858,8 +11868,8 @@ var T0 = function() {
11858
11868
  }, S0 = function(t, r, n, i, s, a, o, l, h, c, f, u) {
11859
11869
  var d = Math.pow(s, 2), p = Math.pow(a, 2), m = Math.pow(f, 2), g = Math.pow(u, 2), y = d * p - d * g - p * m;
11860
11870
  y < 0 && (y = 0), y /= d * g + p * m, y = Math.sqrt(y) * (o === l ? -1 : 1);
11861
- var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a, T = (-f - b) / s, N = (-u - _) / a, A = Ol(1, 0, S, w), E = Ol(S, w, T, N);
11862
- return l === 0 && E > 0 && (E -= rn), l === 1 && E < 0 && (E += rn), [v, x, A, E];
11871
+ var b = y * s / a * u, _ = y * -a / s * f, v = c * b - h * _ + (t + n) / 2, x = h * b + c * _ + (r + i) / 2, S = (f - b) / s, w = (u - _) / a, E = (-f - b) / s, N = (-u - _) / a, A = Ol(1, 0, S, w), T = Ol(S, w, E, N);
11872
+ return l === 0 && T > 0 && (T -= rn), l === 1 && T < 0 && (T += rn), [v, x, A, T];
11863
11873
  }, Rl = function(t) {
11864
11874
  var r = t.px, n = t.py, i = t.cx, s = t.cy, a = t.rx, o = t.ry, l = t.xAxisRotation, h = l === void 0 ? 0 : l, c = t.largeArcFlag, f = c === void 0 ? 0 : c, u = t.sweepFlag, d = u === void 0 ? 0 : u, p = [];
11865
11875
  if (a === 0 || o === 0)
@@ -11870,12 +11880,12 @@ var T0 = function() {
11870
11880
  a = Math.abs(a), o = Math.abs(o);
11871
11881
  var _ = Math.pow(y, 2) / Math.pow(a, 2) + Math.pow(b, 2) / Math.pow(o, 2);
11872
11882
  _ > 1 && (a *= Math.sqrt(_), o *= Math.sqrt(_));
11873
- var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1], T = x[2], N = x[3], A = Math.abs(N) / (rn / 4);
11883
+ var v = S0(r, n, i, s, a, o, f, d, m, g, y, b), x = T0(v, 4), S = x[0], w = x[1], E = x[2], N = x[3], A = Math.abs(N) / (rn / 4);
11874
11884
  Math.abs(1 - A) < 1e-7 && (A = 1);
11875
- var E = Math.max(Math.ceil(A), 1);
11876
- N /= E;
11877
- for (var O = 0; O < E; O++)
11878
- p.push(A0(T, N)), T += N;
11885
+ var T = Math.max(Math.ceil(A), 1);
11886
+ N /= T;
11887
+ for (var O = 0; O < T; O++)
11888
+ p.push(A0(E, N)), E += N;
11879
11889
  return p.map(function(R) {
11880
11890
  var C = xs(R[0], a, o, g, m, S, w), F = C.x, U = C.y, D = xs(R[1], a, o, g, m, S, w), z = D.x, $ = D.y, k = xs(R[2], a, o, g, m, S, w), I = k.x, P = k.y;
11881
11891
  return { x1: F, y1: U, x2: z, y2: $, x: I, y: P };
@@ -12420,7 +12430,7 @@ function Il(e, t, r, n) {
12420
12430
  function H0(e, t, r, n, i, s, a, o, l, h) {
12421
12431
  var c = h * (e - r) / 2 + l * (t - n) / 2, f = -l * (e - r) / 2 + h * (t - n) / 2, u = a * a, d = o * o, p = c * c, m = f * f, g = u * d - u * m - d * p;
12422
12432
  g < 0 && (g = 0), g /= u * m + d * p, g = Math.sqrt(g) * (i === s ? -1 : 1);
12423
- var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a, T = (-f - b) / o, N = Il(1, 0, x, S), A = Il(x, S, w, T);
12433
+ var y = g * a / o * f, b = g * -o / a * c, _ = h * y - l * b + (e + r) / 2, v = l * y + h * b + (t + n) / 2, x = (c - y) / a, S = (f - b) / o, w = (-c - y) / a, E = (-f - b) / o, N = Il(1, 0, x, S), A = Il(x, S, w, E);
12424
12434
  return s === 0 && A > 0 && (A -= nn), s === 1 && A < 0 && (A += nn), [_, v, N, A];
12425
12435
  }
12426
12436
  function z0(e, t) {
@@ -12442,9 +12452,9 @@ var V0 = function(t, r, n, i, s, a, o, l, h) {
12442
12452
  g.push(z0(y, b)), y += b;
12443
12453
  return g.map(function(x) {
12444
12454
  for (var S = 0; S < x.length; S += 2) {
12445
- var w = x[S + 0], T = x[S + 1];
12446
- w *= o, T *= l;
12447
- var N = f * w - c * T, A = c * w + f * T;
12455
+ var w = x[S + 0], E = x[S + 1];
12456
+ w *= o, E *= l;
12457
+ var N = f * w - c * E, A = c * w + f * E;
12448
12458
  x[S + 0] = N + m[0], x[S + 1] = A + m[1];
12449
12459
  }
12450
12460
  return x;
@@ -12711,7 +12721,7 @@ Pt.prototype.unshort = function() {
12711
12721
  };
12712
12722
  var Q0 = Pt, J0 = Q0;
12713
12723
  const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12714
- const [t, r] = ut.useState(null), n = dt(null), i = dt(null), s = dt(null), {
12724
+ const [t, r] = at.useState(null), n = dt(null), i = dt(null), s = dt(null), {
12715
12725
  path: a,
12716
12726
  transformation: {
12717
12727
  x: o,
@@ -12731,11 +12741,11 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12731
12741
  mouseover: v,
12732
12742
  mouseout: x
12733
12743
  } = e, S = Kl();
12734
- return ut.useEffect(() => {
12735
- const w = tb(a).scale(5).translate(0, 0).toString(), T = `<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${c}">
12744
+ return at.useEffect(() => {
12745
+ const w = tb(a).scale(5).translate(0, 0).toString(), E = `<svg xmlns="http://www.w3.org/2000/svg" width="${h}" height="${c}">
12736
12746
  <path stroke="${d}" stroke-width="${p}" fill="${u}" d="${w}">
12737
12747
  </path>
12738
- </svg>`, N = new O0(T), A = S.renderer.generateTexture(N);
12748
+ </svg>`, N = new O0(E), A = S.renderer.generateTexture(N);
12739
12749
  return r(A), () => {
12740
12750
  };
12741
12751
  }, [S, a, d, p, u]), /* @__PURE__ */ ft.jsx(Ma, { ...e, children: /* @__PURE__ */ ft.jsx(Ft, { ref: i, children: /* @__PURE__ */ ft.jsx(Ft, { ref: s, children: t && /* @__PURE__ */ ft.jsx(
@@ -12768,9 +12778,9 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12768
12778
  loaded: !1,
12769
12779
  size: { width: 50, height: 50 },
12770
12780
  isDragging: !1
12771
- }, [, r] = ut.useState(!1), n = dt(t);
12781
+ }, [, r] = at.useState(!1), n = dt(t);
12772
12782
  console.log("allProps", e);
12773
- const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p = ut.useRef(null);
12783
+ const i = dt(null), s = dt(null), { tl: a, playerTimeRef: o } = yi(vn), { uniqueId: l, src: h, startAt: c, endAt: f, mute: u, speed: d } = e, p = at.useRef(null);
12774
12784
  dn(tr.PAUSE, () => {
12775
12785
  var v;
12776
12786
  console.log("pause event"), i.current && ((v = p.current) == null || v.pause(), n.current.isPlaying = !1);
@@ -12814,18 +12824,18 @@ const tb = /* @__PURE__ */ Mr(J0), iA = (e) => {
12814
12824
  });
12815
12825
  }
12816
12826
  return () => v.revert();
12817
- }, [c, f]), ut.useEffect(() => {
12827
+ }, [c, f]), at.useEffect(() => {
12818
12828
  i.current && r(!0);
12819
- }, []), ut.useEffect(() => {
12829
+ }, []), at.useEffect(() => {
12820
12830
  i.current && p.current && (console.log("soundref", p.current), n.current.mute = u, n.current.speed = d, console.log("containerAudio", p.current.volume), p.current.volume = u ? 0 : 1);
12821
12831
  }, [u, d]);
12822
- const _ = ut.useCallback(
12832
+ const _ = at.useCallback(
12823
12833
  (v, x) => {
12824
12834
  p.current = x, n.current.loaded = !0;
12825
12835
  },
12826
12836
  []
12827
12837
  );
12828
- return ut.useEffect(() => (ee(h) || (p.current = Jh.from({
12838
+ return at.useEffect(() => (ee(h) || (p.current = Jh.from({
12829
12839
  url: h,
12830
12840
  preload: !0,
12831
12841
  singleInstance: !0,
@@ -13775,12 +13785,12 @@ Object.defineProperty($i, "__esModule", {
13775
13785
  });
13776
13786
  $i.lzw = void 0;
13777
13787
  var gT = function(t, r, n) {
13778
- var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w, T, A, N, y = new Array(n), b = new Array(i), _ = new Array(i), v = new Array(i + 1);
13788
+ var i = 4096, s = -1, a = n, o, l, h, c, f, u, d, S, p, m, x, g, w, E, A, N, y = new Array(n), b = new Array(i), _ = new Array(i), v = new Array(i + 1);
13779
13789
  for (g = t, l = 1 << g, f = l + 1, o = l + 2, d = s, c = g + 1, h = (1 << c) - 1, p = 0; p < l; p++)
13780
13790
  b[p] = 0, _[p] = p;
13781
- var x, S, w, T, N, A;
13782
- for (x = S = w = T = N = A = 0, m = 0; m < a; ) {
13783
- if (T === 0) {
13791
+ var x, S, w, E, N, A;
13792
+ for (x = S = w = E = N = A = 0, m = 0; m < a; ) {
13793
+ if (E === 0) {
13784
13794
  if (S < c) {
13785
13795
  x += r[A] << S, S += 8, A++;
13786
13796
  continue;
@@ -13792,14 +13802,14 @@ var gT = function(t, r, n) {
13792
13802
  continue;
13793
13803
  }
13794
13804
  if (d == s) {
13795
- v[T++] = _[p], d = p, w = p;
13805
+ v[E++] = _[p], d = p, w = p;
13796
13806
  continue;
13797
13807
  }
13798
- for (u = p, p == o && (v[T++] = w, p = d); p > l; )
13799
- v[T++] = _[p], p = b[p];
13800
- w = _[p] & 255, v[T++] = w, o < i && (b[o] = d, _[o] = w, o++, !(o & h) && o < i && (c++, h += o)), d = u;
13808
+ for (u = p, p == o && (v[E++] = w, p = d); p > l; )
13809
+ v[E++] = _[p], p = b[p];
13810
+ w = _[p] & 255, v[E++] = w, o < i && (b[o] = d, _[o] = w, o++, !(o & h) && o < i && (c++, h += o)), d = u;
13801
13811
  }
13802
- T--, y[N++] = v[T], m++;
13812
+ E--, y[N++] = v[E], m++;
13803
13813
  }
13804
13814
  for (m = N; m < a; m++)
13805
13815
  y[m] = 0;
@@ -13936,10 +13946,10 @@ const kT = (e) => ({
13936
13946
  forwardRef: t,
13937
13947
  ...r
13938
13948
  }) => {
13939
- const n = ut.useRef(null);
13940
- return ut.useImperativeHandle(t, () => n.current, [
13949
+ const n = at.useRef(null);
13950
+ return at.useImperativeHandle(t, () => n.current, [
13941
13951
  n
13942
- ]), ut.useEffect(() => {
13952
+ ]), at.useEffect(() => {
13943
13953
  if (n.current === null)
13944
13954
  return;
13945
13955
  const i = n.current;
@@ -13952,10 +13962,10 @@ const kT = (e) => ({
13952
13962
  isPlaying: e
13953
13963
  }
13954
13964
  );
13955
- }, UT = ut.memo(DT), $T = sa(Ft, {
13956
- blur: de.filters.BlurFilter,
13965
+ }, UT = at.memo(DT), $T = sa(Ft, {
13966
+ blur: re.filters.BlurFilter,
13957
13967
  adjust: wa,
13958
- matrix: de.filters.ColorMatrixFilter
13968
+ matrix: re.filters.ColorMatrixFilter
13959
13969
  }), jT = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], GT = {
13960
13970
  isPlaying: !1,
13961
13971
  progress: 0,
@@ -13966,11 +13976,11 @@ const kT = (e) => ({
13966
13976
  size: { width: 50, height: 50 },
13967
13977
  isDragging: !1
13968
13978
  }, aA = (e) => {
13969
- const [t, r] = ut.useState([]), [, n] = ut.useState(0), [i, s] = ut.useState([]), [, a] = le(0), [, o] = le(!1), [l, h] = le(!1), [, c] = le(!1), [f, u] = IT({ autoPlay: !1 }), d = ut.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
13970
- uniqueId: T,
13979
+ const [t, r] = at.useState([]), [, n] = at.useState(0), [i, s] = at.useState([]), [, a] = ue(0), [, o] = ue(!1), [l, h] = ue(!1), [, c] = ue(!1), [f, u] = IT({ autoPlay: !1 }), d = at.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
13980
+ uniqueId: E,
13971
13981
  src: N,
13972
13982
  startAt: A,
13973
- endAt: E,
13983
+ endAt: T,
13974
13984
  initialAlpha: O,
13975
13985
  locked: R,
13976
13986
  loop: C,
@@ -13996,41 +14006,41 @@ const kT = (e) => ({
13996
14006
  applyTransformer: tt,
13997
14007
  onAnchorTransformationEnd: rt
13998
14008
  } = e, {
13999
- contrast: at = 1,
14000
- saturation: lt = 1,
14009
+ contrast: ot = 1,
14010
+ saturation: ut = 1,
14001
14011
  exposure: It = 1,
14002
14012
  blurRadius: St = 0,
14003
14013
  alpha: V = 1
14004
14014
  } = P || {}, W = {
14005
14015
  brightness: It,
14006
- contrast: at,
14007
- saturation: lt,
14016
+ contrast: ot,
14017
+ saturation: ut,
14008
14018
  alpha: V
14009
14019
  }, Q = Kl();
14010
14020
  BT(N, u), dn(tr.PAUSE, (_t) => {
14011
14021
  console.log("pause event", _t), p.current && (p.current.stop(), _.current.isPlaying = !1);
14012
14022
  });
14013
- const J = ut.useCallback(
14023
+ const J = at.useCallback(
14014
14024
  (_t) => {
14015
14025
  console.log("changeEnd", _t), rt && rt(_t);
14016
14026
  },
14017
14027
  []
14018
14028
  );
14019
- ut.useEffect(() => {
14029
+ at.useEffect(() => {
14020
14030
  if (!ee(x)) {
14021
- const _t = sT(x, (re) => {
14022
- const { data: qt, width: $a, height: zh } = re, Vh = new Uint8Array(qt);
14023
- return de.Texture.fromBuffer(Vh, $a, zh);
14031
+ const _t = sT(x, (ne) => {
14032
+ const { data: qt, width: $a, height: zh } = ne, Vh = new Uint8Array(qt);
14033
+ return re.Texture.fromBuffer(Vh, $a, zh);
14024
14034
  }), xt = _t.map(
14025
- (re, qt) => ({
14026
- texture: re,
14035
+ (ne, qt) => ({
14036
+ texture: ne,
14027
14037
  time: S[qt]
14028
14038
  })
14029
14039
  );
14030
14040
  r(_t), s(xt);
14031
14041
  let Mt = 0;
14032
- S.forEach((re) => {
14033
- Mt += re * 10;
14042
+ S.forEach((ne) => {
14043
+ Mt += ne * 10;
14034
14044
  }), n(Mt);
14035
14045
  }
14036
14046
  }, [x, S]);
@@ -14050,7 +14060,7 @@ const kT = (e) => ({
14050
14060
  });
14051
14061
  if (m.current && v.current) {
14052
14062
  const xt = {
14053
- duration: Number(E) - Number(A),
14063
+ duration: Number(T) - Number(A),
14054
14064
  onStart: Y,
14055
14065
  onComplete: ht,
14056
14066
  onStartParams: [A],
@@ -14060,32 +14070,32 @@ const kT = (e) => ({
14060
14070
  onUpdateParams: []
14061
14071
  }, Mt = Oa(I || "None");
14062
14072
  _t = _e.context(() => {
14063
- var re, qt;
14073
+ var ne, qt;
14064
14074
  ee(Mt.from) ? ee(Mt.to) ? ee(Mt.fromTo) ? v.current.to(m.current, { alpha: 1, duration: 0.01 }, A).from(y.current, { ...xt }, A).to(
14065
14075
  m.current,
14066
14076
  { alpha: 0, duration: 0.1 },
14067
- Number(E) - 0.1
14077
+ Number(T) - 0.1
14068
14078
  ) : v.current.fromTo(
14069
14079
  m.current,
14070
- (re = Mt.fromTo) == null ? void 0 : re.from,
14080
+ (ne = Mt.fromTo) == null ? void 0 : ne.from,
14071
14081
  (qt = Mt.fromTo) == null ? void 0 : qt.to,
14072
14082
  A
14073
- ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.to(
14083
+ ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2) : v.current.to(
14074
14084
  m.current,
14075
14085
  { alpha: 1, duration: 0.2, ...Mt.to },
14076
14086
  A
14077
- ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2) : v.current.from(m.current, { ...Mt.from }, A).to(y.current, { alpha: 1, duration: 0.2 }, A).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, E - 0.2);
14087
+ ).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2) : v.current.from(m.current, { ...Mt.from }, A).to(y.current, { alpha: 1, duration: 0.2 }, A).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2);
14078
14088
  });
14079
14089
  }
14080
14090
  return () => _t.revert();
14081
- }, [I, A, E]);
14082
- const Gt = ut.useCallback(() => {
14091
+ }, [I, A, T]);
14092
+ const Gt = at.useCallback(() => {
14083
14093
  h(!0);
14084
14094
  }, []);
14085
14095
  Q.ticker.add((_t) => {
14086
14096
  d.current && (d.current.rotation += 0.01 * _t, d.current.clear().lineStyle(4, 16777215, 1).moveTo(40, 0).arc(0, 0, 40, 0, Math.PI * 2 * 0.6, !1));
14087
14097
  });
14088
- const bt = ut.useCallback((_t) => {
14098
+ const bt = at.useCallback((_t) => {
14089
14099
  _t.clear();
14090
14100
  }, []);
14091
14101
  return (
@@ -14152,15 +14162,16 @@ const kT = (e) => ({
14152
14162
  ] })
14153
14163
  }
14154
14164
  ),
14155
- tt && w && /* @__PURE__ */ ft.jsx(
14165
+ tt && /* @__PURE__ */ ft.jsx(
14156
14166
  Sa,
14157
14167
  {
14158
14168
  pixiTransformerRef: b,
14159
14169
  imageRef: m,
14170
+ isMounted: w,
14160
14171
  transformCommit: J,
14161
14172
  transformChange: Gt,
14162
14173
  mouseoverEvent: c,
14163
- uniqueId: T
14174
+ uniqueId: E
14164
14175
  }
14165
14176
  )
14166
14177
  ] })
@@ -14563,21 +14574,21 @@ var Hh = { exports: {} };
14563
14574
  value: !0
14564
14575
  }), n.default = n.BlockEmbed = n.bubbleFormats = void 0;
14565
14576
  var s = function() {
14566
- function E(O, R) {
14577
+ function T(O, R) {
14567
14578
  for (var C = 0; C < R.length; C++) {
14568
14579
  var F = R[C];
14569
14580
  F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
14570
14581
  }
14571
14582
  }
14572
14583
  return function(O, R, C) {
14573
- return R && E(O.prototype, R), C && E(O, C), O;
14584
+ return R && T(O.prototype, R), C && T(O, C), O;
14574
14585
  };
14575
- }(), a = function E(O, R, C) {
14586
+ }(), a = function T(O, R, C) {
14576
14587
  O === null && (O = Function.prototype);
14577
14588
  var F = Object.getOwnPropertyDescriptor(O, R);
14578
14589
  if (F === void 0) {
14579
14590
  var U = Object.getPrototypeOf(O);
14580
- return U === null ? void 0 : E(U, R, C);
14591
+ return U === null ? void 0 : T(U, R, C);
14581
14592
  } else {
14582
14593
  if ("value" in F)
14583
14594
  return F.value;
@@ -14585,25 +14596,25 @@ var Hh = { exports: {} };
14585
14596
  return D === void 0 ? void 0 : D.call(C);
14586
14597
  }
14587
14598
  }, o = i(3), l = _(o), h = i(2), c = _(h), f = i(0), u = _(f), d = i(16), p = _(d), m = i(6), g = _(m), y = i(7), b = _(y);
14588
- function _(E) {
14589
- return E && E.__esModule ? E : { default: E };
14599
+ function _(T) {
14600
+ return T && T.__esModule ? T : { default: T };
14590
14601
  }
14591
- function v(E, O) {
14592
- if (!(E instanceof O))
14602
+ function v(T, O) {
14603
+ if (!(T instanceof O))
14593
14604
  throw new TypeError("Cannot call a class as a function");
14594
14605
  }
14595
- function x(E, O) {
14596
- if (!E)
14606
+ function x(T, O) {
14607
+ if (!T)
14597
14608
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
14598
- return O && (typeof O == "object" || typeof O == "function") ? O : E;
14609
+ return O && (typeof O == "object" || typeof O == "function") ? O : T;
14599
14610
  }
14600
- function S(E, O) {
14611
+ function S(T, O) {
14601
14612
  if (typeof O != "function" && O !== null)
14602
14613
  throw new TypeError("Super expression must either be null or a function, not " + typeof O);
14603
- E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
14614
+ T.prototype = Object.create(O && O.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(T, O) : T.__proto__ = O);
14604
14615
  }
14605
- var w = 1, T = function(E) {
14606
- S(O, E);
14616
+ var w = 1, E = function(T) {
14617
+ S(O, T);
14607
14618
  function O() {
14608
14619
  return v(this, O), x(this, (O.__proto__ || Object.getPrototypeOf(O)).apply(this, arguments));
14609
14620
  }
@@ -14640,9 +14651,9 @@ var Hh = { exports: {} };
14640
14651
  }
14641
14652
  }]), O;
14642
14653
  }(u.default.Embed);
14643
- T.scope = u.default.Scope.BLOCK_BLOT;
14644
- var N = function(E) {
14645
- S(O, E);
14654
+ E.scope = u.default.Scope.BLOCK_BLOT;
14655
+ var N = function(T) {
14656
+ S(O, T);
14646
14657
  function O(R) {
14647
14658
  v(this, O);
14648
14659
  var C = x(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R));
@@ -14727,11 +14738,11 @@ var Hh = { exports: {} };
14727
14738
  }]), O;
14728
14739
  }(u.default.Block);
14729
14740
  N.blotName = "block", N.tagName = "P", N.defaultChild = "break", N.allowedChildren = [g.default, u.default.Embed, b.default];
14730
- function A(E) {
14741
+ function A(T) {
14731
14742
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
14732
- return E == null || (typeof E.formats == "function" && (O = (0, l.default)(O, E.formats())), E.parent == null || E.parent.blotName == "scroll" || E.parent.statics.scope !== E.statics.scope) ? O : A(E.parent, O);
14743
+ return T == null || (typeof T.formats == "function" && (O = (0, l.default)(O, T.formats())), T.parent == null || T.parent.blotName == "scroll" || T.parent.statics.scope !== T.statics.scope) ? O : A(T.parent, O);
14733
14744
  }
14734
- n.bubbleFormats = A, n.BlockEmbed = T, n.default = N;
14745
+ n.bubbleFormats = A, n.BlockEmbed = E, n.default = N;
14735
14746
  },
14736
14747
  /* 5 */
14737
14748
  /***/
@@ -14780,11 +14791,11 @@ var Hh = { exports: {} };
14780
14791
  };
14781
14792
  }();
14782
14793
  i(50);
14783
- var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S), T = i(34), N = A(T);
14794
+ var l = i(2), h = A(l), c = i(14), f = A(c), u = i(8), d = A(u), p = i(9), m = A(p), g = i(0), y = A(g), b = i(15), _ = A(b), v = i(3), x = A(v), S = i(10), w = A(S), E = i(34), N = A(E);
14784
14795
  function A($) {
14785
14796
  return $ && $.__esModule ? $ : { default: $ };
14786
14797
  }
14787
- function E($, k, I) {
14798
+ function T($, k, I) {
14788
14799
  return k in $ ? Object.defineProperty($, k, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : $[k] = I, $;
14789
14800
  }
14790
14801
  function O($, k) {
@@ -14889,11 +14900,11 @@ var Hh = { exports: {} };
14889
14900
  if (G == null)
14890
14901
  return M;
14891
14902
  if (y.default.query(I, y.default.Scope.BLOCK))
14892
- M = L.editor.formatLine(G.index, G.length, E({}, I, P));
14903
+ M = L.editor.formatLine(G.index, G.length, T({}, I, P));
14893
14904
  else {
14894
14905
  if (G.length === 0)
14895
14906
  return L.selection.format(I, P), M;
14896
- M = L.editor.formatText(G.index, G.length, E({}, I, P));
14907
+ M = L.editor.formatText(G.index, G.length, T({}, I, P));
14897
14908
  }
14898
14909
  return L.setSelection(G, d.default.sources.SILENT), M;
14899
14910
  }, j);
@@ -15317,8 +15328,8 @@ var Hh = { exports: {} };
15317
15328
  } else {
15318
15329
  if ("value" in S)
15319
15330
  return S.value;
15320
- var T = S.get;
15321
- return T === void 0 ? void 0 : T.call(x);
15331
+ var E = S.get;
15332
+ return E === void 0 ? void 0 : E.call(x);
15322
15333
  }
15323
15334
  }, o = i(54), l = f(o), h = i(10), c = f(h);
15324
15335
  function f(b) {
@@ -15366,11 +15377,11 @@ var Hh = { exports: {} };
15366
15377
  }, {
15367
15378
  key: "handleDOM",
15368
15379
  value: function(x) {
15369
- for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0), T = 1; T < S; T++)
15370
- w[T - 1] = arguments[T];
15380
+ for (var S = arguments.length, w = Array(S > 1 ? S - 1 : 0), E = 1; E < S; E++)
15381
+ w[E - 1] = arguments[E];
15371
15382
  (this.listeners[x.type] || []).forEach(function(N) {
15372
- var A = N.node, E = N.handler;
15373
- (x.target === A || A.contains(x.target)) && E.apply(void 0, [x].concat(w));
15383
+ var A = N.node, T = N.handler;
15384
+ (x.target === A || A.contains(x.target)) && T.apply(void 0, [x].concat(w));
15374
15385
  });
15375
15386
  }
15376
15387
  }, {
@@ -15512,10 +15523,10 @@ var Hh = { exports: {} };
15512
15523
  value: !0
15513
15524
  }), n.default = n.Code = void 0;
15514
15525
  var s = function() {
15515
- function T(N, A) {
15516
- var E = [], O = !0, R = !1, C = void 0;
15526
+ function E(N, A) {
15527
+ var T = [], O = !0, R = !1, C = void 0;
15517
15528
  try {
15518
- for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
15529
+ for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (T.push(U.value), !(A && T.length === A)); O = !0)
15519
15530
  ;
15520
15531
  } catch (D) {
15521
15532
  R = !0, C = D;
@@ -15527,145 +15538,145 @@ var Hh = { exports: {} };
15527
15538
  throw C;
15528
15539
  }
15529
15540
  }
15530
- return E;
15541
+ return T;
15531
15542
  }
15532
15543
  return function(N, A) {
15533
15544
  if (Array.isArray(N))
15534
15545
  return N;
15535
15546
  if (Symbol.iterator in Object(N))
15536
- return T(N, A);
15547
+ return E(N, A);
15537
15548
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
15538
15549
  };
15539
15550
  }(), a = function() {
15540
- function T(N, A) {
15541
- for (var E = 0; E < A.length; E++) {
15542
- var O = A[E];
15551
+ function E(N, A) {
15552
+ for (var T = 0; T < A.length; T++) {
15553
+ var O = A[T];
15543
15554
  O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
15544
15555
  }
15545
15556
  }
15546
- return function(N, A, E) {
15547
- return A && T(N.prototype, A), E && T(N, E), N;
15557
+ return function(N, A, T) {
15558
+ return A && E(N.prototype, A), T && E(N, T), N;
15548
15559
  };
15549
- }(), o = function T(N, A, E) {
15560
+ }(), o = function E(N, A, T) {
15550
15561
  N === null && (N = Function.prototype);
15551
15562
  var O = Object.getOwnPropertyDescriptor(N, A);
15552
15563
  if (O === void 0) {
15553
15564
  var R = Object.getPrototypeOf(N);
15554
- return R === null ? void 0 : T(R, A, E);
15565
+ return R === null ? void 0 : E(R, A, T);
15555
15566
  } else {
15556
15567
  if ("value" in O)
15557
15568
  return O.value;
15558
15569
  var C = O.get;
15559
- return C === void 0 ? void 0 : C.call(E);
15570
+ return C === void 0 ? void 0 : C.call(T);
15560
15571
  }
15561
15572
  }, l = i(2), h = b(l), c = i(0), f = b(c), u = i(4), d = b(u), p = i(6), m = b(p), g = i(7), y = b(g);
15562
- function b(T) {
15563
- return T && T.__esModule ? T : { default: T };
15573
+ function b(E) {
15574
+ return E && E.__esModule ? E : { default: E };
15564
15575
  }
15565
- function _(T, N) {
15566
- if (!(T instanceof N))
15576
+ function _(E, N) {
15577
+ if (!(E instanceof N))
15567
15578
  throw new TypeError("Cannot call a class as a function");
15568
15579
  }
15569
- function v(T, N) {
15570
- if (!T)
15580
+ function v(E, N) {
15581
+ if (!E)
15571
15582
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15572
- return N && (typeof N == "object" || typeof N == "function") ? N : T;
15583
+ return N && (typeof N == "object" || typeof N == "function") ? N : E;
15573
15584
  }
15574
- function x(T, N) {
15585
+ function x(E, N) {
15575
15586
  if (typeof N != "function" && N !== null)
15576
15587
  throw new TypeError("Super expression must either be null or a function, not " + typeof N);
15577
- T.prototype = Object.create(N && N.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), N && (Object.setPrototypeOf ? Object.setPrototypeOf(T, N) : T.__proto__ = N);
15588
+ E.prototype = Object.create(N && N.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), N && (Object.setPrototypeOf ? Object.setPrototypeOf(E, N) : E.__proto__ = N);
15578
15589
  }
15579
- var S = function(T) {
15580
- x(N, T);
15590
+ var S = function(E) {
15591
+ x(N, E);
15581
15592
  function N() {
15582
15593
  return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
15583
15594
  }
15584
15595
  return N;
15585
15596
  }(m.default);
15586
15597
  S.blotName = "code", S.tagName = "CODE";
15587
- var w = function(T) {
15588
- x(N, T);
15598
+ var w = function(E) {
15599
+ x(N, E);
15589
15600
  function N() {
15590
15601
  return _(this, N), v(this, (N.__proto__ || Object.getPrototypeOf(N)).apply(this, arguments));
15591
15602
  }
15592
15603
  return a(N, [{
15593
15604
  key: "delta",
15594
15605
  value: function() {
15595
- var E = this, O = this.domNode.textContent;
15606
+ var T = this, O = this.domNode.textContent;
15596
15607
  return O.endsWith(`
15597
15608
  `) && (O = O.slice(0, -1)), O.split(`
15598
15609
  `).reduce(function(R, C) {
15599
15610
  return R.insert(C).insert(`
15600
- `, E.formats());
15611
+ `, T.formats());
15601
15612
  }, new h.default());
15602
15613
  }
15603
15614
  }, {
15604
15615
  key: "format",
15605
- value: function(E, O) {
15606
- if (!(E === this.statics.blotName && O)) {
15616
+ value: function(T, O) {
15617
+ if (!(T === this.statics.blotName && O)) {
15607
15618
  var R = this.descendant(y.default, this.length() - 1), C = s(R, 1), F = C[0];
15608
- F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this, E, O);
15619
+ F != null && F.deleteAt(F.length() - 1, 1), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "format", this).call(this, T, O);
15609
15620
  }
15610
15621
  }
15611
15622
  }, {
15612
15623
  key: "formatAt",
15613
- value: function(E, O, R, C) {
15624
+ value: function(T, O, R, C) {
15614
15625
  if (O !== 0 && !(f.default.query(R, f.default.Scope.BLOCK) == null || R === this.statics.blotName && C === this.statics.formats(this.domNode))) {
15615
- var F = this.newlineIndex(E);
15616
- if (!(F < 0 || F >= E + O)) {
15617
- var U = this.newlineIndex(E, !0) + 1, D = F - U + 1, z = this.isolate(U, D), $ = z.next;
15618
- z.format(R, C), $ instanceof N && $.formatAt(0, E - U + O - D, R, C);
15626
+ var F = this.newlineIndex(T);
15627
+ if (!(F < 0 || F >= T + O)) {
15628
+ var U = this.newlineIndex(T, !0) + 1, D = F - U + 1, z = this.isolate(U, D), $ = z.next;
15629
+ z.format(R, C), $ instanceof N && $.formatAt(0, T - U + O - D, R, C);
15619
15630
  }
15620
15631
  }
15621
15632
  }
15622
15633
  }, {
15623
15634
  key: "insertAt",
15624
- value: function(E, O, R) {
15635
+ value: function(T, O, R) {
15625
15636
  if (R == null) {
15626
- var C = this.descendant(y.default, E), F = s(C, 2), U = F[0], D = F[1];
15637
+ var C = this.descendant(y.default, T), F = s(C, 2), U = F[0], D = F[1];
15627
15638
  U.insertAt(D, O);
15628
15639
  }
15629
15640
  }
15630
15641
  }, {
15631
15642
  key: "length",
15632
15643
  value: function() {
15633
- var E = this.domNode.textContent.length;
15644
+ var T = this.domNode.textContent.length;
15634
15645
  return this.domNode.textContent.endsWith(`
15635
- `) ? E : E + 1;
15646
+ `) ? T : T + 1;
15636
15647
  }
15637
15648
  }, {
15638
15649
  key: "newlineIndex",
15639
- value: function(E) {
15650
+ value: function(T) {
15640
15651
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
15641
15652
  if (O)
15642
- return this.domNode.textContent.slice(0, E).lastIndexOf(`
15653
+ return this.domNode.textContent.slice(0, T).lastIndexOf(`
15643
15654
  `);
15644
- var R = this.domNode.textContent.slice(E).indexOf(`
15655
+ var R = this.domNode.textContent.slice(T).indexOf(`
15645
15656
  `);
15646
- return R > -1 ? E + R : -1;
15657
+ return R > -1 ? T + R : -1;
15647
15658
  }
15648
15659
  }, {
15649
15660
  key: "optimize",
15650
- value: function(E) {
15661
+ value: function(T) {
15651
15662
  this.domNode.textContent.endsWith(`
15652
15663
  `) || this.appendChild(f.default.create("text", `
15653
- `)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this, E);
15664
+ `)), o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "optimize", this).call(this, T);
15654
15665
  var O = this.next;
15655
- O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(E), O.moveChildren(this), O.remove());
15666
+ O != null && O.prev === this && O.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === O.statics.formats(O.domNode) && (O.optimize(T), O.moveChildren(this), O.remove());
15656
15667
  }
15657
15668
  }, {
15658
15669
  key: "replace",
15659
- value: function(E) {
15660
- o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this, E), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O) {
15670
+ value: function(T) {
15671
+ o(N.prototype.__proto__ || Object.getPrototypeOf(N.prototype), "replace", this).call(this, T), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O) {
15661
15672
  var R = f.default.find(O);
15662
15673
  R == null ? O.parentNode.removeChild(O) : R instanceof f.default.Embed ? R.remove() : R.unwrap();
15663
15674
  });
15664
15675
  }
15665
15676
  }], [{
15666
15677
  key: "create",
15667
- value: function(E) {
15668
- var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this, E);
15678
+ value: function(T) {
15679
+ var O = o(N.__proto__ || Object.getPrototypeOf(N), "create", this).call(this, T);
15669
15680
  return O.setAttribute("spellcheck", !1), O;
15670
15681
  }
15671
15682
  }, {
@@ -15722,7 +15733,7 @@ var Hh = { exports: {} };
15722
15733
  return function(k, I, P) {
15723
15734
  return I && $(k.prototype, I), P && $(k, P), k;
15724
15735
  };
15725
- }(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S), T = i(11), N = O(T), A = i(3), E = O(A);
15736
+ }(), l = i(2), h = O(l), c = i(20), f = O(c), u = i(0), d = O(u), p = i(13), m = O(p), g = i(24), y = O(g), b = i(4), _ = O(b), v = i(16), x = O(v), S = i(21), w = O(S), E = i(11), N = O(E), A = i(3), T = O(A);
15726
15737
  function O($) {
15727
15738
  return $ && $.__esModule ? $ : { default: $ };
15728
15739
  }
@@ -15751,12 +15762,12 @@ var Hh = { exports: {} };
15751
15762
  H.endsWith(`
15752
15763
  `) && L && (L = !1, H = H.slice(0, -1)), G >= j && !H.endsWith(`
15753
15764
  `) && (L = !0), P.scroll.insertAt(G, H);
15754
- var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1], at = (0, E.default)({}, (0, b.bubbleFormats)(tt));
15765
+ var X = P.scroll.line(G), K = a(X, 2), tt = K[0], rt = K[1], ot = (0, T.default)({}, (0, b.bubbleFormats)(tt));
15755
15766
  if (tt instanceof _.default) {
15756
- var lt = tt.descendant(d.default.Leaf, rt), It = a(lt, 1), St = It[0];
15757
- at = (0, E.default)(at, (0, b.bubbleFormats)(St));
15767
+ var ut = tt.descendant(d.default.Leaf, rt), It = a(ut, 1), St = It[0];
15768
+ ot = (0, T.default)(ot, (0, b.bubbleFormats)(St));
15758
15769
  }
15759
- q = f.default.attributes.diff(at, q) || {};
15770
+ q = f.default.attributes.diff(ot, q) || {};
15760
15771
  } else if (s(M.insert) === "object") {
15761
15772
  var V = Object.keys(M.insert)[0];
15762
15773
  if (V == null)
@@ -15836,7 +15847,7 @@ var Hh = { exports: {} };
15836
15847
  }
15837
15848
  return B;
15838
15849
  });
15839
- return E.default.apply(E.default, G);
15850
+ return T.default.apply(T.default, G);
15840
15851
  }
15841
15852
  }, {
15842
15853
  key: "getText",
@@ -15925,10 +15936,10 @@ var Hh = { exports: {} };
15925
15936
  value: !0
15926
15937
  }), n.default = n.Range = void 0;
15927
15938
  var s = function() {
15928
- function T(N, A) {
15929
- var E = [], O = !0, R = !1, C = void 0;
15939
+ function E(N, A) {
15940
+ var T = [], O = !0, R = !1, C = void 0;
15930
15941
  try {
15931
- for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (E.push(U.value), !(A && E.length === A)); O = !0)
15942
+ for (var F = N[Symbol.iterator](), U; !(O = (U = F.next()).done) && (T.push(U.value), !(A && T.length === A)); O = !0)
15932
15943
  ;
15933
15944
  } catch (D) {
15934
15945
  R = !0, C = D;
@@ -15940,57 +15951,57 @@ var Hh = { exports: {} };
15940
15951
  throw C;
15941
15952
  }
15942
15953
  }
15943
- return E;
15954
+ return T;
15944
15955
  }
15945
15956
  return function(N, A) {
15946
15957
  if (Array.isArray(N))
15947
15958
  return N;
15948
15959
  if (Symbol.iterator in Object(N))
15949
- return T(N, A);
15960
+ return E(N, A);
15950
15961
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
15951
15962
  };
15952
15963
  }(), a = function() {
15953
- function T(N, A) {
15954
- for (var E = 0; E < A.length; E++) {
15955
- var O = A[E];
15964
+ function E(N, A) {
15965
+ for (var T = 0; T < A.length; T++) {
15966
+ var O = A[T];
15956
15967
  O.enumerable = O.enumerable || !1, O.configurable = !0, "value" in O && (O.writable = !0), Object.defineProperty(N, O.key, O);
15957
15968
  }
15958
15969
  }
15959
- return function(N, A, E) {
15960
- return A && T(N.prototype, A), E && T(N, E), N;
15970
+ return function(N, A, T) {
15971
+ return A && E(N.prototype, A), T && E(N, T), N;
15961
15972
  };
15962
15973
  }(), o = i(0), l = y(o), h = i(21), c = y(h), f = i(11), u = y(f), d = i(8), p = y(d), m = i(10), g = y(m);
15963
- function y(T) {
15964
- return T && T.__esModule ? T : { default: T };
15974
+ function y(E) {
15975
+ return E && E.__esModule ? E : { default: E };
15965
15976
  }
15966
- function b(T) {
15967
- if (Array.isArray(T)) {
15968
- for (var N = 0, A = Array(T.length); N < T.length; N++)
15969
- A[N] = T[N];
15977
+ function b(E) {
15978
+ if (Array.isArray(E)) {
15979
+ for (var N = 0, A = Array(E.length); N < E.length; N++)
15980
+ A[N] = E[N];
15970
15981
  return A;
15971
15982
  } else
15972
- return Array.from(T);
15983
+ return Array.from(E);
15973
15984
  }
15974
- function _(T, N) {
15975
- if (!(T instanceof N))
15985
+ function _(E, N) {
15986
+ if (!(E instanceof N))
15976
15987
  throw new TypeError("Cannot call a class as a function");
15977
15988
  }
15978
- var v = (0, g.default)("quill:selection"), x = function T(N) {
15989
+ var v = (0, g.default)("quill:selection"), x = function E(N) {
15979
15990
  var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
15980
- _(this, T), this.index = N, this.length = A;
15991
+ _(this, E), this.index = N, this.length = A;
15981
15992
  }, S = function() {
15982
- function T(N, A) {
15983
- var E = this;
15984
- _(this, T), this.emitter = A, this.scroll = N, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = l.default.create("cursor", this), this.lastRange = this.savedRange = new x(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
15985
- E.mouseDown || setTimeout(E.update.bind(E, p.default.sources.USER), 1);
15993
+ function E(N, A) {
15994
+ var T = this;
15995
+ _(this, E), this.emitter = A, this.scroll = N, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = l.default.create("cursor", this), this.lastRange = this.savedRange = new x(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
15996
+ T.mouseDown || setTimeout(T.update.bind(T, p.default.sources.USER), 1);
15986
15997
  }), this.emitter.on(p.default.events.EDITOR_CHANGE, function(O, R) {
15987
- O === p.default.events.TEXT_CHANGE && R.length() > 0 && E.update(p.default.sources.SILENT);
15998
+ O === p.default.events.TEXT_CHANGE && R.length() > 0 && T.update(p.default.sources.SILENT);
15988
15999
  }), this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE, function() {
15989
- if (E.hasFocus()) {
15990
- var O = E.getNativeRange();
15991
- O != null && O.start.node !== E.cursor.textNode && E.emitter.once(p.default.events.SCROLL_UPDATE, function() {
16000
+ if (T.hasFocus()) {
16001
+ var O = T.getNativeRange();
16002
+ O != null && O.start.node !== T.cursor.textNode && T.emitter.once(p.default.events.SCROLL_UPDATE, function() {
15992
16003
  try {
15993
- E.setNativeRange(O.start.node, O.start.offset, O.end.node, O.end.offset);
16004
+ T.setNativeRange(O.start.node, O.start.offset, O.end.node, O.end.offset);
15994
16005
  } catch {
15995
16006
  }
15996
16007
  });
@@ -15998,11 +16009,11 @@ var Hh = { exports: {} };
15998
16009
  }), this.emitter.on(p.default.events.SCROLL_OPTIMIZE, function(O, R) {
15999
16010
  if (R.range) {
16000
16011
  var C = R.range, F = C.startNode, U = C.startOffset, D = C.endNode, z = C.endOffset;
16001
- E.setNativeRange(F, U, D, z);
16012
+ T.setNativeRange(F, U, D, z);
16002
16013
  }
16003
16014
  }), this.update(p.default.sources.SILENT);
16004
16015
  }
16005
- return a(T, [{
16016
+ return a(E, [{
16006
16017
  key: "handleComposition",
16007
16018
  value: function() {
16008
16019
  var A = this;
@@ -16010,11 +16021,11 @@ var Hh = { exports: {} };
16010
16021
  A.composing = !0;
16011
16022
  }), this.root.addEventListener("compositionend", function() {
16012
16023
  if (A.composing = !1, A.cursor.parent) {
16013
- var E = A.cursor.restore();
16014
- if (!E)
16024
+ var T = A.cursor.restore();
16025
+ if (!T)
16015
16026
  return;
16016
16027
  setTimeout(function() {
16017
- A.setNativeRange(E.startNode, E.startOffset, E.endNode, E.endOffset);
16028
+ A.setNativeRange(T.startNode, T.startOffset, T.endNode, T.endOffset);
16018
16029
  }, 1);
16019
16030
  }
16020
16031
  });
@@ -16036,7 +16047,7 @@ var Hh = { exports: {} };
16036
16047
  }
16037
16048
  }, {
16038
16049
  key: "format",
16039
- value: function(A, E) {
16050
+ value: function(A, T) {
16040
16051
  if (!(this.scroll.whitelist != null && !this.scroll.whitelist[A])) {
16041
16052
  this.scroll.update();
16042
16053
  var O = this.getNativeRange();
@@ -16052,24 +16063,24 @@ var Hh = { exports: {} };
16052
16063
  R.insertBefore(this.cursor, O.start.node);
16053
16064
  this.cursor.attach();
16054
16065
  }
16055
- this.cursor.format(A, E), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
16066
+ this.cursor.format(A, T), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
16056
16067
  }
16057
16068
  }
16058
16069
  }
16059
16070
  }, {
16060
16071
  key: "getBounds",
16061
16072
  value: function(A) {
16062
- var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, O = this.scroll.length();
16063
- A = Math.min(A, O - 1), E = Math.min(A + E, O - 1) - A;
16073
+ var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, O = this.scroll.length();
16074
+ A = Math.min(A, O - 1), T = Math.min(A + T, O - 1) - A;
16064
16075
  var R = void 0, C = this.scroll.leaf(A), F = s(C, 2), U = F[0], D = F[1];
16065
16076
  if (U == null)
16066
16077
  return null;
16067
16078
  var z = U.position(D, !0), $ = s(z, 2);
16068
16079
  R = $[0], D = $[1];
16069
16080
  var k = document.createRange();
16070
- if (E > 0) {
16081
+ if (T > 0) {
16071
16082
  k.setStart(R, D);
16072
- var I = this.scroll.leaf(A + E), P = s(I, 2);
16083
+ var I = this.scroll.leaf(A + T), P = s(I, 2);
16073
16084
  if (U = P[0], D = P[1], U == null)
16074
16085
  return null;
16075
16086
  var L = U.position(D, !0), j = s(L, 2);
@@ -16092,10 +16103,10 @@ var Hh = { exports: {} };
16092
16103
  var A = document.getSelection();
16093
16104
  if (A == null || A.rangeCount <= 0)
16094
16105
  return null;
16095
- var E = A.getRangeAt(0);
16096
- if (E == null)
16106
+ var T = A.getRangeAt(0);
16107
+ if (T == null)
16097
16108
  return null;
16098
- var O = this.normalizeNative(E);
16109
+ var O = this.normalizeNative(T);
16099
16110
  return v.info("getNativeRange", O), O;
16100
16111
  }
16101
16112
  }, {
@@ -16104,8 +16115,8 @@ var Hh = { exports: {} };
16104
16115
  var A = this.getNativeRange();
16105
16116
  if (A == null)
16106
16117
  return [null, null];
16107
- var E = this.normalizedToRange(A);
16108
- return [E, A];
16118
+ var T = this.normalizedToRange(A);
16119
+ return [T, A];
16109
16120
  }
16110
16121
  }, {
16111
16122
  key: "hasFocus",
@@ -16115,10 +16126,10 @@ var Hh = { exports: {} };
16115
16126
  }, {
16116
16127
  key: "normalizedToRange",
16117
16128
  value: function(A) {
16118
- var E = this, O = [[A.start.node, A.start.offset]];
16129
+ var T = this, O = [[A.start.node, A.start.offset]];
16119
16130
  A.native.collapsed || O.push([A.end.node, A.end.offset]);
16120
16131
  var R = O.map(function(U) {
16121
- var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(E.scroll);
16132
+ var D = s(U, 2), z = D[0], $ = D[1], k = l.default.find(z, !0), I = k.offset(T.scroll);
16122
16133
  return $ === 0 ? I : k instanceof l.default.Container ? I + k.length() : I + k.index(z, $);
16123
16134
  }), C = Math.min(Math.max.apply(Math, b(R)), this.scroll.length() - 1), F = Math.min.apply(Math, [C].concat(b(R)));
16124
16135
  return new x(F, C - F);
@@ -16128,12 +16139,12 @@ var Hh = { exports: {} };
16128
16139
  value: function(A) {
16129
16140
  if (!w(this.root, A.startContainer) || !A.collapsed && !w(this.root, A.endContainer))
16130
16141
  return null;
16131
- var E = {
16142
+ var T = {
16132
16143
  start: { node: A.startContainer, offset: A.startOffset },
16133
16144
  end: { node: A.endContainer, offset: A.endOffset },
16134
16145
  native: A
16135
16146
  };
16136
- return [E.start, E.end].forEach(function(O) {
16147
+ return [T.start, T.end].forEach(function(O) {
16137
16148
  for (var R = O.node, C = O.offset; !(R instanceof Text) && R.childNodes.length > 0; )
16138
16149
  if (R.childNodes.length > C)
16139
16150
  R = R.childNodes[C], C = 0;
@@ -16142,28 +16153,28 @@ var Hh = { exports: {} };
16142
16153
  else
16143
16154
  break;
16144
16155
  O.node = R, O.offset = C;
16145
- }), E;
16156
+ }), T;
16146
16157
  }
16147
16158
  }, {
16148
16159
  key: "rangeToNative",
16149
16160
  value: function(A) {
16150
- var E = this, O = A.collapsed ? [A.index] : [A.index, A.index + A.length], R = [], C = this.scroll.length();
16161
+ var T = this, O = A.collapsed ? [A.index] : [A.index, A.index + A.length], R = [], C = this.scroll.length();
16151
16162
  return O.forEach(function(F, U) {
16152
16163
  F = Math.min(C - 1, F);
16153
- var D = void 0, z = E.scroll.leaf(F), $ = s(z, 2), k = $[0], I = $[1], P = k.position(I, U !== 0), L = s(P, 2);
16164
+ var D = void 0, z = T.scroll.leaf(F), $ = s(z, 2), k = $[0], I = $[1], P = k.position(I, U !== 0), L = s(P, 2);
16154
16165
  D = L[0], I = L[1], R.push(D, I);
16155
16166
  }), R.length < 2 && (R = R.concat(R)), R;
16156
16167
  }
16157
16168
  }, {
16158
16169
  key: "scrollIntoView",
16159
16170
  value: function(A) {
16160
- var E = this.lastRange;
16161
- if (E != null) {
16162
- var O = this.getBounds(E.index, E.length);
16171
+ var T = this.lastRange;
16172
+ if (T != null) {
16173
+ var O = this.getBounds(T.index, T.length);
16163
16174
  if (O != null) {
16164
- var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(E.index, R)), F = s(C, 1), U = F[0], D = U;
16165
- if (E.length > 0) {
16166
- var z = this.scroll.line(Math.min(E.index + E.length, R)), $ = s(z, 1);
16175
+ var R = this.scroll.length() - 1, C = this.scroll.line(Math.min(T.index, R)), F = s(C, 1), U = F[0], D = U;
16176
+ if (T.length > 0) {
16177
+ var z = this.scroll.line(Math.min(T.index + T.length, R)), $ = s(z, 1);
16167
16178
  D = $[0];
16168
16179
  }
16169
16180
  if (!(U == null || D == null)) {
@@ -16175,18 +16186,18 @@ var Hh = { exports: {} };
16175
16186
  }
16176
16187
  }, {
16177
16188
  key: "setNativeRange",
16178
- value: function(A, E) {
16179
- var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : E, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
16180
- if (v.info("setNativeRange", A, E, O, R), !(A != null && (this.root.parentNode == null || A.parentNode == null || O.parentNode == null))) {
16189
+ value: function(A, T) {
16190
+ var O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A, R = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : T, C = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
16191
+ if (v.info("setNativeRange", A, T, O, R), !(A != null && (this.root.parentNode == null || A.parentNode == null || O.parentNode == null))) {
16181
16192
  var F = document.getSelection();
16182
16193
  if (F != null)
16183
16194
  if (A != null) {
16184
16195
  this.hasFocus() || this.root.focus();
16185
16196
  var U = (this.getNativeRange() || {}).native;
16186
- if (U == null || C || A !== U.startContainer || E !== U.startOffset || O !== U.endContainer || R !== U.endOffset) {
16187
- A.tagName == "BR" && (E = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), O.tagName == "BR" && (R = [].indexOf.call(O.parentNode.childNodes, O), O = O.parentNode);
16197
+ if (U == null || C || A !== U.startContainer || T !== U.startOffset || O !== U.endContainer || R !== U.endOffset) {
16198
+ A.tagName == "BR" && (T = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), O.tagName == "BR" && (R = [].indexOf.call(O.parentNode.childNodes, O), O = O.parentNode);
16188
16199
  var D = document.createRange();
16189
- D.setStart(A, E), D.setEnd(O, R), F.removeAllRanges(), F.addRange(D);
16200
+ D.setStart(A, T), D.setEnd(O, R), F.removeAllRanges(), F.addRange(D);
16190
16201
  }
16191
16202
  } else
16192
16203
  F.removeAllRanges(), this.root.blur(), document.body.focus();
@@ -16195,10 +16206,10 @@ var Hh = { exports: {} };
16195
16206
  }, {
16196
16207
  key: "setRange",
16197
16208
  value: function(A) {
16198
- var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p.default.sources.API;
16199
- if (typeof E == "string" && (O = E, E = !1), v.info("setRange", A), A != null) {
16209
+ var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, O = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : p.default.sources.API;
16210
+ if (typeof T == "string" && (O = T, T = !1), v.info("setRange", A), A != null) {
16200
16211
  var R = this.rangeToNative(A);
16201
- this.setNativeRange.apply(this, b(R).concat([E]));
16212
+ this.setNativeRange.apply(this, b(R).concat([T]));
16202
16213
  } else
16203
16214
  this.setNativeRange(null);
16204
16215
  this.update(O);
@@ -16206,26 +16217,26 @@ var Hh = { exports: {} };
16206
16217
  }, {
16207
16218
  key: "update",
16208
16219
  value: function() {
16209
- var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER, E = this.lastRange, O = this.getRange(), R = s(O, 2), C = R[0], F = R[1];
16210
- if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(E, this.lastRange)) {
16220
+ var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : p.default.sources.USER, T = this.lastRange, O = this.getRange(), R = s(O, 2), C = R[0], F = R[1];
16221
+ if (this.lastRange = C, this.lastRange != null && (this.savedRange = this.lastRange), !(0, u.default)(T, this.lastRange)) {
16211
16222
  var U;
16212
16223
  !this.composing && F != null && F.native.collapsed && F.start.node !== this.cursor.textNode && this.cursor.restore();
16213
- var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(E), A];
16224
+ var D = [p.default.events.SELECTION_CHANGE, (0, c.default)(this.lastRange), (0, c.default)(T), A];
16214
16225
  if ((U = this.emitter).emit.apply(U, [p.default.events.EDITOR_CHANGE].concat(D)), A !== p.default.sources.SILENT) {
16215
16226
  var z;
16216
16227
  (z = this.emitter).emit.apply(z, D);
16217
16228
  }
16218
16229
  }
16219
16230
  }
16220
- }]), T;
16231
+ }]), E;
16221
16232
  }();
16222
- function w(T, N) {
16233
+ function w(E, N) {
16223
16234
  try {
16224
16235
  N.parentNode;
16225
16236
  } catch {
16226
16237
  return !1;
16227
16238
  }
16228
- return N instanceof Text && (N = N.parentNode), T.contains(N);
16239
+ return N instanceof Text && (N = N.parentNode), E.contains(N);
16229
16240
  }
16230
16241
  n.Range = x, n.default = S;
16231
16242
  },
@@ -16659,65 +16670,65 @@ var Hh = { exports: {} };
16659
16670
  typeof g == "object" && (y = g.depth, b = g.prototype, _ = g.includeNonEnumerable, g = g.circular);
16660
16671
  var v = [], x = [], S = typeof Buffer < "u";
16661
16672
  typeof g > "u" && (g = !0), typeof y > "u" && (y = 1 / 0);
16662
- function w(T, N) {
16663
- if (T === null)
16673
+ function w(E, N) {
16674
+ if (E === null)
16664
16675
  return null;
16665
16676
  if (N === 0)
16666
- return T;
16667
- var A, E;
16668
- if (typeof T != "object")
16669
- return T;
16670
- if (s(T, a))
16677
+ return E;
16678
+ var A, T;
16679
+ if (typeof E != "object")
16680
+ return E;
16681
+ if (s(E, a))
16671
16682
  A = new a();
16672
- else if (s(T, o))
16683
+ else if (s(E, o))
16673
16684
  A = new o();
16674
- else if (s(T, l))
16685
+ else if (s(E, l))
16675
16686
  A = new l(function(k, I) {
16676
- T.then(function(P) {
16687
+ E.then(function(P) {
16677
16688
  k(w(P, N - 1));
16678
16689
  }, function(P) {
16679
16690
  I(w(P, N - 1));
16680
16691
  });
16681
16692
  });
16682
- else if (h.__isArray(T))
16693
+ else if (h.__isArray(E))
16683
16694
  A = [];
16684
- else if (h.__isRegExp(T))
16685
- A = new RegExp(T.source, p(T)), T.lastIndex && (A.lastIndex = T.lastIndex);
16686
- else if (h.__isDate(T))
16687
- A = new Date(T.getTime());
16695
+ else if (h.__isRegExp(E))
16696
+ A = new RegExp(E.source, p(E)), E.lastIndex && (A.lastIndex = E.lastIndex);
16697
+ else if (h.__isDate(E))
16698
+ A = new Date(E.getTime());
16688
16699
  else {
16689
- if (S && Buffer.isBuffer(T))
16690
- return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(T.length) : A = new Buffer(T.length), T.copy(A), A;
16691
- s(T, Error) ? A = Object.create(T) : typeof b > "u" ? (E = Object.getPrototypeOf(T), A = Object.create(E)) : (A = Object.create(b), E = b);
16700
+ if (S && Buffer.isBuffer(E))
16701
+ return Buffer.allocUnsafe ? A = Buffer.allocUnsafe(E.length) : A = new Buffer(E.length), E.copy(A), A;
16702
+ s(E, Error) ? A = Object.create(E) : typeof b > "u" ? (T = Object.getPrototypeOf(E), A = Object.create(T)) : (A = Object.create(b), T = b);
16692
16703
  }
16693
16704
  if (g) {
16694
- var O = v.indexOf(T);
16705
+ var O = v.indexOf(E);
16695
16706
  if (O != -1)
16696
16707
  return x[O];
16697
- v.push(T), x.push(A);
16708
+ v.push(E), x.push(A);
16698
16709
  }
16699
- s(T, a) && T.forEach(function(k, I) {
16710
+ s(E, a) && E.forEach(function(k, I) {
16700
16711
  var P = w(I, N - 1), L = w(k, N - 1);
16701
16712
  A.set(P, L);
16702
- }), s(T, o) && T.forEach(function(k) {
16713
+ }), s(E, o) && E.forEach(function(k) {
16703
16714
  var I = w(k, N - 1);
16704
16715
  A.add(I);
16705
16716
  });
16706
- for (var R in T) {
16717
+ for (var R in E) {
16707
16718
  var C;
16708
- E && (C = Object.getOwnPropertyDescriptor(E, R)), !(C && C.set == null) && (A[R] = w(T[R], N - 1));
16719
+ T && (C = Object.getOwnPropertyDescriptor(T, R)), !(C && C.set == null) && (A[R] = w(E[R], N - 1));
16709
16720
  }
16710
16721
  if (Object.getOwnPropertySymbols)
16711
- for (var F = Object.getOwnPropertySymbols(T), R = 0; R < F.length; R++) {
16712
- var U = F[R], D = Object.getOwnPropertyDescriptor(T, U);
16713
- D && !D.enumerable && !_ || (A[U] = w(T[U], N - 1), D.enumerable || Object.defineProperty(A, U, {
16722
+ for (var F = Object.getOwnPropertySymbols(E), R = 0; R < F.length; R++) {
16723
+ var U = F[R], D = Object.getOwnPropertyDescriptor(E, U);
16724
+ D && !D.enumerable && !_ || (A[U] = w(E[U], N - 1), D.enumerable || Object.defineProperty(A, U, {
16714
16725
  enumerable: !1
16715
16726
  }));
16716
16727
  }
16717
16728
  if (_)
16718
- for (var z = Object.getOwnPropertyNames(T), R = 0; R < z.length; R++) {
16719
- var $ = z[R], D = Object.getOwnPropertyDescriptor(T, $);
16720
- D && D.enumerable || (A[$] = w(T[$], N - 1), Object.defineProperty(A, $, {
16729
+ for (var z = Object.getOwnPropertyNames(E), R = 0; R < z.length; R++) {
16730
+ var $ = z[R], D = Object.getOwnPropertyDescriptor(E, $);
16731
+ D && D.enumerable || (A[$] = w(E[$], N - 1), Object.defineProperty(A, $, {
16721
16732
  enumerable: !1
16722
16733
  }));
16723
16734
  }
@@ -16763,10 +16774,10 @@ var Hh = { exports: {} };
16763
16774
  value: !0
16764
16775
  });
16765
16776
  var s = function() {
16766
- function A(E, O) {
16777
+ function A(T, O) {
16767
16778
  var R = [], C = !0, F = !1, U = void 0;
16768
16779
  try {
16769
- for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
16780
+ for (var D = T[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
16770
16781
  ;
16771
16782
  } catch ($) {
16772
16783
  F = !0, U = $;
@@ -16780,28 +16791,28 @@ var Hh = { exports: {} };
16780
16791
  }
16781
16792
  return R;
16782
16793
  }
16783
- return function(E, O) {
16784
- if (Array.isArray(E))
16785
- return E;
16786
- if (Symbol.iterator in Object(E))
16787
- return A(E, O);
16794
+ return function(T, O) {
16795
+ if (Array.isArray(T))
16796
+ return T;
16797
+ if (Symbol.iterator in Object(T))
16798
+ return A(T, O);
16788
16799
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
16789
16800
  };
16790
16801
  }(), a = function() {
16791
- function A(E, O) {
16802
+ function A(T, O) {
16792
16803
  for (var R = 0; R < O.length; R++) {
16793
16804
  var C = O[R];
16794
- C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
16805
+ C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(T, C.key, C);
16795
16806
  }
16796
16807
  }
16797
- return function(E, O, R) {
16798
- return O && A(E.prototype, O), R && A(E, R), E;
16808
+ return function(T, O, R) {
16809
+ return O && A(T.prototype, O), R && A(T, R), T;
16799
16810
  };
16800
- }(), o = function A(E, O, R) {
16801
- E === null && (E = Function.prototype);
16802
- var C = Object.getOwnPropertyDescriptor(E, O);
16811
+ }(), o = function A(T, O, R) {
16812
+ T === null && (T = Function.prototype);
16813
+ var C = Object.getOwnPropertyDescriptor(T, O);
16803
16814
  if (C === void 0) {
16804
- var F = Object.getPrototypeOf(E);
16815
+ var F = Object.getPrototypeOf(T);
16805
16816
  return F === null ? void 0 : A(F, O, R);
16806
16817
  } else {
16807
16818
  if ("value" in C)
@@ -16813,34 +16824,34 @@ var Hh = { exports: {} };
16813
16824
  function v(A) {
16814
16825
  return A && A.__esModule ? A : { default: A };
16815
16826
  }
16816
- function x(A, E) {
16817
- if (!(A instanceof E))
16827
+ function x(A, T) {
16828
+ if (!(A instanceof T))
16818
16829
  throw new TypeError("Cannot call a class as a function");
16819
16830
  }
16820
- function S(A, E) {
16831
+ function S(A, T) {
16821
16832
  if (!A)
16822
16833
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16823
- return E && (typeof E == "object" || typeof E == "function") ? E : A;
16834
+ return T && (typeof T == "object" || typeof T == "function") ? T : A;
16824
16835
  }
16825
- function w(A, E) {
16826
- if (typeof E != "function" && E !== null)
16827
- throw new TypeError("Super expression must either be null or a function, not " + typeof E);
16828
- A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
16836
+ function w(A, T) {
16837
+ if (typeof T != "function" && T !== null)
16838
+ throw new TypeError("Super expression must either be null or a function, not " + typeof T);
16839
+ A.prototype = Object.create(T && T.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(A, T) : A.__proto__ = T);
16829
16840
  }
16830
- function T(A) {
16841
+ function E(A) {
16831
16842
  return A instanceof d.default || A instanceof u.BlockEmbed;
16832
16843
  }
16833
16844
  var N = function(A) {
16834
- w(E, A);
16835
- function E(O, R) {
16836
- x(this, E);
16837
- var C = S(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O));
16845
+ w(T, A);
16846
+ function T(O, R) {
16847
+ x(this, T);
16848
+ var C = S(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O));
16838
16849
  return C.emitter = R.emitter, Array.isArray(R.whitelist) && (C.whitelist = R.whitelist.reduce(function(F, U) {
16839
16850
  return F[U] = !0, F;
16840
16851
  }, {})), C.domNode.addEventListener("DOMNodeInserted", function() {
16841
16852
  }), C.optimize(), C.enable(), C;
16842
16853
  }
16843
- return a(E, [{
16854
+ return a(T, [{
16844
16855
  key: "batchStart",
16845
16856
  value: function() {
16846
16857
  this.batch = !0;
@@ -16854,7 +16865,7 @@ var Hh = { exports: {} };
16854
16865
  key: "deleteAt",
16855
16866
  value: function(R, C) {
16856
16867
  var F = this.line(R), U = s(F, 2), D = U[0], z = U[1], $ = this.line(R + C), k = s($, 1), I = k[0];
16857
- if (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "deleteAt", this).call(this, R, C), I != null && D !== I && z > 0) {
16868
+ if (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "deleteAt", this).call(this, R, C), I != null && D !== I && z > 0) {
16858
16869
  if (D instanceof u.BlockEmbed || I instanceof u.BlockEmbed) {
16859
16870
  this.optimize();
16860
16871
  return;
@@ -16883,7 +16894,7 @@ var Hh = { exports: {} };
16883
16894
  }, {
16884
16895
  key: "formatAt",
16885
16896
  value: function(R, C, F, U) {
16886
- this.whitelist != null && !this.whitelist[F] || (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "formatAt", this).call(this, R, C, F, U), this.optimize());
16897
+ this.whitelist != null && !this.whitelist[F] || (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "formatAt", this).call(this, R, C, F, U), this.optimize());
16887
16898
  }
16888
16899
  }, {
16889
16900
  key: "insertAt",
@@ -16899,7 +16910,7 @@ var Hh = { exports: {} };
16899
16910
  this.appendChild(D);
16900
16911
  }
16901
16912
  else
16902
- o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertAt", this).call(this, R, C, F);
16913
+ o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertAt", this).call(this, R, C, F);
16903
16914
  this.optimize();
16904
16915
  }
16905
16916
  }
@@ -16910,7 +16921,7 @@ var Hh = { exports: {} };
16910
16921
  var F = h.default.create(this.statics.defaultChild);
16911
16922
  F.appendChild(R), R = F;
16912
16923
  }
16913
- o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "insertBefore", this).call(this, R, C);
16924
+ o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "insertBefore", this).call(this, R, C);
16914
16925
  }
16915
16926
  }, {
16916
16927
  key: "leaf",
@@ -16920,7 +16931,7 @@ var Hh = { exports: {} };
16920
16931
  }, {
16921
16932
  key: "line",
16922
16933
  value: function(R) {
16923
- return R === this.length() ? this.line(R - 1) : this.descendant(T, R);
16934
+ return R === this.length() ? this.line(R - 1) : this.descendant(E, R);
16924
16935
  }
16925
16936
  }, {
16926
16937
  key: "lines",
@@ -16928,7 +16939,7 @@ var Hh = { exports: {} };
16928
16939
  var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, F = function U(D, z, $) {
16929
16940
  var k = [], I = $;
16930
16941
  return D.children.forEachAt(z, $, function(P, L, j) {
16931
- T(P) ? k.push(P) : P instanceof h.default.Container && (k = k.concat(U(P, L, I))), I -= j;
16942
+ E(P) ? k.push(P) : P instanceof h.default.Container && (k = k.concat(U(P, L, I))), I -= j;
16932
16943
  }), k;
16933
16944
  };
16934
16945
  return F(this, R, C);
@@ -16937,22 +16948,22 @@ var Hh = { exports: {} };
16937
16948
  key: "optimize",
16938
16949
  value: function() {
16939
16950
  var R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
16940
- this.batch !== !0 && (o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "optimize", this).call(this, R, C), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_OPTIMIZE, R, C));
16951
+ this.batch !== !0 && (o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "optimize", this).call(this, R, C), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_OPTIMIZE, R, C));
16941
16952
  }
16942
16953
  }, {
16943
16954
  key: "path",
16944
16955
  value: function(R) {
16945
- return o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "path", this).call(this, R).slice(1);
16956
+ return o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "path", this).call(this, R).slice(1);
16946
16957
  }
16947
16958
  }, {
16948
16959
  key: "update",
16949
16960
  value: function(R) {
16950
16961
  if (this.batch !== !0) {
16951
16962
  var C = f.default.sources.USER;
16952
- typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "update", this).call(this, R.concat([])), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_UPDATE, C, R);
16963
+ typeof R == "string" && (C = R), Array.isArray(R) || (R = this.observer.takeRecords()), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_BEFORE_UPDATE, C, R), o(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "update", this).call(this, R.concat([])), R.length > 0 && this.emitter.emit(f.default.events.SCROLL_UPDATE, C, R);
16953
16964
  }
16954
16965
  }
16955
- }]), E;
16966
+ }]), T;
16956
16967
  }(h.default.Scroll);
16957
16968
  N.blotName = "scroll", N.className = "ql-editor", N.tagName = "DIV", N.defaultChild = "block", N.allowedChildren = [d.default, u.BlockEmbed, _.default], n.default = N;
16958
16969
  },
@@ -16970,10 +16981,10 @@ var Hh = { exports: {} };
16970
16981
  function M(B, q) {
16971
16982
  var H = [], X = !0, K = !1, tt = void 0;
16972
16983
  try {
16973
- for (var rt = B[Symbol.iterator](), at; !(X = (at = rt.next()).done) && (H.push(at.value), !(q && H.length === q)); X = !0)
16984
+ for (var rt = B[Symbol.iterator](), ot; !(X = (ot = rt.next()).done) && (H.push(ot.value), !(q && H.length === q)); X = !0)
16974
16985
  ;
16975
- } catch (lt) {
16976
- K = !0, tt = lt;
16986
+ } catch (ut) {
16987
+ K = !0, tt = ut;
16977
16988
  } finally {
16978
16989
  try {
16979
16990
  !X && rt.return && rt.return();
@@ -17001,11 +17012,11 @@ var Hh = { exports: {} };
17001
17012
  return function(B, q, H) {
17002
17013
  return q && M(B.prototype, q), H && M(B, H), B;
17003
17014
  };
17004
- }(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S), T = i(9), N = A(T);
17015
+ }(), l = i(21), h = A(l), c = i(11), f = A(c), u = i(3), d = A(u), p = i(2), m = A(p), g = i(20), y = A(g), b = i(0), _ = A(b), v = i(5), x = A(v), S = i(10), w = A(S), E = i(9), N = A(E);
17005
17016
  function A(M) {
17006
17017
  return M && M.__esModule ? M : { default: M };
17007
17018
  }
17008
- function E(M, B, q) {
17019
+ function T(M, B, q) {
17009
17020
  return B in M ? Object.defineProperty(M, B, { value: q, enumerable: !0, configurable: !0, writable: !0 }) : M[B] = q, M;
17010
17021
  }
17011
17022
  function O(M, B) {
@@ -17059,7 +17070,7 @@ var Hh = { exports: {} };
17059
17070
  if (tt.length !== 0) {
17060
17071
  var rt = H.quill.getSelection();
17061
17072
  if (!(rt == null || !H.quill.hasFocus())) {
17062
- var at = H.quill.getLine(rt.index), lt = a(at, 2), It = lt[0], St = lt[1], V = H.quill.getLeaf(rt.index), W = a(V, 2), Q = W[0], J = W[1], Y = rt.length === 0 ? [Q, J] : H.quill.getLeaf(rt.index + rt.length), ht = a(Y, 2), Z = ht[0], it = ht[1], At = Q instanceof _.default.Text ? Q.value().slice(0, J) : "", Gt = Z instanceof _.default.Text ? Z.value().slice(it) : "", bt = {
17073
+ var ot = H.quill.getLine(rt.index), ut = a(ot, 2), It = ut[0], St = ut[1], V = H.quill.getLeaf(rt.index), W = a(V, 2), Q = W[0], J = W[1], Y = rt.length === 0 ? [Q, J] : H.quill.getLeaf(rt.index + rt.length), ht = a(Y, 2), Z = ht[0], it = ht[1], At = Q instanceof _.default.Text ? Q.value().slice(0, J) : "", Gt = Z instanceof _.default.Text ? Z.value().slice(it) : "", bt = {
17063
17074
  collapsed: rt.length === 0,
17064
17075
  empty: rt.length === 0 && It.length() <= 1,
17065
17076
  format: H.quill.getFormat(rt),
@@ -17195,25 +17206,25 @@ var Hh = { exports: {} };
17195
17206
  var H = q.prefix.length, X = this.quill.getLine(B.index), K = a(X, 2), tt = K[0], rt = K[1];
17196
17207
  if (rt > H)
17197
17208
  return !0;
17198
- var at = void 0;
17209
+ var ot = void 0;
17199
17210
  switch (q.prefix.trim()) {
17200
17211
  case "[]":
17201
17212
  case "[ ]":
17202
- at = "unchecked";
17213
+ ot = "unchecked";
17203
17214
  break;
17204
17215
  case "[x]":
17205
- at = "checked";
17216
+ ot = "checked";
17206
17217
  break;
17207
17218
  case "-":
17208
17219
  case "*":
17209
- at = "bullet";
17220
+ ot = "bullet";
17210
17221
  break;
17211
17222
  default:
17212
- at = "ordered";
17223
+ ot = "ordered";
17213
17224
  }
17214
17225
  this.quill.insertText(B.index, " ", x.default.sources.USER), this.quill.history.cutoff();
17215
- var lt = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list: at });
17216
- this.quill.updateContents(lt, x.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(B.index - H, x.default.sources.SILENT);
17226
+ var ut = new m.default().retain(B.index - rt).delete(H + 1).retain(tt.length() - 2 - rt).retain(1, { list: ot });
17227
+ this.quill.updateContents(ut, x.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(B.index - H, x.default.sources.SILENT);
17217
17228
  }
17218
17229
  },
17219
17230
  "code exit": {
@@ -17239,21 +17250,21 @@ var Hh = { exports: {} };
17239
17250
  key: M,
17240
17251
  shiftKey: B,
17241
17252
  altKey: null
17242
- }, E(q, H, /^$/), E(q, "handler", function(K) {
17253
+ }, T(q, H, /^$/), T(q, "handler", function(K) {
17243
17254
  var tt = K.index;
17244
17255
  M === D.keys.RIGHT && (tt += K.length + 1);
17245
- var rt = this.quill.getLeaf(tt), at = a(rt, 1), lt = at[0];
17246
- return lt instanceof _.default.Embed ? (M === D.keys.LEFT ? B ? this.quill.setSelection(K.index - 1, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index - 1, x.default.sources.USER) : B ? this.quill.setSelection(K.index, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index + K.length + 1, x.default.sources.USER), !1) : !0;
17256
+ var rt = this.quill.getLeaf(tt), ot = a(rt, 1), ut = ot[0];
17257
+ return ut instanceof _.default.Embed ? (M === D.keys.LEFT ? B ? this.quill.setSelection(K.index - 1, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index - 1, x.default.sources.USER) : B ? this.quill.setSelection(K.index, K.length + 1, x.default.sources.USER) : this.quill.setSelection(K.index + K.length + 1, x.default.sources.USER), !1) : !0;
17247
17258
  }), q;
17248
17259
  }
17249
17260
  function $(M, B) {
17250
17261
  if (!(M.index === 0 || this.quill.getLength() <= 1)) {
17251
17262
  var q = this.quill.getLine(M.index), H = a(q, 1), X = H[0], K = {};
17252
17263
  if (B.offset === 0) {
17253
- var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1), at = rt[0];
17254
- if (at != null && at.length() > 1) {
17255
- var lt = X.formats(), It = this.quill.getFormat(M.index - 1, 1);
17256
- K = y.default.attributes.diff(lt, It) || {};
17264
+ var tt = this.quill.getLine(M.index - 1), rt = a(tt, 1), ot = rt[0];
17265
+ if (ot != null && ot.length() > 1) {
17266
+ var ut = X.formats(), It = this.quill.getFormat(M.index - 1, 1);
17267
+ K = y.default.attributes.diff(ut, It) || {};
17257
17268
  }
17258
17269
  }
17259
17270
  var St = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(B.prefix) ? 2 : 1;
@@ -17265,7 +17276,7 @@ var Hh = { exports: {} };
17265
17276
  if (!(M.index >= this.quill.getLength() - q)) {
17266
17277
  var H = {}, X = 0, K = this.quill.getLine(M.index), tt = a(K, 1), rt = tt[0];
17267
17278
  if (B.offset >= rt.length() - 1) {
17268
- var at = this.quill.getLine(M.index + 1), lt = a(at, 1), It = lt[0];
17279
+ var ot = this.quill.getLine(M.index + 1), ut = a(ot, 1), It = ut[0];
17269
17280
  if (It) {
17270
17281
  var St = rt.formats(), V = this.quill.getFormat(M.index, 1);
17271
17282
  H = y.default.attributes.diff(St, V) || {}, X = It.length();
@@ -17299,12 +17310,12 @@ var Hh = { exports: {} };
17299
17310
  shiftKey: !M,
17300
17311
  format: { "code-block": !0 },
17301
17312
  handler: function(q) {
17302
- var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2), at = rt[0], lt = rt[1];
17303
- if (at != null) {
17304
- var It = this.quill.getIndex(at), St = at.newlineIndex(lt, !0) + 1, V = at.newlineIndex(It + lt + K), W = at.domNode.textContent.slice(St, V).split(`
17313
+ var H = _.default.query("code-block"), X = q.index, K = q.length, tt = this.quill.scroll.descendant(H, X), rt = a(tt, 2), ot = rt[0], ut = rt[1];
17314
+ if (ot != null) {
17315
+ var It = this.quill.getIndex(ot), St = ot.newlineIndex(ut, !0) + 1, V = ot.newlineIndex(It + ut + K), W = ot.domNode.textContent.slice(St, V).split(`
17305
17316
  `);
17306
- lt = 0, W.forEach(function(Q, J) {
17307
- M ? (at.insertAt(St + lt, H.TAB), lt += H.TAB.length, J === 0 ? X += H.TAB.length : K += H.TAB.length) : Q.startsWith(H.TAB) && (at.deleteAt(St + lt, H.TAB.length), lt -= H.TAB.length, J === 0 ? X -= H.TAB.length : K -= H.TAB.length), lt += Q.length + 1;
17317
+ ut = 0, W.forEach(function(Q, J) {
17318
+ M ? (ot.insertAt(St + ut, H.TAB), ut += H.TAB.length, J === 0 ? X += H.TAB.length : K += H.TAB.length) : Q.startsWith(H.TAB) && (ot.deleteAt(St + ut, H.TAB.length), ut -= H.TAB.length, J === 0 ? X -= H.TAB.length : K -= H.TAB.length), ut += Q.length + 1;
17308
17319
  }), this.quill.update(x.default.sources.USER), this.quill.setSelection(X, K, x.default.sources.SILENT);
17309
17320
  }
17310
17321
  }
@@ -17343,13 +17354,13 @@ var Hh = { exports: {} };
17343
17354
  function y(b, _) {
17344
17355
  var v = [], x = !0, S = !1, w = void 0;
17345
17356
  try {
17346
- for (var T = b[Symbol.iterator](), N; !(x = (N = T.next()).done) && (v.push(N.value), !(_ && v.length === _)); x = !0)
17357
+ for (var E = b[Symbol.iterator](), N; !(x = (N = E.next()).done) && (v.push(N.value), !(_ && v.length === _)); x = !0)
17347
17358
  ;
17348
17359
  } catch (A) {
17349
17360
  S = !0, w = A;
17350
17361
  } finally {
17351
17362
  try {
17352
- !x && T.return && T.return();
17363
+ !x && E.return && E.return();
17353
17364
  } finally {
17354
17365
  if (S)
17355
17366
  throw w;
@@ -17453,10 +17464,10 @@ var Hh = { exports: {} };
17453
17464
  key: "restore",
17454
17465
  value: function() {
17455
17466
  if (!(this.selection.composing || this.parent == null)) {
17456
- var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0, T = void 0;
17467
+ var v = this.textNode, x = this.selection.getNativeRange(), S = void 0, w = void 0, E = void 0;
17457
17468
  if (x != null && x.start.node === v && x.end.node === v) {
17458
17469
  var N = [v, x.start.offset, x.end.offset];
17459
- S = N[0], w = N[1], T = N[2];
17470
+ S = N[0], w = N[1], E = N[2];
17460
17471
  }
17461
17472
  for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
17462
17473
  this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
@@ -17465,14 +17476,14 @@ var Hh = { exports: {} };
17465
17476
  this.next instanceof f.default ? (S = this.next.domNode, this.next.insertAt(0, A), this.textNode.data = b.CONTENTS) : (this.textNode.data = A, this.parent.insertBefore(h.default.create(this.textNode), this), this.textNode = document.createTextNode(b.CONTENTS), this.domNode.appendChild(this.textNode));
17466
17477
  }
17467
17478
  if (this.remove(), w != null) {
17468
- var E = [w, T].map(function(R) {
17479
+ var T = [w, E].map(function(R) {
17469
17480
  return Math.max(0, Math.min(S.data.length, R - 1));
17470
- }), O = s(E, 2);
17471
- return w = O[0], T = O[1], {
17481
+ }), O = s(T, 2);
17482
+ return w = O[0], E = O[1], {
17472
17483
  startNode: S,
17473
17484
  startOffset: w,
17474
17485
  endNode: S,
17475
- endOffset: T
17486
+ endOffset: E
17476
17487
  };
17477
17488
  }
17478
17489
  }
@@ -17481,8 +17492,8 @@ var Hh = { exports: {} };
17481
17492
  key: "update",
17482
17493
  value: function(v, x) {
17483
17494
  var S = this;
17484
- if (v.some(function(T) {
17485
- return T.type === "characterData" && T.target === S.textNode;
17495
+ if (v.some(function(E) {
17496
+ return E.type === "characterData" && E.target === S.textNode;
17486
17497
  })) {
17487
17498
  var w = this.restore();
17488
17499
  w && (x.range = w);
@@ -17824,7 +17835,7 @@ var Hh = { exports: {} };
17824
17835
  Object.defineProperty(n, "__esModule", {
17825
17836
  value: !0
17826
17837
  });
17827
- var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7), T = F(w), N = i(55), A = F(N), E = i(42), O = F(E), R = i(23), C = F(R);
17838
+ var s = i(0), a = F(s), o = i(5), l = F(o), h = i(4), c = F(h), f = i(16), u = F(f), d = i(25), p = F(d), m = i(24), g = F(m), y = i(35), b = F(y), _ = i(6), v = F(_), x = i(22), S = F(x), w = i(7), E = F(w), N = i(55), A = F(N), T = i(42), O = F(T), R = i(23), C = F(R);
17828
17839
  function F(U) {
17829
17840
  return U && U.__esModule ? U : { default: U };
17830
17841
  }
@@ -17837,11 +17848,11 @@ var Hh = { exports: {} };
17837
17848
  "blots/embed": b.default,
17838
17849
  "blots/inline": v.default,
17839
17850
  "blots/scroll": S.default,
17840
- "blots/text": T.default,
17851
+ "blots/text": E.default,
17841
17852
  "modules/clipboard": A.default,
17842
17853
  "modules/history": O.default,
17843
17854
  "modules/keyboard": C.default
17844
- }), a.default.register(c.default, u.default, g.default, v.default, S.default, T.default), n.default = l.default;
17855
+ }), a.default.register(c.default, u.default, g.default, v.default, S.default, E.default), n.default = l.default;
17845
17856
  },
17846
17857
  /* 30 */
17847
17858
  /***/
@@ -18173,10 +18184,10 @@ var Hh = { exports: {} };
18173
18184
  var x = void 0, S = void 0, w = v.data.split(m).join("");
18174
18185
  if (v === this.leftGuard)
18175
18186
  if (this.prev instanceof c.default) {
18176
- var T = this.prev.length();
18177
- this.prev.insertAt(T, w), x = {
18187
+ var E = this.prev.length();
18188
+ this.prev.insertAt(E, w), x = {
18178
18189
  startNode: this.prev.domNode,
18179
- startOffset: T + w.length
18190
+ startOffset: E + w.length
18180
18191
  };
18181
18192
  } else
18182
18193
  S = document.createTextNode(w), this.parent.insertBefore(l.default.create(S), this), x = {
@@ -18199,8 +18210,8 @@ var Hh = { exports: {} };
18199
18210
  var S = this;
18200
18211
  v.forEach(function(w) {
18201
18212
  if (w.type === "characterData" && (w.target === S.leftGuard || w.target === S.rightGuard)) {
18202
- var T = S.restore(w.target);
18203
- T && (x.range = T);
18213
+ var E = S.restore(w.target);
18214
+ E && (x.range = E);
18204
18215
  }
18205
18216
  });
18206
18217
  }
@@ -18431,17 +18442,17 @@ var Hh = { exports: {} };
18431
18442
  function v(x, S) {
18432
18443
  d(this, v);
18433
18444
  var w = p(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, x, S));
18434
- return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(T, N, A, E) {
18435
- T !== h.default.events.TEXT_CHANGE || w.ignoreChange || (!w.options.userOnly || E === h.default.sources.USER ? w.record(N, A) : w.transform(N));
18445
+ return w.lastRecorded = 0, w.ignoreChange = !1, w.clear(), w.quill.on(h.default.events.EDITOR_CHANGE, function(E, N, A, T) {
18446
+ E !== h.default.events.TEXT_CHANGE || w.ignoreChange || (!w.options.userOnly || T === h.default.sources.USER ? w.record(N, A) : w.transform(N));
18436
18447
  }), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, w.undo.bind(w)), w.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, w.redo.bind(w)), /Win/i.test(navigator.platform) && w.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, w.redo.bind(w)), w;
18437
18448
  }
18438
18449
  return s(v, [{
18439
18450
  key: "change",
18440
18451
  value: function(S, w) {
18441
18452
  if (this.stack[S].length !== 0) {
18442
- var T = this.stack[S].pop();
18443
- this.stack[w].push(T), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(T[S], h.default.sources.USER), this.ignoreChange = !1;
18444
- var N = b(T[S]);
18453
+ var E = this.stack[S].pop();
18454
+ this.stack[w].push(E), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(E[S], h.default.sources.USER), this.ignoreChange = !1;
18455
+ var N = b(E[S]);
18445
18456
  this.quill.setSelection(N);
18446
18457
  }
18447
18458
  }
@@ -18460,15 +18471,15 @@ var Hh = { exports: {} };
18460
18471
  value: function(S, w) {
18461
18472
  if (S.ops.length !== 0) {
18462
18473
  this.stack.redo = [];
18463
- var T = this.quill.getContents().diff(w), N = Date.now();
18474
+ var E = this.quill.getContents().diff(w), N = Date.now();
18464
18475
  if (this.lastRecorded + this.options.delay > N && this.stack.undo.length > 0) {
18465
18476
  var A = this.stack.undo.pop();
18466
- T = T.compose(A.undo), S = A.redo.compose(S);
18477
+ E = E.compose(A.undo), S = A.redo.compose(S);
18467
18478
  } else
18468
18479
  this.lastRecorded = N;
18469
18480
  this.stack.undo.push({
18470
18481
  redo: S,
18471
- undo: T
18482
+ undo: E
18472
18483
  }), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
18473
18484
  }
18474
18485
  }
@@ -18541,7 +18552,7 @@ var Hh = { exports: {} };
18541
18552
  var q = M.get;
18542
18553
  return q === void 0 ? void 0 : q.call(G);
18543
18554
  }
18544
- }, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61), T = N(w);
18555
+ }, o = i(3), l = N(o), h = i(2), c = N(h), f = i(8), u = N(f), d = i(23), p = N(d), m = i(34), g = N(m), y = i(59), b = N(y), _ = i(60), v = N(_), x = i(28), S = N(x), w = i(61), E = N(w);
18545
18556
  function N(P) {
18546
18557
  return P && P.__esModule ? P : { default: P };
18547
18558
  }
@@ -18549,7 +18560,7 @@ var Hh = { exports: {} };
18549
18560
  if (!(P instanceof L))
18550
18561
  throw new TypeError("Cannot call a class as a function");
18551
18562
  }
18552
- function E(P, L) {
18563
+ function T(P, L) {
18553
18564
  if (!P)
18554
18565
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
18555
18566
  return L && (typeof L == "object" || typeof L == "function") ? L : P;
@@ -18563,7 +18574,7 @@ var Hh = { exports: {} };
18563
18574
  O(L, P);
18564
18575
  function L(j, G) {
18565
18576
  A(this, L);
18566
- var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G)), B = function q(H) {
18577
+ var M = T(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G)), B = function q(H) {
18567
18578
  if (!document.body.contains(j.root))
18568
18579
  return document.body.removeEventListener("click", q);
18569
18580
  M.tooltip != null && !M.tooltip.root.contains(H.target) && document.activeElement !== M.tooltip.textbox && !M.quill.hasFocus() && M.tooltip.hide(), M.pickers != null && M.pickers.forEach(function(X) {
@@ -18648,7 +18659,7 @@ var Hh = { exports: {} };
18648
18659
  O(L, P);
18649
18660
  function L(j, G) {
18650
18661
  A(this, L);
18651
- var M = E(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G));
18662
+ var M = T(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, j, G));
18652
18663
  return M.textbox = M.root.querySelector('input[type="text"]'), M.listen(), M;
18653
18664
  }
18654
18665
  return s(L, [{
@@ -18702,7 +18713,7 @@ var Hh = { exports: {} };
18702
18713
  this.textbox.value = "", this.hide();
18703
18714
  }
18704
18715
  }]), L;
18705
- }(T.default);
18716
+ }(E.default);
18706
18717
  function k(P) {
18707
18718
  var L = P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
18708
18719
  return L ? (L[1] || "https") + "://www.youtube.com/embed/" + L[2] + "?showinfo=0" : (L = P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (L[1] || "https") + "://player.vimeo.com/video/" + L[2] + "/" : P;
@@ -18844,8 +18855,8 @@ var Hh = { exports: {} };
18844
18855
  for (_.forEach(function(x) {
18845
18856
  var S = o.find(x.target, !0);
18846
18857
  S != null && (S.domNode === x.target && (x.type === "childList" ? (y(o.find(x.previousSibling, !1)), [].forEach.call(x.addedNodes, function(w) {
18847
- var T = o.find(w, !1);
18848
- y(T, !1), T instanceof a.default && T.children.forEach(function(N) {
18858
+ var E = o.find(w, !1);
18859
+ y(E, !1), E instanceof a.default && E.children.forEach(function(N) {
18849
18860
  y(N, !1);
18850
18861
  });
18851
18862
  })) : x.type === "attributes" && y(S.prev)), y(S));
@@ -19117,12 +19128,12 @@ var Hh = { exports: {} };
19117
19128
  if (v == x)
19118
19129
  return v ? [[a, v]] : [];
19119
19130
  (S < 0 || v.length < S) && (S = null);
19120
- var w = f(v, x), T = v.substring(0, w);
19131
+ var w = f(v, x), E = v.substring(0, w);
19121
19132
  v = v.substring(w), x = x.substring(w), w = u(v, x);
19122
19133
  var N = v.substring(v.length - w);
19123
19134
  v = v.substring(0, v.length - w), x = x.substring(0, x.length - w);
19124
19135
  var A = l(v, x);
19125
- return T && A.unshift([a, T]), N && A.push([a, N]), p(A), S != null && (A = y(A, S)), A = b(A), A;
19136
+ return E && A.unshift([a, E]), N && A.push([a, N]), p(A), S != null && (A = y(A, S)), A = b(A), A;
19126
19137
  }
19127
19138
  function l(v, x) {
19128
19139
  var S;
@@ -19130,33 +19141,33 @@ var Hh = { exports: {} };
19130
19141
  return [[s, x]];
19131
19142
  if (!x)
19132
19143
  return [[i, v]];
19133
- var w = v.length > x.length ? v : x, T = v.length > x.length ? x : v, N = w.indexOf(T);
19144
+ var w = v.length > x.length ? v : x, E = v.length > x.length ? x : v, N = w.indexOf(E);
19134
19145
  if (N != -1)
19135
19146
  return S = [
19136
19147
  [s, w.substring(0, N)],
19137
- [a, T],
19138
- [s, w.substring(N + T.length)]
19148
+ [a, E],
19149
+ [s, w.substring(N + E.length)]
19139
19150
  ], v.length > x.length && (S[0][0] = S[2][0] = i), S;
19140
- if (T.length == 1)
19151
+ if (E.length == 1)
19141
19152
  return [[i, v], [s, x]];
19142
19153
  var A = d(v, x);
19143
19154
  if (A) {
19144
- var E = A[0], O = A[1], R = A[2], C = A[3], F = A[4], U = o(E, R), D = o(O, C);
19155
+ var T = A[0], O = A[1], R = A[2], C = A[3], F = A[4], U = o(T, R), D = o(O, C);
19145
19156
  return U.concat([[a, F]], D);
19146
19157
  }
19147
19158
  return h(v, x);
19148
19159
  }
19149
19160
  function h(v, x) {
19150
- for (var S = v.length, w = x.length, T = Math.ceil((S + w) / 2), N = T, A = 2 * T, E = new Array(A), O = new Array(A), R = 0; R < A; R++)
19151
- E[R] = -1, O[R] = -1;
19152
- E[N + 1] = 0, O[N + 1] = 0;
19153
- for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k < T; k++) {
19161
+ for (var S = v.length, w = x.length, E = Math.ceil((S + w) / 2), N = E, A = 2 * E, T = new Array(A), O = new Array(A), R = 0; R < A; R++)
19162
+ T[R] = -1, O[R] = -1;
19163
+ T[N + 1] = 0, O[N + 1] = 0;
19164
+ for (var C = S - w, F = C % 2 != 0, U = 0, D = 0, z = 0, $ = 0, k = 0; k < E; k++) {
19154
19165
  for (var I = -k + U; I <= k - D; I += 2) {
19155
19166
  var P = N + I, L;
19156
- I == -k || I != k && E[P - 1] < E[P + 1] ? L = E[P + 1] : L = E[P - 1] + 1;
19167
+ I == -k || I != k && T[P - 1] < T[P + 1] ? L = T[P + 1] : L = T[P - 1] + 1;
19157
19168
  for (var j = L - I; L < S && j < w && v.charAt(L) == x.charAt(j); )
19158
19169
  L++, j++;
19159
- if (E[P] = L, L > S)
19170
+ if (T[P] = L, L > S)
19160
19171
  D += 2;
19161
19172
  else if (j > w)
19162
19173
  U += 2;
@@ -19180,8 +19191,8 @@ var Hh = { exports: {} };
19180
19191
  z += 2;
19181
19192
  else if (!F) {
19182
19193
  var P = N + C - B;
19183
- if (P >= 0 && P < A && E[P] != -1) {
19184
- var L = E[P], j = N + L - P;
19194
+ if (P >= 0 && P < A && T[P] != -1) {
19195
+ var L = T[P], j = N + L - P;
19185
19196
  if (M = S - M, L >= M)
19186
19197
  return c(v, x, L, j);
19187
19198
  }
@@ -19191,28 +19202,28 @@ var Hh = { exports: {} };
19191
19202
  return [[i, v], [s, x]];
19192
19203
  }
19193
19204
  function c(v, x, S, w) {
19194
- var T = v.substring(0, S), N = x.substring(0, w), A = v.substring(S), E = x.substring(w), O = o(T, N), R = o(A, E);
19205
+ var E = v.substring(0, S), N = x.substring(0, w), A = v.substring(S), T = x.substring(w), O = o(E, N), R = o(A, T);
19195
19206
  return O.concat(R);
19196
19207
  }
19197
19208
  function f(v, x) {
19198
19209
  if (!v || !x || v.charAt(0) != x.charAt(0))
19199
19210
  return 0;
19200
- for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
19201
- v.substring(N, T) == x.substring(N, T) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
19202
- return T;
19211
+ for (var S = 0, w = Math.min(v.length, x.length), E = w, N = 0; S < E; )
19212
+ v.substring(N, E) == x.substring(N, E) ? (S = E, N = S) : w = E, E = Math.floor((w - S) / 2 + S);
19213
+ return E;
19203
19214
  }
19204
19215
  function u(v, x) {
19205
19216
  if (!v || !x || v.charAt(v.length - 1) != x.charAt(x.length - 1))
19206
19217
  return 0;
19207
- for (var S = 0, w = Math.min(v.length, x.length), T = w, N = 0; S < T; )
19208
- v.substring(v.length - T, v.length - N) == x.substring(x.length - T, x.length - N) ? (S = T, N = S) : w = T, T = Math.floor((w - S) / 2 + S);
19209
- return T;
19218
+ for (var S = 0, w = Math.min(v.length, x.length), E = w, N = 0; S < E; )
19219
+ v.substring(v.length - E, v.length - N) == x.substring(x.length - E, x.length - N) ? (S = E, N = S) : w = E, E = Math.floor((w - S) / 2 + S);
19220
+ return E;
19210
19221
  }
19211
19222
  function d(v, x) {
19212
19223
  var S = v.length > x.length ? v : x, w = v.length > x.length ? x : v;
19213
19224
  if (S.length < 4 || w.length * 2 < S.length)
19214
19225
  return null;
19215
- function T(D, z, $) {
19226
+ function E(D, z, $) {
19216
19227
  for (var k = D.substring($, $ + Math.floor(D.length / 4)), I = -1, P = "", L, j, G, M; (I = z.indexOf(k, I + 1)) != -1; ) {
19217
19228
  var B = f(
19218
19229
  D.substring($),
@@ -19231,58 +19242,58 @@ var Hh = { exports: {} };
19231
19242
  P
19232
19243
  ] : null;
19233
19244
  }
19234
- var N = T(
19245
+ var N = E(
19235
19246
  S,
19236
19247
  w,
19237
19248
  Math.ceil(S.length / 4)
19238
- ), A = T(
19249
+ ), A = E(
19239
19250
  S,
19240
19251
  w,
19241
19252
  Math.ceil(S.length / 2)
19242
- ), E;
19253
+ ), T;
19243
19254
  if (!N && !A)
19244
19255
  return null;
19245
- A ? N ? E = N[4].length > A[4].length ? N : A : E = A : E = N;
19256
+ A ? N ? T = N[4].length > A[4].length ? N : A : T = A : T = N;
19246
19257
  var O, R, C, F;
19247
- v.length > x.length ? (O = E[0], R = E[1], C = E[2], F = E[3]) : (C = E[0], F = E[1], O = E[2], R = E[3]);
19248
- var U = E[4];
19258
+ v.length > x.length ? (O = T[0], R = T[1], C = T[2], F = T[3]) : (C = T[0], F = T[1], O = T[2], R = T[3]);
19259
+ var U = T[4];
19249
19260
  return [O, R, C, F, U];
19250
19261
  }
19251
19262
  function p(v) {
19252
19263
  v.push([a, ""]);
19253
- for (var x = 0, S = 0, w = 0, T = "", N = "", A; x < v.length; )
19264
+ for (var x = 0, S = 0, w = 0, E = "", N = "", A; x < v.length; )
19254
19265
  switch (v[x][0]) {
19255
19266
  case s:
19256
19267
  w++, N += v[x][1], x++;
19257
19268
  break;
19258
19269
  case i:
19259
- S++, T += v[x][1], x++;
19270
+ S++, E += v[x][1], x++;
19260
19271
  break;
19261
19272
  case a:
19262
- S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N, T), A !== 0 && (x - S - w > 0 && v[x - S - w - 1][0] == a ? v[x - S - w - 1][1] += N.substring(0, A) : (v.splice(0, 0, [
19273
+ S + w > 1 ? (S !== 0 && w !== 0 && (A = f(N, E), A !== 0 && (x - S - w > 0 && v[x - S - w - 1][0] == a ? v[x - S - w - 1][1] += N.substring(0, A) : (v.splice(0, 0, [
19263
19274
  a,
19264
19275
  N.substring(0, A)
19265
- ]), x++), N = N.substring(A), T = T.substring(A)), A = u(N, T), A !== 0 && (v[x][1] = N.substring(N.length - A) + v[x][1], N = N.substring(0, N.length - A), T = T.substring(0, T.length - A))), S === 0 ? v.splice(
19276
+ ]), x++), N = N.substring(A), E = E.substring(A)), A = u(N, E), A !== 0 && (v[x][1] = N.substring(N.length - A) + v[x][1], N = N.substring(0, N.length - A), E = E.substring(0, E.length - A))), S === 0 ? v.splice(
19266
19277
  x - w,
19267
19278
  S + w,
19268
19279
  [s, N]
19269
19280
  ) : w === 0 ? v.splice(
19270
19281
  x - S,
19271
19282
  S + w,
19272
- [i, T]
19283
+ [i, E]
19273
19284
  ) : v.splice(
19274
19285
  x - S - w,
19275
19286
  S + w,
19276
- [i, T],
19287
+ [i, E],
19277
19288
  [s, N]
19278
- ), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0, T = "", N = "";
19289
+ ), x = x - S - w + (S ? 1 : 0) + (w ? 1 : 0) + 1) : x !== 0 && v[x - 1][0] == a ? (v[x - 1][1] += v[x][1], v.splice(x, 1)) : x++, w = 0, S = 0, E = "", N = "";
19279
19290
  break;
19280
19291
  }
19281
19292
  v[v.length - 1][1] === "" && v.pop();
19282
- var E = !1;
19293
+ var T = !1;
19283
19294
  for (x = 1; x < v.length - 1; )
19284
- v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1), E = !0) : v[x][1].substring(0, v[x + 1][1].length) == v[x + 1][1] && (v[x - 1][1] += v[x + 1][1], v[x][1] = v[x][1].substring(v[x + 1][1].length) + v[x + 1][1], v.splice(x + 1, 1), E = !0)), x++;
19285
- E && p(v);
19295
+ v[x - 1][0] == a && v[x + 1][0] == a && (v[x][1].substring(v[x][1].length - v[x - 1][1].length) == v[x - 1][1] ? (v[x][1] = v[x - 1][1] + v[x][1].substring(0, v[x][1].length - v[x - 1][1].length), v[x + 1][1] = v[x - 1][1] + v[x + 1][1], v.splice(x - 1, 1), T = !0) : v[x][1].substring(0, v[x + 1][1].length) == v[x + 1][1] && (v[x - 1][1] += v[x + 1][1], v[x][1] = v[x][1].substring(v[x + 1][1].length) + v[x + 1][1], v.splice(x + 1, 1), T = !0)), x++;
19296
+ T && p(v);
19286
19297
  }
19287
19298
  var m = o;
19288
19299
  m.INSERT = s, m.DELETE = i, m.EQUAL = a, r.exports = m;
@@ -19290,15 +19301,15 @@ var Hh = { exports: {} };
19290
19301
  if (x === 0)
19291
19302
  return [a, v];
19292
19303
  for (var S = 0, w = 0; w < v.length; w++) {
19293
- var T = v[w];
19294
- if (T[0] === i || T[0] === a) {
19295
- var N = S + T[1].length;
19304
+ var E = v[w];
19305
+ if (E[0] === i || E[0] === a) {
19306
+ var N = S + E[1].length;
19296
19307
  if (x === N)
19297
19308
  return [w + 1, v];
19298
19309
  if (x < N) {
19299
19310
  v = v.slice();
19300
- var A = x - S, E = [T[0], T[1].slice(0, A)], O = [T[0], T[1].slice(A)];
19301
- return v.splice(w, 1, E, O), [w + 1, v];
19311
+ var A = x - S, T = [E[0], E[1].slice(0, A)], O = [E[0], E[1].slice(A)];
19312
+ return v.splice(w, 1, T, O), [w + 1, v];
19302
19313
  } else
19303
19314
  S = N;
19304
19315
  }
@@ -19306,17 +19317,17 @@ var Hh = { exports: {} };
19306
19317
  throw new Error("cursor_pos is out of bounds!");
19307
19318
  }
19308
19319
  function y(v, x) {
19309
- var S = g(v, x), w = S[1], T = S[0], N = w[T], A = w[T + 1];
19320
+ var S = g(v, x), w = S[1], E = S[0], N = w[E], A = w[E + 1];
19310
19321
  if (N == null)
19311
19322
  return v;
19312
19323
  if (N[0] !== a)
19313
19324
  return v;
19314
19325
  if (A != null && N[1] + A[1] === A[1] + N[1])
19315
- return w.splice(T, 2, A, N), _(w, T, 2);
19326
+ return w.splice(E, 2, A, N), _(w, E, 2);
19316
19327
  if (A != null && A[1].indexOf(N[1]) === 0) {
19317
- w.splice(T, 2, [A[0], N[1]], [0, N[1]]);
19318
- var E = A[1].slice(N[1].length);
19319
- return E.length > 0 && w.splice(T + 2, 0, [A[0], E]), _(w, T, 3);
19328
+ w.splice(E, 2, [A[0], N[1]], [0, N[1]]);
19329
+ var T = A[1].slice(N[1].length);
19330
+ return T.length > 0 && w.splice(E + 2, 0, [A[0], T]), _(w, E, 3);
19320
19331
  } else
19321
19332
  return v;
19322
19333
  }
@@ -19325,19 +19336,19 @@ var Hh = { exports: {} };
19325
19336
  return A.charCodeAt(0) >= 56320 && A.charCodeAt(0) <= 57343;
19326
19337
  }, w = function(A) {
19327
19338
  return A.charCodeAt(A.length - 1) >= 55296 && A.charCodeAt(A.length - 1) <= 56319;
19328
- }, T = 2; T < v.length; T += 1)
19329
- v[T - 2][0] === a && w(v[T - 2][1]) && v[T - 1][0] === i && S(v[T - 1][1]) && v[T][0] === s && S(v[T][1]) && (x = !0, v[T - 1][1] = v[T - 2][1].slice(-1) + v[T - 1][1], v[T][1] = v[T - 2][1].slice(-1) + v[T][1], v[T - 2][1] = v[T - 2][1].slice(0, -1));
19339
+ }, E = 2; E < v.length; E += 1)
19340
+ v[E - 2][0] === a && w(v[E - 2][1]) && v[E - 1][0] === i && S(v[E - 1][1]) && v[E][0] === s && S(v[E][1]) && (x = !0, v[E - 1][1] = v[E - 2][1].slice(-1) + v[E - 1][1], v[E][1] = v[E - 2][1].slice(-1) + v[E][1], v[E - 2][1] = v[E - 2][1].slice(0, -1));
19330
19341
  if (!x)
19331
19342
  return v;
19332
- for (var N = [], T = 0; T < v.length; T += 1)
19333
- v[T][1].length > 0 && N.push(v[T]);
19343
+ for (var N = [], E = 0; E < v.length; E += 1)
19344
+ v[E][1].length > 0 && N.push(v[E]);
19334
19345
  return N;
19335
19346
  }
19336
19347
  function _(v, x, S) {
19337
19348
  for (var w = x + S - 1; w >= 0 && w >= x - 1; w--)
19338
19349
  if (w + 1 < v.length) {
19339
- var T = v[w], N = v[w + 1];
19340
- T[0] === N[1] && v.splice(w, 2, [T[0], T[1] + N[1]]);
19350
+ var E = v[w], N = v[w + 1];
19351
+ E[0] === N[1] && v.splice(w, 2, [E[0], E[1] + N[1]]);
19341
19352
  }
19342
19353
  return v;
19343
19354
  }
@@ -19519,7 +19530,7 @@ var Hh = { exports: {} };
19519
19530
  return function(W, Q, J) {
19520
19531
  return Q && V(W.prototype, Q), J && V(W, J), W;
19521
19532
  };
19522
- }(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S), T = i(26), N = i(38), A = i(39), E = i(40);
19533
+ }(), l = i(3), h = O(l), c = i(2), f = O(c), u = i(0), d = O(u), p = i(5), m = O(p), g = i(10), y = O(g), b = i(9), _ = O(b), v = i(36), x = i(37), S = i(13), w = O(S), E = i(26), N = i(38), A = i(39), T = i(40);
19523
19534
  function O(V) {
19524
19535
  return V && V.__esModule ? V : { default: V };
19525
19536
  }
@@ -19540,9 +19551,9 @@ var Hh = { exports: {} };
19540
19551
  throw new TypeError("Super expression must either be null or a function, not " + typeof W);
19541
19552
  V.prototype = Object.create(W && W.prototype, { constructor: { value: V, enumerable: !1, writable: !0, configurable: !0 } }), W && (Object.setPrototypeOf ? Object.setPrototypeOf(V, W) : V.__proto__ = W);
19542
19553
  }
19543
- var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE, at], ["br", K], [Node.ELEMENT_NODE, at], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, lt], [Node.ELEMENT_NODE, H], [Node.ELEMENT_NODE, It], ["li", rt], ["b", q.bind(q, "bold")], ["i", q.bind(q, "italic")], ["style", tt]], k = [v.AlignAttribute, N.DirectionAttribute].reduce(function(V, W) {
19554
+ var D = (0, y.default)("quill:clipboard"), z = "__ql-matcher", $ = [[Node.TEXT_NODE, St], [Node.TEXT_NODE, ot], ["br", K], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, ut], [Node.ELEMENT_NODE, H], [Node.ELEMENT_NODE, It], ["li", rt], ["b", q.bind(q, "bold")], ["i", q.bind(q, "italic")], ["style", tt]], k = [v.AlignAttribute, N.DirectionAttribute].reduce(function(V, W) {
19544
19555
  return V[W.keyName] = W, V;
19545
- }, {}), I = [v.AlignStyle, x.BackgroundStyle, T.ColorStyle, N.DirectionStyle, A.FontStyle, E.SizeStyle].reduce(function(V, W) {
19556
+ }, {}), I = [v.AlignStyle, x.BackgroundStyle, E.ColorStyle, N.DirectionStyle, A.FontStyle, T.SizeStyle].reduce(function(V, W) {
19546
19557
  return V[W.keyName] = W, V;
19547
19558
  }, {}), P = function(V) {
19548
19559
  U(W, V);
@@ -19551,7 +19562,7 @@ var Hh = { exports: {} };
19551
19562
  var Y = F(this, (W.__proto__ || Object.getPrototypeOf(W)).call(this, Q, J));
19552
19563
  return Y.quill.root.addEventListener("paste", Y.onPaste.bind(Y)), Y.container = Y.quill.addContainer("ql-clipboard"), Y.container.setAttribute("contenteditable", !0), Y.container.setAttribute("tabindex", -1), Y.matchers = [], $.concat(Y.options.matchers).forEach(function(ht) {
19553
19564
  var Z = a(ht, 2), it = Z[0], At = Z[1];
19554
- !J.matchVisual && At === lt || Y.addMatcher(it, At);
19565
+ !J.matchVisual && At === ut || Y.addMatcher(it, At);
19555
19566
  }), Y;
19556
19567
  }
19557
19568
  return o(W, [{
@@ -19700,12 +19711,12 @@ var Hh = { exports: {} };
19700
19711
  (d.default.query(Y) || {}).blotName === "list" && (J += 1), Y = Y.parentNode;
19701
19712
  return J <= 0 ? W : W.compose(new f.default().retain(W.length() - 1).retain(1, { indent: J }));
19702
19713
  }
19703
- function at(V, W) {
19714
+ function ot(V, W) {
19704
19715
  return G(W, `
19705
19716
  `) || (M(V) || W.length() > 0 && V.nextSibling && M(V.nextSibling)) && W.insert(`
19706
19717
  `), W;
19707
19718
  }
19708
- function lt(V, W) {
19719
+ function ut(V, W) {
19709
19720
  if (M(V) && V.nextElementSibling != null && !G(W, `
19710
19721
 
19711
19722
  `)) {
@@ -19733,7 +19744,7 @@ var Hh = { exports: {} };
19733
19744
  }
19734
19745
  return W.insert(Q);
19735
19746
  }
19736
- n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline = at, n.matchSpacing = lt, n.matchText = St;
19747
+ n.default = P, n.matchAttributor = H, n.matchBlot = X, n.matchNewline = ot, n.matchSpacing = ut, n.matchText = St;
19737
19748
  },
19738
19749
  /* 56 */
19739
19750
  /***/
@@ -19812,7 +19823,7 @@ var Hh = { exports: {} };
19812
19823
  value: !0
19813
19824
  }), n.addControls = n.default = void 0;
19814
19825
  var s = function() {
19815
- function E(O, R) {
19826
+ function T(O, R) {
19816
19827
  var C = [], F = !0, U = !1, D = void 0;
19817
19828
  try {
19818
19829
  for (var z = O[Symbol.iterator](), $; !(F = ($ = z.next()).done) && (C.push($.value), !(R && C.length === R)); F = !0)
@@ -19833,42 +19844,42 @@ var Hh = { exports: {} };
19833
19844
  if (Array.isArray(O))
19834
19845
  return O;
19835
19846
  if (Symbol.iterator in Object(O))
19836
- return E(O, R);
19847
+ return T(O, R);
19837
19848
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
19838
19849
  };
19839
19850
  }(), a = function() {
19840
- function E(O, R) {
19851
+ function T(O, R) {
19841
19852
  for (var C = 0; C < R.length; C++) {
19842
19853
  var F = R[C];
19843
19854
  F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(O, F.key, F);
19844
19855
  }
19845
19856
  }
19846
19857
  return function(O, R, C) {
19847
- return R && E(O.prototype, R), C && E(O, C), O;
19858
+ return R && T(O.prototype, R), C && T(O, C), O;
19848
19859
  };
19849
19860
  }(), o = i(2), l = y(o), h = i(0), c = y(h), f = i(5), u = y(f), d = i(10), p = y(d), m = i(9), g = y(m);
19850
- function y(E) {
19851
- return E && E.__esModule ? E : { default: E };
19861
+ function y(T) {
19862
+ return T && T.__esModule ? T : { default: T };
19852
19863
  }
19853
- function b(E, O, R) {
19854
- return O in E ? Object.defineProperty(E, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : E[O] = R, E;
19864
+ function b(T, O, R) {
19865
+ return O in T ? Object.defineProperty(T, O, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : T[O] = R, T;
19855
19866
  }
19856
- function _(E, O) {
19857
- if (!(E instanceof O))
19867
+ function _(T, O) {
19868
+ if (!(T instanceof O))
19858
19869
  throw new TypeError("Cannot call a class as a function");
19859
19870
  }
19860
- function v(E, O) {
19861
- if (!E)
19871
+ function v(T, O) {
19872
+ if (!T)
19862
19873
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19863
- return O && (typeof O == "object" || typeof O == "function") ? O : E;
19874
+ return O && (typeof O == "object" || typeof O == "function") ? O : T;
19864
19875
  }
19865
- function x(E, O) {
19876
+ function x(T, O) {
19866
19877
  if (typeof O != "function" && O !== null)
19867
19878
  throw new TypeError("Super expression must either be null or a function, not " + typeof O);
19868
- E.prototype = Object.create(O && O.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(E, O) : E.__proto__ = O);
19879
+ T.prototype = Object.create(O && O.prototype, { constructor: { value: T, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(T, O) : T.__proto__ = O);
19869
19880
  }
19870
- var S = (0, p.default)("quill:toolbar"), w = function(E) {
19871
- x(O, E);
19881
+ var S = (0, p.default)("quill:toolbar"), w = function(T) {
19882
+ x(O, T);
19872
19883
  function O(R, C) {
19873
19884
  _(this, O);
19874
19885
  var F = v(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, R, C));
@@ -19967,29 +19978,29 @@ var Hh = { exports: {} };
19967
19978
  }]), O;
19968
19979
  }(g.default);
19969
19980
  w.DEFAULTS = {};
19970
- function T(E, O, R) {
19981
+ function E(T, O, R) {
19971
19982
  var C = document.createElement("button");
19972
- C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R), E.appendChild(C);
19983
+ C.setAttribute("type", "button"), C.classList.add("ql-" + O), R != null && (C.value = R), T.appendChild(C);
19973
19984
  }
19974
- function N(E, O) {
19985
+ function N(T, O) {
19975
19986
  Array.isArray(O[0]) || (O = [O]), O.forEach(function(R) {
19976
19987
  var C = document.createElement("span");
19977
19988
  C.classList.add("ql-formats"), R.forEach(function(F) {
19978
19989
  if (typeof F == "string")
19979
- T(C, F);
19990
+ E(C, F);
19980
19991
  else {
19981
19992
  var U = Object.keys(F)[0], D = F[U];
19982
- Array.isArray(D) ? A(C, U, D) : T(C, U, D);
19993
+ Array.isArray(D) ? A(C, U, D) : E(C, U, D);
19983
19994
  }
19984
- }), E.appendChild(C);
19995
+ }), T.appendChild(C);
19985
19996
  });
19986
19997
  }
19987
- function A(E, O, R) {
19998
+ function A(T, O, R) {
19988
19999
  var C = document.createElement("select");
19989
20000
  C.classList.add("ql-" + O), R.forEach(function(F) {
19990
20001
  var U = document.createElement("option");
19991
20002
  F !== !1 ? U.setAttribute("value", F) : U.setAttribute("selected", "selected"), C.appendChild(U);
19992
- }), E.appendChild(C);
20003
+ }), T.appendChild(C);
19993
20004
  }
19994
20005
  w.DEFAULTS = {
19995
20006
  container: null,
@@ -20228,10 +20239,10 @@ var Hh = { exports: {} };
20228
20239
  value: !0
20229
20240
  });
20230
20241
  var s = function() {
20231
- function A(E, O) {
20242
+ function A(T, O) {
20232
20243
  var R = [], C = !0, F = !1, U = void 0;
20233
20244
  try {
20234
- for (var D = E[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
20245
+ for (var D = T[Symbol.iterator](), z; !(C = (z = D.next()).done) && (R.push(z.value), !(O && R.length === O)); C = !0)
20235
20246
  ;
20236
20247
  } catch ($) {
20237
20248
  F = !0, U = $;
@@ -20245,18 +20256,18 @@ var Hh = { exports: {} };
20245
20256
  }
20246
20257
  return R;
20247
20258
  }
20248
- return function(E, O) {
20249
- if (Array.isArray(E))
20250
- return E;
20251
- if (Symbol.iterator in Object(E))
20252
- return A(E, O);
20259
+ return function(T, O) {
20260
+ if (Array.isArray(T))
20261
+ return T;
20262
+ if (Symbol.iterator in Object(T))
20263
+ return A(T, O);
20253
20264
  throw new TypeError("Invalid attempt to destructure non-iterable instance");
20254
20265
  };
20255
- }(), a = function A(E, O, R) {
20256
- E === null && (E = Function.prototype);
20257
- var C = Object.getOwnPropertyDescriptor(E, O);
20266
+ }(), a = function A(T, O, R) {
20267
+ T === null && (T = Function.prototype);
20268
+ var C = Object.getOwnPropertyDescriptor(T, O);
20258
20269
  if (C === void 0) {
20259
- var F = Object.getPrototypeOf(E);
20270
+ var F = Object.getPrototypeOf(T);
20260
20271
  return F === null ? void 0 : A(F, O, R);
20261
20272
  } else {
20262
20273
  if ("value" in C)
@@ -20265,55 +20276,55 @@ var Hh = { exports: {} };
20265
20276
  return U === void 0 ? void 0 : U.call(R);
20266
20277
  }
20267
20278
  }, o = function() {
20268
- function A(E, O) {
20279
+ function A(T, O) {
20269
20280
  for (var R = 0; R < O.length; R++) {
20270
20281
  var C = O[R];
20271
- C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(E, C.key, C);
20282
+ C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(T, C.key, C);
20272
20283
  }
20273
20284
  }
20274
- return function(E, O, R) {
20275
- return O && A(E.prototype, O), R && A(E, R), E;
20285
+ return function(T, O, R) {
20286
+ return O && A(T.prototype, O), R && A(T, R), T;
20276
20287
  };
20277
20288
  }(), l = i(3), h = _(l), c = i(8), f = _(c), u = i(43), d = _(u), p = i(27), m = _(p), g = i(15), y = i(41), b = _(y);
20278
20289
  function _(A) {
20279
20290
  return A && A.__esModule ? A : { default: A };
20280
20291
  }
20281
- function v(A, E) {
20282
- if (!(A instanceof E))
20292
+ function v(A, T) {
20293
+ if (!(A instanceof T))
20283
20294
  throw new TypeError("Cannot call a class as a function");
20284
20295
  }
20285
- function x(A, E) {
20296
+ function x(A, T) {
20286
20297
  if (!A)
20287
20298
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
20288
- return E && (typeof E == "object" || typeof E == "function") ? E : A;
20299
+ return T && (typeof T == "object" || typeof T == "function") ? T : A;
20289
20300
  }
20290
- function S(A, E) {
20291
- if (typeof E != "function" && E !== null)
20292
- throw new TypeError("Super expression must either be null or a function, not " + typeof E);
20293
- A.prototype = Object.create(E && E.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(A, E) : A.__proto__ = E);
20301
+ function S(A, T) {
20302
+ if (typeof T != "function" && T !== null)
20303
+ throw new TypeError("Super expression must either be null or a function, not " + typeof T);
20304
+ A.prototype = Object.create(T && T.prototype, { constructor: { value: A, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(A, T) : A.__proto__ = T);
20294
20305
  }
20295
- var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], T = function(A) {
20296
- S(E, A);
20297
- function E(O, R) {
20298
- v(this, E), R.modules.toolbar != null && R.modules.toolbar.container == null && (R.modules.toolbar.container = w);
20299
- var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
20306
+ var w = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], E = function(A) {
20307
+ S(T, A);
20308
+ function T(O, R) {
20309
+ v(this, T), R.modules.toolbar != null && R.modules.toolbar.container == null && (R.modules.toolbar.container = w);
20310
+ var C = x(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O, R));
20300
20311
  return C.quill.container.classList.add("ql-snow"), C;
20301
20312
  }
20302
- return o(E, [{
20313
+ return o(T, [{
20303
20314
  key: "extendToolbar",
20304
20315
  value: function(R) {
20305
20316
  R.container.classList.add("ql-snow"), this.buildButtons([].slice.call(R.container.querySelectorAll("button")), b.default), this.buildPickers([].slice.call(R.container.querySelectorAll("select")), b.default), this.tooltip = new N(this.quill, this.options.bounds), R.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(C, F) {
20306
20317
  R.handlers.link.call(R, !F.format.link);
20307
20318
  });
20308
20319
  }
20309
- }]), E;
20320
+ }]), T;
20310
20321
  }(d.default);
20311
- T.DEFAULTS = (0, h.default)(!0, {}, d.default.DEFAULTS, {
20322
+ E.DEFAULTS = (0, h.default)(!0, {}, d.default.DEFAULTS, {
20312
20323
  modules: {
20313
20324
  toolbar: {
20314
20325
  handlers: {
20315
- link: function(E) {
20316
- if (E) {
20326
+ link: function(T) {
20327
+ if (T) {
20317
20328
  var O = this.quill.getSelection();
20318
20329
  if (O == null || O.length == 0)
20319
20330
  return;
@@ -20329,17 +20340,17 @@ var Hh = { exports: {} };
20329
20340
  }
20330
20341
  });
20331
20342
  var N = function(A) {
20332
- S(E, A);
20333
- function E(O, R) {
20334
- v(this, E);
20335
- var C = x(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, O, R));
20343
+ S(T, A);
20344
+ function T(O, R) {
20345
+ v(this, T);
20346
+ var C = x(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, O, R));
20336
20347
  return C.preview = C.root.querySelector("a.ql-preview"), C;
20337
20348
  }
20338
- return o(E, [{
20349
+ return o(T, [{
20339
20350
  key: "listen",
20340
20351
  value: function() {
20341
20352
  var R = this;
20342
- a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(C) {
20353
+ a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(C) {
20343
20354
  R.root.classList.contains("ql-editing") ? R.save() : R.edit("link", R.preview.textContent), C.preventDefault();
20344
20355
  }), this.root.querySelector("a.ql-remove").addEventListener("click", function(C) {
20345
20356
  if (R.linkRange != null) {
@@ -20366,11 +20377,11 @@ var Hh = { exports: {} };
20366
20377
  }, {
20367
20378
  key: "show",
20368
20379
  value: function() {
20369
- a(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
20380
+ a(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "show", this).call(this), this.root.removeAttribute("data-mode");
20370
20381
  }
20371
- }]), E;
20382
+ }]), T;
20372
20383
  }(u.BaseTooltip);
20373
- N.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), n.default = T;
20384
+ N.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), n.default = E;
20374
20385
  },
20375
20386
  /* 63 */
20376
20387
  /***/
@@ -20378,7 +20389,7 @@ var Hh = { exports: {} };
20378
20389
  Object.defineProperty(n, "__esModule", {
20379
20390
  value: !0
20380
20391
  });
20381
- var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S), T = i(27), N = Y(T), A = i(69), E = Y(A), O = i(70), R = Y(O), C = i(71), F = Y(C), U = i(72), D = Y(U), z = i(73), $ = Y(z), k = i(13), I = Y(k), P = i(74), L = Y(P), j = i(75), G = Y(j), M = i(57), B = Y(M), q = i(41), H = Y(q), X = i(28), K = Y(X), tt = i(59), rt = Y(tt), at = i(60), lt = Y(at), It = i(61), St = Y(It), V = i(108), W = Y(V), Q = i(62), J = Y(Q);
20392
+ var s = i(29), a = Y(s), o = i(36), l = i(38), h = i(64), c = i(65), f = Y(c), u = i(66), d = Y(u), p = i(67), m = Y(p), g = i(37), y = i(26), b = i(39), _ = i(40), v = i(56), x = Y(v), S = i(68), w = Y(S), E = i(27), N = Y(E), A = i(69), T = Y(A), O = i(70), R = Y(O), C = i(71), F = Y(C), U = i(72), D = Y(U), z = i(73), $ = Y(z), k = i(13), I = Y(k), P = i(74), L = Y(P), j = i(75), G = Y(j), M = i(57), B = Y(M), q = i(41), H = Y(q), X = i(28), K = Y(X), tt = i(59), rt = Y(tt), ot = i(60), ut = Y(ot), It = i(61), St = Y(It), V = i(108), W = Y(V), Q = i(62), J = Y(Q);
20382
20393
  function Y(ht) {
20383
20394
  return ht && ht.__esModule ? ht : { default: ht };
20384
20395
  }
@@ -20412,7 +20423,7 @@ var Hh = { exports: {} };
20412
20423
  "formats/code": k.Code,
20413
20424
  "formats/italic": w.default,
20414
20425
  "formats/link": N.default,
20415
- "formats/script": E.default,
20426
+ "formats/script": T.default,
20416
20427
  "formats/strike": R.default,
20417
20428
  "formats/underline": F.default,
20418
20429
  "formats/image": D.default,
@@ -20425,7 +20436,7 @@ var Hh = { exports: {} };
20425
20436
  "themes/snow": J.default,
20426
20437
  "ui/icons": H.default,
20427
20438
  "ui/picker": K.default,
20428
- "ui/icon-picker": lt.default,
20439
+ "ui/icon-picker": ut.default,
20429
20440
  "ui/color-picker": rt.default,
20430
20441
  "ui/tooltip": St.default
20431
20442
  }, !0), n.default = a.default;
@@ -20597,8 +20608,8 @@ var Hh = { exports: {} };
20597
20608
  var s = function() {
20598
20609
  function v(x, S) {
20599
20610
  for (var w = 0; w < S.length; w++) {
20600
- var T = S[w];
20601
- T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(x, T.key, T);
20611
+ var E = S[w];
20612
+ E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(x, E.key, E);
20602
20613
  }
20603
20614
  }
20604
20615
  return function(x, S, w) {
@@ -20606,14 +20617,14 @@ var Hh = { exports: {} };
20606
20617
  };
20607
20618
  }(), a = function v(x, S, w) {
20608
20619
  x === null && (x = Function.prototype);
20609
- var T = Object.getOwnPropertyDescriptor(x, S);
20610
- if (T === void 0) {
20620
+ var E = Object.getOwnPropertyDescriptor(x, S);
20621
+ if (E === void 0) {
20611
20622
  var N = Object.getPrototypeOf(x);
20612
20623
  return N === null ? void 0 : v(N, S, w);
20613
20624
  } else {
20614
- if ("value" in T)
20615
- return T.value;
20616
- var A = T.get;
20625
+ if ("value" in E)
20626
+ return E.value;
20627
+ var A = E.get;
20617
20628
  return A === void 0 ? void 0 : A.call(w);
20618
20629
  }
20619
20630
  }, o = i(0), l = d(o), h = i(4), c = d(h), f = i(25), u = d(f);
@@ -20644,8 +20655,8 @@ var Hh = { exports: {} };
20644
20655
  }
20645
20656
  return s(x, [{
20646
20657
  key: "format",
20647
- value: function(w, T) {
20648
- w === _.blotName && !T ? this.replaceWith(l.default.create(this.statics.scope)) : a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "format", this).call(this, w, T);
20658
+ value: function(w, E) {
20659
+ w === _.blotName && !E ? this.replaceWith(l.default.create(this.statics.scope)) : a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "format", this).call(this, w, E);
20649
20660
  }
20650
20661
  }, {
20651
20662
  key: "remove",
@@ -20654,8 +20665,8 @@ var Hh = { exports: {} };
20654
20665
  }
20655
20666
  }, {
20656
20667
  key: "replaceWith",
20657
- value: function(w, T) {
20658
- return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w, T), this) : (this.parent.unwrap(), a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replaceWith", this).call(this, w, T));
20668
+ value: function(w, E) {
20669
+ return this.parent.isolate(this.offset(this.parent), this.length()), w === this.parent.statics.blotName ? (this.parent.replaceWith(w, E), this) : (this.parent.unwrap(), a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replaceWith", this).call(this, w, E));
20659
20670
  }
20660
20671
  }], [{
20661
20672
  key: "formats",
@@ -20669,7 +20680,7 @@ var Hh = { exports: {} };
20669
20680
  y(x, v), s(x, null, [{
20670
20681
  key: "create",
20671
20682
  value: function(w) {
20672
- var T = w === "ordered" ? "OL" : "UL", N = a(x.__proto__ || Object.getPrototypeOf(x), "create", this).call(this, T);
20683
+ var E = w === "ordered" ? "OL" : "UL", N = a(x.__proto__ || Object.getPrototypeOf(x), "create", this).call(this, E);
20673
20684
  return (w === "checked" || w === "unchecked") && N.setAttribute("data-checked", w === "checked"), N;
20674
20685
  }
20675
20686
  }, {
@@ -20683,18 +20694,18 @@ var Hh = { exports: {} };
20683
20694
  }]);
20684
20695
  function x(S) {
20685
20696
  m(this, x);
20686
- var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)), T = function(A) {
20697
+ var w = g(this, (x.__proto__ || Object.getPrototypeOf(x)).call(this, S)), E = function(A) {
20687
20698
  if (A.target.parentNode === S) {
20688
- var E = w.statics.formats(S), O = l.default.find(A.target);
20689
- E === "checked" ? O.format("list", "unchecked") : E === "unchecked" && O.format("list", "checked");
20699
+ var T = w.statics.formats(S), O = l.default.find(A.target);
20700
+ T === "checked" ? O.format("list", "unchecked") : T === "unchecked" && O.format("list", "checked");
20690
20701
  }
20691
20702
  };
20692
- return S.addEventListener("touchstart", T), S.addEventListener("mousedown", T), w;
20703
+ return S.addEventListener("touchstart", E), S.addEventListener("mousedown", E), w;
20693
20704
  }
20694
20705
  return s(x, [{
20695
20706
  key: "format",
20696
- value: function(w, T) {
20697
- this.children.length > 0 && this.children.tail.format(w, T);
20707
+ value: function(w, E) {
20708
+ this.children.length > 0 && this.children.tail.format(w, E);
20698
20709
  }
20699
20710
  }, {
20700
20711
  key: "formats",
@@ -20703,11 +20714,11 @@ var Hh = { exports: {} };
20703
20714
  }
20704
20715
  }, {
20705
20716
  key: "insertBefore",
20706
- value: function(w, T) {
20717
+ value: function(w, E) {
20707
20718
  if (w instanceof b)
20708
- a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w, T);
20719
+ a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "insertBefore", this).call(this, w, E);
20709
20720
  else {
20710
- var N = T == null ? this.length() : T.offset(this), A = this.split(N);
20721
+ var N = E == null ? this.length() : E.offset(this), A = this.split(N);
20711
20722
  A.parent.insertBefore(w, A);
20712
20723
  }
20713
20724
  }
@@ -20715,15 +20726,15 @@ var Hh = { exports: {} };
20715
20726
  key: "optimize",
20716
20727
  value: function(w) {
20717
20728
  a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "optimize", this).call(this, w);
20718
- var T = this.next;
20719
- T != null && T.prev === this && T.statics.blotName === this.statics.blotName && T.domNode.tagName === this.domNode.tagName && T.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (T.moveChildren(this), T.remove());
20729
+ var E = this.next;
20730
+ E != null && E.prev === this && E.statics.blotName === this.statics.blotName && E.domNode.tagName === this.domNode.tagName && E.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (E.moveChildren(this), E.remove());
20720
20731
  }
20721
20732
  }, {
20722
20733
  key: "replace",
20723
20734
  value: function(w) {
20724
20735
  if (w.statics.blotName !== this.statics.blotName) {
20725
- var T = l.default.create(this.statics.defaultChild);
20726
- w.moveChildren(T), this.appendChild(T);
20736
+ var E = l.default.create(this.statics.defaultChild);
20737
+ w.moveChildren(E), this.appendChild(E);
20727
20738
  }
20728
20739
  a(x.prototype.__proto__ || Object.getPrototypeOf(x.prototype), "replace", this).call(this, w);
20729
20740
  }
@@ -21089,8 +21100,8 @@ var Hh = { exports: {} };
21089
21100
  v === null && (v = Function.prototype);
21090
21101
  var w = Object.getOwnPropertyDescriptor(v, x);
21091
21102
  if (w === void 0) {
21092
- var T = Object.getPrototypeOf(v);
21093
- return T === null ? void 0 : _(T, x, S);
21103
+ var E = Object.getPrototypeOf(v);
21104
+ return E === null ? void 0 : _(E, x, S);
21094
21105
  } else {
21095
21106
  if ("value" in w)
21096
21107
  return w.value;
@@ -21162,21 +21173,21 @@ var Hh = { exports: {} };
21162
21173
  value: !0
21163
21174
  }), n.default = n.CodeToken = n.CodeBlock = void 0;
21164
21175
  var s = function() {
21165
- function S(w, T) {
21166
- for (var N = 0; N < T.length; N++) {
21167
- var A = T[N];
21176
+ function S(w, E) {
21177
+ for (var N = 0; N < E.length; N++) {
21178
+ var A = E[N];
21168
21179
  A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(w, A.key, A);
21169
21180
  }
21170
21181
  }
21171
- return function(w, T, N) {
21172
- return T && S(w.prototype, T), N && S(w, N), w;
21182
+ return function(w, E, N) {
21183
+ return E && S(w.prototype, E), N && S(w, N), w;
21173
21184
  };
21174
- }(), a = function S(w, T, N) {
21185
+ }(), a = function S(w, E, N) {
21175
21186
  w === null && (w = Function.prototype);
21176
- var A = Object.getOwnPropertyDescriptor(w, T);
21187
+ var A = Object.getOwnPropertyDescriptor(w, E);
21177
21188
  if (A === void 0) {
21178
- var E = Object.getPrototypeOf(w);
21179
- return E === null ? void 0 : S(E, T, N);
21189
+ var T = Object.getPrototypeOf(w);
21190
+ return T === null ? void 0 : S(T, E, N);
21180
21191
  } else {
21181
21192
  if ("value" in A)
21182
21193
  return A.value;
@@ -21229,15 +21240,15 @@ var Hh = { exports: {} };
21229
21240
  c.default.register(v, !0), c.default.register(_, !0);
21230
21241
  }
21231
21242
  }]);
21232
- function w(T, N) {
21243
+ function w(E, N) {
21233
21244
  g(this, w);
21234
- var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, T, N));
21245
+ var A = y(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, E, N));
21235
21246
  if (typeof A.options.highlight != "function")
21236
21247
  throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
21237
- var E = null;
21248
+ var T = null;
21238
21249
  return A.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
21239
- clearTimeout(E), E = setTimeout(function() {
21240
- A.highlight(), E = null;
21250
+ clearTimeout(T), T = setTimeout(function() {
21251
+ A.highlight(), T = null;
21241
21252
  }, A.options.interval);
21242
21253
  }), A.highlight(), A;
21243
21254
  }
@@ -21248,8 +21259,8 @@ var Hh = { exports: {} };
21248
21259
  if (!this.quill.selection.composing) {
21249
21260
  this.quill.update(c.default.sources.USER);
21250
21261
  var A = this.quill.getSelection();
21251
- this.quill.scroll.descendants(_).forEach(function(E) {
21252
- E.highlight(N.options.highlight);
21262
+ this.quill.scroll.descendants(_).forEach(function(T) {
21263
+ T.highlight(N.options.highlight);
21253
21264
  }), this.quill.update(c.default.sources.SILENT), A != null && this.quill.setSelection(A, c.default.sources.SILENT);
21254
21265
  }
21255
21266
  }
@@ -21431,102 +21442,102 @@ var Hh = { exports: {} };
21431
21442
  Object.defineProperty(n, "__esModule", {
21432
21443
  value: !0
21433
21444
  }), n.default = n.BubbleTooltip = void 0;
21434
- var s = function w(T, N, A) {
21435
- T === null && (T = Function.prototype);
21436
- var E = Object.getOwnPropertyDescriptor(T, N);
21437
- if (E === void 0) {
21438
- var O = Object.getPrototypeOf(T);
21445
+ var s = function w(E, N, A) {
21446
+ E === null && (E = Function.prototype);
21447
+ var T = Object.getOwnPropertyDescriptor(E, N);
21448
+ if (T === void 0) {
21449
+ var O = Object.getPrototypeOf(E);
21439
21450
  return O === null ? void 0 : w(O, N, A);
21440
21451
  } else {
21441
- if ("value" in E)
21442
- return E.value;
21443
- var R = E.get;
21452
+ if ("value" in T)
21453
+ return T.value;
21454
+ var R = T.get;
21444
21455
  return R === void 0 ? void 0 : R.call(A);
21445
21456
  }
21446
21457
  }, a = function() {
21447
- function w(T, N) {
21458
+ function w(E, N) {
21448
21459
  for (var A = 0; A < N.length; A++) {
21449
- var E = N[A];
21450
- E.enumerable = E.enumerable || !1, E.configurable = !0, "value" in E && (E.writable = !0), Object.defineProperty(T, E.key, E);
21460
+ var T = N[A];
21461
+ T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(E, T.key, T);
21451
21462
  }
21452
21463
  }
21453
- return function(T, N, A) {
21454
- return N && w(T.prototype, N), A && w(T, A), T;
21464
+ return function(E, N, A) {
21465
+ return N && w(E.prototype, N), A && w(E, A), E;
21455
21466
  };
21456
21467
  }(), o = i(3), l = g(o), h = i(8), c = g(h), f = i(43), u = g(f), d = i(15), p = i(41), m = g(p);
21457
21468
  function g(w) {
21458
21469
  return w && w.__esModule ? w : { default: w };
21459
21470
  }
21460
- function y(w, T) {
21461
- if (!(w instanceof T))
21471
+ function y(w, E) {
21472
+ if (!(w instanceof E))
21462
21473
  throw new TypeError("Cannot call a class as a function");
21463
21474
  }
21464
- function b(w, T) {
21475
+ function b(w, E) {
21465
21476
  if (!w)
21466
21477
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
21467
- return T && (typeof T == "object" || typeof T == "function") ? T : w;
21478
+ return E && (typeof E == "object" || typeof E == "function") ? E : w;
21468
21479
  }
21469
- function _(w, T) {
21470
- if (typeof T != "function" && T !== null)
21471
- throw new TypeError("Super expression must either be null or a function, not " + typeof T);
21472
- w.prototype = Object.create(T && T.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), T && (Object.setPrototypeOf ? Object.setPrototypeOf(w, T) : w.__proto__ = T);
21480
+ function _(w, E) {
21481
+ if (typeof E != "function" && E !== null)
21482
+ throw new TypeError("Super expression must either be null or a function, not " + typeof E);
21483
+ w.prototype = Object.create(E && E.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), E && (Object.setPrototypeOf ? Object.setPrototypeOf(w, E) : w.__proto__ = E);
21473
21484
  }
21474
21485
  var v = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], x = function(w) {
21475
- _(T, w);
21476
- function T(N, A) {
21477
- y(this, T), A.modules.toolbar != null && A.modules.toolbar.container == null && (A.modules.toolbar.container = v);
21478
- var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
21479
- return E.quill.container.classList.add("ql-bubble"), E;
21486
+ _(E, w);
21487
+ function E(N, A) {
21488
+ y(this, E), A.modules.toolbar != null && A.modules.toolbar.container == null && (A.modules.toolbar.container = v);
21489
+ var T = b(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, N, A));
21490
+ return T.quill.container.classList.add("ql-bubble"), T;
21480
21491
  }
21481
- return a(T, [{
21492
+ return a(E, [{
21482
21493
  key: "extendToolbar",
21483
21494
  value: function(A) {
21484
21495
  this.tooltip = new S(this.quill, this.options.bounds), this.tooltip.root.appendChild(A.container), this.buildButtons([].slice.call(A.container.querySelectorAll("button")), m.default), this.buildPickers([].slice.call(A.container.querySelectorAll("select")), m.default);
21485
21496
  }
21486
- }]), T;
21497
+ }]), E;
21487
21498
  }(u.default);
21488
21499
  x.DEFAULTS = (0, l.default)(!0, {}, u.default.DEFAULTS, {
21489
21500
  modules: {
21490
21501
  toolbar: {
21491
21502
  handlers: {
21492
- link: function(T) {
21493
- T ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
21503
+ link: function(E) {
21504
+ E ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
21494
21505
  }
21495
21506
  }
21496
21507
  }
21497
21508
  }
21498
21509
  });
21499
21510
  var S = function(w) {
21500
- _(T, w);
21501
- function T(N, A) {
21502
- y(this, T);
21503
- var E = b(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this, N, A));
21504
- return E.quill.on(c.default.events.EDITOR_CHANGE, function(O, R, C, F) {
21511
+ _(E, w);
21512
+ function E(N, A) {
21513
+ y(this, E);
21514
+ var T = b(this, (E.__proto__ || Object.getPrototypeOf(E)).call(this, N, A));
21515
+ return T.quill.on(c.default.events.EDITOR_CHANGE, function(O, R, C, F) {
21505
21516
  if (O === c.default.events.SELECTION_CHANGE)
21506
21517
  if (R != null && R.length > 0 && F === c.default.sources.USER) {
21507
- E.show(), E.root.style.left = "0px", E.root.style.width = "", E.root.style.width = E.root.offsetWidth + "px";
21508
- var U = E.quill.getLines(R.index, R.length);
21518
+ T.show(), T.root.style.left = "0px", T.root.style.width = "", T.root.style.width = T.root.offsetWidth + "px";
21519
+ var U = T.quill.getLines(R.index, R.length);
21509
21520
  if (U.length === 1)
21510
- E.position(E.quill.getBounds(R));
21521
+ T.position(T.quill.getBounds(R));
21511
21522
  else {
21512
- var D = U[U.length - 1], z = E.quill.getIndex(D), $ = Math.min(D.length() - 1, R.index + R.length - z), k = E.quill.getBounds(new d.Range(z, $));
21513
- E.position(k);
21523
+ var D = U[U.length - 1], z = T.quill.getIndex(D), $ = Math.min(D.length() - 1, R.index + R.length - z), k = T.quill.getBounds(new d.Range(z, $));
21524
+ T.position(k);
21514
21525
  }
21515
21526
  } else
21516
- document.activeElement !== E.textbox && E.quill.hasFocus() && E.hide();
21517
- }), E;
21527
+ document.activeElement !== T.textbox && T.quill.hasFocus() && T.hide();
21528
+ }), T;
21518
21529
  }
21519
- return a(T, [{
21530
+ return a(E, [{
21520
21531
  key: "listen",
21521
21532
  value: function() {
21522
21533
  var A = this;
21523
- s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
21534
+ s(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
21524
21535
  A.root.classList.remove("ql-editing");
21525
21536
  }), this.quill.on(c.default.events.SCROLL_OPTIMIZE, function() {
21526
21537
  setTimeout(function() {
21527
21538
  if (!A.root.classList.contains("ql-hidden")) {
21528
- var E = A.quill.getSelection();
21529
- E != null && A.position(A.quill.getBounds(E));
21539
+ var T = A.quill.getSelection();
21540
+ T != null && A.position(A.quill.getBounds(T));
21530
21541
  }
21531
21542
  }, 1);
21532
21543
  });
@@ -21539,12 +21550,12 @@ var Hh = { exports: {} };
21539
21550
  }, {
21540
21551
  key: "position",
21541
21552
  value: function(A) {
21542
- var E = s(T.prototype.__proto__ || Object.getPrototypeOf(T.prototype), "position", this).call(this, A), O = this.root.querySelector(".ql-tooltip-arrow");
21543
- if (O.style.marginLeft = "", E === 0)
21544
- return E;
21545
- O.style.marginLeft = -1 * E - O.offsetWidth / 2 + "px";
21553
+ var T = s(E.prototype.__proto__ || Object.getPrototypeOf(E.prototype), "position", this).call(this, A), O = this.root.querySelector(".ql-tooltip-arrow");
21554
+ if (O.style.marginLeft = "", T === 0)
21555
+ return T;
21556
+ O.style.marginLeft = -1 * T - O.offsetWidth / 2 + "px";
21546
21557
  }
21547
- }]), T;
21558
+ }]), E;
21548
21559
  }(f.BaseTooltip);
21549
21560
  S.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), n.BubbleTooltip = S, n.default = x;
21550
21561
  },
@@ -21561,7 +21572,7 @@ var Hh = { exports: {} };
21561
21572
  var qT = Hh.exports;
21562
21573
  const HT = /* @__PURE__ */ Mr(qT);
21563
21574
  const oA = (e) => {
21564
- const [t, r] = le(!1);
21575
+ const [t, r] = ue(!1);
21565
21576
  console.log("allProps", e);
21566
21577
  const n = dt(null), i = dt(null), s = dt(null), a = dt(null), o = dt(16), l = dt(null), {
21567
21578
  uniqueId: h,
@@ -21580,11 +21591,11 @@ const oA = (e) => {
21580
21591
  scale: x = [1, 1],
21581
21592
  x: S,
21582
21593
  y: w,
21583
- rotation: T = 1,
21594
+ rotation: E = 1,
21584
21595
  /// font
21585
21596
  fontFamily: N = "Arial",
21586
21597
  fontWeight: A = "normal",
21587
- fontStyle: E = "normal",
21598
+ fontStyle: T = "normal",
21588
21599
  fontSize: O = 16,
21589
21600
  // fill
21590
21601
  fill: R = "black",
@@ -21600,12 +21611,12 @@ const oA = (e) => {
21600
21611
  leading: k = 0,
21601
21612
  letterSpacing: I
21602
21613
  } = u;
21603
- ut.useEffect(() => {
21614
+ at.useEffect(() => {
21604
21615
  o.current = Number(O);
21605
21616
  }, [O]);
21606
- const P = ["italic", "oblique"].includes(E) ? E : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
21617
+ const P = ["italic", "oblique"].includes(T) ? T : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
21607
21618
  A
21608
- ) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = ut.useMemo(() => new de.TextStyle({
21619
+ ) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = at.useMemo(() => new re.TextStyle({
21609
21620
  fontFamily: N,
21610
21621
  fontSize: O,
21611
21622
  fill: R || "white",
@@ -21646,7 +21657,7 @@ const oA = (e) => {
21646
21657
  F,
21647
21658
  $
21648
21659
  ]);
21649
- ut.useEffect(() => {
21660
+ at.useEffect(() => {
21650
21661
  l.current = {
21651
21662
  ...u
21652
21663
  };
@@ -21658,7 +21669,7 @@ const oA = (e) => {
21658
21669
  droptype: "titles"
21659
21670
  });
21660
21671
  };
21661
- return ut.useEffect(() => {
21672
+ return at.useEffect(() => {
21662
21673
  if (t && s.current) {
21663
21674
  let q = document.getElementById("note-editor");
21664
21675
  if (q) {
@@ -21706,7 +21717,7 @@ const oA = (e) => {
21706
21717
  style: G,
21707
21718
  x: S,
21708
21719
  y: w,
21709
- rotation: T,
21720
+ rotation: E,
21710
21721
  anchor: 0.5,
21711
21722
  text: c,
21712
21723
  ...!t && !f && {
@@ -21726,9 +21737,9 @@ const oA = (e) => {
21726
21737
  ) })
21727
21738
  ] }) });
21728
21739
  }, zT = sa(Ft, {
21729
- blur: de.filters.BlurFilter,
21740
+ blur: re.filters.BlurFilter,
21730
21741
  adjust: wa,
21731
- matrix: de.filters.ColorMatrixFilter
21742
+ matrix: re.filters.ColorMatrixFilter
21732
21743
  }), VT = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], XT = {
21733
21744
  isPlaying: !1,
21734
21745
  progress: 0,
@@ -21739,10 +21750,10 @@ const oA = (e) => {
21739
21750
  size: { width: 50, height: 50 },
21740
21751
  isDragging: !1
21741
21752
  }, lA = (e) => {
21742
- const [t, r] = ut.useState(!1), [, n] = le(!1), [, i] = ut.useState({
21753
+ const [t, r] = at.useState(!1), [, n] = ue(!1), [, i] = at.useState({
21743
21754
  isWaiting: !1,
21744
21755
  isStalled: !1
21745
- }), [s, a] = ut.useState(), [o, l] = le(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
21756
+ }), [s, a] = at.useState(), [o, l] = ue(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
21746
21757
  tl: g,
21747
21758
  playerTimeRef: y,
21748
21759
  isDragging: b
@@ -21752,10 +21763,10 @@ const oA = (e) => {
21752
21763
  locked: x = !1,
21753
21764
  src: S,
21754
21765
  startAt: w,
21755
- endAt: T,
21766
+ endAt: E,
21756
21767
  frameStartAt: N,
21757
21768
  frameEndAt: A,
21758
- initialAlpha: E,
21769
+ initialAlpha: T,
21759
21770
  transformation: {
21760
21771
  x: O,
21761
21772
  y: R,
@@ -21780,21 +21791,21 @@ const oA = (e) => {
21780
21791
  contrast: K = 1,
21781
21792
  saturation: tt = 1,
21782
21793
  exposure: rt = 1,
21783
- blurRadius: at = 0,
21784
- alpha: lt = 1
21794
+ blurRadius: ot = 0,
21795
+ alpha: ut = 1
21785
21796
  } = $ || {}, It = {
21786
21797
  brightness: rt,
21787
21798
  contrast: K,
21788
21799
  saturation: tt,
21789
- alpha: lt
21790
- }, St = ut.useCallback(() => {
21800
+ alpha: ut
21801
+ }, St = at.useCallback(() => {
21791
21802
  l(!0);
21792
- }, []), V = ut.useCallback(
21803
+ }, []), V = at.useCallback(
21793
21804
  (Z) => {
21794
21805
  console.log("changeEnd", Z), H && (console.log("running onAnchorTransformationEnd"), H(Z));
21795
21806
  },
21796
21807
  []
21797
- ), W = ut.useMemo(() => {
21808
+ ), W = at.useMemo(() => {
21798
21809
  const Z = document.createElement("video");
21799
21810
  return Z.src = S, Z.crossOrigin = "Anonymus", Z.autoplay = !1, Z.currentTime = 1e-4, Z;
21800
21811
  }, [S]);
@@ -21803,11 +21814,11 @@ const oA = (e) => {
21803
21814
  const it = p.current;
21804
21815
  it.currentTime > 0 && !it.paused && !it.ended && it.readyState > it.HAVE_CURRENT_DATA && p.current.pause(), m.current.isPlaying = !1;
21805
21816
  }
21806
- }), ut.useEffect(() => {
21817
+ }), at.useEffect(() => {
21807
21818
  console.log("current", p.current, b), p.current && (b ? (p.current.pause(), m.current.isPlaying = !1, m.current.isDragging = !0) : m.current.isDragging = !1);
21808
21819
  }, [b]);
21809
21820
  const Q = (Z) => {
21810
- p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <= T && !b && (p.current.currentTime = Number(N) || Number(Z), p.current.play(), m.current.isPlaying = !0));
21821
+ p.current && (console.log("video gsapOnStart", y.current, b), y.current >= Z && y.current <= E && !b && (p.current.currentTime = Number(N) || Number(Z), p.current.play(), m.current.isPlaying = !0));
21811
21822
  }, J = () => {
21812
21823
  if (console.log("onComplete triggered"), p.current) {
21813
21824
  const Z = p.current;
@@ -21830,7 +21841,7 @@ const oA = (e) => {
21830
21841
  });
21831
21842
  if (c.current && g.current) {
21832
21843
  const it = {
21833
- duration: Number(T) - Number(w),
21844
+ duration: Number(E) - Number(w),
21834
21845
  onStart: Q,
21835
21846
  onComplete: J,
21836
21847
  onStartParams: [w],
@@ -21844,30 +21855,30 @@ const oA = (e) => {
21844
21855
  ee(At.from) ? ee(At.to) ? ee(At.fromTo) ? g.current.to(c.current, { alpha: 1, duration: 0.01 }, w).from(u.current, { ...it }, w).to(
21845
21856
  c.current,
21846
21857
  { alpha: 0, duration: 0.1 },
21847
- Number(T) - 0.1
21858
+ Number(E) - 0.1
21848
21859
  ) : g.current.fromTo(
21849
21860
  c.current,
21850
21861
  (Gt = At.fromTo) == null ? void 0 : Gt.from,
21851
21862
  (bt = At.fromTo) == null ? void 0 : bt.to,
21852
21863
  w
21853
- ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.to(
21864
+ ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2) : g.current.to(
21854
21865
  c.current,
21855
21866
  { alpha: 1, duration: 0.2, ...At.to },
21856
21867
  w
21857
- ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2) : g.current.from(c.current, { ...At.from }, w).to(u.current, { alpha: 1, duration: 0.2 }, w).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, T - 0.2);
21868
+ ).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2) : g.current.from(c.current, { ...At.from }, w).to(u.current, { alpha: 1, duration: 0.2 }, w).from(u.current, { ...it }, w).to(c.current, { alpha: 0, duration: 0.2 }, E - 0.2);
21858
21869
  });
21859
21870
  }
21860
21871
  return () => Z.revert();
21861
- }, [z, w, T]), ut.useEffect(() => {
21872
+ }, [z, w, E]), at.useEffect(() => {
21862
21873
  c.current && r(!0);
21863
- }, []), ut.useEffect(() => {
21874
+ }, []), at.useEffect(() => {
21864
21875
  p.current && (p.current.muted = v);
21865
- }, [v]), ut.useEffect(() => {
21876
+ }, [v]), at.useEffect(() => {
21866
21877
  if (p.current) {
21867
21878
  const Z = p.current;
21868
21879
  Z.currentTime > 0 && !Z.paused && !Z.ended && Z.readyState > Z.HAVE_CURRENT_DATA && (o || b) && (p.current.pause(), m.current.isPlaying = !1);
21869
21880
  }
21870
- }, [o, b]), ut.useEffect(() => {
21881
+ }, [o, b]), at.useEffect(() => {
21871
21882
  const Z = Math.round((Number(N) + Number.EPSILON) * 100) / 100, it = function() {
21872
21883
  p.current && (p.current.currentTime = Z);
21873
21884
  }, At = function() {
@@ -21882,8 +21893,8 @@ const oA = (e) => {
21882
21893
  i({ isWaiting: !1, isStalled: !1 });
21883
21894
  }, _t = function() {
21884
21895
  i({ isWaiting: !1, isStalled: !0 });
21885
- }, xt = Math.round((Number(N) + Number.EPSILON) * 100) / 100, Mt = Math.round((Number(A) + Number.EPSILON) * 100) / 100, re = `${X}#t=${xt},${Mt}`;
21886
- return console.log("urlTimestap", re), de.Texture.fromLoader(W, re, _, {
21896
+ }, xt = Math.round((Number(N) + Number.EPSILON) * 100) / 100, Mt = Math.round((Number(A) + Number.EPSILON) * 100) / 100, ne = `${X}#t=${xt},${Mt}`;
21897
+ return console.log("urlTimestap", ne), re.Texture.fromLoader(W, ne, _, {
21887
21898
  pixiIdPrefix: _,
21888
21899
  resourceOptions: {
21889
21900
  autoPlay: !1,
@@ -21904,7 +21915,7 @@ const oA = (e) => {
21904
21915
  Ft,
21905
21916
  {
21906
21917
  ref: c,
21907
- alpha: E,
21918
+ alpha: T,
21908
21919
  position: [O, R],
21909
21920
  pivot: [O, R],
21910
21921
  width: C,
@@ -21913,7 +21924,7 @@ const oA = (e) => {
21913
21924
  zT,
21914
21925
  {
21915
21926
  scale: 1,
21916
- blur: { blur: at, quality: 4 },
21927
+ blur: { blur: ot, quality: 4 },
21917
21928
  adjust: It,
21918
21929
  apply: ({ matrix: Z }) => {
21919
21930
  k === "BlackAndWhite" ? Z.desaturate() : k === "Sepia" ? Z.sepia() : k === "RetroVintage" || k === "NightVision" ? Z.negative() : k === "Normal" && Z.reset();
@@ -21953,11 +21964,12 @@ const oA = (e) => {
21953
21964
  )
21954
21965
  }
21955
21966
  ),
21956
- q && t && /* @__PURE__ */ ft.jsx(
21967
+ q && /* @__PURE__ */ ft.jsx(
21957
21968
  Sa,
21958
21969
  {
21959
21970
  pixiTransformerRef: d,
21960
21971
  imageRef: c,
21972
+ isMounted: t,
21961
21973
  transformCommit: V,
21962
21974
  transformChange: St,
21963
21975
  mouseoverEvent: n,
@@ -21979,5 +21991,6 @@ export {
21979
21991
  nA as PixiImageSprite,
21980
21992
  iA as PixiSvgPathSprite,
21981
21993
  oA as PixiTextSprite,
21982
- lA as PixiVideoSprite
21994
+ lA as PixiVideoSprite,
21995
+ Zy as Transformer
21983
21996
  };