@mapsindoors/map-template 1.81.2 → 1.81.3
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/{_commonjsHelpers-ba3f0406-95c03b59.mjs → _commonjsHelpers-ba3f0406-ba4ec5cf.mjs} +2 -2
- package/dist/{combo-box-item.entry-445b3200.mjs → combo-box-item.entry-21e58067.mjs} +2 -2
- package/dist/{icon-b8d01d6f-c43ca3cb.mjs → icon-b8d01d6f-6e0294c6.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +185 -185
- package/dist/mapsindoors-webcomponent.es.js +29471 -30209
- package/dist/mapsindoors-webcomponent.umd.js +181 -181
- package/dist/{mi-card_2.entry-ff6e5953.mjs → mi-card_2.entry-7be71a53.mjs} +2 -2
- package/dist/{mi-chip.entry-c20bb4dd.mjs → mi-chip.entry-11c462c2.mjs} +2 -2
- package/dist/{mi-column.entry-14cfda84.mjs → mi-column.entry-581dec8b.mjs} +2 -2
- package/dist/{mi-combo-box.entry-57294e57.mjs → mi-combo-box.entry-fa83a707.mjs} +4 -4
- package/dist/{mi-data-table.entry-3556fb85.mjs → mi-data-table.entry-ccc7be41.mjs} +3 -3
- package/dist/{mi-distance_2.entry-eb353fed.mjs → mi-distance_2.entry-614a8e17.mjs} +3 -3
- package/dist/{mi-dropdown-item.entry-dda1ee94.mjs → mi-dropdown-item.entry-b7388dcd.mjs} +2 -2
- package/dist/{mi-dropdown.entry-de9570bd.mjs → mi-dropdown.entry-7c783765.mjs} +4 -4
- package/dist/{mi-floor-selector.entry-c55be1d7.mjs → mi-floor-selector.entry-af2fac46.mjs} +2 -2
- package/dist/mi-keyboard.entry-a66c0ab4.mjs +3110 -0
- package/dist/{mi-list-item-category.entry-6bee048c.mjs → mi-list-item-category.entry-9eaeec00.mjs} +4 -4
- package/dist/{mi-list-item-location.entry-c848597a.mjs → mi-list-item-location.entry-678a17ba.mjs} +4 -4
- package/dist/{mi-list.entry-6343a75c.mjs → mi-list.entry-769097c2.mjs} +2 -2
- package/dist/{mi-location-booking.entry-6b5d0e78.mjs → mi-location-booking.entry-df2415f6.mjs} +3 -3
- package/dist/{mi-location-info.entry-b66884a2.mjs → mi-location-info.entry-f21c11b6.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-9e674057.mjs → mi-map-googlemaps.entry-ff40930f.mjs} +117 -49
- package/dist/{mi-map-mapbox.entry-a8277eb4.mjs → mi-map-mapbox.entry-7b45e3a3.mjs} +3 -3
- package/dist/{mi-metric-card.entry-7d309487.mjs → mi-metric-card.entry-f662d88b.mjs} +3 -3
- package/dist/mi-my-position.entry-ac239dec.mjs +479 -0
- package/dist/{mi-notification.entry-52cad4fd.mjs → mi-notification.entry-1a2d6055.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-692351a5.mjs → mi-route-instructions-heading.entry-9cc9ebe8.mjs} +4 -4
- package/dist/{mi-route-instructions-maneuver-legacy.entry-931d89b4.mjs → mi-route-instructions-maneuver-legacy.entry-b0d53248.mjs} +3 -3
- package/dist/{mi-route-instructions-maneuver.entry-c38d805b.mjs → mi-route-instructions-maneuver.entry-e4a7d458.mjs} +3 -3
- package/dist/{mi-route-instructions-step-legacy.entry-2e40b6e7.mjs → mi-route-instructions-step-legacy.entry-f230233f.mjs} +4 -4
- package/dist/{mi-route-instructions-step.entry-759f59a5.mjs → mi-route-instructions-step.entry-fe65364b.mjs} +4 -4
- package/dist/{mi-route-instructions.entry-449f0b3a.mjs → mi-route-instructions.entry-5c929ec9.mjs} +5 -5
- package/dist/{mi-scroll-buttons.entry-8a8172a9.mjs → mi-scroll-buttons.entry-d25f0822.mjs} +2 -2
- package/dist/{mi-search.entry-4f539114.mjs → mi-search.entry-a7368cea.mjs} +3 -3
- package/dist/{mi-share-sms.entry-bee099a6.mjs → mi-share-sms.entry-2aa3e81f.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-f52c62ee.mjs → mi-step-switcher.entry-280b94d4.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-5e370fb8.mjs → mi-tab-panel.entry-9cb96ad3.mjs} +2 -2
- package/dist/{mi-tab.entry-58f47852.mjs → mi-tab.entry-c98dc785.mjs} +2 -2
- package/dist/{mi-tabs.entry-2a4b30f8.mjs → mi-tabs.entry-06bf631f.mjs} +2 -2
- package/dist/{mi-time.entry-2192b169.mjs → mi-time.entry-2b7ab65a.mjs} +2 -2
- package/dist/{mi-variables-9a6c8d4d-dbe586a3.mjs → mi-variables-9a6c8d4d-40975d08.mjs} +2 -2
- package/dist/{reactcomponent-1b2c162a.mjs → reactcomponent-bfec8ca7.mjs} +2624 -2556
- package/dist/{route-travel-mode.enum-7f4ce9c7-4dda8522.mjs → route-travel-mode.enum-7f4ce9c7-c9549fb4.mjs} +2 -2
- package/dist/{sort-order.enum-64ce8998-e743eaa6.mjs → sort-order.enum-64ce8998-6a55f831.mjs} +3 -3
- package/dist/{unit-system.enum-eaefb53e-64558032.mjs → unit-system.enum-eaefb53e-218e5846.mjs} +2 -2
- package/dist/{utils-ae714467-df2b83e4.mjs → utils-ae714467-fd1172f0.mjs} +2 -2
- package/package.json +1 -1
- package/dist/mi-keyboard.entry-2af4a4b3.mjs +0 -3057
- package/dist/mi-my-position.entry-8487d3b1.mjs +0 -1406
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import { r as be, c as te, h as Ti, H as le } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { c as Ne, a as he } from "./_commonjsHelpers-ba3f0406-ba4ec5cf.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, u = new s.Error().stack;
|
|
8
|
+
u && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[u] = "857b0ca8-2c70-4a8a-972e-cf67537892d8", s._sentryDebugIdIdentifier = "sentry-dbid-857b0ca8-2c70-4a8a-972e-cf67537892d8");
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
})();
|
|
12
|
+
var Qi = Ne(function(s, u) {
|
|
13
|
+
((w, N) => {
|
|
14
|
+
function O(r) {
|
|
15
|
+
for (var a = {}, c = 0; c < r.length; c++)
|
|
16
|
+
a[r[c].toUpperCase()] = r[c];
|
|
17
|
+
return a;
|
|
18
|
+
}
|
|
19
|
+
var oi = 500, Ri = "user-agent", B = "", Zi = "?", Ni = "function", Q = "undefined", W = "object", Oi = "string", j = "browser", P = "cpu", C = "device", E = "engine", z = "os", q = "result", o = "name", i = "type", t = "vendor", n = "version", x = "architecture", ni = "major", e = "model", si = "console", g = "mobile", h = "tablet", f = "smarttv", L = "wearable", yi = "xr", ri = "embedded", ai = "inapp", fi = "brands", V = "formFactors", ji = "fullVersionList", J = "platform", xi = "platformVersion", hi = "bitness", R = "sec-ch-ua", se = R + "-full-version-list", re = R + "-arch", ae = R + "-" + hi, Me = R + "-form-factors", ce = R + "-" + g, ue = R + "-" + e, Gi = R + "-" + J, we = Gi + "-version", Hi = [fi, ji, g, e, J, xi, x, V, hi], Ii = "Amazon", X = "Apple", Vi = "ASUS", Ki = "BlackBerry", K = "Google", Bi = "Huawei", Ai = "Microsoft", zi = "Motorola", Ei = "Nvidia", Wi = "OnePlus", ki = "OPPO", Mi = "Samsung", ci = "Sony", Si = "Xiaomi", vi = "Zebra", qi = "Chromium", Z = "Chromecast", ui = "Firefox", k = "Opera", Ci = "Facebook", $ = "Mobile ", wi = " Browser", Li = "Windows", Ji = typeof w !== Q, A = Ji && w.navigator ? w.navigator : N, G = A && A.userAgentData ? A.userAgentData : N, Pi = function(r, a) {
|
|
20
|
+
if (typeof r === W && 0 < r.length) {
|
|
21
|
+
for (var c in r)
|
|
22
|
+
if (_(r[c]) == _(a))
|
|
23
|
+
return !0;
|
|
24
|
+
return !1;
|
|
25
|
+
}
|
|
26
|
+
return !!F(r) && _(a).indexOf(_(r)) !== -1;
|
|
27
|
+
}, mi = function(r, a) {
|
|
28
|
+
for (var c in r)
|
|
29
|
+
return /^(browser|cpu|device|engine|os)$/.test(c) || !!a && mi(r[c]);
|
|
30
|
+
}, F = function(r) {
|
|
31
|
+
return typeof r === Oi;
|
|
32
|
+
}, _i = function(r) {
|
|
33
|
+
if (!r)
|
|
34
|
+
return N;
|
|
35
|
+
for (var a, c = [], y = ii(/\\?\"/g, r).split(","), M = 0; M < y.length; M++)
|
|
36
|
+
-1 < y[M].indexOf(";") ? (a = gi(y[M]).split(";v="), c[M] = { brand: a[0], version: a[1] }) : c[M] = gi(y[M]);
|
|
37
|
+
return c;
|
|
38
|
+
}, _ = function(r) {
|
|
39
|
+
return F(r) ? r.toLowerCase() : r;
|
|
40
|
+
}, Ui = function(r) {
|
|
41
|
+
return F(r) ? ii(/[^\d\.]/g, r).split(".")[0] : N;
|
|
42
|
+
}, U = function(r) {
|
|
43
|
+
for (var a in r)
|
|
44
|
+
a = r[a], typeof a == W && a.length == 2 ? this[a[0]] = a[1] : this[a] = N;
|
|
45
|
+
return this;
|
|
46
|
+
}, ii = function(r, a) {
|
|
47
|
+
return F(a) ? a.replace(r, B) : a;
|
|
48
|
+
}, di = function(r) {
|
|
49
|
+
return ii(/\\?\"/g, r);
|
|
50
|
+
}, gi = function(r, a) {
|
|
51
|
+
if (F(r))
|
|
52
|
+
return r = ii(/^\s\s*/, r), typeof a === Q ? r : r.substring(0, oi);
|
|
53
|
+
}, Yi = function(r, a) {
|
|
54
|
+
if (r && a)
|
|
55
|
+
for (var c, y, M, b, I, m = 0; m < a.length && !b; ) {
|
|
56
|
+
for (var l = a[m], p = a[m + 1], D = c = 0; D < l.length && !b && l[D]; )
|
|
57
|
+
if (b = l[D++].exec(r))
|
|
58
|
+
for (y = 0; y < p.length; y++)
|
|
59
|
+
I = b[++c], typeof (M = p[y]) === W && 0 < M.length ? M.length === 2 ? typeof M[1] == Ni ? this[M[0]] = M[1].call(this, I) : this[M[0]] = M[1] : M.length === 3 ? typeof M[1] !== Ni || M[1].exec && M[1].test ? this[M[0]] = I ? I.replace(M[1], M[2]) : N : this[M[0]] = I ? M[1].call(this, I, M[2]) : N : M.length === 4 && (this[M[0]] = I ? M[3].call(this, I.replace(M[1], M[2])) : N) : this[M] = I || N;
|
|
60
|
+
m += 2;
|
|
61
|
+
}
|
|
62
|
+
}, H = function(r, a) {
|
|
63
|
+
for (var c in a)
|
|
64
|
+
if (typeof a[c] === W && 0 < a[c].length) {
|
|
65
|
+
for (var y = 0; y < a[c].length; y++)
|
|
66
|
+
if (Pi(a[c][y], r))
|
|
67
|
+
return c === Zi ? N : c;
|
|
68
|
+
} else if (Pi(a[c], r))
|
|
69
|
+
return c === Zi ? N : c;
|
|
70
|
+
return a.hasOwnProperty("*") ? a["*"] : r;
|
|
71
|
+
}, Xi = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $i = { embedded: "Automotive", mobile: "Mobile", tablet: ["Tablet", "EInk"], smarttv: "TV", wearable: "Watch", xr: ["VR", "XR"], "?": ["Desktop", "Unknown"], "*": N }, Fi = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [n, [o, $ + "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [n, [o, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [o, n], [/opios[\/ ]+([\w\.]+)/i], [n, [o, k + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [n, [o, k + " GX"]], [/\bopr\/([\w\.]+)/i], [n, [o, k]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [n, [o, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [n, [o, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(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|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i, /(heytap|ovi|115|surf)browser\/([\d\.]+)/i, /(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i], [o, n], [/quark(?:pc)?\/([-\w\.]+)/i], [n, [o, "Quark"]], [/\bddg\/([\w\.]+)/i], [n, [o, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [n, [o, "UCBrowser"]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [n, [o, "WeChat"]], [/konqueror\/([\w\.]+)/i], [n, [o, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [n, [o, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [n, [o, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [n, [o, "Smart Lenovo" + wi]], [/(avast|avg)\/([\w\.]+)/i], [[o, /(.+)/, "$1 Secure" + wi], n], [/\bfocus\/([\w\.]+)/i], [n, [o, ui + " Focus"]], [/\bopt\/([\w\.]+)/i], [n, [o, k + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [n, [o, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [n, [o, "Dolphin"]], [/coast\/([\w\.]+)/i], [n, [o, k + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [n, [o, "MIUI" + wi]], [/fxios\/([\w\.-]+)/i], [n, [o, $ + ui]], [/\bqihoobrowser\/?([\w\.]*)/i], [n, [o, "360"]], [/\b(qq)\/([\w\.]+)/i], [[o, /(.+)/, "$1Browser"], n], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[o, /(.+)/, "$1" + wi], n], [/samsungbrowser\/([\w\.]+)/i], [n, [o, Mi + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [n, [o, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[o, "Sogou Mobile"], n], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [o, n], [/(lbbrowser|rekonq)/i], [o], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [n, o], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[o, Ci], n, [i, ai]], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /(daum)apps[\/ ]([\w\.]+)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(instagram|snapchat)[\/ ]([-\w\.]+)/i], [o, n, [i, ai]], [/\bgsa\/([\w\.]+) .*safari\//i], [n, [o, "GSA"], [i, ai]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [n, [o, "TikTok"], [i, ai]], [/\[(linkedin)app\]/i], [o, [i, ai]], [/(chromium)[\/ ]([-\w\.]+)/i], [o, n], [/headlesschrome(?:\/([\w\.]+)| )/i], [n, [o, "Chrome Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[o, "Chrome WebView"], n], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [n, [o, "Android" + wi]], [/chrome\/([\w\.]+) mobile/i], [n, [o, $ + "Chrome"]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [o, n], [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], [n, [o, $ + "Safari"]], [/iphone .*mobile(?:\/\w+ | ?)safari/i], [[o, $ + "Safari"]], [/version\/([\w\.\,]+) .*(safari)/i], [n, o], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [o, [n, "1"]], [/(webkit|khtml)\/([\w\.]+)/i], [o, n], [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], [[o, $ + ui], n], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[o, "Netscape"], n], [/(wolvic|librewolf)\/([\w\.]+)/i], [o, n], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [n, [o, ui + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [o, [n, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [o, [n, /[^\d\.]+./, B]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[x, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[x, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[x, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[x, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[x, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[x, /ower/, B, _]], [/ sun4\w[;\)]/i], [[x, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[x, _]]], device: [[/\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], [e, [t, Mi], [i, h]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [e, [t, Mi], [i, g]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [e, [t, X], [i, g]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [e, [t, X], [i, h]], [/(macintosh);/i], [e, [t, X]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [e, [t, "Sharp"], [i, g]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [e, [t, "Honor"], [i, h]], [/honor([-\w ]+)[;\)]/i], [e, [t, "Honor"], [i, g]], [/\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], [e, [t, Bi], [i, h]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [e, [t, Bi], [i, g]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[e, /_/g, " "], [t, Si], [i, h]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[e, /_/g, " "], [t, Si], [i, g]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [e, [t, ki], [i, g]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [e, [t, H, { OnePlus: ["304", "403", "203"], "*": ki }], [i, h]], [/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i], [e, [t, "BLU"], [i, g]], [/; vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [e, [t, "Vivo"], [i, g]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [e, [t, "Realme"], [i, g]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [e, [t, zi], [i, g]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [e, [t, zi], [i, h]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [e, [t, "LG"], [i, h]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i, /\blg-?([\d\w]+) bui/i], [e, [t, "LG"], [i, g]], [/(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, /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i], [e, [t, "Lenovo"], [i, h]], [/(nokia) (t[12][01])/i], [t, e, [i, h]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[e, /_/g, " "], [i, g], [t, "Nokia"]], [/(pixel (c|tablet))\b/i], [e, [t, K], [i, h]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [e, [t, K], [i, g]], [/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], [e, [t, ci], [i, g]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[e, "Xperia Tablet"], [t, ci], [i, h]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [e, [t, Wi], [i, g]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [e, [t, Ii], [i, h]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[e, /(.+)/g, "Fire Phone $1"], [t, Ii], [i, g]], [/(playbook);[-\w\),; ]+(rim)/i], [e, t, [i, h]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [e, [t, Ki], [i, g]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [e, [t, Vi], [i, h]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [e, [t, Vi], [i, g]], [/(nexus 9)/i], [e, [t, "HTC"], [i, h]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [t, [e, /_/g, " "], [i, g]], [/tcl (xess p17aa)/i, /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i], [e, [t, "TCL"], [i, h]], [/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i], [e, [t, "TCL"], [i, g]], [/(itel) ((\w+))/i], [[t, _], e, [i, H, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [e, [t, "Acer"], [i, h]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [e, [t, "Meizu"], [i, g]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [e, [t, "Ulefone"], [i, g]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [e, [t, "Energizer"], [i, g]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [e, [t, "Cat"], [i, g]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [e, [t, "Smartfren"], [i, g]], [/droid.+; (a(?:015|06[35]|142p?))/i], [e, [t, "Nothing"], [i, g]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [e, [t, "Archos"], [i, h]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [e, [t, "Archos"], [i, g]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [t, e, [i, h]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [t, e, [i, g]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i], [t, e, [i, h]], [/(surface duo)/i], [e, [t, Ai], [i, h]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [e, [t, "Fairphone"], [i, g]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [e, [t, Ei], [i, h]], [/(sprint) (\w+)/i], [t, e, [i, g]], [/(kin\.[onetw]{3})/i], [[e, /\./g, " "], [t, Ai], [i, g]], [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [e, [t, vi], [i, h]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [e, [t, vi], [i, g]], [/smart-tv.+(samsung)/i], [t, [i, f]], [/hbbtv.+maple;(\d+)/i], [[e, /^/, "SmartTV"], [t, Mi], [i, f]], [/tcast.+(lg)e?. ([-\w]+)/i], [t, e, [i, f]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[t, "LG"], [i, f]], [/(apple) ?tv/i], [t, [e, X + " TV"], [i, f]], [/crkey.*devicetype\/chromecast/i], [[e, Z + " Third Generation"], [t, K], [i, f]], [/crkey.*devicetype\/([^/]*)/i], [[e, /^/, "Chromecast "], [t, K], [i, f]], [/fuchsia.*crkey/i], [[e, Z + " Nest Hub"], [t, K], [i, f]], [/crkey/i], [[e, Z], [t, K], [i, f]], [/(portaltv)/i], [e, [t, Ci], [i, f]], [/droid.+aft(\w+)( bui|\))/i], [e, [t, Ii], [i, f]], [/(shield \w+ tv)/i], [e, [t, Ei], [i, f]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [e, [t, "Sharp"], [i, f]], [/(bravia[\w ]+)( bui|\))/i], [e, [t, ci], [i, f]], [/(mi(tv|box)-?\w+) bui/i], [e, [t, Si], [i, f]], [/Hbbtv.*(technisat) (.*);/i], [t, e, [i, f]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[t, gi], [e, gi], [i, f]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [e, [i, f]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[i, f]], [/(ouya)/i, /(nintendo) (\w+)/i], [t, e, [i, si]], [/droid.+; (shield)( bui|\))/i], [e, [t, Ei], [i, si]], [/(playstation \w+)/i], [e, [t, ci], [i, si]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [e, [t, Ai], [i, si]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [e, [t, Mi], [i, L]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [t, e, [i, L]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [e, [t, ki], [i, L]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [e, [t, X], [i, L]], [/(opwwe\d{3})/i], [e, [t, Wi], [i, L]], [/(moto 360)/i], [e, [t, zi], [i, L]], [/(smartwatch 3)/i], [e, [t, ci], [i, L]], [/(g watch r)/i], [e, [t, "LG"], [i, L]], [/droid.+; (wt63?0{2,3})\)/i], [e, [t, vi], [i, L]], [/droid.+; (glass) \d/i], [e, [t, K], [i, yi]], [/(pico) (4|neo3(?: link|pro)?)/i], [t, e, [i, yi]], [/(quest( \d| pro)?s?).+vr/i], [e, [t, Ci], [i, yi]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [t, [i, ri]], [/(aeobc)\b/i], [e, [t, Ii], [i, ri]], [/(homepod).+mac os/i], [e, [t, X], [i, ri]], [/windows iot/i], [[i, ri]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], [e, [i, H, { mobile: "Mobile", xr: "VR", "*": h }]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[i, h]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[i, g]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [e, [t, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [n, [o, "EdgeHTML"]], [/(arkweb)\/([\w\.]+)/i], [o, n], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [n, [o, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [o, n], [/ladybird\//i], [[o, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [n, o]], os: [[/microsoft (windows) (vista|xp)/i], [o, n], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [o, [n, H, Xi]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[n, H, Xi], [o, Li]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[n, /_/g, "."], [o, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[o, "macOS"], [n, /_/g, "."]], [/android ([\d\.]+).*crkey/i], [n, [o, Z + " Android"]], [/fuchsia.*crkey\/([\d\.]+)/i], [n, [o, Z + " Fuchsia"]], [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], [n, [o, Z + " SmartSpeaker"]], [/linux.*crkey\/([\d\.]+)/i], [n, [o, Z + " Linux"]], [/crkey\/([\d\.]+)/i], [n, [o, Z]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [n, o], [/(ubuntu) ([\w\.]+) like android/i], [[o, /(.+)/, "$1 Touch"], n], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i], [o, n], [/\(bb(10);/i], [n, [o, Ki]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [n, [o, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [n, [o, ui + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [n, [o, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [n, [o, "watchOS"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[o, "Chrome OS"], n], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) (\w+)/i, /(xbox); +xbox ([^\);]+)/i, /(pico) .+os([\w\.]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([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, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [o, n], [/(sunos) ?([\w\.\d]*)/i], [[o, "Solaris"], n], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [o, n]] }, pi = (k = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} }, U.call(k.init, [[j, [o, n, ni, i]], [P, [x]], [C, [i, e, t]], [E, [o, n]], [z, [o, n]]]), U.call(k.isIgnore, [[j, [n, ni]], [E, [n]], [z, [n]]]), U.call(k.isIgnoreRgx, [[j, / ?browser$/i], [z, / ?os$/i]]), U.call(k.toString, [[j, [o, n]], [P, [x]], [C, [t, e]], [E, [o, n]], [z, [o, n]]]), k), de = function(r, a) {
|
|
72
|
+
var c = pi.init[a], y = pi.isIgnore[a] || 0, M = pi.isIgnoreRgx[a] || 0, b = pi.toString[a] || 0;
|
|
73
|
+
function I() {
|
|
74
|
+
U.call(this, c);
|
|
75
|
+
}
|
|
76
|
+
return I.prototype.getItem = function() {
|
|
77
|
+
return r;
|
|
78
|
+
}, I.prototype.withClientHints = function() {
|
|
79
|
+
return G ? G.getHighEntropyValues(Hi).then(function(m) {
|
|
80
|
+
return r.setCH(new ie(m, !1)).parseCH().get();
|
|
81
|
+
}) : r.parseCH().get();
|
|
82
|
+
}, I.prototype.withFeatureCheck = function() {
|
|
83
|
+
return r.detectFeature().get();
|
|
84
|
+
}, a != q && (I.prototype.is = function(m) {
|
|
85
|
+
var l, p = !1;
|
|
86
|
+
for (l in this)
|
|
87
|
+
if (this.hasOwnProperty(l) && !Pi(y, l) && _(M ? ii(M, this[l]) : this[l]) == _(M ? ii(M, m) : m)) {
|
|
88
|
+
if (p = !0, m != Q)
|
|
89
|
+
break;
|
|
90
|
+
} else if (m == Q && p) {
|
|
91
|
+
p = !p;
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
return p;
|
|
95
|
+
}, I.prototype.toString = function() {
|
|
96
|
+
var m, l = B;
|
|
97
|
+
for (m in b)
|
|
98
|
+
typeof this[b[m]] !== Q && (l += (l ? " " : B) + this[b[m]]);
|
|
99
|
+
return l || Q;
|
|
100
|
+
}), G || (I.prototype.then = function(m) {
|
|
101
|
+
function l() {
|
|
102
|
+
for (var Y in p)
|
|
103
|
+
p.hasOwnProperty(Y) && (this[Y] = p[Y]);
|
|
104
|
+
}
|
|
105
|
+
var p = this, D = (l.prototype = { is: I.prototype.is, toString: I.prototype.toString }, new l());
|
|
106
|
+
return m(D), D;
|
|
107
|
+
}), new I();
|
|
108
|
+
};
|
|
109
|
+
function ie(r, a) {
|
|
110
|
+
if (r = r || {}, U.call(this, Hi), a)
|
|
111
|
+
U.call(this, [[fi, _i(r[R])], [ji, _i(r[se])], [g, /\?1/.test(r[ce])], [e, di(r[ue])], [J, di(r[Gi])], [xi, di(r[we])], [x, di(r[re])], [V, _i(r[Me])], [hi, di(r[ae])]]);
|
|
112
|
+
else
|
|
113
|
+
for (var c in r)
|
|
114
|
+
this.hasOwnProperty(c) && typeof r[c] !== Q && (this[c] = r[c]);
|
|
115
|
+
}
|
|
116
|
+
function ee(r, a, c, y) {
|
|
117
|
+
return this.get = function(M) {
|
|
118
|
+
return M ? this.data.hasOwnProperty(M) ? this.data[M] : N : this.data;
|
|
119
|
+
}, this.set = function(M, b) {
|
|
120
|
+
return this.data[M] = b, this;
|
|
121
|
+
}, this.setCH = function(M) {
|
|
122
|
+
return this.uaCH = M, this;
|
|
123
|
+
}, this.detectFeature = function() {
|
|
124
|
+
if (A && A.userAgent == this.ua)
|
|
125
|
+
switch (this.itemType) {
|
|
126
|
+
case j:
|
|
127
|
+
A.brave && typeof A.brave.isBrave == Ni && this.set(o, "Brave");
|
|
128
|
+
break;
|
|
129
|
+
case C:
|
|
130
|
+
!this.get(i) && G && G[g] && this.set(i, g), this.get(e) == "Macintosh" && A && typeof A.standalone !== Q && A.maxTouchPoints && 2 < A.maxTouchPoints && this.set(e, "iPad").set(i, h);
|
|
131
|
+
break;
|
|
132
|
+
case z:
|
|
133
|
+
!this.get(o) && G && G[J] && this.set(o, G[J]);
|
|
134
|
+
break;
|
|
135
|
+
case q:
|
|
136
|
+
var M = this.data, b = function(I) {
|
|
137
|
+
return M[I].getItem().detectFeature().get();
|
|
138
|
+
};
|
|
139
|
+
this.set(j, b(j)).set(P, b(P)).set(C, b(C)).set(E, b(E)).set(z, b(z));
|
|
140
|
+
}
|
|
141
|
+
return this;
|
|
142
|
+
}, this.parseUA = function() {
|
|
143
|
+
return this.itemType != q && Yi.call(this.data, this.ua, this.rgxMap), this.itemType == j && this.set(ni, Ui(this.get(n))), this;
|
|
144
|
+
}, this.parseCH = function() {
|
|
145
|
+
var M, b = this.uaCH, I = this.rgxMap;
|
|
146
|
+
switch (this.itemType) {
|
|
147
|
+
case j:
|
|
148
|
+
case E:
|
|
149
|
+
var m, l = b[ji] || b[fi];
|
|
150
|
+
if (l)
|
|
151
|
+
for (var p in l) {
|
|
152
|
+
var D = l[p].brand || l[p], p = l[p].version;
|
|
153
|
+
this.itemType != j || /not.a.brand/i.test(D) || m && (!/chrom/i.test(m) || D == qi) || (D = H(D, { Chrome: "Google Chrome", Edge: "Microsoft Edge", "Chrome WebView": "Android WebView", "Chrome Headless": "HeadlessChrome", "Huawei Browser": "HuaweiBrowser", "MIUI Browser": "Miui Browser", "Opera Mobi": "OperaMobile", Yandex: "YaBrowser" }), this.set(o, D).set(n, p).set(ni, Ui(p)), m = D), this.itemType == E && D == qi && this.set(n, p);
|
|
154
|
+
}
|
|
155
|
+
break;
|
|
156
|
+
case P:
|
|
157
|
+
var T = b[x];
|
|
158
|
+
T && (b[hi] == "64" && (T += "64"), Yi.call(this.data, T + ";", I));
|
|
159
|
+
break;
|
|
160
|
+
case C:
|
|
161
|
+
if (b[g] && this.set(i, g), b[e] && (this.set(e, b[e]), this.get(i) && this.get(t) || (Yi.call(T = {}, "droid 9; " + b[e] + ")", I), !this.get(i) && T.type && this.set(i, T.type), !this.get(t) && T.vendor && this.set(t, T.vendor))), b[V]) {
|
|
162
|
+
if (typeof b[V] != "string")
|
|
163
|
+
for (var Y = 0; !M && Y < b[V].length; )
|
|
164
|
+
M = H(b[V][Y++], $i);
|
|
165
|
+
else
|
|
166
|
+
M = H(b[V], $i);
|
|
167
|
+
this.set(i, M);
|
|
168
|
+
}
|
|
169
|
+
break;
|
|
170
|
+
case z:
|
|
171
|
+
var v, T = b[J];
|
|
172
|
+
T && (v = b[xi], T == Li && (v = 13 <= parseInt(Ui(v), 10) ? "11" : "10"), this.set(o, T).set(n, v)), this.get(o) == Li && b[e] == "Xbox" && this.set(o, "Xbox").set(n, N);
|
|
173
|
+
break;
|
|
174
|
+
case q:
|
|
175
|
+
var Di = this.data, T = function(ge) {
|
|
176
|
+
return Di[ge].getItem().setCH(b).parseCH().get();
|
|
177
|
+
};
|
|
178
|
+
this.set(j, T(j)).set(P, T(P)).set(C, T(C)).set(E, T(E)).set(z, T(z));
|
|
179
|
+
}
|
|
180
|
+
return this;
|
|
181
|
+
}, U.call(this, [["itemType", r], ["ua", a], ["uaCH", y], ["rgxMap", c], ["data", de(this, r)]]), this;
|
|
182
|
+
}
|
|
183
|
+
function S(r, a, c) {
|
|
184
|
+
var y, M, b, I, m;
|
|
185
|
+
return typeof r === W ? (a = mi(r, !0) ? (typeof a === W && (c = a), r) : (c = r, N), r = N) : typeof r !== Oi || mi(a, !0) || (c = a, a = N), c && typeof c.append === Ni && (y = {}, c.forEach(function(l, p) {
|
|
186
|
+
y[p] = l;
|
|
187
|
+
}), c = y), this instanceof S ? (M = typeof r === Oi ? r : c && c[Ri] ? c[Ri] : A && A.userAgent ? A.userAgent : B, b = new ie(c, !0), I = a ? ((l, p) => {
|
|
188
|
+
var D, Y = {}, v = p;
|
|
189
|
+
if (!mi(p))
|
|
190
|
+
for (var Di in v = {}, p)
|
|
191
|
+
for (var T in p[Di])
|
|
192
|
+
v[T] = p[Di][T].concat(v[T] || []);
|
|
193
|
+
for (D in l)
|
|
194
|
+
Y[D] = v[D] && v[D].length % 2 == 0 ? v[D].concat(l[D]) : l[D];
|
|
195
|
+
return Y;
|
|
196
|
+
})(Fi, a) : Fi, U.call(this, [["getBrowser", (m = function(l) {
|
|
197
|
+
return l == q ? function() {
|
|
198
|
+
return new ee(l, M, I, b).set("ua", M).set(j, this.getBrowser()).set(P, this.getCPU()).set(C, this.getDevice()).set(E, this.getEngine()).set(z, this.getOS()).get();
|
|
199
|
+
} : function() {
|
|
200
|
+
return new ee(l, M, I[l], b).parseUA().get();
|
|
201
|
+
};
|
|
202
|
+
})(j)], ["getCPU", m(P)], ["getDevice", m(C)], ["getEngine", m(E)], ["getOS", m(z)], ["getResult", m(q)], ["getUA", function() {
|
|
203
|
+
return M;
|
|
204
|
+
}], ["setUA", function(l) {
|
|
205
|
+
return F(l) && (M = l.length > oi ? gi(l, oi) : l), this;
|
|
206
|
+
}]]).setUA(M), this) : new S(r, a, c).getResult();
|
|
207
|
+
}
|
|
208
|
+
S.VERSION = "2.0.3", S.BROWSER = O([o, n, ni, i]), S.CPU = O([x]), S.DEVICE = O([e, t, i, si, g, f, h, L, ri]), S.ENGINE = S.OS = O([o, n]), (u = s.exports ? s.exports = S : u).UAParser = S;
|
|
209
|
+
var bi, ei = Ji && (w.jQuery || w.Zepto);
|
|
210
|
+
ei && !ei.ua && (bi = new S(), ei.ua = bi.getResult(), ei.ua.get = function() {
|
|
211
|
+
return bi.getUA();
|
|
212
|
+
}, ei.ua.set = function(r) {
|
|
213
|
+
bi.setUA(r);
|
|
214
|
+
var a, c = bi.getResult();
|
|
215
|
+
for (a in c)
|
|
216
|
+
ei.ua[a] = c[a];
|
|
217
|
+
});
|
|
218
|
+
})(typeof window == "object" ? window : he);
|
|
219
|
+
}), Ie = function(u) {
|
|
220
|
+
return me(u) && !pe(u);
|
|
221
|
+
};
|
|
222
|
+
function me(s) {
|
|
223
|
+
return !!s && typeof s == "object";
|
|
224
|
+
}
|
|
225
|
+
function pe(s) {
|
|
226
|
+
var u = Object.prototype.toString.call(s);
|
|
227
|
+
return u === "[object RegExp]" || u === "[object Date]" || Oe(s);
|
|
228
|
+
}
|
|
229
|
+
var De = typeof Symbol == "function" && Symbol.for, Te = De ? Symbol.for("react.element") : 60103;
|
|
230
|
+
function Oe(s) {
|
|
231
|
+
return s.$$typeof === Te;
|
|
232
|
+
}
|
|
233
|
+
function ye(s) {
|
|
234
|
+
return Array.isArray(s) ? [] : {};
|
|
235
|
+
}
|
|
236
|
+
function li(s, u) {
|
|
237
|
+
return u.clone !== !1 && u.isMergeableObject(s) ? ti(ye(s), s, u) : s;
|
|
238
|
+
}
|
|
239
|
+
function fe(s, u, w) {
|
|
240
|
+
return s.concat(u).map(function(N) {
|
|
241
|
+
return li(N, w);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function je(s, u) {
|
|
245
|
+
if (!u.customMerge)
|
|
246
|
+
return ti;
|
|
247
|
+
var w = u.customMerge(s);
|
|
248
|
+
return typeof w == "function" ? w : ti;
|
|
249
|
+
}
|
|
250
|
+
function xe(s) {
|
|
251
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(s).filter(function(u) {
|
|
252
|
+
return Object.propertyIsEnumerable.call(s, u);
|
|
253
|
+
}) : [];
|
|
254
|
+
}
|
|
255
|
+
function oe(s) {
|
|
256
|
+
return Object.keys(s).concat(xe(s));
|
|
257
|
+
}
|
|
258
|
+
function ne(s, u) {
|
|
259
|
+
try {
|
|
260
|
+
return u in s;
|
|
261
|
+
} catch {
|
|
262
|
+
return !1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function Ae(s, u) {
|
|
266
|
+
return ne(s, u) && !(Object.hasOwnProperty.call(s, u) && Object.propertyIsEnumerable.call(s, u));
|
|
267
|
+
}
|
|
268
|
+
function ze(s, u, w) {
|
|
269
|
+
var N = {};
|
|
270
|
+
return w.isMergeableObject(s) && oe(s).forEach(function(O) {
|
|
271
|
+
N[O] = li(s[O], w);
|
|
272
|
+
}), oe(u).forEach(function(O) {
|
|
273
|
+
Ae(s, O) || (ne(s, O) && w.isMergeableObject(u[O]) ? N[O] = je(O, w)(s[O], u[O], w) : N[O] = li(u[O], w));
|
|
274
|
+
}), N;
|
|
275
|
+
}
|
|
276
|
+
function ti(s, u, w) {
|
|
277
|
+
w = w || {}, w.arrayMerge = w.arrayMerge || fe, w.isMergeableObject = w.isMergeableObject || Ie, w.cloneUnlessOtherwiseSpecified = li;
|
|
278
|
+
var N = Array.isArray(u), O = Array.isArray(s), oi = N === O;
|
|
279
|
+
return oi ? N ? w.arrayMerge(s, u, w) : ze(s, u, w) : li(u, w);
|
|
280
|
+
}
|
|
281
|
+
ti.all = function(u, w) {
|
|
282
|
+
if (!Array.isArray(u))
|
|
283
|
+
throw new Error("first argument should be an array");
|
|
284
|
+
return u.reduce(function(N, O) {
|
|
285
|
+
return ti(N, O, w);
|
|
286
|
+
}, {});
|
|
287
|
+
};
|
|
288
|
+
var Ee = ti, ke = Ee;
|
|
289
|
+
const Se = ".mi-my-position{display:flex;flex-direction:column;pointer-events:auto;gap:16px;right:0}.mi-my-position__position-button,.mi-my-position__compass-button{margin:0;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;background-repeat:no-repeat;background-position:center;outline:none;border-color:#e5e7eb;border-style:solid;background-color:#fcfcfc}.mi-my-position__position-button{background-size:23px;border-radius:8px}.mi-my-position__position-button--unknown{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjY1NTIzIDEuMjIzNTZDMy4yNjQ3IDAuODMzMDMzIDIuNjMxNTQgMC44MzMwMzMgMi4yNDEwMSAxLjIyMzU2QzEuODUwNDkgMS42MTQwOCAxLjg1MDQ5IDIuMjQ3MjUgMi4yNDEwMSAyLjYzNzc3TDIyLjI2NiAyMi42NjI4QzIyLjY1NjUgMjMuMDUzMyAyMy4yODk3IDIzLjA1MzMgMjMuNjgwMiAyMi42NjI4QzI0LjA3MDcgMjIuMjcyMiAyNC4wNzA3IDIxLjYzOTEgMjMuNjgwMiAyMS4yNDg1TDE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nM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuODkzNDEgMTEuMjgzTDEuOTU2MTYgOS45OTYxMUMwLjA3NjYyOTIgOS41MDYyIC0wLjA3MTg0MTEgNi44OTQ4NSAxLjc0MDA1IDYuMTk1MDdMMTYuMzg4NiAwLjUzNzYxN0MxNy42MTkxIDAuMDYyMzc2NiAxOC44Mjk0IDEuMjcyNjYgMTguMzU0MSAyLjUwMzE2TDEyLjY5NjcgMTcuMTUxN0MxMS45OTY5IDE4Ljk2MzYgOS4zODU2NCAxOC44MTUxIDguODk1NzQgMTYuOTM1Nkw3LjYwODg0IDExLjk5ODRDNy41MTc1NCAxMS42NDggNy4yNDM4NiAxMS4zNzQzIDYuODkzNDEgMTEuMjgzWiIgZmlsbD0iIzczNzM3MyIvPgo8L3N2Zz4K)}.mi-my-position__position-button--known{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOSAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuODkzNDEgMTEuMjgzTDEuOTU2MTYgOS45OTYxMUMwLjA3NjYyOTIgOS41MDYyIC0wLjA3MTg0MTEgNi44OTQ4NSAxLjc0MDA1IDYuMTk1MDdMMTYuMzg4NiAwLjUzNzYxN0MxNy42MTkxIDAuMDYyMzc2NiAxOC44Mjk0IDEuMjcyNjYgMTguMzU0MSAyLjUwMzE2TDEyLjY5NjcgMTcuMTUxN0MxMS45OTY5IDE4Ljk2MzYgOS4zODU2NCAxOC44MTUxIDguODk1NzQgMTYuOTM1Nkw3LjYwODg0IDExLjk5ODRDNy41MTc1NCAxMS42NDggNy4yNDM4NiAxMS4zNzQzIDYuODkzNDEgMTEuMjgzWiIgZmlsbD0iIzczNzM3MyIvPgo8L3N2Zz4K)}.mi-my-position__position-button--centered{background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h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNTQ4MTMgMi45NjI0MUM1LjkwMTU5IDIuMTc1MjcgNy4wMTkxNSAyLjE3NTI3IDcuMzcyNjIgMi45NjI0MUwxMS41OTI5IDEyLjM2MDZDMTEuOTQ5MSAxMy4xNTM4IDExLjE5MzEgMTMuOTkyMyAxMC4zNjczIDEzLjcxOTlMNi43NzM2NyAxMi41MzQzQzYuNTcwMiAxMi40NjcxIDYuMzUwNTQgMTIuNDY3MSA2LjE0NzA3IDEyLjUzNDNMMi41NTM0MyAxMy43MTk5QzEuNzI3NjggMTMuOTkyMyAwLjk3MTY4MyAxMy4xNTM4IDEuMzI3ODggMTIuMzYwNkw1LjU0ODEzIDIuOTYyNDFaIiBmaWxsPSIjREMyNjI2Ii8+CjxwYXRoIGQ9Ik03LjM3MjUzIDI3Ljg5OTRDNy4wMTkwNiAyOC42ODY1IDUuOTAxNSAyOC42ODY1IDUuNTQ4MDQgMjcuODk5NEwxLjMyNzc5IDE4LjUwMTJDMC45NzE1OTcgMTcuNzA4IDEuNzI3NTkgMTYuODY5NSAyLjU1MzM0IDE3LjE0Mkw2LjE0Njk4IDE4LjMyNzVDNi4zNTA0NiAxOC4zOTQ3IDYuNTcwMTEgMTguMzk0NyA2Ljc3MzU5IDE4LjMyNzVMMTAuMzY3MiAxNy4xNDJDMTEuMTkzIDE2Ljg2OTUgMTEuOTQ5IDE3LjcwOCAxMS41OTI4IDE4LjUwMTJMNy4zNzI1MyAyNy44OTk0WiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4K);border-radius:50%}";
|
|
290
|
+
var d;
|
|
291
|
+
(function(s) {
|
|
292
|
+
s.POSITION_UNKNOWN = "POSITION_UNKNOWN", s.POSITION_REQUESTING = "POSITION_REQUESTING", s.POSITION_INACCURATE = "POSITION_INACCURATE", s.POSITION_KNOWN = "POSITION_KNOWN", s.POSITION_CENTERED = "POSITION_CENTERED", s.POSITION_TRACKED = "POSITION_TRACKED", s.POSITION_UNTRACKED = "POSITION_UNTRACKED";
|
|
293
|
+
})(d || (d = {}));
|
|
294
|
+
const ve = class {
|
|
295
|
+
constructor(s) {
|
|
296
|
+
be(this, s), this.position_error = te(this, "position_error", 7), this.position_received = te(this, "position_received", 7), this.parser = new Qi.UAParser(), this.handleDeviceOrientationReference = this.handleDeviceOrientation.bind(this), this.defaultOptions = {
|
|
297
|
+
maxAccuracy: 200,
|
|
298
|
+
positionOptions: {
|
|
299
|
+
timeout: 3e4,
|
|
300
|
+
enableHighAccuracy: !0,
|
|
301
|
+
maximumAge: 0
|
|
302
|
+
},
|
|
303
|
+
positionMarkerStyles: {
|
|
304
|
+
radius: "12px",
|
|
305
|
+
strokeWeight: "2px",
|
|
306
|
+
strokeColor: "white",
|
|
307
|
+
fillColor: "#4169E1",
|
|
308
|
+
fillOpacity: 1
|
|
309
|
+
},
|
|
310
|
+
accuracyCircleStyles: {
|
|
311
|
+
fillColor: "#4169E1",
|
|
312
|
+
fillOpacity: 0.16
|
|
313
|
+
}
|
|
314
|
+
}, this.mapsindoors = void 0, this.myPositionOptions = void 0, this.positionState = void 0;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Removes the event listener for the device's orientation and resets the position button.
|
|
318
|
+
*/
|
|
319
|
+
resetPositionState() {
|
|
320
|
+
window.removeEventListener("deviceorientation", this.handleDeviceOrientationReference), this.positionState === d.POSITION_TRACKED ? this.setPositionState(d.POSITION_UNTRACKED) : this.positionState === d.POSITION_CENTERED && (this.setPositionState(d.POSITION_KNOWN), this.mapView.tilt(0));
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Returns if position is known and accurate.
|
|
324
|
+
*
|
|
325
|
+
* @returns {boolean}
|
|
326
|
+
*/
|
|
327
|
+
hasValidPosition() {
|
|
328
|
+
return [d.POSITION_KNOWN, d.POSITION_CENTERED, d.POSITION_INACCURATE, d.POSITION_TRACKED, d.POSITION_UNTRACKED].includes(this.positionState);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Sets position to unknown and emits error about it.
|
|
332
|
+
*
|
|
333
|
+
* @param {object} error
|
|
334
|
+
*/
|
|
335
|
+
setPositionUnknown(s) {
|
|
336
|
+
this.setPositionState(d.POSITION_UNKNOWN), this.position_error.emit(s);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Sets the PositionControl as PositionProvider on the MapView.
|
|
340
|
+
*/
|
|
341
|
+
setPositionProviderOnMapView() {
|
|
342
|
+
this.mapView.isReady ? this.mapView.setPositionProvider(this) : this.mapView.once("ready", () => {
|
|
343
|
+
this.mapView.setPositionProvider(this);
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Pan map to center on the current position.
|
|
348
|
+
*/
|
|
349
|
+
panToCurrentPosition() {
|
|
350
|
+
this.hasValidPosition() && (this.mapView.once("idle", () => {
|
|
351
|
+
this.mapView.on("user_interaction", () => this.resetPositionState());
|
|
352
|
+
}), this.mapView.panTo({ lat: this.currentPosition.coords.latitude, lng: this.currentPosition.coords.longitude }), this.positionState !== d.POSITION_TRACKED && this.setPositionState(d.POSITION_CENTERED), this.canBeTracked && (DeviceOrientationEvent.requestPermission ? DeviceOrientationEvent.requestPermission().then((s) => {
|
|
353
|
+
s === "granted" && this.positionState === d.POSITION_TRACKED ? window.addEventListener("deviceorientation", this.handleDeviceOrientationReference) : window.removeEventListener("deviceorientation", this.handleDeviceOrientationReference);
|
|
354
|
+
}) : this.positionState === d.POSITION_TRACKED ? window.addEventListener("deviceorientation", this.handleDeviceOrientationReference) : window.removeEventListener("deviceorientation", this.handleDeviceOrientationReference)));
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Rotates and tilts the map.
|
|
358
|
+
*
|
|
359
|
+
* @param {DeviceOrientationEvent} e
|
|
360
|
+
*/
|
|
361
|
+
handleDeviceOrientation(s) {
|
|
362
|
+
(!this.orientation || this.orientation - (360 - s.alpha) > 1 || this.orientation - (360 - s.alpha) < -1) && (this.orientation = 360 - s.alpha, this.mapView.easeTo({
|
|
363
|
+
center: [this.currentPosition.coords.longitude, this.currentPosition.coords.latitude],
|
|
364
|
+
rotation: this.orientation,
|
|
365
|
+
tilt: 60,
|
|
366
|
+
easing: (u) => u * (2 - u)
|
|
367
|
+
}));
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Rotates the compass button using the transform CSS property.
|
|
371
|
+
*
|
|
372
|
+
* @param {number} bearing
|
|
373
|
+
*/
|
|
374
|
+
setCompassStyle(s) {
|
|
375
|
+
this.compassButton.style.transform = `rotate(${s}deg)`;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Method for requesting the current position, emitting events and showing position on map based on result.
|
|
379
|
+
*
|
|
380
|
+
* @param {boolean} [selfInvoked=false] - Used to track if call was invoked by clicking on position control or not.
|
|
381
|
+
*/
|
|
382
|
+
watchPosition(s = !1) {
|
|
383
|
+
if (!navigator.geolocation)
|
|
384
|
+
return;
|
|
385
|
+
this.setPositionState(d.POSITION_REQUESTING), this.setPositionProviderOnMapView();
|
|
386
|
+
const u = Date.now();
|
|
387
|
+
navigator.geolocation.watchPosition((w) => {
|
|
388
|
+
this.currentPosition && w.coords.accuracy === this.currentPosition.coords.accuracy && w.coords.latitude === this.currentPosition.coords.latitude && w.coords.longitude === this.currentPosition.coords.longitude || (this.currentPosition = w, this.positionIsAccurate = this.currentPosition.coords.accuracy <= this.options.maxAccuracy, this.positionIsAccurate ? (this.positionState === d.POSITION_TRACKED ? this.setPositionState(d.POSITION_UNTRACKED) : this.positionState !== d.POSITION_UNTRACKED && this.setPositionState(d.POSITION_KNOWN), window.removeEventListener("deviceorientation", this.handleDeviceOrientationReference)) : (this.setPositionState(d.POSITION_INACCURATE), this.position_error.emit({ code: 11, message: "Inaccurate position: " + w.coords.accuracy })), this.position_received.emit({
|
|
389
|
+
position: this.currentPosition,
|
|
390
|
+
selfInvoked: s,
|
|
391
|
+
accurate: this.positionIsAccurate
|
|
392
|
+
}));
|
|
393
|
+
}, (w) => {
|
|
394
|
+
(w.code !== 3 || !this.currentPosition || this.currentPosition.timestamp <= u) && this.setPositionUnknown(w);
|
|
395
|
+
}, this.options.positionOptions);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Sets position button state.
|
|
399
|
+
*
|
|
400
|
+
* @param {PositionStateTypes} state
|
|
401
|
+
*/
|
|
402
|
+
setPositionState(s) {
|
|
403
|
+
this.positionState = s;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Handle click on the compass button.
|
|
407
|
+
*/
|
|
408
|
+
onCompassButtonClicked() {
|
|
409
|
+
this.setCompassStyle(0), this.mapView.rotate(0), this.mapView.tilt(0), window.removeEventListener("deviceorientation", this.handleDeviceOrientationReference), this.positionState === d.POSITION_TRACKED ? this.setPositionState(d.POSITION_CENTERED) : this.positionState === d.POSITION_UNTRACKED && this.setPositionState(d.POSITION_KNOWN);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Handle click on position button.
|
|
413
|
+
* Stops propagation to avoid any map click listeners to fire.
|
|
414
|
+
*
|
|
415
|
+
* @param {Event} event
|
|
416
|
+
*/
|
|
417
|
+
onPositionButtonClicked(s) {
|
|
418
|
+
switch (s.stopPropagation(), this.positionState) {
|
|
419
|
+
case d.POSITION_UNKNOWN:
|
|
420
|
+
this.mapView.tilt(0), this.watchPosition(!0);
|
|
421
|
+
break;
|
|
422
|
+
case d.POSITION_KNOWN:
|
|
423
|
+
this.mapView.tilt(0), this.panToCurrentPosition();
|
|
424
|
+
break;
|
|
425
|
+
case d.POSITION_CENTERED:
|
|
426
|
+
this.canBeTracked && this.setPositionState(d.POSITION_TRACKED), this.panToCurrentPosition();
|
|
427
|
+
break;
|
|
428
|
+
case d.POSITION_TRACKED:
|
|
429
|
+
this.mapView.tilt(0), this.mapView.rotate(0), this.setCompassStyle(0), this.setPositionState(d.POSITION_CENTERED), this.panToCurrentPosition();
|
|
430
|
+
break;
|
|
431
|
+
case d.POSITION_UNTRACKED:
|
|
432
|
+
this.setPositionState(d.POSITION_TRACKED), this.panToCurrentPosition();
|
|
433
|
+
break;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Called every time the component has connected to the DOM.
|
|
438
|
+
* 1. Assigning the mapView and options attributes.
|
|
439
|
+
* 2. Checking for the navigator's state.
|
|
440
|
+
* 3. Determining whether the device can be tracked.
|
|
441
|
+
* 4. Asking for permission to track the device.
|
|
442
|
+
* 5. Styling the compass button.
|
|
443
|
+
*/
|
|
444
|
+
connectedCallback() {
|
|
445
|
+
var s;
|
|
446
|
+
if (this.mapView = this.mapsindoors.getMapView(), this.options = ke(this.defaultOptions, (s = this.myPositionOptions) !== null && s !== void 0 ? s : {}), !navigator.geolocation) {
|
|
447
|
+
this.position_error.emit({ code: 10, message: "Geolocation not available" });
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
const u = this.parser.getDevice().type;
|
|
451
|
+
this.canBeTracked = !!(typeof window.DeviceOrientationEvent == "function" && (u === Qi.UAParser.DEVICE.MOBILE || u === Qi.UAParser.DEVICE.TABLET) && this.mapView.rotatable && this.mapView.tiltable), !("permissions" in navigator) || !("query" in navigator.permissions) ? this.setPositionState(d.POSITION_UNKNOWN) : navigator.permissions.query({ name: "geolocation" }).then((w) => {
|
|
452
|
+
w.state === "granted" ? this.watchPosition() : this.setPositionState(d.POSITION_UNKNOWN);
|
|
453
|
+
}), this.mapView.on("rotateend", () => {
|
|
454
|
+
this.setCompassStyle(this.mapView.getBearing());
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
componentDidRender() {
|
|
458
|
+
this.setCompassStyle(this.mapView.getBearing());
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Renders the floor selector.
|
|
462
|
+
*
|
|
463
|
+
* @returns {JSX.Element}
|
|
464
|
+
*/
|
|
465
|
+
render() {
|
|
466
|
+
return Ti(le, null, Ti("div", { class: "mi-my-position" }, Ti("button", { class: `mi-my-position__position-button
|
|
467
|
+
${this.positionState === d.POSITION_UNKNOWN || this.positionState === d.POSITION_INACCURATE ? "mi-my-position__position-button--unknown" : ""}
|
|
468
|
+
${this.positionState === d.POSITION_REQUESTING ? "mi-my-position__position-button--requesting" : ""}
|
|
469
|
+
${this.positionState === d.POSITION_KNOWN ? "mi-my-position__position-button--known" : ""}
|
|
470
|
+
${this.positionState === d.POSITION_CENTERED ? "mi-my-position__position-button--centered" : ""}
|
|
471
|
+
${this.positionState === d.POSITION_TRACKED ? "mi-my-position__position-button--tracked" : ""}
|
|
472
|
+
${this.positionState === d.POSITION_UNTRACKED ? "mi-my-position__position-button--untracked" : ""}`, onClick: (s) => this.onPositionButtonClicked(s) }), Ti("button", { ref: (s) => this.compassButton = s, class: "mi-my-position__compass-button", onClick: () => this.onCompassButtonClicked() })));
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
ve.style = Se;
|
|
476
|
+
export {
|
|
477
|
+
ve as mi_my_position
|
|
478
|
+
};
|
|
479
|
+
//# sourceMappingURL=mi-my-position.entry-ac239dec.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as c, f as r, h as i, H as f, g as d } from "./reactcomponent-
|
|
1
|
+
import { r as c, f as r, h as i, H as f, g as d } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
(function() {
|
|
@@ -88,4 +88,4 @@ g.style = h;
|
|
|
88
88
|
export {
|
|
89
89
|
g as mi_notification
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=mi-notification.entry-
|
|
91
|
+
//# sourceMappingURL=mi-notification.entry-1a2d6055.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as s, h as t } from "./reactcomponent-
|
|
2
|
-
import { R as i } from "./route-travel-mode.enum-7f4ce9c7-
|
|
3
|
-
import { U as a } from "./unit-system.enum-eaefb53e-
|
|
1
|
+
import { r as s, h as t } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { R as i } from "./route-travel-mode.enum-7f4ce9c7-c9549fb4.mjs";
|
|
3
|
+
import { U as a } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
(function() {
|
|
@@ -79,4 +79,4 @@ o.style = r;
|
|
|
79
79
|
export {
|
|
80
80
|
o as mi_route_instructions_heading
|
|
81
81
|
};
|
|
82
|
-
//# sourceMappingURL=mi-route-instructions-heading.entry-
|
|
82
|
+
//# sourceMappingURL=mi-route-instructions-heading.entry-9cc9ebe8.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as s, h as e, H as r } from "./reactcomponent-
|
|
2
|
-
import { U as o } from "./unit-system.enum-eaefb53e-
|
|
1
|
+
import { r as s, h as e, H as r } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { U as o } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
(function() {
|
|
@@ -80,4 +80,4 @@ d.style = l;
|
|
|
80
80
|
export {
|
|
81
81
|
d as mi_route_instructions_maneuver_legacy
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=mi-route-instructions-maneuver-legacy.entry-
|
|
83
|
+
//# sourceMappingURL=mi-route-instructions-maneuver-legacy.entry-b0d53248.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e, h as a, H as r } from "./reactcomponent-
|
|
2
|
-
import { U as o } from "./unit-system.enum-eaefb53e-
|
|
1
|
+
import { r as e, h as a, H as r } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { U as o } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
(function() {
|
|
@@ -80,4 +80,4 @@ l.style = u;
|
|
|
80
80
|
export {
|
|
81
81
|
l as mi_route_instructions_maneuver
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=mi-route-instructions-maneuver.entry-
|
|
83
|
+
//# sourceMappingURL=mi-route-instructions-maneuver.entry-e4a7d458.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as n, c as r, h as s } from "./reactcomponent-
|
|
2
|
-
import { U as o } from "./unit-system.enum-eaefb53e-
|
|
3
|
-
import { c as l } from "./utils-ae714467-
|
|
1
|
+
import { r as n, c as r, h as s } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { U as o } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
3
|
+
import { c as l } from "./utils-ae714467-fd1172f0.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
(function() {
|
|
@@ -206,4 +206,4 @@ d.style = p;
|
|
|
206
206
|
export {
|
|
207
207
|
d as mi_route_instructions_step_legacy
|
|
208
208
|
};
|
|
209
|
-
//# sourceMappingURL=mi-route-instructions-step-legacy.entry-
|
|
209
|
+
//# sourceMappingURL=mi-route-instructions-step-legacy.entry-f230233f.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as o, c as a, h as e } from "./reactcomponent-
|
|
2
|
-
import { U as n } from "./unit-system.enum-eaefb53e-
|
|
3
|
-
import { c as l } from "./utils-ae714467-
|
|
1
|
+
import { r as o, c as a, h as e } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { U as n } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
3
|
+
import { c as l } from "./utils-ae714467-fd1172f0.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
(function() {
|
|
@@ -235,4 +235,4 @@ d.style = p;
|
|
|
235
235
|
export {
|
|
236
236
|
d as mi_route_instructions_step
|
|
237
237
|
};
|
|
238
|
-
//# sourceMappingURL=mi-route-instructions-step.entry-
|
|
238
|
+
//# sourceMappingURL=mi-route-instructions-step.entry-fe65364b.mjs.map
|
package/dist/{mi-route-instructions.entry-449f0b3a.mjs → mi-route-instructions.entry-5c929ec9.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as h, c as g, h as s, H as m } from "./reactcomponent-
|
|
2
|
-
import { R as v } from "./route-travel-mode.enum-7f4ce9c7-
|
|
3
|
-
import { U as f } from "./unit-system.enum-eaefb53e-
|
|
4
|
-
import { c as S } from "./utils-ae714467-
|
|
1
|
+
import { r as h, c as g, h as s, H as m } from "./reactcomponent-bfec8ca7.mjs";
|
|
2
|
+
import { R as v } from "./route-travel-mode.enum-7f4ce9c7-c9549fb4.mjs";
|
|
3
|
+
import { U as f } from "./unit-system.enum-eaefb53e-218e5846.mjs";
|
|
4
|
+
import { c as S } from "./utils-ae714467-fd1172f0.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
(function() {
|
|
@@ -146,4 +146,4 @@ I.style = x;
|
|
|
146
146
|
export {
|
|
147
147
|
I as mi_route_instructions
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=mi-route-instructions.entry-
|
|
149
|
+
//# sourceMappingURL=mi-route-instructions.entry-5c929ec9.mjs.map
|