@mapsindoors/map-template 1.26.0 → 1.28.0
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/{combo-box-item.entry-1f4c2836.mjs → combo-box-item.entry-ca513c88.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +2 -2
- package/dist/mapsindoors-react.umd.js +88 -88
- package/dist/mapsindoors-webcomponent.es.js +12667 -12568
- package/dist/mapsindoors-webcomponent.umd.js +107 -107
- package/dist/{mi-card_2.entry-068661b3.mjs → mi-card_2.entry-a7036dda.mjs} +1 -1
- package/dist/{mi-chip.entry-71d68e83.mjs → mi-chip.entry-5a5557a8.mjs} +1 -1
- package/dist/{mi-column.entry-ebbdb69b.mjs → mi-column.entry-e5cac9e1.mjs} +1 -1
- package/dist/{mi-combo-box.entry-950817f7.mjs → mi-combo-box.entry-bd9600be.mjs} +1 -1
- package/dist/{mi-data-table.entry-620f97ba.mjs → mi-data-table.entry-5aef415e.mjs} +1 -1
- package/dist/{mi-distance_2.entry-5a70da56.mjs → mi-distance_2.entry-de77ad82.mjs} +1 -1
- package/dist/{mi-dropdown-item.entry-6933d980.mjs → mi-dropdown-item.entry-a07b5dfc.mjs} +1 -1
- package/dist/{mi-dropdown.entry-5a1627fa.mjs → mi-dropdown.entry-f0d4ed4c.mjs} +1 -1
- package/dist/{mi-floor-selector.entry-8da6125f.mjs → mi-floor-selector.entry-5612c1ec.mjs} +1 -1
- package/dist/mi-keyboard.entry-6d76374b.mjs +3013 -0
- package/dist/{mi-list-item-category.entry-fa54de35.mjs → mi-list-item-category.entry-26cfdf80.mjs} +1 -1
- package/dist/{mi-list-item-location.entry-93ed1308.mjs → mi-list-item-location.entry-81b881f1.mjs} +1 -1
- package/dist/{mi-list.entry-0a444afc.mjs → mi-list.entry-c03567b7.mjs} +1 -1
- package/dist/{mi-location-booking.entry-4ff9d6de.mjs → mi-location-booking.entry-5a7e584b.mjs} +1 -1
- package/dist/{mi-location-info.entry-a582db7b.mjs → mi-location-info.entry-b0c57907.mjs} +1 -1
- package/dist/{mi-map-googlemaps.entry-4362f405.mjs → mi-map-googlemaps.entry-7d5201e1.mjs} +1 -1
- package/dist/{mi-map-mapbox.entry-28e98067.mjs → mi-map-mapbox.entry-55103966.mjs} +1 -1
- package/dist/{mi-metric-card.entry-d4d3cb06.mjs → mi-metric-card.entry-b7f08209.mjs} +1 -1
- package/dist/{mi-my-position.entry-f4be3f5e.mjs → mi-my-position.entry-6fa6c59d.mjs} +1 -1
- package/dist/{mi-notification.entry-71755dc9.mjs → mi-notification.entry-46f6af80.mjs} +1 -1
- package/dist/{mi-route-instructions-heading.entry-94630407.mjs → mi-route-instructions-heading.entry-70cf9b09.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver-legacy.entry-7f6b76ee.mjs → mi-route-instructions-maneuver-legacy.entry-4bffe59f.mjs} +1 -1
- package/dist/{mi-route-instructions-maneuver.entry-97be1973.mjs → mi-route-instructions-maneuver.entry-df85a867.mjs} +1 -1
- package/dist/{mi-route-instructions-step-legacy.entry-84898dc0.mjs → mi-route-instructions-step-legacy.entry-741ad47e.mjs} +1 -1
- package/dist/{mi-route-instructions-step.entry-e7fa70ef.mjs → mi-route-instructions-step.entry-be9eca83.mjs} +1 -1
- package/dist/{mi-route-instructions.entry-088201a9.mjs → mi-route-instructions.entry-280b8e52.mjs} +1 -1
- package/dist/{mi-scroll-buttons.entry-c63f8437.mjs → mi-scroll-buttons.entry-239c815f.mjs} +1 -1
- package/dist/{mi-search.entry-3bb25d1c.mjs → mi-search.entry-6e07750b.mjs} +12 -6
- package/dist/{mi-share-sms.entry-2be73dee.mjs → mi-share-sms.entry-5858dfbd.mjs} +1 -1
- package/dist/{mi-step-switcher.entry-72a2237d.mjs → mi-step-switcher.entry-c8396889.mjs} +1 -1
- package/dist/{mi-tab-panel.entry-1ae30d4c.mjs → mi-tab-panel.entry-899494d2.mjs} +1 -1
- package/dist/{mi-tab.entry-a5feeba0.mjs → mi-tab.entry-f33f803a.mjs} +1 -1
- package/dist/{mi-tabs.entry-b2af312a.mjs → mi-tabs.entry-f3d4bd34.mjs} +1 -1
- package/dist/{mi-time.entry-712b7112.mjs → mi-time.entry-eef99047.mjs} +1 -1
- package/dist/{reactcomponent-803912bf.mjs → reactcomponent-a6db7581.mjs} +9030 -8988
- package/package.json +1 -1
- package/dist/mi-keyboard.entry-b019bfc9.mjs +0 -2962
|
@@ -0,0 +1,3013 @@
|
|
|
1
|
+
import { r as Tt, h as Dt } from "./reactcomponent-a6db7581.mjs";
|
|
2
|
+
import { c as jt, a as Nt, g as Lt } from "./_commonjsHelpers-ba3f0406-b96e6d6a.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
var Rt = jt(function(ut, vt) {
|
|
6
|
+
/*!
|
|
7
|
+
*
|
|
8
|
+
* simple-keyboard v3.7.27
|
|
9
|
+
* https://github.com/hodgef/simple-keyboard
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
(function(kt, yt) {
|
|
18
|
+
ut.exports = yt();
|
|
19
|
+
})(Nt, function() {
|
|
20
|
+
return function() {
|
|
21
|
+
var kt = { 509: function(i, p, t) {
|
|
22
|
+
var e = t(9985), n = t(3691), r = TypeError;
|
|
23
|
+
i.exports = function(a) {
|
|
24
|
+
if (e(a))
|
|
25
|
+
return a;
|
|
26
|
+
throw new r(n(a) + " is not a function");
|
|
27
|
+
};
|
|
28
|
+
}, 2655: function(i, p, t) {
|
|
29
|
+
var e = t(9429), n = t(3691), r = TypeError;
|
|
30
|
+
i.exports = function(a) {
|
|
31
|
+
if (e(a))
|
|
32
|
+
return a;
|
|
33
|
+
throw new r(n(a) + " is not a constructor");
|
|
34
|
+
};
|
|
35
|
+
}, 3550: function(i, p, t) {
|
|
36
|
+
var e = t(9985), n = String, r = TypeError;
|
|
37
|
+
i.exports = function(a) {
|
|
38
|
+
if (typeof a == "object" || e(a))
|
|
39
|
+
return a;
|
|
40
|
+
throw new r("Can't set " + n(a) + " as a prototype");
|
|
41
|
+
};
|
|
42
|
+
}, 7370: function(i, p, t) {
|
|
43
|
+
var e = t(4201), n = t(5391), r = t(2560).f, a = e("unscopables"), u = Array.prototype;
|
|
44
|
+
u[a] === void 0 && r(u, a, { configurable: !0, value: n(null) }), i.exports = function(c) {
|
|
45
|
+
u[a][c] = !0;
|
|
46
|
+
};
|
|
47
|
+
}, 1514: function(i, p, t) {
|
|
48
|
+
var e = t(730).charAt;
|
|
49
|
+
i.exports = function(n, r, a) {
|
|
50
|
+
return r + (a ? e(n, r).length : 1);
|
|
51
|
+
};
|
|
52
|
+
}, 5027: function(i, p, t) {
|
|
53
|
+
var e = t(8999), n = String, r = TypeError;
|
|
54
|
+
i.exports = function(a) {
|
|
55
|
+
if (e(a))
|
|
56
|
+
return a;
|
|
57
|
+
throw new r(n(a) + " is not an object");
|
|
58
|
+
};
|
|
59
|
+
}, 7612: function(i, p, t) {
|
|
60
|
+
var e = t(2960).forEach, n = t(6834)("forEach");
|
|
61
|
+
i.exports = n ? [].forEach : function(r) {
|
|
62
|
+
return e(this, r, arguments.length > 1 ? arguments[1] : void 0);
|
|
63
|
+
};
|
|
64
|
+
}, 1055: function(i, p, t) {
|
|
65
|
+
var e = t(4071), n = t(2615), r = t(690), a = t(1228), u = t(3292), c = t(9429), l = t(6310), h = t(6522), g = t(5185), m = t(1664), y = Array;
|
|
66
|
+
i.exports = function(x) {
|
|
67
|
+
var k = r(x), P = c(this), O = arguments.length, M = O > 1 ? arguments[1] : void 0, j = M !== void 0;
|
|
68
|
+
j && (M = e(M, O > 2 ? arguments[2] : void 0));
|
|
69
|
+
var B, T, _, R, K, N, z = m(k), U = 0;
|
|
70
|
+
if (!z || this === y && u(z))
|
|
71
|
+
for (B = l(k), T = P ? new this(B) : y(B); B > U; U++)
|
|
72
|
+
N = j ? M(k[U], U) : k[U], h(T, U, N);
|
|
73
|
+
else
|
|
74
|
+
for (K = (R = g(k, z)).next, T = P ? new this() : []; !(_ = n(K, R)).done; U++)
|
|
75
|
+
N = j ? a(R, M, [_.value, U], !0) : _.value, h(T, U, N);
|
|
76
|
+
return T.length = U, T;
|
|
77
|
+
};
|
|
78
|
+
}, 4328: function(i, p, t) {
|
|
79
|
+
var e = t(5290), n = t(7578), r = t(6310), a = function(u) {
|
|
80
|
+
return function(c, l, h) {
|
|
81
|
+
var g, m = e(c), y = r(m), x = n(h, y);
|
|
82
|
+
if (u && l != l) {
|
|
83
|
+
for (; y > x; )
|
|
84
|
+
if ((g = m[x++]) != g)
|
|
85
|
+
return !0;
|
|
86
|
+
} else
|
|
87
|
+
for (; y > x; x++)
|
|
88
|
+
if ((u || x in m) && m[x] === l)
|
|
89
|
+
return u || x || 0;
|
|
90
|
+
return !u && -1;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
i.exports = { includes: a(!0), indexOf: a(!1) };
|
|
94
|
+
}, 2960: function(i, p, t) {
|
|
95
|
+
var e = t(4071), n = t(8844), r = t(4413), a = t(690), u = t(6310), c = t(7120), l = n([].push), h = function(g) {
|
|
96
|
+
var m = g === 1, y = g === 2, x = g === 3, k = g === 4, P = g === 6, O = g === 7, M = g === 5 || P;
|
|
97
|
+
return function(j, B, T, _) {
|
|
98
|
+
for (var R, K, N = a(j), z = r(N), U = e(B, T), Y = u(z), G = 0, w = _ || c, v = m ? w(j, Y) : y || O ? w(j, 0) : void 0; Y > G; G++)
|
|
99
|
+
if ((M || G in z) && (K = U(R = z[G], G, N), g))
|
|
100
|
+
if (m)
|
|
101
|
+
v[G] = K;
|
|
102
|
+
else if (K)
|
|
103
|
+
switch (g) {
|
|
104
|
+
case 3:
|
|
105
|
+
return !0;
|
|
106
|
+
case 5:
|
|
107
|
+
return R;
|
|
108
|
+
case 6:
|
|
109
|
+
return G;
|
|
110
|
+
case 2:
|
|
111
|
+
l(v, R);
|
|
112
|
+
}
|
|
113
|
+
else
|
|
114
|
+
switch (g) {
|
|
115
|
+
case 4:
|
|
116
|
+
return !1;
|
|
117
|
+
case 7:
|
|
118
|
+
l(v, R);
|
|
119
|
+
}
|
|
120
|
+
return P ? -1 : x || k ? k : v;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
i.exports = { forEach: h(0), map: h(1), filter: h(2), some: h(3), every: h(4), find: h(5), findIndex: h(6), filterReject: h(7) };
|
|
124
|
+
}, 9042: function(i, p, t) {
|
|
125
|
+
var e = t(3689), n = t(4201), r = t(3615), a = n("species");
|
|
126
|
+
i.exports = function(u) {
|
|
127
|
+
return r >= 51 || !e(function() {
|
|
128
|
+
var c = [];
|
|
129
|
+
return (c.constructor = {})[a] = function() {
|
|
130
|
+
return { foo: 1 };
|
|
131
|
+
}, c[u](Boolean).foo !== 1;
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
}, 6834: function(i, p, t) {
|
|
135
|
+
var e = t(3689);
|
|
136
|
+
i.exports = function(n, r) {
|
|
137
|
+
var a = [][n];
|
|
138
|
+
return !!a && e(function() {
|
|
139
|
+
a.call(null, r || function() {
|
|
140
|
+
return 1;
|
|
141
|
+
}, 1);
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
}, 8820: function(i, p, t) {
|
|
145
|
+
var e = t(509), n = t(690), r = t(4413), a = t(6310), u = TypeError, c = function(l) {
|
|
146
|
+
return function(h, g, m, y) {
|
|
147
|
+
e(g);
|
|
148
|
+
var x = n(h), k = r(x), P = a(x), O = l ? P - 1 : 0, M = l ? -1 : 1;
|
|
149
|
+
if (m < 2)
|
|
150
|
+
for (; ; ) {
|
|
151
|
+
if (O in k) {
|
|
152
|
+
y = k[O], O += M;
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
if (O += M, l ? O < 0 : P <= O)
|
|
156
|
+
throw new u("Reduce of empty array with no initial value");
|
|
157
|
+
}
|
|
158
|
+
for (; l ? O >= 0 : P > O; O += M)
|
|
159
|
+
O in k && (y = g(y, k[O], O, x));
|
|
160
|
+
return y;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
i.exports = { left: c(!1), right: c(!0) };
|
|
164
|
+
}, 5649: function(i, p, t) {
|
|
165
|
+
var e = t(7697), n = t(2297), r = TypeError, a = Object.getOwnPropertyDescriptor, u = e && !function() {
|
|
166
|
+
if (this !== void 0)
|
|
167
|
+
return !0;
|
|
168
|
+
try {
|
|
169
|
+
Object.defineProperty([], "length", { writable: !1 }).length = 1;
|
|
170
|
+
} catch (c) {
|
|
171
|
+
return c instanceof TypeError;
|
|
172
|
+
}
|
|
173
|
+
}();
|
|
174
|
+
i.exports = u ? function(c, l) {
|
|
175
|
+
if (n(c) && !a(c, "length").writable)
|
|
176
|
+
throw new r("Cannot set read only .length");
|
|
177
|
+
return c.length = l;
|
|
178
|
+
} : function(c, l) {
|
|
179
|
+
return c.length = l;
|
|
180
|
+
};
|
|
181
|
+
}, 9015: function(i, p, t) {
|
|
182
|
+
var e = t(7578), n = t(6310), r = t(6522), a = Array, u = Math.max;
|
|
183
|
+
i.exports = function(c, l, h) {
|
|
184
|
+
for (var g = n(c), m = e(l, g), y = e(h === void 0 ? g : h, g), x = a(u(y - m, 0)), k = 0; m < y; m++, k++)
|
|
185
|
+
r(x, k, c[m]);
|
|
186
|
+
return x.length = k, x;
|
|
187
|
+
};
|
|
188
|
+
}, 6004: function(i, p, t) {
|
|
189
|
+
var e = t(8844);
|
|
190
|
+
i.exports = e([].slice);
|
|
191
|
+
}, 382: function(i, p, t) {
|
|
192
|
+
var e = t(9015), n = Math.floor, r = function(c, l) {
|
|
193
|
+
var h = c.length, g = n(h / 2);
|
|
194
|
+
return h < 8 ? a(c, l) : u(c, r(e(c, 0, g), l), r(e(c, g), l), l);
|
|
195
|
+
}, a = function(c, l) {
|
|
196
|
+
for (var h, g, m = c.length, y = 1; y < m; ) {
|
|
197
|
+
for (g = y, h = c[y]; g && l(c[g - 1], h) > 0; )
|
|
198
|
+
c[g] = c[--g];
|
|
199
|
+
g !== y++ && (c[g] = h);
|
|
200
|
+
}
|
|
201
|
+
return c;
|
|
202
|
+
}, u = function(c, l, h, g) {
|
|
203
|
+
for (var m = l.length, y = h.length, x = 0, k = 0; x < m || k < y; )
|
|
204
|
+
c[x + k] = x < m && k < y ? g(l[x], h[k]) <= 0 ? l[x++] : h[k++] : x < m ? l[x++] : h[k++];
|
|
205
|
+
return c;
|
|
206
|
+
};
|
|
207
|
+
i.exports = r;
|
|
208
|
+
}, 5271: function(i, p, t) {
|
|
209
|
+
var e = t(2297), n = t(9429), r = t(8999), a = t(4201)("species"), u = Array;
|
|
210
|
+
i.exports = function(c) {
|
|
211
|
+
var l;
|
|
212
|
+
return e(c) && (l = c.constructor, (n(l) && (l === u || e(l.prototype)) || r(l) && (l = l[a]) === null) && (l = void 0)), l === void 0 ? u : l;
|
|
213
|
+
};
|
|
214
|
+
}, 7120: function(i, p, t) {
|
|
215
|
+
var e = t(5271);
|
|
216
|
+
i.exports = function(n, r) {
|
|
217
|
+
return new (e(n))(r === 0 ? 0 : r);
|
|
218
|
+
};
|
|
219
|
+
}, 1228: function(i, p, t) {
|
|
220
|
+
var e = t(5027), n = t(2125);
|
|
221
|
+
i.exports = function(r, a, u, c) {
|
|
222
|
+
try {
|
|
223
|
+
return c ? a(e(u)[0], u[1]) : a(u);
|
|
224
|
+
} catch (l) {
|
|
225
|
+
n(r, "throw", l);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}, 6431: function(i, p, t) {
|
|
229
|
+
var e = t(4201)("iterator"), n = !1;
|
|
230
|
+
try {
|
|
231
|
+
var r = 0, a = { next: function() {
|
|
232
|
+
return { done: !!r++ };
|
|
233
|
+
}, return: function() {
|
|
234
|
+
n = !0;
|
|
235
|
+
} };
|
|
236
|
+
a[e] = function() {
|
|
237
|
+
return this;
|
|
238
|
+
}, Array.from(a, function() {
|
|
239
|
+
throw 2;
|
|
240
|
+
});
|
|
241
|
+
} catch {
|
|
242
|
+
}
|
|
243
|
+
i.exports = function(u, c) {
|
|
244
|
+
try {
|
|
245
|
+
if (!c && !n)
|
|
246
|
+
return !1;
|
|
247
|
+
} catch {
|
|
248
|
+
return !1;
|
|
249
|
+
}
|
|
250
|
+
var l = !1;
|
|
251
|
+
try {
|
|
252
|
+
var h = {};
|
|
253
|
+
h[e] = function() {
|
|
254
|
+
return { next: function() {
|
|
255
|
+
return { done: l = !0 };
|
|
256
|
+
} };
|
|
257
|
+
}, u(h);
|
|
258
|
+
} catch {
|
|
259
|
+
}
|
|
260
|
+
return l;
|
|
261
|
+
};
|
|
262
|
+
}, 6648: function(i, p, t) {
|
|
263
|
+
var e = t(8844), n = e({}.toString), r = e("".slice);
|
|
264
|
+
i.exports = function(a) {
|
|
265
|
+
return r(n(a), 8, -1);
|
|
266
|
+
};
|
|
267
|
+
}, 926: function(i, p, t) {
|
|
268
|
+
var e = t(3043), n = t(9985), r = t(6648), a = t(4201)("toStringTag"), u = Object, c = r(function() {
|
|
269
|
+
return arguments;
|
|
270
|
+
}()) === "Arguments";
|
|
271
|
+
i.exports = e ? r : function(l) {
|
|
272
|
+
var h, g, m;
|
|
273
|
+
return l === void 0 ? "Undefined" : l === null ? "Null" : typeof (g = function(y, x) {
|
|
274
|
+
try {
|
|
275
|
+
return y[x];
|
|
276
|
+
} catch {
|
|
277
|
+
}
|
|
278
|
+
}(h = u(l), a)) == "string" ? g : c ? r(h) : (m = r(h)) === "Object" && n(h.callee) ? "Arguments" : m;
|
|
279
|
+
};
|
|
280
|
+
}, 8758: function(i, p, t) {
|
|
281
|
+
var e = t(6812), n = t(9152), r = t(2474), a = t(2560);
|
|
282
|
+
i.exports = function(u, c, l) {
|
|
283
|
+
for (var h = n(c), g = a.f, m = r.f, y = 0; y < h.length; y++) {
|
|
284
|
+
var x = h[y];
|
|
285
|
+
e(u, x) || l && e(l, x) || g(u, x, m(c, x));
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
}, 7413: function(i, p, t) {
|
|
289
|
+
var e = t(4201)("match");
|
|
290
|
+
i.exports = function(n) {
|
|
291
|
+
var r = /./;
|
|
292
|
+
try {
|
|
293
|
+
"/./"[n](r);
|
|
294
|
+
} catch {
|
|
295
|
+
try {
|
|
296
|
+
return r[e] = !1, "/./"[n](r);
|
|
297
|
+
} catch {
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return !1;
|
|
301
|
+
};
|
|
302
|
+
}, 1748: function(i, p, t) {
|
|
303
|
+
var e = t(3689);
|
|
304
|
+
i.exports = !e(function() {
|
|
305
|
+
function n() {
|
|
306
|
+
}
|
|
307
|
+
return n.prototype.constructor = null, Object.getPrototypeOf(new n()) !== n.prototype;
|
|
308
|
+
});
|
|
309
|
+
}, 7807: function(i) {
|
|
310
|
+
i.exports = function(p, t) {
|
|
311
|
+
return { value: p, done: t };
|
|
312
|
+
};
|
|
313
|
+
}, 5773: function(i, p, t) {
|
|
314
|
+
var e = t(7697), n = t(2560), r = t(5684);
|
|
315
|
+
i.exports = e ? function(a, u, c) {
|
|
316
|
+
return n.f(a, u, r(1, c));
|
|
317
|
+
} : function(a, u, c) {
|
|
318
|
+
return a[u] = c, a;
|
|
319
|
+
};
|
|
320
|
+
}, 5684: function(i) {
|
|
321
|
+
i.exports = function(p, t) {
|
|
322
|
+
return { enumerable: !(1 & p), configurable: !(2 & p), writable: !(4 & p), value: t };
|
|
323
|
+
};
|
|
324
|
+
}, 6522: function(i, p, t) {
|
|
325
|
+
var e = t(8360), n = t(2560), r = t(5684);
|
|
326
|
+
i.exports = function(a, u, c) {
|
|
327
|
+
var l = e(u);
|
|
328
|
+
l in a ? n.f(a, l, r(0, c)) : a[l] = c;
|
|
329
|
+
};
|
|
330
|
+
}, 1797: function(i, p, t) {
|
|
331
|
+
var e = t(5027), n = t(5899), r = TypeError;
|
|
332
|
+
i.exports = function(a) {
|
|
333
|
+
if (e(this), a === "string" || a === "default")
|
|
334
|
+
a = "string";
|
|
335
|
+
else if (a !== "number")
|
|
336
|
+
throw new r("Incorrect hint");
|
|
337
|
+
return n(this, a);
|
|
338
|
+
};
|
|
339
|
+
}, 2148: function(i, p, t) {
|
|
340
|
+
var e = t(8702), n = t(2560);
|
|
341
|
+
i.exports = function(r, a, u) {
|
|
342
|
+
return u.get && e(u.get, a, { getter: !0 }), u.set && e(u.set, a, { setter: !0 }), n.f(r, a, u);
|
|
343
|
+
};
|
|
344
|
+
}, 1880: function(i, p, t) {
|
|
345
|
+
var e = t(9985), n = t(2560), r = t(8702), a = t(5014);
|
|
346
|
+
i.exports = function(u, c, l, h) {
|
|
347
|
+
h || (h = {});
|
|
348
|
+
var g = h.enumerable, m = h.name !== void 0 ? h.name : c;
|
|
349
|
+
if (e(l) && r(l, m, h), h.global)
|
|
350
|
+
g ? u[c] = l : a(c, l);
|
|
351
|
+
else {
|
|
352
|
+
try {
|
|
353
|
+
h.unsafe ? u[c] && (g = !0) : delete u[c];
|
|
354
|
+
} catch {
|
|
355
|
+
}
|
|
356
|
+
g ? u[c] = l : n.f(u, c, { value: l, enumerable: !1, configurable: !h.nonConfigurable, writable: !h.nonWritable });
|
|
357
|
+
}
|
|
358
|
+
return u;
|
|
359
|
+
};
|
|
360
|
+
}, 5014: function(i, p, t) {
|
|
361
|
+
var e = t(9037), n = Object.defineProperty;
|
|
362
|
+
i.exports = function(r, a) {
|
|
363
|
+
try {
|
|
364
|
+
n(e, r, { value: a, configurable: !0, writable: !0 });
|
|
365
|
+
} catch {
|
|
366
|
+
e[r] = a;
|
|
367
|
+
}
|
|
368
|
+
return a;
|
|
369
|
+
};
|
|
370
|
+
}, 8494: function(i, p, t) {
|
|
371
|
+
var e = t(3691), n = TypeError;
|
|
372
|
+
i.exports = function(r, a) {
|
|
373
|
+
if (!delete r[a])
|
|
374
|
+
throw new n("Cannot delete property " + e(a) + " of " + e(r));
|
|
375
|
+
};
|
|
376
|
+
}, 7697: function(i, p, t) {
|
|
377
|
+
var e = t(3689);
|
|
378
|
+
i.exports = !e(function() {
|
|
379
|
+
return Object.defineProperty({}, 1, { get: function() {
|
|
380
|
+
return 7;
|
|
381
|
+
} })[1] !== 7;
|
|
382
|
+
});
|
|
383
|
+
}, 2659: function(i) {
|
|
384
|
+
var p = typeof document == "object" && document.all, t = p === void 0 && p !== void 0;
|
|
385
|
+
i.exports = { all: p, IS_HTMLDDA: t };
|
|
386
|
+
}, 6420: function(i, p, t) {
|
|
387
|
+
var e = t(9037), n = t(8999), r = e.document, a = n(r) && n(r.createElement);
|
|
388
|
+
i.exports = function(u) {
|
|
389
|
+
return a ? r.createElement(u) : {};
|
|
390
|
+
};
|
|
391
|
+
}, 5565: function(i) {
|
|
392
|
+
var p = TypeError;
|
|
393
|
+
i.exports = function(t) {
|
|
394
|
+
if (t > 9007199254740991)
|
|
395
|
+
throw p("Maximum allowed index exceeded");
|
|
396
|
+
return t;
|
|
397
|
+
};
|
|
398
|
+
}, 6338: function(i) {
|
|
399
|
+
i.exports = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, TextTrackList: 0, TouchList: 0 };
|
|
400
|
+
}, 3265: function(i, p, t) {
|
|
401
|
+
var e = t(6420)("span").classList, n = e && e.constructor && e.constructor.prototype;
|
|
402
|
+
i.exports = n === Object.prototype ? void 0 : n;
|
|
403
|
+
}, 7365: function(i, p, t) {
|
|
404
|
+
var e = t(71).match(/firefox\/(\d+)/i);
|
|
405
|
+
i.exports = !!e && +e[1];
|
|
406
|
+
}, 7298: function(i, p, t) {
|
|
407
|
+
var e = t(71);
|
|
408
|
+
i.exports = /MSIE|Trident/.test(e);
|
|
409
|
+
}, 806: function(i, p, t) {
|
|
410
|
+
var e = t(9037), n = t(6648);
|
|
411
|
+
i.exports = n(e.process) === "process";
|
|
412
|
+
}, 71: function(i) {
|
|
413
|
+
i.exports = typeof navigator < "u" && String(navigator.userAgent) || "";
|
|
414
|
+
}, 3615: function(i, p, t) {
|
|
415
|
+
var e, n, r = t(9037), a = t(71), u = r.process, c = r.Deno, l = u && u.versions || c && c.version, h = l && l.v8;
|
|
416
|
+
h && (n = (e = h.split("."))[0] > 0 && e[0] < 4 ? 1 : +(e[0] + e[1])), !n && a && (!(e = a.match(/Edge\/(\d+)/)) || e[1] >= 74) && (e = a.match(/Chrome\/(\d+)/)) && (n = +e[1]), i.exports = n;
|
|
417
|
+
}, 7922: function(i, p, t) {
|
|
418
|
+
var e = t(71).match(/AppleWebKit\/(\d+)\./);
|
|
419
|
+
i.exports = !!e && +e[1];
|
|
420
|
+
}, 2739: function(i) {
|
|
421
|
+
i.exports = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"];
|
|
422
|
+
}, 9989: function(i, p, t) {
|
|
423
|
+
var e = t(9037), n = t(2474).f, r = t(5773), a = t(1880), u = t(5014), c = t(8758), l = t(5266);
|
|
424
|
+
i.exports = function(h, g) {
|
|
425
|
+
var m, y, x, k, P, O = h.target, M = h.global, j = h.stat;
|
|
426
|
+
if (m = M ? e : j ? e[O] || u(O, {}) : (e[O] || {}).prototype)
|
|
427
|
+
for (y in g) {
|
|
428
|
+
if (k = g[y], x = h.dontCallGetSet ? (P = n(m, y)) && P.value : m[y], !l(M ? y : O + (j ? "." : "#") + y, h.forced) && x !== void 0) {
|
|
429
|
+
if (typeof k == typeof x)
|
|
430
|
+
continue;
|
|
431
|
+
c(k, x);
|
|
432
|
+
}
|
|
433
|
+
(h.sham || x && x.sham) && r(k, "sham", !0), a(m, y, k, h);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
}, 3689: function(i) {
|
|
437
|
+
i.exports = function(p) {
|
|
438
|
+
try {
|
|
439
|
+
return !!p();
|
|
440
|
+
} catch {
|
|
441
|
+
return !0;
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}, 8678: function(i, p, t) {
|
|
445
|
+
t(4043);
|
|
446
|
+
var e = t(6576), n = t(1880), r = t(6308), a = t(3689), u = t(4201), c = t(5773), l = u("species"), h = RegExp.prototype;
|
|
447
|
+
i.exports = function(g, m, y, x) {
|
|
448
|
+
var k = u(g), P = !a(function() {
|
|
449
|
+
var B = {};
|
|
450
|
+
return B[k] = function() {
|
|
451
|
+
return 7;
|
|
452
|
+
}, ""[g](B) !== 7;
|
|
453
|
+
}), O = P && !a(function() {
|
|
454
|
+
var B = !1, T = /a/;
|
|
455
|
+
return g === "split" && ((T = {}).constructor = {}, T.constructor[l] = function() {
|
|
456
|
+
return T;
|
|
457
|
+
}, T.flags = "", T[k] = /./[k]), T.exec = function() {
|
|
458
|
+
return B = !0, null;
|
|
459
|
+
}, T[k](""), !B;
|
|
460
|
+
});
|
|
461
|
+
if (!P || !O || y) {
|
|
462
|
+
var M = e(/./[k]), j = m(k, ""[g], function(B, T, _, R, K) {
|
|
463
|
+
var N = e(B), z = T.exec;
|
|
464
|
+
return z === r || z === h.exec ? P && !K ? { done: !0, value: M(T, _, R) } : { done: !0, value: N(_, T, R) } : { done: !1 };
|
|
465
|
+
});
|
|
466
|
+
n(String.prototype, g, j[0]), n(h, k, j[1]);
|
|
467
|
+
}
|
|
468
|
+
x && c(h[k], "sham", !0);
|
|
469
|
+
};
|
|
470
|
+
}, 1735: function(i, p, t) {
|
|
471
|
+
var e = t(7215), n = Function.prototype, r = n.apply, a = n.call;
|
|
472
|
+
i.exports = typeof Reflect == "object" && Reflect.apply || (e ? a.bind(r) : function() {
|
|
473
|
+
return a.apply(r, arguments);
|
|
474
|
+
});
|
|
475
|
+
}, 4071: function(i, p, t) {
|
|
476
|
+
var e = t(6576), n = t(509), r = t(7215), a = e(e.bind);
|
|
477
|
+
i.exports = function(u, c) {
|
|
478
|
+
return n(u), c === void 0 ? u : r ? a(u, c) : function() {
|
|
479
|
+
return u.apply(c, arguments);
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
}, 7215: function(i, p, t) {
|
|
483
|
+
var e = t(3689);
|
|
484
|
+
i.exports = !e(function() {
|
|
485
|
+
var n = function() {
|
|
486
|
+
}.bind();
|
|
487
|
+
return typeof n != "function" || n.hasOwnProperty("prototype");
|
|
488
|
+
});
|
|
489
|
+
}, 2615: function(i, p, t) {
|
|
490
|
+
var e = t(7215), n = Function.prototype.call;
|
|
491
|
+
i.exports = e ? n.bind(n) : function() {
|
|
492
|
+
return n.apply(n, arguments);
|
|
493
|
+
};
|
|
494
|
+
}, 1236: function(i, p, t) {
|
|
495
|
+
var e = t(7697), n = t(6812), r = Function.prototype, a = e && Object.getOwnPropertyDescriptor, u = n(r, "name"), c = u && function() {
|
|
496
|
+
}.name === "something", l = u && (!e || e && a(r, "name").configurable);
|
|
497
|
+
i.exports = { EXISTS: u, PROPER: c, CONFIGURABLE: l };
|
|
498
|
+
}, 2743: function(i, p, t) {
|
|
499
|
+
var e = t(8844), n = t(509);
|
|
500
|
+
i.exports = function(r, a, u) {
|
|
501
|
+
try {
|
|
502
|
+
return e(n(Object.getOwnPropertyDescriptor(r, a)[u]));
|
|
503
|
+
} catch {
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
}, 6576: function(i, p, t) {
|
|
507
|
+
var e = t(6648), n = t(8844);
|
|
508
|
+
i.exports = function(r) {
|
|
509
|
+
if (e(r) === "Function")
|
|
510
|
+
return n(r);
|
|
511
|
+
};
|
|
512
|
+
}, 8844: function(i, p, t) {
|
|
513
|
+
var e = t(7215), n = Function.prototype, r = n.call, a = e && n.bind.bind(r, r);
|
|
514
|
+
i.exports = e ? a : function(u) {
|
|
515
|
+
return function() {
|
|
516
|
+
return r.apply(u, arguments);
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
}, 6058: function(i, p, t) {
|
|
520
|
+
var e = t(9037), n = t(9985);
|
|
521
|
+
i.exports = function(r, a) {
|
|
522
|
+
return arguments.length < 2 ? (u = e[r], n(u) ? u : void 0) : e[r] && e[r][a];
|
|
523
|
+
var u;
|
|
524
|
+
};
|
|
525
|
+
}, 1664: function(i, p, t) {
|
|
526
|
+
var e = t(926), n = t(4849), r = t(981), a = t(9478), u = t(4201)("iterator");
|
|
527
|
+
i.exports = function(c) {
|
|
528
|
+
if (!r(c))
|
|
529
|
+
return n(c, u) || n(c, "@@iterator") || a[e(c)];
|
|
530
|
+
};
|
|
531
|
+
}, 5185: function(i, p, t) {
|
|
532
|
+
var e = t(2615), n = t(509), r = t(5027), a = t(3691), u = t(1664), c = TypeError;
|
|
533
|
+
i.exports = function(l, h) {
|
|
534
|
+
var g = arguments.length < 2 ? u(l) : h;
|
|
535
|
+
if (n(g))
|
|
536
|
+
return r(e(g, l));
|
|
537
|
+
throw new c(a(l) + " is not iterable");
|
|
538
|
+
};
|
|
539
|
+
}, 2643: function(i, p, t) {
|
|
540
|
+
var e = t(8844), n = t(2297), r = t(9985), a = t(6648), u = t(4327), c = e([].push);
|
|
541
|
+
i.exports = function(l) {
|
|
542
|
+
if (r(l))
|
|
543
|
+
return l;
|
|
544
|
+
if (n(l)) {
|
|
545
|
+
for (var h = l.length, g = [], m = 0; m < h; m++) {
|
|
546
|
+
var y = l[m];
|
|
547
|
+
typeof y == "string" ? c(g, y) : typeof y != "number" && a(y) !== "Number" && a(y) !== "String" || c(g, u(y));
|
|
548
|
+
}
|
|
549
|
+
var x = g.length, k = !0;
|
|
550
|
+
return function(P, O) {
|
|
551
|
+
if (k)
|
|
552
|
+
return k = !1, O;
|
|
553
|
+
if (n(this))
|
|
554
|
+
return O;
|
|
555
|
+
for (var M = 0; M < x; M++)
|
|
556
|
+
if (g[M] === P)
|
|
557
|
+
return O;
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
}, 4849: function(i, p, t) {
|
|
562
|
+
var e = t(509), n = t(981);
|
|
563
|
+
i.exports = function(r, a) {
|
|
564
|
+
var u = r[a];
|
|
565
|
+
return n(u) ? void 0 : e(u);
|
|
566
|
+
};
|
|
567
|
+
}, 7017: function(i, p, t) {
|
|
568
|
+
var e = t(8844), n = t(690), r = Math.floor, a = e("".charAt), u = e("".replace), c = e("".slice), l = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, h = /\$([$&'`]|\d{1,2})/g;
|
|
569
|
+
i.exports = function(g, m, y, x, k, P) {
|
|
570
|
+
var O = y + g.length, M = x.length, j = h;
|
|
571
|
+
return k !== void 0 && (k = n(k), j = l), u(P, j, function(B, T) {
|
|
572
|
+
var _;
|
|
573
|
+
switch (a(T, 0)) {
|
|
574
|
+
case "$":
|
|
575
|
+
return "$";
|
|
576
|
+
case "&":
|
|
577
|
+
return g;
|
|
578
|
+
case "`":
|
|
579
|
+
return c(m, 0, y);
|
|
580
|
+
case "'":
|
|
581
|
+
return c(m, O);
|
|
582
|
+
case "<":
|
|
583
|
+
_ = k[c(T, 1, -1)];
|
|
584
|
+
break;
|
|
585
|
+
default:
|
|
586
|
+
var R = +T;
|
|
587
|
+
if (R === 0)
|
|
588
|
+
return B;
|
|
589
|
+
if (R > M) {
|
|
590
|
+
var K = r(R / 10);
|
|
591
|
+
return K === 0 ? B : K <= M ? x[K - 1] === void 0 ? a(T, 1) : x[K - 1] + a(T, 1) : B;
|
|
592
|
+
}
|
|
593
|
+
_ = x[R - 1];
|
|
594
|
+
}
|
|
595
|
+
return _ === void 0 ? "" : _;
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
}, 9037: function(i, p, t) {
|
|
599
|
+
var e = function(n) {
|
|
600
|
+
return n && n.Math === Math && n;
|
|
601
|
+
};
|
|
602
|
+
i.exports = e(typeof globalThis == "object" && globalThis) || e(typeof window == "object" && window) || e(typeof self == "object" && self) || e(typeof t.g == "object" && t.g) || function() {
|
|
603
|
+
return this;
|
|
604
|
+
}() || this || Function("return this")();
|
|
605
|
+
}, 6812: function(i, p, t) {
|
|
606
|
+
var e = t(8844), n = t(690), r = e({}.hasOwnProperty);
|
|
607
|
+
i.exports = Object.hasOwn || function(a, u) {
|
|
608
|
+
return r(n(a), u);
|
|
609
|
+
};
|
|
610
|
+
}, 7248: function(i) {
|
|
611
|
+
i.exports = {};
|
|
612
|
+
}, 2688: function(i, p, t) {
|
|
613
|
+
var e = t(6058);
|
|
614
|
+
i.exports = e("document", "documentElement");
|
|
615
|
+
}, 8506: function(i, p, t) {
|
|
616
|
+
var e = t(7697), n = t(3689), r = t(6420);
|
|
617
|
+
i.exports = !e && !n(function() {
|
|
618
|
+
return Object.defineProperty(r("div"), "a", { get: function() {
|
|
619
|
+
return 7;
|
|
620
|
+
} }).a !== 7;
|
|
621
|
+
});
|
|
622
|
+
}, 4413: function(i, p, t) {
|
|
623
|
+
var e = t(8844), n = t(3689), r = t(6648), a = Object, u = e("".split);
|
|
624
|
+
i.exports = n(function() {
|
|
625
|
+
return !a("z").propertyIsEnumerable(0);
|
|
626
|
+
}) ? function(c) {
|
|
627
|
+
return r(c) === "String" ? u(c, "") : a(c);
|
|
628
|
+
} : a;
|
|
629
|
+
}, 3457: function(i, p, t) {
|
|
630
|
+
var e = t(9985), n = t(8999), r = t(9385);
|
|
631
|
+
i.exports = function(a, u, c) {
|
|
632
|
+
var l, h;
|
|
633
|
+
return r && e(l = u.constructor) && l !== c && n(h = l.prototype) && h !== c.prototype && r(a, h), a;
|
|
634
|
+
};
|
|
635
|
+
}, 6738: function(i, p, t) {
|
|
636
|
+
var e = t(8844), n = t(9985), r = t(4091), a = e(Function.toString);
|
|
637
|
+
n(r.inspectSource) || (r.inspectSource = function(u) {
|
|
638
|
+
return a(u);
|
|
639
|
+
}), i.exports = r.inspectSource;
|
|
640
|
+
}, 618: function(i, p, t) {
|
|
641
|
+
var e, n, r, a = t(9834), u = t(9037), c = t(8999), l = t(5773), h = t(6812), g = t(4091), m = t(2713), y = t(7248), x = "Object already initialized", k = u.TypeError, P = u.WeakMap;
|
|
642
|
+
if (a || g.state) {
|
|
643
|
+
var O = g.state || (g.state = new P());
|
|
644
|
+
O.get = O.get, O.has = O.has, O.set = O.set, e = function(j, B) {
|
|
645
|
+
if (O.has(j))
|
|
646
|
+
throw new k(x);
|
|
647
|
+
return B.facade = j, O.set(j, B), B;
|
|
648
|
+
}, n = function(j) {
|
|
649
|
+
return O.get(j) || {};
|
|
650
|
+
}, r = function(j) {
|
|
651
|
+
return O.has(j);
|
|
652
|
+
};
|
|
653
|
+
} else {
|
|
654
|
+
var M = m("state");
|
|
655
|
+
y[M] = !0, e = function(j, B) {
|
|
656
|
+
if (h(j, M))
|
|
657
|
+
throw new k(x);
|
|
658
|
+
return B.facade = j, l(j, M, B), B;
|
|
659
|
+
}, n = function(j) {
|
|
660
|
+
return h(j, M) ? j[M] : {};
|
|
661
|
+
}, r = function(j) {
|
|
662
|
+
return h(j, M);
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
i.exports = { set: e, get: n, has: r, enforce: function(j) {
|
|
666
|
+
return r(j) ? n(j) : e(j, {});
|
|
667
|
+
}, getterFor: function(j) {
|
|
668
|
+
return function(B) {
|
|
669
|
+
var T;
|
|
670
|
+
if (!c(B) || (T = n(B)).type !== j)
|
|
671
|
+
throw new k("Incompatible receiver, " + j + " required");
|
|
672
|
+
return T;
|
|
673
|
+
};
|
|
674
|
+
} };
|
|
675
|
+
}, 3292: function(i, p, t) {
|
|
676
|
+
var e = t(4201), n = t(9478), r = e("iterator"), a = Array.prototype;
|
|
677
|
+
i.exports = function(u) {
|
|
678
|
+
return u !== void 0 && (n.Array === u || a[r] === u);
|
|
679
|
+
};
|
|
680
|
+
}, 2297: function(i, p, t) {
|
|
681
|
+
var e = t(6648);
|
|
682
|
+
i.exports = Array.isArray || function(n) {
|
|
683
|
+
return e(n) === "Array";
|
|
684
|
+
};
|
|
685
|
+
}, 9985: function(i, p, t) {
|
|
686
|
+
var e = t(2659), n = e.all;
|
|
687
|
+
i.exports = e.IS_HTMLDDA ? function(r) {
|
|
688
|
+
return typeof r == "function" || r === n;
|
|
689
|
+
} : function(r) {
|
|
690
|
+
return typeof r == "function";
|
|
691
|
+
};
|
|
692
|
+
}, 9429: function(i, p, t) {
|
|
693
|
+
var e = t(8844), n = t(3689), r = t(9985), a = t(926), u = t(6058), c = t(6738), l = function() {
|
|
694
|
+
}, h = [], g = u("Reflect", "construct"), m = /^\s*(?:class|function)\b/, y = e(m.exec), x = !m.test(l), k = function(O) {
|
|
695
|
+
if (!r(O))
|
|
696
|
+
return !1;
|
|
697
|
+
try {
|
|
698
|
+
return g(l, h, O), !0;
|
|
699
|
+
} catch {
|
|
700
|
+
return !1;
|
|
701
|
+
}
|
|
702
|
+
}, P = function(O) {
|
|
703
|
+
if (!r(O))
|
|
704
|
+
return !1;
|
|
705
|
+
switch (a(O)) {
|
|
706
|
+
case "AsyncFunction":
|
|
707
|
+
case "GeneratorFunction":
|
|
708
|
+
case "AsyncGeneratorFunction":
|
|
709
|
+
return !1;
|
|
710
|
+
}
|
|
711
|
+
try {
|
|
712
|
+
return x || !!y(m, c(O));
|
|
713
|
+
} catch {
|
|
714
|
+
return !0;
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
P.sham = !0, i.exports = !g || n(function() {
|
|
718
|
+
var O;
|
|
719
|
+
return k(k.call) || !k(Object) || !k(function() {
|
|
720
|
+
O = !0;
|
|
721
|
+
}) || O;
|
|
722
|
+
}) ? P : k;
|
|
723
|
+
}, 5266: function(i, p, t) {
|
|
724
|
+
var e = t(3689), n = t(9985), r = /#|\.prototype\./, a = function(g, m) {
|
|
725
|
+
var y = c[u(g)];
|
|
726
|
+
return y === h || y !== l && (n(m) ? e(m) : !!m);
|
|
727
|
+
}, u = a.normalize = function(g) {
|
|
728
|
+
return String(g).replace(r, ".").toLowerCase();
|
|
729
|
+
}, c = a.data = {}, l = a.NATIVE = "N", h = a.POLYFILL = "P";
|
|
730
|
+
i.exports = a;
|
|
731
|
+
}, 1973: function(i, p, t) {
|
|
732
|
+
var e = t(8999), n = Math.floor;
|
|
733
|
+
i.exports = Number.isInteger || function(r) {
|
|
734
|
+
return !e(r) && isFinite(r) && n(r) === r;
|
|
735
|
+
};
|
|
736
|
+
}, 981: function(i) {
|
|
737
|
+
i.exports = function(p) {
|
|
738
|
+
return p == null;
|
|
739
|
+
};
|
|
740
|
+
}, 8999: function(i, p, t) {
|
|
741
|
+
var e = t(9985), n = t(2659), r = n.all;
|
|
742
|
+
i.exports = n.IS_HTMLDDA ? function(a) {
|
|
743
|
+
return typeof a == "object" ? a !== null : e(a) || a === r;
|
|
744
|
+
} : function(a) {
|
|
745
|
+
return typeof a == "object" ? a !== null : e(a);
|
|
746
|
+
};
|
|
747
|
+
}, 3931: function(i) {
|
|
748
|
+
i.exports = !1;
|
|
749
|
+
}, 1245: function(i, p, t) {
|
|
750
|
+
var e = t(8999), n = t(6648), r = t(4201)("match");
|
|
751
|
+
i.exports = function(a) {
|
|
752
|
+
var u;
|
|
753
|
+
return e(a) && ((u = a[r]) !== void 0 ? !!u : n(a) === "RegExp");
|
|
754
|
+
};
|
|
755
|
+
}, 734: function(i, p, t) {
|
|
756
|
+
var e = t(6058), n = t(9985), r = t(3622), a = t(9525), u = Object;
|
|
757
|
+
i.exports = a ? function(c) {
|
|
758
|
+
return typeof c == "symbol";
|
|
759
|
+
} : function(c) {
|
|
760
|
+
var l = e("Symbol");
|
|
761
|
+
return n(l) && r(l.prototype, u(c));
|
|
762
|
+
};
|
|
763
|
+
}, 2125: function(i, p, t) {
|
|
764
|
+
var e = t(2615), n = t(5027), r = t(4849);
|
|
765
|
+
i.exports = function(a, u, c) {
|
|
766
|
+
var l, h;
|
|
767
|
+
n(a);
|
|
768
|
+
try {
|
|
769
|
+
if (!(l = r(a, "return"))) {
|
|
770
|
+
if (u === "throw")
|
|
771
|
+
throw c;
|
|
772
|
+
return c;
|
|
773
|
+
}
|
|
774
|
+
l = e(l, a);
|
|
775
|
+
} catch (g) {
|
|
776
|
+
h = !0, l = g;
|
|
777
|
+
}
|
|
778
|
+
if (u === "throw")
|
|
779
|
+
throw c;
|
|
780
|
+
if (h)
|
|
781
|
+
throw l;
|
|
782
|
+
return n(l), c;
|
|
783
|
+
};
|
|
784
|
+
}, 974: function(i, p, t) {
|
|
785
|
+
var e = t(2013).IteratorPrototype, n = t(5391), r = t(5684), a = t(5997), u = t(9478), c = function() {
|
|
786
|
+
return this;
|
|
787
|
+
};
|
|
788
|
+
i.exports = function(l, h, g, m) {
|
|
789
|
+
var y = h + " Iterator";
|
|
790
|
+
return l.prototype = n(e, { next: r(+!m, g) }), a(l, y, !1, !0), u[y] = c, l;
|
|
791
|
+
};
|
|
792
|
+
}, 1934: function(i, p, t) {
|
|
793
|
+
var e = t(9989), n = t(2615), r = t(3931), a = t(1236), u = t(9985), c = t(974), l = t(1868), h = t(9385), g = t(5997), m = t(5773), y = t(1880), x = t(4201), k = t(9478), P = t(2013), O = a.PROPER, M = a.CONFIGURABLE, j = P.IteratorPrototype, B = P.BUGGY_SAFARI_ITERATORS, T = x("iterator"), _ = "keys", R = "values", K = "entries", N = function() {
|
|
794
|
+
return this;
|
|
795
|
+
};
|
|
796
|
+
i.exports = function(z, U, Y, G, w, v, S) {
|
|
797
|
+
c(Y, U, G);
|
|
798
|
+
var o, s, d, f = function(A) {
|
|
799
|
+
if (A === w && C)
|
|
800
|
+
return C;
|
|
801
|
+
if (!B && A && A in I)
|
|
802
|
+
return I[A];
|
|
803
|
+
switch (A) {
|
|
804
|
+
case _:
|
|
805
|
+
case R:
|
|
806
|
+
case K:
|
|
807
|
+
return function() {
|
|
808
|
+
return new Y(this, A);
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
return function() {
|
|
812
|
+
return new Y(this);
|
|
813
|
+
};
|
|
814
|
+
}, b = U + " Iterator", D = !1, I = z.prototype, E = I[T] || I["@@iterator"] || w && I[w], C = !B && E || f(w), $ = U === "Array" && I.entries || E;
|
|
815
|
+
if ($ && (o = l($.call(new z()))) !== Object.prototype && o.next && (r || l(o) === j || (h ? h(o, j) : u(o[T]) || y(o, T, N)), g(o, b, !0, !0), r && (k[b] = N)), O && w === R && E && E.name !== R && (!r && M ? m(I, "name", R) : (D = !0, C = function() {
|
|
816
|
+
return n(E, this);
|
|
817
|
+
})), w)
|
|
818
|
+
if (s = { values: f(R), keys: v ? C : f(_), entries: f(K) }, S)
|
|
819
|
+
for (d in s)
|
|
820
|
+
(B || D || !(d in I)) && y(I, d, s[d]);
|
|
821
|
+
else
|
|
822
|
+
e({ target: U, proto: !0, forced: B || D }, s);
|
|
823
|
+
return r && !S || I[T] === C || y(I, T, C, { name: w }), k[U] = C, s;
|
|
824
|
+
};
|
|
825
|
+
}, 2013: function(i, p, t) {
|
|
826
|
+
var e, n, r, a = t(3689), u = t(9985), c = t(8999), l = t(5391), h = t(1868), g = t(1880), m = t(4201), y = t(3931), x = m("iterator"), k = !1;
|
|
827
|
+
[].keys && ("next" in (r = [].keys()) ? (n = h(h(r))) !== Object.prototype && (e = n) : k = !0), !c(e) || a(function() {
|
|
828
|
+
var P = {};
|
|
829
|
+
return e[x].call(P) !== P;
|
|
830
|
+
}) ? e = {} : y && (e = l(e)), u(e[x]) || g(e, x, function() {
|
|
831
|
+
return this;
|
|
832
|
+
}), i.exports = { IteratorPrototype: e, BUGGY_SAFARI_ITERATORS: k };
|
|
833
|
+
}, 9478: function(i) {
|
|
834
|
+
i.exports = {};
|
|
835
|
+
}, 6310: function(i, p, t) {
|
|
836
|
+
var e = t(3126);
|
|
837
|
+
i.exports = function(n) {
|
|
838
|
+
return e(n.length);
|
|
839
|
+
};
|
|
840
|
+
}, 8702: function(i, p, t) {
|
|
841
|
+
var e = t(8844), n = t(3689), r = t(9985), a = t(6812), u = t(7697), c = t(1236).CONFIGURABLE, l = t(6738), h = t(618), g = h.enforce, m = h.get, y = String, x = Object.defineProperty, k = e("".slice), P = e("".replace), O = e([].join), M = u && !n(function() {
|
|
842
|
+
return x(function() {
|
|
843
|
+
}, "length", { value: 8 }).length !== 8;
|
|
844
|
+
}), j = String(String).split("String"), B = i.exports = function(T, _, R) {
|
|
845
|
+
k(y(_), 0, 7) === "Symbol(" && (_ = "[" + P(y(_), /^Symbol\(([^)]*)\)/, "$1") + "]"), R && R.getter && (_ = "get " + _), R && R.setter && (_ = "set " + _), (!a(T, "name") || c && T.name !== _) && (u ? x(T, "name", { value: _, configurable: !0 }) : T.name = _), M && R && a(R, "arity") && T.length !== R.arity && x(T, "length", { value: R.arity });
|
|
846
|
+
try {
|
|
847
|
+
R && a(R, "constructor") && R.constructor ? u && x(T, "prototype", { writable: !1 }) : T.prototype && (T.prototype = void 0);
|
|
848
|
+
} catch {
|
|
849
|
+
}
|
|
850
|
+
var K = g(T);
|
|
851
|
+
return a(K, "source") || (K.source = O(j, typeof _ == "string" ? _ : "")), T;
|
|
852
|
+
};
|
|
853
|
+
Function.prototype.toString = B(function() {
|
|
854
|
+
return r(this) && m(this).source || l(this);
|
|
855
|
+
}, "toString");
|
|
856
|
+
}, 8828: function(i) {
|
|
857
|
+
var p = Math.ceil, t = Math.floor;
|
|
858
|
+
i.exports = Math.trunc || function(e) {
|
|
859
|
+
var n = +e;
|
|
860
|
+
return (n > 0 ? t : p)(n);
|
|
861
|
+
};
|
|
862
|
+
}, 2124: function(i, p, t) {
|
|
863
|
+
var e = t(1245), n = TypeError;
|
|
864
|
+
i.exports = function(r) {
|
|
865
|
+
if (e(r))
|
|
866
|
+
throw new n("The method doesn't accept regular expressions");
|
|
867
|
+
return r;
|
|
868
|
+
};
|
|
869
|
+
}, 5394: function(i, p, t) {
|
|
870
|
+
var e = t(7697), n = t(8844), r = t(2615), a = t(3689), u = t(300), c = t(7518), l = t(9556), h = t(690), g = t(4413), m = Object.assign, y = Object.defineProperty, x = n([].concat);
|
|
871
|
+
i.exports = !m || a(function() {
|
|
872
|
+
if (e && m({ b: 1 }, m(y({}, "a", { enumerable: !0, get: function() {
|
|
873
|
+
y(this, "b", { value: 3, enumerable: !1 });
|
|
874
|
+
} }), { b: 2 })).b !== 1)
|
|
875
|
+
return !0;
|
|
876
|
+
var k = {}, P = {}, O = Symbol("assign detection"), M = "abcdefghijklmnopqrst";
|
|
877
|
+
return k[O] = 7, M.split("").forEach(function(j) {
|
|
878
|
+
P[j] = j;
|
|
879
|
+
}), m({}, k)[O] !== 7 || u(m({}, P)).join("") !== M;
|
|
880
|
+
}) ? function(k, P) {
|
|
881
|
+
for (var O = h(k), M = arguments.length, j = 1, B = c.f, T = l.f; M > j; )
|
|
882
|
+
for (var _, R = g(arguments[j++]), K = B ? x(u(R), B(R)) : u(R), N = K.length, z = 0; N > z; )
|
|
883
|
+
_ = K[z++], e && !r(T, R, _) || (O[_] = R[_]);
|
|
884
|
+
return O;
|
|
885
|
+
} : m;
|
|
886
|
+
}, 5391: function(i, p, t) {
|
|
887
|
+
var e, n = t(5027), r = t(8920), a = t(2739), u = t(7248), c = t(2688), l = t(6420), h = t(2713), g = "prototype", m = "script", y = h("IE_PROTO"), x = function() {
|
|
888
|
+
}, k = function(M) {
|
|
889
|
+
return "<" + m + ">" + M + "</" + m + ">";
|
|
890
|
+
}, P = function(M) {
|
|
891
|
+
M.write(k("")), M.close();
|
|
892
|
+
var j = M.parentWindow.Object;
|
|
893
|
+
return M = null, j;
|
|
894
|
+
}, O = function() {
|
|
895
|
+
try {
|
|
896
|
+
e = new ActiveXObject("htmlfile");
|
|
897
|
+
} catch {
|
|
898
|
+
}
|
|
899
|
+
var M, j, B;
|
|
900
|
+
O = typeof document < "u" ? document.domain && e ? P(e) : (j = l("iframe"), B = "java" + m + ":", j.style.display = "none", c.appendChild(j), j.src = String(B), (M = j.contentWindow.document).open(), M.write(k("document.F=Object")), M.close(), M.F) : P(e);
|
|
901
|
+
for (var T = a.length; T--; )
|
|
902
|
+
delete O[g][a[T]];
|
|
903
|
+
return O();
|
|
904
|
+
};
|
|
905
|
+
u[y] = !0, i.exports = Object.create || function(M, j) {
|
|
906
|
+
var B;
|
|
907
|
+
return M !== null ? (x[g] = n(M), B = new x(), x[g] = null, B[y] = M) : B = O(), j === void 0 ? B : r.f(B, j);
|
|
908
|
+
};
|
|
909
|
+
}, 8920: function(i, p, t) {
|
|
910
|
+
var e = t(7697), n = t(5648), r = t(2560), a = t(5027), u = t(5290), c = t(300);
|
|
911
|
+
p.f = e && !n ? Object.defineProperties : function(l, h) {
|
|
912
|
+
a(l);
|
|
913
|
+
for (var g, m = u(h), y = c(h), x = y.length, k = 0; x > k; )
|
|
914
|
+
r.f(l, g = y[k++], m[g]);
|
|
915
|
+
return l;
|
|
916
|
+
};
|
|
917
|
+
}, 2560: function(i, p, t) {
|
|
918
|
+
var e = t(7697), n = t(8506), r = t(5648), a = t(5027), u = t(8360), c = TypeError, l = Object.defineProperty, h = Object.getOwnPropertyDescriptor, g = "enumerable", m = "configurable", y = "writable";
|
|
919
|
+
p.f = e ? r ? function(x, k, P) {
|
|
920
|
+
if (a(x), k = u(k), a(P), typeof x == "function" && k === "prototype" && "value" in P && y in P && !P[y]) {
|
|
921
|
+
var O = h(x, k);
|
|
922
|
+
O && O[y] && (x[k] = P.value, P = { configurable: m in P ? P[m] : O[m], enumerable: g in P ? P[g] : O[g], writable: !1 });
|
|
923
|
+
}
|
|
924
|
+
return l(x, k, P);
|
|
925
|
+
} : l : function(x, k, P) {
|
|
926
|
+
if (a(x), k = u(k), a(P), n)
|
|
927
|
+
try {
|
|
928
|
+
return l(x, k, P);
|
|
929
|
+
} catch {
|
|
930
|
+
}
|
|
931
|
+
if ("get" in P || "set" in P)
|
|
932
|
+
throw new c("Accessors not supported");
|
|
933
|
+
return "value" in P && (x[k] = P.value), x;
|
|
934
|
+
};
|
|
935
|
+
}, 2474: function(i, p, t) {
|
|
936
|
+
var e = t(7697), n = t(2615), r = t(9556), a = t(5684), u = t(5290), c = t(8360), l = t(6812), h = t(8506), g = Object.getOwnPropertyDescriptor;
|
|
937
|
+
p.f = e ? g : function(m, y) {
|
|
938
|
+
if (m = u(m), y = c(y), h)
|
|
939
|
+
try {
|
|
940
|
+
return g(m, y);
|
|
941
|
+
} catch {
|
|
942
|
+
}
|
|
943
|
+
if (l(m, y))
|
|
944
|
+
return a(!n(r.f, m, y), m[y]);
|
|
945
|
+
};
|
|
946
|
+
}, 6062: function(i, p, t) {
|
|
947
|
+
var e = t(6648), n = t(5290), r = t(2741).f, a = t(9015), u = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
948
|
+
i.exports.f = function(c) {
|
|
949
|
+
return u && e(c) === "Window" ? function(l) {
|
|
950
|
+
try {
|
|
951
|
+
return r(l);
|
|
952
|
+
} catch {
|
|
953
|
+
return a(u);
|
|
954
|
+
}
|
|
955
|
+
}(c) : r(n(c));
|
|
956
|
+
};
|
|
957
|
+
}, 2741: function(i, p, t) {
|
|
958
|
+
var e = t(4948), n = t(2739).concat("length", "prototype");
|
|
959
|
+
p.f = Object.getOwnPropertyNames || function(r) {
|
|
960
|
+
return e(r, n);
|
|
961
|
+
};
|
|
962
|
+
}, 7518: function(i, p) {
|
|
963
|
+
p.f = Object.getOwnPropertySymbols;
|
|
964
|
+
}, 1868: function(i, p, t) {
|
|
965
|
+
var e = t(6812), n = t(9985), r = t(690), a = t(2713), u = t(1748), c = a("IE_PROTO"), l = Object, h = l.prototype;
|
|
966
|
+
i.exports = u ? l.getPrototypeOf : function(g) {
|
|
967
|
+
var m = r(g);
|
|
968
|
+
if (e(m, c))
|
|
969
|
+
return m[c];
|
|
970
|
+
var y = m.constructor;
|
|
971
|
+
return n(y) && m instanceof y ? y.prototype : m instanceof l ? h : null;
|
|
972
|
+
};
|
|
973
|
+
}, 3622: function(i, p, t) {
|
|
974
|
+
var e = t(8844);
|
|
975
|
+
i.exports = e({}.isPrototypeOf);
|
|
976
|
+
}, 4948: function(i, p, t) {
|
|
977
|
+
var e = t(8844), n = t(6812), r = t(5290), a = t(4328).indexOf, u = t(7248), c = e([].push);
|
|
978
|
+
i.exports = function(l, h) {
|
|
979
|
+
var g, m = r(l), y = 0, x = [];
|
|
980
|
+
for (g in m)
|
|
981
|
+
!n(u, g) && n(m, g) && c(x, g);
|
|
982
|
+
for (; h.length > y; )
|
|
983
|
+
n(m, g = h[y++]) && (~a(x, g) || c(x, g));
|
|
984
|
+
return x;
|
|
985
|
+
};
|
|
986
|
+
}, 300: function(i, p, t) {
|
|
987
|
+
var e = t(4948), n = t(2739);
|
|
988
|
+
i.exports = Object.keys || function(r) {
|
|
989
|
+
return e(r, n);
|
|
990
|
+
};
|
|
991
|
+
}, 9556: function(i, p) {
|
|
992
|
+
var t = {}.propertyIsEnumerable, e = Object.getOwnPropertyDescriptor, n = e && !t.call({ 1: 2 }, 1);
|
|
993
|
+
p.f = n ? function(r) {
|
|
994
|
+
var a = e(this, r);
|
|
995
|
+
return !!a && a.enumerable;
|
|
996
|
+
} : t;
|
|
997
|
+
}, 600: function(i, p, t) {
|
|
998
|
+
var e = t(3931), n = t(9037), r = t(3689), a = t(7922);
|
|
999
|
+
i.exports = e || !r(function() {
|
|
1000
|
+
if (!(a && a < 535)) {
|
|
1001
|
+
var u = Math.random();
|
|
1002
|
+
__defineSetter__.call(null, u, function() {
|
|
1003
|
+
}), delete n[u];
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
}, 9385: function(i, p, t) {
|
|
1007
|
+
var e = t(2743), n = t(5027), r = t(3550);
|
|
1008
|
+
i.exports = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
1009
|
+
var a, u = !1, c = {};
|
|
1010
|
+
try {
|
|
1011
|
+
(a = e(Object.prototype, "__proto__", "set"))(c, []), u = c instanceof Array;
|
|
1012
|
+
} catch {
|
|
1013
|
+
}
|
|
1014
|
+
return function(l, h) {
|
|
1015
|
+
return n(l), r(h), u ? a(l, h) : l.__proto__ = h, l;
|
|
1016
|
+
};
|
|
1017
|
+
}() : void 0);
|
|
1018
|
+
}, 5073: function(i, p, t) {
|
|
1019
|
+
var e = t(3043), n = t(926);
|
|
1020
|
+
i.exports = e ? {}.toString : function() {
|
|
1021
|
+
return "[object " + n(this) + "]";
|
|
1022
|
+
};
|
|
1023
|
+
}, 5899: function(i, p, t) {
|
|
1024
|
+
var e = t(2615), n = t(9985), r = t(8999), a = TypeError;
|
|
1025
|
+
i.exports = function(u, c) {
|
|
1026
|
+
var l, h;
|
|
1027
|
+
if (c === "string" && n(l = u.toString) && !r(h = e(l, u)) || n(l = u.valueOf) && !r(h = e(l, u)) || c !== "string" && n(l = u.toString) && !r(h = e(l, u)))
|
|
1028
|
+
return h;
|
|
1029
|
+
throw new a("Can't convert object to primitive value");
|
|
1030
|
+
};
|
|
1031
|
+
}, 9152: function(i, p, t) {
|
|
1032
|
+
var e = t(6058), n = t(8844), r = t(2741), a = t(7518), u = t(5027), c = n([].concat);
|
|
1033
|
+
i.exports = e("Reflect", "ownKeys") || function(l) {
|
|
1034
|
+
var h = r.f(u(l)), g = a.f;
|
|
1035
|
+
return g ? c(h, g(l)) : h;
|
|
1036
|
+
};
|
|
1037
|
+
}, 496: function(i, p, t) {
|
|
1038
|
+
var e = t(9037);
|
|
1039
|
+
i.exports = e;
|
|
1040
|
+
}, 8055: function(i, p, t) {
|
|
1041
|
+
var e = t(2560).f;
|
|
1042
|
+
i.exports = function(n, r, a) {
|
|
1043
|
+
a in n || e(n, a, { configurable: !0, get: function() {
|
|
1044
|
+
return r[a];
|
|
1045
|
+
}, set: function(u) {
|
|
1046
|
+
r[a] = u;
|
|
1047
|
+
} });
|
|
1048
|
+
};
|
|
1049
|
+
}, 6100: function(i, p, t) {
|
|
1050
|
+
var e = t(2615), n = t(5027), r = t(9985), a = t(6648), u = t(6308), c = TypeError;
|
|
1051
|
+
i.exports = function(l, h) {
|
|
1052
|
+
var g = l.exec;
|
|
1053
|
+
if (r(g)) {
|
|
1054
|
+
var m = e(g, l, h);
|
|
1055
|
+
return m !== null && n(m), m;
|
|
1056
|
+
}
|
|
1057
|
+
if (a(l) === "RegExp")
|
|
1058
|
+
return e(u, l, h);
|
|
1059
|
+
throw new c("RegExp#exec called on incompatible receiver");
|
|
1060
|
+
};
|
|
1061
|
+
}, 6308: function(i, p, t) {
|
|
1062
|
+
var e, n, r = t(2615), a = t(8844), u = t(4327), c = t(9633), l = t(7901), h = t(3430), g = t(5391), m = t(618).get, y = t(2100), x = t(6422), k = h("native-string-replace", String.prototype.replace), P = RegExp.prototype.exec, O = P, M = a("".charAt), j = a("".indexOf), B = a("".replace), T = a("".slice), _ = (n = /b*/g, r(P, e = /a/, "a"), r(P, n, "a"), e.lastIndex !== 0 || n.lastIndex !== 0), R = l.BROKEN_CARET, K = /()??/.exec("")[1] !== void 0;
|
|
1063
|
+
(_ || K || R || y || x) && (O = function(N) {
|
|
1064
|
+
var z, U, Y, G, w, v, S, o = this, s = m(o), d = u(N), f = s.raw;
|
|
1065
|
+
if (f)
|
|
1066
|
+
return f.lastIndex = o.lastIndex, z = r(O, f, d), o.lastIndex = f.lastIndex, z;
|
|
1067
|
+
var b = s.groups, D = R && o.sticky, I = r(c, o), E = o.source, C = 0, $ = d;
|
|
1068
|
+
if (D && (I = B(I, "y", ""), j(I, "g") === -1 && (I += "g"), $ = T(d, o.lastIndex), o.lastIndex > 0 && (!o.multiline || o.multiline && M(d, o.lastIndex - 1) !== `
|
|
1069
|
+
`) && (E = "(?: " + E + ")", $ = " " + $, C++), U = new RegExp("^(?:" + E + ")", I)), K && (U = new RegExp("^" + E + "$(?!\\s)", I)), _ && (Y = o.lastIndex), G = r(P, D ? U : o, $), D ? G ? (G.input = T(G.input, C), G[0] = T(G[0], C), G.index = o.lastIndex, o.lastIndex += G[0].length) : o.lastIndex = 0 : _ && G && (o.lastIndex = o.global ? G.index + G[0].length : Y), K && G && G.length > 1 && r(k, G[0], U, function() {
|
|
1070
|
+
for (w = 1; w < arguments.length - 2; w++)
|
|
1071
|
+
arguments[w] === void 0 && (G[w] = void 0);
|
|
1072
|
+
}), G && b)
|
|
1073
|
+
for (G.groups = v = g(null), w = 0; w < b.length; w++)
|
|
1074
|
+
v[(S = b[w])[0]] = G[S[1]];
|
|
1075
|
+
return G;
|
|
1076
|
+
}), i.exports = O;
|
|
1077
|
+
}, 9633: function(i, p, t) {
|
|
1078
|
+
var e = t(5027);
|
|
1079
|
+
i.exports = function() {
|
|
1080
|
+
var n = e(this), r = "";
|
|
1081
|
+
return n.hasIndices && (r += "d"), n.global && (r += "g"), n.ignoreCase && (r += "i"), n.multiline && (r += "m"), n.dotAll && (r += "s"), n.unicode && (r += "u"), n.unicodeSets && (r += "v"), n.sticky && (r += "y"), r;
|
|
1082
|
+
};
|
|
1083
|
+
}, 3477: function(i, p, t) {
|
|
1084
|
+
var e = t(2615), n = t(6812), r = t(3622), a = t(9633), u = RegExp.prototype;
|
|
1085
|
+
i.exports = function(c) {
|
|
1086
|
+
var l = c.flags;
|
|
1087
|
+
return l !== void 0 || "flags" in u || n(c, "flags") || !r(u, c) ? l : e(a, c);
|
|
1088
|
+
};
|
|
1089
|
+
}, 7901: function(i, p, t) {
|
|
1090
|
+
var e = t(3689), n = t(9037).RegExp, r = e(function() {
|
|
1091
|
+
var c = n("a", "y");
|
|
1092
|
+
return c.lastIndex = 2, c.exec("abcd") !== null;
|
|
1093
|
+
}), a = r || e(function() {
|
|
1094
|
+
return !n("a", "y").sticky;
|
|
1095
|
+
}), u = r || e(function() {
|
|
1096
|
+
var c = n("^r", "gy");
|
|
1097
|
+
return c.lastIndex = 2, c.exec("str") !== null;
|
|
1098
|
+
});
|
|
1099
|
+
i.exports = { BROKEN_CARET: u, MISSED_STICKY: a, UNSUPPORTED_Y: r };
|
|
1100
|
+
}, 2100: function(i, p, t) {
|
|
1101
|
+
var e = t(3689), n = t(9037).RegExp;
|
|
1102
|
+
i.exports = e(function() {
|
|
1103
|
+
var r = n(".", "s");
|
|
1104
|
+
return !(r.dotAll && r.test(`
|
|
1105
|
+
`) && r.flags === "s");
|
|
1106
|
+
});
|
|
1107
|
+
}, 6422: function(i, p, t) {
|
|
1108
|
+
var e = t(3689), n = t(9037).RegExp;
|
|
1109
|
+
i.exports = e(function() {
|
|
1110
|
+
var r = n("(?<a>b)", "g");
|
|
1111
|
+
return r.exec("b").groups.a !== "b" || "b".replace(r, "$<a>c") !== "bc";
|
|
1112
|
+
});
|
|
1113
|
+
}, 4684: function(i, p, t) {
|
|
1114
|
+
var e = t(981), n = TypeError;
|
|
1115
|
+
i.exports = function(r) {
|
|
1116
|
+
if (e(r))
|
|
1117
|
+
throw new n("Can't call method on " + r);
|
|
1118
|
+
return r;
|
|
1119
|
+
};
|
|
1120
|
+
}, 4241: function(i, p, t) {
|
|
1121
|
+
var e = t(6058), n = t(2148), r = t(4201), a = t(7697), u = r("species");
|
|
1122
|
+
i.exports = function(c) {
|
|
1123
|
+
var l = e(c);
|
|
1124
|
+
a && l && !l[u] && n(l, u, { configurable: !0, get: function() {
|
|
1125
|
+
return this;
|
|
1126
|
+
} });
|
|
1127
|
+
};
|
|
1128
|
+
}, 5997: function(i, p, t) {
|
|
1129
|
+
var e = t(2560).f, n = t(6812), r = t(4201)("toStringTag");
|
|
1130
|
+
i.exports = function(a, u, c) {
|
|
1131
|
+
a && !c && (a = a.prototype), a && !n(a, r) && e(a, r, { configurable: !0, value: u });
|
|
1132
|
+
};
|
|
1133
|
+
}, 2713: function(i, p, t) {
|
|
1134
|
+
var e = t(3430), n = t(4630), r = e("keys");
|
|
1135
|
+
i.exports = function(a) {
|
|
1136
|
+
return r[a] || (r[a] = n(a));
|
|
1137
|
+
};
|
|
1138
|
+
}, 4091: function(i, p, t) {
|
|
1139
|
+
var e = t(9037), n = t(5014), r = "__core-js_shared__", a = e[r] || n(r, {});
|
|
1140
|
+
i.exports = a;
|
|
1141
|
+
}, 3430: function(i, p, t) {
|
|
1142
|
+
var e = t(3931), n = t(4091);
|
|
1143
|
+
(i.exports = function(r, a) {
|
|
1144
|
+
return n[r] || (n[r] = a !== void 0 ? a : {});
|
|
1145
|
+
})("versions", []).push({ version: "3.33.2", mode: e ? "pure" : "global", copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", license: "https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE", source: "https://github.com/zloirock/core-js" });
|
|
1146
|
+
}, 6373: function(i, p, t) {
|
|
1147
|
+
var e = t(5027), n = t(2655), r = t(981), a = t(4201)("species");
|
|
1148
|
+
i.exports = function(u, c) {
|
|
1149
|
+
var l, h = e(u).constructor;
|
|
1150
|
+
return h === void 0 || r(l = e(h)[a]) ? c : n(l);
|
|
1151
|
+
};
|
|
1152
|
+
}, 730: function(i, p, t) {
|
|
1153
|
+
var e = t(8844), n = t(8700), r = t(4327), a = t(4684), u = e("".charAt), c = e("".charCodeAt), l = e("".slice), h = function(g) {
|
|
1154
|
+
return function(m, y) {
|
|
1155
|
+
var x, k, P = r(a(m)), O = n(y), M = P.length;
|
|
1156
|
+
return O < 0 || O >= M ? g ? "" : void 0 : (x = c(P, O)) < 55296 || x > 56319 || O + 1 === M || (k = c(P, O + 1)) < 56320 || k > 57343 ? g ? u(P, O) : x : g ? l(P, O, O + 2) : k - 56320 + (x - 55296 << 10) + 65536;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
i.exports = { codeAt: h(!1), charAt: h(!0) };
|
|
1160
|
+
}, 5984: function(i, p, t) {
|
|
1161
|
+
var e = t(1236).PROPER, n = t(3689), r = t(6350);
|
|
1162
|
+
i.exports = function(a) {
|
|
1163
|
+
return n(function() {
|
|
1164
|
+
return !!r[a]() || "
"[a]() !== "
" || e && r[a].name !== a;
|
|
1165
|
+
});
|
|
1166
|
+
};
|
|
1167
|
+
}, 1435: function(i, p, t) {
|
|
1168
|
+
var e = t(8844), n = t(4684), r = t(4327), a = t(6350), u = e("".replace), c = RegExp("^[" + a + "]+"), l = RegExp("(^|[^" + a + "])[" + a + "]+$"), h = function(g) {
|
|
1169
|
+
return function(m) {
|
|
1170
|
+
var y = r(n(m));
|
|
1171
|
+
return 1 & g && (y = u(y, c, "")), 2 & g && (y = u(y, l, "$1")), y;
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
i.exports = { start: h(1), end: h(2), trim: h(3) };
|
|
1175
|
+
}, 146: function(i, p, t) {
|
|
1176
|
+
var e = t(3615), n = t(3689), r = t(9037).String;
|
|
1177
|
+
i.exports = !!Object.getOwnPropertySymbols && !n(function() {
|
|
1178
|
+
var a = Symbol("symbol detection");
|
|
1179
|
+
return !r(a) || !(Object(a) instanceof Symbol) || !Symbol.sham && e && e < 41;
|
|
1180
|
+
});
|
|
1181
|
+
}, 3032: function(i, p, t) {
|
|
1182
|
+
var e = t(2615), n = t(6058), r = t(4201), a = t(1880);
|
|
1183
|
+
i.exports = function() {
|
|
1184
|
+
var u = n("Symbol"), c = u && u.prototype, l = c && c.valueOf, h = r("toPrimitive");
|
|
1185
|
+
c && !c[h] && a(c, h, function(g) {
|
|
1186
|
+
return e(l, this);
|
|
1187
|
+
}, { arity: 1 });
|
|
1188
|
+
};
|
|
1189
|
+
}, 6549: function(i, p, t) {
|
|
1190
|
+
var e = t(146);
|
|
1191
|
+
i.exports = e && !!Symbol.for && !!Symbol.keyFor;
|
|
1192
|
+
}, 3648: function(i, p, t) {
|
|
1193
|
+
var e = t(8844);
|
|
1194
|
+
i.exports = e(1 .valueOf);
|
|
1195
|
+
}, 7578: function(i, p, t) {
|
|
1196
|
+
var e = t(8700), n = Math.max, r = Math.min;
|
|
1197
|
+
i.exports = function(a, u) {
|
|
1198
|
+
var c = e(a);
|
|
1199
|
+
return c < 0 ? n(c + u, 0) : r(c, u);
|
|
1200
|
+
};
|
|
1201
|
+
}, 5290: function(i, p, t) {
|
|
1202
|
+
var e = t(4413), n = t(4684);
|
|
1203
|
+
i.exports = function(r) {
|
|
1204
|
+
return e(n(r));
|
|
1205
|
+
};
|
|
1206
|
+
}, 8700: function(i, p, t) {
|
|
1207
|
+
var e = t(8828);
|
|
1208
|
+
i.exports = function(n) {
|
|
1209
|
+
var r = +n;
|
|
1210
|
+
return r != r || r === 0 ? 0 : e(r);
|
|
1211
|
+
};
|
|
1212
|
+
}, 3126: function(i, p, t) {
|
|
1213
|
+
var e = t(8700), n = Math.min;
|
|
1214
|
+
i.exports = function(r) {
|
|
1215
|
+
return r > 0 ? n(e(r), 9007199254740991) : 0;
|
|
1216
|
+
};
|
|
1217
|
+
}, 690: function(i, p, t) {
|
|
1218
|
+
var e = t(4684), n = Object;
|
|
1219
|
+
i.exports = function(r) {
|
|
1220
|
+
return n(e(r));
|
|
1221
|
+
};
|
|
1222
|
+
}, 8732: function(i, p, t) {
|
|
1223
|
+
var e = t(2615), n = t(8999), r = t(734), a = t(4849), u = t(5899), c = t(4201), l = TypeError, h = c("toPrimitive");
|
|
1224
|
+
i.exports = function(g, m) {
|
|
1225
|
+
if (!n(g) || r(g))
|
|
1226
|
+
return g;
|
|
1227
|
+
var y, x = a(g, h);
|
|
1228
|
+
if (x) {
|
|
1229
|
+
if (m === void 0 && (m = "default"), y = e(x, g, m), !n(y) || r(y))
|
|
1230
|
+
return y;
|
|
1231
|
+
throw new l("Can't convert object to primitive value");
|
|
1232
|
+
}
|
|
1233
|
+
return m === void 0 && (m = "number"), u(g, m);
|
|
1234
|
+
};
|
|
1235
|
+
}, 8360: function(i, p, t) {
|
|
1236
|
+
var e = t(8732), n = t(734);
|
|
1237
|
+
i.exports = function(r) {
|
|
1238
|
+
var a = e(r, "string");
|
|
1239
|
+
return n(a) ? a : a + "";
|
|
1240
|
+
};
|
|
1241
|
+
}, 3043: function(i, p, t) {
|
|
1242
|
+
var e = {};
|
|
1243
|
+
e[t(4201)("toStringTag")] = "z", i.exports = String(e) === "[object z]";
|
|
1244
|
+
}, 4327: function(i, p, t) {
|
|
1245
|
+
var e = t(926), n = String;
|
|
1246
|
+
i.exports = function(r) {
|
|
1247
|
+
if (e(r) === "Symbol")
|
|
1248
|
+
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
1249
|
+
return n(r);
|
|
1250
|
+
};
|
|
1251
|
+
}, 3691: function(i) {
|
|
1252
|
+
var p = String;
|
|
1253
|
+
i.exports = function(t) {
|
|
1254
|
+
try {
|
|
1255
|
+
return p(t);
|
|
1256
|
+
} catch {
|
|
1257
|
+
return "Object";
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
}, 4630: function(i, p, t) {
|
|
1261
|
+
var e = t(8844), n = 0, r = Math.random(), a = e(1 .toString);
|
|
1262
|
+
i.exports = function(u) {
|
|
1263
|
+
return "Symbol(" + (u === void 0 ? "" : u) + ")_" + a(++n + r, 36);
|
|
1264
|
+
};
|
|
1265
|
+
}, 9525: function(i, p, t) {
|
|
1266
|
+
var e = t(146);
|
|
1267
|
+
i.exports = e && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
1268
|
+
}, 5648: function(i, p, t) {
|
|
1269
|
+
var e = t(7697), n = t(3689);
|
|
1270
|
+
i.exports = e && n(function() {
|
|
1271
|
+
return Object.defineProperty(function() {
|
|
1272
|
+
}, "prototype", { value: 42, writable: !1 }).prototype !== 42;
|
|
1273
|
+
});
|
|
1274
|
+
}, 9834: function(i, p, t) {
|
|
1275
|
+
var e = t(9037), n = t(9985), r = e.WeakMap;
|
|
1276
|
+
i.exports = n(r) && /native code/.test(String(r));
|
|
1277
|
+
}, 5405: function(i, p, t) {
|
|
1278
|
+
var e = t(496), n = t(6812), r = t(6145), a = t(2560).f;
|
|
1279
|
+
i.exports = function(u) {
|
|
1280
|
+
var c = e.Symbol || (e.Symbol = {});
|
|
1281
|
+
n(c, u) || a(c, u, { value: r.f(u) });
|
|
1282
|
+
};
|
|
1283
|
+
}, 6145: function(i, p, t) {
|
|
1284
|
+
var e = t(4201);
|
|
1285
|
+
p.f = e;
|
|
1286
|
+
}, 4201: function(i, p, t) {
|
|
1287
|
+
var e = t(9037), n = t(3430), r = t(6812), a = t(4630), u = t(146), c = t(9525), l = e.Symbol, h = n("wks"), g = c ? l.for || l : l && l.withoutSetter || a;
|
|
1288
|
+
i.exports = function(m) {
|
|
1289
|
+
return r(h, m) || (h[m] = u && r(l, m) ? l[m] : g("Symbol." + m)), h[m];
|
|
1290
|
+
};
|
|
1291
|
+
}, 6350: function(i) {
|
|
1292
|
+
i.exports = `
|
|
1293
|
+
\v\f\r \u2028\u2029\uFEFF`;
|
|
1294
|
+
}, 4338: function(i, p, t) {
|
|
1295
|
+
var e = t(9989), n = t(3689), r = t(2297), a = t(8999), u = t(690), c = t(6310), l = t(5565), h = t(6522), g = t(7120), m = t(9042), y = t(4201), x = t(3615), k = y("isConcatSpreadable"), P = x >= 51 || !n(function() {
|
|
1296
|
+
var M = [];
|
|
1297
|
+
return M[k] = !1, M.concat()[0] !== M;
|
|
1298
|
+
}), O = function(M) {
|
|
1299
|
+
if (!a(M))
|
|
1300
|
+
return !1;
|
|
1301
|
+
var j = M[k];
|
|
1302
|
+
return j !== void 0 ? !!j : r(M);
|
|
1303
|
+
};
|
|
1304
|
+
e({ target: "Array", proto: !0, arity: 1, forced: !P || !m("concat") }, { concat: function(M) {
|
|
1305
|
+
var j, B, T, _, R, K = u(this), N = g(K, 0), z = 0;
|
|
1306
|
+
for (j = -1, T = arguments.length; j < T; j++)
|
|
1307
|
+
if (O(R = j === -1 ? K : arguments[j]))
|
|
1308
|
+
for (_ = c(R), l(z + _), B = 0; B < _; B++, z++)
|
|
1309
|
+
B in R && h(N, z, R[B]);
|
|
1310
|
+
else
|
|
1311
|
+
l(z + 1), h(N, z++, R);
|
|
1312
|
+
return N.length = z, N;
|
|
1313
|
+
} });
|
|
1314
|
+
}, 8077: function(i, p, t) {
|
|
1315
|
+
var e = t(9989), n = t(2960).filter;
|
|
1316
|
+
e({ target: "Array", proto: !0, forced: !t(9042)("filter") }, { filter: function(r) {
|
|
1317
|
+
return n(this, r, arguments.length > 1 ? arguments[1] : void 0);
|
|
1318
|
+
} });
|
|
1319
|
+
}, 7049: function(i, p, t) {
|
|
1320
|
+
var e = t(9989), n = t(1055);
|
|
1321
|
+
e({ target: "Array", stat: !0, forced: !t(6431)(function(r) {
|
|
1322
|
+
Array.from(r);
|
|
1323
|
+
}) }, { from: n });
|
|
1324
|
+
}, 6801: function(i, p, t) {
|
|
1325
|
+
var e = t(9989), n = t(4328).includes, r = t(3689), a = t(7370);
|
|
1326
|
+
e({ target: "Array", proto: !0, forced: r(function() {
|
|
1327
|
+
return !Array(1).includes();
|
|
1328
|
+
}) }, { includes: function(u) {
|
|
1329
|
+
return n(this, u, arguments.length > 1 ? arguments[1] : void 0);
|
|
1330
|
+
} }), a("includes");
|
|
1331
|
+
}, 7195: function(i, p, t) {
|
|
1332
|
+
var e = t(9989), n = t(6576), r = t(4328).indexOf, a = t(6834), u = n([].indexOf), c = !!u && 1 / u([1], 1, -0) < 0;
|
|
1333
|
+
e({ target: "Array", proto: !0, forced: c || !a("indexOf") }, { indexOf: function(l) {
|
|
1334
|
+
var h = arguments.length > 1 ? arguments[1] : void 0;
|
|
1335
|
+
return c ? u(this, l, h) || 0 : r(this, l, h);
|
|
1336
|
+
} });
|
|
1337
|
+
}, 752: function(i, p, t) {
|
|
1338
|
+
var e = t(5290), n = t(7370), r = t(9478), a = t(618), u = t(2560).f, c = t(1934), l = t(7807), h = t(3931), g = t(7697), m = "Array Iterator", y = a.set, x = a.getterFor(m);
|
|
1339
|
+
i.exports = c(Array, "Array", function(P, O) {
|
|
1340
|
+
y(this, { type: m, target: e(P), index: 0, kind: O });
|
|
1341
|
+
}, function() {
|
|
1342
|
+
var P = x(this), O = P.target, M = P.index++;
|
|
1343
|
+
if (!O || M >= O.length)
|
|
1344
|
+
return P.target = void 0, l(void 0, !0);
|
|
1345
|
+
switch (P.kind) {
|
|
1346
|
+
case "keys":
|
|
1347
|
+
return l(M, !1);
|
|
1348
|
+
case "values":
|
|
1349
|
+
return l(O[M], !1);
|
|
1350
|
+
}
|
|
1351
|
+
return l([M, O[M]], !1);
|
|
1352
|
+
}, "values");
|
|
1353
|
+
var k = r.Arguments = r.Array;
|
|
1354
|
+
if (n("keys"), n("values"), n("entries"), !h && g && k.name !== "values")
|
|
1355
|
+
try {
|
|
1356
|
+
u(k, "name", { value: "values" });
|
|
1357
|
+
} catch {
|
|
1358
|
+
}
|
|
1359
|
+
}, 6203: function(i, p, t) {
|
|
1360
|
+
var e = t(9989), n = t(8844), r = t(4413), a = t(5290), u = t(6834), c = n([].join);
|
|
1361
|
+
e({ target: "Array", proto: !0, forced: r !== Object || !u("join", ",") }, { join: function(l) {
|
|
1362
|
+
return c(a(this), l === void 0 ? "," : l);
|
|
1363
|
+
} });
|
|
1364
|
+
}, 886: function(i, p, t) {
|
|
1365
|
+
var e = t(9989), n = t(2960).map;
|
|
1366
|
+
e({ target: "Array", proto: !0, forced: !t(9042)("map") }, { map: function(r) {
|
|
1367
|
+
return n(this, r, arguments.length > 1 ? arguments[1] : void 0);
|
|
1368
|
+
} });
|
|
1369
|
+
}, 278: function(i, p, t) {
|
|
1370
|
+
var e = t(9989), n = t(8820).left, r = t(6834), a = t(3615);
|
|
1371
|
+
e({ target: "Array", proto: !0, forced: !t(806) && a > 79 && a < 83 || !r("reduce") }, { reduce: function(u) {
|
|
1372
|
+
var c = arguments.length;
|
|
1373
|
+
return n(this, u, c, c > 1 ? arguments[1] : void 0);
|
|
1374
|
+
} });
|
|
1375
|
+
}, 9730: function(i, p, t) {
|
|
1376
|
+
var e = t(9989), n = t(2297), r = t(9429), a = t(8999), u = t(7578), c = t(6310), l = t(5290), h = t(6522), g = t(4201), m = t(9042), y = t(6004), x = m("slice"), k = g("species"), P = Array, O = Math.max;
|
|
1377
|
+
e({ target: "Array", proto: !0, forced: !x }, { slice: function(M, j) {
|
|
1378
|
+
var B, T, _, R = l(this), K = c(R), N = u(M, K), z = u(j === void 0 ? K : j, K);
|
|
1379
|
+
if (n(R) && (B = R.constructor, (r(B) && (B === P || n(B.prototype)) || a(B) && (B = B[k]) === null) && (B = void 0), B === P || B === void 0))
|
|
1380
|
+
return y(R, N, z);
|
|
1381
|
+
for (T = new (B === void 0 ? P : B)(O(z - N, 0)), _ = 0; N < z; N++, _++)
|
|
1382
|
+
N in R && h(T, _, R[N]);
|
|
1383
|
+
return T.length = _, T;
|
|
1384
|
+
} });
|
|
1385
|
+
}, 5137: function(i, p, t) {
|
|
1386
|
+
var e = t(9989), n = t(8844), r = t(509), a = t(690), u = t(6310), c = t(8494), l = t(4327), h = t(3689), g = t(382), m = t(6834), y = t(7365), x = t(7298), k = t(3615), P = t(7922), O = [], M = n(O.sort), j = n(O.push), B = h(function() {
|
|
1387
|
+
O.sort(void 0);
|
|
1388
|
+
}), T = h(function() {
|
|
1389
|
+
O.sort(null);
|
|
1390
|
+
}), _ = m("sort"), R = !h(function() {
|
|
1391
|
+
if (k)
|
|
1392
|
+
return k < 70;
|
|
1393
|
+
if (!(y && y > 3)) {
|
|
1394
|
+
if (x)
|
|
1395
|
+
return !0;
|
|
1396
|
+
if (P)
|
|
1397
|
+
return P < 603;
|
|
1398
|
+
var K, N, z, U, Y = "";
|
|
1399
|
+
for (K = 65; K < 76; K++) {
|
|
1400
|
+
switch (N = String.fromCharCode(K), K) {
|
|
1401
|
+
case 66:
|
|
1402
|
+
case 69:
|
|
1403
|
+
case 70:
|
|
1404
|
+
case 72:
|
|
1405
|
+
z = 3;
|
|
1406
|
+
break;
|
|
1407
|
+
case 68:
|
|
1408
|
+
case 71:
|
|
1409
|
+
z = 4;
|
|
1410
|
+
break;
|
|
1411
|
+
default:
|
|
1412
|
+
z = 2;
|
|
1413
|
+
}
|
|
1414
|
+
for (U = 0; U < 47; U++)
|
|
1415
|
+
O.push({ k: N + U, v: z });
|
|
1416
|
+
}
|
|
1417
|
+
for (O.sort(function(G, w) {
|
|
1418
|
+
return w.v - G.v;
|
|
1419
|
+
}), U = 0; U < O.length; U++)
|
|
1420
|
+
N = O[U].k.charAt(0), Y.charAt(Y.length - 1) !== N && (Y += N);
|
|
1421
|
+
return Y !== "DGBEFHACIJK";
|
|
1422
|
+
}
|
|
1423
|
+
});
|
|
1424
|
+
e({ target: "Array", proto: !0, forced: B || !T || !_ || !R }, { sort: function(K) {
|
|
1425
|
+
K !== void 0 && r(K);
|
|
1426
|
+
var N = a(this);
|
|
1427
|
+
if (R)
|
|
1428
|
+
return K === void 0 ? M(N) : M(N, K);
|
|
1429
|
+
var z, U, Y = [], G = u(N);
|
|
1430
|
+
for (U = 0; U < G; U++)
|
|
1431
|
+
U in N && j(Y, N[U]);
|
|
1432
|
+
for (g(Y, function(w) {
|
|
1433
|
+
return function(v, S) {
|
|
1434
|
+
return S === void 0 ? -1 : v === void 0 ? 1 : w !== void 0 ? +w(v, S) || 0 : l(v) > l(S) ? 1 : -1;
|
|
1435
|
+
};
|
|
1436
|
+
}(K)), z = u(Y), U = 0; U < z; )
|
|
1437
|
+
N[U] = Y[U++];
|
|
1438
|
+
for (; U < G; )
|
|
1439
|
+
c(N, U++);
|
|
1440
|
+
return N;
|
|
1441
|
+
} });
|
|
1442
|
+
}, 2506: function(i, p, t) {
|
|
1443
|
+
var e = t(9989), n = t(690), r = t(7578), a = t(8700), u = t(6310), c = t(5649), l = t(5565), h = t(7120), g = t(6522), m = t(8494), y = t(9042)("splice"), x = Math.max, k = Math.min;
|
|
1444
|
+
e({ target: "Array", proto: !0, forced: !y }, { splice: function(P, O) {
|
|
1445
|
+
var M, j, B, T, _, R, K = n(this), N = u(K), z = r(P, N), U = arguments.length;
|
|
1446
|
+
for (U === 0 ? M = j = 0 : U === 1 ? (M = 0, j = N - z) : (M = U - 2, j = k(x(a(O), 0), N - z)), l(N + M - j), B = h(K, j), T = 0; T < j; T++)
|
|
1447
|
+
(_ = z + T) in K && g(B, T, K[_]);
|
|
1448
|
+
if (B.length = j, M < j) {
|
|
1449
|
+
for (T = z; T < N - j; T++)
|
|
1450
|
+
R = T + M, (_ = T + j) in K ? K[R] = K[_] : m(K, R);
|
|
1451
|
+
for (T = N; T > N - j + M; T--)
|
|
1452
|
+
m(K, T - 1);
|
|
1453
|
+
} else if (M > j)
|
|
1454
|
+
for (T = N - j; T > z; T--)
|
|
1455
|
+
R = T + M - 1, (_ = T + j - 1) in K ? K[R] = K[_] : m(K, R);
|
|
1456
|
+
for (T = 0; T < M; T++)
|
|
1457
|
+
K[T + z] = arguments[T + 2];
|
|
1458
|
+
return c(K, N - j + M), B;
|
|
1459
|
+
} });
|
|
1460
|
+
}, 9903: function(i, p, t) {
|
|
1461
|
+
var e = t(6812), n = t(1880), r = t(1797), a = t(4201)("toPrimitive"), u = Date.prototype;
|
|
1462
|
+
e(u, a) || n(u, a, r);
|
|
1463
|
+
}, 4284: function(i, p, t) {
|
|
1464
|
+
var e = t(7697), n = t(1236).EXISTS, r = t(8844), a = t(2148), u = Function.prototype, c = r(u.toString), l = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, h = r(l.exec);
|
|
1465
|
+
e && !n && a(u, "name", { configurable: !0, get: function() {
|
|
1466
|
+
try {
|
|
1467
|
+
return h(l, c(this))[1];
|
|
1468
|
+
} catch {
|
|
1469
|
+
return "";
|
|
1470
|
+
}
|
|
1471
|
+
} });
|
|
1472
|
+
}, 8324: function(i, p, t) {
|
|
1473
|
+
var e = t(9989), n = t(6058), r = t(1735), a = t(2615), u = t(8844), c = t(3689), l = t(9985), h = t(734), g = t(6004), m = t(2643), y = t(146), x = String, k = n("JSON", "stringify"), P = u(/./.exec), O = u("".charAt), M = u("".charCodeAt), j = u("".replace), B = u(1 .toString), T = /[\uD800-\uDFFF]/g, _ = /^[\uD800-\uDBFF]$/, R = /^[\uDC00-\uDFFF]$/, K = !y || c(function() {
|
|
1474
|
+
var Y = n("Symbol")("stringify detection");
|
|
1475
|
+
return k([Y]) !== "[null]" || k({ a: Y }) !== "{}" || k(Object(Y)) !== "{}";
|
|
1476
|
+
}), N = c(function() {
|
|
1477
|
+
return k("\uDF06\uD834") !== '"\\udf06\\ud834"' || k("\uDEAD") !== '"\\udead"';
|
|
1478
|
+
}), z = function(Y, G) {
|
|
1479
|
+
var w = g(arguments), v = m(G);
|
|
1480
|
+
if (l(v) || Y !== void 0 && !h(Y))
|
|
1481
|
+
return w[1] = function(S, o) {
|
|
1482
|
+
if (l(v) && (o = a(v, this, x(S), o)), !h(o))
|
|
1483
|
+
return o;
|
|
1484
|
+
}, r(k, null, w);
|
|
1485
|
+
}, U = function(Y, G, w) {
|
|
1486
|
+
var v = O(w, G - 1), S = O(w, G + 1);
|
|
1487
|
+
return P(_, Y) && !P(R, S) || P(R, Y) && !P(_, v) ? "\\u" + B(M(Y, 0), 16) : Y;
|
|
1488
|
+
};
|
|
1489
|
+
k && e({ target: "JSON", stat: !0, arity: 3, forced: K || N }, { stringify: function(Y, G, w) {
|
|
1490
|
+
var v = g(arguments), S = r(K ? z : k, null, v);
|
|
1491
|
+
return N && typeof S == "string" ? j(S, T, U) : S;
|
|
1492
|
+
} });
|
|
1493
|
+
}, 9288: function(i, p, t) {
|
|
1494
|
+
var e = t(9989), n = t(3931), r = t(7697), a = t(9037), u = t(496), c = t(8844), l = t(5266), h = t(6812), g = t(3457), m = t(3622), y = t(734), x = t(8732), k = t(3689), P = t(2741).f, O = t(2474).f, M = t(2560).f, j = t(3648), B = t(1435).trim, T = "Number", _ = a[T], R = u[T], K = _.prototype, N = a.TypeError, z = c("".slice), U = c("".charCodeAt), Y = function(S) {
|
|
1495
|
+
var o, s, d, f, b, D, I, E, C = x(S, "number");
|
|
1496
|
+
if (y(C))
|
|
1497
|
+
throw new N("Cannot convert a Symbol value to a number");
|
|
1498
|
+
if (typeof C == "string" && C.length > 2) {
|
|
1499
|
+
if (C = B(C), (o = U(C, 0)) === 43 || o === 45) {
|
|
1500
|
+
if ((s = U(C, 2)) === 88 || s === 120)
|
|
1501
|
+
return NaN;
|
|
1502
|
+
} else if (o === 48) {
|
|
1503
|
+
switch (U(C, 1)) {
|
|
1504
|
+
case 66:
|
|
1505
|
+
case 98:
|
|
1506
|
+
d = 2, f = 49;
|
|
1507
|
+
break;
|
|
1508
|
+
case 79:
|
|
1509
|
+
case 111:
|
|
1510
|
+
d = 8, f = 55;
|
|
1511
|
+
break;
|
|
1512
|
+
default:
|
|
1513
|
+
return +C;
|
|
1514
|
+
}
|
|
1515
|
+
for (D = (b = z(C, 2)).length, I = 0; I < D; I++)
|
|
1516
|
+
if ((E = U(b, I)) < 48 || E > f)
|
|
1517
|
+
return NaN;
|
|
1518
|
+
return parseInt(b, d);
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
return +C;
|
|
1522
|
+
}, G = l(T, !_(" 0o1") || !_("0b1") || _("+0x1")), w = function(S) {
|
|
1523
|
+
var o, s = arguments.length < 1 ? 0 : _(function(d) {
|
|
1524
|
+
var f = x(d, "number");
|
|
1525
|
+
return typeof f == "bigint" ? f : Y(f);
|
|
1526
|
+
}(S));
|
|
1527
|
+
return m(K, o = this) && k(function() {
|
|
1528
|
+
j(o);
|
|
1529
|
+
}) ? g(Object(s), this, w) : s;
|
|
1530
|
+
};
|
|
1531
|
+
w.prototype = K, G && !n && (K.constructor = w), e({ global: !0, constructor: !0, wrap: !0, forced: G }, { Number: w });
|
|
1532
|
+
var v = function(S, o) {
|
|
1533
|
+
for (var s, d = r ? P(o) : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","), f = 0; d.length > f; f++)
|
|
1534
|
+
h(o, s = d[f]) && !h(S, s) && M(S, s, O(o, s));
|
|
1535
|
+
};
|
|
1536
|
+
n && R && v(u[T], R), (G || n) && v(u[T], _);
|
|
1537
|
+
}, 5765: function(i, p, t) {
|
|
1538
|
+
t(9989)({ target: "Number", stat: !0 }, { isInteger: t(1973) });
|
|
1539
|
+
}, 429: function(i, p, t) {
|
|
1540
|
+
var e = t(9989), n = t(5394);
|
|
1541
|
+
e({ target: "Object", stat: !0, arity: 2, forced: Object.assign !== n }, { assign: n });
|
|
1542
|
+
}, 3994: function(i, p, t) {
|
|
1543
|
+
var e = t(9989), n = t(7697), r = t(600), a = t(509), u = t(690), c = t(2560);
|
|
1544
|
+
n && e({ target: "Object", proto: !0, forced: r }, { __defineGetter__: function(l, h) {
|
|
1545
|
+
c.f(u(this), l, { get: a(h), enumerable: !0, configurable: !0 });
|
|
1546
|
+
} });
|
|
1547
|
+
}, 1919: function(i, p, t) {
|
|
1548
|
+
var e = t(9989), n = t(3689), r = t(5290), a = t(2474).f, u = t(7697);
|
|
1549
|
+
e({ target: "Object", stat: !0, forced: !u || n(function() {
|
|
1550
|
+
a(1);
|
|
1551
|
+
}), sham: !u }, { getOwnPropertyDescriptor: function(c, l) {
|
|
1552
|
+
return a(r(c), l);
|
|
1553
|
+
} });
|
|
1554
|
+
}, 9474: function(i, p, t) {
|
|
1555
|
+
var e = t(9989), n = t(7697), r = t(9152), a = t(5290), u = t(2474), c = t(6522);
|
|
1556
|
+
e({ target: "Object", stat: !0, sham: !n }, { getOwnPropertyDescriptors: function(l) {
|
|
1557
|
+
for (var h, g, m = a(l), y = u.f, x = r(m), k = {}, P = 0; x.length > P; )
|
|
1558
|
+
(g = y(m, h = x[P++])) !== void 0 && c(k, h, g);
|
|
1559
|
+
return k;
|
|
1560
|
+
} });
|
|
1561
|
+
}, 9997: function(i, p, t) {
|
|
1562
|
+
var e = t(9989), n = t(3689), r = t(6062).f;
|
|
1563
|
+
e({ target: "Object", stat: !0, forced: n(function() {
|
|
1564
|
+
return !Object.getOwnPropertyNames(1);
|
|
1565
|
+
}) }, { getOwnPropertyNames: r });
|
|
1566
|
+
}, 9434: function(i, p, t) {
|
|
1567
|
+
var e = t(9989), n = t(146), r = t(3689), a = t(7518), u = t(690);
|
|
1568
|
+
e({ target: "Object", stat: !0, forced: !n || r(function() {
|
|
1569
|
+
a.f(1);
|
|
1570
|
+
}) }, { getOwnPropertySymbols: function(c) {
|
|
1571
|
+
var l = a.f;
|
|
1572
|
+
return l ? l(u(c)) : [];
|
|
1573
|
+
} });
|
|
1574
|
+
}, 9358: function(i, p, t) {
|
|
1575
|
+
var e = t(9989), n = t(690), r = t(300);
|
|
1576
|
+
e({ target: "Object", stat: !0, forced: t(3689)(function() {
|
|
1577
|
+
r(1);
|
|
1578
|
+
}) }, { keys: function(a) {
|
|
1579
|
+
return r(n(a));
|
|
1580
|
+
} });
|
|
1581
|
+
}, 228: function(i, p, t) {
|
|
1582
|
+
var e = t(3043), n = t(1880), r = t(5073);
|
|
1583
|
+
e || n(Object.prototype, "toString", r, { unsafe: !0 });
|
|
1584
|
+
}, 2003: function(i, p, t) {
|
|
1585
|
+
var e = t(7697), n = t(9037), r = t(8844), a = t(5266), u = t(3457), c = t(5773), l = t(2741).f, h = t(3622), g = t(1245), m = t(4327), y = t(3477), x = t(7901), k = t(8055), P = t(1880), O = t(3689), M = t(6812), j = t(618).enforce, B = t(4241), T = t(4201), _ = t(2100), R = t(6422), K = T("match"), N = n.RegExp, z = N.prototype, U = n.SyntaxError, Y = r(z.exec), G = r("".charAt), w = r("".replace), v = r("".indexOf), S = r("".slice), o = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, s = /a/g, d = /a/g, f = new N(s) !== s, b = x.MISSED_STICKY, D = x.UNSUPPORTED_Y, I = e && (!f || b || _ || R || O(function() {
|
|
1586
|
+
return d[K] = !1, N(s) !== s || N(d) === d || String(N(s, "i")) !== "/a/i";
|
|
1587
|
+
}));
|
|
1588
|
+
if (a("RegExp", I)) {
|
|
1589
|
+
for (var E = function(A, L) {
|
|
1590
|
+
var H, F, W, Z, it, et, at = h(z, this), rt = g(A), mt = L === void 0, nt = [], dt = A;
|
|
1591
|
+
if (!at && rt && mt && A.constructor === E)
|
|
1592
|
+
return A;
|
|
1593
|
+
if ((rt || h(z, A)) && (A = A.source, mt && (L = y(dt))), A = A === void 0 ? "" : m(A), L = L === void 0 ? "" : m(L), dt = A, _ && "dotAll" in s && (F = !!L && v(L, "s") > -1) && (L = w(L, /s/g, "")), H = L, b && "sticky" in s && (W = !!L && v(L, "y") > -1) && D && (L = w(L, /y/g, "")), R && (Z = function(ot) {
|
|
1594
|
+
for (var q, bt = ot.length, ct = 0, lt = "", ft = [], xt = {}, pt = !1, gt = !1, wt = 0, ht = ""; ct <= bt; ct++) {
|
|
1595
|
+
if ((q = G(ot, ct)) === "\\")
|
|
1596
|
+
q += G(ot, ++ct);
|
|
1597
|
+
else if (q === "]")
|
|
1598
|
+
pt = !1;
|
|
1599
|
+
else if (!pt)
|
|
1600
|
+
switch (!0) {
|
|
1601
|
+
case q === "[":
|
|
1602
|
+
pt = !0;
|
|
1603
|
+
break;
|
|
1604
|
+
case q === "(":
|
|
1605
|
+
Y(o, S(ot, ct + 1)) && (ct += 2, gt = !0), lt += q, wt++;
|
|
1606
|
+
continue;
|
|
1607
|
+
case (q === ">" && gt):
|
|
1608
|
+
if (ht === "" || M(xt, ht))
|
|
1609
|
+
throw new U("Invalid capture group name");
|
|
1610
|
+
xt[ht] = !0, ft[ft.length] = [ht, wt], gt = !1, ht = "";
|
|
1611
|
+
continue;
|
|
1612
|
+
}
|
|
1613
|
+
gt ? ht += q : lt += q;
|
|
1614
|
+
}
|
|
1615
|
+
return [lt, ft];
|
|
1616
|
+
}(A), A = Z[0], nt = Z[1]), it = u(N(A, L), at ? this : z, E), (F || W || nt.length) && (et = j(it), F && (et.dotAll = !0, et.raw = E(function(ot) {
|
|
1617
|
+
for (var q, bt = ot.length, ct = 0, lt = "", ft = !1; ct <= bt; ct++)
|
|
1618
|
+
(q = G(ot, ct)) !== "\\" ? ft || q !== "." ? (q === "[" ? ft = !0 : q === "]" && (ft = !1), lt += q) : lt += "[\\s\\S]" : lt += q + G(ot, ++ct);
|
|
1619
|
+
return lt;
|
|
1620
|
+
}(A), H)), W && (et.sticky = !0), nt.length && (et.groups = nt)), A !== dt)
|
|
1621
|
+
try {
|
|
1622
|
+
c(it, "source", dt === "" ? "(?:)" : dt);
|
|
1623
|
+
} catch {
|
|
1624
|
+
}
|
|
1625
|
+
return it;
|
|
1626
|
+
}, C = l(N), $ = 0; C.length > $; )
|
|
1627
|
+
k(E, N, C[$++]);
|
|
1628
|
+
z.constructor = E, E.prototype = z, P(n, "RegExp", E, { constructor: !0 });
|
|
1629
|
+
}
|
|
1630
|
+
B("RegExp");
|
|
1631
|
+
}, 4043: function(i, p, t) {
|
|
1632
|
+
var e = t(9989), n = t(6308);
|
|
1633
|
+
e({ target: "RegExp", proto: !0, forced: /./.exec !== n }, { exec: n });
|
|
1634
|
+
}, 2826: function(i, p, t) {
|
|
1635
|
+
var e = t(1236).PROPER, n = t(1880), r = t(5027), a = t(4327), u = t(3689), c = t(3477), l = "toString", h = RegExp.prototype[l], g = u(function() {
|
|
1636
|
+
return h.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
1637
|
+
}), m = e && h.name !== l;
|
|
1638
|
+
(g || m) && n(RegExp.prototype, l, function() {
|
|
1639
|
+
var y = r(this);
|
|
1640
|
+
return "/" + a(y.source) + "/" + a(c(y));
|
|
1641
|
+
}, { unsafe: !0 });
|
|
1642
|
+
}, 3843: function(i, p, t) {
|
|
1643
|
+
var e = t(9989), n = t(8844), r = t(2124), a = t(4684), u = t(4327), c = t(7413), l = n("".indexOf);
|
|
1644
|
+
e({ target: "String", proto: !0, forced: !c("includes") }, { includes: function(h) {
|
|
1645
|
+
return !!~l(u(a(this)), u(r(h)), arguments.length > 1 ? arguments[1] : void 0);
|
|
1646
|
+
} });
|
|
1647
|
+
}, 1694: function(i, p, t) {
|
|
1648
|
+
var e = t(730).charAt, n = t(4327), r = t(618), a = t(1934), u = t(7807), c = "String Iterator", l = r.set, h = r.getterFor(c);
|
|
1649
|
+
a(String, "String", function(g) {
|
|
1650
|
+
l(this, { type: c, string: n(g), index: 0 });
|
|
1651
|
+
}, function() {
|
|
1652
|
+
var g, m = h(this), y = m.string, x = m.index;
|
|
1653
|
+
return x >= y.length ? u(void 0, !0) : (g = e(y, x), m.index += g.length, u(g, !1));
|
|
1654
|
+
});
|
|
1655
|
+
}, 9866: function(i, p, t) {
|
|
1656
|
+
var e = t(9989), n = t(2615), r = t(6576), a = t(974), u = t(7807), c = t(4684), l = t(3126), h = t(4327), g = t(5027), m = t(981), y = t(6648), x = t(1245), k = t(3477), P = t(4849), O = t(1880), M = t(3689), j = t(4201), B = t(6373), T = t(1514), _ = t(6100), R = t(618), K = t(3931), N = j("matchAll"), z = "RegExp String", U = z + " Iterator", Y = R.set, G = R.getterFor(U), w = RegExp.prototype, v = TypeError, S = r("".indexOf), o = r("".matchAll), s = !!o && !M(function() {
|
|
1657
|
+
o("a", /./);
|
|
1658
|
+
}), d = a(function(b, D, I, E) {
|
|
1659
|
+
Y(this, { type: U, regexp: b, string: D, global: I, unicode: E, done: !1 });
|
|
1660
|
+
}, z, function() {
|
|
1661
|
+
var b = G(this);
|
|
1662
|
+
if (b.done)
|
|
1663
|
+
return u(void 0, !0);
|
|
1664
|
+
var D = b.regexp, I = b.string, E = _(D, I);
|
|
1665
|
+
return E === null ? (b.done = !0, u(void 0, !0)) : b.global ? (h(E[0]) === "" && (D.lastIndex = T(I, l(D.lastIndex), b.unicode)), u(E, !1)) : (b.done = !0, u(E, !1));
|
|
1666
|
+
}), f = function(b) {
|
|
1667
|
+
var D, I, E, C = g(this), $ = h(b), A = B(C, RegExp), L = h(k(C));
|
|
1668
|
+
return D = new A(A === RegExp ? C.source : C, L), I = !!~S(L, "g"), E = !!~S(L, "u"), D.lastIndex = l(C.lastIndex), new d(D, $, I, E);
|
|
1669
|
+
};
|
|
1670
|
+
e({ target: "String", proto: !0, forced: s }, { matchAll: function(b) {
|
|
1671
|
+
var D, I, E, C, $ = c(this);
|
|
1672
|
+
if (m(b)) {
|
|
1673
|
+
if (s)
|
|
1674
|
+
return o($, b);
|
|
1675
|
+
} else {
|
|
1676
|
+
if (x(b) && (D = h(c(k(b))), !~S(D, "g")))
|
|
1677
|
+
throw new v("`.matchAll` does not allow non-global regexes");
|
|
1678
|
+
if (s)
|
|
1679
|
+
return o($, b);
|
|
1680
|
+
if ((E = P(b, N)) === void 0 && K && y(b) === "RegExp" && (E = f), E)
|
|
1681
|
+
return n(E, b, $);
|
|
1682
|
+
}
|
|
1683
|
+
return I = h($), C = new RegExp(b, "g"), K ? n(f, C, I) : C[N](I);
|
|
1684
|
+
} }), K || N in w || O(w, N, f);
|
|
1685
|
+
}, 2462: function(i, p, t) {
|
|
1686
|
+
var e = t(2615), n = t(8678), r = t(5027), a = t(981), u = t(3126), c = t(4327), l = t(4684), h = t(4849), g = t(1514), m = t(6100);
|
|
1687
|
+
n("match", function(y, x, k) {
|
|
1688
|
+
return [function(P) {
|
|
1689
|
+
var O = l(this), M = a(P) ? void 0 : h(P, y);
|
|
1690
|
+
return M ? e(M, P, O) : new RegExp(P)[y](c(O));
|
|
1691
|
+
}, function(P) {
|
|
1692
|
+
var O = r(this), M = c(P), j = k(x, O, M);
|
|
1693
|
+
if (j.done)
|
|
1694
|
+
return j.value;
|
|
1695
|
+
if (!O.global)
|
|
1696
|
+
return m(O, M);
|
|
1697
|
+
var B = O.unicode;
|
|
1698
|
+
O.lastIndex = 0;
|
|
1699
|
+
for (var T, _ = [], R = 0; (T = m(O, M)) !== null; ) {
|
|
1700
|
+
var K = c(T[0]);
|
|
1701
|
+
_[R] = K, K === "" && (O.lastIndex = g(M, u(O.lastIndex), B)), R++;
|
|
1702
|
+
}
|
|
1703
|
+
return R === 0 ? null : _;
|
|
1704
|
+
}];
|
|
1705
|
+
});
|
|
1706
|
+
}, 7267: function(i, p, t) {
|
|
1707
|
+
var e = t(1735), n = t(2615), r = t(8844), a = t(8678), u = t(3689), c = t(5027), l = t(9985), h = t(981), g = t(8700), m = t(3126), y = t(4327), x = t(4684), k = t(1514), P = t(4849), O = t(7017), M = t(6100), j = t(4201)("replace"), B = Math.max, T = Math.min, _ = r([].concat), R = r([].push), K = r("".indexOf), N = r("".slice), z = "a".replace(/./, "$0") === "$0", U = !!/./[j] && /./[j]("a", "$0") === "";
|
|
1708
|
+
a("replace", function(Y, G, w) {
|
|
1709
|
+
var v = U ? "$" : "$0";
|
|
1710
|
+
return [function(S, o) {
|
|
1711
|
+
var s = x(this), d = h(S) ? void 0 : P(S, j);
|
|
1712
|
+
return d ? n(d, S, s, o) : n(G, y(s), S, o);
|
|
1713
|
+
}, function(S, o) {
|
|
1714
|
+
var s = c(this), d = y(S);
|
|
1715
|
+
if (typeof o == "string" && K(o, v) === -1 && K(o, "$<") === -1) {
|
|
1716
|
+
var f = w(G, s, d, o);
|
|
1717
|
+
if (f.done)
|
|
1718
|
+
return f.value;
|
|
1719
|
+
}
|
|
1720
|
+
var b = l(o);
|
|
1721
|
+
b || (o = y(o));
|
|
1722
|
+
var D, I = s.global;
|
|
1723
|
+
I && (D = s.unicode, s.lastIndex = 0);
|
|
1724
|
+
for (var E, C = []; (E = M(s, d)) !== null && (R(C, E), I); )
|
|
1725
|
+
y(E[0]) === "" && (s.lastIndex = k(d, m(s.lastIndex), D));
|
|
1726
|
+
for (var $, A = "", L = 0, H = 0; H < C.length; H++) {
|
|
1727
|
+
for (var F, W = y((E = C[H])[0]), Z = B(T(g(E.index), d.length), 0), it = [], et = 1; et < E.length; et++)
|
|
1728
|
+
R(it, ($ = E[et]) === void 0 ? $ : String($));
|
|
1729
|
+
var at = E.groups;
|
|
1730
|
+
if (b) {
|
|
1731
|
+
var rt = _([W], it, Z, d);
|
|
1732
|
+
at !== void 0 && R(rt, at), F = y(e(o, void 0, rt));
|
|
1733
|
+
} else
|
|
1734
|
+
F = O(W, d, Z, it, at, o);
|
|
1735
|
+
Z >= L && (A += N(d, L, Z) + F, L = Z + W.length);
|
|
1736
|
+
}
|
|
1737
|
+
return A + N(d, L);
|
|
1738
|
+
}];
|
|
1739
|
+
}, !!u(function() {
|
|
1740
|
+
var Y = /./;
|
|
1741
|
+
return Y.exec = function() {
|
|
1742
|
+
var G = [];
|
|
1743
|
+
return G.groups = { a: "7" }, G;
|
|
1744
|
+
}, "".replace(Y, "$<a>") !== "7";
|
|
1745
|
+
}) || !z || U);
|
|
1746
|
+
}, 9873: function(i, p, t) {
|
|
1747
|
+
var e = t(1735), n = t(2615), r = t(8844), a = t(8678), u = t(5027), c = t(981), l = t(1245), h = t(4684), g = t(6373), m = t(1514), y = t(3126), x = t(4327), k = t(4849), P = t(9015), O = t(6100), M = t(6308), j = t(7901), B = t(3689), T = j.UNSUPPORTED_Y, _ = 4294967295, R = Math.min, K = [].push, N = r(/./.exec), z = r(K), U = r("".slice), Y = !B(function() {
|
|
1748
|
+
var G = /(?:)/, w = G.exec;
|
|
1749
|
+
G.exec = function() {
|
|
1750
|
+
return w.apply(this, arguments);
|
|
1751
|
+
};
|
|
1752
|
+
var v = "ab".split(G);
|
|
1753
|
+
return v.length !== 2 || v[0] !== "a" || v[1] !== "b";
|
|
1754
|
+
});
|
|
1755
|
+
a("split", function(G, w, v) {
|
|
1756
|
+
var S;
|
|
1757
|
+
return S = "abbc".split(/(b)*/)[1] === "c" || "test".split(/(?:)/, -1).length !== 4 || "ab".split(/(?:ab)*/).length !== 2 || ".".split(/(.?)(.?)/).length !== 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? function(o, s) {
|
|
1758
|
+
var d = x(h(this)), f = s === void 0 ? _ : s >>> 0;
|
|
1759
|
+
if (f === 0)
|
|
1760
|
+
return [];
|
|
1761
|
+
if (o === void 0)
|
|
1762
|
+
return [d];
|
|
1763
|
+
if (!l(o))
|
|
1764
|
+
return n(w, d, o, f);
|
|
1765
|
+
for (var b, D, I, E = [], C = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (o.sticky ? "y" : ""), $ = 0, A = new RegExp(o.source, C + "g"); (b = n(M, A, d)) && !((D = A.lastIndex) > $ && (z(E, U(d, $, b.index)), b.length > 1 && b.index < d.length && e(K, E, P(b, 1)), I = b[0].length, $ = D, E.length >= f)); )
|
|
1766
|
+
A.lastIndex === b.index && A.lastIndex++;
|
|
1767
|
+
return $ === d.length ? !I && N(A, "") || z(E, "") : z(E, U(d, $)), E.length > f ? P(E, 0, f) : E;
|
|
1768
|
+
} : "0".split(void 0, 0).length ? function(o, s) {
|
|
1769
|
+
return o === void 0 && s === 0 ? [] : n(w, this, o, s);
|
|
1770
|
+
} : w, [function(o, s) {
|
|
1771
|
+
var d = h(this), f = c(o) ? void 0 : k(o, G);
|
|
1772
|
+
return f ? n(f, o, d, s) : n(S, x(d), o, s);
|
|
1773
|
+
}, function(o, s) {
|
|
1774
|
+
var d = u(this), f = x(o), b = v(S, d, f, s, S !== w);
|
|
1775
|
+
if (b.done)
|
|
1776
|
+
return b.value;
|
|
1777
|
+
var D = g(d, RegExp), I = d.unicode, E = (d.ignoreCase ? "i" : "") + (d.multiline ? "m" : "") + (d.unicode ? "u" : "") + (T ? "g" : "y"), C = new D(T ? "^(?:" + d.source + ")" : d, E), $ = s === void 0 ? _ : s >>> 0;
|
|
1778
|
+
if ($ === 0)
|
|
1779
|
+
return [];
|
|
1780
|
+
if (f.length === 0)
|
|
1781
|
+
return O(C, f) === null ? [f] : [];
|
|
1782
|
+
for (var A = 0, L = 0, H = []; L < f.length; ) {
|
|
1783
|
+
C.lastIndex = T ? 0 : L;
|
|
1784
|
+
var F, W = O(C, T ? U(f, L) : f);
|
|
1785
|
+
if (W === null || (F = R(y(C.lastIndex + (T ? L : 0)), f.length)) === A)
|
|
1786
|
+
L = m(f, L, I);
|
|
1787
|
+
else {
|
|
1788
|
+
if (z(H, U(f, A, L)), H.length === $)
|
|
1789
|
+
return H;
|
|
1790
|
+
for (var Z = 1; Z <= W.length - 1; Z++)
|
|
1791
|
+
if (z(H, W[Z]), H.length === $)
|
|
1792
|
+
return H;
|
|
1793
|
+
L = A = F;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return z(H, U(f, A)), H;
|
|
1797
|
+
}];
|
|
1798
|
+
}, !Y, T);
|
|
1799
|
+
}, 8436: function(i, p, t) {
|
|
1800
|
+
var e = t(9989), n = t(1435).trim;
|
|
1801
|
+
e({ target: "String", proto: !0, forced: t(5984)("trim") }, { trim: function() {
|
|
1802
|
+
return n(this);
|
|
1803
|
+
} });
|
|
1804
|
+
}, 7855: function(i, p, t) {
|
|
1805
|
+
var e = t(9989), n = t(9037), r = t(2615), a = t(8844), u = t(3931), c = t(7697), l = t(146), h = t(3689), g = t(6812), m = t(3622), y = t(5027), x = t(5290), k = t(8360), P = t(4327), O = t(5684), M = t(5391), j = t(300), B = t(2741), T = t(6062), _ = t(7518), R = t(2474), K = t(2560), N = t(8920), z = t(9556), U = t(1880), Y = t(2148), G = t(3430), w = t(2713), v = t(7248), S = t(4630), o = t(4201), s = t(6145), d = t(5405), f = t(3032), b = t(5997), D = t(618), I = t(2960).forEach, E = w("hidden"), C = "Symbol", $ = "prototype", A = D.set, L = D.getterFor(C), H = Object[$], F = n.Symbol, W = F && F[$], Z = n.RangeError, it = n.TypeError, et = n.QObject, at = R.f, rt = K.f, mt = T.f, nt = z.f, dt = a([].push), ot = G("symbols"), q = G("op-symbols"), bt = G("wks"), ct = !et || !et[$] || !et[$].findChild, lt = function(X, J, Q) {
|
|
1806
|
+
var tt = at(H, J);
|
|
1807
|
+
tt && delete H[J], rt(X, J, Q), tt && X !== H && rt(H, J, tt);
|
|
1808
|
+
}, ft = c && h(function() {
|
|
1809
|
+
return M(rt({}, "a", { get: function() {
|
|
1810
|
+
return rt(this, "a", { value: 7 }).a;
|
|
1811
|
+
} })).a !== 7;
|
|
1812
|
+
}) ? lt : rt, xt = function(X, J) {
|
|
1813
|
+
var Q = ot[X] = M(W);
|
|
1814
|
+
return A(Q, { type: C, tag: X, description: J }), c || (Q.description = J), Q;
|
|
1815
|
+
}, pt = function(X, J, Q) {
|
|
1816
|
+
X === H && pt(q, J, Q), y(X);
|
|
1817
|
+
var tt = k(J);
|
|
1818
|
+
return y(Q), g(ot, tt) ? (Q.enumerable ? (g(X, E) && X[E][tt] && (X[E][tt] = !1), Q = M(Q, { enumerable: O(0, !1) })) : (g(X, E) || rt(X, E, O(1, {})), X[E][tt] = !0), ft(X, tt, Q)) : rt(X, tt, Q);
|
|
1819
|
+
}, gt = function(X, J) {
|
|
1820
|
+
y(X);
|
|
1821
|
+
var Q = x(J), tt = j(Q).concat(Pt(Q));
|
|
1822
|
+
return I(tt, function(st) {
|
|
1823
|
+
c && !r(wt, Q, st) || pt(X, st, Q[st]);
|
|
1824
|
+
}), X;
|
|
1825
|
+
}, wt = function(X) {
|
|
1826
|
+
var J = k(X), Q = r(nt, this, J);
|
|
1827
|
+
return !(this === H && g(ot, J) && !g(q, J)) && (!(Q || !g(this, J) || !g(ot, J) || g(this, E) && this[E][J]) || Q);
|
|
1828
|
+
}, ht = function(X, J) {
|
|
1829
|
+
var Q = x(X), tt = k(J);
|
|
1830
|
+
if (Q !== H || !g(ot, tt) || g(q, tt)) {
|
|
1831
|
+
var st = at(Q, tt);
|
|
1832
|
+
return !st || !g(ot, tt) || g(Q, E) && Q[E][tt] || (st.enumerable = !0), st;
|
|
1833
|
+
}
|
|
1834
|
+
}, It = function(X) {
|
|
1835
|
+
var J = mt(x(X)), Q = [];
|
|
1836
|
+
return I(J, function(tt) {
|
|
1837
|
+
g(ot, tt) || g(v, tt) || dt(Q, tt);
|
|
1838
|
+
}), Q;
|
|
1839
|
+
}, Pt = function(X) {
|
|
1840
|
+
var J = X === H, Q = mt(J ? q : x(X)), tt = [];
|
|
1841
|
+
return I(Q, function(st) {
|
|
1842
|
+
!g(ot, st) || J && !g(H, st) || dt(tt, ot[st]);
|
|
1843
|
+
}), tt;
|
|
1844
|
+
};
|
|
1845
|
+
l || (F = function() {
|
|
1846
|
+
if (m(W, this))
|
|
1847
|
+
throw new it("Symbol is not a constructor");
|
|
1848
|
+
var X = arguments.length && arguments[0] !== void 0 ? P(arguments[0]) : void 0, J = S(X), Q = function(tt) {
|
|
1849
|
+
var st = this === void 0 ? n : this;
|
|
1850
|
+
st === H && r(Q, q, tt), g(st, E) && g(st[E], J) && (st[E][J] = !1);
|
|
1851
|
+
var Ct = O(1, tt);
|
|
1852
|
+
try {
|
|
1853
|
+
ft(st, J, Ct);
|
|
1854
|
+
} catch (At) {
|
|
1855
|
+
if (!(At instanceof Z))
|
|
1856
|
+
throw At;
|
|
1857
|
+
lt(st, J, Ct);
|
|
1858
|
+
}
|
|
1859
|
+
};
|
|
1860
|
+
return c && ct && ft(H, J, { configurable: !0, set: Q }), xt(J, X);
|
|
1861
|
+
}, U(W = F[$], "toString", function() {
|
|
1862
|
+
return L(this).tag;
|
|
1863
|
+
}), U(F, "withoutSetter", function(X) {
|
|
1864
|
+
return xt(S(X), X);
|
|
1865
|
+
}), z.f = wt, K.f = pt, N.f = gt, R.f = ht, B.f = T.f = It, _.f = Pt, s.f = function(X) {
|
|
1866
|
+
return xt(o(X), X);
|
|
1867
|
+
}, c && (Y(W, "description", { configurable: !0, get: function() {
|
|
1868
|
+
return L(this).description;
|
|
1869
|
+
} }), u || U(H, "propertyIsEnumerable", wt, { unsafe: !0 }))), e({ global: !0, constructor: !0, wrap: !0, forced: !l, sham: !l }, { Symbol: F }), I(j(bt), function(X) {
|
|
1870
|
+
d(X);
|
|
1871
|
+
}), e({ target: C, stat: !0, forced: !l }, { useSetter: function() {
|
|
1872
|
+
ct = !0;
|
|
1873
|
+
}, useSimple: function() {
|
|
1874
|
+
ct = !1;
|
|
1875
|
+
} }), e({ target: "Object", stat: !0, forced: !l, sham: !c }, { create: function(X, J) {
|
|
1876
|
+
return J === void 0 ? M(X) : gt(M(X), J);
|
|
1877
|
+
}, defineProperty: pt, defineProperties: gt, getOwnPropertyDescriptor: ht }), e({ target: "Object", stat: !0, forced: !l }, { getOwnPropertyNames: It }), f(), b(F, C), v[E] = !0;
|
|
1878
|
+
}, 6544: function(i, p, t) {
|
|
1879
|
+
var e = t(9989), n = t(7697), r = t(9037), a = t(8844), u = t(6812), c = t(9985), l = t(3622), h = t(4327), g = t(2148), m = t(8758), y = r.Symbol, x = y && y.prototype;
|
|
1880
|
+
if (n && c(y) && (!("description" in x) || y().description !== void 0)) {
|
|
1881
|
+
var k = {}, P = function() {
|
|
1882
|
+
var R = arguments.length < 1 || arguments[0] === void 0 ? void 0 : h(arguments[0]), K = l(x, this) ? new y(R) : R === void 0 ? y() : y(R);
|
|
1883
|
+
return R === "" && (k[K] = !0), K;
|
|
1884
|
+
};
|
|
1885
|
+
m(P, y), P.prototype = x, x.constructor = P;
|
|
1886
|
+
var O = String(y("description detection")) === "Symbol(description detection)", M = a(x.valueOf), j = a(x.toString), B = /^Symbol\((.*)\)[^)]+$/, T = a("".replace), _ = a("".slice);
|
|
1887
|
+
g(x, "description", { configurable: !0, get: function() {
|
|
1888
|
+
var R = M(this);
|
|
1889
|
+
if (u(k, R))
|
|
1890
|
+
return "";
|
|
1891
|
+
var K = j(R), N = O ? _(K, 7, -1) : T(K, B, "$1");
|
|
1892
|
+
return N === "" ? void 0 : N;
|
|
1893
|
+
} }), e({ global: !0, constructor: !0, forced: !0 }, { Symbol: P });
|
|
1894
|
+
}
|
|
1895
|
+
}, 3975: function(i, p, t) {
|
|
1896
|
+
var e = t(9989), n = t(6058), r = t(6812), a = t(4327), u = t(3430), c = t(6549), l = u("string-to-symbol-registry"), h = u("symbol-to-string-registry");
|
|
1897
|
+
e({ target: "Symbol", stat: !0, forced: !c }, { for: function(g) {
|
|
1898
|
+
var m = a(g);
|
|
1899
|
+
if (r(l, m))
|
|
1900
|
+
return l[m];
|
|
1901
|
+
var y = n("Symbol")(m);
|
|
1902
|
+
return l[m] = y, h[y] = m, y;
|
|
1903
|
+
} });
|
|
1904
|
+
}, 4254: function(i, p, t) {
|
|
1905
|
+
t(5405)("iterator");
|
|
1906
|
+
}, 9749: function(i, p, t) {
|
|
1907
|
+
t(7855), t(3975), t(1445), t(8324), t(9434);
|
|
1908
|
+
}, 1445: function(i, p, t) {
|
|
1909
|
+
var e = t(9989), n = t(6812), r = t(734), a = t(3691), u = t(3430), c = t(6549), l = u("symbol-to-string-registry");
|
|
1910
|
+
e({ target: "Symbol", stat: !0, forced: !c }, { keyFor: function(h) {
|
|
1911
|
+
if (!r(h))
|
|
1912
|
+
throw new TypeError(a(h) + " is not a symbol");
|
|
1913
|
+
if (n(l, h))
|
|
1914
|
+
return l[h];
|
|
1915
|
+
} });
|
|
1916
|
+
}, 9373: function(i, p, t) {
|
|
1917
|
+
var e = t(5405), n = t(3032);
|
|
1918
|
+
e("toPrimitive"), n();
|
|
1919
|
+
}, 9012: function(i, p, t) {
|
|
1920
|
+
t(9866);
|
|
1921
|
+
}, 7522: function(i, p, t) {
|
|
1922
|
+
var e = t(9037), n = t(6338), r = t(3265), a = t(7612), u = t(5773), c = function(h) {
|
|
1923
|
+
if (h && h.forEach !== a)
|
|
1924
|
+
try {
|
|
1925
|
+
u(h, "forEach", a);
|
|
1926
|
+
} catch {
|
|
1927
|
+
h.forEach = a;
|
|
1928
|
+
}
|
|
1929
|
+
};
|
|
1930
|
+
for (var l in n)
|
|
1931
|
+
n[l] && c(e[l] && e[l].prototype);
|
|
1932
|
+
c(r);
|
|
1933
|
+
}, 6265: function(i, p, t) {
|
|
1934
|
+
var e = t(9037), n = t(6338), r = t(3265), a = t(752), u = t(5773), c = t(4201), l = c("iterator"), h = c("toStringTag"), g = a.values, m = function(x, k) {
|
|
1935
|
+
if (x) {
|
|
1936
|
+
if (x[l] !== g)
|
|
1937
|
+
try {
|
|
1938
|
+
u(x, l, g);
|
|
1939
|
+
} catch {
|
|
1940
|
+
x[l] = g;
|
|
1941
|
+
}
|
|
1942
|
+
if (x[h] || u(x, h, k), n[k]) {
|
|
1943
|
+
for (var P in a)
|
|
1944
|
+
if (x[P] !== a[P])
|
|
1945
|
+
try {
|
|
1946
|
+
u(x, P, a[P]);
|
|
1947
|
+
} catch {
|
|
1948
|
+
x[P] = a[P];
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1953
|
+
for (var y in n)
|
|
1954
|
+
m(e[y] && e[y].prototype, y);
|
|
1955
|
+
m(r, "DOMTokenList");
|
|
1956
|
+
} }, yt = {};
|
|
1957
|
+
function V(i) {
|
|
1958
|
+
var p = yt[i];
|
|
1959
|
+
if (p !== void 0)
|
|
1960
|
+
return p.exports;
|
|
1961
|
+
var t = yt[i] = { exports: {} };
|
|
1962
|
+
return kt[i].call(t.exports, t, t.exports, V), t.exports;
|
|
1963
|
+
}
|
|
1964
|
+
V.d = function(i, p) {
|
|
1965
|
+
for (var t in p)
|
|
1966
|
+
V.o(p, t) && !V.o(i, t) && Object.defineProperty(i, t, { enumerable: !0, get: p[t] });
|
|
1967
|
+
}, V.g = function() {
|
|
1968
|
+
if (typeof globalThis == "object")
|
|
1969
|
+
return globalThis;
|
|
1970
|
+
try {
|
|
1971
|
+
return this || new Function("return this")();
|
|
1972
|
+
} catch {
|
|
1973
|
+
if (typeof window == "object")
|
|
1974
|
+
return window;
|
|
1975
|
+
}
|
|
1976
|
+
}(), V.o = function(i, p) {
|
|
1977
|
+
return Object.prototype.hasOwnProperty.call(i, p);
|
|
1978
|
+
}, V.r = function(i) {
|
|
1979
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(i, "__esModule", { value: !0 });
|
|
1980
|
+
};
|
|
1981
|
+
var Et = {};
|
|
1982
|
+
return function() {
|
|
1983
|
+
V.r(Et), V.d(Et, { SimpleKeyboard: function() {
|
|
1984
|
+
return Y;
|
|
1985
|
+
}, default: function() {
|
|
1986
|
+
return G;
|
|
1987
|
+
} }), V(8436), V(4043), V(7267), V(7195), V(4284), V(9873), V(228), V(2826), V(2506), V(6203), V(3994), V(9730), typeof Element > "u" || "remove" in Element.prototype || (Element.prototype.remove = function() {
|
|
1988
|
+
this.parentNode && this.parentNode.removeChild(this);
|
|
1989
|
+
}), typeof self < "u" && "document" in self && ((!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) && function(w) {
|
|
1990
|
+
if ("Element" in w) {
|
|
1991
|
+
var v = "classList", S = "prototype", o = w.Element[S], s = Object, d = String[S].trim || function() {
|
|
1992
|
+
return this.replace(/^\s+|\s+$/g, "");
|
|
1993
|
+
}, f = Array[S].indexOf || function(A) {
|
|
1994
|
+
for (var L = 0, H = this.length; L < H; L++)
|
|
1995
|
+
if (L in this && this[L] === A)
|
|
1996
|
+
return L;
|
|
1997
|
+
return -1;
|
|
1998
|
+
}, b = function(A, L) {
|
|
1999
|
+
this.name = A, this.code = DOMException[A], this.message = L;
|
|
2000
|
+
}, D = function(A, L) {
|
|
2001
|
+
if (L === "")
|
|
2002
|
+
throw new b("SYNTAX_ERR", "The token must not be empty.");
|
|
2003
|
+
if (/\s/.test(L))
|
|
2004
|
+
throw new b("INVALID_CHARACTER_ERR", "The token must not contain space characters.");
|
|
2005
|
+
return f.call(A, L);
|
|
2006
|
+
}, I = function(A) {
|
|
2007
|
+
for (var L = d.call(A.getAttribute("class") || ""), H = L ? L.split(/\s+/) : [], F = 0, W = H.length; F < W; F++)
|
|
2008
|
+
this.push(H[F]);
|
|
2009
|
+
this._updateClassName = function() {
|
|
2010
|
+
A.setAttribute("class", this.toString());
|
|
2011
|
+
};
|
|
2012
|
+
}, E = I[S] = [], C = function() {
|
|
2013
|
+
return new I(this);
|
|
2014
|
+
};
|
|
2015
|
+
if (b[S] = Error[S], E.item = function(A) {
|
|
2016
|
+
return this[A] || null;
|
|
2017
|
+
}, E.contains = function(A) {
|
|
2018
|
+
return ~D(this, A + "");
|
|
2019
|
+
}, E.add = function() {
|
|
2020
|
+
var A, L = arguments, H = 0, F = L.length, W = !1;
|
|
2021
|
+
do
|
|
2022
|
+
~D(this, A = L[H] + "") || (this.push(A), W = !0);
|
|
2023
|
+
while (++H < F);
|
|
2024
|
+
W && this._updateClassName();
|
|
2025
|
+
}, E.remove = function() {
|
|
2026
|
+
var A, L, H = arguments, F = 0, W = H.length, Z = !1;
|
|
2027
|
+
do
|
|
2028
|
+
for (L = D(this, A = H[F] + ""); ~L; )
|
|
2029
|
+
this.splice(L, 1), Z = !0, L = D(this, A);
|
|
2030
|
+
while (++F < W);
|
|
2031
|
+
Z && this._updateClassName();
|
|
2032
|
+
}, E.toggle = function(A, L) {
|
|
2033
|
+
var H = this.contains(A), F = H ? L !== !0 && "remove" : L !== !1 && "add";
|
|
2034
|
+
return F && this[F](A), L === !0 || L === !1 ? L : !H;
|
|
2035
|
+
}, E.replace = function(A, L) {
|
|
2036
|
+
var H = D(A + "");
|
|
2037
|
+
~H && (this.splice(H, 1, L), this._updateClassName());
|
|
2038
|
+
}, E.toString = function() {
|
|
2039
|
+
return this.join(" ");
|
|
2040
|
+
}, s.defineProperty) {
|
|
2041
|
+
var $ = { get: C, enumerable: !0, configurable: !0 };
|
|
2042
|
+
try {
|
|
2043
|
+
s.defineProperty(o, v, $);
|
|
2044
|
+
} catch (A) {
|
|
2045
|
+
A.number !== void 0 && A.number !== -2146823252 || ($.enumerable = !1, s.defineProperty(o, v, $));
|
|
2046
|
+
}
|
|
2047
|
+
} else
|
|
2048
|
+
s[S].__defineGetter__ && o.__defineGetter__(v, C);
|
|
2049
|
+
}
|
|
2050
|
+
}(self), function() {
|
|
2051
|
+
var w = document.createElement("_");
|
|
2052
|
+
if (w.classList.add("c1", "c2"), !w.classList.contains("c2")) {
|
|
2053
|
+
var v = function(o) {
|
|
2054
|
+
var s = DOMTokenList.prototype[o];
|
|
2055
|
+
DOMTokenList.prototype[o] = function(d) {
|
|
2056
|
+
var f, b = arguments.length;
|
|
2057
|
+
for (f = 0; f < b; f++)
|
|
2058
|
+
d = arguments[f], s.call(this, d);
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
v("add"), v("remove");
|
|
2062
|
+
}
|
|
2063
|
+
if (w.classList.toggle("c3", !1), w.classList.contains("c3")) {
|
|
2064
|
+
var S = DOMTokenList.prototype.toggle;
|
|
2065
|
+
DOMTokenList.prototype.toggle = function(o, s) {
|
|
2066
|
+
return 1 in arguments && !this.contains(o) == !s ? s : S.call(this, o);
|
|
2067
|
+
};
|
|
2068
|
+
}
|
|
2069
|
+
"replace" in document.createElement("_").classList || (DOMTokenList.prototype.replace = function(o, s) {
|
|
2070
|
+
var d = this.toString().split(" "), f = d.indexOf(o + "");
|
|
2071
|
+
~f && (d = d.slice(f), this.remove.apply(this, d), this.add(s), this.add.apply(this, d.slice(1)));
|
|
2072
|
+
}), w = null;
|
|
2073
|
+
}()), V(8077), V(4338), V(9358), V(2003), V(9012), V(5137), V(6801), V(3843), V(7522), V(429), V(886), V(7049), V(1694), V(9373), V(9903), V(9749), V(6544), V(9288), V(1919), V(9474), V(4254), V(752), V(6265), V(5765), V(2462), V(278), V(9997);
|
|
2074
|
+
function i(w) {
|
|
2075
|
+
return function(v) {
|
|
2076
|
+
if (Array.isArray(v))
|
|
2077
|
+
return t(v);
|
|
2078
|
+
}(w) || function(v) {
|
|
2079
|
+
if (typeof Symbol < "u" && v[Symbol.iterator] != null || v["@@iterator"] != null)
|
|
2080
|
+
return Array.from(v);
|
|
2081
|
+
}(w) || p(w) || function() {
|
|
2082
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2083
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2084
|
+
}();
|
|
2085
|
+
}
|
|
2086
|
+
function p(w, v) {
|
|
2087
|
+
if (w) {
|
|
2088
|
+
if (typeof w == "string")
|
|
2089
|
+
return t(w, v);
|
|
2090
|
+
var S = Object.prototype.toString.call(w).slice(8, -1);
|
|
2091
|
+
return S === "Object" && w.constructor && (S = w.constructor.name), S === "Map" || S === "Set" ? Array.from(w) : S === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S) ? t(w, v) : void 0;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
function t(w, v) {
|
|
2095
|
+
(v == null || v > w.length) && (v = w.length);
|
|
2096
|
+
for (var S = 0, o = new Array(v); S < v; S++)
|
|
2097
|
+
o[S] = w[S];
|
|
2098
|
+
return o;
|
|
2099
|
+
}
|
|
2100
|
+
function e(w) {
|
|
2101
|
+
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2102
|
+
return typeof v;
|
|
2103
|
+
} : function(v) {
|
|
2104
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2105
|
+
}, e(w);
|
|
2106
|
+
}
|
|
2107
|
+
function n(w, v) {
|
|
2108
|
+
for (var S = 0; S < v.length; S++) {
|
|
2109
|
+
var o = v[S];
|
|
2110
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, a(o.key), o);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
function r(w, v, S) {
|
|
2114
|
+
return (v = a(v)) in w ? Object.defineProperty(w, v, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = S, w;
|
|
2115
|
+
}
|
|
2116
|
+
function a(w) {
|
|
2117
|
+
var v = function(S, o) {
|
|
2118
|
+
if (e(S) !== "object" || S === null)
|
|
2119
|
+
return S;
|
|
2120
|
+
var s = S[Symbol.toPrimitive];
|
|
2121
|
+
if (s !== void 0) {
|
|
2122
|
+
var d = s.call(S, o || "default");
|
|
2123
|
+
if (e(d) !== "object")
|
|
2124
|
+
return d;
|
|
2125
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2126
|
+
}
|
|
2127
|
+
return (o === "string" ? String : Number)(S);
|
|
2128
|
+
}(w, "string");
|
|
2129
|
+
return e(v) === "symbol" ? v : String(v);
|
|
2130
|
+
}
|
|
2131
|
+
var u = function() {
|
|
2132
|
+
function w(s) {
|
|
2133
|
+
var d = s.getOptions, f = s.getCaretPosition, b = s.getCaretPositionEnd, D = s.dispatch;
|
|
2134
|
+
(function(I, E) {
|
|
2135
|
+
if (!(I instanceof E))
|
|
2136
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2137
|
+
})(this, w), r(this, "getOptions", void 0), r(this, "getCaretPosition", void 0), r(this, "getCaretPositionEnd", void 0), r(this, "dispatch", void 0), r(this, "maxLengthReached", void 0), r(this, "isStandardButton", function(I) {
|
|
2138
|
+
return I && !(I[0] === "{" && I[I.length - 1] === "}");
|
|
2139
|
+
}), this.getOptions = d, this.getCaretPosition = f, this.getCaretPositionEnd = b, this.dispatch = D, w.bindMethods(w, this);
|
|
2140
|
+
}
|
|
2141
|
+
var v, S, o;
|
|
2142
|
+
return v = w, S = [{ key: "getButtonType", value: function(s) {
|
|
2143
|
+
return s.includes("{") && s.includes("}") && s !== "{//}" ? "functionBtn" : "standardBtn";
|
|
2144
|
+
} }, { key: "getButtonClass", value: function(s) {
|
|
2145
|
+
var d = this.getButtonType(s), f = s.replace("{", "").replace("}", ""), b = "";
|
|
2146
|
+
return d !== "standardBtn" && (b = " hg-button-".concat(f)), "hg-".concat(d).concat(b);
|
|
2147
|
+
} }, { key: "getDefaultDiplay", value: function() {
|
|
2148
|
+
return { "{bksp}": "backspace", "{backspace}": "backspace", "{enter}": "< enter", "{shift}": "shift", "{shiftleft}": "shift", "{shiftright}": "shift", "{alt}": "alt", "{s}": "shift", "{tab}": "tab", "{lock}": "caps", "{capslock}": "caps", "{accept}": "Submit", "{space}": " ", "{//}": " ", "{esc}": "esc", "{escape}": "esc", "{f1}": "f1", "{f2}": "f2", "{f3}": "f3", "{f4}": "f4", "{f5}": "f5", "{f6}": "f6", "{f7}": "f7", "{f8}": "f8", "{f9}": "f9", "{f10}": "f10", "{f11}": "f11", "{f12}": "f12", "{numpaddivide}": "/", "{numlock}": "lock", "{arrowup}": "↑", "{arrowleft}": "←", "{arrowdown}": "↓", "{arrowright}": "→", "{prtscr}": "print", "{scrolllock}": "scroll", "{pause}": "pause", "{insert}": "ins", "{home}": "home", "{pageup}": "up", "{delete}": "del", "{forwarddelete}": "del", "{end}": "end", "{pagedown}": "down", "{numpadmultiply}": "*", "{numpadsubtract}": "-", "{numpadadd}": "+", "{numpadenter}": "enter", "{period}": ".", "{numpaddecimal}": ".", "{numpad0}": "0", "{numpad1}": "1", "{numpad2}": "2", "{numpad3}": "3", "{numpad4}": "4", "{numpad5}": "5", "{numpad6}": "6", "{numpad7}": "7", "{numpad8}": "8", "{numpad9}": "9" };
|
|
2149
|
+
} }, { key: "getButtonDisplayName", value: function(s, d) {
|
|
2150
|
+
return (d = arguments.length > 2 && arguments[2] !== void 0 && arguments[2] ? Object.assign({}, this.getDefaultDiplay(), d) : d || this.getDefaultDiplay())[s] || s;
|
|
2151
|
+
} }, { key: "getUpdatedInput", value: function(s, d, f) {
|
|
2152
|
+
var b = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : f, D = arguments.length > 4 && arguments[4] !== void 0 && arguments[4], I = this.getOptions(), E = [f, b, D], C = d;
|
|
2153
|
+
return (s === "{bksp}" || s === "{backspace}") && C.length > 0 ? C = this.removeAt.apply(this, [C].concat(E)) : (s === "{delete}" || s === "{forwarddelete}") && C.length > 0 ? C = this.removeForwardsAt.apply(this, [C].concat(E)) : s === "{space}" ? C = this.addStringAt.apply(this, [C, " "].concat(E)) : s !== "{tab}" || typeof I.tabCharOnTab == "boolean" && I.tabCharOnTab === !1 ? s !== "{enter}" && s !== "{numpadenter}" || !I.newLineOnEnter ? s.includes("numpad") && Number.isInteger(Number(s[s.length - 2])) ? C = this.addStringAt.apply(this, [C, s[s.length - 2]].concat(E)) : s === "{numpaddivide}" ? C = this.addStringAt.apply(this, [C, "/"].concat(E)) : s === "{numpadmultiply}" ? C = this.addStringAt.apply(this, [C, "*"].concat(E)) : s === "{numpadsubtract}" ? C = this.addStringAt.apply(this, [C, "-"].concat(E)) : s === "{numpadadd}" ? C = this.addStringAt.apply(this, [C, "+"].concat(E)) : s === "{numpaddecimal}" ? C = this.addStringAt.apply(this, [C, "."].concat(E)) : s === "{" || s === "}" ? C = this.addStringAt.apply(this, [C, s].concat(E)) : s.includes("{") || s.includes("}") || (C = this.addStringAt.apply(this, [C, s].concat(E))) : C = this.addStringAt.apply(this, [C, `
|
|
2154
|
+
`].concat(E)) : C = this.addStringAt.apply(this, [C, " "].concat(E)), I.debug && console.log("Input will be: " + C), C;
|
|
2155
|
+
} }, { key: "updateCaretPos", value: function(s) {
|
|
2156
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], f = this.updateCaretPosAction(s, d);
|
|
2157
|
+
this.dispatch(function(b) {
|
|
2158
|
+
b.setCaretPosition(f);
|
|
2159
|
+
});
|
|
2160
|
+
} }, { key: "updateCaretPosAction", value: function(s) {
|
|
2161
|
+
var d = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], f = this.getOptions(), b = this.getCaretPosition();
|
|
2162
|
+
return b != null && (d ? b > 0 && (b -= s) : b += s), f.debug && console.log("Caret at:", b), b;
|
|
2163
|
+
} }, { key: "addStringAt", value: function(s, d) {
|
|
2164
|
+
var f, b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, D = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s.length, I = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
|
|
2165
|
+
return b || b === 0 ? (f = [s.slice(0, b), d, s.slice(D)].join(""), this.isMaxLengthReached() || I && this.updateCaretPos(d.length)) : f = s + d, f;
|
|
2166
|
+
} }, { key: "removeAt", value: function(s) {
|
|
2167
|
+
var d, f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : s.length, b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, D = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
2168
|
+
if (f === 0 && b === 0)
|
|
2169
|
+
return s;
|
|
2170
|
+
if (f === b) {
|
|
2171
|
+
var I = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g;
|
|
2172
|
+
f && f >= 0 ? s.substring(f - 2, f).match(I) ? (d = s.substr(0, f - 2) + s.substr(f), D && this.updateCaretPos(2, !0)) : (d = s.substr(0, f - 1) + s.substr(f), D && this.updateCaretPos(1, !0)) : s.slice(-2).match(I) ? (d = s.slice(0, -2), D && this.updateCaretPos(2, !0)) : (d = s.slice(0, -1), D && this.updateCaretPos(1, !0));
|
|
2173
|
+
} else
|
|
2174
|
+
d = s.slice(0, f) + s.slice(b), D && this.dispatch(function(E) {
|
|
2175
|
+
E.setCaretPosition(f);
|
|
2176
|
+
});
|
|
2177
|
+
return d;
|
|
2178
|
+
} }, { key: "removeForwardsAt", value: function(s) {
|
|
2179
|
+
var d, f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : s.length, b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : s.length, D = arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
2180
|
+
return s != null && s.length && f !== null ? (f === b ? d = s.substring(f, f + 2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g) ? s.substr(0, f) + s.substr(f + 2) : s.substr(0, f) + s.substr(f + 1) : (d = s.slice(0, f) + s.slice(b), D && this.dispatch(function(I) {
|
|
2181
|
+
I.setCaretPosition(f);
|
|
2182
|
+
})), d) : s;
|
|
2183
|
+
} }, { key: "handleMaxLength", value: function(s, d) {
|
|
2184
|
+
var f = this.getOptions(), b = f.maxLength, D = s[f.inputName || "default"], I = d.length - 1 >= b;
|
|
2185
|
+
if (d.length <= D.length)
|
|
2186
|
+
return !1;
|
|
2187
|
+
if (Number.isInteger(b))
|
|
2188
|
+
return f.debug && console.log("maxLength (num) reached:", I), I ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
|
|
2189
|
+
if (e(b) === "object") {
|
|
2190
|
+
var E = d.length - 1 >= b[f.inputName || "default"];
|
|
2191
|
+
return f.debug && console.log("maxLength (obj) reached:", E), E ? (this.maxLengthReached = !0, !0) : (this.maxLengthReached = !1, !1);
|
|
2192
|
+
}
|
|
2193
|
+
} }, { key: "isMaxLengthReached", value: function() {
|
|
2194
|
+
return !!this.maxLengthReached;
|
|
2195
|
+
} }, { key: "isTouchDevice", value: function() {
|
|
2196
|
+
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
2197
|
+
} }, { key: "pointerEventsSupported", value: function() {
|
|
2198
|
+
return !!window.PointerEvent;
|
|
2199
|
+
} }, { key: "camelCase", value: function(s) {
|
|
2200
|
+
return s ? s.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(d, f) {
|
|
2201
|
+
return f.length ? d + f[0].toUpperCase() + f.slice(1) : d;
|
|
2202
|
+
}) : "";
|
|
2203
|
+
} }, { key: "chunkArray", value: function(s, d) {
|
|
2204
|
+
return i(Array(Math.ceil(s.length / d))).map(function(f, b) {
|
|
2205
|
+
return s.slice(d * b, d + d * b);
|
|
2206
|
+
});
|
|
2207
|
+
} }, { key: "escapeRegex", value: function(s) {
|
|
2208
|
+
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
2209
|
+
} }, { key: "getRtlOffset", value: function(s, d) {
|
|
2210
|
+
var f = s, b = d.indexOf("");
|
|
2211
|
+
return b < s && b != -1 && f--, d.indexOf("") < s && b != -1 && f--, f < 0 ? 0 : f;
|
|
2212
|
+
} }], o = [{ key: "bindMethods", value: function(s, d) {
|
|
2213
|
+
var f, b = function(I, E) {
|
|
2214
|
+
var C = typeof Symbol < "u" && I[Symbol.iterator] || I["@@iterator"];
|
|
2215
|
+
if (!C) {
|
|
2216
|
+
if (Array.isArray(I) || (C = p(I)) || E && I && typeof I.length == "number") {
|
|
2217
|
+
C && (I = C);
|
|
2218
|
+
var $ = 0, A = function() {
|
|
2219
|
+
};
|
|
2220
|
+
return { s: A, n: function() {
|
|
2221
|
+
return $ >= I.length ? { done: !0 } : { done: !1, value: I[$++] };
|
|
2222
|
+
}, e: function(W) {
|
|
2223
|
+
throw W;
|
|
2224
|
+
}, f: A };
|
|
2225
|
+
}
|
|
2226
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2227
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2228
|
+
}
|
|
2229
|
+
var L, H = !0, F = !1;
|
|
2230
|
+
return { s: function() {
|
|
2231
|
+
C = C.call(I);
|
|
2232
|
+
}, n: function() {
|
|
2233
|
+
var W = C.next();
|
|
2234
|
+
return H = W.done, W;
|
|
2235
|
+
}, e: function(W) {
|
|
2236
|
+
F = !0, L = W;
|
|
2237
|
+
}, f: function() {
|
|
2238
|
+
try {
|
|
2239
|
+
H || C.return == null || C.return();
|
|
2240
|
+
} finally {
|
|
2241
|
+
if (F)
|
|
2242
|
+
throw L;
|
|
2243
|
+
}
|
|
2244
|
+
} };
|
|
2245
|
+
}(Object.getOwnPropertyNames(s.prototype));
|
|
2246
|
+
try {
|
|
2247
|
+
for (b.s(); !(f = b.n()).done; ) {
|
|
2248
|
+
var D = f.value;
|
|
2249
|
+
D === "constructor" || D === "bindMethods" || (d[D] = d[D].bind(d));
|
|
2250
|
+
}
|
|
2251
|
+
} catch (I) {
|
|
2252
|
+
b.e(I);
|
|
2253
|
+
} finally {
|
|
2254
|
+
b.f();
|
|
2255
|
+
}
|
|
2256
|
+
} }], S && n(v.prototype, S), o && n(v, o), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2257
|
+
}();
|
|
2258
|
+
r(u, "noop", function() {
|
|
2259
|
+
});
|
|
2260
|
+
var c = u;
|
|
2261
|
+
function l(w) {
|
|
2262
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2263
|
+
return typeof v;
|
|
2264
|
+
} : function(v) {
|
|
2265
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2266
|
+
}, l(w);
|
|
2267
|
+
}
|
|
2268
|
+
function h(w, v) {
|
|
2269
|
+
for (var S = 0; S < v.length; S++) {
|
|
2270
|
+
var o = v[S];
|
|
2271
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, m(o.key), o);
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
function g(w, v, S) {
|
|
2275
|
+
return (v = m(v)) in w ? Object.defineProperty(w, v, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = S, w;
|
|
2276
|
+
}
|
|
2277
|
+
function m(w) {
|
|
2278
|
+
var v = function(S, o) {
|
|
2279
|
+
if (l(S) !== "object" || S === null)
|
|
2280
|
+
return S;
|
|
2281
|
+
var s = S[Symbol.toPrimitive];
|
|
2282
|
+
if (s !== void 0) {
|
|
2283
|
+
var d = s.call(S, o || "default");
|
|
2284
|
+
if (l(d) !== "object")
|
|
2285
|
+
return d;
|
|
2286
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2287
|
+
}
|
|
2288
|
+
return (o === "string" ? String : Number)(S);
|
|
2289
|
+
}(w, "string");
|
|
2290
|
+
return l(v) === "symbol" ? v : String(v);
|
|
2291
|
+
}
|
|
2292
|
+
var y = function() {
|
|
2293
|
+
function w(o) {
|
|
2294
|
+
var s = this, d = o.dispatch, f = o.getOptions;
|
|
2295
|
+
(function(b, D) {
|
|
2296
|
+
if (!(b instanceof D))
|
|
2297
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2298
|
+
})(this, w), g(this, "getOptions", void 0), g(this, "dispatch", void 0), g(this, "isMofifierKey", function(b) {
|
|
2299
|
+
return b.altKey || b.ctrlKey || b.shiftKey || ["Tab", "CapsLock", "Esc", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].includes(b.code || b.key || s.keyCodeToKey(b == null ? void 0 : b.keyCode));
|
|
2300
|
+
}), this.dispatch = d, this.getOptions = f, c.bindMethods(w, this);
|
|
2301
|
+
}
|
|
2302
|
+
var v, S;
|
|
2303
|
+
return v = w, (S = [{ key: "handleHighlightKeyDown", value: function(o) {
|
|
2304
|
+
var s = this.getOptions();
|
|
2305
|
+
s.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(o) && (o.preventDefault(), o.stopImmediatePropagation());
|
|
2306
|
+
var d = this.getSimpleKeyboardLayoutKey(o);
|
|
2307
|
+
this.dispatch(function(f) {
|
|
2308
|
+
var b, D, I = f.getButtonElement(d), E = f.getButtonElement("{".concat(d, "}"));
|
|
2309
|
+
if (I)
|
|
2310
|
+
b = I, D = d;
|
|
2311
|
+
else {
|
|
2312
|
+
if (!E)
|
|
2313
|
+
return;
|
|
2314
|
+
b = E, D = "{".concat(d, "}");
|
|
2315
|
+
}
|
|
2316
|
+
var C, $ = function(L) {
|
|
2317
|
+
L.style.background = s.physicalKeyboardHighlightBgColor || "#dadce4", L.style.color = s.physicalKeyboardHighlightTextColor || "black";
|
|
2318
|
+
};
|
|
2319
|
+
if (b)
|
|
2320
|
+
if (Array.isArray(b)) {
|
|
2321
|
+
if (b.forEach(function(L) {
|
|
2322
|
+
return $(L);
|
|
2323
|
+
}), s.physicalKeyboardHighlightPress)
|
|
2324
|
+
if (s.physicalKeyboardHighlightPressUsePointerEvents)
|
|
2325
|
+
(C = b[0]) === null || C === void 0 || C.onpointerdown();
|
|
2326
|
+
else if (s.physicalKeyboardHighlightPressUseClick) {
|
|
2327
|
+
var A;
|
|
2328
|
+
(A = b[0]) === null || A === void 0 || A.click();
|
|
2329
|
+
} else
|
|
2330
|
+
f.handleButtonClicked(D, o);
|
|
2331
|
+
} else
|
|
2332
|
+
$(b), s.physicalKeyboardHighlightPress && (s.physicalKeyboardHighlightPressUsePointerEvents ? b.onpointerdown() : s.physicalKeyboardHighlightPressUseClick ? b.click() : f.handleButtonClicked(D, o));
|
|
2333
|
+
});
|
|
2334
|
+
} }, { key: "handleHighlightKeyUp", value: function(o) {
|
|
2335
|
+
var s = this.getOptions();
|
|
2336
|
+
s.physicalKeyboardHighlightPreventDefault && this.isMofifierKey(o) && (o.preventDefault(), o.stopImmediatePropagation());
|
|
2337
|
+
var d = this.getSimpleKeyboardLayoutKey(o);
|
|
2338
|
+
this.dispatch(function(f) {
|
|
2339
|
+
var b, D = f.getButtonElement(d) || f.getButtonElement("{".concat(d, "}")), I = function(E) {
|
|
2340
|
+
E.removeAttribute && E.removeAttribute("style");
|
|
2341
|
+
};
|
|
2342
|
+
D && (Array.isArray(D) ? (D.forEach(function(E) {
|
|
2343
|
+
return I(E);
|
|
2344
|
+
}), s.physicalKeyboardHighlightPressUsePointerEvents && ((b = D[0]) === null || b === void 0 || b.onpointerup())) : (I(D), s.physicalKeyboardHighlightPressUsePointerEvents && D.onpointerup()));
|
|
2345
|
+
});
|
|
2346
|
+
} }, { key: "getSimpleKeyboardLayoutKey", value: function(o) {
|
|
2347
|
+
var s, d = "", f = o.code || o.key || this.keyCodeToKey(o == null ? void 0 : o.keyCode);
|
|
2348
|
+
return (d = f != null && f.includes("Numpad") || f != null && f.includes("Shift") || f != null && f.includes("Space") || f != null && f.includes("Backspace") || f != null && f.includes("Control") || f != null && f.includes("Alt") || f != null && f.includes("Meta") ? o.code || "" : o.key || this.keyCodeToKey(o == null ? void 0 : o.keyCode) || "").length > 1 ? (s = d) === null || s === void 0 ? void 0 : s.toLowerCase() : d;
|
|
2349
|
+
} }, { key: "keyCodeToKey", value: function(o) {
|
|
2350
|
+
return { 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 48: "0", 49: "1", 50: "2", 51: "3", 52: "4", 53: "5", 54: "6", 55: "7", 56: "8", 57: "9", 65: "A", 66: "B", 67: "C", 68: "D", 69: "E", 70: "F", 71: "G", 72: "H", 73: "I", 74: "J", 75: "K", 76: "L", 77: "M", 78: "N", 79: "O", 80: "P", 81: "Q", 82: "R", 83: "S", 84: "T", 85: "U", 86: "V", 87: "W", 88: "X", 89: "Y", 90: "Z", 91: "Meta", 96: "Numpad0", 97: "Numpad1", 98: "Numpad2", 99: "Numpad3", 100: "Numpad4", 101: "Numpad5", 102: "Numpad6", 103: "Numpad7", 104: "Numpad8", 105: "Numpad9", 106: "NumpadMultiply", 107: "NumpadAdd", 109: "NumpadSubtract", 110: "NumpadDecimal", 111: "NumpadDivide", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }[o] || "";
|
|
2351
|
+
} }]) && h(v.prototype, S), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2352
|
+
}();
|
|
2353
|
+
function x(w) {
|
|
2354
|
+
return x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2355
|
+
return typeof v;
|
|
2356
|
+
} : function(v) {
|
|
2357
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2358
|
+
}, x(w);
|
|
2359
|
+
}
|
|
2360
|
+
function k(w, v) {
|
|
2361
|
+
for (var S = 0; S < v.length; S++) {
|
|
2362
|
+
var o = v[S];
|
|
2363
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, O(o.key), o);
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
function P(w, v, S) {
|
|
2367
|
+
return (v = O(v)) in w ? Object.defineProperty(w, v, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = S, w;
|
|
2368
|
+
}
|
|
2369
|
+
function O(w) {
|
|
2370
|
+
var v = function(S, o) {
|
|
2371
|
+
if (x(S) !== "object" || S === null)
|
|
2372
|
+
return S;
|
|
2373
|
+
var s = S[Symbol.toPrimitive];
|
|
2374
|
+
if (s !== void 0) {
|
|
2375
|
+
var d = s.call(S, o || "default");
|
|
2376
|
+
if (x(d) !== "object")
|
|
2377
|
+
return d;
|
|
2378
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2379
|
+
}
|
|
2380
|
+
return (o === "string" ? String : Number)(S);
|
|
2381
|
+
}(w, "string");
|
|
2382
|
+
return x(v) === "symbol" ? v : String(v);
|
|
2383
|
+
}
|
|
2384
|
+
var M = function() {
|
|
2385
|
+
function w(o) {
|
|
2386
|
+
var s = o.utilities, d = o.options;
|
|
2387
|
+
(function(f, b) {
|
|
2388
|
+
if (!(f instanceof b))
|
|
2389
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2390
|
+
})(this, w), P(this, "utilities", void 0), P(this, "options", void 0), P(this, "candidateBoxElement", void 0), P(this, "pageIndex", 0), P(this, "pageSize", void 0), this.utilities = s, this.options = d, c.bindMethods(w, this), this.pageSize = this.utilities.getOptions().layoutCandidatesPageSize || 5;
|
|
2391
|
+
}
|
|
2392
|
+
var v, S;
|
|
2393
|
+
return v = w, S = [{ key: "destroy", value: function() {
|
|
2394
|
+
this.candidateBoxElement && (this.candidateBoxElement.remove(), this.pageIndex = 0);
|
|
2395
|
+
} }, { key: "show", value: function(o) {
|
|
2396
|
+
var s = this, d = o.candidateValue, f = o.targetElement, b = o.onSelect;
|
|
2397
|
+
if (d && d.length) {
|
|
2398
|
+
var D = this.utilities.chunkArray(d.split(" "), this.pageSize);
|
|
2399
|
+
this.renderPage({ candidateListPages: D, targetElement: f, pageIndex: this.pageIndex, nbPages: D.length, onItemSelected: function(I, E) {
|
|
2400
|
+
b(I, E), s.destroy();
|
|
2401
|
+
} });
|
|
2402
|
+
}
|
|
2403
|
+
} }, { key: "renderPage", value: function(o) {
|
|
2404
|
+
var s, d = this, f = o.candidateListPages, b = o.targetElement, D = o.pageIndex, I = o.nbPages, E = o.onItemSelected;
|
|
2405
|
+
(s = this.candidateBoxElement) === null || s === void 0 || s.remove(), this.candidateBoxElement = document.createElement("div"), this.candidateBoxElement.className = "hg-candidate-box";
|
|
2406
|
+
var C = document.createElement("ul");
|
|
2407
|
+
C.className = "hg-candidate-box-list", f[D].forEach(function(Z) {
|
|
2408
|
+
var it, et = document.createElement("li"), at = function() {
|
|
2409
|
+
var rt = new (d.options.useTouchEvents ? TouchEvent : MouseEvent)("click");
|
|
2410
|
+
return Object.defineProperty(rt, "target", { value: et }), rt;
|
|
2411
|
+
};
|
|
2412
|
+
et.className = "hg-candidate-box-list-item", et.innerHTML = ((it = d.options.display) === null || it === void 0 ? void 0 : it[Z]) || Z, d.options.useTouchEvents ? et.ontouchstart = function(rt) {
|
|
2413
|
+
return E(Z, rt || at());
|
|
2414
|
+
} : et.onclick = function() {
|
|
2415
|
+
var rt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : at();
|
|
2416
|
+
return E(Z, rt);
|
|
2417
|
+
}, C.appendChild(et);
|
|
2418
|
+
});
|
|
2419
|
+
var $ = D > 0, A = document.createElement("div");
|
|
2420
|
+
A.classList.add("hg-candidate-box-prev"), $ && A.classList.add("hg-candidate-box-btn-active");
|
|
2421
|
+
var L = function() {
|
|
2422
|
+
$ && d.renderPage({ candidateListPages: f, targetElement: b, pageIndex: D - 1, nbPages: I, onItemSelected: E });
|
|
2423
|
+
};
|
|
2424
|
+
this.options.useTouchEvents ? A.ontouchstart = L : A.onclick = L, this.candidateBoxElement.appendChild(A), this.candidateBoxElement.appendChild(C);
|
|
2425
|
+
var H = D < I - 1, F = document.createElement("div");
|
|
2426
|
+
F.classList.add("hg-candidate-box-next"), H && F.classList.add("hg-candidate-box-btn-active");
|
|
2427
|
+
var W = function() {
|
|
2428
|
+
H && d.renderPage({ candidateListPages: f, targetElement: b, pageIndex: D + 1, nbPages: I, onItemSelected: E });
|
|
2429
|
+
};
|
|
2430
|
+
this.options.useTouchEvents ? F.ontouchstart = W : F.onclick = W, this.candidateBoxElement.appendChild(F), b.prepend(this.candidateBoxElement);
|
|
2431
|
+
} }], S && k(v.prototype, S), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2432
|
+
}(), j = M;
|
|
2433
|
+
function B(w) {
|
|
2434
|
+
return function(v) {
|
|
2435
|
+
if (Array.isArray(v))
|
|
2436
|
+
return T(v);
|
|
2437
|
+
}(w) || function(v) {
|
|
2438
|
+
if (typeof Symbol < "u" && v[Symbol.iterator] != null || v["@@iterator"] != null)
|
|
2439
|
+
return Array.from(v);
|
|
2440
|
+
}(w) || function(v, S) {
|
|
2441
|
+
if (v) {
|
|
2442
|
+
if (typeof v == "string")
|
|
2443
|
+
return T(v, S);
|
|
2444
|
+
var o = Object.prototype.toString.call(v).slice(8, -1);
|
|
2445
|
+
if (o === "Object" && v.constructor && (o = v.constructor.name), o === "Map" || o === "Set")
|
|
2446
|
+
return Array.from(v);
|
|
2447
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
|
|
2448
|
+
return T(v, S);
|
|
2449
|
+
}
|
|
2450
|
+
}(w) || function() {
|
|
2451
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2452
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2453
|
+
}();
|
|
2454
|
+
}
|
|
2455
|
+
function T(w, v) {
|
|
2456
|
+
(v == null || v > w.length) && (v = w.length);
|
|
2457
|
+
for (var S = 0, o = new Array(v); S < v; S++)
|
|
2458
|
+
o[S] = w[S];
|
|
2459
|
+
return o;
|
|
2460
|
+
}
|
|
2461
|
+
function _(w) {
|
|
2462
|
+
return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
2463
|
+
return typeof v;
|
|
2464
|
+
} : function(v) {
|
|
2465
|
+
return v && typeof Symbol == "function" && v.constructor === Symbol && v !== Symbol.prototype ? "symbol" : typeof v;
|
|
2466
|
+
}, _(w);
|
|
2467
|
+
}
|
|
2468
|
+
function R(w, v) {
|
|
2469
|
+
var S = Object.keys(w);
|
|
2470
|
+
if (Object.getOwnPropertySymbols) {
|
|
2471
|
+
var o = Object.getOwnPropertySymbols(w);
|
|
2472
|
+
v && (o = o.filter(function(s) {
|
|
2473
|
+
return Object.getOwnPropertyDescriptor(w, s).enumerable;
|
|
2474
|
+
})), S.push.apply(S, o);
|
|
2475
|
+
}
|
|
2476
|
+
return S;
|
|
2477
|
+
}
|
|
2478
|
+
function K(w, v) {
|
|
2479
|
+
for (var S = 0; S < v.length; S++) {
|
|
2480
|
+
var o = v[S];
|
|
2481
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(w, z(o.key), o);
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
function N(w, v, S) {
|
|
2485
|
+
return (v = z(v)) in w ? Object.defineProperty(w, v, { value: S, enumerable: !0, configurable: !0, writable: !0 }) : w[v] = S, w;
|
|
2486
|
+
}
|
|
2487
|
+
function z(w) {
|
|
2488
|
+
var v = function(S, o) {
|
|
2489
|
+
if (_(S) !== "object" || S === null)
|
|
2490
|
+
return S;
|
|
2491
|
+
var s = S[Symbol.toPrimitive];
|
|
2492
|
+
if (s !== void 0) {
|
|
2493
|
+
var d = s.call(S, o || "default");
|
|
2494
|
+
if (_(d) !== "object")
|
|
2495
|
+
return d;
|
|
2496
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2497
|
+
}
|
|
2498
|
+
return (o === "string" ? String : Number)(S);
|
|
2499
|
+
}(w, "string");
|
|
2500
|
+
return _(v) === "symbol" ? v : String(v);
|
|
2501
|
+
}
|
|
2502
|
+
var U = function() {
|
|
2503
|
+
function w(o, s) {
|
|
2504
|
+
var d = this;
|
|
2505
|
+
if (function(A, L) {
|
|
2506
|
+
if (!(A instanceof L))
|
|
2507
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2508
|
+
}(this, w), N(this, "input", void 0), N(this, "options", void 0), N(this, "utilities", void 0), N(this, "caretPosition", void 0), N(this, "caretPositionEnd", void 0), N(this, "keyboardDOM", void 0), N(this, "keyboardPluginClasses", void 0), N(this, "keyboardDOMClass", void 0), N(this, "buttonElements", void 0), N(this, "currentInstanceName", void 0), N(this, "allKeyboardInstances", void 0), N(this, "keyboardInstanceNames", void 0), N(this, "isFirstKeyboardInstance", void 0), N(this, "physicalKeyboard", void 0), N(this, "modules", void 0), N(this, "activeButtonClass", void 0), N(this, "holdInteractionTimeout", void 0), N(this, "holdTimeout", void 0), N(this, "isMouseHold", void 0), N(this, "initialized", void 0), N(this, "candidateBox", void 0), N(this, "keyboardRowsDOM", void 0), N(this, "defaultName", "default"), N(this, "activeInputElement", null), N(this, "handleParams", function(A, L) {
|
|
2509
|
+
var H, F, W;
|
|
2510
|
+
if (typeof A == "string")
|
|
2511
|
+
H = A.split(".").join(""), F = document.querySelector(".".concat(H)), W = L;
|
|
2512
|
+
else if (A instanceof HTMLDivElement) {
|
|
2513
|
+
if (!A.className)
|
|
2514
|
+
throw console.warn("Any DOM element passed as parameter must have a class."), new Error("KEYBOARD_DOM_CLASS_ERROR");
|
|
2515
|
+
H = A.className.split(" ")[0], F = A, W = L;
|
|
2516
|
+
} else
|
|
2517
|
+
H = "simple-keyboard", F = document.querySelector(".".concat(H)), W = A;
|
|
2518
|
+
return { keyboardDOMClass: H, keyboardDOM: F, options: W };
|
|
2519
|
+
}), N(this, "getOptions", function() {
|
|
2520
|
+
return d.options;
|
|
2521
|
+
}), N(this, "getCaretPosition", function() {
|
|
2522
|
+
return d.caretPosition;
|
|
2523
|
+
}), N(this, "getCaretPositionEnd", function() {
|
|
2524
|
+
return d.caretPositionEnd;
|
|
2525
|
+
}), N(this, "registerModule", function(A, L) {
|
|
2526
|
+
d.modules[A] || (d.modules[A] = {}), L(d.modules[A]);
|
|
2527
|
+
}), N(this, "getKeyboardClassString", function() {
|
|
2528
|
+
for (var A = arguments.length, L = new Array(A), H = 0; H < A; H++)
|
|
2529
|
+
L[H] = arguments[H];
|
|
2530
|
+
return [d.keyboardDOMClass].concat(L).filter(function(F) {
|
|
2531
|
+
return !!F;
|
|
2532
|
+
}).join(" ");
|
|
2533
|
+
}), typeof window < "u") {
|
|
2534
|
+
var f = this.handleParams(o, s), b = f.keyboardDOMClass, D = f.keyboardDOM, I = f.options, E = I === void 0 ? {} : I;
|
|
2535
|
+
this.utilities = new c({ getOptions: this.getOptions, getCaretPosition: this.getCaretPosition, getCaretPositionEnd: this.getCaretPositionEnd, dispatch: this.dispatch }), this.caretPosition = null, this.caretPositionEnd = null, this.keyboardDOM = D, this.options = function(A) {
|
|
2536
|
+
for (var L = 1; L < arguments.length; L++) {
|
|
2537
|
+
var H = arguments[L] != null ? arguments[L] : {};
|
|
2538
|
+
L % 2 ? R(Object(H), !0).forEach(function(F) {
|
|
2539
|
+
N(A, F, H[F]);
|
|
2540
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(H)) : R(Object(H)).forEach(function(F) {
|
|
2541
|
+
Object.defineProperty(A, F, Object.getOwnPropertyDescriptor(H, F));
|
|
2542
|
+
});
|
|
2543
|
+
}
|
|
2544
|
+
return A;
|
|
2545
|
+
}({ layoutName: "default", theme: "hg-theme-default", inputName: "default", preventMouseDownDefault: !1, enableLayoutCandidates: !0, excludeFromLayout: {} }, E), this.keyboardPluginClasses = "", c.bindMethods(w, this);
|
|
2546
|
+
var C = this.options.inputName, $ = C === void 0 ? this.defaultName : C;
|
|
2547
|
+
if (this.input = {}, this.input[$] = "", this.keyboardDOMClass = b, this.buttonElements = {}, window.SimpleKeyboardInstances || (window.SimpleKeyboardInstances = {}), this.currentInstanceName = this.utilities.camelCase(this.keyboardDOMClass), window.SimpleKeyboardInstances[this.currentInstanceName] = this, this.allKeyboardInstances = window.SimpleKeyboardInstances, this.keyboardInstanceNames = Object.keys(window.SimpleKeyboardInstances), this.isFirstKeyboardInstance = this.keyboardInstanceNames[0] === this.currentInstanceName, this.physicalKeyboard = new y({ dispatch: this.dispatch, getOptions: this.getOptions }), this.candidateBox = this.options.enableLayoutCandidates ? new j({ utilities: this.utilities, options: this.options }) : null, !this.keyboardDOM)
|
|
2548
|
+
throw console.warn('".'.concat(b, '" was not found in the DOM.')), new Error("KEYBOARD_DOM_ERROR");
|
|
2549
|
+
this.render(), this.modules = {}, this.loadModules();
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
var v, S;
|
|
2553
|
+
return v = w, S = [{ key: "setCaretPosition", value: function(o) {
|
|
2554
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o;
|
|
2555
|
+
this.caretPosition = o, this.caretPositionEnd = s;
|
|
2556
|
+
} }, { key: "getInputCandidates", value: function(o) {
|
|
2557
|
+
var s = this, d = this.options, f = d.layoutCandidates, b = d.layoutCandidatesCaseSensitiveMatch;
|
|
2558
|
+
if (!f || _(f) !== "object")
|
|
2559
|
+
return {};
|
|
2560
|
+
var D = Object.keys(f).filter(function(C) {
|
|
2561
|
+
var $ = o.substring(0, s.getCaretPositionEnd() || 0) || o, A = new RegExp("".concat(s.utilities.escapeRegex(C), "$"), b ? "g" : "gi");
|
|
2562
|
+
return !!B($.matchAll(A)).length;
|
|
2563
|
+
});
|
|
2564
|
+
if (D.length > 1) {
|
|
2565
|
+
var I = D.sort(function(C, $) {
|
|
2566
|
+
return $.length - C.length;
|
|
2567
|
+
})[0];
|
|
2568
|
+
return { candidateKey: I, candidateValue: f[I] };
|
|
2569
|
+
}
|
|
2570
|
+
if (D.length) {
|
|
2571
|
+
var E = D[0];
|
|
2572
|
+
return { candidateKey: E, candidateValue: f[E] };
|
|
2573
|
+
}
|
|
2574
|
+
return {};
|
|
2575
|
+
} }, { key: "showCandidatesBox", value: function(o, s, d) {
|
|
2576
|
+
var f = this;
|
|
2577
|
+
this.candidateBox && this.candidateBox.show({ candidateValue: s, targetElement: d, onSelect: function(b, D) {
|
|
2578
|
+
var I = f.options, E = I.layoutCandidatesCaseSensitiveMatch, C = I.disableCandidateNormalization, $ = I.enableLayoutCandidatesKeyPress, A = b;
|
|
2579
|
+
C || (A = b.normalize("NFD"));
|
|
2580
|
+
var L = f.getInput(f.options.inputName, !0), H = f.getCaretPositionEnd() || 0, F = L.substring(0, H || 0) || L, W = new RegExp("".concat(f.utilities.escapeRegex(o), "$"), E ? "g" : "gi"), Z = F.replace(W, A), it = L.replace(F, Z), et = Z.length - F.length, at = (H || L.length) + et;
|
|
2581
|
+
at < 0 && (at = 0), f.setInput(it, f.options.inputName, !0), f.setCaretPosition(at), $ && typeof f.options.onKeyPress == "function" && f.options.onKeyPress(b, D), typeof f.options.onChange == "function" && f.options.onChange(f.getInput(f.options.inputName, !0), D), typeof f.options.onChangeAll == "function" && f.options.onChangeAll(f.getAllInputs(), D);
|
|
2582
|
+
} });
|
|
2583
|
+
} }, { key: "handleButtonClicked", value: function(o, s) {
|
|
2584
|
+
var d = this.options, f = d.inputName, b = f === void 0 ? this.defaultName : f, D = d.debug;
|
|
2585
|
+
if (o !== "{//}") {
|
|
2586
|
+
this.input[b] || (this.input[b] = "");
|
|
2587
|
+
var I = this.utilities.getUpdatedInput(o, this.input[b], this.caretPosition, this.caretPositionEnd);
|
|
2588
|
+
if (this.utilities.isStandardButton(o) && this.activeInputElement && this.input[b] && this.input[b] === I && this.caretPosition === 0 && this.caretPositionEnd === I.length)
|
|
2589
|
+
return this.setInput("", this.options.inputName, !0), this.setCaretPosition(0), this.activeInputElement.value = "", this.activeInputElement.setSelectionRange(0, 0), void this.handleButtonClicked(o, s);
|
|
2590
|
+
if (typeof this.options.onKeyPress == "function" && this.options.onKeyPress(o, s), this.input[b] !== I && (!this.options.inputPattern || this.options.inputPattern && this.inputPatternIsValid(I))) {
|
|
2591
|
+
if (this.options.maxLength && this.utilities.handleMaxLength(this.input, I))
|
|
2592
|
+
return;
|
|
2593
|
+
var E = this.utilities.getUpdatedInput(o, this.input[b], this.caretPosition, this.caretPositionEnd, !0);
|
|
2594
|
+
if (this.setInput(E, this.options.inputName, !0), D && console.log("Input changed:", this.getAllInputs()), this.options.debug && console.log("Caret at: ", this.getCaretPosition(), this.getCaretPositionEnd(), "(".concat(this.keyboardDOMClass, ")"), s == null ? void 0 : s.type), this.options.syncInstanceInputs && this.syncInstanceInputs(), typeof this.options.onChange == "function" && this.options.onChange(this.getInput(this.options.inputName, !0), s), typeof this.options.onChangeAll == "function" && this.options.onChangeAll(this.getAllInputs(), s), s != null && s.target && this.options.enableLayoutCandidates) {
|
|
2595
|
+
var C, $ = this.getInputCandidates(I), A = $.candidateKey, L = $.candidateValue;
|
|
2596
|
+
A && L ? this.showCandidatesBox(A, L, this.keyboardDOM) : (C = this.candidateBox) === null || C === void 0 || C.destroy();
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
this.caretPositionEnd && this.caretPosition !== this.caretPositionEnd && (this.setCaretPosition(this.caretPositionEnd, this.caretPositionEnd), this.activeInputElement && this.activeInputElement.setSelectionRange(this.caretPositionEnd, this.caretPositionEnd), this.options.debug && console.log("Caret position aligned", this.caretPosition)), D && console.log("Key pressed:", o);
|
|
2600
|
+
}
|
|
2601
|
+
} }, { key: "getMouseHold", value: function() {
|
|
2602
|
+
return this.isMouseHold;
|
|
2603
|
+
} }, { key: "setMouseHold", value: function(o) {
|
|
2604
|
+
this.options.syncInstanceInputs ? this.dispatch(function(s) {
|
|
2605
|
+
s.isMouseHold = o;
|
|
2606
|
+
}) : this.isMouseHold = o;
|
|
2607
|
+
} }, { key: "handleButtonMouseDown", value: function(o, s) {
|
|
2608
|
+
var d = this;
|
|
2609
|
+
s && (this.options.preventMouseDownDefault && s.preventDefault(), this.options.stopMouseDownPropagation && s.stopPropagation(), s.target.classList.add(this.activeButtonClass)), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdTimeout && clearTimeout(this.holdTimeout), this.setMouseHold(!0), this.options.disableButtonHold || (this.holdTimeout = window.setTimeout(function() {
|
|
2610
|
+
(d.getMouseHold() && (!o.includes("{") && !o.includes("}") || o === "{delete}" || o === "{backspace}" || o === "{bksp}" || o === "{space}" || o === "{tab}") || o === "{arrowright}" || o === "{arrowleft}" || o === "{arrowup}" || o === "{arrowdown}") && (d.options.debug && console.log("Button held:", o), d.handleButtonHold(o)), clearTimeout(d.holdTimeout);
|
|
2611
|
+
}, 500));
|
|
2612
|
+
} }, { key: "handleButtonMouseUp", value: function(o, s) {
|
|
2613
|
+
var d = this;
|
|
2614
|
+
s && (this.options.preventMouseUpDefault && s.preventDefault && s.preventDefault(), this.options.stopMouseUpPropagation && s.stopPropagation && s.stopPropagation(), !(s.target === this.keyboardDOM || s.target && this.keyboardDOM.contains(s.target) || this.candidateBox && this.candidateBox.candidateBoxElement && (s.target === this.candidateBox.candidateBoxElement || s.target && this.candidateBox.candidateBoxElement.contains(s.target))) && this.candidateBox && this.candidateBox.destroy()), this.recurseButtons(function(f) {
|
|
2615
|
+
f.classList.remove(d.activeButtonClass);
|
|
2616
|
+
}), this.setMouseHold(!1), this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), o && typeof this.options.onKeyReleased == "function" && this.options.onKeyReleased(o, s);
|
|
2617
|
+
} }, { key: "handleKeyboardContainerMouseDown", value: function(o) {
|
|
2618
|
+
this.options.preventMouseDownDefault && o.preventDefault();
|
|
2619
|
+
} }, { key: "handleButtonHold", value: function(o) {
|
|
2620
|
+
var s = this;
|
|
2621
|
+
this.holdInteractionTimeout && clearTimeout(this.holdInteractionTimeout), this.holdInteractionTimeout = window.setTimeout(function() {
|
|
2622
|
+
s.getMouseHold() ? (s.handleButtonClicked(o), s.handleButtonHold(o)) : clearTimeout(s.holdInteractionTimeout);
|
|
2623
|
+
}, 100);
|
|
2624
|
+
} }, { key: "syncInstanceInputs", value: function() {
|
|
2625
|
+
var o = this;
|
|
2626
|
+
this.dispatch(function(s) {
|
|
2627
|
+
s.replaceInput(o.input), s.setCaretPosition(o.caretPosition, o.caretPositionEnd);
|
|
2628
|
+
});
|
|
2629
|
+
} }, { key: "clearInput", value: function() {
|
|
2630
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName;
|
|
2631
|
+
this.input[o] = "", this.setCaretPosition(0), this.options.syncInstanceInputs && this.syncInstanceInputs();
|
|
2632
|
+
} }, { key: "getInput", value: function() {
|
|
2633
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.inputName || this.defaultName, s = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
2634
|
+
return this.options.syncInstanceInputs && !s && this.syncInstanceInputs(), this.options.rtl ? "" + this.input[o].replace("", "").replace("", "") + "" : this.input[o];
|
|
2635
|
+
} }, { key: "getAllInputs", value: function() {
|
|
2636
|
+
var o = this, s = {};
|
|
2637
|
+
return Object.keys(this.input).forEach(function(d) {
|
|
2638
|
+
s[d] = o.getInput(d, !0);
|
|
2639
|
+
}), s;
|
|
2640
|
+
} }, { key: "setInput", value: function(o) {
|
|
2641
|
+
var s = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.inputName || this.defaultName, d = arguments.length > 2 ? arguments[2] : void 0;
|
|
2642
|
+
this.input[s] = o, !d && this.options.syncInstanceInputs && this.syncInstanceInputs();
|
|
2643
|
+
} }, { key: "replaceInput", value: function(o) {
|
|
2644
|
+
this.input = o;
|
|
2645
|
+
} }, { key: "setOptions", value: function() {
|
|
2646
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, s = this.changedOptions(o);
|
|
2647
|
+
this.options = Object.assign(this.options, o), s.length && (this.options.debug && console.log("changedOptions", s), this.onSetOptions(s), this.render());
|
|
2648
|
+
} }, { key: "changedOptions", value: function(o) {
|
|
2649
|
+
var s = this;
|
|
2650
|
+
return Object.keys(o).filter(function(d) {
|
|
2651
|
+
return JSON.stringify(o[d]) !== JSON.stringify(s.options[d]);
|
|
2652
|
+
});
|
|
2653
|
+
} }, { key: "onSetOptions", value: function() {
|
|
2654
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
2655
|
+
o.includes("layoutName") && this.candidateBox && this.candidateBox.destroy(), (o.includes("layoutCandidatesPageSize") || o.includes("layoutCandidates")) && this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = new j({ utilities: this.utilities, options: this.options }));
|
|
2656
|
+
} }, { key: "resetRows", value: function() {
|
|
2657
|
+
this.keyboardRowsDOM && this.keyboardRowsDOM.remove(), this.keyboardDOM.className = this.keyboardDOMClass, this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.buttonElements = {};
|
|
2658
|
+
} }, { key: "dispatch", value: function(o) {
|
|
2659
|
+
if (!window.SimpleKeyboardInstances)
|
|
2660
|
+
throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."), new Error("INSTANCES_VAR_ERROR");
|
|
2661
|
+
return Object.keys(window.SimpleKeyboardInstances).forEach(function(s) {
|
|
2662
|
+
o(window.SimpleKeyboardInstances[s], s);
|
|
2663
|
+
});
|
|
2664
|
+
} }, { key: "addButtonTheme", value: function(o, s) {
|
|
2665
|
+
var d = this;
|
|
2666
|
+
s && o && (o.split(" ").forEach(function(f) {
|
|
2667
|
+
s.split(" ").forEach(function(b) {
|
|
2668
|
+
d.options.buttonTheme || (d.options.buttonTheme = []);
|
|
2669
|
+
var D = !1;
|
|
2670
|
+
d.options.buttonTheme.map(function(I) {
|
|
2671
|
+
if (I != null && I.class.split(" ").includes(b)) {
|
|
2672
|
+
D = !0;
|
|
2673
|
+
var E = I.buttons.split(" ");
|
|
2674
|
+
E.includes(f) || (D = !0, E.push(f), I.buttons = E.join(" "));
|
|
2675
|
+
}
|
|
2676
|
+
return I;
|
|
2677
|
+
}), D || d.options.buttonTheme.push({ class: b, buttons: o });
|
|
2678
|
+
});
|
|
2679
|
+
}), this.render());
|
|
2680
|
+
} }, { key: "removeButtonTheme", value: function(o, s) {
|
|
2681
|
+
var d = this;
|
|
2682
|
+
if (!o && !s)
|
|
2683
|
+
return this.options.buttonTheme = [], void this.render();
|
|
2684
|
+
o && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length && (o.split(" ").forEach(function(f) {
|
|
2685
|
+
var b;
|
|
2686
|
+
(b = d.options) === null || b === void 0 || (b = b.buttonTheme) === null || b === void 0 || b.map(function(D, I) {
|
|
2687
|
+
if (D && s && s.includes(D.class) || !s) {
|
|
2688
|
+
var E, C, $ = (E = D) === null || E === void 0 ? void 0 : E.buttons.split(" ").filter(function(A) {
|
|
2689
|
+
return A !== f;
|
|
2690
|
+
});
|
|
2691
|
+
D && $ != null && $.length ? D.buttons = $.join(" ") : ((C = d.options.buttonTheme) === null || C === void 0 || C.splice(I, 1), D = null);
|
|
2692
|
+
}
|
|
2693
|
+
return D;
|
|
2694
|
+
});
|
|
2695
|
+
}), this.render());
|
|
2696
|
+
} }, { key: "getButtonElement", value: function(o) {
|
|
2697
|
+
var s, d = this.buttonElements[o];
|
|
2698
|
+
return d && (s = d.length > 1 ? d : d[0]), s;
|
|
2699
|
+
} }, { key: "inputPatternIsValid", value: function(o) {
|
|
2700
|
+
var s, d = this.options.inputPattern;
|
|
2701
|
+
if ((s = d instanceof RegExp ? d : d[this.options.inputName || this.defaultName]) && o) {
|
|
2702
|
+
var f = s.test(o);
|
|
2703
|
+
return this.options.debug && console.log('inputPattern ("'.concat(s, '"): ').concat(f ? "passed" : "did not pass!")), f;
|
|
2704
|
+
}
|
|
2705
|
+
return !0;
|
|
2706
|
+
} }, { key: "setEventListeners", value: function() {
|
|
2707
|
+
if (this.isFirstKeyboardInstance || !this.allKeyboardInstances) {
|
|
2708
|
+
this.options.debug && console.log("Caret handling started (".concat(this.keyboardDOMClass, ")"));
|
|
2709
|
+
var o = this.options.physicalKeyboardHighlightPreventDefault, s = o !== void 0 && o;
|
|
2710
|
+
document.addEventListener("keyup", this.handleKeyUp, s), document.addEventListener("keydown", this.handleKeyDown, s), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("touchend", this.handleTouchEnd), document.addEventListener("selectionchange", this.handleSelectionChange), document.addEventListener("select", this.handleSelect);
|
|
2711
|
+
}
|
|
2712
|
+
} }, { key: "handleKeyUp", value: function(o) {
|
|
2713
|
+
this.caretEventHandler(o), this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyUp(o);
|
|
2714
|
+
} }, { key: "handleKeyDown", value: function(o) {
|
|
2715
|
+
this.options.physicalKeyboardHighlight && this.physicalKeyboard.handleHighlightKeyDown(o);
|
|
2716
|
+
} }, { key: "handleMouseUp", value: function(o) {
|
|
2717
|
+
this.caretEventHandler(o);
|
|
2718
|
+
} }, { key: "handleTouchEnd", value: function(o) {
|
|
2719
|
+
this.caretEventHandler(o);
|
|
2720
|
+
} }, { key: "handleSelect", value: function(o) {
|
|
2721
|
+
this.caretEventHandler(o);
|
|
2722
|
+
} }, { key: "handleSelectionChange", value: function(o) {
|
|
2723
|
+
navigator.userAgent.includes("Firefox") || this.caretEventHandler(o);
|
|
2724
|
+
} }, { key: "caretEventHandler", value: function(o) {
|
|
2725
|
+
var s, d = this;
|
|
2726
|
+
o.target.tagName && (s = o.target.tagName.toLowerCase()), this.dispatch(function(f) {
|
|
2727
|
+
var b = o.target === f.keyboardDOM || o.target && f.keyboardDOM.contains(o.target);
|
|
2728
|
+
if (d.options.syncInstanceInputs && Array.isArray(o.path) && (b = o.path.some(function(E) {
|
|
2729
|
+
var C;
|
|
2730
|
+
return E == null || (C = E.hasAttribute) === null || C === void 0 ? void 0 : C.call(E, "data-skInstance");
|
|
2731
|
+
})), (s === "textarea" || s === "input" && ["text", "search", "url", "tel", "password"].includes(o.target.type)) && !f.options.disableCaretPositioning) {
|
|
2732
|
+
var D = o.target.selectionStart, I = o.target.selectionEnd;
|
|
2733
|
+
f.options.rtl && (D = f.utilities.getRtlOffset(D, f.getInput()), I = f.utilities.getRtlOffset(I, f.getInput())), f.setCaretPosition(D, I), d.activeInputElement = o.target, f.options.debug && console.log("Caret at: ", f.getCaretPosition(), f.getCaretPositionEnd(), o && o.target.tagName.toLowerCase(), "(".concat(f.keyboardDOMClass, ")"), o == null ? void 0 : o.type);
|
|
2734
|
+
} else
|
|
2735
|
+
!f.options.disableCaretPositioning && b || (o == null ? void 0 : o.type) === "selectionchange" || (f.setCaretPosition(null), d.activeInputElement = null, f.options.debug && console.log('Caret position reset due to "'.concat(o == null ? void 0 : o.type, '" event'), o));
|
|
2736
|
+
});
|
|
2737
|
+
} }, { key: "recurseButtons", value: function(o) {
|
|
2738
|
+
var s = this;
|
|
2739
|
+
o && Object.keys(this.buttonElements).forEach(function(d) {
|
|
2740
|
+
return s.buttonElements[d].forEach(o);
|
|
2741
|
+
});
|
|
2742
|
+
} }, { key: "destroy", value: function() {
|
|
2743
|
+
this.options.debug && console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));
|
|
2744
|
+
var o = this.options.physicalKeyboardHighlightPreventDefault, s = o !== void 0 && o;
|
|
2745
|
+
document.removeEventListener("keyup", this.handleKeyUp, s), document.removeEventListener("keydown", this.handleKeyDown, s), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("touchend", this.handleTouchEnd), document.removeEventListener("select", this.handleSelect), document.removeEventListener("selectionchange", this.handleSelectionChange), document.onpointerup = null, document.ontouchend = null, document.ontouchcancel = null, document.onmouseup = null, this.recurseButtons(function(d) {
|
|
2746
|
+
d && (d.onpointerdown = null, d.onpointerup = null, d.onpointercancel = null, d.ontouchstart = null, d.ontouchend = null, d.ontouchcancel = null, d.onclick = null, d.onmousedown = null, d.onmouseup = null, d.remove(), d = null);
|
|
2747
|
+
}), this.keyboardDOM.onpointerdown = null, this.keyboardDOM.ontouchstart = null, this.keyboardDOM.onmousedown = null, this.resetRows(), this.candidateBox && (this.candidateBox.destroy(), this.candidateBox = null), this.activeInputElement = null, this.keyboardDOM.removeAttribute("data-skInstance"), this.keyboardDOM.innerHTML = "", window.SimpleKeyboardInstances[this.currentInstanceName] = null, delete window.SimpleKeyboardInstances[this.currentInstanceName], this.initialized = !1;
|
|
2748
|
+
} }, { key: "getButtonThemeClasses", value: function(o) {
|
|
2749
|
+
var s = this.options.buttonTheme, d = [];
|
|
2750
|
+
return Array.isArray(s) && s.forEach(function(f) {
|
|
2751
|
+
if (f && f.class && typeof f.class == "string" && f.buttons && typeof f.buttons == "string") {
|
|
2752
|
+
var b = f.class.split(" ");
|
|
2753
|
+
f.buttons.split(" ").includes(o) && (d = [].concat(B(d), B(b)));
|
|
2754
|
+
} else
|
|
2755
|
+
console.warn('Incorrect "buttonTheme". Please check the documentation.', f);
|
|
2756
|
+
}), d;
|
|
2757
|
+
} }, { key: "setDOMButtonAttributes", value: function(o, s) {
|
|
2758
|
+
var d = this.options.buttonAttributes;
|
|
2759
|
+
Array.isArray(d) && d.forEach(function(f) {
|
|
2760
|
+
f.attribute && typeof f.attribute == "string" && f.value && typeof f.value == "string" && f.buttons && typeof f.buttons == "string" ? f.buttons.split(" ").includes(o) && s(f.attribute, f.value) : console.warn('Incorrect "buttonAttributes". Please check the documentation.', f);
|
|
2761
|
+
});
|
|
2762
|
+
} }, { key: "onTouchDeviceDetected", value: function() {
|
|
2763
|
+
this.processAutoTouchEvents(), this.disableContextualWindow();
|
|
2764
|
+
} }, { key: "disableContextualWindow", value: function() {
|
|
2765
|
+
window.oncontextmenu = function(o) {
|
|
2766
|
+
if (o.target.classList.contains("hg-button"))
|
|
2767
|
+
return o.preventDefault(), o.stopPropagation(), !1;
|
|
2768
|
+
};
|
|
2769
|
+
} }, { key: "processAutoTouchEvents", value: function() {
|
|
2770
|
+
this.options.autoUseTouchEvents && (this.options.useTouchEvents = !0, this.options.debug && console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."));
|
|
2771
|
+
} }, { key: "onInit", value: function() {
|
|
2772
|
+
this.options.debug && console.log("".concat(this.keyboardDOMClass, " Initialized")), this.setEventListeners(), typeof this.options.onInit == "function" && this.options.onInit(this);
|
|
2773
|
+
} }, { key: "beforeFirstRender", value: function() {
|
|
2774
|
+
this.utilities.isTouchDevice() && this.onTouchDeviceDetected(), typeof this.options.beforeFirstRender == "function" && this.options.beforeFirstRender(this), this.isFirstKeyboardInstance && this.utilities.pointerEventsSupported() && !this.options.useTouchEvents && !this.options.useMouseEvents && this.options.debug && console.log("Using PointerEvents as it is supported by this browser"), this.options.useTouchEvents && this.options.debug && console.log("useTouchEvents has been enabled. Only touch events will be used.");
|
|
2775
|
+
} }, { key: "beforeRender", value: function() {
|
|
2776
|
+
typeof this.options.beforeRender == "function" && this.options.beforeRender(this);
|
|
2777
|
+
} }, { key: "onRender", value: function() {
|
|
2778
|
+
typeof this.options.onRender == "function" && this.options.onRender(this);
|
|
2779
|
+
} }, { key: "onModulesLoaded", value: function() {
|
|
2780
|
+
typeof this.options.onModulesLoaded == "function" && this.options.onModulesLoaded(this);
|
|
2781
|
+
} }, { key: "loadModules", value: function() {
|
|
2782
|
+
var o = this;
|
|
2783
|
+
Array.isArray(this.options.modules) && (this.options.modules.forEach(function(s) {
|
|
2784
|
+
var d = new s(o);
|
|
2785
|
+
d.init && d.init(o);
|
|
2786
|
+
}), this.keyboardPluginClasses = "modules-loaded", this.render(), this.onModulesLoaded());
|
|
2787
|
+
} }, { key: "getModuleProp", value: function(o, s) {
|
|
2788
|
+
return !!this.modules[o] && this.modules[o][s];
|
|
2789
|
+
} }, { key: "getModulesList", value: function() {
|
|
2790
|
+
return Object.keys(this.modules);
|
|
2791
|
+
} }, { key: "parseRowDOMContainers", value: function(o, s, d, f) {
|
|
2792
|
+
var b = this, D = Array.from(o.children), I = 0;
|
|
2793
|
+
return D.length && d.forEach(function(E, C) {
|
|
2794
|
+
var $ = f[C];
|
|
2795
|
+
if (!($ && $ > E))
|
|
2796
|
+
return !1;
|
|
2797
|
+
var A = E - I, L = $ - I, H = document.createElement("div");
|
|
2798
|
+
H.className += "hg-button-container";
|
|
2799
|
+
var F = "".concat(b.options.layoutName, "-r").concat(s, "c").concat(C);
|
|
2800
|
+
H.setAttribute("data-skUID", F);
|
|
2801
|
+
var W = D.splice(A, L - A + 1);
|
|
2802
|
+
I = L - A, W.forEach(function(Z) {
|
|
2803
|
+
return H.appendChild(Z);
|
|
2804
|
+
}), D.splice(A, 0, H), o.innerHTML = "", D.forEach(function(Z) {
|
|
2805
|
+
return o.appendChild(Z);
|
|
2806
|
+
}), b.options.debug && console.log("rowDOMContainer", W, A, L, I + 1);
|
|
2807
|
+
}), o;
|
|
2808
|
+
} }, { key: "render", value: function() {
|
|
2809
|
+
var o = this;
|
|
2810
|
+
this.resetRows(), this.initialized || this.beforeFirstRender(), this.beforeRender();
|
|
2811
|
+
var s = "hg-layout-".concat(this.options.layoutName), d = this.options.layout || { default: ["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", "{tab} q w e r t y u i o p [ ] \\", "{lock} a s d f g h j k l ; ' {enter}", "{shift} z x c v b n m , . / {shift}", ".com @ {space}"], shift: ["~ ! @ # $ % ^ & * ( ) _ + {bksp}", "{tab} Q W E R T Y U I O P { } |", '{lock} A S D F G H J K L : " {enter}', "{shift} Z X C V B N M < > ? {shift}", ".com @ {space}"] }, f = this.options.useTouchEvents || !1, b = f ? "hg-touch-events" : "", D = this.options.useMouseEvents || !1, I = this.options.disableRowButtonContainers;
|
|
2812
|
+
this.keyboardDOM.className = this.getKeyboardClassString(this.options.theme, s, this.keyboardPluginClasses, b), this.keyboardDOM.setAttribute("data-skInstance", this.currentInstanceName), this.keyboardRowsDOM = document.createElement("div"), this.keyboardRowsDOM.className = "hg-rows", d[this.options.layoutName || this.defaultName].forEach(function(E, C) {
|
|
2813
|
+
var $ = E.split(" ");
|
|
2814
|
+
o.options.excludeFromLayout && o.options.excludeFromLayout[o.options.layoutName || o.defaultName] && ($ = $.filter(function(F) {
|
|
2815
|
+
return o.options.excludeFromLayout && !o.options.excludeFromLayout[o.options.layoutName || o.defaultName].includes(F);
|
|
2816
|
+
}));
|
|
2817
|
+
var A = document.createElement("div");
|
|
2818
|
+
A.className += "hg-row";
|
|
2819
|
+
var L = [], H = [];
|
|
2820
|
+
$.forEach(function(F, W) {
|
|
2821
|
+
var Z, it = !I && typeof F == "string" && F.length > 1 && F.indexOf("[") === 0, et = !I && typeof F == "string" && F.length > 1 && F.indexOf("]") === F.length - 1;
|
|
2822
|
+
it && (L.push(W), F = F.replace(/\[/g, "")), et && (H.push(W), F = F.replace(/\]/g, ""));
|
|
2823
|
+
var at = o.utilities.getButtonClass(F), rt = o.utilities.getButtonDisplayName(F, o.options.display, o.options.mergeDisplay), mt = o.options.useButtonTag ? "button" : "div", nt = document.createElement(mt);
|
|
2824
|
+
nt.className += "hg-button ".concat(at), (Z = nt.classList).add.apply(Z, B(o.getButtonThemeClasses(F))), o.setDOMButtonAttributes(F, function(q, bt) {
|
|
2825
|
+
nt.setAttribute(q, bt);
|
|
2826
|
+
}), o.activeButtonClass = "hg-activeButton", !o.utilities.pointerEventsSupported() || f || D ? f ? (nt.ontouchstart = function(q) {
|
|
2827
|
+
o.handleButtonClicked(F, q), o.handleButtonMouseDown(F, q);
|
|
2828
|
+
}, nt.ontouchend = function(q) {
|
|
2829
|
+
o.handleButtonMouseUp(F, q);
|
|
2830
|
+
}, nt.ontouchcancel = function(q) {
|
|
2831
|
+
o.handleButtonMouseUp(F, q);
|
|
2832
|
+
}) : (nt.onclick = function(q) {
|
|
2833
|
+
o.setMouseHold(!1), typeof o.options.onKeyReleased != "function" && o.handleButtonClicked(F, q);
|
|
2834
|
+
}, nt.onmousedown = function(q) {
|
|
2835
|
+
typeof o.options.onKeyReleased != "function" || o.isMouseHold || o.handleButtonClicked(F, q), o.handleButtonMouseDown(F, q);
|
|
2836
|
+
}, nt.onmouseup = function(q) {
|
|
2837
|
+
o.handleButtonMouseUp(F, q);
|
|
2838
|
+
}) : (nt.onpointerdown = function(q) {
|
|
2839
|
+
o.handleButtonClicked(F, q), o.handleButtonMouseDown(F, q);
|
|
2840
|
+
}, nt.onpointerup = function(q) {
|
|
2841
|
+
o.handleButtonMouseUp(F, q);
|
|
2842
|
+
}, nt.onpointercancel = function(q) {
|
|
2843
|
+
o.handleButtonMouseUp(F, q);
|
|
2844
|
+
}), nt.setAttribute("data-skBtn", F);
|
|
2845
|
+
var dt = "".concat(o.options.layoutName, "-r").concat(C, "b").concat(W);
|
|
2846
|
+
nt.setAttribute("data-skBtnUID", dt);
|
|
2847
|
+
var ot = document.createElement("span");
|
|
2848
|
+
ot.innerHTML = rt, nt.appendChild(ot), o.buttonElements[F] || (o.buttonElements[F] = []), o.buttonElements[F].push(nt), A.appendChild(nt);
|
|
2849
|
+
}), A = o.parseRowDOMContainers(A, C, L, H), o.keyboardRowsDOM.appendChild(A);
|
|
2850
|
+
}), this.keyboardDOM.appendChild(this.keyboardRowsDOM), this.onRender(), this.initialized || (this.initialized = !0, !this.utilities.pointerEventsSupported() || f || D ? f ? (document.ontouchend = function(E) {
|
|
2851
|
+
return o.handleButtonMouseUp(void 0, E);
|
|
2852
|
+
}, document.ontouchcancel = function(E) {
|
|
2853
|
+
return o.handleButtonMouseUp(void 0, E);
|
|
2854
|
+
}, this.keyboardDOM.ontouchstart = function(E) {
|
|
2855
|
+
return o.handleKeyboardContainerMouseDown(E);
|
|
2856
|
+
}) : f || (document.onmouseup = function(E) {
|
|
2857
|
+
return o.handleButtonMouseUp(void 0, E);
|
|
2858
|
+
}, this.keyboardDOM.onmousedown = function(E) {
|
|
2859
|
+
return o.handleKeyboardContainerMouseDown(E);
|
|
2860
|
+
}) : (document.onpointerup = function(E) {
|
|
2861
|
+
return o.handleButtonMouseUp(void 0, E);
|
|
2862
|
+
}, this.keyboardDOM.onpointerdown = function(E) {
|
|
2863
|
+
return o.handleKeyboardContainerMouseDown(E);
|
|
2864
|
+
}), this.onInit());
|
|
2865
|
+
} }], S && K(v.prototype, S), Object.defineProperty(v, "prototype", { writable: !1 }), w;
|
|
2866
|
+
}(), Y = U, G = U;
|
|
2867
|
+
}(), Et;
|
|
2868
|
+
}();
|
|
2869
|
+
});
|
|
2870
|
+
});
|
|
2871
|
+
const Bt = /* @__PURE__ */ Lt(Rt), Mt = {
|
|
2872
|
+
default: [
|
|
2873
|
+
"1 2 3 4 5 6 7 8 9 0 {bksp}",
|
|
2874
|
+
"q w e r t y u i o p",
|
|
2875
|
+
"a s d f g h j k l",
|
|
2876
|
+
"z x c v b n m . - &",
|
|
2877
|
+
"{space}"
|
|
2878
|
+
]
|
|
2879
|
+
}, Kt = {
|
|
2880
|
+
default: [
|
|
2881
|
+
"1 2 3 4 5 6 7 8 9 0 {bksp}",
|
|
2882
|
+
"q w e r t y u i o p å",
|
|
2883
|
+
"a s d f g h j k l æ ø",
|
|
2884
|
+
"z x c v b n m . - &",
|
|
2885
|
+
"{space}"
|
|
2886
|
+
]
|
|
2887
|
+
}, Ft = {
|
|
2888
|
+
default: [
|
|
2889
|
+
"1 2 3 4 5 6 7 8 9 0 {bksp}",
|
|
2890
|
+
"q w e r t z u i o p ü",
|
|
2891
|
+
"a s d f g h j k l ö ä",
|
|
2892
|
+
"y x c v b n m . - &",
|
|
2893
|
+
"{space}"
|
|
2894
|
+
]
|
|
2895
|
+
}, _t = {
|
|
2896
|
+
default: [
|
|
2897
|
+
"1 2 3 4 5 6 7 8 9 0 {bksp}",
|
|
2898
|
+
"a z e r t y u i o p",
|
|
2899
|
+
"q s d f g h j k l m",
|
|
2900
|
+
"w x c v b n . - &",
|
|
2901
|
+
"{space}"
|
|
2902
|
+
]
|
|
2903
|
+
}, Ot = Mt;
|
|
2904
|
+
var St;
|
|
2905
|
+
(function(ut) {
|
|
2906
|
+
ut.Numeric = "numeric", ut.Alphabetic = "alphabetic";
|
|
2907
|
+
})(St || (St = {}));
|
|
2908
|
+
const Ht = {
|
|
2909
|
+
default: ["1 2 3", "4 5 6", "7 8 9", "0 {bksp}"]
|
|
2910
|
+
}, Ut = `/*!
|
|
2911
|
+
*
|
|
2912
|
+
* simple-keyboard v3.7.27
|
|
2913
|
+
* https://github.com/hodgef/simple-keyboard
|
|
2914
|
+
*
|
|
2915
|
+
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
|
|
2916
|
+
*
|
|
2917
|
+
* This source code is licensed under the MIT license found in the
|
|
2918
|
+
* LICENSE file in the root directory of this source tree.
|
|
2919
|
+
*
|
|
2920
|
+
*/.hg-theme-default{background-color:#ececec;border-radius:5px;box-sizing:border-box;font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;overflow:hidden;padding:5px;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.hg-theme-default .hg-button span{pointer-events:none}.hg-theme-default button.hg-button{border-width:0;font-size:inherit;outline:0}.hg-theme-default .hg-button{display:inline-block;flex-grow:1}.hg-theme-default .hg-row{display:flex}.hg-theme-default .hg-row:not(:last-child){margin-bottom:5px}.hg-theme-default .hg-row .hg-button-container,.hg-theme-default .hg-row .hg-button:not(:last-child){margin-right:5px}.hg-theme-default .hg-row>div:last-child{margin-right:0}.hg-theme-default .hg-row .hg-button-container{display:flex}.hg-theme-default .hg-button{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;background:#fff;border-bottom:1px solid #b5b5b5;border-radius:5px;box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-sizing:border-box;cursor:pointer;display:flex;height:40px;justify-content:center;padding:5px}.hg-theme-default .hg-button.hg-standardBtn{width:20px}.hg-theme-default .hg-button.hg-activeButton{background:#efefef}.hg-theme-default.hg-layout-numeric .hg-button{align-items:center;display:flex;height:60px;justify-content:center;width:33.3%}.hg-theme-default .hg-button.hg-button-numpadadd,.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.hg-theme-default .hg-button.hg-button-com{max-width:85px}.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px}.hg-candidate-box{background:#ececec;border-bottom:2px solid #b5b5b5;border-radius:5px;display:inline-flex;margin-top:-10px;max-width:272px;position:absolute;transform:translateY(-100%);-webkit-user-select:none;-moz-user-select:none;user-select:none}ul.hg-candidate-box-list{display:flex;flex:1;list-style:none;margin:0;padding:0}li.hg-candidate-box-list-item{align-items:center;display:flex;height:40px;justify-content:center;width:40px}li.hg-candidate-box-list-item:hover{background:rgba(0,0,0,.03);cursor:pointer}li.hg-candidate-box-list-item:active{background:rgba(0,0,0,.1)}.hg-candidate-box-prev:before{content:"◄"}.hg-candidate-box-next:before{content:"►"}.hg-candidate-box-next,.hg-candidate-box-prev{align-items:center;color:#969696;cursor:pointer;display:flex;padding:0 10px}.hg-candidate-box-next{border-bottom-right-radius:5px;border-top-right-radius:5px}.hg-candidate-box-prev{border-bottom-left-radius:5px;border-top-left-radius:5px}.hg-candidate-box-btn-active{color:#444}mi-keyboard{display:block}mi-keyboard .hg-theme-default{background-color:transparent}`, zt = class {
|
|
2921
|
+
constructor(ut) {
|
|
2922
|
+
Tt(this, ut), this.inputElements = /* @__PURE__ */ new Set(), this.inputElement = void 0, this.layout = St.Alphabetic, this.language = void 0;
|
|
2923
|
+
}
|
|
2924
|
+
inputElementChange() {
|
|
2925
|
+
if (!this.inputElement.hasAttribute("id")) {
|
|
2926
|
+
console.warn("MI-KEYBOARD: Invalid id attribute");
|
|
2927
|
+
return;
|
|
2928
|
+
}
|
|
2929
|
+
this.simpleKeyboard && (this.simpleKeyboard.setOptions({ inputName: this.inputElement.id }), this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id)), this.inputElements.has(this.inputElement) || (this.inputElements.add(this.inputElement), ["input", "focus", "blur", "inputCleared"].forEach((vt) => {
|
|
2930
|
+
this.inputElement.addEventListener(vt, () => {
|
|
2931
|
+
this.simpleKeyboard.setInput(this.inputElement.value, this.inputElement.id);
|
|
2932
|
+
});
|
|
2933
|
+
}));
|
|
2934
|
+
}
|
|
2935
|
+
layoutChange() {
|
|
2936
|
+
this.simpleKeyboard && this.simpleKeyboard.setOptions({ layout: this.getKeyboardLayout(this.layout) });
|
|
2937
|
+
}
|
|
2938
|
+
languageChange() {
|
|
2939
|
+
this.simpleKeyboard.setOptions({
|
|
2940
|
+
layout: this.getKeyboardLayout(this.layout)
|
|
2941
|
+
});
|
|
2942
|
+
}
|
|
2943
|
+
componentDidLoad() {
|
|
2944
|
+
this.simpleKeyboard = new Bt({
|
|
2945
|
+
onChange: (ut) => {
|
|
2946
|
+
this.inputElement && (this.inputElement.value = ut, this.inputElement.dispatchEvent(new Event("input", { bubbles: !0, cancelable: !0 })));
|
|
2947
|
+
},
|
|
2948
|
+
layout: this.getKeyboardLayout(this.layout),
|
|
2949
|
+
display: {
|
|
2950
|
+
"{bksp}": "⌫",
|
|
2951
|
+
"{enter}": "return",
|
|
2952
|
+
"{space}": "space"
|
|
2953
|
+
},
|
|
2954
|
+
theme: "hg-theme-default hg-layout-numeric numeric-theme"
|
|
2955
|
+
}), this.simpleKeyboard.setInput(this.inputElement.value);
|
|
2956
|
+
}
|
|
2957
|
+
/**
|
|
2958
|
+
* Clear the input field.
|
|
2959
|
+
*/
|
|
2960
|
+
clearInputField() {
|
|
2961
|
+
this.simpleKeyboard.clearInput();
|
|
2962
|
+
}
|
|
2963
|
+
/**
|
|
2964
|
+
* Check validity of keyboard layout.
|
|
2965
|
+
*
|
|
2966
|
+
* @param {layout} string
|
|
2967
|
+
* @returns {boolean}
|
|
2968
|
+
*/
|
|
2969
|
+
isValidLayout(ut) {
|
|
2970
|
+
return ut ? !!Object.values(St).find((vt) => vt === ut) : !1;
|
|
2971
|
+
}
|
|
2972
|
+
/**
|
|
2973
|
+
* Get keyboard layout. Defaults to alphabetic.
|
|
2974
|
+
*
|
|
2975
|
+
* @param {KeyboardLayout} keyboardLayout - Accepts values of KeyboardLayout enum, eg. 'numeric' or 'alphabetic'.
|
|
2976
|
+
* @returns {{ [key: string]: string[]; }}
|
|
2977
|
+
*/
|
|
2978
|
+
getKeyboardLayout(ut) {
|
|
2979
|
+
if (!this.isValidLayout(ut))
|
|
2980
|
+
return console.warn("MI-KEYBOARD: Invalid layout attribute"), Ot;
|
|
2981
|
+
if (ut === St.Numeric)
|
|
2982
|
+
return Ht;
|
|
2983
|
+
const vt = this.language || window.navigator.language;
|
|
2984
|
+
if (!vt)
|
|
2985
|
+
return Ot;
|
|
2986
|
+
const yt = [
|
|
2987
|
+
{ layout: Mt, languages: ["en", "en-us"] },
|
|
2988
|
+
{ layout: Kt, languages: ["da", "da-dk"] },
|
|
2989
|
+
{ layout: _t, languages: ["fr", "fr-fr"] },
|
|
2990
|
+
{ layout: Ft, languages: ["de", "de-de"] }
|
|
2991
|
+
].find((V) => !!V.languages.find((Et) => Et === vt.toLowerCase()));
|
|
2992
|
+
return yt ? yt.layout : Ot;
|
|
2993
|
+
}
|
|
2994
|
+
/**
|
|
2995
|
+
* Render on-screen keyboard.
|
|
2996
|
+
*
|
|
2997
|
+
* @returns {JSX.Element}
|
|
2998
|
+
*/
|
|
2999
|
+
render() {
|
|
3000
|
+
return Dt("div", { class: "simple-keyboard" });
|
|
3001
|
+
}
|
|
3002
|
+
static get watchers() {
|
|
3003
|
+
return {
|
|
3004
|
+
inputElement: ["inputElementChange"],
|
|
3005
|
+
layout: ["layoutChange"],
|
|
3006
|
+
language: ["languageChange"]
|
|
3007
|
+
};
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
zt.style = Ut;
|
|
3011
|
+
export {
|
|
3012
|
+
zt as mi_keyboard
|
|
3013
|
+
};
|