@opentiny/tiny-robot 0.3.0-alpha.0 → 0.3.0-alpha.2

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