@opentiny/tiny-robot 0.2.0-alpha.9 → 0.2.1

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/index6.js CHANGED
@@ -1,8 +1,8 @@
1
- import * as S from "vue";
2
- var Lr = Object.defineProperty, Dr = (r, e, n) => e in r ? Lr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, re = (r, e, n) => Dr(r, typeof e != "symbol" ? e + "" : e, n), Ie = { exports: {} }, P = {}, Pe = { exports: {} }, Z = {}, st;
3
- function Dt() {
4
- if (st) return Z;
5
- st = 1;
1
+ import * as k from "vue";
2
+ var _r = Object.defineProperty, Or = (r, e, n) => e in r ? _r(r, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : r[e] = n, te = (r, e, n) => Or(r, typeof e != "symbol" ? e + "" : e, n), Oe = { exports: {} }, P = {}, Me = { exports: {} }, Q = {}, at;
3
+ function Lt() {
4
+ if (at) return Q;
5
+ at = 1;
6
6
  function r() {
7
7
  var t = {};
8
8
  return t["align-content"] = !1, t["align-items"] = !1, t["align-self"] = !1, t["alignment-adjust"] = !1, t["alignment-baseline"] = !1, t.all = !1, t["anchor-point"] = !1, t.animation = !1, t["animation-delay"] = !1, t["animation-direction"] = !1, t["animation-duration"] = !1, t["animation-fill-mode"] = !1, t["animation-iteration-count"] = !1, t["animation-name"] = !1, t["animation-play-state"] = !1, t["animation-timing-function"] = !1, t.azimuth = !1, t["backface-visibility"] = !1, t.background = !0, t["background-attachment"] = !0, t["background-clip"] = !0, t["background-color"] = !0, t["background-image"] = !0, t["background-origin"] = !0, t["background-position"] = !0, t["background-repeat"] = !0, t["background-size"] = !0, t["baseline-shift"] = !1, t.binding = !1, t.bleed = !1, t["bookmark-label"] = !1, t["bookmark-level"] = !1, t["bookmark-state"] = !1, t.border = !0, t["border-bottom"] = !0, t["border-bottom-color"] = !0, t["border-bottom-left-radius"] = !0, t["border-bottom-right-radius"] = !0, t["border-bottom-style"] = !0, t["border-bottom-width"] = !0, t["border-collapse"] = !0, t["border-color"] = !0, t["border-image"] = !0, t["border-image-outset"] = !0, t["border-image-repeat"] = !0, t["border-image-slice"] = !0, t["border-image-source"] = !0, t["border-image-width"] = !0, t["border-left"] = !0, t["border-left-color"] = !0, t["border-left-style"] = !0, t["border-left-width"] = !0, t["border-radius"] = !0, t["border-right"] = !0, t["border-right-color"] = !0, t["border-right-style"] = !0, t["border-right-width"] = !0, t["border-spacing"] = !0, t["border-style"] = !0, t["border-top"] = !0, t["border-top-color"] = !0, t["border-top-left-radius"] = !0, t["border-top-right-radius"] = !0, t["border-top-style"] = !0, t["border-top-width"] = !0, t["border-width"] = !0, t.bottom = !1, t["box-decoration-break"] = !0, t["box-shadow"] = !0, t["box-sizing"] = !0, t["box-snap"] = !0, t["box-suppress"] = !0, t["break-after"] = !0, t["break-before"] = !0, t["break-inside"] = !0, t["caption-side"] = !1, t.chains = !1, t.clear = !0, t.clip = !1, t["clip-path"] = !1, t["clip-rule"] = !1, t.color = !0, t["color-interpolation-filters"] = !0, t["column-count"] = !1, t["column-fill"] = !1, t["column-gap"] = !1, t["column-rule"] = !1, t["column-rule-color"] = !1, t["column-rule-style"] = !1, t["column-rule-width"] = !1, t["column-span"] = !1, t["column-width"] = !1, t.columns = !1, t.contain = !1, t.content = !1, t["counter-increment"] = !1, t["counter-reset"] = !1, t["counter-set"] = !1, t.crop = !1, t.cue = !1, t["cue-after"] = !1, t["cue-before"] = !1, t.cursor = !1, t.direction = !1, t.display = !0, t["display-inside"] = !0, t["display-list"] = !0, t["display-outside"] = !0, t["dominant-baseline"] = !1, t.elevation = !1, t["empty-cells"] = !1, t.filter = !1, t.flex = !1, t["flex-basis"] = !1, t["flex-direction"] = !1, t["flex-flow"] = !1, t["flex-grow"] = !1, t["flex-shrink"] = !1, t["flex-wrap"] = !1, t.float = !1, t["float-offset"] = !1, t["flood-color"] = !1, t["flood-opacity"] = !1, t["flow-from"] = !1, t["flow-into"] = !1, t.font = !0, t["font-family"] = !0, t["font-feature-settings"] = !0, t["font-kerning"] = !0, t["font-language-override"] = !0, t["font-size"] = !0, t["font-size-adjust"] = !0, t["font-stretch"] = !0, t["font-style"] = !0, t["font-synthesis"] = !0, t["font-variant"] = !0, t["font-variant-alternates"] = !0, t["font-variant-caps"] = !0, t["font-variant-east-asian"] = !0, t["font-variant-ligatures"] = !0, t["font-variant-numeric"] = !0, t["font-variant-position"] = !0, t["font-weight"] = !0, t.grid = !1, t["grid-area"] = !1, t["grid-auto-columns"] = !1, t["grid-auto-flow"] = !1, t["grid-auto-rows"] = !1, t["grid-column"] = !1, t["grid-column-end"] = !1, t["grid-column-start"] = !1, t["grid-row"] = !1, t["grid-row-end"] = !1, t["grid-row-start"] = !1, t["grid-template"] = !1, t["grid-template-areas"] = !1, t["grid-template-columns"] = !1, t["grid-template-rows"] = !1, t["hanging-punctuation"] = !1, t.height = !0, t.hyphens = !1, t.icon = !1, t["image-orientation"] = !1, t["image-resolution"] = !1, t["ime-mode"] = !1, t["initial-letters"] = !1, t["inline-box-align"] = !1, t["justify-content"] = !1, t["justify-items"] = !1, t["justify-self"] = !1, t.left = !1, t["letter-spacing"] = !0, t["lighting-color"] = !0, t["line-box-contain"] = !1, t["line-break"] = !1, t["line-grid"] = !1, t["line-height"] = !1, t["line-snap"] = !1, t["line-stacking"] = !1, t["line-stacking-ruby"] = !1, t["line-stacking-shift"] = !1, t["line-stacking-strategy"] = !1, t["list-style"] = !0, t["list-style-image"] = !0, t["list-style-position"] = !0, t["list-style-type"] = !0, t.margin = !0, t["margin-bottom"] = !0, t["margin-left"] = !0, t["margin-right"] = !0, t["margin-top"] = !0, t["marker-offset"] = !1, t["marker-side"] = !1, t.marks = !1, t.mask = !1, t["mask-box"] = !1, t["mask-box-outset"] = !1, t["mask-box-repeat"] = !1, t["mask-box-slice"] = !1, t["mask-box-source"] = !1, t["mask-box-width"] = !1, t["mask-clip"] = !1, t["mask-image"] = !1, t["mask-origin"] = !1, t["mask-position"] = !1, t["mask-repeat"] = !1, t["mask-size"] = !1, t["mask-source-type"] = !1, t["mask-type"] = !1, t["max-height"] = !0, t["max-lines"] = !1, t["max-width"] = !0, t["min-height"] = !0, t["min-width"] = !0, t["move-to"] = !1, t["nav-down"] = !1, t["nav-index"] = !1, t["nav-left"] = !1, t["nav-right"] = !1, t["nav-up"] = !1, t["object-fit"] = !1, t["object-position"] = !1, t.opacity = !1, t.order = !1, t.orphans = !1, t.outline = !1, t["outline-color"] = !1, t["outline-offset"] = !1, t["outline-style"] = !1, t["outline-width"] = !1, t.overflow = !1, t["overflow-wrap"] = !1, t["overflow-x"] = !1, t["overflow-y"] = !1, t.padding = !0, t["padding-bottom"] = !0, t["padding-left"] = !0, t["padding-right"] = !0, t["padding-top"] = !0, t.page = !1, t["page-break-after"] = !1, t["page-break-before"] = !1, t["page-break-inside"] = !1, t["page-policy"] = !1, t.pause = !1, t["pause-after"] = !1, t["pause-before"] = !1, t.perspective = !1, t["perspective-origin"] = !1, t.pitch = !1, t["pitch-range"] = !1, t["play-during"] = !1, t.position = !1, t["presentation-level"] = !1, t.quotes = !1, t["region-fragment"] = !1, t.resize = !1, t.rest = !1, t["rest-after"] = !1, t["rest-before"] = !1, t.richness = !1, t.right = !1, t.rotation = !1, t["rotation-point"] = !1, t["ruby-align"] = !1, t["ruby-merge"] = !1, t["ruby-position"] = !1, t["shape-image-threshold"] = !1, t["shape-outside"] = !1, t["shape-margin"] = !1, t.size = !1, t.speak = !1, t["speak-as"] = !1, t["speak-header"] = !1, t["speak-numeral"] = !1, t["speak-punctuation"] = !1, t["speech-rate"] = !1, t.stress = !1, t["string-set"] = !1, t["tab-size"] = !1, t["table-layout"] = !1, t["text-align"] = !0, t["text-align-last"] = !0, t["text-combine-upright"] = !0, t["text-decoration"] = !0, t["text-decoration-color"] = !0, t["text-decoration-line"] = !0, t["text-decoration-skip"] = !0, t["text-decoration-style"] = !0, t["text-emphasis"] = !0, t["text-emphasis-color"] = !0, t["text-emphasis-position"] = !0, t["text-emphasis-style"] = !0, t["text-height"] = !0, t["text-indent"] = !0, t["text-justify"] = !0, t["text-orientation"] = !0, t["text-overflow"] = !0, t["text-shadow"] = !0, t["text-space-collapse"] = !0, t["text-transform"] = !0, t["text-underline-position"] = !0, t["text-wrap"] = !0, t.top = !1, t.transform = !1, t["transform-origin"] = !1, t["transform-style"] = !1, t.transition = !1, t["transition-delay"] = !1, t["transition-duration"] = !1, t["transition-property"] = !1, t["transition-timing-function"] = !1, t["unicode-bidi"] = !1, t["vertical-align"] = !1, t.visibility = !1, t["voice-balance"] = !1, t["voice-duration"] = !1, t["voice-family"] = !1, t["voice-pitch"] = !1, t["voice-range"] = !1, t["voice-rate"] = !1, t["voice-stress"] = !1, t["voice-volume"] = !1, t.volume = !1, t["white-space"] = !1, t.widows = !1, t.width = !0, t["will-change"] = !1, t["word-break"] = !0, t["word-spacing"] = !0, t["word-wrap"] = !0, t["wrap-flow"] = !1, t["wrap-through"] = !1, t["writing-mode"] = !1, t["z-index"] = !1, t;
@@ -15,11 +15,11 @@ function Dt() {
15
15
  function i(t, a) {
16
16
  return o.test(a) ? "" : a;
17
17
  }
18
- return Z.whiteList = r(), Z.getDefaultWhiteList = r, Z.onAttr = e, Z.onIgnoreAttr = n, Z.safeAttrValue = i, Z;
18
+ return Q.whiteList = r(), Q.getDefaultWhiteList = r, Q.onAttr = e, Q.onIgnoreAttr = n, Q.safeAttrValue = i, Q;
19
19
  }
20
- var lt, ct;
20
+ var st, lt;
21
21
  function zt() {
22
- return ct || (ct = 1, lt = {
22
+ return lt || (lt = 1, st = {
23
23
  indexOf: function(r, e) {
24
24
  var n, o;
25
25
  if (Array.prototype.indexOf)
@@ -42,23 +42,23 @@ function zt() {
42
42
  trimRight: function(r) {
43
43
  return String.prototype.trimRight ? r.trimRight() : r.replace(/(\s*$)/g, "");
44
44
  }
45
- }), lt;
45
+ }), st;
46
46
  }
47
- var Fe, ut;
48
- function zr() {
49
- if (ut) return Fe;
50
- ut = 1;
47
+ var Ie, ct;
48
+ function Mr() {
49
+ if (ct) return Ie;
50
+ ct = 1;
51
51
  var r = zt();
52
52
  function e(n, o) {
53
53
  n = r.trimRight(n), n[n.length - 1] !== ";" && (n += ";");
54
54
  var i = n.length, t = !1, a = 0, s = 0, c = "";
55
- function f() {
55
+ function d() {
56
56
  if (!t) {
57
57
  var p = r.trim(n.slice(a, s)), u = p.indexOf(":");
58
58
  if (u !== -1) {
59
- var m = r.trim(p.slice(0, u)), w = r.trim(p.slice(u + 1));
60
- if (m) {
61
- var h = o(a, c.length, m, w, p);
59
+ var T = r.trim(p.slice(0, u)), w = r.trim(p.slice(u + 1));
60
+ if (T) {
61
+ var h = o(a, c.length, T, w, p);
62
62
  h && (c += h + "; ");
63
63
  }
64
64
  }
@@ -66,23 +66,23 @@ function zr() {
66
66
  a = s + 1;
67
67
  }
68
68
  for (; s < i; s++) {
69
- var d = n[s];
70
- if (d === "/" && n[s + 1] === "*") {
69
+ var f = n[s];
70
+ if (f === "/" && n[s + 1] === "*") {
71
71
  var l = n.indexOf("*/", s + 2);
72
72
  if (l === -1) break;
73
73
  s = l + 1, a = s + 1, t = !1;
74
- } else d === "(" ? t = !0 : d === ")" ? t = !1 : d === ";" ? t || f() : d === `
75
- ` && f();
74
+ } else f === "(" ? t = !0 : f === ")" ? t = !1 : f === ";" ? t || d() : f === `
75
+ ` && d();
76
76
  }
77
77
  return r.trim(c);
78
78
  }
79
- return Fe = e, Fe;
79
+ return Ie = e, Ie;
80
80
  }
81
- var Le, dt;
82
- function Rr() {
83
- if (dt) return Le;
84
- dt = 1;
85
- var r = Dt(), e = zr();
81
+ var Pe, ut;
82
+ function Ir() {
83
+ if (ut) return Pe;
84
+ ut = 1;
85
+ var r = Lt(), e = Mr();
86
86
  zt();
87
87
  function n(t) {
88
88
  return t == null;
@@ -98,32 +98,32 @@ function Rr() {
98
98
  }
99
99
  return i.prototype.process = function(t) {
100
100
  if (t = t || "", t = t.toString(), !t) return "";
101
- var a = this, s = a.options, c = s.whiteList, f = s.onAttr, d = s.onIgnoreAttr, l = s.safeAttrValue, p = e(t, function(u, m, w, h, x) {
102
- var y = c[w], g = !1;
103
- if (y === !0 ? g = y : typeof y == "function" ? g = y(h) : y instanceof RegExp && (g = y.test(h)), g !== !0 && (g = !1), h = l(w, h), !!h) {
104
- var k = {
105
- position: m,
101
+ var a = this, s = a.options, c = s.whiteList, d = s.onAttr, f = s.onIgnoreAttr, l = s.safeAttrValue, p = e(t, function(u, T, w, h, S) {
102
+ var g = c[w], v = !1;
103
+ if (g === !0 ? v = g : typeof g == "function" ? v = g(h) : g instanceof RegExp && (v = g.test(h)), v !== !0 && (v = !1), h = l(w, h), !!h) {
104
+ var E = {
105
+ position: T,
106
106
  sourcePosition: u,
107
- source: x,
108
- isWhite: g
107
+ source: S,
108
+ isWhite: v
109
109
  };
110
- if (g) {
111
- var C = f(w, h, k);
112
- return n(C) ? w + ":" + h : C;
110
+ if (v) {
111
+ var x = d(w, h, E);
112
+ return n(x) ? w + ":" + h : x;
113
113
  } else {
114
- var C = d(w, h, k);
115
- if (!n(C))
116
- return C;
114
+ var x = f(w, h, E);
115
+ if (!n(x))
116
+ return x;
117
117
  }
118
118
  }
119
119
  });
120
120
  return p;
121
- }, Le = i, Le;
121
+ }, Pe = i, Pe;
122
122
  }
123
- var ft;
124
- function $e() {
125
- return ft || (ft = 1, function(r, e) {
126
- var n = Dt(), o = Rr();
123
+ var dt;
124
+ function Be() {
125
+ return dt || (dt = 1, function(r, e) {
126
+ var n = Lt(), o = Ir();
127
127
  function i(a, s) {
128
128
  var c = new o(s);
129
129
  return c.process(a);
@@ -131,11 +131,11 @@ function $e() {
131
131
  e = r.exports = i, e.FilterCSS = o;
132
132
  for (var t in n) e[t] = n[t];
133
133
  typeof window < "u" && (window.filterCSS = r.exports);
134
- }(Pe, Pe.exports)), Pe.exports;
134
+ }(Me, Me.exports)), Me.exports;
135
135
  }
136
- var pt, ht;
137
- function Qe() {
138
- return ht || (ht = 1, pt = {
136
+ var ft, pt;
137
+ function Ze() {
138
+ return pt || (pt = 1, ft = {
139
139
  indexOf: function(r, e) {
140
140
  var n, o;
141
141
  if (Array.prototype.indexOf)
@@ -159,13 +159,13 @@ function Qe() {
159
159
  var e = /\s|\n|\t/, n = e.exec(r);
160
160
  return n ? n.index : -1;
161
161
  }
162
- }), pt;
162
+ }), ft;
163
163
  }
164
- var mt;
164
+ var ht;
165
165
  function Rt() {
166
- if (mt) return P;
167
- mt = 1;
168
- var r = $e().FilterCSS, e = $e().getDefaultWhiteList, n = Qe();
166
+ if (ht) return P;
167
+ ht = 1;
168
+ var r = Be().FilterCSS, e = Be().getDefaultWhiteList, n = Ze();
169
169
  function o() {
170
170
  return {
171
171
  a: ["target", "href", "title"],
@@ -258,120 +258,120 @@ function Rt() {
258
258
  };
259
259
  }
260
260
  var i = new r();
261
- function t(b, E, v) {
261
+ function t(y, A, m) {
262
262
  }
263
- function a(b, E, v) {
263
+ function a(y, A, m) {
264
264
  }
265
- function s(b, E, v) {
265
+ function s(y, A, m) {
266
266
  }
267
- function c(b, E, v) {
267
+ function c(y, A, m) {
268
268
  }
269
- function f(b) {
270
- return b.replace(l, "&lt;").replace(p, "&gt;");
269
+ function d(y) {
270
+ return y.replace(l, "&lt;").replace(p, "&gt;");
271
271
  }
272
- function d(b, E, v, I) {
273
- if (v = M(v), E === "href" || E === "src") {
274
- if (v = n.trim(v), v === "#") return "#";
275
- if (!(v.substr(0, 7) === "http://" || v.substr(0, 8) === "https://" || v.substr(0, 7) === "mailto:" || v.substr(0, 4) === "tel:" || v.substr(0, 11) === "data:image/" || v.substr(0, 6) === "ftp://" || v.substr(0, 2) === "./" || v.substr(0, 3) === "../" || v[0] === "#" || v[0] === "/"))
272
+ function f(y, A, m, I) {
273
+ if (m = M(m), A === "href" || A === "src") {
274
+ if (m = n.trim(m), m === "#") return "#";
275
+ if (!(m.substr(0, 7) === "http://" || m.substr(0, 8) === "https://" || m.substr(0, 7) === "mailto:" || m.substr(0, 4) === "tel:" || m.substr(0, 11) === "data:image/" || m.substr(0, 6) === "ftp://" || m.substr(0, 2) === "./" || m.substr(0, 3) === "../" || m[0] === "#" || m[0] === "/"))
276
276
  return "";
277
- } else if (E === "background") {
278
- if (y.lastIndex = 0, y.test(v))
277
+ } else if (A === "background") {
278
+ if (g.lastIndex = 0, g.test(m))
279
279
  return "";
280
- } else if (E === "style") {
281
- if (g.lastIndex = 0, g.test(v) || (k.lastIndex = 0, k.test(v) && (y.lastIndex = 0, y.test(v))))
280
+ } else if (A === "style") {
281
+ if (v.lastIndex = 0, v.test(m) || (E.lastIndex = 0, E.test(m) && (g.lastIndex = 0, g.test(m))))
282
282
  return "";
283
- I !== !1 && (I = I || i, v = I.process(v));
283
+ I !== !1 && (I = I || i, m = I.process(m));
284
284
  }
285
- return v = L(v), v;
285
+ return m = L(m), m;
286
286
  }
287
- var l = /</g, p = />/g, u = /"/g, m = /&quot;/g, w = /&#([a-zA-Z0-9]*);?/gim, h = /&colon;?/gim, x = /&newline;?/gim, y = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, g = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, k = /u\s*r\s*l\s*\(.*/gi;
288
- function C(b) {
289
- return b.replace(u, "&quot;");
287
+ var l = /</g, p = />/g, u = /"/g, T = /&quot;/g, w = /&#([a-zA-Z0-9]*);?/gim, h = /&colon;?/gim, S = /&newline;?/gim, g = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi, v = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi, E = /u\s*r\s*l\s*\(.*/gi;
288
+ function x(y) {
289
+ return y.replace(u, "&quot;");
290
290
  }
291
- function T(b) {
292
- return b.replace(m, '"');
291
+ function b(y) {
292
+ return y.replace(T, '"');
293
293
  }
294
- function A(b) {
295
- return b.replace(w, function(E, v) {
296
- return v[0] === "x" || v[0] === "X" ? String.fromCharCode(parseInt(v.substr(1), 16)) : String.fromCharCode(parseInt(v, 10));
294
+ function C(y) {
295
+ return y.replace(w, function(A, m) {
296
+ return m[0] === "x" || m[0] === "X" ? String.fromCharCode(parseInt(m.substr(1), 16)) : String.fromCharCode(parseInt(m, 10));
297
297
  });
298
298
  }
299
- function _(b) {
300
- return b.replace(h, ":").replace(x, " ");
299
+ function _(y) {
300
+ return y.replace(h, ":").replace(S, " ");
301
301
  }
302
- function O(b) {
303
- for (var E = "", v = 0, I = b.length; v < I; v++)
304
- E += b.charCodeAt(v) < 32 ? " " : b.charAt(v);
305
- return n.trim(E);
302
+ function O(y) {
303
+ for (var A = "", m = 0, I = y.length; m < I; m++)
304
+ A += y.charCodeAt(m) < 32 ? " " : y.charAt(m);
305
+ return n.trim(A);
306
306
  }
307
- function M(b) {
308
- return b = T(b), b = A(b), b = _(b), b = O(b), b;
307
+ function M(y) {
308
+ return y = b(y), y = C(y), y = _(y), y = O(y), y;
309
309
  }
310
- function L(b) {
311
- return b = C(b), b = f(b), b;
310
+ function L(y) {
311
+ return y = x(y), y = d(y), y;
312
312
  }
313
- function $() {
313
+ function U() {
314
314
  return "";
315
315
  }
316
- function B(b, E) {
317
- typeof E != "function" && (E = function() {
316
+ function j(y, A) {
317
+ typeof A != "function" && (A = function() {
318
318
  });
319
- var v = !Array.isArray(b);
320
- function I(Q) {
321
- return v ? !0 : n.indexOf(b, Q) !== -1;
319
+ var m = !Array.isArray(y);
320
+ function I(K) {
321
+ return m ? !0 : n.indexOf(y, K) !== -1;
322
322
  }
323
- var q = [], j = !1;
323
+ var $ = [], N = !1;
324
324
  return {
325
- onIgnoreTag: function(Q, se, H) {
326
- if (I(Q))
327
- if (H.isClosing) {
328
- var le = "[/removed]", Fr = H.position + le.length;
329
- return q.push([
330
- j !== !1 ? j : H.position,
331
- Fr
332
- ]), j = !1, le;
325
+ onIgnoreTag: function(K, ae, q) {
326
+ if (I(K))
327
+ if (q.isClosing) {
328
+ var se = "[/removed]", Ar = q.position + se.length;
329
+ return $.push([
330
+ N !== !1 ? N : q.position,
331
+ Ar
332
+ ]), N = !1, se;
333
333
  } else
334
- return j || (j = H.position), "[removed]";
334
+ return N || (N = q.position), "[removed]";
335
335
  else
336
- return E(Q, se, H);
336
+ return A(K, ae, q);
337
337
  },
338
- remove: function(Q) {
339
- var se = "", H = 0;
340
- return n.forEach(q, function(le) {
341
- se += Q.slice(H, le[0]), H = le[1];
342
- }), se += Q.slice(H), se;
338
+ remove: function(K) {
339
+ var ae = "", q = 0;
340
+ return n.forEach($, function(se) {
341
+ ae += K.slice(q, se[0]), q = se[1];
342
+ }), ae += K.slice(q), ae;
343
343
  }
344
344
  };
345
345
  }
346
- function K(b) {
347
- for (var E = "", v = 0; v < b.length; ) {
348
- var I = b.indexOf("<!--", v);
346
+ function J(y) {
347
+ for (var A = "", m = 0; m < y.length; ) {
348
+ var I = y.indexOf("<!--", m);
349
349
  if (I === -1) {
350
- E += b.slice(v);
350
+ A += y.slice(m);
351
351
  break;
352
352
  }
353
- E += b.slice(v, I);
354
- var q = b.indexOf("-->", I);
355
- if (q === -1)
353
+ A += y.slice(m, I);
354
+ var $ = y.indexOf("-->", I);
355
+ if ($ === -1)
356
356
  break;
357
- v = q + 3;
357
+ m = $ + 3;
358
358
  }
359
- return E;
359
+ return A;
360
360
  }
361
- function he(b) {
362
- var E = b.split("");
363
- return E = E.filter(function(v) {
364
- var I = v.charCodeAt(0);
361
+ function he(y) {
362
+ var A = y.split("");
363
+ return A = A.filter(function(m) {
364
+ var I = m.charCodeAt(0);
365
365
  return I === 127 ? !1 : I <= 31 ? I === 10 || I === 13 : !0;
366
- }), E.join("");
366
+ }), A.join("");
367
367
  }
368
- return P.whiteList = o(), P.getDefaultWhiteList = o, P.onTag = t, P.onIgnoreTag = a, P.onTagAttr = s, P.onIgnoreTagAttr = c, P.safeAttrValue = d, P.escapeHtml = f, P.escapeQuote = C, P.unescapeQuote = T, P.escapeHtmlEntities = A, P.escapeDangerHtml5Entities = _, P.clearNonPrintableCharacter = O, P.friendlyAttrValue = M, P.escapeAttrValue = L, P.onIgnoreTagStripAll = $, P.StripTagBody = B, P.stripCommentTag = K, P.stripBlankChar = he, P.cssFilter = i, P.getDefaultCSSWhiteList = e, P;
368
+ return P.whiteList = o(), P.getDefaultWhiteList = o, P.onTag = t, P.onIgnoreTag = a, P.onTagAttr = s, P.onIgnoreTagAttr = c, P.safeAttrValue = f, P.escapeHtml = d, P.escapeQuote = x, P.unescapeQuote = b, P.escapeHtmlEntities = C, P.escapeDangerHtml5Entities = _, P.clearNonPrintableCharacter = O, P.friendlyAttrValue = M, P.escapeAttrValue = L, P.onIgnoreTagStripAll = U, P.StripTagBody = j, P.stripCommentTag = J, P.stripBlankChar = he, P.cssFilter = i, P.getDefaultCSSWhiteList = e, P;
369
369
  }
370
- var me = {}, gt;
371
- function Nt() {
372
- if (gt) return me;
373
- gt = 1;
374
- var r = Qe();
370
+ var me = {}, mt;
371
+ function Dt() {
372
+ if (mt) return me;
373
+ mt = 1;
374
+ var r = Ze();
375
375
  function e(l) {
376
376
  var p = r.spaceIndex(l), u;
377
377
  return p === -1 ? u = l.slice(1, -1) : u = l.slice(1, p + 1), u = r.trim(u).toLowerCase(), u.slice(0, 1) === "/" && (u = u.slice(1)), u.slice(-1) === "/" && (u = u.slice(0, -1)), u;
@@ -380,81 +380,81 @@ function Nt() {
380
380
  return l.slice(0, 2) === "</";
381
381
  }
382
382
  function o(l, p, u) {
383
- var m = "", w = 0, h = !1, x = !1, y = 0, g = l.length, k = "", C = "";
384
- e: for (y = 0; y < g; y++) {
385
- var T = l.charAt(y);
383
+ var T = "", w = 0, h = !1, S = !1, g = 0, v = l.length, E = "", x = "";
384
+ e: for (g = 0; g < v; g++) {
385
+ var b = l.charAt(g);
386
386
  if (h === !1) {
387
- if (T === "<") {
388
- h = y;
387
+ if (b === "<") {
388
+ h = g;
389
389
  continue;
390
390
  }
391
- } else if (x === !1) {
392
- if (T === "<") {
393
- m += u(l.slice(w, y)), h = y, w = y;
391
+ } else if (S === !1) {
392
+ if (b === "<") {
393
+ T += u(l.slice(w, g)), h = g, w = g;
394
394
  continue;
395
395
  }
396
- if (T === ">" || y === g - 1) {
397
- m += u(l.slice(w, h)), C = l.slice(h, y + 1), k = e(C), m += p(
396
+ if (b === ">" || g === v - 1) {
397
+ T += u(l.slice(w, h)), x = l.slice(h, g + 1), E = e(x), T += p(
398
398
  h,
399
- m.length,
400
- k,
401
- C,
402
- n(C)
403
- ), w = y + 1, h = !1;
399
+ T.length,
400
+ E,
401
+ x,
402
+ n(x)
403
+ ), w = g + 1, h = !1;
404
404
  continue;
405
405
  }
406
- if (T === '"' || T === "'")
407
- for (var A = 1, _ = l.charAt(y - A); _.trim() === "" || _ === "="; ) {
406
+ if (b === '"' || b === "'")
407
+ for (var C = 1, _ = l.charAt(g - C); _.trim() === "" || _ === "="; ) {
408
408
  if (_ === "=") {
409
- x = T;
409
+ S = b;
410
410
  continue e;
411
411
  }
412
- _ = l.charAt(y - ++A);
412
+ _ = l.charAt(g - ++C);
413
413
  }
414
- } else if (T === x) {
415
- x = !1;
414
+ } else if (b === S) {
415
+ S = !1;
416
416
  continue;
417
417
  }
418
418
  }
419
- return w < g && (m += u(l.substr(w))), m;
419
+ return w < v && (T += u(l.substr(w))), T;
420
420
  }
421
421
  var i = /[^a-zA-Z0-9\\_:.-]/gim;
422
422
  function t(l, p) {
423
- var u = 0, m = 0, w = [], h = !1, x = l.length;
424
- function y(A, _) {
425
- if (A = r.trim(A), A = A.replace(i, "").toLowerCase(), !(A.length < 1)) {
426
- var O = p(A, _ || "");
423
+ var u = 0, T = 0, w = [], h = !1, S = l.length;
424
+ function g(C, _) {
425
+ if (C = r.trim(C), C = C.replace(i, "").toLowerCase(), !(C.length < 1)) {
426
+ var O = p(C, _ || "");
427
427
  O && w.push(O);
428
428
  }
429
429
  }
430
- for (var g = 0; g < x; g++) {
431
- var k = l.charAt(g), C, T;
432
- if (h === !1 && k === "=") {
433
- h = l.slice(u, g), u = g + 1, m = l.charAt(u) === '"' || l.charAt(u) === "'" ? u : s(l, g + 1);
430
+ for (var v = 0; v < S; v++) {
431
+ var E = l.charAt(v), x, b;
432
+ if (h === !1 && E === "=") {
433
+ h = l.slice(u, v), u = v + 1, T = l.charAt(u) === '"' || l.charAt(u) === "'" ? u : s(l, v + 1);
434
434
  continue;
435
435
  }
436
- if (h !== !1 && g === m) {
437
- if (T = l.indexOf(k, g + 1), T === -1)
436
+ if (h !== !1 && v === T) {
437
+ if (b = l.indexOf(E, v + 1), b === -1)
438
438
  break;
439
- C = r.trim(l.slice(m + 1, T)), y(h, C), h = !1, g = T, u = g + 1;
439
+ x = r.trim(l.slice(T + 1, b)), g(h, x), h = !1, v = b, u = v + 1;
440
440
  continue;
441
441
  }
442
- if (/\s|\n|\t/.test(k))
442
+ if (/\s|\n|\t/.test(E))
443
443
  if (l = l.replace(/\s|\n|\t/g, " "), h === !1)
444
- if (T = a(l, g), T === -1) {
445
- C = r.trim(l.slice(u, g)), y(C), h = !1, u = g + 1;
444
+ if (b = a(l, v), b === -1) {
445
+ x = r.trim(l.slice(u, v)), g(x), h = !1, u = v + 1;
446
446
  continue;
447
447
  } else {
448
- g = T - 1;
448
+ v = b - 1;
449
449
  continue;
450
450
  }
451
- else if (T = c(l, g - 1), T === -1) {
452
- C = r.trim(l.slice(u, g)), C = d(C), y(h, C), h = !1, u = g + 1;
451
+ else if (b = c(l, v - 1), b === -1) {
452
+ x = r.trim(l.slice(u, v)), x = f(x), g(h, x), h = !1, u = v + 1;
453
453
  continue;
454
454
  } else
455
455
  continue;
456
456
  }
457
- return u < l.length && (h === !1 ? y(l.slice(u)) : y(h, d(r.trim(l.slice(u))))), r.trim(w.join(" "));
457
+ return u < l.length && (h === !1 ? g(l.slice(u)) : g(h, f(r.trim(l.slice(u))))), r.trim(w.join(" "));
458
458
  }
459
459
  function a(l, p) {
460
460
  for (; p < l.length; p++) {
@@ -477,19 +477,19 @@ function Nt() {
477
477
  return u === "=" ? p : -1;
478
478
  }
479
479
  }
480
- function f(l) {
480
+ function d(l) {
481
481
  return l[0] === '"' && l[l.length - 1] === '"' || l[0] === "'" && l[l.length - 1] === "'";
482
482
  }
483
- function d(l) {
484
- return f(l) ? l.substr(1, l.length - 2) : l;
483
+ function f(l) {
484
+ return d(l) ? l.substr(1, l.length - 2) : l;
485
485
  }
486
486
  return me.parseTag = o, me.parseAttr = t, me;
487
487
  }
488
- var De, vt;
489
- function Nr() {
490
- if (vt) return De;
491
- vt = 1;
492
- var r = $e().FilterCSS, e = Rt(), n = Nt(), o = n.parseTag, i = n.parseAttr, t = Qe();
488
+ var Fe, gt;
489
+ function Pr() {
490
+ if (gt) return Fe;
491
+ gt = 1;
492
+ var r = Be().FilterCSS, e = Rt(), n = Dt(), o = n.parseTag, i = n.parseAttr, t = Ze();
493
493
  function a(l) {
494
494
  return l == null;
495
495
  }
@@ -513,61 +513,61 @@ function Nr() {
513
513
  p[u] = l[u];
514
514
  return p;
515
515
  }
516
- function f(l) {
516
+ function d(l) {
517
517
  var p = {};
518
518
  for (var u in l)
519
- Array.isArray(l[u]) ? p[u.toLowerCase()] = l[u].map(function(m) {
520
- return m.toLowerCase();
519
+ Array.isArray(l[u]) ? p[u.toLowerCase()] = l[u].map(function(T) {
520
+ return T.toLowerCase();
521
521
  }) : p[u.toLowerCase()] = l[u];
522
522
  return p;
523
523
  }
524
- function d(l) {
524
+ function f(l) {
525
525
  l = c(l || {}), l.stripIgnoreTag && (l.onIgnoreTag && console.error(
526
526
  'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
527
- ), l.onIgnoreTag = e.onIgnoreTagStripAll), l.whiteList || l.allowList ? l.whiteList = f(l.whiteList || l.allowList) : l.whiteList = e.whiteList, l.onTag = l.onTag || e.onTag, l.onTagAttr = l.onTagAttr || e.onTagAttr, l.onIgnoreTag = l.onIgnoreTag || e.onIgnoreTag, l.onIgnoreTagAttr = l.onIgnoreTagAttr || e.onIgnoreTagAttr, l.safeAttrValue = l.safeAttrValue || e.safeAttrValue, l.escapeHtml = l.escapeHtml || e.escapeHtml, this.options = l, l.css === !1 ? this.cssFilter = !1 : (l.css = l.css || {}, this.cssFilter = new r(l.css));
527
+ ), l.onIgnoreTag = e.onIgnoreTagStripAll), l.whiteList || l.allowList ? l.whiteList = d(l.whiteList || l.allowList) : l.whiteList = e.whiteList, l.onTag = l.onTag || e.onTag, l.onTagAttr = l.onTagAttr || e.onTagAttr, l.onIgnoreTag = l.onIgnoreTag || e.onIgnoreTag, l.onIgnoreTagAttr = l.onIgnoreTagAttr || e.onIgnoreTagAttr, l.safeAttrValue = l.safeAttrValue || e.safeAttrValue, l.escapeHtml = l.escapeHtml || e.escapeHtml, this.options = l, l.css === !1 ? this.cssFilter = !1 : (l.css = l.css || {}, this.cssFilter = new r(l.css));
528
528
  }
529
- return d.prototype.process = function(l) {
529
+ return f.prototype.process = function(l) {
530
530
  if (l = l || "", l = l.toString(), !l) return "";
531
- var p = this, u = p.options, m = u.whiteList, w = u.onTag, h = u.onIgnoreTag, x = u.onTagAttr, y = u.onIgnoreTagAttr, g = u.safeAttrValue, k = u.escapeHtml, C = p.cssFilter;
531
+ var p = this, u = p.options, T = u.whiteList, w = u.onTag, h = u.onIgnoreTag, S = u.onTagAttr, g = u.onIgnoreTagAttr, v = u.safeAttrValue, E = u.escapeHtml, x = p.cssFilter;
532
532
  u.stripBlankChar && (l = e.stripBlankChar(l)), u.allowCommentTag || (l = e.stripCommentTag(l));
533
- var T = !1;
534
- u.stripIgnoreTagBody && (T = e.StripTagBody(
533
+ var b = !1;
534
+ u.stripIgnoreTagBody && (b = e.StripTagBody(
535
535
  u.stripIgnoreTagBody,
536
536
  h
537
- ), h = T.onIgnoreTag);
538
- var A = o(
537
+ ), h = b.onIgnoreTag);
538
+ var C = o(
539
539
  l,
540
- function(_, O, M, L, $) {
541
- var B = {
540
+ function(_, O, M, L, U) {
541
+ var j = {
542
542
  sourcePosition: _,
543
543
  position: O,
544
- isClosing: $,
545
- isWhite: Object.prototype.hasOwnProperty.call(m, M)
546
- }, K = w(M, L, B);
547
- if (!a(K)) return K;
548
- if (B.isWhite) {
549
- if (B.isClosing)
544
+ isClosing: U,
545
+ isWhite: Object.prototype.hasOwnProperty.call(T, M)
546
+ }, J = w(M, L, j);
547
+ if (!a(J)) return J;
548
+ if (j.isWhite) {
549
+ if (j.isClosing)
550
550
  return "</" + M + ">";
551
- var he = s(L), b = m[M], E = i(he.html, function(v, I) {
552
- var q = t.indexOf(b, v) !== -1, j = x(M, v, I, q);
553
- return a(j) ? q ? (I = g(M, v, I, C), I ? v + '="' + I + '"' : v) : (j = y(M, v, I, q), a(j) ? void 0 : j) : j;
551
+ var he = s(L), y = T[M], A = i(he.html, function(m, I) {
552
+ var $ = t.indexOf(y, m) !== -1, N = S(M, m, I, $);
553
+ return a(N) ? $ ? (I = v(M, m, I, x), I ? m + '="' + I + '"' : m) : (N = g(M, m, I, $), a(N) ? void 0 : N) : N;
554
554
  });
555
- return L = "<" + M, E && (L += " " + E), he.closing && (L += " /"), L += ">", L;
555
+ return L = "<" + M, A && (L += " " + A), he.closing && (L += " /"), L += ">", L;
556
556
  } else
557
- return K = h(M, L, B), a(K) ? k(L) : K;
557
+ return J = h(M, L, j), a(J) ? E(L) : J;
558
558
  },
559
- k
559
+ E
560
560
  );
561
- return T && (A = T.remove(A)), A;
562
- }, De = d, De;
561
+ return b && (C = b.remove(C)), C;
562
+ }, Fe = f, Fe;
563
563
  }
564
- var yt;
565
- function jr() {
566
- return yt || (yt = 1, function(r, e) {
567
- var n = Rt(), o = Nt(), i = Nr();
564
+ var vt;
565
+ function Fr() {
566
+ return vt || (vt = 1, function(r, e) {
567
+ var n = Rt(), o = Dt(), i = Pr();
568
568
  function t(s, c) {
569
- var f = new i(c);
570
- return f.process(s);
569
+ var d = new i(c);
570
+ return d.process(s);
571
571
  }
572
572
  e = r.exports = t, e.filterXSS = t, e.FilterXSS = i, function() {
573
573
  for (var s in n)
@@ -579,13 +579,10 @@ function jr() {
579
579
  return typeof self < "u" && typeof DedicatedWorkerGlobalScope < "u" && self instanceof DedicatedWorkerGlobalScope;
580
580
  }
581
581
  a() && (self.filterXSS = r.exports);
582
- }(Ie, Ie.exports)), Ie.exports;
582
+ }(Oe, Oe.exports)), Oe.exports;
583
583
  }
584
- var xe = jr();
585
- let N = {
586
- enableAttrs: !0,
587
- enableHtml: !0,
588
- enableUrl: !0,
584
+ var Ue = Fr();
585
+ let $e = {
589
586
  html: {
590
587
  whiteList: {
591
588
  a: ["class", "style", "contenteditable", "data-id", "data-title", "data-size", "href", "data-last-modified"],
@@ -640,7 +637,7 @@ let N = {
640
637
  header: ["class", "style"],
641
638
  hr: ["class", "style"],
642
639
  i: ["class", "style", "data-image-id", "data-image"],
643
- img: ["class", "style", "data-image-id", "src"],
640
+ img: ["class", "style", "devui-editorx-image", "style", "data-image-id", "src"],
644
641
  input: ["class", "style", "data-formula", "data-link", "data-video"],
645
642
  ins: ["class", "style"],
646
643
  li: ["class", "style"],
@@ -674,45 +671,10 @@ let N = {
674
671
  }
675
672
  }
676
673
  };
677
- const Br = xe.getDefaultWhiteList && xe.getDefaultWhiteList() || {};
678
- N.html.whiteList = Object.assign(Br, N.html.whiteList);
679
- let jt = new xe.FilterXSS(N.html);
680
- const Ur = () => N, $r = (r) => {
681
- var e;
682
- let n;
683
- (e = r == null ? void 0 : r.html) != null && e.whiteList && (n = Object.assign(N.html.whiteList, r.html.whiteList)), N = Object.assign(N, r), n && (N.html.whiteList = n), jt = new xe.FilterXSS(N.html);
684
- };
685
- let Bt = (r) => !N.enableHtml || typeof r != "string" ? r : jt.process(r);
686
- const qr = (r) => {
687
- Bt = r;
688
- };
689
- let Ut = (r) => !N.enableAttrs || typeof r != "string" ? r : r.replace(/<.*?>/gi, "").replace(/on[a-z]+=/gi, "");
690
- const Hr = (r) => {
691
- Ut = r;
692
- };
693
- let $t = (r) => {
694
- if (!N.enableUrl || typeof r != "string")
695
- return r;
696
- const e = r.replace(/&#(\w+)(^\w|;)?/g, (o, i) => String.fromCharCode(i)).replace(/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim, "").trim();
697
- if (!e)
698
- return "";
699
- if ([".", "/"].includes(e[0]))
700
- return e;
701
- const n = e.match(/^([^:]+):/gm);
702
- return n && /^([^\w]*)(javascript|data|vbscript)/im.test(n[0]) ? "" : e;
703
- };
704
- const Vr = (r) => {
705
- $t = r;
706
- }, ii = {
707
- getXssOption: Ur,
708
- setXssOption: $r,
709
- filterHtml: Bt,
710
- setFilterHtml: qr,
711
- filterAttrs: Ut,
712
- setFilterAttrs: Hr,
713
- filterUrl: $t,
714
- setFilterUrl: Vr
715
- }, qt = Object.prototype.toString, Ze = Object.prototype.hasOwnProperty, Wr = Object.getPrototypeOf, Ht = Ze.toString, Gr = Ht.call(Object), Yr = {
674
+ const Lr = Ue.getDefaultWhiteList && Ue.getDefaultWhiteList() || {};
675
+ $e.html.whiteList = Object.assign(Lr, $e.html.whiteList);
676
+ new Ue.FilterXSS($e.html);
677
+ const Nt = Object.prototype.toString, jt = Object.prototype.hasOwnProperty, zr = Object.getPrototypeOf, Bt = jt.toString, Rr = Bt.call(Object), Dr = {
716
678
  "[object Error]": "error",
717
679
  "[object Object]": "object",
718
680
  "[object RegExp]": "regExp",
@@ -723,18 +685,18 @@ const Vr = (r) => {
723
685
  "[object String]": "string",
724
686
  "[object Number]": "number",
725
687
  "[object Boolean]": "boolean"
726
- }, Vt = (r) => r == null, Se = (r) => Vt(r) ? String(r) : Yr[qt.call(r)] || "object", bt = (r) => Se(r) === "object", oe = (r) => {
727
- if (!r || qt.call(r) !== "[object Object]")
688
+ }, Ut = (r) => r == null, Te = (r) => Ut(r) ? String(r) : Dr[Nt.call(r)] || "object", yt = (r) => Te(r) === "object", ne = (r) => {
689
+ if (!r || Nt.call(r) !== "[object Object]")
728
690
  return !1;
729
- const e = Wr(r);
691
+ const e = zr(r);
730
692
  if (!e)
731
693
  return !0;
732
- const n = Ze.call(e, "constructor") && e.constructor;
733
- return typeof n == "function" && Ht.call(n) === Gr;
734
- }, F = typeof window > "u", Jr = () => {
694
+ const n = jt.call(e, "constructor") && e.constructor;
695
+ return typeof n == "function" && Bt.call(n) === Rr;
696
+ }, F = typeof window > "u", Nr = () => {
735
697
  let r = 8;
736
698
  return document.addEventListener && window.performance && (r = 9, window.atob && window.matchMedia && (r = 10, !window.attachEvent && !document.all && (r = 11))), r;
737
- }, Kr = (r) => {
699
+ }, jr = (r) => {
738
700
  r.chrome && ~navigator.userAgent.indexOf("Edg") ? (r.name = "edge", r.edge = !0, delete r.chrome) : !document.documentMode && window.StyleMedia && (r.name = "edge", r.edge = !0);
739
701
  };
740
702
  (() => {
@@ -755,7 +717,7 @@ const Vr = (r) => {
755
717
  }, e = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
756
718
  r.isMobile = e, r.isPC = !e;
757
719
  let n;
758
- if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (r.name = "chrome", r.chrome = !0, n = navigator.userAgent.match(/chrome\/(\d+)/i), r.version = !!n && !!n[1] && parseInt(n[1], 10), n = void 0) : document.all || document.documentMode ? (r.name = "ie", r.version = Jr(), r.ie = !0) : typeof window.InstallTrigger < "u" ? (r.name = "firefox", r.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (r.name = "safari", r.safari = !0) : (window.opr && window.opr.addons || window.opera) && (r.name = "opera", r.opera = !0), Kr(r), !~["ie", "chrome"].indexOf(r.name)) {
720
+ if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (r.name = "chrome", r.chrome = !0, n = navigator.userAgent.match(/chrome\/(\d+)/i), r.version = !!n && !!n[1] && parseInt(n[1], 10), n = void 0) : document.all || document.documentMode ? (r.name = "ie", r.version = Nr(), r.ie = !0) : typeof window.InstallTrigger < "u" ? (r.name = "firefox", r.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (r.name = "safari", r.safari = !0) : (window.opr && window.opr.addons || window.opera) && (r.name = "opera", r.opera = !0), jr(r), !~["ie", "chrome"].indexOf(r.name)) {
759
721
  const o = r.name + "/(\\d+)";
760
722
  n = navigator.userAgent.match(new RegExp(o, "i")), r.version = !!n && !!n[1] && parseInt(n[1], 10), n = void 0;
761
723
  }
@@ -767,24 +729,15 @@ const Vr = (r) => {
767
729
  }
768
730
  return r;
769
731
  })();
770
- const U = (r, e, n, o = !1) => {
732
+ const B = (r, e, n, o = !1) => {
771
733
  r && e && n && r.addEventListener(e, n, o);
772
- }, X = (r, e, n, o = !1) => {
734
+ }, Z = (r, e, n, o = !1) => {
773
735
  r && e && r.removeEventListener(e, n, o);
774
736
  }, ge = (r, e = "") => {
775
737
  r && e.split(" ").filter((n) => n).forEach((n) => r.classList.add(n));
776
738
  }, ve = (r, e) => {
777
739
  !r || !e || e.split(" ").filter((n) => n).forEach((n) => r.classList.remove(n));
778
- }, ai = () => {
779
- const r = window;
780
- let e = r.document.documentElement, n = r.document.body;
781
- return {
782
- scrollTop: e.scrollTop || n.scrollTop,
783
- scrollLeft: e.scrollLeft || n.scrollLeft,
784
- visibleHeight: e.clientHeight || n.clientHeight,
785
- visibleWidth: e.clientWidth || n.clientWidth
786
- };
787
- }, Wt = (r) => {
740
+ }, $t = (r) => {
788
741
  if (F) return !1;
789
742
  if (r) {
790
743
  const e = getComputedStyle(r);
@@ -792,12 +745,12 @@ const U = (r, e, n, o = !1) => {
792
745
  if (e.getPropertyValue("display") === "none")
793
746
  return !0;
794
747
  if (r.parentNode !== document.body)
795
- return Wt(r.parentNode);
748
+ return $t(r.parentNode);
796
749
  } else
797
750
  return r.offsetParent === null;
798
751
  }
799
752
  return !1;
800
- }, Gt = function() {
753
+ }, qt = function() {
801
754
  if (typeof Map < "u")
802
755
  return Map;
803
756
  const r = (e, n) => {
@@ -835,26 +788,26 @@ const U = (r, e, n, o = !1) => {
835
788
  }
836
789
  }, e;
837
790
  }();
838
- }(), Qr = globalThis.Function, ke = function() {
791
+ }(), Br = globalThis.Function, xe = function() {
839
792
  const r = (e) => e.Math === Math;
840
- return typeof global < "u" && r(global) ? global : typeof self < "u" && r(self) ? self : typeof window < "u" && r(window) ? window : Qr("return this")();
841
- }(), Zr = function() {
842
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ke) : function(r) {
793
+ return typeof global < "u" && r(global) ? global : typeof self < "u" && r(self) ? self : typeof window < "u" && r(window) ? window : Br("return this")();
794
+ }(), Ur = function() {
795
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(xe) : function(r) {
843
796
  return setTimeout(() => r(Date.now()), 1e3 / 60);
844
797
  };
845
798
  }();
846
- let Xr = 2;
847
- function en(r, e) {
799
+ let $r = 2;
800
+ function qr(r, e) {
848
801
  let n = !1, o = !1, i = 0, t;
849
802
  const a = () => {
850
803
  n && (n = !1, r()), o && t();
851
804
  }, s = () => {
852
- Zr(a);
805
+ Ur(a);
853
806
  };
854
807
  return t = () => {
855
808
  const c = Date.now();
856
809
  if (n) {
857
- if (c - i < Xr)
810
+ if (c - i < $r)
858
811
  return;
859
812
  o = !0;
860
813
  } else
@@ -862,9 +815,9 @@ function en(r, e) {
862
815
  i = c;
863
816
  }, t;
864
817
  }
865
- const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], nn = typeof MutationObserver < "u", on = function() {
818
+ const Vr = 20, Hr = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Wr = typeof MutationObserver < "u", Gr = function() {
866
819
  function r() {
867
- this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = en(this.refresh.bind(this), tn);
820
+ this.observers_ = [], this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = qr(this.refresh.bind(this), Vr);
868
821
  }
869
822
  return r.prototype.addObserver = function(e) {
870
823
  !~this.observers_.indexOf(e) && this.observers_.push(e), !this.connected_ && this.connect_();
@@ -878,7 +831,7 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
878
831
  return e.forEach((n) => n.broadcastActive()), e.length > 0;
879
832
  }, r.prototype.connect_ = function() {
880
833
  if (!(F || this.connected_)) {
881
- if (U(document, "transitionend", this.onTransitionEnd_), U(window, "resize", this.refresh), nn) {
834
+ if (B(document, "transitionend", this.onTransitionEnd_), B(window, "resize", this.refresh), Wr) {
882
835
  this.mutationsObserver_ = new MutationObserver(this.refresh);
883
836
  const e = {
884
837
  attributes: !0,
@@ -888,18 +841,18 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
888
841
  };
889
842
  this.mutationsObserver_.observe(document, e);
890
843
  } else
891
- U(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
844
+ B(document, "DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0;
892
845
  this.connected_ = !0;
893
846
  }
894
847
  }, r.prototype.disconnect_ = function() {
895
- F || !this.connected_ || (X(document, "transitionend", this.onTransitionEnd_), X(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && X(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
848
+ F || !this.connected_ || (Z(document, "transitionend", this.onTransitionEnd_), Z(window, "resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && Z(document, "DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
896
849
  }, r.prototype.onTransitionEnd_ = function(e) {
897
850
  const n = e.propertyName, o = n === void 0 ? "" : n;
898
- rn.some((i) => !!~o.indexOf(i)) && this.refresh();
851
+ Hr.some((i) => !!~o.indexOf(i)) && this.refresh();
899
852
  }, r.getInstance = function() {
900
853
  return this._instance || (this._instance = new r()), this._instance;
901
854
  }, r._instance = null, r;
902
- }(), Yt = function(r, e) {
855
+ }(), Vt = function(r, e) {
903
856
  for (let n = 0, o = Object.keys(e); n < o.length; n++) {
904
857
  const i = o[n];
905
858
  Object.defineProperty(r, i, {
@@ -910,49 +863,49 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
910
863
  });
911
864
  }
912
865
  return r;
913
- }, Ee = function(r, e, n, o) {
866
+ }, Ce = function(r, e, n, o) {
914
867
  return { x: r, y: e, width: n, height: o };
915
- }, ie = function(r) {
916
- return r && r.ownerDocument && r.ownerDocument.defaultView || ke;
917
- }, Jt = Ee(0, 0, 0, 0), Ce = (r) => parseFloat(r) || 0, wt = function(r) {
868
+ }, oe = function(r) {
869
+ return r && r.ownerDocument && r.ownerDocument.defaultView || xe;
870
+ }, Ht = Ce(0, 0, 0, 0), Se = (r) => parseFloat(r) || 0, bt = function(r) {
918
871
  let e = [];
919
872
  for (let n = 1; n < arguments.length; n++)
920
873
  e[n - 1] = arguments[n];
921
874
  return e.reduce((n, o) => {
922
875
  const i = r[`border-${o}-width`];
923
- return n + Ce(i);
876
+ return n + Se(i);
924
877
  }, 0);
925
- }, an = function(r) {
878
+ }, Yr = function(r) {
926
879
  const e = ["top", "right", "bottom", "left"];
927
880
  let n = {};
928
881
  for (let o = 0, i = e; o < i.length; o++) {
929
882
  const t = i[o], a = r[`padding-${t}`];
930
- n[t] = Ce(a);
883
+ n[t] = Se(a);
931
884
  }
932
885
  return n;
933
- }, sn = function(r) {
886
+ }, Jr = function(r) {
934
887
  const e = r.getBBox();
935
- return Ee(0, 0, e.width, e.height);
936
- }, ln = function(r) {
937
- return r === ie(r).document.documentElement;
938
- }, cn = function(r) {
888
+ return Ce(0, 0, e.width, e.height);
889
+ }, Kr = function(r) {
890
+ return r === oe(r).document.documentElement;
891
+ }, Qr = function(r) {
939
892
  const e = r.clientWidth, n = r.clientHeight;
940
893
  if (!n && !e)
941
- return Jt;
942
- const o = ie(r).getComputedStyle(r), i = an(o), t = i.top + i.bottom, a = i.left + i.right;
943
- let s = Ce(o.width), c = Ce(o.height);
944
- if (o.boxSizing === "border-box" && (Math.round(c + t) !== n && (c -= wt(o, "top", "bottom") + t), Math.round(s + a) !== e && (s -= wt(o, "left", "right") + a)), !ln(r)) {
945
- const f = Math.round(c + t) - n, d = Math.round(s + a) - e;
946
- Math.abs(f) !== 1 && (c -= f), Math.abs(d) !== 1 && (s -= d);
894
+ return Ht;
895
+ const o = oe(r).getComputedStyle(r), i = Yr(o), t = i.top + i.bottom, a = i.left + i.right;
896
+ let s = Se(o.width), c = Se(o.height);
897
+ if (o.boxSizing === "border-box" && (Math.round(c + t) !== n && (c -= bt(o, "top", "bottom") + t), Math.round(s + a) !== e && (s -= bt(o, "left", "right") + a)), !Kr(r)) {
898
+ const d = Math.round(c + t) - n, f = Math.round(s + a) - e;
899
+ Math.abs(d) !== 1 && (c -= d), Math.abs(f) !== 1 && (s -= f);
947
900
  }
948
- return Ee(i.left, i.top, s, c);
949
- }, un = /* @__PURE__ */ function() {
950
- return typeof SVGGraphicsElement < "u" ? (r) => r instanceof ie(r).SVGGraphicsElement : (r) => r instanceof ie(r).SVGElement && typeof r.getBBox == "function";
951
- }(), dn = function(r) {
952
- return F ? Jt : un(r) ? sn(r) : cn(r);
953
- }, fn = function(r) {
901
+ return Ce(i.left, i.top, s, c);
902
+ }, Zr = /* @__PURE__ */ function() {
903
+ return typeof SVGGraphicsElement < "u" ? (r) => r instanceof oe(r).SVGGraphicsElement : (r) => r instanceof oe(r).SVGElement && typeof r.getBBox == "function";
904
+ }(), Xr = function(r) {
905
+ return F ? Ht : Zr(r) ? Jr(r) : Qr(r);
906
+ }, en = function(r) {
954
907
  const e = r.x, n = r.y, o = r.width, i = r.height, t = Object.create((typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object).prototype);
955
- return Yt(t, {
908
+ return Vt(t, {
956
909
  x: e,
957
910
  y: n,
958
911
  width: o,
@@ -962,26 +915,26 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
962
915
  bottom: i + n,
963
916
  left: e
964
917
  }), t;
965
- }, pn = function() {
918
+ }, tn = function() {
966
919
  function r(e) {
967
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Ee(0, 0, 0, 0), this.target = e;
920
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Ce(0, 0, 0, 0), this.target = e;
968
921
  }
969
922
  return r.prototype.broadcastRect = function() {
970
923
  const e = this.contentRect_;
971
924
  return this.broadcastWidth = e.width, this.broadcastHeight = e.height, e;
972
925
  }, r.prototype.isActive = function() {
973
- const e = dn(this.target);
926
+ const e = Xr(this.target);
974
927
  return this.contentRect_ = e, e.width !== this.broadcastWidth || e.height !== this.broadcastHeight;
975
928
  }, r;
976
- }(), hn = /* @__PURE__ */ function() {
929
+ }(), rn = /* @__PURE__ */ function() {
977
930
  function r(e, n) {
978
- const o = fn(n);
979
- Yt(this, { target: e, contentRect: o });
931
+ const o = en(n);
932
+ Vt(this, { target: e, contentRect: o });
980
933
  }
981
934
  return r;
982
- }(), mn = function() {
935
+ }(), nn = function() {
983
936
  function r(e, n, o) {
984
- if (this.observations_ = new Gt(), this.activeObservations_ = [], typeof e != "function")
937
+ if (this.observations_ = new qt(), this.activeObservations_ = [], typeof e != "function")
985
938
  throw new TypeError("[TINY-Resize] The callback provided as parameter 1 is not a function.");
986
939
  this.callback_ = e, this.controller_ = n, this.callbackCtx_ = o;
987
940
  }
@@ -990,16 +943,16 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
990
943
  throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
991
944
  if (typeof Element > "u" || !(Element instanceof Object))
992
945
  return;
993
- if (!(e instanceof ie(e).Element))
946
+ if (!(e instanceof oe(e).Element))
994
947
  throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
995
948
  const n = this.observations_;
996
- n.has(e) || (n.set(e, new pn(e)), this.controller_.addObserver(this), this.controller_.refresh());
949
+ n.has(e) || (n.set(e, new tn(e)), this.controller_.addObserver(this), this.controller_.refresh());
997
950
  }, r.prototype.unobserve = function(e) {
998
951
  if (!arguments.length)
999
952
  throw new TypeError("[TINY-Resize]1 argument required, but only 0 present.");
1000
953
  if (typeof Element > "u" || !(Element instanceof Object))
1001
954
  return;
1002
- if (!(e instanceof ie(e).Element))
955
+ if (!(e instanceof oe(e).Element))
1003
956
  throw new TypeError('[TINY-Resize] parameter 1 is not of type "Element".');
1004
957
  const n = this.observations_;
1005
958
  n.has(e) && (n.delete(e), !n.size && this.controller_.removeObserver(this));
@@ -1014,7 +967,7 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
1014
967
  if (!this.hasActive())
1015
968
  return;
1016
969
  const e = this.callbackCtx_, n = this.activeObservations_.map(
1017
- (o) => new hn(o.target, o.broadcastRect())
970
+ (o) => new rn(o.target, o.broadcastRect())
1018
971
  );
1019
972
  this.callback_.call(e, n, e), this.clearActive();
1020
973
  }, r.prototype.hasActive = function() {
@@ -1022,33 +975,33 @@ const tn = 20, rn = ["top", "right", "bottom", "left", "width", "height", "size"
1022
975
  }, r.prototype.clearActive = function() {
1023
976
  this.activeObservations_.splice(0);
1024
977
  }, r;
1025
- }(), Kt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Gt(), Qt = /* @__PURE__ */ function() {
978
+ }(), Wt = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new qt(), Gt = /* @__PURE__ */ function() {
1026
979
  function r(e) {
1027
980
  if (!(this instanceof r))
1028
981
  throw new TypeError("[TINY-Resize] Cannot call a class as a function.");
1029
982
  if (!arguments.length)
1030
983
  throw new TypeError("[TINY-Resize] 1 argument required, but only 0 present.");
1031
- const n = on.getInstance(), o = new mn(e, n, this);
1032
- Kt.set(this, o);
984
+ const n = Gr.getInstance(), o = new nn(e, n, this);
985
+ Wt.set(this, o);
1033
986
  }
1034
987
  return r;
1035
988
  }();
1036
989
  ["observe", "unobserve", "disconnect"].forEach((r) => {
1037
- Qt.prototype[r] = function() {
990
+ Gt.prototype[r] = function() {
1038
991
  let e;
1039
- return (e = Kt.get(this))[r].apply(e, arguments);
992
+ return (e = Wt.get(this))[r].apply(e, arguments);
1040
993
  };
1041
994
  });
1042
995
  (function() {
1043
- return typeof ke.ResizeObserver < "u" ? ke.ResizeObserver : Qt;
996
+ return typeof xe.ResizeObserver < "u" ? xe.ResizeObserver : Gt;
1044
997
  })();
1045
- const gn = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
1046
- gn.split("").reverse().join("");
1047
- function vn(r) {
998
+ const on = "tcirzywvqlkjhgfbZQG_FLOWHSUBDNIMYREVKCAJxp57XP043891T62-modnaesu";
999
+ on.split("").reverse().join("");
1000
+ function an(r) {
1048
1001
  return !F && (r.document.all || r.document.documentMode) && !r.crypto && r.msCrypto;
1049
1002
  }
1050
- function yn(r) {
1051
- if (vn(r)) {
1003
+ function sn(r) {
1004
+ if (an(r)) {
1052
1005
  r.crypto = r.msCrypto;
1053
1006
  const e = r.crypto.getRandomValues;
1054
1007
  r.crypto.getRandomValues = function(n) {
@@ -1059,50 +1012,50 @@ function yn(r) {
1059
1012
  };
1060
1013
  }
1061
1014
  }
1062
- const bn = globalThis;
1063
- yn(bn);
1064
- let _e;
1065
- const wn = (r, e, n) => {
1066
- if (!r || !oe(r) || !e || typeof e != "string")
1015
+ const ln = globalThis;
1016
+ sn(ln);
1017
+ let Ee;
1018
+ const cn = (r, e, n) => {
1019
+ if (!r || !ne(r) || !e || typeof e != "string")
1067
1020
  return;
1068
1021
  const o = e.split(".");
1069
1022
  let i = r;
1070
1023
  const t = o.length;
1071
1024
  if (t > 1) {
1072
1025
  for (let s = 0; s < t; s++)
1073
- if (i = i[o[s]], Vt(i))
1026
+ if (i = i[o[s]], Ut(i))
1074
1027
  return i;
1075
1028
  return i;
1076
1029
  } else
1077
1030
  return i[o[0]];
1078
- }, Tn = (r, e, n, o) => {
1079
- if (!r || !oe(r) || !e || typeof e != "string")
1031
+ }, un = (r, e, n, o) => {
1032
+ if (!r || !ne(r) || !e || typeof e != "string")
1080
1033
  return r;
1081
1034
  const i = e.split("."), t = r;
1082
1035
  let a = i.length, s = i[0];
1083
1036
  if (a > 1) {
1084
1037
  a--;
1085
- let c = t, f, d;
1038
+ let c = t, d, f;
1086
1039
  for (let l = 0; l < a; l++)
1087
- f = i[l], d = c[f], (d === null || !oe(d)) && (c[f] = {}, d = c[f]), c = d;
1040
+ d = i[l], f = c[d], (f === null || !ne(f)) && (c[d] = {}, f = c[d]), c = f;
1088
1041
  s = i[a], c[s] = n;
1089
1042
  } else
1090
1043
  t[s] = n;
1091
1044
  return t;
1092
- }, xn = (r, e, n, o) => {
1045
+ }, dn = (r, e, n, o) => {
1093
1046
  const i = (t, a, s, c) => {
1094
- const f = {};
1095
- return a.forEach((d) => Tn(f, d, wn(t, d))), f;
1047
+ const d = {};
1048
+ return a.forEach((f) => un(d, f, cn(t, f))), d;
1096
1049
  };
1097
- return oe(r) ? Array.isArray(e) ? i(r, e) : _e(n !== !1, {}, r) : r;
1098
- }, Sn = (r) => Array.isArray(r) ? r.map((e) => xn(e)) : r, kn = (r, e, n, o, i) => {
1050
+ return ne(r) ? Array.isArray(e) ? i(r, e) : Ee(n !== !1, {}, r) : r;
1051
+ }, fn = (r) => Array.isArray(r) ? r.map((e) => dn(e)) : r, pn = (r, e, n, o, i) => {
1099
1052
  let t;
1100
- if (n && o && (oe(o) || (t = Array.isArray(o))))
1053
+ if (n && o && (ne(o) || (t = Array.isArray(o))))
1101
1054
  if (t)
1102
- t = !1, r[e] = Sn(o);
1055
+ t = !1, r[e] = fn(o);
1103
1056
  else {
1104
- const a = i && oe(i) ? i : {};
1105
- r[e] = _e(n, a, o);
1057
+ const a = i && ne(i) ? i : {};
1058
+ r[e] = Ee(n, a, o);
1106
1059
  }
1107
1060
  else if (o !== void 0)
1108
1061
  try {
@@ -1110,117 +1063,90 @@ const wn = (r, e, n) => {
1110
1063
  } catch {
1111
1064
  }
1112
1065
  };
1113
- _e = function(...r) {
1066
+ Ee = function(...r) {
1114
1067
  const e = r.length;
1115
1068
  let n = r[0] || {}, o = 1, i = !1;
1116
- for (Se(n) === "boolean" && (i = n, n = r[o] || {}, o++), !bt(n) && Se(n) !== "function" && (n = {}); o < e; o++) {
1069
+ for (Te(n) === "boolean" && (i = n, n = r[o] || {}, o++), !yt(n) && Te(n) !== "function" && (n = {}); o < e; o++) {
1117
1070
  const t = r[o];
1118
- if (t !== null && bt(t)) {
1071
+ if (t !== null && yt(t)) {
1119
1072
  const a = Object.keys(t);
1120
1073
  for (const s of a) {
1121
- const c = n[s], f = t[s];
1122
- n !== f && kn(n, s, i, f, c);
1074
+ const c = n[s], d = t[s];
1075
+ n !== d && pn(n, s, i, d, c);
1123
1076
  }
1124
1077
  }
1125
1078
  }
1126
1079
  return n;
1127
1080
  };
1128
- const si = function(r, ...e) {
1129
- for (let n = 0, o = e.length; n < o; n++) {
1130
- const i = e[n] || {};
1131
- for (const t in i)
1132
- if (Ze.call(i, t)) {
1133
- const a = i[t];
1134
- a !== void 0 && (r[t] = a);
1135
- }
1136
- }
1137
- return r;
1138
- };
1139
1081
  function Xe(r) {
1140
1082
  let e = /* @__PURE__ */ Object.create(null);
1141
1083
  return function(n) {
1142
1084
  return e[n] || (e[n] = r(n));
1143
1085
  };
1144
1086
  }
1145
- const Cn = /-(\w)/g, An = Xe((r) => r.replace(Cn, (e, n) => n ? n.toUpperCase() : "")), En = Xe((r) => r.charAt(0).toUpperCase() + r.slice(1)), _n = /\B([A-Z])/g, On = Xe((r) => r.replace(_n, "-$1").toLowerCase()), Mn = () => globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296, li = (r = "", e = 8) => r + Mn().toString().substr(2, e), ci = (r, e, n) => {
1146
- let o;
1147
- if (F) return { t: r, o: !1 };
1148
- const i = document.createElement("canvas").getContext("2d");
1149
- i.font = e;
1150
- let t = i.measureText(r);
1151
- if (t.width < n)
1152
- return { t: r, o: !1 };
1153
- for (let a = -1; ; a--)
1154
- if (o = r.slice(0, a) + "...", t = i.measureText(o), t.width < n)
1155
- return { t: o, o: !0 };
1156
- }, In = "-12:00,-11:00,-10:00,-09:30,-08:00,-07:00,-06:00,-05:00,-04:30,-04:00,-03:30,-02:00,-01:00", Pn = "-00:00,+00:00,+01:00,+02:00,+03:00,+03:30,+04:00,+04:30,+05:00,+05:30,+05:45,+06:00", Fn = "+06:30,+07:00,+08:00,+09:00,+10:00,+10:30,+11:00,+11:30,+12:00,+12:45,+13:00,+14:00";
1157
- [...In.split(","), ...Pn.split(","), ...Fn.split(",")];
1158
- const Ln = {
1159
- Escape: 27,
1160
- ArrowUp: 38,
1161
- ArrowDown: 40,
1162
- NumpadEnter: 13
1163
- }, Zt = {
1087
+ const hn = /-(\w)/g, mn = Xe((r) => r.replace(hn, (e, n) => n ? n.toUpperCase() : "")), gn = Xe((r) => r.charAt(0).toUpperCase() + r.slice(1)), vn = /\B([A-Z])/g, yn = Xe((r) => r.replace(vn, "-$1").toLowerCase()), bn = () => globalThis.crypto.getRandomValues(new Uint32Array(1))[0] / 4294967296, Vo = (r = "", e = 8) => r + bn().toString().substr(2, e), wn = {
1088
+ Escape: 27
1089
+ }, Yt = {
1164
1090
  fullMonths: "January,February,March,April,May,June,July,August,September,October,November,December".split(","),
1165
1091
  fullWeeks: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
1166
- }, et = ["\\d\\d?", "\\d{3}", "\\d{4}"], Y = et[0], Dn = et[1], zn = et[2], ce = "[^\\s]+", Tt = () => {
1167
- }, Xt = (r, e) => {
1092
+ }, et = ["\\d\\d?", "\\d{3}", "\\d{4}"], G = et[0], Tn = et[1], xn = et[2], le = "[^\\s]+", wt = () => {
1093
+ }, Jt = (r, e) => {
1168
1094
  let n = [];
1169
1095
  for (let o = 0, i = r.length; o < i; o++)
1170
1096
  n.push(r[o].substr(0, e));
1171
1097
  return n;
1172
- }, xt = (r) => (e, n, o) => {
1098
+ }, Tt = (r) => (e, n, o) => {
1173
1099
  const i = o[r].indexOf(n.charAt(0).toUpperCase() + n.substr(1).toLowerCase());
1174
1100
  ~i && (e.month = i);
1175
- }, Rn = Zt.fullWeeks, Nn = Zt.fullMonths;
1176
- Xt(Nn, 3);
1177
- Xt(Rn, 3);
1178
- const ne = {
1101
+ }, Sn = Yt.fullWeeks, kn = Yt.fullMonths;
1102
+ Jt(kn, 3);
1103
+ Jt(Sn, 3);
1104
+ const re = {
1179
1105
  d: [
1180
- Y,
1106
+ G,
1181
1107
  (r, e) => {
1182
1108
  r.day = e;
1183
1109
  }
1184
1110
  ],
1185
1111
  Do: [
1186
- Y + ce,
1112
+ G + le,
1187
1113
  (r, e) => {
1188
1114
  r.day = parseInt(e, 10);
1189
1115
  }
1190
1116
  ],
1191
1117
  M: [
1192
- Y,
1118
+ G,
1193
1119
  (r, e) => {
1194
1120
  r.month = e - 1;
1195
1121
  }
1196
1122
  ],
1197
1123
  yy: [
1198
- Y,
1124
+ G,
1199
1125
  (r, e) => {
1200
1126
  const n = Number(String((/* @__PURE__ */ new Date()).getFullYear()).substr(0, 2));
1201
1127
  r.year = String(e > 68 ? n - 1 : n) + e;
1202
1128
  }
1203
1129
  ],
1204
1130
  h: [
1205
- Y,
1131
+ G,
1206
1132
  (r, e) => {
1207
1133
  r.hour = e;
1208
1134
  }
1209
1135
  ],
1210
1136
  m: [
1211
- Y,
1137
+ G,
1212
1138
  (r, e) => {
1213
1139
  r.minute = e;
1214
1140
  }
1215
1141
  ],
1216
1142
  s: [
1217
- Y,
1143
+ G,
1218
1144
  (r, e) => {
1219
1145
  r.second = e;
1220
1146
  }
1221
1147
  ],
1222
1148
  yyyy: [
1223
- zn,
1149
+ xn,
1224
1150
  (r, e) => {
1225
1151
  r.year = e;
1226
1152
  }
@@ -1238,17 +1164,17 @@ const ne = {
1238
1164
  }
1239
1165
  ],
1240
1166
  SSS: [
1241
- Dn,
1167
+ Tn,
1242
1168
  (r, e) => {
1243
1169
  r.millisecond = e;
1244
1170
  }
1245
1171
  ],
1246
- D: [Y, Tt],
1247
- ddd: [ce, Tt],
1248
- MMM: [ce, xt("monthNamesShort")],
1249
- MMMM: [ce, xt("monthNames")],
1172
+ D: [G, wt],
1173
+ ddd: [le, wt],
1174
+ MMM: [le, Tt("monthNamesShort")],
1175
+ MMMM: [le, Tt("monthNames")],
1250
1176
  a: [
1251
- ce,
1177
+ le,
1252
1178
  (r, e, n) => {
1253
1179
  const o = e.toLowerCase();
1254
1180
  o === n.amPm[0] ? r.isPm = !1 : o === n.amPm[1] && (r.isPm = !0);
@@ -1261,28 +1187,19 @@ const ne = {
1261
1187
  n && (o = Number(n[1] * 60) + parseInt(n[2], 10), r.timezoneOffset = n[0] === "+" ? o : -o);
1262
1188
  }
1263
1189
  ]
1264
- }, jn = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
1265
- ne.dddd = ne.ddd;
1266
- jn.forEach((r) => {
1267
- r === "MM" ? ne[r] = ne[r.substr(0, 1)] : ne[r] = ne[r.substr(0, 1).toLowerCase()];
1190
+ }, Cn = ["A", "DD", "dd", "mm", "hh", "MM", "ss", "hh", "H", "HH"];
1191
+ re.dddd = re.ddd;
1192
+ Cn.forEach((r) => {
1193
+ r === "MM" ? re[r] = re[r.substr(0, 1)] : re[r] = re[r.substr(0, 1).toLowerCase()];
1268
1194
  });
1269
- const ui = (r, e, ...n) => {
1270
- let o = !1;
1271
- if (typeof r == "function") {
1272
- const i = document.createEvent("HTMLEvents");
1273
- i.initEvent(e, !1, !0), i.preventDefault = () => {
1274
- o = !0;
1275
- }, n.unshift(i), n.unshift(e), r.apply(null, n);
1276
- }
1277
- return !o;
1278
- }, Bn = () => {
1279
- }, Un = function() {
1195
+ const En = () => {
1196
+ }, An = function() {
1280
1197
  return F ? function(r) {
1281
1198
  setTimeout(() => r(Date.now()), 1e3 / 60);
1282
1199
  } : window.requestAnimationFrame.bind(window);
1283
1200
  }(), qe = (r) => {
1284
- r.scheduled || (r.scheduled = !0, r.raf($n.bind(null, r)));
1285
- }, $n = (r) => {
1201
+ r.scheduled || (r.scheduled = !0, r.raf(_n.bind(null, r)));
1202
+ }, _n = (r) => {
1286
1203
  const { reads: e, writes: n } = r;
1287
1204
  let o;
1288
1205
  try {
@@ -1295,16 +1212,16 @@ const ui = (r, e, ...n) => {
1295
1212
  r.catch(o);
1296
1213
  else
1297
1214
  throw o;
1298
- }, St = (r, e) => {
1215
+ }, xt = (r, e) => {
1299
1216
  const n = r.indexOf(e);
1300
1217
  return !!~n && !!r.splice(n, 1);
1301
- }, qn = (r, e) => {
1218
+ }, On = (r, e) => {
1302
1219
  for (let n in e)
1303
1220
  Object.hasOwnProperty.call(e, n) && (r[n] = e[n]);
1304
1221
  };
1305
- class Hn {
1222
+ class Mn {
1306
1223
  constructor() {
1307
- this.reads = [], this.writes = [], this.raf = Un.bind(window);
1224
+ this.reads = [], this.writes = [], this.raf = An.bind(window);
1308
1225
  }
1309
1226
  runTasks(e) {
1310
1227
  let n;
@@ -1319,53 +1236,53 @@ class Hn {
1319
1236
  return this.writes.push(o), qe(this), o;
1320
1237
  }
1321
1238
  clear(e) {
1322
- return St(this.reads, e) || St(this.writes, e);
1239
+ return xt(this.reads, e) || xt(this.writes, e);
1323
1240
  }
1324
1241
  extend(e) {
1325
1242
  if (!e || typeof e != "object") throw new Error("[TINY][FastDom] expected object");
1326
1243
  const n = Object.create(this);
1327
- return qn(n, e), n.fastdom = this, n.initialize && n.initialize(), n;
1244
+ return On(n, e), n.fastdom = this, n.initialize && n.initialize(), n;
1328
1245
  }
1329
1246
  }
1330
- const er = new Hn(), kt = (r, e, n, o) => {
1247
+ const Kt = new Mn(), St = (r, e, n, o) => {
1331
1248
  const i = r._tasks, t = r.fastdom;
1332
1249
  let a;
1333
- const s = new Promise(function(c, f) {
1250
+ const s = new Promise(function(c, d) {
1334
1251
  a = t[e](function() {
1335
1252
  i.delete(s);
1336
1253
  try {
1337
1254
  c(o ? n.call(o) : n());
1338
- } catch (d) {
1339
- f(d);
1255
+ } catch (f) {
1256
+ d(f);
1340
1257
  }
1341
1258
  }, o);
1342
1259
  });
1343
1260
  return i.set(s, a), s;
1344
- }, Vn = {
1261
+ }, In = {
1345
1262
  initialize() {
1346
1263
  this._tasks = /* @__PURE__ */ new Map();
1347
1264
  },
1348
1265
  mutate(r, e) {
1349
- return kt(this, "mutate", r, e);
1266
+ return St(this, "mutate", r, e);
1350
1267
  },
1351
1268
  measure(r, e) {
1352
- return kt(this, "measure", r, e);
1269
+ return St(this, "measure", r, e);
1353
1270
  },
1354
1271
  clear(r) {
1355
1272
  const e = this._tasks, n = e.get(r);
1356
1273
  this.fastdom.clear(n), e.delete(r);
1357
1274
  }
1358
1275
  };
1359
- er.extend(Vn);
1360
- const Wn = (r, e) => {
1276
+ Kt.extend(In);
1277
+ const Pn = (r, e) => {
1361
1278
  let n = e.length;
1362
1279
  for (; n--; )
1363
1280
  r.clear(e[n]), e.splice(n, 1);
1364
- }, Gn = (r, e) => {
1281
+ }, Fn = (r, e) => {
1365
1282
  const n = r.indexOf(e);
1366
1283
  return !!~n && !!r.splice(n, 1);
1367
1284
  };
1368
- class Yn {
1285
+ class Ln {
1369
1286
  constructor(e) {
1370
1287
  this.fastdom = e, this.tasks = [];
1371
1288
  }
@@ -1382,68 +1299,68 @@ class Yn {
1382
1299
  return this.tasks.push(i), i;
1383
1300
  }
1384
1301
  clear(e) {
1385
- return arguments.length || Wn(this.fastdom, this.tasks), Gn(this.tasks, e), this.fastdom.clear(e);
1302
+ return arguments.length || Pn(this.fastdom, this.tasks), Fn(this.tasks, e), this.fastdom.clear(e);
1386
1303
  }
1387
1304
  }
1388
- const Jn = {
1305
+ const zn = {
1389
1306
  sandbox() {
1390
- return new Yn(this.fastdom);
1307
+ return new Ln(this.fastdom);
1391
1308
  }
1392
1309
  };
1393
- er.extend(Jn);
1394
- const Kn = [
1310
+ Kt.extend(zn);
1311
+ const Rn = [
1395
1312
  "fullscreenElement",
1396
1313
  "fullscreenEnabled",
1397
1314
  "requestFullscreen",
1398
1315
  "exitFullscreen",
1399
1316
  "fullscreenchange",
1400
1317
  "fullscreenerror"
1401
- ], Qn = [
1318
+ ], Dn = [
1402
1319
  "mozFullScreenElement",
1403
1320
  "mozFullScreenEnabled",
1404
1321
  "mozRequestFullScreen",
1405
1322
  "mozCancelFullScreen",
1406
1323
  "mozfullscreenchange",
1407
1324
  "mozfullscreenerror"
1408
- ], Zn = [
1325
+ ], Nn = [
1409
1326
  "webkitFullscreenElement",
1410
1327
  "webkitFullscreenEnabled",
1411
1328
  "webkitRequestFullscreen",
1412
1329
  "webkitExitFullscreen",
1413
1330
  "webkitfullscreenchange",
1414
1331
  "webkitfullscreenerror"
1415
- ], Xn = [
1332
+ ], jn = [
1416
1333
  "msFullscreenElement",
1417
1334
  "msFullscreenEnabled",
1418
1335
  "msRequestFullscreen",
1419
1336
  "msExitFullscreen",
1420
1337
  "MSFullscreenChange",
1421
1338
  "MSFullscreenError"
1422
- ], ze = [Kn, Zn, Qn, Xn], V = typeof window < "u" && typeof window.document < "u" ? window.document : {};
1423
- let D = null;
1424
- const eo = () => {
1339
+ ], Le = [Rn, Nn, Dn, jn], V = typeof window < "u" && typeof window.document < "u" ? window.document : {};
1340
+ let z = null;
1341
+ const Bn = () => {
1425
1342
  if (!F)
1426
- for (let r = 0, e = ze.length; r < e; r++) {
1427
- let n = ze[r];
1343
+ for (let r = 0, e = Le.length; r < e; r++) {
1344
+ let n = Le[r];
1428
1345
  if (n && n[1] in V) {
1429
- for (D = {}, r = 0; r < n.length; r++)
1430
- D[ze[0][r]] = n[r];
1346
+ for (z = {}, r = 0; r < n.length; r++)
1347
+ z[Le[0][r]] = n[r];
1431
1348
  return;
1432
1349
  }
1433
1350
  }
1434
1351
  };
1435
- eo();
1436
- const Ct = {
1437
- change: D && D.fullscreenchange,
1438
- error: D && D.fullscreenerror
1439
- }, He = {
1352
+ Bn();
1353
+ const kt = {
1354
+ change: z && z.fullscreenchange,
1355
+ error: z && z.fullscreenerror
1356
+ }, Ve = {
1440
1357
  request(r, e) {
1441
1358
  return new Promise((n, o) => {
1442
1359
  const i = () => {
1443
1360
  this.off("change", i), n();
1444
1361
  };
1445
- if (this.on("change", i), r = r || (F ? null : V.documentElement), r && D && r[D.requestFullscreen]) {
1446
- const t = r[D.requestFullscreen](e);
1362
+ if (this.on("change", i), r = r || (F ? null : V.documentElement), r && z && r[z.requestFullscreen]) {
1363
+ const t = r[z.requestFullscreen](e);
1447
1364
  t instanceof Promise && t.then(i).catch(o);
1448
1365
  } else
1449
1366
  o(new Error("Fullscreen API not supported or element is null."));
@@ -1458,8 +1375,8 @@ const Ct = {
1458
1375
  const n = () => {
1459
1376
  this.off("change", n), r();
1460
1377
  };
1461
- if (this.on("change", n), !F && D && V[D.exitFullscreen]) {
1462
- const o = V[D.exitFullscreen]();
1378
+ if (this.on("change", n), !F && z && V[z.exitFullscreen]) {
1379
+ const o = V[z.exitFullscreen]();
1463
1380
  o instanceof Promise && o.then(n).catch(e);
1464
1381
  } else
1465
1382
  e(new Error("Fullscreen API not supported."));
@@ -1475,16 +1392,16 @@ const Ct = {
1475
1392
  this.on("error", r);
1476
1393
  },
1477
1394
  on(r, e) {
1478
- const n = Ct[r];
1479
- n && !F && U(V, n, e);
1395
+ const n = kt[r];
1396
+ n && !F && B(V, n, e);
1480
1397
  },
1481
1398
  off(r, e) {
1482
- const n = Ct[r];
1483
- n && !F && X(V, n, e);
1399
+ const n = kt[r];
1400
+ n && !F && Z(V, n, e);
1484
1401
  },
1485
- raw: D || {}
1402
+ raw: z || {}
1486
1403
  };
1487
- F ? Object.defineProperties(He, {
1404
+ F ? Object.defineProperties(Ve, {
1488
1405
  isFullscreen: {
1489
1406
  get() {
1490
1407
  return !1;
@@ -1502,85 +1419,85 @@ F ? Object.defineProperties(He, {
1502
1419
  return !1;
1503
1420
  }
1504
1421
  }
1505
- }) : Object.defineProperties(He, {
1422
+ }) : Object.defineProperties(Ve, {
1506
1423
  isFullscreen: {
1507
1424
  get() {
1508
- return !!V[D && D.fullscreenElement];
1425
+ return !!V[z && z.fullscreenElement];
1509
1426
  }
1510
1427
  },
1511
1428
  element: {
1512
1429
  enumerable: !0,
1513
1430
  get() {
1514
- return V[D && D.fullscreenElement];
1431
+ return V[z && z.fullscreenElement];
1515
1432
  }
1516
1433
  },
1517
1434
  isEnabled: {
1518
1435
  enumerable: !0,
1519
1436
  get() {
1520
- return !!V[D && D.fullscreenEnabled];
1437
+ return !!V[z && z.fullscreenEnabled];
1521
1438
  }
1522
1439
  }
1523
1440
  });
1524
- He.isEnabled;
1525
- function to(r, e, n, o) {
1441
+ Ve.isEnabled;
1442
+ function Un(r, e, n, o) {
1526
1443
  let i, t = 0;
1527
1444
  typeof e != "boolean" && (o = n, n = e, e = void 0);
1528
1445
  function a() {
1529
- const c = this, f = (/* @__PURE__ */ new Date()).valueOf() - t, d = arguments;
1446
+ const c = this, d = (/* @__PURE__ */ new Date()).valueOf() - t, f = arguments;
1530
1447
  function l() {
1531
- t = (/* @__PURE__ */ new Date()).valueOf(), n.apply(c, d);
1448
+ t = (/* @__PURE__ */ new Date()).valueOf(), n.apply(c, f);
1532
1449
  }
1533
1450
  function p() {
1534
1451
  i = void 0;
1535
1452
  }
1536
1453
  o && !i && l(), i && clearTimeout(i);
1537
1454
  const u = o === void 0;
1538
- u && f > r ? l() : e !== !0 && (i = setTimeout(o ? p : l, u ? r - f : r));
1455
+ u && d > r ? l() : e !== !0 && (i = setTimeout(o ? p : l, u ? r - d : r));
1539
1456
  }
1540
1457
  function s() {
1541
1458
  i && (clearTimeout(i), i = null);
1542
1459
  }
1543
1460
  return a._cancel = s, a;
1544
1461
  }
1545
- function ro(r, e, n) {
1546
- return to(r, e, !1);
1462
+ function $n(r, e, n) {
1463
+ return Un(r, e, !1);
1547
1464
  }
1548
- let ee = null;
1549
- const no = "ws://localhost", At = [27197, 27198, 27199];
1550
- let Re = 0, te, tr = 1e3, rr = 3e4, oo = 0, tt = {}, nr;
1551
- const io = 20 * 1e3;
1552
- let Et = null, or = null, Ve = {}, ir = {}, R = {}, ar = () => {
1553
- }, sr = () => {
1465
+ let X = null;
1466
+ const qn = "ws://localhost", Ct = [27197, 27198, 27199];
1467
+ let ze = 0, ee, Qt = 1e3, Zt = 3e4, Vn = 0, tt = {}, Xt;
1468
+ const Hn = 20 * 1e3;
1469
+ let Et = null, er = null, He = {}, tr = {}, D = {}, rr = () => {
1470
+ }, nr = () => {
1554
1471
  };
1555
- const lr = function(r) {
1556
- clearTimeout(Ve[r]), delete tt[r], delete Ve[r];
1557
- }, ao = function() {
1558
- or = setTimeout(() => {
1559
- ee.close();
1472
+ const or = function(r) {
1473
+ clearTimeout(He[r]), delete tt[r], delete He[r];
1474
+ }, Wn = function() {
1475
+ er = setTimeout(() => {
1476
+ X.close();
1560
1477
  }, 5e3);
1561
- }, G = function(r, e) {
1562
- let n = oo++;
1563
- if (n = String(n), r.cid = n, !te) {
1478
+ }, W = function(r, e) {
1479
+ let n = Vn++;
1480
+ if (n = String(n), r.cid = n, !ee) {
1564
1481
  e && setTimeout(e, 0, { ok: !1, message: "eSpace is not logged in." });
1565
1482
  return;
1566
1483
  }
1567
- typeof e == "function" && (tt[n] = e, Ve[n] = setTimeout(() => {
1568
- e({ ok: !1, message: "time out" }), lr(n);
1569
- }, rr)), ee.send(JSON.stringify(r));
1570
- }, cr = function() {
1484
+ typeof e == "function" && (tt[n] = e, He[n] = setTimeout(() => {
1485
+ e({ ok: !1, message: "time out" }), or(n);
1486
+ }, Zt)), X.send(JSON.stringify(r));
1487
+ }, ir = function() {
1571
1488
  Et = setTimeout(() => {
1572
- te ? G(
1489
+ ee ? W(
1573
1490
  {
1574
1491
  type: "heartbeat"
1575
1492
  },
1576
1493
  () => {
1577
- cr();
1494
+ ir();
1578
1495
  }
1579
1496
  ) : clearTimeout(Et);
1580
- }, io);
1581
- }, so = function(r) {
1582
- te = !0, cr(), clearTimeout(nr), clearTimeout(or), sr(r);
1583
- }, lo = function(r) {
1497
+ }, Hn);
1498
+ }, Gn = function(r) {
1499
+ ee = !0, ir(), clearTimeout(Xt), clearTimeout(er), nr(r);
1500
+ }, Yn = function(r) {
1584
1501
  let e = r.data;
1585
1502
  if (typeof e == "string" && (e = e.replace(/^\d+/, ""), !!e)) {
1586
1503
  try {
@@ -1588,34 +1505,34 @@ const lr = function(r) {
1588
1505
  } catch (n) {
1589
1506
  return !n;
1590
1507
  }
1591
- if (te) {
1592
- let n = ir[e.type];
1508
+ if (ee) {
1509
+ let n = tr[e.type];
1593
1510
  if (n)
1594
1511
  return n(e.data);
1595
1512
  let o = e.cid, i = tt[o];
1596
- i && (e.ok ? i(null, e.data) : i({ ok: e.ok }), lr(o));
1513
+ i && (e.ok ? i(null, e.data) : i({ ok: e.ok }), or(o));
1597
1514
  } else
1598
- e.type === "eSpace-ctrl-connection-success" ? so(e.data) : ee.close();
1515
+ e.type === "eSpace-ctrl-connection-success" ? Gn(e.data) : X.close();
1599
1516
  }
1600
- }, co = function() {
1601
- ee.onopen = ao, ee.onclose = uo, ee.onmessage = lo;
1602
- }, ur = function(r) {
1603
- nr = setTimeout(() => {
1604
- Re >= At.length && (Re = 0), ee = new WebSocket(no + ":" + At[Re++]), co();
1517
+ }, Jn = function() {
1518
+ X.onopen = Wn, X.onclose = Kn, X.onmessage = Yn;
1519
+ }, ar = function(r) {
1520
+ Xt = setTimeout(() => {
1521
+ ze >= Ct.length && (ze = 0), X = new WebSocket(qn + ":" + Ct[ze++]), Jn();
1605
1522
  }, r || 0);
1606
- }, uo = function() {
1607
- (te || typeof te > "u") && (te = !1, ar()), ur(tr);
1523
+ }, Kn = function() {
1524
+ (ee || typeof ee > "u") && (ee = !1, rr()), ar(Qt);
1608
1525
  };
1609
- R.init = function(r) {
1610
- r && (rr = r.timeout || 3e4, tr = r.pollingInterval || 0), ur();
1526
+ D.init = function(r) {
1527
+ r && (Zt = r.timeout || 3e4, Qt = r.pollingInterval || 0), ar();
1611
1528
  };
1612
- R.ready = function(r) {
1613
- sr = r;
1529
+ D.ready = function(r) {
1530
+ nr = r;
1614
1531
  };
1615
- R.error = function(r) {
1616
- ar = r;
1532
+ D.error = function(r) {
1533
+ rr = r;
1617
1534
  };
1618
- const _t = function(r, e, n) {
1535
+ const At = function(r, e, n) {
1619
1536
  let o = [];
1620
1537
  for (let i = 0; i < e; i++) {
1621
1538
  let t = r;
@@ -1625,11 +1542,11 @@ const _t = function(r, e, n) {
1625
1542
  }
1626
1543
  return o;
1627
1544
  };
1628
- R.on = function(r, e) {
1629
- ir[r] = e;
1545
+ D.on = function(r, e) {
1546
+ tr[r] = e;
1630
1547
  };
1631
- R.getUserInfo = function(r, e) {
1632
- G(
1548
+ D.getUserInfo = function(r, e) {
1549
+ W(
1633
1550
  {
1634
1551
  type: "get-user-info",
1635
1552
  param: r
@@ -1641,8 +1558,8 @@ R.getUserInfo = function(r, e) {
1641
1558
  return {
1642
1559
  account: t.account,
1643
1560
  name: t.name,
1644
- mobile: _t("mobile", 6, t),
1645
- office_phone: _t("office_phone", 6, t),
1561
+ mobile: At("mobile", 6, t),
1562
+ office_phone: At("office_phone", 6, t),
1646
1563
  home_phone: t.home_phone,
1647
1564
  ip_phone: t.ip_phone,
1648
1565
  other_phone: t.other_phone
@@ -1662,9 +1579,9 @@ R.getUserInfo = function(r, e) {
1662
1579
  }
1663
1580
  );
1664
1581
  };
1665
- R.subscribeUserStatus = function(r, e) {
1582
+ D.subscribeUserStatus = function(r, e) {
1666
1583
  Array.isArray(r) && r.forEach((n) => {
1667
- }), G(
1584
+ }), W(
1668
1585
  {
1669
1586
  type: "subscribe-user-status",
1670
1587
  param: r
@@ -1672,8 +1589,8 @@ R.subscribeUserStatus = function(r, e) {
1672
1589
  e
1673
1590
  );
1674
1591
  };
1675
- R.eSpaceCall = function(r, e, n) {
1676
- G(
1592
+ D.eSpaceCall = function(r, e, n) {
1593
+ W(
1677
1594
  {
1678
1595
  type: "espace-call",
1679
1596
  param: {
@@ -1684,8 +1601,8 @@ R.eSpaceCall = function(r, e, n) {
1684
1601
  n
1685
1602
  );
1686
1603
  };
1687
- R.eSpaceCallByAccount = function(r, e) {
1688
- G(
1604
+ D.eSpaceCallByAccount = function(r, e) {
1605
+ W(
1689
1606
  {
1690
1607
  type: "espace-call",
1691
1608
  param: {
@@ -1695,8 +1612,8 @@ R.eSpaceCallByAccount = function(r, e) {
1695
1612
  e
1696
1613
  );
1697
1614
  };
1698
- R.eSpaceCallByNumber = function(r, e) {
1699
- G(
1615
+ D.eSpaceCallByNumber = function(r, e) {
1616
+ W(
1700
1617
  {
1701
1618
  type: "espace-call",
1702
1619
  param: {
@@ -1706,8 +1623,8 @@ R.eSpaceCallByNumber = function(r, e) {
1706
1623
  e
1707
1624
  );
1708
1625
  };
1709
- R.showImDialog = function(r, e) {
1710
- G(
1626
+ D.showImDialog = function(r, e) {
1627
+ W(
1711
1628
  {
1712
1629
  type: "show-espace-im-dialog",
1713
1630
  param: r
@@ -1715,8 +1632,8 @@ R.showImDialog = function(r, e) {
1715
1632
  e
1716
1633
  );
1717
1634
  };
1718
- R.showGroupDialog = function(r, e) {
1719
- G(
1635
+ D.showGroupDialog = function(r, e) {
1636
+ W(
1720
1637
  {
1721
1638
  type: "show-espace-im-group-dialog",
1722
1639
  param: r
@@ -1724,8 +1641,8 @@ R.showGroupDialog = function(r, e) {
1724
1641
  e
1725
1642
  );
1726
1643
  };
1727
- R.addContactList = function(r, e) {
1728
- G(
1644
+ D.addContactList = function(r, e) {
1645
+ W(
1729
1646
  {
1730
1647
  type: "add-contact-list",
1731
1648
  param: r
@@ -1736,14 +1653,14 @@ R.addContactList = function(r, e) {
1736
1653
  if (F || !window.WebSocket) {
1737
1654
  const r = function() {
1738
1655
  };
1739
- for (let e in R)
1740
- Object.prototype.hasOwnProperty.call(R, e) && typeof R[e] == "function" && (R[e] = r);
1656
+ for (let e in D)
1657
+ Object.prototype.hasOwnProperty.call(D, e) && typeof D[e] == "function" && (D[e] = r);
1741
1658
  }
1742
- const ye = {}, ue = {
1659
+ const ye = {}, ce = {
1743
1660
  leave: "v-modal-leave",
1744
1661
  enter: "v-modal-enter",
1745
1662
  modal: "v-modal"
1746
- }, fo = (r, e) => {
1663
+ }, Qn = (r, e) => {
1747
1664
  for (let n = r.length - 1; n >= 0; n--)
1748
1665
  if (r[n].id === e) {
1749
1666
  r.splice(n, 1);
@@ -1751,7 +1668,7 @@ const ye = {}, ue = {
1751
1668
  }
1752
1669
  };
1753
1670
  let We;
1754
- const z = {
1671
+ const R = {
1755
1672
  step: 2,
1756
1673
  zIndex: 2e3,
1757
1674
  globalScroll: !1,
@@ -1783,8 +1700,8 @@ const z = {
1783
1700
  r && e && (ye[r] = e);
1784
1701
  },
1785
1702
  nextZIndex: () => {
1786
- const r = z.zIndex;
1787
- return z.zIndex += z.step, r;
1703
+ const r = R.zIndex;
1704
+ return R.zIndex += R.step, r;
1788
1705
  },
1789
1706
  /** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
1790
1707
  openModal(r, e, n, o, i) {
@@ -1795,18 +1712,18 @@ const z = {
1795
1712
  if (this.modalStack[s].id === r)
1796
1713
  return;
1797
1714
  const t = We();
1798
- ge(t, ue.modal), this.modalFade && !z.hasModal && ge(t, ue.enter), o && o.trim().split(/\s+/).forEach((s) => ge(t, s)), setTimeout(() => {
1799
- ve(t, ue.enter);
1715
+ ge(t, ce.modal), this.modalFade && !R.hasModal && ge(t, ce.enter), o && o.trim().split(/\s+/).forEach((s) => ge(t, s)), setTimeout(() => {
1716
+ ve(t, ce.enter);
1800
1717
  }, 200), e && (t.style.zIndex = e.toString()), t.style.display = "", t.tabIndex = 0;
1801
1718
  let a;
1802
1719
  n && n.parentNode && n.parentNode.nodeType !== 11 ? a = n.parentNode : a = document.body, a.appendChild(t), this.modalStack.push({ id: r, zIndex: e, modalClass: o });
1803
1720
  },
1804
1721
  /** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
1805
1722
  doOnModalClick: () => {
1806
- const r = z.modalStack, e = r[r.length - 1];
1723
+ const r = R.modalStack, e = r[r.length - 1];
1807
1724
  if (!e)
1808
1725
  return;
1809
- const n = z.getInstance(e.id);
1726
+ const n = R.getInstance(e.id);
1810
1727
  n && n.closeOnClickModal && typeof n.close == "function" && n.close();
1811
1728
  },
1812
1729
  closeModal(r) {
@@ -1818,40 +1735,40 @@ const z = {
1818
1735
  const i = e.length;
1819
1736
  i > 0 && (n.style.zIndex = e[i - 1].zIndex.toString());
1820
1737
  } else
1821
- fo(e, r);
1738
+ Qn(e, r);
1822
1739
  }
1823
- e.length === 0 && (this.modalFade && ge(n, ue.leave), ve(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
1824
- e.length === 0 && (n.parentNode && n.parentNode.removeChild(n), n.style.display = "none", z.modalDom = null), ve(n, ue.leave);
1740
+ e.length === 0 && (this.modalFade && ge(n, ce.leave), ve(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
1741
+ e.length === 0 && (n.parentNode && n.parentNode.removeChild(n), n.style.display = "none", R.modalDom = null), ve(n, ce.leave);
1825
1742
  }, 200));
1826
1743
  }
1827
1744
  };
1828
1745
  We = () => {
1829
1746
  if (F)
1830
1747
  return null;
1831
- let r = z.modalDom;
1832
- return r ? z.hasModal = !0 : (z.hasModal = !1, r = document.createElement("div"), z.modalDom = r, r.addEventListener(
1748
+ let r = R.modalDom;
1749
+ return r ? R.hasModal = !0 : (R.hasModal = !1, r = document.createElement("div"), R.modalDom = r, r.addEventListener(
1833
1750
  "touchmove",
1834
1751
  (e) => {
1835
1752
  e.preventDefault(), e.stopPropagation();
1836
1753
  },
1837
1754
  { passive: !0 }
1838
- ), U(r, "click", () => {
1839
- z.doOnModalClick();
1755
+ ), B(r, "click", () => {
1756
+ R.doOnModalClick();
1840
1757
  })), r;
1841
1758
  };
1842
- F || U(window, "keydown", (r) => {
1843
- if (r.keyCode === Ln.Escape) {
1844
- const e = z.modalStack;
1759
+ F || B(window, "keydown", (r) => {
1760
+ if (r.keyCode === wn.Escape) {
1761
+ const e = R.modalStack;
1845
1762
  if (e.length > 0) {
1846
1763
  const n = e[e.length - 1];
1847
1764
  if (!n)
1848
1765
  return;
1849
- const o = z.getInstance(n.id);
1766
+ const o = R.getInstance(n.id);
1850
1767
  o && o.closeOnPressEscape && (o.handleClose ? o.handleClose("esc") : o.handleAction ? o.handleAction("cancel") : o.close());
1851
1768
  }
1852
1769
  }
1853
1770
  });
1854
- const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], ho = {
1771
+ const Zn = ["left", "right", "top", "bottom"], sr = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], Xn = {
1855
1772
  arrowOffset: 0,
1856
1773
  arrowElement: "[x-arrow]",
1857
1774
  boundariesElement: "viewport",
@@ -1862,21 +1779,21 @@ const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "prevent
1862
1779
  gpuAcceleration: !0,
1863
1780
  offset: 0,
1864
1781
  placement: "bottom",
1865
- preventOverflowOrder: po,
1866
- modifiers: dr,
1782
+ preventOverflowOrder: Zn,
1783
+ modifiers: sr,
1867
1784
  // 此处是string数组, 构造函数调用之后转为函数数组
1868
1785
  updateHiddenPopperOnScroll: !1
1869
1786
  // 滚动过程中是否更新隐藏的弹出层位置
1870
- }, we = (r, e) => {
1787
+ }, be = (r, e) => {
1871
1788
  const n = (o) => o !== "" && !isNaN(parseFloat(o)) && isFinite(o);
1872
1789
  Object.keys(e).forEach((o) => {
1873
1790
  let i = "";
1874
1791
  ~["width", "height", "top", "right", "bottom", "left"].indexOf(o) && n(e[o]) && (i = "px"), r.style[o] = e[o] + i;
1875
1792
  });
1876
- }, Ne = (r) => {
1793
+ }, Re = (r) => {
1877
1794
  let e = r.offsetParent;
1878
1795
  return e === window.document.body || !e ? window.document.documentElement : e;
1879
- }, fr = (r, e) => !r || r.nodeType !== 1 ? void 0 : window.getComputedStyle(r, null)[e], pr = (r) => r === window.document.body ? !1 : fr(r, "position") === "fixed" ? !0 : (r.host && (r = r.host), r.parentNode ? pr(r.parentNode) : !1), Ge = (r) => {
1796
+ }, de = (r, e) => !r || r.nodeType !== 1 ? void 0 : window.getComputedStyle(r, null)[e], lr = (r) => r === window.document.body ? !1 : de(r, "position") === "fixed" ? !0 : (r.host && (r = r.host), r.parentNode ? lr(r.parentNode) : !1), Ge = (r) => {
1880
1797
  let e = r.getBoundingClientRect();
1881
1798
  return {
1882
1799
  left: e.left,
@@ -1886,14 +1803,12 @@ const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "prevent
1886
1803
  width: e.right - e.left,
1887
1804
  height: e.bottom - e.top
1888
1805
  };
1889
- }, hr = (r) => {
1890
- if (!r || r.nodeType !== 1)
1891
- return !1;
1892
- const e = window.getComputedStyle(r, null), n = e.overflow, o = e.overflowX, i = e.overflowY, t = /(auto|scroll|overlay|clip)/;
1893
- return (r.scrollHeight > r.clientHeight || r.scrollWidth > r.clientWidth) && t.test(n + i + o);
1894
- }, mo = (r) => {
1806
+ }, cr = (r) => {
1807
+ const e = ["scroll", "auto"];
1808
+ return e.includes(de(r, "overflow")) || e.includes(de(r, "overflow-x")) || e.includes(de(r, "overflow-y"));
1809
+ }, eo = (r) => {
1895
1810
  const e = document.createElement("div");
1896
- we(e, {
1811
+ be(e, {
1897
1812
  opacity: 0,
1898
1813
  position: "fixed",
1899
1814
  width: 1,
@@ -1904,15 +1819,15 @@ const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "prevent
1904
1819
  }), r.appendChild(e);
1905
1820
  const n = Ge(e);
1906
1821
  return r.removeChild(e), n;
1907
- }, Te = (r) => {
1822
+ }, we = (r) => {
1908
1823
  let e = r.parentNode;
1909
- return e ? e === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : hr(e) ? e : Te(e) : r;
1910
- }, go = (r, e, n, o) => {
1824
+ return e ? e === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : cr(e) ? e : we(e) : r;
1825
+ }, to = (r, e, n, o) => {
1911
1826
  let { top: i, left: t, width: a, height: s } = Ge(r);
1912
1827
  if (n) {
1913
1828
  if (o.parentElement) {
1914
- const { top: f, left: d } = mo(o.parentElement);
1915
- i -= f, t -= d;
1829
+ const { top: d, left: f } = eo(o.parentElement);
1830
+ i -= d, t -= f;
1916
1831
  }
1917
1832
  return {
1918
1833
  top: i,
@@ -1932,24 +1847,24 @@ const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "prevent
1932
1847
  width: a,
1933
1848
  height: s
1934
1849
  };
1935
- }, vo = (r) => r === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : r.scrollTop || 0, yo = (r) => r === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : r.scrollLeft || 0, bo = (r, e) => {
1850
+ }, ro = (r) => r === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : r.scrollTop, no = (r) => r === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : r.scrollLeft, oo = (r, e) => {
1936
1851
  const n = Math.max(r.scrollHeight, r.offsetHeight, e.clientHeight, e.scrollHeight, e.offsetHeight);
1937
1852
  return { width: Math.max(r.scrollWidth, r.offsetWidth, e.clientWidth, e.scrollWidth, e.offsetWidth), height: n };
1938
- }, je = (r) => {
1853
+ }, De = (r) => {
1939
1854
  let e = r.style.display, n = r.style.visibility;
1940
1855
  r.style.display = "block", r.style.visibility = "hidden";
1941
1856
  let o = window.getComputedStyle(r), i = parseFloat(o.marginTop) + parseFloat(o.marginBottom), t = parseFloat(o.marginLeft) + parseFloat(o.marginRight), a = { width: r.offsetWidth + t, height: r.offsetHeight + i };
1942
1857
  return r.style.display = e, r.style.visibility = n, a;
1943
- }, Ot = (r) => {
1858
+ }, _t = (r) => {
1944
1859
  let e = { left: "right", right: "left", bottom: "top", top: "bottom" };
1945
1860
  return r.replace(/left|right|bottom|top/g, (n) => e[n]);
1946
- }, de = (r) => {
1861
+ }, ue = (r) => {
1947
1862
  let e = { ...r };
1948
1863
  return e.right = e.left + e.width, e.bottom = e.top + e.height, e;
1949
- }, mr = (r, e = []) => {
1864
+ }, ur = (r, e = []) => {
1950
1865
  const n = r.parentNode;
1951
- return n ? (hr(n) && e.push(n), fr(n, "position") === "fixed" ? e : mr(n, e)) : e;
1952
- }, Mt = (r) => {
1866
+ return n ? (cr(n) && e.push(n), de(n, "position") === "fixed" ? e : ur(n, e)) : e;
1867
+ }, Ot = (r) => {
1953
1868
  const e = {
1954
1869
  width: r.offsetWidth,
1955
1870
  height: r.offsetHeight,
@@ -1959,16 +1874,16 @@ const po = ["left", "right", "top", "bottom"], dr = ["shift", "offset", "prevent
1959
1874
  bottom: 0
1960
1875
  };
1961
1876
  return e.right = e.left + e.width, e.bottom = e.top + e.height, e;
1962
- }, It = (r) => {
1877
+ }, Mt = (r) => {
1963
1878
  r.stopPropagation();
1964
- }, Pt = !F && typeof ResizeObserver == "function" ? new ResizeObserver((r) => {
1879
+ }, It = !F && typeof ResizeObserver == "function" ? new ResizeObserver((r) => {
1965
1880
  r.forEach((e) => {
1966
1881
  e.target.popperVm && e.contentRect.height > 50 && e.target.popperVm.update();
1967
1882
  });
1968
1883
  }) : null;
1969
- class di {
1884
+ class Ho {
1970
1885
  constructor(e, n, o) {
1971
- re(this, "_reference"), re(this, "_popper"), re(this, "state"), re(this, "_options"), re(this, "modifiers", {}), re(this, "popperOuterSize", null), this._reference = e, this._popper = n, this.state = {}, this._options = { ...ho, ...o }, this._options.modifierFns = dr.map((i) => this[i]), F || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), we(this._popper, { position: this.state.position, top: 0 }), this._popper && (this._popper.popperVm = this, Pt && Pt.observe(this._popper)), this.update(), this._setupEventListeners());
1886
+ te(this, "_reference"), te(this, "_popper"), te(this, "state"), te(this, "_options"), te(this, "modifiers", {}), te(this, "popperOuterSize", null), this._reference = e, this._popper = n, this.state = {}, this._options = { ...Xn, ...o }, this._options.modifierFns = sr.map((i) => this[i]), F || (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), be(this._popper, { position: this.state.position, top: 0 }), this._popper && (this._popper.popperVm = this, It && It.observe(this._popper)), this.update(), this._setupEventListeners());
1972
1887
  }
1973
1888
  destroy() {
1974
1889
  return this._popper.removeAttribute("x-placement"), this._popper.style.display = "none", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
@@ -1982,7 +1897,7 @@ class di {
1982
1897
  }
1983
1898
  // 阻止popper的mousewheel等事件冒泡。 通过 onxxx 绑定,是为了避免重复绑定事件
1984
1899
  stopEventBubble() {
1985
- this._popper && (this._popper.onmousewheel || (this._popper.onmousewheel = It), this._popper.onwheel || (this._popper.onwheel = It));
1900
+ this._popper && (this._popper.onmousewheel || (this._popper.onmousewheel = Mt), this._popper.onwheel || (this._popper.onwheel = Mt));
1986
1901
  }
1987
1902
  /** 按顺序执行Modifiers, 如果传入终点modifier,则执行到指定位置 */
1988
1903
  runModifiers(e, n, o) {
@@ -1992,29 +1907,29 @@ class di {
1992
1907
  0,
1993
1908
  t.modifierFns.findIndex((a) => a === o)
1994
1909
  )), i.forEach((a) => {
1995
- Se(a) === "function" && (e = a.call(this, e));
1910
+ Te(a) === "function" && (e = a.call(this, e));
1996
1911
  }), e;
1997
1912
  }
1998
1913
  // 此时才把offsets.popper 赋值给popper dom, offsets.array赋值给array dom
1999
1914
  applyStyle(e) {
2000
1915
  let n = { position: e.offsets.popper.position }, o = Math.round(e.offsets.popper.left), i = Math.round(e.offsets.popper.top);
2001
- return this._options.gpuAcceleration ? (n.transform = `translate3d(${o}px, ${i}px, 0)`, Object.assign(n, { top: 0, left: 0 })) : Object.assign(n, { top: i, left: o }), Object.assign(n, e.styles), we(this._popper, n), this._popper.setAttribute("x-placement", e.placement), e.offsets.arrow && we(e.arrowElement, e.offsets.arrow), e;
1916
+ return this._options.gpuAcceleration ? (n.transform = `translate3d(${o}px, ${i}px, 0)`, Object.assign(n, { top: 0, left: 0 })) : Object.assign(n, { top: i, left: o }), Object.assign(n, e.styles), be(this._popper, n), this._popper.setAttribute("x-placement", e.placement), e.offsets.arrow && be(e.arrowElement, e.offsets.arrow), e;
2002
1917
  }
2003
1918
  // 判断 placement是不是2段式的,是则处理一下偏移。 修改data.offsets.popper的值
2004
1919
  shift(e) {
2005
1920
  let n = e.placement, o = n.split("-")[0], i = n.split("-")[1];
2006
1921
  if (i) {
2007
- let { top: t, left: a, height: s, width: c } = e.offsets.reference, f = de(e.offsets.popper), d = {
1922
+ let { top: t, left: a, height: s, width: c } = e.offsets.reference, d = ue(e.offsets.popper), f = {
2008
1923
  y: {
2009
1924
  start: { top: t },
2010
- end: { top: t + s - f.height }
1925
+ end: { top: t + s - d.height }
2011
1926
  },
2012
1927
  x: {
2013
1928
  start: { left: a },
2014
- end: { left: a + c - f.width }
1929
+ end: { left: a + c - d.width }
2015
1930
  }
2016
1931
  }, l = ~["bottom", "top"].indexOf(o) ? "x" : "y";
2017
- e.offsets.popper = Object.assign(f, d[l][i]);
1932
+ e.offsets.popper = Object.assign(d, f[l][i]);
2018
1933
  }
2019
1934
  return e;
2020
1935
  }
@@ -2022,7 +1937,7 @@ class di {
2022
1937
  preventOverflow(e) {
2023
1938
  if (this._options.ignoreBoundaries)
2024
1939
  return e;
2025
- let n = this._options.preventOverflowOrder, o = de(e.offsets.popper), i = {
1940
+ let n = this._options.preventOverflowOrder, o = ue(e.offsets.popper), i = {
2026
1941
  top: () => {
2027
1942
  let { top: t } = o;
2028
1943
  return t < e.boundaries.top && (t = Math.max(t, e.boundaries.top)), { top: t };
@@ -2046,7 +1961,7 @@ class di {
2046
1961
  }
2047
1962
  // 校正popper的位置在reference的边上。 如果2个分离了,重新调整popper的位置。 可能是担心 modifiers.offset 带来的副作用吧
2048
1963
  keepTogether(e) {
2049
- let n = de(e.offsets.popper), o = e.offsets.reference;
1964
+ let n = ue(e.offsets.popper), o = e.offsets.reference;
2050
1965
  return n.right < Math.floor(o.left) && (e.offsets.popper.left = Math.floor(o.left) - n.width), n.left > Math.floor(o.right) && (e.offsets.popper.left = Math.floor(o.right)), n.bottom < Math.floor(o.top) && (e.offsets.popper.top = Math.floor(o.top) - n.height), n.top > Math.floor(o.bottom) && (e.offsets.popper.top = Math.floor(o.bottom)), e;
2051
1966
  }
2052
1967
  // 根据flip的策略,计算当前应该显示的位置。 空间不够要计算出flip的位置。 可能是担心preventOverflow 时,造成pop, reference会重叠。 重叠了就要flip一下
@@ -2054,13 +1969,13 @@ class di {
2054
1969
  if (e.flipped && e.placement === e._originalPlacement)
2055
1970
  return e;
2056
1971
  const n = e.placement.split("-");
2057
- let o = n[0], i = Ot(o), t = n[1] || "", a = [o, i];
1972
+ let o = n[0], i = _t(o), t = n[1] || "", a = [o, i];
2058
1973
  return a.forEach((s, c) => {
2059
1974
  if (o !== s || a.length === c + 1)
2060
1975
  return;
2061
- o = e.placement.split("-")[0], i = Ot(o);
2062
- let f = de(e.offsets.popper), d = ["right", "bottom"].includes(o), l = Math.floor(e.offsets.reference[o]), p = Math.floor(f[i]);
2063
- (d && l > p || !d && l < p) && (e.flipped = !0, e.placement = a[c + 1], t && (e.placement += `-${t}`), e.offsets.popper = this._getRefPopOffsets(this._popper, this._reference, e.placement).popper, e = this.runModifiers(e, this._options.modifierFns, this.flip));
1976
+ o = e.placement.split("-")[0], i = _t(o);
1977
+ let d = ue(e.offsets.popper), f = ~["right", "bottom"].indexOf(o), l = Math.floor(e.offsets.reference[o]), p = Math.floor(d[i]);
1978
+ (f && l > p || !f && l < p) && (e.flipped = !0, e.placement = a[c + 1], t && (e.placement += `-${t}`), e.offsets.popper = this._getRefPopOffsets(this._popper, this._reference, e.placement).popper, e = this.runModifiers(e, this._options.modifierFns, this.flip));
2064
1979
  }), e;
2065
1980
  }
2066
1981
  // 根据入参option上的offset, 给data.offset.popper进行校正
@@ -2073,28 +1988,27 @@ class di {
2073
1988
  let n = this._options.arrowElement, o = this._options.arrowOffset;
2074
1989
  if (typeof n == "string" && (n = this._popper.querySelector(n)), !n || !this._popper.contains(n))
2075
1990
  return e;
2076
- let i = {}, t = e.placement.split("-")[0], a = de(e.offsets.popper), s = e.offsets.reference, c = ~["left", "right"].indexOf(t), f = c ? "height" : "width", d = c ? "bottom" : "right", l = c ? "left" : "top", p = c ? "top" : "left", u = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = je(this._popper), m = je(n), w = m[f];
2077
- s[d] - w < a[p] && (e.offsets.popper[p] -= a[p] - (s[d] - w)), s[p] + w > a[d] && (e.offsets.popper[p] += s[p] + w - a[d]);
2078
- let h = s[p] + (o || s[f] / 2 - w / 2) - a[p];
2079
- const x = 4;
2080
- h = Math.max(Math.min(a[f] - w - x, h), x), i[p] = h, i[l] = "";
2081
- const y = this._options.placement.split("-");
2082
- return this._options.adjustArrow && ~["top", "bottom"].indexOf(y[0]) && p === "left" && (y[1] === "start" ? i.left = x : y[1] || (i.left = (u.width - m.width) / 2)), e.offsets.arrow = i, e.arrowElement = n, e;
1991
+ let i = {}, t = e.placement.split("-")[0], a = ue(e.offsets.popper), s = e.offsets.reference, c = ~["left", "right"].indexOf(t), d = c ? "height" : "width", f = c ? "bottom" : "right", l = c ? "left" : "top", p = c ? "top" : "left", u = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = De(this._popper), T = De(n), w = T[d];
1992
+ s[f] - w < a[p] && (e.offsets.popper[p] -= a[p] - (s[f] - w)), s[p] + w > a[f] && (e.offsets.popper[p] += s[p] + w - a[f]);
1993
+ let h = s[p] + (o || s[d] / 2 - w / 2) - a[p];
1994
+ h = Math.max(Math.min(a[d] - w - 8, h), 8), i[p] = h, i[l] = "";
1995
+ const S = this._options.placement.split("-");
1996
+ return this._options.adjustArrow && ~["top", "bottom"].indexOf(S[0]) && p === "left" && (S[1] === "start" ? i.left = 8 : S[1] || (i.left = (u.width - T.width) / 2)), e.offsets.arrow = i, e.arrowElement = n, e;
2083
1997
  }
2084
1998
  /** 判断 reference 的 offsetParent 元素是fix还是abs, 这个值会赋值给popper 的dom */
2085
1999
  _getPopperPositionByRefernce(e) {
2086
- return this._options.forceAbsolute ? "absolute" : pr(e) ? "fixed" : "absolute";
2000
+ return this._options.forceAbsolute ? "absolute" : lr(e) ? "fixed" : "absolute";
2087
2001
  }
2088
2002
  /** 实时计算一下popper, reference的 位置信息, 用于 */
2089
2003
  _getRefPopOffsets(e, n, o) {
2090
2004
  o = o.split("-")[0];
2091
- let i = { position: this.state.position }, t = i.position === "fixed", a = go(
2005
+ let i = { position: this.state.position }, t = i.position === "fixed", a = to(
2092
2006
  n,
2093
- Ne(e),
2007
+ Re(e),
2094
2008
  t,
2095
2009
  e
2096
2010
  );
2097
- const { width: s, height: c } = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = je(e);
2011
+ const { width: s, height: c } = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = De(e);
2098
2012
  return ~["right", "left"].indexOf(o) ? (i.top = a.top + a.height / 2 - c / 2, o === "left" ? i.left = a.left - s : i.left = a.right) : (i.left = a.left + a.width / 2 - s / 2, o === "top" ? i.top = a.top - c : i.top = a.bottom), i.width = s, i.height = c, {
2099
2013
  popper: i,
2100
2014
  reference: a
@@ -2106,51 +2020,51 @@ class di {
2106
2020
  if (this._options.updateHiddenPopperOnScroll)
2107
2021
  this.state.updateBoundFn();
2108
2022
  else {
2109
- if (Wt(this._reference)) return;
2023
+ if ($t(this._reference)) return;
2110
2024
  this.state.updateBoundFn();
2111
2025
  }
2112
- }, U(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
2113
- let o = this._options.scrollParent || Te(this._reference);
2026
+ }, B(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
2027
+ let o = this._options.scrollParent || we(this._reference);
2114
2028
  const i = [];
2115
2029
  if ((n = (e = o == null ? void 0 : o.dataset) == null ? void 0 : e.tag) != null && n.includes("-form")) {
2116
2030
  i.push(o);
2117
- let t = Te(o);
2031
+ let t = we(o);
2118
2032
  (t === window.document.body || t === window.document.documentElement) && (t = window), i.push(t);
2119
2033
  }
2120
- if ((o === window.document.body || o === window.document.documentElement) && (o = window), this.state.scrollTarget = o, this._options.bubbling || z.globalScroll) {
2121
- let t = mr(this._reference);
2034
+ if ((o === window.document.body || o === window.document.documentElement) && (o = window), this.state.scrollTarget = o, this._options.bubbling || R.globalScroll) {
2035
+ let t = ur(this._reference);
2122
2036
  this.state.scrollTargets = t || [], t.forEach((a) => {
2123
- U(a, "scroll", this.state.scrollUpdate);
2037
+ B(a, "scroll", this.state.scrollUpdate);
2124
2038
  });
2125
2039
  } else
2126
2040
  i.length ? (this.state.scrollTargets = i, i.forEach((t) => {
2127
- U(t, "scroll", this.state.scrollUpdate);
2128
- })) : U(o, "scroll", this.state.scrollUpdate);
2041
+ B(t, "scroll", this.state.scrollUpdate);
2042
+ })) : B(o, "scroll", this.state.scrollUpdate);
2129
2043
  }
2130
2044
  }
2131
2045
  _removeEventListeners() {
2132
- X(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (X(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, (this._options.bubbling || z.globalScroll) && ((this.state.scrollTargets || []).forEach((e) => {
2133
- X(e, "scroll", this.state.scrollUpdate);
2046
+ Z(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (Z(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, (this._options.bubbling || R.globalScroll) && ((this.state.scrollTargets || []).forEach((e) => {
2047
+ Z(e, "scroll", this.state.scrollUpdate);
2134
2048
  }), this.state.scrollTargets = null)), this.state.updateBoundFn = null, this.state.scrollUpdate = null;
2135
2049
  }
2136
2050
  /** 实时计算一下Boundary的位置 */
2137
2051
  _getBoundaries(e, n, o) {
2138
2052
  let i = { right: 0, left: 0, top: 0, bottom: 0 };
2139
2053
  if (o === "window" || o === "body") {
2140
- let t = window.document.body, a = window.document.documentElement, { width: s, height: c } = bo(t, a);
2054
+ let t = window.document.body, a = window.document.documentElement, { width: s, height: c } = oo(t, a);
2141
2055
  i = { top: 0, right: s, bottom: c, left: 0 };
2142
2056
  } else if (o === "viewport") {
2143
- let t = Ne(this._popper), a = Te(this._popper), s = Mt(t);
2057
+ let t = Re(this._popper), a = we(this._popper), s = Ot(t);
2144
2058
  const c = e.offsets.popper.position === "fixed" || !this._options.appendToBody && ["right", "left"].includes(this._options.placement);
2145
- let f = c ? 0 : vo(a), d = c ? 0 : yo(a);
2146
- const l = z.viewportWindow || window;
2059
+ let d = c ? 0 : ro(a), f = c ? 0 : no(a);
2060
+ const l = window;
2147
2061
  i = {
2148
- top: 0 - (s.top - f),
2149
- right: l.document.documentElement.clientWidth - (s.left - d),
2150
- bottom: l.document.documentElement.clientHeight - (s.top - f),
2151
- left: 0 - (s.left - d)
2062
+ top: 0 - (s.top - d),
2063
+ right: l.document.documentElement.clientWidth - (s.left - f),
2064
+ bottom: l.document.documentElement.clientHeight - (s.top - d),
2065
+ left: 0 - (s.left - f)
2152
2066
  };
2153
- } else if (Ne(this._popper) === o) {
2067
+ } else if (Re(this._popper) === o) {
2154
2068
  const { clientWidth: t, clientHeight: a } = o;
2155
2069
  i = {
2156
2070
  right: t,
@@ -2159,7 +2073,7 @@ class di {
2159
2073
  left: 0
2160
2074
  };
2161
2075
  } else
2162
- i = Mt(o);
2076
+ i = Ot(o);
2163
2077
  return i.right -= n, i.left += n, i.bottom = i.bottom - n, i.top = i.top + n, i;
2164
2078
  }
2165
2079
  // https://popper.js.org/docs/v2/lifecycle/#set-new-options
@@ -2167,7 +2081,7 @@ class di {
2167
2081
  Object.assign(this._options, e);
2168
2082
  }
2169
2083
  }
2170
- var Oe = {
2084
+ var Ae = {
2171
2085
  "en-US": "英语",
2172
2086
  "zh-CN": "中文",
2173
2087
  "zh-TW": "中国台湾",
@@ -3859,99 +3773,99 @@ var Oe = {
3859
3773
  },
3860
3774
  whitespace: "This field cannot be left blank."
3861
3775
  }
3862
- }, wo = /(%|)\{([0-9a-zA-Z_]+)\}/g;
3863
- function To(r) {
3776
+ }, io = /(%|)\{([0-9a-zA-Z_]+)\}/g;
3777
+ function ao(r) {
3864
3778
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++)
3865
3779
  n[o - 1] = arguments[o];
3866
- return n.length === 1 && typeof n[0] == "object" && (n = n[0]), (!n || !n.hasOwnProperty) && (n = {}), r.replace(wo, function(i, t, a, s) {
3780
+ return n.length === 1 && typeof n[0] == "object" && (n = n[0]), (!n || !n.hasOwnProperty) && (n = {}), r.replace(io, function(i, t, a, s) {
3867
3781
  var c;
3868
3782
  return r[s - 1] === "{" && r[s + i.length] === "}" ? a : (c = Object.prototype.hasOwnProperty.call(n, a) ? n[a] : null, c ?? "");
3869
3783
  });
3870
3784
  }
3871
- var fe = Oe, pe = null, Me = function(e, n) {
3785
+ var fe = Ae, pe = null, _e = function(e, n) {
3872
3786
  if (n === void 0 && (n = void 0), pe) return pe.apply(this, arguments);
3873
3787
  for (var o = e.split("."), i = null, t = fe, a = 0, s = o.length; a < s; a++) {
3874
3788
  var c = o[a];
3875
- if (i = t[c] || "", a === s - 1) return To(i, n);
3789
+ if (i = t[c] || "", a === s - 1) return ao(i, n);
3876
3790
  if (!i) return "";
3877
3791
  t = i;
3878
3792
  }
3879
3793
  return "";
3880
- }, gr = function(e) {
3794
+ }, dr = function(e) {
3881
3795
  return fe = e || fe, fe;
3882
- }, xo = function() {
3796
+ }, so = function() {
3883
3797
  return fe.code;
3884
- }, vr = function(e) {
3885
- return pe = e || Me, pe;
3886
- }, nt = _e, yr = function(e) {
3798
+ }, fr = function(e) {
3799
+ return pe = e || _e, pe;
3800
+ }, nt = Ee, pr = function(e) {
3887
3801
  var n = e.app, o = e.createI18n, i = e.messages, t = i === void 0 ? {} : i, a = e.i18n, s = a === void 0 ? {} : a, c = e.merge;
3888
3802
  typeof c != "function" && (c = function(p) {
3889
- var u = p.lang, m = p.i18n, w = p.messages;
3890
- return nt(!0, u, m.messages, w);
3803
+ var u = p.lang, T = p.i18n, w = p.messages;
3804
+ return nt(!0, u, T.messages, w);
3891
3805
  });
3892
- var f = {
3893
- zhCN: Oe,
3806
+ var d = {
3807
+ zhCN: Ae,
3894
3808
  enUS: rt
3895
3809
  };
3896
3810
  if (typeof o == "function") {
3897
- var d = o({
3811
+ var f = o({
3898
3812
  legacy: s.legacy,
3899
3813
  locale: s.locale || "zhCN",
3900
3814
  messages: c({
3901
- lang: f,
3815
+ lang: d,
3902
3816
  i18n: s,
3903
3817
  messages: t
3904
3818
  })
3905
3819
  });
3906
3820
  return pe = function(p, u) {
3907
- return d.global.t(p, u);
3908
- }, d;
3821
+ return f.global.t(p, u);
3822
+ }, f;
3909
3823
  }
3910
- return n && n.config && n.config.globalProperties && (n.config.globalProperties.$t = Me), c({
3911
- lang: f,
3824
+ return n && n.config && n.config.globalProperties && (n.config.globalProperties.$t = _e), c({
3825
+ lang: d,
3912
3826
  i18n: s,
3913
3827
  messages: t
3914
3828
  });
3915
- }, br = !0, wr = !1, So = {
3916
- isVue2: br,
3917
- isVue3: wr,
3918
- use: gr,
3919
- t: Me,
3920
- i18n: vr,
3921
- initI18n: yr,
3829
+ }, hr = !0, mr = !1, lo = {
3830
+ isVue2: hr,
3831
+ isVue3: mr,
3832
+ use: dr,
3833
+ t: _e,
3834
+ i18n: fr,
3835
+ initI18n: pr,
3922
3836
  extend: nt,
3923
- zhCN: Oe,
3837
+ zhCN: Ae,
3924
3838
  enUS: rt
3925
- }, J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3839
+ }, Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3926
3840
  __proto__: null,
3927
- default: So,
3841
+ default: lo,
3928
3842
  enUS: rt,
3929
3843
  extend: nt,
3930
- i18n: vr,
3931
- initI18n: yr,
3932
- isVue2: br,
3933
- isVue3: wr,
3934
- language: xo,
3935
- t: Me,
3936
- use: gr,
3937
- zhCN: Oe
3844
+ i18n: fr,
3845
+ initI18n: pr,
3846
+ isVue2: hr,
3847
+ isVue3: mr,
3848
+ language: so,
3849
+ t: _e,
3850
+ use: dr,
3851
+ zhCN: Ae
3938
3852
  }, Symbol.toStringTag, {
3939
3853
  value: "Module"
3940
3854
  }));
3941
- J.use;
3942
- var Ft = J.t;
3943
- J.i18n;
3944
- J.initI18n;
3945
- J.extend;
3946
- J.zhCN;
3947
- J.enUS;
3948
- J.language;
3949
- const ko = ({ onMounted: r, onActivated: e, nextTick: n }) => (o) => {
3855
+ Y.use;
3856
+ var Pt = Y.t;
3857
+ Y.i18n;
3858
+ Y.initI18n;
3859
+ Y.extend;
3860
+ Y.zhCN;
3861
+ Y.enUS;
3862
+ Y.language;
3863
+ const co = ({ onMounted: r, onActivated: e, nextTick: n }) => (o) => {
3950
3864
  let i;
3951
3865
  r(() => {
3952
3866
  o(), n(() => i = !0);
3953
3867
  }), e(() => i && o());
3954
- }, Co = ({ getCurrentInstance: r, isVue2: e, nextTick: n, onUnmounted: o }) => () => {
3868
+ }, uo = ({ getCurrentInstance: r, isVue2: e, nextTick: n, onUnmounted: o }) => () => {
3955
3869
  const i = r().proxy;
3956
3870
  e || Object.defineProperty(i, "$scopedSlots", { configurable: !0, value: null }), Object.defineProperty(i, "instanceSlots", {
3957
3871
  configurable: !0,
@@ -3961,7 +3875,7 @@ const ko = ({ onMounted: r, onActivated: e, nextTick: n }) => (o) => {
3961
3875
  e || delete i.$scopedSlots, delete i.instanceSlots;
3962
3876
  });
3963
3877
  });
3964
- }, Ao = ({
3878
+ }, fo = ({
3965
3879
  computed: r,
3966
3880
  getCurrentInstance: e,
3967
3881
  inject: n,
@@ -3971,55 +3885,55 @@ const ko = ({ onMounted: r, onActivated: e, nextTick: n }) => (o) => {
3971
3885
  onActivated: a,
3972
3886
  onUnmounted: s,
3973
3887
  provide: c,
3974
- reactive: f,
3975
- toRef: d
3976
- }) => ({ relationKey: l, relationContainer: p, onChange: u, childrenKey: m, delivery: w } = {}) => {
3888
+ reactive: d,
3889
+ toRef: f
3890
+ }) => ({ relationKey: l, relationContainer: p, onChange: u, childrenKey: T, delivery: w } = {}) => {
3977
3891
  if (!l)
3978
3892
  throw new Error("[TINY Error]<relationKey> must exist.");
3979
- const h = e(), x = f({ children: [], indexInParent: -1 }), y = n(l, null);
3980
- let g = [];
3981
- if (y) {
3982
- const { link: T, unlink: A, callbacks: _, childrenKey: O, delivery: M } = y;
3983
- g = _, m = m || O || "instanceChildren", w = M, x.indexInParent = T(h), s(() => A(h));
3893
+ const h = e(), S = d({ children: [], indexInParent: -1 }), g = n(l, null);
3894
+ let v = [];
3895
+ if (g) {
3896
+ const { link: b, unlink: C, callbacks: _, childrenKey: O, delivery: M } = g;
3897
+ v = _, T = T || O || "instanceChildren", w = M, S.indexInParent = b(h), s(() => C(h));
3984
3898
  } else {
3985
- m = m || "instanceChildren";
3986
- const T = ko({ onMounted: t, onActivated: a, nextTick: i }), A = u ? () => i(u) : Bn;
3899
+ T = T || "instanceChildren";
3900
+ const b = co({ onMounted: t, onActivated: a, nextTick: i }), C = u ? () => i(u) : En;
3987
3901
  let _;
3988
3902
  i(() => {
3989
3903
  const O = typeof p == "function" ? p() : p;
3990
3904
  O && (_ = new MutationObserver((M, L) => {
3991
- const $ = [];
3992
- Tr(O.childNodes, $), g.forEach((B) => B($, M, L)), A();
3905
+ const U = [];
3906
+ gr(O.childNodes, U), v.forEach((j) => j(U, M, L)), C();
3993
3907
  }), _.observe(O, { attributes: !0, childList: !0, subtree: !0 }));
3994
- }), T(() => A()), s(() => {
3995
- _ && (_.disconnect(), _ = null), g = null;
3908
+ }), b(() => C()), s(() => {
3909
+ _ && (_.disconnect(), _ = null), v = null;
3996
3910
  });
3997
3911
  }
3998
- const k = (T) => {
3999
- const A = T.proxy;
4000
- return x.children.push(o(A)), r(() => x.children.indexOf(A));
4001
- }, C = (T) => {
4002
- const A = x.children.indexOf(T.proxy);
4003
- A > -1 && x.children.splice(A, 1);
3912
+ const E = (b) => {
3913
+ const C = b.proxy;
3914
+ return S.children.push(o(C)), r(() => S.children.indexOf(C));
3915
+ }, x = (b) => {
3916
+ const C = S.children.indexOf(b.proxy);
3917
+ C > -1 && S.children.splice(C, 1);
4004
3918
  };
4005
- return g.push((T) => Eo(x.children, T)), c(l, { link: k, unlink: C, callbacks: g, childrenKey: m, delivery: w }), Object.defineProperty(h.proxy, m, { configurable: !0, get: () => x.children }), s(() => delete h.proxy[m]), { children: d(x, "children"), index: d(x, "indexInParent"), delivery: w };
4006
- }, Tr = (r, e) => {
3919
+ return v.push((b) => po(S.children, b)), c(l, { link: E, unlink: x, callbacks: v, childrenKey: T, delivery: w }), Object.defineProperty(h.proxy, T, { configurable: !0, get: () => S.children }), s(() => delete h.proxy[T]), { children: f(S, "children"), index: f(S, "indexInParent"), delivery: w };
3920
+ }, gr = (r, e) => {
4007
3921
  r.length && r.forEach((n) => {
4008
- e.push(n), n.childNodes && Tr(n.childNodes, e);
3922
+ e.push(n), n.childNodes && gr(n.childNodes, e);
4009
3923
  });
4010
- }, Eo = (r, e) => {
3924
+ }, po = (r, e) => {
4011
3925
  r.sort((n, o) => e.indexOf(n.$el) - e.indexOf(o.$el));
4012
3926
  };
4013
- function ae() {
4014
- return ae = Object.assign ? Object.assign.bind() : function(r) {
3927
+ function ie() {
3928
+ return ie = Object.assign ? Object.assign.bind() : function(r) {
4015
3929
  for (var e = 1; e < arguments.length; e++) {
4016
3930
  var n = arguments[e];
4017
3931
  for (var o in n) ({}).hasOwnProperty.call(n, o) && (r[o] = n[o]);
4018
3932
  }
4019
3933
  return r;
4020
- }, ae.apply(null, arguments);
3934
+ }, ie.apply(null, arguments);
4021
3935
  }
4022
- var xr = function() {
3936
+ var vr = function() {
4023
3937
  var e = {}, n = function(t, a, s) {
4024
3938
  if (s === void 0 && (s = !1), t && typeof t == "string" && typeof a == "function") {
4025
3939
  var c = e[t] || [];
@@ -4049,7 +3963,7 @@ var xr = function() {
4049
3963
  }
4050
3964
  };
4051
3965
  return o;
4052
- }, _o = function(e, n) {
3966
+ }, ho = function(e, n) {
4053
3967
  n === void 0 && (n = {});
4054
3968
  var o = {};
4055
3969
  for (var i in e)
@@ -4057,7 +3971,7 @@ var xr = function() {
4057
3971
  for (var t in n)
4058
3972
  o[t] = n[t];
4059
3973
  return o;
4060
- }, Oo = function(e, n) {
3974
+ }, mo = function(e, n) {
4061
3975
  if (e === void 0 && (e = {}), typeof n == "object") {
4062
3976
  var o = Array.isArray(n) ? n : Object.keys(n).filter(function(t) {
4063
3977
  return n[t];
@@ -4067,56 +3981,53 @@ var xr = function() {
4067
3981
  }), i;
4068
3982
  } else
4069
3983
  return e[n] || "";
4070
- }, Mo = S.defineAsyncComponent, Io = S.markRaw, Sr = function(e) {
4071
- var n = e.view, o = n === void 0 ? void 0 : n, i = e.component, t = i === void 0 ? void 0 : i, a = e.props, s = e.customDesignProps, c = e.context, f = c.attrs, d = c.slots, l = e.extend, p = l === void 0 ? {} : l;
3984
+ }, go = k.defineAsyncComponent, vo = k.markRaw, yr = function(e) {
3985
+ var n = e.view, o = n === void 0 ? void 0 : n, i = e.component, t = i === void 0 ? void 0 : i, a = e.props, s = e.context, c = s.attrs, d = s.slots, f = e.extend, l = f === void 0 ? {} : f;
4072
3986
  return function() {
4073
- return S.h(o && o.value || t, ae({
3987
+ return k.h(o && o.value || t, ie({
4074
3988
  ref: "modeTemplate"
4075
- }, a, f, s, p), d);
3989
+ }, a, c, l), d);
4076
3990
  };
4077
3991
  }, ot = function(e) {
4078
- var n = S.getCurrentInstance();
4079
- return e && kr(n), n == null ? void 0 : n.appContext.config.globalProperties;
4080
- }, Po = function() {
4081
- var e, n = S.getCurrentInstance();
4082
- return (n == null || (e = n.vnode) == null ? void 0 : e.props) || {};
4083
- }, Fo = function() {
4084
- var e, n = S.getCurrentInstance(), o = n == null || (e = n.type) == null ? void 0 : e.name;
3992
+ var n = k.getCurrentInstance();
3993
+ return e && br(n), n == null ? void 0 : n.appContext.config.globalProperties;
3994
+ }, yo = function() {
3995
+ var e, n = k.getCurrentInstance(), o = n == null || (e = n.type) == null ? void 0 : e.name;
4085
3996
  if (!o) {
4086
3997
  var i, t;
4087
3998
  o = n == null || (i = n.parent) == null || (t = i.type) == null ? void 0 : t.name;
4088
3999
  }
4089
4000
  return o || "";
4090
- }, Lo = function() {
4001
+ }, bo = function() {
4091
4002
  var e;
4092
- return ((e = S.getCurrentInstance()) == null ? void 0 : e.appContext) || {
4003
+ return ((e = k.getCurrentInstance()) == null ? void 0 : e.appContext) || {
4093
4004
  component: function() {
4094
4005
  }
4095
4006
  };
4096
- }, Do = function() {
4097
- var e = S.getCurrentInstance();
4007
+ }, wo = function() {
4008
+ var e = k.getCurrentInstance();
4098
4009
  return (e == null ? void 0 : e.appContext.config.globalProperties) || {};
4099
- }, zo = function(e) {
4010
+ }, To = function(e) {
4100
4011
  var n;
4101
- e === void 0 && (e = S.getCurrentInstance());
4012
+ e === void 0 && (e = k.getCurrentInstance());
4102
4013
  var o = (n = e) == null ? void 0 : n.appContext.config.globalProperties.$router, i = o && o.currentRoute.value;
4103
4014
  return {
4104
4015
  route: i,
4105
4016
  router: o
4106
4017
  };
4107
- }, kr = function(e) {
4108
- var n = xr();
4018
+ }, br = function(e) {
4019
+ var n = vr();
4109
4020
  typeof e.$emitter > "u" && Object.defineProperty(e, "$emitter", {
4110
4021
  get: function() {
4111
4022
  return n;
4112
4023
  }
4113
4024
  });
4114
- }, Ro = function(e) {
4025
+ }, xo = function(e) {
4115
4026
  var n = function(i, t, a, s) {
4116
4027
  var c = i.subTree && i.subTree.children || i.children;
4117
- Array.isArray(c) && c.forEach(function(f) {
4118
- var d = f.type && f.type.componentName, l = f.component;
4119
- d === t ? (l.emit(a, s), l.$emitter && l.$emitter.emit(a, s)) : n(f, t, a, s);
4028
+ Array.isArray(c) && c.forEach(function(d) {
4029
+ var f = d.type && d.type.componentName, l = d.component;
4030
+ f === t ? (l.emit(a, s), l.$emitter && l.$emitter.emit(a, s)) : n(d, t, a, s);
4120
4031
  });
4121
4032
  };
4122
4033
  return {
@@ -4124,60 +4035,60 @@ var xr = function() {
4124
4035
  for (var s = e.parent || e.root, c = s.type && s.type.componentName; s && (!c || c !== i); )
4125
4036
  s = s.parent, s && (c = s.type && s.type.componentName);
4126
4037
  if (s) {
4127
- var f, d;
4128
- (f = s).emit.apply(f, [t].concat(a)), s.$emitter && (d = s.$emitter).emit.apply(d, [t].concat(a));
4038
+ var d, f;
4039
+ (d = s).emit.apply(d, [t].concat(a)), s.$emitter && (f = s.$emitter).emit.apply(f, [t].concat(a));
4129
4040
  }
4130
4041
  },
4131
4042
  broadcast: function(i, t, a) {
4132
4043
  n(e, i, t, a);
4133
4044
  }
4134
4045
  };
4135
- }, Ae = function(e) {
4046
+ }, ke = function(e) {
4136
4047
  if (e && e.parent) return e.parent.type.name === "AsyncComponentWrapper" && e.parent.parent ? e.parent.parent : e.parent;
4137
- }, No = function(e) {
4048
+ }, So = function(e) {
4138
4049
  return function(n) {
4139
- var o = Ae(e), i = 0, t = function(s) {
4050
+ var o = ke(e), i = 0, t = function(s) {
4140
4051
  return {
4141
4052
  level: i,
4142
- vm: W({}, s),
4053
+ vm: H({}, s),
4143
4054
  el: s.vnode.el,
4144
4055
  options: s.type
4145
4056
  };
4146
4057
  };
4147
4058
  if (typeof n != "function") return o ? t(o) : {};
4148
4059
  for (i++; o && !n(t(o)); )
4149
- o = Ae(o), i++;
4060
+ o = ke(o), i++;
4150
4061
  };
4151
- }, jo = function(e) {
4062
+ }, ko = function(e) {
4152
4063
  return function(n) {
4153
- if (typeof n != "function") return Cr(e.subTree);
4064
+ if (typeof n != "function") return wr(e.subTree);
4154
4065
  var o = 1, i = function(a) {
4155
4066
  if (a) {
4156
4067
  var s = a.children || a.dynamicChildren, c = o++;
4157
4068
  if (Array.isArray(s)) {
4158
- if (s.some(function(f) {
4159
- return f.component && n({
4069
+ if (s.some(function(d) {
4070
+ return d.component && n({
4160
4071
  level: c,
4161
- vm: W({}, f.component),
4162
- el: f.el,
4163
- options: f.type,
4072
+ vm: H({}, d.component),
4073
+ el: d.el,
4074
+ options: d.type,
4164
4075
  isLevel1: !0
4165
4076
  });
4166
4077
  })) return;
4167
- s.forEach(function(f) {
4168
- return i(f);
4078
+ s.forEach(function(d) {
4079
+ return i(d);
4169
4080
  });
4170
4081
  }
4171
4082
  }
4172
4083
  };
4173
4084
  i(e.subTree);
4174
4085
  };
4175
- }, Bo = /^on[A-Z]/, Uo = function(e) {
4086
+ }, Co = /^on[A-Z]/, Eo = function(e) {
4176
4087
  var n = {}, o = {};
4177
4088
  for (var i in e) {
4178
4089
  var t = e[i];
4179
- if (Bo.test(i) && typeof t == "function") {
4180
- o[On(i.substr(2))] = t;
4090
+ if (Co.test(i) && typeof t == "function") {
4091
+ o[yn(i.substr(2))] = t;
4181
4092
  continue;
4182
4093
  }
4183
4094
  n[i] = t;
@@ -4186,19 +4097,19 @@ var xr = function() {
4186
4097
  $attrs: n,
4187
4098
  $listeners: o
4188
4099
  };
4189
- }, Cr = function(e) {
4100
+ }, wr = function(e) {
4190
4101
  var n = [];
4191
4102
  if (n.refs = {}, e) {
4192
4103
  var o = e.dynamicChildren || e.children;
4193
4104
  Array.isArray(o) ? o.forEach(function(i) {
4194
4105
  if (i.component) {
4195
- var t = W({}, i.component);
4106
+ var t = H({}, i.component);
4196
4107
  n.push(t), i.props.ref && (n.refs[i.props.ref] = t);
4197
4108
  }
4198
- }) : e.component && n.push(W({}, e.component));
4109
+ }) : e.component && n.push(H({}, e.component));
4199
4110
  }
4200
4111
  return n;
4201
- }, Be = function(e, n, o, i) {
4112
+ }, Ne = function(e, n, o, i) {
4202
4113
  var t = function(c) {
4203
4114
  if (typeof i == "function" && i(c)) return 1;
4204
4115
  Object.defineProperty(e, c, {
@@ -4207,30 +4118,30 @@ var xr = function() {
4207
4118
  get: function() {
4208
4119
  return n[o][c];
4209
4120
  },
4210
- set: function(d) {
4211
- return n[o][c] = d;
4121
+ set: function(f) {
4122
+ return n[o][c] = f;
4212
4123
  }
4213
4124
  });
4214
4125
  };
4215
4126
  for (var a in n[o])
4216
4127
  t(a);
4217
4128
  return e;
4218
- }, Lt = function(e) {
4129
+ }, Ft = function(e) {
4219
4130
  return e.indexOf("_") === 0;
4220
- }, Ar = function(e, n) {
4221
- return Be(e, n, "setupState", null), Be(e, n, "props", Lt), Be(e, n, "ctx", Lt), e;
4222
- }, W = function(e, n, o) {
4131
+ }, Tr = function(e, n) {
4132
+ return Ne(e, n, "setupState", null), Ne(e, n, "props", Ft), Ne(e, n, "ctx", Ft), e;
4133
+ }, H = function(e, n, o) {
4223
4134
  o === void 0 && (o = null);
4224
- var i = Uo(n.attrs), t = i.$attrs, a = i.$listeners, s = n.$emitter;
4225
- s || (kr(n), s = n.$emitter);
4135
+ var i = Eo(n.attrs), t = i.$attrs, a = i.$listeners, s = n.$emitter;
4136
+ s || (br(n), s = n.$emitter);
4226
4137
  var c = function() {
4227
4138
  for (var l = arguments.length, p = new Array(l), u = 0; u < l; u++)
4228
4139
  p[u] = arguments[u];
4229
4140
  n.emit.apply(n, p), s.emit.apply(e, p);
4230
- }, f = function(l, p, u) {
4141
+ }, d = function(l, p, u) {
4231
4142
  return l[p] = u;
4232
4143
  };
4233
- return o || Ar(e, n), Object.defineProperties(e, {
4144
+ return o || Tr(e, n), Object.defineProperties(e, {
4234
4145
  $attrs: {
4235
4146
  get: function() {
4236
4147
  return t;
@@ -4238,7 +4149,7 @@ var xr = function() {
4238
4149
  },
4239
4150
  $children: {
4240
4151
  get: function() {
4241
- return Cr(n.subTree);
4152
+ return wr(n.subTree);
4242
4153
  }
4243
4154
  },
4244
4155
  $constants: {
@@ -4268,7 +4179,7 @@ var xr = function() {
4268
4179
  },
4269
4180
  $nextTick: {
4270
4181
  get: function() {
4271
- return S.nextTick;
4182
+ return k.nextTick;
4272
4183
  }
4273
4184
  },
4274
4185
  $off: {
@@ -4295,7 +4206,7 @@ var xr = function() {
4295
4206
  },
4296
4207
  $parent: {
4297
4208
  get: function() {
4298
- return n.parent && W({}, Ae(n));
4209
+ return n.parent && H({}, ke(n));
4299
4210
  }
4300
4211
  },
4301
4212
  $refs: {
@@ -4315,7 +4226,7 @@ var xr = function() {
4315
4226
  },
4316
4227
  $set: {
4317
4228
  get: function() {
4318
- return f;
4229
+ return d;
4319
4230
  }
4320
4231
  },
4321
4232
  $slots: {
@@ -4329,40 +4240,40 @@ var xr = function() {
4329
4240
  }
4330
4241
  }
4331
4242
  }), e;
4332
- }, $o = function(e, n) {
4243
+ }, Ao = function(e, n) {
4333
4244
  for (var o in e.refs)
4334
4245
  Object.prototype.hasOwnProperty.call(e.refs, o) && (n[o] = e.refs[o]);
4335
- }, qo = function(e, n) {
4336
- var o, i, t = S.getCurrentInstance(), a = t == null ? void 0 : t.appContext.config.globalProperties, s = zo(t), c = s.route, f = s.router, d = t == null || (o = t.proxy) == null || (i = o.$root) == null ? void 0 : i.$i18n, l = Ro(t), p = l.dispatch, u = l.broadcast, m = No(t), w = jo(t), h = W({}, t, e), x = e.emit, y = {}, g = typeof t.props.tiny_template > "u" && Ae(t), k = g ? W({}, g) : t.parent ? W({}, t.parent) : null, C = function(O) {
4337
- var M, L = O.name, $ = O.value, B = g ? g.ctx : t == null || (M = t.parent) == null ? void 0 : M.ctx;
4338
- B[L] = $, k[L] = $;
4339
- }, T = function(O) {
4246
+ }, _o = function(e, n) {
4247
+ var o, i, t = k.getCurrentInstance(), a = t == null ? void 0 : t.appContext.config.globalProperties, s = To(t), c = s.route, d = s.router, f = t == null || (o = t.proxy) == null || (i = o.$root) == null ? void 0 : i.$i18n, l = xo(t), p = l.dispatch, u = l.broadcast, T = So(t), w = ko(t), h = H({}, t, e), S = e.emit, g = {}, v = typeof t.props.tiny_template > "u" && ke(t), E = v ? H({}, v) : t.parent ? H({}, t.parent) : null, x = function(O) {
4248
+ var M, L = O.name, U = O.value, j = v ? v.ctx : t == null || (M = t.parent) == null ? void 0 : M.ctx;
4249
+ j[L] = U, E[L] = U;
4250
+ }, b = function(O) {
4340
4251
  Object.defineProperties(h, O), Object.defineProperties(t == null ? void 0 : t.ctx, O);
4341
- }, A = function(O) {
4342
- k && Object.defineProperties(k, O);
4252
+ }, C = function(O) {
4253
+ E && Object.defineProperties(E, O);
4343
4254
  };
4344
- return S.onBeforeMount(function() {
4345
- return Ar(h, t);
4346
- }), S.onMounted(function() {
4347
- return $o(t, y);
4255
+ return k.onBeforeMount(function() {
4256
+ return Tr(h, t);
4257
+ }), k.onMounted(function() {
4258
+ return Ao(t, g);
4348
4259
  }), {
4349
4260
  framework: "vue3",
4350
4261
  vm: h,
4351
- emit: x,
4352
- emitter: xr,
4262
+ emit: S,
4263
+ emitter: vr,
4353
4264
  route: c,
4354
- router: f,
4265
+ router: d,
4355
4266
  dispatch: p,
4356
4267
  broadcast: u,
4357
- parentHandler: m,
4268
+ parentHandler: T,
4358
4269
  childrenHandler: w,
4359
- i18n: d,
4360
- refs: y,
4270
+ i18n: f,
4271
+ refs: g,
4361
4272
  slots: t == null ? void 0 : t.slots,
4362
4273
  scopedSlots: t == null ? void 0 : t.slots,
4363
4274
  attrs: e.attrs,
4364
- parent: k,
4365
- nextTick: S.nextTick,
4275
+ parent: E,
4276
+ nextTick: k.nextTick,
4366
4277
  constants: t == null ? void 0 : t.props._constants,
4367
4278
  mode: n,
4368
4279
  isPCMode: n === "pc",
@@ -4371,70 +4282,57 @@ var xr = function() {
4371
4282
  getService: function() {
4372
4283
  return a == null ? void 0 : a.$getService(h);
4373
4284
  },
4374
- setParentAttribute: C,
4375
- defineInstanceProperties: T,
4376
- defineParentInstanceProperties: A
4285
+ setParentAttribute: x,
4286
+ defineInstanceProperties: b,
4287
+ defineParentInstanceProperties: C
4377
4288
  };
4378
- }, be = function(e, n, o) {
4379
- if (typeof e[n] < "u") {
4380
- var i = e[n];
4381
- e[o] = function(t, a, s) {
4382
- s.context = a.instance, i(t, a, s);
4383
- }, delete e[n];
4384
- }
4385
- }, fi = function(e) {
4386
- for (var n in e) {
4387
- var o = e[n];
4388
- be(o, "inserted", "mounted"), be(o, "bind", "beforeMount"), be(o, "update", "updated"), be(o, "unbind", "unmounted");
4389
- }
4390
- return e;
4391
- }, pi = function(e) {
4392
- return e;
4393
- }, Ho = S.Text, Vo = S.Comment, hi = function(e) {
4394
- return !e || !e.type || [Ho, Vo].includes(e.type);
4395
4289
  }, Wo = function(e) {
4290
+ return e;
4291
+ }, Oo = k.Text, Mo = k.Comment, Go = function(e) {
4292
+ return !e || !e.type || [Oo, Mo].includes(e.type);
4293
+ }, Io = function(e) {
4396
4294
  var n = {};
4397
4295
  for (var o in e)
4398
4296
  if (o === "class" || o === "style")
4399
4297
  n[o] = e[o];
4400
4298
  else if (o === "on" || o === "nativeOn") {
4401
4299
  var i = e[o];
4402
- for (var t in i) n["on" + En(An(t))] = i[t];
4300
+ for (var t in i) n["on" + gn(mn(t))] = i[t];
4403
4301
  } else if (o === "attrs" || o === "props" || o === "domProps") {
4404
4302
  var a = e[o];
4405
4303
  for (var s in a) n[s] = a[s];
4406
4304
  } else
4407
4305
  n[o] = e[o];
4408
4306
  return n;
4409
- }, Go = function(e) {
4307
+ }, Po = function(e) {
4410
4308
  var n = e, o = !1;
4411
4309
  if (typeof e == "string" && typeof document < "u") {
4412
4310
  var i = document.createElement(e), t = ["SVG", "CIRCLE", "PATH"];
4413
- i instanceof HTMLUnknownElement && !t.includes(i.nodeName) || e.includes("-") ? (e = e.toLowerCase(), o = !0, e === "transition" ? n = S.Transition : e === "transition-group" ? n = S.TransitionGroup : n = S.resolveComponent(e)) : n = e;
4311
+ i instanceof HTMLUnknownElement && !t.includes(i.nodeName) || e.includes("-") ? (e = e.toLowerCase(), o = !0, e === "transition" ? n = k.Transition : e === "transition-group" ? n = k.TransitionGroup : n = k.resolveComponent(e)) : n = e;
4414
4312
  }
4415
4313
  return {
4416
4314
  type: n,
4417
4315
  component: e,
4418
4316
  customElement: o
4419
4317
  };
4420
- }, mi = function(e, n, o) {
4421
- var i = {}, t = o, a = Go(e), s = a.customElement, c = a.type;
4422
- return e = a.component, n && typeof n == "object" && !Array.isArray(n) ? (i = Wo(n), n.scopedSlots && (t = n.scopedSlots)) : (typeof n == "string" || Array.isArray(n)) && (o = n), (typeof o == "string" || Array.isArray(o)) && (t = typeof e != "string" || s ? function() {
4318
+ }, Yo = function(e, n, o) {
4319
+ var i = {}, t = o, a = Po(e), s = a.customElement, c = a.type;
4320
+ return e = a.component, n && typeof n == "object" && !Array.isArray(n) ? (i = Io(n), n.scopedSlots && (t = n.scopedSlots)) : (typeof n == "string" || Array.isArray(n)) && (o = n), (typeof o == "string" || Array.isArray(o)) && (t = typeof e != "string" || s ? function() {
4423
4321
  return o;
4424
- } : o), S.h(c, i, t);
4425
- }, Yo = function(e) {
4322
+ } : o), k.h(c, i, t);
4323
+ }, Fo = function(e) {
4426
4324
  return function(n) {
4427
4325
  var o, i = n.component, t = n.propsData, a = n.el, s = Object.assign(i, {
4428
4326
  provide: (o = {}, o[e.configKey] = e.configInstance, o)
4429
- }), c = S.createVNode(s, t);
4430
- return S.render(c, a), W({}, c.component);
4327
+ }), c = k.createVNode(s, t);
4328
+ return k.render(c, a), H({}, c.component);
4431
4329
  };
4432
- }, Jo = S.defineComponent, Er = !1, Ye = function(e) {
4330
+ }, Lo = k.defineComponent, xr = !1, Ye = function(e) {
4433
4331
  var n = [];
4434
4332
  return Object.keys(e).forEach(function(o) {
4435
4333
  return e[o] && n.push(o);
4436
4334
  }), n.join(" ");
4437
- }, Ko = function(e) {
4335
+ }, zo = function(e) {
4438
4336
  var n = [];
4439
4337
  return e.forEach(function(o) {
4440
4338
  typeof o == "string" ? n.push(o) : typeof o == "object" && n.push(Ye(o));
@@ -4447,17 +4345,17 @@ var xr = function() {
4447
4345
  if (Array.isArray(e) && e.length > 0) {
4448
4346
  var n = [];
4449
4347
  return e.forEach(function(o) {
4450
- o && (typeof o == "string" ? n.push(o) : Array.isArray(o) ? n.push(Ko(o)) : typeof o == "object" && n.push(Ye(o)));
4348
+ o && (typeof o == "string" ? n.push(o) : Array.isArray(o) ? n.push(zo(o)) : typeof o == "object" && n.push(Ye(o)));
4451
4349
  }), n.join(" ");
4452
4350
  }
4453
4351
  return typeof e == "object" ? Ye(e) : "";
4454
- }, gi = function(e) {
4352
+ }, Jo = function(e) {
4455
4353
  var n = Je(e), o = Array.from(new Set(n.split(" "))).filter(function(i) {
4456
4354
  return i;
4457
4355
  });
4458
4356
  return Je(o);
4459
- }, Qo = function() {
4460
- var e = S.ref(""), n = ["2xl", "xl", "lg", "md", "sm"], o = function(c) {
4357
+ }, Ro = function() {
4358
+ var e = k.ref(""), n = ["2xl", "xl", "lg", "md", "sm"], o = function(c) {
4461
4359
  return F || typeof matchMedia != "function" ? {
4462
4360
  matches: !1,
4463
4361
  media: c,
@@ -4474,37 +4372,37 @@ var xr = function() {
4474
4372
  sm: o("(min-width:640px)")
4475
4373
  }, t = function() {
4476
4374
  for (var c = 0; c < n.length; c++) {
4477
- var f = n[c];
4478
- if (i[f].matches) {
4479
- e.value = f;
4375
+ var d = n[c];
4376
+ if (i[d].matches) {
4377
+ e.value = d;
4480
4378
  return;
4481
4379
  }
4482
4380
  }
4483
4381
  e.value = "default";
4484
- }, a = ro(0, function() {
4382
+ }, a = $n(0, function() {
4485
4383
  return t();
4486
4384
  });
4487
4385
  return t(), n.forEach(function(s) {
4488
4386
  return i[s].addEventListener("change", a);
4489
- }), S.onBeforeUnmount(function() {
4387
+ }), k.onBeforeUnmount(function() {
4490
4388
  n.forEach(function(s) {
4491
4389
  return i[s].removeEventListener("change", a);
4492
4390
  });
4493
4391
  }), {
4494
4392
  current: e
4495
4393
  };
4496
- }, Zo = ["IconLoadingShadow", "IconNoData"], _r = 0, Or = function(e, n) {
4394
+ }, Do = ["IconLoadingShadow", "IconNoData"], Sr = 0, kr = function(e, n) {
4497
4395
  {
4498
4396
  var o;
4499
4397
  if ((o = e.props) != null && o.id) {
4500
- var i = "" + e.props.id + _r;
4398
+ var i = "" + e.props.id + Sr;
4501
4399
  n[e.props.id] = i, e.props.id = i;
4502
4400
  }
4503
4401
  }
4504
4402
  Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(t) {
4505
- Or(t, n);
4403
+ kr(t, n);
4506
4404
  });
4507
- }, Mr = function(e, n) {
4405
+ }, Cr = function(e, n) {
4508
4406
  var o = ["fill", "mask", "filter"];
4509
4407
  o.forEach(function(i) {
4510
4408
  {
@@ -4515,235 +4413,211 @@ var xr = function() {
4515
4413
  }
4516
4414
  }
4517
4415
  }), Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(i) {
4518
- Mr(i, n);
4416
+ Cr(i, n);
4519
4417
  });
4520
- }, Xo = function(e) {
4418
+ }, No = function(e) {
4521
4419
  if (e) {
4522
4420
  var n = {};
4523
- Or(e, n), Mr(e, n), _r++;
4421
+ kr(e, n), Cr(e, n), Sr++;
4524
4422
  }
4525
4423
  };
4526
- Co(ae({}, S, {
4527
- isVue2: Er
4424
+ uo(ie({}, k, {
4425
+ isVue2: xr
4528
4426
  }));
4529
- Ao(ae({}, S, {
4530
- isVue2: Er
4427
+ fo(ie({}, k, {
4428
+ isVue2: xr
4531
4429
  }));
4532
- var it = "Tiny", vi = {
4430
+ var Ke = "Tiny", Ko = {
4533
4431
  tiny_mode: String,
4534
4432
  tiny_mode_root: Boolean,
4535
4433
  tiny_template: [Function, Object],
4536
4434
  tiny_renderless: Function,
4537
4435
  tiny_theme: String,
4538
4436
  tiny_chart_theme: Object
4539
- }, yi = ["tiny_mode", "tiny_mode_root", "tiny_template", "tiny_renderless", "_constants", "tiny_theme", "tiny_chart_theme"], at = function(e, n) {
4437
+ }, it = function(e, n) {
4540
4438
  var o = function(l) {
4541
4439
  return ~["pc", "mobile", "mobile-first"].indexOf(l);
4542
- }, i = ot(n), t = typeof e.tiny_mode == "string" ? e.tiny_mode : null, a = S.inject("TinyMode", null), s;
4440
+ }, i = ot(n), t = typeof e.tiny_mode == "string" ? e.tiny_mode : null, a = k.inject("TinyMode", null), s;
4543
4441
  typeof i.tiny_mode == "string" ? s = i.tiny_mode : i.tiny_mode && (s = i.tiny_mode.value), o(t) || (t = null), o(a) || (a = null), o(s) || (s = null);
4544
4442
  var c = t || a || s || "pc";
4545
- e.tiny_mode_root && S.provide("TinyMode", c);
4546
- var f = S.getCurrentInstance();
4547
- return Object.defineProperty(f, "_tiny_mode", {
4443
+ e.tiny_mode_root && k.provide("TinyMode", c);
4444
+ var d = k.getCurrentInstance();
4445
+ return Object.defineProperty(d, "_tiny_mode", {
4548
4446
  value: c
4549
4447
  }), c;
4550
- }, ei = function(e, n) {
4551
- var o = function(d) {
4552
- return ~["tiny", "saas"].indexOf(d);
4553
- }, i = ot(n), t = typeof e.tiny_theme == "string" ? e.tiny_theme : null, a = S.inject("TinyTheme", null), s = i.tiny_theme && i.tiny_theme.value;
4448
+ }, jo = function(e, n) {
4449
+ var o = function(f) {
4450
+ return ~["tiny", "saas"].indexOf(f);
4451
+ }, i = ot(n), t = typeof e.tiny_theme == "string" ? e.tiny_theme : null, a = k.inject("TinyTheme", null), s = i.tiny_theme && i.tiny_theme.value;
4554
4452
  o(t) || (t = null), o(a) || (a = null), o(s) || (s = null);
4555
4453
  var c = t || a || s || "tiny";
4556
4454
  return c;
4557
- }, ti = function(e, n) {
4558
- var o = ot(n), i = typeof e.tiny_chart_theme == "object" ? e.tiny_chart_theme : null, t = S.inject("TinyChartTheme", null), a = o.tiny_chart_theme && o.tiny_chart_theme.value, s = i || t || a || null;
4455
+ }, Bo = function(e, n) {
4456
+ var o = ot(n), i = typeof e.tiny_chart_theme == "object" ? e.tiny_chart_theme : null, t = k.inject("TinyChartTheme", null), a = o.tiny_chart_theme && o.tiny_chart_theme.value, s = i || t || a || null;
4559
4457
  return s;
4560
- }, Ir = {
4561
- configKey: Symbol("designConfigKey"),
4562
- configInstance: null
4563
- }, bi = Yo(Ir), ri = {
4564
- designConfig: null,
4565
- twMerge: function() {
4566
- return "";
4567
- }
4568
- }, Pr = function() {
4569
- var e, n, o, i = S.inject(Ir.configKey, {});
4570
- i = ((e = i) == null ? void 0 : e.value) || i || {};
4571
- var t = (n = i) == null || (o = n.components) == null ? void 0 : o[Fo().replace(it, "")];
4572
- return {
4573
- designConfig: t,
4574
- globalDesignConfig: i
4575
- };
4576
- }, wi = function(e) {
4577
- var n = e.props, o = e.context, i = e.template, t = e.extend, a = t === void 0 ? {} : t, s = at(n, o), c = S.computed(function() {
4458
+ }, Qo = function(e) {
4459
+ var n = e.props, o = e.context, i = e.template, t = e.extend, a = t === void 0 ? {} : t, s = it(n, o), c = k.computed(function() {
4578
4460
  if (typeof n.tiny_template < "u") return n.tiny_template;
4579
- var m = i(s, n);
4580
- return typeof m == "function" ? Mo(m) : m;
4581
- }), f = Pr(), d = f.designConfig, l = {}, p = d == null ? void 0 : d.props;
4582
- if (p) {
4583
- var u = Po();
4584
- Object.keys(p).forEach(function(m) {
4585
- var w = m.replace(/-(\w)/g, function(x, y) {
4586
- return y.toUpperCase();
4587
- }), h = m.replace(/([A-Z])/g, "-$1").toLowerCase();
4588
- !Object.prototype.hasOwnProperty.call(u, w) && !Object.prototype.hasOwnProperty.call(u, h) && (l[m] = p[m]);
4589
- });
4590
- }
4591
- return Sr({
4461
+ var d = i(s, n);
4462
+ return typeof d == "function" ? go(d) : d;
4463
+ });
4464
+ return yr({
4592
4465
  view: c,
4593
4466
  props: n,
4594
- customDesignProps: l,
4595
4467
  context: o,
4596
4468
  extend: a
4597
4469
  });
4598
- }, Ke = function() {
4470
+ }, Er = {
4471
+ configKey: Symbol("designConfigKey"),
4472
+ configInstance: null
4473
+ }, Zo = Fo(Er), Uo = {
4474
+ designConfig: null,
4475
+ twMerge: function() {
4476
+ return "";
4477
+ }
4478
+ }, Qe = function() {
4599
4479
  for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
4600
4480
  n[o] = arguments[o];
4601
- return ri.twMerge(Je(n));
4602
- }, Ti = function(e) {
4603
- var n = e.props, o = e.context, i = e.renderless, t = e.api, a = e.extendOptions, s = a === void 0 ? {} : a, c = e.mono, f = c === void 0 ? !1 : c, d = e.classes, l = d === void 0 ? {} : d, p = typeof n.tiny_renderless == "function" ? n.tiny_renderless : i, u = Pr(), m = u.designConfig, w = u.globalDesignConfig, h = ae({
4604
- $prefix: it,
4605
- t: Ft
4606
- }, qo(o, at(n, o)), {
4607
- designConfig: m,
4608
- globalDesignConfig: w,
4609
- useBreakpoint: Qo,
4610
- mergeClass: Ke
4481
+ return Uo.twMerge(Je(n));
4482
+ }, Xo = function(e) {
4483
+ var n, o, i, t = e.props, a = e.context, s = e.renderless, c = e.api, d = e.extendOptions, f = d === void 0 ? {} : d, l = e.mono, p = l === void 0 ? !1 : l, u = e.classes, T = u === void 0 ? {} : u, w = typeof t.tiny_renderless == "function" ? t.tiny_renderless : s, h = k.inject(Er.configKey, {});
4484
+ h = ((n = h) == null ? void 0 : n.value) || h || {};
4485
+ var S = (o = h) == null || (i = o.components) == null ? void 0 : i[yo().replace(Ke, "")], g = ie({
4486
+ $prefix: Ke,
4487
+ t: Pt
4488
+ }, _o(a, it(t, a)), {
4489
+ designConfig: S,
4490
+ globalDesignConfig: h,
4491
+ useBreakpoint: Ro,
4492
+ mergeClass: Qe
4611
4493
  });
4612
- h.vm.theme = ei(n, o), h.vm.chartTheme = ti(n, o);
4613
- var x = p(n, S, h, s);
4614
- typeof (m == null ? void 0 : m.renderless) == "function" && Object.assign(x, m.renderless(n, S, h, x));
4615
- var y = {
4616
- t: Ft,
4617
- vm: h.vm,
4618
- f: _o,
4619
- a: ni,
4620
- d: h.defineInstanceProperties,
4621
- dp: h.defineParentInstanceProperties,
4622
- gcls: function(k) {
4623
- return Oo(l, k);
4624
- },
4625
- m: Ke
4494
+ g.vm.theme = jo(t, a), g.vm.chartTheme = Bo(t, a);
4495
+ var v = w(t, k, g, f);
4496
+ typeof (S == null ? void 0 : S.renderless) == "function" && Object.assign(v, S.renderless(t, k, g, v));
4497
+ var E = {
4498
+ t: Pt,
4499
+ vm: g.vm,
4500
+ f: ho,
4501
+ a: $o,
4502
+ d: g.defineInstanceProperties,
4503
+ dp: g.defineParentInstanceProperties,
4504
+ gcls: function(b) {
4505
+ return mo(T, b);
4506
+ },
4507
+ m: Qe
4626
4508
  };
4627
- return y.d({
4509
+ return E.d({
4628
4510
  slots: {
4629
4511
  get: function() {
4630
- return h.vm.$slots;
4512
+ return g.vm.$slots;
4631
4513
  },
4632
4514
  configurable: !0
4633
4515
  },
4634
4516
  scopedSlots: {
4635
4517
  get: function() {
4636
- return h.vm.$scopedSlots;
4518
+ return g.vm.$scopedSlots;
4637
4519
  },
4638
4520
  configurable: !0
4639
4521
  }
4640
- }), y.dp({
4522
+ }), E.dp({
4641
4523
  slots: {
4642
4524
  get: function() {
4643
- return h.parent.$slots;
4525
+ return g.parent.$slots;
4644
4526
  },
4645
4527
  configurable: !0
4646
4528
  },
4647
4529
  scopedSlots: {
4648
4530
  get: function() {
4649
- return h.parent.$scopedSlots;
4531
+ return g.parent.$scopedSlots;
4650
4532
  },
4651
4533
  configurable: !0
4652
4534
  }
4653
- }), oi(), Array.isArray(t) && (Array.isArray(m == null ? void 0 : m.api) && (t = t.concat(m.api)), t.forEach(function(g) {
4654
- var k = x[g];
4655
- typeof k < "u" && (y[g] = k, f || h.setParentAttribute({
4656
- name: g,
4657
- value: k
4535
+ }), qo(), Array.isArray(c) && (Array.isArray(S == null ? void 0 : S.api) && (c = c.concat(S.api)), c.forEach(function(x) {
4536
+ var b = v[x];
4537
+ typeof b < "u" && (E[x] = b, p || g.setParentAttribute({
4538
+ name: x,
4539
+ value: b
4658
4540
  }));
4659
- })), y;
4541
+ })), E;
4660
4542
  };
4661
- function xi(r) {
4543
+ function ei(r) {
4662
4544
  var e = r.name, n = e === void 0 ? "Icon" : e, o = r.component;
4663
4545
  return function(i) {
4664
- return Io(Jo({
4665
- name: it + n,
4546
+ return vo(Lo({
4547
+ name: Ke + n,
4666
4548
  setup: function(a, s) {
4667
- var c = s.attrs || {}, f = c.fill, d = c.width, l = c.height, p = c["custom-class"], u = c["first-color"], m = c["second-color"], w = Object.assign({}, a, i || null), h = at(w, s), x = h === "mobile-first", y = {
4668
- "data-tag": x ? "tiny-svg" : null
4669
- }, g = y, k = "tiny-svg";
4670
- x && (k = Ke("h-4 w-4 inline-block", p || "", w.class || ""));
4671
- var C = Object.assign({
4549
+ var c = s.attrs || {}, d = c.fill, f = c.width, l = c.height, p = c["custom-class"], u = c["first-color"], T = c["second-color"], w = Object.assign({}, a, i || null), h = it(w, s), S = h === "mobile-first", g = {
4550
+ "data-tag": S ? "tiny-svg" : null
4551
+ }, v = g, E = "tiny-svg";
4552
+ S && (E = Qe("h-4 w-4 inline-block", p || "", w.class || ""));
4553
+ var x = Object.assign({
4672
4554
  style: {
4673
- fill: f,
4674
- width: d,
4555
+ fill: d,
4556
+ width: f,
4675
4557
  height: l,
4676
4558
  "--tiny-first-color": u || "",
4677
- "--tiny-second-color": m || ""
4559
+ "--tiny-second-color": T || ""
4678
4560
  },
4679
- class: k,
4561
+ class: E,
4680
4562
  isSvg: !0
4681
- }, g);
4682
- if (C.nativeOn = s.listeners, Zo.includes(n)) {
4683
- var T = o.render;
4563
+ }, v);
4564
+ if (x.nativeOn = s.listeners, Do.includes(n)) {
4565
+ var b = o.render;
4684
4566
  o.render = function() {
4685
- for (var A = T.bind(this), _ = arguments.length, O = new Array(_), M = 0; M < _; M++)
4567
+ for (var C = b.bind(this), _ = arguments.length, O = new Array(_), M = 0; M < _; M++)
4686
4568
  O[M] = arguments[M];
4687
- var L = A(O);
4688
- return Xo(L), L;
4569
+ var L = C(O);
4570
+ return No(L), L;
4689
4571
  };
4690
4572
  }
4691
- return Sr({
4573
+ return yr({
4692
4574
  component: o,
4693
4575
  props: w,
4694
4576
  context: s,
4695
- extend: C
4577
+ extend: x
4696
4578
  });
4697
4579
  }
4698
4580
  }));
4699
4581
  };
4700
4582
  }
4701
- var ni = function(e, n, o) {
4583
+ var $o = function(e, n, o) {
4702
4584
  var i = {}, t = function(c) {
4703
- var f = n.some(function(d) {
4704
- return new RegExp(d).test(c);
4585
+ var d = n.some(function(f) {
4586
+ return new RegExp(f).test(c);
4705
4587
  });
4706
- (o && f || !o && !f) && (i[c] = e[c]);
4588
+ (o && d || !o && !d) && (i[c] = e[c]);
4707
4589
  };
4708
4590
  for (var a in e)
4709
4591
  t(a);
4710
4592
  return i;
4711
- }, Ue = {}, oi = function() {
4712
- for (var e in Ue) {
4713
- var n = Ue[e];
4714
- typeof n.install == "function" && n.install(Lo()), typeof n.init == "function" && n.init(Do());
4593
+ }, je = {}, qo = function() {
4594
+ for (var e in je) {
4595
+ var n = je[e];
4596
+ typeof n.install == "function" && n.install(bo()), typeof n.init == "function" && n.init(wo());
4715
4597
  }
4716
- Ue = {};
4598
+ je = {};
4717
4599
  };
4718
4600
  export {
4719
- z as $,
4720
- ii as A,
4721
- ci as G,
4722
- ui as H,
4723
- si as M,
4724
- ai as N,
4725
- li as P,
4726
- di as Q,
4601
+ R as $,
4602
+ $n as G,
4603
+ Vo as P,
4604
+ Ho as Q,
4727
4605
  F as S,
4728
- U as Z,
4729
- Ti as a,
4730
- wi as b,
4731
- it as c,
4732
- Jo as d,
4733
- ge as e,
4734
- vi as f,
4735
- fi as g,
4736
- ro as h,
4737
- bi as i,
4738
- mi as j,
4739
- gi as k,
4740
- Je as l,
4741
- Ln as m,
4742
- X as n,
4743
- pi as o,
4744
- yi as p,
4745
- hi as q,
4746
- xi as s,
4747
- ve as t,
4748
- Wt as y
4606
+ B as Z,
4607
+ Jo as a,
4608
+ $t as b,
4609
+ Zo as c,
4610
+ Lo as d,
4611
+ Je as e,
4612
+ Xo as f,
4613
+ Ke as g,
4614
+ Yo as h,
4615
+ Go as i,
4616
+ Ko as j,
4617
+ Qo as k,
4618
+ ei as l,
4619
+ Z as n,
4620
+ Wo as p,
4621
+ ve as s,
4622
+ ge as t
4749
4623
  };