@skyservice-developers/vue-dev-kit 1.5.11 → 2.0.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/README.md +96 -15
- package/dist/api-BOvdjB3h.js +266 -0
- package/dist/api-D5C6FvTr.cjs +1 -0
- package/dist/components/BaseTeleport.vue.d.ts +14 -0
- package/dist/components/Dialog.vue.d.ts +28 -0
- package/dist/components/DialogModal.vue.d.ts +28 -0
- package/dist/components/DialogNext.vue.d.ts +28 -0
- package/dist/components/Header.vue.d.ts +37 -0
- package/dist/components/Modal.vue.d.ts +30 -0
- package/dist/components/SkyButton.vue.d.ts +22 -0
- package/dist/components/SkySelect.vue.d.ts +16 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/index.d.ts +3 -0
- package/dist/sdk/api.d.ts +54 -0
- package/dist/sdk/bridge.d.ts +43 -0
- package/dist/sdk/index.d.ts +6 -0
- package/dist/sdk/types.d.ts +73 -0
- package/dist/sdk/webview.d.ts +16 -0
- package/dist/sdk.cjs +1 -0
- package/dist/sdk.js +33 -0
- package/dist/style.css +1 -0
- package/dist/vue-dev-kit.cjs +1 -0
- package/dist/vue-dev-kit.js +903 -0
- package/package.json +32 -43
- package/dist/vue2/style.css +0 -1
- package/dist/vue2/vue-dev-kit.cjs +0 -1
- package/dist/vue2/vue-dev-kit.js +0 -2622
- package/dist/vue3/style.css +0 -1
- package/dist/vue3/vue-dev-kit.cjs +0 -1
- package/dist/vue3/vue-dev-kit.js +0 -2338
- package/src/index.js +0 -9
- package/src/shared/index.js +0 -1
- package/src/shared/types/index.d.ts +0 -72
- package/src/shared/utils/index.js +0 -2
- package/src/shared/utils/parentBridge.js +0 -84
- package/src/shared/utils/webviewCheck.js +0 -54
- package/src/styles/scrollbar.css +0 -17
- package/src/vue2/components/BaseTeleport.vue +0 -16
- package/src/vue2/components/Dialog.vue +0 -106
- package/src/vue2/components/DialogModal.vue +0 -439
- package/src/vue2/components/DialogNext.vue +0 -379
- package/src/vue2/components/Header.vue +0 -466
- package/src/vue2/components/Modal.vue +0 -252
- package/src/vue2/components/SkyButton.vue +0 -144
- package/src/vue2/components/SkySelect.vue +0 -327
- package/src/vue2/components/index.js +0 -6
- package/src/vue2/index.js +0 -2
- package/src/vue3/components/BaseTeleport.vue +0 -16
- package/src/vue3/components/Dialog.vue +0 -97
- package/src/vue3/components/DialogModal.vue +0 -458
- package/src/vue3/components/DialogNext.vue +0 -427
- package/src/vue3/components/Header.vue +0 -505
- package/src/vue3/components/Modal.vue +0 -253
- package/src/vue3/components/SkyButton.vue +0 -140
- package/src/vue3/components/SkySelect.vue +0 -379
- package/src/vue3/components/index.js +0 -8
- package/src/vue3/index.js +0 -2
package/dist/vue3/vue-dev-kit.js
DELETED
|
@@ -1,2338 +0,0 @@
|
|
|
1
|
-
import { ref as P, onUnmounted as ne, computed as N, onMounted as ae, openBlock as m, createElementBlock as k, createElementVNode as w, createCommentVNode as A, normalizeClass as q, renderSlot as V, toDisplayString as L, Fragment as fe, renderList as Te, useSlots as He, watch as Ce, nextTick as Ge, createBlock as Y, Teleport as me, normalizeStyle as pe, createTextVNode as We, resolveDynamicComponent as nt, createSlots as at, withCtx as Oe, withModifiers as lt, mergeProps as st, onBeforeUnmount as rt } from "vue";
|
|
2
|
-
var dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
-
function ut(n) {
|
|
4
|
-
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
5
|
-
}
|
|
6
|
-
var Be = { exports: {} };
|
|
7
|
-
(function(n, T) {
|
|
8
|
-
(function(u, c) {
|
|
9
|
-
var E = "1.0.41", p = "", B = "?", d = "function", h = "undefined", S = "object", C = "string", $ = "major", o = "model", a = "name", e = "type", t = "vendor", i = "version", g = "architecture", I = "console", l = "mobile", r = "tablet", s = "smarttv", b = "wearable", M = "embedded", H = 500, j = "Amazon", R = "Apple", Z = "ASUS", Me = "BlackBerry", le = "Browser", se = "Chrome", Qe = "Edge", re = "Firefox", de = "Google", Pe = "Honor", $e = "Huawei", et = "Lenovo", ue = "LG", ye = "Microsoft", ge = "Motorola", he = "Nvidia", Le = "OnePlus", J = "Opera", ke = "OPPO", Q = "Samsung", Ne = "Sharp", ee = "Sony", xe = "Xiaomi", _e = "Zebra", Ve = "Facebook", Ie = "Chromium OS", ze = "Mac OS", Re = " Browser", tt = function(y, x) {
|
|
10
|
-
var v = {};
|
|
11
|
-
for (var O in y)
|
|
12
|
-
x[O] && x[O].length % 2 === 0 ? v[O] = x[O].concat(y[O]) : v[O] = y[O];
|
|
13
|
-
return v;
|
|
14
|
-
}, ce = function(y) {
|
|
15
|
-
for (var x = {}, v = 0; v < y.length; v++)
|
|
16
|
-
x[y[v].toUpperCase()] = y[v];
|
|
17
|
-
return x;
|
|
18
|
-
}, De = function(y, x) {
|
|
19
|
-
return typeof y === C ? te(x).indexOf(te(y)) !== -1 : !1;
|
|
20
|
-
}, te = function(y) {
|
|
21
|
-
return y.toLowerCase();
|
|
22
|
-
}, ot = function(y) {
|
|
23
|
-
return typeof y === C ? y.replace(/[^\d\.]/g, p).split(".")[0] : c;
|
|
24
|
-
}, Se = function(y, x) {
|
|
25
|
-
if (typeof y === C)
|
|
26
|
-
return y = y.replace(/^\s\s*/, p), typeof x === h ? y : y.substring(0, H);
|
|
27
|
-
}, oe = function(y, x) {
|
|
28
|
-
for (var v = 0, O, F, D, _, f, U; v < x.length && !f; ) {
|
|
29
|
-
var Ee = x[v], je = x[v + 1];
|
|
30
|
-
for (O = F = 0; O < Ee.length && !f && Ee[O]; )
|
|
31
|
-
if (f = Ee[O++].exec(y), f)
|
|
32
|
-
for (D = 0; D < je.length; D++)
|
|
33
|
-
U = f[++F], _ = je[D], typeof _ === S && _.length > 0 ? _.length === 2 ? typeof _[1] == d ? this[_[0]] = _[1].call(this, U) : this[_[0]] = _[1] : _.length === 3 ? typeof _[1] === d && !(_[1].exec && _[1].test) ? this[_[0]] = U ? _[1].call(this, U, _[2]) : c : this[_[0]] = U ? U.replace(_[1], _[2]) : c : _.length === 4 && (this[_[0]] = U ? _[3].call(this, U.replace(_[1], _[2])) : c) : this[_] = U || c;
|
|
34
|
-
v += 2;
|
|
35
|
-
}
|
|
36
|
-
}, ie = function(y, x) {
|
|
37
|
-
for (var v in x)
|
|
38
|
-
if (typeof x[v] === S && x[v].length > 0) {
|
|
39
|
-
for (var O = 0; O < x[v].length; O++)
|
|
40
|
-
if (De(x[v][O], y))
|
|
41
|
-
return v === B ? c : v;
|
|
42
|
-
} else if (De(x[v], y))
|
|
43
|
-
return v === B ? c : v;
|
|
44
|
-
return x.hasOwnProperty("*") ? x["*"] : y;
|
|
45
|
-
}, it = {
|
|
46
|
-
"1.0": "/8",
|
|
47
|
-
"1.2": "/1",
|
|
48
|
-
"1.3": "/3",
|
|
49
|
-
"2.0": "/412",
|
|
50
|
-
"2.0.2": "/416",
|
|
51
|
-
"2.0.3": "/417",
|
|
52
|
-
"2.0.4": "/419",
|
|
53
|
-
"?": "/"
|
|
54
|
-
}, Ue = {
|
|
55
|
-
ME: "4.90",
|
|
56
|
-
"NT 3.11": "NT3.51",
|
|
57
|
-
"NT 4.0": "NT4.0",
|
|
58
|
-
2e3: "NT 5.0",
|
|
59
|
-
XP: ["NT 5.1", "NT 5.2"],
|
|
60
|
-
Vista: "NT 6.0",
|
|
61
|
-
7: "NT 6.1",
|
|
62
|
-
8: "NT 6.2",
|
|
63
|
-
"8.1": "NT 6.3",
|
|
64
|
-
10: ["NT 6.4", "NT 10.0"],
|
|
65
|
-
RT: "ARM"
|
|
66
|
-
}, qe = {
|
|
67
|
-
browser: [
|
|
68
|
-
[
|
|
69
|
-
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
70
|
-
// Chrome for Android/iOS
|
|
71
|
-
],
|
|
72
|
-
[i, [a, "Chrome"]],
|
|
73
|
-
[
|
|
74
|
-
/edg(?:e|ios|a)?\/([\w\.]+)/i
|
|
75
|
-
// Microsoft Edge
|
|
76
|
-
],
|
|
77
|
-
[i, [a, "Edge"]],
|
|
78
|
-
[
|
|
79
|
-
// Presto based
|
|
80
|
-
/(opera mini)\/([-\w\.]+)/i,
|
|
81
|
-
// Opera Mini
|
|
82
|
-
/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,
|
|
83
|
-
// Opera Mobi/Tablet
|
|
84
|
-
/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i
|
|
85
|
-
// Opera
|
|
86
|
-
],
|
|
87
|
-
[a, i],
|
|
88
|
-
[
|
|
89
|
-
/opios[\/ ]+([\w\.]+)/i
|
|
90
|
-
// Opera mini on iphone >= 8.0
|
|
91
|
-
],
|
|
92
|
-
[i, [a, J + " Mini"]],
|
|
93
|
-
[
|
|
94
|
-
/\bop(?:rg)?x\/([\w\.]+)/i
|
|
95
|
-
// Opera GX
|
|
96
|
-
],
|
|
97
|
-
[i, [a, J + " GX"]],
|
|
98
|
-
[
|
|
99
|
-
/\bopr\/([\w\.]+)/i
|
|
100
|
-
// Opera Webkit
|
|
101
|
-
],
|
|
102
|
-
[i, [a, J]],
|
|
103
|
-
[
|
|
104
|
-
// Mixed
|
|
105
|
-
/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
|
|
106
|
-
// Baidu
|
|
107
|
-
],
|
|
108
|
-
[i, [a, "Baidu"]],
|
|
109
|
-
[
|
|
110
|
-
/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i
|
|
111
|
-
// Maxthon
|
|
112
|
-
],
|
|
113
|
-
[i, [a, "Maxthon"]],
|
|
114
|
-
[
|
|
115
|
-
/(kindle)\/([\w\.]+)/i,
|
|
116
|
-
// Kindle
|
|
117
|
-
/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,
|
|
118
|
-
// Lunascape/Maxthon/Netfront/Jasmine/Blazer/Sleipnir
|
|
119
|
-
// Trident based
|
|
120
|
-
/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,
|
|
121
|
-
// Avant/IEMobile/SlimBrowser/SlimBoat/Slimjet
|
|
122
|
-
/(?:ms|\()(ie) ([\w\.]+)/i,
|
|
123
|
-
// Internet Explorer
|
|
124
|
-
// Blink/Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon
|
|
125
|
-
/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,
|
|
126
|
-
// Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ//Vivaldi/DuckDuckGo/Klar/Helio/Dragon
|
|
127
|
-
/(heytap|ovi|115)browser\/([\d\.]+)/i,
|
|
128
|
-
// HeyTap/Ovi/115
|
|
129
|
-
/(weibo)__([\d\.]+)/i
|
|
130
|
-
// Weibo
|
|
131
|
-
],
|
|
132
|
-
[a, i],
|
|
133
|
-
[
|
|
134
|
-
/quark(?:pc)?\/([-\w\.]+)/i
|
|
135
|
-
// Quark
|
|
136
|
-
],
|
|
137
|
-
[i, [a, "Quark"]],
|
|
138
|
-
[
|
|
139
|
-
/\bddg\/([\w\.]+)/i
|
|
140
|
-
// DuckDuckGo
|
|
141
|
-
],
|
|
142
|
-
[i, [a, "DuckDuckGo"]],
|
|
143
|
-
[
|
|
144
|
-
/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i
|
|
145
|
-
// UCBrowser
|
|
146
|
-
],
|
|
147
|
-
[i, [a, "UC" + le]],
|
|
148
|
-
[
|
|
149
|
-
/microm.+\bqbcore\/([\w\.]+)/i,
|
|
150
|
-
// WeChat Desktop for Windows Built-in Browser
|
|
151
|
-
/\bqbcore\/([\w\.]+).+microm/i,
|
|
152
|
-
/micromessenger\/([\w\.]+)/i
|
|
153
|
-
// WeChat
|
|
154
|
-
],
|
|
155
|
-
[i, [a, "WeChat"]],
|
|
156
|
-
[
|
|
157
|
-
/konqueror\/([\w\.]+)/i
|
|
158
|
-
// Konqueror
|
|
159
|
-
],
|
|
160
|
-
[i, [a, "Konqueror"]],
|
|
161
|
-
[
|
|
162
|
-
/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i
|
|
163
|
-
// IE11
|
|
164
|
-
],
|
|
165
|
-
[i, [a, "IE"]],
|
|
166
|
-
[
|
|
167
|
-
/ya(?:search)?browser\/([\w\.]+)/i
|
|
168
|
-
// Yandex
|
|
169
|
-
],
|
|
170
|
-
[i, [a, "Yandex"]],
|
|
171
|
-
[
|
|
172
|
-
/slbrowser\/([\w\.]+)/i
|
|
173
|
-
// Smart Lenovo Browser
|
|
174
|
-
],
|
|
175
|
-
[i, [a, "Smart Lenovo " + le]],
|
|
176
|
-
[
|
|
177
|
-
/(avast|avg)\/([\w\.]+)/i
|
|
178
|
-
// Avast/AVG Secure Browser
|
|
179
|
-
],
|
|
180
|
-
[[a, /(.+)/, "$1 Secure " + le], i],
|
|
181
|
-
[
|
|
182
|
-
/\bfocus\/([\w\.]+)/i
|
|
183
|
-
// Firefox Focus
|
|
184
|
-
],
|
|
185
|
-
[i, [a, re + " Focus"]],
|
|
186
|
-
[
|
|
187
|
-
/\bopt\/([\w\.]+)/i
|
|
188
|
-
// Opera Touch
|
|
189
|
-
],
|
|
190
|
-
[i, [a, J + " Touch"]],
|
|
191
|
-
[
|
|
192
|
-
/coc_coc\w+\/([\w\.]+)/i
|
|
193
|
-
// Coc Coc Browser
|
|
194
|
-
],
|
|
195
|
-
[i, [a, "Coc Coc"]],
|
|
196
|
-
[
|
|
197
|
-
/dolfin\/([\w\.]+)/i
|
|
198
|
-
// Dolphin
|
|
199
|
-
],
|
|
200
|
-
[i, [a, "Dolphin"]],
|
|
201
|
-
[
|
|
202
|
-
/coast\/([\w\.]+)/i
|
|
203
|
-
// Opera Coast
|
|
204
|
-
],
|
|
205
|
-
[i, [a, J + " Coast"]],
|
|
206
|
-
[
|
|
207
|
-
/miuibrowser\/([\w\.]+)/i
|
|
208
|
-
// MIUI Browser
|
|
209
|
-
],
|
|
210
|
-
[i, [a, "MIUI" + Re]],
|
|
211
|
-
[
|
|
212
|
-
/fxios\/([\w\.-]+)/i
|
|
213
|
-
// Firefox for iOS
|
|
214
|
-
],
|
|
215
|
-
[i, [a, re]],
|
|
216
|
-
[
|
|
217
|
-
/\bqihoobrowser\/?([\w\.]*)/i
|
|
218
|
-
// 360
|
|
219
|
-
],
|
|
220
|
-
[i, [a, "360"]],
|
|
221
|
-
[
|
|
222
|
-
/\b(qq)\/([\w\.]+)/i
|
|
223
|
-
// QQ
|
|
224
|
-
],
|
|
225
|
-
[[a, /(.+)/, "$1Browser"], i],
|
|
226
|
-
[
|
|
227
|
-
/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
|
|
228
|
-
],
|
|
229
|
-
[[a, /(.+)/, "$1" + Re], i],
|
|
230
|
-
[
|
|
231
|
-
// Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
|
|
232
|
-
/samsungbrowser\/([\w\.]+)/i
|
|
233
|
-
// Samsung Internet
|
|
234
|
-
],
|
|
235
|
-
[i, [a, Q + " Internet"]],
|
|
236
|
-
[
|
|
237
|
-
/metasr[\/ ]?([\d\.]+)/i
|
|
238
|
-
// Sogou Explorer
|
|
239
|
-
],
|
|
240
|
-
[i, [a, "Sogou Explorer"]],
|
|
241
|
-
[
|
|
242
|
-
/(sogou)mo\w+\/([\d\.]+)/i
|
|
243
|
-
// Sogou Mobile
|
|
244
|
-
],
|
|
245
|
-
[[a, "Sogou Mobile"], i],
|
|
246
|
-
[
|
|
247
|
-
/(electron)\/([\w\.]+) safari/i,
|
|
248
|
-
// Electron-based App
|
|
249
|
-
/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,
|
|
250
|
-
// Tesla
|
|
251
|
-
/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i
|
|
252
|
-
// QQ/2345
|
|
253
|
-
],
|
|
254
|
-
[a, i],
|
|
255
|
-
[
|
|
256
|
-
/(lbbrowser|rekonq)/i,
|
|
257
|
-
// LieBao Browser/Rekonq
|
|
258
|
-
/\[(linkedin)app\]/i
|
|
259
|
-
// LinkedIn App for iOS & Android
|
|
260
|
-
],
|
|
261
|
-
[a],
|
|
262
|
-
[
|
|
263
|
-
/ome\/([\w\.]+) \w* ?(iron) saf/i,
|
|
264
|
-
// Iron
|
|
265
|
-
/ome\/([\w\.]+).+qihu (360)[es]e/i
|
|
266
|
-
// 360
|
|
267
|
-
],
|
|
268
|
-
[i, a],
|
|
269
|
-
[
|
|
270
|
-
// WebView
|
|
271
|
-
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
272
|
-
// Facebook App for iOS & Android
|
|
273
|
-
],
|
|
274
|
-
[[a, Ve], i],
|
|
275
|
-
[
|
|
276
|
-
/(Klarna)\/([\w\.]+)/i,
|
|
277
|
-
// Klarna Shopping Browser for iOS & Android
|
|
278
|
-
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
279
|
-
// Kakao App
|
|
280
|
-
/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,
|
|
281
|
-
// Naver InApp
|
|
282
|
-
/(daum)apps[\/ ]([\w\.]+)/i,
|
|
283
|
-
// Daum App
|
|
284
|
-
/safari (line)\/([\w\.]+)/i,
|
|
285
|
-
// Line App for iOS
|
|
286
|
-
/\b(line)\/([\w\.]+)\/iab/i,
|
|
287
|
-
// Line App for Android
|
|
288
|
-
/(alipay)client\/([\w\.]+)/i,
|
|
289
|
-
// Alipay
|
|
290
|
-
/(twitter)(?:and| f.+e\/([\w\.]+))/i,
|
|
291
|
-
// Twitter
|
|
292
|
-
/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i
|
|
293
|
-
// Chromium/Instagram/Snapchat
|
|
294
|
-
],
|
|
295
|
-
[a, i],
|
|
296
|
-
[
|
|
297
|
-
/\bgsa\/([\w\.]+) .*safari\//i
|
|
298
|
-
// Google Search Appliance on iOS
|
|
299
|
-
],
|
|
300
|
-
[i, [a, "GSA"]],
|
|
301
|
-
[
|
|
302
|
-
/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
|
|
303
|
-
// TikTok
|
|
304
|
-
],
|
|
305
|
-
[i, [a, "TikTok"]],
|
|
306
|
-
[
|
|
307
|
-
/headlesschrome(?:\/([\w\.]+)| )/i
|
|
308
|
-
// Chrome Headless
|
|
309
|
-
],
|
|
310
|
-
[i, [a, se + " Headless"]],
|
|
311
|
-
[
|
|
312
|
-
/ wv\).+(chrome)\/([\w\.]+)/i
|
|
313
|
-
// Chrome WebView
|
|
314
|
-
],
|
|
315
|
-
[[a, se + " WebView"], i],
|
|
316
|
-
[
|
|
317
|
-
/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
|
|
318
|
-
// Android Browser
|
|
319
|
-
],
|
|
320
|
-
[i, [a, "Android " + le]],
|
|
321
|
-
[
|
|
322
|
-
/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
|
|
323
|
-
// Chrome/OmniWeb/Arora/Tizen/Nokia
|
|
324
|
-
],
|
|
325
|
-
[a, i],
|
|
326
|
-
[
|
|
327
|
-
/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i
|
|
328
|
-
// Mobile Safari
|
|
329
|
-
],
|
|
330
|
-
[i, [a, "Mobile Safari"]],
|
|
331
|
-
[
|
|
332
|
-
/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i
|
|
333
|
-
// Safari & Safari Mobile
|
|
334
|
-
],
|
|
335
|
-
[i, a],
|
|
336
|
-
[
|
|
337
|
-
/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i
|
|
338
|
-
// Safari < 3.0
|
|
339
|
-
],
|
|
340
|
-
[a, [i, ie, it]],
|
|
341
|
-
[
|
|
342
|
-
/(webkit|khtml)\/([\w\.]+)/i
|
|
343
|
-
],
|
|
344
|
-
[a, i],
|
|
345
|
-
[
|
|
346
|
-
// Gecko based
|
|
347
|
-
/(navigator|netscape\d?)\/([-\w\.]+)/i
|
|
348
|
-
// Netscape
|
|
349
|
-
],
|
|
350
|
-
[[a, "Netscape"], i],
|
|
351
|
-
[
|
|
352
|
-
/(wolvic|librewolf)\/([\w\.]+)/i
|
|
353
|
-
// Wolvic/LibreWolf
|
|
354
|
-
],
|
|
355
|
-
[a, i],
|
|
356
|
-
[
|
|
357
|
-
/mobile vr; rv:([\w\.]+)\).+firefox/i
|
|
358
|
-
// Firefox Reality
|
|
359
|
-
],
|
|
360
|
-
[i, [a, re + " Reality"]],
|
|
361
|
-
[
|
|
362
|
-
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
363
|
-
// Flow
|
|
364
|
-
/(swiftfox)/i,
|
|
365
|
-
// Swiftfox
|
|
366
|
-
/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,
|
|
367
|
-
// IceDragon/Iceweasel/Camino/Chimera/Fennec/Maemo/Minimo/Conkeror
|
|
368
|
-
/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,
|
|
369
|
-
// Firefox/SeaMonkey/K-Meleon/IceCat/IceApe/Firebird/Phoenix
|
|
370
|
-
/(firefox)\/([\w\.]+)/i,
|
|
371
|
-
// Other Firefox-based
|
|
372
|
-
/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,
|
|
373
|
-
// Mozilla
|
|
374
|
-
// Other
|
|
375
|
-
/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,
|
|
376
|
-
// Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Obigo/Mosaic/Go/ICE/UP.Browser/Ladybird
|
|
377
|
-
/\b(links) \(([\w\.]+)/i
|
|
378
|
-
// Links
|
|
379
|
-
],
|
|
380
|
-
[a, [i, /_/g, "."]],
|
|
381
|
-
[
|
|
382
|
-
/(cobalt)\/([\w\.]+)/i
|
|
383
|
-
// Cobalt
|
|
384
|
-
],
|
|
385
|
-
[a, [i, /master.|lts./, ""]]
|
|
386
|
-
],
|
|
387
|
-
cpu: [
|
|
388
|
-
[
|
|
389
|
-
/\b((amd|x|x86[-_]?|wow|win)64)\b/i
|
|
390
|
-
// AMD64 (x64)
|
|
391
|
-
],
|
|
392
|
-
[[g, "amd64"]],
|
|
393
|
-
[
|
|
394
|
-
/(ia32(?=;))/i,
|
|
395
|
-
// IA32 (quicktime)
|
|
396
|
-
/\b((i[346]|x)86)(pc)?\b/i
|
|
397
|
-
// IA32 (x86)
|
|
398
|
-
],
|
|
399
|
-
[[g, "ia32"]],
|
|
400
|
-
[
|
|
401
|
-
/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
|
|
402
|
-
// ARM64
|
|
403
|
-
],
|
|
404
|
-
[[g, "arm64"]],
|
|
405
|
-
[
|
|
406
|
-
/\b(arm(v[67])?ht?n?[fl]p?)\b/i
|
|
407
|
-
// ARMHF
|
|
408
|
-
],
|
|
409
|
-
[[g, "armhf"]],
|
|
410
|
-
[
|
|
411
|
-
// PocketPC mistakenly identified as PowerPC
|
|
412
|
-
/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
|
|
413
|
-
],
|
|
414
|
-
[[g, "arm"]],
|
|
415
|
-
[
|
|
416
|
-
/((ppc|powerpc)(64)?)( mac|;|\))/i
|
|
417
|
-
// PowerPC
|
|
418
|
-
],
|
|
419
|
-
[[g, /ower/, p, te]],
|
|
420
|
-
[
|
|
421
|
-
/ sun4\w[;\)]/i
|
|
422
|
-
// SPARC
|
|
423
|
-
],
|
|
424
|
-
[[g, "sparc"]],
|
|
425
|
-
[
|
|
426
|
-
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
|
|
427
|
-
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
428
|
-
],
|
|
429
|
-
[[g, te]]
|
|
430
|
-
],
|
|
431
|
-
device: [
|
|
432
|
-
[
|
|
433
|
-
//////////////////////////
|
|
434
|
-
// MOBILES & TABLETS
|
|
435
|
-
/////////////////////////
|
|
436
|
-
// Samsung
|
|
437
|
-
/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
|
|
438
|
-
],
|
|
439
|
-
[o, [t, Q], [e, r]],
|
|
440
|
-
[
|
|
441
|
-
/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
442
|
-
/samsung[- ]((?!sm-[lr])[-\w]+)/i,
|
|
443
|
-
/sec-(sgh\w+)/i
|
|
444
|
-
],
|
|
445
|
-
[o, [t, Q], [e, l]],
|
|
446
|
-
[
|
|
447
|
-
// Apple
|
|
448
|
-
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
449
|
-
// iPod/iPhone
|
|
450
|
-
],
|
|
451
|
-
[o, [t, R], [e, l]],
|
|
452
|
-
[
|
|
453
|
-
/\((ipad);[-\w\),; ]+apple/i,
|
|
454
|
-
// iPad
|
|
455
|
-
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
456
|
-
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
457
|
-
],
|
|
458
|
-
[o, [t, R], [e, r]],
|
|
459
|
-
[
|
|
460
|
-
/(macintosh);/i
|
|
461
|
-
],
|
|
462
|
-
[o, [t, R]],
|
|
463
|
-
[
|
|
464
|
-
// Sharp
|
|
465
|
-
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
466
|
-
],
|
|
467
|
-
[o, [t, Ne], [e, l]],
|
|
468
|
-
[
|
|
469
|
-
// Honor
|
|
470
|
-
/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
|
|
471
|
-
],
|
|
472
|
-
[o, [t, Pe], [e, r]],
|
|
473
|
-
[
|
|
474
|
-
/honor([-\w ]+)[;\)]/i
|
|
475
|
-
],
|
|
476
|
-
[o, [t, Pe], [e, l]],
|
|
477
|
-
[
|
|
478
|
-
// Huawei
|
|
479
|
-
/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
|
|
480
|
-
],
|
|
481
|
-
[o, [t, $e], [e, r]],
|
|
482
|
-
[
|
|
483
|
-
/(?:huawei)([-\w ]+)[;\)]/i,
|
|
484
|
-
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
485
|
-
],
|
|
486
|
-
[o, [t, $e], [e, l]],
|
|
487
|
-
[
|
|
488
|
-
// Xiaomi
|
|
489
|
-
/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
|
|
490
|
-
/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
|
|
491
|
-
// Mi Pad tablets
|
|
492
|
-
],
|
|
493
|
-
[[o, /_/g, " "], [t, xe], [e, r]],
|
|
494
|
-
[
|
|
495
|
-
/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
|
|
496
|
-
// Xiaomi POCO
|
|
497
|
-
/\b; (\w+) build\/hm\1/i,
|
|
498
|
-
// Xiaomi Hongmi 'numeric' models
|
|
499
|
-
/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,
|
|
500
|
-
// Xiaomi Hongmi
|
|
501
|
-
/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,
|
|
502
|
-
// Xiaomi Redmi
|
|
503
|
-
/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,
|
|
504
|
-
// Xiaomi Redmi 'numeric' models
|
|
505
|
-
/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,
|
|
506
|
-
// Xiaomi Mi
|
|
507
|
-
/ ([\w ]+) miui\/v?\d/i
|
|
508
|
-
],
|
|
509
|
-
[[o, /_/g, " "], [t, xe], [e, l]],
|
|
510
|
-
[
|
|
511
|
-
// OPPO
|
|
512
|
-
/; (\w+) bui.+ oppo/i,
|
|
513
|
-
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
514
|
-
],
|
|
515
|
-
[o, [t, ke], [e, l]],
|
|
516
|
-
[
|
|
517
|
-
/\b(opd2(\d{3}a?))(?: bui|\))/i
|
|
518
|
-
],
|
|
519
|
-
[o, [t, ie, { OnePlus: ["304", "403", "203"], "*": ke }], [e, r]],
|
|
520
|
-
[
|
|
521
|
-
// Vivo
|
|
522
|
-
/vivo (\w+)(?: bui|\))/i,
|
|
523
|
-
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
524
|
-
],
|
|
525
|
-
[o, [t, "Vivo"], [e, l]],
|
|
526
|
-
[
|
|
527
|
-
// Realme
|
|
528
|
-
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
529
|
-
],
|
|
530
|
-
[o, [t, "Realme"], [e, l]],
|
|
531
|
-
[
|
|
532
|
-
// Motorola
|
|
533
|
-
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
534
|
-
/\bmot(?:orola)?[- ](\w*)/i,
|
|
535
|
-
/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
536
|
-
],
|
|
537
|
-
[o, [t, ge], [e, l]],
|
|
538
|
-
[
|
|
539
|
-
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
540
|
-
],
|
|
541
|
-
[o, [t, ge], [e, r]],
|
|
542
|
-
[
|
|
543
|
-
// LG
|
|
544
|
-
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
545
|
-
],
|
|
546
|
-
[o, [t, ue], [e, r]],
|
|
547
|
-
[
|
|
548
|
-
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
549
|
-
/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,
|
|
550
|
-
/\blg-?([\d\w]+) bui/i
|
|
551
|
-
],
|
|
552
|
-
[o, [t, ue], [e, l]],
|
|
553
|
-
[
|
|
554
|
-
// Lenovo
|
|
555
|
-
/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
|
|
556
|
-
/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
|
|
557
|
-
],
|
|
558
|
-
[o, [t, et], [e, r]],
|
|
559
|
-
[
|
|
560
|
-
// Nokia
|
|
561
|
-
/(nokia) (t[12][01])/i
|
|
562
|
-
],
|
|
563
|
-
[t, o, [e, r]],
|
|
564
|
-
[
|
|
565
|
-
/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
|
|
566
|
-
/nokia[-_ ]?(([-\w\. ]*))/i
|
|
567
|
-
],
|
|
568
|
-
[[o, /_/g, " "], [e, l], [t, "Nokia"]],
|
|
569
|
-
[
|
|
570
|
-
// Google
|
|
571
|
-
/(pixel (c|tablet))\b/i
|
|
572
|
-
// Google Pixel C/Tablet
|
|
573
|
-
],
|
|
574
|
-
[o, [t, de], [e, r]],
|
|
575
|
-
[
|
|
576
|
-
/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
|
|
577
|
-
// Google Pixel
|
|
578
|
-
],
|
|
579
|
-
[o, [t, de], [e, l]],
|
|
580
|
-
[
|
|
581
|
-
// Sony
|
|
582
|
-
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
583
|
-
],
|
|
584
|
-
[o, [t, ee], [e, l]],
|
|
585
|
-
[
|
|
586
|
-
/sony tablet [ps]/i,
|
|
587
|
-
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
588
|
-
],
|
|
589
|
-
[[o, "Xperia Tablet"], [t, ee], [e, r]],
|
|
590
|
-
[
|
|
591
|
-
// OnePlus
|
|
592
|
-
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
593
|
-
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
594
|
-
],
|
|
595
|
-
[o, [t, Le], [e, l]],
|
|
596
|
-
[
|
|
597
|
-
// Amazon
|
|
598
|
-
/(alexa)webm/i,
|
|
599
|
-
/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,
|
|
600
|
-
// Kindle Fire without Silk / Echo Show
|
|
601
|
-
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
602
|
-
// Kindle Fire HD
|
|
603
|
-
],
|
|
604
|
-
[o, [t, j], [e, r]],
|
|
605
|
-
[
|
|
606
|
-
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
607
|
-
// Fire Phone
|
|
608
|
-
],
|
|
609
|
-
[[o, /(.+)/g, "Fire Phone $1"], [t, j], [e, l]],
|
|
610
|
-
[
|
|
611
|
-
// BlackBerry
|
|
612
|
-
/(playbook);[-\w\),; ]+(rim)/i
|
|
613
|
-
// BlackBerry PlayBook
|
|
614
|
-
],
|
|
615
|
-
[o, t, [e, r]],
|
|
616
|
-
[
|
|
617
|
-
/\b((?:bb[a-f]|st[hv])100-\d)/i,
|
|
618
|
-
/\(bb10; (\w+)/i
|
|
619
|
-
// BlackBerry 10
|
|
620
|
-
],
|
|
621
|
-
[o, [t, Me], [e, l]],
|
|
622
|
-
[
|
|
623
|
-
// Asus
|
|
624
|
-
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
625
|
-
],
|
|
626
|
-
[o, [t, Z], [e, r]],
|
|
627
|
-
[
|
|
628
|
-
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
629
|
-
],
|
|
630
|
-
[o, [t, Z], [e, l]],
|
|
631
|
-
[
|
|
632
|
-
// HTC
|
|
633
|
-
/(nexus 9)/i
|
|
634
|
-
// HTC Nexus 9
|
|
635
|
-
],
|
|
636
|
-
[o, [t, "HTC"], [e, r]],
|
|
637
|
-
[
|
|
638
|
-
/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
|
|
639
|
-
// HTC
|
|
640
|
-
// ZTE
|
|
641
|
-
/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,
|
|
642
|
-
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
643
|
-
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
644
|
-
],
|
|
645
|
-
[t, [o, /_/g, " "], [e, l]],
|
|
646
|
-
[
|
|
647
|
-
// TCL
|
|
648
|
-
/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i
|
|
649
|
-
],
|
|
650
|
-
[o, [t, "TCL"], [e, r]],
|
|
651
|
-
[
|
|
652
|
-
// itel
|
|
653
|
-
/(itel) ((\w+))/i
|
|
654
|
-
],
|
|
655
|
-
[[t, te], o, [e, ie, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
|
|
656
|
-
[
|
|
657
|
-
// Acer
|
|
658
|
-
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
659
|
-
],
|
|
660
|
-
[o, [t, "Acer"], [e, r]],
|
|
661
|
-
[
|
|
662
|
-
// Meizu
|
|
663
|
-
/droid.+; (m[1-5] note) bui/i,
|
|
664
|
-
/\bmz-([-\w]{2,})/i
|
|
665
|
-
],
|
|
666
|
-
[o, [t, "Meizu"], [e, l]],
|
|
667
|
-
[
|
|
668
|
-
// Ulefone
|
|
669
|
-
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
670
|
-
],
|
|
671
|
-
[o, [t, "Ulefone"], [e, l]],
|
|
672
|
-
[
|
|
673
|
-
// Energizer
|
|
674
|
-
/; (energy ?\w+)(?: bui|\))/i,
|
|
675
|
-
/; energizer ([\w ]+)(?: bui|\))/i
|
|
676
|
-
],
|
|
677
|
-
[o, [t, "Energizer"], [e, l]],
|
|
678
|
-
[
|
|
679
|
-
// Cat
|
|
680
|
-
/; cat (b35);/i,
|
|
681
|
-
/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i
|
|
682
|
-
],
|
|
683
|
-
[o, [t, "Cat"], [e, l]],
|
|
684
|
-
[
|
|
685
|
-
// Smartfren
|
|
686
|
-
/((?:new )?andromax[\w- ]+)(?: bui|\))/i
|
|
687
|
-
],
|
|
688
|
-
[o, [t, "Smartfren"], [e, l]],
|
|
689
|
-
[
|
|
690
|
-
// Nothing
|
|
691
|
-
/droid.+; (a(?:015|06[35]|142p?))/i
|
|
692
|
-
],
|
|
693
|
-
[o, [t, "Nothing"], [e, l]],
|
|
694
|
-
[
|
|
695
|
-
// Archos
|
|
696
|
-
/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,
|
|
697
|
-
/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i
|
|
698
|
-
],
|
|
699
|
-
[o, [t, "Archos"], [e, r]],
|
|
700
|
-
[
|
|
701
|
-
/archos ([\w ]+)( b|\))/i,
|
|
702
|
-
/; (ac[3-6]\d\w{2,8})( b|\))/i
|
|
703
|
-
],
|
|
704
|
-
[o, [t, "Archos"], [e, l]],
|
|
705
|
-
[
|
|
706
|
-
// MIXED
|
|
707
|
-
/(imo) (tab \w+)/i,
|
|
708
|
-
// IMO
|
|
709
|
-
/(infinix) (x1101b?)/i
|
|
710
|
-
// Infinix XPad
|
|
711
|
-
],
|
|
712
|
-
[t, o, [e, r]],
|
|
713
|
-
[
|
|
714
|
-
/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,
|
|
715
|
-
// BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron/Infinix/Tecno/Micromax/Advan
|
|
716
|
-
/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,
|
|
717
|
-
// HMD/IMO
|
|
718
|
-
/(hp) ([\w ]+\w)/i,
|
|
719
|
-
// HP iPAQ
|
|
720
|
-
/(microsoft); (lumia[\w ]+)/i,
|
|
721
|
-
// Microsoft Lumia
|
|
722
|
-
/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,
|
|
723
|
-
// Lenovo
|
|
724
|
-
/(oppo) ?([\w ]+) bui/i
|
|
725
|
-
// OPPO
|
|
726
|
-
],
|
|
727
|
-
[t, o, [e, l]],
|
|
728
|
-
[
|
|
729
|
-
/(kobo)\s(ereader|touch)/i,
|
|
730
|
-
// Kobo
|
|
731
|
-
/(hp).+(touchpad(?!.+tablet)|tablet)/i,
|
|
732
|
-
// HP TouchPad
|
|
733
|
-
/(kindle)\/([\w\.]+)/i,
|
|
734
|
-
// Kindle
|
|
735
|
-
/(nook)[\w ]+build\/(\w+)/i,
|
|
736
|
-
// Nook
|
|
737
|
-
/(dell) (strea[kpr\d ]*[\dko])/i,
|
|
738
|
-
// Dell Streak
|
|
739
|
-
/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,
|
|
740
|
-
// Le Pan Tablets
|
|
741
|
-
/(trinity)[- ]*(t\d{3}) bui/i,
|
|
742
|
-
// Trinity Tablets
|
|
743
|
-
/(gigaset)[- ]+(q\w{1,9}) bui/i,
|
|
744
|
-
// Gigaset Tablets
|
|
745
|
-
/(vodafone) ([\w ]+)(?:\)| bui)/i
|
|
746
|
-
// Vodafone
|
|
747
|
-
],
|
|
748
|
-
[t, o, [e, r]],
|
|
749
|
-
[
|
|
750
|
-
/(surface duo)/i
|
|
751
|
-
// Surface Duo
|
|
752
|
-
],
|
|
753
|
-
[o, [t, ye], [e, r]],
|
|
754
|
-
[
|
|
755
|
-
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
756
|
-
// Fairphone
|
|
757
|
-
],
|
|
758
|
-
[o, [t, "Fairphone"], [e, l]],
|
|
759
|
-
[
|
|
760
|
-
/(u304aa)/i
|
|
761
|
-
// AT&T
|
|
762
|
-
],
|
|
763
|
-
[o, [t, "AT&T"], [e, l]],
|
|
764
|
-
[
|
|
765
|
-
/\bsie-(\w*)/i
|
|
766
|
-
// Siemens
|
|
767
|
-
],
|
|
768
|
-
[o, [t, "Siemens"], [e, l]],
|
|
769
|
-
[
|
|
770
|
-
/\b(rct\w+) b/i
|
|
771
|
-
// RCA Tablets
|
|
772
|
-
],
|
|
773
|
-
[o, [t, "RCA"], [e, r]],
|
|
774
|
-
[
|
|
775
|
-
/\b(venue[\d ]{2,7}) b/i
|
|
776
|
-
// Dell Venue Tablets
|
|
777
|
-
],
|
|
778
|
-
[o, [t, "Dell"], [e, r]],
|
|
779
|
-
[
|
|
780
|
-
/\b(q(?:mv|ta)\w+) b/i
|
|
781
|
-
// Verizon Tablet
|
|
782
|
-
],
|
|
783
|
-
[o, [t, "Verizon"], [e, r]],
|
|
784
|
-
[
|
|
785
|
-
/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i
|
|
786
|
-
// Barnes & Noble Tablet
|
|
787
|
-
],
|
|
788
|
-
[o, [t, "Barnes & Noble"], [e, r]],
|
|
789
|
-
[
|
|
790
|
-
/\b(tm\d{3}\w+) b/i
|
|
791
|
-
],
|
|
792
|
-
[o, [t, "NuVision"], [e, r]],
|
|
793
|
-
[
|
|
794
|
-
/\b(k88) b/i
|
|
795
|
-
// ZTE K Series Tablet
|
|
796
|
-
],
|
|
797
|
-
[o, [t, "ZTE"], [e, r]],
|
|
798
|
-
[
|
|
799
|
-
/\b(nx\d{3}j) b/i
|
|
800
|
-
// ZTE Nubia
|
|
801
|
-
],
|
|
802
|
-
[o, [t, "ZTE"], [e, l]],
|
|
803
|
-
[
|
|
804
|
-
/\b(gen\d{3}) b.+49h/i
|
|
805
|
-
// Swiss GEN Mobile
|
|
806
|
-
],
|
|
807
|
-
[o, [t, "Swiss"], [e, l]],
|
|
808
|
-
[
|
|
809
|
-
/\b(zur\d{3}) b/i
|
|
810
|
-
// Swiss ZUR Tablet
|
|
811
|
-
],
|
|
812
|
-
[o, [t, "Swiss"], [e, r]],
|
|
813
|
-
[
|
|
814
|
-
/\b((zeki)?tb.*\b) b/i
|
|
815
|
-
// Zeki Tablets
|
|
816
|
-
],
|
|
817
|
-
[o, [t, "Zeki"], [e, r]],
|
|
818
|
-
[
|
|
819
|
-
/\b([yr]\d{2}) b/i,
|
|
820
|
-
/\b(dragon[- ]+touch |dt)(\w{5}) b/i
|
|
821
|
-
// Dragon Touch Tablet
|
|
822
|
-
],
|
|
823
|
-
[[t, "Dragon Touch"], o, [e, r]],
|
|
824
|
-
[
|
|
825
|
-
/\b(ns-?\w{0,9}) b/i
|
|
826
|
-
// Insignia Tablets
|
|
827
|
-
],
|
|
828
|
-
[o, [t, "Insignia"], [e, r]],
|
|
829
|
-
[
|
|
830
|
-
/\b((nxa|next)-?\w{0,9}) b/i
|
|
831
|
-
// NextBook Tablets
|
|
832
|
-
],
|
|
833
|
-
[o, [t, "NextBook"], [e, r]],
|
|
834
|
-
[
|
|
835
|
-
/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i
|
|
836
|
-
// Voice Xtreme Phones
|
|
837
|
-
],
|
|
838
|
-
[[t, "Voice"], o, [e, l]],
|
|
839
|
-
[
|
|
840
|
-
/\b(lvtel\-)?(v1[12]) b/i
|
|
841
|
-
// LvTel Phones
|
|
842
|
-
],
|
|
843
|
-
[[t, "LvTel"], o, [e, l]],
|
|
844
|
-
[
|
|
845
|
-
/\b(ph-1) /i
|
|
846
|
-
// Essential PH-1
|
|
847
|
-
],
|
|
848
|
-
[o, [t, "Essential"], [e, l]],
|
|
849
|
-
[
|
|
850
|
-
/\b(v(100md|700na|7011|917g).*\b) b/i
|
|
851
|
-
// Envizen Tablets
|
|
852
|
-
],
|
|
853
|
-
[o, [t, "Envizen"], [e, r]],
|
|
854
|
-
[
|
|
855
|
-
/\b(trio[-\w\. ]+) b/i
|
|
856
|
-
// MachSpeed Tablets
|
|
857
|
-
],
|
|
858
|
-
[o, [t, "MachSpeed"], [e, r]],
|
|
859
|
-
[
|
|
860
|
-
/\btu_(1491) b/i
|
|
861
|
-
// Rotor Tablets
|
|
862
|
-
],
|
|
863
|
-
[o, [t, "Rotor"], [e, r]],
|
|
864
|
-
[
|
|
865
|
-
/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
|
|
866
|
-
// Nvidia Tablets
|
|
867
|
-
],
|
|
868
|
-
[o, [t, he], [e, r]],
|
|
869
|
-
[
|
|
870
|
-
/(sprint) (\w+)/i
|
|
871
|
-
// Sprint Phones
|
|
872
|
-
],
|
|
873
|
-
[t, o, [e, l]],
|
|
874
|
-
[
|
|
875
|
-
/(kin\.[onetw]{3})/i
|
|
876
|
-
// Microsoft Kin
|
|
877
|
-
],
|
|
878
|
-
[[o, /\./g, " "], [t, ye], [e, l]],
|
|
879
|
-
[
|
|
880
|
-
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
881
|
-
// Zebra
|
|
882
|
-
],
|
|
883
|
-
[o, [t, _e], [e, r]],
|
|
884
|
-
[
|
|
885
|
-
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
886
|
-
],
|
|
887
|
-
[o, [t, _e], [e, l]],
|
|
888
|
-
[
|
|
889
|
-
///////////////////
|
|
890
|
-
// SMARTTVS
|
|
891
|
-
///////////////////
|
|
892
|
-
/smart-tv.+(samsung)/i
|
|
893
|
-
// Samsung
|
|
894
|
-
],
|
|
895
|
-
[t, [e, s]],
|
|
896
|
-
[
|
|
897
|
-
/hbbtv.+maple;(\d+)/i
|
|
898
|
-
],
|
|
899
|
-
[[o, /^/, "SmartTV"], [t, Q], [e, s]],
|
|
900
|
-
[
|
|
901
|
-
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
902
|
-
// LG SmartTV
|
|
903
|
-
],
|
|
904
|
-
[[t, ue], [e, s]],
|
|
905
|
-
[
|
|
906
|
-
/(apple) ?tv/i
|
|
907
|
-
// Apple TV
|
|
908
|
-
],
|
|
909
|
-
[t, [o, R + " TV"], [e, s]],
|
|
910
|
-
[
|
|
911
|
-
/crkey/i
|
|
912
|
-
// Google Chromecast
|
|
913
|
-
],
|
|
914
|
-
[[o, se + "cast"], [t, de], [e, s]],
|
|
915
|
-
[
|
|
916
|
-
/droid.+aft(\w+)( bui|\))/i
|
|
917
|
-
// Fire TV
|
|
918
|
-
],
|
|
919
|
-
[o, [t, j], [e, s]],
|
|
920
|
-
[
|
|
921
|
-
/(shield \w+ tv)/i
|
|
922
|
-
// Nvidia Shield TV
|
|
923
|
-
],
|
|
924
|
-
[o, [t, he], [e, s]],
|
|
925
|
-
[
|
|
926
|
-
/\(dtv[\);].+(aquos)/i,
|
|
927
|
-
/(aquos-tv[\w ]+)\)/i
|
|
928
|
-
// Sharp
|
|
929
|
-
],
|
|
930
|
-
[o, [t, Ne], [e, s]],
|
|
931
|
-
[
|
|
932
|
-
/(bravia[\w ]+)( bui|\))/i
|
|
933
|
-
// Sony
|
|
934
|
-
],
|
|
935
|
-
[o, [t, ee], [e, s]],
|
|
936
|
-
[
|
|
937
|
-
/(mi(tv|box)-?\w+) bui/i
|
|
938
|
-
// Xiaomi
|
|
939
|
-
],
|
|
940
|
-
[o, [t, xe], [e, s]],
|
|
941
|
-
[
|
|
942
|
-
/Hbbtv.*(technisat) (.*);/i
|
|
943
|
-
// TechniSAT
|
|
944
|
-
],
|
|
945
|
-
[t, o, [e, s]],
|
|
946
|
-
[
|
|
947
|
-
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
948
|
-
// Roku
|
|
949
|
-
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
950
|
-
// HbbTV devices
|
|
951
|
-
],
|
|
952
|
-
[[t, Se], [o, Se], [e, s]],
|
|
953
|
-
[
|
|
954
|
-
// SmartTV from Unidentified Vendors
|
|
955
|
-
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
956
|
-
],
|
|
957
|
-
[o, [e, s]],
|
|
958
|
-
[
|
|
959
|
-
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
960
|
-
],
|
|
961
|
-
[[e, s]],
|
|
962
|
-
[
|
|
963
|
-
///////////////////
|
|
964
|
-
// CONSOLES
|
|
965
|
-
///////////////////
|
|
966
|
-
/(ouya)/i,
|
|
967
|
-
// Ouya
|
|
968
|
-
/(nintendo) ([wids3utch]+)/i
|
|
969
|
-
// Nintendo
|
|
970
|
-
],
|
|
971
|
-
[t, o, [e, I]],
|
|
972
|
-
[
|
|
973
|
-
/droid.+; (shield)( bui|\))/i
|
|
974
|
-
// Nvidia Portable
|
|
975
|
-
],
|
|
976
|
-
[o, [t, he], [e, I]],
|
|
977
|
-
[
|
|
978
|
-
/(playstation \w+)/i
|
|
979
|
-
// Playstation
|
|
980
|
-
],
|
|
981
|
-
[o, [t, ee], [e, I]],
|
|
982
|
-
[
|
|
983
|
-
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
984
|
-
// Microsoft Xbox
|
|
985
|
-
],
|
|
986
|
-
[o, [t, ye], [e, I]],
|
|
987
|
-
[
|
|
988
|
-
///////////////////
|
|
989
|
-
// WEARABLES
|
|
990
|
-
///////////////////
|
|
991
|
-
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
992
|
-
// Samsung Galaxy Watch
|
|
993
|
-
],
|
|
994
|
-
[o, [t, Q], [e, b]],
|
|
995
|
-
[
|
|
996
|
-
/((pebble))app/i,
|
|
997
|
-
// Pebble
|
|
998
|
-
/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i
|
|
999
|
-
// Asus ZenWatch / LG Watch / Pixel Watch
|
|
1000
|
-
],
|
|
1001
|
-
[t, o, [e, b]],
|
|
1002
|
-
[
|
|
1003
|
-
/(ow(?:19|20)?we?[1-3]{1,3})/i
|
|
1004
|
-
// Oppo Watch
|
|
1005
|
-
],
|
|
1006
|
-
[o, [t, ke], [e, b]],
|
|
1007
|
-
[
|
|
1008
|
-
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
1009
|
-
// Apple Watch
|
|
1010
|
-
],
|
|
1011
|
-
[o, [t, R], [e, b]],
|
|
1012
|
-
[
|
|
1013
|
-
/(opwwe\d{3})/i
|
|
1014
|
-
// OnePlus Watch
|
|
1015
|
-
],
|
|
1016
|
-
[o, [t, Le], [e, b]],
|
|
1017
|
-
[
|
|
1018
|
-
/(moto 360)/i
|
|
1019
|
-
// Motorola 360
|
|
1020
|
-
],
|
|
1021
|
-
[o, [t, ge], [e, b]],
|
|
1022
|
-
[
|
|
1023
|
-
/(smartwatch 3)/i
|
|
1024
|
-
// Sony SmartWatch
|
|
1025
|
-
],
|
|
1026
|
-
[o, [t, ee], [e, b]],
|
|
1027
|
-
[
|
|
1028
|
-
/(g watch r)/i
|
|
1029
|
-
// LG G Watch R
|
|
1030
|
-
],
|
|
1031
|
-
[o, [t, ue], [e, b]],
|
|
1032
|
-
[
|
|
1033
|
-
/droid.+; (wt63?0{2,3})\)/i
|
|
1034
|
-
],
|
|
1035
|
-
[o, [t, _e], [e, b]],
|
|
1036
|
-
[
|
|
1037
|
-
///////////////////
|
|
1038
|
-
// XR
|
|
1039
|
-
///////////////////
|
|
1040
|
-
/droid.+; (glass) \d/i
|
|
1041
|
-
// Google Glass
|
|
1042
|
-
],
|
|
1043
|
-
[o, [t, de], [e, b]],
|
|
1044
|
-
[
|
|
1045
|
-
/(pico) (4|neo3(?: link|pro)?)/i
|
|
1046
|
-
// Pico
|
|
1047
|
-
],
|
|
1048
|
-
[t, o, [e, b]],
|
|
1049
|
-
[
|
|
1050
|
-
/; (quest( \d| pro)?)/i
|
|
1051
|
-
// Oculus Quest
|
|
1052
|
-
],
|
|
1053
|
-
[o, [t, Ve], [e, b]],
|
|
1054
|
-
[
|
|
1055
|
-
///////////////////
|
|
1056
|
-
// EMBEDDED
|
|
1057
|
-
///////////////////
|
|
1058
|
-
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
1059
|
-
// Tesla
|
|
1060
|
-
],
|
|
1061
|
-
[t, [e, M]],
|
|
1062
|
-
[
|
|
1063
|
-
/(aeobc)\b/i
|
|
1064
|
-
// Echo Dot
|
|
1065
|
-
],
|
|
1066
|
-
[o, [t, j], [e, M]],
|
|
1067
|
-
[
|
|
1068
|
-
/(homepod).+mac os/i
|
|
1069
|
-
// Apple HomePod
|
|
1070
|
-
],
|
|
1071
|
-
[o, [t, R], [e, M]],
|
|
1072
|
-
[
|
|
1073
|
-
/windows iot/i
|
|
1074
|
-
],
|
|
1075
|
-
[[e, M]],
|
|
1076
|
-
[
|
|
1077
|
-
////////////////////
|
|
1078
|
-
// MIXED (GENERIC)
|
|
1079
|
-
///////////////////
|
|
1080
|
-
/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i
|
|
1081
|
-
// Android Phones from Unidentified Vendors
|
|
1082
|
-
],
|
|
1083
|
-
[o, [e, l]],
|
|
1084
|
-
[
|
|
1085
|
-
/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i
|
|
1086
|
-
// Android Tablets from Unidentified Vendors
|
|
1087
|
-
],
|
|
1088
|
-
[o, [e, r]],
|
|
1089
|
-
[
|
|
1090
|
-
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
|
|
1091
|
-
// Unidentifiable Tablet
|
|
1092
|
-
],
|
|
1093
|
-
[[e, r]],
|
|
1094
|
-
[
|
|
1095
|
-
/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
|
|
1096
|
-
// Unidentifiable Mobile
|
|
1097
|
-
],
|
|
1098
|
-
[[e, l]],
|
|
1099
|
-
[
|
|
1100
|
-
/droid .+?; ([\w\. -]+)( bui|\))/i
|
|
1101
|
-
// Generic Android Device
|
|
1102
|
-
],
|
|
1103
|
-
[o, [t, "Generic"]]
|
|
1104
|
-
],
|
|
1105
|
-
engine: [
|
|
1106
|
-
[
|
|
1107
|
-
/windows.+ edge\/([\w\.]+)/i
|
|
1108
|
-
// EdgeHTML
|
|
1109
|
-
],
|
|
1110
|
-
[i, [a, Qe + "HTML"]],
|
|
1111
|
-
[
|
|
1112
|
-
/(arkweb)\/([\w\.]+)/i
|
|
1113
|
-
// ArkWeb
|
|
1114
|
-
],
|
|
1115
|
-
[a, i],
|
|
1116
|
-
[
|
|
1117
|
-
/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i
|
|
1118
|
-
// Blink
|
|
1119
|
-
],
|
|
1120
|
-
[i, [a, "Blink"]],
|
|
1121
|
-
[
|
|
1122
|
-
/(presto)\/([\w\.]+)/i,
|
|
1123
|
-
// Presto
|
|
1124
|
-
/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,
|
|
1125
|
-
// WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna/Servo
|
|
1126
|
-
/ekioh(flow)\/([\w\.]+)/i,
|
|
1127
|
-
// Flow
|
|
1128
|
-
/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,
|
|
1129
|
-
// KHTML/Tasman/Links
|
|
1130
|
-
/(icab)[\/ ]([23]\.[\d\.]+)/i,
|
|
1131
|
-
// iCab
|
|
1132
|
-
/\b(libweb)/i
|
|
1133
|
-
// LibWeb
|
|
1134
|
-
],
|
|
1135
|
-
[a, i],
|
|
1136
|
-
[
|
|
1137
|
-
/ladybird\//i
|
|
1138
|
-
],
|
|
1139
|
-
[[a, "LibWeb"]],
|
|
1140
|
-
[
|
|
1141
|
-
/rv\:([\w\.]{1,9})\b.+(gecko)/i
|
|
1142
|
-
// Gecko
|
|
1143
|
-
],
|
|
1144
|
-
[i, a]
|
|
1145
|
-
],
|
|
1146
|
-
os: [
|
|
1147
|
-
[
|
|
1148
|
-
// Windows
|
|
1149
|
-
/microsoft (windows) (vista|xp)/i
|
|
1150
|
-
// Windows (iTunes)
|
|
1151
|
-
],
|
|
1152
|
-
[a, i],
|
|
1153
|
-
[
|
|
1154
|
-
/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i
|
|
1155
|
-
// Windows Phone
|
|
1156
|
-
],
|
|
1157
|
-
[a, [i, ie, Ue]],
|
|
1158
|
-
[
|
|
1159
|
-
/windows nt 6\.2; (arm)/i,
|
|
1160
|
-
// Windows RT
|
|
1161
|
-
/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,
|
|
1162
|
-
/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i
|
|
1163
|
-
],
|
|
1164
|
-
[[i, ie, Ue], [a, "Windows"]],
|
|
1165
|
-
[
|
|
1166
|
-
// iOS/macOS
|
|
1167
|
-
/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
1168
|
-
// iOS
|
|
1169
|
-
/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,
|
|
1170
|
-
/cfnetwork\/.+darwin/i
|
|
1171
|
-
],
|
|
1172
|
-
[[i, /_/g, "."], [a, "iOS"]],
|
|
1173
|
-
[
|
|
1174
|
-
/(mac os x) ?([\w\. ]*)/i,
|
|
1175
|
-
/(macintosh|mac_powerpc\b)(?!.+haiku)/i
|
|
1176
|
-
// Mac OS
|
|
1177
|
-
],
|
|
1178
|
-
[[a, ze], [i, /_/g, "."]],
|
|
1179
|
-
[
|
|
1180
|
-
// Mobile OSes
|
|
1181
|
-
/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i
|
|
1182
|
-
// Android-x86/HarmonyOS
|
|
1183
|
-
],
|
|
1184
|
-
[i, a],
|
|
1185
|
-
[
|
|
1186
|
-
/(ubuntu) ([\w\.]+) like android/i
|
|
1187
|
-
// Ubuntu Touch
|
|
1188
|
-
],
|
|
1189
|
-
[[a, /(.+)/, "$1 Touch"], i],
|
|
1190
|
-
[
|
|
1191
|
-
// Android/Blackberry/WebOS/QNX/Bada/RIM/KaiOS/Maemo/MeeGo/S40/Sailfish OS/OpenHarmony/Tizen
|
|
1192
|
-
/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i
|
|
1193
|
-
],
|
|
1194
|
-
[a, i],
|
|
1195
|
-
[
|
|
1196
|
-
/\(bb(10);/i
|
|
1197
|
-
// BlackBerry 10
|
|
1198
|
-
],
|
|
1199
|
-
[i, [a, Me]],
|
|
1200
|
-
[
|
|
1201
|
-
/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i
|
|
1202
|
-
// Symbian
|
|
1203
|
-
],
|
|
1204
|
-
[i, [a, "Symbian"]],
|
|
1205
|
-
[
|
|
1206
|
-
/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
|
|
1207
|
-
// Firefox OS
|
|
1208
|
-
],
|
|
1209
|
-
[i, [a, re + " OS"]],
|
|
1210
|
-
[
|
|
1211
|
-
/web0s;.+rt(tv)/i,
|
|
1212
|
-
/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
|
|
1213
|
-
// WebOS
|
|
1214
|
-
],
|
|
1215
|
-
[i, [a, "webOS"]],
|
|
1216
|
-
[
|
|
1217
|
-
/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i
|
|
1218
|
-
// watchOS
|
|
1219
|
-
],
|
|
1220
|
-
[i, [a, "watchOS"]],
|
|
1221
|
-
[
|
|
1222
|
-
// Google Chromecast
|
|
1223
|
-
/crkey\/([\d\.]+)/i
|
|
1224
|
-
// Google Chromecast
|
|
1225
|
-
],
|
|
1226
|
-
[i, [a, se + "cast"]],
|
|
1227
|
-
[
|
|
1228
|
-
/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i
|
|
1229
|
-
// Chromium OS
|
|
1230
|
-
],
|
|
1231
|
-
[[a, Ie], i],
|
|
1232
|
-
[
|
|
1233
|
-
// Smart TVs
|
|
1234
|
-
/panasonic;(viera)/i,
|
|
1235
|
-
// Panasonic Viera
|
|
1236
|
-
/(netrange)mmh/i,
|
|
1237
|
-
// Netrange
|
|
1238
|
-
/(nettv)\/(\d+\.[\w\.]+)/i,
|
|
1239
|
-
// NetTV
|
|
1240
|
-
// Console
|
|
1241
|
-
/(nintendo|playstation) ([wids345portablevuch]+)/i,
|
|
1242
|
-
// Nintendo/Playstation
|
|
1243
|
-
/(xbox); +xbox ([^\);]+)/i,
|
|
1244
|
-
// Microsoft Xbox (360, One, X, S, Series X, Series S)
|
|
1245
|
-
// Other
|
|
1246
|
-
/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,
|
|
1247
|
-
// Joli/Palm
|
|
1248
|
-
/(mint)[\/\(\) ]?(\w*)/i,
|
|
1249
|
-
// Mint
|
|
1250
|
-
/(mageia|vectorlinux)[; ]/i,
|
|
1251
|
-
// Mageia/VectorLinux
|
|
1252
|
-
/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,
|
|
1253
|
-
// Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware/Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus/Raspbian/Plan9/Minix/RISCOS/Contiki/Deepin/Manjaro/elementary/Sabayon/Linspire
|
|
1254
|
-
/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,
|
|
1255
|
-
// Hurd/Linux
|
|
1256
|
-
/(gnu) ?([\w\.]*)/i,
|
|
1257
|
-
// GNU
|
|
1258
|
-
/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,
|
|
1259
|
-
// FreeBSD/NetBSD/OpenBSD/PC-BSD/GhostBSD/DragonFly
|
|
1260
|
-
/(haiku) (\w+)/i
|
|
1261
|
-
// Haiku
|
|
1262
|
-
],
|
|
1263
|
-
[a, i],
|
|
1264
|
-
[
|
|
1265
|
-
/(sunos) ?([\w\.\d]*)/i
|
|
1266
|
-
// Solaris
|
|
1267
|
-
],
|
|
1268
|
-
[[a, "Solaris"], i],
|
|
1269
|
-
[
|
|
1270
|
-
/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,
|
|
1271
|
-
// Solaris
|
|
1272
|
-
/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,
|
|
1273
|
-
// AIX
|
|
1274
|
-
/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,
|
|
1275
|
-
// BeOS/OS2/AmigaOS/MorphOS/OpenVMS/Fuchsia/HP-UX/SerenityOS
|
|
1276
|
-
/(unix) ?([\w\.]*)/i
|
|
1277
|
-
// UNIX
|
|
1278
|
-
],
|
|
1279
|
-
[a, i]
|
|
1280
|
-
]
|
|
1281
|
-
}, z = function(y, x) {
|
|
1282
|
-
if (typeof y === S && (x = y, y = c), !(this instanceof z))
|
|
1283
|
-
return new z(y, x).getResult();
|
|
1284
|
-
var v = typeof u !== h && u.navigator ? u.navigator : c, O = y || (v && v.userAgent ? v.userAgent : p), F = v && v.userAgentData ? v.userAgentData : c, D = x ? tt(qe, x) : qe, _ = v && v.userAgent == O;
|
|
1285
|
-
return this.getBrowser = function() {
|
|
1286
|
-
var f = {};
|
|
1287
|
-
return f[a] = c, f[i] = c, oe.call(f, O, D.browser), f[$] = ot(f[i]), _ && v && v.brave && typeof v.brave.isBrave == d && (f[a] = "Brave"), f;
|
|
1288
|
-
}, this.getCPU = function() {
|
|
1289
|
-
var f = {};
|
|
1290
|
-
return f[g] = c, oe.call(f, O, D.cpu), f;
|
|
1291
|
-
}, this.getDevice = function() {
|
|
1292
|
-
var f = {};
|
|
1293
|
-
return f[t] = c, f[o] = c, f[e] = c, oe.call(f, O, D.device), _ && !f[e] && F && F.mobile && (f[e] = l), _ && f[o] == "Macintosh" && v && typeof v.standalone !== h && v.maxTouchPoints && v.maxTouchPoints > 2 && (f[o] = "iPad", f[e] = r), f;
|
|
1294
|
-
}, this.getEngine = function() {
|
|
1295
|
-
var f = {};
|
|
1296
|
-
return f[a] = c, f[i] = c, oe.call(f, O, D.engine), f;
|
|
1297
|
-
}, this.getOS = function() {
|
|
1298
|
-
var f = {};
|
|
1299
|
-
return f[a] = c, f[i] = c, oe.call(f, O, D.os), _ && !f[a] && F && F.platform && F.platform != "Unknown" && (f[a] = F.platform.replace(/chrome os/i, Ie).replace(/macos/i, ze)), f;
|
|
1300
|
-
}, this.getResult = function() {
|
|
1301
|
-
return {
|
|
1302
|
-
ua: this.getUA(),
|
|
1303
|
-
browser: this.getBrowser(),
|
|
1304
|
-
engine: this.getEngine(),
|
|
1305
|
-
os: this.getOS(),
|
|
1306
|
-
device: this.getDevice(),
|
|
1307
|
-
cpu: this.getCPU()
|
|
1308
|
-
};
|
|
1309
|
-
}, this.getUA = function() {
|
|
1310
|
-
return O;
|
|
1311
|
-
}, this.setUA = function(f) {
|
|
1312
|
-
return O = typeof f === C && f.length > H ? Se(f, H) : f, this;
|
|
1313
|
-
}, this.setUA(O), this;
|
|
1314
|
-
};
|
|
1315
|
-
z.VERSION = E, z.BROWSER = ce([a, i, $]), z.CPU = ce([g]), z.DEVICE = ce([o, t, e, I, l, s, r, b, M]), z.ENGINE = z.OS = ce([a, i]), n.exports && (T = n.exports = z), T.UAParser = z;
|
|
1316
|
-
var K = typeof u !== h && (u.jQuery || u.Zepto);
|
|
1317
|
-
if (K && !K.ua) {
|
|
1318
|
-
var we = new z();
|
|
1319
|
-
K.ua = we.getResult(), K.ua.get = function() {
|
|
1320
|
-
return we.getUA();
|
|
1321
|
-
}, K.ua.set = function(y) {
|
|
1322
|
-
we.setUA(y);
|
|
1323
|
-
var x = we.getResult();
|
|
1324
|
-
for (var v in x)
|
|
1325
|
-
K.ua[v] = x[v];
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
})(typeof window == "object" ? window : dt);
|
|
1329
|
-
})(Be, Be.exports);
|
|
1330
|
-
var ct = Be.exports;
|
|
1331
|
-
const wt = /* @__PURE__ */ ut(ct);
|
|
1332
|
-
function Ke() {
|
|
1333
|
-
if (window.webkit != null && window.webkit.messageHandlers !== "undefined")
|
|
1334
|
-
try {
|
|
1335
|
-
var n = wt(navigator.userAgent);
|
|
1336
|
-
if (n.browser.name === "WebKit")
|
|
1337
|
-
return "ios_webview";
|
|
1338
|
-
} catch (T) {
|
|
1339
|
-
console.error(T);
|
|
1340
|
-
}
|
|
1341
|
-
return typeof Android < "u" ? "android_webview" : typeof window.cefQuery < "u" ? "cef_webview" : "browser";
|
|
1342
|
-
}
|
|
1343
|
-
function Ye() {
|
|
1344
|
-
return Ke() === "ios_webview";
|
|
1345
|
-
}
|
|
1346
|
-
function Ze() {
|
|
1347
|
-
return Ke() === "android_webview";
|
|
1348
|
-
}
|
|
1349
|
-
function X() {
|
|
1350
|
-
try {
|
|
1351
|
-
return window.self !== window.top;
|
|
1352
|
-
} catch {
|
|
1353
|
-
return !0;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
const bt = 3e3;
|
|
1357
|
-
let ft = 0, ve = null;
|
|
1358
|
-
function vt() {
|
|
1359
|
-
return `req_${++ft}_${Date.now()}`;
|
|
1360
|
-
}
|
|
1361
|
-
function mt() {
|
|
1362
|
-
return "APP_" + Math.random().toString(36).slice(2, 10);
|
|
1363
|
-
}
|
|
1364
|
-
function pt(n) {
|
|
1365
|
-
ve = n;
|
|
1366
|
-
}
|
|
1367
|
-
function Ae() {
|
|
1368
|
-
return ve || (ve = mt()), ve;
|
|
1369
|
-
}
|
|
1370
|
-
function G(n) {
|
|
1371
|
-
X() && window.parent.postMessage({
|
|
1372
|
-
...n,
|
|
1373
|
-
sender: Ae(),
|
|
1374
|
-
target: n.target || "DASHBOARD"
|
|
1375
|
-
}, "*");
|
|
1376
|
-
}
|
|
1377
|
-
function Je(n, T) {
|
|
1378
|
-
return X() ? new Promise((u) => {
|
|
1379
|
-
const c = vt(), E = setTimeout(() => {
|
|
1380
|
-
window.removeEventListener("message", p), u(null);
|
|
1381
|
-
}, bt);
|
|
1382
|
-
function p(B) {
|
|
1383
|
-
const d = B.data;
|
|
1384
|
-
(d == null ? void 0 : d.type) === "DATA_RESPONSE" && (d == null ? void 0 : d.requestId) === c && (!d.target || d.target === Ae()) && (clearTimeout(E), window.removeEventListener("message", p), u(d.data ?? null));
|
|
1385
|
-
}
|
|
1386
|
-
window.addEventListener("message", p), G({
|
|
1387
|
-
type: "DATA_REQUEST",
|
|
1388
|
-
requestId: c,
|
|
1389
|
-
source: n,
|
|
1390
|
-
key: T
|
|
1391
|
-
});
|
|
1392
|
-
}) : Promise.resolve(null);
|
|
1393
|
-
}
|
|
1394
|
-
function be(n) {
|
|
1395
|
-
return Je("localStorage", n);
|
|
1396
|
-
}
|
|
1397
|
-
function yt(n) {
|
|
1398
|
-
return Je("window", n);
|
|
1399
|
-
}
|
|
1400
|
-
function gt(n, T) {
|
|
1401
|
-
G({ type: "setLocalStorage", key: n, value: T });
|
|
1402
|
-
}
|
|
1403
|
-
const W = (n, T) => {
|
|
1404
|
-
const u = n.__vccOpts || n;
|
|
1405
|
-
for (const [c, E] of T)
|
|
1406
|
-
u[c] = E;
|
|
1407
|
-
return u;
|
|
1408
|
-
}, ht = { class: "sky-header-container" }, kt = { class: "topmenubox" }, xt = { class: "header-left" }, _t = ["title"], St = {
|
|
1409
|
-
width: "15",
|
|
1410
|
-
height: "15",
|
|
1411
|
-
viewBox: "0 0 451.847 451.847",
|
|
1412
|
-
style: { transform: "rotate(90deg)" }
|
|
1413
|
-
}, Et = { class: "notPadding" }, Tt = { class: "topmenu-title" }, Ot = {
|
|
1414
|
-
key: 0,
|
|
1415
|
-
class: "title-dropdown"
|
|
1416
|
-
}, Bt = { class: "title-dropdown-header" }, Ct = ["onClick"], At = { class: "pageName" }, Mt = { class: "pageVisit" }, Pt = {
|
|
1417
|
-
key: 0,
|
|
1418
|
-
class: "topmenu-description"
|
|
1419
|
-
}, $t = { class: "topmenubox-button" }, Lt = {
|
|
1420
|
-
__name: "Header",
|
|
1421
|
-
props: {
|
|
1422
|
-
title: {
|
|
1423
|
-
type: String,
|
|
1424
|
-
default: ""
|
|
1425
|
-
},
|
|
1426
|
-
subtitle: {
|
|
1427
|
-
type: String,
|
|
1428
|
-
default: ""
|
|
1429
|
-
},
|
|
1430
|
-
showBackButton: {
|
|
1431
|
-
type: Boolean,
|
|
1432
|
-
default: !0
|
|
1433
|
-
},
|
|
1434
|
-
backButtonTitle: {
|
|
1435
|
-
type: String,
|
|
1436
|
-
default: "Назад"
|
|
1437
|
-
},
|
|
1438
|
-
backEvent: {
|
|
1439
|
-
type: Function,
|
|
1440
|
-
default: null
|
|
1441
|
-
},
|
|
1442
|
-
dropdownItems: {
|
|
1443
|
-
type: Array,
|
|
1444
|
-
default: () => []
|
|
1445
|
-
},
|
|
1446
|
-
dropdownTitle: {
|
|
1447
|
-
type: String,
|
|
1448
|
-
default: "Останні відвідані розділи"
|
|
1449
|
-
},
|
|
1450
|
-
visitLabel: {
|
|
1451
|
-
type: String,
|
|
1452
|
-
default: "Останнє відвідування"
|
|
1453
|
-
},
|
|
1454
|
-
trackPageName: {
|
|
1455
|
-
type: String,
|
|
1456
|
-
default: ""
|
|
1457
|
-
},
|
|
1458
|
-
trackPagePath: {
|
|
1459
|
-
type: String,
|
|
1460
|
-
default: ""
|
|
1461
|
-
},
|
|
1462
|
-
appId: {
|
|
1463
|
-
type: String,
|
|
1464
|
-
default: ""
|
|
1465
|
-
}
|
|
1466
|
-
},
|
|
1467
|
-
emits: ["back", "navigate"],
|
|
1468
|
-
setup(n, { emit: T }) {
|
|
1469
|
-
const u = n;
|
|
1470
|
-
pt(u.appId || Ae());
|
|
1471
|
-
const c = T, E = P(null), p = P(!1), B = P([]), d = P({});
|
|
1472
|
-
X() && u.trackPageName && G({
|
|
1473
|
-
type: "trackVisit",
|
|
1474
|
-
name: u.trackPageName,
|
|
1475
|
-
path: u.trackPagePath || `/${u.trackPageName}`
|
|
1476
|
-
});
|
|
1477
|
-
const h = P(null);
|
|
1478
|
-
X() && be("rocketMode").then(async (s) => {
|
|
1479
|
-
h.value = s, await be("fallbackRocketMode") === null && gt("fallbackRocketMode", s === !0 || s === "true" ? "true" : "false"), G({ type: "setRocketMode", value: !0 });
|
|
1480
|
-
}), ne(() => {
|
|
1481
|
-
I();
|
|
1482
|
-
}), X() && yt("lang").then((s) => {
|
|
1483
|
-
s != null && (d.value = s);
|
|
1484
|
-
});
|
|
1485
|
-
function S(s) {
|
|
1486
|
-
try {
|
|
1487
|
-
if (!s)
|
|
1488
|
-
return;
|
|
1489
|
-
const b = typeof s == "string" ? JSON.parse(s) : s;
|
|
1490
|
-
b != null && b.pages && (B.value = Object.values(b.pages));
|
|
1491
|
-
} catch {
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
S(localStorage.componentStats), X() && be("componentStats").then((s) => {
|
|
1495
|
-
s != null && (localStorage.setItem("componentStats", JSON.stringify(s)), S(s));
|
|
1496
|
-
});
|
|
1497
|
-
const C = N(() => [...u.dropdownItems.length ? u.dropdownItems : B.value].sort((b, M) => M.lastVisit - b.lastVisit)), $ = () => {
|
|
1498
|
-
C.value.length && (p.value = !p.value);
|
|
1499
|
-
}, o = () => {
|
|
1500
|
-
p.value = !1;
|
|
1501
|
-
}, a = (s) => {
|
|
1502
|
-
c("navigate", s.path), X() && G({ type: "navigate", path: s.path }), o();
|
|
1503
|
-
}, e = (s) => {
|
|
1504
|
-
if (!s)
|
|
1505
|
-
return "";
|
|
1506
|
-
const b = d.value[s] || s;
|
|
1507
|
-
return b.charAt(0).toUpperCase() + b.slice(1);
|
|
1508
|
-
}, t = (s) => {
|
|
1509
|
-
const M = Date.now() - s, H = Math.floor(M / 1e3), j = Math.floor(H / 60), R = Math.floor(j / 60), Z = Math.floor(R / 24);
|
|
1510
|
-
return Z > 0 ? `${Z}д тому` : R > 0 ? `${R}год тому` : j > 0 ? `${j}хв тому` : `${H}с тому`;
|
|
1511
|
-
}, i = (s) => {
|
|
1512
|
-
E.value && !E.value.contains(s.target) && o();
|
|
1513
|
-
};
|
|
1514
|
-
ae(() => {
|
|
1515
|
-
document.addEventListener("click", i, !0);
|
|
1516
|
-
}), ne(() => {
|
|
1517
|
-
document.removeEventListener("click", i, !0);
|
|
1518
|
-
});
|
|
1519
|
-
const g = N(() => u.backEvent || u.showBackButton && X()), I = () => {
|
|
1520
|
-
if (h.value !== null) {
|
|
1521
|
-
const s = h.value === !0 || h.value === "true";
|
|
1522
|
-
G({ type: "setRocketMode", value: s });
|
|
1523
|
-
}
|
|
1524
|
-
}, l = () => C.value.find((s) => s.name !== u.trackPageName && s.path), r = async () => {
|
|
1525
|
-
if (u.backEvent)
|
|
1526
|
-
return I(), u.backEvent();
|
|
1527
|
-
let s = l();
|
|
1528
|
-
if (!s && X()) {
|
|
1529
|
-
const b = await be("componentStats");
|
|
1530
|
-
b && (S(b), s = l());
|
|
1531
|
-
}
|
|
1532
|
-
I(), G(s ? { type: "navigate", path: s.path } : { type: "exit" });
|
|
1533
|
-
};
|
|
1534
|
-
return (s, b) => (m(), k("header", ht, [
|
|
1535
|
-
w("div", kt, [
|
|
1536
|
-
w("div", xt, [
|
|
1537
|
-
g.value ? (m(), k("button", {
|
|
1538
|
-
key: 0,
|
|
1539
|
-
class: "btn-back",
|
|
1540
|
-
onClick: r,
|
|
1541
|
-
title: n.backButtonTitle
|
|
1542
|
-
}, [
|
|
1543
|
-
(m(), k("svg", St, [...b[0] || (b[0] = [
|
|
1544
|
-
w("path", {
|
|
1545
|
-
fill: "currentColor",
|
|
1546
|
-
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1547
|
-
}, null, -1)
|
|
1548
|
-
])]))
|
|
1549
|
-
], 8, _t)) : A("", !0),
|
|
1550
|
-
w("div", {
|
|
1551
|
-
ref_key: "dropdownRef",
|
|
1552
|
-
ref: E,
|
|
1553
|
-
class: "titleAndDesc"
|
|
1554
|
-
}, [
|
|
1555
|
-
w("button", {
|
|
1556
|
-
class: q(["title-dropdown-toggle", { "title-dropdown-toggle-active": C.value.length }]),
|
|
1557
|
-
onClick: $
|
|
1558
|
-
}, [
|
|
1559
|
-
V(s.$slots, "title", {}, () => [
|
|
1560
|
-
w("h4", Et, [
|
|
1561
|
-
w("span", Tt, L(n.title), 1),
|
|
1562
|
-
C.value.length ? (m(), k("svg", {
|
|
1563
|
-
key: 0,
|
|
1564
|
-
class: q(["arrow", { open: p.value }]),
|
|
1565
|
-
width: "12",
|
|
1566
|
-
height: "12",
|
|
1567
|
-
viewBox: "0 0 451.847 451.847",
|
|
1568
|
-
style: { "flex-shrink": "0" }
|
|
1569
|
-
}, [...b[1] || (b[1] = [
|
|
1570
|
-
w("path", {
|
|
1571
|
-
fill: "currentColor",
|
|
1572
|
-
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1573
|
-
}, null, -1)
|
|
1574
|
-
])], 2)) : A("", !0)
|
|
1575
|
-
])
|
|
1576
|
-
], !0)
|
|
1577
|
-
], 2),
|
|
1578
|
-
p.value && C.value.length ? (m(), k("div", Ot, [
|
|
1579
|
-
w("div", Bt, L(n.dropdownTitle), 1),
|
|
1580
|
-
b[2] || (b[2] = w("div", { class: "title-dropdown-divider" }, null, -1)),
|
|
1581
|
-
(m(!0), k(fe, null, Te(C.value, (M, H) => (m(), k("div", {
|
|
1582
|
-
key: H,
|
|
1583
|
-
class: "title-dropdown-item",
|
|
1584
|
-
onClick: (j) => a(M)
|
|
1585
|
-
}, [
|
|
1586
|
-
w("p", At, L(e(M.name)), 1),
|
|
1587
|
-
w("small", Mt, " (" + L(n.visitLabel) + " " + L(t(M.lastVisit)) + ") ", 1)
|
|
1588
|
-
], 8, Ct))), 128))
|
|
1589
|
-
])) : A("", !0),
|
|
1590
|
-
V(s.$slots, "subtitle", {}, () => [
|
|
1591
|
-
n.subtitle ? (m(), k("p", Pt, L(n.subtitle), 1)) : A("", !0)
|
|
1592
|
-
], !0)
|
|
1593
|
-
], 512)
|
|
1594
|
-
]),
|
|
1595
|
-
w("div", $t, [
|
|
1596
|
-
b[3] || (b[3] = w("div", null, null, -1)),
|
|
1597
|
-
V(s.$slots, "default", {}, void 0, !0),
|
|
1598
|
-
b[4] || (b[4] = w("div", null, null, -1))
|
|
1599
|
-
])
|
|
1600
|
-
])
|
|
1601
|
-
]));
|
|
1602
|
-
}
|
|
1603
|
-
}, go = /* @__PURE__ */ W(Lt, [["__scopeId", "data-v-ef5e2184"]]);
|
|
1604
|
-
const Nt = { class: "sky-dialog-overlay" }, Vt = {
|
|
1605
|
-
key: 0,
|
|
1606
|
-
class: "sky-dialog-subtitle"
|
|
1607
|
-
}, It = ["title"], zt = {
|
|
1608
|
-
key: 0,
|
|
1609
|
-
class: "sky-dialog-swipe-area"
|
|
1610
|
-
}, Rt = {
|
|
1611
|
-
key: 0,
|
|
1612
|
-
class: "sky-dialog-footer"
|
|
1613
|
-
}, Dt = {
|
|
1614
|
-
__name: "DialogModal",
|
|
1615
|
-
props: {
|
|
1616
|
-
modelValue: {
|
|
1617
|
-
type: Boolean,
|
|
1618
|
-
default: !1
|
|
1619
|
-
},
|
|
1620
|
-
title: {
|
|
1621
|
-
type: String,
|
|
1622
|
-
default: ""
|
|
1623
|
-
},
|
|
1624
|
-
subtitle: {
|
|
1625
|
-
type: String,
|
|
1626
|
-
default: ""
|
|
1627
|
-
},
|
|
1628
|
-
zIndex: {
|
|
1629
|
-
type: [Number, String],
|
|
1630
|
-
default: null
|
|
1631
|
-
},
|
|
1632
|
-
closeText: {
|
|
1633
|
-
type: String,
|
|
1634
|
-
default: "Закрити"
|
|
1635
|
-
},
|
|
1636
|
-
closeOnEsc: {
|
|
1637
|
-
type: Boolean,
|
|
1638
|
-
default: !0
|
|
1639
|
-
},
|
|
1640
|
-
hasButtons: {
|
|
1641
|
-
type: Boolean,
|
|
1642
|
-
default: null
|
|
1643
|
-
}
|
|
1644
|
-
},
|
|
1645
|
-
emits: ["update:modelValue", "close", "save"],
|
|
1646
|
-
setup(n, { emit: T }) {
|
|
1647
|
-
const u = He(), c = n, E = T, p = P(null), B = P(null), d = P(0), h = N(() => {
|
|
1648
|
-
try {
|
|
1649
|
-
return Ye();
|
|
1650
|
-
} catch {
|
|
1651
|
-
return !1;
|
|
1652
|
-
}
|
|
1653
|
-
}), S = N(() => {
|
|
1654
|
-
try {
|
|
1655
|
-
return Ze();
|
|
1656
|
-
} catch {
|
|
1657
|
-
return !1;
|
|
1658
|
-
}
|
|
1659
|
-
}), C = N(() => c.hasButtons !== null ? c.hasButtons : !!u.buttons), $ = () => {
|
|
1660
|
-
E("update:modelValue", !1), E("close");
|
|
1661
|
-
}, o = (i) => {
|
|
1662
|
-
i.key === "Escape" && c.closeOnEsc && c.modelValue && $(), i.key === "Enter" && c.modelValue && E("save");
|
|
1663
|
-
}, a = (i) => {
|
|
1664
|
-
i.touches[0].clientX < 35 && (d.value = i.touches[0].clientX);
|
|
1665
|
-
}, e = (i) => {
|
|
1666
|
-
d.value > 0 && d.value < 35 && i.changedTouches[0].clientX - d.value > 50 && $(), d.value = 0;
|
|
1667
|
-
}, t = () => {
|
|
1668
|
-
if (!(!S.value || !p.value))
|
|
1669
|
-
try {
|
|
1670
|
-
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1671
|
-
const i = Android.getDisplayCutoutTop();
|
|
1672
|
-
if (i && window.devicePixelRatio > 1) {
|
|
1673
|
-
const g = i / window.devicePixelRatio;
|
|
1674
|
-
p.value.style.paddingTop = g + "px";
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
} catch {
|
|
1678
|
-
}
|
|
1679
|
-
};
|
|
1680
|
-
return Ce(
|
|
1681
|
-
() => c.modelValue,
|
|
1682
|
-
(i) => {
|
|
1683
|
-
i ? (document.body.style.overflow = "hidden", Ge(() => {
|
|
1684
|
-
t();
|
|
1685
|
-
})) : document.body.style.overflow = "";
|
|
1686
|
-
}
|
|
1687
|
-
), ae(() => {
|
|
1688
|
-
document.addEventListener("keydown", o), window.addEventListener("resize", t);
|
|
1689
|
-
}), ne(() => {
|
|
1690
|
-
document.removeEventListener("keydown", o), window.removeEventListener("resize", t), document.body.style.overflow = "";
|
|
1691
|
-
}), (i, g) => (m(), Y(me, { to: "body" }, [
|
|
1692
|
-
n.modelValue ? (m(), k("div", {
|
|
1693
|
-
key: 0,
|
|
1694
|
-
class: "sky-dialogbox sky-dialogbox-classic",
|
|
1695
|
-
style: pe([n.zIndex ? { "z-index": n.zIndex } : null])
|
|
1696
|
-
}, [
|
|
1697
|
-
w("div", Nt, [
|
|
1698
|
-
w("div", {
|
|
1699
|
-
ref_key: "dialogContent",
|
|
1700
|
-
ref: p,
|
|
1701
|
-
class: "sky-dialog-content"
|
|
1702
|
-
}, [
|
|
1703
|
-
w("div", {
|
|
1704
|
-
class: q(["sky-dialog-title", { "sky-dialog-title-with-subtitle": n.subtitle }])
|
|
1705
|
-
}, [
|
|
1706
|
-
We(L(n.title) + " ", 1),
|
|
1707
|
-
n.subtitle ? (m(), k("span", Vt, L(n.subtitle), 1)) : A("", !0)
|
|
1708
|
-
], 2),
|
|
1709
|
-
w("button", {
|
|
1710
|
-
class: "sky-dialog-close",
|
|
1711
|
-
title: n.closeText,
|
|
1712
|
-
onClick: $
|
|
1713
|
-
}, [...g[0] || (g[0] = [
|
|
1714
|
-
w("svg", {
|
|
1715
|
-
viewBox: "0 0 16 16",
|
|
1716
|
-
width: "16",
|
|
1717
|
-
height: "16"
|
|
1718
|
-
}, [
|
|
1719
|
-
w("line", {
|
|
1720
|
-
x1: "1",
|
|
1721
|
-
y1: "15",
|
|
1722
|
-
x2: "15",
|
|
1723
|
-
y2: "1",
|
|
1724
|
-
stroke: "currentColor",
|
|
1725
|
-
"stroke-width": "2"
|
|
1726
|
-
}),
|
|
1727
|
-
w("line", {
|
|
1728
|
-
x1: "1",
|
|
1729
|
-
y1: "1",
|
|
1730
|
-
x2: "15",
|
|
1731
|
-
y2: "15",
|
|
1732
|
-
stroke: "currentColor",
|
|
1733
|
-
"stroke-width": "2"
|
|
1734
|
-
})
|
|
1735
|
-
], -1)
|
|
1736
|
-
])], 8, It),
|
|
1737
|
-
g[1] || (g[1] = w("div", { class: "sky-dialog-clearfix" }, null, -1)),
|
|
1738
|
-
w("div", {
|
|
1739
|
-
ref_key: "dialogPaper",
|
|
1740
|
-
ref: B,
|
|
1741
|
-
class: q(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !C.value }]),
|
|
1742
|
-
onTouchstart: a,
|
|
1743
|
-
onTouchend: e
|
|
1744
|
-
}, [
|
|
1745
|
-
h.value ? (m(), k("div", zt)) : A("", !0),
|
|
1746
|
-
V(i.$slots, "default", {}, void 0, !0)
|
|
1747
|
-
], 34),
|
|
1748
|
-
C.value ? (m(), k("div", Rt, [
|
|
1749
|
-
V(i.$slots, "buttons", {}, void 0, !0)
|
|
1750
|
-
])) : A("", !0)
|
|
1751
|
-
], 512)
|
|
1752
|
-
])
|
|
1753
|
-
], 4)) : A("", !0)
|
|
1754
|
-
]));
|
|
1755
|
-
}
|
|
1756
|
-
}, Fe = /* @__PURE__ */ W(Dt, [["__scopeId", "data-v-d76f070e"]]);
|
|
1757
|
-
const Ut = { class: "sky-dialog-overlay" }, qt = { class: "sky-dialog-header" }, jt = ["title"], Ft = {
|
|
1758
|
-
width: "15",
|
|
1759
|
-
height: "15",
|
|
1760
|
-
viewBox: "0 0 451.847 451.847",
|
|
1761
|
-
style: { transform: "rotate(90deg)" }
|
|
1762
|
-
}, Xt = {
|
|
1763
|
-
key: 0,
|
|
1764
|
-
class: "sky-dialog-subtitle"
|
|
1765
|
-
}, Ht = {
|
|
1766
|
-
key: 0,
|
|
1767
|
-
class: "sky-dialog-swipe-area"
|
|
1768
|
-
}, Gt = {
|
|
1769
|
-
key: 0,
|
|
1770
|
-
class: "sky-dialog-footer"
|
|
1771
|
-
}, Wt = {
|
|
1772
|
-
__name: "DialogNext",
|
|
1773
|
-
props: {
|
|
1774
|
-
modelValue: {
|
|
1775
|
-
type: Boolean,
|
|
1776
|
-
default: !1
|
|
1777
|
-
},
|
|
1778
|
-
title: {
|
|
1779
|
-
type: String,
|
|
1780
|
-
default: ""
|
|
1781
|
-
},
|
|
1782
|
-
subtitle: {
|
|
1783
|
-
type: String,
|
|
1784
|
-
default: ""
|
|
1785
|
-
},
|
|
1786
|
-
zIndex: {
|
|
1787
|
-
type: [Number, String],
|
|
1788
|
-
default: null
|
|
1789
|
-
},
|
|
1790
|
-
closeText: {
|
|
1791
|
-
type: String,
|
|
1792
|
-
default: "Назад"
|
|
1793
|
-
},
|
|
1794
|
-
closeOnEsc: {
|
|
1795
|
-
type: Boolean,
|
|
1796
|
-
default: !0
|
|
1797
|
-
},
|
|
1798
|
-
hasButtons: {
|
|
1799
|
-
type: Boolean,
|
|
1800
|
-
default: null
|
|
1801
|
-
}
|
|
1802
|
-
},
|
|
1803
|
-
emits: ["update:modelValue", "close", "save"],
|
|
1804
|
-
setup(n, { emit: T }) {
|
|
1805
|
-
const u = He(), c = n, E = T, p = P(null), B = P(null), d = P(0), h = N(() => {
|
|
1806
|
-
try {
|
|
1807
|
-
return Ye();
|
|
1808
|
-
} catch {
|
|
1809
|
-
return !1;
|
|
1810
|
-
}
|
|
1811
|
-
}), S = N(() => {
|
|
1812
|
-
try {
|
|
1813
|
-
return Ze();
|
|
1814
|
-
} catch {
|
|
1815
|
-
return !1;
|
|
1816
|
-
}
|
|
1817
|
-
}), C = N(() => c.hasButtons !== null ? c.hasButtons : !!u.buttons), $ = () => {
|
|
1818
|
-
E("update:modelValue", !1), E("close");
|
|
1819
|
-
}, o = (i) => {
|
|
1820
|
-
i.key === "Escape" && c.closeOnEsc && c.modelValue && $(), i.key === "Enter" && c.modelValue && E("save");
|
|
1821
|
-
}, a = (i) => {
|
|
1822
|
-
i.touches[0].clientX < 35 && (d.value = i.touches[0].clientX);
|
|
1823
|
-
}, e = (i) => {
|
|
1824
|
-
d.value > 0 && d.value < 35 && i.changedTouches[0].clientX - d.value > 50 && $(), d.value = 0;
|
|
1825
|
-
}, t = () => {
|
|
1826
|
-
if (!(!S.value || !p.value))
|
|
1827
|
-
try {
|
|
1828
|
-
if (typeof Android < "u" && Android.getDisplayCutoutTop) {
|
|
1829
|
-
const i = Android.getDisplayCutoutTop();
|
|
1830
|
-
if (i && window.devicePixelRatio > 1) {
|
|
1831
|
-
const g = i / window.devicePixelRatio;
|
|
1832
|
-
p.value.style.paddingTop = g + "px";
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
} catch {
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
return Ce(
|
|
1839
|
-
() => c.modelValue,
|
|
1840
|
-
(i) => {
|
|
1841
|
-
i ? (document.body.style.overflow = "hidden", Ge(() => {
|
|
1842
|
-
t();
|
|
1843
|
-
})) : document.body.style.overflow = "";
|
|
1844
|
-
}
|
|
1845
|
-
), ae(() => {
|
|
1846
|
-
document.addEventListener("keydown", o), window.addEventListener("resize", t);
|
|
1847
|
-
}), ne(() => {
|
|
1848
|
-
document.removeEventListener("keydown", o), window.removeEventListener("resize", t), document.body.style.overflow = "";
|
|
1849
|
-
}), (i, g) => (m(), Y(me, { to: "body" }, [
|
|
1850
|
-
n.modelValue ? (m(), k("div", {
|
|
1851
|
-
key: 0,
|
|
1852
|
-
class: "sky-dialogbox sky-dialogbox-next",
|
|
1853
|
-
style: pe([n.zIndex ? { "z-index": n.zIndex } : null])
|
|
1854
|
-
}, [
|
|
1855
|
-
w("div", Ut, [
|
|
1856
|
-
w("div", {
|
|
1857
|
-
ref_key: "dialogContent",
|
|
1858
|
-
ref: p,
|
|
1859
|
-
class: "sky-dialog-content"
|
|
1860
|
-
}, [
|
|
1861
|
-
w("div", qt, [
|
|
1862
|
-
w("button", {
|
|
1863
|
-
class: "sky-dialog-back",
|
|
1864
|
-
title: n.closeText,
|
|
1865
|
-
onClick: $
|
|
1866
|
-
}, [
|
|
1867
|
-
(m(), k("svg", Ft, [...g[0] || (g[0] = [
|
|
1868
|
-
w("path", {
|
|
1869
|
-
fill: "currentColor",
|
|
1870
|
-
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
1871
|
-
}, null, -1)
|
|
1872
|
-
])]))
|
|
1873
|
-
], 8, jt),
|
|
1874
|
-
w("div", {
|
|
1875
|
-
class: q(["sky-dialog-title", { "sky-dialog-title-with-subtitle": n.subtitle }])
|
|
1876
|
-
}, [
|
|
1877
|
-
We(L(n.title) + " ", 1),
|
|
1878
|
-
n.subtitle ? (m(), k("span", Xt, L(n.subtitle), 1)) : A("", !0)
|
|
1879
|
-
], 2)
|
|
1880
|
-
]),
|
|
1881
|
-
w("div", {
|
|
1882
|
-
ref_key: "dialogPaper",
|
|
1883
|
-
ref: B,
|
|
1884
|
-
class: q(["sky-dialog-paper", { "sky-dialog-paper-no-footer": !C.value }]),
|
|
1885
|
-
onTouchstart: a,
|
|
1886
|
-
onTouchend: e
|
|
1887
|
-
}, [
|
|
1888
|
-
h.value ? (m(), k("div", Ht)) : A("", !0),
|
|
1889
|
-
V(i.$slots, "default", {}, void 0, !0)
|
|
1890
|
-
], 34),
|
|
1891
|
-
C.value ? (m(), k("div", Gt, [
|
|
1892
|
-
V(i.$slots, "buttons", {}, void 0, !0)
|
|
1893
|
-
])) : A("", !0)
|
|
1894
|
-
], 512)
|
|
1895
|
-
])
|
|
1896
|
-
], 4)) : A("", !0)
|
|
1897
|
-
]));
|
|
1898
|
-
}
|
|
1899
|
-
}, Xe = /* @__PURE__ */ W(Wt, [["__scopeId", "data-v-8e144f41"]]), ho = {
|
|
1900
|
-
__name: "Dialog",
|
|
1901
|
-
props: {
|
|
1902
|
-
modelValue: {
|
|
1903
|
-
type: Boolean,
|
|
1904
|
-
default: !1
|
|
1905
|
-
},
|
|
1906
|
-
title: {
|
|
1907
|
-
type: String,
|
|
1908
|
-
default: ""
|
|
1909
|
-
},
|
|
1910
|
-
subtitle: {
|
|
1911
|
-
type: String,
|
|
1912
|
-
default: ""
|
|
1913
|
-
},
|
|
1914
|
-
zIndex: {
|
|
1915
|
-
type: [Number, String],
|
|
1916
|
-
default: null
|
|
1917
|
-
},
|
|
1918
|
-
closeText: {
|
|
1919
|
-
type: String,
|
|
1920
|
-
default: ""
|
|
1921
|
-
},
|
|
1922
|
-
closeOnEsc: {
|
|
1923
|
-
type: Boolean,
|
|
1924
|
-
default: !0
|
|
1925
|
-
},
|
|
1926
|
-
// Force specific mode (overrides URL parameter)
|
|
1927
|
-
mode: {
|
|
1928
|
-
type: String,
|
|
1929
|
-
default: null,
|
|
1930
|
-
// 'next' | 'classic' | null (auto-detect)
|
|
1931
|
-
validator: (n) => [null, "next", "classic"].includes(n)
|
|
1932
|
-
}
|
|
1933
|
-
},
|
|
1934
|
-
emits: ["update:modelValue", "close", "save"],
|
|
1935
|
-
setup(n, { emit: T }) {
|
|
1936
|
-
const u = n, c = T, E = N({
|
|
1937
|
-
get: () => u.modelValue,
|
|
1938
|
-
set: (d) => c("update:modelValue", d)
|
|
1939
|
-
}), p = P(!0);
|
|
1940
|
-
ae(() => {
|
|
1941
|
-
try {
|
|
1942
|
-
new URLSearchParams(window.location.search).get("rocketMode") === "false" ? p.value = !1 : p.value = !0;
|
|
1943
|
-
} catch {
|
|
1944
|
-
p.value = !0;
|
|
1945
|
-
}
|
|
1946
|
-
});
|
|
1947
|
-
const B = N(() => u.mode === "next" ? Xe : u.mode === "classic" ? Fe : p.value ? Xe : Fe);
|
|
1948
|
-
return (d, h) => (m(), Y(nt(B.value), {
|
|
1949
|
-
modelValue: E.value,
|
|
1950
|
-
"onUpdate:modelValue": h[0] || (h[0] = (S) => E.value = S),
|
|
1951
|
-
title: n.title,
|
|
1952
|
-
subtitle: n.subtitle,
|
|
1953
|
-
"z-index": n.zIndex,
|
|
1954
|
-
"close-text": n.closeText,
|
|
1955
|
-
"close-on-esc": n.closeOnEsc,
|
|
1956
|
-
"has-buttons": !!d.$slots.buttons,
|
|
1957
|
-
onClose: h[1] || (h[1] = (S) => d.$emit("close")),
|
|
1958
|
-
onSave: h[2] || (h[2] = (S) => d.$emit("save"))
|
|
1959
|
-
}, at({
|
|
1960
|
-
default: Oe(() => [
|
|
1961
|
-
V(d.$slots, "default")
|
|
1962
|
-
]),
|
|
1963
|
-
_: 2
|
|
1964
|
-
}, [
|
|
1965
|
-
d.$slots.buttons ? {
|
|
1966
|
-
name: "buttons",
|
|
1967
|
-
fn: Oe(() => [
|
|
1968
|
-
V(d.$slots, "buttons")
|
|
1969
|
-
]),
|
|
1970
|
-
key: "0"
|
|
1971
|
-
} : void 0
|
|
1972
|
-
]), 1064, ["modelValue", "title", "subtitle", "z-index", "close-text", "close-on-esc", "has-buttons"]));
|
|
1973
|
-
}
|
|
1974
|
-
}, Kt = {
|
|
1975
|
-
props: {
|
|
1976
|
-
to: {
|
|
1977
|
-
type: String,
|
|
1978
|
-
default: "body"
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
|
-
function Yt(n, T, u, c, E, p) {
|
|
1983
|
-
return m(), Y(me, { to: u.to }, [
|
|
1984
|
-
V(n.$slots, "default")
|
|
1985
|
-
], 8, ["to"]);
|
|
1986
|
-
}
|
|
1987
|
-
const Zt = /* @__PURE__ */ W(Kt, [["render", Yt]]);
|
|
1988
|
-
const Jt = { class: "sky-modal-header" }, Qt = ["title"], eo = {
|
|
1989
|
-
width: "15",
|
|
1990
|
-
height: "15",
|
|
1991
|
-
viewBox: "0 0 451.847 451.847",
|
|
1992
|
-
style: { transform: "rotate(90deg)" }
|
|
1993
|
-
}, to = { class: "sky-modal-title-wrapper" }, oo = { class: "sky-modal-title" }, io = {
|
|
1994
|
-
key: 0,
|
|
1995
|
-
class: "sky-modal-subtitle"
|
|
1996
|
-
}, no = { class: "sky-modal-body" }, ao = {
|
|
1997
|
-
key: 0,
|
|
1998
|
-
class: "sky-modal-footer"
|
|
1999
|
-
}, lo = {
|
|
2000
|
-
__name: "Modal",
|
|
2001
|
-
props: {
|
|
2002
|
-
modelValue: {
|
|
2003
|
-
type: Boolean,
|
|
2004
|
-
default: !1
|
|
2005
|
-
},
|
|
2006
|
-
title: {
|
|
2007
|
-
type: String,
|
|
2008
|
-
default: ""
|
|
2009
|
-
},
|
|
2010
|
-
subtitle: {
|
|
2011
|
-
type: String,
|
|
2012
|
-
default: ""
|
|
2013
|
-
},
|
|
2014
|
-
closeTitle: {
|
|
2015
|
-
type: String,
|
|
2016
|
-
default: "Закрити"
|
|
2017
|
-
},
|
|
2018
|
-
closeOnOverlay: {
|
|
2019
|
-
type: Boolean,
|
|
2020
|
-
default: !0
|
|
2021
|
-
},
|
|
2022
|
-
closeOnEsc: {
|
|
2023
|
-
type: Boolean,
|
|
2024
|
-
default: !0
|
|
2025
|
-
},
|
|
2026
|
-
width: {
|
|
2027
|
-
type: String,
|
|
2028
|
-
default: "100%"
|
|
2029
|
-
},
|
|
2030
|
-
height: {
|
|
2031
|
-
type: String,
|
|
2032
|
-
default: "100%"
|
|
2033
|
-
}
|
|
2034
|
-
},
|
|
2035
|
-
emits: ["update:modelValue", "close"],
|
|
2036
|
-
setup(n, { emit: T }) {
|
|
2037
|
-
const u = n, c = T, E = N(() => ({
|
|
2038
|
-
width: u.width,
|
|
2039
|
-
height: u.height
|
|
2040
|
-
})), p = () => {
|
|
2041
|
-
c("update:modelValue", !1), c("close");
|
|
2042
|
-
}, B = () => {
|
|
2043
|
-
u.closeOnOverlay && p();
|
|
2044
|
-
}, d = (h) => {
|
|
2045
|
-
h.key === "Escape" && u.closeOnEsc && u.modelValue && p();
|
|
2046
|
-
};
|
|
2047
|
-
return Ce(
|
|
2048
|
-
() => u.modelValue,
|
|
2049
|
-
(h) => {
|
|
2050
|
-
h ? document.body.style.overflow = "hidden" : document.body.style.overflow = "";
|
|
2051
|
-
}
|
|
2052
|
-
), ae(() => {
|
|
2053
|
-
document.addEventListener("keydown", d);
|
|
2054
|
-
}), ne(() => {
|
|
2055
|
-
document.removeEventListener("keydown", d), document.body.style.overflow = "";
|
|
2056
|
-
}), (h, S) => (m(), Y(Zt, { to: "body" }, {
|
|
2057
|
-
default: Oe(() => [
|
|
2058
|
-
n.modelValue ? (m(), k("div", {
|
|
2059
|
-
key: 0,
|
|
2060
|
-
class: "sky-modal-overlay",
|
|
2061
|
-
onClick: lt(B, ["self"])
|
|
2062
|
-
}, [
|
|
2063
|
-
w("div", {
|
|
2064
|
-
class: "sky-modal",
|
|
2065
|
-
style: pe(E.value)
|
|
2066
|
-
}, [
|
|
2067
|
-
w("div", Jt, [
|
|
2068
|
-
w("button", {
|
|
2069
|
-
class: "sky-modal-back",
|
|
2070
|
-
onClick: p,
|
|
2071
|
-
title: n.closeTitle
|
|
2072
|
-
}, [
|
|
2073
|
-
(m(), k("svg", eo, [...S[0] || (S[0] = [
|
|
2074
|
-
w("path", {
|
|
2075
|
-
fill: "currentColor",
|
|
2076
|
-
d: "M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"
|
|
2077
|
-
}, null, -1)
|
|
2078
|
-
])]))
|
|
2079
|
-
], 8, Qt),
|
|
2080
|
-
w("div", to, [
|
|
2081
|
-
w("h4", oo, L(n.title), 1),
|
|
2082
|
-
n.subtitle ? (m(), k("div", io, L(n.subtitle), 1)) : A("", !0)
|
|
2083
|
-
])
|
|
2084
|
-
]),
|
|
2085
|
-
w("div", no, [
|
|
2086
|
-
V(h.$slots, "default", {}, void 0, !0)
|
|
2087
|
-
]),
|
|
2088
|
-
h.$slots.footer ? (m(), k("div", ao, [
|
|
2089
|
-
S[1] || (S[1] = w("div", null, null, -1)),
|
|
2090
|
-
V(h.$slots, "footer", {}, void 0, !0),
|
|
2091
|
-
S[2] || (S[2] = w("div", null, null, -1))
|
|
2092
|
-
])) : A("", !0)
|
|
2093
|
-
], 4)
|
|
2094
|
-
])) : A("", !0)
|
|
2095
|
-
]),
|
|
2096
|
-
_: 3
|
|
2097
|
-
}));
|
|
2098
|
-
}
|
|
2099
|
-
}, ko = /* @__PURE__ */ W(lo, [["__scopeId", "data-v-f18e26e2"]]);
|
|
2100
|
-
const so = ["disabled"], ro = {
|
|
2101
|
-
key: 0,
|
|
2102
|
-
class: "sky-btn-spinner"
|
|
2103
|
-
}, uo = {
|
|
2104
|
-
__name: "SkyButton",
|
|
2105
|
-
props: {
|
|
2106
|
-
variant: {
|
|
2107
|
-
type: String,
|
|
2108
|
-
default: "primary",
|
|
2109
|
-
validator: (n) => ["primary", "danger", "secondary", "outline"].includes(n)
|
|
2110
|
-
},
|
|
2111
|
-
loading: {
|
|
2112
|
-
type: Boolean,
|
|
2113
|
-
default: !1
|
|
2114
|
-
},
|
|
2115
|
-
disabled: {
|
|
2116
|
-
type: Boolean,
|
|
2117
|
-
default: !1
|
|
2118
|
-
},
|
|
2119
|
-
block: {
|
|
2120
|
-
type: Boolean,
|
|
2121
|
-
default: !1
|
|
2122
|
-
},
|
|
2123
|
-
icon: {
|
|
2124
|
-
type: Boolean,
|
|
2125
|
-
default: !1
|
|
2126
|
-
}
|
|
2127
|
-
},
|
|
2128
|
-
setup(n) {
|
|
2129
|
-
return (T, u) => (m(), k("button", st({
|
|
2130
|
-
class: ["sky-btn", [
|
|
2131
|
-
`sky-btn-${n.variant}`,
|
|
2132
|
-
{
|
|
2133
|
-
"sky-btn-block": n.block,
|
|
2134
|
-
"sky-btn-loading": n.loading,
|
|
2135
|
-
"sky-btn-icon": n.icon
|
|
2136
|
-
}
|
|
2137
|
-
]],
|
|
2138
|
-
disabled: n.disabled || n.loading
|
|
2139
|
-
}, T.$attrs), [
|
|
2140
|
-
n.loading ? (m(), k("span", ro)) : A("", !0),
|
|
2141
|
-
V(T.$slots, "default", {}, void 0, !0)
|
|
2142
|
-
], 16, so));
|
|
2143
|
-
}
|
|
2144
|
-
}, xo = /* @__PURE__ */ W(uo, [["__scopeId", "data-v-80ecfdac"]]);
|
|
2145
|
-
const co = ["disabled"], wo = ["onClick", "onMouseenter"], bo = {
|
|
2146
|
-
key: 0,
|
|
2147
|
-
class: "sky-select-check",
|
|
2148
|
-
viewBox: "0 0 16 16",
|
|
2149
|
-
fill: "none",
|
|
2150
|
-
"aria-hidden": "true"
|
|
2151
|
-
}, fo = {
|
|
2152
|
-
key: 1,
|
|
2153
|
-
class: "sky-select-dropdown"
|
|
2154
|
-
}, vo = ["onClick", "onMouseenter"], mo = {
|
|
2155
|
-
key: 0,
|
|
2156
|
-
class: "sky-select-check",
|
|
2157
|
-
viewBox: "0 0 16 16",
|
|
2158
|
-
fill: "none",
|
|
2159
|
-
"aria-hidden": "true"
|
|
2160
|
-
}, po = {
|
|
2161
|
-
__name: "SkySelect",
|
|
2162
|
-
props: {
|
|
2163
|
-
modelValue: {
|
|
2164
|
-
default: null
|
|
2165
|
-
},
|
|
2166
|
-
options: {
|
|
2167
|
-
type: Array,
|
|
2168
|
-
default: () => []
|
|
2169
|
-
},
|
|
2170
|
-
placeholder: {
|
|
2171
|
-
type: String,
|
|
2172
|
-
default: ""
|
|
2173
|
-
},
|
|
2174
|
-
disabled: {
|
|
2175
|
-
type: Boolean,
|
|
2176
|
-
default: !1
|
|
2177
|
-
},
|
|
2178
|
-
block: {
|
|
2179
|
-
type: Boolean,
|
|
2180
|
-
default: !1
|
|
2181
|
-
},
|
|
2182
|
-
teleport: {
|
|
2183
|
-
type: Boolean,
|
|
2184
|
-
default: !1
|
|
2185
|
-
}
|
|
2186
|
-
},
|
|
2187
|
-
emits: ["update:modelValue"],
|
|
2188
|
-
setup(n, { emit: T }) {
|
|
2189
|
-
const u = n, c = T, E = P(null), p = P(null), B = P(!1), d = P(-1), h = P({}), S = N(
|
|
2190
|
-
() => u.options.map(
|
|
2191
|
-
(l) => typeof l == "string" ? { label: l, value: l } : l
|
|
2192
|
-
)
|
|
2193
|
-
), C = N(
|
|
2194
|
-
() => S.value.find((l) => l.value === u.modelValue) ?? null
|
|
2195
|
-
);
|
|
2196
|
-
function $() {
|
|
2197
|
-
if (!u.teleport || !E.value)
|
|
2198
|
-
return;
|
|
2199
|
-
const l = E.value.getBoundingClientRect();
|
|
2200
|
-
h.value = {
|
|
2201
|
-
top: `${l.bottom + 4}px`,
|
|
2202
|
-
left: `${l.left}px`,
|
|
2203
|
-
width: `${l.width}px`
|
|
2204
|
-
};
|
|
2205
|
-
}
|
|
2206
|
-
function o() {
|
|
2207
|
-
u.disabled || (B.value ? e() : a());
|
|
2208
|
-
}
|
|
2209
|
-
function a() {
|
|
2210
|
-
B.value = !0, d.value = S.value.findIndex(
|
|
2211
|
-
(l) => l.value === u.modelValue
|
|
2212
|
-
), $(), document.addEventListener("mousedown", i), u.teleport && (window.addEventListener("scroll", g, !0), window.addEventListener("resize", g));
|
|
2213
|
-
}
|
|
2214
|
-
function e() {
|
|
2215
|
-
B.value = !1, document.removeEventListener("mousedown", i), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
|
|
2216
|
-
}
|
|
2217
|
-
function t(l) {
|
|
2218
|
-
c("update:modelValue", l.value), e();
|
|
2219
|
-
}
|
|
2220
|
-
function i(l) {
|
|
2221
|
-
var r, s;
|
|
2222
|
-
(r = E.value) != null && r.contains(l.target) || (s = p.value) != null && s.contains(l.target) || e();
|
|
2223
|
-
}
|
|
2224
|
-
function g() {
|
|
2225
|
-
$();
|
|
2226
|
-
}
|
|
2227
|
-
function I(l) {
|
|
2228
|
-
if (!B.value) {
|
|
2229
|
-
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), a());
|
|
2230
|
-
return;
|
|
2231
|
-
}
|
|
2232
|
-
l.key === "Escape" ? e() : l.key === "ArrowDown" ? (l.preventDefault(), d.value = Math.min(
|
|
2233
|
-
d.value + 1,
|
|
2234
|
-
S.value.length - 1
|
|
2235
|
-
)) : l.key === "ArrowUp" ? (l.preventDefault(), d.value = Math.max(d.value - 1, 0)) : l.key === "Enter" && (l.preventDefault(), d.value >= 0 && t(S.value[d.value]));
|
|
2236
|
-
}
|
|
2237
|
-
return rt(() => {
|
|
2238
|
-
document.removeEventListener("mousedown", i), window.removeEventListener("scroll", g, !0), window.removeEventListener("resize", g);
|
|
2239
|
-
}), (l, r) => (m(), k("div", {
|
|
2240
|
-
ref_key: "root",
|
|
2241
|
-
ref: E,
|
|
2242
|
-
class: q(["sky-select", {
|
|
2243
|
-
"sky-select-block": n.block,
|
|
2244
|
-
"sky-select-open": B.value,
|
|
2245
|
-
"sky-select-disabled": n.disabled
|
|
2246
|
-
}])
|
|
2247
|
-
}, [
|
|
2248
|
-
w("button", {
|
|
2249
|
-
type: "button",
|
|
2250
|
-
class: "sky-select-trigger",
|
|
2251
|
-
disabled: n.disabled,
|
|
2252
|
-
onClick: o,
|
|
2253
|
-
onKeydown: I
|
|
2254
|
-
}, [
|
|
2255
|
-
w("span", {
|
|
2256
|
-
class: q(["sky-select-value", { "sky-select-placeholder": C.value === null }])
|
|
2257
|
-
}, L(C.value ? C.value.label : n.placeholder), 3),
|
|
2258
|
-
r[0] || (r[0] = w("svg", {
|
|
2259
|
-
class: "sky-select-chevron",
|
|
2260
|
-
viewBox: "0 0 16 16",
|
|
2261
|
-
fill: "none",
|
|
2262
|
-
"aria-hidden": "true"
|
|
2263
|
-
}, [
|
|
2264
|
-
w("path", {
|
|
2265
|
-
d: "M4 6l4 4 4-4",
|
|
2266
|
-
stroke: "currentColor",
|
|
2267
|
-
"stroke-width": "1.5",
|
|
2268
|
-
"stroke-linecap": "round",
|
|
2269
|
-
"stroke-linejoin": "round"
|
|
2270
|
-
})
|
|
2271
|
-
], -1))
|
|
2272
|
-
], 40, co),
|
|
2273
|
-
B.value ? (m(), k(fe, { key: 0 }, [
|
|
2274
|
-
n.teleport ? (m(), Y(me, {
|
|
2275
|
-
key: 0,
|
|
2276
|
-
to: "body"
|
|
2277
|
-
}, [
|
|
2278
|
-
w("div", {
|
|
2279
|
-
ref_key: "dropdownEl",
|
|
2280
|
-
ref: p,
|
|
2281
|
-
class: "sky-select-dropdown-teleported",
|
|
2282
|
-
style: pe(h.value)
|
|
2283
|
-
}, [
|
|
2284
|
-
(m(!0), k(fe, null, Te(S.value, (s, b) => (m(), k("div", {
|
|
2285
|
-
key: s.value,
|
|
2286
|
-
class: q(["sky-select-option", {
|
|
2287
|
-
"sky-select-option-selected": s.value === n.modelValue,
|
|
2288
|
-
"sky-select-option-focused": b === d.value
|
|
2289
|
-
}]),
|
|
2290
|
-
onClick: (M) => t(s),
|
|
2291
|
-
onMouseenter: (M) => d.value = b
|
|
2292
|
-
}, [
|
|
2293
|
-
w("span", null, L(s.label), 1),
|
|
2294
|
-
s.value === n.modelValue ? (m(), k("svg", bo, [...r[1] || (r[1] = [
|
|
2295
|
-
w("path", {
|
|
2296
|
-
d: "M3 8l4 4 6-6",
|
|
2297
|
-
stroke: "currentColor",
|
|
2298
|
-
"stroke-width": "1.5",
|
|
2299
|
-
"stroke-linecap": "round",
|
|
2300
|
-
"stroke-linejoin": "round"
|
|
2301
|
-
}, null, -1)
|
|
2302
|
-
])])) : A("", !0)
|
|
2303
|
-
], 42, wo))), 128))
|
|
2304
|
-
], 4)
|
|
2305
|
-
])) : (m(), k("div", fo, [
|
|
2306
|
-
(m(!0), k(fe, null, Te(S.value, (s, b) => (m(), k("div", {
|
|
2307
|
-
key: s.value,
|
|
2308
|
-
class: q(["sky-select-option", {
|
|
2309
|
-
"sky-select-option-selected": s.value === n.modelValue,
|
|
2310
|
-
"sky-select-option-focused": b === d.value
|
|
2311
|
-
}]),
|
|
2312
|
-
onClick: (M) => t(s),
|
|
2313
|
-
onMouseenter: (M) => d.value = b
|
|
2314
|
-
}, [
|
|
2315
|
-
w("span", null, L(s.label), 1),
|
|
2316
|
-
s.value === n.modelValue ? (m(), k("svg", mo, [...r[2] || (r[2] = [
|
|
2317
|
-
w("path", {
|
|
2318
|
-
d: "M3 8l4 4 6-6",
|
|
2319
|
-
stroke: "currentColor",
|
|
2320
|
-
"stroke-width": "1.5",
|
|
2321
|
-
"stroke-linecap": "round",
|
|
2322
|
-
"stroke-linejoin": "round"
|
|
2323
|
-
}, null, -1)
|
|
2324
|
-
])])) : A("", !0)
|
|
2325
|
-
], 42, vo))), 128))
|
|
2326
|
-
]))
|
|
2327
|
-
], 64)) : A("", !0)
|
|
2328
|
-
], 2));
|
|
2329
|
-
}
|
|
2330
|
-
}, _o = /* @__PURE__ */ W(po, [["__scopeId", "data-v-0b8aa543"]]);
|
|
2331
|
-
export {
|
|
2332
|
-
Zt as BaseTeleport,
|
|
2333
|
-
ho as Dialog,
|
|
2334
|
-
go as Header,
|
|
2335
|
-
ko as Modal,
|
|
2336
|
-
xo as SkyButton,
|
|
2337
|
-
_o as SkySelect
|
|
2338
|
-
};
|