From ee21f49eeb24c9240626ba0b4302231b726433d3 Mon Sep 17 00:00:00 2001 From: D8D Developer Date: Fri, 27 Jun 2025 02:43:31 +0000 Subject: [PATCH] u --- public/amap/amap3.js | 42134 --------------------------------- public/amap/init.js | 8 - public/amap/mapsplugin.js | 3 - src/client/admin/web_app.tsx | 33 - 4 files changed, 42178 deletions(-) delete mode 100644 public/amap/amap3.js delete mode 100644 public/amap/init.js delete mode 100644 public/amap/mapsplugin.js delete mode 100644 src/client/admin/web_app.tsx diff --git a/public/amap/amap3.js b/public/amap/amap3.js deleted file mode 100644 index a359588..0000000 --- a/public/amap/amap3.js +++ /dev/null @@ -1,42134 +0,0 @@ -(function (config) { - // let base_url = window.location.origin + window.location.pathname - let base_url = window.location.origin + '/' - const _tileUrl = `${base_url}amap/2.0.1`; - const mapsplugin = `${base_url}amap/mapsplugin.js` - const init = `${base_url}amap/init.js` - - !function (global, factory) { - "object" == typeof exports && "undefined" != typeof module ? module.exports = factory() : "function" == typeof define && define.amd ? define(factory) : (global = global || self).AMap = factory() - }(this, function () { - "use strict"; - var shared, worker, AMap; - function define(_, chunk) { - var sharedChunk, workerBundleString; - shared ? worker ? (workerBundleString = 'var sharedChunk = {key:"' + config[0] + '",db:"' + (config[14] || "") + '",nebulaVersion:"' + (config[15] || "") + '",movingDraw:' + Boolean(window.movingDraw) + ',host:"' + config[2] + '",}; (' + shared + ")(sharedChunk); (" + worker + ")(sharedChunk);", - sharedChunk = { - key: config[0], - movingDraw: window.movingDraw - }, - shared(sharedChunk), - sharedChunk = chunk(sharedChunk), - workerBundleString = "undefined" != typeof URL ? window.URL.createObjectURL(new Blob([workerBundleString], { - type: "text/javascript" - })) : "", - (AMap = sharedChunk(config)).getConfig().workerUrl = workerBundleString) : worker = chunk : shared = chunk - } - define(["exports"], function (exports) { - var extend = function (t) { - for (var r, n, i = Array.prototype.slice.call(arguments, 1), a = 0, o = i.length; a < o; a += 1) - for (var s in r = i[a] || {}) - r.hasOwnProperty(s) && ("function" == typeof (n = r[s]) && t.prototype ? t.prototype[s] = n : t[s] = n); - return t - }; - function isBrowser() { - return "undefined" != typeof window && "undefined" != typeof document - } - function isWasmSuppport() { - try { - if ("object" == typeof WebAssembly && "function" == typeof WebAssembly.instantiate && TextDecoder && TextEncoder) { - var t = new WebAssembly.Module(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0])); - if (t instanceof WebAssembly.Module) - return new WebAssembly.Instance(t) instanceof WebAssembly.Instance - } - } catch (t) { } - return !1 - } - var testWepP = function (t) { - var e = new Image; - e.src = "data:image/webp;base64,UklGRi4AAABXRUJQVlA4TCEAAAAvAUAAEB8wAiMwAgSSNtse/cXjxyCCmrYNWPwmHRH9jwMA", - e.onload = e.onerror = function () { - t(2 === e.height) - } - }; - function isWorkerEnv() { - try { - return document, - !1 - } catch (t) { - return !0 - } - } - function getSupport(t) { - function e(t) { - return -1 !== n.indexOf(t) - } - var r = { - runSupport: (new Date).getTime() - } - , E = isWasmSuppport() - , n = navigator.userAgent.toLowerCase() - , j = !0 - , i = e("macintosh") - , F = e("ipad;") || e("ipad ") - , a = e("ipod touch;") - , o = e("iphone;") || e("iphone ") - , a = o || F || a - , s = (i || a) && e("safari") && e("version/") - , u = e("macwechat") - , c = e("windowswechat") - , R = { - touch: !1, - mac: i, - Ue: !1, - webkit: !1, - $e: !1, - scale: 1, - android: !1, - DW: isWorkerEnv(), - wasm: E, - safari: s, - AQ: u, - gQ: c, - amapRunTime: r - }; - if (isBrowser()) { - var f = window - , c = (u = document).documentElement - , h = /([a-z0-9]*\d+[a-z0-9]*)/ - , D = "google swiftshader;microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";") - , l = "ActiveXObject" in f - , d = 0 != window.detectRetina && ("devicePixelRatio" in f && 1 < f.devicePixelRatio || l && "matchMedia" in f && f.matchMedia("(min-resolution:144dpi)") && f.matchMedia("(min-resolution:144dpi)").matches) - , B = e("windows nt") - , v = (n.search(/windows nt [1-5]\./), - n.search(/windows nt 5\.[12]/), - e("windows nt 10"), - e("windows phone")) - , G = e("Mb2345Browser") - , V = (a && n.search(/ os [456]_/), - a && n.search(/ os [4-8]_/), - a && n.search(/ os [78]_/), - a && e("os 8_"), - a && e("os 10_")) - , g = e("android") - , p = 0 - , z = (g && (p = parseInt(n.split("android")[1]) || 0), - g && p < 4) - , y = (g && 5 <= p || n.search(/android 4.4/), - g ? "android" : a ? "ios" : B ? "windows" : i ? "mac" : "other") - , p = l && !f.XMLHttpRequest - , W = l && !u.querySelector - , m = l && !u.addEventListener - , H = l && e("msie 9") - , q = l && e("msie 10") - , Y = l && e("rv:11") - , K = m || H - , b = e("edge") - , T = (e("qtweb"), - e("ucbrowser")) - , X = e("alipay") || g && T - , Z = (e("miuibrowser"), - e("micromessenger")) - , x = e("dingtalk") - , J = e("mqqbrowser") - , Q = e("baidubrowser") - , M = e("crios/") - , S = e("chrome/") - , M = !((S || M) && e("chromium")) && (S && 30 < parseInt(n.split("chrome/")[1]) || M && 30 < parseInt(n.split("crios/")[1])) - , tt = e("firefox") - , A = tt && 27 < parseInt(n.split("firefox/")[1]) - , w = s && 7 < parseInt(n.split("version/")[1]) - , P = (a && e("aliapp"), - g || a || v || e("mobile")) - , v = "ontouchstart" in u - , et = f.navigator && f.navigator.msPointerEnabled && !!f.navigator.msMaxTouchPoints - , rt = f.navigator && !!f.navigator.maxTouchPoints - , nt = !v && (rt || et) - , v = v || nt - , I = function () { - if (!P) - return f.devicePixelRatio || 1; - var t = document.getElementsByTagName("meta"); - if (window.parent && window.parent !== window) - try { - if (window.parent.location.origin !== window.location.origin) - return 1; - t = window.parent.document.getElementsByTagName("meta") - } catch (t) { - return 1 - } - for (var r, n, e, a = t.length - 1; 0 <= a; --a) - if ("viewport" === t[a].name) - return r = void 0, - -1 !== (e = t[a].content).indexOf("initial-scale") && (r = parseFloat(e.split("initial-scale=")[1])), - n = -1 !== e.indexOf("minimum-scale") ? parseFloat(e.split("minimum-scale=")[1]) : 0, - e = -1 !== e.indexOf("maximum-scale") ? parseFloat(e.split("maximum-scale=")[1]) : 1 / 0, - r ? n <= e ? e < r ? e : r < n ? n : r : (console && console.log && console.log("viewport参数不合法"), - null) : n <= e ? 1 <= n ? 1 : Math.min(e, 1) : (console && console.log && console.log("viewport参数不合法"), - null) - }() - , it = d && (!P || !!I && 1 <= I) - , at = l && "transition" in c.style - , ot = !!u.createElementNS && !!u.createElementNS("http://www.w3.org/2000/svg", "svg").createSVGRect - , C = u.createElement("canvas") - , st = !(!C || !C.getContext) - , u = window.URL || window.webkitURL - , ut = !0 !== window.disableWorker && !l && !(T && g && !M) && window.Worker && u && u.createObjectURL && window.Blob - , $ = "" - , N = "" - , k = 0 - , u = 0 != window.higtQualityRender || !d - , ct = window.movingDraw - , L = { - alpha: !0, - antialias: u, - depth: !0, - stencil: !0 - } - , O = (u = function () { - if (st && ut) - for (var t, r = ["webgl", "experimental-webgl", "moz-webgl"], n = null, i = 0; i < r.length; i += 1) { - try { - n = C.getContext(r[i], L) - } catch (t) { } - if (n) { - if (n.drawingBufferWidth !== C.width || n.drawingBufferHeight !== C.height) - return !1; - if (!n.getShaderPrecisionFormat || !n.getParameter || !n.getExtension) - return !1; - if (k = n.getParameter(n.MAX_RENDERBUFFER_SIZE), - !(a = n.getParameter(n.MAX_VIEWPORT_DIMS))) - return !1; - k = Math.min(k, a[0], a[1]), - s && "mac" == y && (k = Math.min(k, 4096)); - var a = Math.max(screen.width, screen.height); - if (it && (a *= Math.min(2, window.devicePixelRatio || 1)), - k < a) - return !1; - if (n.getShaderPrecisionFormat(35632, 36338).precision < 23 || n.getShaderPrecisionFormat(35633, 36338).precision < 23) - return !1; - var e = o = a = void 0 - , o = (t = N = n.getExtension("WEBGL_debug_renderer_info") ? n.getParameter(37446) : null) ? (a = null, - 0 <= (t = (t = (o = (t = t.toLowerCase()).match(/angle \((.*)\)/)) ? (t = o[1]).replace(/\s*direct3d.*$/, "") : t).replace(/\s*\([^\)]*wddm[^\)]*\)/, "")).indexOf("intel") ? (a = ["Intel"], - 0 <= t.indexOf("mobile") && a.push("Mobile"), - (0 <= t.indexOf("gma") || 0 <= t.indexOf("graphics media accelerator")) && a.push("GMA"), - 0 <= t.indexOf("haswell") ? a.push("Haswell") : 0 <= t.indexOf("ivy") ? a.push("HD 4000") : 0 <= t.indexOf("sandy") ? a.push("HD 3000") : 0 <= t.indexOf("ironlake") ? a.push("HD") : (0 <= t.indexOf("hd") && a.push("HD"), - (e = t.match(h)) && a.push(e[1].toUpperCase())), - a.join(" ")) : 0 <= t.indexOf("nvidia") || 0 <= t.indexOf("quadro") || 0 <= t.indexOf("geforce") || 0 <= t.indexOf("nvs") ? (a = ["nVidia"], - 0 <= t.indexOf("geforce") && a.push("geForce"), - 0 <= t.indexOf("quadro") && a.push("Quadro"), - 0 <= t.indexOf("nvs") && a.push("NVS"), - t.match(/\bion\b/) && a.push("ION"), - t.match(/gtx\b/) ? a.push("GTX") : t.match(/gts\b/) ? a.push("GTS") : t.match(/gt\b/) ? a.push("GT") : t.match(/gs\b/) ? a.push("GS") : t.match(/ge\b/) ? a.push("GE") : t.match(/fx\b/) && a.push("FX"), - (e = t.match(h)) && a.push(e[1].toUpperCase().replace("GS", "")), - 0 <= t.indexOf("titan") ? a.push("TITAN") : 0 <= t.indexOf("ti") && a.push("Ti"), - a.join(" ")) : 0 <= t.indexOf("amd") || 0 <= t.indexOf("ati") || 0 <= t.indexOf("radeon") || 0 <= t.indexOf("firegl") || 0 <= t.indexOf("firepro") ? (a = ["AMD"], - 0 <= t.indexOf("mobil") && a.push("Mobility"), - 0 <= (o = t.indexOf("radeon")) && a.push("Radeon"), - 0 <= t.indexOf("firepro") ? a.push("FirePro") : 0 <= t.indexOf("firegl") && a.push("FireGL"), - 0 <= t.indexOf("hd") && a.push("HD"), - (e = (t = 0 <= o ? t.substring(o) : t).match(h)) && a.push(e[1].toUpperCase().replace("HD", "")), - a.join(" ")) : t.substring(0, 100)) : null; - if (o) { - if (-1 < o.indexOf("google swiftshader")) - return j = !1; - if (-1 !== D.indexOf(o)) - return !1 - } - return $ = r[i], - !0 - } - } - return !1 - } - )() - , ft = void 0 === t[8] || t[8] - , O = window.Uint8Array && ft && !window.forbidenWebGL && O && (window.forceWebGL || (M || A || w || b || Z || x) && "other" != y) - , M = window.forceWebGLBaseRender || O ? "w" : "d" - , A = e("webkit") - , w = "WebKitCSSMatrix" in f && "m11" in new window.WebKitCSSMatrix - , x = "MozPerspective" in c.style - , c = "vV" in c.style - , ht = at || w || x || c - , t = void 0 !== t[12] ? t[12] : null - , _ = !0; - try { - void 0 === f.localStorage ? _ = !1 : (U = (new Date).getTime() + "", - f.localStorage.setItem("_test", U), - f.localStorage.getItem("_test") !== U && (_ = !1), - f.localStorage.removeItem("_test")) - } catch (t) { - _ = !1 - } - var U = parseInt(n.split("chrome/")[1]) - , R = { - iPad: F, - iPhone: o, - size: o ? 100 : g ? 200 : 500, - mac: i, - windows: B, - ios: a, - uT: V, - android: g, - android23: z, - cT: X, - plat: y, - baidu: Q, - qq: J, - safari: s, - wechat: Z, - ie: l, - ie6: p, - ie7: W, - ie9: H, - ie10: q, - ielt9: m, - fT: K, - ie11: Y, - edge: b, - hT: l && !Y, - lT: G, - RL: _, - vT: t, - geolocation: P || l && !m || b, - SL: T, - uc: T && !S, - chrome: S, - gT: !0, - firefox: tt, - hardwareAccEnabled: j, - $e: P, - mobileWebkit: P && A, - mobileWebkit3d: P && w, - mobileOpera: P && f.opera, - Ue: d, - bT: I, - Mr: it, - touch: v, - msPointer: et, - pointer: rt, - yT: nt, - pT: S && 57 <= U, - mT: !P && S && 64 <= U, - webkit: A, - ie3d: at, - webkit3d: w, - gecko3d: x, - opera3d: c, - any3d: ht, - isSvg: ot, - isCanvas: st, - isWorker: ut, - TT: !1, - isWebGL: O, - AT: $, - xT: L, - ST: N, - wT: k, - MT: !1, - movingDraw: ct, - baseRender: ft ? M : "d", - scale: d ? 2 : 1, - getContext: function (t, e) { - var r = {}; - return extend(r, L), - extend(r, e), - t.getContext($, r) - }, - mH: !1, - wasm: E, - amapRunTime: r, - sY: u - }; - testWepP(function (t) { - R.mH = t - }) - } - return R - } - var Browser = getSupport("undefined" == typeof config ? [] : config) - , canceledWorkerFetch = ("undefined" != typeof createImageBitmap && "undefined" != typeof ImageBitmap && (Browser.imageBitmap = !0), - Boolean(Browser.DW ? !Browser.safari && !Browser.AQ && !Browser.gQ && self.fetch && self.Request && self.AbortController && self.Request.prototype.hasOwnProperty("signal") : !Browser.safari && !Browser.AQ && !Browser.gQ && window.fetch && window.Request && window.AbortController && window.Request.prototype.hasOwnProperty("signal"))) - , freeGlobal = (Browser.LZ = canceledWorkerFetch, - Browser.amapRunTime = { - workerTime: {} - }, - "object" == typeof global && global && global.Object === Object && global) - , freeSelf = "object" == typeof self && self && self.Object === Object && self - , root = freeGlobal || freeSelf || Function("return this")() - , Symbol = root.Symbol - , objectProto = Object.prototype - , hasOwnProperty = objectProto.hasOwnProperty - , nativeObjectToString = objectProto.toString - , symToStringTag = Symbol ? Symbol.toStringTag : void 0; - function getRawTag(t) { - var e = hasOwnProperty.call(t, symToStringTag) - , r = t[symToStringTag]; - try { - var n = !(t[symToStringTag] = void 0) - } catch (t) { } - var i = nativeObjectToString.call(t); - return n && (e ? t[symToStringTag] = r : delete t[symToStringTag]), - i - } - var objectProto$1 = Object.prototype - , nativeObjectToString$1 = objectProto$1.toString; - function objectToString(t) { - return nativeObjectToString$1.call(t) - } - var nullTag = "[object Null]" - , undefinedTag = "[object Undefined]" - , symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0; - function baseGetTag(t) { - return null == t ? void 0 === t ? undefinedTag : nullTag : (symToStringTag$1 && symToStringTag$1 in Object(t) ? getRawTag : objectToString)(t) - } - function isObjectLike(t) { - return null != t && "object" == typeof t - } - var symbolTag = "[object Symbol]"; - function isSymbol(t) { - return "symbol" == typeof t || isObjectLike(t) && baseGetTag(t) == symbolTag - } - function arrayMap(t, e) { - for (var r = -1, n = null == t ? 0 : t.length, i = Array(n); ++r < n;) - i[r] = e(t[r], r, t); - return i - } - var isArray = Array.isArray - , INFINITY = 1 / 0 - , symbolProto = Symbol ? Symbol.prototype : void 0 - , symbolToString = symbolProto ? symbolProto.toString : void 0; - function baseToString(t) { - var e; - return "string" == typeof t ? t : isArray(t) ? arrayMap(t, baseToString) + "" : isSymbol(t) ? symbolToString ? symbolToString.call(t) : "" : "0" == (e = t + "") && 1 / t == -INFINITY ? "-0" : e - } - var reWhitespace = /\s/; - function trimmedEndIndex(t) { - for (var e = t.length; e-- && reWhitespace.test(t.charAt(e));) - ; - return e - } - var reTrimStart = /^\s+/; - function baseTrim(t) { - return t && t.slice(0, trimmedEndIndex(t) + 1).replace(reTrimStart, "") - } - function isObject(t) { - var e = typeof t; - return null != t && ("object" == e || "function" == e) - } - var NAN = NaN - , reIsBadHex = /^[-+]0x[0-9a-f]+$/i - , reIsBinary = /^0b[01]+$/i - , reIsOctal = /^0o[0-7]+$/i - , freeParseInt = parseInt; - function toNumber(t) { - if ("number" == typeof t) - return t; - if (isSymbol(t)) - return NAN; - if ("string" != typeof (t = isObject(t) ? isObject(e = "function" == typeof t.valueOf ? t.valueOf() : t) ? e + "" : e : t)) - return 0 === t ? t : +t; - t = baseTrim(t); - var e = reIsBinary.test(t); - return e || reIsOctal.test(t) ? freeParseInt(t.slice(2), e ? 2 : 8) : reIsBadHex.test(t) ? NAN : +t - } - var INFINITY$1 = 1 / 0 - , MAX_INTEGER = 17976931348623157e292; - function toFinite(t) { - return t ? (t = toNumber(t)) === INFINITY$1 || t === -INFINITY$1 ? (t < 0 ? -1 : 1) * MAX_INTEGER : t == t ? t : 0 : 0 === t ? t : 0 - } - function toInteger(t) { - var e = (t = toFinite(t)) % 1; - return t == t ? e ? t - e : t : 0 - } - function identity(t) { - return t - } - var asyncTag = "[object AsyncFunction]" - , funcTag = "[object Function]" - , genTag = "[object GeneratorFunction]" - , proxyTag = "[object Proxy]"; - function isFunction(t) { - return !!isObject(t) && ((t = baseGetTag(t)) == funcTag || t == genTag || t == asyncTag || t == proxyTag) - } - var coreJsData = root["__core-js_shared__"] - , maskSrcKey = function () { - var t = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.Xb || ""); - return t ? "Symbol(src)_1." + t : "" - }(); - function isMasked(t) { - return maskSrcKey && maskSrcKey in t - } - var funcProto = Function.prototype - , funcToString = funcProto.toString; - function toSource(t) { - if (null != t) { - try { - return funcToString.call(t) - } catch (t) { } - try { - return t + "" - } catch (t) { } - } - return "" - } - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g - , reIsHostCtor = /^\[object .+?Constructor\]$/ - , funcProto$1 = Function.prototype - , objectProto$2 = Object.prototype - , funcToString$1 = funcProto$1.toString - , hasOwnProperty$1 = objectProto$2.hasOwnProperty - , reIsNative = RegExp("^" + funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); - function baseIsNative(t) { - return isObject(t) && !isMasked(t) && (isFunction(t) ? reIsNative : reIsHostCtor).test(toSource(t)) - } - function getValue(t, e) { - return null == t ? void 0 : t[e] - } - function getNative(t, e) { - return baseIsNative(t = getValue(t, e)) ? t : void 0 - } - var WeakMap = getNative(root, "WeakMap") - , objectCreate = Object.create - , baseCreate = function () { - function e() { } - return function (t) { - return isObject(t) ? objectCreate ? objectCreate(t) : (e.prototype = t, - t = new e, - e.prototype = void 0, - t) : {} - } - }(); - function apply(t, e, r) { - switch (r.length) { - case 0: - return t.call(e); - case 1: - return t.call(e, r[0]); - case 2: - return t.call(e, r[0], r[1]); - case 3: - return t.call(e, r[0], r[1], r[2]) - } - return t.apply(e, r) - } - function copyArray(t, e) { - var r = -1 - , n = t.length; - for (e = e || Array(n); ++r < n;) - e[r] = t[r]; - return e - } - var HOT_COUNT = 800 - , HOT_SPAN = 16 - , nativeNow = Date.now; - function shortOut(r) { - var n = 0 - , i = 0; - return function () { - var t = nativeNow() - , e = HOT_SPAN - (t - i); - if (i = t, - 0 < e) { - if (++n >= HOT_COUNT) - return arguments[0] - } else - n = 0; - return r.apply(void 0, arguments) - } - } - function constant(t) { - return function () { - return t - } - } - var defineProperty = function () { - try { - var t = getNative(Object, "defineProperty"); - return t({}, "", {}), - t - } catch (t) { } - }() - , baseSetToString = defineProperty ? function (t, e) { - return defineProperty(t, "toString", { - configurable: !0, - enumerable: !1, - value: constant(e), - writable: !0 - }) - } - : identity - , setToString = shortOut(baseSetToString); - function arrayEach(t, e) { - for (var r = -1, n = null == t ? 0 : t.length; ++r < n && !1 !== e(t[r], r, t);) - ; - return t - } - function baseFindIndex(t, e, r, n) { - for (var i = t.length, a = r + (n ? 1 : -1); n ? a-- : ++a < i;) - if (e(t[a], a, t)) - return a; - return -1 - } - var MAX_SAFE_INTEGER = 9007199254740991 - , reIsUint = /^(?:0|[1-9]\d*)$/; - function isIndex(t, e) { - var r = typeof t; - return !!(e = null == e ? MAX_SAFE_INTEGER : e) && ("number" == r || "symbol" != r && reIsUint.test(t)) && -1 < t && t % 1 == 0 && t < e - } - function baseAssignValue(t, e, r) { - "__proto__" == e && defineProperty ? defineProperty(t, e, { - configurable: !0, - enumerable: !0, - value: r, - writable: !0 - }) : t[e] = r - } - function eq(t, e) { - return t === e || t != t && e != e - } - var objectProto$3 = Object.prototype - , hasOwnProperty$2 = objectProto$3.hasOwnProperty; - function assignValue(t, e, r) { - var n = t[e]; - hasOwnProperty$2.call(t, e) && eq(n, r) && (void 0 !== r || e in t) || baseAssignValue(t, e, r) - } - function copyObject(t, e, r, n) { - for (var i = !r, a = (r = r || {}, - -1), o = e.length; ++a < o;) { - var s = e[a] - , u = n ? n(r[s], t[s], s, r, t) : void 0; - (i ? baseAssignValue : assignValue)(r, s, void 0 === u ? t[s] : u) - } - return r - } - var nativeMax = Math.max; - function overRest(a, o, s) { - return o = nativeMax(void 0 === o ? a.length - 1 : o, 0), - function () { - for (var t = arguments, e = -1, r = nativeMax(t.length - o, 0), n = Array(r); ++e < r;) - n[e] = t[o + e]; - for (var e = -1, i = Array(o + 1); ++e < o;) - i[e] = t[e]; - return i[o] = s(n), - apply(a, this, i) - } - } - function baseRest(t, e) { - return setToString(overRest(t, e, identity), t + "") - } - var MAX_SAFE_INTEGER$1 = 9007199254740991; - function isLength(t) { - return "number" == typeof t && -1 < t && t % 1 == 0 && t <= MAX_SAFE_INTEGER$1 - } - function isArrayLike(t) { - return null != t && isLength(t.length) && !isFunction(t) - } - function isIterateeCall(t, e, r) { - var n; - return isObject(r) && ("number" == (n = typeof e) ? isArrayLike(r) && isIndex(e, r.length) : "string" == n && e in r) && eq(r[e], t) - } - function createAssigner(s) { - return baseRest(function (t, e) { - var r = -1 - , n = e.length - , i = 1 < n ? e[n - 1] : void 0 - , a = 2 < n ? e[2] : void 0 - , i = 3 < s.length && "function" == typeof i ? (n--, - i) : void 0; - for (a && isIterateeCall(e[0], e[1], a) && (i = n < 3 ? void 0 : i, - n = 1), - t = Object(t); ++r < n;) { - var o = e[r]; - o && s(t, o, r, i) - } - return t - }) - } - var objectProto$4 = Object.prototype; - function isPrototype(t) { - var e = t && t.constructor; - return t === ("function" == typeof e && e.prototype || objectProto$4) - } - function baseTimes(t, e) { - for (var r = -1, n = Array(t); ++r < t;) - n[r] = e(r); - return n - } - var argsTag = "[object Arguments]"; - function baseIsArguments(t) { - return isObjectLike(t) && baseGetTag(t) == argsTag - } - var objectProto$5 = Object.prototype - , hasOwnProperty$3 = objectProto$5.hasOwnProperty - , propertyIsEnumerable = objectProto$5.propertyIsEnumerable - , isArguments = baseIsArguments(function () { - return arguments - }()) ? baseIsArguments : function (t) { - return isObjectLike(t) && hasOwnProperty$3.call(t, "callee") && !propertyIsEnumerable.call(t, "callee") - } - ; - function stubFalse() { - return !1 - } - var freeExports = "object" == typeof exports && exports && !exports.nodeType && exports - , freeModule = freeExports && "object" == typeof module && module && !module.nodeType && module - , moduleExports = freeModule && freeModule.exports === freeExports - , Buffer = moduleExports ? root.Zb : void 0 - , nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0 - , isBuffer = nativeIsBuffer || stubFalse - , argsTag$1 = "[object Arguments]" - , arrayTag = "[object Array]" - , boolTag = "[object Boolean]" - , dateTag = "[object Date]" - , errorTag = "[object Error]" - , funcTag$1 = "[object Function]" - , mapTag = "[object Map]" - , numberTag = "[object Number]" - , objectTag = "[object Object]" - , regexpTag = "[object RegExp]" - , setTag = "[object Set]" - , stringTag = "[object String]" - , weakMapTag = "[object WeakMap]" - , arrayBufferTag = "[object ArrayBuffer]" - , dataViewTag = "[object DataView]" - , float32Tag = "[object Float32Array]" - , float64Tag = "[object Float64Array]" - , int8Tag = "[object Int8Array]" - , int16Tag = "[object Int16Array]" - , int32Tag = "[object Int32Array]" - , uint8Tag = "[object Uint8Array]" - , uint8ClampedTag = "[object Uint8ClampedArray]" - , uint16Tag = "[object Uint16Array]" - , uint32Tag = "[object Uint32Array]" - , typedArrayTags = {}; - function baseIsTypedArray(t) { - return isObjectLike(t) && isLength(t.length) && !!typedArrayTags[baseGetTag(t)] - } - function baseUnary(e) { - return function (t) { - return e(t) - } - } - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = !0, - typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = !1; - var freeExports$1 = "object" == typeof exports && exports && !exports.nodeType && exports - , freeModule$1 = freeExports$1 && "object" == typeof module && module && !module.nodeType && module - , moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1 - , freeProcess = moduleExports$1 && freeGlobal.process - , nodeUtil = function () { - try { - var t = freeModule$1 && freeModule$1.Qb && freeModule$1.Qb("util").types; - return t || freeProcess && freeProcess.tg && freeProcess.tg("util") - } catch (t) { } - }() - , nodeIsTypedArray = nodeUtil && nodeUtil.rg - , isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray - , objectProto$6 = Object.prototype - , hasOwnProperty$4 = objectProto$6.hasOwnProperty; - function arrayLikeKeys(t, e) { - var r, n = isArray(t), i = !n && isArguments(t), a = !n && !i && isBuffer(t), o = !n && !i && !a && isTypedArray(t), s = n || i || a || o, u = s ? baseTimes(t.length, String) : [], c = u.length; - for (r in t) - !e && !hasOwnProperty$4.call(t, r) || s && ("length" == r || a && ("offset" == r || "parent" == r) || o && ("buffer" == r || "byteLength" == r || "byteOffset" == r) || isIndex(r, c)) || u.push(r); - return u - } - function overArg(e, r) { - return function (t) { - return e(r(t)) - } - } - var nativeKeys = overArg(Object.keys, Object) - , objectProto$7 = Object.prototype - , hasOwnProperty$5 = objectProto$7.hasOwnProperty; - function baseKeys(t) { - if (!isPrototype(t)) - return nativeKeys(t); - var e, r = []; - for (e in Object(t)) - hasOwnProperty$5.call(t, e) && "constructor" != e && r.push(e); - return r - } - function keys(t) { - return (isArrayLike(t) ? arrayLikeKeys : baseKeys)(t) - } - var objectProto$8 = Object.prototype - , hasOwnProperty$6 = objectProto$8.hasOwnProperty - , assign = createAssigner(function (t, e) { - if (isPrototype(e) || isArrayLike(e)) - copyObject(e, keys(e), t); - else - for (var r in e) - hasOwnProperty$6.call(e, r) && assignValue(t, r, e[r]) - }); - function nativeKeysIn(t) { - var e = []; - if (null != t) - for (var r in Object(t)) - e.push(r); - return e - } - var objectProto$9 = Object.prototype - , hasOwnProperty$7 = objectProto$9.hasOwnProperty; - function baseKeysIn(t) { - if (!isObject(t)) - return nativeKeysIn(t); - var e, r = isPrototype(t), n = []; - for (e in t) - ("constructor" != e || !r && hasOwnProperty$7.call(t, e)) && n.push(e); - return n - } - function keysIn(t) { - return isArrayLike(t) ? arrayLikeKeys(t, !0) : baseKeysIn(t) - } - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ - , reIsPlainProp = /^\w*$/; - function isKey(t, e) { - var r; - return !isArray(t) && ("number" == (r = typeof t) || "symbol" == r || "boolean" == r || null == t || isSymbol(t) || reIsPlainProp.test(t) || !reIsDeepProp.test(t) || null != e && t in Object(e)) - } - var nativeCreate = getNative(Object, "create"); - function hashClear() { - this.ng = nativeCreate ? nativeCreate(null) : {}, - this.size = 0 - } - function hashDelete(t) { - return t = this.has(t) && delete this.ng[t], - this.size -= t ? 1 : 0, - t - } - var HASH_UNDEFINED = "__lodash_hash_undefined__" - , objectProto$a = Object.prototype - , hasOwnProperty$8 = objectProto$a.hasOwnProperty; - function hashGet(t) { - var e, r = this.ng; - return nativeCreate ? (e = r[t]) === HASH_UNDEFINED ? void 0 : e : hasOwnProperty$8.call(r, t) ? r[t] : void 0 - } - var objectProto$b = Object.prototype - , hasOwnProperty$9 = objectProto$b.hasOwnProperty; - function hashHas(t) { - var e = this.ng; - return nativeCreate ? void 0 !== e[t] : hasOwnProperty$9.call(e, t) - } - var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; - function hashSet(t, e) { - var r = this.ng; - return this.size += this.has(t) ? 0 : 1, - r[t] = nativeCreate && void 0 === e ? HASH_UNDEFINED$1 : e, - this - } - function Hash(t) { - var e = -1 - , r = null == t ? 0 : t.length; - for (this.clear(); ++e < r;) { - var n = t[e]; - this.set(n[0], n[1]) - } - } - function listCacheClear() { - this.ng = [], - this.size = 0 - } - function assocIndexOf(t, e) { - for (var r = t.length; r--;) - if (eq(t[r][0], e)) - return r; - return -1 - } - Hash.prototype.clear = hashClear, - Hash.prototype.delete = hashDelete, - Hash.prototype.get = hashGet, - Hash.prototype.has = hashHas, - Hash.prototype.set = hashSet; - var arrayProto = Array.prototype - , splice = arrayProto.splice; - function listCacheDelete(t) { - var e = this.ng; - return !((t = assocIndexOf(e, t)) < 0 || (t == e.length - 1 ? e.pop() : splice.call(e, t, 1), - --this.size, - 0)) - } - function listCacheGet(t) { - var e = this.ng; - return (t = assocIndexOf(e, t)) < 0 ? void 0 : e[t][1] - } - function listCacheHas(t) { - return -1 < assocIndexOf(this.ng, t) - } - function listCacheSet(t, e) { - var r = this.ng - , n = assocIndexOf(r, t); - return n < 0 ? (++this.size, - r.push([t, e])) : r[n][1] = e, - this - } - function ListCache(t) { - var e = -1 - , r = null == t ? 0 : t.length; - for (this.clear(); ++e < r;) { - var n = t[e]; - this.set(n[0], n[1]) - } - } - ListCache.prototype.clear = listCacheClear, - ListCache.prototype.delete = listCacheDelete, - ListCache.prototype.get = listCacheGet, - ListCache.prototype.has = listCacheHas, - ListCache.prototype.set = listCacheSet; - var Map = getNative(root, "Map"); - function mapCacheClear() { - this.size = 0, - this.ng = { - hash: new Hash, - map: new (Map || ListCache), - string: new Hash - } - } - function isKeyable(t) { - var e = typeof t; - return "string" == e || "number" == e || "symbol" == e || "boolean" == e ? "__proto__" !== t : null === t - } - function getMapData(t, e) { - return t = t.ng, - isKeyable(e) ? t["string" == typeof e ? "string" : "hash"] : t.map - } - function mapCacheDelete(t) { - return t = getMapData(this, t).delete(t), - this.size -= t ? 1 : 0, - t - } - function mapCacheGet(t) { - return getMapData(this, t).get(t) - } - function mapCacheHas(t) { - return getMapData(this, t).has(t) - } - function mapCacheSet(t, e) { - var r = getMapData(this, t) - , n = r.size; - return r.set(t, e), - this.size += r.size == n ? 0 : 1, - this - } - function MapCache(t) { - var e = -1 - , r = null == t ? 0 : t.length; - for (this.clear(); ++e < r;) { - var n = t[e]; - this.set(n[0], n[1]) - } - } - MapCache.prototype.clear = mapCacheClear, - MapCache.prototype.delete = mapCacheDelete, - MapCache.prototype.get = mapCacheGet, - MapCache.prototype.has = mapCacheHas, - MapCache.prototype.set = mapCacheSet; - var FUNC_ERROR_TEXT = "Expected a function"; - function memoize(n, i) { - if ("function" != typeof n || null != i && "function" != typeof i) - throw new TypeError(FUNC_ERROR_TEXT); - function a() { - var t = arguments - , e = i ? i.apply(this, t) : t[0] - , r = a.cache; - return r.has(e) ? r.get(e) : (t = n.apply(this, t), - a.cache = r.set(e, t) || r, - t) - } - return a.cache = new (memoize.Cache || MapCache), - a - } - memoize.Cache = MapCache; - var MAX_MEMOIZE_SIZE = 500; - function memoizeCapped(t) { - var e = (t = memoize(t, function (t) { - return e.size === MAX_MEMOIZE_SIZE && e.clear(), - t - })).cache; - return t - } - var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g - , reEscapeChar = /\\(\\)?/g - , stringToPath = memoizeCapped(function (t) { - var i = []; - return 46 === t.charCodeAt(0) && i.push(""), - t.replace(rePropName, function (t, e, r, n) { - i.push(r ? n.replace(reEscapeChar, "$1") : e || t) - }), - i - }); - function toString(t) { - return null == t ? "" : baseToString(t) - } - function castPath(t, e) { - return isArray(t) ? t : isKey(t, e) ? [t] : stringToPath(toString(t)) - } - var INFINITY$2 = 1 / 0; - function toKey(t) { - var e; - return "string" == typeof t || isSymbol(t) ? t : "0" == (e = t + "") && 1 / t == -INFINITY$2 ? "-0" : e - } - function baseGet(t, e) { - for (var r = 0, n = (e = castPath(e, t)).length; null != t && r < n;) - t = t[toKey(e[r++])]; - return r && r == n ? t : void 0 - } - function get(t, e, r) { - return void 0 === (t = null == t ? void 0 : baseGet(t, e)) ? r : t - } - function arrayPush(t, e) { - for (var r = -1, n = e.length, i = t.length; ++r < n;) - t[i + r] = e[r]; - return t - } - var getPrototype = overArg(Object.getPrototypeOf, Object); - function stackClear() { - this.ng = new ListCache, - this.size = 0 - } - function stackDelete(t) { - var e = this.ng - , t = e.delete(t); - return this.size = e.size, - t - } - function stackGet(t) { - return this.ng.get(t) - } - function stackHas(t) { - return this.ng.has(t) - } - var LARGE_ARRAY_SIZE = 200; - function stackSet(t, e) { - var r = this.ng; - if (r instanceof ListCache) { - var n = r.ng; - if (!Map || n.length < LARGE_ARRAY_SIZE - 1) - return n.push([t, e]), - this.size = ++r.size, - this; - r = this.ng = new MapCache(n) - } - return r.set(t, e), - this.size = r.size, - this - } - function Stack(t) { - t = this.ng = new ListCache(t), - this.size = t.size - } - function baseAssign(t, e) { - return t && copyObject(e, keys(e), t) - } - function baseAssignIn(t, e) { - return t && copyObject(e, keysIn(e), t) - } - Stack.prototype.clear = stackClear, - Stack.prototype.delete = stackDelete, - Stack.prototype.get = stackGet, - Stack.prototype.has = stackHas, - Stack.prototype.set = stackSet; - var freeExports$2 = "object" == typeof exports && exports && !exports.nodeType && exports - , freeModule$2 = freeExports$2 && "object" == typeof module && module && !module.nodeType && module - , moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2 - , Buffer$1 = moduleExports$2 ? root.Zb : void 0 - , allocUnsafe = Buffer$1 ? Buffer$1.ig : void 0; - function cloneBuffer(t, e) { - return e ? t.slice() : (e = t.length, - e = allocUnsafe ? allocUnsafe(e) : new t.constructor(e), - t.eg(e), - e) - } - function arrayFilter(t, e) { - for (var r = -1, n = null == t ? 0 : t.length, i = 0, a = []; ++r < n;) { - var o = t[r]; - e(o, r, t) && (a[i++] = o) - } - return a - } - function stubArray() { - return [] - } - var objectProto$c = Object.prototype - , propertyIsEnumerable$1 = objectProto$c.propertyIsEnumerable - , nativeGetSymbols = Object.getOwnPropertySymbols - , getSymbols = nativeGetSymbols ? function (e) { - return null == e ? [] : (e = Object(e), - arrayFilter(nativeGetSymbols(e), function (t) { - return propertyIsEnumerable$1.call(e, t) - })) - } - : stubArray; - function copySymbols(t, e) { - return copyObject(t, getSymbols(t), e) - } - var nativeGetSymbols$1 = Object.getOwnPropertySymbols - , getSymbolsIn = nativeGetSymbols$1 ? function (t) { - for (var e = []; t;) - arrayPush(e, getSymbols(t)), - t = getPrototype(t); - return e - } - : stubArray; - function copySymbolsIn(t, e) { - return copyObject(t, getSymbolsIn(t), e) - } - function baseGetAllKeys(t, e, r) { - return e = e(t), - isArray(t) ? e : arrayPush(e, r(t)) - } - function getAllKeys(t) { - return baseGetAllKeys(t, keys, getSymbols) - } - function getAllKeysIn(t) { - return baseGetAllKeys(t, keysIn, getSymbolsIn) - } - var DataView = getNative(root, "DataView") - , Promise$1 = getNative(root, "Promise") - , Set = getNative(root, "Set") - , mapTag$1 = "[object Map]" - , objectTag$1 = "[object Object]" - , promiseTag = "[object Promise]" - , setTag$1 = "[object Set]" - , weakMapTag$1 = "[object WeakMap]" - , dataViewTag$1 = "[object DataView]" - , dataViewCtorString = toSource(DataView) - , mapCtorString = toSource(Map) - , promiseCtorString = toSource(Promise$1) - , setCtorString = toSource(Set) - , weakMapCtorString = toSource(WeakMap) - , getTag = baseGetTag - , getTag$1 = ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set) != setTag$1 || WeakMap && getTag(new WeakMap) != weakMapTag$1) && (getTag = function (t) { - var e = baseGetTag(t); - if (t = (t = e == objectTag$1 ? t.constructor : void 0) ? toSource(t) : "") - switch (t) { - case dataViewCtorString: - return dataViewTag$1; - case mapCtorString: - return mapTag$1; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag$1; - case weakMapCtorString: - return weakMapTag$1 - } - return e - } - ), - getTag) - , objectProto$d = Object.prototype - , hasOwnProperty$a = objectProto$d.hasOwnProperty; - function initCloneArray(t) { - var e = t.length - , r = new t.constructor(e); - return e && "string" == typeof t[0] && hasOwnProperty$a.call(t, "index") && (r.index = t.index, - r.input = t.input), - r - } - var Uint8Array$1 = root.Uint8Array; - function cloneArrayBuffer(t) { - var e = new t.constructor(t.byteLength); - return new Uint8Array$1(e).set(new Uint8Array$1(t)), - e - } - function cloneDataView(t, e) { - return e = e ? cloneArrayBuffer(t.buffer) : t.buffer, - new t.constructor(e, t.byteOffset, t.byteLength) - } - var reFlags = /\w*$/; - function cloneRegExp(t) { - var e = new t.constructor(t.source, reFlags.exec(t)); - return e.lastIndex = t.lastIndex, - e - } - var symbolProto$1 = Symbol ? Symbol.prototype : void 0 - , symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : void 0; - function cloneSymbol(t) { - return symbolValueOf ? Object(symbolValueOf.call(t)) : {} - } - function cloneTypedArray(t, e) { - return e = e ? cloneArrayBuffer(t.buffer) : t.buffer, - new t.constructor(e, t.byteOffset, t.length) - } - var boolTag$1 = "[object Boolean]" - , dateTag$1 = "[object Date]" - , mapTag$2 = "[object Map]" - , numberTag$1 = "[object Number]" - , regexpTag$1 = "[object RegExp]" - , setTag$2 = "[object Set]" - , stringTag$1 = "[object String]" - , symbolTag$1 = "[object Symbol]" - , arrayBufferTag$1 = "[object ArrayBuffer]" - , dataViewTag$2 = "[object DataView]" - , float32Tag$1 = "[object Float32Array]" - , float64Tag$1 = "[object Float64Array]" - , int8Tag$1 = "[object Int8Array]" - , int16Tag$1 = "[object Int16Array]" - , int32Tag$1 = "[object Int32Array]" - , uint8Tag$1 = "[object Uint8Array]" - , uint8ClampedTag$1 = "[object Uint8ClampedArray]" - , uint16Tag$1 = "[object Uint16Array]" - , uint32Tag$1 = "[object Uint32Array]"; - function initCloneByTag(t, e, r) { - var n = t.constructor; - switch (e) { - case arrayBufferTag$1: - return cloneArrayBuffer(t); - case boolTag$1: - case dateTag$1: - return new n(+t); - case dataViewTag$2: - return cloneDataView(t, r); - case float32Tag$1: - case float64Tag$1: - case int8Tag$1: - case int16Tag$1: - case int32Tag$1: - case uint8Tag$1: - case uint8ClampedTag$1: - case uint16Tag$1: - case uint32Tag$1: - return cloneTypedArray(t, r); - case mapTag$2: - return new n; - case numberTag$1: - case stringTag$1: - return new n(t); - case regexpTag$1: - return cloneRegExp(t); - case setTag$2: - return new n; - case symbolTag$1: - return cloneSymbol(t) - } - } - function initCloneObject(t) { - return "function" != typeof t.constructor || isPrototype(t) ? {} : baseCreate(getPrototype(t)) - } - var mapTag$3 = "[object Map]"; - function baseIsMap(t) { - return isObjectLike(t) && getTag$1(t) == mapTag$3 - } - var nodeIsMap = nodeUtil && nodeUtil.isMap - , isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap - , setTag$3 = "[object Set]"; - function baseIsSet(t) { - return isObjectLike(t) && getTag$1(t) == setTag$3 - } - var nodeIsSet = nodeUtil && nodeUtil.og - , isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet - , CLONE_DEEP_FLAG = 1 - , CLONE_FLAT_FLAG = 2 - , CLONE_SYMBOLS_FLAG = 4 - , argsTag$2 = "[object Arguments]" - , arrayTag$1 = "[object Array]" - , boolTag$2 = "[object Boolean]" - , dateTag$2 = "[object Date]" - , errorTag$1 = "[object Error]" - , funcTag$2 = "[object Function]" - , genTag$1 = "[object GeneratorFunction]" - , mapTag$4 = "[object Map]" - , numberTag$2 = "[object Number]" - , objectTag$2 = "[object Object]" - , regexpTag$2 = "[object RegExp]" - , setTag$4 = "[object Set]" - , stringTag$2 = "[object String]" - , symbolTag$2 = "[object Symbol]" - , weakMapTag$2 = "[object WeakMap]" - , arrayBufferTag$2 = "[object ArrayBuffer]" - , dataViewTag$3 = "[object DataView]" - , float32Tag$2 = "[object Float32Array]" - , float64Tag$2 = "[object Float64Array]" - , int8Tag$2 = "[object Int8Array]" - , int16Tag$2 = "[object Int16Array]" - , int32Tag$2 = "[object Int32Array]" - , uint8Tag$2 = "[object Uint8Array]" - , uint8ClampedTag$2 = "[object Uint8ClampedArray]" - , uint16Tag$2 = "[object Uint16Array]" - , uint32Tag$2 = "[object Uint32Array]" - , cloneableTags = {}; - function baseClone(r, n, i, t, e, a) { - var o, s = n & CLONE_DEEP_FLAG, u = n & CLONE_FLAT_FLAG, c = n & CLONE_SYMBOLS_FLAG; - if (void 0 === (o = i ? e ? i(r, t, e, a) : i(r) : o)) { - if (!isObject(r)) - return r; - if (t = isArray(r)) { - if (o = initCloneArray(r), - !s) - return copyArray(r, o) - } else { - var f = getTag$1(r) - , h = f == funcTag$2 || f == genTag$1; - if (isBuffer(r)) - return cloneBuffer(r, s); - if (f == objectTag$2 || f == argsTag$2 || h && !e) { - if (o = u || h ? {} : initCloneObject(r), - !s) - return u ? copySymbolsIn(r, baseAssignIn(o, r)) : copySymbols(r, baseAssign(o, r)) - } else { - if (!cloneableTags[f]) - return e ? r : {}; - o = initCloneByTag(r, f, s) - } - } - if (h = (a = a || new Stack).get(r)) - return h; - a.set(r, o), - isSet(r) ? r.forEach(function (t) { - o.add(baseClone(t, n, i, t, r, a)) - }) : isMap(r) && r.forEach(function (t, e) { - o.set(e, baseClone(t, n, i, e, r, a)) - }); - var l = t ? void 0 : (c ? u ? getAllKeysIn : getAllKeys : u ? keysIn : keys)(r); - arrayEach(l || r, function (t, e) { - l && (t = r[e = t]), - assignValue(o, e, baseClone(t, n, i, e, r, a)) - }) - } - return o - } - cloneableTags[argsTag$2] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$2] = cloneableTags[dataViewTag$3] = cloneableTags[boolTag$2] = cloneableTags[dateTag$2] = cloneableTags[float32Tag$2] = cloneableTags[float64Tag$2] = cloneableTags[int8Tag$2] = cloneableTags[int16Tag$2] = cloneableTags[int32Tag$2] = cloneableTags[mapTag$4] = cloneableTags[numberTag$2] = cloneableTags[objectTag$2] = cloneableTags[regexpTag$2] = cloneableTags[setTag$4] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$2] = cloneableTags[uint8Tag$2] = cloneableTags[uint8ClampedTag$2] = cloneableTags[uint16Tag$2] = cloneableTags[uint32Tag$2] = !0, - cloneableTags[errorTag$1] = cloneableTags[funcTag$2] = cloneableTags[weakMapTag$2] = !1; - var CLONE_SYMBOLS_FLAG$1 = 4; - function clone(t) { - return baseClone(t, CLONE_SYMBOLS_FLAG$1) - } - var CLONE_DEEP_FLAG$1 = 1 - , CLONE_SYMBOLS_FLAG$2 = 4; - function cloneDeep(t) { - return baseClone(t, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$2) - } - var HASH_UNDEFINED$2 = "__lodash_hash_undefined__"; - function setCacheAdd(t) { - return this.ng.set(t, HASH_UNDEFINED$2), - this - } - function setCacheHas(t) { - return this.ng.has(t) - } - function SetCache(t) { - var e = -1 - , r = null == t ? 0 : t.length; - for (this.ng = new MapCache; ++e < r;) - this.add(t[e]) - } - function arraySome(t, e) { - for (var r = -1, n = null == t ? 0 : t.length; ++r < n;) - if (e(t[r], r, t)) - return !0; - return !1 - } - function cacheHas(t, e) { - return t.has(e) - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd, - SetCache.prototype.has = setCacheHas; - var COMPARE_PARTIAL_FLAG = 1 - , COMPARE_UNORDERED_FLAG = 2; - function equalArrays(t, e, r, n, i, a) { - var o = r & COMPARE_PARTIAL_FLAG - , s = t.length; - if (s != (u = e.length) && !(o && s < u)) - return !1; - var u = a.get(t) - , c = a.get(e); - if (u && c) - return u == e && c == t; - var f = -1 - , h = !0 - , l = r & COMPARE_UNORDERED_FLAG ? new SetCache : void 0; - for (a.set(t, e), - a.set(e, t); ++f < s;) { - var d, v = t[f], g = e[f]; - if (void 0 !== (d = n ? o ? n(g, v, f, e, t, a) : n(v, g, f, t, e, a) : d)) { - if (d) - continue; - h = !1; - break - } - if (l) { - if (!arraySome(e, function (t, e) { - if (!cacheHas(l, e) && (v === t || i(v, t, r, n, a))) - return l.push(e) - })) { - h = !1; - break - } - } else if (v !== g && !i(v, g, r, n, a)) { - h = !1; - break - } - } - return a.delete(t), - a.delete(e), - h - } - function mapToArray(t) { - var r = -1 - , n = Array(t.size); - return t.forEach(function (t, e) { - n[++r] = [e, t] - }), - n - } - function setToArray(t) { - var e = -1 - , r = Array(t.size); - return t.forEach(function (t) { - r[++e] = t - }), - r - } - var COMPARE_PARTIAL_FLAG$1 = 1 - , COMPARE_UNORDERED_FLAG$1 = 2 - , boolTag$3 = "[object Boolean]" - , dateTag$3 = "[object Date]" - , errorTag$2 = "[object Error]" - , mapTag$5 = "[object Map]" - , numberTag$3 = "[object Number]" - , regexpTag$3 = "[object RegExp]" - , setTag$5 = "[object Set]" - , stringTag$3 = "[object String]" - , symbolTag$3 = "[object Symbol]" - , arrayBufferTag$3 = "[object ArrayBuffer]" - , dataViewTag$4 = "[object DataView]" - , symbolProto$2 = Symbol ? Symbol.prototype : void 0 - , symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : void 0; - function equalByTag(t, e, r, n, i, a, o) { - switch (r) { - case dataViewTag$4: - if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) - return !1; - t = t.buffer, - e = e.buffer; - case arrayBufferTag$3: - return !(t.byteLength != e.byteLength || !a(new Uint8Array$1(t), new Uint8Array$1(e))); - case boolTag$3: - case dateTag$3: - case numberTag$3: - return eq(+t, +e); - case errorTag$2: - return t.name == e.name && t.message == e.message; - case regexpTag$3: - case stringTag$3: - return t == e + ""; - case mapTag$5: - var s = mapToArray; - case setTag$5: - var u, s = s || setToArray; - return t.size == e.size || n & COMPARE_PARTIAL_FLAG$1 ? (u = o.get(t)) ? u == e : (n |= COMPARE_UNORDERED_FLAG$1, - o.set(t, e), - u = equalArrays(s(t), s(e), n, i, a, o), - o.delete(t), - u) : !1; - case symbolTag$3: - if (symbolValueOf$1) - return symbolValueOf$1.call(t) == symbolValueOf$1.call(e) - } - return !1 - } - var COMPARE_PARTIAL_FLAG$2 = 1 - , objectProto$e = Object.prototype - , hasOwnProperty$b = objectProto$e.hasOwnProperty; - function equalObjects(t, e, r, n, i, a) { - var o = r & COMPARE_PARTIAL_FLAG$2 - , s = getAllKeys(t) - , u = s.length; - if (u != getAllKeys(e).length && !o) - return !1; - for (var c = u; c--;) { - var f = s[c]; - if (!(o ? f in e : hasOwnProperty$b.call(e, f))) - return !1 - } - var h = a.get(t) - , l = a.get(e); - if (h && l) - return h == e && l == t; - for (var d = !0, v = (a.set(t, e), - a.set(e, t), - o); ++c < u;) { - var g, p = t[f = s[c]], y = e[f]; - if (!(void 0 === (g = n ? o ? n(y, p, f, e, t, a) : n(p, y, f, t, e, a) : g) ? p === y || i(p, y, r, n, a) : g)) { - d = !1; - break - } - v = v || "constructor" == f - } - return d && !v && (h = t.constructor) != (l = e.constructor) && "constructor" in t && "constructor" in e && !("function" == typeof h && h instanceof h && "function" == typeof l && l instanceof l) && (d = !1), - a.delete(t), - a.delete(e), - d - } - var COMPARE_PARTIAL_FLAG$3 = 1 - , argsTag$3 = "[object Arguments]" - , arrayTag$2 = "[object Array]" - , objectTag$3 = "[object Object]" - , objectProto$f = Object.prototype - , hasOwnProperty$c = objectProto$f.hasOwnProperty; - function baseIsEqualDeep(t, e, r, n, i, a) { - var o = isArray(t) - , s = isArray(e) - , u = o ? arrayTag$2 : getTag$1(t) - , s = s ? arrayTag$2 : getTag$1(e) - , c = (u = u == argsTag$3 ? objectTag$3 : u) == objectTag$3 - , f = (s = s == argsTag$3 ? objectTag$3 : s) == objectTag$3; - if ((s = u == s) && isBuffer(t)) { - if (!isBuffer(e)) - return !1; - c = !(o = !0) - } - return s && !c ? (a = a || new Stack, - o || isTypedArray(t) ? equalArrays(t, e, r, n, i, a) : equalByTag(t, e, u, r, n, i, a)) : r & COMPARE_PARTIAL_FLAG$3 || (o = c && hasOwnProperty$c.call(t, "__wrapped__"), - u = f && hasOwnProperty$c.call(e, "__wrapped__"), - !o && !u) ? s && equalObjects(t, e, r, n, i, a = a || new Stack) : i(o ? t.value() : t, u ? e.value() : e, r, n, a = a || new Stack) - } - function baseIsEqual(t, e, r, n, i) { - return t === e || (null == t || null == e || !isObjectLike(t) && !isObjectLike(e) ? t != t && e != e : baseIsEqualDeep(t, e, r, n, baseIsEqual, i)) - } - var COMPARE_PARTIAL_FLAG$4 = 1 - , COMPARE_UNORDERED_FLAG$2 = 2; - function baseIsMatch(t, e, r, n) { - var i = r.length - , a = i - , o = !n; - if (null == t) - return !a; - for (t = Object(t); i--;) { - var s = r[i]; - if (o && s[2] ? s[1] !== t[s[0]] : !(s[0] in t)) - return !1 - } - for (; ++i < a;) { - var u = (s = r[i])[0] - , c = t[u] - , f = s[1]; - if (o && s[2]) { - if (void 0 === c && !(u in t)) - return !1 - } else { - var h, l = new Stack; - if (!(void 0 === (h = n ? n(c, f, u, t, e, l) : h) ? baseIsEqual(f, c, COMPARE_PARTIAL_FLAG$4 | COMPARE_UNORDERED_FLAG$2, n, l) : h)) - return !1 - } - } - return !0 - } - function isStrictComparable(t) { - return t == t && !isObject(t) - } - function getMatchData(t) { - for (var e = keys(t), r = e.length; r--;) { - var n = e[r] - , i = t[n]; - e[r] = [n, i, isStrictComparable(i)] - } - return e - } - function matchesStrictComparable(e, r) { - return function (t) { - return null != t && t[e] === r && (void 0 !== r || e in Object(t)) - } - } - function baseMatches(e) { - var r = getMatchData(e); - return 1 == r.length && r[0][2] ? matchesStrictComparable(r[0][0], r[0][1]) : function (t) { - return t === e || baseIsMatch(t, e, r) - } - } - function baseHasIn(t, e) { - return null != t && e in Object(t) - } - function hasPath(t, e, r) { - for (var n = -1, i = (e = castPath(e, t)).length, a = !1; ++n < i;) { - var o = toKey(e[n]); - if (!(a = null != t && r(t, o))) - break; - t = t[o] - } - return a || ++n != i ? a : !!(i = null == t ? 0 : t.length) && isLength(i) && isIndex(o, i) && (isArray(t) || isArguments(t)) - } - function hasIn(t, e) { - return null != t && hasPath(t, e, baseHasIn) - } - var COMPARE_PARTIAL_FLAG$5 = 1 - , COMPARE_UNORDERED_FLAG$3 = 2; - function baseMatchesProperty(r, n) { - return isKey(r) && isStrictComparable(n) ? matchesStrictComparable(toKey(r), n) : function (t) { - var e = get(t, r); - return void 0 === e && e === n ? hasIn(t, r) : baseIsEqual(n, e, COMPARE_PARTIAL_FLAG$5 | COMPARE_UNORDERED_FLAG$3) - } - } - function baseProperty(e) { - return function (t) { - return null == t ? void 0 : t[e] - } - } - function basePropertyDeep(e) { - return function (t) { - return baseGet(t, e) - } - } - function property(t) { - return isKey(t) ? baseProperty(toKey(t)) : basePropertyDeep(t) - } - function baseIteratee(t) { - return "function" == typeof t ? t : null == t ? identity : "object" == typeof t ? isArray(t) ? baseMatchesProperty(t[0], t[1]) : baseMatches(t) : property(t) - } - function createBaseFor(u) { - return function (t, e, r) { - for (var n = -1, i = Object(t), a = r(t), o = a.length; o--;) { - var s = a[u ? o : ++n]; - if (!1 === e(i[s], s, i)) - break - } - return t - } - } - var baseFor = createBaseFor(); - function baseForOwn(t, e) { - return t && baseFor(t, e, keys) - } - function createBaseEach(a, o) { - return function (t, e) { - if (null != t) { - if (!isArrayLike(t)) - return a(t, e); - for (var r = t.length, n = o ? r : -1, i = Object(t); (o ? n-- : ++n < r) && !1 !== e(i[n], n, i);) - ; - } - return t - } - } - var baseEach = createBaseEach(baseForOwn); - function castFunction(t) { - return "function" == typeof t ? t : identity - } - function forEach(t, e) { - return (isArray(t) ? arrayEach : baseEach)(t, castFunction(e)) - } - function arrayEvery(t, e) { - for (var r = -1, n = null == t ? 0 : t.length; ++r < n;) - if (!e(t[r], r, t)) - return !1; - return !0 - } - function baseEvery(t, n) { - var i = !0; - return baseEach(t, function (t, e, r) { - return i = !!n(t, e, r) - }), - i - } - function every(t, e, r) { - return (isArray(t) ? arrayEvery : baseEvery)(t, baseIteratee(e = r && isIterateeCall(t, e, r) ? void 0 : e)) - } - function baseFilter(t, n) { - var i = []; - return baseEach(t, function (t, e, r) { - n(t, e, r) && i.push(t) - }), - i - } - function filter(t, e) { - return (isArray(t) ? arrayFilter : baseFilter)(t, baseIteratee(e)) - } - function createFind(a) { - return function (t, e, r) { - var n, i = Object(t); - return isArrayLike(t) || (n = baseIteratee(e), - t = keys(t), - e = function (t) { - return n(i[t], t, i) - } - ), - -1 < (e = a(t, e, r)) ? i[n ? t[e] : e] : void 0 - } - } - var nativeMax$1 = Math.max; - function findIndex(t, e, r) { - var n = null == t ? 0 : t.length; - return n ? ((r = null == r ? 0 : toInteger(r)) < 0 && (r = nativeMax$1(n + r, 0)), - baseFindIndex(t, baseIteratee(e), r)) : -1 - } - var find = createFind(findIndex); - function baseMap(t, n) { - var i = -1 - , a = isArrayLike(t) ? Array(t.length) : []; - return baseEach(t, function (t, e, r) { - a[++i] = n(t, e, r) - }), - a - } - function map(t, e) { - return (isArray(t) ? arrayMap : baseMap)(t, baseIteratee(e)) - } - function forIn(t, e) { - return null == t ? t : baseFor(t, castFunction(e), keysIn) - } - var mapTag$6 = "[object Map]" - , setTag$6 = "[object Set]" - , objectProto$g = Object.prototype - , hasOwnProperty$d = objectProto$g.hasOwnProperty; - function isEmpty(t) { - if (null != t) { - if (isArrayLike(t) && (isArray(t) || "string" == typeof t || "function" == typeof t.splice || isBuffer(t) || isTypedArray(t) || isArguments(t))) - return !t.length; - var e, r = getTag$1(t); - if (r == mapTag$6 || r == setTag$6) - return !t.size; - if (isPrototype(t)) - return !baseKeys(t).length; - for (e in t) - if (hasOwnProperty$d.call(t, e)) - return !1 - } - return !0 - } - function isEqual(t, e) { - return baseIsEqual(t, e) - } - function isUndefined(t) { - return void 0 === t - } - function baseSome(t, n) { - var i; - return baseEach(t, function (t, e, r) { - return !(i = n(t, e, r)) - }), - !!i - } - function some(t, e, r) { - return (isArray(t) ? arraySome : baseSome)(t, baseIteratee(e = r && isIterateeCall(t, e, r) ? void 0 : e)) - } - var projections = {} - , Projection = function () { - function t(t, e, r, n) { - this.project = e, - this.unproject = r, - this.getResolution = n, - projections[t] = this - } - return t.prototype.moveWithPixel = function (t, e, r) { - var r = this.getResolution(r) - , n = e[0] * r - , e = e[1] * r - , r = this.project(t[0], t[1]); - return this.unproject(r[0] + n, r[1] + e) - } - , - t.prototype.moveWithPos = function (t, e) { - return t = [(t = this.project(t[0], t[1]))[0] + e[0], t[1] + e[1]], - this.unproject(t[0], t[1]) - } - , - t - }() - , ProjectionManager = { - getProjection: function (t) { - return projections[t] - } - } - , LngLat = new Projection("EPSG:4326", function (t, e) { - return [t, e] - } - , function (t, e) { - return [t, e] - } - , function (t) { - return .703125 / Math.pow(2, t) - } - ) - , SphericalMercator = function () { - var n = Math.PI / 180 - , r = 180 / Math.PI - , i = 6378137; - return new Projection("EPSG:3857", function (t, e) { - var r = 85.0511287798 - , r = (e = Math.max(Math.min(r, e), -r), - t * n) - , t = e * n - , t = Math.log(Math.tan(Math.PI / 4 + t / 2)); - return [r * i, t * i] - } - , function (t, e) { - return [t / i * r, (2 * Math.atan(Math.exp(e / i)) - Math.PI / 2) * r] - } - , function (t) { - return 156543.03392804097 / Math.pow(2, t) - } - ) - }() - , LCS = function () { - function t() { - this.hg = [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244], - this.cg = 128, - this.vg = 128, - this.lg = (this.hg[2] - this.hg[0]) / this.cg, - this.dg = (this.hg[3] - this.hg[1]) / this.vg - } - return t.prototype.setMap = function (t) { - this.map = t - } - , - t.prototype.getSize = function () { - return [this.lg, this.dg] - } - , - t.prototype.getNum = function () { - return [this.cg, this.vg] - } - , - t.prototype.getLocalByLnglat = function (t) { - var e = (e = ProjectionManager.getProjection("EPSG:3857")).project.apply(e, t); - return this.getLocalByCoord(e) - } - , - t.prototype.getLocalByCoord = function (t) { - var e = Math.floor(t[0] / this.lg) - , r = Math.floor(t[1] / this.dg) - , n = this.getLocalCenterByXY(e, r); - return { - Sa: [t[0] - n.center[0], t[1] - n.center[1]], - x: e, - y: r, - center: n.center, - Ro: n.Ro - } - } - , - t.prototype.getLocalCenterByXY = function (t, e) { - var r = { - x: t, - y: e, - center: [0, 0], - Ro: [0, 0, 0, 0] - }; - return r.center = [(t + .5) * this.lg, (e + .5) * this.dg], - r.Ro = [t * this.lg, e * this.dg, (t + 1) * this.lg, (e + 1) * this.dg], - r - } - , - t.prototype.getDeltaCoord = function (t) { - var e = this.getLocalByCoord(t); - return [t[0] - e.center[0], t[1] - e.center[1]] - } - , - t - }() - , lcs = new LCS - , E4326 = ProjectionManager.getProjection("EPSG:4326") - , E3857 = ProjectionManager.getProjection("EPSG:3857") - , HALF_WORLD_SIZE = 20037508.342789244 - , LngLat$1 = { - Ro: [-180, -90, 180, 90], - project: function (t, e, r) { - return t = E4326.project(t, e), - this.transform(t[0], t[1], r) - }, - unproject: function (t, e, r) { - return t = this.Xs(t, e, r), - E4326.unproject(t[0], t[1]) - }, - transform: function (t, e, r) { - var r = void 0 === r ? 180 : 256 << r - , i = this.Ro[2] - this.Ro[0] - , a = this.Ro[3] - this.Ro[1]; - return [t = (t - this.Ro[0]) / i * (2 * r), e = r - (e - this.Ro[1]) / a * r] - }, - Xs: function (t, e, r) { - return [t = 360 * (t / (2 * (r = void 0 === r ? 180 : 256 << r)) - .5), e = 180 * -(e / r - .5)] - }, - nt: function (t, e, r) { - return this.Xs(t, e, r) - }, - wu: function (t, e, r) { - return this.Xs(t, e, r) - }, - yo: function (t, e, r) { - var n = 0 < t / this.Ro[3] ? Math.abs(Math.floor(t / this.Ro[3])) : Math.abs(Math.ceil(t / this.Ro[3])) - , i = 0 < e / this.Ro[3] ? Math.abs(Math.floor(e / this.Ro[3])) : Math.abs(Math.ceil(e / this.Ro[3])) - , a = t % this.Ro[3] - , o = e % this.Ro[3] - , a = this.transform(a, o, r) - , o = (t = this.wu(t, t, r)[0] * n + a[0], - e = this.wu(e, e, r)[1] * i + a[1], - this.transform(0, 0, r)); - return [t - o[0], e - o[1]] - }, - Bb: function (t, e, r) { - return r.X(t, e) - }, - qb: function (t, e, r) { - return r.H(t, e) - }, - Gd: function (t, e, r, n) { - var i = n.X(t[0], t[1]); - return [(n = n.X(t[0] + e, t[1] + r))[0] - i[0], n[1] - i[1]] - } - } - , SphericalMercator$1 = { - Ro: [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244], - project: function (t, e, r) { - return t = E3857.project(t, e), - this.transform(t[0], t[1], r) - }, - unproject: function (t, e, r) { - return t = this.Xs(t, e, r), - E3857.unproject(t[0], t[1]) - }, - transform: function (t, e, r) { - t = Math.min(20037508.342789244, Math.max(t, -20037508.342789244)), - e = Math.min(20037508.342789244, Math.max(e, -20037508.342789244)), - r = void 0 === r ? 40075016.68557849 : 256 * Math.pow(2, r); - var n = this.Ro[2] - this.Ro[0] - , i = this.Ro[3] - this.Ro[1]; - return [t = (t - this.Ro[0]) / n * r, e = r - (e - this.Ro[1]) / i * r] - }, - Xs: function (t, e, r) { - return [t = (t / (r = void 0 === r ? 40075016.68557849 : 256 * Math.pow(2, r)) - .5) * this.Ro[2] * 2, e = -(e / r - .5) * this.Ro[2] * 2] - }, - nt: function (t, e, r, n) { - return [t = this.Xs(t, e, r)[0] - this.Ro[0], e = this.Ro[2] - this.Xs(t, e, r)[1]] - }, - wu: function (t, e, r, n) { - var i = n.center - , a = n.size - , n = (n.rotation || 0) / 180 * Math.PI - , e = (t = this.transform(t, e, r))[0] - , t = t[1] - , r = e - (i = this.transform(i[0], i[1], r))[0] - , e = t - i[1] - , t = Math.sqrt(Math.pow(r, 2) + Math.pow(e, 2)) - , i = 0 == e ? Math.PI / 2 : Math.atan(Math.abs(r / e)) - , i = r * e <= 0 ? i + n : i - n - , n = 0 < e ? 1 : -1; - return [a[0] / 2 + t * Math.sin(0 < r ? i : -i), a[1] / 2 + t * Math.cos(i) * n] - }, - yo: function (t, e, r, n) { - var i = 0 < t / this.Ro[3] ? Math.abs(Math.floor(t / this.Ro[3])) : Math.abs(Math.ceil(t / this.Ro[3])) - , a = 0 < e / this.Ro[3] ? Math.abs(Math.floor(e / this.Ro[3])) : Math.abs(Math.ceil(e / this.Ro[3])) - , o = t % this.Ro[3] - , s = e % this.Ro[3] - , o = this.transform(o, s, r) - , r = (s = this.transform(0, 0, r))[0] - , s = s[1]; - return [(t = r * i + o[0]) - r, (e = s * a + o[1]) - s] - }, - Bb: function (t, e, r) { - return r.X(t, e) - }, - qb: function (t, e, r) { - return r.H(t, e) - }, - Gd: function (t, e, r, n) { - var i = n.X(t[0], t[1]); - return [(n = n.X(t[0] + e, t[1] + r))[0] - i[0], n[1] - i[1]] - } - } - , transform = { - "EPSG:4326": LngLat$1, - "EPSG:3857": SphericalMercator$1 - } - , LocalZoom = 13 - , LocalTileZoom = 12 - , AMapStyleSource = "" - , zoomRange = [2, 26] - , CONSTS = { - ID: "__id__", - Rp: zoomRange[1], - Mp: zoomRange[0], - jp: .8, - Pp: .2, - YM: 5, - KM: { - dom: "div", - id: "_amap_custom_labellayer_div_", - className: "amap-layer", - style: { - cssText: "position:absolute;top:0;left:0;", - zIndex: "", - width: "", - height: "", - visible: "" - } - }, - Dp: { - Op: 180, - Ad: 70, - Td: 360, - t1: 300, - e1: 30, - Bd: Math.PI / 10 - }, - XM: { - top: 3, - right: 3, - bottom: 3, - left: 3 - }, - JM: { - ZM: "top", - QM: "right", - tj: "bottom", - LEFT: "left", - nj: "middle", - ij: "center", - ej: "alphabetic" - }, - oj: { - CLICK: "click", - MOUSEOVER: "mouseover", - MOUSEOUT: "mouseout", - MOUSEMOVE: "mousemove", - MOUSEDOWN: "mousedown", - MOUSEUP: "mouseup", - aj: "touchstart", - uj: "touchend" - }, - sj: { - rank: 1, - angle: 0, - opacity: 1, - offset: [0, 0], - zooms: zoomRange, - icon: { - type: "image", - image: "://visuallocal.amap.com/public/poi-marker.png", - clipOrigin: [0, 0], - clipSize: [36, 36], - size: [36, 36], - anchor: "bottom-center", - angel: 0, - retina: !0, - zooms: zoomRange - }, - text: { - type: "billboard", - direction: "top", - offset: [0, 0], - zooms: zoomRange, - style: { - fj: 6, - fontFamily: "sans-serif", - fontSize: 12, - fontWeight: "normal", - fillColor: [0, 0, 0, 1], - strokeWidth: 0, - strokeColor: [.988, .988, .988, 1], - borderColor: "transparent", - padding: [3, 3, 3, 3], - backgroundColor: "" - } - } - }, - hj: { - cj: { - opacity: .2 - }, - vj: "fadeIn", - lj: "fadeOut", - dj: { - bj: "start", - RUNNING: "running", - pj: "complete" - }, - yj: { - mj: "opacity", - gj: "size" - } - }, - _d: 3, - wj: "_AMap_sdf_com_words", - Mj: 128, - pc: ["://sdf.amap.com", "://sdf01.amap.com", "://sdf02.amap.com", "://sdf03.amap.com", "://sdf04.amap.com"], - sp: 4, - Cd: .78125, - Ld: 205 / 256, - Aj: { - kj: "纹理加载失败,请重试", - Oj: "资源加载失败,请重试" - }, - xj: "bufferChanged", - Ij: "frameBufferChanged", - Tj: "combineFrameBufferChanged", - ic: 1, - ud: 13, - Cj: 12, - Ej: "__icon_combination", - Nj: "__text_combination", - Lj: { - file: { - 0: "://vdata.amap.com/style_icon/2.0/icon-normal-big.png", - 1: "://vdata.amap.com/style_icon/2.0/icon-biz-big.png" - }, - size: [40, 40], - Rj: 10 - }, - Kp: { - buffer: 3, - family: "ios9", - size: 24 - }, - _n: { - Uj: [0, 0, 0, 1], - Gp: [0, 0, 0, 0] - }, - gH: "sdf", - RB: "sdfJson", - FN: "version" - } - , DangerousFontSize = (function (t) { - t.nebula = "nebula", - t.nebulaLabel = "nebulaLabel" - }(exports.n0 || (exports.n0 = {})), - 24) - , EnumLabelFragType = (function (t) { - t[t.dynamic = 0] = "dynamic", - t[t.icon = 1] = "icon" - }(exports.cY || (exports.cY = {})), - { - icon: 0, - bg: 6, - tq: 8, - text: 2 - }) - , defaultCap = ["butt", "butt"] - , tmp1 = (function (t) { - t.BLOB = "blob", - t.TOLOAD = "toload", - t.LOADING = "loading", - t.LOADED = "loaded", - t.UNLOADED = "unloaded", - t.ERROR = "error", - t.RELOADING = "reloading", - t.UNCOMBINED = "uncombined", - t.COMBINING = "combining", - t.COMBINED = "combined" - }(exports.uc || (exports.uc = {})), - 4294901760) - , tmp2 = 65535; - function getUploadName(t, e) { - return ((t = tmp1 - (t << 16)) + (e = tmp2 - e)).toString(16) - } - function staticSDFTileKeyToKey(t) { - var e = (t = map(t.split(","), function (t) { - return parseInt(t, 10) - }))[1] - , r = t[2]; - return t[0] < 10 ? "lesszoom10" : (10 !== t[0] && (12 === t[0] ? (e = Math.floor(e / 4), - r = Math.floor(r / 4)) : 14 === t[0] ? (e = Math.floor(e / 16), - r = Math.floor(r / 16)) : 15 === t[0] && (e = Math.floor(e / 32), - r = Math.floor(r / 32))), - getUploadName(e, r)) - } - var labelsUtil = { - Bj: function (t) { - var e, r = {}; - for (e in t = void 0 === t ? {} : t) - t.hasOwnProperty(e) && (r[e] = 1); - return r - }, - zj: function (t, e) { - t.gs = e, - t.qj = e.options || {}, - t.Wj = e.Wj || {}, - t.Fs = e.Fs || {}, - t.Gj = e.Gj || {}, - t.Hj = e.Hj || {}, - t.Vj = e.Vj || {}, - t.$j = e.$j || 0 - }, - Yj: function (t, e) { - void 0 === t && (t = [NaN, NaN, NaN, NaN]), - void 0 === e && (e = [0, 0, 0, 1]); - for (var r = 0; r < t.length; r++) { - var n = t[r]; - isNaN(n) && (t[r] = e[r]) - } - return t - }, - Kj: function (t) { - return [((16711680 & t) >> 16) / 255, ((65280 & t) >> 8) / 255, (255 & t) / 255, 1] - }, - Xj: function (t, e) { - for (var r = [], n = (e = void 0 === e ? {} : e).qw, i = e.Aw, a = e.complete, o = 0, s = t; o < s.length; o++) { - var u = s[o] - , u = new Promise(u); - r.push(u) - } - var c = 0; - Promise.all(r).then(function () { - n && n.apply(void 0, arguments), - a && !c && (c = 1, - a.apply(void 0, arguments)) - }).catch(function () { - i && i.apply(void 0, arguments), - a && !c && (c = 1, - a.apply(void 0, arguments)) - }) - }, - Jj: function (t, e) { - var r = t[0] - , n = void 0 === (n = t[1]) ? 0 : n - , i = e[0] - , a = void 0 === (a = e[1]) ? 0 : a; - return (void 0 === r ? 0 : r) <= (i = void 0 === i ? 0 : i) ? i <= n ? a < n ? [i, a] : [i, n] : null : labelsUtil.Jj(e, t) - }, - measureText: function (t, e, r, n) { - if (void 0 === e && (e = ""), - "3D" === (n = void 0 === n ? "3D" : n)) - return t.measureText(e, r) - }, - lnglatToContainer: function (t, e) { - return (void 0 === (e = e.zoom) ? 20 : e) < LocalZoom ? t : (e = lcs.getLocalByCoord(t), - vector.Ip(t, e.center)) - }, - Sd: function (t, e) { - var r = t[0] - , t = void 0 === (t = t[1]) ? 0 : t - , n = e[0] - , e = void 0 === (e = e[1]) ? 0 : e - , n = Math.abs((void 0 === n ? 0 : n) - (void 0 === r ? 0 : r)) - , r = Math.abs(e - t); - return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2)) - }, - getAngle: function (t, e) { - var r = t[0] - , t = t[1] - , n = (void 0 === (n = e[0]) ? 0 : n) - (void 0 === r ? 0 : r) - , r = (void 0 === (e = e[1]) ? 0 : e) - (void 0 === t ? 0 : t); - return 0 == n ? r < 0 ? 3 * Math.PI / 2 : Math.PI / 2 : 0 === (e = Math.atan(r / n)) || 0 < e ? 0 <= n ? e : e + Math.PI : 0 < n ? 2 * Math.PI + e : Math.PI + e - }, - Fd: function (t, e, r) { - for (var n = t[0], i = void 0 === n ? 0 : n, a = void 0 === (n = t[1]) ? 0 : n, o = (void 0 === (t = e[0]) ? 0 : t) - i, s = (void 0 === (n = e[1]) ? 0 : n) - a, u = [], c = 0; c < r;) - u.push([i + o / (r + 1) * (c + 1), a + s / (r + 1) * (c + 1)]), - c++; - return u - }, - OG: function (t, e, r) { - return 0 !== r ? [t[0] + (e[0] - t[0]) * r, t[1] + (e[1] - t[1]) * r] : t - }, - Ed: function (t, e) { - void 0 === e && (e = "ch"); - var r, n, i, a = (t = void 0 === t ? [] : t).length; - return !!a && (r = t[0], - t = t[4 <= a ? Math.floor(a / 4 * 3) : a - 1], - a = r[0], - r = r[1], - i = [(n = t[0]) - a, (t = t[1]) - r], - ("ch" === e && 1 < Math.abs((t - r) / (n - a)) ? vector.Zj(i, [0, 1]) : vector.Zj(i, [1, 0])) < 0) - }, - Nd: function (t, e, r) { - var n, i = t[0], t = t[1], a = e[0], o = ((e = e[1]) - t) / (a - i), a = [a - i, e - t]; - return 1 < Math.abs(o) && "x" !== r ? (n = 0 < vector.Zj(a, [0, -1]) ? vector.Qj(a, [0, -1]) : vector.Qj(a, [0, 1]), - 0 < o && (n = -n)) : (n = 0 < vector.Zj(a, [1, 0]) ? vector.Qj(a, [1, 0]) : vector.Qj(a, [-1, 0]), - o < 0 && (n = -n)), - n - }, - Od: function (t, e, r) { - var n = r * Math.sin(e) - , r = r * Math.cos(e); - return [t[0] + r, t[1] + n] - }, - jd: function (t, e, r, n) { - var t = vector.Ip(t, e) - , i = vector.length(t) - , r = vector.Ip(r, e) - , a = vector.length(r) - , t = vector.Zj(t, r) - , t = Math.acos(t / (i * a)) - , a = Math.PI - t - , t = i * Math.sin(a) - , i = i * Math.cos(a) - , a = Math.sqrt(Math.pow(n, 2) - Math.pow(t, 2)) - i - , n = 0 === r[0] ? 0 < r[1] ? Math.PI / 2 : -Math.PI / 2 : Math.atan(r[1] / r[0]) - , t = Math.abs(a * Math.sin(n)) - , i = a * Math.cos(n) - , a = vector.Zj(r, [1, 0]) - , n = vector.Zj(r, [0, 1]); - return vector.add(e, [0 <= a ? i : -i, 0 <= n ? t : -t]) - }, - rank: function (t) { - for (var e = [], r = 0; r < t.length; r++) { - var n = parseFloat(t[r]); - n < 0 ? (t.splice(r--, 1), - e.push(n)) : t[r] = n - } - return t.sort(function (t, e) { - return t - e - }), - e.concat(t) - }, - $p: function (t) { - var e = CONSTS.Mp - , r = CONSTS.Rp; - return t[1] >= zoomRange[1] && (t[1] = r), - t[0] <= zoomRange[0] && (t[0] = e), - t - }, - toString: function (t, e) { - void 0 === e && (e = 4); - var r = ""; - if (t) - for (var n = 0, i = t; n < i.length; n++) { - var a = i[n]; - r += (a + "").length < e ? a : a.toFixed(e) - } - return r - }, - xf: function (t, e) { - var r, n, i, a = [], o = e.ja, s = e.Fa, u = e.Oa, c = e.Ea; - for (r in t) - t.hasOwnProperty(r) && r !== CONSTS.gH && r !== CONSTS.FN && r !== CONSTS.RB && ("shields" === r || !o || (i = r.split("-"), - n = parseInt(i[1], 10), - i = parseInt(i[2], 10), - o <= n && n <= u && s <= i && i <= c)) && a.push(t[r]); - return a.length ? a : t - }, - EQ: function (t, e) { - for (var r = [], n = e.length, i = 0; i < n - 1; i++) { - var a = t.substring(e[i], e[i + 1]); - r.push(a) - } - return n ? r : t.split("") - }, - aQ: function (t) { - for (var e = [], r = 0; r < t.length; r++) { - for (var n = t[r], i = [], a = 0; a < n.length; a++) { - var o = n.charCodeAt(a); - i.push(o) - } - var s = i.join("|"); - e.push(s) - } - return e - }, - tQ: function (t, e, r) { - var n = "" - , i = [] - , a = ""; - if (t.name) { - if (t.JQ && 0 < t.JQ.length) - n = getSpiltLineWithSpiltIndex(t.name, t.JQ); - else if (r) { - var o = r.lineBreak(t.name, { - from: "labelsLayer", - CO: [] - }) - , s = 0 - , u = ""; - if (2 <= o.oQ.length) { - for (var c = 1, f = o.oQ.length - 1; c < f; c++) - u += t.name.slice(s, o.oQ[c]) + " ", - s = o.oQ[c]; - u += t.name.slice(s) - } else - u = t.name; - n = u - } else - n = t.name; - a = "ch" - } else { - switch (e) { - case "en": - n = t.name_en, - i = t.iQ, - a = "en"; - break; - case "local": - n = t.QQ, - i = t.$G, - a = t.CQ; - break; - default: - n = t.BQ, - a = "ch" - } - n || (t.name_en ? (n = t.name_en, - i = t.iQ, - a = "en") : t.QQ && (n = t.QQ, - i = t.$G, - a = t.QQ)) - } - return { - name: n, - $G: i, - type: a - } - } - } - , vector = { - add: function (t, e) { - for (var r = [], n = 0; n < t.length; n++) - r[n] = t[n] + e[n]; - return r - }, - Ip: function (t, e) { - for (var r = [], n = 0; n < t.length; n++) - r.push(t[n] - e[n]); - return r - }, - multiply: function (t, e) { - for (var r = [], n = 0, i = t; n < i.length; n++) { - var a = i[n]; - r.push(a * e) - } - return r - }, - Up: function (t, e) { - for (var r = [], n = 0; n < t.length; n++) - r[n] = t[n] / e; - return r - }, - tA: function (t) { - return this.multiply(t, -1) - }, - Zj: function (t, e) { - var r = t[0] - , t = t[1] - , n = e[0]; - return (void 0 === r ? 0 : r) * (void 0 === n ? 0 : n) + (void 0 === t ? 0 : t) * (void 0 === (e = e[1]) ? 0 : e) - }, - Qj: function (t, e) { - var r = vector.Zj(t, e) - , t = vector.length(t) - , e = vector.length(e); - return Math.acos(r / (t * e)) - }, - length: function (t) { - var e = t[0] - , t = t[1]; - return Math.sqrt(Math.pow(e, 2) + Math.pow(t, 2)) - } - } - , noop = function (t) { }; - function getSpiltLineWithSpiltIndex(t, e) { - if (e.shift(), - 0 === e.length) - return t; - for (var r = "", n = 0, i = 0, a = e.length; i < a; i++) - r += t.substr(n, e[i] - n) + " ", - n = e[i]; - return r + t.substr(e[e.length - 1]) - } - var XHR = { - send: function (t, e) { - void 0 === e && (e = {}); - var r = new XMLHttpRequest - , i = void 0 === (n = e.qw) ? noop : n - , a = void 0 === (n = e.Aw) ? noop : n - , n = e.Me - , o = e.method - , e = e.content; - return r.onreadystatechange = function () { - if (4 === r.readyState && 200 === r.status) { - var t = r.response; - try { - i(t) - } catch (t) { - a(t) - } - } else - 404 === r.status && (r.abort(), - a(Error("404"))) - } - , - r.onerror = function (t) { - r.abort(), - a(t) - } - , - r.open(o || "GET", t, !0), - r.responseType = n || "json", - r.send(e || void 0), - r - } - } - , scale = Browser.scale - , LabelsRenderUtil = { - getBounds: function (t, e) { - var r = (e = void 0 === e ? {} : e).zoom - , n = e.centerCoord - , i = (e.view, - [150 * scale, 150 * scale, 150 * scale, 150 * scale]) - , a = (t = t.boundsCoord)[0] - , o = t[1] - , s = t[2] - , t = t[3] - , u = this.nt(0, 0, r, e) - , c = vector.Ip(this.nt(i[0], i[1], r, e), u) - , i = vector.Ip(this.nt(i[2], i[3], r, e), u) - , u = (e = LocalZoom <= r ? n : [0, 0])[0] - , r = e[1]; - return [[a - u - Math.abs(i[1]), o - r - Math.abs(i[0])], [s - u + Math.abs(c[1]), t - r + Math.abs(c[0])]] - }, - gz: function (t, e) { - var r = e[0] - , e = e[1] - , n = t[0] - , t = t[1] - , i = n - r[0] - , r = t - r[1] - , n = e[0] - n - , e = e[1] - t; - return 0 <= i && 0 <= r && 0 <= n && 0 <= e - }, - getRank: function (t, e) { - var r = (e = void 0 === e ? {} : e).forceShow - , e = e._z - , t = (t.data || {}).rank || 1; - return void 0 !== r && r ? t - 1e5 : (void 0 === e ? 0 : e) / 100 * 2e5 + t - }, - wu: function (t, e, r, n) { - var i, a, o, s, u, c; - if (void 0 === t && (t = 0), - void 0 === e && (e = 0), - n) - return u = n.viewState, - s = n.size, - i = n.transform, - a = n.view, - o = n.viewMode, - c = n.centerCoord, - n = void 0 === (n = n.positionType) ? "relative" : n, - "2D" === o ? (o = { - center: u.centerCoord, - rotation: u.rotation, - size: s - }, - u = (s = u.optimalZoom >= LocalZoom ? c : [0, 0])[0], - c = s[1], - i.wu(t + u, e + c, r, o)) : "relative" === n ? a.H(t, e) : a._u(t, e) - }, - r0: function (t, e, r, n, i) { - var a, o, s, u, c, f; - if (void 0 === t && (t = 0), - void 0 === e && (e = 0), - void 0 === r && (r = 0), - i) - return c = i.viewState, - u = i.size, - a = i.transform, - o = i.view, - s = i.viewMode, - f = i.centerCoord, - i = void 0 === (i = i.positionType) ? "relative" : i, - "2D" === s ? (s = { - center: c.centerCoord, - rotation: c.rotation, - size: u - }, - c = (u = c.optimalZoom >= LocalZoom ? f : [0, 0])[0], - f = u[1], - a.wu(t + c, e + f, n, s)) : "relative" === i ? o.H(t, e, r) : o._u(t, e, r) - }, - kz: function (t, e, r, n) { - if (void 0 === t && (t = []), - n = (n = void 0 === n ? {} : n).centerCoord, - e < LocalZoom && LocalZoom <= r) { - for (var i = n[0], a = n[1], o = [], s = 0, u = t; s < u.length; s++) { - var c = u[s]; - o.push([c[0] - i, c[1] - a]) - } - return o - } - return t - }, - nt: function (t, e, r, n) { - void 0 === t && (t = 0), - void 0 === e && (e = 0); - var i = n.view - , a = n.transform; - return "2D" === n.viewMode ? a.nt(t, e, r) : i.X(t, e) - }, - MG: function (t, e) { - return t < LocalZoom - 1 ? [0, 0] : e - } - }; - function isLngLat(t) { - return t && "AMap.LngLat" === t.className - } - function isPixel(t) { - return t && "AMap.Pixel" === t.className - } - function isSize(t) { - return t && "AMap.Size" === t.className - } - function isLayer(t) { - return Boolean(t && t.el && "AMap.Layer" === t.el) - } - function isVectorLayer(t) { - return t && "AMap.VectorLayer" === t.CLASS_NAME - } - function isOverlay(t) { - return t && t.className && Util.startsWith(t.className, "Overlay") - } - function isOverlayGroup(t) { - return t && ("Overlay.OverlayGroup" === t.className || "Overlay.GeoJSON" === t.className) - } - function isCircleMarker(t) { - return t && t.className && "Overlay.CircleMarker" === t.className - } - function isPolyline(t) { - return t && t.className && "Overlay.Polyline" === t.className - } - function isBezierCurve(t) { - return t && t.className && "Overlay.BezierCurve" === t.className - } - function isBounds(t) { - return t && "AMap.Bounds" === t.className - } - function isNumber(t) { - return "number" == typeof (t = +t) && !isNaN(t) - } - function isNumberArray(t) { - return Array.isArray(t) && isNumber(t[0]) - } - function isNumberArrayArray(t) { - return Array.isArray(t) && isNumberArray(t[0]) - } - function isNumberArrayArrayArray(t) { - return Array.isArray(t) && isNumberArrayArray(t[0]) - } - function isNumberArrayArrayArrayArray(t) { - return Array.isArray(t) && isNumberArrayArrayArray(t[0]) - } - function isLnglatLike(t) { - return isLngLat(t) || isNumberArray(t) - } - function isLnglatLikeArray(t) { - return Array.isArray(t) && isLnglatLike(t[0]) - } - function isLnglatLikeArrayArray(t) { - return Array.isArray(t) && isLnglatLikeArray(t[0]) - } - function isLnglatLikeArrayArrayArray(t) { - return Array.isArray(t) && isLnglatLikeArrayArray(t[0]) - } - function isInnerLabelsLayer(t) { - return t && "AMap.Inner.LabelsLayer" === t.CLASS_NAME - } - function isUndefined$1(t) { - return void 0 === t - } - function calcTileMectorBounds(t, e, r) { - var n = ProjectionManager.getProjection("EPSG:3857") - , a = 180 / (t = Math.pow(2, t)) - , i = (e = (i = 360 / t) * e - 180) + i - , r = (t = a * (t - r - 1) - 90) + a; - return [e = (a = n.project(e, t))[0], t = a[1], (a = n.project(i, r))[0], a[1]] - } - function parseLngLatData(t) { - if (Array.isArray(t)) { - var e; - if (!Array.isArray(t[0])) - return "string" == (e = typeof t[0]) || "number" == e ? new LngLat$2(t[0], t[1]) : t; - for (var r = 0; r < t.length; r += 1) - t[r] = parseLngLatData(t[r]) - } - return t - } - function jsonLngLatData(t) { - if (isLngLat(t)) - return [t.getLng(), t.getLat()]; - if (Array.isArray(t)) { - for (var e = t.slice(0), r = 0; r < e.length; r += 1) - e[r] = jsonLngLatData(e[r]); - return e - } - return t - } - var Coordinate = { - lr: function (t, e) { - for (var r = 1 / 0, n = 0, i = 1, a = e.length; i < a; n = i, - i += 1) - r = Math.min(r, this.ur(t, [e[n], e[i]])); - return Math.sqrt(r) - }, - ur: function (t, e) { - return this.cr(t, this.closestOnSegment(t, e)) - }, - cr: function (t, e) { - var r = t[0] - e[0]; - return r * r + (t = t[1] - e[1]) * t - }, - pr: function (t, e, r, n) { - var i, a; - return n = n || 1e-6, - r[0] === e[0] ? (i = Math.min(e[1], r[1]), - a = Math.max(e[1], r[1]), - Math.abs(t[0] - r[0]) < n && t[1] >= i && t[1] <= a) : (i = Math.min(e[0], r[0]), - a = Math.max(e[0], r[0]), - r = (r[1] - e[1]) / (r[0] - e[0]) * (t[0] - e[0]) + e[1], - Math.abs(r - t[1]) < n && t[0] >= i && t[0] <= a) - }, - closestOnSegment: function (t, e) { - var r, n = t[0], t = t[1], i = e[0], e = e[1], a = i[0], i = i[1], o = e[0], s = o - a, u = (e = e[1]) - i, t = (n = 0 == s && 0 == u ? 0 : (s * (n - a) + u * (t - i)) / (s * s + u * u || 0)) <= 0 ? (r = a, - i) : 1 <= n ? (r = o, - e) : (r = a + n * s, - i + n * u); - return [r, t] - }, - isClockwise: function (t) { - for (var e, r, n = t.length, i = 0, a = t[n - 1], o = a[0], s = a[1], u = 0; u < n; u += 1) - i += ((e = (r = t[u])[0]) - o) * ((r = r[1]) + s), - o = e, - s = r; - return 0 < i - }, - ss: function (t, e, r) { - for (var n = t[0], i = t[1], a = !1, o = e.length, s = 0, u = o - 1; s < o; u = s, - s += 1) { - var c = !1 - , f = e[s][0] - , h = e[s][1] - , l = e[u][0] - , d = e[u][1]; - if (f === n && h === i || l === n && d === i) - return !!r; - if (h < i == i <= d) { - if (n === (l = (l - f) * (i - h) / (d - h) + f)) - return !!r; - c = n < l - } - c && (a = !a) - } - return a - }, - dr: function (t, e) { - for (var r, n = function (t, e, r) { - return (r[0] - e[0]) * (t[1] - e[1]) > (r[1] - e[1]) * (t[0] - e[0]) - }, i = function (t, e, r, n) { - var i = [t[0] - e[0], t[1] - e[1]] - , a = [r[0] - n[0], r[1] - n[1]] - , t = t[0] * e[1] - t[1] * e[0] - , e = r[0] * n[1] - r[1] * n[0] - , r = 1 / (i[0] * a[1] - i[1] * a[0]); - return [(t * a[0] - e * i[0]) * r, (t * a[1] - e * i[1]) * r] - }, a = t, o = e[e.length - 2], s = 0, u = e.length - 1; s < u; s++) { - for (var c = e[s], f = a, a = [], h = f[f.length - 1], l = 0, d = f.length; l < d; l++) - n(r = f[l], o, c) ? (n(h, o, c) || a.push(i(o, c, h, r)), - a.push(r)) : n(h, o, c) && a.push(i(o, c, h, r)), - h = r; - o = c - } - return a.length < 3 ? [] : (a.push(a[0]), - a) - } - } - , Pixel = function () { - function r(t, e, r) { - if (void 0 === r && (r = !1), - this.className = "AMap.Pixel", - isNaN(t) || isNaN(e)) - throw new Error("Invalid Object: Pixel(" + t + ", " + e + ")"); - this.x = r ? Math.round(t) : Number(t), - this.y = r ? Math.round(e) : Number(e) - } - return r.prototype.getX = function () { - return this.x - } - , - r.prototype.round = function () { - return new r(Math.round(this.x), Math.round(this.y)) - } - , - r.prototype.getY = function () { - return this.y - } - , - r.prototype.toString = function () { - return this.x + "," + this.y - } - , - r.prototype.equals = function (t) { - return t instanceof r && Math.max(Math.abs(this.x - t.x), Math.abs(this.y - t.y)) <= 1e-9 - } - , - r.prototype.toArray = function () { - return [this.x, this.y] - } - , - r.prototype.subtract = function (t, e) { - return new r(this.x - t.x, this.y - t.y, e) - } - , - r.prototype.multiplyBy = function (t, e) { - return new r(this.x * t, this.y * t, e) - } - , - r.prototype.direction = function () { - var t, e = this.x, r = this.y; - return 0 === e && 0 === r ? null : 0 === e ? 0 < r ? 90 : 270 : (t = 180 * Math.atan(r / e) / Math.PI, - e < 0 && 0 < r || e < 0 && r < 0 ? 180 + t : 0 < e && r < 0 ? 360 + t : t) - } - , - r.prototype.toJSON = function () { - return [this.x, this.y] - } - , - r - }() - , commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; - function unwrapExports(t) { - return t && t.gP && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t - } - function createCommonjsModule(t, e) { - return t(e = { - exports: {} - }, e.exports), - e.exports - } - var dist = createCommonjsModule(function (u, t) { - function c(t, e) { - return e < t ? 1 : t < e ? -1 : 0 - } - function y(t, e, r) { - null === e ? (t.PP = !1, - t.OP = !0) : (t._P === e._P ? (t.PP = !e.PP, - t.OP = e.OP) : (t.PP = !e.OP, - t.OP = e.NP() ? !e.PP : e.PP), - e && (t.CP = !n(e, r) || e.NP() ? e.CP : e)), - e = n(t, r), - t.hN = e ? function (t, e) { - var r, n = !t.PP, i = !t.OP; - switch (e) { - case w: - r = n && i; - break; - case P: - r = n || i; - break; - case $: - r = n ^ i; - break; - case C: - r = t._P ? n && !i : i && !n - } - return r ? 1 : -1 - }(t, r) : 0 - } - function n(t, e) { - switch (t.type) { - case o: - switch (e) { - case w: - return !t.OP; - case P: - return t.OP; - case C: - return t._P && t.OP || !t._P && !t.OP; - case $: - return !0 - } - break; - case S: - return e === w || e === P; - case A: - return e === C; - case M: - return !1 - } - return !1 - } - function v(t, e) { - return t[0] === e[0] && t[1] === e[1] - } - function I(t, e, r, n, i) { - var a, o, s, u, c = e[0], f = n[0], h = 0, l = 0, d = (c < f == -c < f ? (a = c, - c = e[++h]) : (a = f, - f = n[++l]), - 0); - if (h < t && l < r) - for (c < f == -c < f ? (s = a - ((o = c + a) - c), - c = e[++h]) : (s = a - ((o = f + a) - f), - f = n[++l]), - a = o, - 0 !== s && (i[d++] = s); h < t && l < r;) - c < f == -c < f ? (s = a - ((o = a + c) - (u = o - a)) + (c - u), - c = e[++h]) : (s = a - ((o = a + f) - (u = o - a)) + (f - u), - f = n[++l]), - a = o, - 0 !== s && (i[d++] = s); - for (; h < t;) - s = a - ((o = a + c) - (u = o - a)) + (c - u), - c = e[++h], - a = o, - 0 !== s && (i[d++] = s); - for (; l < r;) - s = a - ((o = a + f) - (u = o - a)) + (f - u), - f = n[++l], - a = o, - 0 !== s && (i[d++] = s); - return 0 === a && 0 !== d || (i[d++] = a), - d - } - function e(t) { - return new (commonjsGlobal.Float64Array ? Float64Array : Array)(t) - } - function i(t, e, r) { - n = t[0], - t = t[1], - i = e[0], - e = e[1]; - var n, i, a, o, s, a = r[0], s = (o = (t - (r = r[1])) * (i - a)) - (u = (n - a) * (e - r)), u = 0 == o || 0 == u || 0 < o != 0 < u || (o = Math.abs(o + u), - Math.abs(s) >= 33306690738754716e-32 * o) ? s : -function (t, e, r, n, i, a, o) { - var s, u, c, f, h, l, d, v, g, p, y = t - i, m = r - i, b = e - a, T = n - a, x = y * T, M = N * y, S = M - (M - y), A = y - S, w = (k[0] = (d = A * (c = T - (u = (M = N * T) - (M - T))) - (x - S * u - A * u - S * c)) - ((f = d - (g = (A = b - (S = (M = N * b) - (M - b))) * (c = m - (u = (M = N * m) - (M - m))) - ((v = b * m) - S * u - A * u - S * c))) + (s = d - f)) + (s - g), - k[1] = (l = x - ((h = x + f) - (s = h - x)) + (f - s)) - ((f = l - v) + (s = l - f)) + (s - v), - k[2] = h - ((p = h + f) - (s = p - h)) + (f - s), - k[3] = p, - function (e) { - for (var r = e[0], n = 1; n < 4; n++) - r += e[n]; - return r - }(k)), P = 22204460492503146e-32 * o; - return P <= w || P <= -w || (t = t - (y + (s = t - y)) + (s - i), - r = r - (m + (s = r - m)) + (s - i), - i = e - (b + (s = e - b)) + (s - a), - e = n - (T + (s = n - T)) + (s - a), - 0 == t && 0 == i && 0 == r && 0 == e) || (P = 11093356479670487e-47 * o + 33306690738754706e-32 * Math.abs(w)) <= (w += y * e + T * t - (b * r + m * i)) || P <= -w ? w : (U[0] = (d = (A = t - (S = (M = N * t) - (M - t))) * (c = T - (u = (M = N * T) - (M - T))) - ((x = t * T) - S * u - A * u - S * c)) - ((f = d - (g = (A = i - (S = (M = N * i) - (M - i))) * (c = m - (u = (M = N * m) - (M - m))) - ((v = i * m) - S * u - A * u - S * c))) + (s = d - f)) + (s - g), - U[1] = (l = x - ((h = x + f) - (s = h - x)) + (f - s)) - ((f = l - v) + (s = l - f)) + (s - v), - U[2] = h - ((p = h + f) - (s = p - h)) + (f - s), - U[3] = p, - n = I(4, k, 4, U, L), - U[0] = (d = (A = y - (S = (M = N * y) - (M - y))) * (c = e - (u = (M = N * e) - (M - e))) - ((x = y * e) - S * u - A * u - S * c)) - ((f = d - (g = (A = b - (S = (M = N * b) - (M - b))) * (c = r - (u = (M = N * r) - (M - r))) - ((v = b * r) - S * u - A * u - S * c))) + (s = d - f)) + (s - g), - U[1] = (l = x - ((h = x + f) - (s = h - x)) + (f - s)) - ((f = l - v) + (s = l - f)) + (s - v), - U[2] = h - ((p = h + f) - (s = p - h)) + (f - s), - U[3] = p, - a = I(n, L, 4, U, O), - U[0] = (d = (A = t - (S = (M = N * t) - (M - t))) * (c = e - (u = (M = N * e) - (M - e))) - ((x = t * e) - S * u - A * u - S * c)) - ((f = d - (g = (A = i - (S = (M = N * i) - (M - i))) * (c = r - (u = (M = N * r) - (M - r))) - ((v = i * r) - S * u - A * u - S * c))) + (s = d - f)) + (s - g), - U[1] = (l = x - ((h = x + f) - (s = h - x)) + (f - s)) - ((f = l - v) + (s = l - f)) + (s - v), - U[2] = h - ((p = h + f) - (s = p - h)) + (f - s), - U[3] = p, - o = I(a, O, 4, U, _), - _[o - 1]) - }(n, t, i, e, a, r, o); - return 0 < u ? -1 : u < 0 ? 1 : 0 - } - function m(t, e) { - var r = t.point - , n = e.point; - return r[0] > n[0] ? 1 : r[0] < n[0] ? -1 : r[1] !== n[1] ? r[1] > n[1] ? 1 : -1 : (n = e, - e = r, - (r = t).left === n.left ? 0 === i(e, r.IP.point, n.IP.point) ? !r._P && n._P ? 1 : -1 : r.FP(n.IP.point) ? -1 : 1 : r.left ? 1 : -1) - } - function g(t, e, r) { - var n = new l(e, !1, t, t._P) - , e = new l(e, !0, t.IP, t._P); - v(t.point, t.IP.point) && console.warn("what is that, a collapsed segment?", t), - n.UP = e.UP = t.UP, - 0 < m(e, t.IP) && (t.IP.left = !0, - e.left = !1), - t.IP.IP = e, - t.IP = n, - r.push(e), - r.push(n) - } - function p(t, e) { - return t[0] * e[1] - t[1] * e[0] - } - function b(t, e) { - return t[0] * e[0] + t[1] * e[1] - } - function T(t, e, r) { - n = t.point, - i = t.IP.point, - h = e.point, - d = e.IP.point; - var n, i, o, s, u, f, h, l, d, i = [i[0] - n[0], i[1] - n[1]], d = [d[0] - h[0], d[1] - h[1]], u = [h[0] - n[0], h[1] - n[1]], s = p(i, d), f = b(i, i); - function c(t, e, r) { - return [t[0] + e * r[0], t[1] + e * r[1]] - } - return 0 === (d = (u = 0 < s * s ? (o = p(u, d) / s) < 0 || 1 < o || (l = p(u, i) / s) < 0 || 1 < l ? null : 0 != o && 1 != o && (0 == l || 1 == l) ? [c(h, l, d)] : [c(n, o, i)] : !(0 < (s = p(u, i)) * s) && (l = (h = b(i, u) / f) + b(i, d) / f, - o = Math.min(h, l), - s = Math.max(h, l), - o <= 1) && 0 <= s ? 1 === o ? [c(n, 0 < o ? o : 0, i)] : 0 === s ? [c(n, s < 1 ? s : 1, i)] : [c(n, 0 < o ? o : 0, i), c(n, s < 1 ? s : 1, i)] : null) ? u.length : 0) || 1 === d && (v(t.point, e.point) || v(t.IP.point, e.IP.point)) || 2 === d && t._P === e._P ? 0 : 1 === d ? (v(t.point, u[0]) || v(t.IP.point, u[0]) || g(t, u[0], r), - v(e.point, u[0]) || v(e.IP.point, u[0]) || g(e, u[0], r), - 1) : (l = h = !(f = []), - v(t.point, e.point) ? h = !0 : 1 === m(t, e) ? f.push(e, t) : f.push(t, e), - v(t.IP.point, e.IP.point) ? l = !0 : 1 === m(t.IP, e.IP) ? f.push(e.IP, t.IP) : f.push(t.IP, e.IP), - h && l || h ? (e.type = M, - t.type = e.PP === t.PP ? S : A, - h && !l && g(f[1].IP, f[0].point, r), - 2) : (l ? g(f[0], f[1].point, r) : f[0] !== f[3].IP ? (g(f[0], f[1].point, r), - g(f[1], f[2].point, r)) : (g(f[0], f[1].point, r), - g(f[3].IP, f[2].point, r)), - 3)) - } - function D(t, e) { - var r, n; - return t === e ? 0 : 0 !== i(t.point, t.IP.point, e.point) || 0 !== i(t.point, t.IP.point, e.IP.point) ? v(t.point, e.point) ? t.FP(e.IP.point) ? -1 : 1 : t.point[0] === e.point[0] ? t.point[1] < e.point[1] ? -1 : 1 : 1 === m(t, e) ? e.RP(t.point) ? -1 : 1 : t.FP(e.point) ? -1 : 1 : t._P !== e._P ? t._P ? -1 : 1 : (r = t.point, - n = e.point, - r[0] === n[0] && r[1] === n[1] ? (r = t.IP.point, - n = e.IP.point, - r[0] === n[0] && r[1] === n[1] ? 0 : t.UP > e.UP ? 1 : -1) : 1 === m(t, e) ? 1 : -1) - } - function h(t, e) { - return t < e ? -1 : e < t ? 1 : 0 - } - function G(t, e, r, n, i, a) { - for (var o = 0, s = t.length - 1; o < s; o++) { - var u = t[o] - , c = t[o + 1] - , f = new l(u, !1, void 0, e) - , h = new l(c, !1, f, e); - f.IP = h, - u[0] === c[0] && u[1] === c[1] || (f.UP = h.UP = r, - a || (f.DP = !1, - h.DP = !1), - 0 < m(f, h) ? h.left = !0 : f.left = !0, - c = u[0], - u = u[1], - i[0] = j(i[0], c), - i[1] = j(i[1], u), - i[2] = d(i[2], c), - i[3] = d(i[3], u), - n.push(f), - n.push(h)) - } - } - function r(t, e, r) { - if ("number" == typeof t[0][0][0] && (t = [t]), - u = e = "number" == typeof e[0][0][0] ? [e] : e, - n = null, - (c = t).length * u.length == 0 && (r === w ? n = R : r === C ? n = c : r !== P && r !== $ || (n = 0 === c.length ? u : c)), - n) - return n === R ? null : n; - var o, s = [1 / 0, 1 / 0, -1 / 0, -1 / 0], u = [1 / 0, 1 / 0, -1 / 0, -1 / 0], c = function (t, e, r, n, i) { - for (var a, o, s, u, c = new E(null, m), f = 0, h = t.length; f < h; f++) - for (s = 0, - u = (a = t[f]).length; s < u; s++) - (o = 0 === s) && F++, - G(a[s], !0, F, c, r, o); - for (f = 0, - h = e.length; f < h; f++) - for (s = 0, - u = (a = e[f]).length; s < u; s++) - o = 0 === s, - (o = i !== C && o) && F++, - G(a[s], !1, F, c, n, o); - return c - }(t, e, s, u, r), n = t; - if (t = e, - e = r, - o = null, - (s[0] > u[2] || s[2] < u[0] || u[3] < s[1] || s[3] < u[1]) && (e === w ? o = R : e === C ? o = n : e !== P && e !== $ || (o = n.concat(t))), - o) - return o === R ? null : o; - for (var f = function (t) { - for (var f = function (t) { - for (var e, r, n = [], i = 0, a = t.length; i < a; i++) - ((e = t[i]).left && e.EP || !e.left && e.IP.EP) && n.push(e); - for (var o = !1; !o;) - for (o = !0, - i = 0, - a = n.length; i < a; i++) - i + 1 < a && 1 === m(n[i], n[i + 1]) && (r = n[i], - n[i] = n[i + 1], - n[i + 1] = r, - o = !1); - for (i = 0, - a = n.length; i < a; i++) - (e = n[i]).lN = i; - for (i = 0, - a = n.length; i < a; i++) - (e = n[i]).left || (r = e.lN, - e.lN = e.IP.lN, - e.IP.lN = r); - return n - }(t), h = {}, l = [], d = 0, r = f.length; d < r; d++) - !function () { - if (!h[d]) { - var t, e, r, n, i = l.length, a = (c = f[d], - t = l, - e = i, - n = new V, - null != c.CP ? (r = (c = c.CP).dN, - 0 < c.hN ? null != (c = t[r]).gN ? (t[c = c.gN].vN.push(e), - n.gN = c, - n.depth = t[r].depth) : (t[r].vN.push(e), - n.gN = r, - n.depth = t[r].depth + 1) : (n.gN = null, - n.depth = t[r].depth)) : (n.gN = null, - n.depth = 0), - n), o = function (t) { - h[t] = !0, - f[t].dN = i - }, s = d, u = d, c = f[d].point; - for (a.points.push(c); o(s), - o(s = f[s].lN), - a.points.push(f[s].point), - (s = function (t, e, r, n) { - var i, a = t + 1, o = e[t].point, s = e.length; - for (a < s && (i = e[a].point); a < s && i[0] === o[0] && i[1] === o[1];) { - if (!r[a]) - return a; - i = e[++a].point - } - for (a = t - 1; r[a] && n < a;) - a--; - return a - }(s, f, h, u)) != u;) - ; - l.push(a) - } - }(); - return l - }(function (t, e, r, n) { - for (var i = new x(D), a = [], o = Math.min(e[2], r[2]); 0 !== t.length;) { - var s, u, c, f, h, l = t.pop(); - if (a.push(l), - n === w && l.point[0] > o || n === C && l.point[0] > e[2]) - break; - l.left ? (c = u = i.Xc(l), - u = u !== (s = i.MP()) ? i.NM(u) : null, - c = i.next(c), - y(l, f = u ? u.key : null, n), - c && 2 === T(l, c.key, t) && (y(l, f, n), - y(l, c.key, n)), - u && 2 === T(u.key, l, t) && (y(f, (h = (h = u) !== s ? i.NM(h) : null) ? h.key : null, n), - y(l, f, n))) : (l = l.IP, - c = u = i.find(l), - u && c && (u = u !== s ? i.NM(u) : null, - c = i.next(c), - i.remove(l), - c) && u && T(u.key, c.key, t)) - } - return a - }(c, s, u, r)), h = [], l = 0; l < f.length; l++) { - var d = f[l]; - if (d.pN()) { - for (var v = [d.points], g = 0; g < d.vN.length; g++) { - var p = d.vN[g]; - v.push(f[p].points) - } - h.push(v) - } - } - return h - } - var x, o, M, S, A, w, P, C, $, l, N, k, L, O, _, U, V, E, d, j, F, R, s = { - size: { - configurable: !0 - } - }; - (x = function (t, e) { - void 0 === e && (e = !1), - this.bP = t = void 0 === t ? c : t, - this.yP = null, - this._size = 0, - this.mP = !!e - } - ).prototype.TP = function (t) { - var e = t.right; - e && (t.right = e.left, - e.left && (e.left.parent = t), - e.parent = t.parent), - t.parent ? t === t.parent.left ? t.parent.left = e : t.parent.right = e : this.yP = e, - e && (e.left = t), - t.parent = e - } - , - x.prototype.wP = function (t) { - var e = t.left; - e && (t.left = e.right, - e.right && (e.right.parent = t), - e.parent = t.parent), - t.parent ? t === t.parent.left ? t.parent.left = e : t.parent.right = e : this.yP = e, - e && (e.right = t), - t.parent = e - } - , - x.prototype.AP = function (t) { - for (; t.parent;) { - var e = t.parent; - e.parent ? e.left === t && e.parent.left === e ? (this.wP(e.parent), - this.wP(e)) : e.right === t && e.parent.right === e ? (this.TP(e.parent), - this.TP(e)) : e.left === t && e.parent.right === e ? (this.wP(e), - this.TP(e)) : (this.TP(e), - this.wP(e)) : e.left === t ? this.wP(e) : this.TP(e) - } - } - , - x.prototype.xP = function (t) { - for (var e, r, n, i; t.parent;) - (r = (e = t.parent).parent) && r.parent ? ((n = r.parent).left === r ? n.left = t : n.right = t, - t.parent = n) : (t.parent = null, - this.yP = t), - n = t.left, - i = t.right, - t === e.left ? (r && (r.left === e ? (e.right ? (r.left = e.right, - r.left.parent = r) : r.left = null, - (e.right = r).parent = e) : (n ? (r.right = n).parent = r : r.right = null, - (t.left = r).parent = t)), - i ? (e.left = i).parent = e : e.left = null, - (t.right = e).parent = t) : (r && (r.right === e ? (e.left ? (r.right = e.left, - r.right.parent = r) : r.right = null, - (e.left = r).parent = e) : (i ? (r.left = i).parent = r : r.left = null, - (t.right = r).parent = t)), - n ? (e.right = n).parent = e : e.right = null, - (t.left = e).parent = t) - } - , - x.prototype.replace = function (t, e) { - t.parent ? t === t.parent.left ? t.parent.left = e : t.parent.right = e : this.yP = e, - e && (e.parent = t.parent) - } - , - x.prototype.MP = function (t) { - if (t = void 0 === t ? this.yP : t) - for (; t.left;) - t = t.left; - return t - } - , - x.prototype.SP = function (t) { - if (t = void 0 === t ? this.yP : t) - for (; t.right;) - t = t.right; - return t - } - , - x.prototype.Xc = function (t, e) { - var r = this.yP - , n = null - , i = this.bP; - if (this.mP) - for (; r;) { - if (0 === i((n = r).key, t)) - return; - r = i(r.key, t) < 0 ? r.right : r.left - } - else - for (; r;) - r = i((n = r).key, t) < 0 ? r.right : r.left; - return r = { - key: t, - data: e, - left: null, - right: null, - parent: n - }, - n ? i(n.key, r.key) < 0 ? n.right = r : n.left = r : this.yP = r, - this.xP(r), - this._size++, - r - } - , - x.prototype.find = function (t) { - for (var e = this.yP, r = this.bP; e;) { - var n = r(e.key, t); - if (n < 0) - e = e.right; - else { - if (!(0 < n)) - return e; - e = e.left - } - } - return null - } - , - x.prototype.contains = function (t) { - for (var e = this.yP, r = this.bP; e;) { - var n = r(t, e.key); - if (0 === n) - return !0; - e = n < 0 ? e.left : e.right - } - return !1 - } - , - x.prototype.remove = function (t) { - var e; - return !!(t = this.find(t)) && (this.xP(t), - t.left ? t.right ? ((e = this.MP(t.right)).parent !== t && (this.replace(e, e.right), - e.right = t.right, - e.right.parent = e), - this.replace(t, e), - e.left = t.left, - e.left.parent = e) : this.replace(t, t.left) : this.replace(t, t.right), - this._size--, - !0) - } - , - x.prototype.removeNode = function (t) { - var e; - return !!t && (this.xP(t), - t.left ? t.right ? ((e = this.MP(t.right)).parent !== t && (this.replace(e, e.right), - e.right = t.right, - e.right.parent = e), - this.replace(t, e), - e.left = t.left, - e.left.parent = e) : this.replace(t, t.left) : this.replace(t, t.right), - this._size--, - !0) - } - , - x.prototype.$P = function (t) { - var e, r; - (t = this.find(t)) && (this.xP(t), - e = t.left, - t = t.right, - r = null, - e && (e.parent = null, - r = this.SP(e), - this.xP(r), - this.yP = r), - t && (e ? r.right = t : this.yP = t, - t.parent = r), - this._size--) - } - , - x.prototype.pop = function () { - var t = this.yP - , e = null; - if (t) { - for (; t.left;) - t = t.left; - e = { - key: t.key, - data: t.data - }, - this.remove(t.key) - } - return e - } - , - x.prototype.next = function (t) { - var e = t; - if (e) - if (e.right) - for (e = e.right; e && e.left;) - e = e.left; - else - for (e = t.parent; e && e.right === t;) - e = (t = e).parent; - return e - } - , - x.prototype.NM = function (t) { - var e = t; - if (e) - if (e.left) - for (e = e.left; e && e.right;) - e = e.right; - else - for (e = t.parent; e && e.left === t;) - e = (t = e).parent; - return e - } - , - x.prototype.forEach = function (t) { - for (var e = this.yP, r = [], n = !1, i = 0; !n;) - e ? (r.push(e), - e = e.left) : 0 < r.length ? (t(e = r.pop(), i++), - e = e.right) : n = !0; - return this - } - , - x.prototype.range = function (t, e, r, n) { - for (var i = [], a = this.bP, o = this.yP; 0 !== i.length || o;) - if (o) - i.push(o), - o = o.left; - else { - if (0 < a((o = i.pop()).key, e)) - break; - if (0 <= a(o.key, t) && r.call(n, o)) - return this; - o = o.right - } - return this - } - , - x.prototype.keys = function () { - for (var t = this.yP, e = [], r = [], n = !1; !n;) - t ? (e.push(t), - t = t.left) : 0 < e.length ? (t = e.pop(), - r.push(t.key), - t = t.right) : n = !0; - return r - } - , - x.prototype.values = function () { - for (var t = this.yP, e = [], r = [], n = !1; !n;) - t ? (e.push(t), - t = t.left) : 0 < e.length ? (t = e.pop(), - r.push(t.data), - t = t.right) : n = !0; - return r - } - , - x.prototype.at = function (t) { - for (var e = this.yP, r = [], n = !1, i = 0; !n;) - if (e) - r.push(e), - e = e.left; - else if (0 < r.length) { - if (e = r.pop(), - i === t) - return e; - i++, - e = e.right - } else - n = !0; - return null - } - , - x.prototype.load = function (t, e, r) { - if (void 0 === t && (t = []), - void 0 === e && (e = []), - void 0 === r && (r = !1), - 0 !== this._size) - throw new Error("bulk-load: tree is not empty"); - var n = t.length; - return r && function t(e, r, n, i, a) { - if (!(i <= n)) { - for (var o = e[n + i >> 1], s = n - 1, u = i + 1; ;) { - for (; a(e[++s], o) < 0;) - ; - for (; 0 < a(e[--u], o);) - ; - if (u <= s) - break; - var c = e[s]; - e[s] = e[u], - e[u] = c, - c = r[s], - r[s] = r[u], - r[u] = c - } - t(e, r, n, u, a), - t(e, r, u + 1, i, a) - } - }(t, e, 0, n - 1, this.bP), - this.yP = function t(e, r, n, i, a) { - var u, o = a - i; - return 0 < o ? ((u = { - key: u = r[o = i + Math.floor(o / 2)], - data: n[o], - parent: e - }).left = t(u, r, n, i, o), - u.right = t(u, r, n, o + 1, a), - u) : null - }(null, t, e, 0, n), - this._size = n, - this - } - , - x.prototype.min = function () { - var t = this.MP(this.yP); - return t ? t.key : null - } - , - x.prototype.max = function () { - var t = this.SP(this.yP); - return t ? t.key : null - } - , - x.prototype.isEmpty = function () { - return null === this.yP - } - , - s.size.get = function () { - return this._size - } - , - x.LP = function (t, e, r, n, i) { - return new x(r, i).load(t, e, n) - } - , - Object.defineProperties(x.prototype, s), - P = M = 1, - C = S = 2, - $ = A = 3, - s = { - EP: { - configurable: !(w = o = 0) - } - }, - (l = function (t, e, r, n, i) { - this.left = e, - this.point = t, - this.IP = r, - this._P = n, - this.type = i || o, - this.PP = !1, - this.OP = !1, - this.CP = null, - this.hN = 0, - this.lN = -1, - this.dN = -1, - this.DP = !0 - } - ).prototype.FP = function (t) { - var e = this.point - , r = this.IP.point; - return this.left ? 0 < (e[0] - t[0]) * (r[1] - t[1]) - (r[0] - t[0]) * (e[1] - t[1]) : 0 < (r[0] - t[0]) * (e[1] - t[1]) - (e[0] - t[0]) * (r[1] - t[1]) - } - , - l.prototype.RP = function (t) { - return !this.FP(t) - } - , - l.prototype.NP = function () { - return this.point[0] === this.IP.point[0] - } - , - s.EP.get = function () { - return 0 !== this.hN - } - , - l.prototype.clone = function () { - var t = new l(this.point, this.left, this.IP, this._P, this.type); - return t.UP = this.UP, - t.hN = this.hN, - t.CP = this.CP, - t.DP = this.DP, - t.PP = this.PP, - t.OP = this.OP, - t - } - , - Object.defineProperties(l.prototype, s), - N = 134217729, - k = e(4), - L = e(8), - O = e(12), - _ = e(16), - U = e(4), - (V = function () { - this.points = [], - this.vN = [], - this.gN = null, - this.depth = null - } - ).prototype.pN = function () { - return null == this.gN - } - , - (s = E = function a(t, e) { - if (!(this instanceof a)) - return new a(t, e); - if (this.data = t || [], - this.length = this.data.length, - this.compare = e || h, - 0 < this.length) - for (var r = (this.length >> 1) - 1; 0 <= r; r--) - this.zP(r) - } - ).prototype = { - push: function (t) { - this.data.push(t), - this.length++, - this.El(this.length - 1) - }, - pop: function () { - var t; - if (0 !== this.length) - return t = this.data[0], - this.length--, - 0 < this.length && (this.data[0] = this.data[this.length], - this.zP(0)), - this.data.pop(), - t - }, - GP: function () { - return this.data[0] - }, - El: function (t) { - for (var e = this.data, r = this.compare, n = e[t]; 0 < t;) { - var i = t - 1 >> 1 - , a = e[i]; - if (0 <= r(n, a)) - break; - e[t] = a, - t = i - } - e[t] = n - }, - zP: function (t) { - for (var e = this.data, r = this.compare, n = this.length >> 1, i = e[t]; t < n;) { - var a = 1 + (t << 1) - , o = a + 1 - , s = e[a]; - if (o < this.length && r(e[o], s) < 0 && (s = e[a = o]), - 0 <= r(s, i)) - break; - e[t] = s, - t = a - } - e[t] = i - } - }, - E.default = s, - d = Math.max, - j = Math.min, - F = 0, - R = [], - s = { - VP: P, - BP: C, - HP: w, - WP: $ - }, - t.ZP = function (t, e) { - return r(t, e, C) - } - , - t.qP = function (t, e) { - return r(t, e, w) - } - , - t.YP = s, - t.union = function (t, e) { - return r(t, e, P) - } - , - t.xor = function (t, e) { - return r(t, e, $) - } - , - Object.defineProperty(t, "gP", { - value: !0 - }) - }) - , martinez = unwrapExports(dist) - , Const = { - vr: Math.PI / 180, - mr: 180 / Math.PI, - yr: 6378137 - }; - function getSphericalCrs(t, e) { - var r = function (t) { - switch (t) { - case "EPSG3857": - return ProjectionManager.getProjection("EPSG:3857"); - case "EPSG4326": - return ProjectionManager.getProjection("EPSG:4326") - } - return ProjectionManager.getProjection("EPSG3857") - }(t); - return { - project: function (t) { - return Util.isArray(t) && (t = new LngLat$2(t[0], t[1])), - r.project(t.lng, t.lat) - }, - unproject: function (t) { - return Util.isArray(t) && (t = new Pixel(t[0], t[1])), - r.unproject(t.x, t.y) - }, - normalizePoint: function (t) { - return Util.parseLngLatData(t) - }, - distance: function (t, e) { - if (e = this.normalizePoint(e), - Util.isArray(e)) - return this.distanceToLine(t, e); - t = this.normalizePoint(t); - var r = Const.vr - , n = Math.cos - , i = t.lat * r - , t = t.lng * r - , a = e.lat * r - , e = e.lng * r - , r = 2 * Const.yr - , e = e - t - , t = (1 - n(a - i) + (1 - n(e)) * n(i) * n(a)) / 2; - return r * Math.asin(Math.sqrt(t)) - }, - ringArea: function (t) { - t = this.normalizeLine(t); - var e = Const.yr * Const.vr - , r = 0 - , n = t - , i = n.length; - if (i < 3) - return 0; - for (var a = 0; a < i - 1; a += 1) { - var o = n[a] - , s = n[a + 1] - , u = o.lng * e * Math.cos(o.lat * Const.vr) - , o = o.lat * e - , c = s.lng * e * Math.cos(s.lat * Const.vr); - r += u * (s.lat * e) - c * o - } - var t = n[a] - , f = n[0] - , h = t.lng * e * Math.cos(t.lat * Const.vr) - , t = t.lat * e - , l = f.lng * e * Math.cos(f.lat * Const.vr); - return r += h * (f.lat * e) - l * t, - .5 * Math.abs(r) - }, - sphericalCalotteArea: function (t) { - var e = Const.yr - , t = e - e * Math.cos(t / e); - return 2 * Math.PI * e * t - } - } - } - function getPlanarCrs() { - return { - normalizePoint: function (t) { - return t && t.x && t.y ? [t.x, t.y] : t - }, - distance: function (t, e) { - var r = t[0] - e[0] - , t = t[1] - e[1]; - return Math.sqrt(r * r + t * t) - }, - project: function (t) { - return t - }, - unproject: function (t) { - return t - }, - ringArea: function (t) { - for (var e = [0, 0], r = [0, 0], n = 0, i = t[0], a = t.length, o = 2; o < a; o++) { - var s = t[o - 1] - , u = t[o]; - e[0] = i[0] - u[0], - e[1] = i[1] - u[1], - r[0] = i[0] - s[0], - r[1] = i[1] - s[1], - n += e[0] * r[1] - e[1] * r[0] - } - return n / 2 - } - } - } - function isClockwise(t) { - for (var e = 0, r = t.length, n = 0; n < r - 1; n++) { - var i, a = t[n]; - e += ((i = t[n + 1])[0] - a[0]) * (i[1] + a[1]) - } - return t[r - 1][0] === t[0][0] && t[r - 1][1] === t[0][1] || (a = t[r - 1], - e += ((i = t[0])[0] - a[0]) * (i[1] + a[1])), - 0 < e - } - var GeometryUtilCls = function () { - function e(t) { - this.CLASS_NAME = "AMap.GeometryUtil", - this._opts = assign({ - onSegmentTolerance: 5, - crs: "EPSG3857", - maxZoom: zoomRange[1] - }, t), - this.setCrs(this._opts.crs) - } - return e.prototype.clone = function (t) { - return new e(assign({}, this._opts, t)) - } - , - e.prototype.isPoint = function (t) { - return t && (t instanceof LngLat$2 || Util.isArray(t) && !isNaN(t[0])) - } - , - e.prototype.normalizePoint = function (t) { - return t - } - , - e.prototype.normalizeLine = function (t) { - for (var e = [], r = 0, n = t.length; r < n; r++) - e.push(this.normalizePoint(t[r])); - return e - } - , - e.prototype.normalizeMultiLines = function (t) { - for (var e = [], r = 0, n = (t = Util.isArray(t) && this.isPoint(t[0]) ? [t] : t).length; r < n; r++) - e.push(this.normalizeLine(t[r])); - return e - } - , - e.prototype.setCrs = function (t) { - t = t && t.project && t.unproject ? t : "plane" === t ? getPlanarCrs() : getSphericalCrs(t, this._opts.maxZoom), - assign(this, t) - } - , - e.prototype.distance = function (t, e) { - throw new Error("distance Not implemented!") - } - , - e.prototype.xr = function (t, e) { - t = this.normalizeLine(t); - for (var r = [], n = 0, i = (t = this.isPoint(t[0]) ? t : t[0]).length; n < i; n++) - r.push(this.project(t[n])); - return !0 === e ? r = this.makesureClockwise(r) : !1 === e && (r = this.makesureClockwise(r)).reverse(), - r - } - , - e.prototype.br = function (t) { - for (var e = [], r = 0, n = t.length; r < n; r++) - e.push(this.unproject(t[r])); - return e - } - , - e.prototype.closestOnSegment = function (t, e, r) { - return t = Coordinate.closestOnSegment(this.project(t), this.xr([e, r])), - this.unproject(t) - } - , - e.prototype.closestOnLine = function (t, e) { - for (var r, n = 1 / 0, i = 0, a = (e = this.normalizeLine(e)).length; i < a - 1; i++) { - var o = this.closestOnSegment(t, e[i], e[i + 1]) - , s = this.distance(t, o); - s < n && (n = s, - r = o) - } - return r - } - , - e.prototype.distanceToSegment = function (t, e, r) { - return this.distanceToLine(t, [e, r]) - } - , - e.prototype.distanceToLine = function (t, e) { - e = this.normalizeLine(e); - for (var r = 1 / 0, n = 0, i = (e = this.isPoint(e[0]) ? e : e[0]).length; n < i - 1; n++) - var a = this.closestOnSegment(t, e[n], e[n + 1]) - , r = Math.min(r, this.distance(t, a)); - return r - } - , - e.prototype.distanceToPolygon = function (t, e) { - return this.isPointInRing(t, e) ? 0 : this.distanceToLine(t, e) - } - , - e.prototype.isPointOnSegment = function (t, e, r, n) { - return (!n && 0 !== n || n < 0) && (n = this._opts.onSegmentTolerance), - this.distanceToSegment(t, e, r) <= n - } - , - e.prototype.isPointOnLine = function (t, e, r) { - for (var n = 0, i = (e = this.normalizeLine(e)).length; n < i - 1; n++) - if (this.isPointOnSegment(t, e[n], e[n + 1], r)) - return !0; - return !1 - } - , - e.prototype.isPointOnRing = function (t, e, r) { - for (var n = 0, i = (e = this.normalizeLine(e)).length; n < i; n++) - if (this.isPointOnSegment(t, e[n], e[n === i - 1 ? 0 : n + 1], r)) - return !0; - return !1 - } - , - e.prototype.isPointOnPolygon = function (t, e, r) { - for (var n = 0, i = (e = this.normalizeMultiLines(e)).length; n < i; n++) - if (this.isPointOnRing(t, e[n], r)) - return !0; - return !1 - } - , - e.prototype.makesureClockwise = function (t) { - return isClockwise(t) || (t = [].concat(t)).reverse(), - t - } - , - e.prototype.makesureAntiClockwise = function (t) { - return isClockwise(t) && (t = [].concat(t)).reverse(), - t - } - , - e.prototype.pointInRing = function (t, e, r) { - for (var n = !1, i = 0; i < e.length && !n; i++) - if (s(t, e[i][0], r)) { - for (var a = !1, o = 1; o < e[i].length && !a;) - s(t, e[i][o], !r) && (a = !0), - o++; - a || (n = !0) - } - function s(t, e, r) { - for (var n = !1, i = 0, a = (e = e[0][0] === e[e.length - 1][0] && e[0][1] === e[e.length - 1][1] ? e.slice(0, e.length - 1) : e).length - 1; i < e.length; a = i++) { - var o = e[i][0] - , s = e[i][1] - , u = e[a][0] - , c = e[a][1]; - if (t[1] * (o - u) + s * (u - t[0]) + c * (t[0] - o) == 0 && (o - t[0]) * (u - t[0]) <= 0 && (s - t[1]) * (c - t[1]) <= 0) - return !r; - s > t[1] != c > t[1] && t[0] < (u - o) * (t[1] - s) / (c - s) + o && (n = !n) - } - return n - } - return n - } - , - e.prototype.isPointInBbox = function (t, e) { - for (var r = 1 / 0, n = 1 / 0, i = -1 / 0, a = -1 / 0, o = 0; o < e.length; o++) - var s = e[o] - , r = Math.min(r, s[0]) - , i = Math.max(i, s[0]) - , n = Math.min(n, s[1]) - , a = Math.max(a, s[1]); - return t[0] > r && t[0] < i && t[1] > n && t[1] < a - } - , - e.prototype.isPointInRing = function (t, e) { - return e = this.normalizeLine(e), - e = this.xr(e, !0), - Coordinate.ss(this.project(t), e, !1) - } - , - e.prototype.isRingInRing = function (t, e) { - for (var r = 0, n = t.length; r < n; r++) - if (!this.isPointInRing(t[r], e)) - return !1; - return !0 - } - , - e.prototype.isRingInRingByOutsea = function (t, e) { - for (var r = 0, n = t.length; r < n; r++) - if (this.isPointInRing(t[r], e)) - return !0; - for (r = 0, - n = e.length; r < n; r++) - if (this.isPointInRing(e[r], t)) - return !0; - return !1 - } - , - e.prototype.isRingInRingByMapbox = function (t, e) { - for (var r = 0, n = t.length; r < n; r++) - if (!this.isPointInRing(t[r], e)) - return !1; - return !0 - } - , - e.prototype.isRingInRingByMapboxB = function (t, e) { - for (var r = 0, n = t.length; r < n; r++) - if (this.isPointInRing(t[r], e)) - return !0; - return !1 - } - , - e.prototype.isPixelRingInRing = function (t, e) { - for (var r = 0, n = t.length; r < n; r++) - if (Coordinate.ss(t[r], e, !1)) - return !0; - return !1 - } - , - e.prototype.isPointInPolygon = function (t, e) { - for (var r, n = 0, i = (e = this.normalizeMultiLines(e)).length; n < i && (r = this.isPointInRing(t, e[n]), - r = 0 < n ? !r : r); n += 1) - ; - return Boolean(r) - } - , - e.prototype.isPointInPolygons = function (t, e) { - for (var r = 0; r < e.length; r++) { - for (var n = e[r], i = void 0, a = 0, o = (n = this.normalizeMultiLines(n)).length; a < o && (i = this.isPointInRing(t, n[a]), - i = 0 < a ? !i : i); a += 1) - ; - if (i) - return !0 - } - return !1 - } - , - e.prototype.doesSegmentsIntersect = function (t, e, r, n) { - t = (i = this.xr([t, e, r, n]))[0], - e = i[1], - r = i[2]; - var i = ((n = i[3])[0] - r[0]) * (t[1] - r[1]) - (n[1] - r[1]) * (t[0] - r[0]) - , o = (e[0] - t[0]) * (t[1] - r[1]) - (e[1] - t[1]) * (t[0] - r[0]); - return 0 != (n = (n[1] - r[1]) * (e[0] - t[0]) - (n[0] - r[0]) * (e[1] - t[1])) && (r = o / n, - 0 <= (e = i / n)) && e <= 1 && 0 <= r && r <= 1 - } - , - e.prototype.doesSegmentLineIntersect = function (t, e, r) { - for (var n = 0, i = (r = this.normalizeLine(r)).length; n < i - 1; n++) - if (this.doesSegmentsIntersect(t, e, r[n], r[n + 1])) - return !0; - return !1 - } - , - e.prototype.doesSegmentRingIntersect = function (t, e, r) { - for (var n = 0, i = (r = this.normalizeLine(r)).length; n < i; n++) - if (this.doesSegmentsIntersect(t, e, r[n], r[n === i - 1 ? 0 : n + 1])) - return !0; - return !1 - } - , - e.prototype.doesSegmentPolygonIntersect = function (t, e, r) { - for (var n = 0, i = (r = this.normalizeMultiLines(r)).length; n < i; n++) - if (this.doesSegmentRingIntersect(t, e, r[n])) - return !0; - return !1 - } - , - e.prototype.doesLineLineIntersect = function (t, e) { - for (var r = 0, n = (t = this.normalizeLine(t)).length; r < n - 1; r++) - if (this.doesSegmentLineIntersect(t[r], t[r + 1], e)) - return !0; - return !1 - } - , - e.prototype.doesLineRingIntersect = function (t, e) { - for (var r = 0, n = (t = this.normalizeLine(t)).length; r < n - 1; r++) - if (this.doesSegmentRingIntersect(t[r], t[r + 1], e)) - return !0; - return !1 - } - , - e.prototype.doesPolygonPolygonIntersect = function (t, e) { - return !!(this.doesRingRingIntersect(e, t) || this.isRingInRing(t, e) || this.isRingInRing(e, t)) - } - , - e.prototype.doesRingRingIntersect = function (t, e) { - for (var r = 0, n = (t = this.normalizeLine(t)).length; r < n; r++) - if (this.doesSegmentRingIntersect(t[r], t[r === n - 1 ? 0 : r + 1], e)) - return !0; - return !1 - } - , - e.prototype.along = function (t, e) { - for (var r = 0, n = 0; n < t.length - 1; n += 1) { - var i, a = this.distance(t[n], t[n + 1]); - if (!(a + r < e)) - return [t[n][0] + (i = (e - r) / a) * (t[n + 1][0] - t[n][0]), t[n][1] + i * (t[n + 1][1] - t[n][1]), n]; - r += a - } - return null - } - , - e.prototype.gr = function (t, e) { - for (var a, r = function (t) { - return (c[0] - o[0]) * (t[1] - o[1]) > (c[1] - o[1]) * (t[0] - o[0]) - }, n = function () { - var t = [o[0] - c[0], o[1] - c[1]] - , e = [h[0] - a[0], h[1] - a[1]] - , r = o[0] * c[1] - o[1] * c[0] - , n = h[0] * a[1] - h[1] * a[0] - , i = 1 / (t[0] * e[1] - t[1] * e[0]); - return [(r * e[0] - n * t[0]) * i, (r * e[1] - n * t[1]) * i] - }, i = t = this.makesureAntiClockwise(t), o = (e = this.makesureClockwise(e))[e.length - 1], s = 0, u = e.length; s < u; s++) { - for (var c = e[s], f = i, i = [], h = f[f.length - 1], l = 0, d = f.length; l < d; l++) - r(a = f[l]) ? (r(h) || i.push(n()), - i.push(a)) : r(h) && i.push(n()), - h = a; - o = c - } - return i - } - , - e.prototype.ringRingClip = function (t, e) { - return t = this.xr(t), - e = this.xr(e), - isEqual(t[0], t[t.length - 1]) || t.push(t[0].slice()), - isEqual(e[0], e[e.length - 1]) || e.push(e[0].slice()), - (t = martinez.qP([t], [e])) && t[0] && t[0][0] ? this.br(t[0][0]) : [] - } - , - e.prototype.ringArea = function (t) { - throw new Error("distance Not implemented!") - } - , - e.prototype.distanceOfLine = function (t) { - for (var e = 0, r = 0, n = (t = this.normalizeLine(t)).length; r < n - 1; r++) - e += this.distance(t[r], t[r + 1]); - return e - } - , - e.prototype.isClockwise = function (t) { - return isClockwise(t = this.xr(t)) - } - , - e.prototype.typePolygon = function (t) { - return isArray(t) && isArray(t[0]) ? 2 === t[0][0].length || t[0][0] instanceof LngLat$2 ? "Polygon" : 2 < t[0][0].length && (2 === t[0][0][0].length || t[0][0][0] instanceof LngLat$2) ? "MultiPolygon" : "never" : "never" - } - , - e - }() - , GeometryUtilInstance = new GeometryUtilCls({}) - , PlaneGeometryUtilInstance = new GeometryUtilCls({}) - , GeometryUtil = (PlaneGeometryUtilInstance.setCrs("plane"), - { - distance: GeometryUtilInstance.distance.bind(GeometryUtilInstance), - ringArea: GeometryUtilInstance.ringArea.bind(GeometryUtilInstance), - isClockwise: GeometryUtilInstance.isClockwise.bind(GeometryUtilInstance), - typePolygon: GeometryUtilInstance.typePolygon.bind(GeometryUtilInstance), - makesureClockwise: GeometryUtilInstance.makesureClockwise.bind(GeometryUtilInstance), - makesureAntiClockwise: GeometryUtilInstance.makesureAntiClockwise.bind(GeometryUtilInstance), - distanceOfLine: GeometryUtilInstance.distanceOfLine.bind(GeometryUtilInstance), - ringRingClip: GeometryUtilInstance.ringRingClip.bind(GeometryUtilInstance), - doesSegmentsIntersect: GeometryUtilInstance.doesSegmentsIntersect.bind(GeometryUtilInstance), - doesSegmentLineIntersect: GeometryUtilInstance.doesSegmentLineIntersect.bind(GeometryUtilInstance), - doesSegmentRingIntersect: GeometryUtilInstance.doesSegmentRingIntersect.bind(GeometryUtilInstance), - doesSegmentPolygonIntersect: GeometryUtilInstance.doesSegmentPolygonIntersect.bind(GeometryUtilInstance), - doesLineLineIntersect: GeometryUtilInstance.doesLineLineIntersect.bind(GeometryUtilInstance), - doesLineRingIntersect: GeometryUtilInstance.doesLineRingIntersect.bind(GeometryUtilInstance), - doesRingRingIntersect: GeometryUtilInstance.doesRingRingIntersect.bind(GeometryUtilInstance), - pointInRing: GeometryUtilInstance.pointInRing.bind(GeometryUtilInstance), - isPointInRing: GeometryUtilInstance.isPointInRing.bind(GeometryUtilInstance), - isPointInBbox: GeometryUtilInstance.isPointInBbox.bind(GeometryUtilInstance), - isRingInRing: GeometryUtilInstance.isRingInRing.bind(GeometryUtilInstance), - isPointInPolygon: GeometryUtilInstance.isPointInPolygon.bind(GeometryUtilInstance), - isPointInPolygons: GeometryUtilInstance.isPointInPolygons.bind(GeometryUtilInstance), - isPointOnSegment: GeometryUtilInstance.isPointOnSegment.bind(GeometryUtilInstance), - isPointOnLine: GeometryUtilInstance.isPointOnLine.bind(GeometryUtilInstance), - isPointOnRing: GeometryUtilInstance.isPointOnRing.bind(GeometryUtilInstance), - isPointOnPolygon: GeometryUtilInstance.isPointOnPolygon.bind(GeometryUtilInstance), - closestOnSegment: GeometryUtilInstance.closestOnSegment.bind(GeometryUtilInstance), - closestOnLine: GeometryUtilInstance.closestOnLine.bind(GeometryUtilInstance), - distanceToSegment: GeometryUtilInstance.distanceToSegment.bind(GeometryUtilInstance), - distanceToLine: GeometryUtilInstance.distanceToLine.bind(GeometryUtilInstance) - }) - , PlaneGeometryUtil = { - distance: PlaneGeometryUtilInstance.distance.bind(PlaneGeometryUtilInstance), - ringArea: PlaneGeometryUtilInstance.ringArea.bind(PlaneGeometryUtilInstance), - isClockwise: PlaneGeometryUtilInstance.isClockwise.bind(PlaneGeometryUtilInstance), - typePolygon: PlaneGeometryUtilInstance.typePolygon.bind(PlaneGeometryUtilInstance), - makesureClockwise: PlaneGeometryUtilInstance.makesureClockwise.bind(PlaneGeometryUtilInstance), - makesureAntiClockwise: PlaneGeometryUtilInstance.makesureAntiClockwise.bind(PlaneGeometryUtilInstance), - distanceOfLine: PlaneGeometryUtilInstance.distanceOfLine.bind(PlaneGeometryUtilInstance), - ringRingClip: PlaneGeometryUtilInstance.ringRingClip.bind(PlaneGeometryUtilInstance), - doesSegmentsIntersect: PlaneGeometryUtilInstance.doesSegmentsIntersect.bind(PlaneGeometryUtilInstance), - doesSegmentLineIntersect: PlaneGeometryUtilInstance.doesSegmentLineIntersect.bind(PlaneGeometryUtilInstance), - doesSegmentRingIntersect: PlaneGeometryUtilInstance.doesSegmentRingIntersect.bind(PlaneGeometryUtilInstance), - doesSegmentPolygonIntersect: PlaneGeometryUtilInstance.doesSegmentPolygonIntersect.bind(PlaneGeometryUtilInstance), - doesLineLineIntersect: PlaneGeometryUtilInstance.doesLineLineIntersect.bind(PlaneGeometryUtilInstance), - doesLineRingIntersect: PlaneGeometryUtilInstance.doesLineRingIntersect.bind(PlaneGeometryUtilInstance), - doesRingRingIntersect: PlaneGeometryUtilInstance.doesRingRingIntersect.bind(PlaneGeometryUtilInstance), - pointInRing: PlaneGeometryUtilInstance.pointInRing.bind(PlaneGeometryUtilInstance), - isPointInRing: PlaneGeometryUtilInstance.isPointInRing.bind(PlaneGeometryUtilInstance), - isPointInBbox: PlaneGeometryUtilInstance.isPointInBbox.bind(PlaneGeometryUtilInstance), - isRingInRing: PlaneGeometryUtilInstance.isRingInRing.bind(PlaneGeometryUtilInstance), - isPointInPolygon: PlaneGeometryUtilInstance.isPointInPolygon.bind(PlaneGeometryUtilInstance), - isPointInPolygons: PlaneGeometryUtilInstance.isPointInPolygons.bind(PlaneGeometryUtilInstance), - isPointOnSegment: PlaneGeometryUtilInstance.isPointOnSegment.bind(PlaneGeometryUtilInstance), - isPointOnLine: PlaneGeometryUtilInstance.isPointOnLine.bind(PlaneGeometryUtilInstance), - isPointOnRing: PlaneGeometryUtilInstance.isPointOnRing.bind(PlaneGeometryUtilInstance), - isPointOnPolygon: PlaneGeometryUtilInstance.isPointOnPolygon.bind(PlaneGeometryUtilInstance), - closestOnSegment: PlaneGeometryUtilInstance.closestOnSegment.bind(PlaneGeometryUtilInstance), - closestOnLine: PlaneGeometryUtilInstance.closestOnLine.bind(PlaneGeometryUtilInstance), - distanceToSegment: PlaneGeometryUtilInstance.distanceToSegment.bind(PlaneGeometryUtilInstance), - distanceToLine: PlaneGeometryUtilInstance.distanceToLine.bind(PlaneGeometryUtilInstance) - } - , LngLat$2 = function () { - function r(t, e, r) { - if (void 0 === r && (r = !1), - this.className = "AMap.LngLat", - isNumberArray(t) ? (t = parseFloat(t[0]), - e = parseFloat(t[1])) : (e = parseFloat(e), - t = parseFloat(t)), - isNaN(t) || isNaN(e)) - throw Error("Invalid Object: LngLat(" + t + ", " + e + ")"); - !0 !== r && (e = Math.max(Math.min(e, 90), -90), - t = (t + 180) % 360 + (t < -180 || 180 === t ? 180 : -180)), - this.kT = e, - this.KL = t, - this.lng = Math.round(1e6 * t) / 1e6, - this.lat = Math.round(1e6 * e) / 1e6, - this.pos = ProjectionManager.getProjection("EPSG:3857").project(t, e) - } - return r.from = function (t) { - return isLngLat(t) ? new r(t.KL, t.kT) : new r(t[0], t[1]) - } - , - r.prototype.setLng = function (t) { - return this.KL = t, - this.lng = Math.round(1e6 * t) / 1e6, - this - } - , - r.prototype.setLat = function (t) { - return this.kT = t, - this.lat = Math.round(1e6 * t) / 1e6, - this - } - , - r.prototype.getLng = function () { - return this.lng - } - , - r.prototype.getLat = function () { - return this.lat - } - , - r.prototype.equals = function (t) { - return (t = parseLngLatData(t)) instanceof r && Math.max(Math.abs(this.kT - t.kT), Math.abs(this.KL - t.KL)) <= 1e-9 - } - , - r.prototype.add = function (t, e) { - return new r(this.KL + t.KL, this.kT + t.kT, e) - } - , - r.prototype.subtract = function (t, e) { - return new r(this.KL - t.KL, this.kT - t.kT, e) - } - , - r.prototype.divideBy = function (t, e) { - return new r(this.KL / t, this.kT / t, e) - } - , - r.prototype.multiplyBy = function (t, e) { - return new r(this.KL * t, this.kT * t, e) - } - , - r.prototype.offset = function (t, e) { - if (isNaN(t) || isNaN(e)) - throw Error("valid offset args, require number"); - return t = 2 * Math.asin(Math.sin(Math.round(t) / 12756274) / Math.cos(this.kT * Math.PI / 180)), - t = this.KL + 180 * t / Math.PI, - e = 2 * Math.asin(Math.round(e) / 12756274), - new r(t, this.kT + 180 * e / Math.PI) - } - , - r.prototype.toString = function () { - return this.lng + "," + this.lat - } - , - r.prototype.toArray = function () { - return [this.lng, this.lat] - } - , - r.prototype.toJSON = function () { - return [this.lng, this.lat] - } - , - r.prototype.distanceTo = function (t) { - return GeometryUtil.distance(this, t) - } - , - r.prototype.distance = function (t) { - return GeometryUtil.distance(this, t) - } - , - r - }() - , Size = function () { - function t(t, e, r) { - if (void 0 === r && (r = !1), - this.className = "AMap.Size", - isNaN(t) || isNaN(e)) - throw new Error("Invalid Object: Pixel(" + t + ", " + e + ")"); - this.width = r ? Math.round(t) : Number(t), - this.height = r ? Math.round(e) : Number(e) - } - return t.prototype.getWidth = function () { - return this.width - } - , - t.prototype.getHeight = function () { - return this.height - } - , - t.prototype.toString = function () { - return this.width + "," + this.height - } - , - t.prototype.toArray = function () { - return [this.width, this.height] - } - , - t - }() - , easing = function () { - var o = {} - , s = "function" == typeof Float32Array; - function n(t, e) { - return 1 - 3 * e + 3 * t - } - function w(t, e, r) { - return ((n(e, r) * t + (3 * r - 6 * e)) * t + 3 * e) * t - } - function P(t, e, r) { - return 3 * n(e, r) * t * t + 2 * (3 * r - 6 * e) * t + 3 * e - } - function u(t) { - return t - } - return function (b, e, T, r) { - if (!(0 <= b && b <= 1 && 0 <= T && T <= 1)) - throw new Error("bezier x values must be in [0, 1] range"); - var t = arguments.toString(); - if (o[t]) - return o[t]; - if (b === e && T === r) - return u; - for (var x = new (s ? Float32Array : Array)(11), n = 0; n < 11; ++n) - x[n] = w(.1 * n, b, T); - return o[t] = function (t) { - return 0 === t ? 0 : 1 === t ? 1 : w(function (t) { - for (var e = 0, r = 1; 10 !== r && x[r] <= t; ++r) - e += .1; - var n = e + (t - x[--r]) / (x[r + 1] - x[r]) * .1 - , i = P(n, b, T); - if (.001 <= i) { - for (var a = t, o = n, s = b, u = T, c = 0; c < 4; ++c) { - var f = P(o, s, u); - if (0 === f) - return o; - o -= (w(o, s, u) - a) / f - } - return o - } - if (0 === i) - return n; - for (var h, l, d = t, v = e, g = e + .1, p = b, y = T, m = 0; 0 < (h = w(l = v + (g - v) / 2, p, y) - d) ? g = l : v = l, - 1e-7 < Math.abs(h) && ++m < 10;) - ; - return l - }(t), e, r) - } - } - }(); - function getQuadBezierValue(t, e, r, n) { - var i; - return 1 <= t ? n : (i = 1 - t) * i * e + 2 * i * t * r + t * t * n - } - function cubic(t, e, r, n, i) { - var a, o, s, u; - return 1 <= t ? i : (a = 3 * (r.pos[0] - e.pos[0]), - o = 3 * (n.pos[0] - r.pos[0]) - a, - u = i.pos[0] - e.pos[0] - a - o, - s = 3 * (r.pos[1] - e.pos[1]), - n = 3 * (n.pos[1] - r.pos[1]) - s, - r = i.pos[1] - e.pos[1] - s - n, - i = u * Math.pow(t, 3) + o * Math.pow(t, 2) + a * t + e.pos[0], - u = r * Math.pow(t, 3) + n * Math.pow(t, 2) + s * t + e.pos[1], - ProjectionManager.getProjection("EPSG:3857").unproject(i, u)) - } - function quad(t, e, r, n) { - return ProjectionManager.getProjection("EPSG:3857").unproject(getQuadBezierValue(t, e.pos[0], r.pos[0], n.pos[0]), getQuadBezierValue(t, e.pos[1], r.pos[1], n.pos[1])) - } - function p20CoordsToLngLat(t, e) { - return Array.isArray(e) && (e = new Pixel(e[0], e[1])), - t.containerTolnglat(e, 20) - } - function getSplitNum(t, e) { - for (var n = [3, 300], r = Math.max(2, 4), i = 0, a = 0, o = 0, s = t.length; o < s - 1; o++) { - var u = t[o] - , c = t[o + 1]; - i += Math.abs(c.pos[0] - u.pos[0]), - a += Math.abs(c.pos[1] - u.pos[1]) - } - return Math.min(n[1], Math.max(n[0], Math.round(Math.max(i, a) / e / r))) - } - function interpolateCoords(t, e) { - var r = null; - switch (e.length) { - case 3: - r = quad; - break; - case 4: - r = cubic; - break; - default: - return null - } - for (var n = [], i = [0].concat(e), a = 1; a < t - 2; a++) - i[0] = a / t, - n.push(r.apply(null, i)); - return n.push(e[e.length - 1]), - n - } - function getCoordsWithControlPoints(t, e, r, n) { - var i = null; - return t && r && r.length && ((t = [t]).push.apply(t, r), - t.push(e), - i = interpolateCoords(getSplitNum(t, n), t)), - i || [e] - } - var BezierUtil = { - ag: quad, - ug: cubic, - sg: easing, - xb: function (t, e) { - for (var r = [], n = 0, i = t.length; n < i; n += 1) - r.push.apply(r, getCoordsWithControlPoints(t[n - 1], t[n], t[n].controlPoints, e)); - return r - }, - fg: function (t, e, r, n) { - for (var i = this.xb(t, e, r, n), a = [], o = 0, s = i.length; o < s; o++) - a.push(p20CoordsToLngLat(e, i[o])); - return a - } - } - , globalInstance = self - , TagMap = (function (t) { - t.LITE = "lite", - t.LEFT = "left", - t.ALL = "all", - t.NONE = "" - }(exports.zB || (exports.zB = {})), - { - 2: "all", - 3: "all", - 4: "all", - 5: "all", - 6: "lite", - 7: "all", - 8: "lite", - 9: "all", - 10: "lite", - 11: "lite", - 12: "all", - 13: "all", - 14: "all", - 15: "lite", - 16: "lite", - 17: "all", - 18: "all", - 19: "all", - 20: "all" - }) - , colorNameDist = { - aliceblue: "#f0f8ff", - antiquewhite: "#faebd7", - aqua: "#00ffff", - aquamarine: "#7fffd4", - azure: "#f0ffff", - beige: "#f5f5dc", - bisque: "#ffe4c4", - black: "#000000", - blanchedalmond: "#ffebcd", - blue: "#0000ff", - blueviolet: "#8a2be2", - brown: "#a52a2a", - burlywood: "#deb887", - cadetblue: "#5f9ea0", - chartreuse: "#7fff00", - chocolate: "#d2691e", - coral: "#ff7f50", - cornflowerblue: "#6495ed", - cornsilk: "#fff8dc", - crimson: "#dc143c", - cyan: "#00ffff", - darkblue: "#00008b", - darkcyan: "#008b8b", - darkgoldenrod: "#b8860b", - darkgray: "#a9a9a9", - darkgreen: "#006400", - darkkhaki: "#bdb76b", - darkmagenta: "#8b008b", - darkolivegreen: "#556b2f", - darkorange: "#ff8c00", - darkorchid: "#9932cc", - darkred: "#8b0000", - darksalmon: "#e9967a", - darkseagreen: "#8fbc8f", - darkslateblue: "#483d8b", - darkslategray: "#2f4f4f", - darkturquoise: "#00ced1", - darkviolet: "#9400d3", - deeppink: "#ff1493", - deepskyblue: "#00bfff", - dimgray: "#696969", - dodgerblue: "#1e90ff", - firebrick: "#b22222", - floralwhite: "#fffaf0", - forestgreen: "#228b22", - fuchsia: "#ff00ff", - gainsboro: "#dcdcdc", - ghostwhite: "#f8f8ff", - gold: "#ffd700", - goldenrod: "#daa520", - grey: "#808080", - gray: "#808080", - green: "#008000", - greenyellow: "#adff2f", - honeydew: "#f0fff0", - hotpink: "#ff69b4", - indianred: "#cd5c5c", - indigo: "#4b0082", - ivory: "#fffff0", - khaki: "#f0e68c", - lavender: "#e6e6fa", - lavenderblush: "#fff0f5", - lawngreen: "#7cfc00", - lemonchiffon: "#fffacd", - lightblue: "#add8e6", - lightcoral: "#f08080", - lightcyan: "#e0ffff", - lightgoldenrodyellow: "#fafad2", - lightgrey: "#d3d3d3", - lightgreen: "#90ee90", - lightpink: "#ffb6c1", - lightsalmon: "#ffa07a", - lightseagreen: "#20b2aa", - lightskyblue: "#87cefa", - lightslategray: "#778899", - lightsteelblue: "#b0c4de", - lightyellow: "#ffffe0", - lime: "#00ff00", - limegreen: "#32cd32", - linen: "#faf0e6", - magenta: "#ff00ff", - maroon: "#800000", - mediumaquamarine: "#66cdaa", - mediumblue: "#0000cd", - mediumorchid: "#ba55d3", - mediumpurple: "#9370d8", - mediumseagreen: "#3cb371", - mediumslateblue: "#7b68ee", - mediumspringgreen: "#00fa9a", - mediumturquoise: "#48d1cc", - mediumvioletred: "#c71585", - midnightblue: "#191970", - mintcream: "#f5fffa", - mistyrose: "#ffe4e1", - moccasin: "#ffe4b5", - navajowhite: "#ffdead", - navy: "#000080", - oldlace: "#fdf5e6", - olive: "#808000", - olivedrab: "#6b8e23", - orange: "#ffa500", - orangered: "#ff4500", - orchid: "#da70d6", - palegoldenrod: "#eee8aa", - palegreen: "#98fb98", - paleturquoise: "#afeeee", - palevioletred: "#d87093", - papayawhip: "#ffefd5", - peachpuff: "#ffdab9", - peru: "#cd853f", - pink: "#ffc0cb", - plum: "#dda0dd", - powderblue: "#b0e0e6", - purple: "#800080", - rebeccapurple: "#663399", - red: "#ff0000", - rosybrown: "#bc8f8f", - royalblue: "#4169e1", - saddlebrown: "#8b4513", - salmon: "#fa8072", - sandybrown: "#f4a460", - seagreen: "#2e8b57", - seashell: "#fff5ee", - sienna: "#a0522d", - silver: "#c0c0c0", - skyblue: "#87ceeb", - slateblue: "#6a5acd", - slategray: "#708090", - snow: "#fffafa", - springgreen: "#00ff7f", - steelblue: "#4682b4", - tan: "#d2b48c", - teal: "#008080", - thistle: "#d8bfd8", - tomato: "#ff6347", - turquoise: "#40e0d0", - violet: "#ee82ee", - wheat: "#f5deb3", - white: "#ffffff", - whitesmoke: "#f5f5f5", - yellow: "#ffff00", - yellowgreen: "#9acd32" - } - , Util = function () { - var n, o, e, r, i, a, s, u, c, f, t = { - CLASS_NAME: "AMap.Util", - WorldAxesCenter: { - x: 0, - y: 0 - }, - Single: {}, - stamp: (e = !0 === Browser.DW, - r = 1e5, - i = "_amap_id", - function (t) { - return t[i] = e ? ++r : --r, - t[i] - } - ), - singlton: function (t) { - return v.Single[t] || new t - }, - getOptimalZoom: function (t) { - return t < Math.floor(t) + .8 ? Math.floor(t) : Math.ceil(t) - }, - join: function (t, e) { - if (t.join) - return t.join(e); - var r, n = []; - for (r in t) - t.hasOwnProperty(r) && n.push(r + "=" + (t[r] || "")); - return n.join(e) - }, - getGuid: function (t, e) { - return void 0 === e && (e = 10), - (t || "") + Math.round(Math.random() * Math.pow(10, e)) + "_" + (new Date).getTime() - }, - uuid: (o = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), - function (t, e) { - var r, a, n = o, i = []; - if (e = (e = void 0 === e ? 62 : e) || n.length, - t = void 0 === t ? 0 : t) - for (r = 0; r < t; r++) - i[r] = n[0 | Math.random() * e]; - else - for (i[8] = i[13] = i[18] = i[23] = "-", - i[14] = "4", - r = 0; r < 36; r++) - i[r] || (a = 0 | 16 * Math.random(), - i[r] = n[19 === r ? 3 & a | 8 : a]); - return i.join("") - } - ), - endsWith: function (t, e) { - return t.endsWith ? t.endsWith(e) : !(t.length < e.length) && t.substr(t.length - e.length) === e - }, - mg: [], - gg: 268435456, - wg: [215440491, 106744817], - Mg: { - start: function (e) { - e.startTime = new Date, - e.jg = []; - var n = (new Date).getTime(); - e.id = v.requestAnimFrame(function r() { - var t = (new Date).getTime(); - e.jg.push(t - n), - n = t, - e.id = v.requestAnimFrame(r) - }) - }, - cancel: function (t) { - t.id && v.cancelAnimFrame(t.id) - }, - stop: function (t) { - t.Ag = Date.now() - t.startTime, - this.cancel(t), - t.Mg = Math.round(1e3 / (t.Ag / (t.jg.length + 1))) - } - }, - kg: function (t, e, r, n, i) { - if (void 0 === i && (i = !1), - t === e) - return e; - switch (n = void 0 === n ? "linear" : n) { - case "ease": - r = BezierUtil.sg(.25, .1, .25, 1)(r); - break; - case "ease-in": - r = BezierUtil.sg(.42, 0, 1, 1)(r); - break; - case "ease-out": - r = BezierUtil.sg(0, 0, .58, 1)(r); - break; - case "ease-in-out": - r = BezierUtil.sg(.42, 0, .58, 1)(r) - } - return n = t + (e - t) * r, - i && (n >>= 0), - n - }, - createObjectURL: function (t, e) { - void 0 === e && (e = "text/javascript; charset=utf-8"); - var r = null; - try { - r = (globalInstance.URL || globalInstance.webkitURL).createObjectURL(new Blob([t], { - type: e - })) - } catch (t) { - r = null - } - return r - }, - revokeObjectURL: function (t) { - try { - (globalInstance.URL || globalInstance.webkitURL).revokeObjectURL(t) - } catch (t) { } - }, - Og: function (t) { - for (var e = {}, r = 0, n = t.length; r < n; r++) - e[t[r]] = r; - return e - }, - EV: function (t, e) { - var r = 180 / (e = Math.pow(2, e)); - return [Math.floor(t[0] / (360 / e)) + e / 2, e / 2 - Math.ceil(t[1] / r)] - }, - WY: function (t, e, r) { - void 0 === r && (r = !1); - var n = [t[0], t[3]] - , t = [t[2], t[1]] - , n = this.EV(n, e) - , t = this.EV(t, e) - , i = n[0] - , a = n[1] - , o = t[0] - , s = t[1]; - if (r) - return { - ja: i, - Fa: a, - Oa: o, - Ea: s, - z: e - }; - this.Pa = { - ja: i, - Fa: a, - Oa: o, - Ea: s, - z: e - }; - for (var u = [], c = i; c <= o; c += 1) - for (var f = a; f <= s; f += 1) - u.push([e, c, f]); - return u - }, - xg: function (t) { - var e = {}; - if (v.is(t, "object")) - for (var r in t) - t.hasOwnProperty(r) && (e[t[r]] = r); - return e - }, - Ig: function (t, e) { - if (e.length < 5e4) - t.push.apply(t, e); - else - for (var r = 0, n = e.length; r < n; r += 1) - t.push(e[r]) - }, - clone: function (t) { - if ("object" != typeof t || null === t) - return t; - if (t.Tg || this.is(t, "Float32Array") || this.is(t, "Uint16Array")) - return t; - var e, r = this.isArray(t) ? [] : {}; - for (e in t) - t.hasOwnProperty(e) && (r[e] = v.clone(t[e])); - return r - }, - isInteger: function (t) { - return (0 | t) === t - }, - vB: function (t) { - return !isNaN(t) - }, - setPrototypeOf: "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : function (t, e) { - for (var r in e) - t[r] = e[r] - } - , - isFunction: function (t) { - return "function" == typeof t - }, - _g: function (t, e) { - if (void 0 === e && (e = "webgl"), - !t) - return t; - for (var r = [], n = 0, i = t.length; n < i; n += 2) { - var a = parseInt(t.substr(n, 2), 16); - ("webgl" === e || "rgba" === e && 0 === n) && (a = this.format(a / 255, 3)), - r.push(a) - } - return r.push(r.shift()), - r - }, - Sg: function () { }, - keys: "function" == typeof Object.keys ? Object.keys : function (t) { - var e, r = []; - for (e in t) - t.hasOwnProperty(e) && r.push(e); - return r - } - , - map: function (r, n, i) { - void 0 === i && (i = null); - var a = []; - return r && r.length ? (v.Cg(r, function () { - for (var t = [], e = 0; e < arguments.length; e++) - t[e] = arguments[e]; - a[t[1]] = n.apply(i || r, t) - }), - a) : r - }, - forEach: function (t, e) { - if (t && t.length) { - var r = t.length; - if (0 < r && (e(t[0], 0), - 1 < r)) { - e(t[1], 1); - for (var n = 2; n < r; n++) - e(t[n], n) - } - } - }, - Cg: function (t, e, r) { - if (void 0 === r && (r = null), - t && t.length) - for (var n = 0, i = t.length; n < i && !1 !== e.call(r, t[n], n, t); n++) - ; - }, - find: function (t, e, r) { - void 0 === r && (r = null); - for (var n = 0, i = t.length; n < i; n++) - if ("function" == typeof e) { - if (e.call(r, t[n], n, t)) - return t[n] - } else if (t[n] === e) - return t[n]; - return null - }, - isDOM: function (t) { - return "object" == typeof HTMLElement ? t instanceof HTMLElement : t && "object" == typeof t && 1 === t.nodeType && "string" == typeof t.nodeName - }, - Eg: function (t, e) { - for (var r, n, i = "ASDFGHJKLQWERTYUIO!sdfghjkleiu3~yr5-P&mq9`%zCN*b=8@^xpVM", a = "v5" < (e = e || "v5") ? (r = i.length, - 512) : (i = i.substr(0, r = 27), - 333), o = [], s = NaN, u = 0, c = t.length; u < c; u++) - n = t[u], - n = i.indexOf(n), - s = isNaN(s) ? n * r : (o.push(s + n - a), - NaN); - return o - }, - Ng: function (t, e) { - for (var r = 512 < e.length ? Math.round(Math.pow(e.length, .5)) : e.length, n = Math.ceil(e.length / r), i = 0; i < n; i += 1) { - var a = r * i - , o = a + r; - o > e.length && (o = e.length); - for (var s = a; s < o; s += 1) - t(e[s]) - } - }, - Lg: function (t) { - var e; - return /^rgba\(/.test(t) ? this.Dg(t) : ("#" === (e = t = this.colorNameToHex(t))[0] && (3 === (t = t.substring(1)).length && (t = t.replace(/./g, function (t) { - return t + t - })), - e = this.argbHex2Rgba(8 === t.length ? t : "ff" + t)), - this.Dg(e)) - }, - colorNameToHex: function (t) { - return "string" == typeof (t = (t = void 0 === t ? "" : t).toLowerCase()) && colorNameDist[t] || t - }, - Rg: function (t, e, r) { - var n = Math.floor(r / 2) - , i = r - n; - return [r, t & (n = (1 << n) - 1 << i) | e & (i = (1 << i) - 1), e & n | t & i] - }, - Pg: function (t) { - return t ? encodeURIComponent(t) : "" - }, - getStyle: function (t, e, r, n) { - var i = t[e].i[r]; - if (void 0 === i) - return null; - if (r = t[e].s, - "number" == typeof i) - return r[i]; - for (; void 0 === i[n.toString()] && !(--n < 3);) - ; - return "number" == typeof (t = i[n.toString()]) ? r[t] : null - }, - Dg: function (t) { - return (t = t.split(","))[0] = parseFloat(t[0].split("rgba(")[1]) / 255, - t[1] = parseFloat(t[1]) / 255, - t[2] = parseFloat(t[2]) / 255, - t[3] = parseFloat(t[3]), - t - }, - Ug: function (t) { - return (t = t.split(","))[0] = parseFloat(t[0].split("rgb(")[1]) / 255, - t[1] = parseFloat(t[1]) / 255, - t[2] = parseFloat(t[2]) / 255, - t - }, - Bg: function (t) { - return "rgba(" + 255 * t[0] + "," + 255 * t[1] + "," + 255 * t[2] + "," + t[3] + ")" - }, - color2Rgba: function (t) { - return this.Bg(this.color2RgbaArray(t)) - }, - color2RgbaArray: function (t) { - var e, r, n, i, a, o, s; - return t instanceof Array ? (3 == t.length && t.push(1), - t) : 0 == (e = this.colorNameToHex(t)).indexOf("rgb(") ? ((r = this.Ug(e)).push(1), - r) : 0 == e.indexOf("rgba(") ? this.Dg(e) : 0 == e.indexOf("#") ? 4 === e.length ? (s = e.substr(1).replace(/./g, function (t) { - return t + t - }), - this.zg(s)) : 7 == e.length ? this.zg(e.substr(1)) : 9 == e.length ? (r = e.substr(1), - this.qg(r)) : void 0 : 0 === e.indexOf("hsla") ? (n = t.substr(5).split(","), - i = parseInt(n[0], 10) / 360, - a = parseInt(n[1], 10) / 100, - o = parseInt(n[2], 10) / 100, - r = parseFloat(n[3]), - this.GQ(i, a, o, r)) : 0 === e.indexOf("hsl") ? (n = t.substr(4).split(","), - i = parseInt(n[0], 10) / 360, - a = parseInt(n[1], 10) / 100, - o = parseInt(n[2], 10) / 100, - this.GQ(i, a, o, 1)) : 3 === e.length ? (s = e.replace(/./g, function (t) { - return t + t - }), - this.zg(s)) : 6 == e.length ? this.zg(e) : 8 == e.length ? this.qg(e) : void 0 - }, - GQ: function (t, e, r, n) { - var i, a, o; - return 0 === e ? i = a = o = r : (i = this.uQ(e = 2 * r - (r = r < .5 ? r * (1 + e) : r + e - r * e), r, t + 1 / 3), - a = this.uQ(e, r, t), - o = this.uQ(e, r, t - 1 / 3)), - [i, a, o, n] - }, - uQ: function (t, e, r) { - return r < 0 && (r += 1), - 1 < r && --r, - r < 1 / 6 ? t + 6 * (e - t) * r : r < .5 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t - }, - rgbHex2Rgba: function (t) { - return t.startsWith("#") && (t = t.slice(1)), - v.argbHex2Rgba("ff" + t) - }, - argbHex2Rgba: function (t) { - for (var e = [], r = 0, n = (t = t.startsWith("#") ? t.slice(1) : t).length; r < n; r += 2) - e.push(parseInt(t.substr(r, 2), 16)); - return e.push((e.shift() / 255).toFixed(2)), - "rgba(" + e.join(",") + ")" - }, - Opacity2Rgba: function (t, e) { - var r = e; - return e && e[3] && t && (e[3] = Math.floor(255 * t)), - r - }, - Hex2Rgba: function (t) { - if ("string" != typeof t) - return !1; - for (var e = [], r = 0, n = t.length; r < n; r += 2) - e.push(parseInt(t.substr(r, 2), 16)); - return e.push(parseInt(e.shift())), - e - }, - zg: function (t) { - return this.uE(t + "ff") - }, - qg: function (t) { - for (var e = [], r = 0, n = t.length; r < n; r += 2) - e.push(parseInt(t.substr(r, 2), 16) / 255); - return e.push(e.shift()), - e - }, - uE: function (t) { - return [((t = parseInt(t, 16)) >> 24 & 255) / 255, (t >> 16 & 255) / 255, (t >> 8 & 255) / 255, (255 & t) / 255] - }, - isEmpty: function (t) { - for (var e in t) - if (t.hasOwnProperty(e)) - return !1; - return !0 - }, - Wg: function (t, e) { - return 0 <= e && t.splice(e, 1), - t - }, - startsWith: function (t, e) { - return t.startsWith ? t.startsWith(e) : t.substr(0, e.length) === e - }, - deleteItemFromArray: function (t, e) { - return e = v.indexOf(t, e), - v.Wg(t, e) - }, - deleteItemFromArrayByIndex: function (t, e) { - return v.Wg(t, e) - }, - filter: function (t, r, n) { - var i = []; - return v.Cg(t, function (t, e) { - r.call(n, t, e) && i.push(t) - }), - i - }, - indexOf: function (t, e) { - if (t && t.length) { - if (t.indexOf) - return t.indexOf(e); - for (var r = 0; r < t.length; r += 1) - if (t[r] === e) - return r - } - return -1 - }, - Gg: function (t, e) { - return t.endsWith ? t.endsWith(e) : !(t.length < e.length) && t.substr(t.length - e.length) == e - }, - bind: (n = !1, - Boolean(Function.prototype.bind) && (n = !0), - function (t, e) { - var r = 2 < arguments.length ? Array.prototype.slice.call(arguments, 2) : null; - return n ? r ? (r.unshift(e), - t.bind.apply(t, r)) : t.bind(e) : function () { - return t.apply(e, r || arguments) - } - } - ), - setOptions: function (t, e) { - return t.opts = assign({}, t.opts, e = e || {}), - t.opts - }, - yn: function (t, e, r) { - return "function" == typeof e ? this.Hg(t, !0, this.Vg(e, r, 1)) : this.Hg(t, !0) - }, - Hg: function (r, n, i, t, e, a, o) { - var s; - if (void 0 === (s = i ? e ? i(r, t, e) : i(r) : s)) { - if (!this.$g(r)) - return r; - if (t = this.isArray(r)) { - if (s = this.Yg(r), - !n) - return this.Kg(r, s) - } else { - var u = Object.prototype.toString.call(r) - , c = "[object Function]" == u; - if ("[object Object]" != u && "[object Arguments]" != u && (!c || e)) - return e ? r : {}; - if (s = this.Xg(c ? {} : r), - !n) - return this.baseAssign(s, r) - } - o = o || []; - for (var f = (a = a || []).length; f--;) - if (a[f] == r) - return o[f]; - a.push(r), - o.push(s), - (t ? this.Zg : this.Qg)(r, function (t, e) { - s[e] = v.Hg(t, n, i, e, r, a, o) - }) - } - return s - }, - baseAssign: function (t, e) { - return null == e ? t : this.tM(e, Object.keys(e), t) - }, - $g: function (t) { - var e = typeof t; - return !!t && ("object" == e || "function" == e) - }, - rM: function (t) { - return !!t && "object" == typeof t - }, - nM: function (t) { - return "number" == typeof t && -1 < t && t % 1 == 0 && t <= 9007199254740991 - }, - Yg: function (t) { - var e = t.length - , r = new Array(e); - return e && "string" == typeof t[0] && Object.hasOwnProperty.call(t, "index") && (r.index = t.index, - r.input = t.input), - r - }, - Kg: function (t, e) { - var r = -1 - , n = t.length; - for (e = e || Array(n); ++r < n;) - e[r] = t[r]; - return e - }, - Xg: function (t) { - return new (t = "function" == typeof (t = t.constructor) && t instanceof t ? t : Object) - }, - Vg: function (a, o, t) { - if ("function" != typeof a) - return this.identity; - if (void 0 === o) - return a; - switch (t) { - case 1: - return function (t) { - return a.call(o, t) - } - ; - case 3: - return function (t, e, r) { - return a.call(o, t, e, r) - } - ; - case 4: - return function (t, e, r, n) { - return a.call(o, t, e, r, n) - } - ; - case 5: - return function (t, e, r, n, i) { - return a.call(o, t, e, r, n, i) - } - } - return function () { - return a.apply(o, arguments) - } - }, - Zg: function (t, e) { - for (var r = -1, n = t.length; ++r < n && !1 !== e(t[r], r, t);) - ; - return t - }, - identity: function (t) { - return t - }, - iM: function (u) { - return function (t, e, r) { - for (var n = v.eM(t), i = r(t), a = i.length, o = u ? a : -1; u ? o-- : ++o < a;) { - var s = i[o]; - if (!1 === e(n[s], s, n)) - break - } - return t - } - }, - Qg: function (t, e) { - return v.iM()(t, e, Object.keys) - }, - eM: function (t) { - return v.$g(t) ? t : Object(t) - }, - tM: function (t, e, r) { - r = r || {}; - for (var n = -1, i = e.length; ++n < i;) { - var a = e[n]; - r[a] = t[a] - } - return r - }, - oM: function () { - return !1 - }, - aM: "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", - uM: Date.now ? function () { - return Date.now() - } - : function () { - return (new Date).getTime() - } - , - sM: function (t, e, r, n) { - var i, a, o, s, u, c, f; - return s = n ? (i = 0, - o = this.uM, - function () { - if ((a = o()) - i < e) - return !1; - i = a, - t.apply(r, arguments) - } - ) : (f = function () { - u = !1, - c && (s.apply(r, c), - c = !1) - } - , - function () { - u ? c = arguments : (u = !0, - t.apply(r, arguments), - setTimeout(f, e)) - } - ) - }, - format: function (t, e) { - return t === t << 0 ? t : +parseFloat(t + "").toFixed(e || 0) - }, - isArray: Array.isArray || function (t) { - return this.is(t, "array") - } - , - is: function (t, e) { - return Object.prototype.toString.call(t).split(" ")[1].slice(0, -1).toLowerCase() === e.toLowerCase() - }, - includes: "function" == typeof Array.prototype.includes ? function (t, e) { - return t.includes(e) - } - : function (t, e) { - return -1 !== this.indexOf(t, e) - } - , - fM: function (t) { - var e = 0; - if (0 !== t.length) - for (var r = 0, n = t.length; r < n; r += 1) - e = (e << 5) - e + t.charCodeAt(r), - e &= e; - return e - }, - hM: function (t, e) { - e = e ? Math.ceil(parseInt(e.substr(6)) / 24) : 1; - for (var r = "", n = 0, i = t.length; n < i; n++) - r += String.fromCharCode((t.charCodeAt(n) - 256 - e + 65535) % 65535); - return r - }, - cM: function (t, e) { - var r = (t + "").slice(-2) - , n = (e + "").slice(-2) - , i = (t = t.slice(0, -2), - e = e.slice(0, -2), - parseInt((n + r).slice(1))) - , a = Math.ceil(i / 250) % 2 ? 1 : -1 - , i = 1 < i / 500 ? 1 : -1; - return t -= parseInt("1" + r) / 3e3 * a, - e -= parseInt("1" + n) / 3e3 * i, - new LngLat$2(parseFloat(t).toFixed(5), parseFloat(e).toFixed(5)) - }, - vM: function (t) { - return "undefined" != typeof JSON && JSON.stringify ? v.fM(JSON.stringify(t)) : null - }, - lM: function (t, e) { - var r = "_amap_hash"; - return !e && t.hasOwnProperty(r) || (e = v.vM(t)) && (t[r] = e), - t[r] - }, - parseLngLatData: function (t) { - if (v.isArray(t)) { - var e; - if (!v.isArray(t[0])) - return "string" == (e = typeof t[0]) || "number" == e ? new LngLat$2(t[0], t[1]) : t; - for (var r = 0; r < t.length; r += 1) - t[r] = v.parseLngLatData(t[r]) - } - return t - }, - dM: function (t) { - for (var e = [], r = 0, n = t.length; r < n; r += 1) - e[r] = [t[r].x, t[r].y]; - return e - }, - bM: function (t) { - return v.isArray(t) ? new Size(t[0], t[1]) : t - }, - hp: function (t, e) { - var r, n = [0, 0], i = v.getOptimalZoom(e.viewState.zoom); - return t && LocalZoom <= i ? (i = lcs.getSize(), - e = e.viewState.centerCoord, - e = lcs.getLocalByCoord([e[0], e[1]]), - r = t.x - e.x, - e = t.y - e.y, - 0 != r && (r *= i[0], - n[0] = r), - 0 != e && (e *= i[1], - n[1] = e)) : t && (n[0] += t.center[0], - n[1] += t.center[1]), - n - }, - dS: function (t, e) { - return t >= e[0] && t <= e[1] - }, - kD: function (t, e, r) { - return void 0 === r && (r = !1), - t = (t = void 0 === t ? "" : t).split(",")[0] || "", - !r && t && e && TagMap[e] || "all" - }, - VF: function (t, e, r) { - return !(r = void 0 !== r && r) && t && e && TagMap[e] || "all" - }, - LD: function (t, e) { - return !(!t || !e) && (t = this.iN(t), - this.iN(e) <= t) - }, - SD: function (t) { - var e; - switch (t = void 0 === t ? "all" : t) { - case "lite": - e = 0; - break; - case "left": - e = 1; - break; - default: - e = 2 - } - return e - }, - pW: function (t) { - var e; - switch (t = void 0 === t ? 2 : t) { - case 0: - e = exports.zB.LITE; - break; - case 1: - e = exports.zB.LEFT; - break; - default: - e = exports.zB.ALL - } - return e - }, - iN: function (t) { - var e = 0; - switch (t) { - case "lite": - e = 0; - break; - case "left": - e = 1; - break; - case "all": - e = 2 - } - return e - } - }; - function h(t) { - var e = +new Date - , r = Math.max(0, (Browser.android ? 50 : 20) - (e - a)); - return a = e + r, - globalInstance.setTimeout(t, 50) - } - function l(t) { - globalInstance.clearTimeout(t) - } - function d(t) { - for (var e, r = ["webkit", "moz", "o", "ms"], n = 0; n < r.length && !e; n += 1) - e = globalInstance[r[n] + t]; - return e - } - a = 0, - Browser.DW ? (s = h, - u = l, - t.requestAnimFrame = function (t, e, r, n) { - if (!r) - return s(function () { - e ? v.bind(t, e).call(e, n) : t() - }); - e ? v.bind(t, e).call(e, n) : t() - } - , - t.cancelAnimFrame = function (t) { - t && u.call(globalInstance, t) - } - ) : (c = globalInstance.requestAnimationFrame || d("RequestAnimationFrame") || h, - f = globalInstance.cancelAnimationFrame || d("CancelAnimationFrame") || d("CancelRequestAnimationFrame") || l, - t.requestAnimFrame = function (t, e, r, n) { - if (!r) - return c(function () { - e ? v.bind(t, e).call(e, n) : t() - }); - e ? v.bind(t, e).call(e, n) : t() - } - , - t.cancelAnimFrame = function (t) { - t && f.call(globalInstance, t) - } - ), - Browser.DW || (t.requestIdleCallback = globalInstance.requestIdleCallback ? function (t, e) { - return globalInstance.requestIdleCallback(t, e) - } - : function (t, e) { - void 0 === e && (e = {}); - var r = v.uM(); - return setTimeout(function () { - t({ - didTimeout: !1, - timeRemaining: function () { - return Math.max(0, 70 - (v.uM() - r)) - } - }) - }, e.timeout || 0) - } - , - t.cancelIdleCallback = globalInstance.cancelIdleCallback ? function (t) { - return globalInstance.cancelIdleCallback(t) - } - : function (t) { - clearTimeout(t) - } - ); - var v = t; - return v - }() - , extendStatics = function (t, e) { - return (extendStatics = Object.setPrototypeOf || ({ - __proto__: [] - } instanceof Array ? function (t, e) { - t.__proto__ = e - } - : function (t, e) { - for (var r in e) - e.hasOwnProperty(r) && (t[r] = e[r]) - } - ))(t, e) - }; - function __extends(t, e) { - function r() { - this.constructor = t - } - extendStatics(t, e), - t.prototype = null === e ? Object.create(e) : (r.prototype = e.prototype, - new r) - } - function __decorate(t, e, r, n) { - var i, a = arguments.length, o = a < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, r) : n; - if ("object" == typeof Reflect && "function" == typeof Reflect.yV) - o = Reflect.yV(t, e, r, n); - else - for (var s = t.length - 1; 0 <= s; s--) - (i = t[s]) && (o = (a < 3 ? i(o) : 3 < a ? i(e, r, o) : i(e, r)) || o); - return 3 < a && o && Object.defineProperty(e, r, o), - o - } - function __spreadArrays() { - for (var t = 0, e = 0, r = arguments.length; e < r; e++) - t += arguments[e].length; - for (var n = Array(t), i = 0, e = 0; e < r; e++) - for (var a = arguments[e], o = 0, s = a.length; o < s; o++, - i++) - n[i] = a[o]; - return n - } - exports.Ln = function () { - return exports.Ln = Object.assign || function (t) { - for (var e, r = 1, n = arguments.length; r < n; r++) - for (var i in e = arguments[r]) - Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]); - return t - } - , - exports.Ln.apply(this, arguments) - } - ; - var LabelFormat = function () { - function t() { - this.Fs = {}, - this.Es = {}, - this.Ts = [] - } - return t.prototype.Ns = function (t, e) { - e.lang && (this.lang = e.lang) - } - , - t.prototype.rV = function (t, e) { - return t - } - , - t.prototype.Ws = function (t, e) { - for (var r = this.Es, t = labelsUtil.EQ(t = void 0 === t ? "" : t, e = void 0 === e ? [] : e), n = labelsUtil.aQ(t), i = 0; i < n.length; i++) - r[n[i]] = 1 - } - , - t.id = "labelFormat", - t - }(); - function noop$1() { } - var URLObject = "undefined" != typeof window ? window.URL || window.webkitURL || { - createObjectURL: function () { - console.error("URL not exist, please use more popular browser") - } - } : URL || webkitURL || { - createObjectURL: function () { - console.error("URL not exist, please use more popular browser") - } - } - , MockMap = function () { - function t() { - this.gV = {} - } - return t.prototype.has = function (t) { - return Boolean(this.gV[t]) - } - , - t.prototype.set = function (t, e) { - return this.gV[t] = e - } - , - t.prototype.get = function (t) { - return this.gV[t] - } - , - t.prototype.pV = function (t) { - delete this.gV[t] - } - , - t.prototype.clear = function () { - this.gV = {} - } - , - t.prototype.forEach = function (t) { - for (var e in this.gV) - this.gV.hasOwnProperty(e) && t(this.gV[e]) - } - , - t - }() - , AdaptorMap = globalInstance.Map || MockMap - , SmartTypedArray = function () { - function t(t, e) { - void 0 === e && (e = 1024), - this.type = t, - this.length = 0, - this.uf = 0, - this.value = this.cf(e) - } - return t.prototype.set = function (t) { - this.check(t) && (t.length < this.uf ? this.value.set(t) : (this.cf(t.length), - this.value.set(t), - this.length = t.length)) - } - , - t.prototype.check = function (t) { - if (Array.isArray(t)) - return !0; - var e = !1; - switch (this.type) { - case "uint8": - e = t instanceof Uint8Array; - break; - case "int8": - e = t instanceof Int8Array; - break; - case "uint16": - e = t instanceof Uint16Array; - break; - case "int16": - e = t instanceof Int16Array; - break; - case "uint32": - e = t instanceof Uint32Array; - break; - case "int32": - e = t instanceof Int32Array; - break; - case "float32": - e = t instanceof Float32Array; - break; - case "float64": - e = t instanceof Float64Array; - break; - default: - e = !1 - } - return e - } - , - t.prototype.subarray = function (t, e) { - return this.value.subarray(t, e) - } - , - t.prototype.ff = function (t) { - this.uf < t && this.cf(t), - this.length = t - } - , - t.prototype.cf = function (t) { - var e = this.pf() - , r = this.value; - return this.value = new e(t), - r && this.value.set(r), - this.uf = t, - this.value - } - , - t.prototype.pf = function () { - var t = Float32Array; - switch (this.type) { - case "uint8": - t = Uint8Array; - break; - case "int8": - t = Int8Array; - break; - case "uint16": - t = Uint16Array; - break; - case "int16": - t = Int16Array; - break; - case "uint32": - t = Uint32Array; - break; - case "int32": - t = Int32Array; - break; - case "float32": - t = Float32Array; - break; - case "float64": - t = Float64Array; - break; - default: - t = Float32Array - } - return t - } - , - __decorate([InnerClass("SmartTypedArray")], t) - }() - , INF = (function (t) { - t[t.fontWidth = 0] = "fontWidth", - t[t.fontHeight = 1] = "fontHeight", - t[t.horiBearingX = 2] = "horiBearingX", - t[t.horiBearingY = 3] = "horiBearingY", - t[t.horiAdvance = 4] = "horiAdvance", - t[t.posX = 5] = "posX", - t[t.posY = 6] = "posY", - t[t.iconWidth = 7] = "iconWidth", - t[t.iconHeight = 8] = "iconHeight" - }(exports.dY || (exports.dY = {})), - 1e20) - , ControlChars = [[0, 31], [127, 159]] - , ZeroWidthChars = [[8203, 8207]] - , f = new SmartTypedArray("float64", 4096) - , d = new SmartTypedArray("float64", 4096) - , z = new SmartTypedArray("float64", 4096) - , v = new SmartTypedArray("float64", 4096) - , ua = navigator.userAgent - , TinySDF = function () { - function t(t, e, r, n, i, a, o) { - this.fontSize = t || 24, - this.buffer = void 0 === r ? 3 : r, - this.MU = i || .25, - this.fontFamily = a || "sans-serif", - this.fontWeight = o || "lighter", - this.radius = n || 8, - this.size = e, - this.xU(), - t = e[0] * e[1], - this.TU = new SmartTypedArray("float64", t), - this.AU = new SmartTypedArray("float64", t), - r = 0 <= ua.indexOf("Gecko/") || 0 <= ua.indexOf("Windows"), - this.wU = Math.round(e[1] / 2 * (r ? 1.2 : 1)) - } - return t.prototype.bU = function (t) { - this.size = t || [], - this.xU(), - this.mU() - } - , - t.prototype.Ce = function (t) { - var e = this.size - , r = e[0] - , n = r * (e = e[1]); - if (i = this.Nz) { - i.clearRect(0, 0, r, e), - i.fillText(t, this.buffer, this.wU); - var a = i.getImageData(0, 0, r, e) - , o = new Uint8ClampedArray(n) - , s = ((i = new Array(9).fill(0))[0] = 1, - i[1] = 1, - t.charCodeAt(0)); - if (this.RU(s)) - return { - bitmap: o, - info: i - }; - for (var u = INF, c = INF, f = 0, h = 0, l = 0; l < n; l++) { - var d, v = l - (d = Math.floor(l / r)) * r, g = a.data[4 * l + 3] / 255; - 0 < g && (d < u && (u = d), - v < c && (c = v), - f < d && (f = d), - h < v) && (h = v), - this.TU.value[l] = 1 == g ? 0 : 0 == g ? INF : Math.pow(Math.max(0, .5 - g), 2), - this.AU.value[l] = 1 == g ? INF : 0 == g ? 0 : Math.pow(Math.max(0, g - .5), 2) - } - var i = this.buffer - , t = this.getWidth(t, h - c) - , s = 32 === s ? [6, 6, 0, -21, 9, 0, 0, r, e] : [t, f - u, c, -u + i, t, c - 3, u - 3, r, e]; - for (edt(this.TU.value, r, e), - edt(this.AU.value, r, e), - l = 0; l < n; l++) { - var y = this.TU.value[l] - this.AU.value[l] - , y = Math.max(0, Math.min(255, Math.round(255 - 255 * (y / this.radius + this.MU)))); - o[l] = y - } - return { - bitmap: o, - info: s - } - } - return {} - } - , - t.prototype.getWidth = function (t, e) { - var r; - switch (t) { - case "y": - case "A": - case "T": - case "V": - case "W": - case "Y": - r = e; - break; - default: - r = e + 2 - } - return r - } - , - t.prototype.measureText = function (t) { - return this.Nz.measureText(t) - } - , - t.prototype.xU = function () { - var t = this.size; - this.canvas || (this.canvas = document.createElement("canvas")), - this.canvas.width = t[0], - this.canvas.height = t[1], - this.Nz = this.canvas.getContext("2d"), - this.Nz && (this.Nz.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily, - this.Nz.textBaseline = "middle", - this.Nz.fillStyle = "black") - } - , - t.prototype.mU = function () { - var t = this.size - , e = ((e = t[0] * (t = t[1])) > this.AU.uf && (this.AU.ff(e), - this.TU.ff(e)), - 0 <= ua.indexOf("Gecko/") || 0 <= ua.indexOf("Windows")); - this.wU = Math.round(t / 2 * (e ? 1.2 : 1)) - } - , - t.prototype.RU = function (t) { - var e = this.SU(t, ControlChars) - , t = this.SU(t, ZeroWidthChars); - return e || t - } - , - t.prototype.SU = function (t, e) { - for (var r = 0, n = e; r < n.length; r++) { - var i = n[r]; - if (t >= i[0] && t <= i[1]) - return !0 - } - } - , - t - }(); - function expandTypeArray(t) { - f.ff(t), - d.ff(t), - z.ff(t), - v.ff(t) - } - function edt(t, e, r) { - f.uf < r && expandTypeArray(r); - for (var n = 0; n < e; n++) { - for (var i = 0; i < r; i++) - f.value[i] = t[i * e + n]; - for (edt1d(f.value, d.value, v.value, z.value, r), - i = 0; i < r; i++) - t[i * e + n] = d.value[i] - } - for (f.uf < e && expandTypeArray(r), - i = 0; i < r; i++) { - for (n = 0; n < e; n++) - f.value[n] = t[i * e + n]; - for (edt1d(f.value, d.value, v.value, z.value, e), - n = 0; n < e; n++) - t[i * e + n] = Math.sqrt(d.value[n]) - } - } - function edt1d(t, e, r, n, i) { - n[r[0] = 0] = -INF, - n[1] = +INF; - for (var a = 1, o = 0; a < i; a++) { - for (var s = (t[a] + a * a - (t[r[o]] + r[o] * r[o])) / (2 * a - 2 * r[o]); s <= n[o];) - o--, - s = (t[a] + a * a - (t[r[o]] + r[o] * r[o])) / (2 * a - 2 * r[o]); - r[++o] = a, - n[o] = s, - n[o + 1] = +INF - } - for (o = a = 0; a < i; a++) { - for (; n[o + 1] < a;) - o++; - e[a] = (a - r[o]) * (a - r[o]) + t[r[o]] - } - } - var LangConf = { - ch: { - type: "ch", - size: [32, 32], - fontSize: 24, - name: "中文简体" - }, - en: { - type: "en", - size: [32, 32], - fontSize: 24, - name: "英文" - }, - th: { - type: "th", - size: [32, 32], - fontSize: 24, - name: "泰语" - }, - my: { - type: "my", - size: [56, 56], - fontSize: 24, - name: "缅甸语" - }, - ja: { - type: "ja", - size: [32, 32], - fontSize: 24, - name: "日文" - }, - km: { - type: "km", - size: [40, 40], - fontSize: 24, - name: "高棉语" - }, - PU: { - type: "lao", - size: [40, 40], - fontSize: 24, - name: "老挝语" - }, - $U: { - type: "arabic", - size: [40, 40], - fontSize: 24, - name: "阿拉伯语" - }, - default: { - type: "ch", - size: [32, 32], - fontSize: 24, - name: "汉语" - } - } - , Lang = function () { - function t(t) { - var e = (t = this.CU = t).type - , r = t.size - , t = t.fontSize - , e = (this.type = e, - this.width = r[0]) - , r = this.height = r[1]; - this.NU = new TinySDF(t, [e, r], (e - t) / 2, 8, .25, "PingFang SC", "normal") - } - return t.prototype.Ce = function (t) { - return this.type === LangConf.PU.type ? (this.width = 10 * Math.floor(this.NU.measureText(t).width / 10) + 10 + LangConf.PU.fontSize / 2, - this.NU.bU([this.width, this.height])) : (this.type === LangConf.my.type || this.type === LangConf.PU.type || this.type === LangConf.th.type || this.type === LangConf.$U.type || this.type === LangConf.km.type) && 1 < t.length && (this.width = Math.floor(this.CU.size[0] * t.length * .5), - this.NU.bU([this.width, this.height])), - this.NU.Ce(t) - } - , - t - }() - , LangManager = function () { - function n() { - this.OU = {} - } - return n.gG = function (t) { - return t = t.split("|"), - t = parseInt(t[0], 10), - this.IU(t) - } - , - n.kU = function (t) { - for (var e = [], r = 0; r < t.length; r++) - e.push(t.charCodeAt(r)); - return n.gG(e.join("|")) - } - , - n.LU = function (t) { - return t = n.kU(t), - -1 !== n.EU.indexOf(t) - } - , - n.IU = function (t) { - return 32 < t && t < 591 ? "en" : 4096 <= t && t <= 4255 ? "my" : 3584 <= t && t <= 3711 ? "th" : 6016 <= t && t <= 6143 ? "km" : 3712 <= t && t <= 3839 ? "lao" : 1536 <= t && t <= 1791 ? "arabic" : "ch" - } - , - n.prototype.D$ = function (t) { - var e, r = this.OU[t = void 0 === t ? "ch" : t]; - return r || (e = LangConf[t] || LangConf.default, - r = new Lang(e), - this.OU[t] = r), - r - } - , - n.EU = [LangConf.my.type, LangConf.km.type, LangConf.PU.type], - n - }() - , CHN = [["90.398619", "47.62125"], ["90.493569", "47.512157"], ["90.491338", "47.430787"], ["90.552986", "47.391174"], ["90.522859", "47.318461"], ["90.584915", "47.224989"], ["90.782025", "47.019194"], ["90.923517", "46.97996"], ["90.986624", "46.807403"], ["91.082926", "46.722064"], ["91.051812", "46.596604"], ["91.100242", "46.564068"], ["91.102624", "46.537196"], ["90.935125", "46.300398"], ["91.032801", "46.126363"], ["91.055181", "46.011658"], ["90.741148", "45.713536"], ["90.699563", "45.544726"], ["90.700228", "45.504993"], ["90.795887", "45.449956"], ["90.832257", "45.31629"], ["90.919719", "45.26871"], ["90.920899", "45.225065"], ["91.136978", "45.244316"], ["91.253943", "45.164928"], ["91.372068", "45.142003"], ["91.45689", "45.18485"], ["91.624753", "45.098124"], ["92.062061", "45.11548"], ["92.497694", "45.030848"], ["92.887666", "45.075869"], ["93.513157", "44.997233"], ["94.22699", "44.694971"], ["94.374082", "44.542037"], ["94.620202", "44.47394"], ["94.737532", "44.366876"], ["95.002041", "44.282908"], ["95.42701", "44.324539"], ["95.440292", "44.292217"], ["95.365491", "44.054053"], ["95.549126", "44.026335"], ["95.883651", "43.431746"], ["95.911953", "43.287656"], ["96.385653", "42.919774"], ["96.41151", "42.75927"], ["97.176454", "42.824161"], ["98.198333", "42.682435"], ["99.505985", "42.597497"], ["99.964106", "42.676693"], ["100.259793", "42.666107"], ["100.320604", "42.718863"], ["100.867753", "42.700052"], ["101.814637", "42.530852"], ["102.090733", "42.250567"], ["102.451458", "42.173439"], ["102.716911", "42.181644"], ["103.426452", "41.910629"], ["103.858223", "41.830321"], ["104.537873", "41.903108"], ["104.55755", "41.881352"], ["104.554117", "41.69046"], ["104.929798", "41.682608"], ["105.010371", "41.620463"], ["105.220141", "41.778353"], ["105.732529", "41.977008"], ["106.776853", "42.319288"], ["107.167833", "42.354897"], ["107.458928", "42.487147"], ["107.937949", "42.433308"], ["108.241189", "42.489425"], ["108.84269", "42.425722"], ["109.022141", "42.487574"], ["109.290662", "42.465227"], ["109.534657", "42.500548"], ["109.723763", "42.60669"], ["110.100045", "42.671172"], ["110.420666", "42.80617"], ["111.005001", "43.354829"], ["111.446257", "43.521761"], ["111.555004", "43.519925"], ["111.780481", "43.697712"], ["111.925235", "43.719055"], ["111.936243", "43.796237"], ["111.863286", "43.902314"], ["111.643689", "44.039247"], ["111.386948", "44.360034"], ["111.610923", "44.793044"], ["111.742544", "44.988614"], ["111.9942", "45.118751"], ["112.435906", "45.103062"], ["112.61512", "44.956037"], ["112.806373", "44.882816"], ["113.624854", "44.775834"], ["113.896701", "44.9424"], ["114.104283", "44.984106"], ["114.437113", "45.233044"], ["114.543629", "45.41585"], ["114.742713", "45.46746"], ["114.977202", "45.40645"], ["115.36123", "45.421513"], ["115.688202", "45.487095"], ["116.023886", "45.712008"], ["116.163919", "45.717567"], ["116.251037", "45.785617"], ["116.213851", "45.874652"], ["116.246574", "45.98171"], ["116.56904", "46.316673"], ["116.83033", "46.413023"], ["117.353361", "46.390324"], ["117.41533", "46.528251"], ["117.39222", "46.582448"], ["117.411768", "46.610108"], ["117.618878", "46.628442"], ["117.72387", "46.549579"], ["118.312433", "46.768455"], ["118.774374", "46.71799"], ["118.828619", "46.795917"], ["118.912926", "46.804113"], ["118.941979", "46.764971"], ["119.028625", "46.769292"], ["119.119864", "46.669494"], ["119.724391", "46.623078"], ["119.791059", "46.707882"], ["119.884572", "46.701717"], ["119.896224", "46.880494"], ["119.836485", "46.899381"], ["119.742007", "47.13776"], ["119.30249", "47.404711"], ["119.315214", "47.461827"], ["119.134262", "47.517476"], ["119.10804", "47.64174"], ["118.755577", "47.747779"], ["118.55396", "47.96464"], ["118.177657", "48.02096"], ["117.82558", "47.987997"], ["117.388809", "47.612384"], ["117.082887", "47.796869"], ["116.816533", "47.867783"], ["116.452289", "47.808327"], ["116.270714", "47.845797"], ["115.938377", "47.653883"], ["115.559971", "47.900966"], ["115.500727", "48.161305"], ["115.791907", "48.279437"], ["115.776629", "48.537807"], ["116.042275", "48.826715"], ["116.024444", "48.890046"], ["116.709459", "49.880215"], ["117.07866", "49.723328"], ["117.482128", "49.648667"], ["117.801998", "49.554185"], ["117.858689", "49.620567"], ["118.068073", "49.643304"], ["118.210831", "49.759243"], ["118.358674", "49.80286"], ["118.37378", "49.853853"], ["118.468623", "49.857768"], ["118.559926", "49.957101"], ["119.082034", "50.01451"], ["119.311051", "50.169532"], ["119.328389", "50.327724"], ["119.175332", "50.320094"], ["119.103534", "50.373674"], ["119.103642", "50.409488"], ["119.224019", "50.469114"], ["119.262214", "50.625767"], ["119.470096", "50.763554"], ["119.480245", "50.910299"], ["119.734497", "51.106944"], ["119.73542", "51.228925"], ["119.789064", "51.243368"], ["119.787948", "51.298691"], ["119.896417", "51.365189"], ["119.889615", "51.410731"], ["119.950318", "51.426267"], ["120.067241", "51.699773"], ["120.632029", "51.963004"], ["120.755196", "52.16206"], ["120.733974", "52.23734"], ["120.60276", "52.318868"], ["120.688398", "52.529211"], ["120.459208", "52.615218"], ["120.046556", "52.554881"], ["120.004778", "52.785297"], ["120.275145", "52.889292"], ["120.877526", "53.323248"], ["121.231921", "53.310391"], ["122.338707", "53.534212"], ["122.443142", "53.474191"], ["122.84101", "53.486577"], ["123.278553", "53.592823"], ["123.480492", "53.533829"], ["123.518364", "53.587614"], ["123.901491", "53.509565"], ["124.129157", "53.379309"], ["124.260864", "53.404185"], ["124.447374", "53.252351"], ["124.696798", "53.233398"], ["124.854212", "53.143501"], ["124.877429", "53.19179"], ["125.14374", "53.233437"], ["125.500989", "53.129213"], ["125.53472", "53.084642"], ["125.631731", "53.108131"], ["125.776978", "53.000452"], ["125.732839", "52.906456"], ["125.842016", "52.927481"], ["125.973551", "52.795444"], ["126.049747", "52.829373"], ["126.137295", "52.788424"], ["126.136093", "52.7501"], ["126.082878", "52.727183"], ["126.094744", "52.66376"], ["126.01078", "52.632295"], ["126.225078", "52.557751"], ["126.227546", "52.502887"], ["126.28664", "52.498733"], ["126.378071", "52.405299"], ["126.365626", "52.334723"], ["126.460233", "52.313556"], ["126.457937", "52.278438"], ["126.370797", "52.21752"], ["126.587327", "52.146539"], ["126.544647", "52.022831"], ["126.483493", "52.004144"], ["126.489866", "51.963387"], ["126.757379", "51.72942"], ["126.769931", "51.638237"], ["126.737959", "51.604012"], ["126.870396", "51.541384"], ["126.8313", "51.449554"], ["126.939726", "51.411373"], ["126.952021", "51.35238"], ["127.007918", "51.339647"], ["126.930671", "51.194554"], ["126.950047", "51.077214"], ["127.328668", "50.761993"], ["127.324612", "50.674039"], ["127.399564", "50.585975"], ["127.336199", "50.480736"], ["127.39435", "50.441709"], ["127.374866", "50.346296"], ["127.622938", "50.242265"], ["127.624762", "50.159938"], ["127.524126", "50.053819"], ["127.569466", "49.832087"], ["127.686474", "49.798414"], ["127.716987", "49.69577"], ["127.838395", "49.617717"], ["128.185065", "49.56898"], ["128.533065", "49.633229"], ["128.791094", "49.618148"], ["128.84167", "49.562161"], ["128.811865", "49.506248"], ["129.022107", "49.485245"], ["129.11165", "49.389985"], ["129.230032", "49.429552"], ["129.343135", "49.392234"], ["129.383497", "49.461849"], ["129.526126", "49.451932"], ["129.593332", "49.316758"], ["129.745059", "49.313625"], ["129.972146", "49.057136"], ["130.243692", "48.89923"], ["130.444579", "48.939218"], ["130.526934", "48.889044"], ["130.693552", "48.907086"], ["130.705612", "48.869994"], ["130.580449", "48.630526"], ["130.630317", "48.609845"], ["130.648105", "48.52472"], ["130.790884", "48.525345"], ["130.778868", "48.413864"], ["130.875106", "48.300724"], ["130.708423", "48.108792"], ["130.914073", "47.945556"], ["131.01546", "47.736076"], ["131.552374", "47.750448"], ["131.621768", "47.692216"], ["131.711934", "47.740348"], ["131.958075", "47.703033"], ["131.995368", "47.741041"], ["132.235458", "47.739381"], ["132.340472", "47.796162"], ["132.546873", "47.750881"], ["132.655685", "47.89209"], ["132.654505", "47.979308"], ["132.811511", "47.967327"], ["133.097413", "48.158185"], ["133.473394", "48.128346"], ["133.728504", "48.281365"], ["134.199908", "48.411499"], ["134.519091", "48.448618"], ["134.797053", "48.402511"], ["134.903462", "48.476549"], ["135.111473", "48.465979"], ["135.087461", "48.366044"], ["134.70854", "48.235879"], ["134.705815", "48.142967"], ["134.587133", "47.991745"], ["134.802439", "47.732613"], ["134.805079", "47.701502"], ["134.584837", "47.454022"], ["134.327302", "47.405829"], ["134.203448", "47.309543"], ["134.189801", "47.25835"], ["134.258273", "47.190339"], ["134.25029", "47.096963"], ["134.160018", "47.066453"], ["134.091868", "46.968583"], ["134.042215", "46.633997"], ["133.892806", "46.477753"], ["133.978872", "46.404235"], ["133.938468", "46.35728"], ["133.943124", "46.251663"], ["133.734856", "46.143924"], ["133.77584", "46.068467"], ["133.698828", "45.924364"], ["133.509421", "45.823745"], ["133.533154", "45.779212"], ["133.488886", "45.719859"], ["133.513906", "45.69461"], ["133.496869", "45.599732"], ["133.229721", "45.489276"], ["133.168674", "45.414886"], ["133.124621", "45.258199"], ["133.158975", "45.105773"], ["132.946351", "44.989767"], ["131.996377", "45.226214"], ["131.893723", "45.301592"], ["131.80903", "45.186922"], ["131.72307", "45.208468"], ["131.688416", "45.166214"], ["131.716461", "45.107939"], ["131.507506", "44.942491"], ["131.131804", "44.90387"], ["131.021662", "44.839439"], ["131.137726", "44.723122"], ["131.338398", "44.056058"], ["131.273661", "43.974086"], ["131.248341", "43.566337"], ["131.344342", "43.514183"], ["131.346252", "43.391702"], ["131.236002", "43.22857"], ["131.242955", "43.131057"], ["131.13749", "43.018486"], ["131.168904", "42.923466"], ["131.065779", "42.901952"], ["131.05005", "42.834641"], ["130.673962", "42.819219"], ["130.46123", "42.731347"], ["130.617421", "42.685874"], ["130.650616", "42.595365"], ["130.604267", "42.509264"], ["130.661752", "42.412289"], ["130.553477", "42.421191"], ["130.507536", "42.571366"], ["130.42958", "42.523293"], ["130.416105", "42.590452"], ["130.235238", "42.692151"], ["130.237405", "42.873951"], ["130.125611", "42.876169"], ["130.075765", "42.911319"], ["130.092008", "42.956423"], ["129.933178", "42.975108"], ["129.878311", "42.92378"], ["129.795163", "42.719399"], ["129.815032", "42.601778"], ["129.735103", "42.411401"], ["129.607751", "42.418118"], ["129.55415", "42.330996"], ["129.383025", "42.403749"], ["129.268527", "42.323223"], ["129.222093", "42.257635"], ["129.2434", "42.19201"], ["128.992774", "42.075243"], ["128.959644", "41.997184"], ["128.121765", "41.974471"], ["128.183949", "41.746614"], ["128.336234", "41.608881"], ["128.268621", "41.434008"], ["128.127944", "41.337429"], ["128.00482", "41.417516"], ["127.65285", "41.377517"], ["127.537794", "41.447986"], ["127.248116", "41.454805"], ["127.234962", "41.492217"], ["127.08566", "41.544545"], ["127.128081", "41.592273"], ["127.012339", "41.679643"], ["127.035706", "41.702541"], ["126.914964", "41.778689"], ["126.809177", "41.669562"], ["126.74607", "41.691325"], ["126.612003", "41.629975"], ["126.529799", "41.412013"], ["126.562243", "41.368516"], ["126.557908", "41.33825"], ["126.45328", "41.325763"], ["126.3043", "41.139979"], ["126.148946", "41.070584"], ["126.132917", "40.990783"], ["126.041744", "40.924117"], ["126.041787", "40.876401"], ["125.721896", "40.840697"], ["125.681319", "40.80754"], ["125.712733", "40.774611"], ["125.686641", "40.761853"], ["125.582743", "40.75319"], ["125.423162", "40.624246"], ["125.310595", "40.636606"], ["125.022783", "40.521123"], ["125.06057", "40.46396"], ["124.907556", "40.445935"], ["124.374311", "40.078794"], ["124.388452", "39.905638"], ["123.741782", "39.10294"], ["123.282201", "38.058466"], ["124.24299", "31.368588"], ["124.714351", "29.508006"], ["125.072136", "25.859069"], ["124.935837", "25.676612"], ["123.836839", "25.5127"], ["122.751321", "24.515956"], ["121.947788", "22.070621"], ["121.867355", "21.383021"], ["119.827087", "18.177352"], ["119.026527", "16.873489"], ["119.11665", "15.951676"], ["119.101406", "14.063252"], ["119.100623", "12.209516"], ["119.07742", "11.23357"], ["116.011301", "7.678721"], ["114.941852", "6.182877"], ["114.229887", "5.47862"], ["113.86269", "4.692236"], ["112.795642", "3.695169"], ["111.953841", "3.231846"], ["109.894631", "3.714037"], ["108.659956", "4.748032"], ["107.925439", "5.91737"], ["107.96348", "6.895899"], ["108.555028", "9.28242"], ["110.128544", "11.338543"], ["109.983314", "12.44102"], ["109.806102", "13.535124"], ["109.636428", "14.636855"], ["109.78629", "15.402577"], ["109.449813", "15.723154"], ["108.117871", "17.258818"], ["107.310076", "18.842045"], ["107.374728", "19.467179"], ["108.051095", "20.114414"], ["108.328478", "21.187373"], ["108.278139", "21.403412"], ["108.107378", "21.47839"], ["107.943356", "21.509097"], ["107.849844", "21.619412"], ["107.547355", "21.55724"], ["107.470751", "21.571209"], ["107.451932", "21.615722"], ["107.357798", "21.570152"], ["107.289755", "21.702532"], ["107.207551", "21.682454"], ["106.998789", "21.79714"], ["107.015655", "21.907972"], ["106.951239", "21.893876"], ["106.768184", "21.978429"], ["106.703854", "21.935422"], ["106.674027", "21.941175"], ["106.664565", "22.266461"], ["106.643493", "22.30484"], ["106.538715", "22.328641"], ["106.53142", "22.460275"], ["106.592939", "22.622033"], ["106.708553", "22.615477"], ["106.793547", "22.794758"], ["106.548972", "22.899047"], ["106.304634", "22.830954"], ["106.190543", "22.951201"], ["106.088791", "22.966118"], ["105.867991", "22.889816"], ["105.712488", "23.033058"], ["105.550311", "23.045755"], ["105.530806", "23.163759"], ["105.330691", "23.346393"], ["105.249667", "23.237422"], ["105.089657", "23.231409"], ["104.951169", "23.149476"], ["104.843495", "23.101267"], ["104.893084", "22.94393"], ["104.747257", "22.79551"], ["104.567764", "22.813411"], ["104.371855", "22.65974"], ["104.249053", "22.720536"], ["104.237015", "22.806132"], ["104.137495", "22.783462"], ["104.078336", "22.740585"], ["104.017096", "22.520843"], ["103.962035", "22.492019"], ["103.666692", "22.741534"], ["103.525093", "22.580551"], ["103.458703", "22.648987"], ["103.394201", "22.751092"], ["103.341286", "22.767397"], ["103.306804", "22.661878"], ["103.215652", "22.621855"], ["103.205309", "22.536362"], ["103.107505", "22.486567"], ["103.076606", "22.416444"], ["102.91784", "22.456309"], ["102.840786", "22.583305"], ["102.610223", "22.696625"], ["102.558017", "22.673838"], ["102.493515", "22.738071"], ["102.424293", "22.676273"], ["102.446694", "22.621241"], ["102.327948", "22.511268"], ["102.278531", "22.386786"], ["102.142661", "22.36867"], ["102.03475", "22.427651"], ["101.942096", "22.415036"], ["101.8765", "22.355136"], ["101.764791", "22.472926"], ["101.700847", "22.453176"], ["101.694624", "22.349917"], ["101.579332", "22.223979"], ["101.631925", "21.988099"], ["101.718335", "21.962549"], ["101.79863", "21.848016"], ["101.778824", "21.73654"], ["101.856952", "21.62392"], ["101.847124", "21.595911"], ["101.773932", "21.558438"], ["101.760328", "21.349162"], ["101.862724", "21.239522"], ["101.764727", "21.115389"], ["101.663511", "21.164623"], ["101.587808", "21.146813"], ["101.574161", "21.209359"], ["101.53264", "21.221881"], ["101.293538", "21.149214"], ["101.203866", "21.206559"], ["101.216612", "21.289294"], ["101.114173", "21.403592"], ["101.183052", "21.497378"], ["101.111941", "21.560533"], ["101.095719", "21.734009"], ["100.901892", "21.659343"], ["100.747526", "21.494902"], ["100.586185", "21.423588"], ["100.468576", "21.433695"], ["100.414267", "21.504705"], ["100.248806", "21.434534"], ["100.115855", "21.481604"], ["100.078626", "21.591362"], ["100.11579", "21.654357"], ["100.010068", "21.666462"], ["99.916813", "21.811046"], ["99.968591", "21.972539"], ["99.950867", "22.023392"], ["99.699748", "22.008512"], ["99.585378", "22.083453"], ["99.19384", "22.094388"], ["99.129961", "22.147006"], ["99.24403", "22.347694"], ["99.226069", "22.407775"], ["99.348979", "22.505302"], ["99.289627", "22.751963"], ["99.429595", "22.858203"], ["99.422858", "22.95454"], ["99.521735", "22.955884"], ["99.488432", "23.051046"], ["99.336512", "23.101188"], ["99.258964", "23.048934"], ["99.10449", "23.057463"], ["98.99924", "23.151389"], ["98.858693", "23.167152"], ["98.89811", "23.292382"], ["98.844295", "23.323341"], ["98.878284", "23.4184"], ["98.821571", "23.466061"], ["98.773527", "23.530055"], ["98.849638", "23.617887"], ["98.774085", "23.751823"], ["98.656368", "23.775684"], ["98.63961", "23.801661"], ["98.649909", "23.978332"], ["98.828974", "24.077833"], ["98.83893", "24.109859"], ["98.594849", "24.051324"], ["98.534853", "24.098401"], ["98.118939", "24.06406"], ["97.652578", "23.812007"], ["97.500916", "23.916402"], ["97.507889", "23.946076"], ["97.703905", "24.12772"], ["97.7321", "24.242073"], ["97.646012", "24.307132"], ["97.678134", "24.384313"], ["97.653759", "24.420913"], ["97.528617", "24.403523"], ["97.504349", "24.421636"], ["97.520614", "24.750904"], ["97.686181", "24.867223"], ["97.726886", "24.872596"], ["97.701159", "24.901891"], ["97.691374", "25.085579"], ["97.816257", "25.289948"], ["97.844152", "25.297669"], ["97.93803", "25.249897"], ["98.122308", "25.413237"], ["98.152177", "25.643055"], ["98.313818", "25.589382"], ["98.380058", "25.615679"], ["98.510756", "25.863626"], ["98.635018", "25.83211"], ["98.668857", "25.860517"], ["98.546226", "26.121072"], ["98.648708", "26.171346"], ["98.686366", "26.138757"], ["98.648", "26.279486"], ["98.751404", "26.620222"], ["98.701365", "26.849746"], ["98.733852", "27.033154"], ["98.685272", "27.065508"], ["98.663149", "27.194049"], ["98.708661", "27.325701"], ["98.657935", "27.422786"], ["98.67244", "27.532116"], ["98.574979", "27.540164"], ["98.537407", "27.61841"], ["98.464022", "27.631357"], ["98.417695", "27.512725"], ["98.29766", "27.498051"], ["98.144388", "27.832814"], ["98.155954", "27.920407"], ["98.109477", "27.953809"], ["98.111", "28.123353"], ["97.991245", "28.182664"], ["97.984571", "28.253152"], ["97.904449", "28.328541"], ["97.775702", "28.306704"], ["97.650433", "28.498038"], ["97.537651", "28.471615"], ["97.537544", "28.300942"], ["97.374809", "28.215134"], ["97.340262", "28.085365"], ["97.441328", "28.020526"], ["97.41045", "27.866111"], ["97.271254", "27.865238"], ["97.104206", "27.710621"], ["97.074959", "27.716851"], ["96.959302", "27.833554"], ["96.799979", "27.862962"], ["96.485238", "28.041967"], ["96.435456", "28.122218"], ["96.282742", "28.11548"], ["96.254032", "28.195619"], ["96.011753", "28.160892"], ["95.866721", "28.266533"], ["95.747824", "28.246895"], ["95.417182", "28.118906"], ["95.304315", "27.916842"], ["94.898787", "27.716889"], ["94.531603", "27.567615"], ["94.290032", "27.552854"], ["93.888688", "27.17204"], ["93.845987", "27.008916"], ["93.571308", "26.909059"], ["92.944937", "26.862668"], ["92.647405", "26.922873"], ["92.093539", "26.830122"], ["92.094247", "26.952103"], ["91.998589", "27.089524"], ["92.083004", "27.299047"], ["92.034273", "27.387239"], ["91.995907", "27.444668"], ["91.729424", "27.433927"], ["91.566002", "27.518015"], ["91.534996", "27.644815"], ["91.602566", "27.75719"], ["91.514804", "27.82382"], ["91.562676", "27.867913"], ["91.468799", "27.914302"], ["91.441784", "27.98019"], ["91.319818", "28.026891"], ["91.09123", "27.815659"], ["90.700164", "28.042914"], ["90.592875", "27.992071"], ["90.457885", "28.016188"], ["90.284765", "28.126494"], ["90.15898", "28.149257"], ["90.026414", "28.108761"], ["89.808083", "28.209972"], ["89.741178", "28.14466"], ["89.620585", "28.133666"], ["89.394701", "27.853894"], ["89.261577", "27.776101"], ["89.129934", "27.494282"], ["89.208705", "27.359876"], ["89.003119", "27.183627"], ["88.914757", "27.261172"], ["88.754318", "27.459692"], ["88.742559", "27.575756"], ["88.824484", "27.683585"], ["88.858366", "27.84585"], ["88.817167", "27.989323"], ["88.749833", "28.04227"], ["88.643789", "28.079175"], ["88.414536", "27.948938"], ["88.164768", "27.927649"], ["88.119621", "27.836742"], ["87.844298", "27.914245"], ["87.731731", "27.773994"], ["87.596998", "27.78341"], ["87.555606", "27.832169"], ["87.226918", "27.783961"], ["87.114007", "27.809055"], ["87.017899", "27.921014"], ["86.741974", "28.007834"], ["86.699681", "28.06541"], ["86.621253", "28.036683"], ["86.583402", "28.057988"], ["86.53626", "27.935498"], ["86.410089", "27.875861"], ["86.21079", "27.953771"], ["86.168518", "28.117581"], ["86.115561", "28.075237"], ["86.149271", "27.905693"], ["85.994046", "27.879218"], ["85.944521", "27.932939"], ["85.832512", "28.151055"], ["85.730202", "28.210313"], ["85.701256", "28.320003"], ["85.608344", "28.222546"], ["85.501399", "28.296408"], ["85.379283", "28.245137"], ["85.108273", "28.308745"], ["85.080035", "28.467918"], ["85.159664", "28.55567"], ["85.153999", "28.618263"], ["85.06716", "28.641711"], ["84.995663", "28.560816"], ["84.851232", "28.539159"], ["84.68178", "28.609315"], ["84.624424", "28.696084"], ["84.465938", "28.711423"], ["84.389849", "28.828396"], ["84.202845", "28.880867"], ["84.21602", "29.009754"], ["84.163899", "29.035197"], ["84.138279", "29.170731"], ["84.156046", "29.210987"], ["84.110534", "29.218441"], ["84.085858", "29.266484"], ["83.922973", "29.294016"], ["83.658078", "29.134976"], ["83.571818", "29.151918"], ["83.232014", "29.552591"], ["83.070545", "29.578981"], ["82.920063", "29.684809"], ["82.816744", "29.661877"], ["82.675381", "29.739992"], ["82.684436", "29.800693"], ["82.605515", "29.811846"], ["82.541184", "29.930689"], ["82.159367", "30.045582"], ["82.174859", "30.141657"], ["82.084479", "30.216893"], ["82.077913", "30.310431"], ["81.993091", "30.291904"], ["81.637645", "30.413095"], ["81.562006", "30.34101"], ["81.44238", "30.380465"], ["81.419613", "30.185719"], ["81.306617", "30.138261"], ["81.279452", "29.994378"], ["81.11603", "30.010804"], ["80.995588", "30.23662"], ["80.302677", "30.539587"], ["80.0878", "30.543727"], ["79.94236", "30.672449"], ["79.868267", "30.834188"], ["79.825373", "30.839126"], ["79.673774", "30.945519"], ["79.593372", "30.894565"], ["79.4033", "31.036535"], ["79.346716", "31.001927"], ["79.336288", "30.933391"], ["79.224193", "30.920174"], ["79.170227", "30.981969"], ["79.092743", "30.963258"], ["78.986249", "31.027673"], ["78.96668", "31.157988"], ["78.856924", "31.281503"], ["78.783796", "31.274131"], ["78.728542", "31.344273"], ["78.757918", "31.433515"], ["78.697536", "31.51499"], ["78.804524", "31.611708"], ["78.62458", "31.82264"], ["78.722126", "31.927562"], ["78.578596", "31.999524"], ["78.497701", "32.11424"], ["78.432641", "32.118838"], ["78.402622", "32.220389"], ["78.4762", "32.31131"], ["78.36638", "32.528271"], ["78.381336", "32.554898"], ["78.75176", "32.731065"], ["78.809223", "32.496551"], ["78.976872", "32.364195"], ["79.005883", "32.376536"], ["79.080126", "32.394077"], ["79.114029", "32.491665"], ["79.279168", "32.61355"], ["79.272795", "32.713951"], ["79.195912", "32.779409"], ["79.222884", "32.93039"], ["79.135616", "33.001861"], ["79.1289", "33.16414"], ["78.818901", "33.407102"], ["78.715496", "33.540948"], ["78.723736", "33.604683"], ["78.656015", "33.65053"], ["78.749506", "33.746395"], ["78.715582", "33.972994"], ["78.631468", "34.014908"], ["78.635867", "34.100789"], ["78.894839", "34.171104"], ["78.97243", "34.341399"], ["78.867137", "34.336615"], ["78.698266", "34.491737"], ["78.566988", "34.478543"], ["78.527312", "34.539705"], ["78.430667", "34.514354"], ["78.403587", "34.570207"], ["78.247139", "34.615374"], ["78.238835", "34.685346"], ["78.179204", "34.722162"], ["78.172767", "34.964414"], ["78.056982", "35.102584"], ["77.985699", "35.231108"], ["77.986279", "35.376996"], ["78.060694", "35.455461"], ["77.904546", "35.435236"], ["77.815948", "35.484733"], ["77.688854", "35.41908"], ["77.389219", "35.439747"], ["77.300084", "35.509365"], ["77.189727", "35.490691"], ["76.844516", "35.637645"], ["76.746969", "35.630442"], ["76.675837", "35.721674"], ["76.57151", "35.752903"], ["76.552477", "35.878323"], ["76.372211", "35.795695"], ["76.149781", "35.797227"], ["76.124933", "35.947734"], ["75.922673", "36.058952"], ["75.911558", "36.150212"], ["76.037836", "36.25097"], ["75.962627", "36.325913"], ["75.987883", "36.449905"], ["75.852334", "36.642976"], ["75.645268", "36.740208"], ["75.442793", "36.696296"], ["75.389578", "36.92691"], ["75.229053", "36.936669"], ["75.144038", "36.993436"], ["74.896481", "36.905551"], ["74.830134", "37.022531"], ["74.731107", "36.999897"], ["74.690745", "37.052831"], ["74.559724", "37.004866"], ["74.481919", "37.046871"], ["74.437845", "37.120308"], ["74.499922", "37.266966"], ["74.739861", "37.314987"], ["74.866312", "37.253902"], ["75.109062", "37.372562"], ["75.102367", "37.44057"], ["74.921629", "37.536802"], ["74.864573", "37.654148"], ["74.964759", "37.773242"], ["74.890065", "37.834937"], ["74.908884", "37.982278"], ["74.777327", "38.153069"], ["74.761705", "38.335766"], ["74.838288", "38.415972"], ["74.834661", "38.466073"], ["74.630191", "38.571841"], ["74.373536", "38.625873"], ["74.159667", "38.646204"], ["74.103234", "38.581"], ["74.111817", "38.521998"], ["74.000838", "38.494528"], ["73.77285", "38.599147"], ["73.670411", "38.8621"], ["73.725193", "38.95749"], ["73.802719", "38.951449"], ["73.807654", "38.986017"], ["73.72221", "39.008697"], ["73.473516", "39.38863"], ["73.616295", "39.498494"], ["73.852308", "39.511093"], ["73.918183", "39.600828"], ["73.897347", "39.705585"], ["73.808942", "39.800228"], ["73.93934", "39.994893"], ["73.923182", "40.040084"], ["74.206402", "40.150079"], ["74.349396", "40.120697"], ["74.57305", "40.295485"], ["74.65313", "40.30568"], ["74.68538", "40.371234"], ["74.834146", "40.370645"], ["74.764109", "40.445837"], ["74.82522", "40.547706"], ["74.991968", "40.485604"], ["75.234225", "40.478276"], ["75.595829", "40.68866"], ["75.623209", "40.675235"], ["75.670288", "40.537172"], ["75.761075", "40.482617"], ["75.702088", "40.361506"], ["75.718331", "40.319244"], ["75.831778", "40.356634"], ["75.909498", "40.327457"], ["75.962198", "40.405801"], ["76.169136", "40.4108"], ["76.276231", "40.468254"], ["76.350474", "40.381058"], ["76.518981", "40.485522"], ["76.629574", "40.63177"], ["76.618888", "40.769281"], ["76.705191", "40.836687"], ["76.738064", "40.970777"], ["76.866853", "41.052415"], ["77.002079", "41.102703"], ["77.174621", "41.038594"], ["77.761016", "41.051719"], ["77.819595", "41.177071"], ["78.104789", "41.252161"], ["78.153155", "41.41058"], ["78.633699", "41.494773"], ["78.691227", "41.573398"], ["79.204752", "41.752489"], ["79.314144", "41.836204"], ["79.760721", "41.919283"], ["79.886034", "42.062214"], ["80.133162", "42.067184"], ["80.141101", "42.212865"], ["80.253518", "42.271926"], ["80.176806", "42.427971"], ["80.233755", "42.509043"], ["80.134728", "42.629333"], ["80.233669", "42.836907"], ["80.527124", "42.908804"], ["80.358446", "43.012006"], ["80.363209", "43.05597"], ["80.77054", "43.196057"], ["80.751915", "43.283969"], ["80.657952", "43.321619"], ["80.722024", "43.489763"], ["80.498157", "43.799783"], ["80.367136", "44.112086"], ["80.382199", "44.282371"], ["80.320637", "44.484489"], ["80.375676", "44.600628"], ["80.200903", "44.711915"], ["80.153825", "44.809898"], ["79.982829", "44.769908"], ["79.863417", "44.896027"], ["79.863911", "44.925979"], ["80.099001", "45.081976"], ["80.380783", "45.073778"], ["80.472493", "45.151008"], ["80.593643", "45.1361"], ["80.723355", "45.20611"], ["80.897505", "45.157969"], ["81.777248", "45.412611"], ["81.933761", "45.262246"], ["82.295816", "45.254845"], ["82.544253", "45.206065"], ["82.569401", "45.340669"], ["82.52743", "45.402307"], ["82.265496", "45.514783"], ["82.238288", "45.626914"], ["82.311373", "45.780155"], ["82.319655", "45.956177"], ["82.440763", "46.003982"], ["82.822452", "46.775333"], ["83.012309", "47.24291"], ["83.148286", "47.241861"], ["83.371532", "47.179737"], ["83.583899", "47.087891"], ["83.927865", "46.999324"], ["84.753106", "47.038661"], ["84.955001", "46.896507"], ["85.227256", "47.083274"], ["85.529079", "47.087102"], ["85.670679", "47.295094"], ["85.656817", "47.416255"], ["85.581307", "47.505664"], ["85.500433", "48.023314"], ["85.564678", "48.210504"], ["85.778117", "48.445159"], ["86.21609", "48.461326"], ["86.297393", "48.520485"], ["86.571493", "48.56921"], ["86.745751", "48.738276"], ["86.72689", "48.79468"], ["86.785169", "48.850936"], ["86.706676", "48.980358"], ["86.708565", "49.011387"], ["86.889625", "49.162344"], ["87.145572", "49.183316"], ["87.435358", "49.10582"], ["87.476878", "49.120484"], ["87.490826", "49.169134"], ["87.836187", "49.198616"], ["87.895432", "49.115877"], ["87.87024", "49.056222"], ["87.9406", "48.974696"], ["87.803872", "48.87904"], ["88.125672", "48.72326"], ["88.023491", "48.591881"], ["88.35763", "48.495848"], ["88.450756", "48.423234"], ["88.527102", "48.435337"], ["88.631537", "48.352171"], ["88.608513", "48.280466"], ["88.657844", "48.207172"], ["88.828926", "48.136652"], ["88.942652", "48.146274"], ["89.088199", "48.017358"], ["89.571383", "48.066881"], ["89.777999", "47.863838"], ["90.077548", "47.910676"], ["90.155997", "47.747389"], ["90.399628", "47.669347"], ["90.413575", "47.647046"], ["90.398619", "47.62125"]] - , JPN = [["145.824681", "43.408601"], ["145.802708", "43.198731"], ["145.188847", "43.068449"], ["144.992667", "42.907867"], ["143.970938", "42.890345"], ["143.384543", "42.351736"], ["143.299399", "41.875506"], ["142.95333", "42.100071"], ["142.391844", "42.272669"], ["141.369501", "42.535185"], ["140.832544", "42.147648"], ["141.028863", "41.945699"], ["141.296655", "41.765675"], ["141.564447", "41.265171"], ["141.675004", "40.481173"], ["141.829516", "40.300647"], ["141.982619", "40.122464"], ["142.142627", "39.594221"], ["142.025897", "39.368452"], ["142.021777", "39.317473"], ["141.850783", "38.901626"], ["140.939308", "35.65669"], ["139.436268", "34.193845"], ["137.347075", "34.1603"], ["135.63835", "33.29272"], ["133.488103", "32.70897"], ["131.614016", "31.325292"], ["130.633951", "28.842845"], ["127.785048", "25.789008"], ["126.597333", "26.344784"], ["128.404011", "28.563857"], ["128.940636", "30.856318"], ["128.544464", "32.79621"], ["129.194642", "34.475467"], ["129.324698", "34.765641"], ["129.502255", "34.700627"], ["129.480282", "33.855809"], ["130.439605", "33.915587"], ["130.801388", "34.159716"], ["130.791882", "34.445506"], ["131.121471", "34.437578"], ["131.298124", "34.567727"], ["132.535148", "35.287335"], ["132.978675", "36.154847"], ["133.268559", "36.366209"], ["134.710796", "35.708808"], ["135.303308", "35.794165"], ["136.404389", "36.456814"], ["136.612743", "37.37546"], ["137.409252", "37.580348"], ["137.291471", "36.906421"], ["137.982237", "37.126821"], ["138.504087", "37.383552"], ["138.758146", "37.83898"], ["139.207212", "38.04151"], ["139.310081", "38.315743"], ["139.737028", "38.85997"], ["139.403318", "39.234917"], ["139.952634", "39.328459"], ["140.002073", "39.745742"], ["139.695586", "39.824208"], ["139.679107", "40.025361"], ["139.935912", "40.077921"], ["140.001079", "40.309807"], ["139.922802", "40.434311"], ["139.828954", "40.646676"], ["139.95008", "40.766604"], ["139.957833", "41.432491"], ["140.001779", "42.027933"], ["139.389291", "42.038134"], ["139.346719", "42.242877"], ["139.63099", "42.291658"], ["139.72712", "42.641155"], ["139.942098", "42.710048"], ["140.194783", "42.842098"], ["140.30396", "42.856193"], ["140.309453", "43.306551"], ["140.393224", "43.399418"], ["140.61976", "43.355264"], ["140.788732", "43.238558"], ["140.923314", "43.24556"], ["141.029058", "43.24356"], ["141.083989", "43.216544"], ["141.141667", "43.185513"], ["141.336675", "43.240561"], ["141.328435", "43.731771"], ["141.350408", "43.792272"], ["141.594854", "43.937818"], ["141.565334", "44.291761"], ["141.70541", "44.45177"], ["141.708157", "44.742196"], ["141.683437", "45.002047"], ["141.226594", "45.076599"], ["141.053559", "45.165748"], ["140.987641", "45.335905"], ["140.943696", "45.481498"], ["141.201589", "45.501064"], ["141.972005", "45.52416"], ["142.341996", "45.204477"], ["142.567215", "45.014513"], ["142.747966", "44.801094"], ["143.487122", "44.343678"], ["144.463587", "44.078617"], ["144.874201", "44.098345"], ["145.125513", "44.222478"], ["145.300832", "44.391445"], ["145.487445", "44.320885"], ["145.111163", "43.848378"], ["145.420933", "43.545126"], ["145.451146", "43.393635"]] - , EAST = [["73.757316", "29.95798"], ["73.045185", "28.989136"], ["72.434431", "28.60931"], ["72.060098", "28.097836"], ["71.631749", "27.60702"], ["70.67236", "27.593264"], ["69.82743", "27.041579"], ["70.337045", "26.566045"], ["70.070655", "26.098932"], ["70.070655", "25.85946"], ["70.290717", "25.713457"], ["70.626599", "25.671708"], ["70.68451", "25.201036"], ["70.974064", "24.791642"], ["70.811914", "24.612763"], ["70.139151", "24.465923"], ["69.268014", "24.435423"], ["68.313114", "24.267539"], ["67.911051", "23.808548"], ["68.547651", "23.00912"], ["69.11724", "22.684917"], ["68.748682", "22.406416"], ["69.301519", "21.536417"], ["70.153052", "20.55461"], ["71.170222", "20.332219"], ["72.234349", "21.204506"], ["72.501752", "21.087142"], ["72.627589", "19.003767"], ["72.973641", "16.878922"], ["74.267757", "13.888898"], ["75.369075", "10.48118"], ["76.976429", "7.781262"], ["78.374805", "8.242836"], ["79.427902", "9.641233"], ["80.513091", "10.734685"], ["80.254133", "11.953377"], ["80.702994", "13.082541"], ["80.402232", "15.312175"], ["82.991824", "16.887862"], ["85.259974", "19.051683"], ["87.784208", "21.10679"], ["89.263244", "21.658877"], ["89.121009", "23.437218"], ["88.869364", "23.717994"], ["88.93501", "24.317619"], ["88.267603", "24.596482"], ["88.727129", "25.073086"], ["89.186656", "25.132532"], ["88.891246", "25.626788"], ["88.650542", "25.666241"], ["88.201956", "25.892841"], ["88.420778", "26.12883"], ["88.54113", "26.285892"], ["89.241361", "26.020727"], ["89.613359", "25.863309"], ["89.657124", "25.330477"], ["90.190932", "25.070998"], ["91.175632", "25.051175"], ["91.811935", "25.05221"], ["92.234344", "24.983507"], ["92.104658", "24.649259"], ["91.844714", "24.363456"], ["91.46563", "24.215373"], ["90.999897", "23.839459"], ["91.216517", "23.054471"], ["91.389672", "22.300847"], ["92.125338", "20.623521"], ["93.946113", "18.753448"], ["92.823675", "16.135717"], ["91.224276", "9.998681"], ["93.522355", "5.752403"], ["96.409859", "0.991383"], ["100.048825", "-3.72227"], ["104.60328", "-7.736835"], ["114.01025", "-9.967468"], ["123.433702", "-11.032285"], ["123.717523", "-10.536628"], ["124.427075", "-10.257467"], ["125.004217", "-9.79418"], ["125.026253", "-9.527403"], ["125.12788", "-9.406056"], ["125.031601", "-9.358561"], ["124.946021", "-9.216037"], ["125.026253", "-9.168516"], ["125.192065", "-9.13155"], ["125.181368", "-8.982538"], ["124.999509", "-8.987821"], ["124.919277", "-8.924418"], ["125.095787", "-8.596662"], ["125.555784", "-8.088612"], ["125.721597", "-8.120384"], ["127.292232", "-8.326419"], ["132.424841", "-8.447132"], ["139.646777", "-8.512957"], ["141.039618", "-9.209048"], ["141.025347", "-6.894209"], ["140.978655", "-6.887392"], ["140.92235", "-6.851943"], ["140.912737", "-6.791946"], ["140.905871", "-6.737397"], ["140.850939", "-6.695117"], ["140.903124", "-6.59554"], ["140.945696", "-6.509588"], ["141.000442", "-6.341825"], ["140.971754", "-2.322171"], ["131.63417", "2.671779"], ["125.182746", "17.665698"], ["120.512231", "19.243264"], ["119.486602", "16.550429"], ["119.820154", "12.379244"], ["115.293339", "5.77989"], ["114.675587", "4.850295"], ["114.550618", "4.735342"], ["113.923024", "4.60805"], ["113.581092", "3.881824"], ["113.423754", "3.763395"], ["113.138025", "3.427757"], ["112.798973", "3.119213"], ["111.886744", "2.960093"], ["109.608393", "3.016867"], ["108.771364", "3.935896"], ["107.181008", "7.101455"], ["110.509765", "12.398562"], ["108.171244", "18.449712"], ["108.482399", "21.923911"], ["106.042422", "23.36869"], ["103.861684", "23.500971"], ["101.853026", "22.51803"], ["101.964992", "22.453371"], ["102.079606", "22.467488"], ["102.100842", "22.366033"], ["102.192713", "22.264854"], ["102.457234", "22.052786"], ["102.482552", "21.991854"], ["102.505944", "21.933096"], ["102.598494", "21.858522"], ["102.635027", "21.768076"], ["102.625285", "21.706993"], ["102.652076", "21.663993"], ["102.749497", "21.641356"], ["102.798208", "21.673047"], ["102.841349", "21.836472"], ["102.857688", "21.688772"], ["102.936435", "21.684707"], ["102.971433", "21.587108"], ["102.897061", "21.530145"], ["102.831439", "21.416153"], ["102.853313", "21.363197"], ["102.770191", "21.249074"], ["102.905811", "20.975636"], ["103.219101", "20.747931"], ["103.517772", "20.714677"], ["103.809332", "20.581588"], ["103.928404", "20.796397"], ["104.17602", "20.868718"], ["104.456453", "20.674762"], ["104.597217", "20.649539"], ["104.494205", "20.561152"], ["104.33078", "20.448774"], ["104.574769", "20.381484"], ["104.658948", "20.213054"], ["104.76838", "20.149846"], ["104.838529", "20.181454"], ["104.938282", "20.043215"], ["104.745932", "19.888842"], ["104.790827", "19.817585"], ["104.656142", "19.725166"], ["104.580381", "19.643265"], ["104.41625", "19.738372"], ["104.315236", "19.711959"], ["104.004834", "19.776374"], ["103.978829", "19.601517"], ["104.057089", "19.487272"], ["103.795479", "19.292317"], ["104.05618", "19.205901"], ["104.303857", "19.041792"], ["104.509718", "18.953592"], ["104.638381", "18.819682"], ["104.82816", "18.734411"], ["105.081179", "18.714495"], ["105.090265", "18.561021"], ["105.010482", "18.494337"], ["105.215532", "18.232365"], ["105.507333", "18.022503"], ["105.673181", "17.706155"], ["105.959258", "17.411042"], ["106.393016", "16.974064"], ["106.530565", "16.907086"], ["106.511314", "16.705452"], ["106.610307", "16.485756"], ["106.704089", "16.360817"], ["106.855183", "16.430793"], ["106.917705", "16.245803"], ["107.074009", "16.275813"], ["107.178212", "16.130721"], ["107.386617", "15.975505"], ["107.256364", "15.895346"], ["107.157745", "15.729918"], ["107.270294", "15.538977"], ["107.541111", "15.371176"], ["107.598724", "15.119441"], ["107.495192", "15.087312"], ["107.421241", "14.973038"], ["107.491494", "14.719275"], ["107.439728", "14.558285"], ["107.365777", "14.619117"], ["107.28443", "14.576179"], ["107.125343", "14.454386"], ["107.058787", "14.468707"], ["106.862816", "14.336197"], ["106.714913", "14.443644"], ["106.640961", "14.525985"], ["106.467176", "14.622607"], ["106.385829", "14.475868"], ["106.219438", "14.500928"], ["106.189858", "14.42932"], ["106.104814", "14.407834"], ["105.956911", "14.346944"], ["105.993887", "14.192854"], ["106.138092", "14.056594"], ["106.067838", "13.984846"], ["105.938423", "13.948964"], ["105.860774", "14.067355"], ["105.570516", "14.196239"], ["105.40579", "14.123984"], ["105.307739", "14.207645"], ["105.23322", "14.257067"], ["105.284207", "14.321679"], ["105.397946", "14.336879"], ["105.499919", "14.435654"], ["105.550906", "14.617894"], ["105.535217", "14.773437"], ["105.660723", "14.90613"], ["105.629347", "15.019802"], ["105.511685", "15.118269"], ["105.543062", "15.182626"], ["105.660723", "15.2848"], ["105.543062", "15.368016"], ["105.641113", "15.40205"], ["105.652879", "15.526792"], ["105.672489", "15.723201"], ["105.433244", "15.866611"], ["105.419865", "16.077323"], ["105.134284", "16.158015"], ["105.05029", "16.303179"], ["104.798307", "16.56635"], ["104.815106", "16.791639"], ["104.807079", "17.064937"], ["104.834545", "17.357467"], ["104.746654", "17.518618"], ["104.392993", "17.569592"], ["104.221867", "17.790865"], ["104.071113", "18.043041"], ["103.989584", "18.196169"], ["103.880878", "18.236734"], ["103.692584", "18.269917"], ["103.616878", "18.310466"], ["103.546996", "18.349162"], ["103.428584", "18.336313"], ["103.370348", "18.277339"], ["103.302336", "18.221647"], ["103.237773", "18.102183"], ["103.207191", "18.040806"], ["103.105249", "17.937384"], ["102.938746", "17.875949"], ["102.914959", "17.827432"], ["102.813018", "17.765959"], ["102.687291", "17.753015"], ["102.568359", "17.830667"], ["102.510593", "17.840371"], ["102.422244", "17.921219"], ["102.310109", "17.960013"], ["102.204769", "17.995566"], ["102.143605", "18.066652"], ["101.987295", "17.966477"], ["101.868364", "17.927685"], ["101.647491", "17.811257"], ["101.148809", "17.535022"], ["101.023374", "17.599797"], ["101.039054", "17.808912"], ["101.175591", "17.993048"], ["101.212078", "18.10208"], ["101.219896", "18.173904"], ["101.206865", "18.240749"], ["101.212078", "18.344679"], ["101.107829", "18.394147"], ["101.092192", "18.45349"], ["101.206865", "18.578877"], ["101.31372", "18.655442"], ["101.272021", "18.741845"], ["101.272021", "18.830671"], ["101.311114", "18.939171"], ["101.370997", "19.079681"], ["101.298023", "19.148632"], ["101.279779", "19.212632"], ["101.22818", "19.375675"], ["101.230424", "19.441269"], ["101.295484", "19.487804"], ["101.29997", "19.591402"], ["101.239397", "19.633668"], ["101.145173", "19.587175"], ["101.093574", "19.629442"], ["100.94102", "19.650571"], ["100.893907", "19.65691"], ["100.864742", "19.616763"], ["100.835578", "19.570265"], ["100.770518", "19.534326"], ["100.611233", "19.574493"], ["100.584312", "19.52164"], ["100.525983", "19.540669"], ["100.46541", "19.637894"], ["100.436245", "19.777288"], ["100.541687", "19.91867"], ["100.597773", "20.190526"], ["100.502946", "20.195053"], ["100.428788", "20.262059"], ["100.379218", "20.36601"], ["100.329779", "20.413638"], ["100.244635", "20.387895"], ["100.173224", "20.317079"], ["100.160865", "20.244943"], ["100.114789", "20.260301"], ["100.107922", "20.315689"], ["100.155988", "20.507461"], ["100.211891", "20.650056"], ["100.290818", "20.736459"], ["100.399973", "20.811825"], ["100.562866", "20.788277"], ["100.673701", "20.899705"], ["100.59616", "20.954029"], ["100.751867", "21.254036"], ["100.998402", "21.338663"], ["101.211622", "21.580378"], ["101.209043", "21.846211"], ["100.909901", "21.894492"], ["100.207565", "21.580378"], ["100.051491", "22.159742"], ["99.466212", "22.436515"], ["99.71333", "23.024318"], ["99.352488", "23.281431"], ["99.03983", "24.3247"], ["98.101855", "24.95993"], ["98.855913", "25.608485"], ["98.911088", "26.812993"], ["98.892697", "27.483968"], ["98.340947", "27.826069"], ["98.120247", "28.377665"], ["97.586888", "28.733061"], ["97.108705", "28.329109"], ["96.658506", "27.787659"], ["96.296725", "28.010502"], ["95.847241", "28.136253"], ["95.288126", "27.787659"], ["94.685158", "27.233428"], ["93.281889", "26.647032"], ["92.037851", "26.720259"], ["90.141229", "26.820605"], ["88.984724", "26.833974"], ["88.731159", "27.080308"], ["88.794435", "27.331629"], ["88.741186", "27.914582"], ["88.223484", "27.953015"], ["88.169108", "27.50057"], ["87.774017", "27.262697"], ["88.215457", "26.870398"], ["87.783036", "26.535989"], ["87.047344", "26.702224"], ["84.777332", "27.310285"], ["83.539214", "27.665305"], ["82.385985", "27.880248"], ["81.010299", "28.662263"], ["80.547568", "29.001896"], ["81.345045", "30.304903"], ["80.749935", "31.185747"], ["80.056967", "31.015739"], ["79.215234", "31.178494"], ["78.991224", "31.346766"], ["79.254658", "31.656243"], ["78.835019", "31.979804"], ["78.65109", "32.12011"], ["78.595912", "32.240756"], ["78.591313", "32.400075"], ["78.669483", "32.54361"], ["78.739513", "32.426665"], ["78.84424", "32.288005"], ["79.067657", "32.24668"], ["79.277111", "32.470789"], ["79.395802", "32.676713"], ["79.235221", "33.233259"], ["79.011803", "33.47819"], ["78.84424", "33.681772"], ["79.182009", "34.336185"], ["78.821102", "34.565916"], ["78.428537", "34.758609"], ["78.294895", "34.940474"], ["78.23791", "35.530039"], ["77.722544", "35.628785"], ["77.294994", "35.609184"], ["76.821489", "35.701892"], ["76.684572", "35.988603"], ["76.399329", "35.919333"], ["76.159724", "35.933192"], ["76.165429", "36.20986"], ["76.074151", "36.366207"], ["75.999987", "36.641347"], ["75.714744", "36.787688"], ["75.562518", "36.805399"], ["75.481245", "36.811057"], ["75.45651", "36.950968"], ["75.253968", "37.023882"], ["75.084541", "37.066268"], ["74.894884", "37.084426"], ["74.735572", "37.122745"], ["74.643309", "37.074934"], ["74.566145", "37.033976"], ["74.549925", "36.938948"], ["74.491692", "37.015218"], ["74.377803", "36.998366"], ["74.261908", "36.915016"], ["74.132106", "36.91687"], ["74.057933", "36.840851"], ["73.967535", "36.853836"], ["73.925813", "36.892775"], ["73.808039", "36.908632"], ["73.728388", "36.920709"], ["73.639124", "36.911926"], ["73.699986", "36.820121"], ["73.765904", "36.814624"], ["73.833196", "36.776135"], ["73.853795", "36.743128"], ["73.834569", "36.711208"], ["73.735692", "36.736525"], ["73.657414", "36.707906"], ["73.599736", "36.711208"], ["73.57227", "36.735425"], ["73.517339", "36.729922"], ["73.397862", "36.757433"], ["73.319585", "36.738726"], ["73.241307", "36.720664"], ["73.175389", "36.732772"], ["73.112218", "36.71516"], ["73.032567", "36.686532"], ["73.039433", "36.651284"], ["73.060033", "36.609405"], ["73.036687", "36.564195"], ["73.002355", "36.529994"], ["72.958409", "36.507921"], ["72.944676", "36.475904"], ["72.886998", "36.474799"], ["72.855412", "36.448292"], ["72.848546", "36.400777"], ["72.832334", "36.374217"], ["72.796629", "36.362053"], ["72.685258", "36.303681"], ["72.663286", "36.274901"], ["72.574022", "36.267151"], ["72.461412", "36.175196"], ["73.530389", "35.809316"], ["74.170542", "35.420826"], ["74.340245", "35.055408"], ["73.9237", "34.612198"], ["73.676858", "34.332391"], ["73.880481", "33.422673"], ["74.651862", "32.906095"], ["75.747223", "32.542685"], ["75.623802", "32.256112"], ["74.975842", "31.968632"], ["74.759855", "31.732749"], ["74.759855", "30.955369"], ["74.327882", "30.584206"], ["74.18929", "30.224947"], ["74.035013", "29.864372"]] - , getOutseaData = function (t) { - return t && "mapbox" === t ? { - boundsP16: [[CHN]], - nebulaOutSea: [] - } : { - boundsP16: [[CHN], [JPN], [EAST]], - nebulaOutSea: [[JPN], [EAST]] - } - } - , geoUtil = new GeometryUtilCls({}) - , CONSTS$1 = { - sV: "https://webapi.amap.com/style_icon/sprite_v8@2x.png", - EU: [LangConf.my.type, LangConf.km.type, LangConf.PU.type, LangConf.th.type, LangConf.$U.type] - } - , MapboxLabelFormat = function (r) { - function t(t) { - var e = r.call(this) || this; - return e.kQ = {}, - e - } - return __extends(t, r), - t.prototype.Ns = function (t, e) { - return r.prototype.Ns.call(this, t, e), - this.rV(t, e) - } - , - t.prototype.rV = function (t, e) { - var r, n, i = (t.data || {}).poilabel || [], a = t.road || [], o = {}, s = this.hV(t); - for (r in i) - i.hasOwnProperty(r) && (n = i[r], - n = this.nV(n, s, e.zoom, e.VQ), - o[r] = n); - return this.oV(a, {}), - o - } - , - t.prototype.nV = function (t, e, r, n) { - for (var i = [], a = this.kQ, o = 0, s = t; o < s.length; o++) { - var u, c, f, h, l, d, v, g, p, m = (y = s[o]).name, b = y.position, T = y.id, x = y.minzoom, M = y.maxzoom, y = void 0 === (y = y.style) ? {} : y; - "mapbox" !== n && 9 <= r && e && !this.uV(b[0]) || (u = y.lV, - c = y.th, - f = y.ih, - d = y.nh, - g = y.qU, - v = y.eh, - h = void 0 === (h = y.textAnchor) ? "bottom" : h, - l = y.rh, - y.sh, - p = y.Kr, - y = y.Qr, - x = [x, M], - M = null, - d && g && v && (this.Fs[CONSTS$1.sV] = 1, - M = [{ - image: CONSTS$1.sV, - size: [g[6] / 2, g[7] / 2], - clipOrigin: [g[4], g[5]], - clipSize: [g[6], g[7]] - }]), - d = null, - m && p && (a[p] || (a[p] = Util.color2RgbaArray(p)), - v = a[p], - g = void 0, - p = 0, - a[y] || (a[y] = Util.color2RgbaArray(y || "")), - a[y] && (g = a[y], - p = 3), - y = this.fV(m) ? [0, m.length] : [], - this.Ws(m, y), - d = { - txt: m, - $G: y, - direction: h || "center", - offset: [0, 0], - style: { - fontSize: l, - fillColor: v, - strokeColor: g, - strokeWidth: p, - fold: !1 - } - }), - y = { - data: { - id: T, - name: m, - txt: m, - position: b[0], - positionType: "relative", - zooms: [c, f], - extData: { - id: T, - type: "poi" - } - }, - opts: { - zIndex: u, - zooms: x, - visible: !0 - } - }, - M && (y.opts.icon = M), - d && (y.opts.text = d), - (y.opts.text || y.opts.icon) && i.push(y)) - } - return i - } - , - t.prototype.oV = function (t, e) { - for (var r = 0, n = t; r < n.length; r++) { - var i = n[r].name - , a = this.fV(i) ? [0, i.length] : []; - i && this.Ws(i, a) - } - } - , - t.prototype.DQ = function (t, e) { - for (var r = [], n = 0, i = t; n < i.length; n++) { - var o = (a = i[n]).path - , s = a.name || "" - , u = labelsUtil.aQ(s.split("")) - , c = a.distance || 1e5; - a.style && a.style[1]; - var f = void 0 === (f = (a = a.style || {}).th) ? zoomRange[0] : f - , h = void 0 === (h = a.ih) ? zoomRange[1] : h - , l = a.Kr - , d = a.Qr - , v = a.rh - , g = a.zIndex - , a = a.Hr; - s && o && o.length && r.push({ - path: o, - positionType: "absolute", - name: s, - $G: [], - CO: u, - rank: g, - BG: void 0 === a ? "name_en" : a, - distance: c, - zooms: [f, h], - style: { - fontSize: v || 12, - fillColor: l, - strokeColor: d - } - }) - } - return r - } - , - t.prototype.fV = function (t) { - return t = LangManager.kU(t), - -1 !== CONSTS$1.EU.indexOf(t) - } - , - t.prototype.uV = function (t) { - for (var e = ProjectionManager.getProjection("EPSG:3857").unproject(t[0], t[1]), r = getOutseaData("mapbox").boundsP16, n = 0; n < r.length; n++) { - var i = r[n]; - if (geoUtil.isPointInPolygon(e, i[0])) - return !1 - } - return !0 - } - , - t.prototype.hV = function (t) { - return t = [[(t = t.Ro)[0], t[1]], [t[2], t[1]], [t[2], t[3]], [t[0], t[3]]], - this.cV(t) - } - , - t.prototype.cV = function (t) { - for (var e = [], r = 0; r < t.length; r++) { - var n = t[r] - , n = ProjectionManager.getProjection("EPSG:3857").unproject(n[0], n[1]); - e.push(n) - } - for (var i = getOutseaData("mapbox").boundsP16, a = 0; a < i.length; a++) { - var o = i[a]; - if (geoUtil.isRingInRingByMapboxB(e, o[0])) - return !0 - } - return !1 - } - , - t.id = "mapbox", - t - }(LabelFormat) - , Color = function () { - function t(t) { - this.type = "AMap.Color", - this.rgba = [], - this.Vb(t) - } - var e = t; - return t.Wb = function (t, e) { - return { - rgba: t.rgba - } - } - , - t.Gb = function (t) { - return new e(t.rgba) - } - , - t.FV = function (t, e) { - var r = (t = this.DV(t[0], t[1], t[2], t[3]))[0] - , n = t[1] - , i = t[2] - , t = t[3]; - return this.GQ(r += (.5 < r ? -.5 : .5) * e * .35, n -= (n - .5) * e * .35 * 5, i -= (i - .5) * e * .35, t) - } - , - t.DV = function (t, e, r, n) { - var i, a, o, s = Math.max(t, e, r), u = Math.min(t, e, r), c = (s + u) / 2; - if (s === u) - i = a = 0; - else { - switch (o = s - u, - a = .5 < c ? o / (2 - s - u) : o / (s + u), - s) { - case t: - i = (e - r) / o + (e < r ? 6 : 0); - break; - case e: - i = (r - t) / o + 2; - break; - case r: - i = (t - e) / o + 4 - } - i /= 6 - } - return [i, a, c, n] - } - , - t.uQ = function (t, e, r) { - return r < 0 && (r += 1), - 1 < r && --r, - r < 1 / 6 ? t + 6 * (e - t) * r : r < .5 ? e : r < 2 / 3 ? t + (e - t) * (2 / 3 - r) * 6 : t - } - , - t.GQ = function (t, e, r, n) { - var i, a, o; - return 0 === e ? i = a = o = r : (i = this.uQ(e = 2 * r - (r = r < .5 ? r * (1 + e) : r + e - r * e), r, t + 1 / 3), - a = this.uQ(e, r, t), - o = this.uQ(e, r, t - 1 / 3)), - [i, a, o, n] - } - , - t.Hb = function (t, e) { - void 0 === e && (e = []); - for (var r = 0, n = t.length; r < n; r += 2) - e[r / 2] = parseInt(t.substr(r, 2), 16); - return e - } - , - t.Yx = function (t) { - return t.startsWith("#") && (t = t.substr(1)), - colorNames[t] ? e.Hb(colorNames[t].substr(1)) : 1 === t.length ? e.Hb(t + t + t + t + t + t) : 3 === t.length ? e.Hb(t[0] + t[0] + t[1] + t[1] + t[2] + t[2]) : 6 === t.length ? e.Hb(t) : [0, 0, 0] - } - , - t.normalize = function (t) { - for (var e = [], r = 0, n = t.length; r < n; r++) - e[r] = t[r] / 255; - return e - } - , - t.create = function (t) { - return t ? new e(t) : null - } - , - t.prototype.normalize = function () { - return [this.rgba[0] / 255, this.rgba[1] / 255, this.rgba[2] / 255, this.rgba[3] / 255] - } - , - t.prototype.Vb = function (t) { - "string" == typeof t ? colorNames[t] ? this.Hb(colorNames[t].substr(1)) : 0 !== t.length && (1 === (t = t.startsWith("#") ? t.substr(1) : t).length ? this.Hb(t + t + t + t + t + t) : 3 === t.length ? this.Hb(t[0] + t[0] + t[1] + t[1] + t[2] + t[2]) : 6 === t.length ? this.Hb(t) : 8 === t.length ? this.$b(t) : t.startsWith("rgba(") ? this.Yb(colorNames[t].substr(1)) : t.startsWith("rgb(") && this.Kb(colorNames[t].substr(1))) : t instanceof Array && (this.rgba[0] = t[0], - this.rgba[1] = t[1], - this.rgba[2] = t[2], - this.rgba[3] = t[3] || 255) - } - , - t.prototype.Hb = function (t) { - this.$b(t + "FF") - } - , - t.prototype.$b = function (t) { - for (var e = 0, r = t.length; e < r; e += 2) - this.rgba[e / 2] = parseInt(t.substr(e, 2), 16) - } - , - t.prototype.Kb = function (t) { - t = t.split(","), - this.rgba[0] = parseInt(t[0].substr(4), 10), - this.rgba[1] = parseInt(t[1], 10), - this.rgba[2] = parseInt(t[2], 10), - this.rgba[3] = 255 - } - , - t.prototype.Yb = function (t) { - t = t.split(","), - this.rgba[0] = parseInt(t[0].substr(5), 10), - this.rgba[1] = parseInt(t[1], 10), - this.rgba[2] = parseInt(t[2], 10), - this.rgba[3] = 255 * parseFloat(t[3]) << 0 - } - , - e = __decorate([InnerClass("Color")], t) - }() - , colorNames = { - aliceblue: "#f0f8ff", - antiquewhite: "#faebd7", - aqua: "#00ffff", - aquamarine: "#7fffd4", - azure: "#f0ffff", - beige: "#f5f5dc", - bisque: "#ffe4c4", - black: "#000000", - blanchedalmond: "#ffebcd", - blue: "#0000ff", - blueviolet: "#8a2be2", - brown: "#a52a2a", - burlywood: "#deb887", - cadetblue: "#5f9ea0", - chartreuse: "#7fff00", - chocolate: "#d2691e", - coral: "#ff7f50", - cornflowerblue: "#6495ed", - cornsilk: "#fff8dc", - crimson: "#dc143c", - cyan: "#00ffff", - darkblue: "#00008b", - darkcyan: "#008b8b", - darkgoldenrod: "#b8860b", - darkgray: "#a9a9a9", - darkgreen: "#006400", - darkkhaki: "#bdb76b", - darkmagenta: "#8b008b", - darkolivegreen: "#556b2f", - darkorange: "#ff8c00", - darkorchid: "#9932cc", - darkred: "#8b0000", - darksalmon: "#e9967a", - darkseagreen: "#8fbc8f", - darkslateblue: "#483d8b", - darkslategray: "#2f4f4f", - darkturquoise: "#00ced1", - darkviolet: "#9400d3", - deeppink: "#ff1493", - deepskyblue: "#00bfff", - dimgray: "#696969", - dodgerblue: "#1e90ff", - firebrick: "#b22222", - floralwhite: "#fffaf0", - forestgreen: "#228b22", - fuchsia: "#ff00ff", - gainsboro: "#dcdcdc", - ghostwhite: "#f8f8ff", - gold: "#ffd700", - goldenrod: "#daa520", - gray: "#808080", - green: "#008000", - greenyellow: "#adff2f", - honeydew: "#f0fff0", - hotpink: "#ff69b4", - indianred: "#cd5c5c", - indigo: "#4b0082", - ivory: "#fffff0", - khaki: "#f0e68c", - lavender: "#e6e6fa", - lavenderblush: "#fff0f5", - lawngreen: "#7cfc00", - lemonchiffon: "#fffacd", - lightblue: "#add8e6", - lightcoral: "#f08080", - lightcyan: "#e0ffff", - lightgoldenrodyellow: "#fafad2", - lightgrey: "#d3d3d3", - lightgreen: "#90ee90", - lightpink: "#ffb6c1", - lightsalmon: "#ffa07a", - lightseagreen: "#20b2aa", - lightskyblue: "#87cefa", - lightslategray: "#778899", - lightsteelblue: "#b0c4de", - lightyellow: "#ffffe0", - lime: "#00ff00", - limegreen: "#32cd32", - linen: "#faf0e6", - magenta: "#ff00ff", - maroon: "#800000", - mediumaquamarine: "#66cdaa", - mediumblue: "#0000cd", - mediumorchid: "#ba55d3", - mediumpurple: "#9370d8", - mediumseagreen: "#3cb371", - mediumslateblue: "#7b68ee", - mediumspringgreen: "#00fa9a", - mediumturquoise: "#48d1cc", - mediumvioletred: "#c71585", - midnightblue: "#191970", - mintcream: "#f5fffa", - mistyrose: "#ffe4e1", - moccasin: "#ffe4b5", - navajowhite: "#ffdead", - navy: "#000080", - oldlace: "#fdf5e6", - olive: "#808000", - olivedrab: "#6b8e23", - orange: "#ffa500", - orangered: "#ff4500", - orchid: "#da70d6", - palegoldenrod: "#eee8aa", - palegreen: "#98fb98", - paleturquoise: "#afeeee", - palevioletred: "#d87093", - papayawhip: "#ffefd5", - peachpuff: "#ffdab9", - peru: "#cd853f", - pink: "#ffc0cb", - plum: "#dda0dd", - powderblue: "#b0e0e6", - purple: "#800080", - rebeccapurple: "#663399", - red: "#ff0000", - rosybrown: "#bc8f8f", - royalblue: "#4169e1", - saddlebrown: "#8b4513", - salmon: "#fa8072", - sandybrown: "#f4a460", - seagreen: "#2e8b57", - seashell: "#fff5ee", - sienna: "#a0522d", - silver: "#c0c0c0", - skyblue: "#87ceeb", - slateblue: "#6a5acd", - slategray: "#708090", - snow: "#fffafa", - springgreen: "#00ff7f", - steelblue: "#4682b4", - tan: "#d2b48c", - teal: "#008080", - thistle: "#d8bfd8", - tomato: "#ff6347", - turquoise: "#40e0d0", - violet: "#ee82ee", - wheat: "#f5deb3", - white: "#ffffff", - whitesmoke: "#f5f5f5", - yellow: "#ffff00", - yellowgreen: "#9acd32" - } - , NebulaLabelFormat = function (r) { - function t(t) { - var e = r.call(this) || this; - return e.bt = 20, - e.WW = 20, - e._opts = {}, - e.uA = {}, - e.vn = t.vn, - e - } - return __extends(t, r), - t.prototype.Ns = function (t, e) { - return e.lang && (this.lang = e.lang), - this._opts = e, - this.bt = e.zoom, - this.WW = e.ZL, - this.rV(t, e.R_) - } - , - t.prototype.rV = function (t, e) { - var r, n, i = t.data || {}, a = i.poilabel || [], o = {}, s = t.cQ; - for (r in a) - a.hasOwnProperty(r) && (n = this.nV(a[r], { - aV: t.zo.z < 10, - cQ: s, - R_: e - }), - o[r] = n); - return i = i.roadName || [], - i = this.oV(i, { - R_: e - }), - o.eA = i, - o - } - , - t.prototype.nV = function (E, t) { - for (var e, r, n, i, a, o, s, u, c, f, h, l, d = CONSTS.Lj, j = d.file, F = d.size, R = CONSTS.Mp, D = CONSTS.Pp, B = CONSTS.jp, G = this._opts.scale, V = (t = void 0 === t ? {} : t).aV, v = t.cQ, z = this.bt, W = [], H = this.lang, q = !v && 5 <= z, g = 0, Y = E; g < Y.length; g++) { - var p = Y[g] - , y = p.cw - , m = p.ew - , b = p.pos - , T = (U = labelsUtil.tQ(p, H, q ? t.R_ : void 0)).name - , K = U.$G || [] - , x = p.rank - , M = p.minzoom || R - , S = (V ? zoomRange[1] : p.maxzoom, - p.Fp) - , A = p.Ep; - if (3 === M && (M = 2), - (10002 !== S || 28 !== A) && (e = this.oA(S, A, this.WW)) && (r = 1 < G || 9 < e.fontSize ? e.fontSize : 9, - o = e.iconFile, - s = e.showMode, - u = e.forceShow, - c = e.zIndex, - p = e.zooms, - w = labelsUtil.Jj([M, zoomRange[1]], p))) { - for (var w, P = (w = labelsUtil.$p(w))[0], I = [], C = {}; P <= w[1];) { - var $ = this.vn.dn(S, A, P); - $ && "0" !== $.iconID && (O = $.iconID, - -1 === I.indexOf(O) && (I.push(O), - C[O] = []), - C[O].push(P)), - P++ - } - (10002 !== S || 20 !== A && 18 !== A) && 16 < r && (r = 15); - for (var N, M = [w[0] - D, w[1] + B], k = (10002 === S && (13 === A || 18 === A) && M[0] <= 3 && (M[0] = 2.5), - f = o && "https" + j[o], - p = { - data: { - id: y ? y + A : "", - position: b, - name: T, - txt: T, - rank: x, - BG: U.type, - extData: { - Lp: S, - Ap: A, - id: y, - type: "poi", - bz: m - } - }, - opts: { - type: "billboard", - angle: 0, - forceShow: u, - zIndex: c, - visible: !0, - zooms: M - } - }, - h = e.xOffset || 0, - l = e.yOffset || 0, - []), b = void 0, x = [0, 0], L = 0; L < I.length; L++) { - var O = I[L] - , X = o && this.aA(parseInt(O, 10)) - , Z = F - , _ = labelsUtil.$p(C[O]) - , J = 1; - !T || "152" !== O && "153" !== O && "154" !== O || (J = T.length <= 2 ? 1 : T.length / 2), - N = vector.Up(Z, 2), - f && k.push({ - type: "image", - image: f, - clipOrigin: vector.add(X, [0, 0]), - clipSize: Z, - size: [N[0] * J, N[1]], - anchor: [10 - 20 * h / 24, 10 - 20 * l / 24], - angle: 0, - retina: !0, - zooms: [_[0] - D, _[_.length - 1] + B] - }) - } - T && (x = "曾母暗沙" === T ? (b = "top", - [0, 5]) : k.length && k[0].image ? (O = I[0], - v && (b = "bottom", - x = [0, 0]), - "北京" === T ? (b = "top", - [0, 3]) : "澳门" === T ? (b = "left", - [0, -2]) : "合肥" === T || "太原" === T || "西安" === T || "郑州" === T || "杭州" === T || "台北" === T || "加德满都" === T ? (b = "bottom", - [0, -3]) : 10002 !== S || 31 !== A && 32 !== A && 34 !== A && 5 !== A ? 1 === s || "152" !== O && "153" !== O && "154" !== O ? (b = "right", - [0, -2]) : (b = "center", - [0, -1]) : (b = "right", - [-3, -3])) : (b = "center", - [h, l])); - var U = "" + S + A; - (y = this.uA[U]) ? (n = y.faceColor, - i = y.borderColor, - a = y.holoColor) : (n = e.faceColor && Color.normalize(e.faceColor.rgba), - i = e.borderColor && Color.normalize(e.borderColor.rgba), - a = 3 === e.showMode ? e.holoColor && Color.normalize(e.holoColor.rgba) : null, - this.uA[U] = { - faceColor: n, - borderColor: i, - holoColor: a - }), - m = T ? { - direction: b, - offset: x, - $G: K, - style: { - fontSize: r, - strokeWidth: 2, - padding: [0, 1, 0, 1], - fold: !v && 5 <= z - } - } : {}, - p.opts && (p.opts.icon = k, - p.opts.text = m), - f && (this.Fs[f] = 1), - T && this.Ws(T, K), - W.push(p) - } - } - return W - } - , - t.prototype.oV = function (t, e) { - for (var r = CONSTS.Lj, n = r.file, i = r.size, a = CONSTS.Mp, o = CONSTS.Rp, s = CONSTS.Pp, u = CONSTS.jp, c = [], f = this._opts.scale, h = this.lang, l = (e = void 0 === e ? {} : e) && e.R_ && e.R_.protocol || "https", d = 0, v = t; d < v.length; d++) { - var g, p, y = v[d], m = y.path, b = y.rank, T = y.minzoom || a, x = y.maxzoom || o, M = y.shield, S = y.shieldType, A = (y = labelsUtil.tQ(y, h)).name, w = y.$G; - A && this.Ws(A, w), - !M || (w = Math.floor(m.length / 2)) < 1 || (m = [m[w - 1], m[w]], - (S = this.oA(40001, w = S, this.WW)) && (g = 1 < f || 9 < S.fontSize ? S.fontSize : 9, - p = S.faceColor, - S = S.iconID, - m = { - data: { - id: Util.stamp(this), - position: m, - positionType: "relative", - name: A, - txt: M, - rank: b, - BG: y.type, - extData: { - type: "shield", - Lp: 40001, - Ap: w - } - }, - opts: { - type: "billboard", - angle: 0, - zooms: [T - s, x + u], - visible: !0 - } - }, - A = this.aA(parseInt(S, 10)), - b = 1 < M.length / 4 ? M.length / 4 : 1, - y = { - type: "image", - image: l + n[0], - clipOrigin: A, - clipSize: i, - size: [24 * (1 < f ? b : 9 * b / 7), 24], - anchor: "center", - angle: 0, - retina: !0 - }, - w = M ? { - direction: "center", - offset: [0, 0], - style: { - fontSize: g, - fillColor: p && Color.normalize(p.rgba), - strokeWidth: 0, - padding: [0, 1, 0, 1] - } - } : {}, - m.opts && (m.opts.text = w, - m.opts.icon = [y]), - M && this.Ws(M), - c.push(m))) - } - return c - } - , - t.prototype.DQ = function (t, e) { - for (var r = CONSTS.Mp, n = CONSTS.Rp, i = CONSTS.Pp, a = CONSTS.jp, o = this.WW = e.zoom, s = 0, u = [], c = this.lang, f = 0, h = t; f < h.length; f++) { - var l, d, v, g, p, y, m, b, T, x, M, S = h[f], A = S.id, w = (l = labelsUtil.tQ(S, c)).name, P = l.$G || []; - w && (l = l.type, - d = labelsUtil.EQ(w, P), - d = labelsUtil.aQ(d), - v = S.rank, - g = S.Fp, - p = S.Ep, - s = S.distance || 0, - y = S.minzoom || r, - m = S.maxzoom || n, - b = (x = (x = this.vn.dn(g, p, o)) && x[1] || {}).fontSize, - T = x.faceColor, - x = x.borderColor, - y = (M = labelsUtil.$p([y, m]))[0], - m = 20 <= (m = M[1]) ? zoomRange[1] : m, - w) && A && b && T && (M = { - id: A, - positionType: "relative", - name: w, - $G: P, - CO: d, - rank: v, - BG: l, - distance: s, - zooms: [y - i, m + a], - path: 0 < S.path.length ? S.path : void 0, - style: { - fontSize: b, - fillColor: vector.Up(T.rgba, 255), - strokeColor: x && vector.Up(x.rgba, 255) - }, - extData: { - mainkey: g, - subkey: p - } - }, - u.push(M)) - } - return u - } - , - t.prototype.aA = function (t) { - var r = (e = CONSTS.Lj).Rj - , e = e.size - , n = Math.floor(t / r); - return t % 10 == 0 && --n, - [(t - r * n - 1) * e[0], n * e[1]] - } - , - t.prototype.oA = function (t, e, r) { - var n = [3, 20] - , i = this.vn.dn(t, e, r) - , a = this.vn.mn(t, e); - if (!i) - for (var o = 1; (n[0] <= r - o || r + o <= n[1]) && !(i = (i = this.vn.dn(t, e, r - o)) || this.vn.dn(t, e, r + o));) - o++; - return i && (i.zooms = a), - i - } - , - t.prototype.mN = function (t, e) { - var r = [0, 0]; - if ("0" === t) - switch (e) { - case "3": - r = [6, 6]; - break; - case "4": - case "5": - case "6": - r = [9, 9] - } - return r - } - , - t.prototype.TN = function (t, e, r) { - var n = r = void 0 === r ? [0, 0] : r; - if ("0" === t) - switch (e) { - case "3": - n = [30, 30]; - break; - case "4": - case "5": - case "6": - n = [20, 20] - } - return n - } - , - t.id = exports.n0.nebulaLabel, - t - }(LabelFormat) - , TileCoord = (function (t) { - t.TOLOAD = "toload", - t.LOADING = "loading", - t.LOADED = "loaded", - t.UNLOADED = "unloaded", - t.ERROR = "error", - t.RELOADING = "reloading" - }(exports.TileState || (exports.TileState = {})), - function () { - function t(t, e, r) { - this.x = e, - this.y = r, - this.z = t, - this.key = t + "," + e + "," + r - } - var n = t; - return t.prototype.s0 = function (t) { - var e = t - this.z - , r = Math.floor(Math.pow(2, e) * this.x) - , e = Math.floor(Math.pow(2, e) * this.y); - return new n(t, r, e) - } - , - n = __decorate([InnerClass("TileCoord")], t) - }()) - , Tile = function () { - function t(t) { - this.type = "tile", - this.Ro = [0, 0, 0, 0], - this.stamp = 0, - this.zo = t, - this.status = exports.TileState.TOLOAD, - this._v = null, - this.data = {} - } - return t.YH = function (t) { - return t.status === exports.TileState.LOADED || t.status === exports.TileState.RELOADING - } - , - t.prototype.destroy = function () { } - , - t.prototype.nG = function (t) { - this.type = t - } - , - __decorate([InnerClass("Tile")], t) - }() - , NebulaTile = function (e) { - function t() { - var t = null !== e && e.apply(this, arguments) || this; - return t.type = "nebula", - t.region = "world", - t.aN = exports.zB.NONE, - t.BN = exports.zB.NONE, - t - } - return __extends(t, e), - Object.defineProperty(t.prototype, "tag", { - get: function () { - return this.nN - }, - set: function (t) { - this.aN = this.tag, - this.nN = t - }, - enumerable: !1, - configurable: !0 - }), - Object.defineProperty(t.prototype, "gB", { - get: function () { - return this.VN - }, - set: function (t) { - this.BN = this.gB, - this.VN = t - }, - enumerable: !1, - configurable: !0 - }), - Object.defineProperty(t.prototype, "data", { - get: function () { - var t = []; - return this.qc && this.qc.Dc ? t.push(this.qc) : (this.sN && t.push(this.sN), - this.uN && t.push(this.uN)), - this.lU && this.lU.Dc ? t.push(this.lU) : (this.fU && t.push(this.fU), - this.cU && t.push(this.cU)), - this.zN && this.zN.labels ? t.push(this.zN) : (this.HN && t.push(this.HN), - this.WN && t.push(this.WN)), - this.dU && this.dU.labels ? t.push(this.dU) : (this.vU && t.push(this.vU), - this.gU && t.push(this.gU)), - t - }, - set: function (t) { }, - enumerable: !1, - configurable: !0 - }), - t.prototype.xa = function (t, e) { - if (void 0 === e && (e = exports.zB.ALL), - Object.keys(t)) - switch (e) { - case exports.zB.LITE: - this.uN = exports.Ln(exports.Ln({}, this.uN), t); - break; - case exports.zB.LEFT: - this.sN = exports.Ln(exports.Ln({}, this.sN), t); - break; - default: - exports.zB.ALL, - this.qc = exports.Ln(exports.Ln({}, this.qc), t) - } - } - , - t.prototype.JE = function (t, e) { - if (void 0 === e && (e = exports.zB.ALL), - Object.keys(t)) - switch (e) { - case exports.zB.LITE: - this.cU = exports.Ln(exports.Ln({}, this.cU), t); - break; - case exports.zB.LEFT: - this.fU = exports.Ln(exports.Ln({}, this.fU), t); - break; - default: - exports.zB.ALL, - this.lU = exports.Ln(exports.Ln({}, this.lU), t) - } - } - , - t.prototype.rO = function (t, e) { - if (void 0 === e && (e = exports.zB.ALL), - Object.keys(t)) - switch (e) { - case exports.zB.LITE: - this.WN = exports.Ln(exports.Ln({}, this.WN), t); - break; - case exports.zB.LEFT: - this.HN = exports.Ln(exports.Ln({}, this.HN), t); - break; - default: - exports.zB.ALL, - this.zN = exports.Ln(exports.Ln({}, this.zN), t) - } - } - , - t.prototype.qE = function (t, e) { - if (void 0 === e && (e = exports.zB.ALL), - Object.keys(t)) - switch (e) { - case exports.zB.LITE: - this.gU = exports.Ln(exports.Ln({}, this.gU), t); - break; - case exports.zB.LEFT: - this.vU = exports.Ln(exports.Ln({}, this.vU), t); - break; - default: - exports.zB.ALL, - this.dU = exports.Ln(exports.Ln({}, this.dU), t) - } - } - , - t.prototype.ID = function (t) { - t && (t.uN && (this.uN = t.uN), - t.sN && (this.sN = t.sN), - t.qc && (this.qc = t.qc), - t.WN && (this.WN = t.WN), - t.HN && (this.HN = t.HN), - t.zN) && (this.zN = t.zN) - } - , - t.prototype.rN = function () { - this.aN ? this.nN = this.aN : this.nN = exports.zB.NONE, - this.BN && (this.VN = this.BN, - this.nN = exports.zB.NONE) - } - , - t.prototype.AB = function () { - var t = []; - return this.qc && this.qc.road && this.zN && this.zN.labels ? t.push(this.qc) : (this.sN && this.sN.road && this.HN && this.HN.labels && t.push(this.sN), - this.uN && this.uN.road && this.WN && this.WN.labels && t.push(this.uN)), - t - } - , - t.prototype.LY = function (t, e) { - for (var r = 0, n = this.data; r < n.length; r++) { - var i = n[r]; - i.Dc && i.Dc.upload(t, !0), - i.$c && i.$c.upload(t, !0), - i.A_ && i.A_.upload(t, !0), - i.FD && i.FD.upload(t, !0) - } - } - , - t.prototype.destroy = function () { - var t = this.data; - if (t) - for (var e = 0, r = t; e < r.length; e++) { - var n = r[e]; - if (n.Dc && (n.Dc.destroy(), - delete n.Dc), - n.$c && (n.$c.destroy(), - delete n.$c), - n.labels) { - for (var i = 0, a = n.labels; i < a.length; i++) - a[i].destroy(); - delete n.labels - } - n.Ta = !1, - delete n.gf - } - } - , - t.prototype.KE = function (t) { - for (var e, r = this.data, n = [], i = 0, a = t; i < a.length; i++) - (o = a[i]).road && n.push(o.road); - for (var o, s = 0, u = r; s < u.length; s++) - (o = u[s]).XE && (e = o.XE, - this.pU(n, e)) - } - , - t.prototype.reload = function () { - delete this.lU, - delete this.cU, - delete this.fU, - delete this.zN, - delete this.WN, - delete this.HN, - delete this.VN, - this.BN = exports.zB.NONE - } - , - t.prototype.pU = function (t, e) { - for (var r = 0, n = e; r < n.length; r++) { - var i = n[r] - , a = i.id; - if (i.path) - break; - for (var o = 0, s = t; o < s.length; o++) { - var u = s[o]; - i.path = this.yU(u, a) - } - } - } - , - t.prototype.yU = function (t, e) { - for (var r = 0, n = t; r < n.length; r++) { - var i = n[r]; - if (i.id === e) - return i.path - } - } - , - t.prototype.oN = function () { - var t = this.qc; - return !!(t = Object.keys(t || {})).length && (1 !== t.length || "sdfLoaded" !== t[0]) - } - , - __decorate([InnerClass("NebulaTile")], t) - }(Tile) - , RasterTile = function (e) { - function t() { - var t = null !== e && e.apply(this, arguments) || this; - return t.type = "raster", - t - } - return __extends(t, e), - t.prototype.destroy = function () { - var t = this.data; - t && (t.texture && (t.texture.destroy(), - delete t.texture), - t.zs && (t.zs.context.deleteBuffer(t.zs), - delete t.zs), - t.Js) && (t.Js.destroy(), - delete t.Js) - } - , - t - }(Tile) - , VectorTile = function (e) { - function t() { - var t = null !== e && e.apply(this, arguments) || this; - return t.type = "vector", - t - } - return __extends(t, e), - t.prototype.destroy = function () { - var t = this.data; - t && (t.$c && (t.$c.destroy(), - delete t.$c), - t.Uc) && delete t.Uc - } - , - __decorate([InnerClass("VectorTile")], t) - }(Tile); - function quickselect(t, e, r, n, i) { - quickselectStep(t, e, r || 0, n || t.length - 1, i || defaultCompare) - } - function quickselectStep(t, e, r, n, i) { - for (; r < n;) { - 600 < n - r && (a = n - r + 1, - o = e - r + 1, - u = Math.log(a), - s = .5 * Math.exp(2 * u / 3), - u = .5 * Math.sqrt(u * s * (a - s) / a) * (o - a / 2 < 0 ? -1 : 1), - quickselectStep(t, e, Math.max(r, Math.floor(e - o * s / a + u)), Math.min(n, Math.floor(e + (a - o) * s / a + u)), i)); - var a, o, s, u, c = t[e], f = r, h = n; - for (swap(t, r, e), - 0 < i(t[n], c) && swap(t, r, n); f < h;) { - for (swap(t, f, h), - f++, - h--; i(t[f], c) < 0;) - f++; - for (; 0 < i(t[h], c);) - h-- - } - 0 === i(t[r], c) ? swap(t, r, h) : swap(t, ++h, n), - h <= e && (r = h + 1), - e <= h && (n = h - 1) - } - } - function swap(t, e, r) { - var n = t[e]; - t[e] = t[r], - t[r] = n - } - function defaultCompare(t, e) { - return t < e ? -1 : e < t ? 1 : 0 - } - var rbush_1 = rbush, default_1 = rbush, Status, M; - function rbush(t, e) { - if (!(this instanceof rbush)) - return new rbush(t, e); - this.Bc = Math.max(4, t || 9), - this.Wc = Math.max(2, Math.ceil(.4 * this.Bc)), - e && this.Gc(e), - this.clear() - } - function findItem(t, e, r) { - if (!r) - return e.indexOf(t); - for (var n = 0; n < e.length; n++) - if (r(t, e[n])) - return n; - return -1 - } - function calcBBox(t, e) { - distBBox(t, 0, t.children.length, e, t) - } - function distBBox(t, e, r, n, i) { - (i = i || createNode(null)).ja = 1 / 0, - i.Fa = 1 / 0, - i.Oa = -1 / 0, - i.Ea = -1 / 0; - for (var a, o = e; o < r; o++) - a = t.children[o], - extend$1(i, t.Zc ? n(a) : a); - return i - } - function extend$1(t, e) { - t.ja = Math.min(t.ja, e.ja), - t.Fa = Math.min(t.Fa, e.Fa), - t.Oa = Math.max(t.Oa, e.Oa), - t.Ea = Math.max(t.Ea, e.Ea) - } - function compareNodeMinX(t, e) { - return t.ja - e.ja - } - function compareNodeMinY(t, e) { - return t.Fa - e.Fa - } - function bboxArea(t) { - return (t.Oa - t.ja) * (t.Ea - t.Fa) - } - function bboxMargin(t) { - return t.Oa - t.ja + (t.Ea - t.Fa) - } - function enlargedArea(t, e) { - return (Math.max(e.Oa, t.Oa) - Math.min(e.ja, t.ja)) * (Math.max(e.Ea, t.Ea) - Math.min(e.Fa, t.Fa)) - } - function intersectionArea(t, e) { - var r = Math.max(t.ja, e.ja) - , n = Math.max(t.Fa, e.Fa) - , i = Math.min(t.Oa, e.Oa) - , t = Math.min(t.Ea, e.Ea); - return Math.max(0, i - r) * Math.max(0, t - n) - } - function contains(t, e) { - return t.ja <= e.ja && t.Fa <= e.Fa && e.Oa <= t.Oa && e.Ea <= t.Ea - } - function intersects(t, e) { - return e.ja <= t.Oa && e.Fa <= t.Ea && e.Oa >= t.ja && e.Ea >= t.Fa - } - function createNode(t) { - return { - children: t, - height: 1, - Zc: !0, - ja: 1 / 0, - Fa: 1 / 0, - Oa: -1 / 0, - Ea: -1 / 0 - } - } - function multiSelect(t, e, r, n, i) { - for (var a, o = [e, r]; o.length;) - (r = o.pop()) - (e = o.pop()) <= n || (quickselect(t, a = e + Math.ceil((r - e) / n / 2) * n, e, r, i), - o.push(e, a, a, r)) - } - function getModule() { - return M = M || { - nS: function (clsName, clsText) { - try { - eval(clsText) - } catch (e) { - throw e - } - }, - eS: { - iS: "1675771500592", - BY: !Browser.DW && config[13] - } - }, - M - } - rbush.prototype = { - all: function () { - return this.qc(this.data, []) - }, - search: function (t) { - var e = this.data - , r = [] - , n = this.Yc; - if (intersects(t, e)) - for (var i, a, o, s, u = []; e;) { - for (i = 0, - a = e.children.length; i < a; i++) - o = e.children[i], - intersects(t, s = e.Zc ? n(o) : o) && (e.Zc ? r.push(o) : contains(t, s) ? this.qc(o, r) : u.push(o)); - e = u.pop() - } - return r - }, - Vc: function (t) { - var e = this.data - , r = this.Yc; - if (intersects(t, e)) - for (var n, i, a, o, s = []; e;) { - for (n = 0, - i = e.children.length; n < i; n++) - if (a = e.children[n], - intersects(t, o = e.Zc ? r(a) : a)) { - if (e.Zc || contains(t, o)) - return !0; - s.push(a) - } - e = s.pop() - } - return !1 - }, - load: function (t) { - if (t && t.length) - if (t.length < this.Wc) - for (var e = 0, r = t.length; e < r; e++) - this.Xc(t[e]); - else { - var n, i = this.Hc(t.slice(), 0, t.length - 1, 0); - this.data.children.length ? this.data.height === i.height ? this.Jc(this.data, i) : (this.data.height < i.height && (n = this.data, - this.data = i, - i = n), - this.Kc(i, this.data.height - i.height - 1, !0)) : this.data = i - } - return this - }, - Xc: function (t) { - return t && this.Kc(t, this.data.height - 1), - this - }, - clear: function () { - return this.data = createNode([]), - this - }, - remove: function (t, e) { - if (t) - for (var r, n, i, a, o = this.data, s = this.Yc(t), u = [], c = []; o || u.length;) { - if (o || (o = u.pop(), - n = u[u.length - 1], - r = c.pop(), - a = !0), - o.Zc && -1 !== (i = findItem(t, o.children, e))) - return o.children.splice(i, 1), - u.push(o), - this.Qc(u), - this; - a || o.Zc || !contains(o, s) ? n ? (r++, - o = n.children[r], - a = !1) : o = null : (u.push(o), - c.push(r), - o = (n = o).children[r = 0]) - } - return this - }, - Yc: function (t) { - return t - }, - tf: compareNodeMinX, - if: compareNodeMinY, - toJSON: function () { - return this.data - }, - ef: function (t) { - return this.data = t, - this - }, - qc: function (t, e) { - for (var r = []; t;) - t.Zc ? e.push.apply(e, t.children) : r.push.apply(r, t.children), - t = r.pop(); - return e - }, - Hc: function (t, e, r, n) { - var i, a = r - e + 1, o = this.Bc; - if (a <= o) - calcBBox(i = createNode(t.slice(e, r + 1)), this.Yc); - else { - n || (n = Math.ceil(Math.log(a) / Math.log(o)), - o = Math.ceil(a / Math.pow(o, n - 1))), - (i = createNode([])).Zc = !1, - i.height = n; - var s, u, c, f, h = Math.ceil(a / o), l = h * Math.ceil(Math.sqrt(o)); - for (multiSelect(t, e, r, l, this.tf), - s = e; s <= r; s += l) - for (multiSelect(t, s, c = Math.min(s + l - 1, r), h, this.if), - u = s; u <= c; u += h) - f = Math.min(u + h - 1, c), - i.children.push(this.Hc(t, u, f, n - 1)); - calcBBox(i, this.Yc) - } - return i - }, - nf: function (t, e, r, n) { - for (var i, a, o, s, u, c, f, h; n.push(e), - !e.Zc && n.length - 1 !== r;) { - for (f = h = 1 / 0, - i = 0, - a = e.children.length; i < a; i++) - u = bboxArea(o = e.children[i]), - (c = enlargedArea(t, o) - u) < h ? (h = c, - f = u < f ? u : f, - s = o) : c === h && u < f && (f = u, - s = o); - e = s || e.children[0] - } - return e - }, - Kc: function (t, e, r) { - var n = this.Yc - , r = r ? t : n(t) - , i = []; - for ((n = this.nf(r, this.data, e, i)).children.push(t), - extend$1(n, r); 0 <= e && i[e].children.length > this.Bc;) - this.af(i, e), - e--; - this.sf(r, i, e) - }, - af: function (t, e) { - var r = t[e] - , n = r.children.length - , i = this.Wc - , i = (this.rf(r, i, n), - this.hf(r, i, n)); - (n = createNode(r.children.splice(i, r.children.length - i))).height = r.height, - n.Zc = r.Zc, - calcBBox(r, this.Yc), - calcBBox(n, this.Yc), - e ? t[e - 1].children.push(n) : this.Jc(r, n) - }, - Jc: function (t, e) { - this.data = createNode([t, e]), - this.data.height = t.height + 1, - this.data.Zc = !1, - calcBBox(this.data, this.Yc) - }, - hf: function (t, e, r) { - for (var n, i, a, o, s, u = o = 1 / 0, c = e; c <= r - e; c++) - i = intersectionArea(a = distBBox(t, 0, c, this.Yc), n = distBBox(t, c, r, this.Yc)), - a = bboxArea(a) + bboxArea(n), - i < u ? (u = i, - s = c, - o = a < o ? a : o) : i === u && a < o && (o = a, - s = c); - return s - }, - rf: function (t, e, r) { - var n = t.Zc ? this.tf : compareNodeMinX - , i = t.Zc ? this.if : compareNodeMinY; - this.lf(t, e, r, n) < this.lf(t, e, r, i) && t.children.sort(n) - }, - lf: function (t, e, r, n) { - t.children.sort(n); - for (var i, a = this.Yc, o = distBBox(t, 0, e, a), s = distBBox(t, r - e, r, a), u = bboxMargin(o) + bboxMargin(s), c = e; c < r - e; c++) - i = t.children[c], - extend$1(o, t.Zc ? a(i) : i), - u += bboxMargin(o); - for (c = r - e - 1; e <= c; c--) - i = t.children[c], - extend$1(s, t.Zc ? a(i) : i), - u += bboxMargin(s); - return u - }, - sf: function (t, e, r) { - for (var n = r; 0 <= n; n--) - extend$1(e[n], t) - }, - Qc: function (t) { - for (var e, r = t.length - 1; 0 <= r; r--) - 0 === t[r].children.length ? 0 < r ? (e = t[r - 1].children).splice(e.indexOf(t[r]), 1) : this.clear() : calcBBox(t[r], this.Yc) - }, - Gc: function (t) { - var e = ["return a", " - b", ";"]; - this.tf = new Function("a", "b", e.join(t[0])), - this.if = new Function("a", "b", e.join(t[1])), - this.Yc = new Function("a", "return {minX: a" + t[0] + ", minY: a" + t[1] + ", maxX: a" + t[2] + ", maxY: a" + t[3] + "};") - } - }, - rbush_1.default = default_1, - function (t) { - t.loading = "loading", - t.loaded = "loaded" - }(Status = Status || {}); - var M = getModule() - , Queue = function () { - function t() { - this.tT = {} - } - return t.prototype.add = function (t, e) { - for (var r = t.length, n = 0, i = function () { - (n += 1) === r && e && e() - }, a = 0, o = t; a < o.length; a++) { - var s = o[a]; - this._add(s, i) - } - } - , - t.prototype.has = function (t) { - return (t = this.tT[t]) && t.status === Status.loaded - } - , - t.prototype.finish = function (t) { - if (t = this.tT[t]) { - t.status = Status.loaded; - for (var e = 0, r = t.pI; e < r.length; e++) { - var n = r[e]; - n && n() - } - } - } - , - t.prototype._add = function (t, e) { - var r = this.tT[t]; - r ? r.status === Status.loading ? r.pI.push(e) : e() : this.tT[t] = { - pI: [e], - status: Status.loading - } - } - , - t - }() - , Module = getModule(); - function InnerClass(e) { - return function (t) { - getModule()[e] = t - } - } - getModule().MapboxLabelFormat = MapboxLabelFormat, - getModule().NebulaLabelFormat = NebulaLabelFormat, - getModule()._LocalZoom = { - Ra: 13, - za: 12, - Ge: "" - }, - getModule().Support = Browser, - getModule().geo = { - lcs: lcs, - ProjectionManager: ProjectionManager - }, - getModule().transform = transform, - getModule().Util = Util, - getModule().TileState = exports.TileState, - getModule().assign = assign, - getModule().labelsUtil = labelsUtil, - getModule().LabelsRenderUtil = LabelsRenderUtil, - getModule().vector = vector, - getModule().rbush = rbush_1, - getModule().lodash = { - map: map, - find: find, - assign: assign, - every: every, - some: some - }; - var isSupportFloat32Array = "undefined" != typeof Float32Array - , EPSILON = (isSupportFloat32Array || (window.Float32Array = void 0, - setMatrixArrayType(Array)), - 1e-6) - , ARRAY_TYPE = "undefined" != typeof Float32Array ? Float32Array : Array; - function setMatrixArrayType(t) { - ARRAY_TYPE = t - } - function fromValues(t, e, r, n) { - var i = new ARRAY_TYPE(4); - return i[0] = t, - i[1] = e, - i[2] = r, - i[3] = n, - i - } - function create() { - var t = new ARRAY_TYPE(16); - return ARRAY_TYPE != Float32Array && (t[1] = 0, - t[2] = 0, - t[3] = 0, - t[4] = 0, - t[6] = 0, - t[7] = 0, - t[8] = 0, - t[9] = 0, - t[11] = 0, - t[12] = 0, - t[13] = 0, - t[14] = 0), - t[0] = 1, - t[5] = 1, - t[10] = 1, - t[15] = 1, - t - } - function identity$1(t) { - return t[0] = 1, - t[1] = 0, - t[2] = 0, - t[3] = 0, - t[4] = 0, - t[5] = 1, - t[6] = 0, - t[7] = 0, - t[8] = 0, - t[9] = 0, - t[10] = 1, - t[11] = 0, - t[12] = 0, - t[13] = 0, - t[14] = 0, - t[15] = 1, - t - } - function invert(t, e) { - var r = e[0] - , n = e[1] - , i = e[2] - , a = e[3] - , o = e[4] - , s = e[5] - , u = e[6] - , c = e[7] - , f = e[8] - , h = e[9] - , l = e[10] - , d = e[11] - , v = e[12] - , g = e[13] - , p = e[14] - , y = r * s - n * o - , m = r * u - i * o - , b = r * c - a * o - , T = n * u - i * s - , x = n * c - a * s - , M = i * c - a * u - , S = f * g - h * v - , A = f * p - l * v - , w = f * (e = e[15]) - d * v - , P = h * p - l * g - , I = h * e - d * g - , C = l * e - d * p - , $ = y * C - m * I + b * P + T * w - x * A + M * S; - return $ ? (t[0] = (s * C - u * I + c * P) * ($ = 1 / $), - t[1] = (i * I - n * C - a * P) * $, - t[2] = (g * M - p * x + e * T) * $, - t[3] = (l * x - h * M - d * T) * $, - t[4] = (u * w - o * C - c * A) * $, - t[5] = (r * C - i * w + a * A) * $, - t[6] = (p * b - v * M - e * m) * $, - t[7] = (f * M - l * b + d * m) * $, - t[8] = (o * I - s * w + c * S) * $, - t[9] = (n * w - r * I - a * S) * $, - t[10] = (v * x - g * b + e * y) * $, - t[11] = (h * b - f * x - d * y) * $, - t[12] = (s * A - o * P - u * S) * $, - t[13] = (r * P - n * A + i * S) * $, - t[14] = (g * m - v * T - p * y) * $, - t[15] = (f * T - h * m + l * y) * $, - t) : null - } - function multiply(t, e, r) { - var n = e[0] - , i = e[1] - , a = e[2] - , o = e[3] - , s = e[4] - , u = e[5] - , c = e[6] - , f = e[7] - , h = e[8] - , l = e[9] - , d = e[10] - , v = e[11] - , g = e[12] - , p = e[13] - , y = e[14] - , e = e[15] - , m = r[0] - , b = r[1] - , T = r[2] - , x = r[3]; - return t[0] = m * n + b * s + T * h + x * g, - t[1] = m * i + b * u + T * l + x * p, - t[2] = m * a + b * c + T * d + x * y, - t[3] = m * o + b * f + T * v + x * e, - m = r[4], - b = r[5], - T = r[6], - x = r[7], - t[4] = m * n + b * s + T * h + x * g, - t[5] = m * i + b * u + T * l + x * p, - t[6] = m * a + b * c + T * d + x * y, - t[7] = m * o + b * f + T * v + x * e, - m = r[8], - b = r[9], - T = r[10], - x = r[11], - t[8] = m * n + b * s + T * h + x * g, - t[9] = m * i + b * u + T * l + x * p, - t[10] = m * a + b * c + T * d + x * y, - t[11] = m * o + b * f + T * v + x * e, - m = r[12], - b = r[13], - T = r[14], - x = r[15], - t[12] = m * n + b * s + T * h + x * g, - t[13] = m * i + b * u + T * l + x * p, - t[14] = m * a + b * c + T * d + x * y, - t[15] = m * o + b * f + T * v + x * e, - t - } - function getTranslation(t, e) { - return t[0] = e[12], - t[1] = e[13], - t[2] = e[14], - t - } - function perspective(t, e, r, n, i) { - return e = 1 / Math.tan(e / 2), - t[0] = e / r, - t[1] = 0, - t[2] = 0, - t[3] = 0, - t[4] = 0, - t[5] = e, - t[6] = 0, - t[7] = 0, - t[8] = 0, - t[9] = 0, - t[11] = -1, - t[12] = 0, - t[13] = 0, - t[15] = 0, - null != i && i !== 1 / 0 ? (t[10] = (i + n) * (r = 1 / (n - i)), - t[14] = 2 * i * n * r) : (t[10] = -1, - t[14] = -2 * n), - t - } - function ortho(t, e, r, n, i, a, o) { - var s = 1 / (e - r) - , u = 1 / (n - i) - , c = 1 / (a - o); - return t[0] = -2 * s, - t[1] = 0, - t[2] = 0, - t[3] = 0, - t[4] = 0, - t[5] = -2 * u, - t[6] = 0, - t[7] = 0, - t[8] = 0, - t[9] = 0, - t[10] = 2 * c, - t[11] = 0, - t[12] = (e + r) * s, - t[13] = (i + n) * u, - t[14] = (o + a) * c, - t[15] = 1, - t - } - function lookAt(t, e, r, n) { - var i, a, o, s, u = e[0], c = e[1], e = e[2], f = n[0], h = n[1], n = n[2], l = r[0], d = r[1], r = r[2]; - return Math.abs(u - l) < EPSILON && Math.abs(c - d) < EPSILON && Math.abs(e - r) < EPSILON ? identity$1(t) : (l = u - l, - d = c - d, - r = e - r, - i = h * (r *= s = 1 / Math.hypot(l, d, r)) - n * (d *= s), - n = n * (l *= s) - f * r, - f = f * d - h * l, - (s = Math.hypot(i, n, f)) ? (i *= s = 1 / s, - n *= s, - f *= s) : f = n = i = 0, - h = d * f - r * n, - a = r * i - l * f, - o = l * n - d * i, - (s = Math.hypot(h, a, o)) ? (h *= s = 1 / s, - a *= s, - o *= s) : o = a = h = 0, - t[0] = i, - t[1] = h, - t[2] = l, - t[3] = 0, - t[4] = n, - t[5] = a, - t[6] = d, - t[7] = 0, - t[8] = f, - t[9] = o, - t[10] = r, - t[11] = 0, - t[12] = -(i * u + n * c + f * e), - t[13] = -(h * u + a * c + o * e), - t[14] = -(l * u + d * c + r * e), - t[15] = 1, - t) - } - function equals(t, e) { - var r = t[0] - , n = t[1] - , i = t[2] - , a = t[3] - , o = t[4] - , s = t[5] - , u = t[6] - , c = t[7] - , f = t[8] - , h = t[9] - , l = t[10] - , d = t[11] - , v = t[12] - , g = t[13] - , p = t[14] - , t = t[15] - , y = e[0] - , m = e[1] - , b = e[2] - , T = e[3] - , x = e[4] - , M = e[5] - , S = e[6] - , A = e[7] - , w = e[8] - , P = e[9] - , I = e[10] - , C = e[11] - , $ = e[12] - , N = e[13] - , k = e[14] - , e = e[15]; - return Math.abs(r - y) <= EPSILON * Math.max(1, Math.abs(r), Math.abs(y)) && Math.abs(n - m) <= EPSILON * Math.max(1, Math.abs(n), Math.abs(m)) && Math.abs(i - b) <= EPSILON * Math.max(1, Math.abs(i), Math.abs(b)) && Math.abs(a - T) <= EPSILON * Math.max(1, Math.abs(a), Math.abs(T)) && Math.abs(o - x) <= EPSILON * Math.max(1, Math.abs(o), Math.abs(x)) && Math.abs(s - M) <= EPSILON * Math.max(1, Math.abs(s), Math.abs(M)) && Math.abs(u - S) <= EPSILON * Math.max(1, Math.abs(u), Math.abs(S)) && Math.abs(c - A) <= EPSILON * Math.max(1, Math.abs(c), Math.abs(A)) && Math.abs(f - w) <= EPSILON * Math.max(1, Math.abs(f), Math.abs(w)) && Math.abs(h - P) <= EPSILON * Math.max(1, Math.abs(h), Math.abs(P)) && Math.abs(l - I) <= EPSILON * Math.max(1, Math.abs(l), Math.abs(I)) && Math.abs(d - C) <= EPSILON * Math.max(1, Math.abs(d), Math.abs(C)) && Math.abs(v - $) <= EPSILON * Math.max(1, Math.abs(v), Math.abs($)) && Math.abs(g - N) <= EPSILON * Math.max(1, Math.abs(g), Math.abs(N)) && Math.abs(p - k) <= EPSILON * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(t - e) <= EPSILON * Math.max(1, Math.abs(t), Math.abs(e)) - } - function create$1() { - var t = new ARRAY_TYPE(3); - return ARRAY_TYPE != Float32Array && (t[0] = 0, - t[1] = 0, - t[2] = 0), - t - } - function fromValues$1(t, e, r) { - var n = new ARRAY_TYPE(3); - return n[0] = t, - n[1] = e, - n[2] = r, - n - } - function copy(t, e) { - t[0] = e[0], - t[1] = e[1], - t[2] = e[2] - } - function set(t, e, r, n) { - return t[0] = e, - t[1] = r, - t[2] = n, - t - } - function subtract(t, e, r) { - return t[0] = e[0] - r[0], - t[1] = e[1] - r[1], - t[2] = e[2] - r[2], - t - } - function cross(t, e, r) { - var n = e[0] - , i = e[1] - , e = e[2] - , a = r[0] - , o = r[1] - , r = r[2]; - t[0] = i * r - e * o, - t[1] = e * a - n * r, - t[2] = n * o - i * a - } - Math.hypot || (Math.hypot = function () { - for (var t = 0, e = arguments.length; e--;) - t += arguments[e] * arguments[e]; - return Math.sqrt(t) - } - ); - var sub = subtract - , forEach$1 = function () { - var u = create$1(); - return function (t, e, r, n, i, a) { - var o, s; - for (e = e || 3, - r = r || 0, - s = n ? Math.min(n * e + r, t.length) : t.length, - o = r; o < s; o += e) - u[0] = t[o], - u[1] = t[o + 1], - u[2] = t[o + 2], - i(u, u, a), - t[o] = u[0], - t[o + 1] = u[1], - t[o + 2] = u[2]; - return t - } - }(); - function create$2() { - var t = new ARRAY_TYPE(4); - return ARRAY_TYPE != Float32Array && (t[0] = 0, - t[1] = 0, - t[2] = 0, - t[3] = 0), - t - } - function fromValues$2(t, e, r, n) { - var i = new ARRAY_TYPE(4); - return i[0] = t, - i[1] = e, - i[2] = r, - i[3] = n, - i - } - function scale$1(t, e, r) { - return t[0] = e[0] * r, - t[1] = e[1] * r, - t[2] = e[2] * r, - t[3] = e[3] * r, - t - } - function transformMat4(t, e, r) { - var n = e[0] - , i = e[1] - , a = e[2] - , e = e[3]; - return t[0] = r[0] * n + r[4] * i + r[8] * a + r[12] * e, - t[1] = r[1] * n + r[5] * i + r[9] * a + r[13] * e, - t[2] = r[2] * n + r[6] * i + r[10] * a + r[14] * e, - t[3] = r[3] * n + r[7] * i + r[11] * a + r[15] * e, - t - } - var forEach$2 = function () { - var u = create$2(); - return function (t, e, r, n, i, a) { - var o, s; - for (e = e || 4, - r = r || 0, - s = n ? Math.min(n * e + r, t.length) : t.length, - o = r; o < s; o += e) - u[0] = t[o], - u[1] = t[o + 1], - u[2] = t[o + 2], - u[3] = t[o + 3], - i(u, u, a), - t[o] = u[0], - t[o + 1] = u[1], - t[o + 2] = u[2], - t[o + 3] = u[3]; - return t - } - }(); - function create$3() { - var t = new ARRAY_TYPE(2); - return ARRAY_TYPE != Float32Array && (t[0] = 0, - t[1] = 0), - t - } - function clone$1(t) { - var e = new ARRAY_TYPE(2); - return e[0] = t[0], - e[1] = t[1], - e - } - function fromValues$3(t, e) { - var r = new ARRAY_TYPE(2); - return r[0] = t, - r[1] = e, - r - } - function copy$1(t, e) { - t[0] = e[0], - t[1] = e[1] - } - function set$1(t, e, r) { - return t[0] = e, - t[1] = r, - t - } - function add(t, e, r) { - t[0] = e[0] + r[0], - t[1] = e[1] + r[1] - } - function subtract$1(t, e, r) { - return t[0] = e[0] - r[0], - t[1] = e[1] - r[1], - t - } - function multiply$1(t, e, r) { - return t[0] = e[0] * r[0], - t[1] = e[1] * r[1], - t - } - function scale$2(t, e, r) { - t[0] = e[0] * r, - t[1] = e[1] * r - } - function distance(t, e) { - var r = e[0] - t[0] - , e = e[1] - t[1]; - return Math.hypot(r, e) - } - function negate(t, e) { - t[0] = -e[0], - t[1] = -e[1] - } - function normalize(t, e) { - var r = e[0] - , n = e[1]; - 0 < (r = r * r + n * n) && (r = 1 / Math.sqrt(r)), - t[0] = e[0] * r, - t[1] = e[1] * r - } - function dot(t, e) { - return t[0] * e[0] + t[1] * e[1] - } - function cross$1(t, e, r) { - e = e[0] * r[1] - e[1] * r[0], - t[0] = t[1] = 0, - t[2] = e - } - function transformMat2(t, e, r) { - var n = e[0] - , e = e[1]; - t[0] = r[0] * n + r[2] * e, - t[1] = r[1] * n + r[3] * e - } - function rotate(t, e, r, n) { - var i = e[0] - r[0] - , e = e[1] - r[1] - , a = Math.sin(n) - , n = Math.cos(n); - t[0] = i * n - e * a + r[0], - t[1] = i * a + e * n + r[1] - } - function angle(t, e) { - var r = t[0] - , t = t[1] - , n = e[0] - , i = r * r + t * t - , a = n * n + (e = e[1]) * e; - return 1 < (r = (r * n + t * e) * (0 < i ? 1 / Math.sqrt(i) : i) * (0 < a ? 1 / Math.sqrt(a) : a)) ? 0 : r < -1 ? Math.PI : Math.acos(r) - } - function equals$1(t, e) { - var r = t[0] - , t = t[1] - , n = e[0] - , e = e[1]; - return Math.abs(r - n) <= EPSILON * Math.max(1, Math.abs(r), Math.abs(n)) && Math.abs(t - e) <= EPSILON * Math.max(1, Math.abs(t), Math.abs(e)) - } - var sub$1 = subtract$1 - , mul = multiply$1 - , dist$1 = distance - , forEach$3 = function () { - var u = create$3(); - return function (t, e, r, n, i, a) { - var o, s; - for (e = e || 2, - r = r || 0, - s = n ? Math.min(n * e + r, t.length) : t.length, - o = r; o < s; o += e) - u[0] = t[o], - u[1] = t[o + 1], - i(u, u, a), - t[o] = u[0], - t[o + 1] = u[1]; - return t - } - }() - , Event = function () { - function t() { - this.vI = {} - } - return t.addListener = function (t, e, r) { - t.on(e, r) - } - , - t.trigger = function (t, e, r) { - t.emit(e, r) - } - , - t.clearListeners = function (t, e) { - t.clearEvents(e) - } - , - t.addDomListener = function (t, e, r) { - t.addEventListener(e, r) - } - , - t.extend = function (t, r, n) { - forEach(t = "string" == typeof t ? [t] : t, function (e) { - r.on(e, function (t) { - n.emit(e, t) - }) - }) - } - , - t.prototype.on = function (t, e, r, n) { - void 0 === r && (r = this), - void 0 === n && (n = !1); - for (var i = 0, a = Array.isArray(t) ? t : [t]; i < a.length; i++) { - var o = a[i]; - this._on(o, e, r, n) - } - return this - } - , - t.prototype.off = function (t, e, r) { - void 0 === r && (r = this); - var n = this.vI; - if (t in n) - for (var i = 0; i < n[t].length; i += 1) - if (n[t][i].fn === e && n[t][i].context === r) - return n[t].splice(i, 1), - this; - return this - } - , - t.prototype.hasEvents = function (t, e, r) { - void 0 === r && (r = this); - var n = this.vI; - if (t && e && t in n) - for (var i = 0; i < n[t].length; i += 1) - if (n[t][i].fn === e && n[t][i].context === r) - return !0; - return !1 - } - , - t.prototype.clearEvents = function (t) { - return t ? this.vI[t] && delete this.vI[t] : this.vI = {}, - this - } - , - t.prototype.emit = function (t, e) { - if (void 0 === e && (e = {}), - t in this.vI) { - for (var r = exports.Ln(exports.Ln({}, e), { - type: t - }), n = this.vI[t], i = 0, a = n.length; i < a; i += 1) { - var o = n[i]; - o && o.fn && (o.fn.call(o.context, r), - o.once) && (this.vI[t].splice(i, 1), - --i, - --a) - } - 0 === n.length && delete this.vI[t] - } - return this - } - , - t.prototype.getEvents = function () { - return this.vI - } - , - t.prototype._on = function (t, e, r, n) { - var i; - return void 0 === n && (n = !1), - this.hasEvents(t, e, r = void 0 === r ? this : r) || ((i = this.vI)[t] = i[t] || [], - i[t].push({ - fn: e, - context: r || this, - once: n - })), - this - } - , - t - }() - , NebulaTileCoord = function () { - var o = [-180, -90] - , s = [180, 90] - , u = s[0] - o[0] - , c = s[1] - o[1]; - return { - ga: function (t, e, r, n) { - void 0 === n && (n = "lnglat"); - var r = Math.pow(2, r) - , i = u / r - , r = c / r - , a = ProjectionManager.getProjection("EPSG:3857"); - return "lnglat" === n ? [t * i + o[0], s[1] - e * r, (t + 1) * i + o[0], s[1] - (e + 1) * r] : "EPSG:3857" === n ? (n = a.project(t * i + o[0], s[1] - e * r), - a = a.project((t + 1) * i + o[0], s[1] - (e + 1) * r), - [n[0], n[1], a[0], a[1]]) : [0, 0, 0, 0] - } - } - }() - , ComputeTileRange = function () { - function t() { } - return t.ha = function (t, e) { - for (var r = [t[0], t[3]], t = [t[2], t[1]], r = this.Ga(r, e), t = this.Ga(t, e), n = r[0], i = r[1], a = t[0], o = t[1], s = [], u = n; u <= a; u += 1) - for (var c = i; c <= o; c += 1) - s.push([e, u, c]); - return s - } - , - t.Ga = function (t, e) { - var r = 180 / (e = Math.pow(2, e)); - return [Math.floor(t[0] / (360 / e)) + e / 2, e / 2 - Math.ceil(t[1] / r)] - } - , - t.ra = function (t) { - return { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 10, - 11: 10, - 12: 10, - 13: 12, - 14: 12, - 15: 14, - 16: 14, - 17: 14, - 18: 14, - 19: 14, - 20: 14, - 21: 14, - 22: 14 - }[t] - } - , - t - }() - , Task = function () { - function t(t) { - var r = this; - this.xN = t, - this.cancel = function () { - r.xN && r.xN.cancel(); - for (var t = 0, e = r.children; t < e.length; t++) - e[t].cancel.apply(r) - } - , - this.children = [] - } - return t.prototype._H = function (t) { - this.children.push(t) - } - , - t - }() - , LabelPlacement = function () { - function t(t) { - this.options = {}, - this.Gj = {}, - this.Hj = {}, - this.Vj = {}, - this.Wj = {}, - this.$j = 0, - this.render = null, - this.NO = {}, - this.ac = t.z_, - this.Mf = t.R_, - this.io = t.canvas, - this.NT = t.Nz - } - return t.prototype.nO = function (t, e) { - this.iO = (e = void 0 === e ? {} : e).from || "inner", - labelsUtil.zj(this, t), - this.eO(e) - } - , - t.prototype.destroy = function () { } - , - t.prototype.oO = function () { - return this.gs.aO() - } - , - t.prototype.uO = function () { - return this.oO().viewMode, - !0 - } - , - t.prototype.eO = function (t) { - var e, r, n, i, a, o = (t = void 0 === t ? {} : t).center, s = this.Gj || {}, u = this.Vj || {}, c = this.Hj || {}, f = this.iO, h = 0; - for (e in s) - s.hasOwnProperty(e) && e && (a = s[e] || {}, - c[e] = this.sO(e, a), - u[e] = this.fO(e, a, c[e], { - from: f, - center: o - }), - r = a.data.txt, - n = (i = a.opts).icon, - i = i.text || {}, - a = a.CO, - r && a && (h += a.length + 1, - i.style) && i.style.borderWidth && (h += 4), - n) && n.length && n[0].image && (h += n.length); - this.$j = h, - this.Vj = u, - this.Hj = c - } - , - t.prototype.hO = function (t, e) { - var r = CONSTS.Mp - , n = CONSTS.Rp - , i = (t = void 0 === t ? [] : t)[0] || r - , t = t[1] || n; - return [(r = (e = void 0 === e ? [] : e)[0] || r) < i ? i : r, t < (e = e[1] || n) ? t : e] - } - , - t.prototype.cO = function (t, e) { - var r = {}; - return r.type = (t = void 0 === t ? {} : t).type || e.type, - r.image = t.image || "", - r.clipOrigin = t.clipOrigin || e.clipOrigin, - r.clipSize = t.clipSize, - r.size = t.size, - r.offset = t.offset, - r.anchor = t.anchor || e.anchor, - r.angel = t.angel || e.angel, - r.retina = t.retina || e.retina, - r.zooms = t.zooms || e.zooms, - r - } - , - t.prototype.vO = function (t, e) { - var r = {} - , e = (r.type = (t = void 0 === t ? {} : t).type || e.type, - r.direction = t.direction || e.direction, - r.offset = t.offset || e.offset, - r.zooms = t.zooms || e.zooms, - e.style) - , t = t.style || {} - , n = (r.style = {}, - r.style.fontFamily = t.fontFamily || e.fontFamily, - r.style.fontSize = t.fontSize || e.fontSize, - r.style.fontWeight = t.fontWeight || e.fontWeight, - r.style.fillColor = t.fillColor || e.fillColor, - t.strokeColor) - , i = t.strokeWidth; - return isUndefined(i) && isUndefined(n) ? r.style.strokeWidth = e.strokeWidth : isUndefined(i) && !isUndefined(n) ? r.style.strokeWidth = 1 : r.style.strokeWidth = t.strokeWidth, - r.style.borderColor = t.borderColor, - r.style.borderWidth = t.borderWidth, - r.style.strokeColor = t.strokeColor || e.strokeColor, - r.style.borderColor = t.borderColor || e.borderColor, - r.style.backgroundColor = t.backgroundColor, - r.style.padding = t.padding || e.padding, - r.style.fold = void 0 !== t.fold && t.fold, - r - } - , - t.prototype.lO = function (t) { - return [(t = (this.ac.Fs || {})[t] || {}).width || 36, t.height || 36] - } - , - t.prototype.dO = function (t, e) { - var r = CONSTS.sj - , e = ((r = this.cO(t, r.icon)).zooms = t.zooms || e.bO, - this.hO(e.zooms, r.zooms)); - return r.zooms = e, - r.size && r.clipSize || (t = (e = this.lO(t.image || ""))[0] || 0, - e = e[1] || 0, - r.size || (r.size = [t, e]), - r.clipSize) || (r.clipSize = [t, e]), - r - } - , - t.prototype.pO = function (t, e) { - var r = CONSTS.sj - , t = ((r = this.vO(t = void 0 === t ? {} : t, r.text)).zooms = t.zooms || e.bO, - r.direction) - , n = e.yO - , n = (t = this.mO(t || "", n)).textAlign - , t = t.verticalAlign - , n = (r.style && (r.style.textAlign = n, - r.style.verticalAlign = t), - this.hO(e.zooms, r.zooms)); - return r.zooms = n, - r - } - , - t.prototype.sO = function (t, e) { - var r = (r = e.data) && r.txt - , n = (e = e.opts || {}).angle || 0 - , i = isUndefined(e.opacity) ? 1 : e.opacity - , a = e.icon - , o = e.text - , s = e.zooms - , e = e.visible - , u = { - angle: n, - opacity: i, - zooms: this.options.zooms, - bO: s - } - , c = []; - if (a) - for (var f = 0, h = a; f < h.length; f++) { - var l = h[f]; - c.push(this.dO(l, u)) - } - return u.yO = !!a, - (n = r ? this.pO(o, u) : null) && (n.txt = r), - i = { - icon: c, - text: n, - visible: e - }, - "labelsLayer" === this.iO && (i.showText = 1, - i.showIcon = 1), - i - } - , - t.prototype.gO = function (t) { - var e; - return this.oO().zoom < LocalZoom ? t : (e = lcs.getLocalByCoord(t), - vector.Ip(t, e.center)) - } - , - t.prototype.wO = function (t, e) { - var r, n; - return e && e.image ? (n = CONSTS.sj.icon, - r = e.size || this.lO(e.image), - e = e.anchor || n.anchor, - { - size: r, - origin: t, - anchorOffset: n = this._getAnchorOffset(r, e), - coords: vector.add(t, n) - }) : { - size: [0, 0], - origin: t, - anchorOffset: [0, 0], - coords: t - } - } - , - t.prototype.MO = function (t, e, r) { - var n, i, a, o, s, u; - return "text" === (t = void 0 === t ? "icon" : t) ? (t = e.origin, - e.start, - o = r.padding, - u = r.c, - r = void 0, - n = o.offsetX, - i = o.offsetY, - a = o.w, - o = o.h, - s = (this.uO() ? (r = u[0], - u) : (r = t[0], - t))[1], - { - x: r + n, - y: s + i, - width: a, - height: o - }) : (t = e.size, - e.coords, - { - x: (u = e.c)[0], - y: u[1], - width: (r = void 0 === t ? [] : t)[0] || 0, - height: r[1] || 0 - }) - } - , - t.prototype._getAnchorOffset = function (t, e) { - var r = CONSTS.JM - , n = t[0] || 0 - , i = t[1] || 0; - if ("[object Array]" === Object.prototype.toString.apply(e)) { - var t = e[0] - , a = e[1]; - if ("number" == typeof t && "number" == typeof a) - return vector.tA(e) - } else if ("string" == typeof e) { - var a = (t = e.split("-"))[0] - , e = t[1] - , o = 0 - , s = 0; - switch (a !== r.ij || e || (a = r.nj, - e = r.ij), - e) { - case r.LEFT: - o = 0; - break; - case r.ij: - o = -n / 2; - break; - case r.QM: - o = -n; - break; - default: - o = 0 - } - switch (a) { - case r.ZM: - s = 0; - break; - case r.nj: - s = -i / 2; - break; - case r.tj: - s = -i; - break; - default: - s = 0 - } - return [o, s] - } - return [0, 0] - } - , - t.prototype.jO = function (t) { - return this._getAnchorOffset(t.size || [0, 0], "middle-center") - } - , - t.prototype.AO = function (t, e, r, n) { - var i, o = CONSTS.JM, u = void 0 === (s = (n = void 0 === n ? {} : n).kO) ? 0 : s, c = void 0 !== (s = n.yO) && s, s = n.padding, f = n.lines, h = (n = this.jO(t))[0] || 0, n = n[1] || 0, l = t.anchorOffset || [], d = l[0] || 0, v = l[1] || 0, g = (l = t.size || [])[0] || 0, p = l[1] || 0, y = d - h, m = v - n, b = s[0], T = s[1], x = s[2], M = s[3], S = .8 * u; - switch (r) { - case o.ZM: - a = c ? (i = y, - v - x - .2 * u - (A = S * f + 3 * (f - 1))) : (i = d + M, - v + b); - break; - case o.QM: - var A = S / 2 * f + 1.5 * (f - 1) - , a = c ? (i = d + g + M, - m - A) : (i = d - T, - v - A - x); - break; - case o.tj: - a = c ? (i = y, - v + p + b) : (i = d + M, - v - x - (A = S * f + 3 * (f - 1))); - break; - case o.LEFT: - A = S / 2 * f + 1.5 * (f - 1); - a = c ? (i = d - T, - m - A) : (i = d + M, - v - A - x); - break; - case o.nj: - case o.ij: - a = c ? (i = d + g / 2, - m - (A = S / 2 * f + 1.5 * (f - 1))) : (i = d, - v - (A = S / 2 * f + 1.5 * (f - 1)) - x); - break; - default: - i = d, - a = v - (A = S / 2 * f + 1.5 * (f - 1)) - x - } - return [i, a] - } - , - t.prototype.OO = function (t, e) { - var r, n, i = CONSTS.JM, a = (e = void 0 === e ? {} : e).xO, o = (e.kO, - e.yO), s = e.direction, u = e.lines, c = e.size, f = (e.IO, - t[0] || 0), h = t[1] || 0; - switch (this.mO(s, o).textAlign) { - case i.LEFT: - r = f, - n = h; - break; - case i.QM: - r = f - a, - n = h; - break; - case i.ij: - r = f - a / 2, - n = h - } - return { - x: r, - y: n, - w: a, - h: this.TO(c, u), - FO: f, - _O: h - } - } - , - t.prototype.mO = function (t, e) { - var r, n, i = CONSTS.JM; - if (e) - switch (t) { - case i.LEFT: - r = i.QM; - break; - case i.QM: - r = i.LEFT; - break; - case i.ZM: - case i.tj: - default: - r = i.ij, - n = i.tj - } - else - switch (t) { - case i.LEFT: - case i.ij: - case i.QM: - r = t, - n = i.tj; - break; - case i.ZM: - case i.tj: - case i.nj: - default: - r = i.LEFT, - n = t - } - return { - textAlign: r, - verticalAlign: n - } - } - , - t.prototype.TO = function (t, e) { - return void 0 === t && (t = 12), - (t *= 5 / 4) * (e = void 0 === e ? 1 : e) + 3 * (e - 1) - } - , - t.prototype.CT = function (t, e) { - return this.Mf ? this.Mf.measureText(t, e) : this.NT ? (this.NT.font = (e || 12) + "px", - this.NT.measureText(t.join("")).width) : 0 - } - , - t.prototype.SO = function (t, e, r) { - var n, i, a, o, s, u, c, f; - return e && r.txt ? (n = (o = CONSTS.sj.text).direction, - i = o.offset, - o = o.style, - c = r.yO, - s = r.CO, - n = e.direction || n, - i = e.offset || i, - a = (e = e.style || o).fontSize || 12, - f = e.padding || o.padding, - e = !1 === e.fold ? 100 : o.fj, - o = r.txt.length, - r = (s = this.Mf.lineBreak(r.txt, { - fontSize: a, - CO: s, - type: r.BG || "ch", - fj: e, - YQ: this.NT, - from: r.from - })).lines.length, - u = this.TO(a, 1), - s = { - xO: s.maxWidth, - kO: u, - yO: c, - direction: n, - padding: f, - fj: e, - lines: r, - size: a, - IO: o - }, - u = this.AO(t, t.size, n, s), - c = vector.add(u, i), - f = vector.add(t.origin, c), - e = this.OO(f, s), - { - origin: t.origin, - offset: c, - coords: f, - start: e - }) : { - origin: t.origin, - offset: [0, 0], - coords: t.coords, - start: {} - } - } - , - t.prototype.EO = function (t, e, r) { - if (!e || !r.txt) - return { - offsetX: 0, - offsetY: 0, - w: 0, - h: 0 - }; - var n, i, a = CONSTS.JM, o = CONSTS.sj, s = (t.coords, - t.start), u = (t = void 0 === (t = t.offset) ? [] : t)[0], c = t[1], f = s.w, t = s.h, s = r.yO, o = (r = o.text).direction, r = r.style, o = e.direction || o, h = (e = (e.style || r).padding || r.padding)[0], r = e[1], l = e[2], d = e[3]; - if (s) - switch (o) { - case a.ZM: - n = u - f / 2 - d, - i = c - h; - break; - case a.QM: - n = u - d, - i = c - h; - break; - case a.tj: - n = u - f / 2 - d, - i = c - h; - break; - case a.LEFT: - n = u - f - d, - i = c - h; - break; - case a.nj: - case a.ij: - n = u - f / 2 - d, - i = c - h; - break; - default: - n = u - f / 2 - d, - i = c + l - } - else - switch (o) { - case a.ZM: - n = u - d, - i = c + l; - break; - case a.QM: - n = u - f - d, - i = c + l; - break; - case a.tj: - case a.LEFT: - n = u - d, - i = c + l; - break; - case a.nj: - case a.ij: - n = u - f / 2 - d, - i = c - h; - break; - default: - n = u - f / 2 - d, - i = c + l - } - return { - offsetX: n, - offsetY: i, - w: f + d + r, - h: t + h + l - } - } - , - t.prototype.fO = function (t, e, r, n) { - var i = (n = void 0 === n ? {} : n).from - , a = n.center - , o = e.data - , s = e.opts || {} - , u = o.position - , c = o.txt - , s = s.icon - , r = r.text - , e = e.CO - , f = this.oO().zoom - , f = (a[2] = a[2] || 0, - i = "inner" !== i || "relative" !== o.positionType && LocalZoom <= f ? vector.Ip(u, a) : u, - vector.add(i, [0, 0])) - , a = !!s; - return { - origin: i, - icon: u = this.wO(f, s && s[0]), - text: f = this.SO(u, r, { - CO: e, - txt: c, - yO: a, - BG: o.BG, - from: n.from - }), - padding: this.EO(f, r, { - txt: c, - yO: a - }) - } - } - , - t - }() - , LabelGroup = function () { - function t() { - this.oT = {}, - this.index = 1 - } - return t.prototype.nT = function (t) { - var e, r, n, i, a; - return t ? (e = t.fontSize, - a = void 0 === (a = t.fillColor) ? CONSTS.COLOR.Uj : a, - r = void 0 === (r = t.strokeColor) ? CONSTS.COLOR.Uj : r, - n = t.strokeWidth, - i = t.backgroundColor, - t = t.borderColor, - a = labelsUtil.toString(a) + labelsUtil.toString(r) + (i ? labelsUtil.toString(i) : "" + (t ? labelsUtil.toString(t) : "")) + e + n, - this.AS(a), - this.oT[a]) : "" - } - , - t.prototype.AS = function (t) { - this.oT[t] || (this.oT[t] = this.index++) - } - , - t - }() - , labelGroup = new LabelGroup - , isSupportFloat64Array = "undefined" != typeof Float64Array - , isSupportFloat32Array$1 = "undefined" != typeof Float32Array - , RESIZE_MULTIPLIER = (isSupportFloat64Array ? setMatrixArrayType(Float64Array) : isSupportFloat32Array$1 ? setMatrixArrayType(Float32Array) : (window.Float32Array = void 0, - setMatrixArrayType(Array)), - 2) - , DEFAULT_CAPACITY = 128 - , StructArray = function () { - function t() { - this.pM = !1, - this.yM = -1, - this.length = 0 - } - return t.Wb = function (t, e) { - return t.trim(), - e && (t.pM = !0, - e.push(t.arrayBuffer)), - { - length: t.length, - arrayBuffer: t.arrayBuffer - } - } - , - t.Gb = function (t) { - var e = Object.create(this.prototype); - return e.arrayBuffer = t.arrayBuffer, - e.length = t.length, - e.yM = t.arrayBuffer.byteLength / this.Rb, - e.mM(), - e - } - , - t.prototype.trim = function () { - this.length !== this.yM && (this.yM = this.length, - this.arrayBuffer = this.arrayBuffer.slice(0, this.length * this.constructor.Rb), - this.mM()) - } - , - t.prototype.resize = function (t) { - this.gM(t), - this.length = t - } - , - t.prototype.gM = function (t) { - t > this.yM && (this.yM = Math.max(t, Math.floor(this.yM * RESIZE_MULTIPLIER), DEFAULT_CAPACITY), - t = this.wM, - this.arrayBuffer = new ArrayBuffer(this.yM * this.constructor.Rb), - this.mM(), - t) && this.wM.set(t) - } - , - t - }() - , FillArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.pM = !1, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e) { - var r = this.length; - this.resize(this.length + 1), - this.MM(r, t, e) - } - , - t.prototype.MM = function (t, e, r) { - this.Mb[t *= 2] = e, - this.Mb[1 + t] = r - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.Mb = new Float32Array(this.arrayBuffer) - } - , - t.Rb = 8, - t - }(StructArray) - , FillExtrusionArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.pM = !1, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e, r, n, i, a) { - var o = this.length; - this.resize(o + 1), - this.MM(o, t, e, r, n, i, a) - } - , - t.prototype.MM = function (t, e, r, n, i, a, o) { - var s = 8 * t - , e = (this.Mb[s] = e, - this.Mb[1 + s] = r, - this.Mb[2 + s] = n, - this.Mb[3 + s] = i, - this.Mb[4 + s] = a[0], - this.Mb[5 + s] = a[1], - this.Mb[6 + s] = a[2], - 16 * t); - this.jM[14 + e] = o[0], - this.jM[15 + e] = o[1] - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.Mb = new Float32Array(this.arrayBuffer), - this.jM = new Uint16Array(this.arrayBuffer) - } - , - t.Rb = 32, - t - }(StructArray) - , LinesIndexArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.length = 0, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e) { - var r = this.length; - this.resize(this.length + 1), - this.MM(r, t, e) - } - , - t.prototype.MM = function (t, e, r) { - this.jM[t *= 2] = e, - this.jM[1 + t] = r - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.jM = new Uint16Array(this.arrayBuffer) - } - , - t.Rb = 4, - t - }(StructArray) - , LinesIndexArrayUint = function (e) { - function t() { - var t = e.call(this) || this; - return t.length = 0, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e) { - var r = this.length; - this.resize(this.length + 1), - this.MM(r, t, e) - } - , - t.prototype.MM = function (t, e, r) { - this.UI[t *= 2] = e, - this.UI[1 + t] = r - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.UI = new Uint32Array(this.arrayBuffer) - } - , - t.Rb = 8, - t - }(StructArray) - , LineArrayBuffer = function (e) { - function t() { - var t = e.call(this) || this; - return t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e, r, n) { - var i = this.length; - this.resize(i + 1), - this.MM(i, t, e, r, n) - } - , - t.prototype.MM = function (t, e, r, n, i) { - t *= this.constructor.Rb / 4, - this.Mb[t] = e[0], - this.Mb[1 + t] = e[1], - this.Mb[2 + t] = r[0], - this.Mb[3 + t] = r[1], - this.Mb[4 + t] = n, - this.Mb[5 + t] = i[0], - this.Mb[6 + t] = i[1] - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.Mb = new Float32Array(this.arrayBuffer) - } - , - t.Rb = 28, - t - }(StructArray) - , TriangleIndexArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e, r) { - var n = this.length; - this.resize(n + 1), - this.MM(n, t, e, r) - } - , - t.prototype.MM = function (t, e, r, n) { - this.jM[t *= 3] = e, - this.jM[1 + t] = r, - this.jM[2 + t] = n - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.jM = new Uint16Array(this.arrayBuffer) - } - , - t.Rb = 6, - t - }(StructArray) - , TriangleIndexArrayUint = function (e) { - function t() { - var t = e.call(this) || this; - return t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e, r) { - var n = this.length; - this.resize(n + 1), - this.MM(n, t, e, r) - } - , - t.prototype.MM = function (t, e, r, n) { - this.UI[t *= 3] = e, - this.UI[1 + t] = r, - this.UI[2 + t] = n - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.UI = new Uint32Array(this.arrayBuffer) - } - , - t.Rb = 12, - t - }(StructArray) - , SymbolArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.pM = !1, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e, r) { - var n = this.length; - this.resize(this.length + 1), - this.MM(n, t, e, r) - } - , - t.prototype.MM = function (t, e, r, n) { - var t = 13 * t - , e = (this.Mb[t] = e, - this.Mb[1 + t] = r, - n.color) - , r = n.borderColor - , i = n.radius - , a = n.borderWidth; - this.Mb[2 + t] = i, - this.Mb[3 + t] = a, - this.Mb[4 + t] = e[0], - this.Mb[5 + t] = e[1], - this.Mb[6 + t] = e[2], - this.Mb[7 + t] = e[3], - this.Mb[8 + t] = r[0], - this.Mb[9 + t] = r[1], - this.Mb[10 + t] = r[2], - this.Mb[11 + t] = r[3], - this.Mb[12 + t] = +(n.visible && n.filter) - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.Mb = new Float32Array(this.arrayBuffer) - } - , - t.Rb = 52, - t - }(StructArray) - , SimpleSymbolArray = function (e) { - function t() { - var t = e.call(this) || this; - return t.pM = !1, - t.resize(0), - t - } - return __extends(t, e), - t.prototype.kb = function (t, e) { - var r = this.length; - this.resize(this.length + 1), - this.MM(r, t, e) - } - , - t.prototype.MM = function (t, e, r) { - this.Mb[t *= 2] = e, - this.Mb[1 + t] = r - } - , - t.prototype.mM = function () { - this.wM = new Uint8Array(this.arrayBuffer), - this.Mb = new Float32Array(this.arrayBuffer) - } - , - t.Rb = 4, - t - }(StructArray) - , SmartArrayBuffer = function () { - function t(t, e, r, n) { - void 0 === n && (n = "ARRAY_BUFFER"), - this.AM = t, - this.kM = r, - this.type = n, - t && (this.buffer = "ARRAY_BUFFER" === n ? t.fe(e, r, "DYNAMIC_DRAW") : t.ve(e), - this.uf = e.byteLength, - this.byteLength = e.byteLength) - } - return t.prototype.update = function (t) { - var e, r, n; - 0 !== t.length && this.AM && (e = "ARRAY_BUFFER" === this.type, - r = this.AM.gl, - n = (e ? this.AM.de : this.AM.me).current, - (e ? this.AM.de : this.AM.me).set(this.buffer), - this.uf < t.byteLength ? (r.bufferData(r[this.type], t, r.STATIC_DRAW), - this.byteLength = t.byteLength, - this.uf = t.byteLength) : (r.bufferSubData(r[this.type], 0, t), - this.byteLength = t.byteLength), - (e ? this.AM.de : this.AM.me).set(n)) - } - , - t.prototype.destroy = function () { - this.buffer && this.AM && this.AM.deleteBuffer(this.buffer) - } - , - t.prototype.TX = function () { - this.AM = null - } - , - __decorate([InnerClass("SmartArrayBuffer")], t) - }() - , COS_HALF_SHARP_CORNER = Math.cos(Math.PI / 180 * 75) - , prepMatClockwise = fromValues(0, -1, 1, 0) - , perpMatCounterClockwise = fromValues(0, 1, -1, 0); - function perpCounterClockwise(t, e) { - transformMat2(t, e, perpMatCounterClockwise) - } - function perpClockwise(t, e) { - transformMat2(t, e, prepMatClockwise) - } - var minRoundAngle = Math.PI / 9, emptyVec2 = create$3(), emptyVec3 = create$1(), prevPos = create$3(), currentPos = create$3(), nextPos = create$3(), tmpPos = create$3(), currentNormal = create$3(), nextNormal = create$3(), distance$1 = 0, nextDir = create$3(), currentDir = create$3(), negateCurrentNormal = create$3(), lineJoin, lineCap, currentNormal_addLineVertex = create$3(), leftNormal = create$3(), rightNormal = create$3(), offsetLeft = create$3(), offsetRight = create$3(), joinNormal_addMiter = create$3(), tmp_addTiangleVertex = create$1(), currentNormal_addTiangleVertex = create$3(), nextNormal_addTiangleVertex = create$3(), normal_addTiangleVertex = create$3(), tmp_addRoundVertex = create$1(), currentNormal_addRoundVertex = create$3(), nextNormal_addRoundVertex = create$3(), tmpNormal_addRoundVertex = create$3(), roundCenter_addRoundVertex = create$3(), CoreLineBucket = function () { - function h() { - this._b = new LineArrayBuffer, - this.e1 = this.e2 = this.e3 = -1, - this.uploaded = !1 - } - return h.OM = function (t, e, r) { - sub$1(t, e, r), - normalize(t, t), - perpCounterClockwise(t, t) - } - , - h.xM = function (t, e, r) { - add(t, e, r), - 0 === t[0] && 0 === t[1] || normalize(t, t) - } - , - h.prototype.hb = function (t, e) { - if (t.length < 4) - return { - Iw: 0, - distance: 0 - }; - "auto" === (e = void (distance$1 = 0) === e ? { - X_: 1, - lineJoin: "miter", - lineCap: "butt" - } : e).lineJoin && (e.lineJoin = "miter"), - lineJoin = e.lineJoin, - lineCap = e.lineCap || "butt"; - for (var r, n = this.Qx.length, i = 0, a = t.length; i < a; i += 2) - 0 === i ? (currentPos[0] = t[i], - currentPos[1] = t[i + 1], - nextPos[0] = t[i + 2], - nextPos[1] = t[i + 3], - h.OM(nextNormal, nextPos, currentPos), - copy$1(currentNormal, nextNormal), - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), - negate(negateCurrentNormal, currentNormal), - this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), - copy$1(currentDir, nextDir), - copy$1(prevPos, currentPos)) : i === a - 2 ? (currentPos[0] = t[i], - currentPos[1] = t[i + 1], - r = dist$1(currentPos, prevPos), - distance$1 += r, - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), - copy$1(negateCurrentNormal, nextNormal), - negate(negateCurrentNormal, nextNormal), - this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter")) : (currentPos[0] = t[i], - currentPos[1] = t[i + 1], - nextPos[0] = t[i + 2], - nextPos[1] = t[i + 3], - h.OM(nextNormal, nextPos, currentPos), - 0 === nextNormal[0] && 0 === nextNormal[1] || (r = dist$1(currentPos, prevPos), - distance$1 += r, - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), - copy$1(prevPos, currentPos), - copy$1(currentNormal, nextNormal), - copy$1(currentDir, nextDir))); - return { - Iw: 3 * (this.Qx.length - n), - distance: distance$1 - } - } - , - h.prototype.g0 = function (t, e) { - if (t.length < 2) - return { - Iw: 0, - distance: 0 - }; - "auto" === (e = void (distance$1 = 0) === e ? { - X_: 1, - lineJoin: "miter", - lineCap: "butt" - } : e).lineJoin && (e.lineJoin = "miter"), - lineJoin = e.lineJoin, - lineCap = e.lineCap || "butt"; - for (var r, n = this.Qx.length, i = 0, a = t.length; i < a; i++) - 0 === i ? (currentPos[0] = t[i][0], - currentPos[1] = t[i][1], - nextPos[0] = t[i + 1][0], - nextPos[1] = t[i + 1][1], - h.OM(nextNormal, nextPos, currentPos), - copy$1(currentNormal, nextNormal), - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), - negate(negateCurrentNormal, currentNormal), - this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), - copy$1(currentDir, nextDir), - copy$1(prevPos, currentPos)) : i === a - 1 ? (currentPos[0] = t[i][0], - currentPos[1] = t[i][1], - r = dist$1(currentPos, prevPos), - distance$1 += r, - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), - copy$1(negateCurrentNormal, nextNormal), - negate(negateCurrentNormal, nextNormal), - this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter")) : (currentPos[0] = t[i][0], - currentPos[1] = t[i][1], - nextPos[0] = t[i + 1][0], - nextPos[1] = t[i + 1][1], - h.OM(nextNormal, nextPos, currentPos), - 0 === nextNormal[0] && 0 === nextNormal[1] || (r = dist$1(currentPos, prevPos), - distance$1 += r, - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), - copy$1(prevPos, currentPos), - copy$1(currentNormal, nextNormal), - copy$1(currentDir, nextDir))); - return { - Iw: 3 * (this.Qx.length - n), - distance: distance$1 - } - } - , - h.prototype.eD = function (t, e, r) { - if (void 0 === r && (r = 3e3), - t.length < 4) - return { - Iw: 0, - distance: 0 - }; - "auto" === (e = void (distance$1 = 0) === e ? { - X_: 1, - lineJoin: "miter", - lineCap: "butt" - } : e).lineJoin && (e.lineJoin = "miter"), - lineJoin = e.lineJoin, - lineCap = e.lineCap || "butt"; - for (var n = this.Qx.length, i = 0, a = t.length; i < a; i += 2) - if (0 === i) - currentPos[0] = t[i], - currentPos[1] = t[i + 1], - nextPos[0] = t[i + 2], - nextPos[1] = t[i + 3], - h.OM(nextNormal, nextPos, currentPos), - copy$1(currentNormal, nextNormal), - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, e.X_, "bevel") : ("round" === lineCap && (copy$1(negateCurrentNormal, currentNormal), - negate(negateCurrentNormal, currentNormal), - this.DI(currentPos, negateCurrentNormal, currentNormal, distance$1)), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, "bevel")), - copy$1(currentDir, nextDir), - copy$1(prevPos, currentPos); - else if (i === a - 2) { - tmpPos[0] = t[i], - tmpPos[1] = t[i + 1]; - var o = dist$1(tmpPos, prevPos); - copy$1(tmpPos, prevPos); - for (var s = 0; r < o - s;) - tmpPos[0] = tmpPos[0] + currentDir[0] * r, - tmpPos[1] = tmpPos[1] + currentDir[1] * r, - s += r, - this.IM(tmpPos, currentNormal, nextNormal, distance$1 + s, currentDir, !1, 0, "miter"), - this.IM(tmpPos, currentNormal, nextNormal, distance$1 + s, currentDir, !0, 0, "miter"); - currentPos[0] = t[i], - currentPos[1] = t[i + 1], - distance$1 += o, - "square" === lineCap ? this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, -1 * e.X_, "miter") : "round" === lineCap ? (this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !1, 0, "miter"), - copy$1(negateCurrentNormal, nextNormal), - negate(negateCurrentNormal, nextNormal), - this.DI(currentPos, nextNormal, negateCurrentNormal, distance$1)) : this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, "miter") - } else if (currentPos[0] = t[i], - currentPos[1] = t[i + 1], - nextPos[0] = t[i + 2], - nextPos[1] = t[i + 3], - h.OM(nextNormal, nextPos, currentPos), - 0 !== nextNormal[0] || 0 !== nextNormal[1]) { - var u = dist$1(currentPos, prevPos); - for (copy$1(tmpPos, prevPos), - s = 0; r < u - s;) - tmpPos[0] = tmpPos[0] + currentDir[0] * r, - tmpPos[1] = tmpPos[1] + currentDir[1] * r, - s += r, - this.IM(tmpPos, currentNormal, currentNormal, distance$1 + s, currentDir, !1, 0, "miter"), - this.IM(tmpPos, currentNormal, currentNormal, distance$1 + s, currentDir, !0, 0, "miter"); - currentPos[0] = t[i], - currentPos[1] = t[i + 1], - distance$1 += u, - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), - copy$1(prevPos, currentPos), - copy$1(currentNormal, nextNormal), - copy$1(currentDir, nextDir) - } - return { - Iw: 3 * (this.Qx.length - n), - distance: distance$1 - } - } - , - h.prototype.Nx = function (t, e) { - if (void 0 === e && (e = { - lineJoin: "miter" - }), - t.length < 2) - return { - Iw: 0, - distance: 0 - }; - for (var r, n, i = this.Qx.length, a = 0, o = t.length; a < o; a++) - 0 === a ? (copy$1(currentPos, t[a]), - r = t[a + 1], - n = t[o - 2], - h.OM(nextNormal, r, currentPos), - h.OM(currentNormal, currentPos, n), - sub$1(nextDir, r, currentPos), - normalize(nextDir, nextDir), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), - copy$1(currentDir, nextDir), - copy$1(currentNormal, nextNormal), - copy$1(prevPos, currentPos)) : a === o - 1 ? (copy$1(currentPos, t[a]), - copy$1(nextPos, t[1]), - distance$1 += dist$1(currentPos, prevPos), - h.OM(nextNormal, nextPos, currentPos), - this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin)) : (copy$1(currentPos, t[a]), - copy$1(nextPos, t[a + 1]), - distance$1 += dist$1(currentPos, prevPos), - h.OM(nextNormal, nextPos, currentPos), - sub$1(nextDir, nextPos, currentPos), - normalize(nextDir, nextDir), - this.IM(currentPos, currentNormal, nextNormal, distance$1, currentDir, !1, 0, e.lineJoin), - this.IM(currentPos, currentNormal, nextNormal, distance$1, nextDir, !0, 0, e.lineJoin), - copy$1(prevPos, currentPos), - copy$1(currentNormal, nextNormal), - copy$1(currentDir, nextDir)); - return { - Iw: 3 * (this.Qx.length - i), - distance: distance$1 - } - } - , - h.prototype.destroy = function () { - this.uploaded = !1, - this.zs && (this.zs.destroy(), - delete this.zs), - this.Pc && (this.Pc.destroy(), - delete this.Pc) - } - , - h.prototype.IM = function (t, e, r, n, i, a, o, s) { - copy$1(joinNormal_addMiter, emptyVec2), - h.xM(joinNormal_addMiter, e, r); - var u = dot(joinNormal_addMiter, e) - , c = (scale$2(joinNormal_addMiter, joinNormal_addMiter, 1 / u), - 0) - , f = 0; - o && (f = c = o), - "bevel" === s || "miter" === s && u < COS_HALF_SHARP_CORNER ? a ? this.SM(t, r, n, c, f, i) : (this.SM(t, e, n, c, f, i), - this.e3 = this._b.length - 2, - this.e2 = this.e3 - 1, - this.e1 = this.e2 - 1, - this.Qx.kb(this.e1, this.e2, this.e3), - this.e1 = this.e2, - this.e2 = this.e3, - this.e3 = this.e3 + 1, - this.Qx.kb(this.e1, this.e2, this.e3), - this.CM(t, e, r, n)) : "round" === s ? a ? this.SM(t, r, n, c, f, i) : (this.SM(t, e, n, c, f, i), - this.e3 = this._b.length - 2, - this.e2 = this.e3 - 1, - this.e1 = this.e2 - 1, - this.Qx.kb(this.e1, this.e2, this.e3), - this.e1 = this.e2, - this.e2 = this.e3, - this.e3 = this.e3 + 1, - this.Qx.kb(this.e1, this.e2, this.e3), - this.DI(t, e, r, n)) : (this.SM(t, joinNormal_addMiter, n, c, f, i), - a || (this.e3 = this._b.length - 2, - this.e2 = this.e3 - 1, - this.e1 = this.e2 - 1, - this.Qx.kb(this.e1, this.e2, this.e3), - this.e1 = this.e2, - this.e2 = this.e3, - this.e3 = this.e3 + 1, - this.Qx.kb(this.e1, this.e2, this.e3))) - } - , - h.prototype.SM = function (t, e, r, n, i, a) { - copy$1(currentNormal_addLineVertex, e), - copy$1(leftNormal, currentNormal_addLineVertex), - copy$1(rightNormal, currentNormal_addLineVertex), - copy$1(offsetLeft, emptyVec2), - copy$1(offsetRight, emptyVec2), - scale$2(rightNormal, currentNormal_addLineVertex, -1), - n && (perpCounterClockwise(offsetLeft, leftNormal), - scale$2(offsetLeft, offsetLeft, n), - add(leftNormal, offsetLeft, leftNormal)), - i && (perpClockwise(offsetRight, rightNormal), - scale$2(offsetRight, offsetRight, i), - add(rightNormal, offsetRight, rightNormal)), - this._b.kb(t, leftNormal, r, a), - this._b.kb(t, rightNormal, r, a) - } - , - h.prototype.CM = function (t, e, r, n) { - void 0 === n && (n = 0), - copy(tmp_addTiangleVertex, emptyVec3), - copy$1(currentNormal_addTiangleVertex, e), - copy$1(nextNormal_addTiangleVertex, r), - copy$1(normal_addTiangleVertex, emptyVec2), - cross$1(tmp_addTiangleVertex, currentNormal_addTiangleVertex, nextNormal_addTiangleVertex), - e = 0 < tmp_addTiangleVertex[2], - this._b.kb(t, normal_addTiangleVertex, n, normal_addTiangleVertex), - e && (negate(currentNormal_addTiangleVertex, currentNormal_addTiangleVertex), - negate(nextNormal_addTiangleVertex, nextNormal_addTiangleVertex)), - this._b.kb(t, currentNormal_addTiangleVertex, n, normal_addTiangleVertex), - this._b.kb(t, nextNormal_addTiangleVertex, n, normal_addTiangleVertex), - this.e3 = this._b.length - 1, - this.e2 = this.e3 - 1, - this.e1 = this.e2 - 1, - this.Qx.kb(this.e1, this.e2, this.e3) - } - , - h.prototype.DI = function (t, e, r, n) { - void 0 === n && (n = 0), - copy(tmp_addRoundVertex, emptyVec3), - copy$1(currentNormal_addRoundVertex, e), - copy$1(nextNormal_addRoundVertex, r); - var i = angle(currentNormal_addRoundVertex, nextNormal_addRoundVertex) - , a = (cross$1(tmp_addRoundVertex, currentNormal_addRoundVertex, nextNormal_addRoundVertex), - 0 < tmp_addRoundVertex[2]) - , o = []; - o.push(currentNormal_addRoundVertex); - for (var s = minRoundAngle; s < i; s += minRoundAngle) { - var u = create$3(); - rotate(u, currentNormal_addRoundVertex, fromValues$3(0, 0), a ? s : -1 * s), - o.push(u) - } - o.push(nextNormal_addRoundVertex), - a && forEach(o, function (t) { - negate(t, t) - }), - copy$1(roundCenter_addRoundVertex, emptyVec2), - this._b.kb(t, roundCenter_addRoundVertex, n, roundCenter_addRoundVertex); - var c = this._b.length - 1; - this._b.kb(t, o[0], n, roundCenter_addRoundVertex), - this.e3 = this._b.length - 1, - this.e2 = this.e3 - 1; - for (var f = 1, h = o.length; f < h; f++) - this._b.kb(t, o[f], n, roundCenter_addRoundVertex), - this.e3 = this._b.length - 1, - this.e2 = this.e3 - 1, - this.Qx.kb(c, this.e2, this.e3) - } - , - h - }(), PolylineBucket = function (e) { - function t() { - var t = e.call(this) || this; - return t.Qx = new TriangleIndexArrayUint, - t - } - return __extends(t, e), - t.prototype.upload = function (t, e) { - void 0 === e && (e = !1), - this.uploaded || (this.uploaded = !0, - this.zs ? this.zs.update(this._b.Mb) : this.zs = new SmartArrayBuffer(t, this._b.Mb, LineArrayBuffer.Rb), - this.Pc ? this.Pc.update(this.Qx.UI) : this.Pc = new SmartArrayBuffer(t, this.Qx.UI, 32, "ELEMENT_ARRAY_BUFFER"), - e && (delete this.Qx, - delete this._b)) - } - , - t.prototype.reset = function () { - this.uploaded = !1, - this._b = new LineArrayBuffer, - this.Qx = new TriangleIndexArrayUint, - this.e1 = this.e2 = this.e3 = -1, - this.uploaded = !1 - } - , - t - }(CoreLineBucket), earcut_1 = earcut, default_1$1 = earcut; - function earcut(t, e, r) { - r = r || 2; - var n, i, a, o, s, u = e && e.length, c = u ? e[0] * r : t.length, f = linkedList(t, 0, c, r, !0), h = []; - if (f && f.next !== f.NM) { - if (u && (f = eliminateHoles(t, e, f, r)), - t.length > 80 * r) { - for (var l = n = t[0], d = i = t[1], v = r; v < c; v += r) - (a = t[v]) < l && (l = a), - (o = t[v + 1]) < d && (d = o), - n < a && (n = a), - i < o && (i = o); - s = 0 !== (s = Math.max(n - l, i - d)) ? 32767 / s : 0 - } - earcutLinked(f, h, r, l, d, s, 0) - } - return h - } - function linkedList(t, e, r, n, i) { - var a, o; - if (i === 0 < signedArea(t, e, r, n)) - for (a = e; a < r; a += n) - o = insertNode(a, t[a], t[a + 1], o); - else - for (a = r - n; e <= a; a -= n) - o = insertNode(a, t[a], t[a + 1], o); - return o && equals$2(o, o.next) && (removeNode(o), - o = o.next), - o - } - function filterPoints(t, e) { - if (!t) - return t; - e = e || t; - var r, n = t; - do { - if (r = !1, - n.LM || !equals$2(n, n.next) && 0 !== area(n.NM, n, n.next)) - n = n.next; - else { - if (removeNode(n), - (n = e = n.NM) === n.next) - break; - r = !0 - } - } while (r || n !== e); - return e - } - function earcutLinked(t, e, r, n, i, a, o) { - if (t) { - !o && a && indexCurve(t, n, i, a); - for (var s, u, c = t; t.NM !== t.next;) - if (s = t.NM, - u = t.next, - a ? isEarHashed(t, n, i, a) : isEar(t)) - e.push(s.i / r | 0), - e.push(t.i / r | 0), - e.push(u.i / r | 0), - removeNode(t), - t = u.next, - c = u.next; - else if ((t = u) === c) { - o ? 1 === o ? earcutLinked(t = cureLocalIntersections(filterPoints(t), e, r), e, r, n, i, a, 2) : 2 === o && splitEarcut(t, e, r, n, i, a) : earcutLinked(filterPoints(t), e, r, n, i, a, 1); - break - } - } - } - function isEar(t) { - var e = t.NM - , r = t; - if (!(0 <= area(e, r, t = t.next))) { - for (var n = e.x, i = r.x, a = t.x, o = e.y, s = r.y, u = t.y, c = n < i ? n < a ? n : a : i < a ? i : a, f = o < s ? o < u ? o : u : s < u ? s : u, h = i < n ? a < n ? n : a : a < i ? i : a, l = s < o ? u < o ? o : u : u < s ? s : u, d = t.next; d !== e;) { - if (d.x >= c && d.x <= h && d.y >= f && d.y <= l && pointInTriangle(n, o, i, s, a, u, d.x, d.y) && 0 <= area(d.NM, d, d.next)) - return; - d = d.next - } - return 1 - } - } - function isEarHashed(t, e, r, n) { - var i = t.NM - , a = t - , o = t.next; - if (!(0 <= area(i, a, o))) { - for (var s = i.x, u = a.x, c = o.x, f = i.y, h = a.y, l = o.y, d = s < u ? s < c ? s : c : u < c ? u : c, v = f < h ? f < l ? f : l : h < l ? h : l, g = u < s ? c < s ? s : c : c < u ? u : c, p = h < f ? l < f ? f : l : l < h ? h : l, y = zOrder(d, v, e, r, n), m = zOrder(g, p, e, r, n), b = t.DM, T = t.RM; b && b.z >= y && T && T.z <= m;) { - if (b.x >= d && b.x <= g && b.y >= v && b.y <= p && b !== i && b !== o && pointInTriangle(s, f, u, h, c, l, b.x, b.y) && 0 <= area(b.NM, b, b.next)) - return; - if (b = b.DM, - T.x >= d && T.x <= g && T.y >= v && T.y <= p && T !== i && T !== o && pointInTriangle(s, f, u, h, c, l, T.x, T.y) && 0 <= area(T.NM, T, T.next)) - return; - T = T.RM - } - for (; b && b.z >= y;) { - if (b.x >= d && b.x <= g && b.y >= v && b.y <= p && b !== i && b !== o && pointInTriangle(s, f, u, h, c, l, b.x, b.y) && 0 <= area(b.NM, b, b.next)) - return; - b = b.DM - } - for (; T && T.z <= m;) { - if (T.x >= d && T.x <= g && T.y >= v && T.y <= p && T !== i && T !== o && pointInTriangle(s, f, u, h, c, l, T.x, T.y) && 0 <= area(T.NM, T, T.next)) - return; - T = T.RM - } - return 1 - } - } - function cureLocalIntersections(t, e, r) { - var n = t; - do { - var i = n.NM - , a = n.next.next - } while (!equals$2(i, a) && intersects$1(i, n, n.next, a) && locallyInside(i, a) && locallyInside(a, i) && (e.push(i.i / r | 0), - e.push(n.i / r | 0), - e.push(a.i / r | 0), - removeNode(n), - removeNode(n.next), - n = t = a), - (n = n.next) !== t); - return filterPoints(n) - } - function splitEarcut(t, e, r, n, i, a) { - var o = t; - do { - for (var s, u = o.next.next; u !== o.NM;) { - if (o.i !== u.i && isValidDiagonal(o, u)) - return s = splitPolygon(o, u), - o = filterPoints(o, o.next), - s = filterPoints(s, s.next), - earcutLinked(o, e, r, n, i, a, 0), - earcutLinked(s, e, r, n, i, a, 0); - u = u.next - } - } while ((o = o.next) !== t) - } - function eliminateHoles(t, e, r, n) { - for (var i, a = [], o = 0, s = e.length; o < s; o++) - (i = linkedList(t, e[o] * n, o < s - 1 ? e[o + 1] * n : t.length, n, !1)) === i.next && (i.LM = !0), - a.push(getLeftmost(i)); - for (a.sort(compareX), - o = 0; o < a.length; o++) - r = eliminateHole(a[o], r); - return r - } - function compareX(t, e) { - return t.x - e.x - } - function eliminateHole(t, e) { - var r = findHoleBridge(t, e); - return r ? (filterPoints(t = splitPolygon(r, t), t.next), - filterPoints(r, r.next)) : e - } - function findHoleBridge(t, e) { - var r, n = e, i = t.x, a = t.y, o = -1 / 0; - do { - if (a <= n.y && a >= n.next.y && n.next.y !== n.y) { - var s = n.x + (a - n.y) * (n.next.x - n.x) / (n.next.y - n.y); - if (s <= i && o < s && (r = n.x < n.next.x ? n : n.next, - (o = s) === i)) - return r - } - } while ((n = n.next) !== e); - if (!r) - return null; - for (var u, c = r, f = r.x, h = r.y, l = 1 / 0, n = r; i >= n.x && n.x >= f && i !== n.x && pointInTriangle(a < h ? i : o, a, f, h, a < h ? o : i, a, n.x, n.y) && (u = Math.abs(a - n.y) / (i - n.x), - locallyInside(n, t)) && (u < l || u === l && (n.x > r.x || n.x === r.x && sectorContainsSector(r, n))) && (r = n, - l = u), - (n = n.next) !== c;) - ; - return r - } - function sectorContainsSector(t, e) { - return area(t.NM, t, e.NM) < 0 && area(e.next, t, t.next) < 0 - } - function indexCurve(t, e, r, n) { - for (var i = t; 0 === i.z && (i.z = zOrder(i.x, i.y, e, r, n)), - i.DM = i.NM, - i.RM = i.next, - (i = i.next) !== t;) - ; - i.DM.RM = null, - i.DM = null, - sortLinked(i) - } - function sortLinked(t) { - var e, r, n, i, a, o, s, u, c = 1; - do { - for (r = t, - a = t = null, - o = 0; r;) { - for (o++, - n = r, - e = s = 0; e < c && (s++, - n = n.RM); e++) - ; - for (u = c; 0 < s || 0 < u && n;) - 0 !== s && (0 === u || !n || r.z <= n.z) ? (r = (i = r).RM, - s--) : (n = (i = n).RM, - u--), - a ? a.RM = i : t = i, - i.DM = a, - a = i; - r = n - } - } while (a.RM = null, - c *= 2, - 1 < o) - } - function zOrder(t, e, r, n, i) { - return (t = 1431655765 & ((t = 858993459 & ((t = 252645135 & ((t = 16711935 & ((t = (t - r) * i | 0) | t << 8)) | t << 4)) | t << 2)) | t << 1)) | (1431655765 & ((e = 858993459 & ((e = 252645135 & ((e = 16711935 & ((e = (e - n) * i | 0) | e << 8)) | e << 4)) | e << 2)) | e << 1)) << 1 - } - function getLeftmost(t) { - for (var e = t, r = t; (e.x < r.x || e.x === r.x && e.y < r.y) && (r = e), - (e = e.next) !== t;) - ; - return r - } - function pointInTriangle(t, e, r, n, i, a, o, s) { - return (t - o) * (a - s) <= (i - o) * (e - s) && (r - o) * (e - s) <= (t - o) * (n - s) && (i - o) * (n - s) <= (r - o) * (a - s) - } - function isValidDiagonal(t, e) { - return t.next.i !== e.i && t.NM.i !== e.i && !intersectsPolygon(t, e) && (locallyInside(t, e) && locallyInside(e, t) && middleInside(t, e) && (area(t.NM, t, e.NM) || area(t, e.NM, e)) || equals$2(t, e) && 0 < area(t.NM, t, t.next) && 0 < area(e.NM, e, e.next)) - } - function area(t, e, r) { - return (e.y - t.y) * (r.x - e.x) - (e.x - t.x) * (r.y - e.y) - } - function equals$2(t, e) { - return t.x === e.x && t.y === e.y - } - function intersects$1(t, e, r, n) { - var i = sign(area(t, e, r)) - , a = sign(area(t, e, n)) - , o = sign(area(r, n, t)) - , s = sign(area(r, n, e)); - return i !== a && o !== s || 0 === i && onSegment(t, r, e) || 0 === a && onSegment(t, n, e) || 0 === o && onSegment(r, t, n) || 0 === s && onSegment(r, e, n) - } - function onSegment(t, e, r) { - return e.x <= Math.max(t.x, r.x) && e.x >= Math.min(t.x, r.x) && e.y <= Math.max(t.y, r.y) && e.y >= Math.min(t.y, r.y) - } - function sign(t) { - return 0 < t ? 1 : t < 0 ? -1 : 0 - } - function intersectsPolygon(t, e) { - var r = t; - do { - if (r.i !== t.i && r.next.i !== t.i && r.i !== e.i && r.next.i !== e.i && intersects$1(r, r.next, t, e)) - return 1 - } while ((r = r.next) !== t) - } - function locallyInside(t, e) { - return area(t.NM, t, t.next) < 0 ? 0 <= area(t, e, t.next) && 0 <= area(t, t.NM, e) : area(t, e, t.NM) < 0 || area(t, t.next, e) < 0 - } - function middleInside(t, e) { - for (var r = t, n = !1, i = (t.x + e.x) / 2, a = (t.y + e.y) / 2; r.y > a != r.next.y > a && r.next.y !== r.y && i < (r.next.x - r.x) * (a - r.y) / (r.next.y - r.y) + r.x && (n = !n), - (r = r.next) !== t;) - ; - return n - } - function splitPolygon(t, e) { - var r = new Node(t.i, t.x, t.y) - , n = new Node(e.i, e.x, e.y) - , i = t.next - , a = e.NM; - return (t.next = e).NM = t, - (r.next = i).NM = r, - (n.next = r).NM = n, - (a.next = n).NM = a, - n - } - function insertNode(t, e, r, n) { - return t = new Node(t, e, r), - n ? (t.next = n.next, - (t.NM = n).next.NM = t, - n.next = t) : (t.NM = t).next = t, - t - } - function removeNode(t) { - t.next.NM = t.NM, - t.NM.next = t.next, - t.DM && (t.DM.RM = t.RM), - t.RM && (t.RM.DM = t.DM) - } - function Node(t, e, r) { - this.i = t, - this.x = e, - this.y = r, - this.NM = null, - this.next = null, - this.z = 0, - this.DM = null, - this.RM = null, - this.LM = !1 - } - function signedArea(t, e, r, n) { - for (var i = 0, a = e, o = r - n; a < r; a += n) - i += (t[o] - t[a]) * (t[a + 1] + t[o + 1]), - o = a; - return i - } - earcut.PM = function (t, e, r, n) { - var i = e && e.length - , a = i ? e[0] * r : t.length - , o = Math.abs(signedArea(t, 0, a, r)); - if (i) - for (var s = 0, u = e.length; s < u; s++) { - var c = e[s] * r - , f = s < u - 1 ? e[s + 1] * r : t.length; - o -= Math.abs(signedArea(t, c, f, r)) - } - for (var h = 0, s = 0; s < n.length; s += 3) { - var l = n[s] * r - , d = n[s + 1] * r - , v = n[s + 2] * r; - h += Math.abs((t[l] - t[v]) * (t[1 + d] - t[1 + l]) - (t[l] - t[d]) * (t[1 + v] - t[1 + l])) - } - return 0 === o && 0 === h ? 0 : Math.abs((h - o) / o) - } - , - earcut.UM = function (t) { - for (var e = t[0][0].length, r = { - rp: [], - BM: [], - dimensions: e - }, n = 0, i = 0; i < t.length; i++) { - for (var a = 0; a < t[i].length; a++) - for (var o = 0; o < e; o++) - r.rp.push(t[i][a][o]); - 0 < i && (n += t[i - 1].length, - r.BM.push(n)) - } - return r - } - , - earcut_1.default = default_1$1; - var CoreFillBucket = function () { - function t() { - this._b = new FillArray, - this.zM = new FillArray, - this.uploaded = !1 - } - return t.prototype.Nx = function (t, e) { - if (t.length < 6) - return 0; - for (var r = this.Qx.length, n = this._b.length, i = earcut_1(t, e), a = 0, o = i.length; a < o; a += 3) - this.Qx.kb(n + i[a], n + i[a + 1], n + i[a + 2]); - for (a = 0, - o = t.length; a < o; a += 2) - this._b.kb(t[a], t[a + 1]); - return 0 < (e = 3 * (this.Qx.length - r)) && (this.uploaded = !1), - e - } - , - t.prototype.Ew = function (t) { - if (t.length < 2) - return 0; - for (var e = this.qM.length, r = this.zM.length, n = 0, i = t.length; n < i; n += 2) - this.zM.kb(t[n][0], t[n][1]), - this.zM.kb(t[n + 1][0], t[n + 1][1]), - this.qM.kb(r + n, r + n + 1); - return 0 < (e = 2 * (this.qM.length - e)) && (this.uploaded = !1), - e - } - , - t.prototype.destroy = function () { - this.uploaded = !1, - this.zs && (this.zs.context.deleteBuffer(this.zs), - delete this.zs), - this.Pc && (this.Pc.context.deleteBuffer(this.Pc), - delete this.Pc), - this.Ec && (this.Ec.context.deleteBuffer(this.Ec), - delete this.Ec), - this.Nc && (this.Nc.context.deleteBuffer(this.Nc), - delete this.Nc) - } - , - t - }() - , PolygonBucket = function (e) { - function t() { - var t = e.call(this) || this; - return t.Qx = new TriangleIndexArrayUint, - t.qM = new LinesIndexArrayUint, - t - } - return __extends(t, e), - t.prototype.upload = function (t, e) { - void 0 === e && (e = !1), - this.uploaded || (this.destroy(), - this.uploaded = !0, - this.zs = t.fe(this._b.Mb, FillArray.Rb), - this.Pc = t.ve(this.Qx.UI), - this.Ec = t.fe(this.zM.Mb, LinesIndexArray.Rb), - this.Nc = t.ve(this.qM.UI), - e && (delete this.Qx, - delete this._b, - delete this.zM, - delete this.qM)) - } - , - t.prototype.reset = function () { - this._b = new FillArray, - this.zM = new FillArray, - this.Qx = new TriangleIndexArrayUint, - this.qM = new LinesIndexArrayUint, - this.uploaded = !1 - } - , - t - }(CoreFillBucket) - , FaceTextureCoord = { - empty: fromValues$3(-1, -1), - Gm: fromValues$3(1, 1), - qm: fromValues$3(0, 1), - Nm: fromValues$3(1, 0), - Um: fromValues$3(0, 0) - } - , MaxInfo = { - Gm: create$3(), - qm: create$3(), - Nm: create$3(), - Um: create$3() - } - , floorHeight = 6 - , FillExtrusionBucket = function () { - function t() { - this._b = new FillExtrusionArray, - this.uploaded = !1 - } - return t.prototype.tz = function (t, e, r) { - void 0 === e && (e = 100); - for (var n = [], i = [], a = t.length, o = 0; o < a; o += 2) - i[s = o / 2 * 3] = t[o], - i[s + 1] = t[o + 1], - i[s + 2] = 0; - for (var s, o = 0; o < a; o += 2) - n[s = o / 2 * 3] = t[o], - n[s + 1] = t[o + 1], - n[s + 2] = e; - return this.Nx(n, e, r) + this.RI(i, n, r) - } - , - t.prototype.RI = function (t, e, r) { - var n = e.length - , i = e[2] - , a = this._b.length; - t = t.concat(t.slice(0, 3)), - e = e.concat(e.slice(0, 3)); - for (var o = 0; o < n - 3; o += 3) { - var s = Math.abs(t[o] - t[o + 3]) - , u = Math.abs(t[o + 1] - t[o + 4]) - , c = Math.round(i) - , s = Math.round(Math.sqrt(Math.pow(s, 2) + Math.pow(u, 2))) - , s = (0 < (u = fromValues$3(Math.ceil(s / floorHeight), Math.round(c / floorHeight)))[1] ? (mul(MaxInfo.qm, FaceTextureCoord.qm, u), - mul(MaxInfo.Gm, FaceTextureCoord.Gm, u), - mul(MaxInfo.Um, FaceTextureCoord.Um, u), - mul(MaxInfo.Nm, FaceTextureCoord.Nm, u)) : (set$1(MaxInfo.qm, -1, -1), - set$1(MaxInfo.Gm, -1, -1), - set$1(MaxInfo.Um, -1, -1), - set$1(MaxInfo.Nm, -1, -1)), - this.zI(t.slice(o, o + 3), t.slice(o + 3, o + 6), e.slice(o + 3, o + 6))); - this._b.kb(t[o], t[o + 1], t[o + 2], i, s, MaxInfo.qm), - this._b.kb(e[o + 3], e[o + 4], e[o + 5], i, s, MaxInfo.Nm), - this._b.kb(t[o + 3], t[o + 4], t[o + 5], i, s, MaxInfo.Gm), - this._b.kb(t[o], t[o + 1], t[o + 2], i, s, MaxInfo.qm), - this._b.kb(e[o], e[o + 1], e[o + 2], i, s, MaxInfo.Um), - this._b.kb(e[o + 3], e[o + 4], e[o + 5], i, s, MaxInfo.Nm) - } - return 0 < (a = this._b.length - a) && (this.uploaded = !1), - a - } - , - t.prototype.Nx = function (t, e, r) { - if (t.length < 9) - return 0; - for (var n = this._b.length, i = earcut_1(t, r, 3), a = i.length - 1; 0 <= a; a--) { - var o = 3 * i[a]; - this._b.kb(t[o], t[1 + o], t[2 + o], e, fromValues$1(0, 0, 1), FaceTextureCoord.empty) - } - return 0 < (r = this._b.length - n) && (this.uploaded = !1), - r - } - , - t.prototype.zI = function (t, e, r) { - var t = fromValues$1(t[0], t[1], t[2]) - , e = fromValues$1(e[0], e[1], e[2]) - , r = fromValues$1(r[0], r[1], r[2]) - , n = create$1() - , i = create$1() - , a = create$1(); - return sub(i, t, e), - sub(a, r, e), - cross(n, i, a), - n - } - , - t.prototype.upload = function (t, e) { - void 0 === e && (e = !1), - this.uploaded || (this.destroy(), - this.uploaded = !0, - this.zs = t.fe(this._b.Mb, FillExtrusionArray.Rb), - e && delete this._b) - } - , - t.prototype.destroy = function () { - this.uploaded = !1, - this.zs && (this.zs.context.deleteBuffer(this.zs), - delete this.zs), - this.Pc && (this.Pc.context.deleteBuffer(this.Pc), - delete this.Pc) - } - , - t.prototype.reset = function () { - this._b = new FillExtrusionArray, - this.uploaded = !1 - } - , - t - }() - , StyleParser = function () { - function b(t) { - this.TY = t, - this.CI = new AdaptorMap, - this.Ve = null, - this.RV = null, - this.bN = null - } - return b.Wb = function (t) { - return { - style: JSON.stringify(t.styles), - TY: t.TY - } - } - , - b.Gb = function (t) { - var e = new b(t.TY); - return e.jY(JSON.parse(t.style)), - e - } - , - b.mV = function (t) { - var e, r = {}; - for (e in t) - if (t.hasOwnProperty(e)) { - var n = t[e] - , i = void 0; - switch (e[0]) { - case "1": - i = b.Xe; - break; - case "2": - i = b.rn, - n.type = "road"; - break; - case "3": - i = b.cn; - break; - case "4": - i = b.un; - break; - case "5": - i = b.ln, - n.type = "building" - } - if (i) { - for (var o = (a = n.key)[0], a = a[1], s = (void 0 === r[o] && (r[o] = {}), - (r[o][a] = n).browserStyle), u = 0, c = s.length; u < c; u += 1) { - var f = s[u]; - if (s[u] = i(f), - void 0 === n.z) - switch (e[0]) { - case "2": - n.z = (s[u] ? s[u][0] : n).z; - break; - case "1": - case "3": - case "4": - case "5": - n.z = s[u].z; - break; - default: - n.z = -1 - } - } - b.Sn(n) - } else - delete t[e] - } - return r - } - , - b.$V = function (t) { - var e, r = {}; - for (e in t) - if (t.hasOwnProperty(e)) { - var n = t[e] - , i = void 0; - switch (e[0]) { - case "1": - i = b.Xe; - break; - case "2": - i = b.rn, - n.type = "road"; - break; - case "3": - i = b.cn; - break; - case "4": - i = b.un; - break; - case "5": - i = b.ln, - n.type = "building" - } - if (i) { - for (var o = (a = e.split(":"))[0], a = a[1], s = (void 0 === r[o] && (r[o] = {}), - (r[o][a] = n).browserStyle), u = 0, c = s.length; u < c; u += 1) { - var f = s[u]; - if (s[u] = i(f), - void 0 === n.z) - switch (e[0]) { - case "2": - n.z = (s[u] ? s[u][0] : n).z; - break; - case "1": - case "3": - case "4": - case "5": - n.z = s[u].z; - break; - default: - n.z = -1 - } - } - b.Sn(n) - } else - delete t[e] - } - return r - } - , - b.SZ = function (t) { - for (var e = t.stylemaps, r = e.length, n = {}, i = 0; i < r; i++) { - for (var a = e[i], o = a.key[0], s = a.key[1], u = {}, c = (void 0 === n[o] && (n[o] = {}), - (n[o][s] = u).browserStyle = a.browserStyle, - {}), f = a.levelStyleMapping.length, h = 0; h < f; h += 2) { - var l = a.levelStyleMapping[h] - , d = a.levelStyleMapping[h + 1]; - c[l] = d - } - u.levelStyleMapping = c; - var v = void 0; - switch (o[0]) { - case "1": - v = b.Xe; - break; - case "2": - v = b.rn, - u.type = "road"; - break; - case "3": - v = b.cn; - break; - case "4": - v = b.un; - break; - case "5": - v = b.ln, - u.type = "building" - } - for (var g = u.browserStyle, p = 0, y = g.length; p < y; p += 1) { - var m = g[p]; - if (g[p] = v(m), - void 0 === u.z) - switch (o[0]) { - case "2": - u.z = (g[p] ? g[p][0] : u).z; - break; - case "1": - case "3": - case "4": - case "5": - u.z = g[p].z; - break; - default: - u.z = -1 - } - } - b.Sn(u) - } - return n - } - , - b.Je = function (t) { - var e; - return t && "0" !== t ? (8 === t.length && (t = t.slice(2) + t.slice(0, 2)), - this.yQ && this.yQ[t] ? Color.create(this.yQ[t]) : (e = Color.create(t), - this.yQ || (this.yQ = {}), - this.yQ[t] || (this.yQ[t] = e.rgba.slice(0)), - e)) : null - } - , - b.Sn = function (t) { - if (void 0 !== t.levelStyleMapping[3] && (t.levelStyleMapping[2] = t.levelStyleMapping[3]), - void 0 !== t.levelStyleMapping[20] && (t.levelStyleMapping[21] = t.levelStyleMapping[20], - t.levelStyleMapping[22] = t.levelStyleMapping[20], - t.levelStyleMapping[23] = t.levelStyleMapping[20], - t.levelStyleMapping[24] = t.levelStyleMapping[20], - t.levelStyleMapping[25] = t.levelStyleMapping[20], - t.levelStyleMapping[26] = t.levelStyleMapping[20], - t.levelStyleMapping[27] = t.levelStyleMapping[20], - t.levelStyleMapping[28] = t.levelStyleMapping[20], - t.levelStyleMapping[29] = t.levelStyleMapping[20], - t.levelStyleMapping[30] = t.levelStyleMapping[20]), - "building" === t.type && t.levelStyleMapping && (delete t.levelStyleMapping[15], - delete t.levelStyleMapping[16]), - "road" === t.type && void 0 !== t.levelStyleMapping[20]) { - var e = t.browserStyle - , r = t.levelStyleMapping[20] - , n = e[r]; - if (n) - for (var i = 1; i <= 10; i++) { - var a = []; - a.push(exports.Ln({}, n[0])), - a.push(exports.Ln({}, n[1])), - a[0].roadWidth = a[0].roadWidth * Math.pow(2, i), - a[0].borderWidth = a[0].borderWidth * Math.pow(2, i), - t.browserStyle.push(a), - t.levelStyleMapping[i + 20] = r + i - } - } - } - , - b.prototype._Q = function () { - return Boolean(this.styles) - } - , - b.prototype.jY = function (t) { - this.styles = t - } - , - b.prototype.clearStyleCache = function () { - this.EI = -1, - this.CI.clear() - } - , - b.prototype.setStyle = function (t) { - this.Ve = t, - this.clearStyleCache() - } - , - b.prototype.EY = function (t) { - this.RV = t - } - , - b.prototype.MS = function (t) { - if (this.RV) - return this.RV[t] - } - , - b.prototype.kF = function (t) { - this.bN = t - } - , - b.prototype.dn = function (t, e, r) { - if (this.styles) - return this.SI(t, e, r) ? this.CI.get((t << 16) + e) : (r = this.jk(t, e, r) ? this.Ak(t, e, r, this.Ve) || null : this.kk(t, e, r) || null, - this.CI.set((t << 16) + e, r), - r) - } - , - b.prototype.MF = function (t, e) { - var r = this.bN; - if (!r || !r[t]) - return null; - if (r[t].styles && r[t].styles.color) { - var n, i, e = Util.getOptimalZoom(e), a = {}; - for (n in r[t].styles.color.nodesObj) - r[t].styles.color.nodesObj.hasOwnProperty(n) && (a[(i = r[t].styles.color.nodesObj[n]).zoom] = i.value); - return a[e = this._k(a, e)] ? Util.Hex2Rgba(a[e]) : null - } - return r[t].color ? (e = r[t].color, - Util.Hex2Rgba(e)) : void 0 - } - , - b.prototype.nX = function (t, e, r, n) { - var i = this.Ve; - return i && i[t] && i[t][e] ? (i = i[t][e]).styles && i.styles[r] ? (t = Util.getOptimalZoom(n), - (n = this._k(i.styles[r].nodesObj, t)) && i.styles[r].nodesObj[n] ? i.styles[r].nodesObj[n] : null) : "visible" === r || i[r] && (i.visible || "3" !== e) ? i[r] : void 0 : null - } - , - b.prototype.Ok = function (t, e, r) { - return void 0 !== this.styles[t] && (t = this.styles[t][e]) && void 0 !== (e = t.levelStyleMapping[r]) ? t.browserStyle[e] : null - } - , - b.prototype.xk = function (t, e, r) { - if (void 0 === this.styles[t]) - return null; - if (void 0 === this.styles[t][e]) - return null; - if (void 0 === this.styles[t][e].levelStyleMapping) - return null; - if (void 0 === this.styles[t][e].browserStyle) - return null; - var n = this.styles[t][e].levelStyleMapping - , t = this.styles[t][e].browserStyle - , i = Math.floor(r); - if (i === (e = Math.ceil(r))) - return (a = t[n[i]]) ? (g = l = cloneDeep(a), - l instanceof Array && (g = l[0]), - l) : null; - var a = r - i < .8 ? i : e - , o = t[n[i]] - , t = t[n[e]]; - if ((o || t) && (o || a !== i) && (!o || t || a !== e) && (o || !t || i !== a)) { - if (!o && t) { - for (var s, u, c = l = cloneDeep(t), f = (l instanceof Array && (c = l[0]), - Object.keys(c)), h = 0; h < f.length; h++) - -1 < (d = f[h]).indexOf("Color") && c[d] && c[d].rgba ? (u = (r - i - .8) / .2, - s = Math.floor(c[d].rgba[3] * u), - c[d].rgba[3] = s) : -1 < d.indexOf("Width") && (c[d] = c[d] * (u = (r - i - .8) / .2)); - return l - } - if (o && t) { - for (var l, d, v, g = l = cloneDeep(o), c = t, f = (l instanceof Array && (g = l[0]), - l instanceof Array && (c = t[0]), - Object.keys(g)), h = 0; h < f.length; h++) - -1 < (d = f[h]).indexOf("Width") && (v = (r - i) * (c[d] - g[d]) + g[d], - g[d] = v); - return l - } - return o && !t ? (g = l = cloneDeep(o), - l instanceof Array && (g = l[0]), - l) : null - } - } - , - b.prototype.Ik = function (t, e, r) { - var n = []; - return n[0] = t[0] + (e[0] - t[0]) * r, - n[1] = t[1] + (e[1] - t[1]) * r, - n[2] = t[2] + (e[2] - t[2]) * r, - n[3] = t[3] + (e[3] - t[3]) * r, - n - } - , - b.prototype.kk = function (t, e, r) { - var n = t.toString()[0]; - return "1" === n || "4" === n ? (n = Util.getOptimalZoom(r), - this.Ok(t, e, n)) : this.xk(t, e, r) - } - , - b.prototype.Ak = function (t, e, r, n) { - var i = r - , a = n[t][e] || n[t].all - , o = null; - if (a.styles) { - var s = Util.getOptimalZoom(r); - if (a.styles.visible && (n = this._k(a.styles.visible.nodesObj, s)) && void 0 !== (n = a.styles.visible.nodesObj[n]) && !1 === n) - return null; - for (var u = (b = cloneDeep(this.styles[t][e])).levelStyleMapping, c = b.browserStyle, f = Object.keys(a.styles), h = 0; h < f.length; h++) { - var l = f[h] - , d = a.styles[l] - , v = null; - if (d.transitional && "linear" === d.transitional) { - var g, p = this.Tk(d.nodesObj, r); - if (!p || !p[0]) - continue; - if (!(i = p[0])) - continue; - if (void 0 === (g = u[s])) - continue; - o = c[g], - 1 === p.length ? v = d.nodesObj[i] : "color" === l && (v = this.Fk(p, d.nodesObj, r)) - } else { - if (!(i = this._k(d.nodesObj, s))) - continue; - if (void 0 === (g = u[s])) - continue; - o = c[g], - v = d.nodesObj[i] - } - if (!o) - return null; - var y = t.toString()[0] - , m = this.uP(a, s); - if ("1" === y) { - if (!m) - return null; - this.NI(l, v, o, t, e) - } else - "2" === y ? (this.Sk(l, v, o), - !m && o && o[1] && (o[1] = null)) : "4" === y ? this.LI(l, v, o) : this.Ck(l, v, o) - } - } else { - if (void 0 !== a.visible && !1 === a.visible) - return null; - if (void 0 === (g = (u = this.styles[t][e].levelStyleMapping)[i = Util.getOptimalZoom(i)])) - return null; - if (!this.styles[t][e].browserStyle[g]) - return null; - for (var b, o = (c = (b = cloneDeep(this.styles[t][e])).browserStyle)[g], f = Object.keys(a), m = this.uP(a, i), h = 0; h < f.length; h++) { - if (l = f[h], - !o) - return null; - if ("1" === (y = t.toString()[0])) { - if (!m) - return null; - this.NI(l, a[l], o, t, e) - } else - "2" === y ? (this.Sk(l, a[l], o), - !m && o && o[1] && (o[1] = null)) : "4" === y ? this.LI(l, a[l], o) : this.Ck(l, a[l], o) - } - } - return o - } - , - b.prototype.mn = function (t, e) { - return void 0 === this.styles[t] ? null : (t = this.styles[t][e]) ? (e = t.levelStyleMapping || {}, - t = Object.keys(e), - [parseInt(t[0], 10), parseInt(t[t.length - 1], 10)]) : [] - } - , - b.prototype.Lw = function (t, e) { - return void 0 !== this.styles[t] && (t = this.styles[t][e]) ? t.z : null - } - , - b.prototype.mW = function (t, e, r) { - return 2 === Math.floor(t / 1e4) && (t = this.xk(t, e, r)) && t[0] ? (e = ["butt", "butt"], - -1 < (r = t[0]).roadStyle.indexOf("roundcap") ? e[0] = "round" : -1 < r.roadStyle.indexOf("squarecap") && (e[0] = "square"), - -1 < r.borderStyle.indexOf("roundcap") ? e[1] = "round" : -1 < r.borderStyle.indexOf("squarecap") && (e[1] = "square"), - e) : defaultCap - } - , - b.prototype.destroy = function () { - this.styles && (this.styles = {}) - } - , - b.prototype.uP = function (t, e) { - var r = !0; - return t.styles && t.styles.showLabel ? (e = this._k(t.styles.showLabel.nodesObj, e), - void 0 !== (e = t.styles.showLabel.nodesObj[e]) && !1 === e && (r = !1)) : void 0 !== t.showLabel && !1 === t.showLabel && (r = !1), - r - } - , - b.prototype.SI = function (t, e, r) { - return r = this.TY ? Math.floor(r) : Math.floor(r * (16.8 <= r ? 100 : 10)), - this.EI !== r && (this.EI = r, - this.CI.clear()), - this.CI.has((t << 16) + e) - } - , - b.prototype.jk = function (t, e, r) { - return !!this.Ve && !!this.Ve[t] && !(!this.Ve[t][e] && !this.Ve[t].all || !this.styles || !this.styles[t] || !this.styles[t][e]) - } - , - b.prototype.Fk = function (t, e, r) { - var n = Util.Hex2Rgba(e[t[0]]) - , e = Util.Hex2Rgba(e[t[1]]) - , r = (r - t[0]) / (t[1] - t[0]); - return [Math.floor(n[0] + r * (e[0] - n[0])), Math.floor(n[1] + r * (e[1] - n[1])), Math.floor(n[2] + r * (e[2] - n[2])), Math.floor(n[3] + r * (e[3] - n[3]))] - } - , - b.prototype.UV = function (t) { - for (var e = {}, r = 0; r < t.length; r++) { - t[r]; - var n = t[r].zoom - , i = t[r].value; - e[n] = i - } - return e - } - , - b.prototype.Tk = function (t, e) { - var r = []; - if (t[e]) - r.push(e); - else { - for (var n = !0, i = Math.floor(e); n && 0 < i;) { - if (t[i]) { - r.push(i), - n = !1; - break - } - i-- - } - for (i = Math.ceil(e), - n = !0; n && i < 25;) { - if (t[i]) { - r.push(i), - n = !1; - break - } - i++ - } - } - return r - } - , - b.prototype._k = function (t, e) { - if (!t) - return null; - if (!isUndefined$1(t[e])) - return e; - for (var r = !0, n = e; r && 0 < n;) - if (t[--n] || !1 === t[n] || "" === t[n]) { - r = !1; - break - } - if (!r) - return n; - for (n = e; r && n < 25;) - if (t[++n] || !1 === t[n] || "" === t[n]) { - r = !1; - break - } - return r ? null : n - } - , - b.prototype.Ck = function (t, e, r) { - var n = null; - switch (t) { - case "color": - case "fillColor": - n = e, - Array.isArray(e) || (n = Util.Hex2Rgba(e)), - r.faceColor || (r.faceColor = new Color(n)), - r.faceColor.rgba = n; - break; - case "fontSize": - r.fontSize = e; - break; - case "texture": - r.texture = e ? AMap.getConfig().protocol + "://" + e : ""; - break; - case "backgroundColor": - n = Util.Hex2Rgba(e), - r.holoColor && (r.holoColor.rgba = n); - break; - case "strokeColor": - n = Util.Hex2Rgba(e), - r.borderColor || (r.borderColor = new Color(n)), - r.borderColor.rgba = n; - break; - case "showIcon": - !1 === e && r.iconID && (r.iconID = "0") - } - } - , - b.prototype.LI = function (t, e, r) { - var n = null; - switch (t) { - case "textFillColor": - n = e, - Array.isArray(e) || (n = Util.Hex2Rgba(e)), - r.faceColor || (r.faceColor = new Color(n)), - r.faceColor.rgba = n; - break; - case "fontSize": - r.fontSize = e; - break; - case "backgroundColor": - n = Util.Hex2Rgba(e), - r.holoColor && (r.holoColor.rgba = n); - break; - case "textStrokeColor": - n = Util.Hex2Rgba(e), - r.borderColor || (r.borderColor = new Color(n)), - r.borderColor.rgba = n; - break; - case "showIcon": - !1 === e && r.iconID && (r.iconID = "0"); - break; - case "showLabel": - r.showText = e ? 1 : 0 - } - } - , - b.prototype.NI = function (t, e, r, n, i) { - var a = null; - switch (t) { - case "showIcon": - !1 === e && r.iconID && (r.iconID = "0"); - break; - case "textFillColor": - a = e, - Array.isArray(e) || (a = Util.Hex2Rgba(e)), - r.faceColor || (r.faceColor = new Color(a)), - r.faceColor.rgba = a; - break; - case "fontSize": - r.fontSize = e; - break; - case "backgroundColor": - a = Util.Hex2Rgba(e), - r.holoColor ? r.holoColor.rgba = a : 10002 !== n || 8 !== i && 37 !== i || (r.holoColor = new Color(a)); - break; - case "textStrokeColor": - a = Util.Hex2Rgba(e), - r.borderColor || (r.borderColor = new Color(a)), - r.borderColor.rgba = a; - break; - case "sel-highlight": - r["sel-highlight"] = !0 === e; - break; - case "sel-textFillColor": - a = Util.Hex2Rgba(e), - r["sel-textFillColor"] = map(a, function (t) { - return t / 255 - }); - break; - case "sel-textStrokeColor": - a = Util.Hex2Rgba(e), - r["sel-textStrokeColor"] = map(a, function (t) { - return t / 255 - }); - break; - case "label-bg": - r["label-bg"] = !0 === e; - break; - case "label-bgColor": - a = Util.Hex2Rgba(e), - r.holoColor ? r.holoColor.rgba = a : 10002 !== n || 8 !== i && 37 !== i || (r.holoColor = new Color(a)); - break; - case "showLabel": - r.showText = e ? 1 : 0 - } - } - , - b.prototype.Sk = function (t, e, r) { - var n, i = null; - switch (t) { - case "color": - case "fillColor": - i = Util.Hex2Rgba(e), - r[0] && (r[0].roadColor || (r[0].roadColor = new Color(i)), - r[0].roadColor.rgba = i); - break; - case "fillOpacity": - r[0] && r[0].roadColor && r[0].roadColor.rgba && (n = r[0].roadColor.rgba, - i = Util.Opacity2Rgba(e, n), - r[0].roadColor.rgba = i); - break; - case "fillWidth": - r[0] && (r[0].roadWidth = e); - break; - case "strokeColor": - i = Util.Hex2Rgba(e), - r[0] && (r[0].borderColor || (r[0].borderColor = new Color(i)), - r[0].borderColor.rgba = i); - break; - case "strokeWidth": - r[0] && (r[0].borderWidth = e); - break; - case "textFillColor": - r[1] && (i = Util.Hex2Rgba(e), - r[1].faceColor || (r[1].faceColor = new Color(i)), - r[1].faceColor.rgba = i); - break; - case "textStrokeColor": - r[1] && (i = Util.Hex2Rgba(e), - r[1].borderColor || (r[1].borderColor = new Color(i)), - r[1].borderColor.rgba = i); - break; - case "fontSize": - r[1] && (r[1].fontSize = e); - break; - case "showLabel": - r.showText = e ? 1 : 0 - } - } - , - b.Xe = function (t) { - var t = t.split("&") - , e = {}; - return e.iconID = t[0], - e.fontSize = parseInt(t[1], 10), - e.faceColor = b.Je(t[2]), - e.borderColor = b.Je(t[3]), - e.holoColor = b.Je(t[4]), - e.showMode = parseInt(t[6], 10), - e.showText = 2 === e.showMode ? 0 : 1, - e.forceShow = parseInt(t[7], 10), - e.clickEnable = parseInt(t[8], 10), - e.xOffset = parseInt(t[9], 10), - e.yOffset = parseInt(t[10], 10), - e.iconFile = t[5], - e - } - , - b.rn = function (t) { - var e = (t = t.split("|"))[0].split("&") - , r = {} - , e = (t[0] ? (r.roadWidth = parseInt(e[0], 10), - r.roadColor = b.Je(e[1]), - r.roadStyle = e[2] || "", - r.borderWidth = parseInt(e[3], 10), - r.borderColor = b.Je(e[4]), - r.borderStyle = e[5] || "", - r.z = parseInt(e[6], 10), - r.roadStyle && r.roadStyle.indexOf && (0 === r.roadStyle.indexOf("dash") ? (r.roadDash = r.roadStyle.substring(4).slice(1, -1).split(","), - r.roadDash = map(r.roadDash, function (t) { - return parseInt(t, 10) - }), - 2 === r.roadDash.length && (e = r.roadDash).push.apply(e, r.roadDash)) : 0 < r.roadStyle.indexOf("railway") || r.roadStyle.indexOf("dash_crewel")), - r.borderStyle && r.borderStyle.indexOf && (0 === r.borderStyle.indexOf("dash") ? (r.borderDash = r.borderStyle.substring(4).slice(1, -1).split(","), - r.borderDash = map(r.borderDash, function (t) { - return parseInt(t, 10) - }), - 2 === r.borderDash.length && (e = r.borderDash).push.apply(e, r.borderDash)) : 0 < r.borderStyle.indexOf("railway") || r.borderStyle.indexOf("dash_crewel"))) : (r.roadWidth = 0, - r.roadColor = b.Je("00000000"), - r.roadStyle = "", - r.borderWidth = 0, - r.borderColor = b.Je("00000000"), - r.borderStyle = "", - r.z = 0), - {}); - return t[1] && (t = t[1].split("&"), - e.iconID = "", - e.fontSize = parseInt(t[1], 10), - e.faceColor = b.Je(t[2]), - e.borderColor = b.Je(t[3]), - e.z = parseInt(t[4], 10)), - [r, e] - } - , - b.ln = function (t) { - var t = t.split("&") - , e = {}; - return e.faceColor = b.Je(t[0]), - e.borderWidth = parseInt(t[1], 10), - e.borderColor = b.Je(t[2]), - e.wallColor1 = b.Je(t[3]), - e.wallColor2 = b.Je(t[4]), - e.opacity = parseFloat(t[5]), - e.z = parseInt(t[6], 10), - e - } - , - b.un = function (t) { - var t = t.split("&") - , e = {}; - return e.iconID = t[0], - e.fontSize = parseInt(t[1], 10), - e.faceColor = b.Je(t[2]), - e.borderColor = b.Je(t[3]), - e.holoColor = null, - e.z = parseInt(t[5], 10), - e - } - , - b.cn = function (t) { - var t = t.split("&") - , e = {}; - return e.faceColor = b.Je(t[0]), - e.borderWidth = 0, - e.borderColor = null, - e.z = parseInt(t[3], 10), - e - } - , - b - }() - , NebulaSegements = function () { - function t() { - this.jc = [], - this.GM = -1, - this.HM = -1, - this.VM = 0, - this.WM = new LineSegement(-1, -1, -1, -1, -1) - } - return t.prototype.add = function (t, e, r, n, i, a, o, s) { - this.WM.eT(t, e, i, n) && a === this.WM.bz && o + "" == this.WM.roofColor + "" && s + "" == this.WM.wallColor + "" || (this.GM = t, - this.HM = e, - this.VM += this.WM ? this.WM.length : 0, - this.WM = new LineSegement(t, e, this.VM, n, i, a, o, s), - this.jc.push(this.WM)), - this.WM.add(r) - } - , - t.prototype.reset = function () { - this.WM = new LineSegement(-1, -1, -1, -1, -1) - } - , - t - }() - , LineSegement = function () { - function t(t, e, r, n, i, a, o, s) { - this.mainkey = t, - this.subkey = e, - this.offset = r, - this.minzoom = n, - this.maxzoom = i, - this.bz = a, - this.roofColor = o, - this.wallColor = s, - this.length = 0 - } - return t.prototype.add = function (t) { - this.length += t - } - , - t.prototype.eT = function (t, e, r, n) { - return this.mainkey === t && this.subkey === e && this.maxzoom === r && this.minzoom === n - } - , - t - }() - , PolygonSegements = function () { - function t() { - this.jc = [], - this.VM = 0 - } - return t.prototype.add = function (t) { - this.jc.push({ - length: t, - offset: this.VM - }), - this.VM += t - } - , - t.prototype.reset = function () { - this.jc = [], - this.VM = 0 - } - , - t.prototype.destroy = function () { - this.jc && 0 < this.jc.length && (this.jc = []) - } - , - t - }() - , VectorTileFeature = function (t, e, r, n, i) { - this.properties = {}, - this.extent = r, - this.type = 0, - this.fA = t, - this.hA = -1, - this.cA = n, - this.vA = i, - t.nw(readFeature, this, e) - }; - function readFeature(t, e, r) { - 1 === t ? e.id = r.ow() : 2 === t ? readTag(r, e) : 3 === t ? e.type = r.ow() : 4 === t && (e.hA = r.pos) - } - function readTag(t, e) { - for (var r = t.ow() + t.pos; t.pos < r;) { - var n = e.cA[t.ow()] - , i = e.vA[t.ow()]; - e.properties[n] = i - } - } - function classifyRings(t) { - var e = t.length; - if (e <= 1) - return [t]; - for (var r, n = [], i = [], a = 0; a < e; a++) { - var o = signedArea$1(t[a]); - 0 !== o && ((r = void 0 === r ? o < 0 : r) === o < 0 ? (i && n.push(i), - i = [t[a]]) : i.push(t[a])) - } - return i && n.push(i), - n - } - function signedArea$1(t) { - for (var e, r, n = 0, i = 0, a = t.length, o = a - 1; i < a; o = i++) - e = t[i], - n += ((r = t[o]).x - e.x) * (e.y + r.y); - return n - } - VectorTileFeature.types = ["Unknown", "Point", "LineString", "Polygon"], - VectorTileFeature.prototype.Dw = function () { - for (var t, e = this.fA, r = (e.pos = this.hA, - e.ow() + e.pos), n = 1, i = 0, a = 0, o = 0, s = [], u = []; e.pos < r;) - if (i <= 0 && (n = 7 & (t = e.ow()), - i = t >> 3), - i--, - 1 === n || 2 === n) - a += e.lA(), - o += e.lA(), - 1 === n && (u && 0 < u.length && s.push(u), - u = []), - u.push([a, o]); - else { - if (7 !== n) - throw new Error("unknown command " + n); - u && u.push([u[0][0], u[0][1]]) - } - return u && 0 < u.length && s.push(u), - this.lines = s - } - , - VectorTileFeature.prototype.Ro = function () { - for (var t, e = this.fA, r = (e.pos = this.hA, - e.ow() + e.pos), n = 1, i = 0, a = 0, o = 0, s = 1 / 0, u = -1 / 0, c = 1 / 0, f = -1 / 0; e.pos < r;) - if (i <= 0 && (n = 7 & (t = e.ow()), - i = t >> 3), - i--, - 1 === n || 2 === n) - (a += e.lA()) < s && (s = a), - u < a && (u = a), - (o += e.lA()) < c && (c = o), - f < o && (f = o); - else if (7 !== n) - throw new Error("unknown command " + n); - return [s, c, u, f] - } - , - VectorTileFeature.prototype.dA = function (t, e, r) { - var n, i = this.extent * Math.pow(2, r), a = this.extent * t, o = this.extent * e, s = this.Dw(), r = VectorTileFeature.types[this.type]; - function u(t) { - for (var e = 0; e < t.length; e++) { - var r = t[e] - , n = 180 - 360 * (r.y + o) / i; - t[e] = [360 * (r.x + a) / i - 180, 360 / Math.PI * Math.atan(Math.exp(n * Math.PI / 180)) - 90] - } - } - switch (this.type) { - case 1: - for (var c = [], f = 0; f < s.length; f++) - c[f] = s[f][0]; - u(s = c); - break; - case 2: - for (f = 0; f < s.length; f++) - u(s[f]); - break; - case 3: - for (s = classifyRings(s), - f = 0; f < s.length; f++) - for (n = 0; n < s[f].length; n++) - u(s[f][n]) - } - return 1 === s.length ? s = s[0] : r = "Multi" + r, - t = { - type: "Feature", - geometry: { - type: r, - coordinates: s - }, - properties: this.properties - }, - "id" in this && (t.id = this.id), - t - } - ; - var VectorTileLayer = function (t, e) { - this.version = 1, - this.name = null, - this.extent = 4096, - this.length = 0, - this.fA = t, - this.cA = [], - this.vA = [], - this.Cw = [], - t.nw(readLayer, this, e), - this.length = this.Cw.length - }; - function readLayer(t, e, r) { - 15 === t ? e.version = r.ow() : 1 === t ? e.name = r.aw() : 5 === t ? e.extent = r.ow() : 2 === t ? e.Cw.push(r.pos) : 3 === t ? e.cA.push(r.aw()) : 4 === t && e.vA.push(readValueMessage(r)) - } - function readValueMessage(t) { - for (var e = null, r = t.ow() + t.pos; t.pos < r;) - var n = t.ow() >> 3 - , e = 1 == n ? t.aw() : 2 == n ? t.pA() : 3 == n ? t.yA() : 4 == n ? t.mA() : 5 == n ? t.ow() : 6 == n ? t.lA() : 7 == n ? t.vw() : null; - return e - } - VectorTileLayer.prototype.Gw = function (t) { - if (t < 0 || t >= this.Cw.length) - throw new Error("feature index out of bounds"); - return this.fA.pos = this.Cw[t], - t = this.fA.ow() + this.fA.pos, - new VectorTileFeature(this.fA, t, this.extent, this.cA, this.vA) - } - ; - var VectorTile$1 = function (t, e) { - this.type = "vector", - this.layers = t.nw(readTile, {}, e) - }; - function readTile(t, e, r) { - 3 === t && (t = new VectorTileLayer(r, r.ow() + r.pos)).length && (e[t.name] = t) - } - VectorTile$1.Wb = function (t) { - return t - } - , - VectorTile$1.Gb = function (t) { - return t - } - , - VectorTile$1.prototype.nG = function (t) { - this.type = t - } - ; - var SHIFT_LEFT_32 = 4294967296 - , SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32 - , Pbf = function () { - function n(t) { - this.gA = ArrayBuffer.isView && ArrayBuffer.isView(t) ? t : new Uint8Array(t || 0), - this.pos = 0, - this.type = 0, - this.length = this.gA.length - } - return n.prototype.destroy = function () { - this.gA = new Uint8Array(0) - } - , - n.prototype.nw = function (t, e, r) { - for (r = r || this.length; this.pos < r;) { - var n = this.ow() - , i = n >> 3 - , a = this.pos; - this.type = 7 & n, - t(i, e, this), - this.pos === a && this.wA(n) - } - return e - } - , - n.prototype.MA = function (t, e) { - return this.nw(t, e, this.ow() + this.pos) - } - , - n.prototype.jA = function () { - var t = readUInt32(this.gA, this.pos); - return this.pos += 4, - t - } - , - n.prototype.AA = function () { - var t = readInt32(this.gA, this.pos); - return this.pos += 4, - t - } - , - n.prototype.kA = function () { - var t = readUInt32(this.gA, this.pos) + readUInt32(this.gA, this.pos + 4) * SHIFT_LEFT_32; - return this.pos += 8, - t - } - , - n.prototype.OA = function () { - var t = readUInt32(this.gA, this.pos) + readInt32(this.gA, this.pos + 4) * SHIFT_LEFT_32; - return this.pos += 8, - t - } - , - n.prototype.pA = function () { - var t = this.xA(this.gA, this.pos, !0, 23, 4); - return this.pos += 4, - t - } - , - n.prototype.yA = function () { - var t = this.xA(this.gA, this.pos, !0, 52, 8); - return this.pos += 8, - t - } - , - n.prototype.ow = function (t) { - var e = this.gA - , r = e[this.pos++] - , n = 127 & r; - return r < 128 || (n |= (127 & (r = e[this.pos++])) << 7, - r < 128) || (n |= (127 & (r = e[this.pos++])) << 14, - r < 128) || (n |= (127 & (r = e[this.pos++])) << 21, - r < 128) ? n : readVarintRemainder(n |= (15 & e[this.pos]) << 28, t, this) - } - , - n.prototype.mA = function () { - return this.ow(!0) - } - , - n.prototype.lA = function () { - var t = this.ow(); - return t % 2 == 1 ? (t + 1) / -2 : t / 2 - } - , - n.prototype.vw = function () { - return Boolean(this.ow()) - } - , - n.prototype.aw = function () { - var t = this.ow() + this.pos - , e = readUtf8(this.gA, this.pos, t); - return this.pos = t, - e - } - , - n.prototype.mw = function () { - var t = this.ow() + this.pos - , e = this.gA.subarray(this.pos, t); - return this.pos = t, - e - } - , - n.prototype.tw = function (t, e) { - var r = readPackedEnd(this); - for (t = t || []; this.pos < r;) - t.push(this.ow(e)); - return t - } - , - n.prototype.IA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.lA()); - return t - } - , - n.prototype.TA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.vw()); - return t - } - , - n.prototype.FA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.pA()); - return t - } - , - n.prototype._A = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.yA()); - return t - } - , - n.prototype.SA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.jA()); - return t - } - , - n.prototype.CA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.AA()); - return t - } - , - n.prototype.EA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.kA()); - return t - } - , - n.prototype.NA = function (t) { - var e = readPackedEnd(this); - for (t = t || []; this.pos < e;) - t.push(this.OA()); - return t - } - , - n.prototype.wA = function (t) { - (t &= 7) !== n.LA && (t === n.DA ? this.pos = this.ow() + this.pos : t === n.RA ? this.pos += 4 : t === n.PA ? this.pos += 8 : console.log("Unimplemented type: " + t)) - } - , - n.prototype.UA = function (t, e) { - this.BA(t << 3 | e) - } - , - n.prototype.zA = function (t) { - for (var e, r = this.length || 16; r < this.pos + t;) - r *= 2; - r !== this.length && ((e = new Uint8Array(r)).set(this.gA), - this.gA = e, - this.length = r) - } - , - n.prototype.finish = function () { - return this.length = this.pos, - this.pos = 0, - this.gA.subarray(0, this.length) - } - , - n.prototype.qA = function (t) { - this.zA(4), - writeInt32(this.gA, t, this.pos), - this.pos += 4 - } - , - n.prototype.WA = function (t) { - this.zA(4), - writeInt32(this.gA, t, this.pos), - this.pos += 4 - } - , - n.prototype.GA = function (t) { - this.zA(8), - writeInt32(this.gA, -1 & t, this.pos), - writeInt32(this.gA, Math.floor(t * SHIFT_RIGHT_32), this.pos + 4), - this.pos += 8 - } - , - n.prototype.HA = function (t) { - this.zA(8), - writeInt32(this.gA, -1 & t, this.pos), - writeInt32(this.gA, Math.floor(t * SHIFT_RIGHT_32), this.pos + 4), - this.pos += 8 - } - , - n.prototype.BA = function (t) { - 268435455 < (t = +t || 0) || t < 0 ? writeBigVarint(t, this) : (this.zA(4), - this.gA[this.pos++] = 127 & t | (127 < t ? 128 : 0), - t <= 127 || (this.gA[this.pos++] = 127 & (t >>>= 7) | (127 < t ? 128 : 0), - t <= 127) || (this.gA[this.pos++] = 127 & (t >>>= 7) | (127 < t ? 128 : 0), - t <= 127) || (this.gA[this.pos++] = t >>> 7 & 127)) - } - , - n.prototype.VA = function (t) { - this.BA(t < 0 ? 2 * -t - 1 : 2 * t) - } - , - n.prototype.$A = function (t) { - this.BA(Boolean(t)) - } - , - n.prototype.YA = function (t) { - t = String(t), - this.zA(4 * t.length), - this.pos++; - var e = this.pos; - this.pos = writeUtf8(this.gA, t, this.pos), - 128 <= (t = this.pos - e) && makeRoomForExtraLength(e, t, this), - this.pos = e - 1, - this.BA(t), - this.pos += t - } - , - n.prototype.KA = function (t) { - this.zA(4), - this.XA(this.gA, t, this.pos, !0, 23, 4), - this.pos += 4 - } - , - n.prototype.JA = function (t) { - this.zA(8), - this.XA(this.gA, t, this.pos, !0, 52, 8), - this.pos += 8 - } - , - n.prototype.ZA = function (t) { - var e = t.length; - this.BA(e), - this.zA(e); - for (var r = 0; r < e; r++) - this.gA[this.pos++] = t[r] - } - , - n.prototype.QA = function (t, e) { - this.pos++; - var r = this.pos; - t(e, this), - 128 <= (t = this.pos - r) && makeRoomForExtraLength(r, t, this), - this.pos = r - 1, - this.BA(t), - this.pos += t - } - , - n.prototype.fw = function (t, e, r) { - this.UA(t, n.DA), - this.QA(e, r) - } - , - n.prototype.tk = function (t, e) { - this.fw(t, writePackedVarint, e) - } - , - n.prototype.rk = function (t, e) { - this.fw(t, writePackedSVarint, e) - } - , - n.prototype.nk = function (t, e) { - this.fw(t, writePackedBoolean, e) - } - , - n.prototype.ik = function (t, e) { - this.fw(t, writePackedFloat, e) - } - , - n.prototype.ek = function (t, e) { - this.fw(t, writePackedDouble, e) - } - , - n.prototype.ak = function (t, e) { - this.fw(t, writePackedFixed32, e) - } - , - n.prototype.uk = function (t, e) { - this.fw(t, writePackedSFixed32, e) - } - , - n.prototype.sk = function (t, e) { - this.fw(t, writePackedFixed64, e) - } - , - n.prototype.fk = function (t, e) { - this.fw(t, writePackedSFixed64, e) - } - , - n.prototype.ww = function (t, e) { - this.UA(t, n.DA), - this.ZA(e) - } - , - n.prototype.hk = function (t, e) { - this.UA(t, n.RA), - this.qA(e) - } - , - n.prototype.ck = function (t, e) { - this.UA(t, n.RA), - this.WA(e) - } - , - n.prototype.vk = function (t, e) { - this.UA(t, n.PA), - this.GA(e) - } - , - n.prototype.lk = function (t, e) { - this.UA(t, n.PA), - this.HA(e) - } - , - n.prototype.rw = function (t, e) { - this.UA(t, n.LA), - this.BA(e) - } - , - n.prototype.dk = function (t, e) { - this.UA(t, n.LA), - this.VA(e) - } - , - n.prototype.uw = function (t, e) { - this.UA(t, n.DA), - this.YA(e) - } - , - n.prototype.bk = function (t, e) { - this.UA(t, n.RA), - this.KA(e) - } - , - n.prototype.pk = function (t, e) { - this.UA(t, n.PA), - this.JA(e) - } - , - n.prototype.hw = function (t, e) { - this.rw(t, Boolean(e)) - } - , - n.prototype.xA = function (t, e, r, n, i) { - var a, o, s = 8 * i - n - 1, u = (1 << s) - 1, c = u >> 1, f = -7, h = r ? i - 1 : 0, l = r ? -1 : 1, i = t[e + h]; - for (h += l, - a = i & (1 << -f) - 1, - i >>= -f, - f += s; 0 < f; a = 256 * a + t[e + h], - h += l, - f -= 8) - ; - for (o = a & (1 << -f) - 1, - a >>= -f, - f += n; 0 < f; o = 256 * o + t[e + h], - h += l, - f -= 8) - ; - if (0 === a) - a = 1 - c; - else { - if (a === u) - return o ? NaN : 1 / 0 * (i ? -1 : 1); - o += Math.pow(2, n), - a -= c - } - return (i ? -1 : 1) * o * Math.pow(2, a - n) - } - , - n.prototype.XA = function (t, e, r, n, i, a) { - var o, s, u = 8 * a - i - 1, c = (1 << u) - 1, f = c >> 1, h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0, l = n ? 0 : a - 1, d = n ? 1 : -1, a = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0; - for (e = Math.abs(e), - isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, - o = c) : (o = Math.floor(Math.log(e) / Math.LN2), - e * (n = Math.pow(2, -o)) < 1 && (o--, - n *= 2), - 2 <= (e += 1 <= o + f ? h / n : h * Math.pow(2, 1 - f)) * n && (o++, - n /= 2), - c <= o + f ? (s = 0, - o = c) : 1 <= o + f ? (s = (e * n - 1) * Math.pow(2, i), - o += f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, i), - o = 0)); 8 <= i; t[r + l] = 255 & s, - l += d, - s /= 256, - i -= 8) - ; - for (o = o << i | s, - u += i; 0 < u; t[r + l] = 255 & o, - l += d, - o /= 256, - u -= 8) - ; - t[r + l - d] |= 128 * a - } - , - n.LA = 0, - n.PA = 1, - n.DA = 2, - n.RA = 5, - n - }(); - function readVarintRemainder(t, e, r) { - var n = r.gA - , i = n[r.pos++] - , a = (112 & i) >> 4; - if (i < 128) - return toNum(t, a, e); - if (a |= (127 & (i = n[r.pos++])) << 3, - i < 128) - return toNum(t, a, e); - if (a |= (127 & (i = n[r.pos++])) << 10, - i < 128) - return toNum(t, a, e); - if (a |= (127 & (i = n[r.pos++])) << 17, - i < 128) - return toNum(t, a, e); - if (a |= (127 & (i = n[r.pos++])) << 24, - i < 128) - return toNum(t, a, e); - if (a |= (1 & (i = n[r.pos++])) << 31, - i < 128) - return toNum(t, a, e); - throw new Error("Expected varint not more than 10 bytes") - } - function readPackedEnd(t) { - return t.type === Pbf.DA ? t.ow() + t.pos : t.pos + 1 - } - function toNum(t, e, r) { - return r ? 4294967296 * e + (t >>> 0) : 4294967296 * (e >>> 0) + (t >>> 0) - } - function writeBigVarint(t, e) { - var r, n; - if (0 <= t ? (r = t % 4294967296 | 0, - n = t / 4294967296 | 0) : (n = ~(-t / 4294967296), - 4294967295 ^ (r = ~(-t % 4294967296)) ? r = r + 1 | 0 : n = n + 1 | (r = 0)), - 0x10000000000000000 <= t || t < -0x10000000000000000) - throw new Error("Given varint doesn't fit into 10 bytes"); - e.zA(10), - writeBigVarintLow(r, n, e), - writeBigVarintHigh(n, e) - } - function writeBigVarintLow(t, e, r) { - r.gA[r.pos++] = 127 & t | 128, - t >>>= 7, - r.gA[r.pos++] = 127 & t | 128, - t >>>= 7, - r.gA[r.pos++] = 127 & t | 128, - t >>>= 7, - r.gA[r.pos++] = 127 & t | 128, - r.gA[r.pos] = 127 & (t >>>= 7) - } - function writeBigVarintHigh(t, e) { - var r = (7 & t) << 4; - e.gA[e.pos++] |= r | ((t >>>= 3) ? 128 : 0), - t && (e.gA[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), - t) && (e.gA[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), - t) && (e.gA[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), - t) && (e.gA[e.pos++] = 127 & t | ((t >>>= 7) ? 128 : 0), - t) && (e.gA[e.pos++] = 127 & t) - } - function makeRoomForExtraLength(t, e, r) { - var n = e <= 16383 ? 1 : e <= 2097151 ? 2 : e <= 268435455 ? 3 : Math.ceil(Math.log(e) / (7 * Math.LN2)); - r.zA(n); - for (var i = r.pos - 1; t <= i; i--) - r.gA[i + n] = r.gA[i] - } - function writePackedVarint(t, e) { - for (var r = 0; r < t.length; r++) - e.BA(t[r]) - } - function writePackedSVarint(t, e) { - for (var r = 0; r < t.length; r++) - e.VA(t[r]) - } - function writePackedFloat(t, e) { - for (var r = 0; r < t.length; r++) - e.KA(t[r]) - } - function writePackedDouble(t, e) { - for (var r = 0; r < t.length; r++) - e.JA(t[r]) - } - function writePackedBoolean(t, e) { - for (var r = 0; r < t.length; r++) - e.$A(t[r]) - } - function writePackedFixed32(t, e) { - for (var r = 0; r < t.length; r++) - e.qA(t[r]) - } - function writePackedSFixed32(t, e) { - for (var r = 0; r < t.length; r++) - e.WA(t[r]) - } - function writePackedFixed64(t, e) { - for (var r = 0; r < t.length; r++) - e.GA(t[r]) - } - function writePackedSFixed64(t, e) { - for (var r = 0; r < t.length; r++) - e.HA(t[r]) - } - function readUInt32(t, e) { - return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + 16777216 * t[e + 3] - } - function writeInt32(t, e, r) { - t[r] = e, - t[r + 1] = e >>> 8, - t[r + 2] = e >>> 16, - t[r + 3] = e >>> 24 - } - function readInt32(t, e) { - return (t[e] | t[e + 1] << 8 | t[e + 2] << 16) + (t[e + 3] << 24) - } - function readUtf8(t, e, r) { - for (var n = "", i = e; i < r;) { - var a = t[i] - , o = null - , s = 239 < a ? 4 : 223 < a ? 3 : 191 < a ? 2 : 1; - if (r < i + s) - break; - var u, c = void 0, f = void 0; - 1 === s ? a < 128 && (o = a) : 2 === s ? 128 == (192 & (c = t[i + 1])) && (o = (31 & a) << 6 | 63 & c) <= 127 && (o = null) : 3 === s ? (c = t[i + 1], - f = t[i + 2], - 128 == (192 & c) && 128 == (192 & f) && ((o = (15 & a) << 12 | (63 & c) << 6 | 63 & f) <= 2047 || 55296 <= o && o <= 57343) && (o = null)) : 4 === s && (c = t[i + 1], - f = t[i + 2], - u = t[i + 3], - 128 == (192 & c)) && 128 == (192 & f) && 128 == (192 & u) && ((o = (15 & a) << 18 | (63 & c) << 12 | (63 & f) << 6 | 63 & u) <= 65535 || 1114112 <= o) && (o = null), - null === o ? (o = 65533, - s = 1) : 65535 < o && (o -= 65536, - n += String.fromCharCode(o >>> 10 & 1023 | 55296), - o = 56320 | 1023 & o), - n += String.fromCharCode(o), - i += s - } - return n - } - function writeUtf8(t, e, r) { - for (var n = 0, i = void 0, a = void 0; n < e.length; n++) { - if (55295 < (i = e.charCodeAt(n)) && i < 57344) { - if (!a) { - 56319 < i || n + 1 === e.length ? (t[r++] = 239, - t[r++] = 191, - t[r++] = 189) : a = i; - continue - } - if (i < 56320) { - t[r++] = 239, - t[r++] = 191, - t[r++] = 189, - a = i; - continue - } - i = a - 55296 << 10 | i - 56320 | 65536, - a = null - } else - a && (t[r++] = 239, - t[r++] = 191, - t[r++] = 189, - a = null); - i < 128 ? t[r++] = i : (i < 2048 ? t[r++] = i >> 6 | 192 : (i < 65536 ? t[r++] = i >> 12 | 224 : (t[r++] = i >> 18 | 240, - t[r++] = i >> 12 & 63 | 128), - t[r++] = i >> 6 & 63 | 128), - t[r++] = 63 & i | 128) - } - return r - } - var StyleOptionsBuilding = function () { - this.hideWithoutStyle = !1, - this.areas = [] - }, VectorTileSegements = function () { - function t() { - this.jc = [], - this.VM = 0 - } - return t.prototype.add = function (t, e, r, n, i) { - VTLineSegement.getKey(t, e, i, n) !== (this.WM ? this.WM.getKey() : "-1") && (this.VM += this.WM ? this.WM.length : 0, - this.WM = new VTLineSegement(t, e, this.VM, n, i), - this.jc.push(this.WM)), - this.WM.add(r) - } - , - t - }(), VTLineSegement = function () { - function t(t, e, r, n, i) { - this.mainkey = t, - this.subkey = e, - this.offset = r, - this.minzoom = n, - this.maxzoom = i, - this.length = 0 - } - return t.getKey = function (t, e, r, n) { - return t + ":" + e + ":" + r + ":" + n - } - , - t.prototype.add = function (t) { - this.length += t - } - , - t.prototype.getKey = function () { - return this.mainkey + ":" + this.subkey + ":" + this.maxzoom + ":" + this.minzoom - } - , - t - }(), MapboxSegements = function () { - function t() { - this.jc = [], - this.GM = -1, - this.HM = -1, - this.VM = 0 - } - return t.prototype.add = function (t, e) { - MBLineSegement.getKey(t), - this.WM && this.WM.getKey(), - this.GM = t, - this.VM += this.WM ? this.WM.length : 0, - this.WM = new MBLineSegement(t, this.VM), - this.jc.push(this.WM), - this.WM.add(e) - } - , - t - }(), MBLineSegement = function () { - function t(t, e) { - this.style = t, - this.offset = e, - this.length = 0 - } - return t.getKey = function (t) { - return "" + t - } - , - t.prototype.add = function (t) { - this.length += t - } - , - t.prototype.getKey = function () { - return "" + this.style - } - , - t - }(), ImageDataWraperType, ImageDataWraper = (function (t) { - t.base64 = "base64", - t.arraybuffer = "arraybuffer", - t.bitmap = "bitmap", - t.empty = "empty" - }(ImageDataWraperType = ImageDataWraperType || {}), - function () { - function t(t, e, r) { - this.hash = t, - this.IV = !1, - "string" != typeof e ? r && r.imageBitmap ? (this.type = ImageDataWraperType.bitmap, - this.status = "success", - this.data = e) : (t = new Blob([e], { - type: "image/png" - }), - (r = URLObject.createObjectURL(t)) ? (this.data = r, - this.type = ImageDataWraperType.arraybuffer, - this.status = "success") : (this.data = "", - this.type = ImageDataWraperType.arraybuffer, - this.status = "error")) : (this.data = e, - this.type = ImageDataWraperType.base64, - this.status = "success") - } - return t.AV = function (t) { - return createImageBitmap(new Blob([new Uint8Array(t)])) - } - , - t.Wb = function (t) { - var e = { - data: t.data, - type: t.type, - status: t.status, - IV: t.IV, - hash: t.hash - }; - return t.transform(), - e - } - , - t.prototype.transform = function () { - this.IV = !0, - this.type === ImageDataWraperType.bitmap && (this.data = "") - } - , - t.prototype.destroy = function () { - "destroyed" !== this.status && (this.type === ImageDataWraperType.arraybuffer && URLObject.revokeObjectURL(this.data), - this.data = "", - this.status = "destroyed") - } - , - t.prototype.IZ = function (t) { - var e; - this.type === ImageDataWraperType.bitmap ? t(this.data) : ((e = new Image).crossOrigin = "", - e.onload = function () { - t(e) - } - , - e.src = this.data) - } - , - t - }()), EmptyImageDataWraper = new ImageDataWraper("", ""), CircleBucket = (EmptyImageDataWraper.type = ImageDataWraperType.empty, - function () { - function t() { - this._b = new SymbolArray, - this.uploaded = !1 - } - return t.prototype.wb = function (t, e) { - var r = this._b.length; - return this._b.kb(t[0], t[1], e), - this._b.length - r - } - , - t.prototype.upload = function (t) { - this.uploaded || (this.destroy(), - this.uploaded = !0, - this.zs = t.fe(this._b.Mb, SymbolArray.Rb)) - } - , - t.prototype.destroy = function () { - this.uploaded = !1, - this.zs && this.zs.context && (this.zs.context.deleteBuffer(this.zs), - delete this.zs) - } - , - t.prototype.reset = function () { - this._b = new SymbolArray, - this.uploaded = !1 - } - , - t - }()), SimpleCircleBucket = function () { - function t() { - this._b = new SimpleSymbolArray, - this.uploaded = !1 - } - return t.prototype.wb = function (t) { - var e = this._b.length; - return this._b.kb(t[0], t[1]), - this._b.length - e - } - , - t.prototype.upload = function (t) { - this.uploaded || (this.destroy(), - this.uploaded = !0, - this.zs = t.fe(this._b.Mb, SimpleSymbolArray.Rb)) - } - , - t.prototype.destroy = function () { - this.uploaded = !1, - this.zs && this.zs.context && (this.zs.context.deleteBuffer(this.zs), - delete this.zs) - } - , - t.prototype.reset = function () { - this._b = new SimpleSymbolArray, - this.uploaded = !1 - } - , - t - }(), DistrictLayerStyle = function () { - this["stroke-width"] = "", - this["coastline-stroke"] = "", - this["nation-stroke"] = "", - this["province-stroke"] = "", - this["city-stroke"] = "", - this["county-stroke"] = "", - this.fill = "" - }, registry = {}; - function register(t, e, r) { - void 0 === r && (r = {}), - Object.defineProperty(e, "yk", { - value: t, - writable: !1 - }), - registry[t] = { - mk: e, - gk: r.gk || [], - wk: r.wk || [] - } - } - function serialize(t, e) { - if (null == t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || t instanceof Boolean || t instanceof Number || t instanceof String || t instanceof Date || t instanceof RegExp) - return t; - if (t instanceof ArrayBuffer) - return e && e.push(t), - t; - if (Browser.imageBitmap && t instanceof ImageBitmap) - return e && e.indexOf(t) < 0 && e.push(t), - t; - if (ArrayBuffer.isView(t)) - return o = t, - e && e.push(o.buffer), - o; - if (t instanceof ImageData) - return e && e.push(t.data.buffer), - t; - if (Array.isArray(t)) { - for (var r = [], n = 0, i = t; n < i.length; n++) { - var a = i[n]; - r.push(serialize(a, e)) - } - return r - } - if ("object" != typeof t) - throw new Error("can't serialize object of type " + typeof t); - var o = t.constructor - , s = o.yk; - if (!s) - throw new Error("can't serialize object of unregistered class"); - var u, c = void 0; - if (o.Wb) - c = o.Wb(t, e); - else { - for (var f in c = {}, - t) - !t.hasOwnProperty(f) || 0 <= registry[s].gk.indexOf(f) || (u = t[f], - c[f] = 0 <= registry[s].wk.indexOf(f) ? u : serialize(u, e)); - t instanceof Error && (c.message = t.message) - } - if (c.$name) - throw new Error("$name property is reserved for worker serialization logic."); - return "Object" !== s && (c.$name = s), - c - } - function deserialize(t) { - if (null == t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || t instanceof Boolean || t instanceof Number || t instanceof String || t instanceof Date || t instanceof RegExp || t instanceof ArrayBuffer || ArrayBuffer.isView(t) || t instanceof ImageData || Browser.imageBitmap && t instanceof ImageBitmap) - return t; - if (Array.isArray(t)) - return map(t, deserialize); - if ("object" != typeof t) - throw new Error("can't deserialize object of type " + typeof t); - var e = t.$name || "Object" - , r = registry[e].mk; - if (!r) - throw new Error("can't deserialize unregistered class " + e); - if (r.Gb) - return r.Gb(t); - for (var n = Object.create(r.prototype), i = 0, a = Object.keys(t); i < a.length; i++) { - var o, s = a[i]; - "$name" !== s && (o = t[s], - n[s] = 0 <= registry[e].wk.indexOf(s) ? o : deserialize(o)) - } - return n - } - register("Object", Object), - register("LineArrayBuffer", LineArrayBuffer), - register("TriangleIndexArray", TriangleIndexArray), - register("TriangleIndexArrayUint", TriangleIndexArrayUint), - register("PolylineBucket", PolylineBucket), - register("LinesIndexArray", LinesIndexArray), - register("LinesIndexArrayUint", LinesIndexArrayUint), - register("FillArray", FillArray), - register("PolygonBucket", PolygonBucket), - register("CircleBucket", CircleBucket), - register("SymbolArray", SymbolArray), - register("FillExtrusionBucket", FillExtrusionBucket), - register("FillExtrusionArray", FillExtrusionArray), - register("SmartArrayBuffer", SmartArrayBuffer), - register("Color", Color), - register("Segements", NebulaSegements), - register("VectorTileSegements", VectorTileSegements), - register("VTLineSegement", VTLineSegement), - register("LineSegement", LineSegement), - register("PolygonSegements", PolygonSegements), - register("VectorTile", VectorTile$1), - register("VectorTileLayer", VectorTileLayer), - register("VectorTileFeature", VectorTileFeature), - register("Pbf", Pbf), - register("StyleOptionsBuilding", StyleOptionsBuilding), - register("DistrictStyleOptions", DistrictLayerStyle), - register("MapboxSegements", MapboxSegements), - register("MBLineSegement", MBLineSegement), - register("ImageDataWraper", ImageDataWraper), - register("TileCoord", TileCoord), - register("Tile", Tile), - register("StyleParser", StyleParser); - var LabelTextStyle = function () { - function t(t) { - this.origin = t - } - return t.BV = function (t, e) { - var r = DangerousFontSize - , n = void 0 === (n = t.fontSize) ? 12 : n - , i = t.fillColor - , a = t.strokeColor - , o = void 0 === (o = t.strokeWidth) ? 0 : o - , s = void 0 === (s = t.backgroundColor) ? 0 : s - , t = t.borderColor - , i = labelsUtil.Yj(Util.color2RgbaArray(void 0 === i ? [0, 0, 0, 1] : i)) - , s = s ? labelsUtil.Yj(Util.color2RgbaArray(s)) : [0, 0, 0, 0] - , a = labelsUtil.Yj(Util.color2RgbaArray(a), [.988, .988, .988, 1]) - , t = labelsUtil.Yj(Util.color2RgbaArray(t), [.988, .988, .988, 1]) - , u = (n = n || 12) < 10 ? .78125 : 205 / 256 - , c = 0 - , r = (o && (c = u * (1 - (10 < o * e ? 10 : o) / 10.1)), - o = 1.4142 * (r < n || 1 < e ? 1.7 : 1.5) / n, - u + 1.5 / 256 * (e - 1)); - return (n = new Float32Array(28)).set(i, 0), - n.set(a, 4), - n[8] = o, - n[9] = c, - n[10] = r, - n.set(s, 11), - n.set(t, 15), - n[19] = 1, - n.set(i, 20), - n.set(a, 24), - n - } - , - t.prototype.GV = function (t) { - switch (t) { - case "fillColor": - return this.origin.slice(0, 4); - case "strokeColor": - return this.origin.slice(4, 8); - case "backgroundColor": - return this.origin.slice(11, 15); - case "borderColor": - return this.origin.slice(15, 19); - case "u_gamma": - return this.origin[8]; - case "u_borderBuffer": - return this.origin[9]; - case "u_buffer": - return this.origin[10]; - case "u_fontSizeFactor": - return this.origin[19]; - case "u_highlightFillColor": - return this.origin.slice(20, 24); - case "u_highlightStrokeColor": - return this.origin.slice(24, 28); - default: - return - } - } - , - t.prototype.VV = function (t, e) { - switch (t) { - case "u_fontSizeFactor": - this.origin[19] = e; - break; - case "fillColor": - this.origin.set(e, 0); - break; - case "strokeColor": - this.origin.set(e, 4); - break; - case "backgroundColor": - this.origin.set(e, 11); - break; - case "borderColor": - this.origin.set(e, 8); - break; - case "u_highlightFillColor": - this.origin.set(e, 20); - break; - case "u_highlightStrokeColor": - this.origin.set(e, 24) - } - } - , - t - }() - , LabelBucket = (register("LabelTextStyle", LabelTextStyle), - function () { - function t(t) { - this.DO = { - rp: [], - pp: [], - bd: [], - up: 0 - }, - this.ZO = [], - this.options = {}, - this.Gj = {}, - this.Hj = {}, - this.Vj = {}, - this.QO = {}, - this.tI = {}, - this.Fs = {}, - this.$j = 0, - this.qO = {}, - this.$O = 0, - this.rI = {}, - this.iO = "inner", - this._id = Util.stamp(this), - this.Mf = t.R_, - this.ac = t.z_, - this.io = t.canvas, - this.NT = t.Nz - } - return t.prototype.rQ = function (t, e) { - var r = void 0 === (r = e.from) ? "inner" : r - , n = CONSTS.ud - , t = (labelsUtil.zj(this, t), - this.iO = r, - this.Mf && "SDFManagerBase" !== this.Mf.CLASS_NAME) - , i = this.DO - , a = (t && (i.rp = new Float32Array(this.$j * n * 6)), - this.Gj) - , o = this.Hj - , s = this.Vj; - if (!o || !s) - return null; - var r = assign(this.options, e) - , u = this.RO(a) - , c = isUndefined(r.opacity) ? 1 : r.opacity; - if (t) { - for (var f = 0, h = 0, l = 0, d = u; l < d.length; l++) { - for (var v = d[l], g = void 0, p = 0, y = v; p < y.length && !((g = o[y[p]]) && g.text && g.text.style); p++) - ; - var m, b = { - vd: [] - }, T = this.ym().KO; - g && g.text && g.text.style ? (m = g.text.style || {}, - b.vd = new LabelTextStyle(LabelTextStyle.BV(m, void 0 === T ? 1 : T))) : (b.vd = new LabelTextStyle(new Float32Array(28)), - b.vd.VV("u_fontSizeFactor", 1)), - m = h, - b.start = m; - var x = isUndefined(x = (T = a[v[0]].opts || {}).opacity) ? 1 : x - , M = T.icon && T.icon[0] && T.icon[0].image; - b.opacity = x, - b.rotation = T.rotation, - b.opacity *= c, - i.pp.push(b), - b.dp = []; - for (var S = 0, A = v; S < A.length; S++) { - var w = A[S] - , P = a[w].CO || [] - , I = { - height: a[w] && a[w].opts.height || 0, - from: e.from, - angle: a[w] && a[w].data.rotation || 0 - } - , C = this.PO(w, s[w], o[w], i, I) - , $ = this.zV(w, s[w], o[w], a[w], i, I, P) - , P = this.BO(w, s[w], o[w], a[w], i, P, I); - b.dp.push({ - id: w, - Rd: P, - icon: C, - bg: $, - kd: I = 6 * (P + C + $) - }), - h += I * n - } - b.end = h, - b.pd = M, - f += x = h - m, - i.bd.push(x) - } - i.up = f - } - return i.Fz = u, - this.DO = i - } - , - t.prototype.destroy = function () { } - , - t.prototype.ym = function () { - return this.gs.aO() - } - , - t.prototype.zO = function (t) { - var e; - return t ? this.qO[t] || (e = labelsUtil.Kj(parseInt(t, 10)), - this.qO[t] = e, - this.qO[t]) : [] - } - , - t.prototype.RO = function (t) { - var e, r, n, i, a, o, s, u = {}, c = this.Gj, f = this.iO; - for (e in t) - t.hasOwnProperty(e) && (n = (r = c[e]).data || {}, - i = (o = r.opts || {}).zIndex, - a = o.forceShow, - v = n.rank, - v = a ? v - 1e5 : v, - n = isUndefined(o.opacity) ? 1 : o.opacity, - o = void 0 === (o = (a = this.Hj[e] || {}).text) ? {} : o, - a = a.icon, - u[i = ("labelsLayer" === f ? i || v : i) || 1] = u[i] || {}, - o = o && o.style || "", - s = void 0, - "labelsLayer" === f ? (s = o ? labelGroup.nT(o) + n : s, - s += a && a[0] && a[0].image ? a[0].image : "") : s = r.data.extData.Lp ? (r.data.extData.Lp << 16) + r.data.extData.Ap : o ? labelGroup.nT(o) + n : "-1-" + n, - u[i][s] || (u[i][s] = []), - u[i][s].push(e)); - for (var h = [], l = 0, d = labelsUtil.rank(Object.keys(u)); l < d.length; l++) - for (var v, g = u[v = d[l]], p = 0, y = Object.keys(g).sort(); p < y.length; p++) { - var m = y[p]; - h.push(g[m]) - } - return h - } - , - t.prototype.WO = function (t, e) { - var r = Util.WorldAxesCenter; - return [t - r.x, e - r.y] - } - , - t.prototype.GO = function (t) { - return t - } - , - t.prototype.HO = function (t, e, r, n, i) { - var a, o, s = i.VO, u = void 0 === (u = i.type) ? EnumLabelFragType.icon : u, c = i.zooms, f = i.height, e = void 0 === (e = e.icon) ? [] : e, h = CONSTS.ud, l = this.$O, d = 0, v = 0, g = ((g = this.ac.getImage(r.image)) && (d = g.startX || 0, - v = g.startY || 0), - s[0]), s = s[1], p = c[0], c = c[1], y = exports.cY.icon, e = e.anchorOffset, m = r.size, b = r.clipSize, T = r.clipOrigin, x = m[0], m = m[1], M = b[0], b = b[1], S = T[0], T = T[1], A = (e = this.GO(e))[0] || 0, e = e[1] || 0, r = ((r = r.offset) && (o = r instanceof Array || void 0 === r.x || void 0 === r.y ? (a = r[0], - r[1]) : (a = r.x, - r.y)), - d + S), d = v + T, S = (void 0 !== a && (A += a), - void 0 !== o && (e += o), - -i.angle * Math.PI / 180 || 0); - n.set([A, e, r, d, g, s, y, u, p, c, f, S, 0, A + x, e, r + M, d, g, s, y, u, p, c, f, S, 0, A, m + e, r, d + b, g, s, y, u, p, c, f, S, 0, A + x, e, r + M, d, g, s, y, u, p, c, f, S, 0, A + x, m + e, r + M, d + b, g, s, y, u, p, c, f, S, 0, A, m + e, r, d + b, g, s, y, u, p, c, f, S, 0], l), - this.$O += 6 * h - } - , - t.prototype.PO = function (t, e, r, n, i) { - if (!e || !r) - return 0; - var a = e.icon; - if (!(r = void 0 === (r = r.icon) ? [] : r).length || !r[0].image) - return 0; - for (var o = (a = (void 0 === a ? {} : a).origin)[0], s = a[1], u = (a[2], - this.WO(o, s)), c = i.height, f = i.angle, h = 0, l = r; h < l.length; h++) { - var d = l[h]; - this.HO(t, e, d, n.rp, { - VO: u, - zooms: d.zooms, - height: c, - angle: f - }), - delete d.clipOrigin, - delete d.clipSize, - delete d.size, - delete d.image, - delete d.type, - delete d.anchor, - delete d.retina - } - return r.length - } - , - t.prototype.YO = function (t, e, r, n, i) { - var a = i.VO - , o = void 0 === (o = i.type) ? EnumLabelFragType.bg : o - , s = i.zooms - , u = i.height - , c = CONSTS.ud - , f = CONSTS.Kp - , h = this.$O - , e = e.padding - , l = a[0] - , a = a[1] - , d = s[0] - , s = s[1] - , v = e.w - , g = e.h - , f = e.offsetX - f.buffer - , e = e.offsetY - , i = -i.angle * Math.PI / 180 || 0; - if (n.set([f, e, 0, 0, l, a, 0, o, d, s, u, i, 0, f + v, e, 0, 0, l, a, 0, o, d, s, u, i, 0, f, g + e, 0, 0, l, a, 0, o, d, s, u, i, 0, f + v, e, 0, 0, l, a, 0, o, d, s, u, i, 0, f + v, g + e, 0, 0, l, a, 0, o, d, s, u, i, 0, f, g + e, 0, 0, l, a, 0, o, d, s, u, i, 0], h), - this.$O += 6 * c, - h = this.$O, - o = r.text.style.borderWidth) { - for (var p = [f, e, v, g, l, a, o, d, s, u, i], y = 0; y < 4; y++) - p[11] = y, - this.sT(p, n, h), - h += 6 * c; - this.$O = h - } - } - , - t.prototype.sT = function (t, e, r) { - var n = (t = void 0 === t ? {} : t)[0] - , i = t[1] - , a = t[2] - , o = t[3] - , s = t[4] - , u = t[5] - , c = t[6] - , f = t[7] - , h = t[8] - , l = t[9] - , d = t[10] - , t = t[11] - , v = EnumLabelFragType.tq - , g = 0 - , p = 0 - , y = 0 - , m = 0 - , b = 0 - , T = 0 - , x = 0 - , M = 0; - switch (t) { - case 0: - m = p = i - c, - b = g = n + 0, - x = y = n + a, - M = T = i + 0; - break; - case 1: - y = (g = n + a) + c, - m = p = i - c, - x = (b = n + a) + c, - M = T = i + o + c; - break; - case 2: - b = g = n + 0, - x = y = n + a, - M = T = (m = p = i + o) + c; - break; - case 3: - g = n - c, - m = p = i - c, - b = (y = n) - c, - x = n, - M = T = i + o + c - } - e.set([g, p, 0, 0, s, u, 0, v, f, h, l, d, 0, y, m, 0, 0, s, u, 0, v, f, h, l, d, 0, b, T, 0, 0, s, u, 0, v, f, h, l, d, 0, y, m, 0, 0, s, u, 0, v, f, h, l, d, 0, b, T, 0, 0, s, u, 0, v, f, h, l, d, 0, x, M, 0, 0, s, u, 0, v, f, h, l, d, 0], r) - } - , - t.prototype.UO = function (t, e, r, n, i) { - var a, o, s, u, c, f; - return e && r && (a = CONSTS.Mp, - o = CONSTS.Rp, - f = e.text, - s = (r.text || {}).zooms, - r.text) && f.origin ? (u = (f = f.origin)[0], - c = f[1], - f[2], - f = i.height, - this.YO(t, e, r, n.rp, { - VO: [u, c], - zooms: void 0 === s ? [a, o] : s, - height: f - }), - i = 1, - r.text.style.borderWidth && (i += 4), - i) : 0 - } - , - t.prototype.zV = function (t, e, r, n, i, a, o) { - if (!e || !r) - return 0; - var s = CONSTS.Mp - , u = CONSTS.Rp - , f = e.text.offset - , l = (h = (c = r).text || {}).style; - h.type; - var d = void 0 === (d = h.direction) ? "left" : d - , s = void 0 === (h = h.zooms) ? [s, u] : h; - if (!c.text || !c.text.style) - return 0; - if (o.length, - u = !1 === (l = void 0 === l ? {} : l).fold ? 100 : 6, - h = this.Mf.lineBreak(c.text.txt, { - fontSize: l.fontSize, - CO: n.CO, - type: n.data && n.data.BG || "ch", - fj: u, - from: a.from - }), - o = { - direction: d, - size: l.fontSize, - yO: c.icon.length && c.icon[0].image - }, - c = (u = (n = e.text).origin)[0], - e = u[1], - u[2], - !r.text || !n.origin) - return 0; - var u = [c, e] - , n = a.height - , c = EnumLabelFragType.bg - , v = CONSTS.ud - , g = this.$O - , e = u[0] - , u = u[1] - , p = s[0] - , s = s[1] - , y = i.rp - , i = h.maxWidth + 6 - , l = l.fontSize * h.width.length + 8 - , h = this.XV(i, d, o.yO) - , d = f[0] + h[0] - 1 - , o = f[1] - 2 - , h = -a.angle * Math.PI / 180 || 0; - if (y.set([d, o, 0, 0, e, u, 0, c, p, s, n, h, 0, d + i, o, 0, 0, e, u, 0, c, p, s, n, h, 0, d, l + o, 0, 0, e, u, 0, c, p, s, n, h, 0, d + i, o, 0, 0, e, u, 0, c, p, s, n, h, 0, d + i, l + o, 0, 0, e, u, 0, c, p, s, n, h, 0, d, l + o, 0, 0, e, u, 0, c, p, s, n, h, 0], g), - this.$O += 6 * v, - g = this.$O, - f = r.text.style.borderWidth) { - for (var m = [d, o, i, l, e, u, f, p, s, n, h], b = 0; b < 4; b++) - m[11] = b, - this.sT(m, y, g), - g += 6 * v; - return this.$O = g, - 5 - } - return 1 - } - , - t.prototype.CT = function (t, e) { - return this.Mf ? this.Mf.measureText(t, e) : this.NT ? (this.NT.font = (e || 12) + "px", - this.NT.measureText(t.join("")).width) : 0 - } - , - t.prototype.XO = function (t, e) { - var r = CONSTS.JM - , r = void 0 === (n = (e = void 0 === e ? {} : e).direction) ? r.LEFT : n - , n = e.size - , e = void 0 !== (e = e.yO) && e - , t = this.CT(t = void 0 === t ? [] : t, void 0 === n ? DangerousFontSize : n); - return this.XV(t, r, e) - } - , - t.prototype.XV = function (t, e, r) { - void 0 === r && (r = !1); - var n = 0 - , i = 0; - switch (e) { - case (r = CONSTS.JM).LEFT: - n = -t, - i = 0; - break; - case r.QM: - i = n = 0; - break; - case r.ZM: - case r.tj: - n = -t / 2, - i = 0; - break; - case r.ij: - case r.nj: - n = -t / 2, - i = 0; - break; - default: - i = n = 0 - } - return [n, i] - } - , - t.prototype.JO = function (t, e, r, n) { - var i, a, o, s, u, c, f, h, l, d, v, g, p = CONSTS.ud, y = this.$O, m = n.size, b = n.VO, T = void 0 === (T = n.type) ? EnumLabelFragType.text : T, x = (n.id, - n.zooms), M = n.height, S = CONSTS.Kp, A = this.Mf.mz(e); - A && (i = A.index, - g = A.pos, - A = A.char, - a = b[0], - b = b[1], - o = x[0], - x = x[1], - A || (console.log("!metric", e, String.fromCharCode(e)), - A = this.Mf.mz(32).char), - e = m / S.size, - m = A[0], - s = A[1], - A[2], - A[3], - A[4], - v = A[5], - u = A[6], - S = S.buffer, - 0 < m && 0 < s && (c = (f = r.x) - S * e, - f = +(f + ((m += 2 * S) - S) * e), - h = +((l = r.y) + u * e), - l = +(l + ((s += 2 * S) + u) * e), - d = S = 0, - S = (S += g.startX) + v, - v = (d += g.startY) + u, - g = -n.angle * Math.PI / 180 || 0, - t.set([c, h, S, v, a, b, i, T, o, x, M, g, 0, f, h, S + m, v, a, b, i, T, o, x, M, g, 0, c, l, S, v + s, a, b, i, T, o, x, M, g, 0, c, l, S, v + s, a, b, i, T, o, x, M, g, 0, f, h, S + m, v, a, b, i, T, o, x, M, g, 0, f, l, S + m, v + s, a, b, i, T, o, x, M, g, 0], y), - this.$O += 6 * p), - r.x = r.x + (A[0] + CONSTS.ic) * e) - } - , - t.prototype.BO = function (t, e, r, n, i, a, o) { - if (!(e && r && r.text && r.text.txt)) - return 0; - var s = CONSTS.Mp - , u = CONSTS.Rp - , c = (e = e.text).origin - , f = e.offset - , h = (e = r.text || {}).style; - e.type; - var l = void 0 === (l = e.direction) ? "left" : l - , d = void 0 === (e = e.zooms) ? [s, u] : e - , v = a - , s = c[0] - , u = c[1]; - if (c[2], - !r.text || !r.text.style) - return 0; - for (var g = v.length, p = g, e = !1 === (h = void 0 === h ? {} : h).fold ? 100 : 6, y = ((a = this.Mf.lineBreak(r.text.txt, { - fontSize: h.fontSize, - CO: (n = void 0 === n ? {} : n).CO, - type: n.data && n.data.BG || "ch", - fj: e, - from: o.from - })).lines.length, - a.oQ), m = h.fontSize, b = { - direction: l, - size: m, - yO: r.icon.length && r.icon[0].image - }, T = [s, u], x = { - x: 0, - y: 0 - }, M = o.height, S = o.angle, A = -1, w = 0, P = 0; P < g; P++) { - var I = v[P] - , C = this.eQ(y, w) - , $ = (w += I.split("|").length, - this.nQ(v, y[C], y[C + 1])) - , $ = v.slice.apply(v, $) - , $ = this.XO($, b) - , $ = vector.add(f, $); - if (0 === C && 0 === P && (x.x = $[0], - x.y = $[1]), - C && (x.y = $[1] + (m + 3) * C, - A !== C)) { - if ("32" === I) { - p--; - continue - } - x.x = $[0] - } - A = C, - this.JO(i.rp, I, x, { - size: m, - VO: T, - id: t, - zooms: d, - height: M, - angle: S - }) - } - return p - } - , - t.prototype.nQ = function (t, e, r) { - for (var n = 0, i = 0, a = 0, o = t.length, s = 0; s < o; s++) { - for (var u = t[s].split("|").length, c = 0; c < u; c++) { - var f = a + c; - f === e && (n = s), - f === r && (i = s) - } - a += u - } - return [n, i = a <= r ? o : i] - } - , - t.prototype.eQ = function (t, e) { - for (var r = (t = void 0 === t ? [] : t).length, n = 0; n < r - 1; n++) - if (e >= t[n] && e < t[n + 1]) - return n; - return 0 - } - , - t - }()) - , DefaultLabelsLayerOpts = { - opacity: 1, - collision: !0, - animation: !0 - } - , Labels = function () { - function t(t) { - if (this.CLASS_NAME = "AMap.LabelsLayer", - this.Gj = {}, - this.Hj = {}, - this.Vj = {}, - this.Fs = {}, - this.Es = {}, - this.Wj = {}, - this.$j = 0, - this.zp = {}, - this.render = null, - this.eI = {}, - this.nI = [], - this.cI = !1, - this.iI = !1, - this.iO = "", - this.cI = !1, - this._opts = assign({}, DefaultLabelsLayerOpts, { - opacity: t.opacity - }), - this.Mf = t.R_, - this.ac = t.z_, - this.PN = t.info || {}, - !this.Mf || "SDFManagerBase" === this.Mf.CLASS_NAME) - try { - var e = this.io = document.createElement("canvas") - , r = void 0; - e && (r = this.NT = e.getContext("2d")), - t.canvas = e, - t.Nz = r - } catch (t) { - console.log("canvas 初始化失败") - } - this.sI = new LabelPlacement(t), - this.fI = new LabelBucket(t) - } - return t.prototype.Ns = function (t, e) { - var r = (e = void 0 === e ? {} : e).zoom - , n = e.center - , i = e.from; - return this.nI = t, - this.iI = !0, - this.iO = i, - this.eI.zoom = r || 20, - this.oI(), - this.hu = n, - this.uI(e) - } - , - t.prototype.aO = function () { - return this.eI - } - , - t.prototype.zL = function (t) { - return this.Wj[t] - } - , - t.prototype.uI = function (t) { - var e = this.iO - , e = { - center: this.hu, - from: e - }; - if (assign(e, t = void 0 === t ? {} : t), - this.sI.nO(this, e), - this.$j = this.sI.$j, - t = this.fI.rQ(this, e)) { - var r, n, i, a, o, s, u, c = {}, f = {}, e = t.Fz || {}, h = (delete t.Fz, - this.Gj); - if ("inner" !== this.iO) - return { - Nf: h, - style: this.Hj, - coords: this.Vj, - rp: t, - zp: this.zp, - Fz: e - }; - for (r in h) - h.hasOwnProperty(r) && (n = h[r], - i = this.Vj[r], - a = (u = n.data).extData, - o = u.position, - s = u.name, - u = u.rank, - c[r] = { - data: { - position: o, - name: s, - rank: u, - extData: { - type: a.type, - id: a.id, - Lp: a.Lp, - Ap: a.Ap, - bz: a.bz - } - } - }, - f[r] = { - origin: i.origin, - icon: { - anchorOffset: i.icon.anchorOffset, - size: i.icon.size - }, - padding: i.padding - }, - n.opts) && (c[r].opts = { - zooms: n.opts.zooms - }); - return { - Nf: c, - style: this.Hj, - coords: f, - rp: t, - zp: this.zp, - Fz: e - } - } - } - , - t.prototype.oI = function () { - for (var t = this.nI, e = this.Gj || {}, r = this.Wj, n = this.zp, i = CONSTS.Mp, a = CONSTS.Rp, o = CONSTS.Pp, s = CONSTS.jp, u = 0, c = t; u < c.length; u++) { - for (var f = c[u], h = f.data.id, l = f.opts && f.opts.zooms || [], d = void 0 === (d = l[0]) ? i : d, v = void 0 === (l = l[1]) ? a : l, g = isUndefined(r[h]) ? Util.stamp(this) : r[h], p = (h && (r[h] = g), - Math.ceil(d - o)); p <= v + s;) - n[p] || (n[p] = []), - n[p].push(g), - p++; - e[g] = f, - e[g].CO = this.Ws(f), - this.hI(f) - } - if ("undefined" != typeof Uint32Array) - for (var y in n) - n.hasOwnProperty(y) && (n[y] = new Uint32Array(n[y])); - this.Gj = e - } - , - t.prototype.hI = function (t) { - var e = this.Fs; - (t = (t = t.opts.icon) && t.image || "") && (e[t] = 1) - } - , - t.prototype.Ws = function (t) { - this.Es; - var e = t.data.txt || "" - , t = (t.opts && t.opts.text || {}).$G || [] - , e = labelsUtil.EQ(e, t); - return labelsUtil.aQ(e) - } - , - t - }() - , DynamicVerticeStyle = function () { } - , DynamicVertice = function () { - function r(t, e) { - this.zo = t, - this.Nf = e.Nf, - this.style = e.style, - Object.setPrototypeOf(this.style, new DynamicVerticeStyle), - this.coords = e.coords, - this.rp = e.rp, - this.zp = e.zp - } - return r.Wb = function (t, e) { - var r = { - zo: t.zo, - coords: t.coords, - Nf: t.Nf, - style: t.style - }; - return { - JSON: JSON.stringify(r), - kV: { - rp: serialize(t.rp, e), - zp: serialize(t.zp, e) - } - } - } - , - r.Gb = function (t) { - var e = JSON.parse(t.JSON); - return t.kV.rp.pp = deserialize(t.kV.rp.pp), - e.rp = t.kV.rp, - e.zp = t.kV.zp, - new r(e.zo, e) - } - , - r.prototype.upload = function (t) { - this.buffer || (this.buffer = t.fe(this.rp.rp, CONSTS.sp)) - } - , - r.prototype.destroy = function () { - this.buffer && (this.buffer.context.deleteBuffer(this.buffer), - delete this.buffer) - } - , - r - }(); - function feature(t, e, r) { - var n = { - type: "Feature" - }; - return 0 !== (r = void 0 === r ? {} : r).id && !r.id || (n.id = r.id), - r.Ro && (n.Ro = r.Ro), - n.properties = e || {}, - n.geometry = t, - n - } - function polygon(t, e, r) { - void 0 === r && (r = {}); - for (var n = 0, i = t; n < i.length; n++) { - var a = i[n]; - if (a.length < 4) - throw new Error("Each LinearRing of a Polygon must have 4 or more Positions."); - for (var o = 0; o < a[a.length - 1].length; o++) - if (a[a.length - 1][o] !== a[0][o]) - throw new Error("First and last Position are not equivalent.") - } - return feature({ - type: "Polygon", - coordinates: t - }, e, r) - } - function lineString(t, e, r) { - if (void 0 === r && (r = {}), - t.length < 2) - throw new Error("coordinates must be an array of two or more positions"); - return feature({ - type: "LineString", - coordinates: t - }, e, r) - } - function multiLineString(t, e, r) { - return feature({ - type: "MultiLineString", - coordinates: t - }, e, r = void 0 === r ? {} : r) - } - function multiPolygon(t, e, r) { - return feature({ - type: "MultiPolygon", - coordinates: t - }, e, r = void 0 === r ? {} : r) - } - function getGeom(t) { - return "Feature" === t.type ? t.geometry : t - } - function lineclip(t, e, r) { - var n, i, a, o, s, u = t.length, c = bitCode(t[0], e), f = []; - for (r = r || [], - n = 1; n < u; n++) { - for (o = t[n - 1], - i = a = bitCode(s = t[n], e); ;) { - if (!(c | i)) { - f.push(o), - i !== a ? (f.push(s), - n < u - 1 && (r.push(f), - f = [])) : n === u - 1 && f.push(s); - break - } - if (c & i) - break; - c ? c = bitCode(o = intersect(o, s, c, e), e) : i = bitCode(s = intersect(o, s, i, e), e) - } - c = a - } - f.length && r.push(f) - } - function polygonclip(t, e) { - for (var r, n, i, a, o, s, u = 1; u <= 8; u *= 2) { - for (r = [], - i = !(bitCode(n = t[t.length - 1], e) & u), - a = 0; a < t.length; a++) - (s = !(bitCode(o = t[a], e) & u)) !== i && r.push(intersect(n, o, u, e)), - s && r.push(o), - n = o, - i = s; - if (!(t = r).length) - break - } - return r - } - function intersect(t, e, r, n) { - return 8 & r ? [t[0] + (e[0] - t[0]) * (n[3] - t[1]) / (e[1] - t[1]), n[3]] : 4 & r ? [t[0] + (e[0] - t[0]) * (n[1] - t[1]) / (e[1] - t[1]), n[1]] : 2 & r ? [n[2], t[1] + (e[1] - t[1]) * (n[2] - t[0]) / (e[0] - t[0])] : 1 & r ? [n[0], t[1] + (e[1] - t[1]) * (n[0] - t[0]) / (e[0] - t[0])] : null - } - function bitCode(t, e) { - var r = 0; - return t[0] < e[0] ? r |= 1 : t[0] > e[2] && (r |= 2), - t[1] < e[1] ? r |= 4 : t[1] > e[3] && (r |= 8), - r - } - function bboxClip(t, e) { - var r = getGeom(t) - , n = r.type - , i = "Feature" === t.type ? t.properties : {} - , a = r.coordinates; - switch (n) { - case "LineString": - case "MultiLineString": - var o = []; - return (a = "LineString" === n ? [a] : a).forEach(function (t) { - lineclip(t, e, o) - }), - 1 === o.length ? lineString(o[0], i) : multiLineString(o, i); - case "Polygon": - return polygon(clipPolygon(a, e), i); - case "MultiPolygon": - return multiPolygon(a.map(function (t) { - return clipPolygon(t, e) - }), i); - default: - throw new Error("geometry " + n + " not supported") - } - } - function clipPolygon(t, e) { - for (var r = [], n = 0, i = t; n < i.length; n++) { - var a = polygonclip(i[n], e); - 0 < a.length && (a[0][0] === a[a.length - 1][0] && a[0][1] === a[a.length - 1][1] || a.push(a[0]), - 4 <= a.length) && r.push(a) - } - return r - } - register("DynamicVertice", DynamicVertice); - var DEF_NDS_MAX_COORD = 2147483648 - , DEF_DEGREE_MAX_COORD = 180 - , MKT = 20037508.342789244; - function tileInnerCoord2LngLat(t, e, r, n) { - var a = r + (i = getTileSWCoord(t, e))[0] - , i = n + i[1]; - return r = a << (t = getCoordShift(t.z, e)), - n = i << t, - [coord2Degree(r = 0 < a && r < 0 ? DEF_NDS_MAX_COORD - 1 : r), coord2Degree(n)] - } - function LngLat2TileInnerCoord(t, e, r, n, i) { - var r = degree2Coord(r) - , n = degree2Coord(n) - , a = getCoordShift(i.z, e) - , n = n >> a; - return [(r = r >> a) - (a = getTileSWCoord(i, e))[0], n - a[1]] - } - var cache = {}; - function lnglat2WGSCoord2(t) { - var e, r; - return cache[t] || (r = 33 - t, - e = degree2Coord(180) / (1 << r), - r = degree2Coord(90) / (1 << r), - e = 0 < e ? Math.floor(.5 + e) : Math.floor(e - .5), - r = 0 < r ? Math.floor(.5 + r) : Math.floor(r - .5), - cache[t] = [2 * e, 2 * r]), - cache[t] - } - function getWorldSize(t, e) { - return lnglat2WGSCoord2(t + e) - } - function getTileSWCoord(t, e) { - var r = (e = getWorldSize(t.z, e))[0] - , e = e[1] - , n = 1 << t.z; - return [-r / 2 + t.x * r / n, e / 2 - (t.y + 1) * e / n] - } - function degree2Coord(t) { - return Math.floor(t * DEF_NDS_MAX_COORD / DEF_DEGREE_MAX_COORD + .5) - } - function coord2Degree(t) { - return t * DEF_DEGREE_MAX_COORD / DEF_NDS_MAX_COORD - } - function getCoordShift(t, e) { - return 33 - e - t - } - function getMVTTileBbox(t, e, r, n, i) { - return [t * (i = void 0 === i ? 256 : i) * n - MKT, -((e + 1) * i * n - MKT), (t + 1) * i * n - MKT, -(e * i * n - MKT)] - } - var MapboxVTSourceWorker = function () { - function t() { } - return t.prototype.bw = function (t, e, r, n, i, a) { - var o = this - , s = { - point: {}, - line: {}, - polygon: {}, - polyhedron: {}, - label: {} - } - , u = new XMLHttpRequest; - return u.onreadystatechange = function () { - var t; - 4 !== u.readyState || 200 !== u.status && 204 !== u.status || (s.point = o.AX(i.point), - s.line = o.AX(i.line), - s.polygon = o.AX(i.polygon), - s.polyhedron = o.AX(i.polyhedron), - s.label = o.AX(i.label), - t = new VectorTile$1(new Pbf(new Uint8Array(u.response))), - t = o.Ow(t, { - x: e.x, - y: e.y, - z: e.z, - projectionId: r, - tileSize: n - }, s), - a(null, exports.Ln({ - zo: e - }, t))) - } - , - u.responseType = "arraybuffer", - u.open("GET", t, !0), - u.send(), - { - cancel: function () { - u.abort() - } - } - } - , - t.prototype.mX = function (t, e, r) { - var n = { - point: {}, - line: {}, - polygon: {}, - polyhedron: {}, - label: {} - }; - n.point = this.AX(e.point), - n.line = this.AX(e.line), - n.polygon = this.AX(e.polygon), - n.polyhedron = this.AX(e.polyhedron), - n.label = this.AX(e.label), - this.xw(t, n, !0), - this.zw(t, n, !0), - this.nz(t, n, !0), - this.SX(t, n, !0), - this.i1(t, n, !0), - r && r(null, t) - } - , - t.prototype.Ow = function (h, t, e) { - var r = t.x - , n = t.y - , i = t.z - , a = t.tileSize - , o = t.projectionId - , l = (h.z = i, - h.x = r, - h.y = n, - ProjectionManager.getProjection(o)) - , t = l.getResolution(i) - , s = (h.projectionId = o, - h.Ro = getMVTTileBbox(r, n, i, t, a), - h.zS = lcs.getLocalByCoord([h.Ro[0], h.Ro[1]]), - h.visible = { - point: {}, - line: {}, - polygon: {}, - label: {}, - polyhedron: {} - }, - ProjectionManager.getProjection(o).getResolution(i)); - return forIn(h.layers, function (f) { - var t = f.Cw - , e = (f.Ah = [], - f.scale = s * a / f.extent, - transform[o].Xs(a * r, a * n, i)); - f.ox = e[0], - f.oy = e[1], - forEach(t, function (t, e) { - if ((t = f.Gw(e)).Dw(), - f.Ah.push(t), - t.lines && 0 < t.lines.length) { - t.Rw = [], - t.n1 = []; - for (var r = 0, n = t.lines.length; r < n; r++) { - for (var i = [], a = [], o = 0, s = t.lines[r].length; o < s; o++) { - var u = [f.ox + f.scale * t.lines[r][o][0], f.oy - f.scale * t.lines[r][o][1]] - , c = [u[0] - h.zS.center[0], u[1] - h.zS.center[1]]; - a.push(l.unproject(u[0], u[1])), - i.push(c) - } - t.Rw.push(i), - t.n1.push(a) - } - } - }) - }), - this.uW(h), - this.xw(h, e), - this.zw(h, e), - this.nz(h, e), - this.SX(h, e), - this.i1(h, e), - h - } - , - t.prototype.uW = function (t) { - for (var e in t.polygons = {}, - t.polygonOut = {}, - t.polyhedrons = {}, - t.polylines = {}, - t.points = {}, - t.layers) - if (t.layers.hasOwnProperty(e)) { - for (var r = t.layers[e], n = [], i = [], a = [], o = [], s = [], u = 0; u < r.Ah.length; u += 1) { - var c = r.Ah[u]; - if (3 == +c.type && c.Rw) { - for (var f = c.Rw, h = c.n1, l = [], d = this.g8t(c), v = d.w8t, g = d.height, p = 0; p < f.length; p++) - PlaneGeometryUtilInstance.isClockwise(f[p]) ? l.push([p]) : l.length && l[l.length - 1].push(p); - for (var y = 0; y < l.length; y++) { - var m = l[y]; - if (1 < m.length) - if (v) { - for (var b = [], T = [], x = 0; x < m.length; x++) { - var M = h[m[x]]; - if (P = this.d8t(t, M)) { - 0 < x && b.push(T.length / 2); - for (var S = [], A = 0; A < P.length; A++) { - var w = P[A]; - S.unshift(w[0], w[1]) - } - T.push.apply(T, S) - } - } - a.push({ - _id_: Util.getGuid("amap_"), - properties: c.properties, - path: T, - LQ: b, - height: g - }) - } else { - for (b = [], - T = [], - x = 0; x < m.length; x++) { - var P = f[m[x]]; - for (0 < x && b.push(T.length / 2), - A = 0; A < P.length; A++) { - var I = P[A]; - T.push(I[0], I[1]) - } - i.push({ - properties: c.properties, - path: P, - _id_: Util.getGuid("amap_") - }) - } - n.push({ - properties: c.properties, - path: T, - LQ: b - }) - } - else if (v) { - if (T = [], - M = h[m[0]], - P = this.d8t(t, M)) { - for (A = 0; A < P.length; A++) { - var C = P[A]; - T.unshift(C[0], C[1]) - } - a.push({ - _id_: Util.getGuid("amap_"), - properties: c.properties, - path: T, - height: g - }) - } - } else { - for (T = [], - P = f[m[0]], - A = 0; A < P.length; A++) { - var $ = P[A]; - T.push($[0], $[1]) - } - n.push({ - properties: c.properties, - path: T - }), - i.push({ - properties: c.properties, - path: P, - _id_: Util.getGuid("amap_") - }) - } - } - } else if (2 == +c.type && c.Rw) - for (var N = 0, k = c.Rw.length; N < k; N++) - o.push({ - properties: c.properties, - path: c.Rw[N], - _id_: Util.getGuid("amap_") - }); - else if (1 == +c.type && c.Rw) - for (h = c.n1, - y = 0; y < c.Rw.length; y++) - s.push({ - _id_: Util.getGuid("amap_"), - properties: c.properties, - path: c.Rw[y], - lnglat: __spreadArrays(h[0][0]) - }); - delete c.n1 - } - t.polygons[e] = n, - t.polygonOut[e] = i, - t.polyhedrons[e] = a, - t.polylines[e] = o, - t.points[e] = s - } - delete t.layers - } - , - t.prototype.xw = function (t, e, r) { - if (void 0 === r && (r = !1), - !t || !t.$c || r) { - var n = new VectorTileSegements - , i = (t.Uc = n, - r || (t.$c = new PolylineBucket), - e.line.sourceLayer) - , a = t.polylines; - if (a) - for (var o in t.visible.line[i] = [], - a) - if (!i || i === o) - for (var u = a[o], c = 0, f = u.length; c < f; c++) { - var h, l = u[c], v = (d = this.Mn(e.line, l.properties)).color, g = d.lineWidth, p = d.dash, d = +(d.visible || !d.filter); - t.visible.line[i] || (t.visible.line[i] = []), - d && t.visible.line[i].push(l._id_), - v[3] *= d, - r ? n.add(v + ":" + g + ":" + p, 0, l.a1, 0, 22) : (h = (d = t.$c.g0(l.path, { - X_: 0, - lineJoin: "round", - lineCap: "butt" - })).Iw, - d = d.distance, - 0 < h && (l.a1 = h, - n.add(v + ":" + g + ":" + p, 0, h, 0, 22), - l.distance = d)) - } - } - } - , - t.prototype.zw = function (t, e, r) { - if (void 0 === r && (r = !1), - !t || !t.Dc || r) { - var n = new VectorTileSegements - , i = (t.Oc = n, - new VectorTileSegements) - , a = (t.Fc = i, - r || (t.Dc = new PolygonBucket, - t.pX = new PolylineBucket), - e.polygon.sourceLayer) - , o = t.polygons; - if (o) { - for (var s in o) - if (!a || a === s) - for (var u = 0, c = (v = o[s]).length; u < c; u++) { - var f, h = v[u], l = +((g = this.Mn(e.polygon, h.properties)).visible || !g.filter); - g.color[3] *= l, - r ? n.add(g.color + "", 0, h.a1, 0, 22) : 0 < (f = t.Dc.Nx(h.path, h.LQ)) && (h.a1 = f, - n.add(g.color + "", 0, f, 0, 22)) - } - var d = t.polygonOut; - for (s in d) - if (!a || a === s) - for (var v, u = 0, c = (v = d[s]).length; u < c; u++) { - var g, p, y, m = v[u], l = +((g = this.Mn(e.polygon, m.properties)).visible || !g.filter); - t.visible.polygon[a] || (t.visible.polygon[a] = []), - l && t.visible.polygon[a].push(m._id_), - g.borderWidth *= l, - r ? i.add(g.borderColor + ":" + g.dash + ":" + g.borderWidth, 0, m.a1, 0, 22) : (p = (y = t.pX.g0(m.path, { - X_: 0, - lineJoin: "round", - lineCap: "butt" - })).Iw, - y = y.distance, - 0 < p && (m.a1 = p, - i.add(g.borderColor + ":" + g.dash + ":" + g.borderWidth, 0, p, 0, 22), - m.distance = y)) - } - } - } - } - , - t.prototype.nz = function (t, e, r) { - if (void 0 === r && (r = !1), - !t || !t.A_ || r) { - var n = new NebulaSegements - , i = (t.w0 = n, - r || (t.A_ = new FillExtrusionBucket), - e.polyhedron.sourceLayer) - , a = t.polyhedrons; - if (a) - for (var o in t.visible.polyhedron[i] = [], - a) - if (!i || i === o) - for (var u = a[o], c = 0, f = u.length; c < f; c++) { - var h = u[c] - , l = h.properties - , d = +((l = this.Mn(e.polyhedron, void 0 === l ? {} : l)).visible || !l.filter); - t.visible.polyhedron[i] || (t.visible.polyhedron[i] = []), - d ? t.visible.polyhedron[i].push(h._id_) : (l.topColor = void 0, - l.sideColor = void 0, - l.texture = ""), - r ? n.add(h._id_, 1e3, h.a1, 0, 22, l.texture, l.topColor, l.sideColor) : 0 < (d = t.A_.tz(h.path, h.height, h.LQ)) && (h.a1 = d, - n.add(h._id_, 1e3, d, 0, 22, l.texture, l.topColor, l.sideColor)) - } - } - } - , - t.prototype.SX = function (t, e, r) { - if (void 0 === r && (r = !1), - !t || !t.dX || r) { - var n = t.IX - , n = new VectorTileSegements - , i = (t.IX = n, - t.dX = new CircleBucket, - e.point.sourceLayer) - , a = t.points; - if (a) - for (var o in t.visible.point[i] = [], - a) - if (!i || i === o) - for (var u = a[o], c = 0, f = u.length; c < f; c++) { - var h = u[c] - , l = this.Mn(e.point, h.properties); - t.visible.point[i] || (t.visible.point[i] = []), - t.visible.point[i].push(h._id_), - 0 < (h = t.dX.wb(h.path[0], l)) && n.add("point", 0, h, 0, 22) - } - } - } - , - t.prototype.i1 = function (t, e, r) { - if (void 0 === r && (r = !1), - !t || !t.labels || r) { - t.labels = []; - var n = e.label.sourceLayer - , i = (t.visible.label[n] = [], - t.points[n]); - if (i) - for (var a = 0, o = i.length; a < o; a++) { - var s = i[a] - , c = (u = this.g8t(s)).height - , u = u.w8t - , f = this.Mn(e.label, s.properties); - t.visible.label[n].push(s._id_), - t.labels.push(exports.Ln(exports.Ln({}, f), { - position: u ? __spreadArrays(s.lnglat, [c + 1]) : s.lnglat - })) - } - } - } - , - t.prototype.Mn = function (t, e) { - var r, n = { - visible: !0, - filter: !0 - }; - for (r in t) { - var i = t[r]; - n[r] = "style" === r || "icon" === r || "text" === r ? this.Mn(i, e) : "function" == typeof i ? i()(e, t.injection) : i, - -1 < r.toLowerCase().indexOf("color") && (n[r] = Util.color2RgbaArray(n[r])), - "filter" === r && (n.filter = this.$X(e, i)) - } - return n - } - , - t.prototype.AX = function (t) { - var e, r = {}; - for (e in t) { - var n = t[e]; - n.indexOf && -1 < n.indexOf("function") ? (n = n.replace("function", "return function"), - r[e] = new Function(n)) : r[e] = "style" === e || "icon" === e || "text" === e ? this.AX(n) : n - } - return r - } - , - t.prototype.$X = function (t, e) { - if (e) { - var r = e[0] - , n = e[1] - , i = e[2] - , a = t[r]; - switch (n) { - case "in": - return -1 < i.indexOf(a); - case "out": - return i.indexOf(a) < 0 - } - } - return !0 - } - , - t.prototype.d8t = function (t, e) { - var r = t.projectionId - , n = t.zS - , t = t.Ro - , i = ProjectionManager.getProjection(r) - , r = t[0] - , a = t[1] - , o = t[2] - , t = t[3] - , r = __spreadArrays(i.unproject(r, a), i.unproject(o, t)) - , s = null == (a = bboxClip(polygon([e]), r).geometry) ? void 0 : a.coordinates[0]; - if (!s) - return s; - for (var u = [], c = 0; c < s.length; c++) { - var f = s[c] - , f = i.project(f[0], f[1]); - u.push([f[0] - n.center[0], f[1] - n.center[1]]) - } - return u - } - , - t.prototype.g8t = function (t) { - var e = "Y" === (t = t.properties || {})._AS_CUBE && t._HEIGHT_PROP - , t = e ? +t[t._HEIGHT_PROP] : 0; - return { - w8t: e, - height: t = Number.isNaN(t) || t < 0 ? 0 : t - } - } - , - t - }(), Ring = { - read: function (t, e) { - return t.nw(Ring.iw, { - path: [] - }, e) - }, - iw: function (t, e, r) { - 0 === t && r.tw(e.path, !0) - }, - write: function (t, e) { - if (t.path) - for (var r = 0; r < t.path.length; r++) - e.rw(0, t.path[r]) - } - }, Building = { - read: function (t, e) { - return t.nw(Building.iw, { - minzoom: 0, - maxzoom: 0, - path: [], - height: 0, - ew: "", - altitude: 0 - }, e) - }, - iw: function (t, e, r) { - 0 === t ? e.minzoom = r.ow() : 1 === t ? e.maxzoom = r.ow() : 2 === t ? e.path.push(Ring.read(r, r.ow() + r.pos)) : 3 === t ? e.height = r.ow() : 4 === t ? e.ew = r.aw() : 5 === t && (e.altitude = r.ow()) - }, - write: function (t, e) { - if (t.minzoom && e.rw(0, t.minzoom), - t.maxzoom && e.rw(1, t.maxzoom), - t.path) - for (var r = 0; r < t.path.length; r++) - e.fw(2, Ring.write, t.path[r]); - t.height && e.rw(3, t.height), - t.ew && e.uw(4, t.ew), - t.altitude && e.rw(5, t.altitude) - } - }, BuildingSameStyle = { - read: function (t, e) { - return t.nw(BuildingSameStyle.iw, { - mainkey: 0, - subkey: 0, - items: [], - resolution: 0 - }, e) - }, - iw: function (t, e, r) { - 0 === t ? e.mainkey = r.ow() : 1 === t ? e.subkey = r.ow() : 2 === t ? e.items.push(Building.read(r, r.ow() + r.pos)) : 3 === t && (e.resolution = r.ow()) - }, - write: function (t, e) { - if (t.mainkey && e.rw(0, t.mainkey), - t.subkey && e.rw(1, t.subkey), - t.items) - for (var r = 0; r < t.items.length; r++) - e.fw(2, Building.write, t.items[r]); - t.resolution && e.rw(3, t.resolution) - } - }, buildingLayer = { - read: function (t, e) { - return t.nw(buildingLayer.iw, { - building: [] - }, e) - }, - iw: function (t, e, r) { - 0 === t && e.building.push(BuildingSameStyle.read(r, r.ow() + r.pos)) - }, - write: function (t, e) { - if (t.building) - for (var r = 0; r < t.building.length; r++) - e.fw(0, BuildingSameStyle.write, t.building[r]) - } - }, Poi = { - read: function (t, e) { - return t.nw(Poi.IQ, { - minzoom: 0, - maxzoom: 0, - pos: [], - cw: "", - ew: "", - name: "", - rank: 0, - BQ: "", - name_en: "", - QQ: "", - CQ: "", - $G: [], - iQ: [], - JQ: [] - }, e) - }, - IQ: function (t, e, r) { - 0 === t ? e.minzoom = r.ow() : 1 === t ? e.maxzoom = r.ow() : 2 === t ? r.tw(e.pos, !0) : 3 === t ? e.cw = r.aw() : 4 === t ? e.ew = r.aw() : 5 === t ? e.name = r.aw() : 6 === t ? e.rank = r.ow() : 7 === t ? e.BQ = r.aw() : 8 === t ? e.name_en = r.aw() : 9 === t ? e.QQ = r.aw() : 10 === t ? e.CQ = r.aw() : 11 === t ? r.tw(e.$G) : 12 === t ? r.tw(e.iQ) : 13 === t && r.tw(e.JQ) - }, - write: function (t, e) { - if (t.minzoom && e.rw(0, t.minzoom), - t.maxzoom && e.rw(1, t.maxzoom), - t.pos) - for (var r = 0; r < t.pos.length; r++) - e.rw(2, t.pos[r]); - if (t.cw && e.uw(3, t.cw), - t.ew && e.uw(4, t.ew), - t.name && e.uw(5, t.name), - t.rank && e.rw(6, t.rank), - t.BQ && e.uw(7, t.BQ), - t.name_en && e.uw(8, t.name_en), - t.QQ && e.uw(9, t.QQ), - t.CQ && e.uw(10, t.CQ), - t.$G) - for (r = 0; r < t.$G.length; r++) - e.rw(11, t.$G[r]); - if (t.iQ) - for (r = 0; r < t.iQ.length; r++) - e.rw(12, t.iQ[r]); - if (t.JQ) - for (r = 0; r < t.JQ.length; r++) - e.rw(13, t.JQ[r]) - } - }, PoiSameStyle = { - read: function (t, e) { - return t.nw(PoiSameStyle.IQ, { - mainkey: 0, - subkey: 0, - items: [], - resolution: 0 - }, e) - }, - IQ: function (t, e, r) { - 0 === t ? e.mainkey = r.ow() : 1 === t ? e.subkey = r.ow() : 2 === t ? e.items.push(Poi.read(r, r.ow() + r.pos)) : 3 === t && (e.resolution = r.ow()) - }, - write: function (t, e) { - if (t.mainkey && e.rw(0, t.mainkey), - t.subkey && e.rw(1, t.subkey), - t.items) - for (var r = 0; r < t.items.length; r++) - e.fw(2, Poi.write, t.items[r]); - t.resolution && e.rw(3, t.resolution) - } - }, PoiLayer = { - read: function (t, e) { - return t.nw(PoiLayer.IQ, { - poilabel: [] - }, e) - }, - IQ: function (t, e, r) { - 0 === t && e.poilabel.push(PoiSameStyle.read(r, r.ow() + r.pos)) - }, - write: function (t, e) { - if (t.poilabel) - for (var r = 0; r < t.poilabel.length; r++) - e.fw(0, PoiSameStyle.write, t.poilabel[r]) - } - }, Ring$1 = { - read: function (t, e) { - return t.nw(Ring$1.iw, { - path: [] - }, e) - }, - iw: function (t, e, r) { - 0 === t && r.tw(e.path, !0) - }, - write: function (t, e) { - if (t.path) - for (var r = 0; r < t.path.length; r++) - e.rw(0, t.path[r]) - } - }, Region = { - read: function (t, e) { - return t.nw(Region.iw, { - minzoom: 0, - maxzoom: 0, - path: [], - sw: "" - }, e) - }, - iw: function (t, e, r) { - 0 === t ? e.minzoom = r.ow() : 1 === t ? e.maxzoom = r.ow() : 2 === t ? e.path.push(Ring$1.read(r, r.ow() + r.pos)) : 3 === t && (e.sw = r.aw()) - }, - write: function (t, e) { - if (t.minzoom && e.rw(0, t.minzoom), - t.maxzoom && e.rw(1, t.maxzoom), - t.path) - for (var r = 0; r < t.path.length; r++) - e.fw(2, Ring$1.write, t.path[r]); - t.sw && e.uw(3, t.sw) - } - }, RegionSameStyle = { - read: function (t, e) { - return t.nw(RegionSameStyle.iw, { - mainkey: 0, - subkey: 0, - items: [], - resolution: 0 - }, e) - }, - iw: function (t, e, r) { - 0 === t ? e.mainkey = r.ow() : 1 === t ? e.subkey = r.ow() : 2 === t ? e.items.push(Region.read(r, r.ow() + r.pos)) : 3 === t && (e.resolution = r.ow()) - }, - write: function (t, e) { - if (t.mainkey && e.rw(0, t.mainkey), - t.subkey && e.rw(1, t.subkey), - t.items) - for (var r = 0; r < t.items.length; r++) - e.fw(2, Region.write, t.items[r]); - t.resolution && e.rw(3, t.resolution) - } - }, regionLayer = { - read: function (t, e) { - return t.nw(regionLayer.iw, { - region: [] - }, e) - }, - iw: function (t, e, r) { - 0 === t && e.region.push(RegionSameStyle.read(r, r.ow() + r.pos)) - }, - write: function (t, e) { - if (t.region) - for (var r = 0; r < t.region.length; r++) - e.fw(0, RegionSameStyle.write, t.region[r]) - } - }, Road = { - read: function (t, e) { - return t.nw(Road.iw, { - minzoom: 0, - maxzoom: 0, - path: [], - shield: "", - shieldType: 0, - name: "", - rank: 0, - name_en: "", - BQ: "", - QQ: "", - CQ: "", - $G: [], - iQ: [] - }, e) - }, - iw: function (t, e, r) { - 0 === t ? e.minzoom = r.ow() : 1 === t ? e.maxzoom = r.ow() : 2 === t ? r.tw(e.path, !0) : 3 === t ? e.shield = r.aw() : 4 === t ? e.shieldType = r.ow() : 5 === t ? e.name = r.aw() : 6 === t ? e.rank = r.ow() : 7 === t ? e.BQ = r.aw() : 8 === t ? e.name_en = r.aw() : 9 === t ? e.QQ = r.aw() : 10 === t ? e.CQ = r.aw() : 11 === t ? r.tw(e.$G) : 12 === t && (e.id = r.ow()) - }, - write: function (t, e) { - if (t.minzoom && e.rw(0, t.minzoom), - t.maxzoom && e.rw(1, t.maxzoom), - t.path) - for (var r = 0; r < t.path.length; r++) - e.rw(2, t.path[r]); - if (t.shield && e.uw(3, t.shield), - t.shieldType && e.rw(4, t.shieldType), - t.name && e.uw(5, t.name), - t.rank && e.rw(6, t.rank), - t.BQ && e.uw(7, t.BQ), - t.name_en && e.uw(8, t.name_en), - t.QQ && e.uw(9, t.QQ), - t.CQ && e.uw(10, t.CQ), - t.$G) - for (r = 0; r < t.$G.length; r++) - e.rw(11, t.$G[r]); - t.id && e.rw(12, t.id) - } - }, RoadSameStyle = { - read: function (t, e) { - return t.nw(RoadSameStyle.iw, { - mainkey: 0, - subkey: 0, - items: [], - resolution: 0 - }, e) - }, - iw: function (t, e, r, n) { - 0 === t ? e.mainkey = r.ow() : 1 === t ? e.subkey = r.ow() : 2 === t ? e.items.push(Road.read(r, r.ow() + r.pos)) : 3 === t && (e.resolution = r.ow()) - }, - write: function (t, e) { - if (t.mainkey && e.rw(0, t.mainkey), - t.subkey && e.rw(1, t.subkey), - t.items) - for (var r = 0; r < t.items.length; r++) - e.fw(2, Road.write, t.items[r]); - t.resolution && e.rw(3, t.resolution) - } - }, roadLayer = { - read: function (t, e) { - return t.nw(roadLayer.iw, { - road: [] - }, e) - }, - iw: function (t, e, r, n) { - 0 === t && e.road.push(RoadSameStyle.read(r, r.ow() + r.pos)) - }, - write: function (t, e) { - if (t.road) - for (var r = 0; r < t.road.length; r++) - e.fw(0, RoadSameStyle.write, t.road[r]) - } - }, roadNameLayer = { - read: function (t, e) { - return t.nw(roadNameLayer.iw, { - roadName: [] - }, e) - }, - iw: function (t, e, r, n) { - 0 === t && e.roadName.push(RoadSameStyle.read(r, r.ow() + r.pos)) - }, - write: function (t, e) { - if (t.roadName) - for (var r = 0; r < t.road.length; r++) - e.fw(0, RoadSameStyle.write, t.roadName[r]) - } - }, Result = { - read: function (t, e) { - return t.nw(Result.IQ, { - tiles: [], - version: "", - status: !1, - db: "" - }, e) - }, - IQ: function (t, e, r) { - 0 === t ? e.tiles.push(Result.Gh.read(r, r.ow() + r.pos)) : 1 === t ? e.version = r.aw() : 2 === t ? e.status = r.vw() : 3 === t && (e.db = r.aw()) - }, - write: function (t, e) { - if (t.tiles) - for (var r = 0; r < t.tiles.length; r++) - e.fw(0, Result.Gh.write, t.tiles[r]); - t.version && e.uw(1, t.version), - t.status && e.hw(2, t.status), - t.db && e.uw(3, t.db) - }, - Gh: {} - }, Style = (Result.Gh.read = function (t, e) { - return t.nw(Result.Gh.IQ, { - z: 0, - x: 0, - y: 0, - layers: [], - t: 0 - }, e) - } - , - Result.Gh.IQ = function (t, e, r) { - 0 === t ? e.z = r.ow() : 1 === t ? e.x = r.ow() : 2 === t ? e.y = r.ow() : 3 === t ? e.layers.push(Result.Gh.lw.read(r, r.ow() + r.pos)) : 4 === t && (e.t = r.ow()) - } - , - Result.Gh.write = function (t, e) { - if (t.z && e.rw(0, t.z), - t.x && e.rw(1, t.x), - t.y && e.rw(2, t.y), - t.layers) - for (var r = 0; r < t.layers.length; r++) - e.fw(3, Result.Gh.lw.write, t.layers[r]); - t.t && e.rw(4, t.t) - } - , - Result.Gh.lw = {}, - Result.Gh.lw.read = function (t, e) { - return t.nw(Result.Gh.lw.IQ, { - z: 0, - x: 0, - y: 0, - type: 0, - d: null, - t: 0 - }, e) - } - , - Result.Gh.lw.IQ = function (t, e, r) { - 0 === t ? e.z = r.ow() : 1 === t ? e.x = r.ow() : 2 === t ? e.y = r.ow() : 3 === t ? e.type = r.ow() : 4 === t ? e.d = r.mw() : 5 === t && (e.t = r.ow()) - } - , - Result.Gh.lw.write = function (t, e) { - t.z && e.rw(0, t.z), - t.x && e.rw(1, t.x), - t.y && e.rw(2, t.y), - t.type && e.rw(3, t.type), - t.d && e.ww(4, t.d), - t.t && e.rw(5, t.t) - } - , - { - read: function (t, e) { - return t.nw(Style.IQ, { - bgColor: "", - zn: 0, - xV: "", - stylemaps: [], - test: 0 - }, e) - }, - IQ: function (t, e, r) { - 1 === t ? e.bgColor = r.aw() : 2 === t ? e.zn = r.ow(!0) : 3 === t ? e.xV = r.aw() : 4 === t ? e.stylemaps.push(Style.SV.read(r, r.ow() + r.pos)) : 5 === t && (e.test = r.ow(!0)) - }, - write: function (t, e) { - if (t.bgColor && e.uw(1, t.bgColor), - t.zn && e.rw(2, t.zn), - t.xV && e.uw(3, t.xV), - t.stylemaps) - for (var r = 0; r < t.stylemaps.length; r++) - e.fw(4, Style.SV.write, t.stylemaps[r]); - t.test && e.rw(5, t.test) - }, - SV: {} - }), decodeStyle = (Style.SV.read = function (t, e) { - return t.nw(Style.SV.IQ, { - key: [], - browserStyle: [], - levelStyleMapping: [] - }, e) - } - , - Style.SV.IQ = function (t, e, r) { - 1 === t ? e.key.push(r.aw()) : 2 === t ? e.browserStyle.push(r.aw()) : 3 === t && r.tw(e.levelStyleMapping, !0) - } - , - Style.SV.write = function (t, e) { - if (t.key) - for (var r = 0; r < t.key.length; r++) - e.uw(1, t.key[r]); - if (t.browserStyle) - for (r = 0; r < t.browserStyle.length; r++) - e.uw(2, t.browserStyle[r]); - if (t.levelStyleMapping) - for (r = 0; r < t.levelStyleMapping.length; r++) - e.rw(3, t.levelStyleMapping[r]) - } - , - function (t) { - return t = new Pbf(t), - Style.read(t) - } - ), decodePois = function (t) { - return t = new Pbf(t), - PoiLayer.read(t) - }, decodeRoads = function (t) { - return t = new Pbf(t), - roadLayer.read(t) - }, decodeRoadNames = function (t) { - return t = new Pbf(t), - roadNameLayer.read(t) - }, decodeRegions = function (t) { - return t = new Pbf(t), - regionLayer.read(t) - }, decodeBuildings = function (t) { - return t = new Pbf(t), - buildingLayer.read(t) - }, decodeTiles = function (t) { - for (var t = new Pbf(t), e = (t = Result.read(t)).tiles, r = 0, n = e.length; r < n; r += 1) - for (var i = e[r].layers, a = 0, o = i.length; a < o; a += 1) - switch (i[a].type) { - case 0: - i[a].d = decodePois(i[a].d); - break; - case 1: - i[a].d = decodeRoads(i[a].d); - break; - case 2: - i[a].d = decodeRegions(i[a].d); - break; - case 3: - i[a].d = decodeBuildings(i[a].d); - break; - case 4: - i[a].d = decodeRoadNames(i[a].d) - } - return t - }, CONSTS$2 = { - _U: ["th", "my"] - }, SDFManagerBase = function (e) { - function t() { - var t = e.call(this) || this; - return t.CLASS_NAME = "SDFManagerBase", - t - } - return __extends(t, e), - t.jU = function (t) { - return t = LangManager.gG(t + ""), - -1 !== CONSTS$2._U.indexOf(t) - } - , - t.prototype.FU = function (t) { - for (var e = [], r = 0, n = t; r < n.length; r++) { - var i = n[r]; - LangManager.gG(i + ""), - e.push(i) - } - return { - UU: e, - DU: [] - } - } - , - t.prototype.measureText = function (t, e, r) { - if (r) { - r.font = (e || 12) + "px"; - for (var n = "", i = 0, a = t; i < a.length; i++) { - var o = a[i]; - n += String.fromCharCode(o) - } - return r.measureText(n).width - } - return 0 - } - , - t.prototype.lineBreak = function (t, e) { - var n = void 0 === (r = (e = void 0 === e ? {} : e).fontSize) ? 12 : r - , r = e.maxWidth - , i = e.CO - , a = void 0 === (a = e.fj) ? 6 : a - , s = void 0 === (o = e.type) ? "en" : o - , u = e.YQ - , c = (t = void 0 === t ? "" : t).split(" ") - , f = [] - , o = r || 90 - , h = 0 - , l = [] - , d = [] - , v = [0]; - if ("labelsLayer" === e.from) { - for (var g = t.length, p = Math.ceil(g / a), y = Math.ceil(g / p), m = void 0, b = 0, T = 0; T < p; T++) { - l[T] || (l[T] = [b]), - 0 === T ? m = i.slice(0, b = g % y || y) : (m = i.slice(b, b + y), - b += y); - var x = this.measureText(m, n, u); - d.push(x), - l[T].push(b) - } - for (T = 0; T < l.length; T++) { - var M = l[T]; - v.push(M[M.length - 1]) - } - } else if ("ch" === s) - for (T = b = 0; T < c.length; T++) { - for (var M = c[T], m = [], S = 0; S < M.length; S++) - m.push(M.charCodeAt(S)); - x = this.measureText(m, n, u), - d.push(x), - l.push([b, b + M.length + 1]), - b += M.length + 1, - v.push(b) - } - else { - for (T = 0; T < c.length; T++) { - var A = c[T] - , m = []; - if ("en" === s) - for (var w = 0; w < A.length; w++) - m.push(A.charCodeAt(w)); - else { - var P = -1 === (P = i.indexOf("32", h)) ? i.length : P; - m = i.slice(h, P), - h = P + 1 - } - x = this.measureText(m, n, u), - f.push(x) - } - for (r = Math.max.apply(Math, f), - l = (e = this.GU(f, o < r ? r : o)).lines, - d = e.BU, - T = 0; T < l.length; T++) { - var M = l[T] - , I = c.slice(M[0], M[M.length - 1] + 1).join(" ") - , C = t.indexOf(I) - , I = I.length - 1; - v.push(C + I + 1) - } - } - return { - lines: l, - oQ: v, - width: d, - maxWidth: Math.max.apply(Math, d) - } - } - , - t.prototype.GU = function (t, e) { - for (var r = [], n = 0, i = 0, a = [], o = 0, s = t.length, u = 0; u < s; u++) { - var c = t[u]; - i += c, - r[n] || (r[n] = []), - e < i && (r[++n] = [], - a.push(o), - o = i = 0), - r[n].push(u), - o += c, - u === s - 1 && a.push(o) - } - return { - lines: r, - BU: a - } - } - , - t.prototype.destroy = function () { } - , - t - }(Event), LoadFlag, SDFManagerWorker = (function (t) { - t.TEXTUREFINISH = "TEXTUREFINISH", - t.UNLOAD = "unload", - t.LOADING = "loading", - t.LOADED = "loaded", - t.FAIL = "fail" - }(LoadFlag = LoadFlag || {}), - function (t) { - t.AllLoaded = "AllLoaded", - t.AllUnLoaded = "AllUnLoaded", - t.SomeLoading = "SomeLoading", - t.AllLoading = "AllLoading" - }(exports.qu || (exports.qu = {})), - function (r) { - function t(t) { - var e = r.call(this) || this; - return e.CLASS_NAME = "SDFManagerWorker", - e.protocol = "https", - e.range = [], - e.info = {}, - e.dc = 0, - e._c = {}, - e._size = 24, - e.nc = new AdaptorMap, - e.xc = [], - e.bc = {}, - e.Xu = {}, - e.yc = 1, - e.fN = {}, - e.ac = t.z_, - e._parent = t.parent, - e - } - return __extends(t, r), - t.prototype.vW = function (t, e) { - var n = void 0 === (r = e.tiles) ? [] : r - , i = e.cb - , a = e.optimalZoom - , r = void 0 === (r = e.tags) ? [] : r - , o = e.stamp; - this.cN = a, - this.fN[o] || (this.fN[o] = r); - for (var s = 0; s < n.length; s++) { - var u = n[s] - , c = this.Zu(t); - e.result = c, - this.loadData(t, { - tile: u, - result: c, - cb: i, - optimalZoom: a, - stamp: o, - i: s - }) - } - } - , - t.prototype.loadData = function (t, e) { - var r = this - , n = e.cb - , i = e.tile - , a = e.result - , o = (e.optimalZoom, - e.stamp) - , s = e.i - , u = a || this.Zu(t); - switch (u.status) { - case exports.qu.AllLoaded: - n([]); - break; - case exports.qu.AllUnLoaded: - var c = this.Yu(n, { - tile: i, - stamp: o, - index: s - }); - this.MI(u.Vu, function (t) { - r.Xu[c] = t = void 0 === t ? {} : t, - r.Hu() - }); - break; - case exports.qu.SomeLoading: - var f = this.Yu(n, { - tile: i, - stamp: o, - index: s - }); - this.MI(u.Vu, function (t) { - r.Xu[f] = t = void 0 === t ? {} : t, - r.Hu() - }); - break; - case exports.qu.AllLoading: - var h = this.Yu(n, { - tile: i, - stamp: o, - index: s - }); - this.Xu[h] = [], - this.Hu() - } - } - , - t.prototype.mz = function (t) { - var e = this.info || {}; - return e[t] && (e = e[t]).pos && e.info[t] ? { - key: t, - index: exports.cY.dynamic, - char: e.info[t], - pos: e.pos - } : null - } - , - t.prototype.measureText = function (t, e) { - for (var r = CONSTS.ic, n = 0, i = this.info, a = e / this._size, o = this.nc, s = 0, u = t; s < u.length; s++) { - var c = u[s] - , f = void 0 - , h = c; - (f = o.get(h)) || i.hasOwnProperty(h) && (h = i[h].info[h]) && this.nc.set(c, f = h[4]), - n += (f + r) * a - } - return n - } - , - t.prototype.Ju = function (t) { - for (var e = {}, r = 0, n = t; r < n.length; r++) { - var a = (i = n[r]).range - , o = i.info - , i = i.pos - , s = this.info; - s[a], - s[a] = { - info: ((s = {})[a] = o, - s), - pos: i - }, - this.range.push(a), - e[a] = 1 - } - return e - } - , - t.prototype.AI = function (t, e) { - this.info[t] && (this.info[t].pos = e) - } - , - t.prototype.MI = function (e, r) { - for (var n = this, t = (void 0 === e && (e = []), - CONSTS.Mj), i = 0, a = e; i < a.length; i++) { - var o = a[i]; - this._c[o] = !0 - } - for (var s = [], u = 0, c = this.FU(e), f = c.UU, h = c.DU, l = h.length, d = Math.ceil(l / CONSTS.Mj); u < d;) { - var v = h.slice(v = t * u, l < v + t ? l : v + t) - , v = this.xI(v); - s.push(v), - u++ - } - s.push(this.pG(f)), - Promise.all(s).then(function (t) { - n.II(e), - t = n.zU(t), - n.Ju(t), - r(t) - }) - } - , - t.prototype.pG = function (t) { - var r = this; - return new Promise(function (e) { - r._parent.loadWordsByFront({ - Es: t, - cb: function (t) { - e(t) - } - }) - } - ) - } - , - t.prototype.xI = function (t) { - var a = this - , e = this.fc() + ("/getsdfdata?chars=" + t.join(",").split(",").join("|")); - return new Promise(function (n, i) { - XHR.send(e, { - Me: "json", - method: "get", - qw: function (t) { - var e, r; - t && t.info ? (e = a.vc(t.info), - r = new ImageDataWraper(e, t.url), - t.url = r, - n({ - range: e, - info: t - })) : i(null) - }, - error: function () { - i(null) - } - }) - } - ) - } - , - t.prototype.fc = function () { - var t = CONSTS.pc - , e = this.protocol + t[this.dc]; - return this.dc = (this.dc + 1) % t.length, - e - } - , - t.prototype.vc = function (t) { - void 0 === t && (t = {}); - (t = map(Object.keys(t), function (t) { - return parseInt(t, 10) - })).sort(function (t, e) { - return t - e - }); - var e = t.length; - return 2 <= e ? t[0] + "-" + t[e - 1] : 1 === e ? "" + t[0] : "" - } - , - t.prototype.gc = function (t) { - var e = this.range || [] - , r = this.info || {}; - if (-1 !== e.indexOf(t)) - return !0; - for (var n = parseInt(t, 10), i = 0, a = e; i < a.length; i++) { - var o = a[i]; - if (o.indexOf("-") < 0) { - if (n === +o && (r[o] && r[o].info || {})[t]) - return !0 - } else { - var s = o.split("-") - , u = parseInt(s[0] || "", 10) - , s = parseInt(s[1] || "", 10); - if (u <= n && n <= s && (r[o] && r[o].info || {})[t]) - return !0 - } - } - return !1 - } - , - t.prototype.wc = function (t) { - return this._c[t] - } - , - t.prototype.Zu = function (t) { - for (var e = [], r = 0, n = 0, i = 0, a = t; i < a.length; i++) { - var o = a[i]; - this.gc(o) || (this.wc(o) ? n += 1 : (r += 1, - e.push(o))) - } - return 0 === n && 0 === r ? { - status: exports.qu.AllLoaded, - Vu: e - } : 0 < r && 0 === n ? { - status: exports.qu.AllUnLoaded, - Vu: e - } : 0 === r && 0 < n ? { - status: exports.qu.AllLoading, - Vu: e - } : { - status: exports.qu.SomeLoading, - Vu: e - } - } - , - t.prototype.Yu = function (t, e) { - void 0 === e && (e = {}); - var r = this.yc += 1; - return this.xc.push(r), - this.bc[r] = t, - this.bc[r] = { - cb: t, - params: e - }, - r - } - , - t.prototype.Hu = function () { - var t, e, r = this.xc[0]; - r && (t = this.Xu[r]) && (this.xc.shift(), - (e = this.bc[r]) ? e.cb(t) : console.error("sdf task error"), - delete this.Xu[r], - delete this.bc[r], - this.Hu()) - } - , - t.prototype.II = function (t) { - for (var e = 0, r = t; e < r.length; e++) { - var n = r[e]; - delete this._c[n] - } - } - , - t.prototype.zU = function (t) { - for (var e = [], r = 0, n = t = void 0 === t ? [] : t; r < n.length; r++) { - var i = n[r]; - if (Array.isArray(i)) - for (var a = 0, o = i; a < o.length; a++) { - var s = o[a]; - e.push(s) - } - else - e.push(i) - } - return e - } - , - t - }(SDFManagerBase)), TaskManager = (function (t) { - t[t.stop = 0] = "stop", - t[t.finish = 1] = "finish", - t[t.pause = 2] = "pause" - }(exports.vY || (exports.vY = {})), - function (e) { - function t() { - var t = null !== e && e.apply(this, arguments) || this; - return t.id = 0, - t.LV = [], - t._V = {}, - t.CV = {}, - t - } - return __extends(t, e), - t.prototype.register = function (t, e, r) { - if (this.CV[t]) - throw Error("TaskManager: Exist Task Creator"); - this.CV[t] = { - PV: e, - OV: r - } - } - , - t.prototype.add = function (t, e) { - var r; - if (this.CV[t]) - return t = this.CV[t], - r = this.id++, - e = t.PV(e), - this.LV.push({ - UQ: e, - OV: { - id: r, - kY: t.OV.kY - } - }), - r; - throw Error("TaskManager: Not Exist Task Type") - } - , - t.prototype.XQ = function (t, e, r) { - void 0 === e && (e = { - kY: 1 / 0 - }), - void 0 === r && (r = !1); - var n = this.id++; - return r ? this.LV.unshift({ - UQ: t, - OV: { - id: this.id++, - kY: e.kY - } - }) : this.LV.push({ - UQ: t, - OV: { - id: this.id++, - kY: e.kY - } - }), - n - } - , - t.prototype.exec = function (t) { - this.jV(); - for (var e = t, r = Date.now(); 0 < e;) { - var n = this.LV.shift(); - if (!n) - break; - var i = n.UQ.play(e); - n.UQ.status === exports.vY.finish ? this.emit("task:" + n.OV.id, { - data: i - }) : this.LV.unshift(n), - e = t - (Date.now() - r), - 0 === this.LV.length && this.emit("taskclear", !0) - } - } - , - t.prototype.xY = function () { - return 0 < this.LV.length - } - , - t.prototype.destroy = function () { - this.LV = [] - } - , - t.prototype.clear = function (e) { - this.LV = e ? this.LV.filter(function (t) { - return t.UQ.type === e - }) : [] - } - , - t.prototype.jV = function () { - this.LV.sort(function (t, e) { - return t.OV.kY - e.OV.kY - }) - } - , - t - }(Event)), Actor = function () { - function t(t, e, r) { - this.UD = !1, - this.gI = this.gI.bind(this), - this.target = t, - this.parent = e, - this.dI = r, - this.pI = {}, - this.bI = Browser.DW ? 1 : 0, - this.target.addEventListener("message", this.gI, !1) - } - return t.prototype.send = function (t, e, r, n) { - var i = this - , a = r ? this.dI + ":" + this.bI : null - , o = (this.bI += 2, - r && a && (this.pI[a] = r), - []) - , s = serialize(e, o); - if (this.target.postMessage({ - yI: n, - mI: this.dI, - type: t, - id: String(a), - data: s - }, o), - r) - return { - cancel: function () { - i.target.postMessage({ - yI: n, - mI: i.dI, - type: "", - id: String(a), - key: e.ya - }), - a && delete i.pI[a] - } - } - } - , - t.prototype.gI = function (t) { - var n, e, i = this; - Browser.DW && "destroy" === t.data.type && self.close(); - var a = (t = t.data).id; - t.yI && this.dI !== t.yI || ("" === t.type ? (e = this.pI[t.id], - delete this.pI[t.id], - e && e("")) : "" === t.type ? (e = this.pI[t.id], - delete this.pI[t.id], - e && t.error ? e(deserialize(t.error)) : e && e(null, deserialize(t.data))) : void 0 !== t.id && this.parent[t.type] && (n = function (t, e) { - delete i.pI[a]; - var r = [] - , e = serialize(e, r); - i.target.postMessage({ - mI: i.dI, - type: "", - id: String(a), - error: t ? serialize(t) : null, - data: e - }, r), - n = void 0 - } - , - this.pI[t.id] = null, - e = this.parent[t.type](t.mI, deserialize(t.data), n)) && null === this.pI[t.id] && (this.pI[t.id] = e.cancel)) - } - , - t.prototype.remove = function () { - this.target.removeEventListener("message", this.gI, !1) - } - , - t - }(), TaskPool = function () { - function t() { - this.listener = {}, - this.SN = {} - } - return t.prototype.nS = function (r, t) { - var n = this; - return this.SN[r] = !0, - this.listener[r] || (this.listener[r] = []), - t(function (t, e) { - n.$N(r, t, e) - }) - } - , - t.prototype.cancel = function (t) { - delete this.SN[t] - } - , - t.prototype.has = function (t) { - return Boolean(this.SN[t]) - } - , - t.prototype.GN = function (t) { - return this.listener[t] && 0 < this.listener[t].length - } - , - t.prototype.SH = function (t, e) { - this.listener[t] || (this.listener[t] = []), - this.listener[t].push(e) - } - , - t.prototype.kN = function (t, e) { - this.listener[t] && -1 < (e = this.listener[t].indexOf(e)) && this.listener[t].splice(e, 1) - } - , - t.prototype.$N = function (t, e, r) { - delete this.SN[t]; - var n = this.listener[t]; - if (delete this.listener[t], - n) - for (var i = 0, a = n; i < a.length; i++) - (0, - a[i])(e, r) - } - , - t - }(), StaticSDFManagerWorker = function () { - function t(t, e) { - this.parent = t, - this.CN = e, - this.jN = [], - this.EN = 0, - this._N = {}, - this.NN = {}, - this.LN = new TaskPool, - this.zW(this.parent.GW.db), - this.parent.Uh.send("updateDataVersion", this.parent.GW.nebulaVersion) - } - return t.prototype.loadData = function (t, o, r) { - var s, u, c, n, e, f, h = this, l = staticSDFTileKeyToKey(t); - return l ? (s = this.fc(), - u = s + l + ".json", - c = s + l + (o.mH ? ".webp" : ".png"), - n = this.parent.protocol, - void 0 !== this._N[l] && void 0 !== this.NN[l] ? (r(null, [this._N[l], this.NN[l]]), - { - cancel: noop$1 - }) : (e = this.LN.has(l), - this.LN.SH(l, f = function (t, e) { - e && (e.protocol = n), - r(t, e) - } - ), - e ? { - cancel: function () { - h.NW(t) - } - } : this.LN.nS(l, function (r) { - function n(t, e) { - r(null, e) - } - var i = 0 - , a = [] - , t = h.ON(u, function (t, e) { - t ? "404" !== t ? (console.log(t), - n(0, null)) : (a[0] = e ? {} : null, - h._N[l] = a[0], - 2 == ++i && n(0, a)) : (a[0] = e, - h._N[l] = e, - 2 == ++i && n(0, a)) - }) - , e = h.IN(c, function (t, e) { - t || !e ? "404" !== t ? (console.log(t), - n(0, e)) : (a[1] = null, - h.NN[l] = a[1], - 2 == ++i && n(0, a)) : !e || e.byteLength < 128 ? (a[1] = null, - h.NN[l] = a[1], - 2 == ++i && n(0, a)) : o.imageBitmap ? ImageDataWraper.AV(e).then(function (t) { - "success" !== (t = new ImageDataWraper(c, t, { - imageBitmap: !0 - })).status ? (console.log("createObjectURL fail"), - r("createObjectURL fail", null)) : (a[1] = t, - h.NN[l] = t, - 2 == ++i && n(0, a)) - }) : "success" !== (t = new ImageDataWraper(s, e)).status ? (console.log("createObjectURL fail"), - n(0, null)) : (a[1] = t, - h.NN[l] = t, - 2 == ++i && n(0, a)) - }); - return "lesszoom10" !== l ? { - cancel: function () { - h.LN.kN(l, f), - h.LN.GN(l) || (t.abort(), - e.abort(), - h.LN.cancel(l)), - f("cancel", null) - } - } : { - cancel: function () { - h.LN.kN(l, f), - f("cancel", null) - } - } - }))) : (console.log("!key"), - r(null, [void 0, null]), - { - cancel: noop$1 - }) - } - , - t.prototype.NW = function (t) { - var e = this.NN[t]; - e && e.destroy(), - delete this.NN[t], - delete this._N[t] - } - , - t.prototype.zW = function (t) { - this._N = {}, - this.NN = {}, - this.jN = ["://glyph.amap.com/sdf" + t + "/", "://glyph01.amap.com/sdf" + t + "/", "://glyph02.amap.com/sdf" + t + "/", "://glyph03.amap.com/sdf" + t + "/", "://glyph04.amap.com/sdf" + t + "/"] - } - , - t.prototype.ON = function (t, e) { - return this.CN.send(t, { - Me: "json", - method: "get", - qw: function (t) { - e(null, t || null) - }, - Aw: function (t) { - e(t && t.message || "unknown error") - } - }) - } - , - t.prototype.IN = function (t, e) { - return this.CN.send(t, { - Me: "arraybuffer", - method: "get", - qw: function (t) { - t ? e(null, t) : e("empty data", null) - }, - Aw: function (t) { - e(t && t.message || "unknown error") - } - }) - } - , - t.prototype.fc = function () { - this.EN = this.EN % this.jN.length; - var t = this.parent.protocol + this.jN[this.EN]; - return this.EN++, - t - } - , - t - }(), emptyObj = {}, SDFStaticTextureCache = function () { - function t(t, e, r) { - this.parent = t, - this.DN = e, - this.UN = r, - this.RN = {}, - this.XN = {} - } - return t.prototype.xH = function (t, e) { - void 0 === e && (e = !1); - var r = staticSDFTileKeyToKey(t) - , n = this.RN[r]; - if (e) { - if (!n) - return; - n.indexOf(t) < 0 && n.push(t) - } - return this.DN.getImage(r) - } - , - t.prototype.LB = function (t) { - return t = staticSDFTileKeyToKey(t), - this.XN[t] || emptyObj - } - , - t.prototype.bH = function (n, i, a, o) { - var t, s = this, u = staticSDFTileKeyToKey(n); - i.type === ImageDataWraperType.bitmap ? i.IV ? (t = this.DN.getImage(i.hash), - o(null, t)) : this.DN.addImageBitmap(i.data, { - url: u, - cb: function (t, e) { - var r; - t || (i.destroy(), - s.RN[u] || (s.RN[u] = [], - s.XN[u] = a), - (r = s.RN[u]).indexOf(n) < 0 && r.push(n)), - o(t, e) - } - }) : this.DN.addImage(u, { - url: i.data, - cb: function (t, e) { - var r; - t || (s.RN[u] || (s.RN[u] = [], - s.XN[u] = a), - (r = s.RN[u]).indexOf(n) < 0 && r.push(n)), - o(t, e) - } - }) - } - , - t.prototype.kH = function (t) { - var e = staticSDFTileKeyToKey(t) - , r = this.RN[e]; - r ? (0 <= (t = r.indexOf(t)) && r.splice(t, 1), - 0 === r.length && (this.DN.RH(e), - this.UN.deleteTileStaticSDF(e), - delete this.RN[e], - delete this.XN[e])) : delete this.XN[e] - } - , - t - }(), RenderThread = function () { - function t(t) { - this.Jv = 5, - this.Qv = 0, - this.Yv = !1, - this.render = t.render, - this.check = t.check - } - return t.prototype.Yf = function () { - this.Yv || (0 < this.Jv && this.Kv ? (this.render(), - this.Qv = Util.requestAnimFrame(this.Yf.bind(this))) : (this.Jv <= 0 || !this.Kv) && (this.Kv = !1, - Util.cancelAnimFrame(this.Qv), - this.Qv = 0, - this.Qv || this.check() && (this.render(), - this.setNeedUpdate(!0))), - this.Jv--) - } - , - t.prototype.setNeedUpdate = function (t) { - this.Jv = 5, - t && !this.Kv && (this.Kv = t, - Util.cancelAnimFrame(this.Qv), - this.Qv = 0, - this.to()), - this.Kv = t - } - , - t.prototype.to = function () { - this.Qv || (this.Qv = Util.requestAnimFrame(this.Yf.bind(this))) - } - , - t.prototype.destroy = function () { - this.Yv = !0 - } - , - t - }(); - Uint8Array.prototype.fill || (Uint8Array.prototype.fill = Array.prototype.fill), - Float32Array.prototype.slice || Object.defineProperty(Float32Array.prototype, "slice", { - value: function (t, e) { - return new Float32Array(Array.prototype.slice.call(this, t, e)) - } - }), - Float64Array.prototype.slice || Object.defineProperty(Float64Array.prototype, "slice", { - value: function (t, e) { - return new Float64Array(Array.prototype.slice.call(this, t, e)) - } - }), - exports.Ge = AMapStyleSource, - exports.Bh = Actor, - exports.OZ = AdaptorMap, - exports.bb = BezierUtil, - exports.tc = CONSTS, - exports._n = Color, - exports.ZQ = ComputeTileRange, - exports.hL = Coordinate, - exports.PY = DangerousFontSize, - exports.La = DynamicVertice, - exports.Event = Event, - exports.iz = FillExtrusionBucket, - exports.GeometryUtil = GeometryUtil, - exports.rW = GeometryUtilCls, - exports.x_ = HALF_WORLD_SIZE, - exports.WQ = ImageDataWraper, - exports.pZ = InnerClass, - exports.eG = Labels, - exports.LabelsRenderUtil = LabelsRenderUtil, - exports.bG = LangManager, - exports.LngLat = LngLat$2, - exports.ZY = LngLat2TileInnerCoord, - exports.za = LocalTileZoom, - exports.Ra = LocalZoom, - exports.MapboxLabelFormat = MapboxLabelFormat, - exports.fQ = MapboxSegements, - exports.bX = MapboxVTSourceWorker, - exports.Module = Module, - exports.NebulaLabelFormat = NebulaLabelFormat, - exports._w = NebulaSegements, - exports.pa = NebulaTile, - exports.wa = NebulaTileCoord, - exports.pw = Pbf, - exports.Pixel = Pixel, - exports.PlaneGeometryUtil = PlaneGeometryUtil, - exports.kS = PlaneGeometryUtilInstance, - exports.K_ = PolygonBucket, - exports.oE = PolygonSegements, - exports.J_ = PolylineBucket, - exports.ProjectionManager = ProjectionManager, - exports.tS = Queue, - exports.Vs = RasterTile, - exports.wY = RenderThread, - exports.vG = SDFManagerBase, - exports.jb = SDFManagerWorker, - exports.LH = SDFStaticTextureCache, - exports.e0 = SimpleCircleBucket, - exports.Size = Size, - exports.yp = SmartArrayBuffer, - exports.xW = StaticSDFManagerWorker, - exports.StyleParser = StyleParser, - exports.Support = Browser, - exports.vH = Task, - exports.MY = TaskManager, - exports.IH = TaskPool, - exports.Gh = Tile, - exports.ca = TileCoord, - exports.V = transform, - exports.Util = Util, - exports.Sw = VectorTile, - exports.tW = VectorTile$1, - exports.LW = VectorTileSegements, - exports.Yw = XHR, - exports.dZ = __decorate, - exports.Ei = __extends, - exports.Pt = __spreadArrays, - exports.assign = assign, - exports.jw = calcTileMectorBounds, - exports.clone = clone, - exports.Ex = clone$1, - exports.yn = cloneDeep, - exports.create = create$3, - exports.Il = create, - exports.Dl = create$1, - exports.Zl = create$2, - exports.CZ = decodeStyle, - exports.KQ = decodeTiles, - exports.equals = equals$1, - exports.Ru = equals, - exports.every = every, - exports.extend = extend, - exports.filter = filter, - exports.find = find, - exports.findIndex = findIndex, - exports.forEach = forEach, - exports.vx = forIn, - exports.Bu = fromValues$2, - exports.xd = fromValues$3, - exports.$Q = getMVTTileBbox, - exports.vZ = getOutseaData, - exports.Ol = getTranslation, - exports.Ul = invert, - exports.VB = isBezierCurve, - exports.xs = isBounds, - exports.sB = isCircleMarker, - exports.isEmpty = isEmpty, - exports.isEqual = isEqual, - exports.isFunction = isFunction, - exports.qG = isInnerLabelsLayer, - exports.px = isLayer, - exports.Bs = isLngLat, - exports.iL = isLnglatLikeArray, - exports.eL = isLnglatLikeArrayArray, - exports.yL = isLnglatLikeArrayArrayArray, - exports.vB = isNumber, - exports.ys = isNumberArrayArray, - exports.Ox = isNumberArrayArrayArray, - exports.tL = isNumberArrayArrayArrayArray, - exports.er = isOverlay, - exports.RF = isOverlayGroup, - exports.oy = isPixel, - exports.GB = isPolyline, - exports.ay = isSize, - exports.FF = isVectorLayer, - exports.jsonLngLatData = jsonLngLatData, - exports.keys = keys, - exports.labelsUtil = labelsUtil, - exports.lcs = lcs, - exports.lookAt = lookAt, - exports.map = map, - exports.multiply = multiply, - exports.ou = ortho, - exports.parseLngLatData = parseLngLatData, - exports.perspective = perspective, - exports.rbush = rbush_1, - exports.scale = scale$1, - exports.set = set$1, - exports.Pl = set, - exports.some = some, - exports.XY = tileInnerCoord2LngLat, - exports.Gu = transformMat4, - exports.vector = vector, - exports.zoomRange = zoomRange - }), - define(["./shared"], function (polyfill) { - var _a, geoUtil = new polyfill.rW({}), LabelFormatMap = (_a = {}, - _a[polyfill.NebulaLabelFormat.id] = polyfill.NebulaLabelFormat, - _a.nebula = polyfill.NebulaLabelFormat, - _a[polyfill.MapboxLabelFormat.id] = polyfill.MapboxLabelFormat, - _a), NebulaSourceWorker = function (g) { - function t(A) { - var i = g.call(this) || this; - return i.parent = A, - i.id = "nebula", - i.sQ = {}, - i.aW = null, - i.WW = 20, - i.xQ = [], - i.bQ = [], - i.bind(), - i - } - return polyfill.Ei(t, g), - t.prototype.bind = function () { - var c = this; - this.on("styleReady", function () { - var A = c.xQ.length; - if (0 < A) { - for (var i = 0; i < A; i++) { - var g = (l = c.xQ[i]).data - , I = l.projectionId - , t = l.zoom - , B = l.viewMode - , Q = l.showBuildingBlock - , C = l.mS - , e = l.optimalZoom - , o = l.ZL - , E = l.cb - , h = l.url; - c.pQ(g, I, t, B, Q, C, e, o, E, h) - } - c.xQ = [] - } - var a = c.bQ.length; - if (0 < a) { - for (i = 0; i < a; i++) { - var l, n = (l = c.bQ[i]).CD, s = l.cQ, g = l.data, I = l.projectionId, E = l.cb, r = l.UQ, w = l.mH, o = l.ZL; - c.mQ(n, s, g, I, E, r, w, o) - } - c.bQ = [] - } - }) - } - , - t.prototype.bw = function (g, A, I, t, B, i, Q, C, e, o, E, h, a) { - var l = this; - if (void 0 === a && (a = !0), - polyfill.Support.wasm && a) { - if (!this.parent.PW) - return void h("not init"); - a = A.join(";"), - a = this.parent.PW.transform('["' + a + '","' + E + '"]'), - g = g + ("?key=" + this.parent.key) + "&msg=" + a - } else - g = g + ("?key=" + this.parent.key) + "&flds=" + E + "&t=" + A.join(";"); - return g += "&p=3", - makeFetchRequest(this.parent.Uh, g, function (A, i) { - A ? h(A) : setTimeout(function () { - l.pQ(i, B, I, C, e, Q, t, o, h, g) - }, 10) - }) - } - , - t.prototype.pQ = function (A, g, I, t, B, Q, C, i, e, o) { - var E = this; - if (this.parent.vn && this.parent.vn._Q()) { - polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-begin"] && (polyfill.Support.amapRunTime["data-decode-begin"] = (new Date).getTime()); - for (var h = polyfill.KQ(new Uint8Array(A)), a = [], l = (polyfill.forEach(h.tiles, function (A) { - var i = new polyfill.Gh(new polyfill.ca(A.z, A.x, A.y)) - , A = (i.data = E.kw(A, g, i), - E.xw(i, I), - E.zw(i, I, t, B), - E.nz(i, Q, C), - polyfill.Util.pW(A.t)); - a.push({ - zo: i.zo, - ba: i.data, - tag: A, - version: h.version || "" - }) - }), - []), n = this.parent.vn, s = 0, r = a; s < r.length; s++) { - var w = r[s]; - if (w && w.ba) { - if (w.ba.road) { - for (var c = [], y = 0, x = w.ba.road; y < x.length; y++) { - var p = x[y] - , d = (d = n.dn(p.Fp, p.Ep, i)) ? d[1] : null; - p.id && d && d.fontSize && d.faceColor && (delete p.gw, - c.push({ - path: p.path, - id: p.id - })) - } - w.ba.road = c - } - delete w.ba.poilabel, - delete w.ba.region, - delete w.ba.building, - delete w.ba.Mw - } - l.push(w) - } - polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-decode-end"] && (polyfill.Support.amapRunTime["data-decode-end"] = (new Date).getTime()), - e(null, { - nebulaDatas: l, - amapRunTime: polyfill.Support.amapRunTime - }) - } else - this.xQ.push({ - data: A, - projectionId: g, - zoom: I, - viewMode: t, - showBuildingBlock: B, - mS: Q, - optimalZoom: C, - ZL: i, - cb: e, - url: o - }) - } - , - t.prototype.mQ = function (A, i, g, I, t, B, Q, C) { - this.parent.vn ? this.HQ(g, i, I, A, B, Q, C, t) : this.bQ.push({ - CD: A, - cQ: i, - data: g, - projectionId: I, - cb: t, - UQ: B, - mH: Q, - ZL: C - }) - } - , - t.prototype.bW = function (A, g, I, t, B, Q) { - var C = this; - if (polyfill.Support.wasm) { - if (!this.parent.PW) - return void Q("not init"); - var i = g.join(";") - , i = this.parent.PW.transform('["' + i + '","poi,roadname"]'); - A = A + ("?key=" + this.parent.key) + "&msg=" + i - } else - A = A + ("?key=" + this.parent.key) + "&flds=poi,roadname&t=" + g.join(";"); - A += "&p=3", - this.WW = t; - var e = -1 !== A.indexOf("/oversea") - , o = new polyfill.vH; - return o._H(makeFetchRequest(this.parent.Uh, A, function (A, i) { - A ? Q(A) : setTimeout(function () { - C.mQ(g, e, i, I, Q, o, B, t) - }, 10) - })), - { - cancel: o.cancel - } - } - , - t.prototype.HQ = function (A, i, g, I, t, B, Q, C) { - for (var e = this, o = polyfill.KQ(new Uint8Array(A)), E = (!i && o.version && this.parent.GW.nebulaVersion !== o.version && (this.parent.GW.nebulaVersion = o.version, - this.parent.GW.db = o.db, - this.parent.IW.zW(this.parent.GW.db), - this.parent.Uh.send("updateDataVersion", this.parent.GW.nebulaVersion)), - []), h = (polyfill.forEach(o.tiles, function (A) { - var i = new polyfill.Gh(new polyfill.ca(A.z, A.x, A.y)) - , A = (i.data = e.kw(A, g, i), - polyfill.Util.pW(A.t)); - E.push({ - zo: i.zo, - ba: i.data, - tag: A - }) - }), - []), a = 0, l = E; a < l.length; a++) { - var n, s, r = l[a]; - r && r.ba && (n = r.ba.roadName, - s = r.ba.poilabel, - delete r.ba.poilabel, - delete r.ba.Mw, - h.push({ - zo: r.zo, - ba: { - roadName: n, - poilabel: s - }, - tag: r.tag, - version: o.version || "" - })) - } - if (h.length) { - for (var w = {}, c = 0, y = h; c < y.length; c++) { - var d = new polyfill.Gh((x = y[c]).zo) - , p = polyfill.wa.ga(d.zo.x, d.zo.y, d.zo.z, "EPSG:3857") - , p = (d.type = "nebula", - i && (d.cQ = !0), - polyfill.lcs.getLocalByCoord([p[0], p[1]])); - d.localCoord = p, - d.data = x.ba; - (p = this.parent.params).showLabel; - var p = p.scale - , x = x.tag; - this.sQ[d.zo.key + "," + x] = { - tile: d, - params: { - scale: p, - tag: x - } - }, - w[d.zo.key + "," + polyfill.Util.SD(x)] = !0 - } - C(null, w) - } - } - , - t.prototype.OW = function (A) { - this.parent.Zw ? this.on("once", A) : A() - } - , - t.prototype.YE = function (A, i) { - polyfill.map(polyfill.ZQ.ha(i.bounds, polyfill.ZQ.ra(i.zoom)), function (A) { - return A.join(",") - }); - var i = this.sQ - , g = polyfill.Util.getOptimalZoom(this.WW); - A(i, { - ZL: this.WW, - optimalZoom: g, - cb: function () { } - }), - this.sQ = {} - } - , - t.prototype.kw = function (A, i, g) { - var n = this - , I = {} - , s = polyfill.ProjectionManager.getProjection(i) - , i = polyfill.wa.ga(A.x, A.y, A.z, "EPSG:3857") - , r = polyfill.lcs.getLocalByCoord([i[0], i[1]]).center - , w = (g.Mw = r, - g.Ro = i, - g.zo.z); - return polyfill.forEach(A.layers, function (h) { - var A, a = [], l = t.Wa[h.type]; - polyfill.forEach(h.d[l], function (o) { - o.items.sort(n.A0); - var E = n.parent.vn.mW(o.mainkey, o.subkey, w); - polyfill.forEach(o.items, function (A) { - switch (l) { - case "road": - for (var i = 0; i < A.path.length; i += 2) { - var g = A.path[i] - , I = A.path[i + 1] - , t = polyfill.XY(h, o.resolution, g, I) - , t = s.project(t[0], t[1]); - w >= polyfill.Ra && (t[0] -= r[0], - t[1] -= r[1]), - A.path[i] = t[0], - A.path[i + 1] = t[1] - } - break; - case "region": - for (var B = A.path, Q = 0; Q < B.length; Q += 1) { - for (var C = B[Q].path, e = [], i = 0; i < C.length; i += 2) - g = C[i], - I = C[i + 1], - t = polyfill.XY(h, o.resolution, g, I), - e[i] = t[0], - e[i + 1] = t[1], - t = s.project(t[0], t[1]), - w >= polyfill.Ra && (t[0] -= r[0], - t[1] -= r[1]), - C[i] = t[0], - C[i + 1] = t[1]; - B[Q] = C - } - break; - case "building": - for (B = A.path, - A.oW = [], - Q = 0; Q < B.length; Q += 1) { - for (C = B[Q].path, - e = [], - i = 0; i < C.length; i += 2) - g = C[i], - I = C[i + 1], - t = polyfill.XY(h, o.resolution, g, I), - e[i] = t[0], - e[i + 1] = t[1], - t = s.project(t[0], t[1]), - w >= polyfill.Ra && (t[0] -= r[0], - t[1] -= r[1]), - C[i] = t[0], - C[i + 1] = t[1]; - B[Q] = C, - A.oW[Q] = e - } - break; - case "poilabel": - case "roadName": - if (A.pos && (e = polyfill.XY(h, o.resolution, A.pos[0], A.pos[1]), - A.pos = s.project(e[0], e[1])), - A.path) - if (A.shield) - e = polyfill.XY(h, o.resolution, A.path[0], A.path[1]), - t = s.project(e[0], e[1]), - w >= polyfill.Ra && (t[0] -= r[0], - t[1] -= r[1]), - A.path[0] = t[0], - A.path[1] = t[1]; - else - for (i = 0; i < A.path.length; i += 2) - g = A.path[i], - I = A.path[i + 1], - t = polyfill.XY(h, o.resolution, g, I), - t = s.project(t[0], t[1]), - w >= polyfill.Ra && (t[0] -= r[0], - t[1] -= r[1]), - A.path[i] = t[0], - A.path[i + 1] = t[1] - } - A.du = o.resolution, - A.Fp = o.mainkey, - A.Ep = o.subkey, - A.zIndex = n.parent.vn.Lw(o.mainkey, o.subkey), - A.lineCap = E[0], - A.RQ = E[1], - A.gw = { - z: h.z, - y: h.y, - x: h.x - }, - a.push(A) - }) - }), - "poilabel" !== l ? n.Tw(a) : n.Na(a), - "poilabel" === l ? (A = h.z + "-" + h.x + "-" + h.y, - I[l] ? I[l][A] ? I[l][A].push.apply(I[l][A], a) : I[l][A] = a : (I[l] = {}, - I[l][A] = a)) : I[l] ? I[l].push.apply(I[l], a) : I[l] = a - }), - I.Mw = r, - I - } - , - t.prototype.A0 = function (A, i) { - return A.minzoom - i.minzoom || A.maxzoom - i.maxzoom - } - , - t.prototype.Tw = function (A) { - return A.sort(function (A, i) { - return A.zIndex - i.zIndex - }), - A - } - , - t.prototype.Na = function (A) { - return A.sort(function (A, i) { - return A.rank - i.rank - }), - A - } - , - t.prototype.xw = function (A, i) { - var g = A.data - , I = new polyfill._w; - if (g.Uc = I, - !g.$c) { - g.$c = new polyfill.J_, - g.road = g.road || []; - var t = A.Mw.slice(0); - if (A.zo.z <= polyfill.za && (t[0] = 0, - t[1] = 0), - g.road.push({ - name: "", - rank: 1, - maxzoom: polyfill.zoomRange[1], - minzoom: polyfill.zoomRange[0], - path: [A.Ro[0] - t[0], A.Ro[1] - t[1], A.Ro[2] - t[0], A.Ro[1] - t[1], A.Ro[2] - t[0], A.Ro[3] - t[1], A.Ro[0] - t[0], A.Ro[3] - t[1], A.Ro[0] - t[0], A.Ro[1] - t[1]], - Fp: -2, - Ep: -2, - shield: "", - shieldType: 0, - du: 13, - lineCap: "butt", - RQ: "butt" - }), - g.road) - for (var B = 0, Q = g.road; B < Q.length; B++) { - var C = Q[B] - , e = C.path - , o = (e = g.$c.hb(e, { - X_: "butt" === C.lineCap ? 0 : .9, - lineCap: C.lineCap, - lineJoin: "auto" - })).Iw - , e = e.distance; - 0 < o && (I.add(C.Fp, C.Ep, o, C.minzoom, C.maxzoom), - C.distance = e) - } - } - } - , - t.prototype.zw = function (A, J, U, i) { - var g = A.data - , I = new polyfill._w; - if (g.Oc = I, - g.Fc = new polyfill._w, - !g.Dc) { - g.Dc = new polyfill.K_, - g.region = g.region || []; - var t = A.Mw.slice(0); - if (A.zo.z <= polyfill.za && (t[0] = 0, - t[1] = 0), - g.region.unshift({ - maxzoom: polyfill.zoomRange[1], - minzoom: polyfill.zoomRange[0], - path: [[A.Ro[0] - t[0], A.Ro[1] - t[1], A.Ro[2] - t[0], A.Ro[1] - t[1], A.Ro[2] - t[0], A.Ro[3] - t[1], A.Ro[0] - t[0], A.Ro[3] - t[1], A.Ro[0] - t[0], A.Ro[1] - t[1]]], - Fp: 30001, - Ep: 1 - }), - g.region) - for (var B = 0, Q = g.region; B < Q.length; B++) - for (var C = Q[B], e = 0, o = C.path; e < o.length; e++) - (x = o[e]).push(x[0], x[1]), - 0 < (v = g.Dc.Nx(x)) && I.add(C.Fp, C.Ep, v, C.minzoom, C.maxzoom); - if (!i && g.building) { - if (g.FD) - return; - g.FD = new polyfill.K_, - g.BD = new polyfill._w; - for (var E = g.BD, h = 0, a = g.building; h < a.length; h++) { - for (var l = a[h], s = (n = polyfill.jw(l.gw.z, l.gw.x, l.gw.y))[0], r = n[1], w = n[2], n = n[3], L = (A.Mw && (s -= A.Mw[0], - w -= A.Mw[0], - r -= A.Mw[1], - n -= A.Mw[1]), - Math.floor(s)), H = Math.floor(w), K = Math.floor(r), m = Math.floor(n), c = 0, y = l.path; c < y.length; c++) { - var x = y[c]; - 0 < (v = g.FD.Nx(x)) && E.add(l.Fp, l.Ep, v, l.minzoom, l.maxzoom, l.ew || "indoor_out_building") - } - for (var d = 0, p = l.path; d < p.length; d++) { - for (var D = p[d], x = (D.push(D[0], D[1]), - []), f = 0, R = D.length; f < R - 2; f += 2) - x.push(polyfill.xd(D[f], D[f + 1])), - x.push(polyfill.xd(D[f + 2], D[f + 3])); - for (var u = [], f = 0, R = x.length; f < R; f += 2) { - var v, G = x[f][0], S = x[f][1], q = x[f + 1][0], W = x[f + 1][1], F = Math.floor(G), b = Math.floor(S); - (G !== q || F !== L && F !== H) && (S !== W || b !== K && b !== m) ? u.push(x[f], x[f + 1]) : (0 < (v = g.Dc.Ew(u)) && g.Fc.add(l.Fp, l.Ep, v, l.minzoom, l.maxzoom, l.ew || "indoor_out_building"), - u = []) - } - 0 < u.length && 0 < (v = g.Dc.Ew(u)) && g.Fc.add(l.Fp, l.Ep, v, l.minzoom, l.maxzoom, l.ew) - } - } - } - if (g.building) { - for (var k = [], M = 0, Y = g.building; M < Y.length; M++) - if ((l = Y[M]).ew) - if (-1 < l.ew.indexOf("|")) - for (var N = l.ew.split("|"), f = 0; f < N.length; f++) - k.push(N[f]); - else - k.push(l.ew); - g.indoorInfo || (g.indoorInfo = []), - g.indoorInfo = k - } - } - } - , - t.prototype.nz = function (A, i, g) { - void 0 === i && (i = {}); - var I = A.data; - if (I.C_ = new polyfill._w, - !I.A_) { - I.A_ = new polyfill.iz; - var t = i.hideWithoutStyle - , B = i.areas; - if (I.building) - for (var Q = 0, C = I.building; Q < C.length; Q++) - for (var e = C[Q], o = 0; o < e.path.length; o++) { - for (var E = e.path[o], h = e.oW[o], a = (E.push(E[0], E[1]), - h.push(h[0], h[1]), - []), l = 0; l < h.length; l += 2) - a.push([h[l], h[l + 1]]); - if (B) { - for (var n, s = !1, r = !1, w = {}, c = 0; c < B.length; c++) { - var y = B[c] - , x = y.path; - geoUtil.isRingInRing(a, x) && (s = !0, - !y.visible && void 0 !== y.visible || (r = !0, - w = { - roofColor: polyfill.Util.color2RgbaArray(y.color1), - wallColor: polyfill.Util.color2RgbaArray(y.color2) - })) - } - !s && t || s && !r || 0 < (n = I.A_.tz(E, e.height)) && I.C_.add(e.Fp, e.Ep, n, e.minzoom, e.maxzoom, e.ew, w.roofColor, w.wallColor) - } else - 0 < (n = I.A_.tz(E, e.height)) && I.C_.add(e.Fp, e.Ep, n, e.minzoom, e.maxzoom, e.ew) - } - } - } - , - t.prototype.hQ = function (A, i) { - if (A) - for (var g = this.SQ(A) || [], I = 0, t = g = new LabelFormatMap[A.type]({ - vn: this.parent.vn - }).DQ(g, { - zoom: i - }); I < t.length; I++) { - var B = t[I] - , Q = B.CO; - B.EG || (B.EG = {}); - for (var C = 0, e = Q; C < e.length; C++) { - var o = e[C] - , E = this.parent.R_.mz(o); - B.EG[o] = E - } - } - return g - } - , - t.prototype.SQ = function (A) { - return A.data && A.data.roadName || A.Dh - } - , - t.Pw = [1, 0, 1, 0], - t.Wa = { - 0: "poilabel", - 1: "road", - 2: "region", - 3: "building", - 4: "roadName" - }, - t - }(polyfill.Event), hasWarning = !1; - function makeFetchRequest(A, i, g) { - var I, t, B; - return !polyfill.Support.safari && !polyfill.Support.AQ && !polyfill.Support.gQ && self.fetch && self.Request && self.AbortController && self.Request.prototype.hasOwnProperty("signal") ? (t = (I = new AbortController).signal, - t = new self.Request(i, { - method: "GET", - referrer: "null" === self.location.origin ? void 0 : self.location.origin, - signal: t - }), - polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-request"] && (polyfill.Support.amapRunTime["data-request"] = (new Date).getTime()), - fetch(t).then(function (A) { - return polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["data-loaded"] && (polyfill.Support.amapRunTime["data-loaded"] = (new Date).getTime()), - "application/x-protobuf" === A.headers.get("content-type") ? A.arrayBuffer() : A.json() - }).then(function (A) { - A.info ? hasWarning || (hasWarning = !0, - console.log(i), - console.log(" KEY异常,错误信息:" + A.info)) : g(null, A) - }).catch(function (A) { - "AbortError" !== A.name && g(A.message || "unknown error") - }), - { - cancel: function () { - I.abort() - } - }) : B = A.send("request", i, function (A, i) { - A ? ("" === A && B && B.cancel && B.cancel(), - B = void 0, - g(A)) : (B = void 0, - g(null, i)) - }) - } - var DistrictSourceWorker = function () { - function DistrictSourceWorker(A) { - this.parent = A, - this.fW = {} - } - return DistrictSourceWorker.prototype.bw = function (A, i, g, I, t) { - var B = this - , Q = new XMLHttpRequest; - return Q.onreadystatechange = function () { - var A; - 4 !== Q.readyState || 200 !== Q.status && 204 !== Q.status || (A = new polyfill.tW(new polyfill.pw(new Uint8Array(Q.response))), - A = B.Ow(A, { - x: i.x, - y: i.y, - z: i.z, - projectionId: g, - tileSize: I - }), - t(null, polyfill.Ln({ - zo: i - }, A))) - } - , - Q.open("GET", A, !0), - Q.responseType = "arraybuffer", - Q.send(), - { - cancel: function () { - Q.abort() - } - } - } - , - DistrictSourceWorker.prototype.Ow = function (o, A) { - var g = A.x - , I = A.y - , t = A.z - , B = A.tileSize - , Q = A.projectionId - , A = (o.z = t, - o.x = g, - o.y = I, - polyfill.ProjectionManager.getProjection(Q).getResolution(t)) - , C = (o.Ro = polyfill.$Q(g, I, t, A, B), - o.zS = polyfill.lcs.getLocalByCoord([o.Ro[0], o.Ro[1]]), - polyfill.ProjectionManager.getProjection(Q).getResolution(t)); - return polyfill.vx(o.layers, function (e) { - var A = e.Cw - , i = (e.Ah = [], - e.scale = C * B / e.extent, - polyfill.V[Q].Xs(B * g, B * I, t)); - e.ox = i[0], - e.oy = i[1], - polyfill.forEach(A, function (A, i) { - if ((A = e.Gw(i)).Dw(), - e.Ah.push(A), - A.lines && 0 < A.lines.length) { - A.Rw = []; - for (var g = 0, I = A.lines.length; g < I; g++) { - for (var t = [], B = 0, Q = A.lines[g].length; B < Q; B++) { - var C = [e.ox + e.scale * A.lines[g][B][0] - o.zS.center[0], e.oy - e.scale * A.lines[g][B][1] - o.zS.center[1]]; - t.push(C) - } - A.Rw.push(t) - } - } - }) - }), - this.uW(o), - this.xw(o), - this.zw(o), - o - } - , - DistrictSourceWorker.prototype.uW = function (A) { - var i, g = [], I = []; - for (i in A.layers) - if (A.layers.hasOwnProperty(i)) - for (var t = A.layers[i], B = 0; B < t.Ah.length; B += 1) { - var Q = t.Ah[B]; - if (3 == +Q.type && Q.Rw) { - for (var C = Q.Rw, e = [], o = 0; o < C.length; o++) - polyfill.kS.isClockwise(C[o]) ? e.push([o]) : e.length && e[e.length - 1].push(o); - for (var E = 0; E < e.length; E++) { - var h = e[E]; - if (1 < h.length) { - for (var a = [], l = [], n = 0; n < h.length; n++) { - var s = C[h[n]]; - 0 < n && a.push(l.length / 2); - for (var r = 0; r < s.length; r++) { - var w = s[r]; - l.push(w[0], w[1]) - } - } - g.push({ - properties: Q.properties, - path: l, - LQ: a - }) - } else { - for (l = [], - s = C[h[0]], - r = 0; r < s.length; r++) { - var c = s[r]; - l.push(c[0], c[1]) - } - g.push({ - properties: Q.properties, - path: l - }) - } - } - } else if (3 !== Q.type && Q.Rw) - for (var y = 0; y < Q.Rw.length; y++) - I.push({ - properties: Q.properties, - path: Q.Rw[y] - }); - this.cW(Q) - } - A.polygons = g, - A.Dh = I, - delete A.layers - } - , - DistrictSourceWorker.prototype.xw = function (A) { - if (!A || !A.$c) { - var i = new polyfill.LW; - if (!A.$c && (A.Uc = i, - A.$c = new polyfill.J_, - A.Dh)) - for (var g = 0, I = A.Dh; g < I.length; g++) { - var t = I[g] - , B = JSON.stringify(t.properties) - , C = (Q = A.$c.g0(t.path, { - X_: 0, - lineJoin: "round", - lineCap: "butt" - })).Iw - , Q = Q.distance; - 0 < C && (i.add(B, 0, C, 0, 22), - t.distance = Q) - } - } - } - , - DistrictSourceWorker.prototype.zw = function (A) { - if (!A || !A.Dc) { - var i = new polyfill.LW; - A.Oc = i, - A.Dc = new polyfill.K_; - for (var g = 0, I = A.polygons; g < I.length; g++) { - var t = I[g] - , B = JSON.stringify(t.properties); - 0 < (t = A.Dc.Nx(t.path, t.LQ)) && i.add(B, 0, t, 0, 22) - } - } - } - , - DistrictSourceWorker.prototype.dW = function (A) { - switch (A) { - case 0: - case 1: - return "Nation_Border_China"; - case 2: - return "Coastline_China"; - case 3: - case 4: - return "Province_Border_China"; - case 5: - return "City_Border_China"; - case 6: - return "County_Border_China"; - case 7: - case 8: - return "Nation_Border_Foreign"; - case 9: - return "Coastline_Foreign"; - case 10: - case 11: - return "Nation_Border_Foreign"; - case 12: - return "Province_Border_Foreign"; - default: - return "" - } - } - , - DistrictSourceWorker.prototype.sW = function (code) { - return this.fW[code] || (this.fW[code] = eval("'" + code.replace(/\//g, "\\u") + "'")), - this.fW[code] - } - , - DistrictSourceWorker.prototype.cW = function (A) { - A.properties.NAME_CHN && (A.properties.NAME_CHN = this.sW(A.properties.NAME_CHN.trim())), - A.properties.NAME_ENG && (A.properties.NAME_ENG = A.properties.NAME_ENG.trim()), - A.properties.level && (A.properties.level = A.properties.level.trim()), - A.properties.citycode && A.properties.citycode.length && (A.properties.citycode = A.properties.citycode.trim()), - A.properties.type_ = +A.properties.type, - A.properties.feature_type_ = +A.type, - A.properties.type = this.dW(+A.properties.type) - } - , - DistrictSourceWorker - }(), mbStyle = { - Hr: void 0, - _r: {}, - kr: { - "pedestrian-polygon": { - width: 128, - height: 128, - x: 0, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "turning-circle-outline": { - width: 92, - height: 92, - x: 128, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "turning-circle": { - width: 84, - height: 84, - x: 0, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-truck-2": { - width: 40, - height: 80, - x: 84, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-truck-3": { - width: 52, - height: 80, - x: 124, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-business-2": { - width: 40, - height: 76, - x: 176, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-business-3": { - width: 52, - height: 76, - x: 216, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-bypass-2": { - width: 40, - height: 76, - x: 268, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-bypass-3": { - width: 52, - height: 76, - x: 308, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-truck-2": { - width: 40, - height: 76, - x: 360, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "us-highway-truck-3": { - width: 52, - height: 76, - x: 400, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "ae-f-route-3": { - width: 48, - height: 54, - x: 452, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "ae-s-route-4": { - width: 76, - height: 52, - x: 220, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "pe-national-2": { - width: 36, - height: 52, - x: 296, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "pe-national-3": { - width: 44, - height: 52, - x: 332, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "ae-national-3": { - width: 52, - height: 50, - x: 376, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "ae-national-4": { - width: 64, - height: 50, - x: 428, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "ae-d-route-3": { - width: 48, - height: 48, - x: 0, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "ae-d-route-4": { - width: 60, - height: 48, - x: 48, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "tw-provincial-2": { - width: 44, - height: 48, - x: 108, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "tw-provincial-3": { - width: 56, - height: 48, - x: 152, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "tw-provincial-expy-2": { - width: 44, - height: 48, - x: 208, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "tw-provincial-expy-3": { - width: 56, - height: 48, - x: 252, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "za-provincial-2": { - width: 48, - height: 48, - x: 308, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "cn-nths-expy-2": { - width: 40, - height: 46, - x: 356, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "cn-nths-expy-3": { - width: 52, - height: 46, - x: 396, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "cn-nths-expy-4": { - width: 64, - height: 46, - x: 448, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "cn-nths-expy-5": { - width: 76, - height: 46, - x: 0, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "cn-provincial-expy-2": { - width: 40, - height: 46, - x: 76, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "cn-provincial-expy-3": { - width: 52, - height: 46, - x: 116, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "cn-provincial-expy-4": { - width: 64, - height: 46, - x: 168, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "cn-provincial-expy-5": { - width: 76, - height: 46, - x: 232, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "br-federal-3": { - width: 52, - height: 44, - x: 308, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "hk-strategic-route-2": { - width: 36, - height: 44, - x: 360, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "in-national-2": { - width: 32, - height: 44, - x: 396, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "in-national-3": { - width: 40, - height: 44, - x: 428, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "in-national-4": { - width: 48, - height: 44, - x: 0, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "in-state-2": { - width: 32, - height: 44, - x: 48, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "in-state-3": { - width: 40, - height: 44, - x: 80, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "kr-natl-expy-2": { - width: 40, - height: 44, - x: 120, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "kr-natl-expy-3": { - width: 52, - height: 44, - x: 160, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-federal-2": { - width: 36, - height: 44, - x: 212, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-federal-3": { - width: 46, - height: 44, - x: 248, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-federal-4": { - width: 56, - height: 44, - x: 294, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-state-2": { - width: 36, - height: 44, - x: 350, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-state-3": { - width: 46, - height: 44, - x: 386, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "mx-state-4": { - width: 56, - height: 44, - x: 432, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "pe-regional-3": { - width: 46, - height: 44, - x: 0, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "pe-regional-4": { - width: 56, - height: 44, - x: 46, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "tw-national-2": { - width: 42, - height: 44, - x: 102, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-2": { - width: 40, - height: 44, - x: 144, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-3": { - width: 52, - height: 44, - x: 184, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-4": { - width: 64, - height: 44, - x: 236, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-business-2": { - width: 40, - height: 44, - x: 300, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-business-3": { - width: 52, - height: 44, - x: 340, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-duplex-4": { - width: 64, - height: 44, - x: 392, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "us-interstate-duplex-5": { - width: 76, - height: 44, - x: 0, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "airfield-15": { - width: 42, - height: 42, - x: 456, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "airport-15": { - width: 42, - height: 42, - x: 76, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "alcohol-shop-15": { - width: 42, - height: 42, - x: 118, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "american-football-15": { - width: 42, - height: 42, - x: 160, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "amusement-park-15": { - width: 42, - height: 42, - x: 202, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "aquarium-15": { - width: 42, - height: 42, - x: 244, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "art-gallery-15": { - width: 42, - height: 42, - x: 286, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "attraction-15": { - width: 42, - height: 42, - x: 328, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "au-tourist-2": { - width: 40, - height: 42, - x: 370, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "au-tourist-3": { - width: 56, - height: 42, - x: 410, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "bakery-15": { - width: 42, - height: 42, - x: 466, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "bank-15": { - width: 42, - height: 42, - x: 468, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "bar-15": { - width: 42, - height: 42, - x: 0, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "basketball-15": { - width: 42, - height: 42, - x: 42, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "beach-15": { - width: 42, - height: 42, - x: 84, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "beer-15": { - width: 42, - height: 42, - x: 126, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "bicycle-15": { - width: 42, - height: 42, - x: 168, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "bowling-alley-15": { - width: 42, - height: 42, - x: 210, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "bridge-15": { - width: 42, - height: 42, - x: 252, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "cafe-15": { - width: 42, - height: 42, - x: 294, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "campsite-15": { - width: 42, - height: 42, - x: 336, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "car-15": { - width: 42, - height: 42, - x: 378, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "car-rental-15": { - width: 42, - height: 42, - x: 420, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "car-repair-15": { - width: 42, - height: 42, - x: 462, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "casino-15": { - width: 42, - height: 42, - x: 504, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "castle-15": { - width: 42, - height: 42, - x: 546, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "cemetery-15": { - width: 42, - height: 42, - x: 588, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "charging-station-15": { - width: 42, - height: 42, - x: 630, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "cinema-15": { - width: 42, - height: 42, - x: 672, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "clothing-store-15": { - width: 42, - height: 42, - x: 714, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "college-15": { - width: 42, - height: 42, - x: 756, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "communications-tower-15": { - width: 42, - height: 42, - x: 798, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "confectionery-15": { - width: 42, - height: 42, - x: 840, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "convenience-15": { - width: 42, - height: 42, - x: 882, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "dentist-15": { - width: 42, - height: 42, - x: 924, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "doctor-15": { - width: 42, - height: 42, - x: 966, - y: 438, - pixelRatio: 2, - visible: !0 - }, - "dog-park-15": { - width: 42, - height: 42, - x: 488, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "drinking-water-15": { - width: 42, - height: 42, - x: 530, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "embassy-15": { - width: 42, - height: 42, - x: 572, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "farm-15": { - width: 42, - height: 42, - x: 614, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "fast-food-15": { - width: 42, - height: 42, - x: 656, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "fire-station-15": { - width: 42, - height: 42, - x: 698, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "fitness-centre-15": { - width: 42, - height: 42, - x: 740, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "fuel-15": { - width: 42, - height: 42, - x: 782, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "furniture-15": { - width: 42, - height: 42, - x: 824, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "garden-15": { - width: 42, - height: 42, - x: 866, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "globe-15": { - width: 42, - height: 42, - x: 908, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "golf-15": { - width: 42, - height: 42, - x: 950, - y: 306, - pixelRatio: 2, - visible: !0 - }, - "grocery-15": { - width: 42, - height: 42, - x: 498, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "harbor-15": { - width: 42, - height: 42, - x: 540, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "hardware-15": { - width: 42, - height: 42, - x: 582, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "heliport-15": { - width: 42, - height: 42, - x: 624, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "horse-riding-15": { - width: 42, - height: 42, - x: 666, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "hospital-15": { - width: 42, - height: 42, - x: 708, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "ice-cream-15": { - width: 42, - height: 42, - x: 750, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "information-15": { - width: 42, - height: 42, - x: 792, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "jewelry-store-15": { - width: 42, - height: 42, - x: 834, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "laundry-15": { - width: 42, - height: 42, - x: 876, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "library-15": { - width: 42, - height: 42, - x: 918, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "lodging-15": { - width: 42, - height: 42, - x: 960, - y: 350, - pixelRatio: 2, - visible: !0 - }, - "mobile-phone-15": { - width: 42, - height: 42, - x: 508, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "monument-15": { - width: 42, - height: 42, - x: 550, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "mountain-15": { - width: 42, - height: 42, - x: 592, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "museum-15": { - width: 42, - height: 42, - x: 634, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "music-15": { - width: 42, - height: 42, - x: 676, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "optician-15": { - width: 42, - height: 42, - x: 718, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "park-15": { - width: 42, - height: 42, - x: 760, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "parking-15": { - width: 42, - height: 42, - x: 802, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "parking-garage-15": { - width: 42, - height: 42, - x: 844, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "pharmacy-15": { - width: 42, - height: 42, - x: 886, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "picnic-site-15": { - width: 42, - height: 42, - x: 928, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "pitch-15": { - width: 42, - height: 42, - x: 970, - y: 394, - pixelRatio: 2, - visible: !0 - }, - "place-of-worship-15": { - width: 42, - height: 42, - x: 510, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "playground-15": { - width: 42, - height: 42, - x: 552, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "police-15": { - width: 42, - height: 42, - x: 594, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "post-15": { - width: 42, - height: 42, - x: 636, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "prison-15": { - width: 42, - height: 42, - x: 678, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "ranger-station-15": { - width: 42, - height: 42, - x: 720, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "religious-buddhist-15": { - width: 42, - height: 42, - x: 762, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "religious-christian-15": { - width: 42, - height: 42, - x: 804, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "religious-jewish-15": { - width: 42, - height: 42, - x: 846, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "religious-muslim-15": { - width: 42, - height: 42, - x: 888, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "restaurant-15": { - width: 42, - height: 42, - x: 930, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "restaurant-noodle-15": { - width: 42, - height: 42, - x: 972, - y: 260, - pixelRatio: 2, - visible: !0 - }, - "restaurant-pizza-15": { - width: 42, - height: 42, - x: 512, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "restaurant-seafood-15": { - width: 42, - height: 42, - x: 554, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "rocket-15": { - width: 42, - height: 42, - x: 596, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "school-15": { - width: 42, - height: 42, - x: 638, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "shoe-15": { - width: 42, - height: 42, - x: 680, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "shop-15": { - width: 42, - height: 42, - x: 722, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "skateboard-15": { - width: 42, - height: 42, - x: 764, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "slipway-15": { - width: 42, - height: 42, - x: 806, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "stadium-15": { - width: 42, - height: 42, - x: 848, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "suitcase-15": { - width: 42, - height: 42, - x: 890, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "swimming-15": { - width: 42, - height: 42, - x: 932, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "table-tennis-15": { - width: 42, - height: 42, - x: 974, - y: 212, - pixelRatio: 2, - visible: !0 - }, - "tennis-15": { - width: 42, - height: 42, - x: 500, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "theatre-15": { - width: 42, - height: 42, - x: 542, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "toilet-15": { - width: 42, - height: 42, - x: 584, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "town-hall-15": { - width: 42, - height: 42, - x: 626, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "veterinary-15": { - width: 42, - height: 42, - x: 668, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "viewpoint-15": { - width: 42, - height: 42, - x: 710, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "volcano-15": { - width: 42, - height: 42, - x: 752, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "volleyball-15": { - width: 42, - height: 42, - x: 794, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "watch-15": { - width: 42, - height: 42, - x: 836, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "waterfall-15": { - width: 42, - height: 42, - x: 878, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "watermill-15": { - width: 42, - height: 42, - x: 920, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "windmill-15": { - width: 42, - height: 42, - x: 962, - y: 128, - pixelRatio: 2, - visible: !0 - }, - "zoo-15": { - width: 42, - height: 42, - x: 492, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-highway-2": { - width: 40, - height: 40, - x: 534, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-highway-3": { - width: 52, - height: 40, - x: 574, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-route-2": { - width: 40, - height: 40, - x: 626, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-route-3": { - width: 52, - height: 40, - x: 666, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-route-4": { - width: 64, - height: 40, - x: 718, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-route-5": { - width: 76, - height: 40, - x: 782, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-national-route-6": { - width: 86, - height: 40, - x: 858, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-state-2": { - width: 36, - height: 40, - x: 944, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "au-state-3": { - width: 46, - height: 40, - x: 0, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "au-state-4": { - width: 58, - height: 40, - x: 46, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "au-state-5": { - width: 68, - height: 40, - x: 104, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "au-state-6": { - width: 78, - height: 40, - x: 172, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "br-state-2": { - width: 40, - height: 40, - x: 250, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "br-state-3": { - width: 56, - height: 40, - x: 290, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "circle-white-2": { - width: 40, - height: 40, - x: 346, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "circle-white-3": { - width: 52, - height: 40, - x: 386, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "circle-white-4": { - width: 64, - height: 40, - x: 438, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-main-2": { - width: 40, - height: 40, - x: 502, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-main-3": { - width: 52, - height: 40, - x: 542, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-main-4": { - width: 64, - height: 40, - x: 594, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-main-5": { - width: 76, - height: 40, - x: 658, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-motorway-2": { - width: 40, - height: 40, - x: 734, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "hu-motorway-3": { - width: 52, - height: 40, - x: 774, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "marker-15": { - width: 24, - height: 40, - x: 826, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "nz-state-2": { - width: 36, - height: 40, - x: 850, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "nz-state-3": { - width: 46, - height: 40, - x: 886, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "ro-communal-2": { - width: 40, - height: 40, - x: 932, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "ro-communal-3": { - width: 52, - height: 40, - x: 972, - y: 480, - pixelRatio: 2, - visible: !0 - }, - "ro-communal-4": { - width: 64, - height: 40, - x: 0, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "ro-county-3": { - width: 52, - height: 40, - x: 64, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "ro-county-4": { - width: 64, - height: 40, - x: 116, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "ro-national-2": { - width: 40, - height: 40, - x: 180, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "ro-national-3": { - width: 52, - height: 40, - x: 220, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "tw-county-township-2": { - width: 40, - height: 40, - x: 272, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "tw-county-township-3": { - width: 52, - height: 40, - x: 312, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "tw-county-township-4": { - width: 64, - height: 40, - x: 364, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "tw-county-township-5": { - width: 76, - height: 40, - x: 428, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "tw-county-township-6": { - width: 88, - height: 40, - x: 504, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-bia-2": { - width: 40, - height: 40, - x: 592, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-bia-3": { - width: 52, - height: 40, - x: 632, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-bia-4": { - width: 60, - height: 40, - x: 684, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-2": { - width: 40, - height: 40, - x: 744, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-3": { - width: 52, - height: 40, - x: 784, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-4": { - width: 64, - height: 40, - x: 836, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-alternate-2": { - width: 40, - height: 40, - x: 900, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-alternate-3": { - width: 52, - height: 40, - x: 940, - y: 520, - pixelRatio: 2, - visible: !0 - }, - "us-highway-duplex-3": { - width: 52, - height: 40, - x: 0, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "us-highway-duplex-4": { - width: 64, - height: 40, - x: 52, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "us-highway-duplex-5": { - width: 76, - height: 40, - x: 116, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "za-national-2": { - width: 40, - height: 40, - x: 192, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "za-national-3": { - width: 56, - height: 40, - x: 232, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "barcelona-metro": { - width: 38, - height: 38, - x: 288, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "boston-t": { - width: 38, - height: 38, - x: 326, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "de-s-bahn": { - width: 38, - height: 38, - x: 364, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "de-s-bahn.de-u-bahn": { - width: 70, - height: 38, - x: 402, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "delhi-metro": { - width: 38, - height: 38, - x: 472, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "kiev-metro": { - width: 38, - height: 38, - x: 510, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "kr-metro-expy-2": { - width: 40, - height: 38, - x: 548, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "kr-metro-expy-3": { - width: 52, - height: 38, - x: 588, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "kr-metro-expy-4": { - width: 64, - height: 38, - x: 640, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "madrid-metro": { - width: 38, - height: 38, - x: 704, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "new-york-subway": { - width: 38, - height: 38, - x: 742, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "oslo-metro": { - width: 38, - height: 38, - x: 780, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "paris-metro": { - width: 38, - height: 38, - x: 818, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "paris-metro.paris-rer": { - width: 74, - height: 38, - x: 856, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "paris-rer": { - width: 38, - height: 38, - x: 930, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "paris-rer.paris-transilien": { - width: 70, - height: 38, - x: 0, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "road-closure": { - width: 38, - height: 38, - x: 70, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "stockholm-metro": { - width: 38, - height: 38, - x: 108, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "taipei-metro": { - width: 38, - height: 38, - x: 146, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "vienna-u-bahn": { - width: 38, - height: 38, - x: 184, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "kr-natl-hwy-2": { - width: 44, - height: 36, - x: 222, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "airfield-11": { - width: 34, - height: 34, - x: 266, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "airport-11": { - width: 34, - height: 34, - x: 300, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "alcohol-shop-11": { - width: 34, - height: 34, - x: 334, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "american-football-11": { - width: 34, - height: 34, - x: 368, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "amusement-park-11": { - width: 34, - height: 34, - x: 402, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "aquarium-11": { - width: 34, - height: 34, - x: 436, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "art-gallery-11": { - width: 34, - height: 34, - x: 470, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "attraction-11": { - width: 34, - height: 34, - x: 504, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bakery-11": { - width: 34, - height: 34, - x: 538, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bank-11": { - width: 34, - height: 34, - x: 572, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bar-11": { - width: 34, - height: 34, - x: 606, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "basketball-11": { - width: 34, - height: 34, - x: 640, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "beach-11": { - width: 34, - height: 34, - x: 674, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "beer-11": { - width: 34, - height: 34, - x: 708, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bicycle-11": { - width: 34, - height: 34, - x: 742, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bicycle-share": { - width: 34, - height: 34, - x: 776, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bowling-alley-11": { - width: 34, - height: 34, - x: 810, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "bridge-11": { - width: 34, - height: 34, - x: 844, - y: 600, - pixelRatio: 2, - visible: !0 - }, - bus: { - width: 34, - height: 34, - x: 878, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "cafe-11": { - width: 34, - height: 34, - x: 912, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "campsite-11": { - width: 34, - height: 34, - x: 946, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "car-11": { - width: 34, - height: 34, - x: 980, - y: 600, - pixelRatio: 2, - visible: !0 - }, - "car-rental-11": { - width: 34, - height: 34, - x: 968, - y: 560, - pixelRatio: 2, - visible: !0 - }, - "car-repair-11": { - width: 34, - height: 34, - x: 980, - y: 0, - pixelRatio: 2, - visible: !0 - }, - "casino-11": { - width: 34, - height: 34, - x: 0, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "castle-11": { - width: 34, - height: 34, - x: 34, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "cemetery-11": { - width: 34, - height: 34, - x: 68, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "charging-station-11": { - width: 34, - height: 34, - x: 102, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "chongqing-rail-transit": { - width: 50, - height: 34, - x: 136, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "cinema-11": { - width: 34, - height: 34, - x: 186, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "clothing-store-11": { - width: 34, - height: 34, - x: 220, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "college-11": { - width: 34, - height: 34, - x: 254, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "communications-tower-11": { - width: 34, - height: 34, - x: 288, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "confectionery-11": { - width: 34, - height: 34, - x: 322, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "convenience-11": { - width: 34, - height: 34, - x: 356, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "de-u-bahn": { - width: 34, - height: 34, - x: 390, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "dentist-11": { - width: 34, - height: 34, - x: 424, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "doctor-11": { - width: 34, - height: 34, - x: 458, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "dog-park-11": { - width: 34, - height: 34, - x: 492, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "drinking-water-11": { - width: 34, - height: 34, - x: 526, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "embassy-11": { - width: 34, - height: 34, - x: 560, - y: 638, - pixelRatio: 2, - visible: !0 - }, - entrance: { - width: 34, - height: 34, - x: 594, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "farm-11": { - width: 34, - height: 34, - x: 628, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "fast-food-11": { - width: 34, - height: 34, - x: 662, - y: 638, - pixelRatio: 2, - visible: !0 - }, - ferry: { - width: 34, - height: 34, - x: 696, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "fire-station-11": { - width: 34, - height: 34, - x: 730, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "fitness-centre-11": { - width: 34, - height: 34, - x: 764, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "fuel-11": { - width: 34, - height: 34, - x: 798, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "furniture-11": { - width: 34, - height: 34, - x: 832, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "garden-11": { - width: 34, - height: 34, - x: 866, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "globe-11": { - width: 34, - height: 34, - x: 900, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "golf-11": { - width: 34, - height: 34, - x: 934, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "grocery-11": { - width: 34, - height: 34, - x: 968, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "harbor-11": { - width: 34, - height: 34, - x: 0, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "hardware-11": { - width: 34, - height: 34, - x: 34, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "heliport-11": { - width: 34, - height: 34, - x: 68, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "hong-kong-mtr": { - width: 38, - height: 34, - x: 102, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "horse-riding-11": { - width: 34, - height: 34, - x: 140, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "hospital-11": { - width: 34, - height: 34, - x: 174, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "ice-cream-11": { - width: 34, - height: 34, - x: 208, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "information-11": { - width: 34, - height: 34, - x: 242, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "jewelry-store-11": { - width: 34, - height: 34, - x: 276, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "laundry-11": { - width: 34, - height: 34, - x: 310, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "library-11": { - width: 34, - height: 34, - x: 344, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "lodging-11": { - width: 34, - height: 34, - x: 378, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "marker-11": { - width: 24, - height: 34, - x: 412, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "mexico-city-metro": { - width: 34, - height: 34, - x: 436, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "milan-metro": { - width: 34, - height: 34, - x: 470, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "mobile-phone-11": { - width: 34, - height: 34, - x: 504, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "monument-11": { - width: 34, - height: 34, - x: 538, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "moscow-metro": { - width: 34, - height: 34, - x: 572, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "mountain-11": { - width: 34, - height: 34, - x: 606, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "museum-11": { - width: 34, - height: 34, - x: 640, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "music-11": { - width: 34, - height: 34, - x: 674, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "optician-11": { - width: 34, - height: 34, - x: 708, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "osaka-subway": { - width: 40, - height: 34, - x: 742, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "paris-transilien": { - width: 34, - height: 34, - x: 782, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "park-11": { - width: 34, - height: 34, - x: 816, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "parking-11": { - width: 34, - height: 34, - x: 850, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "parking-garage-11": { - width: 34, - height: 34, - x: 884, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "pharmacy-11": { - width: 34, - height: 34, - x: 918, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "philadelphia-septa": { - width: 38, - height: 34, - x: 952, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "picnic-site-11": { - width: 34, - height: 34, - x: 990, - y: 672, - pixelRatio: 2, - visible: !0 - }, - "pitch-11": { - width: 34, - height: 34, - x: 0, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "place-of-worship-11": { - width: 34, - height: 34, - x: 34, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "playground-11": { - width: 34, - height: 34, - x: 68, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "police-11": { - width: 34, - height: 34, - x: 102, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "post-11": { - width: 34, - height: 34, - x: 136, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "prison-11": { - width: 34, - height: 34, - x: 170, - y: 706, - pixelRatio: 2, - visible: !0 - }, - rail: { - width: 34, - height: 34, - x: 204, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "rail-light": { - width: 34, - height: 34, - x: 238, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "rail-metro": { - width: 34, - height: 34, - x: 272, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "ranger-station-11": { - width: 34, - height: 34, - x: 306, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "religious-buddhist-11": { - width: 34, - height: 34, - x: 340, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "religious-christian-11": { - width: 34, - height: 34, - x: 374, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "religious-jewish-11": { - width: 34, - height: 34, - x: 408, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "religious-muslim-11": { - width: 34, - height: 34, - x: 442, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "restaurant-11": { - width: 34, - height: 34, - x: 476, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "restaurant-noodle-11": { - width: 34, - height: 34, - x: 510, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "restaurant-pizza-11": { - width: 34, - height: 34, - x: 544, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "restaurant-seafood-11": { - width: 34, - height: 34, - x: 578, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "rocket-11": { - width: 34, - height: 34, - x: 612, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "san-francisco-bart": { - width: 34, - height: 34, - x: 646, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "school-11": { - width: 34, - height: 34, - x: 680, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "shoe-11": { - width: 34, - height: 34, - x: 714, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "shop-11": { - width: 34, - height: 34, - x: 748, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "singapore-mrt": { - width: 34, - height: 34, - x: 782, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "skateboard-11": { - width: 34, - height: 34, - x: 816, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "slipway-11": { - width: 34, - height: 34, - x: 850, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "stadium-11": { - width: 34, - height: 34, - x: 884, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "suitcase-11": { - width: 34, - height: 34, - x: 918, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "swimming-11": { - width: 34, - height: 34, - x: 952, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "table-tennis-11": { - width: 34, - height: 34, - x: 986, - y: 706, - pixelRatio: 2, - visible: !0 - }, - "tennis-11": { - width: 34, - height: 34, - x: 0, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "theatre-11": { - width: 34, - height: 34, - x: 34, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "toilet-11": { - width: 34, - height: 34, - x: 68, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "tokyo-metro": { - width: 34, - height: 34, - x: 102, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "town-hall-11": { - width: 34, - height: 34, - x: 136, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "traffic-signal": { - width: 16, - height: 34, - x: 1002, - y: 638, - pixelRatio: 2, - visible: !0 - }, - "veterinary-11": { - width: 34, - height: 34, - x: 170, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "viewpoint-11": { - width: 34, - height: 34, - x: 204, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "volcano-11": { - width: 34, - height: 34, - x: 238, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "volleyball-11": { - width: 34, - height: 34, - x: 272, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "washington-metro": { - width: 34, - height: 34, - x: 306, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "watch-11": { - width: 34, - height: 34, - x: 340, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "waterfall-11": { - width: 34, - height: 34, - x: 374, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "watermill-11": { - width: 34, - height: 34, - x: 408, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "windmill-11": { - width: 34, - height: 34, - x: 442, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "zoo-11": { - width: 34, - height: 34, - x: 476, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "ch-motorway-2": { - width: 44, - height: 32, - x: 510, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "ch-motorway-3": { - width: 56, - height: 32, - x: 554, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "de-motorway-2": { - width: 44, - height: 32, - x: 610, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "de-motorway-3": { - width: 56, - height: 32, - x: 654, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-dlr": { - width: 72, - height: 32, - x: 710, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-dlr.london-overground.london-tfl-rail.london-underground": { - width: 186, - height: 32, - x: 782, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-dlr.london-overground.london-underground": { - width: 148, - height: 32, - x: 0, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-dlr.london-underground": { - width: 110, - height: 32, - x: 148, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-overground": { - width: 72, - height: 32, - x: 258, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-overground.london-tfl-rail.london-underground": { - width: 148, - height: 32, - x: 330, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-overground.london-underground": { - width: 110, - height: 32, - x: 478, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-tfl-rail": { - width: 72, - height: 32, - x: 588, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-tfl-rail.london-overground": { - width: 110, - height: 32, - x: 660, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-tfl-rail.london-underground": { - width: 110, - height: 32, - x: 770, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail.london-underground": { - width: 72, - height: 32, - x: 880, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gr-motorway-2": { - width: 44, - height: 32, - x: 952, - y: 774, - pixelRatio: 2, - visible: !0 - }, - "gr-motorway-3": { - width: 56, - height: 32, - x: 968, - y: 740, - pixelRatio: 2, - visible: !0 - }, - "gr-motorway-4": { - width: 68, - height: 32, - x: 0, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "hr-motorway-3": { - width: 56, - height: 32, - x: 68, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "hr-motorway-4": { - width: 68, - height: 32, - x: 124, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "kr-metropolitan-2": { - width: 40, - height: 32, - x: 192, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "kr-metropolitan-3": { - width: 52, - height: 32, - x: 232, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "kr-metropolitan-4": { - width: 64, - height: 32, - x: 284, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "kr-metropolitan-5": { - width: 76, - height: 32, - x: 348, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "kr-metropolitan-6": { - width: 88, - height: 32, - x: 424, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-dlr": { - width: 40, - height: 32, - x: 512, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-dlr.london-tfl-rail": { - width: 78, - height: 32, - x: 552, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-dlr.london-tfl-rail.london-underground": { - width: 116, - height: 32, - x: 630, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-dlr.london-underground": { - width: 78, - height: 32, - x: 746, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-overground": { - width: 40, - height: 32, - x: 824, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-overground.london-tfl-rail": { - width: 78, - height: 32, - x: 864, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-overground.london-tfl-rail.london-underground": { - width: 116, - height: 32, - x: 0, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "london-overground.london-underground": { - width: 78, - height: 32, - x: 942, - y: 806, - pixelRatio: 2, - visible: !0 - }, - "london-tfl-rail": { - width: 40, - height: 32, - x: 116, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "london-tfl-rail.london-underground": { - width: 78, - height: 32, - x: 156, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "london-underground": { - width: 40, - height: 32, - x: 234, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "si-motorway-2": { - width: 44, - height: 32, - x: 274, - y: 838, - pixelRatio: 2, - visible: !0 - }, - wetland: { - width: 32, - height: 32, - x: 318, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "level-crossing": { - width: 30, - height: 30, - x: 350, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "default-2": { - width: 40, - height: 28, - x: 380, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "default-3": { - width: 52, - height: 28, - x: 420, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "default-4": { - width: 64, - height: 28, - x: 472, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "default-5": { - width: 76, - height: 28, - x: 536, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "default-6": { - width: 88, - height: 28, - x: 612, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "gb-national-rail": { - width: 34, - height: 28, - x: 700, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-1": { - width: 40, - height: 28, - x: 734, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-2": { - width: 40, - height: 28, - x: 774, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-3": { - width: 52, - height: 28, - x: 814, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-4": { - width: 64, - height: 28, - x: 866, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-5": { - width: 76, - height: 28, - x: 930, - y: 838, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-6": { - width: 88, - height: 28, - x: 0, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-7": { - width: 100, - height: 28, - x: 88, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-8": { - width: 112, - height: 28, - x: 188, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "motorway-exit-9": { - width: 124, - height: 28, - x: 300, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-blue-2": { - width: 40, - height: 28, - x: 424, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-blue-3": { - width: 52, - height: 28, - x: 464, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-blue-4": { - width: 64, - height: 28, - x: 516, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-green-2": { - width: 40, - height: 28, - x: 580, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-green-3": { - width: 52, - height: 28, - x: 620, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-green-4": { - width: 64, - height: 28, - x: 672, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-green-5": { - width: 76, - height: 28, - x: 736, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-green-6": { - width: 88, - height: 28, - x: 812, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-red-2": { - width: 40, - height: 28, - x: 900, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-red-3": { - width: 52, - height: 28, - x: 940, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "rectangle-red-4": { - width: 64, - height: 28, - x: 0, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-white-2": { - width: 40, - height: 28, - x: 64, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-white-3": { - width: 52, - height: 28, - x: 104, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-white-4": { - width: 64, - height: 28, - x: 156, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-white-5": { - width: 76, - height: 28, - x: 220, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-white-6": { - width: 88, - height: 28, - x: 296, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-yellow-2": { - width: 40, - height: 28, - x: 384, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-yellow-3": { - width: 52, - height: 28, - x: 424, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-yellow-4": { - width: 64, - height: 28, - x: 476, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-yellow-5": { - width: 76, - height: 28, - x: 540, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "rectangle-yellow-6": { - width: 88, - height: 28, - x: 616, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "border-dot-13": { - width: 26, - height: 26, - x: 992, - y: 870, - pixelRatio: 2, - visible: !0 - }, - "dot-10": { - width: 22, - height: 22, - x: 704, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "dot-11": { - width: 22, - height: 22, - x: 726, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "dot-9": { - width: 22, - height: 22, - x: 748, - y: 898, - pixelRatio: 2, - visible: !0 - }, - cliff: { - width: 16, - height: 14, - x: 770, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "oneway-large": { - width: 28, - height: 12, - x: 786, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "oneway-white-large": { - width: 28, - height: 12, - x: 814, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "oneway-small": { - width: 22, - height: 10, - x: 842, - y: 898, - pixelRatio: 2, - visible: !0 - }, - "oneway-white-small": { - width: 22, - height: 10, - x: 864, - y: 898, - pixelRatio: 2, - visible: !0 - } - }, - VU: { - "Latin-1 Supplement": function (A) { - return 128 <= A && A <= 255 - }, - Arabic: function (A) { - return 1536 <= A && A <= 1791 - }, - "Arabic Supplement": function (A) { - return 1872 <= A && A <= 1919 - }, - "Arabic Extended-A": function (A) { - return 2208 <= A && A <= 2303 - }, - "Hangul Jamo": function (A) { - return 4352 <= A && A <= 4607 - }, - "Unified Canadian Aboriginal Syllabics": function (A) { - return 5120 <= A && A <= 5759 - }, - Khmer: function (A) { - return 6016 <= A && A <= 6143 - }, - "Unified Canadian Aboriginal Syllabics Extended": function (A) { - return 6320 <= A && A <= 6399 - }, - "General Punctuation": function (A) { - return 8192 <= A && A <= 8303 - }, - "Letterlike Symbols": function (A) { - return 8448 <= A && A <= 8527 - }, - "Number Forms": function (A) { - return 8528 <= A && A <= 8591 - }, - "Miscellaneous Technical": function (A) { - return 8960 <= A && A <= 9215 - }, - "Control Pictures": function (A) { - return 9216 <= A && A <= 9279 - }, - "Optical Character Recognition": function (A) { - return 9280 <= A && A <= 9311 - }, - "Enclosed Alphanumerics": function (A) { - return 9312 <= A && A <= 9471 - }, - "Geometric Shapes": function (A) { - return 9632 <= A && A <= 9727 - }, - "Miscellaneous Symbols": function (A) { - return 9728 <= A && A <= 9983 - }, - "Miscellaneous Symbols and Arrows": function (A) { - return 11008 <= A && A <= 11263 - }, - "CJK Radicals Supplement": function (A) { - return 11904 <= A && A <= 12031 - }, - "Kangxi Radicals": function (A) { - return 12032 <= A && A <= 12255 - }, - "Ideographic Description Characters": function (A) { - return 12272 <= A && A <= 12287 - }, - "CJK Symbols and Punctuation": function (A) { - return 12288 <= A && A <= 12351 - }, - Hiragana: function (A) { - return 12352 <= A && A <= 12447 - }, - Katakana: function (A) { - return 12448 <= A && A <= 12543 - }, - Bopomofo: function (A) { - return 12544 <= A && A <= 12591 - }, - "Hangul Compatibility Jamo": function (A) { - return 12592 <= A && A <= 12687 - }, - Kanbun: function (A) { - return 12688 <= A && A <= 12703 - }, - "Bopomofo Extended": function (A) { - return 12704 <= A && A <= 12735 - }, - "CJK Strokes": function (A) { - return 12736 <= A && A <= 12783 - }, - "Katakana Phonetic Extensions": function (A) { - return 12784 <= A && A <= 12799 - }, - "Enclosed CJK Letters and Months": function (A) { - return 12800 <= A && A <= 13055 - }, - "CJK Compatibility": function (A) { - return 13056 <= A && A <= 13311 - }, - "CJK Unified Ideographs Extension A": function (A) { - return 13312 <= A && A <= 19903 - }, - "Yijing Hexagram Symbols": function (A) { - return 19904 <= A && A <= 19967 - }, - "CJK Unified Ideographs": function (A) { - return 19968 <= A && A <= 40959 - }, - "Yi Syllables": function (A) { - return 40960 <= A && A <= 42127 - }, - "Yi Radicals": function (A) { - return 42128 <= A && A <= 42191 - }, - "Hangul Jamo Extended-A": function (A) { - return 43360 <= A && A <= 43391 - }, - "Hangul Syllables": function (A) { - return 44032 <= A && A <= 55215 - }, - "Hangul Jamo Extended-B": function (A) { - return 55216 <= A && A <= 55295 - }, - "Private Use Area": function (A) { - return 57344 <= A && A <= 63743 - }, - "CJK Compatibility Ideographs": function (A) { - return 63744 <= A && A <= 64255 - }, - "Arabic Presentation Forms-A": function (A) { - return 64336 <= A && A <= 65023 - }, - "Vertical Forms": function (A) { - return 65040 <= A && A <= 65055 - }, - "CJK Compatibility Forms": function (A) { - return 65072 <= A && A <= 65103 - }, - "Small Form Variants": function (A) { - return 65104 <= A && A <= 65135 - }, - "Arabic Presentation Forms-B": function (A) { - return 65136 <= A && A <= 65279 - }, - "Halfwidth and Fullwidth Forms": function (A) { - return 65280 <= A && A <= 65519 - } - }, - layers: [], - styles: {}, - Mr: !0, - Rr: function (A, i) { - var C, Q = this; - if (!A) - return !1; - C = A, - this.styles.zr = []; - for (var e = this, g = 0, I = C.length; g < I; g += 1) - !function (A) { - var I, t, g, B = C[A], i = (B.zIndex = A, - "line" === B.type && (B.paint["line-width"] = void 0 === B.paint["line-width"] ? 1 : B.paint["line-width"]), - B.paint["line-width"] && (A = B.paint["line-width"], - i = 0, - B.paint["line-gap-width"] && (i = B.paint["line-gap-width"]), - I = A, - t = i, - e.styles.zr.push(A = function (A, i) { - var g = 0; - return t && (g = Q.HU(i, t, A)), - i = Q.HU(i, I, A), - g ? 2 * i + g : i - } - ), - B.paint["line-width"] = A, - B.paint["line-width"].Cr = e.styles.zr.length - 1, - delete B.paint["line-gap-width"]), - B["source-layer"]); - i ? (e.styles[i] || (e.styles[i] = []), - (A = B.filter) && (B.filters = [], - (g = function (A) { - if ("all" !== A[0]) - "in" === A[0] || "!in" === A[0] ? B.filters.push([A[0], A[1], A.slice(2)]) : B.filters.push(A); - else - for (var i = 1; i < A.length; i += 1) - g(A[i]) - } - )(A)), - e.styles[i].push(B)) : e.styles[B.id] = B - }(g); - this.backgroundColor = this.HU({}, this.styles.land.paint["background-color"], 12) - }, - Ar: function (A, i, g, I) { - return A -= g, - 0 == (I -= g) ? 0 : 1 === i ? A / I : (Math.pow(i, A) - 1) / (Math.pow(i, I) - 1) - }, - Sr: function (A, i, g) { - var I = i.base || 1 - , t = i.stops; - if (g <= t[0][0]) - return this.HU(A, t[0][1], g); - if (g >= t[t.length - 1][0]) - return this.HU(A, t[t.length - 1][1], g); - for (var B = 1, Q = t.length; B < Q; B += 1) - if (g > t[B - 1][0] && g <= t[B][0]) { - var C = this.HU(A, t[B - 1][1], g) - , e = this.HU(A, t[B][1], g); - if (C instanceof Array) { - for (var o = new Array(C.length), E = 0; E < C.length; E += 1) { - var h = e[E] - C[E]; - o[E] = C[E] + this.Ar(g, I, t[B - 1][0]) * h - } - return o - } - return "number" == typeof C ? (h = e - C, - C + this.Ar(g, I, t[B - 1][0], t[B][0]) * h) : C - } - }, - Lr: function (A, i) { - if (A) { - var g = void 0; - if ("string" == typeof A) - g = A; - else if (A.stops) - for (var I = 0, t = A.stops.length; I < t; I += 1) { - if (A.stops[I][0] > i) { - g = A.stops[I][1]; - break - } - g = A.stops[t - 1][1] - } - else if ("interpolate" === A[0]) { - for (var B = A.slice(3), Q = [], C = 0; C < B.length; C += 2) - Q.push([B[C], B[C + 1]]); - for (I = 0, - t = Q.length; I < t; I += 1) { - if (Q[I][0] > i) { - g = Q[I][1]; - break - } - g = Q[t - 1][1] - } - } - return g - } - }, - Tr: function (A, i) { - if (A) { - var g = void 0; - if (A.stops) - for (var I = 0, t = A.stops.length; I < t; I += 1) { - if (A.stops[I][0] > i) { - g = A.stops[I][1]; - break - } - g = A.stops[t - 1][1] - } - else - g = A; - return g - } - }, - Ir: function (A, i) { - var g; - if (void 0 === A) - return 0; - if ("function" == typeof A) - return A(i); - if ("number" != typeof A) { - if (A.stops) - g = this.Sr(A.base || 1, A.stops, i); - else if ("interpolate" === A[0]) { - for (var I = A.slice(3), t = [], B = 0; B < I.length; B += 2) - t.push([I[B], I[B + 1]]); - g = this.Sr(1, t, i) - } - } else - g = A; - return g - }, - Dr: function (A, i, g, I) { - var t; - if (void 0 === i) - return i; - i instanceof Array ? t = i : i.stops && (t = this.Sr(A, i, g)); - var B = new Array(t.length); - return t.forEach(function (A, i) { - B[i] = A * I - }), - B - }, - Pr: function (A, i, g) { - for (var I, t, B, Q, C, e, o, E, h, a, l, n, s, r = "butt", w = "butt", c = "solid", y = "solid", x = 0, d = 0, p = 0; p < A.length; p += 1) - "line" !== A[p].type || void 0 !== (t = A[p]).minzoom && t.minzoom > i || void 0 !== t.maxzoom && t.maxzoom < i || (I = t.paint, - t = t.layout, - void 0 === (B = I["line-opacity"]) && (B = 1), - (B = this.HU(g, B, i)) && (this.WU(A[p].id, "-low") ? (Q = B, - A[p].id, - s = I["line-color"], - C = this.HU(g, s, i), - r = this.HU(g, t["line-cap"] || r, i), - e = this.HU(g, I["line-width"], i), - o = I["line-width"].Cr, - this.Dr(g, I["line-dasharray"], i, e) && (c = "dashed"), - d = Math.max(d, A[p].zIndex)) : this.WU(A[p].id, "-case") || this.WU(A[p].id, "-tracks") ? (E = !0, - A[p].id, - h = B, - s = I["line-color"], - a = this.HU(g, s, i), - l = this.HU(g, I["line-width"], i), - n = I["line-width"].Cr, - w = this.HU(g, t["line-cap"] || w, i), - this.Dr(g, I["line-dasharray"], i, l) && (y = "dashed"), - x = Math.max(x, A[p].zIndex)) : this.WU(A[p].id, "-bg") ? (E = !0, - A[p].id, - h = B, - s = I["line-color"], - a = this.HU(g, s, i), - w = this.HU(g, t["line-cap"] || w, i), - l = this.HU(g, I["line-width"], i), - n = I["line-width"].Cr, - this.Dr(g, I["line-dasharray"], i, l) && (y = "dashed"), - x = Math.max(x, A[p].zIndex)) : (Q = B, - A[p].id, - s = I["line-color"], - C = this.HU(g, s, i), - r = this.HU(g, t["line-cap"] || r, i), - e = this.HU(g, I["line-width"], i), - o = I["line-width"].Cr, - this.Dr(g, I["line-dasharray"], i, e) && (c = "dashed"), - d = Math.max(d, A[p].zIndex)))); - if (e) - return { - facezIndex: d, - borderzIndex: x, - faceStrokeStyle: c, - faceOpacity: Q, - faceDashArray: void 0, - faceWidth: e, - faceColor: C, - faceLineCap: r, - borderLineCap: w, - isOutline: E, - borderOpacity: h, - borderStrokeStyle: y, - borderDashArray: void 0, - borderColor: a, - borderWidth: l, - faceWidthFunIndex: o, - borderWidthFunIndex: n - } - }, - QU: function (A) { - return A instanceof Array && -1 < this.KU(["geometry-type", "to-number", "case", "step", "is-supported-script", "concat", "get", "literal", "match", "interpolate", "to-string", "string", "coalesce", "has", "+", "==", "!=", ">", "<", ">=", "<=", "in", "!in"], A[0]) || "object" == typeof A && A.stops - }, - KU: function (A, i) { - if (A && A.length) { - if (A.indexOf) - return A.indexOf(i); - for (var g = 0; g < A.length; g += 1) - if (A[g] === i) - return g - } - return -1 - }, - WU: function (A, i) { - return A.endsWith ? A.endsWith(i) : !(A.length < i.length) && A.substr(A.length - i.length) === i - }, - Vr: function (A, i, g) { - for (var I = 0, t = 0; t < A.length; t += 1) { - var B, Q, C, e, o, E, h = A[t]; - "line" === A[t].type ? h.minzoom && h.minzoom > i || (I = Math.max(I, h.zIndex), - o = (e = h.paint)["line-color"], - B = this.HU(g, o, i), - Q = this.HU(g, e["line-width"], i), - o = void 0 === e["line-opacity"] ? 1 : e["line-opacity"], - C = this.HU(g, o, i)) : "fill" !== A[t].type || h.minzoom && h.minzoom > i || (I = Math.max(I, h.zIndex), - o = (e = h.paint)["fill-color"], - E = this.HU(g, o, i)) - } - return { - zIndex: I, - fillColor: E, - fillOpacity: 1, - strokeWeight: Q, - strokeColor: B, - strokeOpacity: C - } - }, - Xr: function (A, i, g) { - var I, t, B, Q, C, e, o, E, h, a, l, n, s = (A = A[0]).paint, r = A.layout; - if ("symbol" === A.type) - return I = this.HU(g, s["text-color"], i), - t = this.HU(g, s["text-halo-color"], i), - e = this.HU(g, s["text-halo-width"], i), - B = void 0 === s["icon-opacity"] ? 1 : s["icon-opacity"], - B = this.HU(g, B, i), - s = void 0 === s["text-opacity"] ? 1 : s["text-opacity"], - s = this.HU(g, s, i), - Q = C = void 0, - 0 === e && (t = ""), - r["icon-image"] && (C = this.HU(g, r["icon-image"], i), - e = this.kr[C]) && B && (e.height, - Q = [-e.width / 2, -e.height / 2, e.width, e.height, e.x, e.y, e.width, e.height]), - e = this.HU(g, r["icon-rotation-alignment"], i), - o = r["text-max-width"], - E = this.HU(g, r["text-anchor"] || "center", i), - (h = this.HU(g, r["text-font"], i) || "Microsoft YaHei") instanceof Array && (h = h.join(" ")), - a = r["text-offset"] ? this.HU(g, r["text-offset"], i) : [0, 0], - l = this.HU(g, r["text-size"], i), - n = "", - s && r["text-field"] && (n = this.HU(g, r["text-field"] || "{name}", i)), - { - zIndex: A.zIndex, - Jr: e, - Kr: I || "black", - Qr: t, - th: (A.minzoom || 1) + .5, - ih: (A.maxzoom || 20) + .5, - eh: B, - nh: C, - qU: Q, - oh: o, - textAnchor: E, - ah: h, - sh: a, - rh: l, - name: n - } - }, - lh: function (A, i, g) { - var I = [] - , t = this.Pr(A, i, g); - return t && (t.type = "line", - I.push(t)), - (t = this.uh(A, i, g)).length && I.push.apply(I, t), - I - }, - uh: function (A, i, g) { - for (var I = [], t = 0; t < A.length; t += 1) { - var B = this.Xr([A[t]], i, g); - B && I.push(B) - } - return I - }, - YU: function (A, i, g) { - for (var I = 1, t = i.length - 1; I < t; I += 2) - if (this.HU(A, i[I], g)) - return this.HU(A, i[I + 1], g); - return this.HU(A, i[i.length - 1], g) - }, - JU: function (A, i, g) { - var I = this.HU(A, i[1], g) - , t = this.HU(A, i[2], g); - return [I, this.HU(A, i[3], g)].join(t) - }, - ZU: function (A, i, g) { - for (var I = i[1], t = 1, B = ("exponential" === I[0] ? t = I[1] : "linear" === I[0] && (t = 1), - i.slice(3)), Q = [], C = 0; C < B.length; C += 2) - Q.push([B[C], B[C + 1]]); - return I = this.Sr(A, { - base: t, - stops: Q - }, g), - this.HU(A, I, g) - }, - XU: function (A, i, g) { - "zoom" !== i[1][0] && "get" === i[1][0] && (g = A.properties[i[1][1]]); - for (var I = [], t = 2, B = i.length; t < B; t += 2) - I.push([parseFloat(i[t - 1]) || 0, this.HU(A, i[t], g)]); - if (g < I[0][0]) - return this.HU(A, I[0][1], g); - if (g >= I[I.length - 1][0]) - return this.HU(A, I[I.length - 1][1], g); - for (t = 1, - B = I.length; t < B; t += 1) - if (g <= I[t][0]) - return this.HU(A, I[t - 1][1], g) - }, - tV: function (A, i, g) { - var I = this.HU(A, i[1], g); - if (I) { - for (var t = 2, B = i.length - 1; t < B; t += 2) - if (i[t] instanceof Array ? -1 !== this.KU(i[t], I) : i[t] === I) - return this.HU(A, i[t + 1], g); - return this.HU(A, i[i.length - 1], g) - } - }, - HU: function (A, i, g) { - if (null == i) - return null; - var I = typeof i; - if ("number" == I || "boolean" == I) - return i; - if ("function" == I) - return i(g, A); - if (!this.QU(i)) { - if ("string" == typeof i && -1 !== this.KU(i, "{")) { - for (var t, B = [], Q = 0, C = 0, e = i.length; C < e; C += 1) - "{" === i[C] && (Q = C), - "}" === i[C] && (t = C, - B.push(i.substring(Q, t + 1))); - for (var o, C = 0, e = B.length; C < e; C += 1) { - if (void 0 === (o = A.properties[B[C].substring(1, B[C].length - 1)])) - return ""; - i = i.replace(B[C], o) - } - } - return i - } - if ("literal" === i[0]) - return i[1]; - if (i.stops) - return this.Sr(A, i, g); - if ("get" === i[0]) - return this.Hr && "name" === i[1].substr(0, 4) && (A.properties["name_zh-Hant"] || A.properties["name_zh-Hans"]) || A.properties[i[1]]; - if ("to-number" === i[0]) - return parseFloat(this.HU(A, i[1], g)); - if ("to-string" === i[0]) - return (o = this.HU(A, i[1], g)) ? o + "" : ""; - if ("string" === i[0]) - return (o = this.HU(A, i[1], g)) ? o + "" : ""; - if ("match" === i[0]) - return this.tV(A, i, g); - if ("case" === i[0]) - return this.YU(A, i, g); - if ("interpolate" === i[0]) - return this.ZU(A, i, g); - if ("concat" === i[0]) - return this.JU(A, i, g); - if ("step" === i[0]) - return this.XU(A, i, g); - if ("coalesce" !== i[0]) - return "+" === i[0] ? this.HU(A, i[1], g) + this.HU(A, i[2], g) : "has" === i[0] ? void 0 !== A.properties[i[1]] : "is-supported-script" === i[0] ? this.iV(this.HU(A, i[1], g)) : "==" === i[0] ? this.HU(A, i[1], g) === this.HU(A, i[2], g) : "!=" === i[0] ? this.HU(A, i[1], g) !== this.HU(A, i[2], g) : ">" === i[0] ? this.HU(A, i[1], g) > this.HU(A, i[2], g) : "<" === i[0] ? this.HU(A, i[1], g) < this.HU(A, i[2], g) : ">=" === i[0] ? this.HU(A, i[1], g) >= this.HU(A, i[2], g) : "<=" === i[0] ? this.HU(A, i[1], g) <= this.HU(A, i[2], g) : "in" === i[0] ? -1 < this.KU(this.HU(A, i[2], g), this.HU(A, i[1], g)) : "!in" === i[0] ? -1 === this.KU(this.HU(A, i[2], g), this.HU(A, i[1], g)) : "geometry-type" === i[0] ? 3 === A.type ? "Polygon" : 2 === A.type ? "LineString" : "Point" : void 0; - for (C = 1; C < i.length; C += 1) { - var E = this.HU(A, i[C], g); - if (E) - return E - } - }, - eV: function (A, i) { - return !(!i && (1424 <= A && A <= 2303 || this.VU["Arabic Presentation Forms-A"](A) || this.VU["Arabic Presentation Forms-B"](A)) || 2304 <= A && A <= 3583 || 3840 <= A && A <= 4255 || this.VU.Khmer(A)) - }, - iV: function (A) { - if (!A) - return !1; - for (var i = 0, g = A.length; i < g; i += 1) { - var I = A[i]; - if (!this.eV(I.charCodeAt(0), !1)) - return !1 - } - return !0 - }, - getStyle: function (C, e, A, o) { - var i, g = C.type, E = (C.properties.class, - C.properties.type, - this), h = this.styles[e]; - if (h && (i = function () { - for (var A = [], i = 0, g = h.length; i < g; i += 1) { - var I = h[i]; - if (I.filters) { - for (var t = !0, B = 0; B < I.filters.length; B += 1) { - var Q = I.filters[B]; - if (!E.HU(C, Q, o)) { - t = !1; - break - } - } - t && A.push(I) - } else - I.id === e && A.push(I) - } - return A - }()).length) - return 1 === g ? this.Xr(i, o, C) : 2 === g ? this.lh(i, o, C) : 3 === g ? this.Vr(i, o, C) : void 0 - }, - fh: function (A, i) { - for (var g = 1 << 20 - i.z, I = A.extent / 256, t = 0; t < A.style.length; t += 1) { - var B = A.style[t]; - if ("line" !== B.type) { - for (var Q = "", C = (B.hh && (Q = A.properties[B.hh]), - this.Mr), e = C ? 1.8 * B.rh : B.rh, o = A.lines[0], E = 1; E < A.lines.length; E += 1) - o.length < A.lines[E].length && (o = A.lines[E]); - for (var h = [], a = 0; a < o.length; a += 1) { - var l = [i.x * g * 256 + o[a][0] / I * g, 256 * i.y * g + o[a][1] / I * g]; - h.push(l) - } - var n = B.textAnchor - , s = (this._r.font = B.rh + "px " + B.ah, - this._r.measureText(Q).width) - , r = 0 - , w = 0 - , c = B.nh && "viewport" === B.Jr; - if (B.nh) { - var r = (-A.properties.dh || 0) - 100 - , x = (y = polyfill.kS._S(h, polyfill.kS.distanceOfLine(h) / 2) || [])[2]; - "viewport" !== B.Jr && 1 < h.length && (w = 360 - (new polyfill.Pixel(h[x + 1][0] - h[x][0], h[x + 1][1] - h[x][1]).direction() || 0)), - h = [y[0], y[1]] - } else { - if (this.vh(o)) - continue; - if (90 < (x = new polyfill.Pixel(o[1][0] - o[0][0], o[1][1] - o[0][1]).direction() || 0) && x < 270 && (h.reverse(), - o.reverse()), - r = -A.properties.dh - 1e6, - polyfill.kS.distanceOfLine(h) / g < 1.5 * s) - continue - } - var d, y = { - margin: this.mh, - foreign: !0, - zIndex: B.zIndex, - yh: w, - rank: r, - font: B.ah, - Kr: B.Kr, - Qr: B.Qr, - rh: e, - id: A.id, - xh: h, - name: Q, - textAlign: "center", - textBaseline: "center" === n ? "middle" : "top", - bh: [], - gh: new Array, - wh: c, - _h: !c, - kh: !B.nh, - th: B.th, - Mh: !0, - Rh: new Array, - zh: !1, - zoom: i.z - }; - B.nh ? (w = 0, - r = B.nh.replace("{maki}", A.properties.maki).replace("{shield}", A.properties.shield).replace("{reflen}", A.properties.reflen).replace("{network}", A.properties.network), - (c = this.kr[r]) && B.eh && (w = c.height, - d = [-c.width / 2, -c.height / 2, c.width, c.height, c.x, c.y, c.width, c.height], - y.gh.push(d)), - Q && (r = void 0, - c = "center" === n ? (r = 0, - -e / 2) : r = t * (e + 2) + w / 2, - y.Rh.push([Q, B.ah, e, B.Kr, B.Qr, 0, 0, !1, [0, r, C ? 1.8 * s : s, e]]), - y.gh.push(d = [-s / 2, c, s, e])), - (w || Q) && (Q ? y.id = "mapbox_guideboard_" + polyfill.Util.stamp(y) : (y.id = "mapbox_singleway_" + polyfill.Util.stamp(y), - y.zh = !0), - i.labels.push(y))) : Q && (y.id = "mapbox_roadname_" + polyfill.Util.stamp(y), - i.labels.push(y)) - } - } - }, - Sh: function (A, i) { - var g = 1 << 20 - i.z - , I = A.extent / 256 - , t = A.Ch.xh[0][0] - , B = A.properties[A.style.hh]; - if (B) { - var Q = this.Mr ? 2 * A.style.rh : A.style.rh - , g = [i.x * g * 256 + t[0] / I * g, 256 * i.y * g + t[1] / I * g] - , C = A.style.textAnchor - , e = { - foreign: !0, - margin: this.mh, - zIndex: A.style.zIndex, - rank: -A.properties.dh || 0, - id: A.id, - xh: g, - name: B, - textAlign: "center", - textBaseline: "center" === C ? "middle" : "top", - bh: [], - gh: new Array, - yh: 0, - pos: [t[0] / I, t[1] / I], - wh: !0, - th: A.style.th, - Mh: !0, - Rh: new Array - } - , o = 0 - , E = (A.style.nh && (g = A.style.nh.replace("{maki}", A.properties.maki).replace("{shield}", A.properties.shield).replace("{reflen}", A.properties.reflen).replace("{network}", A.properties.network), - t = this.kr[g]) && A.style.eh && (o = t.height, - s = [-t.width / 2, -t.height / 2, t.width, t.height, t.x, t.y, t.width, t.height], - e.gh = [s]), - 0 < (I = B.indexOf("(")) ? [B.substr(0, I), B.substr(I)] : 20 < B.length && 1 < (g = B.split(" ")).length ? (t = Math.floor(g.length / 2), - [g.slice(0, t).join(" "), g.slice(t).join(" ")]) : [B]); - this._r.font = Q + "px " + A.style.ah; - for (var h = 0; h < E.length; h += 1) { - var a = E[h] - , l = this._r.measureText(a).width - , s = (e.Rh.push([a, A.style.ah, Q, A.style.Kr, A.style.Qr, 0, 0, !1, [0, a = "center" === C ? (-.5 * E.length + h) * (Q + 2) : h * (Q + 2) + o / 2, l, Q]]), - [-l / 2, a, l, Q]); - e.gh.push(s) - } - return i.labels.push(e), - e - } - }, - Lh: function (A) { - var i, g = [], I = []; - for (i in A.layers) - if (A.layers.hasOwnProperty(i)) { - for (var t = A.layers[i], B = [], Q = 0; Q < t.Ah.length; Q += 1) - 3 == +(C = t.Ah[Q]).type ? g.push(C) : 2 == +C.type && B.push(C); - for (Q = 0; Q < B.length; Q += 1) { - var C, e = (C = B[Q]).style; - e.isOutline && I.push([C, { - zIndex: e.borderzIndex, - Th: e.borderWidthFunIndex, - strokeStyle: e.borderStrokeStyle, - strokeOpacity: e.borderOpacity, - strokeDasharray: e.borderDashArray, - lineCap: e.borderLineCap, - strokeWeight: e.borderWidth, - strokeColor: e.borderColor - }]), - I.push([C, { - zIndex: e.facezIndex, - Th: e.faceWidthFunIndex, - strokeStyle: e.faceStrokeStyle, - strokeOpacity: e.faceOpacity, - strokeDasharray: e.faceDashArray, - lineCap: e.faceLineCap, - strokeWeight: e.faceWidth, - strokeColor: e.faceColor - }]) - } - } - I.sort(function (A, i) { - return A[1].zIndex > i[1].zIndex ? 1 : -1 - }), - A.polygons = g, - A.Dh = I, - delete A.layers - }, - Ph: function (A) { - A.type, - A.lines - }, - jh: function (A, i, g, I) { - this.mh = 3; - var t, B = i.vt, Q = (B.labels = [], - []); - for (t in B.layers) - if (B.layers.hasOwnProperty(t)) { - var C = B.layers[t] - , e = C.Ah; - Q.push(t); - for (var o = 0, E = e.length; o < E; o++) { - var h = e[o]; - h.Fh = C.name, - h.style = this.getStyle(h, C.name, !0, B.z - 1), - h.style, - this.Ph(h), - h.style && 1 != +h.type && 2 == +h.type && h.style.length && (this.fh(h, B), - "line" === h.style[0].type) && (h.style = h.style[0]) - } - } - this.Lh(B), - this.Eh || (this.Eh = !0), - g.features = B.labels, - B.labels = null, - Q.length > this.layers.length && (this.layers = Q), - I(null, { - vt: B - }) - } - }, MapboxStyle = function () { - function A(A) { - var i = null - , g = ""; - A && ((A = A.KG) && A.styles && (i = JSON.parse(A.styles).layers), - A) && A.vectorMapForeign && (g = A.vectorMapForeign), - mbStyle.Rr(i, g) - } - return A.prototype.getMapboxStyle = function () { - return mbStyle - } - , - A - }(), MapboxSourceWorker = function () { - function A(A) { - this.parent = A, - this.id = "mapbox", - this.sQ = {}, - this.yQ = {}, - this.kQ = {} - } - return A.prototype.YE = function (A) { - var i = polyfill.Util.getOptimalZoom(this.WW); - A(this.sQ, { - ZL: this.WW, - optimalZoom: i, - cb: function () { } - }), - this.sQ = {} - } - , - A.prototype.bw = function (A, t, B, Q, i, g, C) { - var e = this - , o = new XMLHttpRequest; - return o.onreadystatechange = function () { - var A, i, g, I; - 4 === o.readyState && 200 === o.status && (I = new polyfill.pw(new Uint8Array(o.response)), - (I = new polyfill.tW(I)).nG("mapbox"), - A = t.z, - i = t.x, - g = t.y, - I.data = {}, - I = e.Ow(I, { - x: t.x, - y: t.y, - z: t.z, - projectionId: B, - tileSize: Q - }), - e.wQ(I), - I.zo = new polyfill.ca(A, i, g), - e.FQ(I), - delete I.road, - C(null, polyfill.Ln({ - zo: t - }, I))) - } - , - o.open("GET", A, !0), - o.responseType = "arraybuffer", - o.send(), - { - cancel: function () { - o.abort() - } - } - } - , - A.prototype.wQ = function (A) { - A.stencil = {}; - var i = new polyfill.fQ - , A = (A.stencil.Oc = i, - A.stencil.Dc = new polyfill.K_, - A.stencil.Dc.Nx(A.MQ)); - i.add({}, A) - } - , - A.prototype.Ow = function (g, A) { - var I = A.x - , t = A.y - , o = A.z - , B = A.tileSize - , E = A.projectionId; - g.z = o, - g.x = I, - g.y = t; - for (var A = polyfill.ProjectionManager.getProjection(E).getResolution(o), A = polyfill.$Q(I, t, o, A, B), Q = (g.Ro = A, - g.MQ = [A[0], A[1], A[2], A[1], A[2], A[3], A[0], A[3]], - g.zS = polyfill.lcs.getLocalByCoord([g.Ro[0], g.Ro[1]]), - g.localCoord = g.zS, - Object.keys(g.layers)), i = 0; i < Q.length; i++) - !function (A) { - var e = g.layers[Q[A]] - , A = e.Cw - , i = e.extent; - e.Ah = [], - e.scale = B / i, - e.ox = B * I, - e.oy = B * t, - polyfill.forEach(A, function (A, i) { - if ((A = e.Gw(i)).Dw(), - e.Ah.push(A), - A.lines && A.lines.length && (2 === A.type || 3 === A.type || 1 === A.type)) { - A.Rw = []; - for (var g = 0, I = A.lines.length; g < I; g++) { - for (var t = [], B = 0, Q = A.lines[g].length; B < Q; B++) { - var C = [e.ox + e.scale * A.lines[g][B][0], e.oy + e.scale * A.lines[g][B][1]] - , C = [(C = polyfill.V[E].Xs(C[0], C[1], o))[0], C[1]]; - t.push(C) - } - A.Rw.push(t) - } - } - }) - }(i); - return this.uW(g, o), - this.xw(g), - this.zw(g), - g - } - , - A.prototype.uW = function (A, i) { - var g, I = [], t = [], B = [], Q = (this.kQ, - null); - for (g in this.parent && this.parent.QG && (Q = this.parent.QG), - this.$h = new MapboxStyle({ - KG: Q - }).getMapboxStyle(), - A.bgColor = this.$h.backgroundColor, - A.layers) - if (A.layers.hasOwnProperty(g)) - for (var C = A.layers[g], e = 0; e < C.Ah.length; e += 1) { - var o, E = C.Ah[e], h = this.$h.getStyle(E, C.name, !0, i); - h && (E.style = h, - 3 === E.type ? I.push(E) : 2 === E.type ? t.push(E) : 1 === E.type && (o = h.name) && ((o = { - name: o, - position: E.Rw[0], - id: E.id, - minzoom: h.th, - maxzoom: h.ih - }).style = h, - B.push(o))) - } - t.sort(function (A, i) { - return A.style && i.style && A.style.zIndex > i.style.zIndex ? 1 : -1 - }), - I.sort(function (A, i) { - return A.style && i.style && A.style.zIndex > i.style.zIndex ? 1 : -1 - }), - A.polygons = I, - A.Dh = t, - A.data.poilabel = ((Q = {})[A.z + "," + A.x + "," + A.y] = B, - Q), - delete A.layers - } - , - A.prototype.startsWith = function (A, i) { - return A.startsWith ? A.startsWith(i) : A.substr(0, i.length) === i - } - , - A.prototype.argbHex2Rgba = function (A) { - for (var i = [], g = 0, I = A.length; g < I; g += 2) - i.push(parseInt(A.substr(g, 2), 16) / 255); - return i.push(i.shift()), - i - } - , - A.prototype.uQ = function (A, i, g) { - return g < 0 && (g += 1), - 1 < g && --g, - g < 1 / 6 ? A + 6 * (i - A) * g : g < .5 ? i : g < 2 / 3 ? A + (i - A) * (2 / 3 - g) * 6 : A - } - , - A.prototype.GQ = function (A, i, g, I) { - var t, B, Q; - return 0 === i ? t = B = Q = g : (t = this.uQ(i = 2 * g - (g = g < .5 ? g * (1 + i) : g + i - g * i), g, A + 1 / 3), - B = this.uQ(i, g, A), - Q = this.uQ(i, g, A - 1 / 3)), - [t, B, Q, I] - } - , - A.prototype.color2RgbaArray = function (A, i) { - var g, I, t, B, Q, C, e; - return void 0 === i && (i = 1), - A ? (g = A.toString(), - this.yQ[g] || (A instanceof Array ? A : this.startsWith(A, "hsla") ? (C = A.substr(5).split(","), - I = parseInt(C[0], 10) / 360, - t = parseInt(C[1], 10) / 100, - B = parseInt(C[2], 10) / 100, - e = parseFloat(C[3]), - Q = this.GQ(I, t, B, e), - this.yQ[g] = Q) : this.startsWith(A, "hsl") ? (C = A.substr(4).split(","), - I = parseInt(C[0], 10) / 360, - t = parseInt(C[1], 10) / 100, - B = parseInt(C[2], 10) / 100, - Q = this.GQ(I, t, B, i), - this.yQ[g] = Q) : this.startsWith(A, "#") ? 7 === A.length ? (Q = this.argbHex2Rgba("ff" + A.substr(1)), - this.yQ[g] = Q) : 9 === A.length ? (Q = this.argbHex2Rgba(A.substr(1)), - this.yQ[g] = Q) : void 0 : this.startsWith(A, "rgba") ? (C = A.substr(5).split(","), - [parseInt(C[0], 10) / 255, parseInt(C[1], 10) / 255, parseInt(C[2], 10) / 255, e = parseFloat(C[3])]) : this.startsWith(A, "rgb") ? (C = A.substr(4).split(","), - [parseInt(C[0], 10) / 255, parseInt(C[1], 10) / 255, parseInt(C[2], 10) / 255, e = 1]) : void 0)) : null - } - , - A.prototype.zw = function (A) { - if (!A || !A.Dc) { - var i = new polyfill.fQ - , g = (A.Oc = i, - A.Dc = new polyfill.K_, - { - fillColor: this.color2RgbaArray(A.bgColor), - zIndex: 0 - }) - , I = A.Dc.Nx(A.MQ); - i.add(g, I); - for (var t = 0, B = A.polygons; t < B.length; t++) { - var Q = B[t] - , C = Q.style; - if (C && C.fillColor) { - C.fillColor = this.color2RgbaArray(C.fillColor); - var e = Q.Rw; - if (1 < e.length) { - for (var o = [], E = 0; E < e.length; E++) - polyfill.kS.isClockwise(e[E]) ? o.push([E]) : o.length && o[o.length - 1].push(E); - for (var h = 0; h < o.length; h++) { - var a = o[h]; - if (1 < a.length) { - for (var l = [], n = [], s = 0; s < a.length; s++) { - var r = e[a[s]]; - 0 < s && l.push(n.length / 2); - for (var w = 0; w < r.length; w++) { - var c = r[w]; - n.push(c[0], c[1]) - } - } - var y = A.Dc.Nx(n, l) - } else { - for (n = [], - r = e[a[0]], - w = 0; w < r.length; w++) { - var x = r[w]; - n.push(x[0], x[1]) - } - y = A.Dc.Nx(n) - } - i.add(C, y) - } - } else { - for (var d = e.length, n = [], p = 0; p < d; p++) { - var D = e[p]; - if (0 < D.length) - for (w = 0; w < D.length; w++) - h = D[w], - n.push(h[0], h[1]) - } - Q = A.Dc.Nx(n), - i.add(C, Q) - } - } - } - delete A.polygons - } - } - , - A.prototype.xw = function (A) { - if (!A || !A.$c) { - var i = [] - , g = this.kQ - , I = (A.$c = new polyfill.J_, - new polyfill.fQ); - A.Uc = I; - for (var t = 0, B = A.Dh; t < B.length; t++) { - var Q = B[t] - , C = Q.Rw - , e = C.length - , o = 0 - , E = 0; - Q.style && Q.style[0] && Q.style[0].borderColor && (Q.style[0].borderColor = this.color2RgbaArray(Q.style[0].borderColor)), - Q.style && Q.style[0] && Q.style[0].faceColor && (Q.style[0].faceColor = this.color2RgbaArray(Q.style[0].faceColor)); - for (var a = (h = Q.style || [])[0], h = h[1], l = 0; l < e; l++) { - var n = C[l]; - if (0 < n.length) { - for (var s = [], r = 0; r < n.length; r++) { - var w = n[r]; - s.push(w[0], w[1]) - } - var c = A.$c.hb(s, { - X_: 0, - lineJoin: "miter", - lineCap: "round" - }); - o += c.Iw, - E += c.distance - } - } - if (0 < o && (I.add(Q.style, o), - Q.distance = E), - a && a.borderColor && (Q.style[0].borderColor = this.color2RgbaArray(a.borderColor)), - a && a.faceColor && (Q.style[0].faceColor = this.color2RgbaArray(a.faceColor)), - h && (Q = h.name || "")) { - var a = h.Kr - , y = h.Qr; - a && !g[a] && (g[a] = polyfill.Util.color2RgbaArray(a)), - y && !g[y] && (g[y] = polyfill.Util.color2RgbaArray(y)), - h.Kr = g[a], - h.Qr = g[y]; - for (var x = (a = { - style: h, - path: [], - name: Q, - distance: E - }).path, d = 0; d < e; d++) - for (var p = C[d], r = 0; r < p.length; r++) - w = p[r], - x.push(w[0], w[1]); - i.push(a) - } - } - A.road = i, - delete A.Dh - } - } - , - A.prototype.FQ = function (A) { - var i, g = {}; - for (i in A) - A.hasOwnProperty(i) && "fillBucket" !== i && "fillSegements" !== i && "lineBucket" !== i && "lineSegements" !== i && (g[i] = A[i]); - this.sQ[A.zo.key] = { - tile: g, - params: { - scale: this.parent.params.scale, - tag: "all" - } - } - } - , - A - }(), _a$1, mapBoxSprite = "https://webapi.amap.com/style_icon/sprite_v8@2x.png", DefaultIconInfo = (_a$1 = { - TW: { - img: "https://vdata.amap.com/style_icon/2.0/icon-normal-big.png", - width: 512, - height: 1024, - startX: 0, - startY: 0, - status: "loaded", - type: "icon", - ext: { - hv: 0 - } - }, - RW: { - img: "https://vdata.amap.com/style_icon/2.0/icon-biz-big.png", - width: 512, - height: 1024, - startX: 0, - startY: 1024, - status: "loaded", - type: "icon", - ext: { - hv: 1 - } - } - }, - _a$1[mapBoxSprite] = { - img: mapBoxSprite, - width: 1024, - height: 926, - startX: 0, - startY: 2048, - status: "loaded", - type: "icon", - ext: { - hv: 2 - } - }, - _a$1), ImageManagerWorker = function (g) { - function A() { - var A, i = g.call(this) || this; - return i.Fs = ((A = {})[DefaultIconInfo.TW.img] = DefaultIconInfo.TW, - A[DefaultIconInfo.RW.img] = DefaultIconInfo.RW, - A), - i.Cc = 16, - i.Uw = 3, - i.Hw = {}, - i.Mc = {}, - i - } - return polyfill.Ei(A, g), - A.prototype.loadImage = function (A, i) { - var g = i.name - , I = i.type - , t = i.cb - , B = this.Fs[g = g || A]; - B && B.status === polyfill.uc.LOADED ? t(B, i) : B && B.status === polyfill.uc.LOADING ? (this.Mc[g] || (this.Mc[g] = []), - this.Mc[g].push({ - cb: t, - opts: i - })) : ("icon" === I && (DefaultIconInfo[A] ? i.hv = DefaultIconInfo[A].ext.hv : i.hv = this.Uw, - this.Uw++), - this.Rc(A, i)) - } - , - A.prototype.loadImages = function (A, i) { - var t = this - , g = i.cb - , B = i.type; - if (0 === Object.keys(A).filter(function (A) { - return !t.Fs[A] - }).length) - g(); - else { - var Q = [] - , C = []; - if (A.length) { - for (var I = 0, e = A; I < e.length; I++) - !function (I) { - var A = new Promise(function (g, A) { - t.loadImage(I, { - cb: function (A, i) { - C.push(t.Fs[I]), - g() - }, - type: B - }) - } - ); - Q.push(A) - }(e[I]); - Promise.all(Q).then(function () { - g(C) - }).catch(function () { - g(C) - }) - } else - g(C) - } - } - , - A.prototype.Vw = function (A, i) { - var t = this - , B = i.cb - , Q = A.filter(function (A) { - return !t.Fs[A] - }); - if (0 === Q.length) - B([]); - else { - var g = [] - , C = []; - if (A.length) { - for (var I = 0, e = A; I < e.length; I++) - !function (I) { - var A = new Promise(function (g, A) { - t.loadImage(I, { - cb: function (A, i) { - C.push(t.Fs[I]), - g() - }, - type: "icon" - }) - } - ); - g.push(A) - }(e[I]); - Promise.all(g).then(function () { - var A = []; - if (0 < Q.length) { - for (var i = 0, g = Q; i < g.length; i++) { - var I = g[i]; - A.push({ - url: I, - data: t.getImage(I) - }) - } - t.emit("iconImageLoaded", { - data: A - }) - } - B(C) - }).catch(function () { - B(C) - }) - } else - B(C) - } - } - , - A.prototype.getImage = function (A) { - return this.Fs[A = void 0 === A ? "" : A] - } - , - A.prototype.destory = function () { - var A; - this.Fs = ((A = {})[DefaultIconInfo.TW.img] = DefaultIconInfo.TW, - A[DefaultIconInfo.RW.img] = DefaultIconInfo.RW, - A) - } - , - A.prototype.Rc = function (i, g) { - var I = this - , t = g.name - , A = g.ext - , B = void 0 === A ? {} : A - , Q = void 0 === (A = g.type) ? "other" : A - , C = g.cb - , e = g.imageBitmap - , o = this.Fs; - o[t || i] = { - status: polyfill.uc.LOADING, - startX: 0, - startY: 1024 * (g.hv || 0), - type: Q, - height: 0, - width: 0 - }, - polyfill.Yw.send(i, { - Me: "arraybuffer", - qw: function (A) { - e ? (console.time("createImageBitmap"), - createImageBitmap(new Blob([new Uint8Array(A)])).then(function (A) { - console.timeEnd("createImageBitmap"), - A = new polyfill.WQ(i, A, { - imageBitmap: !0 - }), - I.qQ(t || i, A, C, g, Q, B) - })) : (A = new polyfill.WQ(i, A), - I.qQ(t || i, A, C, g, Q, B)) - }, - Aw: function (A) { - console.log(A), - o[A = t || i].status = polyfill.uc.ERROR, - C(o[A], g) - } - }) - } - , - A.prototype.qQ = function (A, i, g, I, t, B) { - var Q = this.Fs; - if ("success" !== i.status) - console.error("createObjectURL fail"), - Q[A].status = polyfill.uc.ERROR, - g(Q[A], I); - else if ("icon" === t ? (B.hv = I.hv, - Q[A] = DefaultIconInfo[A] || { - ext: B, - type: t, - startX: 0, - startY: 1024 * (I.hv || 0), - height: 1024, - width: 512, - status: polyfill.uc.LOADED - }, - Q[A].data = i) : Q[A] = { - ext: B, - type: t, - startX: 0, - startY: 0, - height: 0, - width: 0, - data: i, - status: polyfill.uc.LOADED - }, - g(Q[A], I), - this.Mc[A]) { - for (var C = 0, e = this.Mc[A]; C < e.length; C++) { - var o = e[C]; - o.cb(Q[A], o.opts) - } - delete this.Mc[A] - } - } - , - A.prototype.Sc = function (A) { - var i, g = (g = (A = void 0 === A ? {} : A).img) && g.context ? (i = g.width || 0, - g.height || 0) : (i = A.width || 0, - A.height || 0); - return [i, g] - } - , - A - }(polyfill.Event), Counter = function (g) { - function A(A) { - var i = g.call(this) || this; - return i.OQ = A, - i.zQ = 0, - i - } - return polyfill.Ei(A, g), - A.prototype.TQ = function () { - this.zQ += 1, - this.zQ === this.OQ && this.emit("count") - } - , - A.prototype.clear = function () { - this.zQ = 0 - } - , - A - }(polyfill.Event), _a$2, LabelFormatMap$1 = (_a$2 = {}, - _a$2[polyfill.NebulaLabelFormat.id] = polyfill.NebulaLabelFormat, - _a$2[polyfill.MapboxLabelFormat.id] = polyfill.MapboxLabelFormat, - _a$2.nebula = polyfill.NebulaLabelFormat, - _a$2), LabelWorker = function (g) { - function A(A) { - var i = g.call(this) || this; - return i.parent = A, - i.MW = {}, - i.hD = ["https://vdata.amap.com/style_icon/2.0/icon-normal-big.png", "https://vdata.amap.com/style_icon/2.0/icon-biz-big.png"], - i.z_ = A.z_, - i.R_ = A.R_, - i - } - return polyfill.Ei(A, g), - A.prototype.iW = function (B, Q) { - var A, E = this, h = (void 0 === Q && (Q = {}), - this.MW.ZL = Q.ZL || polyfill.zoomRange[1], - []), a = (Q.cb, - this.parent.langForeign), l = this; - for (A in B) - !function (A) { - var C, i, g, I, e, t, o; - B.hasOwnProperty(A) && (I = (A = B[A]).tile, - i = (A = A.params).scale, - A = A.tag, - h.push(A), - g = { - vn: l.parent.vn - }, - i = (g = new LabelFormatMap$1[Q.id](g)).Ns(I, { - ZL: l.MW.ZL, - zoom: I.zo.z, - scale: i, - lang: a, - VQ: l.parent.QZ - }), - C = [[I, g, i, A]], - i = Object.keys(g.Fs), - A = Object.keys(g.Es), - g = [I], - I = Date.now(), - e = [], - t = Q.optimalZoom, - (o = new Counter(2)).on("count", function () { - E.parent.jQ.XQ(new LoadDynamicsTask(E.parent.vn, t, E.R_, E.z_, e, Q, function (A) { - E.emit("dynamicTextVerticeLoadedByTile", { - data: A.data, - id: Q.id - }) - } - ), void 0, !0), - E.parent.yY.setNeedUpdate(!0) - }, null, !0), - l.R_.vW(A, { - tiles: g, - optimalZoom: t, - tags: h, - stamp: I, - cb: function (A) { - for (var i = 0, g = C; i < g.length; i++) { - var t = (I = g[i])[0] - , B = I[1] - , Q = I[2] - , I = I[3]; - e.push({ - tile: t, - gW: B, - SW: Q, - tag: I - }) - } - o.TQ() - } - }), - l.wW(i) ? o.TQ() : l.z_.Vw(i, { - type: "icon", - cb: function () { - o.TQ() - } - })) - }(A) - } - , - A.prototype.hW = function (A, i, g) { - var I = this; - this.parent.jQ.XQ(new LoadDynamicsTask(this.parent.vn, this.MW.ZL, this.R_, this.z_, A, g, function (A) { - I.emit("dynamicTextVerticeLoadedByTile", { - data: A.data, - id: g.id - }) - } - ), void 0, !0), - this.parent.yY.setNeedUpdate(!0) - } - , - A.prototype.wW = function (A) { - for (var i = this.hD, g = 0, I = 0, t = A = void 0 === A ? [] : A; I < t.length; I++) { - var B = t[I]; - -1 !== i.indexOf(B) && g++ - } - return g === A.length - } - , - A - }(polyfill.Event), LoadDynamicsTask = function () { - function A(A, i, g, I, t, B, Q) { - this.vn = A, - this.ZL = i, - this.R_ = g, - this.z_ = I, - this.data = t, - this.params = B, - this.cb = Q, - this.type = "LoadDynamicsTask", - this.offset = 0, - this.result = [] - } - return A.prototype.play = function (A) { - for (var i = A, g = Date.now(); 0 < i && this.offset !== this.data.length;) { - var I, t = [], B = this.data[this.offset], Q = B.tile, C = B.SW, e = (B.gW, - B.tag), o = Object.keys(C).length, E = {}, h = 0; - if (0 === o) - t.push({ - data: Q.zo - }); - else { - for (var a in C) - C.hasOwnProperty(a) && (I = C[a], - I = new polyfill.eG({ - R_: this.R_, - z_: this.z_ - }).Ns(I, { - ZL: this.ZL, - zoom: Q.zo.z, - from: "inner", - center: Q.localCoord.center - }), - E[a] = new polyfill.La(Q.zo, I), - ++h === o) && (a = this.hQ(Q, this.ZL), - t.push({ - data: E, - XE: a, - tag: e - })); - this.offset++, - this.cb({ - data: t - }), - i = A - (Date.now() - g) - } - } - return this.offset, - this.data.length, - this.result - } - , - Object.defineProperty(A.prototype, "status", { - get: function () { - return this.offset >= this.data.length ? polyfill.vY.finish : polyfill.vY.pause - }, - eb: !1, - nb: !0 - }), - A.prototype.hQ = function (A, i) { - if (A) - for (var g = this.SQ(A) || [], I = 0, t = g = new LabelFormatMap$1[A.type]({ - vn: this.vn - }).DQ(g, { - zoom: i - }); I < t.length; I++) { - var B = t[I] - , Q = B.CO; - B.EG || (B.EG = {}); - for (var C = 0, e = Q; C < e.length; C++) { - var o = e[C] - , E = this.R_.mz(o); - B.EG[o] = E - } - } - return g - } - , - A.prototype.SQ = function (A) { - return A.data && A.data.roadName || A.road - } - , - A - }(), InnerLabelsSourceWorker = function () { - function A(A) { - this.parent = A, - this.Mf = A.R_, - this.ac = A.z_ - } - return A.prototype.loadData = function (t, B) { - var Q = this - , A = t.id === polyfill.n0.nebulaLabel ? polyfill.n0.nebula : t.id; - (A = this.parent.dQ(A)) && A.YE ? A.YE(function (A, i) { - i.GW; - var g = i.cb - , I = i.ZL - , i = i.optimalZoom; - polyfill.isEmpty(A) ? B && B({}) : Q.parent.yw.iW(A, { - ZL: I, - optimalZoom: i, - id: t.id, - cb: function (A) { - B(A), - g && g() - } - }) - }, t) : B && B({}) - } - , - A - }(), StaticSourceID, EnumTextureIndex, ImageStatus, noop = (function (A) { - A.nebula = "nebula", - A.nebulaLabel = "nebulaLabel" - }(StaticSourceID = StaticSourceID || {}), - function (A) { - A[A.dynamic = 0] = "dynamic", - A[A.icon = 1] = "icon" - }(EnumTextureIndex = EnumTextureIndex || {}), - function (A) { - A.BLOB = "blob", - A.TOLOAD = "toload", - A.LOADING = "loading", - A.LOADED = "loaded", - A.UNLOADED = "unloaded", - A.ERROR = "error", - A.RELOADING = "reloading", - A.UNCOMBINED = "uncombined", - A.COMBINING = "combining", - A.COMBINED = "combined" - }(ImageStatus = ImageStatus || {}), - function (A) { } - ), XHR = { - send: function (A, i) { - void 0 === i && (i = {}); - var g = new XMLHttpRequest - , t = void 0 === (I = i.qw) ? noop : I - , B = void 0 === (I = i.Aw) ? noop : I - , I = i.Me - , Q = i.method - , i = i.content; - return g.onreadystatechange = function () { - if (4 === g.readyState && 200 === g.status) { - var A = g.response; - try { - t(A) - } catch (A) { - B(A) - } - } else - 404 === g.status && (g.abort(), - B(Error("404"))) - } - , - g.onerror = function (A) { - g.abort(), - B(A) - } - , - g.open(Q || "GET", A, !0), - g.responseType = I || "json", - g.send(i || void 0), - g - } - }; - function parserFunc(A) { - var M = { - TS: function () { - this.PS = 0 - } - } - , mA = (M.TS.prototype.create = function (A) { - this.OS && this.PS === A || (this.OS = []), - this.PS = A, - this.FS = 0, - this.BS = 0 - } - , - M.TS.prototype.flush = function () { - var A = this.FS - this.BS; - if (0 !== A) { - for (; A--;) - this.ES.jS(this.OS[this.BS++]); - this.FS >= this.PS && (this.FS = 0), - this.BS = this.FS - } - } - , - M.TS.prototype.NS = function () { - this.flush(), - this.ES = null - } - , - M.TS.prototype.US = function (A) { - this.NS(), - this.ES = A - } - , - M.TS.prototype.init = function (A) { - A || (this.BS = 0, - this.FS = 0) - } - , - M.TS.prototype.WS = function (A, i) { - var g = this.FS - A - 1; - for (g < 0 && (g += this.PS); i--;) - g >= this.PS && (g = 0), - this.OS[this.FS++] = this.OS[g++], - this.FS >= this.PS && this.flush() - } - , - M.TS.prototype.GS = function (A) { - this.OS[this.FS++] = A, - this.FS >= this.PS && this.flush() - } - , - M.TS.prototype.HS = function (A) { - return (A = this.FS - A - 1) < 0 && (A += this.PS), - this.OS[A] - } - , - M.VS = function () { } - , - M.VS.prototype.US = function (A) { - this.ES = A - } - , - M.VS.prototype.NS = function () { - this.ES = null - } - , - M.VS.prototype.init = function () { - var A = 5; - for (this.ZS = 0, - this.YS = -1; A--;) - this.ZS = this.ZS << 8 | this.ES.JS() - } - , - M.VS.prototype.XS = function (A) { - for (var i, g = 0, I = A; I--;) - this.YS >>>= 1, - i = this.ZS - this.YS >>> 31, - this.ZS -= this.YS & i - 1, - g = g << 1 | 1 - i, - 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), - this.YS <<= 8); - return g - } - , - M.VS.prototype.qS = function (A, i) { - var g = A[i] - , I = (this.YS >>> 11) * g; - return (2147483648 ^ this.ZS) < (2147483648 ^ I) ? (this.YS = I, - A[i] += 2048 - g >>> 5, - 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), - this.YS <<= 8), - 0) : (this.YS -= I, - this.ZS -= I, - A[i] -= g >>> 5, - 0 == (4278190080 & this.YS) && (this.ZS = this.ZS << 8 | this.ES.JS(), - this.YS <<= 8), - 1) - } - , - M.QS = function (A, i) { - for (; i--;) - A[i] = 1024 - } - , - M.KS = function (A) { - this.tR = [], - this.iR = A - } - , - M.KS.prototype.init = function () { - M.QS(this.tR, 1 << this.iR) - } - , - M.KS.prototype.decode = function (A) { - for (var i = 1, g = this.iR; g--;) - i = i << 1 | A.qS(this.tR, i); - return i - (1 << this.iR) - } - , - M.KS.prototype.eR = function (A) { - for (var i, g = 1, I = 0, t = 0; t < this.iR; ++t) - g = g << 1 | (i = A.qS(this.tR, g)), - I |= i << t; - return I - } - , - M.nR = function (A, i, g, I) { - for (var t, B = 1, Q = 0, C = 0; C < I; ++C) - B = B << 1 | (t = g.qS(A, i + B)), - Q |= t << C; - return Q - } - , - M.oR = function () { - this.rR = [], - this.aR = [], - this.sR = [], - this.hR = new M.KS(8), - this.lR = 0 - } - , - M.oR.prototype.create = function (A) { - for (; this.lR < A; ++this.lR) - this.aR[this.lR] = new M.KS(3), - this.sR[this.lR] = new M.KS(3) - } - , - M.oR.prototype.init = function () { - var A = this.lR; - for (M.QS(this.rR, 2); A--;) - this.aR[A].init(), - this.sR[A].init(); - this.hR.init() - } - , - M.oR.prototype.decode = function (A, i) { - return 0 === A.qS(this.rR, 0) ? this.aR[i].decode(A) : 0 === A.qS(this.rR, 1) ? 8 + this.sR[i].decode(A) : 16 + this.hR.decode(A) - } - , - M.fR = function () { - this.uR = [] - } - , - M.fR.prototype.init = function () { - M.QS(this.uR, 768) - } - , - M.fR.prototype.cR = function (A) { - for (var i = 1; (i = i << 1 | A.qS(this.uR, i)) < 256;) - ; - return 255 & i - } - , - M.fR.prototype.dR = function (A, i) { - var g, I, t = 1; - do { - if (g = i >> 7 & 1, - i <<= 1, - t = t << 1 | (I = A.qS(this.uR, (1 + g << 8) + t)), - g !== I) { - for (; t < 256;) - t = t << 1 | A.qS(this.uR, t); - break - } - } while (t < 256); - return 255 & t - } - , - M.pR = function () { } - , - M.pR.prototype.create = function (A, i) { - var g; - if (!this.vR || this.mR !== i || this.yR !== A) - for (this.yR = A, - this.xR = (1 << A) - 1, - this.mR = i, - this.vR = [], - g = 1 << this.mR + this.yR; g--;) - this.vR[g] = new M.fR - } - , - M.pR.prototype.init = function () { - for (var A = 1 << this.mR + this.yR; A--;) - this.vR[A].init() - } - , - M.pR.prototype.bR = function (A, i) { - return this.vR[((A & this.xR) << this.mR) + ((255 & i) >>> 8 - this.mR)] - } - , - M.gR = function () { - this.wR = new M.TS, - this._R = new M.VS, - this.kR = [], - this.MR = [], - this.SR = [], - this.RR = [], - this.zR = [], - this.CR = [], - this.AR = [], - this.IR = [], - this.$R = new M.KS(4), - this.LR = new M.oR, - this.DR = new M.oR, - this.TR = new M.pR, - this.PR = -1, - this.OR = -1, - this.AR[0] = new M.KS(6), - this.AR[1] = new M.KS(6), - this.AR[2] = new M.KS(6), - this.AR[3] = new M.KS(6) - } - , - M.gR.prototype.FR = function (A) { - return !(A < 0 || (this.PR !== A && (this.PR = A, - this.OR = Math.max(this.PR, 1), - this.wR.create(Math.max(this.OR, 4096))), - 0)) - } - , - M.gR.prototype.BR = function (A, i, g) { - var I = 1 << g; - return !(8 < A || 4 < i || 4 < g || (this.TR.create(i, A), - this.LR.create(I), - this.DR.create(I), - this.jR = I - 1, - 0)) - } - , - M.gR.prototype.init = function () { - var A = 4; - for (this.wR.init(!1), - M.QS(this.kR, 192), - M.QS(this.CR, 192), - M.QS(this.MR, 12), - M.QS(this.SR, 12), - M.QS(this.RR, 12), - M.QS(this.zR, 12), - M.QS(this.IR, 114), - this.TR.init(); A--;) - this.AR[A].init(); - this.LR.init(), - this.DR.init(), - this.$R.init(), - this._R.init() - } - , - M.gR.prototype.decode = function (A, i, g) { - var I, t, B, Q, C = 0, e = 0, o = 0, E = 0, h = 0, a = 0, l = 0; - for (this._R.US(A), - this.wR.US(i), - this.init(); g < 0 || a < g;) - if (Q = a & this.jR, - 0 === this._R.qS(this.kR, (C << 4) + Q)) - B = this.TR.bR(a++, l), - l = 7 <= C ? B.dR(this._R, this.wR.HS(e)) : B.cR(this._R), - this.wR.GS(l), - C = C < 4 ? 0 : C - (C < 10 ? 3 : 6); - else { - if (1 === this._R.qS(this.MR, C)) - (I = 0) === this._R.qS(this.SR, C) ? 0 === this._R.qS(this.CR, (C << 4) + Q) && (C = C < 7 ? 9 : 11, - I = 1) : (0 === this._R.qS(this.RR, C) ? t = o : (0 === this._R.qS(this.zR, C) ? t = E : (t = h, - h = E), - E = o), - o = e, - e = t), - 0 === I && (I = 2 + this.DR.decode(this._R, Q), - C = C < 7 ? 8 : 11); - else if (h = E, - E = o, - o = e, - I = 2 + this.LR.decode(this._R, Q), - C = C < 7 ? 7 : 10, - 4 <= (B = this.AR[I <= 5 ? I - 2 : 3].decode(this._R))) { - if (e = (2 | 1 & B) << (Q = (B >> 1) - 1), - B < 14) - e += M.nR(this.IR, e - B - 1, this._R, Q); - else if ((e = (e += this._R.XS(Q - 4) << 4) + this.$R.eR(this._R)) < 0) { - if (-1 === e) - break; - return !1 - } - } else - e = B; - if (a <= e || e >= this.OR) - return !1; - this.wR.WS(e, I), - a += I, - l = this.wR.HS(0) - } - return this.wR.flush(), - this.wR.NS(), - this._R.NS(), - !0 - } - , - M.gR.prototype.ER = function (A) { - var i; - return !(A.size < 5 || (i = A.JS(), - !this.BR(i % 9, (i = ~~(i / 9)) % 5, ~~(i / 5)))) && (i = A.JS(), - i = (i = (i |= A.JS() << 8) | A.JS() << 16) + 16777216 * A.JS(), - this.FR(i)) - } - , - M.NR = function (A, i) { - var g, I = new M.gR; - if (!I.ER(A)) - throw new Error("Incorrect stream properties"); - if (g = A.JS(), - g = ((g |= A.JS() << 8) | A.JS() << 16) + 16777216 * A.JS(), - A.JS(), - A.JS(), - A.JS(), - A.JS(), - I.decode(A, i, g)) - return !0; - throw new Error("Error in data stream") - } - , - 1e-9); - function qA(A, i, g) { - for (var I, e, t = A.subarray(i, g), B = 0, Q = "", C = 0, B = 0; B < t.length;) - (e = t[B]) >>> 7 == 0 ? ("0" !== (I = String.fromCharCode(t[B])).charCodeAt(0).toString(16) && (Q += I), - B += 1) : 252 == (252 & e) ? (C = (3 & t[B]) << 30, - C = (C = (C = (C = (C |= (63 & t[B + 1]) << 24) | (63 & t[B + 2]) << 18) | (63 & t[B + 3]) << 12) | (63 & t[B + 4]) << 6) | 63 & t[B + 5], - Q += String.fromCharCode(C), - B += 6) : 248 == (248 & e) ? (C = (7 & t[B]) << 24, - C = (C = (C = (C |= (63 & t[B + 1]) << 18) | (63 & t[B + 2]) << 12) | (63 & t[B + 3]) << 6) | 63 & t[B + 4], - Q += String.fromCharCode(C), - B += 5) : 240 == (240 & e) ? (C = (15 & t[B]) << 18, - C = (C = (C |= (63 & t[B + 1]) << 12) | (63 & t[B + 2]) << 6) | 63 & t[B + 3], - Q += String.fromCharCode(C), - B += 4) : 224 == (224 & e) ? (C = (31 & t[B]) << 12, - C = (C |= (63 & t[B + 1]) << 6) | 63 & t[B + 2], - Q += String.fromCharCode(C), - B += 3) : 192 == (192 & e) ? (C = (63 & t[B]) << 6, - C |= 63 & t[B + 1], - Q += String.fromCharCode(C), - B += 2) : ("0" !== (I = String.fromCharCode(t[B])).charCodeAt(0).toString(16) && (Q += I), - B += 1); - return Q.trim() - } - var I = new RegExp("^[+\\-]?[0-1]*[.]?[0-1]*$", "gi"); - function WA(A, i) { - A = A.toString(), - i = i.toString(), - A = new Array(32 - A.length + 1).join("0") + A, - i = new Array(32 - i.length + 1).join("0") + i; - var g = I; - return g.lastIndex = 0, - (i = (i + A).toString().match(g)) ? (A = -1 === i[A = 0].indexOf(".") ? parseInt(i, 2) : A).toString(36).toUpperCase() : "error" - } - A.getUnifyJson = function (A) { - var i = []; - if (A instanceof ArrayBuffer) { - var g = new DataView(A) - , I = 0 - , t = g.getInt16(I += 4, !1); - I += 2; - try { - for (; 0 < t;) { - I += 4; - for (var B = g.getUint8(I), Q = (I += 1, - new ArrayBuffer(B)), C = new Uint8Array(Q), e = 0; e < B; e++) - C[e] = g.getUint8(I), - I += 1; - var o = qA(C, 0, B) - , E = (I += 2, - g.getInt8(I)) - , h = (I += 1, - 0 !== E && ((G = {}).status = E, - G.building = {}, - G.floor = {}, - G.id = o, - i.push(G)), - g.getInt32(I, !1)) - , a = (I += 4, - g.getInt32(I, !0)) - , l = (I += 4, - h - a); - if (0 !== a) { - for (var n = 2078870821, s = 8 * Math.ceil(a / 8), r = a % 8, w = new ArrayBuffer(s), c = new Int32Array(w), y = 0; 8 <= a;) { - var x = g.getInt32(I, !0) - , d = g.getInt32(I + 4, !0) - , p = x ^ n - , D = 292664 ^ d; - c[y] = p, - c[y + 1] = D, - y += 2, - I += 8, - a -= 8 - } - 0 !== a && (x = g.getInt32(I, !0), - d = g.getInt32(I + 4, !0), - p = x ^ n, - D = 292664 ^ d, - c[y] = p, - c[y + 1] = D, - I += a); - for (var f = new Uint8Array(w), R = f.length, u = R - 8 + r, v = new Uint8Array(u), e = 0; e < u; e++) - v[e] = f[e]; - for (e = 0; e < r; e++) - v[u - r + e] = f[R - 1 - e]; - for (var G, S = { - data: [], - offset: 0, - jS: function (A) { - this.data[this.offset++] = A - } - }, F = (M.NR({ - data: v, - offset: 0, - JS: function () { - return this.data[this.offset++] - } - }, S), - S.data), u = F.length, b = new ArrayBuffer(u), k = new Int8Array(b), e = 0; e < u; e++) - k[e] = F[e]; - (G = function (A) { - for (var i = {}, g = {}, I = new Uint8Array(A), t = new DataView(A), B = 0, J = t.getInt32(B = B + 4 + 4, !0), A = t.getInt32(B = B + 4 + 4, !0), A = WA(A = t.getUint32(B = B + (4 + A) + 4, !0).toString(2), t.getUint32(B + 4, !0).toString(2)), Q = qA(I, B += 8, B + 64), C = qA(I, B += 64, B + 64), e = t.getInt8(B += 64), U = qA(I, B += 1, B + 8), L = t.getInt16(B += 8, !0), H = t.getInt16(B + 2, !0), o = t.getFloat32(B += 4, !0), E = t.getFloat32(B + 4, !0), K = t.getFloat32(B += 8, !0), m = t.getFloat32(B + 4, !0), q = t.getFloat32(B += 8, !0), W = t.getFloat32(B + 4, !0), h = t.getInt32(B += 8, !0), a = t.getInt32(B += 4, !0), l = t.getInt32(B += 4, !0), n = (B += 4, - []), s = 0; s < h; s++) - n.push(t.getInt32(B, !0)), - B += 4; - for (var r = [], s = 0; s < l; s++) - r.push(t.getInt32(B, !0)), - B += 4; - for (var w = [], s = 0; s < h; s++) { - var Z = qA(I, B, B + 48); - w.push(Z), - B += 48 - } - for (var c = [], s = 0; s < h; s++) { - var j = qA(I, B, B + 8); - c.push(j), - B += 8 - } - for (var y = [], s = 0; s < a; s++) { - var x = t.getInt32(B, !0) * mA + E - , d = t.getInt32(B + 4, !0) * mA + o; - y.push([x, d]), - B += 8 - } - A = { - type: "Feature", - geometry: { - type: "Polygon", - coordinates: [y] - }, - properties: { - pid: A, - name_cn: Q, - name_en: C, - default_floor: e, - buildingtype: U, - building_poi_style: [L, H], - centerPoint: [E, o], - left_bottom_Point: [K, m], - width: q, - height: W, - numberofFloor: h, - numberofGeoPoints: a, - park_floor_count: l, - floor_indexs: n, - park_floors: r, - floor_names: w, - floor_nonas: c - } - }; - for (var p = 0; p < J; p++) { - for (var X = qA(I, B, B + 8), D = (B += 8, - t.getInt8(B)), z = (B += 1, - g[D] = { - floor: {}, - shops: [], - pubs: [], - cons: [] - }, - t.getInt16(B, !0)), T = t.getInt16(B + 2, !0), O = (B += 4, - t.getInt16(B, !0)), V = t.getInt16(B + 2, !0), P = (B += 4, - t.getInt16(B, !0)), _ = t.getInt16(B + 2, !0), f = (B += 4, - t.getInt32(B, !0)), R = (B += 4, - t.getInt32(B, !0)), u = (B += 4, - t.getInt32(B, !0)), v = (B += 4, - t.getInt32(B, !0)), G = (B += 4, - []), S = 0; S < v; S++) { - for (var $ = t.getInt32(B, !0), F = (B += 4, - []), b = 0; b < $; b++) - x = t.getInt32(B, !0) * mA + E, - d = t.getInt32(B + 4, !0) * mA + o, - F.push([x, d]), - B += 8; - G.push(F) - } - for (var k = "Polygon", M = G[0], k = (1 < v && (k = "MultiPolygon", - M = G), - { - type: "Feature", - geometry: { - type: k, - coordinates: [M] - }, - properties: { - namecode: X, - index: D, - floor_region_type: [z, T], - unhighlighted_floor_line_style: [O, V], - highlighted_floor_line_style: [P, _], - numberofShopCount: f, - numberofPubCount: R, - numberofConCount: u, - floor_area_count: v - } - }), AA = (g[D].floor = k, - []), iA = 0; iA < f; iA++) { - var gA = qA(I, B, B + 128); - B += 128; - for (var IA = WA(t.getUint32(B, !0).toString(2), t.getUint32(B + 4, !0).toString(2)), tA = qA(I, B += 8, B + 24), BA = qA(I, B += 24, B + 12), QA = (B += 12, - t.getInt32(B, !0)), CA = (B += 4, - t.getFloat32(B, !0)), eA = (B += 4, - t.getInt8(B)), oA = (B += 1, - t.getInt16(B, !0)), EA = t.getInt16(B + 2, !0), hA = (B += 4, - t.getInt16(B, !0)), aA = t.getInt16(B + 2, !0), lA = (B += 4, - t.getInt32(B, !0) * mA + E), nA = t.getInt32(B + 4, !0) * mA + o, sA = (B += 8, - t.getInt32(B, !0)), rA = (B += 4, - []), S = 0; S < sA; S++) - x = t.getInt32(B, !0) * mA + E, - d = t.getInt32(B + 4, !0) * mA + o, - rA.push([x, d]), - B += 8; - AA.push({ - type: "Feature", - geometry: { - type: "Polygon", - coordinates: [rA] - }, - properties: { - name: gA, - pid: IA, - cpid: tA, - logo: BA, - area: QA, - rank: CA, - height: eA, - poitype: [oA, EA], - regiontype: [hA, aA], - font_anthor_point: [lA, nA], - shop_point_number: sA - } - }) - } - g[D].shops = AA; - for (var wA = [], cA = 0; cA < R; cA++) { - var yA = qA(I, B, B + 24); - B += 24; - var xA = WA(t.getUint32(B, !0).toString(2), t.getUint32(B + 4, !0).toString(2)) - , dA = qA(I, B += 8, B + 48) - , pA = (B += 48, - t.getFloat32(B, !0)) - , DA = (B += 4, - t.getInt16(B, !0)) - , fA = t.getInt16(B + 2, !0) - , x = (B += 4, - t.getInt32(B, !0) * mA + E) - , d = t.getInt32(B + 4, !0) * mA + o; - B += 8, - wA.push({ - type: "Feature", - geometry: { - type: "Point", - coordinates: [x, d] - }, - properties: { - cpid: yA, - pid: xA, - name: dA, - rank: pA, - poitype: [DA, fA] - } - }) - } - g[D].pubs = wA; - for (var RA = [], uA = 0; uA < u; uA++) { - var vA = qA(I, B, B + 24); - B += 24; - var GA = WA(t.getUint32(B, !0).toString(2), t.getUint32(B + 4, !0).toString(2)) - , SA = qA(I, B += 8, B + 48) - , FA = (B += 48, - t.getFloat32(B, !0)) - , bA = (B += 4, - t.getInt16(B, !0)) - , kA = t.getInt16(B + 2, !0) - , x = (B += 4, - t.getInt32(B, !0) * mA + E) - , d = t.getInt32(B + 4, !0) * mA + o; - B += 8, - RA.push({ - type: "Feature", - geometry: { - type: "Point", - coordinates: [x, d] - }, - properties: { - cpid: vA, - pid: GA, - name: SA, - rank: FA, - poitype: [bA, kA] - } - }) - } - g[D].cons = RA - } - for (var Q = t.getInt32(B += 4, !0), MA = t.getInt32(B += 4 + Q, !0), YA = (B += 4, - []), s = 0; s < MA; s++) - x = t.getInt32(B, !0) * mA + E, - d = t.getInt32(B + 4, !0) * mA + o, - YA.push([x, d]), - B += 8; - A.properties.outside_outline = YA; - var Y, N = {}; - for (Y in g) - if (g.hasOwnProperty(Y)) { - for (N.floor = g[Y].floor, - b = 0; b < g[Y].shops.length; b++) { - var NA = t.getInt16(B, !0) - , JA = (B += 2, - t.getInt16(B, !0)); - B += 2, - g[Y].shops[b].properties.zoom_min = NA, - g[Y].shops[b].properties.zoom_max = JA - } - for (N.shops = g[Y].shops, - b = 0; b < g[Y].pubs.length; b++) { - var UA = t.getInt16(B, !0) - , LA = (B += 2, - t.getInt16(B, !0)); - B += 2, - g[Y].pubs[b].properties.zoom_min = UA, - g[Y].pubs[b].properties.zoom_max = LA - } - for (N.pubs = g[Y].pubs, - b = 0; b < g[Y].cons.length; b++) { - var HA = t.getInt16(B, !0) - , KA = (B += 2, - t.getInt16(B, !0)); - B += 2, - g[Y].cons[b].properties.zoom_min = HA, - g[Y].cons[b].properties.zoom_max = KA - } - N.cons = g[Y].cons, - i.floor = N - } - return C = t.getInt32(B += 4, !0), - e = t.getInt8(B += 4 + C), - B += 1, - A.properties.UR = e, - i.building = A, - i - }(b)).status = E, - G.id = o, - i.push(G) - } - I += l, - --t - } - } catch (A) { } - } else - i.push(G = { - status: 3, - building: {}, - floor: {}, - id: "" - }); - return i - } - } - var obj = { - WR: parserFunc - }, IndoorMapBinDataParser = (parserFunc(obj), - obj), OverlayWorker = function () { - function A(A) { - this.parent = A - } - return A.prototype.setPathWebgl = function (A, i) { - try { - for (var g = new polyfill.K_, I = new polyfill.J_, t = new polyfill.oE, B = new polyfill.oE, Q = A.data, C = this.EW(Q[0][0][0]), e = 0, o = Q; e < o.length; e++) { - for (var E = o[e], h = C.center, a = [], l = [], n = E[0], s = [], r = [], w = [], c = 0, y = n; c < y.length; c++) { - var x = y[c] - , d = polyfill.ProjectionManager.getProjection("EPSG:3857").project(x[0], x[1]); - a.push(d[0] - h[0], d[1] - h[1]), - l.push(x) - } - for (var p = 1, D = E.length; p < D; p++) { - for (var f = E[p], R = [], u = [], v = 0, G = f; v < G.length; v++) - x = G[v], - polyfill.Bs(x) ? (R.push(x.pos[0] - h[0], x.pos[1] - h[1]), - u.push(x.toJSON())) : (d = polyfill.ProjectionManager.getProjection("EPSG:3857").project(x[0], x[1]), - R.push(d[0] - h[0], d[1] - h[1]), - u.push(x)); - s.push(R), - r.push(u) - } - for (var S = [], p = 0, D = a.length; p < D; p += 2) - S.push(polyfill.xd(a[p], a[p + 1])); - polyfill.equals(S[0], S[S.length - 1]) || S.push(polyfill.Ex(S[0])); - for (var F = a.length, p = 0; p < s.length; p++) - w.push(F / 2), - F += s[p].length, - polyfill.Util.Ig(a, s[p]); - for (var b = g.Nx(a, w), k = (t.add(b), - I.Nx(S, { - lineJoin: "miter" - }).Iw), p = 0; p < s.length; p++) { - for (var M = [], Y = 0, D = (R = s[p]).length; Y < D; Y += 2) - M.push(polyfill.xd(R[Y], R[Y + 1])); - M.push(polyfill.xd(R[0], R[1])), - k += I.Nx(M, { - lineJoin: "miter" - }).Iw - } - B.add(k) - } - i(null, { - $c: I, - Dc: g, - Sx: C, - Oc: t, - Uc: B - }) - } catch (A) { - i(A.message) - } - } - , - A.prototype.AW = function (A, i) { - try { - var g = {} - , I = IndoorMapBinDataParser.getUnifyJson(A); - if (!I) - return !1; - for (var t, B, Q, C, e, o, E, h = 0; h < I.length; h++) - 0 === I[h].status && (B = (t = I[h]).floor, - Q = t.building, - C = t.status, - e = t.id, - o = B.floor.properties.index, - g[e] || (g[e] = {}), - g[e].building = Q, - g[e].data || (g[e].data = {}), - E = { - floor: B, - status: C, - id: e, - building: Q - }, - g[e].data[o] = E); - i(null, g) - } catch (A) { - i(A.message, null) - } - } - , - A.prototype.EW = function (A) { - if (A) - return A = polyfill.Bs(A) ? polyfill.ProjectionManager.getProjection("EPSG:3857").project(A.KL, A.kT) : polyfill.ProjectionManager.getProjection("EPSG:3857").project(A[0], A[1]), - polyfill.lcs.getLocalByCoord(A) - } - , - A - }(), wasm, heap = new Array(32).fill(void 0); - function getObject(A) { - return heap[A] - } - heap.push(void 0, null, !0, !1); - var heap_next = heap.length; - function dropObject(A) { - A < 36 || (heap[A] = heap_next, - heap_next = A) - } - function takeObject(A) { - getObject(A), - dropObject(A) - } - var cachedTextDecoder = self.TextDecoder ? new TextDecoder("utf-8", { - ignoreBOM: !0, - fatal: !0 - }) : {} - , cachegetUint8Memory0 = (cachedTextDecoder.decode && cachedTextDecoder.decode(), - null); - function getUint8Memory0() { - return cachegetUint8Memory0 = null !== cachegetUint8Memory0 && cachegetUint8Memory0.buffer === wasm.memory.buffer ? cachegetUint8Memory0 : new Uint8Array(wasm.memory.buffer) - } - function getStringFromWasm0(A, i) { - return cachedTextDecoder.decode(getUint8Memory0().subarray(A, A + i)) - } - var WASM_VECTOR_LEN = 0 - , cachedTextEncoder = self.TextEncoder ? new TextEncoder : {} - , encodeString = "function" == typeof cachedTextEncoder.encodeInto ? function (A, i) { - return cachedTextEncoder.encodeInto(A, i) - } - : function (A, i) { - var g = cachedTextEncoder.encode(A); - return i.set(g), - { - read: A.length, - jW: g.length - } - } - ; - function passStringToWasm0(A, i, g) { - var I; - if (void 0 === g) - return I = i((t = cachedTextEncoder.encode(A)).length), - getUint8Memory0().subarray(I, I + t.length).set(t), - WASM_VECTOR_LEN = t.length, - I; - for (var t, B = A.length, Q = i(B), C = getUint8Memory0(), e = 0; e < B; e++) { - var o = A.charCodeAt(e); - if (127 < o) - break; - C[Q + e] = o - } - return e !== B && (Q = g(Q, B, B = e + 3 * (A = 0 !== e ? A.slice(e) : A).length), - t = getUint8Memory0().subarray(Q + e, Q + B), - e += encodeString(A, t).jW), - WASM_VECTOR_LEN = e, - Q - } - var cachegetInt32Memory0 = null; - function getInt32Memory0() { - return cachegetInt32Memory0 = null !== cachegetInt32Memory0 && cachegetInt32Memory0.buffer === wasm.memory.buffer ? cachegetInt32Memory0 : new Int32Array(wasm.memory.buffer) - } - function addHeapObject(A) { - heap_next === heap.length && heap.push(heap.length + 1); - var i = heap_next; - return heap_next = heap[i], - heap[i] = A, - i - } - var RSAPublicKeyPair = function () { - function g() { - var A = wasm.rsapublickeypair_new(); - return g.XW(A) - } - return g.XW = function (A) { - var i = Object.create(g.prototype); - return i.UW = A, - i - } - , - g.prototype.VW = function () { - var A = this.UW; - this.UW = 0, - wasm.__wbg_rsapublickeypair_free(A) - } - , - g.prototype.init = function () { - wasm.rsapublickeypair_init(this.UW) - } - , - g.prototype.encode = function (A) { - try { - var i = passStringToWasm0(A, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc) - , g = WASM_VECTOR_LEN; - return wasm.rsapublickeypair_encode(8, this.UW, i, g), - getStringFromWasm0(I = getInt32Memory0()[2], t = getInt32Memory0()[3]) - } finally { - var I = getInt32Memory0()[2] - , t = getInt32Memory0()[3]; - wasm.__wbindgen_free(I, t) - } - } - , - g - }(); - function loadSync(A, i) { - var g = new WebAssembly.Module(A); - return { - module: A, - instance: new WebAssembly.Instance(g, i) - } - } - function initSync(A) { - var i = { - wbg: {} - }; - i.wbg.__wbg_new_59cb74e423758ede = function () { - return addHeapObject(new Error) - } - , - i.wbg.__wbg_stack_558ba5917b466edd = function (A, i) { - var i = passStringToWasm0(getObject(i).stack, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc) - , g = WASM_VECTOR_LEN; - getInt32Memory0()[A / 4 + 1] = g, - getInt32Memory0()[A / 4 + 0] = i - } - , - i.wbg.__wbg_error_4bb6c2a97407129a = function (A, i) { - try { - console.error(getStringFromWasm0(A, i)) - } finally { - wasm.__wbindgen_free(A, i) - } - } - , - i.wbg.__wbindgen_object_drop_ref = function (A) { - takeObject(A) - } - , - i.wbg.__wbindgen_throw = function (A, i) { - throw new Error(getStringFromWasm0(A, i)) - } - , - A = loadSync(A, i).instance, - wasm = A.exports - } - var data = "AGFzbQEAAAABaBBgAn9/AGACf38Bf2ADf39/AX9gA39/fwBgAX8AYAF/AX9gBH9/f38AYAAAYAV/f39/fwF/YAF/AX5gBX9/f39/AGAAAX9gBH9/f38Bf2AGf39/f39/AGAHf39/f39/fwF/YAJ+fwF/AqABBQN3YmcaX193YmdfbmV3XzU5Y2I3NGU0MjM3NThlZGUACwN3YmccX193Ymdfc3RhY2tfNTU4YmE1OTE3YjQ2NmVkZAAAA3diZxxfX3diZ19lcnJvcl80YmI2YzJhOTc0MDcxMjlhAAADd2JnGl9fd2JpbmRnZW5fb2JqZWN0X2Ryb3BfcmVmAAQDd2JnEF9fd2JpbmRnZW5fdGhyb3cAAAPSAdABAAUECgIAAggEAQEHAgMBAwAIAAQABQYEAAABBQ4DAAMPAwEAAQMACAELAAMGCgAGAwYBAwYBAAMAAAEBAwEBAAUGAAAFBwQBBgoDBAQBCAMDAwEBAwMBAQEBBQAAAQAFAwcAAAEGAAAFAwAAAgwAAwMNAwcAAAAEBAACCwwFBAAFAQABAAADAAAAAAMHAwAFAAAAAAIEBAUEBAMABAQEBQAAAQEBAwYFDAAAAAIBBAEBAwIDAQUFAwAHAQECAQcHAAEAAQEHAAkBBQEFCQkEAAQFAXABS0sFAwEAEQYJAX8BQYCAwAALB7IBCAZtZW1vcnkCABtfX3diZ19yc2FwdWJsaWNrZXlwYWlyX2ZyZWUAngEUcnNhcHVibGlja2V5cGFpcl9uZXcAgAEVcnNhcHVibGlja2V5cGFpcl9pbml0AIMBF3JzYXB1YmxpY2tleXBhaXJfZW5jb2RlADERX193YmluZGdlbl9tYWxsb2MAggESX193YmluZGdlbl9yZWFsbG9jAJkBD19fd2JpbmRnZW5fZnJlZQCwAQmEAQEAQQELStMBaKAB0wHMAdMBN9MBywHLAcsB0wGKAZgB0wFNzwHQAdMB0wFGzQHOAcIB0wGpAdMBtwEpYleGAaMBhgGGAdQB0wGxARNbiAHRAagBmgFppwF8xgGaASgzmwHSAWylAcwBWMABuQFMDr8BtAGyAVLTAdEBES1ewQHIAVzJAQqhtQLQAf05Af0BfyMAQeABayICJAAgAkE4aiABQYABQQBBEEHsk8AAEHYgAkFAayACKAI4IAIoAjwQJiACQTBqIAFBgAFBEEEgQfyTwAAQdiACQdAAaiACKAIwIAIoAjQQJiACQShqIAFBgAFBIEEwQYyUwAAQdiACQeAAaiACKAIoIAIoAiwQJiACQSBqIAFBgAFBMEHAAEGclMAAEHYgAkHwAGogAigCICACKAIkECYgAkEYaiABQYABQcAAQdAAQayUwAAQdiACQYABaiACKAIYIAIoAhwQJiACQRBqIAFBgAFB0ABB4ABBvJTAABB2IAJBkAFqIAIoAhAgAigCFBAmIAJBCGogAUGAAUHgAEHwAEHMlMAAEHYgAkGgAWogAigCCCACKAIMECYgAiABQYABQfAAQYABQdyUwAAQdiACQbABaiACKAIAIAIoAgQQJiACKAJAIQogAigCRCELIAIoAkghDCACKAJMIQ0gAkHYAWoiASACQdgAaiIDKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBARBZIAIoAsABIQ4gAigCxAEhDyACKALIASEQIAIoAswBIREgASACQegAaiIEKQMANwMAIAIgAikDYDcD0AEgAkHAAWogAkHQAWpBAhBZIAIoAsABIRIgAigCxAEhEyACKALIASEUIAIoAswBIRUgASACQfgAaiIFKQMANwMAIAIgAikDcDcD0AEgAkHAAWogAkHQAWpBAxBZIAIoAsABIRYgAigCxAEhFyACKALIASEYIAIoAswBIRkgASACQYgBaiIGKQMANwMAIAIgAikDgAE3A9ABIAJBwAFqIAJB0AFqQQQQWSACKALAASEaIAIoAsQBIRsgAigCyAEhHCACKALMASEdIAEgAkGYAWoiBykDADcDACACIAIpA5ABNwPQASACQcABaiACQdABakEFEFkgAigCwAEhHiACKALEASEfIAIoAsgBISAgAigCzAEhISABIAJBqAFqIggpAwA3AwAgAiACKQOgATcD0AEgAkHAAWogAkHQAWpBBhBZIAIoAsABISIgAigCxAEhIyACKALIASEkIAIoAswBISUgASACQbgBaiIJKQMANwMAIAIgAikDsAE3A9ABIAJBwAFqIAJB0AFqQQcQWSACKALAASEmIAIoAsQBIScgAigCyAEhKCACKALMASEpIAEgAikDSDcDACACIAIpA0A3A9ABIAJBwAFqIAJB0AFqQQEQWiACKALAASEqIAIoAsQBISsgAigCyAEhLCACKALMASEtIAMoAgAhLiACKAJQIS8gAigCVCEwIAIoAlwhMSABIAQpAwA3AwAgAiACKQNgNwPQASACQcABaiACQdABakEBEFkgAigCwAEhMiACKALEASEzIAIoAsgBITQgAigCzAEhNSABIAUpAwA3AwAgAiACKQNwNwPQASACQcABaiACQdABakECEFkgAigCwAEhNiACKALEASE3IAIoAsgBITggAigCzAEhOSABIAYpAwA3AwAgAiACKQOAATcD0AEgAkHAAWogAkHQAWpBAxBZIAIoAsABITogAigCxAEhOyACKALIASE8IAIoAswBIT0gASAHKQMANwMAIAIgAikDkAE3A9ABIAJBwAFqIAJB0AFqQQQQWSACKALAASE+IAIoAsQBIT8gAigCyAEhQCACKALMASFBIAEgCCkDADcDACACIAIpA6ABNwPQASACQcABaiACQdABakEFEFkgAigCwAEhQiACKALEASFDIAIoAsgBIUQgAigCzAEhRSABIAkpAwA3AwAgAiACKQOwATcD0AEgAkHAAWogAkHQAWpBBhBZIAIoAsABIUYgAigCxAEhRyACKALIASFIIAIoAswBIUkgASACKQNINwMAIAIgAikDQDcD0AEgAkHAAWogAkHQAWpBAhBaIAIoAsABIUogAigCxAEhSyACKALIASFMIAIoAswBIU0gASADKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBARBaIAIoAsABIU4gAigCxAEhTyACKALIASFQIAIoAswBIVEgBCgCACFSIAIoAmAhUyACKAJkIVQgAigCbCFVIAEgBSkDADcDACACIAIpA3A3A9ABIAJBwAFqIAJB0AFqQQEQWSACKALAASFWIAIoAsQBIVcgAigCyAEhWCACKALMASFZIAEgBikDADcDACACIAIpA4ABNwPQASACQcABaiACQdABakECEFkgAigCwAEhWiACKALEASFbIAIoAsgBIVwgAigCzAEhXSABIAcpAwA3AwAgAiACKQOQATcD0AEgAkHAAWogAkHQAWpBAxBZIAIoAsABIV4gAigCxAEhXyACKALIASFgIAIoAswBIWEgASAIKQMANwMAIAIgAikDoAE3A9ABIAJBwAFqIAJB0AFqQQQQWSACKALAASFiIAIoAsQBIWMgAigCyAEhZCACKALMASFlIAEgCSkDADcDACACIAIpA7ABNwPQASACQcABaiACQdABakEFEFkgAigCwAEhZiACKALEASFnIAIoAsgBIWggAigCzAEhaSABIAIpA0g3AwAgAiACKQNANwPQASACQcABaiACQdABakEDEFogAigCwAEhaiACKALEASFrIAIoAsgBIWwgAigCzAEhbSABIAMpAwA3AwAgAiACKQNQNwPQASACQcABaiACQdABakECEFogAigCwAEhbiACKALEASFvIAIoAsgBIXAgAigCzAEhcSABIAQpAwA3AwAgAiACKQNgNwPQASACQcABaiACQdABakEBEFogAigCwAEhciACKALEASFzIAIoAsgBIXQgAigCzAEhdSAFKAIAIXYgAigCcCF3IAIoAnQheCACKAJ8IXkgASAGKQMANwMAIAIgAikDgAE3A9ABIAJBwAFqIAJB0AFqQQEQWSACKALAASF6IAIoAsQBIXsgAigCyAEhfCACKALMASF9IAEgBykDADcDACACIAIpA5ABNwPQASACQcABaiACQdABakECEFkgAigCwAEhfiACKALEASF/IAIoAsgBIYABIAIoAswBIYEBIAEgCCkDADcDACACIAIpA6ABNwPQASACQcABaiACQdABakEDEFkgAigCwAEhggEgAigCxAEhgwEgAigCyAEhhAEgAigCzAEhhQEgASAJKQMANwMAIAIgAikDsAE3A9ABIAJBwAFqIAJB0AFqQQQQWSACKALAASGGASACKALEASGHASACKALIASGIASACKALMASGJASABIAIpA0g3AwAgAiACKQNANwPQASACQcABaiACQdABakEEEFogAigCwAEhigEgAigCxAEhiwEgAigCyAEhjAEgAigCzAEhjQEgASADKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBAxBaIAIoAsABIY4BIAIoAsQBIY8BIAIoAsgBIZABIAIoAswBIZEBIAEgBCkDADcDACACIAIpA2A3A9ABIAJBwAFqIAJB0AFqQQIQWiACKALAASGSASACKALEASGTASACKALIASGUASACKALMASGVASABIAUpAwA3AwAgAiACKQNwNwPQASACQcABaiACQdABakEBEFogAigCwAEhlgEgAigCxAEhlwEgAigCyAEhmAEgAigCzAEhmQEgBigCACGaASACKAKAASGbASACKAKEASGcASACKAKMASGdASABIAcpAwA3AwAgAiACKQOQATcD0AEgAkHAAWogAkHQAWpBARBZIAIoAsABIZ4BIAIoAsQBIZ8BIAIoAsgBIaABIAIoAswBIaEBIAEgCCkDADcDACACIAIpA6ABNwPQASACQcABaiACQdABakECEFkgAigCwAEhogEgAigCxAEhowEgAigCyAEhpAEgAigCzAEhpQEgASAJKQMANwMAIAIgAikDsAE3A9ABIAJBwAFqIAJB0AFqQQMQWSACKALAASGmASACKALEASGnASACKALIASGoASACKALMASGpASABIAIpA0g3AwAgAiACKQNANwPQASACQcABaiACQdABakEFEFogAigCwAEhqgEgAigCxAEhqwEgAigCyAEhrAEgAigCzAEhrQEgASADKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBBBBaIAIoAsABIa4BIAIoAsQBIa8BIAIoAsgBIbABIAIoAswBIbEBIAEgBCkDADcDACACIAIpA2A3A9ABIAJBwAFqIAJB0AFqQQMQWiACKALAASGyASACKALEASGzASACKALIASG0ASACKALMASG1ASABIAUpAwA3AwAgAiACKQNwNwPQASACQcABaiACQdABakECEFogAigCwAEhtgEgAigCxAEhtwEgAigCyAEhuAEgAigCzAEhuQEgASAGKQMANwMAIAIgAikDgAE3A9ABIAJBwAFqIAJB0AFqQQEQWiACKALAASG6ASACKALEASG7ASACKALIASG8ASACKALMASG9ASAHKAIAIb4BIAIoApABIb8BIAIoApQBIcABIAIoApwBIcEBIAEgCCkDADcDACACIAIpA6ABNwPQASACQcABaiACQdABakEBEFkgAigCwAEhwgEgAigCxAEhwwEgAigCyAEhxAEgAigCzAEhxQEgASAJKQMANwMAIAIgAikDsAE3A9ABIAJBwAFqIAJB0AFqQQIQWSACKALAASHGASACKALEASHHASACKALIASHIASACKALMASHJASABIAIpA0g3AwAgAiACKQNANwPQASACQcABaiACQdABakEGEFogAigCwAEhygEgAigCxAEhywEgAigCyAEhzAEgAigCzAEhzQEgASADKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBBRBaIAIoAsABIc4BIAIoAsQBIc8BIAIoAsgBIdABIAIoAswBIdEBIAEgBCkDADcDACACIAIpA2A3A9ABIAJBwAFqIAJB0AFqQQQQWiACKALAASHSASACKALEASHTASACKALIASHUASACKALMASHVASABIAUpAwA3AwAgAiACKQNwNwPQASACQcABaiACQdABakEDEFogAigCwAEh1gEgAigCxAEh1wEgAigCyAEh2AEgAigCzAEh2QEgASAGKQMANwMAIAIgAikDgAE3A9ABIAJBwAFqIAJB0AFqQQIQWiACKALAASHaASACKALEASHbASACKALIASHcASACKALMASHdASABIAcpAwA3AwAgAiACKQOQATcD0AEgAkHAAWogAkHQAWpBARBaIAIoAsABId4BIAIoAsQBId8BIAIoAsgBIeABIAIoAswBIeEBIAgoAgAh4gEgAigCoAEh4wEgAigCpAEh5AEgAigCrAEh5QEgASAJKQMANwMAIAIgAikDsAE3A9ABIAJBwAFqIAJB0AFqQQEQWSACKALAASHmASACKALEASHnASACKALIASHoASACKALMASHpASABIAIpA0g3AwAgAiACKQNANwPQASACQcABaiACQdABakEHEFogAigCwAEh6gEgAigCxAEh6wEgAigCyAEh7AEgAigCzAEh7QEgASADKQMANwMAIAIgAikDUDcD0AEgAkHAAWogAkHQAWpBBhBaIAIoAsABIQMgAigCxAEh7gEgAigCyAEh7wEgAigCzAEh8AEgASAEKQMANwMAIAIgAikDYDcD0AEgAkHAAWogAkHQAWpBBRBaIAIoAsABIQQgAigCxAEh8QEgAigCyAEh8gEgAigCzAEh8wEgASAFKQMANwMAIAIgAikDcDcD0AEgAkHAAWogAkHQAWpBBBBaIAIoAsABIQUgAigCxAEh9AEgAigCyAEh9QEgAigCzAEh9gEgASAGKQMANwMAIAIgAikDgAE3A9ABIAJBwAFqIAJB0AFqQQMQWiACKALAASEGIAIoAsQBIfcBIAIoAsgBIfgBIAIoAswBIfkBIAEgBykDADcDACACIAIpA5ABNwPQASACQcABaiACQdABakECEFogAigCwAEhByACKALEASH6ASACKALIASH7ASACKALMASH8ASABIAgpAwA3AwAgAiACKQOgATcD0AEgAkHAAWogAkHQAWpBARBaIAIoAsABIQEgAigCxAEhCCACKALIASH9ASACKALMASH+ASAAQewAaiDpAUGAgYKEeHEg5QFBwICBggRxIOEBQaDAgIECcSDdAUGQoMCAAXEg2QFBiJCgwABxINUBQYSIkCBxINEBQYKEiBBxIM0BQYGChAhxcnJycnJycjYCACAAQegAaiDoAUGAgYKEeHEg4gFBwICBggRxIOABQaDAgIECcSDcAUGQoMCAAXEg2AFBiJCgwABxINQBQYSIkCBxINABQYKEiBBxIMwBQYGChAhxcnJycnJycjYCACAAQeQAaiDnAUGAgYKEeHEg5AFBwICBggRxIN8BQaDAgIECcSDbAUGQoMCAAXEg1wFBiJCgwABxINMBQYSIkCBxIM8BQYKEiBBxIMsBQYGChAhxcnJycnJycjYCACAAIOYBQYCBgoR4cSDjAUHAgIGCBHEg3gFBoMCAgQJxINoBQZCgwIABcSDWAUGIkKDAAHEg0gFBhIiQIHEgzgFBgoSIEHEgygFBgYKECHFycnJycnJyNgJgIABB3ABqIMkBQYCBgoR4cSDFAUHAgIGCBHEgwQFBoMCAgQJxIL0BQZCgwIABcSC5AUGIkKDAAHEgtQFBhIiQIHEgsQFBgoSIEHEgrQFBgYKECHFycnJycnJyNgIAIABB2ABqIMgBQYCBgoR4cSDEAUHAgIGCBHEgvgFBoMCAgQJxILwBQZCgwIABcSC4AUGIkKDAAHEgtAFBhIiQIHEgsAFBgoSIEHEgrAFBgYKECHFycnJycnJyNgIAIABB1ABqIMcBQYCBgoR4cSDDAUHAgIGCBHEgwAFBoMCAgQJxILsBQZCgwIABcSC3AUGIkKDAAHEgswFBhIiQIHEgrwFBgoSIEHEgqwFBgYKECHFycnJycnJyNgIAIAAgxgFBgIGChHhxIMIBQcCAgYIEcSC/AUGgwICBAnEgugFBkKDAgAFxILYBQYiQoMAAcSCyAUGEiJAgcSCuAUGChIgQcSCqAUGBgoQIcXJycnJycnI2AlAgAEHMAGogqQFBgIGChHhxIKUBQcCAgYIEcSChAUGgwICBAnEgnQFBkKDAgAFxIJkBQYiQoMAAcSCVAUGEiJAgcSCRAUGChIgQcSCNAUGBgoQIcXJycnJycnI2AgAgAEHIAGogqAFBgIGChHhxIKQBQcCAgYIEcSCgAUGgwICBAnEgmgFBkKDAgAFxIJgBQYiQoMAAcSCUAUGEiJAgcSCQAUGChIgQcSCMAUGBgoQIcXJycnJycnI2AgAgAEHEAGogpwFBgIGChHhxIKMBQcCAgYIEcSCfAUGgwICBAnEgnAFBkKDAgAFxIJcBQYiQoMAAcSCTAUGEiJAgcSCPAUGChIgQcSCLAUGBgoQIcXJycnJycnI2AgAgACCmAUGAgYKEeHEgogFBwICBggRxIJ4BQaDAgIECcSCbAUGQoMCAAXEglgFBiJCgwABxIJIBQYSIkCBxII4BQYKEiBBxIIoBQYGChAhxcnJycnJycjYCQCAAQTxqIIkBQYCBgoR4cSCFAUHAgIGCBHEggQFBoMCAgQJxIH1BkKDAgAFxIHlBiJCgwABxIHVBhIiQIHEgcUGChIgQcSBtQYGChAhxcnJycnJycjYCACAAQThqIIgBQYCBgoR4cSCEAUHAgIGCBHEggAFBoMCAgQJxIHxBkKDAgAFxIHZBiJCgwABxIHRBhIiQIHEgcEGChIgQcSBsQYGChAhxcnJycnJycjYCACAAQTRqIIcBQYCBgoR4cSCDAUHAgIGCBHEgf0GgwICBAnEge0GQoMCAAXEgeEGIkKDAAHEgc0GEiJAgcSBvQYKEiBBxIGtBgYKECHFycnJycnJyNgIAIAAghgFBgIGChHhxIIIBQcCAgYIEcSB+QaDAgIECcSB6QZCgwIABcSB3QYiQoMAAcSByQYSIkCBxIG5BgoSIEHEgakGBgoQIcXJycnJycnI2AjAgAEEsaiBpQYCBgoR4cSBlQcCAgYIEcSBhQaDAgIECcSBdQZCgwIABcSBZQYiQoMAAcSBVQYSIkCBxIFFBgoSIEHEgTUGBgoQIcXJycnJycnI2AgAgAEEoaiBoQYCBgoR4cSBkQcCAgYIEcSBgQaDAgIECcSBcQZCgwIABcSBYQYiQoMAAcSBSQYSIkCBxIFBBgoSIEHEgTEGBgoQIcXJycnJycnI2AgAgAEEkaiBnQYCBgoR4cSBjQcCAgYIEcSBfQaDAgIECcSBbQZCgwIABcSBXQYiQoMAAcSBUQYSIkCBxIE9BgoSIEHEgS0GBgoQIcXJycnJycnI2AgAgACBmQYCBgoR4cSBiQcCAgYIEcSBeQaDAgIECcSBaQZCgwIABcSBWQYiQoMAAcSBTQYSIkCBxIE5BgoSIEHEgSkGBgoQIcXJycnJycnI2AiAgAEEcaiBJQYCBgoR4cSBFQcCAgYIEcSBBQaDAgIECcSA9QZCgwIABcSA5QYiQoMAAcSA1QYSIkCBxIDFBgoSIEHEgLUGBgoQIcXJycnJycnI2AgAgAEEYaiBIQYCBgoR4cSBEQcCAgYIEcSBAQaDAgIECcSA8QZCgwIABcSA4QYiQoMAAcSA0QYSIkCBxIC5BgoSIEHEgLEGBgoQIcXJycnJycnI2AgAgAEEUaiBHQYCBgoR4cSBDQcCAgYIEcSA/QaDAgIECcSA7QZCgwIABcSA3QYiQoMAAcSAzQYSIkCBxIDBBgoSIEHEgK0GBgoQIcXJycnJycnI2AgAgACBGQYCBgoR4cSBCQcCAgYIEcSA+QaDAgIECcSA6QZCgwIABcSA2QYiQoMAAcSAyQYSIkCBxIC9BgoSIEHEgKkGBgoQIcXJycnJycnI2AhAgACApQYCBgoR4cSAlQcCAgYIEcSAhQaDAgIECcSAdQZCgwIABcSAZQYiQoMAAcSAVQYSIkCBxIBFBgoSIEHEgDUGBgoQIcXJycnJycnI2AgwgACAoQYCBgoR4cSAkQcCAgYIEcSAgQaDAgIECcSAcQZCgwIABcSAYQYiQoMAAcSAUQYSIkCBxIBBBgoSIEHEgDEGBgoQIcXJycnJycnI2AgggACAnQYCBgoR4cSAjQcCAgYIEcSAfQaDAgIECcSAbQZCgwIABcSAXQYiQoMAAcSATQYSIkCBxIA9BgoSIEHEgC0GBgoQIcXJycnJycnI2AgQgACAmQYCBgoR4cSAiQcCAgYIEcSAeQaDAgIECcSAaQZCgwIABcSAWQYiQoMAAcSASQYSIkCBxIA5BgoSIEHEgCkGBgoQIcXJycnJycnI2AgAgAEH8AGogAigCvAFBgIGChHhxIP4BQcCAgYIEcSD8AUGgwICBAnEg+QFBkKDAgAFxIPYBQYiQoMAAcSDzAUGEiJAgcSDwAUGChIgQcSDtAUGBgoQIcXJycnJycnI2AgAgAEH4AGogCSgCAEGAgYKEeHEg/QFBwICBggRxIPsBQaDAgIECcSD4AUGQoMCAAXEg9QFBiJCgwABxIPIBQYSIkCBxIO8BQYKEiBBxIOwBQYGChAhxcnJycnJycjYCACAAQfQAaiACKAK0AUGAgYKEeHEgCEHAgIGCBHEg+gFBoMCAgQJxIPcBQZCgwIABcSD0AUGIkKDAAHEg8QFBhIiQIHEg7gFBgoSIEHEg6wFBgYKECHFycnJycnJyNgIAIAAgAigCsAFBgIGChHhxIAFBwICBggRxIAdBoMCAgQJxIAZBkKDAgAFxIAVBiJCgwABxIARBhIiQIHEgA0GChIgQcSDqAUGBgoQIcXJycnJycnI2AnAgAkHgAWokAAulCgILfwF+IwBBIGsiBiQAQQEhCAJAAkAgACgCGEEiIABBHGooAgAoAhARAQANAEH0n8AAIQQDQAJAIAQhCiAEQQFqIQMCQAJ/IAQsAAAiBUF/TARAAn8gA0GNoMAARgRAQQAhAUGNoMAADAELIAQtAAFBP3EhASAEQQJqIgMLIQQgASAFQR9xIglBBnRyIAVB/wFxIgtB3wFNDQEaAn8gBEGNoMAARgRAQQAhCEGNoMAADAELIAQtAABBP3EhCCAEQQFqIgMLIQUgCCABQQZ0ciIBIAlBDHRyIAtB8AFJDQEaAn8gBUGNoMAARgRAIAMhBEEADAELIAVBAWohBCAFLQAAQT9xCyAJQRJ0QYCA8ABxIAFBBnRyciIBQYCAxABHDQIMAwsgBUH/AXELIQEgAyEEC0ECIQMCQAJAAkACQCABQXdqIglBHksEQCABQdwARw0BDAILQfQAIQUCQAJAIAlBAWsOHgECAgACAgICAgICAgICAgICAgICAgICAgMCAgICAwQLQfIAIQUMAwtB7gAhBQwCCwJAIAEQGg0AAkAgAUGAgARPBEAgAUGAgAhJDQEgAUGQ/EdqQZD8C0kgAUG12XNqQbXbK0lyIAFB4ot0akHiC0kgAUGfqHRqQZ8YSXJyIAFB/v//AHFBnvAKRiABQd7idGpBDklyIAFBorJ1akEiSSABQcuRdWpBCk1ycnINAgwFCyABQdiswABBKUGqrcAAQaICQcyvwABBtQIQIUUNAQwECyABQYGywABBJkHNssAAQa8BQfyzwABBowMQIQ0DCyABQQFyZ0ECdkEHc61CgICAgNAAhCEMQQMhAwsgASEFCyAGQRk2AgQgBkH0n8AANgIAIAYgAjYCCCAGIAc2AgwCQAJAIAcgAkkNACACRSACQRlGckUEQCACQRlPDQEgAkH0n8AAaiwAAEG/f0wNAQsgB0UgB0EZRnJFBEAgB0EZTw0BIAdB9J/AAGosAABBv39MDQELIAAoAhggAkH0n8AAaiAHIAJrIAAoAhwoAgwRAgBFDQFBASEIDAULIAYgBkEMajYCGCAGIAZBCGo2AhQgBiAGNgIQIAZBEGoQnQEACwNAIAMhCUEBIQhB3AAhAkEBIQMCQAJ+AkACQAJAAkAgCUEBaw4DAQUAAgsCQAJAAkACQCAMQiCIp0H/AXFBAWsOBQMCAQAGBQsgDEL/////j2CDQoCAgIAwhCEMQQMhA0H1ACECDAcLIAxC/////49gg0KAgICAIIQhDEEDIQNB+wAhAgwGCyAFIAynIglBAnRBHHF2QQ9xIgNBMHIgA0HXAGogA0EKSRshAiAMQn98Qv////8PgyAMQoCAgIBwg4QgCQ0EGiAMQv////+PYINCgICAgBCEDAQLIAxC/////49ggyEMQQMhA0H9ACECDAQLQQAhAyAFIQIMAwsCf0EBIAFBgAFJDQAaQQIgAUGAEEkNABpBA0EEIAFBgIAESRsLIAdqIQIMBAsgDEL/////j2CDQoCAgIDAAIQLIQxBAyEDCyAAKAIYIAIgACgCHCgCEBEBAEUNAAsMAwsgByAKayAEaiEHIARBjaDAAEcNAQsLIAJFIAJBGUZyRQRAIAJBGU8NAiACQfSfwABqLAAAQb9/TA0CC0EBIQggACgCGCACQfSfwABqQRkgAmsgACgCHCgCDBECAA0AIAAoAhhBIiAAKAIcKAIQEQEAIQgLIAZBIGokACAIDwtB9J/AAEEZIAJBGUGoqsAAEAgAC/8IARJ/IwBB0MMAayIBJAAQeCABQSBqQQgQayABQRhqIAFBIGoQrwEgAUEwaiABKAIYIAEoAhwQOCABQUBrIAFBMGoQZyABQZAdaiABQUBrEAogAUGwGWogAUGQHWpBsAEQfxogAUHgGmogAUHAHmpBsAEQfxogAUGQHGpBgAEQlgEDQCACQbABRwRAIAFB8DVqIAJqIgRCADcBACAEQQhqQgA3AQAgAkEQaiECDAELC0EAIQIDQCACQbABRwRAIAFBoDdqIAJqIgRCADcBACAEQQhqQgA3AQAgAkEQaiECDAELCyABQZAdaiABQZAcakGAARB/GkEAIQIDQCACQYALRwRAIAFB0DhqIAJqIAFBkB1qQYABEH8aIAJBgAFqIQIMAQsLIAFBkB1qIAFBkBxqQYABEH8aQQAhAgNAIAJBgAtHBEAgAUHQAGogAmogAUGQHWpBgAEQfxogAkGAAWohAgwBCwsgAUGQM2ogAUHwNWpBsAEQfxogAUHANGogAUGgN2pBsAEQfxogAUGQHWogAUHQOGpBgAsQfxogAUGQKGogAUHQAGpBgAsQfxogAUEQakEAQQsQuAEgASABKQMQNwPQOAJAA0AgAUEIaiABQdA4ahBzIAEoAghFDQEgASgCDCILQQpNBEAgC0EEdCIFIAFBsBlqaiICKAIAIgQgAigCBCIIIAIoAggiCSACKAIMIgpBABAsIQYgBCAIIAkgCkEBECwhByAEIAggCSAKQQIQLCEDIAQgCCAJIApBAxAsIQwgBCAIIAkgCkEEECwhDSAEIAggCSAKQQUQLCEOIAQgCCAJIApBBhAsIQ8gAUGQHWogBWoiAkGOFmogBCAIIAkgCkEHECw7AQAgAkGMFmogDzsBACACQYoWaiAOOwEAIAJBiBZqIA07AQAgAkGGFmogDDsBACACQYQWaiADOwEAIAJBghZqIAc7AQAgAkGAFmogBjsBACABQeAaaiAFaiIDKAIAIgUgAygCBCIGIAMoAggiByADKAIMIgNBABAsIQwgBSAGIAcgA0EBECwhDSAFIAYgByADQQIQLCEOIAUgBiAHIANBAxAsIQ8gBSAGIAcgA0EEECwhECAFIAYgByADQQUQLCERIAUgBiAHIANBBhAsIRIgAkG+F2ogBSAGIAcgA0EHECw7AQAgAkG8F2ogEjsBACACQboXaiAROwEAIAJBuBdqIBA7AQAgAkG2F2ogDzsBACACQbQXaiAOOwEAIAJBshdqIA07AQAgAkGwF2ogDDsBACABQdAAaiAEIAggCSAKEDIgAUGQHWogC0EHdGogAUHQAGpBgAEQfyABQdAAaiAFIAYgByADEDJBgAtqIAFB0ABqQYABEH8aDAELCyALQQtBgIPAABBUAAsgAUHQAGogAUGQHWpB4BgQfxogAUGYHWoiAiABQShqKAIANgIAIAEgASkDIDcDkB0gABChASAAQQhqIAIoAgA2AgAgACABKQOQHTcCACAAQQE2AgwgAEEQaiABQdAAakHgGBB/GiABQdDDAGokAAuUCAEGfyMAQfAAayIFJAAgBSADNgIMIAUgAjYCCEEBIQkgASEHAkAgAUGBAkkNAEEAIAFrIQhBgAIhBgNAAkAgBiABTw0AIAAgBmosAABBv39MDQBBACEJIAYhBwwCCyAGQX9qIQdBACEJIAZBAUYNASAGIAhqIAchBkEBRw0ACwsgBSAHNgIUIAUgADYCECAFQQBBBSAJGzYCHCAFQbijwABBuKrAACAJGzYCGAJAAkACQAJAIAIgAUsiBiADIAFLckUEQCACIANLDQECQCACRSABIAJGckUEQCABIAJNDQEgACACaiwAAEFASA0BCyADIQILIAUgAjYCICACRSABIAJGcg0CIAFBAWohAwNAIAIgAUkEQCAAIAJqLAAAQUBODQQLIAJBf2ohBiACQQFGDQQgAiADRiAGIQJFDQALDAMLIAUgAiADIAYbNgIoIAVBxABqQQM2AgAgBUHcAGpBOzYCACAFQdQAakE7NgIAIAVCAzcCNCAFQeCqwAA2AjAgBUE6NgJMIAUgBUHIAGo2AkAgBSAFQRhqNgJYIAUgBUEQajYCUCAFIAVBKGo2AkgMAwsgBUHkAGpBOzYCACAFQdwAakE7NgIAIAVB1ABqQTo2AgAgBUHEAGpBBDYCACAFQgQ3AjQgBUGcq8AANgIwIAVBOjYCTCAFIAVByABqNgJAIAUgBUEYajYCYCAFIAVBEGo2AlggBSAFQQxqNgJQIAUgBUEIajYCSAwCCyACIQYLAkAgASAGRg0AQQEhBwJAAkACQCAAIAZqIggsAAAiAkF/TARAQQAhCSAAIAFqIgMhASADIAhBAWpHBEAgCC0AAUE/cSEJIAhBAmohAQsgAkEfcSEIIAJB/wFxQd8BSw0BIAkgCEEGdHIhAQwCCyAFIAJB/wFxNgIkIAVBKGohAgwCC0EAIQAgAyEHIAEgA0cEfyABQQFqIQcgAS0AAEE/cQUgAAsgCUEGdHIhACACQf8BcUHwAUkEQCAAIAhBDHRyIQEMAQtBACECIAMgB0cEfyAHLQAAQT9xBSACCyAIQRJ0QYCA8ABxIABBBnRyciIBQYCAxABGDQILIAUgATYCJEEBIQcgBUEoaiECIAFBgAFJDQBBAiEHIAFBgBBJDQBBA0EEIAFBgIAESRshBwsgBSAGNgIoIAUgBiAHajYCLCAFQcQAakEFNgIAIAVB7ABqQTs2AgAgBUHkAGpBOzYCACAFQdwAakE8NgIAIAVB1ABqQT02AgAgBUIFNwI0IAVB8KvAADYCMCAFIAI2AlggBUE6NgJMIAUgBUHIAGo2AkAgBSAFQRhqNgJoIAUgBUEQajYCYCAFIAVBJGo2AlAgBSAFQSBqNgJIDAELQd2jwABBKyAEEHcACyAFQTBqIAQQkwEAC8gGAQx/IABBEGooAgAhAwJAAkACQAJAIABBCGooAgAiDUEBRwRAIANBAUYNASAAKAIYIAEgAiAAQRxqKAIAKAIMEQIAIQMMAwsgA0EBRw0BCwJAIAJFBEBBACECDAELIAEgAmohByAAQRRqKAIAQQFqIQogASIDIQsDQCADQQFqIQUCQAJ/IAMsAAAiBEF/TARAAn8gBSAHRgRAQQAhCCAHDAELIAMtAAFBP3EhCCADQQJqIgULIQMgBEEfcSEJIAggCUEGdHIgBEH/AXEiDkHfAU0NARoCfyADIAdGBEBBACEMIAcMAQsgAy0AAEE/cSEMIANBAWoiBQshBCAMIAhBBnRyIQggCCAJQQx0ciAOQfABSQ0BGgJ/IAQgB0YEQCAFIQNBAAwBCyAEQQFqIQMgBC0AAEE/cQsgCUESdEGAgPAAcSAIQQZ0cnIiBEGAgMQARw0CDAQLIARB/wFxCyEEIAUhAwsgCkF/aiIKBEAgBiALayADaiEGIAMhCyADIAdHDQEMAgsLIARBgIDEAEYNAAJAIAZFIAIgBkZyRQRAQQAhAyAGIAJPDQEgASAGaiwAAEFASA0BCyABIQMLIAYgAiADGyECIAMgASADGyEBCyANQQFGDQAMAgtBACEFIAIEQCACIQQgASEDA0AgBSADLQAAQcABcUGAAUZqIQUgA0EBaiEDIARBf2oiBA0ACwsgAiAFayAAKAIMIgdPDQFBACEGQQAhBSACBEAgAiEEIAEhAwNAIAUgAy0AAEHAAXFBgAFGaiEFIANBAWohAyAEQX9qIgQNAAsLIAUgAmsgB2oiAyEEAkACQAJAQQAgAC0AICIFIAVBA0YbQQFrDgMBAAECCyADQQF2IQYgA0EBakEBdiEEDAELQQAhBCADIQYLIAZBAWohAwJAA0AgA0F/aiIDRQ0BIAAoAhggACgCBCAAKAIcKAIQEQEARQ0AC0EBDwsgACgCBCEFQQEhAyAAKAIYIAEgAiAAKAIcKAIMEQIADQAgBEEBaiEDIAAoAhwhASAAKAIYIQADQCADQX9qIgNFBEBBAA8LIAAgBSABKAIQEQEARQ0AC0EBDwsgAw8LIAAoAhggASACIABBHGooAgAoAgwRAgAL7gYBB38jAEGwA2siAiQAIAJBQGsQUCACQThqQQBBBBC4ASACIAIpAzg3A/ABAkACQAJAAkADQCACQTBqIAJB8AFqEHMgAigCMEUEQCACQShqQQRBLBC4ASACIAIpAyg3A/ABAkACQAJAAkACQAJAA0ACQCACQSBqIAJB8AFqEHMgAigCIEUEQCACQfABahBQIAJB+AFqIAJByABqKQMANwMAIAIgAikDQDcD8AEgAkEYakEBQQoQuAEgAiACKQMYNwOgAwNAIAJBEGogAkGgA2oQcyACKAIQRQ0CIAIoAhQhASACQQhqQQBBBBC4ASACIAIpAwg3A6gDA0AgAiACQagDahBzIAIoAgBFDQEgAUEKSw0JIAIoAgQiA0EDSw0KIANBAnQiAyABQQR0IgQgAkHwAWpqaiACQUBrIARqIANqKAIAEEk2AgAMAAsACwALIAIoAiQiA0F/aiIBQQJ2IQQgAUErSw0CIAJBQGsgBEEEdGogAUEDcUECdGooAgAhASADQQNxIgdFBEAgAUEYdxCFASEEIANBAnZBP3FBf2oiAUEJSw0EIAFBAnRBnJDAAGooAgAgBHMhAQsgA0F8aiIEQQJ2IQUgBEErSw0EIANBAnYhBiADQStLDQUgAkFAayAGQQR0aiAHQQJ0aiACQUBrIAVBBHRqIARBA3FBAnRqKAIAIAFzNgIADAELCyACQZgDaiACQegBaikDADcDACACIAIpA+ABNwOQAyAAIAJBQGtBsAEQf0GwAWogAkHwAWpBsAEQfxogAkGwA2okAA8LIARBC0G4hcAAEFQACyABQQpByIXAABBUAAsgBUELQdiFwAAQVAALIAZBC0HohcAAEFQACyABQQtB+IXAABBUAAsgA0EEQfiFwAAQVAALIAIoAjRBAnQiBEEPTQRAIARBAXIiBUEPSw0CIARBAnIiBkEPSw0DIARBA3IiB0EPSw0EIANBAnYhCCADQSxGDQUgAkFAayAIQQR0aiADQQNxQQJ0aiABIARqLQAAIAEgBWotAABBCHRyIAEgBmotAABBEHRyIAEgB2otAABBGHRyNgIAIANBAWohAwwBCwsgBEEQQeiEwAAQVAALIAVBEEH4hMAAEFQACyAGQRBBiIXAABBUAAsgB0EQQZiFwAAQVAALIAhBC0GohcAAEFQAC5wGAQp/IwBBMGsiBCQAIARBJGogATYCACAEQQM6ACggBEKAgICAgAQ3AwggBCAANgIgIARBADYCGCAEQQA2AhACQAJAAkAgAigCCCIFBEAgAigCACEHIAIoAgQiCSACQQxqKAIAIgMgAyAJSxsiC0UNASACQRRqKAIAIQggAigCECEKQQEhAyAAIAcoAgAgBygCBCABKAIMEQIADQMgB0EMaiECQQEhBgJAAkADQCAEIAVBBGooAgA2AgwgBCAFQRxqLQAAOgAoIAQgBUEIaigCADYCCCAFQRhqKAIAIQNBACEBQQAhAAJAAkACQCAFQRRqKAIAQQFrDgIAAgELIAMgCE8NAyADQQN0IApqIgwoAgRBPkcNASAMKAIAKAIAIQMLQQEhAAsgBCADNgIUIAQgADYCECAFQRBqKAIAIQMCQAJAAkAgBUEMaigCAEEBaw4CAAIBCyADIAhPDQQgA0EDdCAKaiIAKAIEQT5HDQEgACgCACgCACEDC0EBIQELIAQgAzYCHCAEIAE2AhggBSgCACIAIAhJBEAgCiAAQQN0aiIAKAIAIARBCGogACgCBBEBAA0GIAYgC08NBSACQXxqIQAgAigCACEBIAJBCGohAiAFQSBqIQVBASEDIAZBAWohBiAEKAIgIAAoAgAgASAEKAIkKAIMEQIARQ0BDAcLCyAAIAhBiKjAABBUAAsgAyAIQZiowAAQVAALIAMgCEGYqMAAEFQACyACKAIAIQcgAigCBCIJIAJBFGooAgAiAyADIAlLGyIIRQ0AIAIoAhAhBUEBIQMgACAHKAIAIAcoAgQgASgCDBECAA0CIAdBDGohAkEBIQYDQCAFKAIAIARBCGogBUEEaigCABEBAA0CIAYgCE8NASACQXxqIQAgAigCACEBIAJBCGohAiAFQQhqIQUgBkEBaiEGIAQoAiAgACgCACABIAQoAiQoAgwRAgBFDQALDAILIAkgBksEQEEBIQMgBCgCICAHIAZBA3RqIgAoAgAgACgCBCAEKAIkKAIMEQIADQILQQAhAwwBC0EBIQMLIARBMGokACADC8wFAQd/QStBgIDEACAAKAIAIglBAXEiBRshCiAEIAVqIQgCQCAJQQRxRQRAQQAhAQwBCyACBEAgAiEGIAEhBQNAIAcgBS0AAEHAAXFBgAFGaiEHIAVBAWohBSAGQX9qIgYNAAsLIAIgCGogB2shCAtBASEFAkAgACgCCEEBRwRAIAAgCiABIAIQcg0BIAAoAhggAyAEIABBHGooAgAoAgwRAgAhBQwBCyAAQQxqKAIAIgYgCE0EQCAAIAogASACEHINASAAKAIYIAMgBCAAQRxqKAIAKAIMEQIADwsCQCAJQQhxRQRAQQAhBSAGIAhrIgYhCAJAAkACQEEBIAAtACAiByAHQQNGG0EBaw4DAQABAgsgBkEBdiEFIAZBAWpBAXYhCAwBC0EAIQggBiEFCyAFQQFqIQUDQCAFQX9qIgVFDQIgACgCGCAAKAIEIAAoAhwoAhARAQBFDQALQQEPCyAAKAIEIQkgAEEwNgIEIAAtACAhCyAAQQE6ACAgACAKIAEgAhByDQFBACEFIAYgCGsiASECAkACQAJAQQEgAC0AICIGIAZBA0YbQQFrDgMBAAECCyABQQF2IQUgAUEBakEBdiECDAELQQAhAiABIQULIAVBAWohBQJAA0AgBUF/aiIFRQ0BIAAoAhggACgCBCAAKAIcKAIQEQEARQ0AC0EBDwsgACgCBCEBQQEhBSAAKAIYIAMgBCAAKAIcKAIMEQIADQEgAkEBaiEHIAAoAhwhAiAAKAIYIQMDQCAHQX9qIgcEQCADIAEgAigCEBEBAEUNAQwDCwsgACALOgAgIAAgCTYCBEEADwsgACgCBCEGQQEhBSAAIAogASACEHINACAAKAIYIAMgBCAAKAIcKAIMEQIADQAgCEEBaiEHIAAoAhwhASAAKAIYIQADQCAHQX9qIgdFBEBBAA8LIAAgBiABKAIQEQEARQ0ACwsgBQuuAwEFfyMAQRBrIgIkACACQQJyIQRB1MbAACgCACEBAkACQANAAkACQCABQQNLDQACQAJAIAFBAWsOAwACBQELQZifwABBKkHEn8AAEJIBAAtB1MbAAEHUxsAAKAIAIgFBAiABGzYCACABDQIMAQsgAUEDcUECRw0DAkACQANAQYjHwAAoAgBBAUcEQEGIx8AAQgE3AgBBkMfAAEEANgIACyABIQMQLiEFQdTGwAAgBEHUxsAAKAIAIgEgASADRhs2AgAgAkEAOgAIIAIgBTYCACACIANBfHE2AgQCQCABIANGBEAgAi0ACEUNAQwDCwJAIAIoAgAiA0UNACADIAMoAgAiA0F/ajYCACADQQFHDQAgAhBRCyABQQNxQQJGDQEMAwsLA0AQECACLQAIRQ0ACwsgAigCACIBRQ0AIAEgASgCACIBQX9qNgIAIAFBAUcNACACEFFB1MbAACgCACEBDAILQdTGwAAoAgAhAQwBCwsgAkHUxsAANgIAIABBAEGQiMAAKAIAEQAAIAJBAzYCBCACEBgLIAJBEGokAA8LQc+ewABBOUGIn8AAEJIBAAu5BQIEfwF+QQEgASgCGEEnIAFBHGooAgAoAhARAQBFBEBBAiECAkACQAJAIAAoAgAiAEF3aiIEQR5LBEAgAEHcAEcNAQwCC0H0ACEDAkACQCAEQQFrDh4BAgIAAgICAgICAgICAgICAgICAgICAgIDAgICAgMEC0HyACEDDAMLQe4AIQMMAgsCQAJ+IAAQGkUEQAJAAkAgAEGAgARPBEAgAEGAgAhJDQEgAEGQ/EdqQZD8C0kgAEG12XNqQbXbK0lyIABB4ot0akHiC0kgAEGfqHRqQZ8YSXJyIABB/v//AHFBnvAKRiAAQd7idGpBDklyIABBorJ1akEiSXJyDQIgAEHLkXVqQQpLDQUMAgsgAEHYrMAAQSlBqq3AAEGiAkHMr8AAQbUCECFFDQEMBAsgAEGBssAAQSZBzbLAAEGvAUH8s8AAQaMDECENAwsgAEEBcmdBAnZBB3OtQoCAgIDQAIQMAQsgAEEBcmdBAnZBB3OtQoCAgIDQAIQLIQZBAyECDAELQQEhAgsgACEDCwNAIAIhBEHcACEAQQEhAgJAAn4CQAJAAkACQCAEQQFrDgMBBQACCwJAAkACQAJAIAZCIIinQf8BcUEBaw4FAwIBAAYFC0H1ACEAIAZC/////49gg0KAgICAMIQMBgtB+wAhACAGQv////+PYINCgICAgCCEDAULIAMgBqciAkECdEEccXZBD3EiAEEwciAAQdcAaiAAQQpJGyEAIAZCf3xC/////w+DIAZCgICAgHCDhCACDQQaIAZC/////49gg0KAgICAEIQMBAtB/QAhACAGQv////+PYIMMAwtBACECIAMhAAwDCyABKAIYQScgASgCHCgCEBEBAA8LIAZC/////49gg0KAgICAwACECyEGQQMhAgsgASgCGCAAIAEoAhwoAhARAQBFDQALCwvPAwEJfyAALwEAIgQgAUEMakEPcSIDdkEBcUEYdCAEIAFBCGpBD3EiAnZBAXFBEHRyIAAvAQIiBSACdkEBcUERdHIgBSADdkEBcUEZdHIgAC8BBCIGIAJ2QQFxQRJ0ciAGIAN2QQFxQRp0ciAALwEGIgcgAnZBAXFBE3RyIAcgA3ZBAXFBG3RyIAAvAQgiCCACdkEBcUEUdHIgCCADdkEBcUEcdHIgAC8BCiIJIAJ2QQFxQRV0ciAJIAN2QQFxQR10ciAALwEMIgogAnZBAXFBFnRyIAogA3ZBAXFBHnRyIAAvAQ4iACADdkEfdHIgACACdkEBcUEXdHIgBCABQQRqQQ9xIgJ2QQh0QYACcSAEIAFBD3EiAXZBAXFyIAUgAXZBAXRBAnFyIAUgAnZBCXRBgARxciAGIAF2QQJ0QQRxciAGIAJ2QQp0QYAIcXIgByABdkEDdEEIcXIgByACdkELdEGAEHFyIAggAXZBBHRBEHFyIAggAnZBDHRBgCBxciAJIAF2QQV0QSBxciAJIAJ2QQ10QYDAAHFyIAogAXZBBnRBwABxciAKIAJ2QQ50QYCAAXFyIAAgAnZBD3RyIAAgAXZBB3RBgAFxckH//wNxcgv2BAEGfyMAQeAAayIAJABBiMfAACgCAEEBRwRAQYjHwABCATcCAEGQx8AAQQA2AgALEC4iAUEAIAEoAhgiAiACQQJGIgIbNgIYIAAgATYCCAJAIAINAAJAAkACQCAAKAIIIgFBHGoiBCgCACICLQAARQRAIAJBAToAAEEAIQICQEGYx8AAKAIAQQFGBEBBnMfAACgCACECDAELQZjHwABCATcDAAtBnMfAACACNgIAIAEtACANASABIAEoAhgiA0EBIAMbNgIYIANFBEAgACgCCEEkaiAEKAIAEIwBQeihwABBHUGkosAAEJIBAAsgA0ECRw0CIAAoAggiBSgCGCEDIAVBADYCGCAAIAM2AgwgA0ECRw0DAkAgAg0AQZjHwAAoAgBBAUcEQEGYx8AAQgE3AwAMAQtBnMfAACgCAEUNACABQQE6ACALIAQoAgBBADoAAAwEC0G0osAAQSBB8KLAABCSAQALIAAgBDYCSCAAIAJBAEc6AExBiJrAAEErIABByABqQbSawABBkJvAABBOAAtBoJvAAEEXQbibwAAQkgEACyAAQTxqQR82AgAgAEE0akEjNgIAIABBJGpBAzYCACAAIABBDGo2AkAgAEHIm8AANgJEIABB3ABqQQA2AgAgAEIDNwIUIABBlJnAADYCECAAQSM2AiwgAEGAmcAANgJYIABCATcCTCAAQeybwAA2AkggACAAQShqNgIgIAAgAEHIAGo2AjggACAAQcQAajYCMCAAIABBQGs2AiggAEEQakH0m8AAEI0BAAsgACgCCCIBIAEoAgAiAUF/ajYCACABQQFGBEAgAEEIahBRCyAAQeAAaiQAC5IEAQd/IwBBMGsiAyQAAn9BACACRQ0AGiADQShqIQgCQAJAAkACQANAIAAoAggtAAAEQCAAKAIAQcylwABBBCAAKAIEKAIMEQIADQULIANBCjYCKCADQoqAgIAQNwMgIAMgAjYCHCADQQA2AhggAyACNgIUIAMgATYCECADQQhqQQogASACEBsCfwJAAkAgAygCCEEBRgRAIAMoAgwhBANAIAMgBCADKAIYakEBaiIENgIYAkAgBCADKAIkIgVJBEAgAygCFCEHDAELIAMoAhQiByAESQ0AIAVBBU8NByAEIAVrIgYgAygCEGoiCSAIRg0EIAkgCCAFEHFFDQQLIAMoAhwiBiAESSAHIAZJcg0CIAMgAyAFakEnai0AACADKAIQIARqIAYgBGsQGyADKAIEIQQgAygCAEEBRg0ACwsgAyADKAIcNgIYCyAAKAIIQQA6AAAgAgwBCyAAKAIIQQE6AAAgBkEBagshBCAAKAIEIQUgACgCACAERSACIARGciIGRQRAIAIgBE0NAyABIARqLAAAQb9/TA0DCyABIAQgBSgCDBECAA0EIAZFBEAgAiAETQ0EIAEgBGosAABBv39MDQQLIAEgBGohASACIARrIgINAAtBAAwECyAFQQRB4KnAABBVAAsgASACQQAgBEGYqsAAEAgACyABIAIgBCACQaiqwAAQCAALQQELIANBMGokAAvQAwIFfwF+IwBBQGoiAyQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAgBBAWsOAgIAAQsgAigCBCIEIAJBCGooAgBqIgIgBE8NAiADQShqIAJBABC4ASADKQMoIQggAEEBNgIAIAAgCDcCBAwKCyABKAIEIgIEQCACQQF0IQIMAgtBBCECDAILIAIoAgQiBCACQQhqKAIAaiICIARJDQIgASgCBEEBdCIEIAIgBCACSxshAgsgAkEASA0CCyADQTBqIAEQhwEgAygCMCIGDQIgA0EIaiACQQEQdSADKAIIIgVFDQMgAygCDCEEDAULIANBIGogAkEAELgBIAMpAyAhCCAAQQE2AgAgACAINwIEDAULIANBGGogA0EAELgBIAMpAxghCCAAQQE2AgAgACAINwIEDAQLIAZBACACIAMoAjQiBEYiBxshBQJAIAdFBEAgA0E4aigCACEFIAQNASADQRBqIAIgBRB1IAMoAhAhBSADKAIUIQQLIAVFDQEMAwsgBiAEIAUgAhCtASIFDQELIAMgAkEBELgBIAMpAwAhCCAAQQE2AgAgACAINwIEDAILIAIhBAsgASAFIAQQuAEgAEEANgIACyADQUBrJAALzAMBBH8jAEEQayICJAAgACgCACEEAkACQAJAAkACQCABQYABTwRAIAJBADYCDCABQYAQSQ0BIAJBDGohACABQYCABEkEQCACIAFBP3FBgAFyOgAOIAIgAUEGdkE/cUGAAXI6AA0gAiABQQx2QQ9xQeABcjoADEEDIQEMBQsgAiABQT9xQYABcjoADyACIAFBEnZB8AFyOgAMIAIgAUEGdkE/cUGAAXI6AA4gAiABQQx2QT9xQYABcjoADUEEIQEMBAsgBCgCCCIAIARBBGooAgBHBEAgBCgCACEDDAMLAkACQAJAIABBAWoiAyAASQ0AIABBAXQiBSADIAUgA0sbIgVBAEgNAAJAIAAEQCAEKAIAIgMNAQsgBQ0CQQEhAwwFCyAAIAVHBEAgAyAAQQEgBRCtASEDCyADRQ0CIAQoAgghAAwECxC+AQALIAVBARC1ASIDDQILIAVBARDHAQALIAIgAUE/cUGAAXI6AA0gAiABQQZ2QR9xQcABcjoADCACQQxqIQBBAiEBDAILIAQgAzYCACAEQQRqIAU2AgALIAAgA2ogAToAACAEIAQoAghBAWo2AggMAQsgBCAAIAAgAWoQMAsgAkEQaiQAQQALogMBBX8jAEEwayIDJAAgA0EoaiIEIAFBCGopAQA3AwAgAyABKQEANwMgIANBEGogA0EgaiACEGUgA0EIakEBQQoQuAEgAygCDCEHIAMoAgghAQJAA0ACQCABIAdPDQAgAUEBaiIFIAFJDQAgBCADQRhqIgYpAwA3AwAgAyADKQMQNwMgIANBEGogA0EgahBgIAQgBikDADcDACADIAMpAxA3AyAgA0EQaiADQSBqEEQgBCAGKQMANwMAIAMgAykDEDcDICADQRBqIANBIGoQGSAEIAYpAwA3AwAgAyADKQMQNwMgIAFBC08NAiADQRBqIANBIGogAiABQQR0ahBlIAUhAQwBCwsgA0EoaiIFIANBGGoiASkDADcDACADIAMpAxA3AyAgA0EQaiADQSBqEGAgBSABKQMANwMAIAMgAykDEDcDICADQRBqIANBIGoQRCAFIAEpAwA3AwAgAyADKQMQNwMgIANBEGogA0EgaiACQaABahBlIABBCGogASkDADcBACAAIAMpAxA3AQAgA0EwaiQADwsgAUELQfSAwAAQVAALvgMCCH8DfiMAQUBqIgIkACABLwEIIQMgAS8BACEEIAEvAQohBSABLwECIQYgAS8BDCEHIAEvAQQhCCACIAEvAQ4iCSABLwEGIgFzOwE+IAIgByAIczsBPCACIAUgBnM7ATogAiADIARzOwE4IAJBCGogAkE4ahB7IAIgA61C//8DgyAFrUL//wODQhCGhCAHrUL//wODQiCGhCAJrUIwhoQiCzcDMCACIAStQv//A4MgBq1C//8Dg0IQhoQgCK1C//8Dg0IghoQgAa1CMIaEIgw3AzggAkEQaiACQTBqIAJBOGoQNSACIAIpAxAgAikDCIUiCj0BOCACIApCMIg9AT4gAiAKQiCIPQE8IAIgCkIQiD0BOiACQRhqIAJBOGoQPiACIAIpAxgiCjcDMCACIAw3AzggAkEgaiACQTBqIAJBOGoQNSACIAo3AzAgAiALNwM4IAJBKGogAkEwaiACQThqEDUgACACKQMgIgpCMIg9AQ4gACAKQiCIPQEMIAAgCkIQiD0BCiAAIAo9AQggACACKQMoIgpCMIg9AQYgACAKQiCIPQEEIAAgCkIQiD0BAiAAIAo9AQAgAkFAayQAC7ADAQd/IAFBf2ohCSAAQQJ0IQdBACABayEKIAIoAgAhBQJAAkADQCAFRQ0CIAUhAQNAAkAgASgCCCIFQQFxRQRAAkAgASgCAEF8cSILIAFBCGoiBmsgB08EQCAGIAMgACAEKAIQEQEAQQJ0akEIaiALIAdrIApxIgVNDQEgBiAJcUUNAyAGKAIAIQULIAIgBTYCAAwECyAFQQA2AgAgBUF4aiIFQgA3AgAgBSABKAIAQXxxNgIAIAEoAgAiAkF8cSIARSACQQJxckUEQCAAIAAoAgRBA3EgBXI2AgQLIAUgBSgCBEEDcSABcjYCBCABIAEoAghBfnE2AgggASABKAIAIgBBA3EgBXIiAjYCACAAQQJxRQ0EIAEgAkF9cTYCACAFIAUoAgBBAnI2AgAMBAsgASAFQX5xNgIIAn9BACABKAIEQXxxIgVFDQAaQQAgBSAFLQAAQQFxGwshBSABEEsgAS0AAEECcQRAIAUgBSgCAEECcjYCAAsgAiAFNgIAIAUhAQwBCwsLIAIgASgCCEF8cTYCACABIQULIAUgBSgCAEEBcjYCACAFQQhqIQgLIAgLtwMBBH8CQAJAAkACQAJAIAFBBGooAgAiAiABKAIIIgRGBEAgBEEBaiICIARJIAJBAEhyDQECQAJAAkACQCAEBEAgASgCACIDDQELIAINAUEBIQMMAwsgAiAERwRAIAMgBEEBIAIQrQEhAwsgA0UNAQwCCyACQQEQtQEiAw0BCyACQQEQxwEACyABIAM2AgAgAUEEaiACNgIACyACIARHBEAgBEEBaiEDIAEoAgAhBQwFCyAEQQFqIgMgBEkNACAEQQF0IgUgAyAFIANLGyICQQBIDQACQCAEBEAgASgCACIFDQELIAINAkEBIQUMBAsgAiAERwRAIAUgBEEBIAIQrQEhBQsgBUUNAgwDCxC+AQALIAJBARC1ASIFDQELIAJBARDHAQALIAEgBTYCACABQQRqIAI2AgALIAQgBWpBADoAACABIAM2AggCQCACIANGBEAgBSEBDAELAkAgAiADTwRAIAINASAFIQEMAgtBxJrAAEEkQZCXwAAQdwALIANFBEBBASEBIAUgAkEBELwBDAELIAUgAkEBIAMQrQEiAQ0AIANBARDHAQALIAAgAzYCBCAAIAE2AgAL6wMBBH8jAEFAaiIBJAAgACgCACICKAIAIQMgAiAAKAIENgIAIAEgA0EDcSIANgIMIABBAkYEQAJAAkACQCADQXxxIgAEQANAIAAoAgQgACgCACECIABBADYCACACRQ0CIABBAToACCACKAIYIQAgAkECNgIYIAEgAjYCKAJAAkAgAEECTQRAIABBAWsNAgwBC0GcncAAQRxBuJ3AABCSAQALIAEoAigiBEEcaiICKAIAIgAtAAANBCAAQQE6AABBnMfAAAJ/QZjHwAAoAgBBAUYEQEGcx8AAKAIADAELQZjHwABCATcDAEEACyIANgIAIAQtACANBSACKAIAQQA6AAALIAEoAigiACAAKAIAIgBBf2o2AgAgAEEBRgRAIAFBKGoQUQsiAA0ACwsgAUFAayQADwtBrJnAAEErQeSfwAAQdwALQbSiwABBIEHwosAAEJIBAAsgASACNgIQIAEgAEEARzoAFEGImsAAQSsgAUEQakG0msAAQcidwAAQTgALIAFBNGpBIzYCACABQSRqQQI2AgAgAUIDNwIUIAFB6JjAADYCECABQSM2AiwgASABQQxqNgI4IAFByJvAADYCPCABIAFBKGo2AiAgASABQTxqNgIwIAEgAUE4ajYCKCABQRBqQdSfwAAQjQEAC7kDASJ/IAEvAQwhAiABLwEKIQMgAS8BCCEEIAEvAQYhBSABLwEEIQYgAS8BAiEHIAEvAQAhCCABLwEOIgEQrAEhCSAIEKwBIQogCBCsASAIcxCkASELIAgQrAEhDCABEKwBIQ0gBxCsASEOIAcQrAEgB3MQpAEhDyAHEKwBIRAgBhCsASERIAYQrAEgBnMQpAEhEiAGEKwBIRMgARCsASEUIAUQrAEhFSAFEKwBIAVzEKQBIRYgBRCsASEXIAEQrAEhGCAEEKwBIRkgBBCsASAEcxCkASEaIAQQrAEhGyADEKwBIRwgAxCsASADcxCkASEdIAMQrAEhHiACEKwBIR8gAhCsASACcxCkASEgIAIQrAEhISABEKwBISIgARCsASABcxCkASEjIAAgICAfIAMgHnNzczsBDCAAIB0gHCAEIBtzc3M7AQogACAaIBkgGCAXIAEgBXNzc3NzOwEIIAAgFiAVIBQgEyABIAZzc3NzczsBBiAAIBIgESAHIBBzc3M7AQQgACAPIA4gDSAMIAEgCHNzc3NzOwECIAAgCyAKIAEgCXNzczsBACAAICMgIiACICFzc3M7AQ4LlQMBBX8CQAJAQQBBDyAAQaSaBEkbIgEgAUEIaiIBIAFBAnRBjLjAAGooAgBBC3QgAEELdCIBSxsiAiACQQRqIgIgAkECdEGMuMAAaigCAEELdCABSxsiAiACQQJqIgIgAkECdEGMuMAAaigCAEELdCABSxsiAiACQQFqIgIgAkECdEGMuMAAaigCAEELdCABSxsiAkECdEGMuMAAaigCAEELdCIDIAFGIAMgAUlqIAJqIgFBHk0EQCABQQJ0IQVBsQUhAgJAIAFBHkYNACAFQZC4wABqIgNFDQAgAygCAEEVdiECCyABQX9qIgMgAU0EQCADQR9PDQMgA0ECdEGMuMAAaigCAEH///8AcSEECwJAIAIgBUGMuMAAaigCAEEVdiIBQQFqRg0AIAAgBGshAyACQX9qIQJBACEAA0AgAUGwBUsNAyAAIAFBiLnAAGotAABqIgAgA0sNASACIAFBAWoiAUcNAAsLIAFBAXEPCyABQR9BxLfAABBUAAsgAUGxBUHUt8AAEFQACyADQR9B5LfAABBUAAvrAgEGfwJAAkAgAkEDcSIERQ0AQQQgBGsiBEUNACADIAQgBCADSxshBUEAIQQgAUH/AXEhCANAIAQgBUYNASACIARqIARBAWohBC0AACIGIAhHDQALQQEhAyAGIAFB/wFxRkEBakEBcSAEakF/aiEEDAELIAFB/wFxIQgCQAJAIANBCEkNACAFIANBeGoiBksNACAIQYGChAhsIQQDQCACIAVqIgdBBGooAgAgBHMiCUF/cyAJQf/9+3dqcSAHKAIAIARzIgdBf3MgB0H//ft3anFyQYCBgoR4cUUEQCAFQQhqIgUgBk0NAQsLIAUgA0sNAQsgAiAFaiECIAMgBWshBkEAIQNBACEEAkADQCAEIAZGDQEgAiAEaiAEQQFqIQQtAAAiByAIRw0AC0EBIQMgByABQf8BcUZBAWpBAXEgBGpBf2ohBAsgBCAFaiEEDAELIAUgA0HIqMAAEFYACyAAIAQ2AgQgACADNgIAC6IDAQR/IwBB8ABrIgEkACABIAA2AkQgAUEANgJoIAFCATcDYCABQdwAakEBNgIAIAFCATcCTCABQYyKwAA2AkggAUEYNgI8IAEgAUE4ajYCWCABIAFBxABqNgI4IAFB4ABqIAFByABqEF1FBEAgAUHgAGoQogEgAUEwaiIDIAFB6ABqIgAoAgA2AgAgASABKQNgNwMoIAFBKGpB2IvAAEHii8AAEIsBIAFBIGoQACICEAEgAUHIAGogASgCICABKAIkIgQgBBCrASABQRhqIAFByABqEKYBIAFBOGogASgCGCABKAIcEKoBIAFBEGogAUE4ahCvASABQShqIAEoAhAgASgCFBC2ASABQShqQeKLwABB5IvAABCLASAAIAMoAgA2AgAgASABKQMoNwNgIAFBCGogAUHgAGoQrwEgAUHQAGogACgCADYCACABIAEpA2A3A0ggASABQcgAahCmASABKAIAIAEoAgQQAiABQThqEKEBIAJBJE8EQCACEAMLIAFB8ABqJAAPC0GUisAAQTcgAUHIAGpByIvAAEG4i8AAEE4AC6MDAQN/IwBBMGsiAiQAIAJBEGoiBCABQQhqKQIANwMAIAIgASkCADcDCCACQRhqIgFBCGogAkEIaiIDKAIEIAMoAgBrQQF0IAMoAgxBgIDEAEdyIgM2AgAgAUEBNgIEIAEgAzYCACAAIAIoAhgQvQEgAkEgaiAEKQMANwMAIAIgAikDCDcDGANAIAAgAkEsagJ/AkAgAkEYahBfIgFBgIDEAEcEQCABQYABTwRAIAJBADYCLCABQYAQSQ0CIAFBgIAESQRAIAIgAUE/cUGAAXI6AC4gAiABQQZ2QT9xQYABcjoALSACIAFBDHZBD3FB4AFyOgAsQQMMBAsgAiABQT9xQYABcjoALyACIAFBEnZB8AFyOgAsIAIgAUEGdkE/cUGAAXI6AC4gAiABQQx2QT9xQYABcjoALUEEDAMLIAAoAgggACgCBEYEQCAAQQEQvQELIAAoAgAgACgCCGogAToAACAAIAAoAghBAWo2AggMAwsgAkEwaiQADwsgAiABQT9xQYABcjoALSACIAFBBnZBH3FBwAFyOgAsQQILELYBDAALAAujAwIEfwJ+IwBBQGoiAiQAQQEhBAJAIAAtAAQNACAALQAFIQUgACgCACIDLQAAQQRxRQRAIAMoAhhB1aXAAEHXpcAAIAUbQQJBAyAFGyADQRxqKAIAKAIMEQIADQEgACgCACIDKAIYQcK+wABBByADQRxqKAIAKAIMEQIADQEgACgCACIDKAIYQZCkwABBAiADQRxqKAIAKAIMEQIADQEgASAAKAIAQYC4wAAoAgARAQAhBAwBCyAFRQRAIAMoAhhB0KXAAEEDIANBHGooAgAoAgwRAgANASAAKAIAIQMLIAJBAToAFyACQTRqQbSlwAA2AgAgAiADKQIYNwMIIAIgAkEXajYCECADKQIIIQYgAykCECEHIAIgAy0AIDoAOCACIAc3AyggAiAGNwMgIAIgAykCADcDGCACIAJBCGo2AjAgAkEIakHCvsAAQQcQEQ0AIAJBCGpBkKTAAEECEBENACABIAJBGGpBgLjAACgCABEBAA0AIAIoAjBB06XAAEECIAIoAjQoAgwRAgAhBAsgAEEBOgAFIAAgBDoABCACQUBrJAALkAMBA38jAEFAaiICJAACf0EBIAEoAhhBtKTAAEEMIAFBHGooAgAoAgwRAgANABoCQCAAKAIIIgNFBEAgACgCACIDIAAoAgQoAgwRCQBC5K7ChZebpYgRUg0BIAIgAzYCDCACQcAANgIUIAIgAkEMajYCECABKAIYIQMgASgCHCEEIAJBPGpBATYCACACQgI3AiwgAkHEpMAANgIoIAIgAkEQajYCOEEBIAMgBCACQShqEAsNAhoMAQsgAiADNgIMIAJBwQA2AhQgAiACQQxqNgIQIAEoAhghAyABKAIcIQQgAkE8akEBNgIAIAJCAjcCLCACQcSkwAA2AiggAiACQRBqNgI4QQEgAyAEIAJBKGoQCw0BGgsgACgCDCEAIAJBJGpBOjYCACACQRxqQTo2AgAgAiAAQQxqNgIgIAIgAEEIajYCGCACQTs2AhQgAiAANgIQIAEoAhggASgCHCACQTxqQQM2AgAgAkIDNwIsIAJB2KTAADYCKCACIAJBEGo2AjggAkEoahALCyACQUBrJAALywMCBH8BfiMAQTBrIgEkAAJAAkACQAJAAn9BACAAKAIAIgJFDQAaIAEgACkCBDcCJCABIAI2AiAgAUEQaiIAIAFBIGoiAikCADcCACAAQQhqIAJBCGooAgA2AgAgAUEIakEAIAEoAhAiACABKAIYEBsgASgCCA0BIAFBKGogAUEYaigCADYCACABIAEpAxA3AyAgASABQSBqEBcgASgCBCEDIAEoAgALIQRBoMfAAC0AAA0BQaDHwABBAToAAAJAQajHwAApAwAiBUJ/UgRAQajHwAAgBUIBfDcDACAFQgBSDQFBrJnAAEErQcycwAAQdwALQYScwABBN0G8nMAAEJIBAAtBoMfAAEEAOgAAQQFBARC1ASICRQ0CIAJBADoAAEEwQQgQtQEiAEUNAyAAQgE3AiQgAEEANgIYIAAgAzYCFCAAIAQ2AhAgACAFNwMIIABCgYCAgBA3AwAgACACrTcCHCABQTBqJAAgAA8LIAEoAgwhAiABQShqIAEpAhQ3AwAgASAANgIkIAEgAjYCIEHcnMAAQS8gAUEgakHomcAAQYydwAAQTgALQbSiwABBIEHwosAAEJIBAAtBAUEBEMcBAAtBMEEIEMcBAAveAgEHf0EBIQkCQAJAIAJFDQAgASACQQF0aiEKIABBgP4DcUEIdiELIABB/wFxIQ0CQANAIAFBAmohDCAHIAEtAAEiAmohCCALIAEtAAAiAUcEQCABIAtLDQMgCCEHIAwiASAKRw0BDAMLIAggB08EQCAIIARLDQIgAyAHaiEBAkADQCACRQ0BIAJBf2ohAiABLQAAIAFBAWohASANRw0AC0EAIQkMBQsgCCEHIAwiASAKRw0BDAMLCyAHIAhBuKzAABBWAAsgCCAEQbiswAAQVQALIAZFDQAgBSAGaiEDIABB//8DcSEBA0ACQCAFQQFqIQACfyAAIAUtAAAiAkEYdEEYdSIEQQBODQAaIAAgA0YNASAFLQABIARB/wBxQQh0ciECIAVBAmoLIQUgASACayIBQQBIDQIgCUEBcyEJIAMgBUcNAQwCCwtB3aPAAEErQciswAAQdwALIAlBAXEL5QIBBX8jAEGAAWsiAyQAEHgCQAJAIAEoAgxBAUYEQCADQSBqIAIQrwEgAygCICEGIANBGGogAygCJCIFEC8gA0EANgIwIAMgAykDGDcDKCADQRBqQQAgBUF/akEEdkEBahC4ASADIAMpAxA3AzggAUGQFmohBwNAIANBCGogA0E4ahBzIAMoAghFDQIgBSADKAIMQQR0IgFBEGoiBCAEIAVLGyIEIAFJDQMgA0FAayABIAZqIAQgAWsQOCADQdAAaiADQUBrEGcgA0HgAGogA0HQAGoQIyADQfAAaiADQeAAaiAHEBQgA0HoAGogA0H4AGopAwA3AwAgAyADKQNwNwNgIANB4ABqIANB0ABqEDsgA0EoaiADQdAAakEQELYBDAALAAsQkQEACyADIANBKGoQrwEgACADKAIAIAMoAgQQkAEgA0EoahChASACEKEBIANBgAFqJAAPCyABIARBxIPAABBWAAuIAgILfwJ+IwBB0ABrIgMkACADQRBqIgJCADcDACADQgA3AwggA0EQNgIYIANBEDYCHCACIAFBCGopAAAiDTcDACADIAEpAAAiDjcDCCAOpyIBIAMoAgwiAiANpyIEIAMoAhQiBUEAECwhBiABIAIgBCAFQQEQLCEHIAEgAiAEIAVBAhAsIQggASACIAQgBUEDECwhCSABIAIgBCAFQQQQLCEKIAEgAiAEIAVBBRAsIQsgASACIAQgBUEGECwhDCAAIAEgAiAEIAVBBxAsOwEOIAAgDDsBDCAAIAs7AQogACAKOwEIIAAgCTsBBiAAIAg7AQQgACAHOwECIAAgBjsBACADQdAAaiQAC8cCAgR/An4jAEHQAGsiAyQAIAMgAjYCDCADIAE2AgggA0EANgIQIANCADcCRCADIANBJGo2AjwgAyADQRBqQQRyIgI2AjggAyADQQhqNgJAIANBQGshBUEQIQEDQAJAAkAgAQR/IAMgAkEBaiIGNgI4IAMgBRB6IAMtAABBAXENAiADKAIQBSAEC0EQRgRAIAMoAggiASADKAIMRgRAIANByABqIANBIGooAgA2AgAgA0FAayADQRhqKQMANwMAIANBMGogA0HEAGopAgAiBzcDACADIAMpAxA3AzggAyADKQI8Igg3AyggAEEJaiAHNwAAIAAgCDcAASAAQQE6AAAMAgsgAyABQQFqNgIICyAAQQA6AAALIANB0ABqJAAPCyACIAMtAAE6AAAgAyADKAIQQQFqIgQ2AhAgAUF/aiEBIAYhAgwACwALvgICBX8BfiMAQTBrIgQkAEEnIQICQCAAQpDOAFQEQCAAIQcMAQsDQCAEQQlqIAJqIgNBfGogACAAQpDOAIAiB0KQzgB+faciBUH//wNxQeQAbiIGQQF0QY6mwABqLwAAOwAAIANBfmogBSAGQeQAbGtB//8DcUEBdEGOpsAAai8AADsAACACQXxqIQIgAEL/wdcvViAHIQANAAsLIAenIgNB4wBKBEAgAkF+aiICIARBCWpqIAenIgMgA0H//wNxQeQAbiIDQeQAbGtB//8DcUEBdEGOpsAAai8AADsAAAsCQCADQQpOBEAgAkF+aiICIARBCWpqIANBAXRBjqbAAGovAAA7AAAMAQsgAkF/aiICIARBCWpqIANBMGo6AAALIAFBuKPAAEEAIARBCWogAmpBJyACaxAMIARBMGokAAu+AgEDfwJAAkACQAJAAkACQCACBEAgAkEFSQ0BIAJBCUkNAiACQQ1JDQMgAkENRg0EIAJBD0kNBSACQQ9GDQYgAS0AACECIAEtAAQhAyABLQAIIQQgAS0ADCEFIAAgAS0AASABLQAJQRB0ciABLQAFQQh0ciABLQANQRh0cjYCBCAAIAIgA0EIdHIgBEEQdHIgBUEYdHI2AgAgACABLQADIAEtAAtBEHRyIAEtAAdBCHRyIAEtAA9BGHRyNgIMIAAgAS0AAiABLQAGQQh0ciABLQAKQRB0ciABLQAOQRh0cjYCCA8LQQBBAEHslMAAEFQAC0EEIAJB/JTAABBUAAtBCCACQYyVwAAQVAALQQwgAkGclcAAEFQAC0ENQQ1BrJXAABBUAAtBDiACQbyVwAAQVAALQQ9BD0HMlcAAEFQAC6oCAQN/IwBBgAFrIgQkAAJAAkACfwJAIAEoAgAiA0EQcUUEQCAAKAIAIQIgA0EgcQ0BIAKtIAEQJQwCCyAAKAIAIQJBACEAA0AgACAEakH/AGogAkEPcSIDQTByIANB1wBqIANBCkkbOgAAIABBf2ohACACQQR2IgINAAsgAEGAAWoiAkGBAU8NAiABQYymwABBAiAAIARqQYABakEAIABrEAwMAQtBACEAA0AgACAEakH/AGogAkEPcSIDQTByIANBN2ogA0EKSRs6AAAgAEF/aiEAIAJBBHYiAg0ACyAAQYABaiICQYEBTw0CIAFBjKbAAEECIAAgBGpBgAFqQQAgAGsQDAsgBEGAAWokAA8LIAJBgAFB/KXAABBWAAsgAkGAAUH8pcAAEFYAC7oCAQV/IwBBQGoiAiQAIAEoAgQiA0UEQCABQQRqIQMgASgCACEEIAJBADYCICACQgE3AxggAiACQRhqNgIkIAJBOGogBEEQaikCADcDACACQTBqIARBCGopAgA3AwAgAiAEKQIANwMoIAJBJGpBnJbAACACQShqEAsaIAJBEGoiBCACKAIgNgIAIAIgAikDGDcDCAJAIAEoAgQiBUUNACABQQhqKAIAIgZFDQAgBSAGQQEQvAELIAMgAikDCDcCACADQQhqIAQoAgA2AgAgAygCACEDCyABQQE2AgQgAUEMaigCACEEIAFBCGoiASgCACEFIAFCADcCAEEMQQQQtQEiAUUEQEEMQQQQxwEACyABIAQ2AgggASAFNgIEIAEgAzYCACAAQZyhwAA2AgQgACABNgIAIAJBQGskAAubAgEBfyMAQRBrIgIkAAJAIAAoAgAiACACQQxqAn8CQCABQYABTwRAIAJBADYCDCABQYAQSQ0BIAFBgIAESQRAIAIgAUE/cUGAAXI6AA4gAiABQQZ2QT9xQYABcjoADSACIAFBDHZBD3FB4AFyOgAMQQMMAwsgAiABQT9xQYABcjoADyACIAFBEnZB8AFyOgAMIAIgAUEGdkE/cUGAAXI6AA4gAiABQQx2QT9xQYABcjoADUEEDAILIAAoAgggACgCBEYEQCAAQQEQvQELIAAoAgAgACgCCGogAToAACAAIAAoAghBAWo2AggMAgsgAiABQT9xQYABcjoADSACIAFBBnZBH3FBwAFyOgAMQQILELYBCyACQRBqJABBAAvDAgIDfwJ+IwBBQGoiAyQAIAACf0EBIAAtAAgNABogACgCBCEFIAAoAgAiBC0AAEEEcUUEQEEBIAQoAhhB1aXAAEHfpcAAIAUbQQJBASAFGyAEQRxqKAIAKAIMEQIADQEaIAEgACgCACACKAIMEQEADAELIAVFBEBBASAEKAIYQd2lwABBAiAEQRxqKAIAKAIMEQIADQEaIAAoAgAhBAsgA0EBOgAXIANBNGpBtKXAADYCACADIAQpAhg3AwggAyADQRdqNgIQIAQpAgghBiAEKQIQIQcgAyAELQAgOgA4IAMgBzcDKCADIAY3AyAgAyAEKQIANwMYIAMgA0EIajYCMEEBIAEgA0EYaiACKAIMEQEADQAaIAMoAjBB06XAAEECIAMoAjQoAgwRAgALOgAIIAAgACgCBEEBajYCBCADQUBrJAALwgICA38CfiMAQUBqIgIkAAJ/QQEgAC0ABA0AGiAALQAFIQQgACgCACIDLQAAQQRxRQRAIAEgBAR/QQEgAygCGEHVpcAAQQIgA0EcaigCACgCDBECAA0CGiAAKAIABSADC0HAlsAAKAIAEQEADAELIARFBEBBASADKAIYQeKlwABBASADQRxqKAIAKAIMEQIADQEaIAAoAgAhAwsgAkEBOgAXIAJBNGpBtKXAADYCACACIAMpAhg3AwggAiACQRdqNgIQIAMpAgghBSADKQIQIQYgAiADLQAgOgA4IAIgBjcDKCACIAU3AyAgAiADKQIANwMYIAIgAkEIajYCMEEBIAEgAkEYakHAlsAAKAIAEQEADQAaIAIoAjBB06XAAEECIAIoAjQoAgwRAgALIQEgAEEBOgAFIAAgAToABCACQUBrJAAL5QEBA38gACAEQRBqQR9xIgV2QQh0QYACcSAAIARBCGpBH3EiBnZBBHRBEHEgASAEQR9xIgd2QQF0QQJxIAAgB3ZBAXFyIAIgB3ZBAnRBBHFyIAMgB3ZBA3RBCHFyIAMgBEEYakEfcSIEdkEPdHJyIAEgBnZBBXRBIHFyIAIgBnZBBnRBwABxciADIAZ2QQd0QYABcXJyIAEgBXZBCXRBgARxciACIAV2QQp0QYAIcXIgAyAFdkELdEGAEHFyIAAgBHZBDHRBgCBxciABIAR2QQ10QYDAAHFyIAIgBHZBDnRBgIABcXIL/wEBAn8jAEEQayICJAAgAkEANgIMAn8CQAJAIAFBgAFPBEAgAUGAEEkNASACQQxqIQMgAUGAgARPDQIgAiABQT9xQYABcjoADiACIAFBBnZBP3FBgAFyOgANIAIgAUEMdkEPcUHgAXI6AAxBAwwDCyACIAE6AAwgAkEMaiEDQQEMAgsgAiABQT9xQYABcjoADSACIAFBBnZBH3FBwAFyOgAMIAJBDGohA0ECDAELIAIgAUE/cUGAAXI6AA8gAiABQRJ2QfABcjoADCACIAFBBnZBP3FBgAFyOgAOIAIgAUEMdkE/cUGAAXI6AA1BBAshASAAIAMgARARIAJBEGokAAuiAgEDfyMAQSBrIgEkAAJAAkBBjMfAACgCACIAQQFqQQBKBEBBjMfAACAANgIAQZDHwAAoAgAiAkUEQCABQQA2AgggAUEIahAgIQJBjMfAACgCAA0DQYzHwABBfzYCAAJAQZDHwAAoAgAiAEUNACAAIAAoAgAiAEF/ajYCACAAQQFHDQBBkMfAABBRC0GQx8AAIAI2AgBBjMfAAEGMx8AAKAIAQQFqIgA2AgALIAANAkGMx8AAQX82AgAgAiACKAIAIgBBAWo2AgAgAEF/TA0BQYzHwABBjMfAACgCAEEBajYCACABQSBqJAAgAg8LQYSYwABBGCABQRhqQfiZwABBnJjAABBOAAsAC0Ggl8AAQRAgAUEYakHYmcAAQfSXwAAQTgALzQECBH8BfiMAQRBrIgIkACACQoGAgIAQNwIAIAIoAgQiA0F/aiIEIAIoAgBqQQAgA2siBXGtIAGtfiIGQiCIpyADRXJFBEAgA2lBAUYEQCACIAM2AgwgAiAGpyAEaiAFcSIBNgIIAkAgAUF/SgRAIAEEQCABIAMQtQEiA0UNAgsgACABNgIEIAAgAzYCACACQRBqJAAPCxDKAQALIAJBCGoiACgCACAAKAIEEMcBAAtBsIfAAEErIAJBCGpB3IfAAEGgh8AAEE4ACxDKAQAL4AEBBH8CQCAAQQRqKAIAIgUgAEEIaigCACIEayACIAFrIgZPBEAgACgCACECDAELAkACQAJAAkAgBCAGaiICIARJDQAgBUEBdCIDIAIgAyACSxsiA0EASA0AAkAgBQRAIAAoAgAiAg0BCyADDQJBASECDAQLIAMgBUcEQCACIAVBASADEK0BIQILIAJFDQIgAEEIaigCACEEDAMLEL4BAAsgA0EBELUBIgINAQsgA0EBEMcBAAsgACACNgIAIABBBGogAzYCAAsgAiAEaiABIAYQfxogAEEIaiAEIAZqNgIAC+EBAQJ/IwBB0ABrIgQkACAEQRhqIAEQjgEgBCgCHCEBIAQoAhghBSAEQUBrIAIgAyADEKsBIARBEGogBEFAaxCmASAEQTBqIAQoAhAgBCgCFBCqASAEQcgAaiIDIARBOGoiAigCADYCACAEIAQpAzA3A0AgBEEgaiAFIARBQGsQIiABIAEoAgBBf2o2AgAgAiAEQShqKAIANgIAIAQgBCkDIDcDMCAEQQhqIARBMGoQrwEgAyACKAIANgIAIAQgBCkDMDcDQCAEIARBQGsQpgEgACAEKQMANwIAIARB0ABqJAAL5gEBA38jAEGgAWsiBSQAIAVBIGpBgAEQlgEDQCAGQYABRgRAIAAgBUEgahAFIAVBoAFqJAAFIAVBGGogBUEgakGAASAGIAZBBGoiB0HclcAAEHYgBSgCGCAFKAIcIAEQnwEgBUEQaiAFQSBqQYABIAcgBkEIaiIHQeyVwAAQdiAFKAIQIAUoAhQgAhCfASAFQQhqIAVBIGpBgAEgByAGQQxqIgdB/JXAABB2IAUoAgggBSgCDCADEJ8BIAUgBUEgakGAASAHIAZBEGoiBkGMlsAAEHYgBSgCACAFKAIEIAQQnwEMAQsLC+MBAQR/IwBBQGoiAiQAIAFBBGohBCABKAIERQRAIAEoAgAhAyACQQA2AiAgAkIBNwMYIAIgAkEYajYCJCACQThqIANBEGopAgA3AwAgAkEwaiADQQhqKQIANwMAIAIgAykCADcDKCACQSRqQZyWwAAgAkEoahALGiACQRBqIgMgAigCIDYCACACIAIpAxg3AwgCQCABKAIEIgVFDQAgAUEIaigCACIBRQ0AIAUgAUEBELwBCyAEIAIpAwg3AgAgBEEIaiADKAIANgIACyAAQZyhwAA2AgQgACAENgIAIAJBQGskAAveAQEBfyMAQeAAayIEJAAgBCABNgIIIAQgAzYCDCABIANGBEAgACACIAEQfxogBEHgAGokAA8LIARBPGpBHzYCACAEQTRqQSA2AgAgBEEkakEDNgIAIAQgBEEIajYCQCAEIARBDGo2AkQgBEHcAGpBADYCACAEQgM3AhQgBEG4jMAANgIQIARBIDYCLCAEQYyNwAA2AlggBEIBNwJMIARBhI3AADYCSCAEIARBKGo2AiAgBCAEQcgAajYCOCAEIARBxABqNgIwIAQgBEFAazYCKCAEQRBqQfyNwAAQkwEAC7EBAQ1+IAAgAikBACIDQjCIIgggA0IgiCIEhSABKQEAIgVCMIgiCSAFQiCIIgaFgyIKIAQgBoOFIAMgBIUiCyAFIAaFIgyDIg0gA0IQiCIEIAiFIg4gBUIQiCIGIAmFIg+DhSIHhT0BBCAAIAcgAyAEhSAFIAaFgyIHIAMgBYOFhT0BACAAIAsgDoUgDCAPhYMgDYUiAyAKIAggCYOFhT0BBiAAIAcgBCAGg4UgA4U9AQILhQIBAn8jAEEgayIEJABBASEFAkACQAJAQZjHwAAoAgBBAUcEQEGYx8AAQoGAgIAQNwMADAELQZzHwABBnMfAACgCAEEBaiIFNgIAIAVBAksNAQsgBCADNgIcIAQgAjYCGCAEQYCZwAA2AhQgBEGAmcAANgIQQfzGwAAoAgAiAkF/TA0AQfzGwAAgAkEBaiICNgIAQfzGwABBhMfAACgCACIDBH9BgMfAACgCACAEQQhqIAAgASgCEBEAACAEIAQpAwg3AxAgBEEQaiADKAIMEQAAQfzGwAAoAgAFIAILQX9qNgIAIAVBAU0NAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAvJAQECfyMAQRBrIgIkACABKAIYQbm+wABBCSABQRxqKAIAKAIMEQIAIQMgAkEAOgAFIAIgAzoABCACIAE2AgAgAiAANgIMIAIgAkEMahAeIAItAAQhASACLQAFBEAgAUH/AXEhACACAn9BASAADQAaIAIoAgAiAEEcaigCACgCDCEBIAAoAhghAyAALQAAQQRxRQRAIANB26XAAEECIAERAgAMAQsgA0HapcAAQQEgARECAAsiAToABAsgAkEQaiQAIAFB/wFxQQBHC7sBAQJ/IwBBMGsiAyQAIANBIGpCADcDACADQgA3AxggA0EQakEAIAJBECACQRBJGxC4ASADIAMpAxA3AygCQAJAA0AgA0EIaiADQShqEHMgAygCCEUNAiADKAIMIgQgAkkEQCAEQQ9LDQIgA0EYaiAEaiABIARqLQAAOgAADAELCyAEIAJBnIPAABBUAAsgBEEQQayDwAAQVAALIAAgAykDGDcAACAAQQhqIANBIGopAwA3AAAgA0EwaiQAC7UBAQF/IAAoAgAiBEEANgIAIARBeGoiACAAKAIAQX5xNgIAAkAgAiADKAIUEQUARQ0AAkAgBEF8aigCAEF8cSICBEAgAi0AAEEBcUUNAQsgACgCACIDQXxxIgJFIANBAnFyDQEgAi0AAEEBcQ0BIAQgAigCCEF8cTYCACACIABBAXI2AggPCyAAEEsgAC0AAEECcQRAIAIgAigCAEECcjYCAAsPCyAEIAEoAgA2AgAgASAANgIAC7sBAQJ/IwBBEGsiAiQAIAFBASABGyEBAkAgAEUNACAAQQNqQQJ2IQACQCABQQRLDQAgAEF/aiIDQf8BSw0AIAJB0L7AADYCBCACIANBAnRB1L7AAGoiAygCADYCDCAAIAEgAkEMaiACQQRqQfSJwAAQUyEBIAMgAigCDDYCAAwBCyACQdC+wAAoAgA2AgggACABIAJBCGpB3InAAEHcicAAEFMhAUHQvsAAIAIoAgg2AgALIAJBEGokACABC8IBAQR/IwBBMGsiAiQAIAJBIGogABB+IAIoAiwhACACKAIoIQMgAigCJCEEIAIoAiAhBSACQRhqIAFBEEEAQQRBrJPAABB2IAIoAhggAigCHCAFEJ8BIAJBEGogAUEQQQRBCEG8k8AAEHYgAigCECACKAIUIAQQnwEgAkEIaiABQRBBCEEMQcyTwAAQdiACKAIIIAIoAgwgAxCfASACIAFBEEEMQRBB3JPAABB2IAIoAgAgAigCBCAAEJ8BIAJBMGokAAu2AQEBfyMAQRBrIgMkAAJAIABFDQAgAyAANgIEIAFFDQACQCACQQRLDQAgAUEDakECdkF/aiIAQf8BSw0AIANB0L7AADYCCCADIABBAnRB1L7AAGoiACgCADYCDCADQQRqIANBDGogA0EIakH0icAAEDkgACADKAIMNgIADAELIANB0L7AACgCADYCDCADQQRqIANBDGpB3InAAEHcicAAEDlB0L7AACADKAIMNgIACyADQRBqJAALqAEBB38gAUEAQQBBAEEAECwhAiABQQBBAEEAQQEQLCEDIAFBAEEAQQBBAhAsIQQgAUEAQQBBAEEDECwhBSABQQBBAEEAQQQQLCEGIAFBAEEAQQBBBRAsIQcgAUEAQQBBAEEGECwhCCAAIAFBAEEAQQBBBxAsOwEOIAAgCDsBDCAAIAc7AQogACAGOwEIIAAgBTsBBiAAIAQ7AQQgACADOwECIAAgAjsBAAuEAQEKfiAAIAEpAQAiAkIgiCIGIAKEIgQgAkIQiCIDIAJCMIgiBYMiB4UiCCACIAOFIgmDIgogAyAEIAkgBSAGhSILgyADIAWFhSIDhSIEg4U9AQYgACAKIAIgAyAHhSIDg4U9AQQgACAIIAuDIgIgBCAFg4U9AQIgACACIAMgBoOFPQEAC4sBAQN/IwBBgAFrIgMkACAALQAAIQJBACEAA0AgACADakH/AGogAkEPcSIEQTByIARB1wBqIARBCkkbOgAAIABBf2ohACACQQR2IgINAAsgAEGAAWoiAkGBAU8EQCACQYABQfylwAAQVgALIAFBjKbAAEECIAAgA2pBgAFqQQAgAGsQDCADQYABaiQAC4oBAQN/IwBBgAFrIgMkACAALQAAIQJBACEAA0AgACADakH/AGogAkEPcSIEQTByIARBN2ogBEEKSRs6AAAgAEF/aiEAIAJBBHYiAg0ACyAAQYABaiICQYEBTwRAIAJBgAFB/KXAABBWAAsgAUGMpsAAQQIgACADakGAAWpBACAAaxAMIANBgAFqJAALlgEBBH8CQAJAIAEoAgQiBCACTwRAIARFDQIgASgCACEDAkACQCACIARGIgVFBEAgAg0BIAMgBBCuAUEBIQMMBAsgBUUNAQwDCyADIARBASACEK0BIgMNAgsgACACNgIEQQEhBiAAQQhqQQE2AgAMAgtBjI7AAEEkQaCPwAAQdwALIAEgAjYCBCABIAM2AgALIAAgBjYCAAuLAQEDfyMAQYABayIDJAAgACgCACECQQAhAANAIAAgA2pB/wBqIAJBD3EiBEEwciAEQdcAaiAEQQpJGzoAACAAQX9qIQAgAkEEdiICDQALIABBgAFqIgJBgQFPBEAgAkGAAUH8pcAAEFYACyABQYymwABBAiAAIANqQYABakEAIABrEAwgA0GAAWokAAuKAQEDfyMAQYABayIDJAAgACgCACECQQAhAANAIAAgA2pB/wBqIAJBD3EiBEEwciAEQTdqIARBCkkbOgAAIABBf2ohACACQQR2IgINAAsgAEGAAWoiAkGBAU8EQCACQYABQfylwAAQVgALIAFBjKbAAEECIAAgA2pBgAFqQQAgAGsQDCADQYABaiQAC4QBAQd/IAEvAQ4hCCABLwEMIAEvAQogAS8BCCABLwEGIAEvAQQgAS8BAiABLwEAEGQhARBkIQcQZCEGEGQhBRBkIQQQZCEDEGQhAiAAIAgQZDsBDiAAIAI7AQwgACADOwEKIAAgBDsBCCAAIAU7AQYgACAGOwEEIAAgBzsBAiAAIAE7AQALlgEBAn8gAC0ACCEBIAAoAgQiAgRAIAFB/wFxIQEgAAJ/QQEgAQ0AGgJAIAJBAUcNACAALQAJRQ0AIAAoAgAiAi0AAEEEcQ0AQQEgAigCGEHgpcAAQQEgAkEcaigCACgCDBECAA0BGgsgACgCACIBKAIYQeGlwABBASABQRxqKAIAKAIMEQIACyIBOgAICyABQf8BcUEARwuLAQEBfyMAQRBrIgMkACADIAEoAgAiASgCADYCDCACQQJqIgIgAmwiAkGAECACQYAQSxsiBEEEIANBDGpBw4nAAEHEicAAEFMhAiABIAMoAgw2AgAgAgR/IAJCADcCBCACIAIgBEECdGpBAnI2AgBBAAVBAQshASAAIAI2AgQgACABNgIAIANBEGokAAuNAQEGfyAAIAEvAQAiBDsBBCAAIAQgAS8BDHMiBSABLwEKcyICOwECIAAgAS8BCCIGIAJzOwEMIAAgAS8BAiIDIAJzIgc7AQogACACIAEvAQ4iAnM7AQggACADIAEvAQZzIgMgAS8BBCIBIAVzczsBACAAIAIgBiADIARzc3M7AQYgACACIAEgB3NzOwEOC4kBAQd/IAAgAS8BCiICIAEvAQYiA3MiBTsBDiAAIAMgAS8BDiIEczsBDCAAIAEvAQwiAyABLwEAcyIGOwEKIAAgBCAFcyIEOwEIIAAgAS8BAiIHIAIgAS8BCCIIc3M7AQIgACAHIAMgCHMiAnM7AQAgACACIARzOwEGIAAgAS8BBCAFIAZzczsBBAt3AQN/IABBB3ZBgYKECHFBG2wgAEEBdEH+/ft3cXMiAUEHdkGBgoQIcUEbbCABQQF0Qf79+3dxcyICIAFzIAJBB3ZBgYKECHFBG2wgAkEBdEH+/ft3cXMiA3MgACADcyIAQQh3cyAAIAFzQRh3cyAAIAJzQRB3cwupAQEDfwJAAkBBmMfAACgCAEEBRwRAQZjHwABCATcDAAwBC0Gcx8AAKAIADQELQfzGwAAoAgBFBEBBhMfAACgCACEAQYTHwABB7IfAADYCAEGAx8AAKAIAIQFBgMfAAEEBNgIAQfzGwABBADYCAAJAIABFDQAgASAAKAIAEQQAIAAoAgQiAkUNACABIAIgACgCCBC8AQsPCwALQY2gwABBNEHYoMAAEJIBAAtzAQJ/IAAoAgAiAUF8cSICRSABQQJxckUEQCACIAIoAgRBA3EgACgCBEF8cXI2AgQLIAAgACgCBCICQXxxIgEEfyABIAEoAgBBA3EgACgCAEF8cXI2AgAgACgCBAUgAgtBA3E2AgQgACAAKAIAQQNxNgIAC3QBA38jAEEgayICJAACQCAAIAEQJ0UEQCABQRxqKAIAIQMgASgCGCACQRxqQQA2AgAgAkG4o8AANgIYIAJCATcCDCACQbyjwAA2AgggAyACQQhqEAtFDQELIAJBIGokAEEBDwsgAEEEaiABECcgAkEgaiQAC3EAAn8gAkECdCIBIANBA3RBgIABaiICIAEgAksbQYeABGoiAUEQdkAAIgJBf0YEQEEAIQNBAQwBCyACQRB0IgNCADcDACADQQA2AgggAyADIAFBgIB8cWpBAnI2AgBBAAshAiAAIAM2AgQgACACNgIAC34BAX8jAEFAaiIFJAAgBSABNgIMIAUgADYCCCAFIAM2AhQgBSACNgIQIAVBLGpBAjYCACAFQTxqQT82AgAgBUICNwIcIAVBlKTAADYCGCAFQTs2AjQgBSAFQTBqNgIoIAUgBUEQajYCOCAFIAVBCGo2AjAgBUEYaiAEEJMBAAuCAQAgACACLwEOIAEvAQ5zOwEOIAAgAi8BDCABLwEMczsBDCAAIAIvAQogAS8BCnM7AQogACACLwEIIAEvAQhzOwEIIAAgAi8BBiABLwEGczsBBiAAIAIvAQQgAS8BBHM7AQQgACACLwECIAEvAQJzOwECIAAgAi8BACABLwEAczsBAAtpAQN/IwBBwAFrIgEkACABQQA2ArgBA0AgAkGwAUZFBEAgAUEIaiACaiIDQgA3AgAgA0EIakIANwIAIAEgASgCuAFBAWo2ArgBIAJBEGohAgwBCwsgACABQQhqQbABEH8aIAFBwAFqJAALcAECfwJAIAAoAgAiAUEQaigCACICRQ0AIAJBADoAACABQRRqKAIAIgJFDQAgASgCECACQQEQvAELIAFBHGooAgBBAUEBELwBIAAoAgAiASABKAIEIgFBf2o2AgQgAUEBRgRAIAAoAgBBMEEIELwBCwtbAQJ/IwBBIGsiAiQAIAFBHGooAgAhAyABKAIYIAJBGGogACgCACIAQRBqKQIANwMAIAJBEGogAEEIaikCADcDACACIAApAgA3AwggAyACQQhqEAsgAkEgaiQAC2sBAn8jAEEQayIGJAACQCAAIAEgAiADIAQQFiIFDQAgBkEIaiADIAAgASAEKAIMEQYAQQAhBSAGKAIIDQAgBigCDCIFIAIoAgA2AgggAiAFNgIAIAAgASACIAMgBBAWIQULIAZBEGokACAFC20BAX8jAEEwayIDJAAgAyABNgIEIAMgADYCACADQRxqQQI2AgAgA0EsakE6NgIAIANCAjcCDCADQaSlwAA2AgggA0E6NgIkIAMgA0EgajYCGCADIAM2AiggAyADQQRqNgIgIANBCGogAhCTAQALbQEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBHGpBAjYCACADQSxqQTo2AgAgA0ICNwIMIANBgKnAADYCCCADQTo2AiQgAyADQSBqNgIYIAMgA0EEajYCKCADIAM2AiAgA0EIaiACEJMBAAttAQF/IwBBMGsiAyQAIAMgATYCBCADIAA2AgAgA0EcakECNgIAIANBLGpBOjYCACADQgI3AgwgA0G0qcAANgIIIANBOjYCJCADIANBIGo2AhggAyADQQRqNgIoIAMgAzYCICADQQhqIAIQkwEAC1YBAn8jAEEgayICJAAgAUEcaigCACEDIAEoAhggAkEYaiAAQRBqKQIANwMAIAJBEGogAEEIaikCADcDACACIAApAgA3AwggAyACQQhqEAsgAkEgaiQAC1sBAn8jAEEQayICJAAgACgCACIAKAIIIQMgACgCACEAIAIgARCVASADBEADQCACIAA2AgwgAiACQQxqECsgAEEBaiEAIANBf2oiAw0ACwsgAhCUASACQRBqJAALXQEDfyAAIAEoAgAiBCACQR9xIgN0NgIAIAAgASgCDCADdCABKAIIIgVBACACa0EfcSICdnI2AgwgACAFIAN0IAEoAgQiASACdnI2AgggACABIAN0IAQgAnZyNgIEC10BAn8gACABKAIMIgMgAkEfcSIEdjYCDCAAIANBACACa0EfcSICdCABKAIIIgMgBHZyNgIIIAAgAyACdCABKAIEIgMgBHZyNgIEIAAgAyACdCABKAIAIAR2cjYCAAtZAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQZyWwAAgAkEIahALIAJBIGokAAtZAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQdinwAAgAkEIahALIAJBIGokAAtWAQF/IwBBIGsiAiQAIAIgADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQeSLwAAgAkEIahALIAJBIGokAAtWAQF/IwBBIGsiAiQAIAIgADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQdinwAAgAkEIahALIAJBIGokAAtrAQN/IAAoAgwhASAAQYCAxAA2AgwCQCABQYCAxABHDQBBgIDEACEBIAAoAgAiAiAAKAIERg0AIAAgAkEBajYCACAAKAIIIgMgAi0AACICQQR2ai0AACEBIAAgAyACQQ9xai0AADYCDAsgAQtSAQF/IwBBQGoiAiQAIAIgARBHIAJBEGogAhAVIAJBIGogAkEQahBIIAJBOGogAkEoaikDADcDACACIAIpAyA3AzAgACACQTBqEHAgAkFAayQAC1wBAX8jAEEgayICJAAgAkEANgIIIAJCATcDACACQRhqIAFBCGopAgA3AwAgAiABKQIANwMQIAIgAkEQahAdIABBCGogAigCCDYCACAAIAIpAwA3AgAgAkEgaiQAC0oBAX8jAEEgayICJAAgACgCACACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQhqEF0gAkEgaiQAC1gBAX8jAEGAGWsiAiQAIAFFBEAQwwEACyACIAEQlwEgAigCBEEANgIAIAJBCGogAUH0GBB/GiAAIAJBCGpBBHJB8BgQfxogAUH0GEEEELwBIAJBgBlqJAALTAEBfyAAQQF0QYBAcSAAQQJ0QYAYcSAAQQN0QYABcSAAQf//A3EiAUEBdkHwAHEgAEEPcXJyIAFBAnZBgAZxcnIgAUEDdkGAIHFycgtTAQF/IwBBIGsiAyQAIANBCGogAUEIaikBADcDACADIAEpAQA3AwAgA0EYaiACQQhqKQEANwMAIAMgAikBADcDECAAIAMgA0EQahBPIANBIGokAAtiAQF/IwBBMGsiACQAIABBKjYCDCAAQYSBwAA2AgggAEEkakEBNgIAIABCATcCFCAAQYikwAA2AhAgAEE7NgIsIAAgAEEoajYCICAAIABBCGo2AiggAEEQakGQgsAAEJMBAAtKAQF/IwBBIGsiAiQAIAJBCGogASABQRBqECQgAi0ACEEBRwRAEGYACyAAIAIpAAk3AAAgAEEIaiACQRFqKQAANwAAIAJBIGokAAtWAQJ/IAEoAgAhAiABQQA2AgACQCACBEAgASgCBCEDQQhBBBC1ASIBRQ0BIAEgAzYCBCABIAI2AgAgAEGchsAANgIEIAAgATYCAA8LAAtBCEEEEMcBAAtMAQF/IwBBEGsiAiQAIAIgARCJASACIAA2AgwgAiACQQxqQeiawAAQKiACIABBBGo2AgwgAiACQQxqQdihwAAQKiACEEUgAkEQaiQAC04BAX8jAEEQayIEJAACQCABKAIEIAJrIANPBEAgAEEANgIADAELIARBCGogAzYCACAEIAI2AgQgBEEBNgIAIAAgASAEEBILIARBEGokAAtUAQF/IwBBIGsiAiQAIAJBCGogARAvIAJBADYCGCACIAIpAwg3AxAgAkEQakG8g8AAIAEQtgEgAEEIaiACKAIYNgIAIAAgAikDEDcCACACQSBqJAALVgECfyABKAIAIQIgAUEANgIAAkAgAgRAIAEoAgQhA0EIQQQQtQEiAUUNASABIAM2AgQgASACNgIAIABBwKHAADYCBCAAIAE2AgAPCwALQQhBBBDHAQALTgEBfyMAQfAYayIBJAAgASAAQfAYEH8hAUH0GEEEELUBIgBFBEBB9BhBBBDHAQALIABBADYCACAAQQRqIAFB8BgQfxogAUHwGGokACAAC0kBAX8jAEEQayIDJAAgAyAAIAEgAhBqAkAgAygCAEEBRgRAIANBCGooAgAiAEUNASADKAIEIAAQxwEACyADQRBqJAAPCxC+AQALRwEBfyMAQRBrIgIkACACIAAgARBBAkAgAigCAEEBRgRAIAJBCGooAgAiAEUNASACKAIEIAAQxwEACyACQRBqJAAPCxC+AQALVAAgACABLwEOOwEOIAAgAS8BCDsBCCAAIAEoAQQ2AQQgACABLwEMQX9zOwEMIAAgAS8BCkF/czsBCiAAIAEvAQJBf3M7AQIgACABLwEAQX9zOwEAC0MBA38CQCACRQ0AA0AgAC0AACIEIAEtAAAiBUYEQCAAQQFqIQAgAUEBaiEBIAJBf2oiAg0BDAILCyAEIAVrIQMLIAMLSgACfyABQYCAxABHBEBBASAAKAIYIAEgAEEcaigCACgCEBEBAA0BGgsgAkUEQEEADwsgACgCGCACIAMgAEEcaigCACgCDBECAAsLQgEEfwJAIAEoAgAiAiABKAIETw0AIAJBAWoiAyACSQ0AIAEoAgAhBCABIAM2AgBBASEFCyAAIAQ2AgQgACAFNgIAC1wBAX8jAEEgayIDJAAgA0GAgMQANgIMIANB+IPAADYCCCADIAE2AgAgAyABIAJqNgIEIANBGGogA0EIaikDADcDACADIAMpAwA3AxAgACADQRBqEGEgA0EgaiQACy0AAkAgAQRAIAEgAhC1ASICDQFBACECDAELQQAhAQsgACABNgIEIAAgAjYCAAs7AAJAIAQgA08EQCACIARJDQEgACAEIANrNgIEIAAgASADajYCAA8LIAMgBCAFEFYACyAEIAIgBRBVAAtIAQF/IwBBIGsiAyQAIANBFGpBADYCACADQbijwAA2AhAgA0IBNwIEIAMgATYCHCADIAA2AhggAyADQRhqNgIAIAMgAhCTAQALOgEBfyMAQRBrIgAkAEHUxsAAKAIAQQNHBEAgAEEBOgALIAAgAEELajYCDCAAQQxqEA0LIABBEGokAAs8AQF/An9BACABKAIAIgIgASgCBEYNABogASACQQFqNgIAIAItAAAhAUEBCyECIAAgAToAASAAIAI6AAALOwEBfyMAQRBrIgIkACACQQhqIAEoAgAQeSACLQAIIQEgACACLQAJOgABIAAgAUEBcToAACACQRBqJAALOQECfiAAIAEpAQAiAj0BACAAIAIgAkIgiIU9AQYgACACQhCIIgMgAkIwiIU9AQQgACACIAOFPQECC0gAAkAgAC0ABA0AQZjHwAAoAgBBAUcEQEGYx8AAQgE3AwAMAQtBnMfAACgCAEUNACAAKAIAQQE6AAQLIAAoAgAoAgBBADoAAAtgAQN/IwBBEGsiASQAIAAoAgwiAkUEQEGsmcAAQStB6KDAABB3AAsgACgCCCIDRQRAQayZwABBK0H4oMAAEHcACyABQQA2AgQgASADNgIAIAFBiKHAACAAKAIIIAIQNgALPAEDfyABQQAQDyECIAFBARAPIQMgAUECEA8hBCAAIAFBAxAPNgIMIAAgBDYCCCAAIAM2AgQgACACNgIACzMBAX8gAgRAIAAhAwNAIAMgAS0AADoAACADQQFqIQMgAUEBaiEBIAJBf2oiAg0ACwsgAAs5AQJ/IwBB4DFrIgAkACAAQQAQayAAQQA2AgwgAEHwGGogAEHwGBB/GiAAQfAYahBtIABB4DFqJAALKgEBfyADIAIQOiIEBEAgBCAAIAMgASABIANLGxB/GiAAIAEgAhA8CyAECysAAkAgAEF8Sw0AIABFBEBBBA8LIAAgAEF9SUECdBC1ASIARQ0AIAAPCwALLwEBfyMAQRBrIgEkACABQQhqIAAQjwEgASgCDCABKAIIEAdBADYCACABQRBqJAALMQEBfyABKAIAIgJBf0cEQCABIAJBAWo2AgAgACABNgIEIAAgAUEEajYCAA8LEMQBAAsrAQF/IwBBIGsiASQAIAFBEGogABA9IAEgAUEQahBgIAEQnAEgAUEgaiQACzAAIAAoAgAhACABELoBRQRAIAEQuwFFBEAgACABEMABDwsgACABEEMPCyAAIAEQQgsxAQF/IAEoAgQiAgRAIAAgAjYCBCAAQQhqQQE2AgAgACABKAIANgIADwsgAEEANgIACzIAIAAoAgAhACABELoBRQRAIAEQuwFFBEAgADEAACABECUPCyAAIAEQQA8LIAAgARA/CzYAIAAgASgCGEHQocAAQQggAUEcaigCACgCDBECADoACCAAIAE2AgAgAEEAOgAJIABBADYCBAsrACAAKAIAIgAtAAAgAEEAOgAAQQFxRQRAQZiJwABBK0GIicAAEHcACxBKCy8BAX8gACACIAFrIgIQvQEgACgCCCIDIAAoAgBqIAIgASACEDQgACACIANqNgIICzAAIAAgACgCBCIAIAEgABs2AgQgAEUgACABRnJFBEBB2J3AAEE2QaiewAAQkgEACws0AQF/IwBBEGsiAiQAIAIgATYCDCACIAA2AgggAkGAmcAANgIEIAJBgJnAADYCACACEH0ACy0BAX8jAEEQayICJAAgARCzASACQQhqIAEQhAEgACACKQMINwIAIAJBEGokAAstAQF/IwBBEGsiAiQAIAEQswEgAkEIaiABEJcBIAAgAikDCDcCACACQRBqJAALNQEBfyMAQRBrIgMkACADIAI2AgwgAyABNgIIIAAgA0EIaiIAKAIAIAAoAgQQdCADQRBqJAALMgEBfyMAQRBrIgAkACAAQRQ2AgwgAEHUg8AANgIIIABBCGpBiIbAAEEAQeiDwAAQNgALLAEBfyMAQRBrIgMkACADIAE2AgwgAyAANgIIIANBCGpBrKHAAEEAIAIQNgALNAEBfyMAQRBrIgIkACACIAE2AgwgAiAANgIIIAJBpKTAADYCBCACQbijwAA2AgAgAhB9AAsyAQF/QQEhASAALQAEBH8gAQUgACgCACIAKAIYQeSlwABBASAAQRxqKAIAKAIMEQIACws1AQF/IAEoAhhB46XAAEEBIAFBHGooAgAoAgwRAgAhAiAAQQA6AAUgACACOgAEIAAgATYCAAshACABBEADQCAAQQA6AAAgAEEBaiEAIAFBf2oiAQ0ACwsLKAAgASgCAEUEQCABQX82AgAgACABNgIEIAAgAUEEajYCAA8LEMQBAAsoAQF/IwBBEGsiAiQAIAIgACgCADYCDCACQQxqIAEQigEgAkEQaiQACyAAAkAgAUF8Sw0AIAAgAUEEIAIQrQEiAEUNACAADwsACycBAX8CQCAAKAIEIgFFDQAgAEEIaigCACIARQ0AIAEgAEEBELwBCwsnAQF/AkAgACgCACIBRQ0AIABBBGooAgAiAEUNACABIABBARC8AQsLHwEBfyMAQRBrIgEkACABIAAQfiABKAIAIAFBEGokAAsrAQF/IAAoAgAiASgCACABKAIEIAAoAgQoAgAgACgCCCgCAEGIqsAAEAgACyEBAX8jAEHwGGsiASQAIAEgABBjIAEQoQEgAUHwGGokAAshACABQQRPBEAgACACNgAADwtBmJLAAEEgQbiSwAAQdwALHQAgASgCAEUEQAALIABBnIbAADYCBCAAIAE2AgALGAEBfyAAKAIEIgEEQCAAKAIAIAEQrgELCxoBAX8gACgCCCIBIAAoAgRHBEAgACABEG8LCxoAIABCADcCBCAAQQQ2AgAgAEEMakIANwIACxYAIABBCHRBgID8B3EgAEEYdHJBEHYLHQAgASgCAEUEQAALIABBwKHAADYCBCAAIAE2AgALGwAgARCiASAAIAEoAgg2AgQgACABKAIANgIACxwAIAEoAhhBxKPAAEELIAFBHGooAgAoAgwRAgALHAAgASgCGEHPo8AAQQ4gAUEcaigCACgCDBECAAscACABKAIYQYS4wABBBSABQRxqKAIAKAIMEQIACxcAIAAgAjYCCCAAIAI2AgQgACABNgIACxcAIAAgAjYCCCAAIAM2AgQgACABNgIACxIAIABBDHQgAEHw/wNxQQR2cgsNACAAIAEgAiADEIEBCxAAIAEEQCAAIAFBARC8AQsLFgAgACABKAIINgIEIAAgASgCADYCAAsQACABBEAgACABQQQQvAELCxIAIAAoAgAgASABIAJqEDBBAAsVACABIAAoAgAiACgCACAAKAIEEAkLDAAgAARADwsQwwEACxQAIAAoAgAgASAAKAIEKAIMEQEACwgAIAAgARA6Cw4AIAAgASABIAJqEIsBCxAAIAAoAgAgASACELYBQQALEAAgACACNgIEIAAgATYCAAsQACABIAAoAgAgACgCBBAJCw0AIAAtAABBEHFBBHYLDQAgAC0AAEEgcUEFdgsKACAAIAEgAhA8Cw0AIAAgACgCCCABEG4LEQBBl6PAAEERQaijwAAQdwALDgAgACgCABoDQAwACwALCwAgADUCACABECULDQAgACgCACABIAIQEQsLACAAKAIAIAEQHwsNAEGwj8AAQRsQxQEACw4AQcuPwABBzwAQxQEACwkAIAAgARAEAAsGACABEAYLGQAgACABQfjGwAAoAgAiAEEkIAAbEQAAAAsLACAAKAIAIAEQLQsNACABQaiowABBAhAJCwYAEL4BAAsGACABEBwLDABC5K7ChZebpYgRCwQAIAELBABBAAsFAEGABAsEAEEBCwwAQvTQ1KnQ97O+ZgsMAEKNybDVpKrTlVYLAwABCwMAAQsL3D4CAEGAgMAAC8k+L1VzZXJzL3lhbmdkb25nbGFpLy5jYXJnby9yZWdpc3RyeS9zcmMvZ2l0aHViLmNvbS0xZWNjNjI5OWRiOWVjODIzL2Flcy1zb2Z0LTAuNS4wL3NyYy9iaXRzbGljZS5ycwAAAAAAEABhAAAAGgAAACgAAAAAABAAYQAAACEAAAAiAAAAU2xpY2UgbXVzdCBiZSB0aGUgc2FtZSBsZW5ndGggYXMgdGhlIGFycmF5L1VzZXJzL3lhbmdkb25nbGFpLy5jYXJnby9yZWdpc3RyeS9zcmMvZ2l0aHViLmNvbS0xZWNjNjI5OWRiOWVjODIzL2dlbmVyaWMtYXJyYXktMC4xNC40L3NyYy9saWIucnOuABAAYgAAAEoCAAAJAAAAL1VzZXJzL3lhbmdkb25nbGFpLy5jYXJnby9yZWdpc3RyeS9zcmMvZ2l0aHViLmNvbS0xZWNjNjI5OWRiOWVjODIzL2Flcy1zb2Z0LTAuNS4wL3NyYy9pbXBscy5ycwAAIAEQAF4AAAA1AAAAGQAAAHNyYy9saWIucnMAAJABEAAKAAAAZwAAABQAAACQARAACgAAAGcAAAAJAAAAYW1hcC13ZWKQARAACgAAADYAAAAaAAAASW5zdGFuY2Ugbm90IGNyZWF0ZWSQARAACgAAAEYAAAAVAAAAMDEyMzQ1Njc4OWFiY2RlZi9Vc2Vycy95YW5nZG9uZ2xhaS8uY2FyZ28vcmVnaXN0cnkvc3JjL2dpdGh1Yi5jb20tMWVjYzYyOTlkYjllYzgyMy9hZXMtc29mdC0wLjUuMC9zcmMvZXhwYW5kLnJzAAgCEABfAAAANwAAACYAAAAIAhAAXwAAADgAAAAaAAAACAIQAF8AAAA5AAAAGgAAAAgCEABfAAAAOgAAABoAAAAIAhAAXwAAADcAAAAJAAAACAIQAF8AAABAAAAAFwAAAAgCEABfAAAAQgAAADMAAAAIAhAAXwAAAEcAAAAcAAAACAIQAF8AAABHAAAACQAAAAgCEABfAAAATwAAACEAAAABAAAACAAAAAQAAAACAAAAAwAAAAQAAAAIAAAABAAAAAUAAAAvVXNlcnMveWFuZ2RvbmdsYWkvLnJ1c3R1cC90b29sY2hhaW5zL3N0YWJsZS14ODZfNjQtYXBwbGUtZGFyd2luL2xpYi9ydXN0bGliL3NyYy9ydXN0L3NyYy9saWJjb3JlL2FsbG9jL2xheW91dC5ycwAAACwDEABxAAAA5wAAAAkAAABjYWxsZWQgYFJlc3VsdDo6dW53cmFwKClgIG9uIGFuIGBFcnJgIHZhbHVlAAYAAAAAAAAAAQAAAAcAAAAIAAAAAAAAAAEAAAAJAAAACgAAAAsAAAAMAAAABAAAAAQAAAANAAAADgAAAC9Vc2Vycy95YW5nZG9uZ2xhaS8ucnVzdHVwL3Rvb2xjaGFpbnMvc3RhYmxlLXg4Nl82NC1hcHBsZS1kYXJ3aW4vbGliL3J1c3RsaWIvc3JjL3J1c3Qvc3JjL2xpYnN0ZC9zeW5jL29uY2UucnMAAAAYBBAAbQAAAAgBAAApAAAAY2FsbGVkIGBPcHRpb246OnVud3JhcCgpYCBvbiBhIGBOb25lYCB2YWx1ZQAPAAAAAAAAAAEAAAAQAAAAEQAAABIAAAATAAAAAAAAAAEAAAAQAAAAEQAAABIAAAAUAAAABAAAAAQAAAAVAAAAFgAAABcAAAAMBRAAAAAAAGEgRGlzcGxheSBpbXBsZW1lbnRhdGlvbiByZXR1cm5lZCBhbiBlcnJvciB1bmV4cGVjdGVkbHkvVXNlcnMveWFuZ2RvbmdsYWkvLnJ1c3R1cC90b29sY2hhaW5zL3N0YWJsZS14ODZfNjQtYXBwbGUtZGFyd2luL2xpYi9ydXN0bGliL3NyYy9ydXN0L3NyYy9saWJhbGxvYy9zdHJpbmcucnMASwUQAGwAAACMCAAACQAAABkAAAAAAAAAAQAAABoAAAAKClN0YWNrOgoKCgobAAAABAAAAAQAAAAcAAAAHQAAAB4AAABhc3NlcnRpb24gZmFpbGVkOiBgKGxlZnQgPT0gcmlnaHQpYAogIGxlZnQ6IGBgLAogcmlnaHQ6IGBgOiD8BRAALQAAACkGEAAMAAAANQYQAAMAAABkZXN0aW5hdGlvbiBhbmQgc291cmNlIHNsaWNlcyBoYXZlIGRpZmZlcmVudCBsZW5ndGhzUAYQADQAAAAvVXNlcnMveWFuZ2RvbmdsYWkvLnJ1c3R1cC90b29sY2hhaW5zL3N0YWJsZS14ODZfNjQtYXBwbGUtZGFyd2luL2xpYi9ydXN0bGliL3NyYy9ydXN0L3NyYy9saWJjb3JlL21hY3Jvcy9tb2QucnMAjAYQAG8AAAAoAAAACQAAAFRyaWVkIHRvIHNocmluayB0byBhIGxhcmdlciBjYXBhY2l0eS9Vc2Vycy95YW5nZG9uZ2xhaS8ucnVzdHVwL3Rvb2xjaGFpbnMvc3RhYmxlLXg4Nl82NC1hcHBsZS1kYXJ3aW4vbGliL3J1c3RsaWIvc3JjL3J1c3Qvc3JjL2xpYmNvcmUvbWFjcm9zL21vZC5ycwAwBxAAbwAAACIAAAAJAAAAbnVsbCBwb2ludGVyIHBhc3NlZCB0byBydXN0cmVjdXJzaXZlIHVzZSBvZiBhbiBvYmplY3QgZGV0ZWN0ZWQgd2hpY2ggd291bGQgbGVhZCB0byB1bnNhZmUgYWxpYXNpbmcgaW4gcnVzdAAAAQAAAAIAAAAEAAAACAAAABAAAAAgAAAAQAAAAIAAAAAbAAAANgAAAGFzc2VydGlvbiBmYWlsZWQ6IGAobGVmdCA9PSByaWdodClgCiAgbGVmdDogYGAsCiByaWdodDogYGAAAEQIEAAtAAAAcQgQAAwAAAB9CBAAAQAAAC9Vc2Vycy95YW5nZG9uZ2xhaS8ucnVzdHVwL3Rvb2xjaGFpbnMvc3RhYmxlLXg4Nl82NC1hcHBsZS1kYXJ3aW4vbGliL3J1c3RsaWIvc3JjL3J1c3Qvc3JjL2xpYmNvcmUvbWFjcm9zL21vZC5ycwCYCBAAbwAAACgAAAAJAAAAYXNzZXJ0aW9uIGZhaWxlZDogNCA8PSBidWYubGVuKCmYCBAAbwAAACIAAAAJAAAAL1VzZXJzL3lhbmdkb25nbGFpLy5jYXJnby9yZWdpc3RyeS9zcmMvZ2l0aHViLmNvbS0xZWNjNjI5OWRiOWVjODIzL2Flcy1zb2Z0LTAuNS4wL3NyYy9iaXRzbGljZS5ycwAAAEgJEABhAAAAngEAABgAAABICRAAYQAAAJ8BAAAYAAAASAkQAGEAAACgAQAAGAAAAEgJEABhAAAAoQEAABgAAABICRAAYQAAAMQBAAAeAAAASAkQAGEAAADFAQAAHgAAAEgJEABhAAAAxgEAAB4AAABICRAAYQAAAMcBAAAeAAAASAkQAGEAAADIAQAAHgAAAEgJEABhAAAAyQEAAB4AAABICRAAYQAAAMoBAAAeAAAASAkQAGEAAADLAQAAHgAAAEgJEABhAAAAsQEAABcAAABICRAAYQAAALIBAAAeAAAASAkQAGEAAACzAQAAHgAAAEgJEABhAAAAtAEAAB4AAABICRAAYQAAALgBAAAeAAAASAkQAGEAAAC8AQAAHgAAAEgJEABhAAAAwAEAAB4AAABICRAAYQAAABYCAAAcAAAASAkQAGEAAAAXAgAAHAAAAEgJEABhAAAAGAIAABwAAABICRAAYQAAABkCAAAcAAAAJQAAAAQAAAAEAAAAJgAAACcAAAAoAAAAJQAAAAQAAAAEAAAAKQAAAC9ydXN0Yy80OWNhZTU1NzYwZGEwYTQzNDI4ZWJhNzNhYmNiNjU5YmI3MGNmMmU0L3NyYy9saWJjb3JlL21hY3Jvcy9tb2QucnMAAABECxAASQAAACIAAAAJAAAAYWxyZWFkeSBib3Jyb3dlZC9ydXN0Yy80OWNhZTU1NzYwZGEwYTQzNDI4ZWJhNzNhYmNiNjU5YmI3MGNmMmU0L3NyYy9saWJjb3JlL2NlbGwucnMAsAsQAEMAAABuAwAACQAAAGFscmVhZHkgbXV0YWJseSBib3Jyb3dlZLALEABDAAAAHgMAAAkAAABhc3NlcnRpb24gZmFpbGVkOiBgKGxlZnQgPT0gcmlnaHQpYAogIGxlZnQ6IGBgLAogcmlnaHQ6IGBgAAAsDBAALQAAAFkMEAAMAAAAZQwQAAEAAAAlAAAAAAAAAAEAAAAqAAAAYDogACwMEAAtAAAAWQwQAAwAAACQDBAAAwAAAGNhbGxlZCBgT3B0aW9uOjp1bndyYXAoKWAgb24gYSBgTm9uZWAgdmFsdWUAJQAAAAAAAAABAAAAKwAAACwAAAAQAAAABAAAAC0AAAAlAAAAAAAAAAEAAAAuAAAAY2FsbGVkIGBSZXN1bHQ6OnVud3JhcCgpYCBvbiBhbiBgRXJyYCB2YWx1ZQAvAAAACAAAAAQAAAAwAAAAVHJpZWQgdG8gc2hyaW5rIHRvIGEgbGFyZ2VyIGNhcGFjaXR5JQAAAAQAAAAEAAAAIwAAAHNyYy9saWJzdGQvdGhyZWFkL21vZC5yc3gNEAAYAAAAhgMAABEAAABpbmNvbnNpc3RlbnQgcGFyayBzdGF0ZQB4DRAAGAAAAJQDAAATAAAAAgAAAHBhcmsgc3RhdGUgY2hhbmdlZCB1bmV4cGVjdGVkbHkAzA0QAB8AAAB4DRAAGAAAAJEDAAANAAAAZmFpbGVkIHRvIGdlbmVyYXRlIHVuaXF1ZSB0aHJlYWQgSUQ6IGJpdHNwYWNlIGV4aGF1c3RlZAB4DRAAGAAAACoEAAARAAAAeA0QABgAAAAwBAAAFgAAAHRocmVhZCBuYW1lIG1heSBub3QgY29udGFpbiBpbnRlcmlvciBudWxsIGJ5dGVzAHgNEAAYAAAAcwQAABoAAABpbmNvbnNpc3RlbnQgc3RhdGUgaW4gdW5wYXJreA0QABgAAACrBAAAEgAAAHgNEAAYAAAAuQQAAA4AAABhdHRlbXB0ZWQgdG8gdXNlIGEgY29uZGl0aW9uIHZhcmlhYmxlIHdpdGggdHdvIG11dGV4ZXNzcmMvbGlic3RkL3N5bmMvY29uZHZhci5ycw4PEAAaAAAAPwIAABIAAABzcmMvbGlic3RkL3N5bmMvb25jZS5yc2Fzc2VydGlvbiBmYWlsZWQ6IHN0YXRlX2FuZF9xdWV1ZSAmIFNUQVRFX01BU0sgPT0gUlVOTklORzgPEAAXAAAApwEAABUAAABPbmNlIGluc3RhbmNlIGhhcyBwcmV2aW91c2x5IGJlZW4gcG9pc29uZWQAADgPEAAXAAAAiwEAABUAAAA4DxAAFwAAAOgBAAAJAAAAOA8QABcAAAD0AQAAHgAAAFBvaXNvbkVycm9yIHsgaW5uZXI6IC4uIH1jYW5ub3QgbW9kaWZ5IHRoZSBwYW5pYyBob29rIGZyb20gYSBwYW5pY2tpbmcgdGhyZWFkc3JjL2xpYnN0ZC9wYW5pY2tpbmcucnNBEBAAFwAAAGoAAAAJAAAAQRAQABcAAAChAQAADwAAAEEQEAAXAAAAogEAAA8AAAAxAAAAEAAAAAQAAAAyAAAAMwAAADQAAAAMAAAABAAAADUAAAAlAAAACAAAAAQAAAA2AAAANwAAACUAAAAIAAAABAAAADgAAABOdWxFcnJvciUAAAAEAAAABAAAADkAAABjYW4ndCBibG9jayB3aXRoIHdlYiBhc3NlbWJseXNyYy9saWJzdGQvc3lzL3dhc20vY29uZHZhci5ycwAFERAAHgAAABUAAAAJAAAAY2Fubm90IHJlY3Vyc2l2ZWx5IGFjcXVpcmUgbXV0ZXhzcmMvbGlic3RkL3N5cy93YXNtL211dGV4LnJzVBEQABwAAAAVAAAACQAAAHNyYy9saWJhbGxvYy9yYXdfdmVjLnJzY2FwYWNpdHkgb3ZlcmZsb3eAERAAFwAAAG4CAAAFAAAAYC4uALkREAACAAAAQm9ycm93RXJyb3JCb3Jyb3dNdXRFcnJvcmNhbGxlZCBgT3B0aW9uOjp1bndyYXAoKWAgb24gYSBgTm9uZWAgdmFsdWW4ERAAAAAAADogAAC4ERAAAAAAABASEAACAAAAQgAAAAAAAAABAAAAQwAAAHBhbmlja2VkIGF0ICcnLCBAEhAAAQAAAEESEAADAAAAOgAAALgREAAAAAAAVBIQAAEAAABUEhAAAQAAAGluZGV4IG91dCBvZiBib3VuZHM6IHRoZSBsZW4gaXMgIGJ1dCB0aGUgaW5kZXggaXMgAABwEhAAIAAAAJASEAASAAAAQgAAAAwAAAAEAAAARAAAAEUAAABGAAAAICAgICB7CiwKLCAgeyB9IH0oCigsKQpbXXNyYy9saWJjb3JlL2ZtdC9udW0ucnMA5RIQABYAAABUAAAAFAAAADB4MDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkAAEIAAAAEAAAABAAAAEcAAABIAAAASQAAAHNyYy9saWJjb3JlL2ZtdC9tb2QucnMAAPATEAAWAAAATAQAABEAAADwExAAFgAAAFYEAAAkAAAAKClzcmMvbGliY29yZS9zbGljZS9tZW1jaHIucnMAAAAqFBAAGwAAAFIAAAAFAAAAaW5kZXggIG91dCBvZiByYW5nZSBmb3Igc2xpY2Ugb2YgbGVuZ3RoIFgUEAAGAAAAXhQQACIAAABzbGljZSBpbmRleCBzdGFydHMgYXQgIGJ1dCBlbmRzIGF0IACQFBAAFgAAAKYUEAANAAAAc3JjL2xpYmNvcmUvc3RyL3BhdHRlcm4ucnMAAMQUEAAaAAAAjAEAACYAAABzcmMvbGliY29yZS9zdHIvbW9kLnJzAADwFBAAFgAAAIAHAAAvAAAA8BQQABYAAADDBwAALwAAAPAUEAAWAAAABAgAAC8AAABbLi4uXWJ5dGUgaW5kZXggIGlzIG91dCBvZiBib3VuZHMgb2YgYAAAPRUQAAsAAABIFRAAFgAAALgREAABAAAAYmVnaW4gPD0gZW5kICggPD0gKSB3aGVuIHNsaWNpbmcgYAAAeBUQAA4AAACGFRAABAAAAIoVEAAQAAAAuBEQAAEAAAAgaXMgbm90IGEgY2hhciBib3VuZGFyeTsgaXQgaXMgaW5zaWRlICAoYnl0ZXMgKSBvZiBgPRUQAAsAAAC8FRAAJgAAAOIVEAAIAAAA6hUQAAYAAAC4ERAAAQAAAHNyYy9saWJjb3JlL3VuaWNvZGUvcHJpbnRhYmxlLnJzGBYQACAAAAAKAAAAHAAAABgWEAAgAAAAGgAAACgAAAAAAQMFBQYGAwcGCAgJEQocCxkMFA0QDg0PBBADEhITCRYBFwUYAhkDGgccAh0BHxYgAysDLAItCy4BMAMxAjIBpwKpAqoEqwj6AvsF/QT+A/8JrXh5i42iMFdYi4yQHB3dDg9LTPv8Li8/XF1fteKEjY6RkqmxurvFxsnK3uTl/wAEERIpMTQ3Ojs9SUpdhI6SqbG0urvGys7P5OUABA0OERIpMTQ6O0VGSUpeZGWEkZudyc7PDREpRUlXZGWNkam0urvFyd/k5fANEUVJZGWAhLK8vr/V1/Dxg4WLpKa+v8XHzs/a20iYvc3Gzs9JTk9XWV5fiY6Psba3v8HGx9cRFhdbXPb3/v+ADW1x3t8ODx9ubxwdX31+rq+7vPoWFx4fRkdOT1haXF5+f7XF1NXc8PH1cnOPdHWWL18mLi+nr7e/x8/X35pAl5gwjx/Awc7/Tk9aWwcIDxAnL+7vbm83PT9CRZCR/v9TZ3XIydDR2Nnn/v8AIF8igt8EgkQIGwQGEYGsDoCrNSgLgOADGQgBBC8ENAQHAwEHBgcRClAPEgdVBwMEHAoJAwgDBwMCAwMDDAQFAwsGAQ4VBToDEQcGBRAHVwcCBxUNUARDAy0DAQQRBg8MOgQdJV8gbQRqJYDIBYKwAxoGgv0DWQcVCxcJFAwUDGoGCgYaBlkHKwVGCiwEDAQBAzELLAQaBgsDgKwGCgYhP0wELQN0CDwDDwM8BzgIKwWC/xEYCC8RLQMgECEPgIwEgpcZCxWIlAUvBTsHAg4YCYCzLXQMgNYaDAWA/wWA3wzuDQOEjQM3CYFcFIC4CIDLKjgDCgY4CEYIDAZ0Cx4DWgRZCYCDGBwKFglMBICKBqukDBcEMaEEgdomBwwFBYClEYFtEHgoKgZMBICNBIC+AxsDDw0ABgEBAwEEAggICQIKBQsCDgQQARECEgUTERQBFQIXAhkNHAUdCCQBagNrArwC0QLUDNUJ1gLXAtoB4AXhAugC7iDwBPgC+QL6AvsBDCc7Pk5Pj56enwYHCTY9Plbz0NEEFBg2N1ZXf6qur7014BKHiY6eBA0OERIpMTQ6RUZJSk5PZGVctrcbHAcICgsUFzY5Oqip2NkJN5CRqAcKOz5maY+Sb1/u71pimpsnKFWdoKGjpKeorbq8xAYLDBUdOj9FUaanzM2gBxkaIiU+P8XGBCAjJSYoMzg6SEpMUFNVVlhaXF5gY2Vma3N4fX+KpKqvsMDQrq95zG5vk14iewUDBC0DZgMBLy6Agh0DMQ8cBCQJHgUrBUQEDiqAqgYkBCQEKAg0CwGAkIE3CRYKCICYOQNjCAkwFgUhAxsFAUA4BEsFLwQKBwkHQCAnBAwJNgM6BRoHBAwHUEk3Mw0zBy4ICoEmUk4oCCpWHBQXCU4EHg9DDhkHCgZICCcJdQs/QSoGOwUKBlEGAQUQAwWAi2IeSAgKgKZeIkULCgYNEzkHCjYsBBCAwDxkUwxICQpGRRtICFMdOYEHRgodA0dJNwMOCAoGOQcKgTYZgLcBDzINg5tmdQuAxIq8hC+P0YJHobmCOQcqBAJgJgpGCigFE4KwW2VLBDkHEUAFCwIOl/gIhNYqCaL3gR8xAxEECIGMiQRrBQ0DCQcQk2CA9gpzCG4XRoCaFAxXCRmAh4FHA4VCDxWFUCuA1S0DGgQCgXA6BQGFAIDXKUwECgQCgxFETD2AwjwGAQRVBRs0AoEOLARkDFYKgK44HQ0sBAkHAg4GgJqD2AgNAw0DdAxZBwwUDAQ4CAoGKAgiToFUDBUDAwUHCRkHBwkDDQcpgMslCoQGc3JjL2xpYmNvcmUvdW5pY29kZS91bmljb2RlX2RhdGEucnMAAJ8bEAAjAAAASwAAACgAAACfGxAAIwAAAFcAAAAWAAAAnxsQACMAAABSAAAAPgAAAEIAAAAEAAAABAAAAEoAAABFcnJvcgAAAAADAACDBCAAkQVgAF0ToAASF6AeDCDgHu8sICsqMKArb6ZgLAKo4Cwe++AtAP6gNZ7/4DX9AWE2AQqhNiQNYTerDuE4LxghOTAcYUbzHqFK8GphTk9voU6dvCFPZdHhTwDaIVAA4OFRMOFhU+zioVTQ6OFUIAAuVfABv1UAcAAHAC0BAQECAQIBAUgLMBUQAWUHAgYCAgEEIwEeG1sLOgkJARgEAQkBAwEFKwN3DwEgNwEBAQQIBAEDBwoCHQE6AQEBAgQIAQkBCgIaAQICOQEEAgQCAgMDAR4CAwELAjkBBAUBAgQBFAIWBgEBOgEBAgEECAEHAwoCHgE7AQEBDAEJASgBAwE5AwUDAQQHAgsCHQE6AQIBAgEDAQUCBwILAhwCOQIBAQIECAEJAQoCHQFIAQQBAgMBAQgBUQECBwwIYgECCQsGSgIbAQEBAQE3DgEFAQIFCwEkCQFmBAEGAQICAhkCBAMQBA0BAgIGAQ8BAAMAAx0DHQIeAkACAQcIAQILCQEtA3cCIgF2AwQCCQEGA9sCAgE6AQEHAQEBAQIIBgoCATARPwQwBwEBBQEoCQwCIAQCAgEDOAEBAgMBAQM6CAICmAMBDQEHBAEGAQMCxjoBBQABwyEAA40BYCAABmkCAAQBCiACUAIAAQMBBAEZAgUBlwIaEg0BJggZCy4DMAECBAICJwFDBgICAgIMAQgBLwEzAQEDAgIFAgEBKgIIAe4BAgEEAQABABAQEAACAAHiAZUFAAMBAgUEKAMEAaUCAAQAApkLsAE2DzgDMQQCAkUDJAUBCD4BDAI0CQoEAgFfAwIBAQIGAaABAwgVAjkCAQEBARYBDgcDBcMIAgMBARcBUQECBgEBAgEBAgEC6wECBAYCAQIbAlUIAgEBAmoBAQECBgEBZQMCBAEFAAkBAvUBCgIBAQQBkAQCAgQBIAooBgIECAEJBgIDLg0BAgAHAQYBAVIWAgcBAgECegYDAQECAQcBAUgCAwEBAQACAAU7BwABPwRRAQACAAEBAwQFCAgCBx4ElAMANwQyCAEOARYFAQ8ABwERAgcBAgEFAAcABAAHbQcAYIDwAExheW91dEVycnByaXZhdGUAQajHwAALAQEAbwlwcm9kdWNlcnMCCGxhbmd1YWdlAQRSdXN0AAxwcm9jZXNzZWQtYnkDBXJ1c3RjHTEuNDQuMCAoNDljYWU1NTc2IDIwMjAtMDYtMDEpBndhbHJ1cwYwLjE4LjAMd2FzbS1iaW5kZ2VuBjAuMi42NQ==", RSAWorker = function () { - function A(A, i) { - this.parent = A, - this.dE(i) - } - return A.prototype.transform = function (A) { - if (this.instance) - return this.instance.encode(A) - } - , - A.prototype.dE = function (A) { - initSync(base64ToBuffer(data)), - this.instance = new RSAPublicKeyPair, - this.instance.init(), - A && A(null) - } - , - A - }(), env; - function base64ToBuffer(A) { - for (var i = atob(A), g = new Uint8Array(i.length), I = 0, t = i.length; I < t; I++) - g[I] = i.charCodeAt(I); - return g.buffer - } - var env = polyfill.Support.DW ? { - movingDraw: sharedChunk.movingDraw, - db: sharedChunk.db, - nebulaVersion: sharedChunk.nebulaVersion, - host: sharedChunk.host - } : { - movingDraw: window.movingDraw - } - , AMapWorker = function (t) { - function A(A, i, g) { - var I = t.call(this) || this - , i = (I.key = i, - I.GW = g, - I.lQ = {}, - I.Zw = !1, - I._id = "-1", - I.protocol = "https", - I.Yw = XHR, - I.jQ = new polyfill.MY, - I.QZ = "", - I.$w = [], - I.Uh = new polyfill.Bh(A, I), - I.self = A, - I.z_ = new ImageManagerWorker); - return I.R_ = new polyfill.jb({ - parent: I, - z_: i - }), - I.IW = new polyfill.xW(I, XHR), - I.Ww = new NebulaSourceWorker(I), - I.NQ = new InnerLabelsSourceWorker(I), - I.lQ[I.Ww.id] = I.Ww, - I.yw = new LabelWorker(I), - I.BW = new OverlayWorker(I), - polyfill.Support.wasm && (I.PW = new RSAWorker(I)), - I.Fb(), - I.yY = new polyfill.wY({ - render: function () { - I.jQ.exec(10) - }, - check: function () { - return I.jQ.xY() - } - }), - I - } - return polyfill.Ei(A, t), - A.prototype.initCryptWorker = function (A, i, g) { - g() - } - , - A.prototype.setId = function (A, i, g) { - this._id = i, - g() - } - , - A.prototype.loadNebulaSourceTile = function (A, i, g) { - var I = this - , t = i.url - , B = i.ya - , Q = i.zoom - , C = i.projectionId - , e = i.optimalZoom - , o = i.Ca - , E = i.mS - , h = i.viewMode - , a = i.showBuildingBlock - , l = i.ZL - , n = i.hH - , i = i.kZ; - return this.Ww.bw(t, B, Q, e, C, o, E, h, a, l, n, function (A, i) { - I.Zw ? I.$w.push({ - done: g, - type: "NebulaSourceTile", - data: i - }) : g(A, i) - }, i) - } - , - A.prototype.decodeNebulaSourceTile = function (A, i, g) { - var I = i.url - , t = (i.ya, - i.zoom) - , B = i.projectionId - , Q = i.optimalZoom - , C = (i.Ca, - i.mS) - , e = i.viewMode - , o = i.showBuildingBlock - , E = i.ZL - , i = (i.hH, - i.buffer); - return this.Ww.pQ(i, B, t, e, o, C, Q, E, g, I) - } - , - A.prototype.loadNebulaSourceTileSdf = function (A, i, g) { - var I = this - , t = i.url - , B = i.ya - , Q = (i.zoom, - i.projectionId) - , C = (i.optimalZoom, - i.Ca, - i.mS, - i.viewMode, - i.showBuildingBlock, - i.mH) - , i = i.ZL; - return this.Ww.bW(t, B, Q, i, C, function (A, i) { - I.Zw ? I.$w.push({ - done: g, - type: "NebulaSourceTileSdf", - data: i - }) : g(A, i) - }) - } - , - A.prototype.decodeNebulaSourceTileSdf = function (A, i, g) { - var I = this - , t = i.url - , B = i.ya - , Q = (i.zoom, - i.projectionId) - , C = (i.optimalZoom, - i.Ca, - i.mS, - i.viewMode, - i.showBuildingBlock, - i.mH) - , e = i.ZL - , i = i.buffer - , t = -1 !== t.indexOf("/oversea") - , o = new polyfill.vH; - return this.Ww.HQ(i, t, Q, B, o, C, e, function (A, i) { - I.Zw ? I.$w.push({ - done: g, - type: "NebulaSourceTileSdf", - data: i - }) : g(A, i) - }), - { - cancel: o.cancel - } - } - , - A.prototype.loadDistrictSourceTile = function (A, i, g) { - var I = i.url - , t = i.tileCoord - , B = i.projectionId - , Q = i.tileSize; - return i.styles, - this._getDistrictSourceWorker(), - this.kW.bw(I, t, B, Q, g) - } - , - A.prototype.loadMapboxVTSourceTile = function (A, i, g) { - var I = this - , t = i.url - , B = i.tileCoord - , Q = i.projectionId - , C = i.tileSize - , i = i.styles; - return this._getMapboxVTSourceWorker(), - this.QJ.bw(t, B, Q, C, i, function (A, i) { - I.Zw ? I.$w.push({ - done: g, - type: "loadMapboxVTSourceTile", - data: i - }) : g(A, i) - }) - } - , - A.prototype.reBufferMapboxVTSource = function (A, i, g) { - var I = i.MX - , i = i.styles; - return this._getMapboxVTSourceWorker(), - this.QJ.mX(I, i, g) - } - , - A.prototype.loadMapboxSourceTile = function (A, i, g) { - var I = i.url - , t = i.tileCoord - , B = i.projectionId - , Q = i.tileSize - , C = i.styles - , i = i.adcode; - return this._getMapboxSourceWorker(), - this.vQ.bw(I, t, B, Q, C, i, g) - } - , - A.prototype.updateMapStyle = function (A, i, g) { - polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["style-parse-begin"] && (polyfill.Support.amapRunTime["style-parse-begin"] = Date.now()); - var I = JSON.parse(i.value); - polyfill.Support.amapRunTime && !polyfill.Support.amapRunTime["style-parse-end"] && (polyfill.Support.amapRunTime["style-parse-end"] = Date.now()), - this.vn = new polyfill.StyleParser(i.TY), - this.vn.jY(I), - this.Ww.emit("styleReady") - } - , - A.prototype.updateUserStyle = function (A, i, g) { - this.vn && this.vn.setStyle(i.Kd), - g && g() - } - , - A.prototype.sendHttp = function (A, i) { - this.R_.protocol = i.protocol, - this.protocol = i.protocol - } - , - A.prototype.updateParams = function (A, i) { - this.params = polyfill.assign(this.params, i), - i.langForeign && (this.langForeign = i.langForeign), - i.QG && (this.QG = i.QG) - } - , - A.prototype.getSDFData = function (A, i, g) { - this.R_.loadData(i, { - cb: function (A) { - g(null, A) - } - }) - } - , - A.prototype.getImages = function (A, i) { - var B = this - , Q = i.data - , C = i.cb - , e = this.z_; - e.loadImages(Q, { - cb: function (A) { - for (var i = [], g = 0, I = Q; g < I.length; g++) { - var t = I[g]; - i.push({ - url: t, - data: e.getImage(t) - }) - } - B.Uh.send("imageLoaded", { - data: i, - cb: C - }) - }, - type: "icon" - }) - } - , - A.prototype.setPathWebgl = function (A, i, g) { - this.BW.setPathWebgl(i, g) - } - , - A.prototype.sendIndoorRequest = function (A, i, g) { - var I = this; - this.BW.AW(i, function (A, i) { - I.Zw ? I.$w.push({ - done: g, - type: "sendIndoorRequest", - data: i - }) : g(A, i) - }) - } - , - A.prototype.Qw = function (A) { - this.Uh.send("NebulaTileSdfLoaded", polyfill.ca) - } - , - A.prototype.setMainThreadBusy = function (A, i) { - if (env.movingDraw) - this.Zw = !1; - else { - if (this.Zw = i, - !this.Zw) - for (var g = 0, I = this.$w; g < I.length; g++) { - var t = I[g]; - t.done ? t.done(null, t.data) : this.Uh.send(t.type, t.data) - } - this.$w = [] - } - } - , - A.prototype.loadWordsByFront = function (A) { - this.Uh.send("loadWordsByFront", A.Es, A.cb) - } - , - A.prototype.innerLabelsLoadData = function (A, i, g) { - this.NQ.loadData(i, g) - } - , - A.prototype.dQ = function (A) { - return this.lQ[A] - } - , - A.prototype.deleteTileStaticSDF = function (A, i) { - this.IW.NW(i) - } - , - A.prototype.PQ = function (A, i) { - this.QZ = i - } - , - A.prototype._getNebulaSourceWorker = function () { - return this.Ww || (this.Ww = new NebulaSourceWorker(this)), - this.Ww - } - , - A.prototype._getDistrictSourceWorker = function () { - return this.kW || (this.kW = new DistrictSourceWorker(this)), - this.kW - } - , - A.prototype._getMapboxVTSourceWorker = function () { - return this.QJ || (this.QJ = new polyfill.bX), - this.QJ - } - , - A.prototype._getMapboxSourceWorker = function () { - var A; - return this.vQ || (A = this.vQ = new MapboxSourceWorker(this), - this.lQ[A.id] = A), - this.vQ - } - , - A.prototype.Fb = function () { - var I = this; - this.z_.on("iconImageLoaded", function (A) { - delete A.type, - I.Uh.send("iconImageLoaded", A) - }), - this.R_.on("dynamicTextSDFInfoLoaded", function (A) { - delete A.type, - I.Uh.send("dynamicTextSDFInfoLoaded", A.data) - }), - this.yw.on("dynamicTextVerticeLoaded", function (A) { - var i, g = A; - I.Zw ? (i = A.type, - delete A.type, - I.$w.push({ - type: i, - data: g - })) : (delete A.type, - I.Uh.send("dynamicTextVerticeLoaded", g)) - }), - this.yw.on("dynamicTextVerticeLoadedByTile", function (A) { - var i, g = A; - I.Zw ? (i = A.type, - delete A.type, - I.$w.push({ - type: i, - data: g - })) : (delete A.type, - I.Uh.send("dynamicTextVerticeLoadedByTile", g)) - }) - } - , - A - }(polyfill.Event); - return polyfill.Support.DW && (self.Wh = new AMapWorker(self, sharedChunk.key, env), - self.StyleParser = polyfill.StyleParser), - AMapWorker - }), - define(["./shared"], function (_) { - var P = { - "AMap.MouseTool": ["AMap.RangingTool"], - "AMap.Adaptor": ["AMap.CallAMap"] - } - , j = new _.tS; - function B(t) { - try { - var i, n = localStorage.getItem("_AMap_" + t); - return n && ((i = JSON.parse(n)).version === _.Module.eS.iS ? (window._jsload_(t, i.script, !0), - i.css && window._cssload_(t, i.css, !0), - j.add([t], void 0), - j.finish(t), - 1) : void window.localStorage.removeItem("_AMap_" + t)) - } catch (t) { } - } - function W(t) { - for (var i = [], n = 0, s = t; n < s.length; n++) { - var e = s[n] - , h = e; - if (!j.has(e)) { - if (h = P[h]) - for (var r = 0, o = h; r < o.length; r++) { - var a = o[r]; - !t[a] && i.indexOf(a) < 0 && (B(a) || i.push(a)) - } - i.indexOf(e) < 0 && (B(e) || i.push(e)) - } - } - return i - } - function F(t, i) { - var n = document.createElement("script"); - n.type = "text/javascript", - (document.body ? (n.onload = function () { - document.body.removeChild(n), - i() - } - , - n.src = t, - document.body) : (n.onload = function () { - document.head.removeChild(n), - i() - } - , - n.src = t, - document.head)).appendChild(n) - } - (G = document.getElementById("AMap_Dynamic_style")) || ((G = document.createElement("style")).type = "text/css", - G.id = "AMap_Dynamic_style", - (s = document.head || document.getElementsByTagName("head")[0]).childNodes.length < 2 ? s.appendChild(G) : s.insertBefore(G, s.childNodes[1])); - function N(t) { - G.appendChild(document.createTextNode(t)) - } - window._cssload_ = function (t, i, n) { - try { - !n && window.localStorage && i && "" !== i && window.localStorage.setItem("_AMap_" + t, JSON.stringify({ - css: i, - version: _.Module.eS.iS - })) - } catch (t) { } - N(i) - } - , - window._jsload_ = function (t, i, n) { - try { - var s; - !n && i && "" !== i && (s = window.localStorage["_AMap_" + t] || "{}", - (s = JSON.parse(s)).version !== _.Module.eS.iS || s.script ? window.localStorage.setItem("_AMap_" + t, JSON.stringify({ - version: _.Module.eS.iS, - script: i - })) : window.localStorage.setItem("_AMap_" + t, JSON.stringify({ - version: _.Module.eS.iS, - script: i, - css: s.css - }))) - } catch (t) { } - _.Module.nS(t, i) - } - , - window.cZ = _.Module; - var G, U = "function" == typeof Float32Array; - function Y(t, i) { - return 1 - 3 * i + 3 * t - } - function X(t, i) { - return 3 * i - 6 * t - } - function Z(t, i, n) { - return ((Y(i, n) * t + X(i, n)) * t + 3 * i) * t - } - function J(t, i, n) { - return 3 * Y(i, n) * t * t + 2 * X(i, n) * t + 3 * i - } - V.prototype.t = function (t) { - for (var i = 0, n = 1; 10 !== n && this.i[n] <= t; ++n) - i += .1; - var s = i + (t - this.i[--n]) / (this.i[n + 1] - this.i[n]) * .1 - , e = J(s, this.o, this.s); - if (.001 <= e) { - for (var h = t, r = s, o = this.o, a = this.s, u = 0; u < 4; ++u) { - var f = J(r, o, a); - if (0 === f) - return r; - r -= (Z(r, o, a) - h) / f - } - return r - } - if (0 === e) - return s; - for (var c, l, d = t, v = i, p = i + .1, m = this.o, y = this.s, b = 0; 0 < (c = Z(l = v + (p - v) / 2, m, y) - d) ? p = l : v = l, - 1e-7 < Math.abs(c) && ++b < 10;) - ; - return l - } - , - V.prototype.h = function (t) { - return 0 === t ? 0 : 1 === t ? 1 : Z(this.t(t), this.l, this.u) - } - , - V.prototype.p = function (t) { - return t - } - ; - var H = V; - function V(t, i, n, s) { - if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) - throw new Error("bezier x values must be in [0, 1] range"); - this.o = t, - this.l = i, - this.s = n, - this.u = s, - this.i = new (U ? Float32Array : Array)(11); - for (var e = 0; e < 11; ++e) - this.i[e] = Z(.1 * e, t, n) - } - var q, Q, w = { - getViewport: function (t) { - return t ? [t.clientWidth, t.clientHeight] : [0, 0] - }, - getStyle: function (t, i) { - var n, s = t.style[i]; - return "auto" === (s = (s = (s = s && "auto" !== s || !document.defaultView ? s : (n = document.defaultView.getComputedStyle(t, null)) ? n[i] : null) && "auto" !== s || "height" !== i ? s : t.clientHeight + "px") && "auto" !== s || "width" !== i ? s : t.clientWidth + "px") ? null : s - }, - getViewportOffset: function (t) { - var i, n = 0, s = 0, e = t, h = document.body, r = document.documentElement; - do { - if (n += e.offsetTop || 0, - s += e.offsetLeft || 0, - n += parseInt(w.getStyle(e, "borderTopWidth"), 10) || 0, - s += parseInt(w.getStyle(e, "borderLeftWidth"), 10) || 0, - i = w.getStyle(e, "position"), - e.offsetParent === h && "absolute" === i) - break; - if ("fixed" === i) { - n += h.scrollTop || r.scrollTop || 0, - s += h.scrollLeft || r.scrollLeft || 0; - break - } - } while (e = e.offsetParent); - for (e = t; e !== h && (n -= e.scrollTop || 0, - s -= e.scrollLeft || 0, - !w.m() && _.Support.webkit && (s += e.scrollWidth - e.clientWidth), - e = e.parentNode);) - ; - return [s, n] - }, - m: function () { - return q || (Q = "ltr" === w.getStyle(document.body, "direction"), - q = !0), - Q - }, - create: function (t, i, n, s) { - return t = document.createElement(t), - n && (t.className = n), - i && (s && "before" === s ? (n = i.firstChild, - i.insertBefore(t, n)) : i.appendChild(t)), - t - }, - toggleClass: function (t, i, n) { - n ? this.addClass(t, i) : this.removeClass(t, i) - }, - hasClass: function (t, i) { - if (t && i) - return 0 < t.className.length && new RegExp("(^|\\s)" + i + "(\\s|$)").test(t.className) - }, - addClass: function (t, i) { - t && i && (t.classList && t.classList.add ? t.classList.add(i) : this.hasClass(t, i) || (t.className += (t.className ? " " : "") + i)) - }, - setClass: function (t, i) { - t && (t.className = i || "") - }, - removeClass: function (t, n) { - t && n && (t.classList && t.classList.remove ? t.classList.remove(n) : t.className = t.className.replace(/(\S+)\s*/g, function (t, i) { - return i === n ? "" : t - }).replace(/(^\s+|\s+$)/, "")) - }, - watchSize: function (n, s, e) { - var i = document.createElement("iframe") - , h = (i.style.cssText = "width: 100%;height: 100%;position: absolute;pointEvents:none; opacity:0; margin: 0;padding: 0;border: none;", - i.onload = function () { - i && (i.contentWindow.onresize = t) - } - , - n.appendChild(i), - i.src = "javascript:void(0)", - 0) - , r = 0; - function t() { - e.k = n.getBoundingClientRect(), - e.M = [n.clientLeft, n.clientTop]; - var t = n.offsetWidth - , i = n.offsetHeight; - t === h && i === r || (s(t, i), - h = t, - r = i) - } - return t(), - e.resize = t, - window.onscroll = t, - function () { - var t; - e.resize && (e.resize = null), - window.onscroll && (window.onscroll = null), - i.contentWindow && (i.contentWindow.onresize = null, - i.contentWindow.document.write(""), - i.parentNode.removeChild(i), - null != (t = i.contentWindow)) && t.close() - } - }, - watchSize2: function (n, s, e) { - var h, r, o = document.createElement("_"), a = (o.className = "expand", - o.appendChild(document.createElement("_"))), u = (a.className = "shrink", - o.appendChild(document.createElement("_"))), t = (u.className = "expandChild", - a.appendChild(document.createElement("_"))); - return t.className = "shrinkChild", - a.style.cssText = o.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", - t.style.cssText = u.style.cssText = "display:block;height:100%;transition:0s;width:100%", - t.style.width = t.style.height = "200%", - n.appendChild(o), - f(), - function () { - c(), - n.removeChild(o) - } - ; - function f() { - c(), - e.k = n.getBoundingClientRect(), - e.M = [n.clientLeft, n.clientTop]; - var t = n.offsetWidth - , i = n.offsetHeight; - t === h && i === r || (h = t, - r = i, - u.style.width = 2 * t + "px", - u.style.height = 2 * i + "px", - o.scrollLeft = o.scrollWidth, - o.scrollTop = o.scrollHeight, - a.scrollLeft = a.scrollWidth, - a.scrollTop = a.scrollHeight, - s(t, i)), - a.addEventListener("scroll", f), - o.addEventListener("scroll", f) - } - function c() { - a.removeEventListener("scroll", f), - o.removeEventListener("scroll", f) - } - }, - mousePos: function (t, i, n) { - return t && (n.k = t.getBoundingClientRect(), - n.M = [t.clientLeft, t.clientTop]), - t = n.k, - [(i = i.touches && i.changedTouches ? 0 < i.touches.length ? i.touches[0] : i.changedTouches[i.changedTouches.length - 1] : i).clientX - t.left - n.M[0], i.clientY - t.top - n.M[1]] - }, - remove: function (t) { - t && t.parentNode && t.parentNode.removeChild(t) - }, - empty: function (t) { - for (; t.firstChild;) - t.removeChild(t.firstChild) - }, - closest: function (t, i) { - return t ? this.hasClass(t, i) ? t : (t = t.parentElement) ? w.closest(t, i) : null : null - }, - fillText: function (t, i) { - if (t) - return void 0 !== t.textContent ? t.textContent = i : void 0 !== t.innerText ? t.innerText = i : t.innerHTML = i, - t - }, - _L: function (t) { - for (var i = document.documentElement.style, n = 0; n < t.length; n += 1) - if (t[n] in i) - return t[n]; - return !1 - }, - rotate: function (t, i, n) { - var s, e = w.kL; - n = n || { - x: t.clientWidth / 2, - y: t.clientHeight / 2 - }, - e ? (s = "", - t.style[e] = s += " rotate(" + i + "deg)", - t.style[w.ML[e] + "-origin"] = n.x + "px " + n.y + "px") : (s = Math.cos(i * Math.PI / 180), - e = Math.sin(i * Math.PI / 180), - t.style.filter = "progid:DXImageTransform.Microsoft.Matrix()", - 0 < t.filters.length && ((i = t.filters.item(0)).Dx = -n.x * s + n.y * e + n.x, - i.Dy = -n.x * e - n.y * s + n.y, - i.M11 = i.M22 = s, - i.M12 = -(i.M21 = e))) - }, - setCss: function (t, i) { - t = t instanceof Array ? t : [t]; - for (var n = 0; n < t.length; n += 1) - for (var s in i) - i.hasOwnProperty(s) && (t[n].style[s] = i[s]); - return this - }, - setOpacity: function (t, i) { - t.style && ("opacity" in t.style ? t.style.opacity = "" + i : "filter" in t.style && (i = Math.round(100 * i), - t.style.filter = "", - 100 !== i) && (t.style.filter = " progid:DXImageTransform.Microsoft.Alpha(opacity=" + i + ")")) - }, - ML: {}, - kL: Q = q = !1 - }, K = (w.kL = w._L(["WebkitTransform", "OTransform", "MozTransform", "msTransform", "transform"]), - w.ML = { - transform: "transform", - WebkitTransform: "-webkit-transform", - OTransform: "-o-transform", - MozTransform: "-moz-transform", - msTransform: "-ms-transform" - }, - t.prototype.isEnabled = function () { - return "disabled" !== this.R - } - , - t.prototype.isActive = function () { - return "active" === this.R - } - , - t.prototype.enable = function () { - this.isEnabled() || (this.R = "enabled") - } - , - t.prototype.disable = function () { - this.isEnabled() && (this.R, - this.R = "disabled") - } - , - t.prototype.L = function (t) { - this.A && (this.A = !1), - t.ctrlKey || 0 !== t.button || (document.addEventListener("mousemove", this.T), - document.addEventListener("mouseup", this.I), - this.D(t)) - } - , - t.prototype.P = function (t) { - 1 < t.touches.length ? (this.j.removeEventListener("touchmove", this.T), - this.R = "enabled") : (this.A && (this.A = !1), - "enabled" === this.R && (this.j.addEventListener("touchmove", this.T, { - capture: !0, - passive: !0 - }), - document.addEventListener("touchend", this.oS), - this.D(t))) - } - , - t.prototype.D = function (t) { - this.$ = this.U = this.B = w.mousePos(this.j, t, this._map), - this.YF = this._map.getView().getStatus().centerCoord, - this.XF = this._map.containerToCoord(this.$), - this.W = [[Date.now(), this.$]], - this.R = "active" - } - , - t.prototype.Z = function (t) { - var i; - "touchmove" === t.type && 1 < t.touches.length || (this.W.length < 2 && "active" === this.R && this.G("dragstart", t), - "touchmove" === t.type && this.G("touchmove", t), - this.G("dragging", t), - this.isEnabled() && ("active" === this.R && (this.R = "pending"), - "disabled" !== this.R) && this._map.getStatus().dragEnable && (i = w.mousePos(this.j, t, this._map), - this.q = t, - this.B = _.set(_.create(), i[0], i[1]), - this.Y(), - this.W.push([Date.now(), this.B]), - this.W.length < 2 || (t = this._map.getView(), - i = this._map.containerToCoord(i), - i = [this.XF[0] - i[0] + this.YF[0], this.XF[1] - i[1] + this.YF[1]], - t.setOptions({ - center: this._map.getProjection().unproject(i[0], i[1]) - })))) - } - , - t.prototype.tt = function (t) { - if (0 === t.button) - if (this.it()) - this.S(), - this.C(); - else - switch (this.R) { - case "active": - this.R = "enabled", - this.S(), - this.C(); - break; - case "pending": - this.R = "enabled", - this.S(), - this.C(), - this.et(t), - this.G("dragend", t); - break; - default: - this.R = "enabled", - this.S(), - this.G("dragend", t) - } - } - , - t.prototype.N = function (t) { - if (0 < t.touches.length) - this.$ = this.U = this.B = w.mousePos(this.j, t, this._map), - this.YF = this._map.getView().getStatus().centerCoord, - this.XF = this._map.containerToCoord(this.$); - else if (this.it()) - this.S(), - this.C(), - this.R = "enabled", - this.G("dragend", t); - else - switch (this.R) { - case "active": - this.R = "enabled", - this.S(), - this.C(); - break; - case "pending": - this.R = "enabled", - this.S(), - this.C(), - this.G("dragend", t), - this.et(t); - break; - default: - this.G("dragend", t), - this.S() - } - } - , - t.prototype.it = function () { - var t, i, n, s, e = this._map.getLimitBounds(); - if (e = e && e.toJSON()) - return t = this._map.getBounds().toJSON(), - i = [], - s = [(n = this._map.getCenter().toJSON())[0], n[1]], - (t[0] < e[0] || t[1] < e[1] || t[2] > e[2] || t[3] > e[3]) && (i[0] = t[0] - e[0], - i[1] = t[1] - e[1], - i[2] = t[2] - e[2], - i[3] = t[3] - e[3], - i[0] < 0 && 0 < i[2] ? s[0] = (e[0] + e[2]) / 2 : i[0] < 0 ? s[0] = n[0] - i[0] : 0 < i[2] && (s[0] = n[0] - i[2]), - i[1] < 0 && 0 < i[3] ? s[1] = (e[1] + e[3]) / 2 : i[1] < 0 ? s[1] = n[1] - i[1] : 0 < i[3] && (s[1] = n[1] - i[3]), - this._map.panTo(s, 100), - !0) - } - , - t.prototype.S = function () { - this.j.removeEventListener("touchmove", this.T), - document.removeEventListener("touchend", this.oS), - document.removeEventListener("mousemove", this.T), - document.removeEventListener("mouseup", this.I) - } - , - t.prototype.C = function () { - delete this.q, - delete this.$, - delete this.U, - delete this.B - } - , - t.prototype.Y = function () { - for (var t = this.W, i = Date.now(); 0 < t.length && 60 < i - t[0][0];) - t.shift() - } - , - t.prototype.et = function (t) { - var i, n, s, e, h, r, o, a, u, f, c, l, d, v; - function p() { - this.isEnabled() && this.A || (r = -1); - var t = Date.now() - a - , t = (u < t && (r = -1), - [l[0] * t + d[0] * t * t / 2, l[1] * t + d[1] * t * t / 2]); - o = [o[0] + (t[0] - v[0]), o[1] + (t[1] - v[1])], - v = t, - r <= 0 ? this.A = !1 : (s.setOptions({ - center: _.ProjectionManager.getProjection(e.projectionId).unproject(o[0], o[1]) - }), - _.Util.requestAnimFrame(p.bind(this)), - r--) - } - this._map.getStatus().jogEnable && (this.A = !0, - this.Y(), - (i = this.W).length < 2 || (n = i[i.length - 1], - c = i[0], - f = [n[1][0] - c[1][0], n[1][1] - c[1][1]], - 0 == (h = (n[0] - c[0]) / 1e3) || _.equals(n[1], c[1]) ? this.G("moveend", t) : (c = [f[0] / (.3 / h), f[1] / (.3 / h)], - t = Math.sqrt(c[0] * c[0] + c[1] * c[1]) / 750, - s = this._map.getView(), - h = (e = s.getStatus()).rotation, - c = r = parseInt((1e3 * t + 400) / 17 + "", 10), - new H(.1, 0, 1, .1), - _.V[e.projectionId].nt(-f[0] / 7, f[1] / 7, e.zoom), - o = _.ProjectionManager.getProjection(e.projectionId).project(e.center[0], e.center[1]), - a = Date.now(), - u = 17 * c, - t = i[i.length - Math.min(i.length, 3)], - f = [n[1][0] - t[1][0], n[1][1] - t[1][1]], - 0 !== h && (f = this.J(h, f)), - f = _.V[e.projectionId].nt(f[0], -f[1], e.zoom), - c = Math.min(t[0] - n[0], -15), - l = [f[0] / c, f[1] / c], - d = [-l[0] / u, -l[1] / u], - v = [0, 0], - _.Util.requestAnimFrame(p.bind(this))))) - } - , - t.prototype.J = function (t, i) { - var n = Math.sqrt(i[0] * i[0] + i[1] * i[1]) - , s = Math.atan2(i[1], i[0]) - , t = t / 180 * Math.PI - s; - return i[0] = n * Math.cos(t), - i[1] = -n * Math.sin(t), - i - } - , - t.prototype.G = function (t, i) { - this._map.getBindHandler().fireEvent(t, i) - } - , - t); - function t(t, i) { - this.st = "mouse", - this._map = i, - this.W = [], - this.j = t, - this.R = "disabled", - this.T = this.Z.bind(this), - this.I = this.tt.bind(this), - this.oS = this.N.bind(this) - } - i.prototype.isEnabled = function () { - return "disabled" !== this.R - } - , - i.prototype.isActive = function () { - return "active" === this.R - } - , - i.prototype.enable = function () { - this.isEnabled() || (this.rt = !0, - this.R = "enabled") - } - , - i.prototype.ht = function () { - return !!this.lt - } - , - i.prototype.disable = function () { - if (this.isEnabled()) - switch (this.R) { - case "enabled": - case "active": - this.R = "disabled", - this.S(), - this.C(); - break; - case "pending": - this.R = "disabled", - this.S(); - break; - default: - this.R = "disabled" - } - } - , - i.prototype.ut = function (t) { - t.preventDefault(), - "enabled" === this.R && this._map.getStatus().doubleClickZoom && !t.ctrlKey && 0 === t.button && this.D(t) - } - , - i.prototype.P = function (t, i) { - var n = this; - this.$ = w.mousePos(this.j, t, this._map), - 2 === t.touches.length ? (this.rt = !1, - this.ct = 0) : (this.rt = !0, - this.ct++, - this.ft = i, - this.lt = !1, - setTimeout(function () { - 1 === n.ct && (n.ct = 0) - }, 300), - this.pt = [t.changedTouches[0].clientX, t.changedTouches[0].clientY], - this.j.addEventListener("touchmove", this.dt), - 2 <= this.ct && this.j.addEventListener("touchend", this.N.bind(this))) - } - , - i.prototype.vt = function (t) { - var i = this; - this.rt && (this.yt++, - setTimeout(function () { - i.yt = 0 - }, 300), - 2 === this.yt && !this.lt && this._map.getStatus().doubleClickZoom && (t.preventDefault(), - this.yt = 0, - this.ct = 0, - this.D(t)), - 2 === this.ct) && (this.ct = 0) - } - , - i.prototype.D = function (i) { - var n, s, e = this, h = (this.lt = !0, - this.R = "active", - this.G("zoomstart"), - 400), r = 0, o = this._map.getView().getStatus().zoom, a = new H(.4, 0, .15, 1); - o >= this.xt[1] || (s = 0, - n = function () { - r += 16; - var t = o + a.h(r / h); - t >= e.xt[1] || (e.bt(i, t), - o + 1 <= t && (_.Util.cancelAnimFrame(s), - e.lt = !1, - e.R = "enabled", - e.tt(), - e.N()), - (e.lt || r < 400) && (s = _.Util.requestAnimFrame(n))) - } - , - s = _.Util.requestAnimFrame(n)) - } - , - i.prototype.gt = function (t) { - var i, n, s = w.mousePos(this.j, t, this._map); - s[0] - this.$[0] == 0 && s[1] - this.$[1] == 0 || (this.yt = -1, - this.ct < 2 ? this.ct = 0 : this.rt && (this.lt = !0, - this.wt = !0, - this.ft.disable(), - s = t.changedTouches.length, - i = this._map.getView(), - n = this._map.getView().getStatus().zoom - (t.changedTouches[s - 1].clientY - this.pt[1]) / 100, - i.setOptions({ - zoom: n - }), - this.pt = [t.changedTouches[s - 1].clientX, t.changedTouches[s - 1].clientY])) - } - , - i.prototype.N = function () { - this.wt && 2 <= this.ct && (this.ft.enable(), - this.tt(), - this.lt = !1, - this.wt = !1) - } - , - i.prototype.bt = function (t, i) { - var n, s, e, h = this._map.getView(), o = (r = h.getStatus()).center, a = r.zoom, u = r.rotation, r = r.projectionId; - this._map.getStatus().zoomEnable && (t = w.mousePos(this.j, t, this._map), - e = [this.j.clientWidth / 2, this.j.clientHeight / 2], - s = this._t(e, t), - n = Math.atan((t[1] - e[1]) / (t[0] - e[0])), - u = -u / 180 * Math.PI + n, - n = [-Math.cos(u) * s, Math.sin(u) * s], - t[0] - e[0] < 0 && (n[0] = -n[0], - n[1] = -n[1]), - u = _.V[r].nt(n[0], n[1], a), - s = _.V[r].nt(n[0], n[1], i), - e = Math.pow(2, i - a), - h.setOptions({ - kt: { - pos: t, - Mt: i, - Rt: s, - zt: u, - scale: e, - center: _.set(_.create(), o[0], o[1]) - } - }), - this.G("zooming")) - } - , - i.prototype.tt = function (t) { - t && 0 !== t.button || (this.S(), - this.C(), - this.G("zoomend")) - } - , - i.prototype.S = function () { - this.j.removeEventListener("dblclick", this.St), - this.j.removeEventListener("touchmove", this.dt) - } - , - i.prototype.C = function () { - delete this.$, - delete this.U, - delete this.U - } - , - i.prototype._t = function (t, i) { - var n = i[0] - t[0] - , i = i[1] - t[1]; - return Math.sqrt(n * n + i * i) - } - , - i.prototype.G = function (t, i) { - this._map.getBindHandler().fireEvent(t, i) - } - ; - var $ = i; - function i(t, i) { - this.lt = !1, - this.wt = !1, - this.rt = !0, - this.xt = _.zoomRange, - this.yt = 0, - this.ct = 0, - this.pt = [0, 0], - this._map = i, - this.j = t, - this.R = "disabled", - this.St = this.ut.bind(this), - this.dt = this.gt.bind(this) - } - it.prototype.isEnabled = function () { - return "disabled" !== this.R - } - , - it.prototype.isActive = function () { - return "active" === this.R - } - , - it.prototype.enable = function () { - this.isEnabled() || (this.R = "enabled") - } - , - it.prototype.disable = function () { - if (this.isEnabled()) - switch (w.removeClass(this.j, "mapboxgl-touch-drag-pan"), - this.R) { - case "active": - this.R = "disabled", - this.S(), - this.G("zoomstart"); - break; - case "pending": - this.R = "disabled", - this.S(); - break; - default: - this.R = "disabled" - } - } - , - it.prototype.ht = function () { - return !!this.lt - } - , - it.prototype.P = function (t) { - 2 === t.touches.length && (t.stopPropagation(), - this.G("zoomstart"), - this.$ = [{ - clientX: t.touches[0].clientX, - clientY: t.touches[0].clientY, - pageX: t.touches[0].pageX, - pageY: t.touches[0].pageY - }, { - clientX: t.touches[1].clientX, - clientY: t.touches[1].clientY, - pageX: t.touches[1].pageX, - pageY: t.touches[1].pageY - }], - this.B = this.$, - t = this._map.getView(), - this.zY = t.getStatus(), - this.j.addEventListener("touchmove", this.T), - this.j.addEventListener("touchend", this.At)) - } - , - it.prototype.Z = function (t) { - var i, n, s, e, h, r, o, a, u, f, c, l, d, v, p, m, y, b, g, M, k; - t.touches.length < 2 || (this.G("touchmove"), - this._map.getStatus().touchZoom && this.isEnabled() && (this.lt = !0, - i = -this.CF(t), - s = (f = (n = this._map.getView()).getStatus()).rotation, - e = f.center, - h = f.zoom, - g = f.projectionId, - g = void 0 === (r = f.Tt) ? g : r, - r = f.pitch, - o = (f = this._map.getStatus()).rotateEnable, - a = f.zoomEnable, - u = f.pitchEnable, - f = f.touchZoomCenter, - c = this.MW.CY, - d = l = !1, - y = this.It(this.B[0], this.B[1]), - p = this.It(t.touches[0], t.touches[1]), - v = this.Dt(this.$[0], this.$[1]), - k = this.Dt(t.touches[0], t.touches[1]), - p = h + (p - y) / 180, - y = [((y = _.Pt(w.mousePos(this.j, this.$[0], this._map), w.mousePos(this.j, this.$[1], this._map)))[0] + y[2]) / 2, (y[1] + y[3]) / 2], - b = [this.j.clientWidth / 2, this.j.clientHeight / 2], - m = this.jt(b, y), - M = Math.atan((y[1] - b[1]) / (y[0] - b[0])), - M = s * Math.PI / 180 + M, - M = [-Math.cos(M) * m, Math.sin(M) * m], - y[0] - b[0] < 0 && (M[0] = -M[0], - M[1] = -M[1]), - m = _.V[g].nt(M[0], M[1], h), - y = _.V[g].nt(M[0], M[1], p), - b = Math.pow(2, p - h), - g = this.zY.rotation + (k - v), - 10 < Math.abs(k - v) && (this.MW.CY = !0), - .1 < Math.abs(i) && (l = c = !(d = !0)), - .01 < Math.abs(p - h) && (l = !0), - M = w.mousePos(this.j, this.$[0], this._map), - k = w.mousePos(this.j, this.$[1], this._map), - 1 === f ? n.setOptions({ - pitch: u && d ? r + i : r, - zoom: a && l ? p : h, - rotation: o && c ? g : s - }) : n.setOptions({ - pitch: u && d ? r + i : r, - kt: a && l && { - Mt: p, - Rt: y, - zt: m, - pos: [(M[0] + k[0]) / 2, (M[1] + k[1]) / 2], - scale: b, - center: _.set(_.create(), e[0], e[1]) - }, - rotation: o && c ? g : s - }), - this.B = [{ - clientX: t.touches[0].clientX, - clientY: t.touches[0].clientY, - pageX: t.touches[0].pageX, - pageY: t.touches[0].pageY - }, { - clientX: t.touches[1].clientX, - clientY: t.touches[1].clientY, - pageX: t.touches[1].pageX, - pageY: t.touches[1].pageY - }])) - } - , - it.prototype.CF = function (t) { - var i, n = this.B, s = this.$, n = [w.mousePos(this.j, n[0], this._map), w.mousePos(this.j, n[1], this._map)], s = (w.mousePos(this.j, s[0], this._map), - w.mousePos(this.j, s[1], this._map), - [w.mousePos(this.j, t.touches[0], this._map), w.mousePos(this.j, t.touches[1], this._map)]), t = Math.sqrt(Math.pow(n[0][0] - n[1][0], 2) + Math.pow(n[0][1] - n[1][1], 2)), e = Math.sqrt(Math.pow(s[0][0] - s[1][0], 2) + Math.pow(s[0][1] - s[1][1], 2)); - return 2 < Math.abs(e - t) || (e = s[0][0] - n[0][0], - t = s[0][1] - n[0][1], - i = s[1][0] - n[1][0], - s = s[1][1] - n[1][1], - Math.abs(t) < Math.abs(e)) || Math.abs(s) < Math.abs(i) ? 0 : -(t + s) / 2 / 4 - } - , - it.prototype.Et = function (t) { - this.MW.CY = !1, - this.G("zoomend"), - this.S() - } - , - it.prototype.It = function (t, i) { - var n = i.clientX - t.clientX - , i = i.clientY - t.clientY; - return Math.sqrt(n * n + i * i) - } - , - it.prototype.jt = function (t, i) { - var n = i[0] - t[0] - , i = i[1] - t[1]; - return Math.sqrt(n * n + i * i) - } - , - it.prototype.Dt = function (t, i) { - var n = t.pageX - i.pageX - , t = t.pageY - i.pageY; - return Math.atan2(t, n) / Math.PI * 180 - } - , - it.prototype.S = function () { - this.j.removeEventListener("touchstart", this.Nt), - this.j.removeEventListener("touchmove", this.T), - this.j.removeEventListener("touchend", this.At) - } - , - it.prototype.G = function (t, i) { - this._map.getBindHandler().fireEvent(t, i) - } - ; - var tt = it; - function it(t, i) { - this.MW = { - CY: !1 - }, - this._map = i, - this.j = t, - this.R = "disabled", - this.T = this.Z.bind(this), - this.At = this.Et.bind(this) - } - var nt = 4.000244140625 - , st = (et.prototype.isEnabled = function () { - return "disabled" !== this.R - } - , - et.prototype.isActive = function () { - return "active" === this.R - } - , - et.prototype.enable = function () { - this.isEnabled() || (this.R = "enabled") - } - , - et.prototype.disable = function () { - this.isEnabled() && (this.R = "disabled", - this.C(), - this.G("zoomend")) - } - , - et.prototype.Ut = function (t) { - t.preventDefault(); - var i, n, s, e = this._map.getStatus(); - this.G("zoomstart"), - this.isEnabled() && (i = t.deltaMode === WheelEvent.DOM_DELTA_LINE ? 40 * t.deltaY : t.deltaMode === WheelEvent.DOM_DELTA_PAGE ? 400 * t.deltaY : t.deltaY, - s = (n = Date.now()) - (this.Bt || 0), - this.Bt = n, - 0 !== i && i % nt == 0 ? this.Wt = "wheel" : 0 !== i && Math.abs(i) < 4 ? this.Wt = "trackpad" : 400 < s ? (this.Wt = null, - this.Gt = i) : this.Wt || (this.Wt = Math.abs(s * i) < 200 ? "trackpad" : "wheel", - this.Zt && (i += this.Gt)), - t.shiftKey && i && (i /= 4), - e && e.zoomSpeed && (i *= e.zoomSpeed), - this.Wt) && (this.$t -= i, - this.isActive() || this.D(t)) - } - , - et.prototype.D = function (t) { - var i, n, s, e, h, r, o, a, u; - this.$t && (a = (e = (i = this._map.getView()).getStatus()).rotation, - n = e.zoom, - s = e.center, - e = e.projectionId, - r = "wheel" === this.Wt && Math.abs(this.$t) > nt ? 1 / 450 : .01, - r = 2 / (1 + Math.exp(-Math.abs(this.$t * r))), - this.$t < 0 && 0 !== r && (r = 1 / r), - h = this.Yt(n), - h = Math.min(this._map.getZooms()[1], Math.max(2, this.Vt(h * r))), - r = w.mousePos(this.j, t, this._map), - t = [this.j.clientWidth / 2, this.j.clientHeight / 2], - u = this._t(t, r), - o = Math.atan((r[1] - t[1]) / (r[0] - t[0])), - a = -a / 180 * Math.PI + o, - o = [-Math.cos(a) * u, Math.sin(a) * u], - r[0] - t[0] < 0 && (o[0] = -o[0], - o[1] = -o[1]), - a = _.V[e].nt(o[0], o[1], n), - u = _.V[e].nt(o[0], o[1], h), - t = Math.pow(2, h - n), - this._map.XT(o), - i.setOptions({ - kt: { - pos: r, - Mt: h, - Rt: u, - zt: a, - scale: t, - center: _.set(_.create(), s[0], s[1]) - } - }), - this.$t = 0) - } - , - et.prototype.Yt = function (t) { - return Math.pow(2, t) - } - , - et.prototype.Vt = function (t) { - return Math.log(t) / Math.LN2 - } - , - et.prototype._t = function (t, i) { - var n = i[0] - t[0] - , i = i[1] - t[1]; - return Math.sqrt(n * n + i * i) - } - , - et.prototype.C = function () { - delete this.q, - delete this.$, - delete this.U, - delete this.B - } - , - et.prototype.G = function (t, i) { - this._map.getBindHandler().fireEvent(t, i) - } - , - et); - function et(t, i) { - this._map = i, - this.j = t, - this.R = "disabled", - this.Wt = "wheel", - this.$t = 0 - } - rt.prototype.isEnabled = function () { - return "disabled" !== this.R - } - , - rt.prototype.isActive = function () { - return "active" === this.R - } - , - rt.prototype.enable = function () { - this.isEnabled() || (this.R = "enabled") - } - , - rt.prototype.disable = function () { - if (this.isEnabled()) { - switch (this.R) { - case "active": - this.S(), - this.C(); - break; - case "pending": - this.S() - } - this.R = "disabled" - } - } - , - rt.prototype.L = function (t) { - this.A && clearInterval(this.A), - (2 === t.button || t.ctrlKey && 0 === t.button) && (this.j.addEventListener("mousemove", this.T, { - passive: !0 - }), - this.j.addEventListener("mouseup", this.I), - this.j.addEventListener("mouseleave", this.I), - this.D(t)) - } - , - rt.prototype.D = function (t) { - this.$ = this.U = this.B = w.mousePos(this.j, t, this._map), - this.W = [[Date.now(), this.$]], - this.R = "active" - } - , - rt.prototype.Z = function (t) { - var i, n, s; - this.W.length < 2 && "active" === this.R && this.G("dragstart", t), - this.G("dragging", t), - this.isEnabled() && (n = w.mousePos(this.j, t, this._map), - this.q = t, - this.B = _.set(_.create(), n[0], n[1]), - this.Y(), - this.W.push([Date.now(), this.B]), - this.W.length < 2 || ("active" === this.R && (this.R = "pending"), - "disabled" !== this.R && (i = (n = (t = this._map.getView()).getStatus()).rotation, - n = n.pitch, - s = [this.B[0] - this.W[this.W.length - 2][1][0], this.B[1] - this.W[this.W.length - 2][1][1]], - (!this._map.getStatus().pitchEnable || Math.abs(s[0]) > Math.abs(s[1])) && (s[1] = 0), - (!this._map.getStatus().rotateEnable || Math.abs(s[0]) < Math.abs(s[1])) && (s[0] = 0), - 15 < Math.abs(this.B[0] - this.$[0]) && (this.B[1] > this.j.clientHeight / 2 ? i -= s[0] / 10 : i += s[0] / 10), - n -= s[1] / this._map.getZooms()[1] * 2, - t.setOptions({ - rotation: i, - pitch: n - })))) - } - , - rt.prototype.tt = function (t) { - switch (this.R) { - case "active": - this.R = "enabled", - this.C(); - break; - case "pending": - this.R = "enabled", - this.G("dragend", t); - break; - default: - this.G("dragend", t) - } - this.S() - } - , - rt.prototype.S = function () { - this.j.removeEventListener("mousemove", this.T), - this.j.removeEventListener("mouseup", this.I), - this.j.removeEventListener("mouseleave", this.I) - } - , - rt.prototype.C = function () { - delete this.q, - delete this.$, - delete this.U, - delete this.B - } - , - rt.prototype.Y = function () { - for (var t = this.W, i = Date.now(); 0 < t.length && 160 < i - t[0][0];) - t.shift() - } - , - rt.prototype.G = function (t, i) { - this._map.getBindHandler().fireEvent(t, i) - } - ; - var ht = rt; - function rt(t, i) { - this._map = i, - this.W = [], - this.j = t, - this.R = "disabled", - this.T = this.Z.bind(this), - this.I = this.tt.bind(this) - } - n.prototype.Xt = function () { - this._container.addEventListener("mouseenter", this.DL.bind(this)), - this._container.addEventListener("mouseover", this.OL.bind(this)), - this._container.addEventListener("mouseleave", this.PL.bind(this)), - this._container.addEventListener("mouseup", this.tt.bind(this)), - this._container.addEventListener("mouseout", this.BL.bind(this)), - this._container.addEventListener("mousemove", this.jL.bind(this)), - this._container.addEventListener("mousedown", this.Jt.bind(this)), - this._container.addEventListener("touchend", this.N.bind(this)), - this._container.addEventListener("touchstart", this.Kt.bind(this), !1), - this._container.addEventListener("touchmove", this.gt.bind(this), !1), - this._container.addEventListener("wheel", this.Qt.bind(this), { - passive: !1 - }), - this._container.addEventListener("contextmenu", this.EL.bind(this)), - this._container.addEventListener("keydown", this.ii.bind(this)) - } - , - n.prototype.fireEvent = function (t, i) { - if (i) { - i.Adt = t; - var n = this._map.getStatus(); - if ("scrollWheel" === t) { - if (!n.scrollWheel) - return void this.oi.disable(); - this.oi.enable() - } - var s, h = (e = w.mousePos(this._container, i, this._map))[0], e = e[1], o = (r = this._map.getView().containerTolnglat(h, e))[0], r = r[1]; - if ("mousemove" === t && this.ri && this.ri.P$) - s = this.ri; - else if ("dragstart" === t || "dragging" === t || "dragend" === t) - switch (t) { - case "dragstart": - s = !n.pickWhenMoving && this._map.TL() ? this.ri : this.si(i), - this.ri = s; - break; - case "dragging": - s = this.ri; - break; - case "dragend": - s = this.ri, - this.ri = void 0 - } - else - s = !n.pickWhenMoving && this._map.TL() ? this.ri : this.si(i); - var a = this.hi(s, t) - , u = new _.LngLat(o, r) - , o = { - lnglat: u, - target: s, - pixel: h = new _.Pixel(h, e), - originEvent: i, - pos: e = this._map.getProjection().project(o, r), - vectorIndex: 0 - } - , r = (s && (o.vectorIndex = s && s.iE && i.lnglat && s.iE(i.lnglat) || 0), - -1 !== ["mouseover", "mousemove", "mouseout", "mouseenter", "mouseleave"].indexOf(t) ? this.ui(t, o) : s && this.ci(s, t, o), - o.target) - , o = { - lnglat: u, - target: s, - pixel: h, - originEvent: i, - pos: e - }; - r && "poi" !== r.type && !a || (o.target = this._map), - s && "poi" === s.type || s && a ? this._map.emit(t, o) : "dblclick" === t && s ? this.fi.disable() : "dragstart" !== t && "dragging" !== t && "dragend" !== t || !s || !s.getDraggable() && "AMap.InfoWindow" !== s.type && "AMap.ContextMenu" !== s.type ? s || (n.dragEnable || "dragging" !== t && "dragstart" !== t && "dragend" !== t) && this._map.emit(t, o) : "dragend" === t ? this.ft.enable() : this.ft.disable() - } - } - , - n.prototype.hi = function (t, i) { - return !!t && "poi" !== t.type && !("dragstart" === i || "dragging" === i || "dragend" === i || !this._map.getStatus().allBubble && !Boolean(t.getOptions().bubble)) - } - , - n.prototype.ti = function (t) { - this.fi.enable(), - this.fireEvent("dblclick", t), - this.fi.ut(t) - } - , - n.prototype.Jt = function (t) { - this._map.cancelMapAnimate(), - this.Ht = "mousedown", - this.fireEvent("mousedown", t), - this.ft.enable(), - this.ft.L(t), - this.ei.L(t), - this.$ = w.mousePos(this._container, t, this._map) - } - , - n.prototype.OL = function (t) { - this.fireEvent("mouseover", t) - } - , - n.prototype.DL = function (t) { - this.fireEvent("mouseenter", t) - } - , - n.prototype.PL = function (t) { - this.fireEvent("mouseleave", t) - } - , - n.prototype.BL = function (t) { - this.fireEvent("mouseout", t) - } - , - n.prototype.tt = function (t) { - var i = this; - "mousedown" !== this.Ht || t.ctrlKey || (setTimeout(function () { - i.nB = 0 - }, 300), - this.Ht = "false", - 2 === t.button ? this.fireEvent("rightclick", t) : (this.nB++, - 2 <= this.nB ? (this.fi.enable(), - this.fireEvent("dblclick", t), - this.fi.ut(t), - this.nB = 0) : this.fireEvent("click", t))), - this.fireEvent("mouseup", t) - } - , - n.prototype.FL = function (t) { - "move" !== this.Ht && this.fireEvent("click", t) - } - , - n.prototype.jL = function (t) { - var i; - "mousedown" === this.Ht && (i = w.mousePos(this._container, t, this._map), - 1 < Math.abs(this.$[0] - i[0]) || 1 < Math.abs(this.$[1] - i[1])) && (this.Ht = "move"), - this.fireEvent("mousemove", t) - } - , - n.prototype.Kt = function (t) { - var i = this; - "infoWindow" !== t.cH && t.cancelable && t.preventDefault(), - this.oB = "touchstart", - this.$ = w.mousePos(this._container, t, this._map), - this._map.cancelMapAnimate(), - this.fireEvent("touchstart", t), - this.rB = (new Date).getTime(), - this.ft.enable(), - this.ft.P(t), - this.fi.P(t, this.ft), - this.ni.P(t), - clearTimeout(this.aB), - 1 === t.touches.length && (this.aB = setTimeout(function () { - i.fireEvent("rightclick", t) - }, 800)) - } - , - n.prototype.gt = function (t) { - this.$ && (t = w.mousePos(this._container, t, this._map), - 1 < Math.abs(t[0] - this.$[0]) || 1 < Math.abs(t[1] - this.$[1])) && "touchstart" === this.oB && (this.oB = "touchmove") - } - , - n.prototype.N = function (t) { - var i = this - , n = (new Date).getTime(); - this.fireEvent("touchend", t), - clearTimeout(this.aB), - "touchstart" === this.oB && n - this.rB < 800 && (this.oB = "false", - this.fireEvent("click", t), - setTimeout(function () { - i.dH = 0 - }, 300), - this.dH++, - 2 <= this.dH) && (this.fireEvent("dblclick", t), - this.dH = 0), - this.fi.vt(t) - } - , - n.prototype.Qt = function (t) { - this._map.cancelMapAnimate(), - this.fireEvent("mousewheel", t), - this._map.getStatus().scrollWheel && (t.preventDefault(), - this.ft.disable(), - this.oi.Ut(t)) - } - , - n.prototype.EL = function (t) { - t.ctrlKey, - t.preventDefault() - } - , - n.prototype.si = function (t) { - for (var i, s = (n = this._map).DF(), e = n.pi, h = n.di, n = n.vm, r = s.concat([e, h, n]), e = (s = w.mousePos(this._container, t, this._map))[0], h = s[1], s = (n = this._map.getView().containerTolnglat(e, h))[0], n = n[1], o = (t.lnglat = new _.LngLat(s, n), - t.pixel = new _.Pixel(e, h), - r.length - 1); 0 <= o; o--) { - var a = r[o]; - if (a = a && a.vi(t)) { - if (!a.getOptions) { - i = a; - break - } - if (!0 !== a.getOptions().noSelect) { - i = a; - break - } - } - } - return i - } - , - n.prototype.ui = function (t, i) { - var s = void 0 === (s = (n = this.mi).yi) ? null : s - , e = void 0 === (e = n.xi) ? null : e - , n = n.vectorIndex - , h = i.target; - "mousemove" !== t && "mouseleave" !== t || ("mousemove" === t ? s ? h ? s.hS !== h.hS || (void 0 === n ? -1 : n) !== i.vectorIndex ? (this.ci(s, "mouseout", e), - this.ci(h, "mouseover", i)) : this.ci(h, "mousemove", i) : this.ci(s, "mouseout", e) : h && this.ci(h, "mouseover", i) : "mouseleave" === t && s && this.ci(s, "mouseout", e), - this.mi.yi = h, - this.mi.vectorIndex = i.vectorIndex, - this.mi.xi = i) - } - , - n.prototype.ci = function (t, i, n) { - "poi" === t.type ? this._map.getStatus().isHotspot && this.bi(t, i, n) : t.emit(i, n) - } - , - n.prototype.bi = function (t, i, n) { - var s, e, h, r = "hotspot"; - switch (i) { - case "click": - this._map.setCursor("pointer"), - s = r + i; - break; - case "mouseover": - this._map.setCursor("pointer"), - s = r + "over"; - break; - case "mouseout": - this._map.setCursor(""), - s = r + "out" - } - s && (e = (h = this._map.getProjection().unproject(t.lnglat[0], t.lnglat[1]))[0], - h = h[1], - t = { - type: s, - id: t.id, - name: t.name, - lnglat: new _.LngLat(e, h), - originEvent: n.originEvent - }, - this._map.emit(s, t)) - } - , - n.prototype.ii = function (t) { - var i, n; - this._map.getStatus().keyboardEnable && (i = this._map.getZoom(), - n = this._map.getRotation(), - "=" === t.key ? this._map.setZoom(i + 1, !0) : "-" === t.key && this._map.setZoom(i - 1, !0), - t.ctrlKey ? "ArrowLeft" === t.key ? this._map.setRotation(n - 90, !0) : "ArrowRight" === t.key && this._map.setRotation(n + 90, !0) : "ArrowUp" === t.key ? this._map.panBy(0, 300) : "ArrowDown" === t.key ? this._map.panBy(0, -300) : "ArrowLeft" === t.key ? this._map.panBy(300, 0) : "ArrowRight" === t.key && this._map.panBy(-300, 0)) - } - ; - var ot = n; - function n(t) { - this.Ht = "false", - this.oB = "false", - this.nB = 0, - this.dH = 0, - this.aB = 0, - this.rB = 0, - this.mi = { - yi: null, - xi: null - }, - this._map = t, - this._container = this._map.getMapsContainer(), - this.ft = new K(this._container, t), - this.ft.enable(), - this.oi = new st(this._container, t), - this.oi.enable(), - this.fi = new $(this._container, t), - this.fi.enable(), - this.ni = new tt(this._container, t), - this.ni.enable(), - this.ei = new ht(this._container, t), - this.ei.enable() - } - var at, ut = new _.rW({}), s = (at = _.Event, - _.Ei(ft, at), - ft.prototype.lo = function () { - return this.Oo - } - , - ft.prototype.destroy = function () { } - , - ft.prototype.Fo = function (t) { - !t || t === this.Oo || this.pS || this.Oo || (this.pS = !0, - this.Oo = !0, - this.emit("complete")) - } - , - ft.prototype.VE = function (t, i, n) { - for (var s = this.lZ(), e = [], h = 0; h < t.length; h++) { - var r = t[h] - , r = _.ProjectionManager.getProjection("EPSG:3857").unproject(r[0], r[1]); - e.push(r) - } - var o = s.boundsP16; - i && "china" === i ? o = [o[0]] : i && "oversea" === i && (o = s.nebulaOutSea); - for (var a = 0; a < o.length; a++) { - var u = o[a]; - if (ut.isRingInRingByOutsea(e, u[0])) - return !0 - } - return !1 - } - , - ft.prototype.rG = function (t, i) { - for (var n = this.lZ(), s = [], e = 0; e < t.length; e++) { - var h = t[e] - , h = _.ProjectionManager.getProjection("EPSG:3857").unproject(h[0], h[1]); - s.push(h) - } - for (var r = n.boundsP16, o = 0; o < r.length; o++) { - var a = r[o]; - if (ut.isRingInRingByMapbox(s, a[0])) - return !0 - } - return !1 - } - , - ft.prototype.aU = function (t, i) { - for (var n = this.lZ(), s = [], e = 0; e < t.length; e++) { - var h = t[e] - , h = _.ProjectionManager.getProjection("EPSG:3857").unproject(h[0], h[1]); - s.push(h) - } - for (var r = n.boundsP16, o = 0; o < r.length; o++) { - var a = r[o]; - if (ut.isRingInRingByMapboxB(s, a[0])) - return !0 - } - return !1 - } - , - ft.prototype.sU = function (t) { - for (var i = this.lZ().boundsP16, n = i.length, s = t.projectionId, e = [], h = 0; h < n; h++) { - var r = i[h] - , r = _.V[s].Xs(r[0], r[1], 16); - e.push(r[0]), - e.push(r[1]) - } - return e - } - , - ft.prototype.UH = function (t) { } - , - ft.prototype.Eo = function () { - this.map.setNeedUpdate(!0) - } - , - ft.prototype.lZ = function () { - var t = this.map.getOutseaDataType(); - return _.vZ(t) - } - , - _.dZ([_.pZ("Source")], ft)); - function ft(t, i, n, s) { - var e = at.call(this) || this; - return e.map = n, - e.layer = s, - e.Oo = !1, - e.pS = !1, - e._id = t.id, - e.Wt = t.type, - e._tileUrl = t.tileUrl, - t.url && (e.$o = t.url), - e - } - Object.defineProperty(lt.prototype, "size", { - get: function () { - return _.keys(this.VL).length - }, - eb: !1, - nb: !0 - }), - lt.prototype.clear = function () { - this.VL = {} - } - , - lt.prototype.set = function (t, i) { - this.VL[t] = i - } - , - lt.prototype.get = function (t) { - return this.VL[t] - } - , - lt.prototype.delete = function (t) { - delete this.VL[t] - } - , - lt.prototype.has = function (t) { - return void 0 !== this.VL[t] - } - ; - var ct = lt; - function lt() { - this.VL = {} - } - var r = "newer" - , o = "older" - , e = (h.prototype.Uo = function (t) { - var i = this.Bo; - (this.Bo = t) < i && this.MN() - } - , - h.prototype.keys = function () { - return new vt(this.Wo) - } - , - h.prototype.values = function () { - return new mt(this.Wo) - } - , - h.prototype.entries = function () { - return this - } - , - h.prototype.forEach = function (t, i) { - "object" != typeof i && (i = this); - for (var n = this.Wo; n;) - t.call(i, n.value, n.key, this), - n = n[r] - } - , - h.prototype.toJSON = function () { - for (var t = new Array(this.size), i = 0, n = this.Wo; n;) - t[i++] = { - key: n.key, - value: n.value - }, - n = n[r]; - return t - } - , - h.prototype.toString = function () { - for (var t = "", i = this.Wo; i;) - t += String(i.key) + ":" + i.value, - (i = i[r]) && (t += " < "); - return t - } - , - h.prototype.Go = function (t) { - t !== this.Zo && (t[r] && (t === this.Wo && (this.Wo = t[r]), - t[r][o] = t[o]), - t[o] && (t[o][r] = t[r]), - t[r] = void 0, - t[o] = this.Zo, - this.Zo && (this.Zo[r] = t), - this.Zo = t) - } - , - h.prototype.assign = function (t) { - for (var i, n = this.Bo || Number.MAX_VALUE, s = (this.qo.clear(), - t), e = s.next(); !e.done; e = s.next()) { - var h = new dt(e.value[0], e.value[1]); - if (this.qo.set(h.key, h), - i ? (i[r] = h)[o] = i : this.Wo = h, - i = h, - 0 == n--) - throw new Error("overflow") - } - this.Zo = i, - this.size = this.qo.size - } - , - h.prototype.get = function (t, i) { - if (t = this.qo.get(t)) - return i && this.Go(t), - t.value - } - , - h.prototype.set = function (t, i) { - var n = this.qo.get(t); - return n ? (n.value = i, - this.Go(n)) : (this.qo.set(t, n = new dt(t, i)), - this.Zo ? (this.Zo[r] = n)[o] = this.Zo : this.Wo = n, - this.Zo = n, - ++this.size, - this.size > this.Bo && this.MN()), - this - } - , - h.prototype.shift = function () { - var t = this.Wo; - if (t) - return this.Wo[r] ? (this.Wo = this.Wo[r], - this.Wo[o] = void 0) : (this.Wo = void 0, - this.Zo = void 0), - t[r] = t[o] = void 0, - t.value.destroy(), - this.qo.delete(t.key), - --this.size, - [t.key, t.value] - } - , - h.prototype.find = function (t) { - return (t = this.qo.get(t)) ? t.value : void 0 - } - , - h.prototype.has = function (t) { - return this.qo.has(t) - } - , - h.prototype.delete = function (t) { - if (t = this.qo.get(t)) - return this.qo.delete(t.key), - t[r] && t[o] ? (t[o][r] = t[r], - t[r][o] = t[o]) : t[r] ? (t[r][o] = void 0, - this.Wo = t[r]) : t[o] ? (t[o][r] = void 0, - this.Zo = t[o]) : this.Wo = this.Zo = void 0, - this.size--, - t.value - } - , - h.prototype.clear = function () { - this.Wo = this.Zo = void 0, - this.size = 0, - this.qo.clear() - } - , - h.prototype.AN = function (t) { - return "loaded" !== t.value.status || (t = t.value.stamp) && this.wN && t === this.wN - } - , - h.prototype.QF = function (t) { - this.wN = t - } - , - h.prototype.MN = function () { - if (this.Wo && this.Zo) - for (var t = this.Wo, i = this.Zo.key; t && i && t.key !== i;) { - if (this.AN(t)) - this.Go(t); - else if (this.shift(), - this.size <= this.Bo) - return; - t = this.Wo - } - } - , - h); - function h(t, i) { - this.entries = i, - "number" != typeof (this.Bo = t) && (i = t, - t = 0), - this.size = 0, - this.Bo = t, - this.Wo = this.Zo = void 0, - this.qo = new ("undefined" != typeof Map ? Map : ct), - i && (this.assign(i), - t < 1) && (this.Bo = this.size) - } - var dt = function (t, i) { - this.key = t, - this.value = i, - this[r] = void 0, - this[o] = void 0 - } - , vt = (pt.prototype.next = function () { - var t = this.Yo; - return t ? (this.Yo = t[r], - { - done: !1, - value: t.key - }) : { - done: !0, - value: void 0 - } - } - , - pt); - function pt(t) { - this.Vo = t - } - yt.prototype.next = function () { - var t = this.Yo; - return t ? (this.Yo = t[r], - { - done: !1, - value: t.value - }) : { - done: !0, - value: void 0 - } - } - ; - var mt = yt; - function yt(t) { - this.Vo = t - } - bt = e, - _.Ei(Mt, bt), - Mt.prototype.shift = function () { - var t = this.Wo; - if (t) - return this.Wo[r] ? (this.Wo = this.Wo[r], - this.Wo[o] = void 0) : (this.Wo = void 0, - this.Zo = void 0), - t[r] = t[o] = void 0, - this.qo.delete(t.key), - this.emit("delete", { - key: t.key - }), - --this.size, - [t.key, t.value] - } - , - Mt.prototype.on = function (t, i, n, s) { - void 0 === n && (n = this), - void 0 === s && (s = !1); - for (var e = 0, h = Array.isArray(t) ? t : [t]; e < h.length; e++) { - var r = h[e]; - this._on(r, i, n, s) - } - return this - } - , - Mt.prototype.off = function (t, i, n) { - void 0 === n && (n = this); - var s = this.vI; - if (t in s) - for (var e = 0; e < s[t].length; e += 1) - if (s[t][e].fn === i && s[t][e].context === n) - return s[t].splice(e, 1), - this; - return this - } - , - Mt.prototype.hasEvents = function (t, i, n) { - void 0 === n && (n = this); - var s = this.vI; - if (t && i && t in s) - for (var e = 0; e < s[t].length; e += 1) - if (s[t][e].fn === i && s[t][e].context === n) - return !0; - return !1 - } - , - Mt.prototype.clearEvents = function (t) { - return t ? this.vI[t] && delete this.vI[t] : this.vI = {}, - this - } - , - Mt.prototype.emit = function (t, i) { - if (void 0 === i && (i = {}), - t in this.vI) - for (var n = _.Ln(_.Ln({}, i), { - type: t - }), s = this.vI[t], e = 0, h = s.length; e < h; e += 1) { - var r = s[e]; - r.fn && (r.fn.call(r.context, n), - r.once) && (this.vI[t].splice(e, 1), - --e, - --h) - } - return this - } - , - Mt.prototype._on = function (t, i, n, s) { - var e; - return void 0 === s && (s = !1), - this.hasEvents(t, i, n = void 0 === n ? this : n) || ((e = this.vI)[t] = e[t] || [], - e[t].push({ - fn: i, - context: n || this, - once: s - })), - this - } - ; - var bt, gt = Mt; - function Mt() { - var t = null !== bt && bt.apply(this, arguments) || this; - return t.vI = {}, - t - } - kt = _.Event, - _.Ei(xt, kt), - xt.prototype.QF = function (t) { - this.Ho.QF(t) - } - , - xt.prototype.Xo = function (t) { - this.Ho.Uo(t) - } - , - xt.prototype.Jo = function (t) { - var i = this.ia(t.zo); - this.keys[i] = 1, - this.Ho.set(i, t) - } - , - xt.prototype.Qo = function (t) { - var i = this.ia(t.zo); - this.Ho.set(i, t) - } - , - xt.prototype.getTile = function (t, i) { - return void 0 === i && (i = !0), - this.Ko(t) ? this.Ho.get(this.ia(t), i) : null - } - , - xt.prototype.xf = function (t, i) { - return void 0 === i && (i = !1), - this.Ho.has(t) ? this.Ho.get(t, i) : null - } - , - xt.prototype.ea = function (t) { - var i = this.ia(t.zo); - return !!this.Ko(t.zo) && (this.Ho.delete(i), - delete this.keys[i], - !0) - } - , - xt.prototype.Ko = function (t) { - return t = this.ia(t), - !!this.Ho.has(t) - } - , - xt.prototype.destroy = function () { - this.Ho.clear() - } - , - xt.prototype.forEach = function (t) { - this.Ho.forEach(t) - } - , - xt.prototype.ia = function (t) { - var i; - return t.key || (i = t.z + "," + t.x + "," + t.y, - t.key = i) - } - ; - var kt, wt = _.dZ([_.pZ("TileCache")], xt); - function xt(t) { - void 0 === t && (t = 500); - var i = kt.call(this) || this; - return i.keys = {}, - i.na = t, - i.Ho = new gt(i.na), - i - } - At = wt, - _.Ei(Ct, At), - Ct.prototype.MD = function (t, i) { - void 0 === i && (i = _.zB.ALL); - var n = ""; - return t ? i !== t && (n = "all" === t ? "" : i === _.zB.ALL ? t ? t === _.zB.LITE ? _.zB.LEFT : _.zB.LITE : _.zB.ALL : i) : n = i, - n - } - , - Ct.prototype.ea = function (t) { - return t.rN(), - At.prototype.ea.call(this, t) - } - ; - var At, zt = Ct; - function Ct(t) { - return t = At.call(this, t = void 0 === t ? 500 : t) || this, - _.Event.extend("delete", t.Ho, t), - t - } - St = wt, - _.Ei(Tt, St); - var St, Lt = Tt; - function Tt(t) { - return t = St.call(this, t = void 0 === t ? 500 : t) || this, - _.Event.extend("delete", t.Ho, t), - t - } - Dt.prototype.Uo = function (t) { - this.Bo = t - } - , - Dt.prototype._B = function (t, i, n, s) { - void 0 === s && (s = this.Bo); - for (var e = n || "china", h = 0; h < t.length; h += s) { - var r = t.slice(h, h + s) - , o = this.qN++ - , r = { - wD: this.target(r, o, i, e), - ZN: r, - id: o - }; - this.KN.push(r), - this.YN[o] = r - } - } - , - Dt.prototype.qH = function (t) { - for (var i = [], n = [], s = 0, e = this.KN; s < e.length; s++) - for (var h = e[s], r = 0; r < h.ZN.length; r++) { - var o = h.ZN[r]; - if (this.QN(t, o)) { - Array.prototype.push.apply(i, h.ZN); - break - } - r === h.ZN.length - 1 && n.push(h) - } - for (var a = 0, u = n; a < u.length; a++) { - (h = u[a]).wD && h.wD.cancel(); - var f = this.KN.indexOf(h); - this.KN.splice(f, 1), - delete this.YN[h.id], - this.JN(h.ZN) - } - return { - yB: i, - SB: n - } - } - , - Dt.prototype.QN = function (t, i) { - return -1 < t.indexOf(i.slice(0, -2)) - } - , - Dt.prototype.CB = function (t) { - var i = this.YN[t]; - delete this.YN[t], - i && (t = this.KN.indexOf(i), - this.KN.splice(t, 1)) - } - ; - var It = Dt; - function Dt(t, i, n) { - void 0 === n && (n = 5), - this.target = t, - this.JN = i, - this.Bo = n, - this.qN = 0, - this.KN = [], - this.YN = {} - } - var Ot, Et = _.Support.scale, e = (Ot = s, - _.Ei(a, Ot), - a.prototype.loadData = function (t, i, n, s) { - var e = this; - if ("optimise" === s.loadData() && s.TL()) - return !1; - this.aa = t, - this.sa = []; - for (var h = t.bounds, r = this.ra(t.optimalZoom), o = this.ha(h, r), a = [], u = t.optimalZoom, h = _.map(o, function (t) { - var i = e.fa(t.x, t.z); - return t.z + "," + i + "," + t.y - }), f = this.QH.qH(h), c = [], l = 0; l < o.length; l++) { - var d, v, p = o[l], m = new _.ca(p.z, this.fa(p.x, p.z), p.y), y = new _.ca(p.z, p.x, p.y), b = _.Util.kD(m.key, u), g = this.ua.getTile(m, !0); - g ? (d = this.ua.MD(g.tag, b)) && (g.tag = b, - v = p.key + "," + _.Util.SD(d), - f.yB.indexOf(v) < 0) && c.push(v) : (v = m.key + "," + _.Util.SD(b), - f.yB.indexOf(v) < 0 && ((m = new _.pa(m)).status = _.TileState.LOADING, - m.xB = _.TileState.LOADING, - this.ua.Jo(m), - m.tag = b, - m.gB = b, - c.push(v))), - !g || g.status !== _.TileState.LOADED && g.status !== _.TileState.RELOADING || this.sa.push(y), - g && (g.status === _.TileState.LOADED || g.status === _.TileState.RELOADING) || a.push(p), - g && g.status === _.TileState.LOADED && g.version && g.version !== this.VH && (this.sa.push(y), - g.status = _.TileState.RELOADING, - c.push(p.key + "," + _.Util.SD(g.tag)), - d = this.ua.MD(g.tag, b)) && (v = p.key + "," + _.Util.SD(d), - f.yB.indexOf(v) < 0) && c.push(v) - } - this.da(t, this.sa, a, s); - var M, k, w, x, h = this.map.getOutseaState(), A = this.map.getOutseaDataType(); - return h && !A ? 9.8 <= r ? (M = (w = this.OE(c)).overseaTile, - x = w.chinaTile, - k = w.mapboxTile, - this.PE(M, "oversea"), - this.PE(x, "china"), - this.PE(k, "mapbox"), - this.zD(x, t, r, s, n), - this.zD(M, t, r, s, n, void 0, "outsea")) : (this.PE(c, "china"), - this.zD(c, t, r, s, n, void 0, "a00")) : h && A && "mapbox" === A ? 9.8 <= u ? (x = (w = this.OE(c)).chinaTile, - this.PE(x, "china"), - this.zD(x, t, r, s, n, void 0)) : (this.PE(c, "china"), - this.zD(c, t, r, s, n, void 0, "a00")) : (this.PE(c, "china"), - this.zD(c, t, r, s, n, void 0)), - 0 === c.length - } - , - a.prototype.getData = function (i) { - var n = this - , t = i.bounds - , s = this.ra(i.optimalZoom) - , e = this.ha(t, s) - , h = [] - , r = {} - , o = (14 === s && (r = this.ha(t, 15, !0)), - this.map.qF()); - if (this.ua.QF(o), - this.sa.sort(function (t) { - return n.ra(i.optimalZoom) === t.z ? 1 : -1 - }), - 0 < this.sa.length) - for (var a = 0; a < this.sa.length; a++) { - var u, f = this.sa[a], c = this.ua.getTile(f, !0), l = 0, d = 0, v = [0, 0], p = i.centerCoord; - c ? (p = _.lcs.getLocalByCoord([p[0], p[1]]), - i.optimalZoom >= _.Ra ? (u = _.lcs.getSize(), - l = c.localCoord.x - p.x, - d = c.localCoord.y - p.y, - 0 != l && (l *= u[0], - v[0] = l), - 0 != d && (d *= u[1], - v[1] = d), - i.optimalZoom >= _.Ra && _.za >= c.zo.z && (v[0] = -p.center[0], - v[1] = -p.center[1])) : i.optimalZoom < _.Ra && _.za < c.zo.z && (v[0] = p.center[0], - v[1] = p.center[1])) : (l = new _.ca(f.z, this.fa(f.x, f.z), f.y), - (d = this.ua.getTile(l, !0)) && (c = new _.pa(f), - u = 1 << f.z, - (f.x < 0 || f.x >= u) && (p = Math.floor(f.x / u), - v[0] += 20037508.342789244 * p * 2), - l = d.tag, - c.Ro = d.Ro, - c.ID(d), - c.Sa = v, - c.status = d.status, - c.tag = l)), - c && (c.stamp = o, - c.Sa = v, - h.push(c)) - } - var m = i.optimalZoom - , t = _.every(e, function (s) { - return _.some(h, function (t) { - var i = t.zo.key - , n = t.zo.z - , n = _.Util.VF(n, m) - , t = t.tag - , t = _.Util.LD(t, n); - return i === s.key && t - }) - }) - , y = this.map.getOutseaState() - , b = this.map.getOutseaDataType() - , e = (y && !b && (t = !(b = _.filter(e, function (t) { - return !(t = n.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea - })).length || _.every(b, function (s) { - return _.some(h, function (t) { - var i = t.zo.key - , n = t.zo.z - , n = _.Util.VF(n, m) - , t = t.tag - , t = _.Util.LD(t, n); - return i === s.key && t - }) - })), - this.jE(h)) - , b = (t && (this.a_ = !0, - this.map.bZ.dynamic.set("firstAllLoaded", !0)), - e && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), - { - s_: this.a_, - fo: !!t && e, - yZ: e, - tiles: h, - Ca: r, - outseaData: void 0 - }); - return 0 !== h.length && !t || this.Fo(!0), - y && h.length && (e = this.map.bZ.MZ.wZ.gZ(), - b.outseaData = e), - b.tiles = this.UE(h, s), - b - } - , - a.prototype.pe = function (t) { - return t = new _.ca(t[0], t[1], t[2]), - this.ua.getTile(t) - } - , - a.prototype.ZE = function (t) { - return !1 - } - , - a.prototype.OE = function (t) { - for (var i = t.length, n = [], s = [], e = [], h = 0; h < i; h++) { - var r = void 0 - , o = void 0 - , a = t[h] - , u = a.split(",") - , f = new _.ca(u[0], u[1], u[2]) - , c = this.NE.getTile(f); - if (c && c.boundsStatus) - r = c.boundsStatus.isInChina, - o = c.boundsStatus.isInNebulaOversea; - else { - if (!(c = _.wa.ga(parseInt(u[1], 10), parseInt(u[2], 10), parseInt(u[0], 10), "EPSG:3857"))) - continue; - u = [[c[0], c[1]], [c[2], c[1]], [c[2], c[3]], [c[0], c[3]]], - r = this.VE(u, "china", a), - o = this.VE(u, "oversea", a), - (c = new _.pa(f)).boundsStatus = { - isInChina: r, - isInNebulaOversea: o - }, - this.NE.Jo(c) - } - r && n.push(a), - o && s.push(a), - r || o || e.push(a) - } - return { - chinaTile: n, - overseaTile: s, - mapboxTile: e - } - } - , - a.prototype.ra = function (t) { - return ("fast" !== this.map.bZ.MZ.drawMode || this.map.bZ.dynamic.get("firstPaint") ? { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 10, - 11: 10, - 12: 10, - 13: 12, - 14: 12, - 15: 14, - 16: 14, - 17: 14, - 18: 14, - 19: 14, - 20: 14, - 21: 14, - 22: 14, - 23: 14, - 24: 14, - 25: 14, - 26: 14, - 27: 14, - 28: 14, - 29: 14, - 30: 14 - } : { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 8, - 11: 8, - 12: 8, - 13: 12, - 14: 12, - 15: 14, - 16: 14, - 17: 14, - 18: 14, - 19: 14, - 20: 14, - 21: 14, - 22: 14, - 23: 14, - 24: 14, - 25: 14, - 26: 14, - 27: 14, - 28: 14, - 29: 14, - 30: 14 - })[t] - } - , - a.prototype.YE = function (t) { - var i = this; - return t(null, { - GW: "worker", - cb: function (t) { - i.dynamicTextVerticeLoadedByTile(t) - } - }), - !0 - } - , - a.prototype.destroy = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.destroy() - }), - this.ua.destroy(), - this.sa = [], - this.la = [], - this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), - delete this.mapStyle), - this.R_ && this.R_.destroy && (this.R_.destroy(), - delete this.R_) - } - , - a.prototype.reload = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.reload() - }), - this.sa = [], - this.la = [] - } - , - a.prototype.Aa = function (t) { - var i; - t.zo && (i = this.ua.getTile(t.zo)) && (i.rO({ - Ta: !0 - }, t.tag), - i.xa({ - Ta: !0 - }, t.tag), - i.JE({ - Ta: !0 - }, t.tag)) - } - , - a.prototype.setTileCacheSize = function (t) { - t = t || (_.Support.$e ? 50 : 200), - this.ua.Xo(t) - } - , - a.prototype.UH = function (t) { - this.VH = t - } - , - a.prototype.dynamicTextVerticeLoaded = function (t) { - console.log("errorr") - } - , - a.prototype.dynamicTextVerticeLoadedByTile = function (t) { - for (var i = 0, n = t.data; i < n.length; i++) { - var s = n[i]; - this.dynamicTextVerticeLoaded({ - data: s.data, - tag: s.tag, - XE: s.XE - }) - } - } - , - a.prototype.Ia = function () { - this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) - } - , - a.prototype.zD = function (t, i, n, s, e, h, r) { - void 0 === h && (h = "road,building,region"); - var a = {} - , o = ((o = this.cP()) && (a = o.getState().vS), - a = _.Ln(_.Ln({}, a), { - buildingColor: _.Ln({}, s.getBuildingColor()) - }), - { - zoom: i.zoom, - optimalZoom: i.optimalZoom, - projectionId: i.projectionId, - mS: a, - viewMode: i.viewMode, - showBuildingBlock: this.map.yS(), - ZL: i.zoom, - hH: h - }); - this.QH._B(t, o, r) - } - , - a.prototype.cP = function () { - for (var t, i = this.map.getLayers(), n = 0; n < i.length; n++) - if ("AMap.Buildings" === (s = i[n]).CLASS_NAME && !s.getState().u$) { - t = s; - break - } - if (!t) - for (var s, n = 0; n < i.length; n++) - if ("AMap.Buildings" === (s = i[n]).CLASS_NAME) { - t = s; - break - } - return t - } - , - a.prototype.ma = function (t, i) { - var n, s = new RegExp(/\{(\w|\,)+\}/g); - return s.test(this._tileUrl) ? (n = this._tileUrl.match(s)[0].replace(/[\{|\}]/g, "").split(","), - this._tileUrl.replace(s, n[(t + i) % 4])) : this._tileUrl - } - , - a.prototype.AD = function () { - var t = new RegExp(/\{(\w|\,)+\}/g) - , i = this._tileUrl.match(t)[0].replace(/[\{|\}]/g, "").split(",") - , n = i.length - , t = this._tileUrl.replace(t, i[this.$D % n]); - return this.$D = (this.$D + 1) % n, - t - } - , - a.prototype.ha = function (t, i, n) { - void 0 === n && (n = !1); - var s = [t[0], t[3]] - , t = [t[2], t[1]] - , s = this.Ga(s, i) - , t = this.Ga(t, i) - , e = s[0] - , h = s[1] - , r = t[0] - , o = t[1]; - if (n) - return { - ja: e, - Fa: h, - Oa: r, - Ea: o, - z: i - }; - this.Pa = { - ja: e, - Fa: h, - Oa: r, - Ea: o, - z: i - }; - for (var a = [], u = e; u <= r; u += 1) - for (var f = h; f <= o; f += 1) - a.push(new _.ca(i, u, f)); - return this.Da(a), - a - } - , - a.prototype.da = function (t, i, n, s) { - var e = [3, 6, 8, 10, 12, 14] - , h = this.ra(t.optimalZoom); - if (this.Za) - for (var r = Math.min(14, h + 3), o = h + 1; n.length && o <= r; o += 1) - if (-1 !== e.indexOf(o)) { - for (var a = o - h, u = [], f = [], c = n.length - 1; 0 <= c; --c) - for (var l = n[c].x << a, d = n[c].y << a, v = 1 << a; 0 <= v; --v) - for (var p = 1 << a; 0 <= p; --p) { - var m = new _.ca(o, this.fa(l + v, o), d + p) - , y = new _.ca(o, l + v, d + p); - ((M = this.ua.getTile(m, !0)) && M.status === _.TileState.LOADED ? f : u).push(y) - } - f.length && i.push.apply(i, f), - n = u - } - if (this.qa) - for (var b = this.xt[0], o = h - 1; n.length && b <= o; --o) - if (-1 !== e.indexOf(o)) { - for (var f = [], u = [], g = {}, c = n.length - 1; 0 <= c; --c) { - var M, k = n[c], a = o, w = k.z - a, v = k.x >> w, p = k.y >> w; - g[k = (m = new _.ca(a, v, p)).key] || (w = new _.ca(a, this.fa(v, a), p), - y = new _.ca(a, v, p), - M = this.ua.getTile(w, !0), - g[k] = !0, - (M && M.status === _.TileState.LOADED ? f : u).push(y)) - } - f.length && i.push.apply(i, f), - n = u - } - return i - } - , - a.prototype.Da = function (t) { - var e, h, r; - t.length && (e = this.Pa.z, - h = (this.Pa.ja + this.Pa.Oa) / 2, - r = (this.Pa.Fa + this.Pa.Ea) / 2, - t.sort(function (t, i) { - var n = (t.x << e - t.z) - h - , t = (t.y << e - t.z) - r - , s = (i.x << e - i.z) - h; - return n * n + t * t <= s * s + (i = (i.y << e - i.z) - r) * i ? -1 : 1 - })) - } - , - a.prototype.Ga = function (t, i) { - var n = 180 / (i = Math.pow(2, i)); - return [Math.floor(t[0] / (360 / i)) + i / 2, i / 2 - Math.ceil(t[1] / n)] - } - , - a.prototype.fa = function (t, i) { - for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) - t = n <= t ? t - n : t < 0 ? n + t : t; - return t - } - , - a.prototype.sD = function () { - var e, h, r = this; - this.map.bZ.dynamic.get("_preloadNebulaIcons") || (this.map.bZ.dynamic.set("_preloadNebulaIcons", !0), - e = this.hD, - (h = this.z_).loadImages(e, { - type: "icon", - imageBitmap: _.Support.imageBitmap, - cb: function () { - for (var t = [], i = 0; i < e.length; i++) { - var n = e[i] - , s = h.getImage(n); - t.push({ - img: s.img, - name: n, - hv: i, - width: s.width, - height: s.height - }) - } - r.map.so.sv(t) - } - })) - } - , - a.prototype.PE = function (t, i) { - for (var n = 0, s = t; n < s.length; n++) { - var e = s[n].split(",").slice(0, 3).join(","); - (e = this.ua.xf(e)) && (e.region = i) - } - } - , - a.prototype.UE = function (t, i) { - void 0 === t && (t = []); - var n = []; - if (10 <= i) { - for (var s = 0, e = t; s < e.length; s++) { - var h = e[s]; - "china" !== h.region && "oversea" !== h.region || n.push(h) - } - return n - } - return t - } - , - a.prototype.jE = function (t) { - for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { - var e = s[n].data; - if (i) - for (var h = 0, r = e; h < r.length; h++) { - var o = r[h]; - if (!(i = i && !!o.Ta)) - break - } - } - return i - } - , - a); - function a(t, i, n, s) { - var a = Ot.call(this, t, i, n, s) || this - , i = (a.xt = _.zoomRange, - a.sa = [], - a.la = [], - a.qa = !0, - a.Za = !0, - a.a_ = !1, - a.$D = 0, - a.hD = [AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-biz-big.png"], - a.VH = "", - a.wH = function (t) { - !a.map.yH || parseInt(t.key.split(",")[0], 10) < 10 || a.map.yH.kH(t.key) - } - , - a.Xa = t.tileSize, - a._tileUrl = t.tileUrl, - a.tG = null, - _.Support.$e ? 30 : 200); - return a.ua = new zt(i), - a.NE = new Lt(i), - window.xZ = a.ua, - n.gn.Ha({ - scale: Et, - showLabel: n.showLabel, - DD: -1 !== location.search.indexOf("forceAll") - }), - a.R_ = n.R_, - a.z_ = n.z_, - n.gn.Ja(AMap.getConfig().protocol), - a.mapStyle = n.mapStyle, - a.mapStyle.pn(function (t) { - n && n.gn && n.gn.Ka({ - value: t, - TY: "fast" === a.map.bZ.MZ.drawMode - }) - }), - a.Ia(), - a.sD(), - a.ua.on("delete", a.wH), - a.QH = new It(function (t, r, i, o) { - var n = a.AD() - , s = a.map.bZ.dynamic.get("firstLabelDataAllLoaded") || !1; - return !o || "outsea" !== o && "a00" !== o || (n = n.replace("/nebula/", "/oversea/")), - !s && _.Support.wasm && (n = n.replace("/v3", "/v2")), - new _.vH(a.map.gn.va({ - url: n, - zoom: i.zoom, - optimalZoom: i.optimalZoom, - projectionId: i.projectionId, - mS: i.mS, - viewMode: i.viewMode, - showBuildingBlock: i.showBuildingBlock, - ya: t, - ZL: i.zoom, - hH: i.hH, - kZ: s - }, function (t) { - a.QH.CB(r); - for (var i = 0, n = t; i < n.length; i++) { - var s, e = n[i], h = e && a.ua.getTile(e.zo); - h && (delete h.request, - o && "outsea" === o ? h.JE(e.ba, e.tag) : h.xa(e.ba, e.tag), - a.map.Mv.t0(h.zo), - h.status = _.TileState.LOADED, - e = _.wa.ga(h.zo.x, h.zo.y, h.zo.z, "EPSG:3857"), - s = _.lcs.getLocalByCoord([e[0], e[1]]), - h.localCoord = s, - h.Ro = e, - a.map.mm) && h.LY(a.map.mm.context) - } - a.map.setNeedUpdate(!0) - })) - } - , function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - (s = a.ua.xf(s.slice(0, -2))) && s.status !== _.TileState.LOADED && a.ua.ea(s) - } - } - , "fast" === n.bZ.MZ.drawMode ? 1 : 5), - "fast" === n.bZ.MZ.drawMode && a.map.bZ.dynamic.subscribe("firstPaint", function () { - a.QH.Uo(5) - }, a, !0), - a - } - function u() { } - u.prototype.Qa = function (t) { - for (var i = this.createEmpty(), n = 0, s = t.length; n < s; n += 1) - this.extendCoordinate(i, t[n]); - return i - } - , - u.prototype.ns = function (t, i, n) { - var s = Math.min.apply(null, t) - , t = Math.max.apply(null, t) - , e = Math.min.apply(null, i) - , i = Math.max.apply(null, i); - return this.os(s, t, e, i, n) - } - , - u.prototype.buffer = function (t, i) { - t[0] -= i, - t[1] -= i, - t[2] += i, - t[3] += i - } - , - u.prototype.clone = function (t) { - return t.slice() - } - , - u.prototype.ss = function (t, i) { - return t[0] <= i[0] && i[0] <= t[2] && t[1] <= i[1] && i[1] <= t[3] - } - , - u.prototype.rs = function (t, i) { - return t[0] <= i[0] && i[2] <= t[2] && t[1] <= i[1] && i[3] <= t[3] - } - , - u.prototype.createEmpty = function () { - return [1 / 0, 1 / 0, -1 / 0, -1 / 0] - } - , - u.prototype.os = function (t, i, n, s, e) { - return void 0 !== e ? (e[0] = t, - e[2] = i, - e[1] = n, - e[3] = s, - e) : [t, n, i, s] - } - , - u.prototype.empty = function (t) { - return t[0] = t[1] = 1 / 0, - t[2] = t[3] = -1 / 0, - t - } - , - u.prototype.equals = function (t, i) { - return t[0] === i[0] && t[2] === i[2] && t[1] === i[1] && t[3] === i[3] - } - , - u.prototype.extend = function (t, i) { - i[0] < t[0] && (t[0] = i[0]), - i[2] > t[2] && (t[2] = i[2]), - i[1] < t[1] && (t[1] = i[1]), - i[3] > t[3] && (t[3] = i[3]) - } - , - u.prototype.extendCoordinate = function (t, i) { - +i[0] < t[0] && (t[0] = i[0]), - +i[0] > t[2] && (t[2] = i[0]), - +i[1] < t[1] && (t[1] = i[1]), - +i[1] > t[3] && (t[3] = i[1]) - } - , - u.prototype.hs = function (t) { - return [t[0], t[1]] - } - , - u.prototype.ls = function (t) { - return [t[2], t[1]] - } - , - u.prototype.getCenter = function (t) { - return [(t[0] + t[2]) / 2, (t[1] + t[3]) / 2] - } - , - u.prototype.us = function (t, i, n, s, e) { - for (var h, r, o = i * s[0] / 2, i = i * s[1] / 2, a = Math.cos(n), u = Math.sin(n), f = [-o, -o, o, o], c = [-i, i, -i, i], l = 0; l < 4; l += 1) - h = f[l], - r = c[l], - f[l] = t[0] + h * a - r * u, - c[l] = t[1] + h * u + r * a; - return this.ns(f, c, e) - } - , - u.prototype.getHeight = function (t) { - return t[3] - t[1] - } - , - u.prototype.getSize = function (t) { - return [t[2] - t[0], t[3] - t[1]] - } - , - u.prototype.cs = function (t) { - return [t[0], t[3]] - } - , - u.prototype.fs = function (t) { - return [t[2], t[3]] - } - , - u.prototype.getWidth = function (t) { - return t[2] - t[0] - } - , - u.prototype.intersects = function (t, i) { - return t[0] <= i[2] && t[2] >= i[0] && t[1] <= i[3] && t[3] >= i[1] - } - , - u.prototype.isEmpty = function (t) { - return t[2] < t[0] || t[3] < t[1] - } - , - u.prototype.normalize = function (t, i) { - return [(i[0] - t[0]) / (t[2] - t[0]), (i[1] - t[1]) / (t[3] - t[1])] - } - , - u.prototype.ps = function (t, i) { - var n = (t[2] - t[0]) / 2 * (i - 1) - , i = (t[3] - t[1]) / 2 * (i - 1); - t[0] -= n, - t[2] += n, - t[1] -= i, - t[3] += i - } - , - u.prototype.touches = function (t, i) { - return this.intersects(t, i) && (t[0] === i[2] || t[2] === i[0] || t[1] === i[3] || t[3] === i[1]) - } - , - u.prototype.transform = function (t, i, n) { - return i(t = [t[0], t[1], t[0], t[3], t[2], t[1], t[2], t[3]], t, 2), - this.ns([t[0], t[2], t[4], t[6]], [t[1], t[3], t[5], t[7]], n) - } - ; - var Rt = new u - , l = (f.from = function (t) { - for (var i = 1 / 0, n = 1 / 0, s = -1 / 0, e = -1 / 0, h = 0, r = t; h < r.length; h++) - var o = r[h] - , i = Math.min(i, o.southWest.KL) - , n = Math.min(n, o.southWest.kT) - , s = Math.max(s, o.northEast.KL) - , e = Math.max(e, o.northEast.kT); - return new f(new _.LngLat(i, n), new _.LngLat(s, e)) - } - , - f.xS = function (t) { - if (t) - return t = _.jsonLngLatData(t), - new f(Rt.Qa(t)) - } - , - f.bS = function (t) { - if (t && t.length) { - for (var i, n = 0, s = _.jsonLngLatData(t); n < s.length; n++) { - var e, h = s[n]; - i ? (e = f.ds(h)) && i.union(e) : i = f.xS(h) - } - return i - } - } - , - f.ds = function (t) { - if (t) - return t = _.jsonLngLatData(t), - _.ys(t) ? f.xS(t) : f.xS(t[0]) - } - , - f.ms = function (t) { - if (t && t.length) { - for (var i, n = 0, s = _.jsonLngLatData(t); n < s.length; n++) { - var e, h = s[n]; - i ? (e = f.ds(h)) && i.union(e) : i = f.ds(h) - } - return i - } - } - , - f.prototype.getSouthWest = function () { - return this.southWest - } - , - f.prototype.getNorthEast = function () { - return this.northEast - } - , - f.prototype.getNorthWest = function () { - return new _.LngLat(this.southWest.KL, this.northEast.kT, !0) - } - , - f.prototype.getSouthEast = function () { - return new _.LngLat(this.northEast.KL, this.southWest.kT, !0) - } - , - f.prototype.contains = function (t) { - var i, n, s = this.southWest, e = this.northEast; - return !_.xs(t) && (t = _.parseLngLatData(t), - i = s.KL, - (n = e.KL) < i && (n += 360), - t.KL >= i) && t.kT >= s.kT && t.KL <= n && t.kT <= e.kT - } - , - f.prototype.intersects = function (t) { - var i = this.southWest - , n = this.northEast - , s = t.southWest - , e = (t = t.northEast).kT >= i.kT && s.kT <= n.kT - , t = t.KL >= i.KL && s.KL <= n.KL; - return e && t - } - , - f.prototype.getCenter = function () { - var t = this.southWest.KL > this.northEast.KL ? (this.southWest.KL + this.northEast.KL + 360) / 2 % 360 : (this.southWest.KL + this.northEast.KL) / 2 - , i = (this.southWest.kT + this.northEast.kT) / 2; - return new _.LngLat(t, i) - } - , - f.prototype.extend = function (t) { - return this.southWest.setLng(Math.min(this.southWest.KL, t.KL)), - this.southWest.setLat(Math.min(this.southWest.kT, t.kT)), - this.northEast.setLng(Math.max(this.northEast.KL, t.KL)), - this.northEast.setLat(Math.max(this.northEast.kT, t.kT)), - this - } - , - f.prototype.union = function (t) { - return this.extend(t.southWest).extend(t.northEast) - } - , - f.prototype.toString = function () { - return this.southWest.toString() + ";" + this.northEast.toString() - } - , - f.prototype.toJSON = function () { - return [this.southWest.lng, this.southWest.lat, this.northEast.lng, this.northEast.lat] - } - , - f.prototype.getWidth = function () { - return Math.abs(this.northEast.lng - this.southWest.lng) - } - , - f.prototype.getHeight = function () { - return Math.abs(this.southWest.lat - this.northEast.lat) - } - , - f.prototype.clone = function () { - return f.from([this]) - } - , - f); - function f() { - this.className = "AMap.Bounds"; - var i, n, s, e, h, r = "undefined" != typeof Float64Array; - if (1 === arguments.length && (arguments[0] instanceof Array || r && arguments[0] instanceof Float64Array)) - e = new _.LngLat(arguments[0][0], arguments[0][1], !0), - h = new _.LngLat(arguments[0][2], arguments[0][3], !0); - else if (2 === arguments.length) - e = _.parseLngLatData(arguments[0]), - h = _.parseLngLatData(arguments[1]); - else if (4 === arguments.length) - e = new _.LngLat(arguments[0], arguments[1]), - h = new _.LngLat(arguments[2], arguments[3]); - else { - if (0 !== arguments.length) - throw Error("Invalid Object: Bounds(" + arguments + ")"); - e = new _.LngLat(-180, -90), - h = new _.LngLat(180, 90) - } - (e.KL > h.KL || e.kT > h.kT) && (r = Math.max(e.KL, h.KL), - i = Math.min(e.KL, h.KL), - n = Math.max(e.kT, h.kT), - s = Math.min(e.kT, h.kT), - e = new _.LngLat(i, s), - h = new _.LngLat(r, n)), - this.southWest = e, - this.northEast = h - } - Pt = s, - _.Ei(Bt, Pt), - Bt.prototype.loadData = function (t, i, n) { - return this.ze = i, - !(this.Oo && !this.io || !this.map.isDOMMode() && !i || (t = this.c0(t, i, n), - this.io ? t(this.io, "canvas") : ((i = new Image).crossOrigin = "", - i.onload = t, - i.src = this.gs.getImageUrl(), - this.Rs = i), - 0)) - } - , - Bt.prototype.reLoadImgage = function (t) { - var s = this; - t && this.Rs && ((t = new Image).crossOrigin = "", - t.onload = function (t, i) { - var n; - "image" === (i = void 0 === i ? "image" : i) ? n = t.target : "canvas" === i && (n = t), - s._s && s._s.update(n), - s.Fo(!0) - } - , - t.src = this.gs.getImageUrl(), - this.Rs = t) - } - , - Bt.prototype.c0 = function (t, s, e) { - var h = this; - return function (t, i) { - var n; - void 0 === i && (i = "image"), - s && (n = void 0, - "image" === i ? n = t.target : "canvas" === i && (n = t), - h._s ? h._s.update(n) : (h._s = s.createTexture(n, { - Zi: !0 - }), - h._s.bind(s.gl.CLAMP_TO_EDGE, s.gl.LINEAR, s.gl.LINEAR)), - h.Fo(!0)), - e() - } - } - , - Bt.prototype.getData = function (t) { - if (this.Oo && this._s) { - (i = this.gs.getBounds()) instanceof l && (i = i.toJSON()); - var n = _.lcs.getLocalByCoord([t.centerCoord[0], t.centerCoord[1]]) - , e = (s = _.ProjectionManager.getProjection(t.projectionId)).project(i[0], i[1]) - , s = s.project(i[2], i[3]) - , h = [0, 0, 0, 0]; - if (t.optimalZoom >= _.Ra) { - for (var i = _.lcs.getLocalByCoord([e[0], e[1]]), t = _.lcs.getLocalByCoord([s[0], s[1]]), r = _.lcs.getSize(), h = [i.x - n.x, i.y - n.y, t.x - n.x, t.y - n.y], o = 0; o < h.length; o++) - 0 !== h[o] && (h[o] *= r[0]); - h = [h[0] - i.center[0], h[1] - i.center[1], h[2] - t.center[0], h[3] - t.center[1]] - } - return this.ze && (this.ks = this.ze.fe(new Float32Array([e[0] + h[0], e[1] + h[1], 0, 1, s[0] + h[2], e[1] + h[1], 1, 1, e[0] + h[0], s[1] + h[3], 0, 0, s[0] + h[2], e[1] + h[1], 1, 1, s[0] + h[2], s[1] + h[3], 1, 0, e[0] + h[0], s[1] + h[3], 0, 0]), 16)), - { - Ro: this.ws, - image: this.Rs, - texture: this._s, - zs: this.ks, - Sa: [0, 0] - } - } - } - , - Bt.prototype.destroy = function () { - this.Rs && delete this.Rs, - this._s && this._s.destroy && (this._s.destroy(), - delete this._s), - this.ks && delete this.ks, - this.gs - } - ; - var Pt, jt = Bt; - function Bt(t, i, n, s) { - return (t = Pt.call(this, t, i, n, s) || this).gs = s, - t.io = s.canvas, - t - } - Wt = s, - _.Ei(Gt, Wt), - Gt.prototype.add = function (t, i, n) { - void 0 === t && (t = {}), - void 0 === i && (i = {}), - Object.keys(t).length && (this.Ls = t, - this.HB = !0, - this.OB = i, - n) && n() - } - , - Gt.prototype.remove = function (t, i, n) { - void 0 === i && (i = {}), - this.Ls = t = void 0 === t ? {} : t, - this.HB = !0, - this.OB = i, - n && n() - } - , - Gt.prototype.update = function (t, i) { - void 0 === t && (t = {}), - this.HB = !0, - this.OB = t, - i && i() - } - , - Gt.prototype.clear = function () { - this.Ls = {}, - this.Ts = [], - this.gS = null - } - , - Gt.prototype.getData = function () { - return { - other: this.gS - } - } - , - Gt.prototype.Ds = function (t) { - return this.Ls[t] || null - } - , - Gt.prototype.zL = function (t) { - return this.CL && this.CL.zL(t) - } - , - Gt.prototype.destroy = function () { - this.R_ && this.R_.destroy && (this.R_.destroy(), - delete this.R_), - this.z_ && this.z_.destory && (this.z_.destory(), - delete this.z_) - } - , - Gt.prototype.loadData = function (t, i, n) { - var s = this; - return 0 === Object.keys(this.Ls).length && this.Fo(!0), - this.HB && (this.HB = !1, - this.As(this.OB, function () { - s.Fo(!0), - s._map.bZ.dynamic.set("firstLabelLayerDataAllLoaded", !0), - n() - })), - !0 - } - , - Gt.prototype.As = function (i, n) { - var t, s, e, h = this, r = (void 0 === i && (i = {}), - this.R_), o = this.z_, a = this.Ls; - for (t in this.Ts = [], - a) - a.hasOwnProperty(t) && (s = a[t], - s = this.Ps(s), - this.Ts.push(s)); - this.Ts.length ? (e = this.Ts[0].data.position, - this.Os(e), - o.loadImages(Object.keys(this.Fs), { - cb: function () { - var t; - r && "SDFManagerBase" !== r.CLASS_NAME ? (t = Object.keys(h.Es), - r.getData(t, function (t) { - h.qL(i, n) - })) : h.qL(i, n) - } - })) : (this.clear(), - n()) - } - , - Gt.prototype.qL = function (t, i) { - void 0 === t && (t = {}); - var n = this.R_ - , s = this.z_ - , n = this.CL = new _.eG({ - R_: n, - z_: s - }) - , s = this.Us - , e = { - from: "labelsLayer", - zoom: this._map.getView().getOptions().zoom, - center: s.center - } - , t = (_.assign(e, t), - n.Ns(this.Ts, e)); - this._map && this._map.isDOMMode() ? this.gS = t : this.gS = new _.La(null, t), - this.gS.zo = s, - i && i(t) - } - , - Gt.prototype.Ps = function (t) { - var i, n, s, e, h, r, o, a, u, f, c, l, d, v, p, m, y, b; - if (!t || "AMap.LabelMarker" === t.type) - return i = this._map.getProjection(), - this.AL = {}, - f = t.getOptions(), - (n = t._position) ? (s = [_.tc.Mp, _.tc.Rp], - e = void 0 === (e = f.zooms) ? s : e, - h = f.opacity, - r = f.rank, - v = f.icon, - o = f.text, - a = f.zIndex, - u = f.rotation, - f = void 0 === (f = f.visible) || f, - c = _.Bs(n) ? n.toJSON() : n, - l = o && o.content || "", - d = o && o.style, - v && v.image && (this.Fs[v.image] = 1), - o && o.content && this.Ws(o.content), - v = v && v.image ? [{ - type: "image", - image: v.image || "", - size: v.size, - clipOrigin: v.clipOrigin, - clipSize: v.clipSize, - offset: v.offset, - anchor: v.anchor, - retina: v.retina - }] : {}, - b = m = 0, - d && (m = !d.strokeWidth && d.strokeColor ? 1 : d.strokeWidth || 0, - p = !d.strokeColor && d.strokeWidth ? "#fcfcfc" : d.strokeColor, - b = !d.borderWidth && d.borderColor ? 1 : d.borderWidth || 0, - y = !d.borderColor && d.strokeWidth ? "#ccc" : d.borderColor), - p = d ? { - fontFamily: d.fontFamily, - fontSize: d.fontSize, - fontWeight: d.fontWeight, - fillColor: d.fillColor, - strokeColor: p, - strokeWidth: m, - borderColor: y, - borderWidth: b, - padding: this.Gs(d.padding || [3]), - backgroundColor: d.backgroundColor, - fold: d.fold - } : {}, - m = _.labelsUtil.Jj(e, o && o.zooms || s), - y = o && l ? { - txt: o.content || "", - direction: o.direction, - offset: o.offset, - zooms: m, - style: p - } : {}, - b = i.project(c[0], c[1]), - { - data: { - id: t.hS, - name: l, - txt: l, - position: [b[0], b[1], n[2] || 0], - positionType: "lnglat", - extData: { - id: t.hS - }, - rank: r, - rotation: u, - zooms: e - }, - opts: { - visible: f, - opacity: h, - zooms: e, - zIndex: a, - icon: v, - text: y, - rotation: u, - height: n[2] || 0 - } - }) : null - } - , - Gt.prototype.Ws = function (t) { - void 0 === t && (t = ""); - for (var i = 0; i < t.length; i++) - this.Es[t.substr(i, 1)] = 1 - } - , - Gt.prototype.Os = function (t) { - _.Bs(t) ? this.Us = _.lcs.getLocalByCoord([t.KL, t.kT]) : this.Us = _.lcs.getLocalByCoord(t) - } - , - Gt.prototype.Gs = function (t) { - if ("string" == typeof t && (t = (t = t.trim()).split(" ")), - "[object Array]" !== Object.prototype.toString.apply(t)) - return [3, 3, 3, 3]; - for (var i = t.length, n = 0; n < i; n++) { - var s = "string" == typeof (s = t[n]) ? parseInt(s, 10) : s; - isNaN(s) ? t[n] = 3 : t[n] = s - } - switch (i) { - case 0: - t = [3, 3, 3, 3]; - break; - case 1: - t = [t[0], t[0], t[0], t[0]]; - break; - case 2: - t = [t[0], t[1], t[0], t[1]]; - break; - case 3: - t = [t[0], t[1], t[2], t[1]] - } - return t - } - ; - var Wt, Ft = Gt; - function Gt(t, i, n, s) { - return (t = Wt.call(this, t, i, n, s) || this).Fs = {}, - t.Es = {}, - t.Ts = [], - t.HB = !1, - t.Ls = {}, - t.AL = {}, - i = n.R_, - s = n.z_, - t.R_ = i, - t.z_ = s, - t._map = n, - t - } - Nt = s, - _.Ei(Ut, Nt), - Ut.prototype.setTileUrl = function (t) { - this._tileUrl = t = void 0 === t ? "" : t - } - , - Ut.prototype.loadData = function (t, i, n, s) { - var r = this; - if (!i && "d" !== s.baseRender) - return !1; - this.aa = t, - this.ze = i, - this.Zs = [], - this.sa = []; - var e = t.projectionId - , h = [] - , o = t.boundsCoord - , a = t.optimalZoom - , u = t.optimalResolution - , f = this.ha(o, a, u) - , o = (this.ua.forEach(function (t) { - var i = t.zo - , n = !1; - if (t.status !== _.TileState.LOADED) { - for (var s = f.ja; s <= f.Oa; s += 1) - for (var e = f.Fa; e <= f.Ea; e += 1) { - var h = r.fa(s, f.z); - i.z === f.z && i.y === e && h === i.x && (n = !0) - } - n || (t.data.src = "", - r.ua.ea(t)) - } - }), - this.qs(t, this.Zs, h)); - return this.Ys(o, i, e, n), - this.da(t, this.sa, h, s), - this.sa = this.sa.concat(this.Zs), - 0 === o.length - } - , - Ut.prototype.getData = function () { - var t = this.aa - , i = [] - , n = this.map.qF(); - if (this.ua.QF(n), - 0 < this.sa.length) - for (var s = 0; s < this.sa.length; s++) { - for (var e = this.sa[s], h = [], r = 0; r < e.length; r++) { - var o, u, c, l, d, a, f, m = [0, 0], y = t.centerCoord, b = this.ua.getTile(e[r]), y = _.lcs.getLocalByCoord([y[0], y[1]]); - b || (o = this.ua.getTile(new _.ca(e[r].z, this.fa(e[r].x, e[r].z), e[r].y)), - b = new _.Vs(e[r]), - o && o.data.texture && (l = this.aa.projectionId, - c = _.ProjectionManager.getProjection(l).getResolution(b.zo.z), - u = (a = b.zo.x * this.Xa * c) + this.Xa * c, - c = (f = b.zo.y * this.Xa * c) + this.Xa * c, - d = _.V[l].Xs(a, f), - l = _.V[l].Xs(u, c), - a = d[0], - u = l[0], - f = l[1], - c = d[1], - b.Ro = [a, f, u, c], - l = _.lcs.getLocalByCoord([b.Ro[0], b.Ro[1]]), - this.aa.optimalZoom >= _.Ra && (b.Ro[0] -= l.center[0], - b.Ro[1] -= l.center[1], - b.Ro[2] -= l.center[0], - b.Ro[3] -= l.center[1]), - this.ze ? b.data = { - Hs: l, - texture: o.data.texture, - Js: o.data.Js, - zs: this.ze.fe(new Float32Array([b.Ro[0], b.Ro[1], 0, 1, b.Ro[2], b.Ro[1], 1, 1, b.Ro[0], b.Ro[3], 0, 0, b.Ro[2], b.Ro[1], 1, 1, b.Ro[2], b.Ro[3], 1, 0, b.Ro[0], b.Ro[3], 0, 0]), 16) - } : (b.data = o.data, - b.data.Hs = l), - b.data) && (b.status = _.TileState.LOADED)), - b.data && (t.optimalZoom >= _.Ra && b.data.Hs ? (d = _.lcs.getSize(), - a = b.data.Hs.x - y.x, - f = b.data.Hs.y - y.y, - 0 != a && (a *= d[0], - m[0] = a), - 0 != f && (f *= d[1], - m[1] = f), - t.optimalZoom >= _.Ra && _.za >= b.zo.z && (m[0] = -y.center[0], - m[1] = -y.center[1])) : t.optimalZoom < _.Ra && _.za < b.zo.z && (m[0] = y.center[0], - m[1] = y.center[1]), - b.data.Sa = m, - b.stamp = n, - h.push(b)) - } - i.push(h) - } - return { - tiles: i - } - } - , - Ut.prototype.setTileCacheSize = function (t) { - t = t || (_.Support.$e ? 50 : 200), - this.ua.Xo(t) - } - , - Ut.prototype.reload = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && t.request.cancel && (t.request.cancel(), - delete t.request) - }), - this.ua.destroy(), - this.sa = [], - this.pS = !1, - this.Fo(!1) - } - , - Ut.prototype.getTileCache = function () { - return this.ua - } - , - Ut.prototype.Da = function (t, i) { - var e, h, r; - t.length && (e = this.Pa.z, - h = (this.Pa.ja + this.Pa.Oa) / 2, - r = (this.Pa.Fa + this.Pa.Ea) / 2, - t.sort(function (t, i) { - var n = (t.x << e - t.z) - h - , t = (t.y << e - t.z) - r - , s = (i.x << e - i.z) - h; - return n * n + t * t <= s * s + (i = (i.y << e - i.z) - r) * i ? -1 : 1 - })) - } - , - Ut.prototype.ha = function (t, i, n) { - var s = this.aa.projectionId - , s = _.ProjectionManager.getProjection(s) - , s = (this.TB() && (n = s.getResolution(++i)), - i < this.Qs[0] ? (i = this.Qs[0], - n = s.getResolution(i)) : i > this.Qs[1] && (i = this.Qs[1], - n = s.getResolution(i)), - this.Xa) - , e = 20037508.342789244 - , h = t[0] + e - , r = -(t[3] - e) - , o = t[2] + e - , h = h / n - , r = r / n - , t = -(t[1] - e) / n; - return { - Oa: Math.floor(o / n / s), - Ea: Math.min((1 << i) - 1, Math.floor(t / s)), - ja: Math.floor(h / s), - Fa: Math.max(Math.floor(r / s), 0), - z: i - } - } - , - Ut.prototype.qs = function (t, i, n) { - for (var s = t.optimalZoom, e = t.optimalResolution, h = t.boundsCoord, r = _.ProjectionManager.getProjection(t.projectionId), h = this.ha(h, s, e), o = (this.TB() && s++, - s < this.Qs[0] ? s = this.Qs[0] : s > this.Qs[1] && (s = this.Qs[1]), - r.getResolution(s), - []), a = [], u = !0, f = h, c = f.ja; c <= f.Oa; c += 1) - for (var l = f.Fa; l <= f.Ea; l += 1) { - var d = new _.ca(s, this.fa(c, s), l) - , v = this.ua.getTile(d) - , p = (this.PF(d, t.projectionId), - new _.ca(s, c, l)); - (v ? v.status === _.TileState.LOADED || v.status === _.TileState.ERROR ? a : (u = !1, - n) : (u = !1, - o.push(d), - n)).push(p) - } - return a.length && i.push(a), - this.Pa = h, - this.Fo(u), - o - } - , - Ut.prototype.da = function (t, i, n, s) { - if (t = t.optimalZoom, - this.Za = "overlay" !== this.layer.type, - this.qa = "overlay" !== this.layer.type, - this.Za) - for (var e = Math.min(this.xt[1], t + 2), h = t + 1; n.length && h <= e; h += 1) { - for (var r = [], o = [], a = h, u = n.length - 1; 0 <= u; --u) - for (var f = n[u], c = f.x << 1, l = f.y << 1, d = 1; 0 <= d; --d) - for (var v = 1; 0 <= v; --v) { - var p = new _.ca(a, this.fa(c + d, a), l + v) - , m = this.ua.getTile(p) - , y = new _.ca(a, c + d, l + v); - (m && m.status === _.TileState.LOADED ? o : r).push(y) - } - o.length && i.push(o), - n = r - } - if (this.qa) - for (var b = this.xt[0], h = t - 1; n.length && b <= h; --h) { - for (var o = [], r = [], g = {}, u = n.length - 1; 0 <= u; --u) { - var M = n[u] - , a = h - , k = M.z - a - , d = M.x >> k - , v = M.y >> k; - g[M = (p = new _.ca(a, this.fa(d, a), v)).key] || (m = this.ua.getTile(p), - g[M] = !0, - (m && m.status === _.TileState.LOADED ? o : r).push(new _.ca(a, d, v))) - } - o.length && i.push(o), - n = r - } - return i - } - , - Ut.prototype.ma = function () { - var t, i = new RegExp(/\{(\w|\,)+\}/g); - return i.test(this._tileUrl) ? (t = this._tileUrl.match(i)[0].replace(/[\{|\}]/g, "").split(","), - this.tr++, - t && this.tr >= t.length && (this.tr = 0), - this._tileUrl.replace(i, t[this.tr])) : this._tileUrl - } - , - Ut.prototype.Ys = function (l, d, v, p) { - var m; - if (!(this.aa.optimalZoom < this.xt[0] || this.aa.optimalZoom > this.xt[1])) { - this.Da(l); - for (var y = this, i = 0, n = l.length; i < n; i += 1) - !function (t) { - var n = y.layer.getLayerConfig() - , t = l[t] - , s = y.ma().replace("[z]", t.z + "").replace("[x]", t.x + "").replace("[y]", t.y + "") - , r = new _.Vs(t) - , e = (y.ua.Qo(r), - n.getTileUrl && (s = n.getTileUrl(t.x, t.y, t.z)), - _.ProjectionManager.getProjection(v).getResolution(t.z)) - , h = t.x * y.Xa * e - , o = h + y.Xa * e - , a = t.y * y.Xa * e - , e = a + y.Xa * e - , u = _.V[v].Xs(h, a) - , f = _.V[v].Xs(o, e); - function c(t) { - var i, n, s, e, h; - d && ((t = d.createTexture(t.target || t, { - Zi: !0 - })).bind(d.gl.CLAMP_TO_EDGE, d.gl.LINEAR, d.gl.LINEAR), - i = _.lcs.getLocalByCoord([r.Ro[0], r.Ro[1]]), - r.zo.z > _.za && (r.Ro[0] -= i.center[0], - r.Ro[1] -= i.center[1], - r.Ro[2] -= i.center[0], - r.Ro[3] -= i.center[1]), - n = d.fe(new Float32Array([r.Ro[0], r.Ro[1], 0, 1, r.Ro[2], r.Ro[1], 1, 1, r.Ro[0], r.Ro[3], 0, 0, r.Ro[2], r.Ro[1], 1, 1, r.Ro[2], r.Ro[3], 1, 0, r.Ro[0], r.Ro[3], 0, 0]), 16), - (e = (s = document.createElement("canvas")).getContext("2d")) && (h = this.Xa, - s.height = s.width = h, - s.style.height = s.style.width = h + "px", - e.beginPath(), - e.moveTo(0, 0), - e.lineTo(h, 0), - e.lineTo(h, h), - e.lineTo(0, h), - e.lineTo(0, 0), - e.lineWidth = 1, - e.font = "20px Verdana", - e.fillStyle = "#ff0000", - e.strokeStyle = "#FF0000", - e.strokeRect(0, 0, h, h), - e.fillText("z: " + r.zo.z, 10, 30), - e.fillText("x: " + r.zo.x, 10, 60), - e.fillText("y: " + r.zo.y, 10, 90), - e.stroke()), - (h = d.createTexture(s, { - Zi: !0 - })).bind(d.gl.MIRRORED_REPEAT, d.gl.LINEAR, d.gl.LINEAR_MIPMAP_NEAREST), - r.data = { - texture: t, - zs: n, - Js: h, - Hs: i - }), - r.status = _.TileState.LOADED, - p() - } - h = u[0], - o = f[0], - a = f[1], - e = u[1], - r.Ro = [h, a, o, e], - r.status = _.TileState.LOADING, - "AMap.TileLayer.Flexible" === y.layer.CLASS_NAME || "AMap.TileLayer.WMTS" === y.layer.CLASS_NAME || "AMap.TileLayer.WMS" === y.layer.CLASS_NAME ? n.createTile(t.x, t.y, t.z, function (t) { - d ? c.call(this, t) : (r.data = t, - r.status = _.TileState.LOADED) - } - .bind(y), function () { - r.status = _.TileState.ERROR, - p() - }) : (f = new Image, - "w" === (null == (m = y.map) ? void 0 : m.baseRender) && (f.crossOrigin = "anonymous"), - f.onload = c.bind(y), - "d" === (null == (m = y.map) ? void 0 : m.baseRender) && 0 < s.indexOf("traffictile") && (s += "&hash=" + Math.random()), - f.src = s, - (r.data = f).addEventListener("dragstart", function (t) { - return t.preventDefault(), - !1 - })) - }(i) - } - } - , - Ut.prototype.fa = function (t, i) { - i = i || this.aa.optimalZoom; - for (var n = this.Xa / 256, s = (n < 1 ? n = 1 / n : n--, - 1 << (i += n)); t < 0 || s <= t;) - t = s <= t ? t - s : t < 0 ? s + t : t; - return t - } - , - Ut.prototype.PF = function (t, i) { - var n = _.ProjectionManager.getProjection(i).getResolution(t.z) - , s = (e = t.x * this.Xa * n) + this.Xa * n - , n = (t = t.y * this.Xa * n) + this.Xa * n - , t = _.V[i].Xs(e, t) - , i = _.V[i].Xs(s, n) - , e = t[0] - , s = i[0] - , n = (i[1], - t[1]); - return !(s < (i = this.map.getView().getStatus().boundsCoord)[0] && n < i[1] || e > i[2] && s > i[3]) - } - , - Ut.prototype.TB = function () { - var t = !1; - return this.layer.getState().detectRetina && (t = !0), - !("d" !== _.Support.baseRender || !_.Support.Ue || !_.Support.$e) || t - } - ; - var Nt, _t = Ut; - function Ut(t, i, n, s) { - return (i = Nt.call(this, t, i, n, s) || this).ua = new wt(_.Support.$e ? 200 : 400), - i.Xa = 256, - i.sa = [], - i.Zs = [], - i.tr = -1, - i.qa = !0, - i.Za = !0, - i.xt = t.zooms, - i.Qs = t.dataZooms, - i.Xa = t.tileSize, - i._tileUrl = t.tileUrl, - i - } - Yt = s, - _.Ei(Zt, Yt), - Zt.prototype.loadData = function (t, i, n) { - return this.ze = i, - this.Oo || (this.Fo(!0), - n()), - !0 - } - , - Zt.prototype.getData = function (t) { - if (this.ir = t.bounds, - this.Oo) { - var i = _.lcs.getLocalByCoord([t.centerCoord[0], t.centerCoord[1]]) - , s = (n = _.ProjectionManager.getProjection(t.projectionId)).project(this.ir[0], this.ir[1]) - , n = n.project(this.ir[2], this.ir[3]) - , e = [0, 0, 0, 0]; - if (t.optimalZoom >= _.Ra) { - for (var t = _.lcs.getLocalByCoord([s[0], s[1]]), s = _.lcs.getLocalByCoord([n[0], n[1]]), h = _.lcs.getSize(), e = [t.x - i.x, t.y - i.y, s.x - i.x, s.y - i.y], r = 0; r < e.length; r++) - 0 !== e[r] && (e[r] *= h[0]); - e = [e[0] - t.center[0], e[1] - t.center[1], e[2] - s.center[0], e[3] - s.center[1]] - } - return { - texture: this._s, - zs: this.ks, - Sa: [0, 0] - } - } - } - ; - var Yt, Xt = Zt; - function Zt(t, i, n, s) { - return (t = Yt.call(this, t, i, n, s) || this).ir = n.getView().getStatus().bounds, - t.io = s.canvas, - t - } - Jt = s, - _.Ei(Vt, Jt), - Vt.prototype.hasOverlay = function (t) { - return -1 < this._overlays.indexOf(t) - } - , - Vt.prototype.getAllOverlays = function () { - return this._overlays - } - , - Vt.prototype.add = function (t) { - this.hasOverlay(t) || _.er(t) && (this._overlays.push(t), - t.Zx(this.map), - t.init(), - t._bindEvents && t._bindEvents(), - (_.GB(t) || _.VB(t)) && this.YB.push(t), - t._afterSetMap && t._afterSetMap(this.map), - this.map.setNeedUpdate(!0)) - } - , - Vt.prototype.remove = function (t) { - this.hasOverlay(t) && _.er(t) && (t._beforeRemoveMap && t._beforeRemoveMap(), - this.ar(t), - this.map.setNeedUpdate(!0), - t.Zx(null)) - } - , - Vt.prototype.getData = function (t, i) { - this.nr(); - var n = 0 - , s = 0 - , e = this._overlays.length - , h = [] - , r = new l(t.bounds); - if (this.map.isDOMMode()) - return { - sr: this._overlays - }; - for (; n < 8 && s < e;) { - var o, a = this._overlays[s]; - s++, - a && (o = Date.now(), - a._needUpdate && (a.ZB(i), - this.map.setNeedUpdate(!0)), - n += Date.now() - o) - } - for (var u = 0, f = this._overlays; u < f.length; u++) { - var c = (a = f[u]).getBounds(); - a.visible && c && r.intersects(c) && h.push(a) - } - return { - sr: h - } - } - , - Vt.prototype.loadData = function () { - return !0 - } - , - Vt.prototype.destroy = function () { - this.map && this.map.off("zoomend", this.W_); - for (var t = 0, i = this._overlays.slice(0); t < i.length; t++) { - var n = i[t]; - this.remove(n), - n.destroy() - } - this._overlays = [] - } - , - Vt.prototype.rr = function (t) { - for (var i = t.lnglat, n = t.pixel, s = this._overlays.length - 1; 0 <= s; s--) { - var e = this._overlays[s]; - if (!e._opts.noSelect && e.visible) - if (_.sB(e) && n) { - if (e.containsWithPixel(n)) - return e - } else if (e.contains(i, t)) - return e - } - } - , - Vt.prototype.W_ = function () { - for (var t = 0, i = this.YB; t < i.length; t++) { - var n = i[t]; - n.W_ && n.W_() - } - } - , - Vt.prototype.nr = function () { - this._overlays.sort(function (t, i) { - return t._opts.zIndex - i._opts.zIndex - }) - } - , - Vt.prototype.ar = function (t) { - var i = this._overlays.indexOf(t); - -1 < i && this._overlays.splice(i, 1), - (_.GB(t) || _.VB(t)) && -1 < (i = this.YB.indexOf(t)) && this.YB.splice(i, 1) - } - ; - var Jt, qt, Ht = Vt; - function Vt(t, i, n, s) { - return (t = Jt.call(this, t, i, n, s) || this)._overlays = [], - t.YB = [], - t.Fo(!0), - t.W_ = t.W_.bind(t), - n.on("zoomend", t.W_), - t - } - function c(t, i, n, s) { - return (i = qt.call(this, t, i, n, s) || this).type = "vector", - i.Ya = !1, - i.Va = !1, - i.Xa = 256, - i.sa = [], - i.la = [], - i.xt = [2, 22], - i.qa = !0, - i.Za = !0, - i.a_ = !1, - i.Xa = t.tileSize, - i._tileUrl = t.tileUrl, - s = _.Support.$e ? 50 : 200, - i.ua = new wt(s), - i.NE = new Lt(s), - (i.map = n).gn.Ja(AMap.getConfig().protocol), - i - } - qt = s, - _.Ei(c, qt), - c.prototype.loadData = function (s, t, e, i) { - for (var h = this, n = (this.aa = s, - this.sa = [], - s.optimalResolution), r = s.boundsCoord, o = s.zoom, a = s.optimalZoom, u = this.ha(r, a, n, s), f = [], c = _.map(u, function (t) { - return t.key - }), l = [], d = 0, v = this.la; d < v.length; d++) { - var p = v[d]; - c.indexOf(p.key) < 0 && (b = this.ua.getTile(p)) && b.status !== _.TileState.LOADED && b.request && (b.request.cancel(), - delete b.request, - this.ua.ea(b)) - } - for (var m = [], y = ((r = i.getMapState()).panning, - r.zooming, - 0); y < u.length; y++) { - var b, g = u[y], M = new _.ca(g.z, this.fa(g.x, g.z), g.y), k = new _.ca(g.z, g.x, g.y); - (b = this.ua.getTile(M)) ? b.status === _.TileState.LOADED ? this.sa.push(k) : l.push(g) : ((k = new _.Sw(M)).nG(this.type), - k.status = _.TileState.LOADING, - this.ua.Jo(k), - m.push(M), - l.push(g)), - b && b.status === _.TileState.LOADED || f.push(g) - } - return this.da(s, this.sa, f, i), - this.la = l, - 0 === m.length || (_.map(m, function (t) { - var i, n = h.ua.getTile(t); - n && (i = h.AD(t.x, t.y, t.z), - h.bw(n, { - url: i, - zo: t, - zoom: o, - viewState: s - }, e)) - }), - 0 === m.length) - } - , - c.prototype.bw = function (t, i, s) { - var n, e = this, h = i.url, r = i.zo, o = i.zoom, i = i.viewState; - "AMap.MapboxVectorTileLayer" === this.layer.CLASS_NAME && (n = this.layer.cX && this.layer.cX()), - this.lX(t, { - url: h, - ya: r.key, - zoom: o, - optimalZoom: i.optimalZoom, - projectionId: i.projectionId, - tileCoord: r, - tileSize: this.Xa, - styles: n - }, function (t) { - var i, n = t && e.ua.getTile(t.zo); - n && (delete n.request, - n.status = _.TileState.LOADED, - n.localCoord = t.zS, - n.Ro = t.Ro, - n.stencil = t.stencil, - i = _.lcs.getLocalByCoord([n.Ro[0], n.Ro[1]]), - n.data = _.Ln(_.Ln({}, t), { - Hs: i - }), - s()) - }) - } - , - c.prototype.getData = function (t) { - var i = t.optimalResolution - , n = t.optimalZoom - , s = t.boundsCoord - , s = this.ha(s, n, i, t) - , i = this.aa.projectionId - , e = _.ProjectionManager.getProjection(i) - , h = [] - , r = this.map.qF(); - if (this.ua.QF(r), - this.sa.sort(function (t) { - return n === t.z + 1 ? 1 : -1 - }), - 0 < this.sa.length) - for (var o = 0; o < this.sa.length; o++) { - var u, a, f = this.sa[o], c = this.ua.getTile(f), l = [0, 0], d = t.centerCoord, d = _.lcs.getLocalByCoord([d[0], d[1]]); - !c && (a = this.fa(f.x, f.z), - a = this.ua.getTile(new _.ca(f.z, a, f.y))) && (c = new _.Sw(f), - u = e.getResolution(f.z), - f = f.x - a.zo.x, - l[0] += u * this.Xa * f, - c.Ro = a.Ro, - c.localCoord = a.localCoord, - c.data = a.data, - c.Sa = l, - c.status = a.status), - c && 10 < n && (n >= _.Ra && c.data.Hs ? (u = _.lcs.getSize(), - f = c.data.Hs.x - d.x, - a = c.data.Hs.y - d.y, - 0 != f && (f *= u[0], - l[0] = f), - 0 != a && (a *= u[1], - l[1] = a), - n >= _.Ra && _.za >= c.zo.z && (l[0] = -d.center[0], - l[1] = -d.center[1])) : n < _.Ra && _.za < c.zo.z && (l[0] = d.center[0], - l[1] = d.center[1])), - c && (c.Sa = l, - c.stamp = r, - h.push(c)) - } - return i = _.every(s, function (i) { - return _.some(h, function (t) { - return t.zo.key === i.key - }) - }), - this.Fo(i), - s = this.jE(h), - i && (this.a_ = !0, - this.map.bZ.dynamic.set("firstAllLoaded", !0)), - this.a_ && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), - { - s_: this.a_, - yZ: s, - fo: !!i, - tiles: h - } - } - , - c.prototype.destroy = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.destroy() - }), - this.ua.destroy(), - this.sa = [], - this.la = [] - } - , - c.prototype.forEachTileCache = function (t) { - this.ua.forEach(t) - } - , - c.prototype.reload = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request) - }), - this.ua.destroy(), - this.sa = [], - this.la = [] - } - , - c.prototype.setTileUrl = function (t) { - this._tileUrl = t || this._tileUrl - } - , - c.prototype.getTileCache = function () { - return this.ua - } - , - c.prototype.setTileCacheSize = function (t) { - t = t || (_.Support.$e ? 50 : 200), - this.ua.Xo(t) - } - , - c.prototype.AD = function (t, i, n) { - return this._tileUrl.replace("[x]", t.toString()).replace("[y]", i.toString()).replace("[z]", n.toString()).replace("{1234}", (Math.abs(t + i) % 4 + 1).toString()) - } - , - c.prototype.Da = function (t, i) { - var e, h, r; - t.length && (e = this.Pa.z, - h = (this.Pa.ja + this.Pa.Oa) / 2, - r = (this.Pa.Fa + this.Pa.Ea) / 2, - t.sort(function (t, i) { - var n = (t.x << e - t.z) - h - , t = (t.y << e - t.z) - r - , s = (i.x << e - i.z) - h; - return n * n + t * t <= s * s + (i = (i.y << e - i.z) - r) * i ? -1 : 1 - })) - } - , - c.prototype.ha = function (t, i, n, s) { - for (var e = this.layer.getSourceConfig().dataZooms, e = (i = +Math.max(Math.min(i, e[1]), e[0]), - n = _.ProjectionManager.getProjection(s.projectionId).getResolution(i), - this.Xa), s = 20037508.342789244, h = t[0] + s, r = -(t[3] - s), o = t[2] + s, h = h / n, r = r / n, t = -(t[1] - s) / n, a = Math.floor(o / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(h / e), f = Math.max(Math.floor(r / e), 0), c = (this.Pa = { - Oa: a, - Ea: u, - ja: s, - Fa: f, - z: i - }, - []), l = s; l <= a; l += 1) - for (var d = f; d <= u; d += 1) - c.push(new _.ca(i, l, d)); - return this.Da(c), - c - } - , - c.prototype.da = function (t, i, n, s) { - if (t = t.optimalZoom - 1, - this.Za = "overlay" !== this.layer.type, - this.qa = "overlay" !== this.layer.type, - this.Za) - for (var e = Math.min(this.xt[1] - 1, 2 + t), h = 1 + t; n.length && h <= e; h += 1) { - for (var r = [], o = [], a = h, u = n.length - 1; 0 <= u; --u) - for (var f = n[u], c = f.x << 1, l = f.y << 1, d = 1; 0 <= d; --d) - for (var v = 1; 0 <= v; --v) { - var p = new _.ca(a, this.fa(c + d, a), l + v) - , m = this.ua.getTile(p) - , y = new _.ca(a, c + d, l + v); - (m && m.status === _.TileState.LOADED ? o : r).push(y) - } - o.length && i.push.apply(i, o), - n = r - } - if (this.qa) - for (var b = this.xt[0] - 1, h = t - 1; n.length && b <= h; --h) { - for (var o = [], r = [], g = {}, u = n.length - 1; 0 <= u; --u) { - var M = n[u] - , a = h - , k = M.z - a - , d = M.x >> k - , v = M.y >> k; - g[M = (p = new _.ca(a, this.fa(d, a), v)).key] || (m = this.ua.getTile(p), - g[M] = !0, - (m && m.status === _.TileState.LOADED ? o : r).push(new _.ca(a, d, v))) - } - o.length && i.push.apply(i, o), - n = r - } - return i - } - , - c.prototype.fa = function (t, i) { - for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) - t = n <= t ? t - n : t < 0 ? n + t : t; - return t - } - , - c.prototype.vX = function (t, i) { - var n = [-180, -90] - , s = [180, 90] - , h = (e = _.ProjectionManager.getProjection("EPSG:3857")).project(256 * t + n[0], s[1] - 256 * i) - , e = e.project(256 * (t + 1) + n[0], s[1] - 256 * (i + 1)); - return [h[0], h[1], e[0], e[1]] - } - , - c.prototype.jE = function (t) { - for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { - var e = s[n].data; - if (i) - for (var h = 0, r = e; h < r.length; h++) { - var o = r[h]; - if (!(i = i && !!o.Ta)) - break - } - } - return i - } - , - Kt = Qt = c, - _.Ei(ti, Kt), - ti.prototype.ha = function (t, i, n, s) { - for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i, e[1]), e[0]) - 1, - n = _.ProjectionManager.getProjection(s.projectionId).getResolution(i), - this.Xa), s = 20037508.342789304, h = t[0] + s, r = -(t[3] - s), o = t[2] + s, h = h / n, r = r / n, t = -(t[1] - s) / n, a = Math.floor(o / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(h / e), f = Math.max(Math.floor(r / e), 0), c = (this.Pa = { - Oa: a, - Ea: u, - ja: s, - Fa: f, - z: i - }, - []), l = s; l <= a; l += 1) - for (var d = f; d <= u; d += 1) - c.push(new _.ca(i, l, d)); - return this.Da(c), - c - } - ; - var Kt, $t = ti; - function ti(t, i, n, s) { - return (t = Kt.call(this, t, i, n, s) || this).lX = t.map.gn.loadDistrictSourceTile.bind(t.map.gn), - t - } - ii = Qt, - _.Ei(si, ii), - si.prototype.reStyle = function (i, s) { - var e = this; - this.ua.forEach(function (n) { - var t; - n.status === _.TileState.LOADED ? (n.zo.z + 1 !== s && e.ua.ea(n), - t = _.Ln(_.Ln({}, n.data), { - dX: null, - Dc: null, - A_: null, - $c: null, - pX: null, - labels: null - }), - e.yX.mX(t, i, function (t, i) { - n.data.Oc = i.Oc, - n.data.Fc = i.Fc, - n.data.w0 = i.w0, - n.data.Uc = i.Uc, - n.data.dX = i.dX, - n.data.IX = i.IX, - n.data.labels = i.labels, - e.map.setNeedUpdate(!0) - })) : n.status === _.TileState.LOADING && (null != (t = n.request) && t.cancel(), - e.ua.ea(n)) - }) - } - , - si.prototype.ha = function (t, i, n, s) { - for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i - 1, e[1]), e[0]), - n = _.ProjectionManager.getProjection(s.projectionId).getResolution(i), - this.Xa), s = 20037508.342789244, h = t[0] + s, r = -(t[3] - s), o = t[2] + s, h = h / n, r = r / n, t = -(t[1] - s) / n, a = Math.floor(o / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(h / e), f = Math.max(Math.floor(r / e), 0), c = (this.Pa = { - Oa: a, - Ea: u, - ja: s, - Fa: f, - z: i - }, - []), l = s; l <= a; l += 1) - for (var d = f; d <= u; d += 1) - c.push(new _.ca(i, l, d)); - return this.Da(c), - c - } - ; - var ii, ni = si; - function si(t, i, n, s) { - return (t = ii.call(this, t, i, n, s) || this).yX = new _.bX, - t._tileUrl = s.getSourceConfig().tileUrl, - t.lX = t.map.gn.gX.bind(t.map.gn), - t - } - ei = s, - _.Ei(ri, ei), - ri.prototype.loadData = function (t, i, n) { - return this.ze = i, - this.Oo || (this.Fo(!0), - n()), - !0 - } - , - ri.prototype.getData = function (t) { - return this.ir = t.bounds, - { - Sa: [0, 0] - } - } - ; - var ei, hi = ri; - function ri(t, i, n, s) { - return (t = ei.call(this, t, i, n, s) || this).ir = n.getView().getStatus().bounds, - t.io = s.canvas, - t - } - oi = s, - _.Ei(ui, oi), - ui.prototype.loadData = function (t, i, n) { - return !0 - } - , - ui.prototype.getData = function (t) { - return !0 - } - , - ui.prototype.destroy = function () { - this.gs && this.gs.destroy && this.gs.destroy() - } - ; - var oi, ai = ui; - function ui(t, i, n, s) { - return (t = oi.call(this, t, i, n, s) || this).gs = s, - t - } - fi = s, - _.Ei(li, fi), - li.prototype.CS = function () { - this.AS = !1 - } - , - li.prototype.loadData = function (t, i, n) { - return !0 - } - , - li.prototype.getData = function (t) { - var i, h, e, r, n, o, a, u = this, s = this.gs.getState().path; - return this.AS || !s || (i = _.GeometryUtil.typePolygon(s), - h = { - type: "Polygon", - $S: new Array, - polygons: new Array, - BM: new Array, - LS: { - x: 0, - y: 0 - } - }, - i && "Polygon" === i ? (s[0][0] instanceof _.LngLat ? h.LS = _.lcs.getLocalByLnglat(s[0][0].toString()) : h.LS = _.lcs.getLocalByLnglat(s[0][0]), - e = (n = h.LS).x, - r = n.y, - _.forEach(s, function (t, i) { - var s; - 0 === i ? _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(e, r, t.x, t.y))[0] - , i = i[1]; - h.$S.push(t.Sa[0] + n, t.Sa[1] + i) - }) : (s = [], - _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(e, r, t.x, t.y))[0] - , i = i[1]; - s.push(t.Sa[0] + n, t.Sa[1] + i) - }), - h.BM.push(s)) - })) : i && "MultiPolygon" === i && (h.type = "MultiPolygon", - s[0][0][0] instanceof _.LngLat ? h.LS = _.lcs.getLocalByLnglat(s[0][0][0].toArray()) : h.LS = _.lcs.getLocalByLnglat(s[0][0][0]), - o = (n = h.LS).x, - a = n.y, - _.forEach(s, function (t) { - var e = [] - , n = []; - _.forEach(t, function (t, i) { - var s; - 0 === i ? _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(o, a, t.x, t.y))[0] - , i = i[1]; - e.push(t.Sa[0] + n, t.Sa[1] + i) - }) : (s = [], - _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(o, a, t.x, t.y))[0] - , i = i[1]; - s.push(t.Sa[0] + n, t.Sa[1] + i) - }), - n.push(s)) - }), - h.BM.push(n), - h.polygons.push(e) - })), - this.AS = this.zw(h), - this.AS) - } - , - li.prototype.zw = function (t) { - if (t.Oc = new _._w, - !t.Dc) { - t.Dc = new _.K_; - var i = [] - , n = []; - "Polygon" === t.type ? (i = [t.$S], - n = [t.BM]) : "MultiPolygon" === t.type && (i = t.polygons, - n = t.BM); - for (var s = 0; s < i.length; s++) { - for (var e = i[s], h = [], r = 0; r < n[s].length; r++) { - var o = n[s][r]; - h.push(e.length / 2), - e.push.apply(e, o) - } - var a = t.Dc.Nx(e, h); - 0 < a && t.Oc.add(99, 99, a, _.zoomRange[0], _.zoomRange[1]) - } - return t - } - } - , - li.prototype.DS = function (t, i, n, s) { - return n -= t, - t = s - i, - [n * (s = _.lcs.getSize())[0], t * s[1]] - } - ; - var fi, ci = li; - function li(t, i, n, s) { - return (t = fi.call(this, t, i, n, s) || this).gs = s, - t - } - di = Qt, - _.Ei(pi, di), - pi.prototype.YE = function (t) { - var i = this; - return t(null, { - GW: "worker", - cb: function (t) { - i.dynamicTextVerticeLoadedByTile(t) - } - }), - !0 - } - , - pi.prototype.dynamicTextVerticeLoadedByTile = function (t) { - for (var i = 0, n = t.data; i < n.length; i++) { - var s = n[i]; - this.dynamicTextVerticeLoaded({ - data: s.data, - tag: s.tag, - XE: s.XE - }) - } - } - , - pi.prototype.dynamicTextVerticeLoaded = function (t) { - var i = t.data - , t = t.XE; - if (i instanceof _.ca) - this.ua.getTile(i); - else { - var n = i[Object.keys(i)[0]]; - if ((n = this.ua.getTile(n.zo, !0)) && n.data) { - var s, e, h = {}; - for (s in i) - i.hasOwnProperty(s) && (e = i[s], - h[s] = new _.La(e.zo, e)); - n.data.labels = h, - n.data.XE = t, - n.data.Ta = !0, - this.Eo() - } - } - } - , - pi.prototype.Aa = function (t) { - t.zo && (t = this.ua.getTile(t.zo)) && (t.data.Ta = !0) - } - , - pi.prototype.loadData = function (s, t, e, i) { - var r = this - , n = (this.aa = s, - this.sa = [], - s.optimalResolution) - , h = s.boundsCoord - , o = s.zoom - , a = s.optimalZoom; - if (a < 9.8) - return !1; - for (var u = this.ha(h, a, n, s), f = [], c = _.map(u, function (t) { - return t.key - }), l = [], d = 0, v = this.la; d < v.length; d++) { - var p = v[d]; - c.indexOf(p.key) < 0 && (x = this.ua.getTile(p)) && x.status !== _.TileState.LOADED && x.request && (x.request.cancel(), - delete x.request, - this.ua.ea(x)) - } - for (var m, y, b, g = [], M = (h = i.getMapState()).panning, k = h.zooming, w = 0; w < u.length; w++) { - var x, A = u[w], z = new _.ca(A.z, this.fa(A.x, A.z), A.y), C = new _.ca(A.z, A.x, A.y); - !(x = this.ua.getTile(z)) && M && !k || (x ? x.status === _.TileState.LOADED ? this.sa.push(C) : l.push(A) : ((C = new _.Sw(z)).nG(this.type), - C.status = _.TileState.LOADING, - this.ua.Jo(C), - g.push(z), - l.push(A)), - x && x.status === _.TileState.LOADED) || f.push(A) - } - return this.da(s, this.sa, f, i), - this.la = l, - 0 !== g.length && (m = this.map.getMapboxStyle(), - y = [], - b = 256, - _.map(g, function (t) { - var i = t.x - , n = t.y - , s = t.z - , e = r.NE.getTile(t) - , h = null - , n = (e && e.boundsStatus ? h = e.boundsStatus.isInNebulaOversea : (e = r.aa.projectionId, - e = [_.V[e].Xs(i * b, n * b, s), _.V[e].Xs((i + 1) * b, n * b, s), _.V[e].Xs((i + 1) * b, (n + 1) * b, s), _.V[e].Xs(i * b, (n + 1) * b, s)], - h = r.rG(e, t.key), - (i = new _.pa(t)).boundsStatus = { - isInNebulaOversea: h - }, - r.NE.Jo(i)), - h || y.push(t), - r.NE.getTile(t)); - (s = r.ua.getTile(t)) && n && n.boundsStatus && (s.sG = n.boundsStatus) - }), - _.map(g = y, function (t) { - var i, n = r.ua.getTile(t); - n && (i = r.AD(t.x, t.y, t.z), - r.bw(n, { - url: i, - zo: t, - zoom: o, - viewState: s, - styles: m - }, e)) - }), - 0 === g.length) - } - , - pi.prototype.oG = function (t, i, n, s) { - void 0 === s && (s = "lnglat"); - var e = [-180, -90] - , h = [180, 90] - , r = _.ProjectionManager.getProjection("EPSG:3857"); - return "lnglat" === s ? [256 * t + e[0], h[1] - 256 * i, 256 * (t + 1) + e[0], h[1] - 256 * (i + 1)] : "EPSG:3857" === s ? (s = r.project(256 * t + e[0], h[1] - 256 * i), - r = r.project(256 * (t + 1) + e[0], h[1] - 256 * (i + 1)), - [s[0], s[1], r[0], r[1]]) : [0, 0, 0, 0] - } - , - pi.prototype.bw = function (t, i, s) { - var e = this - , n = i.url - , h = i.zo - , r = i.zoom - , o = i.viewState - , i = i.styles; - this.map.gn.aG(t, { - url: n, - ya: h.key, - zoom: r, - optimalZoom: o.optimalZoom, - projectionId: o.projectionId, - tileCoord: h, - tileSize: this.Xa, - styles: i - }, function (t) { - var i, n = t && e.ua.getTile(t.zo); - n && (delete n.request, - n.status = _.TileState.LOADED, - n.localCoord = t.zS, - n.Ro = t.Ro, - n.stencil = t.stencil, - i = _.lcs.getLocalByCoord([n.Ro[0], n.Ro[1]]), - n.data = _.Ln(_.Ln({}, t), { - Hs: i - }), - s()) - }) - } - , - pi.prototype.getData = function (t) { - var i = this - , n = t.optimalResolution - , s = t.boundsCoord - , e = t.optimalZoom; - if (e < 10) - return this.Fo(!0), - !1; - var s = this.ha(s, e, n, t) - , n = t.projectionId - , h = _.ProjectionManager.getProjection(n) - , r = [] - , o = this.map.qF(); - if (this.ua.QF(o), - this.sa.sort(function (t) { - return e === t.z + 1 ? 1 : -1 - }), - 0 < this.sa.length) - for (var a = 0; a < this.sa.length; a++) { - var f, u, c = this.sa[a], l = this.ua.getTile(c), d = [0, 0], v = t.centerCoord, v = _.lcs.getLocalByCoord([v[0], v[1]]); - l || (u = this.ua.getTile(new _.ca(c.z, this.fa(c.x, c.z), c.y))) && ((l = new _.Sw(c)).nG(this.type), - f = h.getResolution(c.z), - c = c.x - u.zo.x, - d[0] += f * this.Xa * c, - l.Ro = u.Ro, - l.localCoord = u.localCoord, - l.data = u.data, - l.Sa = d, - l.status = u.status), - l && (e >= _.Ra && l.data.Hs ? (f = _.lcs.getSize(), - c = l.data.Hs.x - v.x, - u = l.data.Hs.y - v.y, - 0 != c && (c *= f[0], - d[0] = c), - 0 != u && (u *= f[1], - d[1] = u), - d[0] = -v.center[0], - d[1] = -v.center[1]) : (d[0] = v.center[0], - d[1] = v.center[1])), - l && (l.Sa = d, - l.stamp = o, - r.push(l)) - } - return s = !(n = _.filter(s, function (t) { - return !(!(t = i.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea) - })).length || _.every(n, function (i) { - return _.some(r, function (t) { - return t.zo.key === i.key - }) - }), - n = this.jE(r), - s && (this.a_ = !0, - this.map.bZ.dynamic.set("firstAllLoaded", !0)), - this.a_ && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), - s && this.Fo(!0), - { - s_: this.a_, - fo: !!s, - yZ: n, - tiles: r - } - } - , - pi.prototype.Ia = function () { - this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) - } - , - pi.prototype.ha = function (t, i, n, s) { - for (var e = this.layer.getSourceConfig().dataZooms, e = (i = Math.max(Math.min(i, e[1]), e[0]) - 1, - n = _.ProjectionManager.getProjection(s.projectionId).getResolution(i), - this.Xa), s = 20037508.342789244, h = t[0] + s, r = -(t[3] - s), o = t[2] + s, h = h / n, r = r / n, t = -(t[1] - s) / n, a = Math.floor(o / n / e), u = Math.min((1 << i) - 1, Math.floor(t / e)), s = Math.floor(h / e), f = Math.max(Math.floor(r / e), 0), c = (this.Pa = { - Oa: a, - Ea: u, - ja: s, - Fa: f, - z: i - }, - []), l = s; l <= a; l += 1) - for (var d = f; d <= u; d += 1) - c.push(new _.ca(i, l, d)); - return this.Da(c), - c - } - , - pi.prototype.jE = function (t) { - for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { - var e = s[n].data; - if (i) - for (var h = 0, r = e; h < r.length; h++) { - var o = r[h]; - if (!(i = i && !!o.Ta)) - break - } - } - return i - } - ; - var di, vi = pi; - function pi(t, i, n, s) { - return (t = di.call(this, t, i, n, s) || this).type = "mapbox", - t.hD = [AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-biz-big.png"], - t.Ia(), - t - } - var mi = { - ielt9: "ActiveXObject" in window && !document.addEventListener, - opts: { - callback: "callback", - type: "json", - charset: "utf-8" - }, - setOptions: function (t) { - this.opts = _.assign(this.opts, t) - }, - bv: function () { }, - gv: function () { - this.emit("error", { - info: "TIME_OUT_A" - }) - }, - JSONP: function (i, n, t) { - function s() { - window[e] = null, - h.onerror = null, - h.parentNode && h.parentNode.removeChild(h) - } - void 0 === t && (t = {}), - i = encodeURI(i); - var e = _.Util.getGuid("jsonp_", 6) + "_" - , h = document.createElement("script") - , r = (h.type = "text/javascript", - h.charset = "utf-8", - h.async = !0, - t = _.assign({}, this.opts, t), - h.onerror = function (t) { - s(), - n && n("error", { - url: i, - info: "Request Error" - }) - } - , - window[e] = function (t) { - s(), - n && n("complete", { - info: "ok", - url: i, - data: t - }) - } - , - "?") - , r = (-1 !== i.indexOf("?") && (r = "&"), - i + r + t.callback + "=" + e); - h.src = r, - (document.getElementsByTagName("body")[0] || document.getElementsByTagName("head")[0]).appendChild(h) - }, - Ajax: function (i, t, n) { - var s, e; - return void 0 === window.XMLHttpRequest && window.wv ? ((s = this._v = new window.wv).onerror = function (t) { - n("error", { - info: "Request Error", - url: i, - data: "" - }) - } - , - s.onload = function () { - n("complete", { - url: i, - data: s.responseText - }) - } - , - s.open(t.type || "GET", i), - setTimeout(function () { - s.send(t.content || null) - }, 0), - s) : window.XMLHttpRequest ? ((e = new XMLHttpRequest).onreadystatechange = function () { - var t; - 4 === e.readyState && (200 === e.status ? (t = "arraybuffer" === e.responseType ? e.response : e.responseText, - n("complete", { - info: "ok", - url: i, - data: t - })) : (e.abort(), - n("error", { - info: e.status, - url: i, - data: "" - }))) - } - , - e.onerror = function (t) { - e.abort(), - n("error", { - info: "Request Error", - url: i, - data: "" - }) - } - , - e.open(t.type || "GET", i, !0), - e.responseType = t.responseType || "text", - "POST" === t.type && e.setRequestHeader("Content-Type", t.requestContentType || "application/x-www-form-urlencoded"), - e.send(t.content || null), - e) : void n("error", { - info: "Not Support Ajax", - url: i, - data: "" - }) - } - } - , yi = (bi.prototype.add = function (t, i, n, s, e) { - gi.getKey(t, i, e, s) !== (this.WM ? this.WM.getKey() : "-1") && (this.XR = t, - this.qR = i, - this.VM += this.WM ? this.WM.length : 0, - this.WM = new gi(t, i, this.VM, s, e), - this.jc.push(this.WM)), - this.WM.add(n) - } - , - bi); - function bi() { - this.jc = [], - this.XR = 0, - this.qR = 0, - this.VM = 0 - } - Mi.getKey = function (t, i, n, s) { - return t + ":" + i + ":" + n + ":" + s - } - , - Mi.prototype.add = function (t) { - this.length += t - } - , - Mi.prototype.getKey = function () { - return this.color + ":" + this.width + ":" + this.maxzoom + ":" + this.minzoom - } - ; - var gi = Mi; - function Mi(t, i, n, s, e) { - this.color = t, - this.width = i, - this.offset = n, - this.minzoom = s, - this.maxzoom = e, - this.length = 0 - } - ki = _t, - _.Ei(xi, ki), - xi.prototype.loadData = function (t, i, n, s) { - var r = this - , e = (this.aa = t, - this.ze = i, - this.Zs = [], - this.sa = [], - t.projectionId) - , h = [] - , o = t.boundsCoord - , a = t.optimalZoom - , u = t.optimalResolution - , f = this.ha(o, a, u) - , o = (this.ua.forEach(function (t) { - var i = t.zo - , n = !1; - if (t.status !== _.TileState.LOADED) { - for (var s = f.ja; s <= f.Oa; s += 1) - for (var e = f.Fa; e <= f.Ea; e += 1) { - var h = r.fa(s, f.z); - i.z === f.z && i.y === e && h === i.x && (n = !0) - } - n || (t.request && t.request.abort && t.request.abort(), - r.ua.ea(t)) - } - }), - this.qs(t, this.Zs, h)); - return this.Ys(o, i, e, n), - this.da(t, this.sa, h, s), - this.sa = this.sa.concat(this.Zs), - 0 === o.length - } - , - xi.prototype.Ys = function (o, t, z, C) { - if (!(this.aa.optimalZoom < this.xt[0] || this.aa.optimalZoom > this.xt[1])) { - this.Da(o); - var i = this.map.mapStyle.vn.MS("traffic"); - i && i.multiFillColors && ((i = i.multiFillColors).congested && i.congested, - i.slow && i.slow, - i.smooth && i.smooth, - i.seriousCongested && i.seriousCongested, - i.unknown) && i.unknown; - for (var S = this.layer.getOptions().rZ, a = this, n = 0, s = o.length; n < s; n += 1) - !function (t) { - var t = o[t] - , M = _.Util.Rg(t.x, t.y, t.z) - , i = a.ll(M) - , k = new _.Sw(t) - , w = (a.ua.Qo(k), - _.ProjectionManager.getProjection(z).getResolution(t.z)) - , n = (r = t.x * a.Xa * w) + a.Xa * w - , s = (t = t.y * a.Xa * w) + a.Xa * w - , e = _.V[z].Xs(r, t) - , h = _.V[z].Xs(n, s) - , r = e[0] - , n = h[0] - , t = h[1] - , s = e[1] - , x = (k.Ro = [r, t, n, s], - k.status = _.TileState.LOADING, - _.lcs.getLocalByCoord([k.Ro[0], k.Ro[1]])) - , A = k.zo.z > _.za; - A && (k.Ro[0] -= x.center[0], - k.Ro[1] -= x.center[1], - k.Ro[2] -= x.center[0], - k.Ro[3] -= x.center[1]), - k.request = mi.Ajax(i, {}, function (t, i) { - k.data = {}; - try { - i = JSON.parse(i.data) - } catch (t) { - return k.status = _.TileState.LOADED, - void C() - } - if (i = i.data[M.join("_")], - "complete" === t && i) { - for (var n = new yi, s = new _.J_, e = 0, h = i.length; e < h; e++) - for (var r = i[e], o = 0, a = r.length; o < a; o++) - for (var u = r[o], f = .6 * u[0] * S, c = 0, l = u[1].length; c < l; c++) { - for (var d = [], v = _.Util.Eg(u[1][c]), p = 0, m = v.length; p < m; p += 2) { - var y = w * (256 * k.zo.x + v[p]) - , b = w * (256 * k.zo.y + v[p + 1]) - , y = _.V[z].Xs(y, b); - A && (y[0] -= x.center[0], - y[1] -= x.center[1]), - d.push(y[0], y[1]) - } - var g = s.hb(d).Iw; - n.add(e, f, g, 8, 20) - } - k.data = { - $c: s, - Uc: n, - Hs: x - } - } - k.status = _.TileState.LOADED, - C() - }) - }(n) - } - } - ; - var ki, wi = xi; - function xi(t, i, n, s) { - return (t = ki.call(this, t, i, n, s) || this).Qs = [3, 17], - t.Xa = 256, - t.Za = t.qa = !1, - t.ll = function (t) { - return AMap.getConfig().protocol + "://vdata.amap.com/traffic?key=" + AMap.getConfig().key + "&v=" + AMap.getConfig().version + "&t=" + t + "&w=" + (new Date).getTime() - } - , - t - } - var Ai, Ci = { - nebula: "tile", - mapbox: "tile", - nebulaLabel: "tile", - indoor: "other" - }, Si = (Ai = s, - _.Ei(Li, Ai), - Li.prototype.loadData = function (e, t, i, h, n) { - var s, r = this, o = this.Yh; - for (s in Object.keys(o).length, - o) - !function (s) { - o.hasOwnProperty(s) && o[s].YE(function (t, i) { - var n = i.GW - , i = i.cb; - "worker" === (void 0 === n ? "main" : n) ? (r.Ye[s] = i, - h.gn.innerLabelsLoadData({ - id: s, - bounds: e.bounds.slice(), - zoom: e.optimalZoom - }, function (t) { - Object.keys(t).length - })) : (t = function (t, i) { - var n, s, e = i.R_, h = i.z_, r = {}; - for (n in t) - t.hasOwnProperty(n) && (s = t[n], - s = new _.eG({ - R_: e, - z_: h - }).Ns(s.data, { - zoom: s.zoom, - from: "inner", - center: s.center - }), - r[n] = new _.La(n, s)); - return r - }(t, { - R_: r.Mf, - z_: r.ac - }), - i && i(t)) - }) - }(s); - return !0 - } - , - Li.prototype.getData = function (t) { - var i, n, s, e, h = this.Yh, r = { - tile: [], - other: [] - }, o = !0; - for (i in h) - h.hasOwnProperty(i) && (e = h[i], - n = Ci[i] || "other", - e) && (s = e.getData(t), - e = e.lo(), - r[n].push(s), - o = o && e); - return this.Oo = o, - this.Fo(o), - r - } - , - Li.prototype.getSources = function () { - return this.Yh - } - , - Li.prototype.addSource = function (t, i) { - this.Yh[t] = i - } - , - Li.prototype.Xh = function (t) { - delete this.Yh[t] - } - , - Li.prototype.uU = function (t) { - var i = t.id - , n = this.Ye; - n[i] && n[i](t) - } - , - Li.prototype.destroy = function () { - var t, i, n = this.Yh; - for (t in n) - n.hasOwnProperty(t) && (i = n[t]) && i.destroy() - } - , - Li.prototype.reload = function () { - var t, i, n = this.Yh; - for (t in n) - n.hasOwnProperty(t) && (i = n[t]) && i.reload && i.reload() - } - , - Li.prototype.Ia = function () { - this.map.gn.on("dynamicTextVerticeLoadedByTile", this.uU.bind(this)) - } - , - Li); - function Li(t, i, n, s) { - return (t = Ai.call(this, t, i, n, s) || this).Yh = {}, - t.Ye = {}, - t.Mf = n.R_, - t.ac = n.z_, - t.Ia(), - t - } - var Ti, Ii = _.Support.scale, Di = (Ti = e, - _.Ei(Oi, Ti), - Oi.prototype.loadData = function (t, i, n, s) { - var e = this; - if (!s.gn.dE) - return !1; - this.aa = t, - this.sa = []; - for (var h = t.bounds, r = this.ra(t.optimalZoom), o = this.ha(h, r), h = _.map(o, function (t) { - var i = e.fa(t.x, t.z); - return t.z + "," + i + "," + t.y - }), a = this.QH.qH(h).yB, u = [], f = 0; f < o.length; f++) { - var c, l, d = o[f], v = new _.ca(d.z, this.fa(d.x, d.z), d.y), p = new _.ca(d.z, d.x, d.y), m = _.zB.ALL, y = this.ua.getTile(v, !0); - y ? (c = this.ua.MD(y.tag, m)) && (y.tag = m, - l = d.key + "," + _.Util.SD(c), - a.indexOf(l) < 0) && u.push(l) : (l = v.key + "," + _.Util.SD(m), - a.indexOf(l) < 0 && ((d = new _.pa(v)).status = _.TileState.LOADING, - this.ua.Jo(d), - d.tag = m, - u.push(l))), - !y || y.status !== _.TileState.LOADED && y.status !== _.TileState.RELOADING || this.sa.push(p) - } - var b = (h = this.OE(u)).overseaTile - , g = h.chinaTile - , h = h.mapboxTile; - return this.PE(b, "oversea"), - this.PE(g, "china"), - this.PE(h, "mapbox"), - this.da(t, this.sa, [], s), - this.zD(u, t, r, s, n, "building"), - 0 === u.length - } - , - Oi.prototype.destroy = function () { - this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), - delete this.mapStyle), - this.R_ && this.R_.destroy && (this.R_.destroy(), - delete this.R_) - } - , - Oi.prototype.reload = function () { - var i = this; - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.destroy(), - i.ua.ea(t) - }), - this.sa = [], - this.la = [] - } - , - Oi); - function Oi(t, i, n, s) { - return (i = Ti.call(this, t, i, n, s) || this).Xa = t.tileSize, - i._tileUrl = t.tileUrl, - s = _.Support.$e ? 50 : 200, - i.ua = new zt(s), - n.gn.Ha({ - scale: Ii, - showLabel: n.showLabel, - DD: -1 !== location.search.indexOf("forceAll") - }), - i.R_ = n.R_, - i.z_ = n.z_, - n.gn.Ja(AMap.getConfig().protocol), - i.mapStyle = n.mapStyle, - i.mapStyle.pn(function () { }), - i.Ia(), - i.sD(), - i - } - Ei = s, - _.Ei(Pi, Ei), - Pi.prototype.loadData = function (t, i, n, s, e) { - var h; - if (!(e = e.getSource("nebula"))) - return this.gs && (h = this.gs.VR.showId) && this.GR([h]), - !1; - for (var r = e.getData(t).tiles, o = r.length, a = [], u = 0; u < o; u++) - for (var f = 0, c = r[u].data || []; f < c.length; f++) { - var l = c[f]; - if (l.indoorInfo) - for (var d = l.indoorInfo, v = d.length, p = 0; p < v; p++) { - for (var m = d[p], y = !1, b = 0; b < a.length; b++) - m === a[b] && (y = !0); - y || a.push(m) - } - } - return this.GR(a), - this.Fo(!0), - !0 - } - , - Pi.prototype.getData = function () { - return this._indoorData - } - , - Pi.prototype.lo = function () { - return !0 - } - , - Pi.prototype.GR = function (t, i) { - if (!t || t.length < 1) - return null; - if (!this.map.isDOMMode()) { - for (var s = (n = this.gs).VR, e = (n._map, - []), n = this._config.server + "/v3/indoor/indoormaps?", h = t, r = h.length, o = [], a = [], t = [], u = !1, f = 0; f < r; f++) { - var c = h[f] - , l = 1 - , d = (this._indoorData.data[c] || (this._indoorData.data[c] = {}), - s.floorInfo && s.floorInfo[c] && (d = s.floorInfo[c]) && (l = d), - this._indoorData.data[c]); - d && d.data && d.data[l] || (u = !0, - o.push(l), - a.push(0), - e.push(c)) - } - this.LL = e, - t.push("poiid=" + e.join(";")), - t.push("floor=" + o.join(";")), - t.push("version=" + a.join(";")), - t.push("s=rsv3"), - t.push("from=indoorH5Map"), - t.push("servicetype=unify"), - t.push("key=" + this._config.key), - this._config.jscode ? t.push("jscode=" + this._config.jscode) : this._config.gaodeserver && (n = this._config.gaodeserver + "/v3/indoor/indoormaps?"), - n += t.join("&"), - u && this.ZR.url !== n ? (this.ZR.url = n, - this.YR(n, this.jF)) : (this.jF(), - i && i()) - } - } - , - Pi.prototype.JR = function (t, i, n) { - var s = this; - if (!t || !i) - return !1; - this.GR([t], function () { - s.gs && s.gs._map && s.gs._map.setNeedUpdate(!0), - n && n() - }) - } - , - Pi.prototype.YR = function (t, u) { - var f = this - , i = new XMLHttpRequest; - i.onreadystatechange = function () { - 4 === i.readyState && 200 === i.status && f.map.gn.JB(i.response, function (t, i) { - if (t) - console.log(t); - else - for (var n = 0, s = Object.keys(i); n < s.length; n++) - for (var e = s[n], h = (f._indoorData.data[e] && f._indoorData.data[e].data || (f._indoorData.data[e].data = {}), - f._indoorData.data[e].building = i[e].building, - i[e].data), r = 0, o = Object.keys(h); r < o.length; r++) { - var a = o[r]; - f._indoorData.data[e].data[a] = h[a] - } - u() - }) - } - , - i.open("GET", t, !0), - i.responseType = "arraybuffer", - i.send() - } - ; - var Ei, Ri = Pi; - function Pi(t, i, n, s) { - var e = Ei.call(this, t, i, n, s) || this; - return e.jF = function () { - var t; - e.gs && (t = e.gs.getRender()) && t.render(e._indoorData) - } - , - e.gs = s, - e._config = AMap.getConfig(), - e._indoorData = { - extData: {}, - data: {} - }, - e.LL = [], - e.ZR = { - url: null, - status: !1 - }, - e - } - var ji, Bi = _.Support.scale; - function d(t, i, n, s) { - var a = ji.call(this, t, i, n, s) || this - , i = (a.xt = _.zoomRange, - a.sa = [], - a.la = [], - a.qa = !0, - a.Za = !0, - a.a_ = !1, - a.$D = 0, - a.hD = [AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-normal-big.png", AMap.getConfig().protocol + "://vdata.amap.com/style_icon/2.0/icon-biz-big.png"], - a.VH = "", - a.wH = function (t) { - !a.map.yH || parseInt(t.key.split(",")[0], 10) < 10 || a.map.yH.kH(t.key) - } - , - a.Xa = t.tileSize, - a._tileUrl = t.tileUrl, - a.tG = null, - _.Support.$e ? 30 : 200); - return a.ua = new zt(i), - a.NE = new Lt(i), - window.xZ = a.ua, - n.gn.Ha({ - scale: Bi, - showLabel: n.showLabel, - DD: -1 !== location.search.indexOf("forceAll") - }), - a.R_ = n.R_, - a.z_ = n.z_, - n.gn.Ja(AMap.getConfig().protocol), - a.mapStyle = n.mapStyle, - a.mapStyle.pn(function (t) { - n && n.gn && n.gn.Ka({ - value: t, - TY: "fast" === a.map.bZ.MZ.drawMode - }) - }), - a.Ia(), - a.sD(), - a.ua.on("delete", a.wH), - a.KH = new It(function (t, o, i, n) { - var s = a.AD(); - return !n || "outsea" !== n && "a00" !== n || (s = _.Support.wasm ? s.replace("/nebula/v3", "/oversea/v3") : s.replace("/nebula/v2", "/oversea/v2")), - new _.vH(a.map.gn.RD({ - url: s, - projectionId: i.projectionId, - ya: t, - ZL: i.zoom, - mH: i.mH - }, function (t, i) { - if (a.Eo(), - a.KH.CB(o), - t) - console.log(t), - a.map.emit("TileDecodeError", { - type: "nebulasdf", - err: t - }); - else if (i) - for (var n = 0, s = Object.keys(i); n < s.length; n++) { - var e, h, r = s[n].slice(0, -2); - (r = a.ua.xf(r)) && (r.status = _.TileState.LOADED, - r.xB = _.TileState.LOADED, - e = _.wa.ga(r.zo.x, r.zo.y, r.zo.z, "EPSG:3857"), - h = _.lcs.getLocalByCoord([e[0], e[1]]), - r.localCoord = h, - r.Ro = e) - } - else - console.log("no data"), - a.map.emit("TileDecodeError", { - type: "nebulasdf", - err: "no data" - }) - })) - } - , function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - (s = a.ua.xf(s.slice(0, -2))) && s.status !== _.TileState.LOADED && a.ua.ea(s) - } - } - ), - _.Support.$e && !_.Support.iPad && (a.map.on("zoomend", function () { - 15 <= a.map.getZoom() ? a.ua.Xo(6) : a.ua.Xo(20) - }), - 15 <= a.map.getZoom()) && a.ua.Xo(6), - a - } - ji = s, - _.Ei(d, ji), - d.prototype.loadData = function (t, i, n, s) { - var e = this; - if ("optimise" === s.loadData() && s.TL()) - return !1; - this.aa = t, - this.sa = []; - for (var h = t.bounds, r = this.ra(t.optimalZoom), o = this.ha(h, r), a = [], u = t.optimalZoom, h = _.map(o, function (t) { - var i = e.fa(t.x, t.z); - return t.z + "," + i + "," + t.y - }), f = this.KH.qH(h), c = [], l = 0; l < o.length; l++) { - var d, v, p = o[l], m = new _.ca(p.z, this.fa(p.x, p.z), p.y), y = new _.ca(p.z, p.x, p.y), b = _.Util.kD(m.key, u), g = this.ua.getTile(m, !0); - g ? (d = this.ua.MD(g.gB, b)) && (g.gB = b, - v = p.key + "," + _.Util.SD(d), - f.yB.indexOf(v) < 0) && c.push(v) : (v = m.key + "," + _.Util.SD(b), - f.yB.indexOf(v) < 0 && ((m = new _.pa(m)).status = _.TileState.LOADING, - m.xB = _.TileState.LOADING, - this.ua.Jo(m), - m.tag = b, - m.gB = b, - c.push(v))), - !g || g.xB !== _.TileState.LOADED && g.xB !== _.TileState.RELOADING || this.sa.push(y), - g && (g.xB === _.TileState.LOADED || g.xB === _.TileState.RELOADING) || a.push(p), - g && g.xB === _.TileState.LOADED && g.version && g.version !== this.VH && (this.sa.push(y), - g.xB = _.TileState.RELOADING, - c.push(p.key + "," + _.Util.SD(g.gB)), - d = this.ua.MD(g.gB, b)) && (v = p.key + "," + _.Util.SD(d), - f.yB.indexOf(v) < 0) && c.push(v) - } - this.da(t, this.sa, a, s); - var M, k, w, h = this.map.getOutseaState(), x = this.map.getOutseaDataType(); - return h && !x ? 9.8 <= r ? (r = (k = this.OE(c)).overseaTile, - w = k.chinaTile, - M = k.mapboxTile, - this.PE(r, "oversea"), - this.PE(w, "china"), - this.PE(M, "mapbox"), - s.showLabel && this.bB(k.chinaTile, t), - s.showLabel && this.bB(k.overseaTile, t, "outsea")) : (this.PE(c, "china"), - s.showLabel && this.bB(c, t, "a00")) : h && x && "mapbox" === x ? 9.8 <= u ? (w = (k = this.OE(c)).chinaTile, - this.PE(w, "china"), - s.showLabel && this.bB(c, t)) : (this.PE(c, "china"), - s.showLabel && this.bB(c, t, "a00")) : (this.PE(c, "china"), - s.showLabel && this.bB(c, t)), - 0 === c.length - } - , - d.prototype.getData = function (i) { - var n = this - , t = i.bounds - , s = this.ra(i.optimalZoom) - , e = this.ha(t, s) - , h = [] - , r = {} - , o = (14 === s && (r = this.ha(t, 15, !0)), - this.map.qF()); - if (this.ua.QF(o), - this.sa.sort(function (t) { - return n.ra(i.optimalZoom) === t.z ? 1 : -1 - }), - 0 < this.sa.length) - for (var a = 0; a < this.sa.length; a++) { - var u, f, c, l = this.sa[a], d = this.ua.getTile(l, !0), v = 0, p = 0, m = [0, 0], y = i.centerCoord; - d ? (d.localCoord || (f = _.wa.ga(d.zo.x, d.zo.y, d.zo.z, "EPSG:3857"), - u = _.lcs.getLocalByCoord([f[0], f[1]]), - d.localCoord = u, - d.Ro = f), - u = _.lcs.getLocalByCoord([y[0], y[1]]), - i.optimalZoom >= _.Ra ? (c = _.lcs.getSize(), - v = d.localCoord.x - u.x, - p = d.localCoord.y - u.y, - 0 != v && (v *= c[0], - m[0] = v), - 0 != p && (p *= c[1], - m[1] = p), - i.optimalZoom >= _.Ra && _.za >= d.zo.z && (m[0] = -u.center[0], - m[1] = -u.center[1])) : i.optimalZoom < _.Ra && _.za < d.zo.z && (m[0] = u.center[0], - m[1] = u.center[1])) : (f = new _.ca(l.z, this.fa(l.x, l.z), l.y), - (y = this.ua.getTile(f, !0)) && (d = new _.pa(l), - c = 1 << l.z, - (l.x < 0 || l.x >= c) && (v = Math.floor(l.x / c), - m[0] += 20037508.342789244 * v * 2), - p = y.gB, - d.Ro = y.Ro, - d.ID(y), - d.Sa = m, - d.status = y.status, - d.tag = p, - d.gB = p)), - d && (d.stamp = o, - d.Sa = m, - h.push(d)) - } - var b = i.optimalZoom - , t = _.every(e, function (s) { - return _.some(h, function (t) { - var i = t.zo.key - , n = t.zo.z - , n = _.Util.VF(n, b) - , t = t.gB - , t = _.Util.LD(t, n); - return i === s.key && t - }) - }) - , g = this.map.getOutseaState() - , M = this.map.getOutseaDataType() - , e = (g && !M && (t = !(M = _.filter(e, function (t) { - return !(t = n.NE.getTile(t)) || !t.boundsStatus || !1 !== t.boundsStatus.isInNebulaOversea - })).length || _.every(M, function (s) { - return _.some(h, function (t) { - var i = t.zo.key - , n = t.zo.z - , n = _.Util.VF(n, b) - , t = t.gB - , t = _.Util.LD(t, n); - return i === s.key && t - }) - })), - h && 0 <= h.length && this.Fo(!0), - this.jE(h)) - , M = (t && (this.a_ = !0, - this.map.bZ.dynamic.set("firstAllLoaded", !0)), - e && this.map.bZ.dynamic.set("firstLabelDataAllLoaded", !0), - t && e && this.Fo(!0), - { - s_: this.a_, - fo: !!t && e, - yZ: e, - tiles: h, - Ca: r, - outseaData: void 0 - }); - return g && h.length && (t = this.map.bZ.MZ.wZ.gZ(), - M.outseaData = t), - M.tiles = this.UE(h, s), - M - } - , - d.prototype.pe = function (t) { - return t = new _.ca(t[0], t[1], t[2]), - this.ua.getTile(t) - } - , - d.prototype.ZE = function (t) { - return !1 - } - , - d.prototype.OE = function (t) { - for (var i = t.length, n = [], s = [], e = [], h = 0; h < i; h++) { - var r = void 0 - , o = void 0 - , a = t[h] - , u = a.split(",") - , f = new _.ca(u[0], u[1], u[2]) - , c = this.NE.getTile(f); - if (c && c.boundsStatus) - r = c.boundsStatus.isInChina, - o = c.boundsStatus.isInNebulaOversea; - else { - if (!(c = _.wa.ga(parseInt(u[1], 10), parseInt(u[2], 10), parseInt(u[0], 10), "EPSG:3857"))) - continue; - u = [[c[0], c[1]], [c[2], c[1]], [c[2], c[3]], [c[0], c[3]]], - r = this.VE(u, "china", a), - o = this.VE(u, "oversea", a), - (c = new _.pa(f)).boundsStatus = { - isInChina: r, - isInNebulaOversea: o - }, - this.NE.Jo(c) - } - r && n.push(a), - o && s.push(a), - r || o || e.push(a) - } - return { - chinaTile: n, - overseaTile: s, - mapboxTile: e - } - } - , - d.prototype.ra = function (t) { - return ("fast" !== this.map.bZ.MZ.drawMode || this.map.bZ.dynamic.get("firstPaint") ? { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 10, - 11: 10, - 12: 10, - 13: 12, - 14: 12, - 15: 15, - 16: 15, - 17: 15, - 18: 15, - 19: 15, - 20: 15, - 21: 15, - 22: 15, - 23: 15, - 24: 15, - 25: 15, - 26: 15, - 27: 15, - 28: 15, - 29: 15, - 30: 15 - } : { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 8, - 11: 8, - 12: 8, - 13: 12, - 14: 12, - 15: 15, - 16: 15, - 17: 15, - 18: 15, - 19: 15, - 20: 15, - 21: 15, - 22: 15, - 23: 15, - 24: 15, - 25: 15, - 26: 15, - 27: 15, - 28: 15, - 29: 15, - 30: 15 - })[t] - } - , - d.prototype.YE = function (t) { - var i = this; - return t(null, { - GW: "worker", - cb: function (t) { - i.dynamicTextVerticeLoadedByTile(t) - } - }), - !0 - } - , - d.prototype.destroy = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.destroy() - }), - this.ua.destroy(), - this.sa = [], - this.la = [], - this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), - delete this.mapStyle), - this.R_ && this.R_.destroy && (this.R_.destroy(), - delete this.R_) - } - , - d.prototype.reload = function () { - this.ua.forEach(function (t) { - t.status !== _.TileState.LOADED && t.request && (t.request.cancel(), - delete t.request), - t.reload() - }), - this.sa = [], - this.la = [] - } - , - d.prototype.Aa = function (t) { - var i; - t.zo && (i = this.ua.getTile(t.zo)) && (i.rO({ - Ta: !0 - }, t.tag), - i.xa({ - Ta: !0 - }, t.tag), - i.JE({ - Ta: !0 - }, t.tag)) - } - , - d.prototype.setTileCacheSize = function (t) { - t = t || (_.Support.$e ? 30 : 100), - this.ua.Xo(t) - } - , - d.prototype.UH = function (t) { - this.VH = t - } - , - d.prototype.dynamicTextVerticeLoaded = function (t) { - var i = t.data - , n = t.XE; - if (i instanceof _.ca) - return (s = this.ua.getTile(i)) ? (s.data || s.xa({}, t.tag), - void s.rO({}, t.tag)) : void 0; - var s = i[Object.keys(i)[0]]; - if (s = this.ua.getTile(s.zo, !0)) { - s.data || s.xa({}, t.tag); - var e, h, r = {}; - for (e in i) - i.hasOwnProperty(e) && (h = i[e], - r[e] = new _.La(h.zo, h)); - s.rO({ - Ta: !0, - labels: r, - XE: n - }, t.tag), - s.xa({ - Ta: !0 - }, t.tag), - s.JE({ - Ta: !0 - }, t.tag), - s.xB = _.TileState.LOADED, - this.map.Mv.t0(s.zo), - this.Eo() - } - } - , - d.prototype.dynamicTextVerticeLoadedByTile = function (t) { - for (var i = 0, n = t.data; i < n.length; i++) { - var s = n[i]; - this.dynamicTextVerticeLoaded({ - data: s.data, - tag: s.tag, - XE: s.XE - }) - } - } - , - d.prototype.Ia = function () { - this.map.on("tileSdfInfoFinished", this.Aa.bind(this)) - } - , - d.prototype.bB = function (t, i, n) { - i = { - zoom: i.zoom, - projectionId: i.projectionId, - mH: _.Support.mH - }, - this.KH._B(t, i, n) - } - , - d.prototype.cP = function () { - for (var t, i = this.map.getLayers(), n = 0; n < i.length; n++) - if ("AMap.Buildings" === (s = i[n]).CLASS_NAME && !s.getState().u$) { - t = s; - break - } - if (!t) - for (var s, n = 0; n < i.length; n++) - if ("AMap.Buildings" === (s = i[n]).CLASS_NAME) { - t = s; - break - } - return t - } - , - d.prototype.ma = function (t, i) { - var n, s = new RegExp(/\{(\w|\,)+\}/g); - return s.test(this._tileUrl) ? (n = this._tileUrl.match(s)[0].replace(/[\{|\}]/g, "").split(","), - this._tileUrl.replace(s, n[(t + i) % 4])) : this._tileUrl - } - , - d.prototype.AD = function () { - var t = new RegExp(/\{(\w|\,)+\}/g) - , i = this._tileUrl.match(t)[0].replace(/[\{|\}]/g, "").split(",") - , n = i.length - , t = this._tileUrl.replace(t, i[this.$D % n]); - return this.$D = (this.$D + 1) % n, - t - } - , - d.prototype.ha = function (t, i, n) { - void 0 === n && (n = !1); - var s = [t[0], t[3]] - , t = [t[2], t[1]] - , s = this.Ga(s, i) - , t = this.Ga(t, i) - , e = s[0] - , h = s[1] - , r = t[0] - , o = t[1]; - if (n) - return { - ja: e, - Fa: h, - Oa: r, - Ea: o, - z: i - }; - this.Pa = { - ja: e, - Fa: h, - Oa: r, - Ea: o, - z: i - }; - for (var a = [], u = e; u <= r; u += 1) - for (var f = h; f <= o; f += 1) - a.push(new _.ca(i, u, f)); - return this.Da(a), - a - } - , - d.prototype.da = function (t, i, n, s) { - var e = [3, 6, 8, 10, 12, 15] - , h = this.ra(t.optimalZoom); - if (this.Za) - for (var r = Math.min(14, h + 3), o = h + 1; n.length && o <= r; o += 1) - if (-1 !== e.indexOf(o)) { - for (var a = o - h, u = [], f = [], c = n.length - 1; 0 <= c; --c) - for (var l = n[c].x << a, d = n[c].y << a, v = 1 << a; 0 <= v; --v) - for (var p = 1 << a; 0 <= p; --p) { - var m = new _.ca(o, this.fa(l + v, o), d + p) - , y = new _.ca(o, l + v, d + p); - ((M = this.ua.getTile(m, !0)) && M.status === _.TileState.LOADED ? f : u).push(y) - } - f.length && i.push.apply(i, f), - n = u - } - if (this.qa) - for (var b = this.xt[0], o = h - 1; n.length && b <= o; --o) - if (-1 !== e.indexOf(o)) { - for (var f = [], u = [], g = {}, c = n.length - 1; 0 <= c; --c) { - var M, k = n[c], a = o, w = k.z - a, v = k.x >> w, p = k.y >> w; - g[k = (m = new _.ca(a, v, p)).key] || (w = new _.ca(a, this.fa(v, a), p), - y = new _.ca(a, v, p), - M = this.ua.getTile(w, !0), - g[k] = !0, - (M && M.status === _.TileState.LOADED ? f : u).push(y)) - } - f.length && i.push.apply(i, f), - n = u - } - return i - } - , - d.prototype.Da = function (t) { - var e, h, r; - t.length && (e = this.Pa.z, - h = (this.Pa.ja + this.Pa.Oa) / 2, - r = (this.Pa.Fa + this.Pa.Ea) / 2, - t.sort(function (t, i) { - var n = (t.x << e - t.z) - h - , t = (t.y << e - t.z) - r - , s = (i.x << e - i.z) - h; - return n * n + t * t <= s * s + (i = (i.y << e - i.z) - r) * i ? -1 : 1 - })) - } - , - d.prototype.Ga = function (t, i) { - var n = 180 / (i = Math.pow(2, i)); - return [Math.floor(t[0] / (360 / i)) + i / 2, i / 2 - Math.ceil(t[1] / n)] - } - , - d.prototype.fa = function (t, i) { - for (var n = 1 << (i = i || this.aa.optimalZoom); t < 0 || n <= t;) - t = n <= t ? t - n : t < 0 ? n + t : t; - return t - } - , - d.prototype.sD = function () { - var e, h, r = this; - this.map.bZ.dynamic.get("_preloadNebulaIcons") || (this.map.bZ.dynamic.set("_preloadNebulaIcons", !0), - e = this.hD, - (h = this.z_).loadImages(e, { - type: "icon", - imageBitmap: _.Support.imageBitmap, - cb: function () { - for (var t = [], i = 0; i < e.length; i++) { - var n = e[i] - , s = h.getImage(n); - t.push({ - img: s.img, - name: n, - hv: i, - width: s.width, - height: s.height - }) - } - r.map.so.sv(t) - } - })) - } - , - d.prototype.PE = function (t, i) { - for (var n = 0, s = t; n < s.length; n++) { - var e = s[n].split(",").slice(0, 3).join(","); - (e = this.ua.xf(e)) && (e.region = i) - } - } - , - d.prototype.UE = function (t, i) { - void 0 === t && (t = []); - var n = []; - if (10 <= i) { - for (var s = 0, e = t; s < e.length; s++) { - var h = e[s]; - "china" !== h.region && "oversea" !== h.region || n.push(h) - } - return n - } - return t - } - , - d.prototype.jE = function (t) { - for (var i = !!t.length, n = 0, s = t; n < s.length; n++) { - var e = s[n].data; - if (i) - for (var h = 0, r = e; h < r.length; h++) { - var o = r[h]; - if (!(i = i && !!o.Ta)) - break - } - } - return i - } - ; - var Wi = { - nebula: e, - nebulaLabel: d, - building: Di, - sky: ai, - mask: ci, - inner: Si, - image: jt, - custom: Xt, - gl_custom: hi, - raster: _t, - overlay: Ht, - labelsLayer: Ft, - vectorTile: Qt, - districtVectorTile: $t, - mapboxVectorTile: ni, - indoor: Ri, - mapbox: vi, - vectortraffic: wi - } - , Fi = (Gi.addSource = function (t, i) { - Wi[t] || (Wi[t] = i) - } - , - Gi.prototype.addSource = function (t, i, n) { - return ("nebula" === t.id || "indoor" === t.id) && this.Yh[t.id] || this.Yh[t.id] || (this.Yh[t.id] = new Wi[t.type](t, i, this.map, n), - n.source = this.Yh[t.id]), - this.Yh[t.id] - } - , - Gi.prototype.getSource = function (t) { - return this.Yh[t] - } - , - Gi.prototype.Xh = function (t) { - delete this.Yh[t] - } - , - Gi.prototype.getData = function (t, i, n) { - return this.Yh[t].getData(i, n) - } - , - Gi.prototype.loadData = function (t, i, n) { - for (var s = 0, e = i.getLayers() || []; s < e.length; s++) { - var r = (h = e[s]).getOptions() - , h = h.getSource(); - _.Util.dS(i.getZoom(), r.zooms) && h && r.visible && 0 < r.opacity && h.loadData(t, n, function () { - i.setNeedUpdate(!0) - }, i, this) - } - } - , - Gi.prototype.destroy = function () { - for (var t in this.Yh) - this.Yh[t] && this.Yh[t].destroy(); - this.Yh = {} - } - , - Gi.prototype.UH = function (t) { - for (var i in this.Yh) - this.Yh[i] && this.Yh[i].UH && this.Yh[i].UH(t) - } - , - Gi.prototype.i0 = function (t, i) { - if (this.Yh[t]) - return this.Yh[t].ua.getTile(i, !1) - } - , - Gi.prototype.t0 = function (t) { - var i = this.i0(_.n0.nebulaLabel, t); - (t = 15 === t.z ? this.i0(_.n0.nebula, t.s0(14)) : this.i0(_.n0.nebula, t)) && i && i.KE(t.data) - } - , - _.dZ([_.pZ("SourceManager")], Gi)); - function Gi(t) { - this.map = t, - this.Yh = {} - } - Ni = _.Event, - _.Ei(v, Ni), - v.prototype.onAdd = function () { } - , - v.prototype.v$ = function () { } - , - v.prototype.Hh = function (t) { - this.uo = t - } - , - v.prototype.Do = function (t) { - return this.Jh = t, - this.Jh - } - , - v.prototype.setMap = function (t) { - var i, n = this; - null === t && this.map ? this.map.removeLayer(this) : (this.map = t) && (i = t.getLayers(), - _.find(i, function (t) { - return t.getLayerConfig().id === n.getLayerConfig().id - }) || t.addLayer(this)) - } - , - v.prototype.Kh = function (t) { - var i = this; - (this.source = t) && this.source.on("complete", function () { - i.emit("complete") - }) - } - , - v.prototype.setzIndex = function (t) { - this.Qh = t, - this.map && this.map.setNeedUpdate(!0) - } - , - v.prototype.setOpacity = function (t) { - this.tl = t, - this.map && this.map.setNeedUpdate(!0) - } - , - v.prototype.getOpacity = function () { - return this.tl - } - , - v.prototype.getSource = function () { - if (this.uo) - return this.uo.getSource(this.co()) - } - , - v.prototype.getzIndex = function () { - return this.getLayerConfig().zIndex - } - , - v.prototype.getMap = function () { - return this.map - } - , - v.prototype.getRender = function () { - return this.Jh - } - , - v.prototype.getLayerConfig = function () { - return { - id: this._id, - zooms: this.xt, - zIndex: this.Qh, - opacity: this.tl, - visible: this.il, - createTile: void 0, - rejectMapMask: this._rejectMapMask - } - } - , - v.prototype.getOptions = function () { - var t = this.getLayerConfig() - , i = this._opts || {}; - return _.assign({}, i, t) - } - , - v.prototype.getZooms = function () { - return this.xt - } - , - v.prototype.setZooms = function (t) { - this.xt = t, - this.map && this.map.setNeedUpdate(!0) - } - , - v.prototype.getVisible = function () { - return this.il - } - , - v.prototype.beforeRender = function () { } - , - v.prototype.afterRender = function () { } - , - v.prototype.get = function (t) { - return this.getOptions()[t] - } - , - v.prototype.vi = function (t) { - return null - } - , - v.prototype.lo = function () { - if (this.source) - return this.source.lo() - } - , - v.prototype.T$ = function () { - return this._id - } - , - v.prototype.show = function () { - this.il = !0, - this.map && this.map.setNeedUpdate(!0) - } - , - v.prototype.hide = function () { - this.il = !1, - this.map && this.map.setNeedUpdate(!0) - } - , - v.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - v.prototype.onCreated = function () { - this.map && this.map.addLayer(this) - } - ; - var Ni, e = _.dZ([_.pZ("Layer")], v); - function v(t) { - void 0 === t && (t = {}); - var i = Ni.call(this) || this; - return i.el = "AMap.Layer", - i.CLASS_NAME = "AMap.Layer", - i.hS = _.Util.stamp(i), - i.il = !0, - i.tl = 1, - i.xt = _.zoomRange, - i._id = "layer", - i.nl = !0, - i._id = "layer_" + _.Util.uuid(), - i.xt = t.zooms || _.zoomRange, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i.Qh = t.zIndex || 1, - i._rejectMapMask = void 0 !== t.rejectMapMask && t.rejectMapMask, - i.il = void 0 === t.visible || t.visible, - i.AF = void 0 !== t.depthTest && Boolean(t.depthTest), - i.IF = void 0 !== t.ce && Boolean(t.ce), - i.wl = t.cacheSize, - i.map = t && t.map || null, - i._opts = t, - i - } - _i = e, - _.Ei(Yi, _i), - Yi.prototype.getState = function () { - return { - ol: !0, - al: !0, - visible: this.il, - opacity: this.tl, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF, - cacheSize: this.wl - } - } - , - Yi.prototype.getLayerConfig = function () { - var t = _i.prototype.getLayerConfig.call(this); - return t.mapNumber = "GS(2021)6375", - t - } - , - Yi.prototype.getSourceConfig = function () { - return { - id: "nebula", - type: "nebula", - tileUrl: AMap.getConfig().protocol + (_.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), - tileSize: 0, - zooms: _.zoomRange - } - } - , - Yi.prototype.co = function () { - return "nebula" - } - , - Yi.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - Yi.prototype.show = function () { - _i.prototype.show.call(this); - var t = this.iP(); - t && t.show(), - (t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer")) && t.oP() && t.show() - } - , - Yi.prototype.hide = function () { - _i.prototype.hide.call(this); - var t = this.iP(); - t && t.hide(), - this.rP() - } - , - Yi.prototype.v$ = function () { - _i.prototype.v$.call(this); - var t = this.iP(); - t && this.map.removeLayer(t), - this.rP() - } - , - Yi.prototype.Hh = function (t) { - this.uo = t, - this.uo.getSource(this.co()).setTileCacheSize(this.wl) - } - , - Yi.prototype.rP = function () { - var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer"); - t && t.aP() && t.hide() - } - , - Yi.prototype.iP = function () { - var t; - if (this.map) - for (var i = null == (t = this.map) ? void 0 : t.getLayers(), n = 0; n < i.length; n++) { - var s = i[n]; - if ("AMap.Buildings" === s.CLASS_NAME && s.getState().u$) - return s - } - } - ; - var _i, Ui = Yi; - function Yi() { - var t = null !== _i && _i.apply(this, arguments) || this; - return t.CLASS_NAME = "AMap.NebulaLayer", - t - } - var Xi, Zi = "inner.labelsLayer", Hi = "inner", Vi = (Xi = e, - _.Ei(qi, Xi), - qi.prototype.getState = function () { - return _.assign({}, { - layer: this, - rejectMapMask: this._rejectMapMask - }, Xi.prototype.getLayerConfig.call(this)) - } - , - qi.prototype.getSourceConfig = function () { - return { - id: Hi, - type: Hi, - tileUrl: AMap.getConfig().protocol + (_.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), - tileSize: 0, - zooms: _.zoomRange - } - } - , - qi.prototype.co = function () { - return Hi - } - , - qi.prototype.sl = function () { - this.source.reload(), - this.Jh && this.Jh.reset() - } - , - qi.prototype.vi = function (t, i) { - return void 0 === i && (i = !1), - this.fz ? this.fz.vi(t, this.hS, i) : null - } - , - qi.prototype.Do = function (t) { - return t = Xi.prototype.Do.call(this, t), - this.map && this.uz(this.map), - t - } - , - qi.prototype.aP = function () { - var t, i = this.map; - return !!i && (t = i && i.getLayerByClass("AMap.TileLayer.RoadNet"), - i = i && i.getLayerByClass("AMap.NebulaLayer"), - t = t && t.getVisible(), - i = i && i.getVisible(), - !t) && !i - } - , - qi.prototype.oP = function () { - var t, i, n = this.map; - return !!n && (t = n && n.getLayerByClass("AMap.TileLayer.RoadNet"), - i = n && n.getLayerByClass("AMap.NebulaLayer"), - t = t && t.getVisible(), - i = i && i.getVisible(), - n.showLabel) && (t || i) - } - , - qi.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh), - this.source && this.source.destroy && (this.source.destroy(), - delete this.source) - } - , - qi.prototype.uz = function (t) { - (this.fz = t.fS()).add(this) - } - , - qi); - function qi(t) { - var i = Xi.call(this, t = void 0 === t ? {} : t) || this; - return i.CLASS_NAME = "AMap.Inner.LabelsLayer", - i._opts = { - id: Zi, - type: Zi, - opacity: 1, - visible: 1, - collision: !0, - allowCollision: !1 - }, - i._opts = _.assign({}, i._opts, t), - i.Qh = t.labelzIndex || 100, - i.il = !1 !== t.showLabel, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i - } - Qi = e, - _.Ei(Ki, Qi), - Ki.prototype.getState = function () { - return { - ol: !0, - al: !0, - visible: this.il, - opacity: this.tl, - layer: this, - zooms: this.xt, - zIndex: this.Qh, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF, - HY: this.rX() - } - } - , - Ki.prototype.getLayerConfig = function () { - var t = Qi.prototype.getLayerConfig.call(this); - return t.mapNumber = "", - t - } - , - Ki.prototype.getSourceConfig = function () { - return { - id: "vectortraffic", - type: "vectortraffic", - tileUrl: "", - tileSize: 256, - zooms: this.xt - } - } - , - Ki.prototype.co = function () { - return "vectortraffic" - } - , - Ki.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - Ki.prototype.onAdd = function () { - var t = this; - this.map.on("styleChanged", this.reload, this), - this.dl && (this.iT = setInterval(function () { - t.reload() - }, 1e3 * this.vl)) - } - , - Ki.prototype.v$ = function () { - this.map.off("styleChanged", this.reload, this), - clearInterval(this.iT), - delete this.iT - } - , - Ki.prototype.reload = function () { - var t = this.getSource(); - t && this.map && (t.reload(), - this.map.setNeedUpdate(!0)) - } - , - Ki.prototype.rX = function () { - var t, i = ["fff93a43", "fffcac19", "ff20a962", "ff83171c", "ffadadad"]; - this.map && (t = this.map.mapStyle.vn.MS("traffic")) && t.multiFillColors && ((t = t.multiFillColors).congested && (i[0] = t.congested), - t.slow && (i[1] = t.slow), - t.smooth && (i[2] = t.smooth), - t.seriousCongested && (i[3] = t.seriousCongested), - t.unknown) && (i[4] = t.unknown); - for (var n = 0, s = i.length; n < s; n++) - i[n] = _.Util.qg(i[n]); - return i - } - ; - var Qi; - function Ki() { - var t = null !== Qi && Qi.apply(this, arguments) || this; - return t.vl = 60, - t.dl = !0, - t - } - var $i, tn = { - opacity: 1, - visible: !0, - zIndex: 4, - zooms: [7, _.zoomRange[1]], - dataZooms: [7, 17], - interval: 60, - ml: !0, - depthTest: !1, - rZ: 1 - }, ai = ($i = Ki, - _.Ei(nn, $i), - nn); - function nn(t) { - var i = this; - return (t = void 0 === t ? tn : t).id = _.Util.uuid(), - t.opacity = (void 0 === t.opacity ? tn : t).opacity, - t.visible = (void 0 === t.visible ? tn : t).visible, - t.zIndex = (void 0 === t.zIndex ? tn : t).zIndex, - t.zooms = (void 0 === t.zooms ? tn : t).zooms, - t.interval = (void 0 === t.interval ? tn : t).interval, - t.ml = (void 0 === t.ml ? tn : t).ml, - t.depthTest = (void 0 === t.depthTest ? tn : t).depthTest, - t.rZ = (void 0 === t.rZ ? tn : t).rZ, - (i = $i.call(this, t) || this).vl = Math.max(30, t.interval || i.vl), - i.dl = void 0 !== t.ml && i.dl, - i.CLASS_NAME = "AMap.TileLayer.Traffic", - i.onCreated(), - i - } - sn = e, - _.Ei(en, sn), - en.prototype.getSourceConfig = function () { - return { - id: this._id || "tile", - tileUrl: this._tileUrl || "", - type: "raster", - tileSize: this.Xa || 256, - zooms: this.xt, - dataZooms: this.Qs || [7, 17], - projection: this.hl || "EPS3857" - } - } - , - en.prototype.co = function () { - return this._id - } - , - en.prototype.getState = function () { - return { - visible: this.il, - opacity: this.tl, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF, - detectRetina: this.yl - } - } - , - en.prototype.Hh = function (t) { - this.uo = t, - this.uo.getSource(this.co()).setTileCacheSize(this.wl) - } - ; - var sn, ci = en; - function en(t) { - var i = sn.call(this, t) || this; - return i.CLASS_NAME = "AMap.RasterLayer", - i._tileUrl = t.tileUrl, - i.xt = t.zooms || _.zoomRange, - i.Qs = t.dataZooms, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i.Qh = t.zIndex || 1, - i.il = void 0 === t.visible || t.visible, - i.Xa = t.tileSize || 256, - i.hl = t.projection, - i.AF = void 0 !== t.depthTest && Boolean(t.depthTest), - i.yl = void 0 === t.detectRetina || Boolean(t.detectRetina), - i.wl = t.cacheSize, - i - } - var hn, rn = { - id: "tile_" + _.Util.uuid(), - tileUrl: void 0, - zooms: _.zoomRange, - dataZooms: [2, 18], - opacity: 1, - tileSize: 256, - visible: !0, - projection: "EPSG:3857", - zIndex: 2 - }, on = { - id: "satellite" + _.Util.uuid(), - tileUrl: "http://webst0{1,2,3,4}.is.autonavi.com/appmaptile?style=6&x=[x]&y=[y]&z=[z]", - zooms: _.zoomRange, - dataZooms: [3, 18], - opacity: 1, - tileSize: 256, - visible: !0, - projection: "EPSG:3857", - zIndex: 2 - }, an = { - id: "traffic" + _.Util.uuid(), - tileUrl: "http://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&t=1&zoom=[z]&x=[x]&y=[y]", - zooms: [7, _.zoomRange[1]], - dataZooms: [7, 17], - opacity: 1, - tileSize: 256, - visible: !0, - projection: "EPSG:3857", - zIndex: 4, - getTileUrl: function (t, i, n) { - return AMap.getConfig().protocol + "://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0\n&t=1&zoom=" + (17 - n) + "&x=" + t + "&y=" + i - } - }, un = { - id: "roadnet" + _.Util.uuid(), - tileUrl: "http://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?x=[x]&y=[y]&z=[z]&lang=zh_cn&size=1&scl=1&style=8<ype=11", - zooms: _.zoomRange, - dataZooms: [3, 18], - opacity: 1, - tileSize: 256, - visible: !0, - projection: "EPSG:3857", - zIndex: 3 - }, fn = { - id: "flexible" + _.Util.uuid(), - zooms: _.zoomRange, - dataZooms: _.zoomRange, - opacity: 1, - tileSize: 256, - visible: !0, - projection: "EPSG:3857", - zIndex: 3 - }, cn = { - id: "wms" + _.Util.uuid(), - url: "", - zooms: _.zoomRange, - dataZooms: _.zoomRange, - opacity: 1, - tileSize: 512, - visible: !0, - projection: "EPSG:3857", - zIndex: 3 - }, ln = (hn = ci, - _.Ei(dn, hn), - dn.prototype.setTileUrl = function (t) { - t = 0 === (t = t.replace(/^\/\//, "").replace("http://", "")).indexOf("http") ? t : AMap.getConfig().protocol + "://" + t, - this._tileUrl = t, - this.reload() - } - , - dn.prototype.getTileUrl = function () { - return this._tileUrl - } - , - dn.prototype.getLayerConfig = function () { - var t = ""; - return this._tileUrl !== AMap.getConfig().qT && this._tileUrl !== AMap.getConfig().YT || (t = "GS(2021)6375"), - { - id: this._id, - tileUrl: this._tileUrl, - zooms: this.xt, - zIndex: this.Qh, - opacity: this.tl, - visible: this.il, - getTileUrl: this.ll, - mapNumber: t - } - } - , - dn.prototype.reload = function () { - var t = this.getSource(); - t && (t.setTileUrl(this._tileUrl), - t.reload(), - t.Fo(!1), - this.map) && this.map.setNeedUpdate(!0) - } - , - _.dZ([_.pZ("TileLayer")], dn)); - function dn(t) { - var i = this - , n = {}; - return (t = void 0 === t ? rn : t).getTileUrl && "string" == typeof t.getTileUrl && (t.tileUrl = t.getTileUrl, - delete t.getTileUrl), - n.tileUrl = void 0 === t.tileUrl ? AMap.getConfig().y_ : t.tileUrl, - n.tileUrl && (n.tileUrl = n.tileUrl.replace(/^\/\//, "").replace("http://", "")), - n.tileUrl = n.tileUrl && 0 === n.tileUrl.indexOf("http") ? n.tileUrl : AMap.getConfig().protocol + "://" + n.tileUrl, - n.id = t.id || "tile_" + _.Util.uuid(), - n.tileSize = t.tileSize || rn.tileSize, - "d" === _.Support.baseRender && _.Support.$e && (rn.dataZooms = [2, 20]), - n.dataZooms = t.dataZooms || rn.dataZooms, - n.zooms = t.zooms || rn.zooms, - n.projection = t.projection || rn.projection, - n.opacity = (void 0 === t.opacity ? rn : t).opacity, - n.visible = (void 0 === t.visible ? rn : t).visible, - n.zIndex = (void 0 === t.zIndex ? rn : t).zIndex, - n.rejectMapMask = t.rejectMapMask, - n.depthTest = void 0 !== t.depthTest && Boolean(t.depthTest), - n.map = t.map, - n.detectRetina = void 0 !== t.detectRetina && t.detectRetina, - n.cacheSize = t.cacheSize, - (i = hn.call(this, n) || this).type = t.type || "base", - i.ll = t.getTileUrl, - i.CLASS_NAME = "AMap.TileLayer", - i.onCreated(), - i - } - vn = ln, - _.Ei(pn, vn), - pn.prototype.getLayerConfig = function () { - var t = vn.prototype.getLayerConfig.call(this); - return t.mapNumber = "GS京(2022)1061", - t.OY = !0, - t - } - ; - var vn, Si = pn; - function pn(t) { - var i = this; - return (t = void 0 === t ? on : t).id = "satellite_" + _.Util.uuid(), - t.tileUrl = on.tileUrl, - t.zooms = (void 0 === t.zooms ? on : t).zooms, - t.opacity = (void 0 === t.opacity ? on : t).opacity, - t.visible = (void 0 === t.visible ? on : t).visible, - t.zIndex = (void 0 === t.zIndex ? on : t).zIndex, - (i = vn.call(this, t) || this).CLASS_NAME = "AMap.TileLayer.Satellite", - i.type = t.type || "base", - i.onCreated(), - i - } - mn = ln, - _.Ei(yn, mn), - yn.prototype.ul = function () { - clearInterval(this.cl) - } - , - yn.prototype.pl = function () { - var t = this; - this.dl && 0 < this.vl && (this.cl = setInterval(function () { - t.reload() - }, 1e3 * this.vl)) - } - ; - var mn, jt = yn; - function yn(t) { - var i = this; - return (t = void 0 === t ? an : t).id = "traffic_" + _.Util.uuid(), - t.tileUrl = an.tileUrl, - t.zooms = (void 0 === t.zooms ? an : t).zooms, - t.opacity = (void 0 === t.opacity ? an : t).opacity, - t.visible = (void 0 === t.visible ? an : t).visible, - t.zIndex = (void 0 === t.zIndex ? an : t).zIndex, - t.getTileUrl = t.getTileUrl || an.getTileUrl, - (i = mn.call(this, t) || this).vl = Math.max(30, t.interval || 60), - i.dl = void 0 === t.ml || t.ml, - i.CLASS_NAME = "AMap.TileLayer.Traffic", - i.type = t.type || "overlay", - i.onCreated(), - i.pl(), - i - } - bn = ln, - _.Ei(gn, bn), - gn.prototype.show = function () { - bn.prototype.show.call(this); - var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer"); - t && t.oP() && t.show() - } - , - gn.prototype.hide = function () { - bn.prototype.hide.call(this); - var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer"); - t && t.aP() && t.hide() - } - , - gn.prototype.v$ = function () { - bn.prototype.v$.call(this); - var t = this.map && this.map.getLayerByClass("AMap.Inner.LabelsLayer"); - t && t.aP() && t.hide() - } - ; - var bn, Xt = gn; - function gn(t) { - var i, n = this; - return (t = void 0 === t ? un : t).id = "roadNet_" + _.Util.uuid(), - t.tileUrl = un.tileUrl, - "d" === _.Support.baseRender && (t.tileUrl = null == (i = t.tileUrl) ? void 0 : i.replace("<ype=11", "")), - t.zooms = (void 0 === t.zooms ? un : t).zooms, - t.opacity = (void 0 === t.opacity ? un : t).opacity, - t.visible = (void 0 === t.visible ? un : t).visible, - t.zIndex = (void 0 === t.zIndex ? un : t).zIndex, - (n = bn.call(this, t) || this).CLASS_NAME = "AMap.TileLayer.RoadNet", - n.type = t.type || "overlay", - n.onCreated(), - n - } - Mn = ln, - _.Ei(kn, Mn), - kn.prototype.getLayerConfig = function () { - return { - id: this._id, - zooms: this.xt, - zIndex: this.Qh, - opacity: this.tl, - visible: this.il, - createTile: this.bl, - cacheSize: this.wl, - getTileUrl: this.ll, - rejectMapMask: this._rejectMapMask - } - } - , - kn.prototype.Hh = function (t) { - this.uo = t, - this.uo.getSource(this.co()).setTileCacheSize(this.wl) - } - ; - var Mn, hi = kn; - function kn(t) { - var i = this; - return (t = void 0 === t ? fn : t).id = fn.id, - t.id = "flexible_" + _.Util.uuid(), - t.zooms = (void 0 === t.zooms ? fn : t).zooms, - t.opacity = (void 0 === t.opacity ? fn : t).opacity, - t.visible = (void 0 === t.visible ? fn : t).visible, - t.zIndex = (void 0 === t.zIndex ? fn : t).zIndex, - (i = Mn.call(this, t) || this).bl = t.createTile, - i.CLASS_NAME = "AMap.TileLayer.Flexible", - i.type = t.type || "base", - i.onCreated(), - i - } - wn = ln, - _.Ei(xn, wn), - xn.prototype._l = function () { - this.kl.TileMatrixSet = this.kl.TileMatrixSet || "EPSG:3857", - this.kl.Request = "GetTile", - this.kl.Service = "WMTS", - this.kl.Format = this.kl.Format || "image/png", - this._tileUrl = this.Ml + "?" + _.Util.join(this.kl, "&"), - this.map && this.map.setNeedUpdate(!0) - } - , - xn.prototype.setParams = function (t) { - this.kl = _.assign({}, t), - this._l() - } - , - xn.prototype.getParams = function () { - return this.kl - } - , - xn.prototype.getUrl = function () { - return this.Ml - } - , - xn.prototype.setUrl = function (t) { - this.Ml = t, - this._l() - } - , - xn.prototype.getLayerConfig = function () { - return { - id: this._id, - zooms: this.xt, - zIndex: this.Qh, - opacity: this.tl, - visible: this.il, - Ll: this.kl, - createTile: this.bl, - getTileUrl: this.ll - } - } - ; - var wn, _t = xn; - function xn(t) { - var o = this; - return (t = void 0 === t ? fn : t).id = "wmts_" + _.Util.uuid(), - t.cacheSize = fn.cacheSize, - t.zooms = (void 0 === t.zooms ? fn : t).zooms, - t.opacity = (void 0 === t.opacity ? fn : t).opacity, - t.visible = (void 0 === t.visible ? fn : t).visible, - t.zIndex = (void 0 === t.zIndex ? fn : t).zIndex, - (o = wn.call(this, t) || this).kl = t.params || {}, - o.CLASS_NAME = "AMap.TileLayer.WMTS", - o.type = t.type || "base", - o._tileUrl = t.url, - o.Ml = t.url, - o.bl = function (t, i, n, s, e) { - var h, r = document.createElement("img"); - "w" === (null == (h = o.map) ? void 0 : h.baseRender) && (r.crossOrigin = "anonymous"), - r.onload = function () { - s(r) - } - , - r.onerror = function () { - e(r) - } - , - r.src = o._tileUrl + "&TileMatrix=" + n + "&TileRow=" + i + "&TileCol=" + t - } - , - o._l(), - o.onCreated(), - o - } - An = ln, - _.Ei(zn, An), - zn.prototype._l = function () { - this.kl.WIDTH = this.Xa, - this.kl.HEIGHT = this.Xa, - this.kl.CRS = this.kl.CRS || "EPSG:3857", - this.kl.REQUEST = "GetMap", - this.kl.SERVICE = "WMS", - this.kl.FORMAT = this.kl.FORMAT || "image/png", - this.kl.TRANSPARENT = void 0 === this.kl.TRANSPARENT ? "true" : this.kl.TRANSPARENT, - delete this.kl.BBOX, - this._tileUrl = this.Ml + "?" + _.Util.join(this.kl, "&") - } - , - zn.prototype.setParams = function (t) { - this.kl = _.assign({}, t), - this._l() - } - , - zn.prototype.getParams = function () { - return this.kl - } - , - zn.prototype.getUrl = function () { - return this.Ml - } - , - zn.prototype.setUrl = function (t) { - this.Ml = t, - this._l() - } - , - zn.prototype.getLayerConfig = function () { - return { - id: this._id, - zooms: this.xt, - zIndex: this.Qh, - opacity: this.tl, - visible: this.il, - Ll: this.kl, - createTile: this.bl, - getTileUrl: this.ll - } - } - ; - var An, Ht = zn; - function zn(t) { - var o = this; - return (t = void 0 === t ? cn : t).id = "wms_" + _.Util.uuid(), - t.cacheSize = fn.cacheSize, - t.zooms = (void 0 === t.zooms ? fn : t).zooms, - t.opacity = (void 0 === t.opacity ? fn : t).opacity, - t.visible = (void 0 === t.visible ? fn : t).visible, - t.zIndex = (void 0 === t.zIndex ? fn : t).zIndex, - (o = An.call(this, t) || this)._tileUrl = t.url, - o.Ml = t.url, - o.kl = t.params || {}, - o.CLASS_NAME = "AMap.TileLayer.WMS", - o.type = t.type || "base", - o.bl = function (t, i, n, s, e) { - var h = [(n = 2 * _.x_ / 256 / Math.pow(2, n) * o.Xa) * t - _.x_, _.x_ - n * (i + 1)] - , t = [n * (t + 1) - _.x_, _.x_ - n * i] - , r = document.createElement("img"); - "w" === (null == (n = o.map) ? void 0 : n.baseRender) && (r.crossOrigin = "anonymous"), - r.onload = function () { - s(r) - } - , - r.onerror = function () { - e(r) - } - , - o._l(), - r.src = o._tileUrl + "&BBOX=" + h + "," + t - } - , - o.bl = o.bl.bind(o), - o.onCreated(), - o - } - function Cn() { - this.Wl = !0, - this._position = _.Dl(), - _.Pl(this._position, 0, 0, 10), - this.Gl = _.Dl(), - _.Pl(this.Gl, 0, 0, -1), - this.jl = _.Dl(), - _.Pl(this.jl, 0, 0, -1), - this.El = _.Dl(), - _.Pl(this.El, 0, 1, 0), - this.Nl = _.Zl(), - this.Fl = _.Il(), - this.Bl = _.Il(), - this.ql = _.Il(), - this.Yl = _.Il() - } - ln.RoadNet = Xt, - ln.Satellite = Si, - ln.Traffic = "d" === _.Support.baseRender ? jt : ai, - ln.Flexible = hi, - ln.WMTS = _t, - ln.WMS = Ht, - Cn.prototype.lookAt = function (t) { - var i, n, s, e, h, r, o, a, u, f = _.Il(), c = _.Dl(); - _.Pl(this.jl, t[0], t[0], t[2]), - c = _.Ol(c, this.Fl), - f = _.lookAt(f, c, t, this.El), - c = this.Nl, - f = (t = f)[0], - n = t[4], - s = t[8], - e = t[1], - h = t[5], - r = t[9], - o = t[2], - a = t[6], - 0 < (u = f + h + (t = t[10])) ? (i = .5 / Math.sqrt(u + 1), - c[3] = .25 / i, - c[0] = (a - r) * i, - c[1] = (s - o) * i, - c[2] = (e - n) * i) : h < f && t < f ? (i = 2 * Math.sqrt(1 + f - h - t), - c[3] = (a - r) / i, - c[0] = .25 * i, - c[1] = (n + e) / i, - c[2] = (s + o) / i) : t < h ? (i = 2 * Math.sqrt(1 + h - f - t), - c[3] = (s - o) / i, - c[0] = (n + e) / i, - c[1] = .25 * i, - c[2] = (r + a) / i) : (i = 2 * Math.sqrt(1 + t - f - h), - c[3] = (e - n) / i, - c[0] = (s + o) / i, - c[1] = (r + a) / i, - c[2] = .25 * i), - this.$l() - } - , - Cn.prototype.setPosition = function (t) { - _.Pl(this._position, t[0], t[1], t[2]), - this.$l() - } - , - Cn.prototype.getPosition = function () { - return this._position - } - , - Cn.prototype.$l = function () { - var r, u, f, c, t = this.Fl, i = this._position, n = this.Nl, s = n[0], e = n[1], h = n[2], o = s * (f = s + s), a = s * (c = e + e); - s *= r = h + h, - u = e * c, - e *= r, - f *= n = n[3], - c *= n, - n *= r, - t[0] = 1 - (u + (h *= r)), - t[1] = a + n, - t[2] = s - c, - t[3] = 0, - t[4] = a - n, - t[5] = 1 - (o + h), - t[6] = e + f, - t[7] = 0, - t[8] = s + c, - t[9] = e - f, - t[10] = 1 - (o + u), - t[11] = 0, - t[12] = i[0], - t[13] = i[1], - t[14] = i[2], - t[15] = 1, - _.Ul(this.Bl, this.Fl) - } - , - Sn = Ft = Cn, - _.Ei(Tn, Sn), - Tn.prototype.Vl = function () { - var t = _.Il(); - return _.multiply(t, this.ql, this.Xl), - _.multiply(t, t, this.Bl), - t - } - , - Tn.prototype.setOptions = function (t, i, n, s, e, h) { - this.Hl = void 0 !== t ? t : -1, - this.Jl = void 0 !== i ? i : 1, - this.Kl = void 0 !== n ? n : 1, - this.Ql = void 0 !== s ? s : -1, - this.tu = void 0 !== e ? e : .1, - this.iu = void 0 !== h ? h : 1, - this.eu() - } - , - Tn.prototype.scale = function (t) { - void 0 === t && (t = 1); - var i = _.Il(); - i.set([t, 0, 0, 0, 0, t, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), - _.multiply(this.Xl, this.Xl, i) - } - , - Tn.prototype.setRotation = function (t) { - var i = _.Il() - , n = (t - this.nu) / 180 * Math.PI; - 0 !== (this.nu = t) && (i.set([Math.cos(n), -Math.sin(n), 0, 0, Math.sin(n), Math.cos(n), 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), - _.multiply(this.Xl, this.Xl, i)) - } - , - Tn.prototype.kt = function (t, i, n) { - var s, e, h, r, o, a; - void 0 !== t && (s = t.Rt, - e = t.zt, - h = t.center, - t = t.scale, - r = _.Il(), - a = _.Il(), - o = _.Il(), - r.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, e[0], e[1], 0, 1]), - a.set([t, 0, 0, 0, 0, t, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), - o.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -s[0], -s[1], 0, 1]), - _.multiply(r, r, a), - _.multiply(r, r, o), - _.multiply(this.Xl, this.Xl, r), - a = [(t = _.ProjectionManager.getProjection(i).project(h[0], h[1]))[0] - e[0] + s[0], t[1] - e[1] + s[1]], - n(_.ProjectionManager.getProjection(i).unproject(a[0], a[1]))) - } - , - Tn.prototype.Cu = function () { - return this.Yl - } - , - Tn.prototype.lB = function () { - return { - left: this.Hl, - right: this.Jl, - top: this.Kl, - bottom: this.Ql, - rotation: this.nu, - far: this.iu, - near: this.tu, - position: this._position - } - } - , - Tn.prototype.eu = function () { - var t = (this.Jl - this.Hl) / (2 * this.bt) - , i = (this.Kl - this.Ql) / (2 * this.bt) - , n = (this.Jl + this.Hl) / 2 - , s = (this.Kl + this.Ql) / 2; - _.ou(this.ql, n - t, n + t, s - i, s + i, this.tu, this.iu), - _.Ul(this.Yl, this.ql) - } - ; - var Sn, Ln = Tn; - function Tn(t, i, n, s, e, h) { - var r = Sn.call(this) || this; - return r.type = "OthoCamera", - r.bt = 1, - r.nu = 0, - r.Xl = _.Il(), - r.Hl = void 0 !== t ? t : -1, - r.Jl = void 0 !== i ? i : 1, - r.Kl = void 0 !== n ? n : 1, - r.Ql = void 0 !== s ? s : -1, - r.tu = void 0 !== e ? e : .1, - r.iu = void 0 !== h ? h : 1, - r.eu(), - r - } - In = _.Event, - _.Ei(p, In), - p.prototype.au = function () { - return this.su - } - , - p.prototype.ru = function () { - return _.ProjectionManager.getProjection(this.su) - } - , - p.prototype.setOptions = function (t, i) { - void 0 === i && (i = !0), - t.projectionId && (this.su = t.projectionId); - var n = _.ProjectionManager.getProjection(this.su); - if (t.center && (this.hu = t.center, - s = this.lu(n), - e = n.unproject(s[0], s[1]), - this.hu = e, - _.Pl(this.uu, s[0], s[1], 0), - this.cu.setPosition(this.fu())), - void 0 !== t.zoom && (t.zoom = Math.min(Math.max(t.zoom, this.map.getZooms()[0]), this.map.getZooms()[1]), - this.pu = Math.pow(2, t.zoom - this.bt), - this.bt = t.zoom, - this.du = n.getResolution(this.bt), - this.vu(), - this.cu.setPosition(this.fu())), - t.size && (this.map.emit("resize"), - this._size = t.size, - this.vu()), - void 0 !== t.rotation && "w" === _.Support.baseRender && (360 < t.rotation ? t.rotation -= 360 : t.rotation < -360 && (t.rotation += 360), - this.cu.setRotation(t.rotation), - this.nu = t.rotation), - t.kt) { - if (!this.map.getStatus().zoomEnable) - return; - var s, e, h = t.kt.Mt; - this.mu = t.kt, - h <= this.map.getZooms()[1] && h >= this.map.getZooms()[0] && (this.bt = h, - this.du = n.getResolution(this.bt), - h = (t = this.mu).Rt, - t = t.zt, - (s = this.lu(n))[0] = s[0] - t[0] + h[0], - s[1] = s[1] - t[1] + h[1], - e = n.unproject(s[0], s[1]), - this.hu = e, - _.Pl(this.uu, s[0], s[1], 0), - this.vu(), - this.cu.setPosition(this.fu()), - this.mu = void 0) - } - !this.h_() && i && this.map.setNeedUpdate(!0) - } - , - p.prototype.getOptions = function () { - return { - zoom: this.bt, - center: this.hu, - rotation: this.nu, - projectionId: this.su, - pitch: 0 - } - } - , - p.prototype.getStatus = function () { - var t = _.Zl() - , i = _.Zl() - , n = _.Zl() - , s = (this.xu(t, i, n), - _.Util.getOptimalZoom(this.bt)); - return { - pitch: this.Pu, - size: this._size, - rotation: this.nu, - zoom: this.bt, - optimalZoom: s, - resolution: this.du, - optimalResolution: _.ProjectionManager.getProjection(this.su).getResolution(s), - center: this.hu, - bounds: t, - boundsCoord: i, - transformedBoundsCoord: n, - centerCoord: this.uu, - projectionId: this.su, - mvpMatrix: this.cu.Vl(), - viewMode: this.type, - skyHeight: this.EF(), - fov: 60 - } - } - , - p.prototype.bu = function (t) { - this.hu = [t[0], t[1]], - t = _.ProjectionManager.getProjection(this.su).project(this.hu[0], this.hu[1]), - _.Pl(this.uu, t[0], t[1], 0) - } - , - p.prototype.containerTolnglat = function (t, i, n) { - var s, h = (e = this.getStatus()).centerCoord, e = e.rotation, h = _.V[this.su].transform(h[0], h[1], n), r = (h = 0 !== e ? (n = e / 180 * Math.PI, - e = t - this._size[0] / 2, - s = -(i - this._size[1] / 2), - r = Math.sqrt(e * e + s * s), - e = Math.atan(e / s) - n, - s < 0 && (e += Math.PI), - n = r * Math.sin(e), - s = r * Math.cos(e), - [h[0] + n * this.du, h[1] - s * this.du]) : [h[0] + (t - this._size[0] / 2) * this.du, h[1] + (i - this._size[1] / 2) * this.du], - h = _.V[this.su].Xs(h[0], h[1]), - _.ProjectionManager.getProjection(this.su).unproject(h[0], h[1])); - return r[0] = 180 < r[0] ? r[0] - 360 : r[0] < -180 ? r[0] + 360 : r[0], - r - } - , - p.prototype.lnglatToContainer = function (t, i, n, s) { - s = s || this.bt; - var h = (e = this.getStatus()).rotation - , e = e.centerCoord - , i = [(t = _.ProjectionManager.getProjection(this.su).project(t, i))[0], t[1]] - , t = { - center: e, - rotation: h, - size: this._size - }; - return _.V[this.su].wu(i[0], i[1], s, t) - } - , - p.prototype._u = function (t, i) { - (n = this.getStatus()).optimalZoom; - var s = n.zoom - , e = n.rotation - , n = { - center: n.centerCoord, - rotation: e, - size: this._size - }; - return _.V[this.su].wu(t, i, s, n) - } - , - p.prototype.ku = function (t, i) { - (n = this.getStatus()).optimalZoom, - n.centerCoord, - n.zoom, - n.rotation; - var n = this.containerTolnglat(t, i); - return (t = _.ProjectionManager.getProjection(this.su)).project.apply(t, n) - } - , - p.prototype.h_ = function () { - return _.Ru(this.Xl, this.cu.Vl()) - } - , - p.prototype.aD = function () { - return this.Xl = this.cu.Vl(), - this.Xl - } - , - p.prototype.EF = function () { - return 1 - } - , - p.prototype.pz = function () { - return this.cu - } - , - p.prototype.xu = function (t, i, n) { - var s = this.nu / 180 * Math.PI - , e = this._size - , e = [(Math.abs(e[0] * Math.cos(s)) + Math.abs(e[1] * Math.sin(s))) / 2 * this.du, (Math.abs(e[0] * Math.sin(s)) + Math.abs(e[1] * Math.cos(s))) / 2 * this.du] - , s = _.ProjectionManager.getProjection(this.su) - , h = this.uu[0] - e[0] - , r = this.uu[0] + e[0] - , o = this.uu[1] - e[1] - , e = this.uu[1] + e[1] - , a = s.unproject(h, o) - , s = s.unproject(r, e) - , h = (i[0] = h, - i[1] = o, - i[2] = r, - i[3] = e, - t[0] = a[0], - t[1] = a[1], - t[2] = s[0], - t[3] = s[1], - _.V[this.su].transform(i[0], i[3])) - , o = _.V[this.su].transform(i[2], i[1]); - return n[0] = h[0], - n[1] = h[1], - n[2] = o[0], - n[3] = o[1], - t - } - , - p.prototype.vu = function () { - var i = (t = this._size)[0] * this.du - , t = t[1] * this.du; - this.cu.setOptions(-i / 2, i / 2, t / 2, -t / 2, 1, 11e5) - } - , - p.prototype.fu = function () { - var t, i = _.Dl(); - return _.Util.getOptimalZoom(this.bt) < _.Ra ? _.Pl(i, this.uu[0], this.uu[1], this.cz) : (t = _.lcs.getDeltaCoord([this.uu[0], this.uu[1]]), - _.Pl(i, t[0], t[1], this.cz)), - i - } - , - p.prototype.lu = function (t) { - return this.hu[0] = 180 < this.hu[0] ? this.hu[0] - 360 : this.hu[0] < -180 ? this.hu[0] + 360 : this.hu[0], - t.project(this.hu[0], this.hu[1]) - } - ; - var In, Dn = p; - function p(t, i) { - var n = In.call(this) || this; - return n.type = "2D", - n.Pu = 0, - n.hu = [0, 0], - n.bt = 12, - n._size = [0, 0], - n.pu = 1, - n.nu = 0, - n.cu = new Ln(-1, 1, 1, -1, 10, 1e3), - n.su = "EPSG:3857", - n.uu = _.Dl(), - n.cz = 1e6, - n.du = _.ProjectionManager.getProjection(n.su).getResolution(12), - n.Xl = _.Il(), - n.bt = void 0 !== t.zoom ? t.zoom : 12, - n.map = i, - n.setOptions(t), - n.vu(), - n.Xl = n.cu.Vl(), - n - } - On = Ft, - _.Ei(m, On), - m.prototype.Vl = function () { - var t = []; - return _.multiply(t, this.ql, this.zu), - t - } - , - m.prototype.Su = function () { - return this.ql - } - , - m.prototype.Cu = function () { - return this.Yl - } - , - m.prototype.Lu = function () { - return this.zu - } - , - m.prototype.Au = function () { - return this.cu - } - , - m.prototype.setOptions = function (t, i, n, s, e) { - void 0 === t && (t = [1, 1]), - void 0 === n && (n = 1), - void 0 === s && (s = 1), - void 0 === e && (e = 10), - this.Tu = this.Iu(i = void 0 === i ? 60 : i), - this.tu = s, - this.iu = e, - this.Du = n, - this._size = t, - this.eu() - } - , - m.prototype.setSize = function (t) { - this._size = t - } - , - m.prototype.setPitch = function (t) { - this.Pu = void 0 !== t ? t : this.Pu; - var t = this._size[1] / 2 / Math.tan(this.Tu / 2) - , i = this.Iu(this.Pu) - , n = this.Iu(this.nu) - , s = t * Math.sin(i) - , e = this.jl[0] - s * Math.sin(n) - , s = this.jl[1] - s * Math.cos(n) - , n = t * Math.cos(i); - _.Pl(this._position, e, s, n), - this.ju() - } - , - m.prototype.setRotation = function (t) { - this.nu = void 0 !== t ? -t : this.nu; - var t = this.Iu(this.nu) - , i = Math.sin(t) - , t = Math.cos(t); - _.Pl(this.El, i, t, 0), - this.Ou() - } - , - m.prototype.Fu = function (t, i, n) { - _.Pl(this.jl, t, i, n), - this.ju() - } - , - m.prototype.Ou = function (t, i, n) { - void 0 !== t && void 0 !== i ? (_.Pl(this._position, t, i, void 0 === n ? this._position[2] : n), - this.ju()) : (t = this._size[1] / 2 / Math.tan(this.Tu / 2), - _.Pl(this._position, this.jl[0], this.jl[1], t), - this.setPitch()) - } - , - m.prototype.Eu = function (t) { - var i = this._size; - this.cz = t || i[1] / 2 / Math.tan(this.Tu / 2) || 0, - _.Pl(this._position, this._position[0], this._position[1], this.cz), - this.setPitch() - } - , - m.prototype.Nu = function (t, i, n) { - _.Pl(this.El, t = void 0 === t ? 0 : t, i = void 0 === i ? 1 : i, n = void 0 === n ? 0 : n), - this.ju() - } - , - m.prototype.dz = function () { - return this.cz - } - , - m.prototype.lB = function () { - return { - fov: this.Tu, - target: this.jl, - up: this.El, - position: this._position, - far: this.iu, - near: this.tu - } - } - , - m.prototype.eu = function () { - _.perspective(this.ql, this.Tu, this.Du, this.tu, this.iu), - _.Ul(this.Yl, this.ql) - } - , - m.prototype.ju = function () { - _.lookAt(this.zu, this._position, this.jl, this.El), - _.Ul(this.cu, this.zu) - } - , - m.prototype.Iu = function (t) { - return t * Math.PI / 180 - } - ; - var On, En = m; - function m(t, i, n, s, e) { - void 0 === t && (t = [1, 1]), - void 0 === i && (i = 60), - void 0 === n && (n = 1), - void 0 === s && (s = 10), - void 0 === e && (e = 2e4); - var h = On.call(this) || this; - return h.Wt = "PerspectiveCamera", - h.Pu = 0, - h.nu = 0, - h.cu = _.Il(), - h.zu = _.Il(), - h.cz = 0, - h.Tu = h.Iu(i), - h.tu = s, - h.iu = e, - h.Du = n, - _.Pl(h.El, 0, 1, 0), - h._size = t, - h.eu(), - h - } - Rn = _.Event, - _.Ei(y, Rn), - y.prototype.setOptions = function (t) { - var i = _.ProjectionManager.getProjection(this.su); - if (t.projectionId && (this.su = t.projectionId), - t.size && (this.map.emit("resize"), - this._size = t.size, - this.vu(), - this.cu.Ou()), - void 0 !== t.rotation && "w" === _.Support.baseRender && (this.cu.setRotation(t.rotation), - this.nu = t.rotation), - void 0 !== t.zoom && (t.zoom = Math.min(Math.max(t.zoom, this.map.getZooms()[0]), this.map.getZooms()[1]), - n = this.bt, - this.bt = t.zoom, - this.du = i.getResolution(this.bt), - e = this.fu(), - (_.Util.getOptimalZoom(t.zoom) < _.Ra && _.Util.getOptimalZoom(n) >= _.Ra || _.Util.getOptimalZoom(t.zoom) >= _.Ra && _.Util.getOptimalZoom(n) < _.Ra) && (s = this.fu(), - this.cu.Fu(s[0], s[1], 0), - this.cu.Ou(), - this.vu()), - this.cu.Fu(e[0], e[1], 0), - this.cu.Ou(), - this.vu()), - void 0 !== t.pitch && "w" === _.Support.baseRender && (t.pitch > this.$u() || this.Pu > this.$u() ? t.pitch = this.$u() : (t.pitch < 0 || this.Pu < 0) && (t.pitch = 0), - this.Pu = Math.min(t.pitch, this.$u()), - this.cu.setPitch(t.pitch)), - t.center && (this.hu = t.center, - h = this.lu(i), - _.Pl(this.uu, h[0], h[1], 0), - e = this.fu(), - s = i.unproject(h[0], h[1]), - this.hu = s, - this.cu.Fu(e[0], e[1], 0), - this.cu.Ou()), - t.kt) { - if (!this.map.getStatus().zoomEnable) - return; - var n = this.bt - , n = (this.bt = Math.min(Math.max(t.kt.Mt, this.map.getZooms()[0]), this.map.getZooms()[1]), - this.du = i.getResolution(this.bt), - (_.Util.getOptimalZoom(t.kt.Mt) < _.Ra && _.Util.getOptimalZoom(n) >= _.Ra || _.Util.getOptimalZoom(t.kt.Mt) >= _.Ra && _.Util.getOptimalZoom(n) < _.Ra) && (s = this.fu(), - this.cu.Fu(s[0], s[1], 0), - this.cu.Ou()), - this.lu(i)) - , s = t.kt.pos - , i = this.X(s[0], s[1]) - , t = _.lcs.getLocalByCoord([n[0], n[1]]) - , e = (this.vu(), - this.fu()); - this.cu.Fu(e[0], e[1], 0), - this.cu.Ou(); - var s = [(s = this.X(s[0], s[1]))[0] - i[0], s[1] - i[1]] - , i = [e[0] - s[0], e[1] - s[1]] - , h = [n[0] - s[0], n[1] - s[1]] - , e = _.lcs.getLocalByCoord(h); - this.bt >= _.Ra && (e.x !== t.x || t.y !== e.y) && (n = e.x - t.x, - s = e.y - t.y, - i[0] -= n * _.lcs.getSize()[0], - i[1] -= s * _.lcs.getSize()[1]), - this.cu.Fu(i[0], i[1], 0), - this.cu.Ou(), - this.bu(h) - } - this.h_() || this.map.setNeedUpdate(!0) - } - , - y.prototype.bu = function (t) { - var i = _.ProjectionManager.getProjection(this.su) - , i = (_.Pl(this.uu, t[0], t[1], 0), - i.unproject(t[0], t[1])); - this.hu = i - } - , - y.prototype.getOptions = function () { - return { - size: this._size, - zoom: this.bt, - center: this.hu, - rotation: this.nu, - projectionId: this.su, - pitch: this.Pu, - resolution: this.du - } - } - , - y.prototype.au = function () { - return this.su - } - , - y.prototype.ru = function () { - return _.ProjectionManager.getProjection(this.su) - } - , - y.prototype.getStatus = function () { - var t = _.Zl() - , i = _.Zl() - , n = _.Zl() - , s = (this.xu(t, i, n), - _.Util.getOptimalZoom(this.bt)); - return { - size: this._size, - pitch: this.Pu, - rotation: this.nu, - zoom: this.bt, - optimalZoom: s, - resolution: this.du, - optimalResolution: _.ProjectionManager.getProjection(this.su).getResolution(s), - center: this.hu, - bounds: t, - boundsCoord: i, - transformedBoundsCoord: n, - centerCoord: this.uu, - projectionId: this.su, - mvpMatrix: this.cu.Vl(), - modelMatrix: this.cu.Au(), - viewMode: this.type, - skyHeight: this.EF(), - fov: this.cu.Tu - } - } - , - y.prototype.$u = function (t) { - return 80 - } - , - y.prototype.Uu = function (t) { - var t = void 0 !== t ? t : this.Pu - , i = this.bt - , t = Math.max(t / 100 - .4, 0) - , i = Math.max(4 * (i - 22), 0) / 100; - return this._size[1] * (t - i) - 10 - } - , - y.prototype.EF = function () { - var t = 1; - return 0 < (t = this.Uu()) ? 1 - t / this._size[1] * 2 : 1 - } - , - y.prototype.X = function (t, i) { - var n, s = this.cu.Cu(), e = this.cu.Au(), h = this._size; - return t = t / h[0] * 2 - 1, - i = 1 - i / h[1] * 2, - s ? (h = _.Bu(t, i, -1, 1), - this.Wu(h, this.tu), - n = _.Zl(), - _.Gu(n, h, s), - h = _.Bu(t, i, 1, 1), - this.Wu(h, this.iu), - t = _.Zl(), - _.Gu(t, h, s), - i = _.Zl(), - _.Gu(i, n, e), - h = _.Zl(), - _.Gu(h, t, e), - s = +i[2] / (i[2] - h[2]), - [i[0] - s * (i[0] - h[0]), i[1] - s * (i[1] - h[1])]) : [0, 0] - } - , - y.prototype.ku = function (t, i) { - var n = _.Util.getOptimalZoom(this.bt) - , s = this.uu - , e = this.X(t, i); - return t = e[0], - i = e[1], - n >= _.Ra && (t += (e = _.lcs.getLocalByCoord([s[0], s[1]])).center[0], - i += e.center[1]), - [t, i] - } - , - y.prototype.H = function (t, i, n) { - void 0 === n && (n = 0); - var s = this.cu.Su() - , e = this.cu.Lu() - , t = ((h = this.fG)[0] = t, - h[1] = i, - h[2] = n, - this.uG) - , i = this.cG - , n = (_.Gu(t, h, e), - _.Gu(i, t, s), - _.scale(i, i, 1 / i[3]), - (i[0] + 1) / 2 * this._size[0]) - , h = (1 - i[1]) / 2 * this._size[1]; - return this.lG(i), - this.lG(t), - [n, h] - } - , - y.prototype._u = function (t, i, n) { - void 0 === n && (n = 0); - var s = _.Util.getOptimalZoom(this.bt) - , e = this.uu; - return s >= _.Ra && (t -= (s = _.lcs.getLocalByCoord([e[0], e[1]])).center[0], - i -= s.center[1]), - this.H(t, i, n) - } - , - y.prototype.containerTolnglat = function (t, i) { - var t = this.X(t, i) - , i = 0 - , n = 0 - , s = (_.Util.getOptimalZoom(this.bt) >= _.Ra && (i = (s = _.lcs.getLocalByCoord([this.uu[0], this.uu[1]]).center)[0], - n = s[1]), - t[0] += i, - t[1] += n, - _.ProjectionManager.getProjection(this.su).unproject(t[0], t[1])); - return s[0] = 180 < s[0] ? s[0] - 360 : s[0] < -180 ? s[0] + 360 : s[0], - s - } - , - y.prototype.lnglatToContainer = function (t, i, n, s) { - return void 0 === n && (n = 0), - t = _.ProjectionManager.getProjection(this.su).project(t, i), - _.Util.getOptimalZoom(this.bt) >= _.Ra && (i = _.lcs.getLocalByCoord([this.uu[0], this.uu[1]]), - t[0] -= i.center[0], - t[1] -= i.center[1]), - this.H(t[0], t[1], n) - } - , - y.prototype.pz = function () { - return this.cu - } - , - y.prototype.h_ = function () { - return _.Ru(this.Xl, this.cu.Vl()) - } - , - y.prototype.aD = function () { - return this.Xl = this.cu.Vl(), - this.Xl - } - , - y.prototype.xu = function (t, i, n) { - var s = 0 - , e = 0 - , h = this.Uu() - , r = (_.Util.getOptimalZoom(this.bt) >= _.Ra && (s = (r = _.lcs.getLocalByCoord([this.uu[0], this.uu[1]]).center)[0], - e = r[1]), - _.ProjectionManager.getProjection(this.su)) - , o = this.X(0, h) - , a = this.X.apply(this, this._size) - , h = this.X(this._size[0], h) - , u = this.X(0, this._size[1]) - , f = Math.min(o[0], u[0], h[0], a[0]) + s - , s = Math.max(o[0], u[0], h[0], a[0]) + s - , c = Math.min(o[1], u[1], h[1], a[1]) + e - , o = Math.max(o[1], u[1], h[1], a[1]) + e - , u = r.unproject(f, c) - , h = r.unproject(s, o) - , a = (i[0] = f, - i[1] = c, - i[2] = s, - i[3] = o, - t[0] = u[0], - t[1] = u[1], - t[2] = h[0], - t[3] = h[1], - _.V[this.su].transform(i[0], i[3])) - , e = _.V[this.su].transform(i[2], i[1]); - return n[0] = a[0], - n[1] = a[1], - n[2] = e[0], - n[3] = e[1], - t - } - , - y.prototype.vu = function () { - var t = this._size - , i = t[0] * this.du - , n = t[1] * this.du - , s = (this.cu.setSize([i, n]), - this.cu.Eu(), - this.cu.dz()) - , s = (this.tu = s / 10, - this.iu = 50 * s, - 56 - this.bt); - this.cu.setOptions([i, n], s, t[0] / t[1], this.tu, this.iu), - this.cu.Eu() - } - , - y.prototype.fu = function () { - var t; - return _.Util.getOptimalZoom(this.bt) < _.Ra ? [this.uu[0], this.uu[1]] : [(t = _.lcs.getDeltaCoord([this.uu[0], this.uu[1]]))[0], t[1]] - } - , - y.prototype.lu = function (t) { - return this.hu[0] = 180 < this.hu[0] ? this.hu[0] - 360 : this.hu[0] < -180 ? this.hu[0] + 360 : this.hu[0], - t.project(this.hu[0], this.hu[1]) - } - , - y.prototype.Wu = function (t, i) { - t[0] *= i, - t[1] *= i, - t[2] *= i, - t[3] *= i - } - , - y.prototype.lG = function (t) { - for (var i = t.length, n = 0; n < i; n++) - t[n] = 0 - } - ; - var Rn, Pn = y; - function y(t, i) { - var n = Rn.call(this) || this; - return n.type = "3D", - n.Pu = 0, - n.hu = [116.397128, 39.916527], - n.bt = 12, - n.tu = 1e3, - n.iu = 1 << 30, - n._size = [0, 0], - n.nu = 0, - n.cu = new En, - n.su = "EPSG:3857", - n.uu = _.Dl(), - n.du = _.ProjectionManager.getProjection(n.su).getResolution(12), - n.Xl = _.Il(), - n.fG = [0, 0, 0, 1], - n.uG = [0, 0, 0, 0], - n.cG = [0, 0, 0, 0], - n.map = i, - n.setOptions(t), - n.cu.Ou(n.uu[0], n.uu[1]), - n.Xl = n.cu.Vl(), - n - } - var jn = { - Fe: ["water", "buildings", "sky", "atmosphere", "bg", "traffic"], - aX: { - regions: { - subType: { - land: { - styleMap: [{ - mainkey: 30001, - subkey: [1, 4, 5] - }], - name: ["区域面", "陆地"] - }, - green: { - styleMap: [{ - mainkey: 30001, - subkey: [3, 7, 8, 9, 10, 12, 37] - }], - name: ["区域面", "绿地"] - }, - "water:ocean": { - styleMap: [{ - mainkey: 30001, - subkey: [6] - }, { - mainkey: 10002, - subkey: [38] - }], - name: ["区域面", "海洋"] - }, - "water:watersystem": { - styleMap: [{ - mainkey: 30001, - subkey: [2, 11, 13] - }, { - mainkey: 20014 - }, { - mainkey: 10002, - subkey: [13] - }], - name: ["区域面", "其他水系"] - }, - edu: { - styleMap: [{ - mainkey: 30002, - subkey: [3, 31] - }, { - mainkey: 30005, - subkey: [1, 2, 3, 4, 5, 6] - }], - name: ["区域面", "教育体育"] - }, - scenicSpot: { - styleMap: [{ - mainkey: 30002, - subkey: [5, 33, 41] - }], - name: ["区域面", "景区"] - }, - sports: { - styleMap: [{ - mainkey: 30002, - subkey: [9, 10, 13, 19, 20, 21, 34, 37, 39] - }], - name: ["区域面", "运动场所"] - }, - parkingLot: { - styleMap: [{ - mainkey: 30002, - subkey: [1] - }], - name: ["区域面", "停车场"] - }, - subway: { - styleMap: [{ - mainkey: 30003 - }], - name: ["区域面", "地铁设施"] - }, - servicearea: { - styleMap: [{ - mainkey: 30002, - subkey: [42, 43] - }], - name: ["区域面", "高速服务区"] - }, - desert: { - styleMap: [{ - mainkey: 30002, - subkey: [41] - }], - name: ["区域面", "沙漠沙地"] - }, - culture: { - styleMap: [{ - mainkey: 30002, - subkey: [7, 35] - }], - name: ["区域面", "文化"] - }, - public: { - styleMap: [{ - mainkey: 30002, - subkey: [4, 12, 22, 32, 42, 43] - }, { - mainkey: 30005, - subkey: [7] - }], - name: ["区域面", "公共设施"] - }, - health: { - styleMap: [{ - mainkey: 30002, - subkey: [8, 36] - }], - name: ["区域面", "医疗卫生"] - }, - business: { - styleMap: [{ - mainkey: 30002, - subkey: [11, 23, 24, 25, 26, 27, 28, 29, 30, 38] - }], - name: ["区域面", "商业场所"] - }, - transporthub: { - styleMap: [{ - mainkey: 30002, - subkey: [6, 14, 40] - }, { - mainkey: 30004 - }], - name: ["区域面", "交通枢纽"] - } - } - }, - roads: { - subType: { - "highWay:highway": { - styleMap: [{ - mainkey: 20001, - subkey: [1, 5] - }], - name: ["道路", "高速"] - }, - "highWay:highwayTunnel": { - styleMap: [{ - mainkey: 20001, - subkey: [3] - }], - name: ["道路", "高速隧道"] - }, - "highWay:highwayOthers": { - styleMap: [{ - mainkey: 20001, - subkey: [2, 6] - }], - name: ["道路", "高速其他路"] - }, - "ringRoad:ringRoad": { - styleMap: [{ - mainkey: 20002, - subkey: [1, 5] - }], - name: ["道路", "环路"] - }, - "ringRoad:ringRoadTunnel": { - styleMap: [{ - mainkey: 20002, - subkey: [3] - }], - name: ["道路", "环路隧道"] - }, - "ringRoad:ringRoadOthers": { - styleMap: [{ - mainkey: 20002, - subkey: [2] - }], - name: ["道路", "环路其他路"] - }, - "nationalRoad:nationalRoad": { - styleMap: [{ - mainkey: 20003, - subkey: [1] - }], - name: ["道路", "国道"] - }, - "nationalRoad:nationalRoadTunnel": { - styleMap: [{ - mainkey: 20003, - subkey: [3] - }], - name: ["道路", "国道隧道"] - }, - "nationalRoad:nationalRoadOthers": { - styleMap: [{ - mainkey: 20003, - subkey: [2, 5] - }], - name: ["道路", "国道其他路"] - }, - "provincialRoad:provincialRoad": { - styleMap: [{ - mainkey: 20004, - subkey: [1] - }], - name: ["道路", "省道"] - }, - "provincialRoad:provincialRoadTunnel": { - styleMap: [{ - mainkey: 20004, - subkey: [3] - }], - name: ["道路", "省道隧道"] - }, - "provincialRoad:provincialRoadOthers": { - styleMap: [{ - mainkey: 20004, - subkey: [2] - }], - name: ["道路", "省道其他路"] - }, - secondaryRoad: { - styleMap: [{ - mainkey: 20007 - }, { - mainkey: 20031 - }, { - mainkey: 20032 - }], - name: ["道路", "二级道路"] - }, - levelThreeRoad: { - styleMap: [{ - mainkey: 20008 - }], - name: ["道路", "三级道路"] - }, - levelFourRoad: { - styleMap: [{ - mainkey: 20009 - }, { - mainkey: 20026 - }], - name: ["道路", "四级道路"] - }, - roadsBeingBuilt: { - styleMap: [{ - mainkey: 20018 - }, { - mainkey: 20023 - }], - name: ["道路", "在建道路"] - }, - railway: { - styleMap: [{ - mainkey: 20010, - subkey: [1, 3] - }], - name: ["道路", "铁路"] - }, - highSpeedRailway: { - styleMap: [{ - mainkey: 20010, - subkey: [2] - }], - name: ["道路", "高铁"] - }, - subway: { - styleMap: [{ - mainkey: 20015, - subkey: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190] - }], - name: ["道路", "地铁"] - }, - subwayBeingBuilt: { - styleMap: [{ - mainkey: 20015, - subkey: [1, 2] - }, { - mainkey: 20019 - }], - name: ["道路", "在建地铁"] - }, - overPass: { - styleMap: [{ - mainkey: 20012 - }], - name: ["道路", "天桥"] - }, - underPass: { - styleMap: [{ - mainkey: 20013 - }], - name: ["道路", "地道"] - }, - other: { - styleMap: [{ - mainkey: 20011 - }, { - mainkey: 20017 - }, { - mainkey: 20020 - }, { - mainkey: 20024 - }, { - mainkey: 20028 - }], - name: ["道路", "其他线路"] - }, - guideBoards: { - styleMap: [{ - mainkey: 40001 - }], - name: ["道路", "道路路牌"] - } - } - }, - labels: { - subType: { - "building:officebuilding": { - styleMap: [{ - mainkey: 10001, - subkey: [5, 74, 75, 76, 77, 78, 79] - }, { - mainkey: 10004, - subkey: [12] - }], - name: ["标注", "商务大厦"] - }, - "building:residence": { - styleMap: [{ - mainkey: 10001, - subkey: [6, 80, 81] - }], - name: ["标注", "住宅"] - }, - "building:landmark": { - styleMap: [{ - mainkey: 10007, - subkey: [187, 188, 189, 190, 192, 193, 195, 196, 198] - }], - name: ["标注", "地标建筑"] - }, - "repast:restaurant": { - styleMap: [{ - mainkey: 10001, - subkey: [19, 20, 114, 115, 116, 117, 118, 119] - }, { - mainkey: 10007, - subkey: [179, 180, 181] - }, { - mainkey: 10010, - subkey: [5, 6] - }], - name: ["标注", "餐厅"] - }, - "repast:tearoom": { - styleMap: [{ - mainkey: 10007, - subkey: [167] - }], - name: ["标注", "茶馆"] - }, - "repast:cafe": { - styleMap: [{ - mainkey: 10001, - subkey: [22] - }, { - mainkey: 10007, - subkey: [215] - }], - name: ["标注", "咖啡厅"] - }, - "repast:dessert": { - styleMap: [{ - mainkey: 10007, - subkey: [166] - }], - name: ["标注", "甜品店"] - }, - "entertainment:mall": { - styleMap: [{ - mainkey: 10001, - subkey: [7, 68, 82, 83, 84, 85, 93, 94, 98] - }, { - mainkey: 10004, - subkey: [8, 18] - }, { - mainkey: 10007, - subkey: [175, 200, 201, 202, 203, 204] - }], - name: ["标注", "购物商场"] - }, - "entertainment:market": { - styleMap: [{ - mainkey: 10001, - subkey: [8, 92] - }, { - mainkey: 10007, - subkey: [1, 2, 3, 4, 5, 6, 10, 168] - }], - name: ["标注", "便利超市"] - }, - "entertainment:cinema": { - styleMap: [{ - mainkey: 10001, - subkey: [60] - }, { - mainkey: 10007, - subkey: [178] - }], - name: ["标注", "影剧院"] - }, - "entertainment:entertainment": { - styleMap: [{ - mainkey: 10001, - subkey: [61, 62] - }, { - mainkey: 10007, - subkey: [169] - }], - name: ["标注", "娱乐场所"] - }, - "entertainment:pedestrainmall": { - styleMap: [{ - mainkey: 10001, - subkey: [99] - }], - name: ["标注", "步行街"] - }, - "entertainment:hotel": { - styleMap: [{ - mainkey: 10001, - subkey: [9, 133, 134, 135, 136] - }], - name: ["标注", "酒店"] - }, - "entertainment:zoo": { - styleMap: [{ - mainkey: 10001, - subkey: [38, 103] - }], - name: ["标注", "动物园"] - }, - "entertainment:funfair": { - styleMap: [{ - mainkey: 10001, - subkey: [37, 73, 184, 185, 188, 203, 204, 205] - }], - name: ["标注", "游乐场"] - }, - "scenic:attraction": { - styleMap: [{ - mainkey: 10001, - subkey: [4, 12, 104, 105, 106, 107, 108, 109, 110, 111, 112, 120, 167, 168, 171, 213] - }, { - mainkey: 10004, - subkey: [3, 13, 21] - }, { - mainkey: 10007, - subkey: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 229, 230, 231, 236] - }, { - mainkey: 10008 - }], - name: ["标注", "风景名胜"] - }, - "scenic:park": { - styleMap: [{ - mainkey: 10001, - subkey: [14, 69, 100, 101, 102] - }], - name: ["标注", "公园"] - }, - "scenic:mountain": { - styleMap: [{ - mainkey: 10001, - subkey: [18] - }], - name: ["标注", "山"] - }, - "traffic:busstop": { - styleMap: [{ - mainkey: 10001, - subkey: [24] - }], - name: ["标注", "公交站"] - }, - "traffic:port": { - styleMap: [{ - mainkey: 10001, - subkey: [36] - }], - name: ["标注", "港口"] - }, - "traffic:transporthub": { - styleMap: [{ - mainkey: 10001, - subkey: [2, 27, 28, 29, 30, 31, 172, 175] - }, { - mainkey: 10004, - subkey: [4, 10, 14, 20] - }], - name: ["标注", "交通枢纽"] - }, - "traffic:trainstation": { - styleMap: [{ - mainkey: 10001, - subkey: [26] - }], - name: ["标注", "火车站"] - }, - "traffic:airportterminal": { - styleMap: [{ - mainkey: 10001, - subkey: [23, 176, 177, 178] - }, { - mainkey: 10009 - }], - name: ["标注", "机场航站楼"] - }, - "traffic:coachstation": { - styleMap: [{ - mainkey: 10001, - subkey: [25] - }], - name: ["标注", "长途汽车站"] - }, - culture: { - styleMap: [{ - mainkey: 10001, - subkey: [10, 11, 13, 35, 138, 139, 140, 141, 142, 143, 163, 164, 165, 166, 170] - }, { - mainkey: 10004, - subkey: [1, 5, 11, 15] - }, { - mainkey: 10007, - subkey: [43, 44, 45, 46, 47, 176, 177] - }] - }, - "service:lifestyle": { - styleMap: [{ - mainkey: 10001, - subkey: [58, 63, 64, 65, 66, 67, 121, 122, 123, 173, 214] - }, { - mainkey: 10007, - subkey: [28, 29, 30, 58] - }], - name: ["标注", "生活服务"] - }, - "service:bank": { - styleMap: [{ - mainkey: 10007, - subkey: [14, 15, 16, 17] - }], - name: ["标注", "银行"] - }, - "service:restroom": { - styleMap: [{ - mainkey: 10001, - subkey: [59] - }], - name: ["标注", "卫生间"] - }, - "medical:medicalcenter": { - styleMap: [{ - mainkey: 10001, - subkey: [70] - }, { - mainkey: 10004, - subkey: [6, 16] - }], - name: ["标注", "大型医院"] - }, - "medical:hospital": { - styleMap: [{ - mainkey: 10001, - subkey: [32, 33, 169, 206, 207, 208, 209, 210] - }, { - mainkey: 10007, - subkey: [170] - }], - name: ["标注", "医院"] - }, - "medical:emergencycenter": { - styleMap: [{ - mainkey: 10001, - subkey: [132] - }], - name: ["标注", "急救中心"] - }, - "medical:clinic": { - styleMap: [{ - mainkey: 10001, - subkey: [131] - }, { - mainkey: 10007, - subkey: [209] - }], - name: ["标注", "诊所"] - }, - "medical:pharmacy": { - styleMap: [{ - mainkey: 10001, - subkey: [57] - }], - name: ["标注", "药店"] - }, - "casual:golf": { - styleMap: [{ - mainkey: 10004, - subkey: [7, 17] - }], - name: ["标注", "高尔夫"] - }, - "casual:swimmingpool": { - styleMap: [{ - mainkey: 10007, - subkey: [171] - }], - name: ["标注", "游泳馆"] - }, - "casual:basketballcourt": { - styleMap: [{ - mainkey: 10001, - subkey: [129] - }], - name: ["标注", "篮球馆"] - }, - "casual:soccerfield": { - styleMap: [{ - mainkey: 10001, - subkey: [130] - }], - name: ["标注", "足球场"] - }, - "casual:tenniscourt": { - styleMap: [{ - mainkey: 10007, - subkey: [174] - }], - name: ["标注", "网球场"] - }, - "casual:otherstadium": { - styleMap: [{ - mainkey: 10001, - subkey: [15, 16, 17, 124, 125, 126, 127, 128] - }, { - mainkey: 10007, - subkey: [172, 173] - }], - name: ["标注", "其他体育馆"] - }, - "point:toll": { - styleMap: [{ - mainkey: 10001, - subkey: [218] - }], - name: ["标注", "收费站"] - }, - "point:trafficlight": { - styleMap: [{ - mainkey: 10001, - subkey: [2] - }], - name: ["标注", "红绿灯"] - }, - "point:tunnel": { - styleMap: [{ - mainkey: 10002, - subkey: [16] - }], - name: ["标注", "隧道"] - }, - insurance: { - styleMap: [{ - mainkey: 10001, - subkey: [42, 55] - }], - name: ["标注", "金融保险"] - }, - motorcycleservices: { - styleMap: [{ - mainkey: 10001, - subkey: [113] - }], - name: ["标注", "摩托车服务"] - }, - automobileservices: { - styleMap: [{ - mainkey: 10001, - subkey: [39, 40, 41, 71, 72] - }, { - mainkey: 10007, - subkey: [40, 41, 42] - }], - name: ["标注", "汽车服务"] - }, - subway: { - styleMap: [{ - mainkey: 10005 - }, { - mainkey: 10006 - }], - name: ["标注", "地铁站"] - }, - transportfacilities: { - styleMap: [{ - mainkey: 10001, - subkey: [149, 150, 215, 216, 217] - }, { - mainkey: 10002, - subkey: [11] - }, { - mainkey: 11001, - subkey: [1, 2, 3] - }, { - mainkey: 10004, - subkey: [22, 23] - }], - name: ["标注", "道路附属设施"] - }, - bizcircle: { - styleMap: [{ - mainkey: 10002, - subkey: [10] - }], - name: ["标注", "商圈"] - }, - others: { - styleMap: [{ - mainkey: 10001, - subkey: [1, 3, 34, 43, 137] - }, { - mainkey: 10002, - subkey: [12, 14, 15, 21, 23, 28, 36] - }, { - mainkey: 10004, - subkey: [2] - }, { - mainkey: 10007, - subkey: [208, 210, 211, 212, 213, 214] - }, { - mainkey: 10011 - }, { - mainkey: 10012 - }, { - mainkey: 10013 - }, { - mainkey: 10014 - }, { - mainkey: 10015 - }, { - mainkey: 10016 - }], - name: ["标注", "其他"] - } - } - }, - districtsname: { - subType: { - continent: { - styleMap: [{ - mainkey: 10002, - subkey: [20] - }], - name: ["行政区名", "大洲名"] - }, - country_cn: { - styleMap: [{ - mainkey: 10002, - subkey: [18] - }], - name: ["行政区名", "中国国家名"] - }, - country_global: { - styleMap: [{ - mainkey: 10002, - subkey: [19] - }], - name: ["行政区名", "世界国家名"] - }, - capital_global: { - styleMap: [{ - mainkey: 10002, - subkey: [24, 35] - }], - name: ["行政区名", "境外首都名"] - }, - state: { - styleMap: [{ - mainkey: 10002, - subkey: [1, 3, 4, 22, 26, 30, 32, 33, 34] - }], - name: ["行政区名", "省/直辖市/特别行政区名"] - }, - "city:provincial_capital": { - styleMap: [{ - mainkey: 10002, - subkey: [2, 31] - }], - name: ["行政区名", "省会名"] - }, - "city:city": { - styleMap: [{ - mainkey: 10002, - subkey: [5, 7, 25, 27] - }], - name: ["行政区名", "地级市名"] - }, - "city:district": { - styleMap: [{ - mainkey: 10002, - subkey: [6] - }], - name: ["行政区名", "县级市名"] - }, - district: { - styleMap: [{ - mainkey: 10002, - subkey: [8, 37] - }], - name: ["行政区名", "区县名"] - }, - town: { - styleMap: [{ - mainkey: 10002, - subkey: [9] - }], - name: ["行政区名", "乡镇名"] - }, - village: { - styleMap: [{ - mainkey: 10002, - subkey: [17] - }], - name: ["行政区名", "村庄名"] - } - } - }, - borders: { - subType: { - global: { - styleMap: [{ - mainkey: 20016, - subkey: [3, 4, 8, 10, 11, 14] - }], - name: ["行政区边界", "外国国界/停火线/主张线"] - }, - provincial: { - styleMap: [{ - mainkey: 20016, - subkey: [5, 6, 7, 12] - }], - name: ["行政区边界", "省界线"] - } - } - }, - buildings: { - subType: { - default: { - styleMap: [{ - mainkey: 50001, - subkey: [1, 2] - }], - name: ["楼块", "默认楼块"] - }, - education: { - styleMap: [{ - mainkey: 50002, - subkey: [1, 2, 3, 4] - }], - name: ["楼块", "高校教学"] - } - } - }, - environment: { - subType: { - sky: { - styleMap: [{ - mainkey: "00001", - subkey: [1] - }], - name: ["环境", "天空"] - }, - atmosphere: { - styleMap: [{ - mainkey: "00001", - subkey: [2] - }], - name: ["环境", "大气"] - } - } - }, - bg: { - styleMap: [{ - mainkey: "00001", - subkey: [3] - }] - } - }, - uX: { - regions: { - name: "区域面", - subType: { - land: { - name: "陆地", - keyMap: ["regions#land"], - styleMap: [{ - mainkey: 30001, - subkey: [1, 4, 5] - }] - }, - green: { - name: "绿地", - keyMap: ["regions#green:greenspace", "regions#green:grass", "regions#green:woodland", "regions#green:mountain", "regions#green:golf"], - styleMap: [{ - mainkey: 30001, - subkey: [3, 7, 8, 9, 10, 12] - }] - }, - edu: { - name: "教育体育", - keyMap: ["regions#edu"], - styleMap: [{ - mainkey: 30002, - subkey: [3, 31] - }] - }, - public: { - name: "公共设施", - keyMap: ["regions#public"], - styleMap: [{ - mainkey: 30002, - subkey: [4, 12, 22, 32] - }] - }, - traffic: { - name: "交通枢纽", - keyMap: ["regions#transporthub"], - styleMap: [{ - mainkey: 30002, - subkey: [6, 14, 40] - }, { - mainkey: 30004, - subkey: [6, 14, 40] - }] - }, - scenicSpot: { - name: "景区", - keyMap: ["regions#scenicSpot"], - styleMap: [{ - mainkey: 30002, - subkey: [5, 33] - }] - }, - culture: { - name: "文化", - keyMap: ["regions#culture"], - styleMap: [{ - mainkey: 30002, - subkey: [7, 35] - }] - }, - health: { - name: "医疗卫生", - keyMap: ["regions#health"], - styleMap: [{ - mainkey: 30002, - subkey: [8, 36] - }] - }, - sports: { - name: "运动场所", - keyMap: ["regions#sports"], - styleMap: [{ - mainkey: 30002, - subkey: [9, 10, 13, 19, 20, 21, 34, 37, 39] - }] - }, - business: { - name: "商业场所", - keyMap: ["regions#business"], - styleMap: [{ - mainkey: 30002, - subkey: [11, 23, 24, 25, 26, 27, 28, 29, 30, 38] - }] - }, - parkingLot: { - name: "停车场", - keyMap: ["regions#parkingLot"], - styleMap: [{ - mainkey: 30002, - subkey: [1] - }] - }, - subway: { - name: "地铁设施", - keyMap: ["regions#subway"], - styleMap: [{ - mainkey: 30003, - allSubKey: !0 - }] - } - } - }, - water: { - name: "水系", - keyMap: ["regions#water:ocean", "regions#water:watersystem"], - styleMap: [{ - mainkey: 30001, - subkey: [2, 6, 11, 13] - }, { - mainkey: 20014, - subkey: [1, 2] - }, { - mainkey: 10002, - subkey: [13, 38] - }] - }, - buildings: { - name: "建筑物", - keyMap: ["buildings#default", "buildings#residence", "buildings#education", "buildings#life", "buildings#event", "buildings#landmark"], - styleMap: [{ - mainkey: 50001, - subkey: [1, 2] - }, { - mainkey: 50002, - subkey: [1, 2, 3, 4] - }, { - mainkey: 50003, - subkey: [1] - }, { - mainkey: 50004, - subkey: [1] - }, { - mainkey: 30002, - subkey: [2, 15, 16, 17, 18] - }] - }, - roads: { - name: "道路", - subType: { - highWay: { - name: "高速公路", - keyMap: ["roads#highWay:highway", "roads#highWay:highwayTunnel", "roads#highWay:highwayOthers"], - styleMap: [{ - mainkey: 20001, - subkey: [1, 2, 3, 5, 6] - }] - }, - ringRoad: { - name: "城市环线", - keyMap: ["roads#ringRoad:ringRoad", "roads#ringRoad:ringRoadTunnel", "roads#ringRoad:ringRoadOthers"], - styleMap: [{ - mainkey: 20002, - subkey: [1, 2, 3] - }] - }, - nationalRoad: { - name: "国道", - keyMap: ["roads#nationalRoad:nationalRoad", "roads#nationalRoad:nationalRoadTunnel", "roads#nationalRoad:nationalRoadOthers"], - styleMap: [{ - mainkey: 20003, - subkey: [1, 2, 3, 5] - }] - }, - provincialRoad: { - name: "省道", - keyMap: ["roads#provincialRoad:provincialRoad", "roads#provincialRoad:provincialRoadTunnel", "roads#provincialRoad:provincialRoadOthers"], - styleMap: [{ - mainkey: 20004, - subkey: [1, 2, 3] - }] - }, - secondaryRoad: { - name: "二级公路", - keyMap: ["roads#secondaryRoad"], - styleMap: [{ - mainkey: 20007, - subkey: [1, 2, 3] - }] - }, - levelThreeRoad: { - name: "三级公路", - keyMap: ["roads#levelThreeRoad"], - styleMap: [{ - mainkey: 20008, - subkey: [1, 2, 4, 5] - }] - }, - levelFourRoad: { - name: "四级道路", - keyMap: ["roads#levelFourRoad"], - styleMap: [{ - mainkey: 20009, - subkey: [1, 2, 3, 5, 6, 7] - }] - }, - roadsBeingBuilt: { - name: "在建道路", - keyMap: ["roads#roadsBeingBuilt"], - styleMap: [{ - mainkey: 20018, - subkey: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11] - }] - }, - railway: { - name: "铁路", - keyMap: ["roads#railway"], - styleMap: [{ - mainkey: 20010, - subkey: [1] - }] - }, - highSpeedRailway: { - name: "高铁", - keyMap: ["roads#highSpeedRailway"], - styleMap: [{ - mainkey: 20010, - subkey: [2] - }] - }, - subway: { - name: "地铁", - keyMap: ["roads#subway"], - styleMap: [{ - mainkey: 20015, - allSubKey: !0, - subkey0: [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 143] - }] - }, - subwayBeingBuilt: { - name: "在建地铁", - keyMap: ["roads#subwayBeingBuilt"], - styleMap: [{ - mainkey: 20015, - subkey: [1, 2] - }, { - mainkey: 20019, - subkey: [1] - }] - }, - overPass: { - name: "天桥", - keyMap: ["roads#overPass"], - styleMap: [{ - mainkey: 20012, - subkey: [1, 2, 3] - }] - }, - underPass: { - name: "地道", - keyMap: ["roads#underPass"], - styleMap: [{ - mainkey: 20013, - subkey: [1, 2, 3] - }] - }, - other: { - name: "其他线条", - keyMap: ["roads#other"], - styleMap: [{ - mainkey: 20011, - subkey: [1] - }, { - mainkey: 20017, - subkey: [1, 2, 3, 4, 8] - }, { - mainkey: 20020, - subkey: [1, 2, 3] - }, { - mainkey: 20024, - subkey: [1, 2] - }, { - mainkey: 20028, - subkey: [1] - }] - }, - guideBoards: { - name: "道路路牌", - keyMap: ["roads#guideBoards"], - styleMap: [{ - mainkey: 40001, - subkey: [2800, 110100, 110101, 110102, 110103, 110104, 110105] - }] - } - } - }, - labels: { - name: "标注", - subType: { - pois: { - name: "兴趣点", - subType: { - hotel: { - name: "住宿", - keyMap: ["labels#entertainment:hotel"], - isDetailedType: !0, - detailedCode: 0, - styleMap: [{ - mainkey: 10001, - subkey: [9, 133, 134, 135, 136, 155, 156, 157, 158, 159, 160, 161, 162, 186] - }, { - mainkey: 10007, - subkey: [31, 32, 33, 34, 35, 36, 37, 38, 39, 164, 165] - }] - }, - restaurant: { - name: "餐饮", - keyMap: ["labels#repast:restaurant"], - isDetailedType: !0, - detailedCode: 1, - styleMap: [{ - mainkey: 10001, - subkey: [19, 20, 21, 22, 114, 115, 116, 117, 118, 119, 183, 187] - }, { - mainkey: 10007, - subkey: [1, 2, 3, 4, 166, 167, 168, 179, 180, 181, 203, 205, 206, 215] - }] - }, - shop: { - name: "购物", - keyMap: ["labels#entertainment:mall"], - isDetailedType: !0, - detailedCode: 2, - styleMap: [{ - mainkey: 10001, - subkey: [7, 8, 68, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] - }, { - mainkey: 10007, - subkey: [5, 6, 7, 8, 9, 10, 11, 12, 13, 175, 200, 201, 202, 204] - }] - }, - scenicSpot: { - name: "风景名胜", - keyMap: ["labels#repast:restaurant", "labels#scenic:park"], - isDetailedType: !0, - detailedCode: 3, - styleMap: [{ - mainkey: 10001, - subkey: [4, 12, 14, 38, 69, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 120, 167, 171, 188, 189, 190, 191, 192] - }, { - mainkey: 10008, - allSubKey: !0 - }, { - mainkey: 10007, - subkey: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 187, 188, 190, 192, 193, 194, 195, 196, 198, 216, 217, 218, 219, 220, 221, 223, 224, 225] - }] - }, - traffic: { - name: "交通设施", - isDetailedType: !0, - detailedCode: 4, - styleMap: [{ - mainkey: 10001, - subkey: [23, 24, 25, 26, 31, 36, 148, 154, 168, 172, 175, 176, 177, 178] - }, { - mainkey: 10002, - subkey: [11, 16] - }, { - mainkey: 10009, - allSubKey: !0 - }] - }, - bank: { - name: "金融保险", - isDetailedType: !0, - detailedCode: 5, - styleMap: [{ - mainkey: 10001, - subkey: [42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 144, 145, 146, 147] - }, { - mainkey: 10007, - subkey: [14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27] - }] - }, - edu: { - name: "科教文化", - isDetailedType: !0, - detailedCode: 6, - styleMap: [{ - mainkey: 10001, - subkey: [10, 11, 13, 35, 138, 139, 140, 141, 142, 143, 163, 164, 165, 166, 170] - }, { - mainkey: 10007, - subkey: [43, 44, 45, 46, 47, 176, 177] - }] - }, - live: { - name: "生活服务", - isDetailedType: !0, - detailedCode: 7, - styleMap: [{ - mainkey: 10001, - subkey: [58, 63, 64, 65, 66, 67, 121, 122, 123] - }, { - mainkey: 10007, - subkey: [28, 29, 30] - }] - }, - hospital: { - name: "医疗保健", - isDetailedType: !0, - detailedCode: 8, - styleMap: [{ - mainkey: 10001, - subkey: [32, 33, 57, 70, 131, 132, 169, 193, 206, 207, 208, 209, 210] - }, { - mainkey: 10007, - subkey: [170, 209] - }] - }, - pe: { - name: "休闲体育", - isDetailedType: !0, - detailedCode: 9, - styleMap: [{ - mainkey: 10001, - subkey: [15, 16, 17, 37, 60, 61, 62, 73, 124, 125, 126, 127, 128, 129, 130, 180, 181, 182, 184, 185, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 213, 214] - }, { - mainkey: 10007, - subkey: [169, 171, 172, 173, 174, 178, 197, 207] - }] - }, - public: { - name: "公共设施", - isDetailedType: !0, - detailedCode: 10, - styleMap: [{ - mainkey: 10001, - subkey: [59, 173, 215] - }] - }, - buidling: { - name: "商务住宅", - isDetailedType: !0, - detailedCode: 11, - styleMap: [{ - mainkey: 10001, - subkey: [5, 6, 74, 75, 76, 77, 78, 79, 80, 81, 179] - }, { - mainkey: 10007, - subkey: [189, 191] - }] - }, - gov: { - name: "政府机构及社会团体", - isDetailedType: !0, - detailedCode: 12, - styleMap: [{ - mainkey: 10001, - subkey: [3, 34, 43, 137] - }] - }, - moto: { - name: "摩托车服务", - isDetailedType: !0, - detailedCode: 13, - styleMap: [{ - mainkey: 10001, - subkey: [113] - }] - }, - vehicle: { - name: "汽车服务", - isDetailedType: !0, - detailedCode: 14, - styleMap: [{ - mainkey: 10001, - subkey: [39, 40, 41, 71, 72, 151, 152, 153] - }, { - mainkey: 10007, - subkey: [40, 41, 42, 182, 183, 184, 185, 186] - }] - }, - pass: { - name: "通行设施", - isDetailedType: !0, - detailedCode: 15, - styleMap: [{ - mainkey: 10001, - subkey: [27, 28, 149, 150, 174] - }, { - mainkey: 10002, - subkey: [21] - }] - }, - subway: { - name: "地铁站", - isDetailedType: !0, - detailedCode: 16, - styleMap: [{ - mainkey: 10005, - subkey: [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 54, 55, 56, 57, 59, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 103, 104, 105] - }, { - mainkey: 10006, - subkey: [1, 2] - }] - }, - roadFacilities: { - name: "道路附属设施", - isDetailedType: !0, - detailedCode: 17, - styleMap: [{ - mainkey: 10001, - subkey: [2, 29, 30] - }, { - mainkey: 10017, - allSubKey: !0 - }] - }, - address: { - name: "地名", - isDetailedType: !0, - detailedCode: 18, - styleMap: [{ - mainkey: 10001, - subkey: [18] - }, { - mainkey: 10002, - subkey: [10, 12, 14, 15, 23, 36] - }] - }, - other: { - name: "其他", - isDetailedType: !0, - detailedCode: 19, - styleMap: [{ - mainkey: 10001, - subkey: [1, 211, 212] - }, { - mainkey: 10002, - subkey: [28] - }, { - mainkey: 10007, - subkey: [208, 210, 211, 212, 213, 214] - }, { - mainkey: 10010 - }, { - mainkey: 10011 - }, { - mainkey: 10012 - }, { - mainkey: 10013 - }, { - mainkey: 10014 - }, { - mainkey: 10015 - }, { - mainkey: 10016, - allSubKey: !0 - }] - } - } - }, - aois: { - name: "区域标注", - keyMap: ["labels#building:officebuilding", "labels#entertainment:mall", "labels#traffic:transporthub", "labels#medical:medicalcenter", "labels#casual:golf"], - styleMap: [{ - mainkey: 10004, - allSubKey: !0, - subkey: [1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 21, 22, 23] - }] - }, - continent: { - name: "大洲", - keyMap: ["districtsname#continent"], - styleMap: [{ - mainkey: 10002, - subkey: [20] - }] - }, - country: { - name: "国家", - keyMap: ["districtsname#country_cn"], - styleMap: [{ - mainkey: 10002, - subkey: [18, 19, 29] - }] - }, - province: { - name: "省/直辖市/自治区/特别行政区", - keyMap: ["districtsname#state"], - styleMap: [{ - mainkey: 10002, - subkey: [22, 26, 33] - }] - }, - city: { - name: "城市", - keyMap: ["districtsname#city:provincial_capital", "districtsname#city:city"], - styleMap: [{ - mainkey: 10002, - subkey: [1, 2, 3, 4, 5, 7, 24, 25, 27, 30, 31, 32, 34, 35] - }] - }, - district: { - name: "区县", - keyMap: ["districtsname#city:district"], - styleMap: [{ - mainkey: 10002, - subkey: [6, 8, 37] - }] - }, - town: { - name: "乡镇", - keyMap: ["districtsname#town"], - styleMap: [{ - mainkey: 10002, - subkey: [9] - }] - }, - village: { - name: "村庄", - keyMap: ["districtsname#village"], - styleMap: [{ - mainkey: 10002, - subkey: [17] - }] - } - } - }, - borders: { - name: "行政区边界", - subType: { - China: { - name: "中国国界", - keyMap: ["borders#China"], - styleMap: [{ - mainkey: 20016, - subkey: [1, 2, 9] - }] - }, - foreign: { - name: "外国国界/停火线/主张线", - keyMap: ["borders#global"], - styleMap: [{ - mainkey: 20016, - subkey: [3, 4, 8, 10, 11, 14, 16] - }] - }, - provincial: { - name: "省界线", - keyMap: ["borders#provincial"], - styleMap: [{ - mainkey: 20016, - subkey: [5, 6, 7, 12] - }] - } - } - }, - sky: { - name: "天空", - keyMap: ["environment#sky"], - styleMap: [{ - mainkey: "00001", - subkey: [1] - }] - }, - atmosphere: { - name: "大气", - keyMap: ["environment#atmosphere"], - styleMap: [{ - mainkey: "00001", - subkey: [2] - }] - }, - bg: { - name: "背景网格线", - keyMap: ["bg"], - styleMap: [{ - mainkey: "00001", - subkey: [3] - }] - } - } - } - , Bn = (Wn.prototype.pn = function (t) { - this.qe ? t(this.ON) : this.Ye.push(t) - } - , - Wn.prototype.dn = function (t, i, n) { - return this.vn.dn(t, i, n) - } - , - Wn.prototype.mn = function (t, i) { - return this.vn.mn(t, i) - } - , - Wn.prototype.setStyle = function (t, i, n) { - var s = t; - this.vn.setStyle(s), - t.layer && this.vn.EY(t.layer), - this.vn.kF(t), - n.gn.bn(s, function () { - n.emit("styleChanged") - }) - } - , - Wn.prototype.setStyleByPlat = function (t, i) { - var n; - _.Module.eS.BY && (n = this.xn(t), - this.vn.setStyle(n), - t.layer && this.vn.EY(t.layer), - this.vn.kF(t), - i.gn.bn(n, function () { - i.emit("styleChanged") - })) - } - , - Wn.prototype.destroy = function () { - this.vn && this.vn.destroy(), - this.Ze = {}, - this.ON = "" - } - , - Wn.prototype.w_ = function (t) { - var i; - return this.Ze && this.Ze[t] ? (i = [], - Object.keys(this.Ze[t]).forEach(function (t) { - t = parseFloat(t), - i.push(t) - }), - i) : null - } - , - Wn.prototype.VY = function (t) { - var t = { - style: t - } - , i = new XMLHttpRequest; - i.onreadystatechange = function () { - 4 === i.readyState && 200 === i.status ? console.log("qqqqq") : 404 === i.status && i.abort() - } - , - i.open("POST", "http://webapi.amap.com/formatstyle"), - i.setRequestHeader("Content-type", "application/json"), - i.send(JSON.stringify(t)) - } - , - Wn.prototype.xn = function (t) { - for (var i = {}, n = t.version && "2.0" === t.version ? t.mapStyle : t, s = t.version && "2.0" === t.version ? jn.aX : jn.uX, e = Object.keys(n), h = 0; h < e.length; h++) { - var r = e[h] - , o = n[r]; - if (s[r]) { - var a = s[r]; - if (a.styleMap) { - for (var u = a.styleMap, f = 0; f < u.length; f++) - if (i[A = u[f].mainkey] || (i[A] = {}), - u[f].subkey) - for (var c = 0; c < u[f].subkey.length; c++) { - var l = u[f].subkey[c] - , d = _.yn(o); - if (o.styles) - for (var v = Object.keys(o.styles), p = 0; p < v.length; p++) { - var m = v[p] - , y = o.styles[m].transitional - , b = o.styles[m].nodes; - d.styles[m] = { - nodes: b, - transitional: y || void 0, - nodesObj: {} - }; - for (var g = 0; g < b.length; g++) { - var M = b[g].zoom - , k = b[g].value; - d.styles[m].nodesObj[M] = k - } - } - i[A][l] = d - } - } else if (a.subType && o.subType) - for (var w = Object.keys(o.subType), f = 0; f < w.length; f++) { - var x = w[f]; - if (a.subType[x] && a.subType[x].styleMap) { - for (u = a.subType[x].styleMap, - c = 0; c < u.length; c++) - if (u[c].mainkey) { - i[A = u[c].mainkey] || (i[A] = {}); - var A, z = u[c].subkey; - if (z = (u[c].allSubKey ? this.w_(A) : z) || ["all"]) - for (var C = 0; C < z.length; C++) { - var l = z[C] - , S = o.subType[x]; - if ((d = _.yn(S)).styles) - for (v = Object.keys(S.styles), - p = 0; p < v.length; p++) - for (m = v[p], - y = S.styles[m].transitional, - b = S.styles[m].nodes, - d.styles[m] = { - nodes: b, - nodesObj: {}, - transitional: y || void 0 - }, - g = 0; g < b.length; g++) - M = b[g].zoom, - k = b[g].value, - d.styles[m].nodesObj[M] = k; - i[A][l] = d - } - } - } else if (a.subType[x] && a.subType[x].subType) - for (var L = a.subType[x].subType, j = Object.keys(L), S = o.subType[x], d = _.yn(S), T = 0; T < j.length; T++) { - var I = j[T]; - if (L[I].styleMap) - for (var D = 0; D < L[I].styleMap.length; D++) { - var O = L[I].styleMap[D]; - if (O.mainkey && O.subkey) { - i[O.mainkey] || (i[O.mainkey] = {}); - for (var E = 0; E < O.subkey.length; E++) { - var B = O.subkey[E]; - if (d.detailedType && d.detailedType[I]) { - var R = d.detailedType[I] - , P = _.yn(R); - if (R.styles) - for (v = Object.keys(R.styles), - p = 0; p < v.length; p++) - for (m = v[p], - b = R.styles[m].nodes, - P.styles[m] = { - nodes: b, - nodesObj: {} - }, - g = 0; g < b.length; g++) - M = b[g].zoom, - k = b[g].value, - P.styles[m].nodesObj[M] = k; - i[O.mainkey][B] = P - } else - i[O.mainkey][B] = d - } - } - } - } - } - } - } - return i - } - , - Wn.prototype.wn = function (t) { - for (var i = 0, n = this.Ye.length; i < n; i += 1) - (0, - this.Ye[i])(t); - this.Ye = [] - } - , - Wn.prototype.fn = function (t) { - var i = this - , n = (_.Support.amapRunTime && !_.Support.amapRunTime["style2.0-request"] && (_.Support.amapRunTime["style2.0-request"] = (new Date).getTime()), - window.amap_sdk_log && window.amap_sdk_log("style-request:" + t + "-" + Date.now()), - new XMLHttpRequest); - n.onreadystatechange = function () { - 4 === n.readyState && 200 === n.status ? (_.Support.amapRunTime && !_.Support.amapRunTime["style2.0-loaded"] && (_.Support.amapRunTime["style2.0-loaded"] = (new Date).getTime()), - window.amap_sdk_log && window.amap_sdk_log("style-loaded:" + t + "-" + Date.now()), - i.zZ(n.response), - _.Support.amapRunTime && !_.Support.amapRunTime["style2.0-decoded"] && (_.Support.amapRunTime["style2.0-decoded"] = (new Date).getTime()), - window.amap_sdk_log && window.amap_sdk_log("style-decoded:" + t + "-" + Date.now())) : 404 === n.status && n.abort() - } - , - n.open("GET", t, !0), - n.responseType = "arraybuffer", - n.send() - } - , - Wn.prototype.zZ = function (t) { - _.Support.amapRunTime && !_.Support.amapRunTime["style2.0-parseStylesFromText-End"] && (_.Support.amapRunTime["style2.0-parseStylesFromText-End"] = (new Date).getTime()), - t = _.CZ(t), - _.Support.amapRunTime && !_.Support.amapRunTime["style2.0-jsonParse-End"] && (_.Support.amapRunTime["style2.0-jsonParse-End"] = (new Date).getTime()), - window["amapjsapi-style2-local"] ? this.Ze = window["amapjsapi-style2-local"] : this.Ze = _.StyleParser.SZ(t), - _.Support.amapRunTime && !_.Support.amapRunTime["style2.0-format-End"] && (_.Support.amapRunTime["style2.0-format-End"] = (new Date).getTime()), - this.vn.jY(this.Ze), - this.Ze.Rn = _._n.create("fcf9f2"), - this.Ze.zn = 24, - this.qe = !0, - this.ON = JSON.stringify(this.Ze), - this.wn(this.ON) - } - , - Wn); - function Wn(t) { - this._map = t, - this.vz = null, - this.qe = !1, - this.Ne = _.Support.$e && !_.Support.Ue, - this._tileUrl = _tileUrl, - this.Ze = {}, - this.Ye = [], - this.Ve = null, - this.fn(this._tileUrl), - this.vn = new _.StyleParser("fast" === t.bZ.MZ.drawMode) - } - Fn = _.vG, - _.Ei(b, Fn), - b.prototype.getData = function (t, i) { - for (var n = this, s = [], e = 0, h = t; e < h.length; e++) { - var r = h[e]; - s.push(r.charCodeAt(0).toString()) - } - var o = this.Zu(s) - , a = this._map.gn; - switch (o.status) { - case _.qu.AllLoaded: - i(); - break; - case _.qu.AllUnLoaded: - var u = this.Yu(i); - a && a.getSDFData(o.Vu, function (t, i) { - n.Xu[u] = i = void 0 === i ? {} : i, - n.Hu() - }); - break; - case _.qu.SomeLoading: - var f = this.Yu(i); - a && a.getSDFData(o.Vu, function (t, i) { - n.Xu[f] = i = void 0 === i ? {} : i, - n.Hu() - }); - break; - case _.qu.AllLoading: - var c = this.Yu(i); - this.Xu[c] = [], - this.Hu() - } - } - , - b.prototype.Ju = function (t) { - for (var i = {}, n = 0, s = t; n < s.length; n++) { - var h = (e = s[n]).range - , r = e.info - , e = e.pos - , o = this.info; - o[h], - o[h] = { - info: ((o = {})[h] = r, - o), - pos: e - }, - this.range.push(h), - i[h] = 1 - } - return i - } - , - b.prototype.mz = function (t, i) { - var n = this.info || []; - return !(i = void 0 === i ? !1 : i) && n.hasOwnProperty(t) && (i = n[t]).pos && i.info[t] ? { - key: t, - index: _.cY.dynamic, - char: i.info[t], - pos: i.pos - } : null - } - , - b.prototype.measureText = function (t, i) { - for (var n = _.PY, s = _.tc.ic, e = 0, h = this.info, r = i / this._size, o = this.nc, a = 0, u = t; a < u.length; a++) { - var f = u[a] - , c = void 0 - , l = f; - (c = 13312 <= l && l <= 40959 ? n : o[l]) || h.hasOwnProperty(l) && (l = h[l].info[l]) && (this.nc[f] = c = l[4]), - e += (c + s) * r - } - return e - } - , - b.prototype.destroy = function () { - this.range = [], - this.info = {}, - this.sc = [], - this.Xu && (this.Xu = {}), - this._c = [], - this.nc = {}, - this.xc = [], - this.bc = {}, - this.Xu = {} - } - , - b.prototype._bindEvents = function () { - this.dG.on("loadWordsByFront", this.pG.bind(this)) - } - , - b.prototype.fc = function () { - var t = _.tc.pc - , i = t[this.dc]; - return this.dc = (this.dc + 1) % t.length, - i - } - , - b.prototype.vc = function (t) { - void 0 === t && (t = {}); - var i = (t = (Object.keys(t) || []).sort(function (t, i) { - return t - i - })).length; - return 2 <= i ? t[0] + "-" + t[i - 1] : 1 === i ? t[0] : "" - } - , - b.prototype.mc = function () { } - , - b.prototype.Yu = function (t, i) { - void 0 === i && (i = {}); - var n = this.yc += 1; - return this.xc.push(n), - this.bc && (this.bc[n] = t, - this.bc[n] = { - cb: t, - params: i - }), - n - } - , - b.prototype.Hu = function () { - var t, i, n = this.xc[0]; - n && (t = this.Xu[n]) && (this.xc.shift(), - (i = this.bc[n]) ? i.cb(t) : console.error("sdf task error"), - delete this.Xu[n], - delete this.bc[n], - this.Hu()) - } - , - b.prototype.gc = function (t) { - for (var i = this.range || [], n = this.info || {}, s = parseInt(t, 10), e = 0, h = i; e < h.length; e++) { - var r = h[e]; - if (r.indexOf("-") < 0) { - if (s === +r && (n[r] && n[r].info || {})[t]) - return !0 - } else { - var o = r.split("-") - , a = parseInt(o[0] || "", 10) - , o = parseInt(o[1] || "", 10); - if (a <= s && s <= o && (n[r] && n[r].info || {})[t]) - return !0 - } - } - return !1 - } - , - b.prototype.pG = function (t) { - var i = this - , n = t.mG - , s = t.cb - , t = this._map.bZ.MZ.lY.add("LangSDF", n); - this._map.bZ.MZ.yY.setNeedUpdate(!0), - this._map.bZ.MZ.lY.on("task:" + t, function (t) { - t = i._map.bZ.MZ.lY.add("SDFCombine", t.data), - i._map.bZ.MZ.yY.setNeedUpdate(!0), - i._map.bZ.MZ.lY.on("task:" + t, function (t) { - i.Ju(t.data), - s(t.data) - }, i, !0) - }, this, !0) - } - , - b.prototype._G = function (t) { - for (var i = "", n = 0, s = t.split("|"); n < s.length; n++) { - var e = s[n]; - i += String.fromCharCode(parseInt(e, 10)) - } - return i - } - , - b.prototype.wc = function (t) { - return -1 !== this._c.indexOf(t) - } - , - b.prototype.Zu = function (t) { - for (var i = [], n = (this.range, - 0), s = 0, e = 0, h = t; e < h.length; e++) { - var r = h[e]; - this.gc(r) || (this.wc(r) ? s += 1 : (n += 1, - i.push(r))) - } - return 0 === s && 0 === n ? { - status: _.qu.AllLoaded, - Vu: i - } : 0 < n && 0 === s ? { - status: _.qu.AllUnLoaded, - Vu: i - } : 0 === n && 0 < s ? { - status: _.qu.AllLoading, - Vu: i - } : { - status: _.qu.SomeLoading, - Vu: i - } - } - ; - var Fn, Gn = b; - function b(t, i) { - var n = Fn.call(this) || this; - return n._map = i, - n.CLASS_NAME = "SDFManager", - n.range = [], - n.info = {}, - n.sc = [], - n.dc = 0, - n._c = [], - n._size = 24, - n.nc = {}, - n.xc = [], - n.bc = {}, - n.Xu = {}, - n.yc = 1, - n.ac = t, - n.yG = new _.bG, - n.dG = n._map.gn, - n._bindEvents(), - n - } - _n.prototype.play = function (t) { - for (var i = t, n = Date.now(), s = this.result; 0 < i && this.offset < this.mG.length;) { - var e = this.mG[this.offset] - , h = {} - , r = this._G(e) - , o = _.bG.gG(e) - , r = (o = this.lang.D$(o).Ce(r)).bitmap - , o = o.info; - h.range = e, - h.info = o, - h.data = r, - s.push(h), - this.offset++, - i = t - (Date.now() - n) - } - return this.result - } - , - _n.prototype._G = function (t) { - for (var i = "", n = 0, s = t.split("|"); n < s.length; n++) { - var e = s[n]; - i += String.fromCharCode(parseInt(e, 10)) - } - return i - } - , - Object.defineProperty(_n.prototype, "status", { - get: function () { - return this.offset >= this.mG.length ? _.vY.finish : _.vY.pause - }, - eb: !1, - nb: !0 - }); - var Nn = _n; - function _n(t, i) { - this.lang = t, - this.mG = i, - this.type = "LangSDFTask", - this.offset = 0, - this.result = [] - } - Yn.prototype.loadImage = function (t, i) { - var n = i.name - , s = (i.type, - i.cb) - , e = this.Fs[n = n || t]; - e && e.status === _.uc.LOADED ? s(e, i) : e && e.status === _.uc.LOADING ? (this.Mc[n] || (this.Mc[n] = []), - this.Mc[n].push({ - cb: s, - opts: i - })) : t ? this.Rc(t, i) : s(null, i) - } - , - Yn.prototype.TZ = function (t, i) { - this.Rc(t.data, { - name: t.hash, - cb: i - }) - } - , - Yn.prototype.loadImages = function (t, i) { - var n = t.length - , s = i.cb - , e = 0; - if (t.length) { - i.cb = function () { - (e += 1) === n && s() - } - ; - for (var h = 0, r = t; h < r.length; h++) { - var o = r[h]; - this.loadImage(o, i) - } - } else - s() - } - , - Yn.prototype.imageLoaded = function (t, i) { - var n = i.data - , i = i.cb - , s = this.zc[i]; - s && (s(n), - delete this.zc[i]) - } - , - Yn.prototype.addImageData = function (t, i) { - this.Fs[t] || (this.Fs[t] = i) - } - , - Yn.prototype.getImage = function (t) { - return this.Fs[t = void 0 === t ? "" : t] || {} - } - , - Yn.prototype.destory = function () { - this.Fs = {}, - this.Mc && (this.Mc = {}), - this.zc && (this.zc = {}) - } - , - Yn.prototype.Rc = function (t, e) { - var h = this - , i = e.name - , r = e.ext - , n = e.type - , o = void 0 === n ? "other" : n - , a = e.cb - , u = this.Fs - , f = new Image - , c = i || t; - u[c] = { - type: o, - img: f, - ext: r, - width: f.width, - height: f.height, - status: _.uc.LOADING - }, - f.crossOrigin = "anonymous", - f.onload = function () { - if (e.imageBitmap) - createImageBitmap(f).then(function (t) { - if (u[c] = { - type: o, - img: t, - ext: r, - width: t.width, - height: t.height, - status: _.uc.LOADED - }, - a(u[c], e), - h.Mc[c]) - for (var i = 0, n = h.Mc[c]; i < n.length; i++) { - var s = n[i]; - s.cb(u[c], s.opts) - } - f.onload = null, - f.onerror = null - }); - else { - if (u[c] = { - type: o, - img: f, - ext: r, - width: f.width, - height: f.height, - status: _.uc.LOADED - }, - a(u[c], e), - h.Mc[c]) - for (var t = 0, i = h.Mc[c]; t < i.length; t++) { - var n = i[t]; - n.cb(u[c], n.opts) - } - f.onload = null, - f.onerror = null - } - } - , - f.onerror = function () { - a(null, e), - f.onload = null, - f.onerror = null - } - , - f.src = t - } - , - Yn.prototype.Sc = function (t) { - var i, n = (n = (t = void 0 === t ? {} : t).img) && n.context ? (i = n.width || 0, - n.height || 0) : (i = t.width || 0, - t.height || 0); - return [i, n] - } - ; - var Un = Yn; - function Yn() { - this.Fs = {}, - this.Cc = 16, - this.zc = {}, - this.Mc = {} - } - var Xn, Zn = 0; - function Jn(t) { - var i = Xn.call(this, t = void 0 === t ? {} : t) || this; - return i.CLASS_NAME = "AMap.VectorLayer", - i.zF = "AMap.VectorLayer" + Zn++, - i.pC = !1, - i.Qh = t.zIndex || 110, - i - } - Xn = e, - _.Ei(Jn, Xn), - Jn.prototype.add = function (t) { - for (var i = 0, n = t = Array.isArray(t) ? t : [t]; i < n.length; i++) { - var s = n[i]; - this.source.add(s) - } - } - , - Jn.prototype.remove = function (t) { - for (var i = 0, n = t = Array.isArray(t) ? t : [t]; i < n.length; i++) { - var s = n[i]; - this.source.remove(s) - } - } - , - Jn.prototype.getSourceConfig = function () { - return { - id: this.zF, - type: "overlay", - url: "" - } - } - , - Jn.prototype.co = function () { - return this.zF - } - , - Jn.prototype.getState = function () { - return { - visible: this.il, - opacity: 1, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - Jn.prototype.vi = function (t) { - var i = this.source; - if (i) - return i.rr(t) || null - } - , - Jn.prototype.getAllOverlays = function (i) { - return this.source.getAllOverlays().filter(function (t) { - return !i || -1 < t.className.toLocaleLowerCase().indexOf(i) - }) - } - , - Jn.prototype.destroy = function () { - this.source && this.source.destroy && this.source.destroy(), - this._container && delete this._container - } - , - Hn = Jn, - _.Ei(qn, Hn), - qn.prototype.has = function (t) { - return !!this.source && -1 < this.source.getAllOverlays().indexOf(t) - } - , - qn.prototype.clear = function () { - var t; - this.source && (t = this.source.getAllOverlays(), - this.remove(t.slice(0))) - } - , - qn.prototype.setOptions = function (t) { - if (this.source) - for (var i = 0, n = this.source.getAllOverlays(); i < n.length; i++) - n[i].setOptions(t) - } - , - qn.prototype.query = function (t) { - if (this.source) - return this.source.rr({ - lnglat: t - }) - } - , - qn.prototype.getBounds = function () { - if (this.source) { - var t = this.getAllOverlays(); - if (0 < t.length) { - for (var i, n = void 0, s = 0; s < t.length; s++) - n ? (i = t[s].getBounds()) && n.union(i) : n = (n = t[s].getBounds()) && n.clone(); - return n - } - } - } - ; - var Hn, Vn = qn; - function qn() { - return null !== Hn && Hn.apply(this, arguments) || this - } - var Qn, Kn = !1, $n = (Qn = _.Event, - _.Ei(g, Qn), - g.prototype.va = function (t, n, i) { - var s, e = this, h = this.jD(); - return _.Support.LZ && h.UD ? (window.amap_sdk_log && (s = t.url + "t=" + t.ya.join(";"), - window.amap_sdk_log("loadNebulaTile" + s + "-" + Date.now())), - AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), - h.send("loadNebulaSourceTile", t, function (t, i) { - t && e._map.emit("TileDecodeError", { - type: "nebula", - err: t - }), - i && i.nebulaDatas && (_.Support.amapRunTime && (_.Support.amapRunTime.workerTime = i.amapRunTime), - n(i.nebulaDatas)) - })) : this.DZ.va(t, n) - } - , - g.prototype.RD = function (t, i) { - return AMap.getConfig().vdataProxy && (t.url = AMap.getConfig().vdataProxy + "/" + t.url.split("/")[3] + "/" + t.url.split("/")[4]), - this.Uh.send("loadNebulaSourceTileSdf", t, i) - } - , - g.prototype.loadDistrictSourceTile = function (t, i, n) { - t.request = this.Uh.send("loadDistrictSourceTile", i, function (t, i) { - i && n(i) - }) - } - , - g.prototype.gX = function (t, i, n) { - t.request = this.Uh.send("loadMapboxVTSourceTile", i, function (t, i) { - i && n(i) - }) - } - , - g.prototype.kX = function (t, i, n, s) { - t.request = this.Uh.send("reBufferMapboxVTSource", { - MX: i, - styles: n - }, function (t, i) { - i && s(i) - }) - } - , - g.prototype.aG = function (t, i, n) { - var s = this; - t.request = this.Uh.send("loadMapboxSourceTile", i, function (t, i) { - t && s._map.emit("TileDecodeError", { - type: "mapbox", - err: t - }), - i && n(i) - }) - } - , - g.prototype._C = function (t) { - this.Uh.send("processLabels", { - id: t - }) - } - , - g.prototype.deleteTileStaticSDF = function (t) { - this.Uh.send("deleteTileStaticSDF", t) - } - , - g.prototype.Ha = function (i) { - this.Uh.send("updateParams", i), - _.forEach(this.ED, function (t) { - t.send("updateParams", i) - }) - } - , - g.prototype.Ka = function (i) { - this.Uh.send("updateMapStyle", i), - _.forEach(this.ED, function (t) { - t.send("updateMapStyle", i) - }) - } - , - g.prototype.bn = function (t, i) { - this.Uh.send("updateUserStyle", { - Kd: t - }, i) - } - , - g.prototype.Ja = function (i) { - this.Uh.send("sendHttp", { - protocol: i - }), - _.forEach(this.ED, function (t) { - t.send("sendHttp", { - protocol: i - }) - }) - } - , - g.prototype.innerLabelsLoadData = function (t, i) { - this.Uh.send("innerLabelsLoadData", t, i) - } - , - g.prototype.signal = function (t, i) { } - , - g.prototype.dynamicTextSDFInfoLoaded = function (t, i) { - this.emit("dynamicTextSDFInfoLoaded", { - data: i - }) - } - , - g.prototype.dynamicTextVerticeLoaded = function (t, i) { - this.emit("dynamicTextVerticeLoaded", i) - } - , - g.prototype.dynamicTextVerticeLoadedByTile = function (t, i) { - this.emit("dynamicTextVerticeLoadedByTile", i) - } - , - g.prototype.iconImageLoaded = function (t, i) { - this.emit("iconImageLoaded", i) - } - , - g.prototype.getSDFData = function (t, i) { - this.Uh.send("getSDFData", t, function (t) { - i && i(t) - }) - } - , - g.prototype.loadWordsByFront = function (t, i, n) { - this.emit("loadWordsByFront", { - mG: i, - cb: n - }) - } - , - g.prototype.QB = function (t, i) { - this.jD().send("setPathWebgl", t, i) - } - , - g.prototype.JB = function (t, i) { - this.jD().send("sendIndoorRequest", t, i) - } - , - g.prototype.destroy = function () { - this.jD().send("destroy", "destroy"), - this.Wh && this.Wh.terminate(); - for (var t = 0, i = this.HD; t < i.length; t++) { - var n = i[t]; - n && n.terminate() - } - this.DZ && delete this.DZ, - this.Wh && delete this.Wh - } - , - g.prototype.request = function (t, n, s) { - window.amap_sdk_log && window.amap_sdk_log("data-request:" + n + "-" + Date.now()); - var e = new XMLHttpRequest; - return e.onreadystatechange = function () { - var t, i; - 4 === e.readyState && 200 === e.status && (window.amap_sdk_log && window.amap_sdk_log("data-loaded:" + n + "-" + Date.now()), - t = e.getResponseHeader("content-type"), - i = e.response, - "application/x-protobuf" === t ? s(null, i) : Kn || (Kn = !0, - console.log(" KEY异常。"))) - } - , - e.onerror = function (t) { - s("error") - } - , - e.open("GET", n, !0), - e.responseType = "arraybuffer", - e.send(), - { - cancel: function () { - e.abort() - } - } - } - , - g.prototype.jD = function () { - var t = this.GD % this.ND; - return this.GD = 1 + t, - this.ED[t] - } - , - g.prototype.updateDataVersion = function (t, i) { - this.emit("updateDataVersion", { - version: i - }) - } - , - g.prototype.tv = function () { - var t = this; - this._map.on("movestart", function () { - t.iv = !0, - t.ev() - }), - this._map.on("moveend", function () { - t.iv = !1, - t.ev() - }), - this._map.on("dragstart", function () { - t._dragging = !0, - t.ev() - }), - this._map.on("dragend", function () { - t._dragging = !1, - t.ev() - }), - this._map.on("zoomstart", function () { - t.lt = !0, - t.ev() - }), - this._map.on("zoomend", function () { - t.lt = !1, - t.ev() - }) - } - , - g.prototype.ev = function () { - var i = !1; - (this._dragging || this.lt || this.iv) && (i = !0), - this.nv !== i && (this.Uh.send("setMainThreadBusy", i), - _.forEach(this.ED, function (t) { - t.send("setMainThreadBusy", i) - })), - this.nv = i - } - , - g.prototype.WD = function () { - for (var t = 0; t < this.ND; t++) - if (!this.ED[t].UD) - return !1; - return !0 - } - , - g); - function g(t) { - var i = Qn.call(this) || this; - if (i._map = t, - i.dE = !1, - i._dragging = !1, - i.lt = !1, - i.nv = !1, - i.iv = !1, - i.GD = 0, - i.ND = 1, - i.HD = [], - i.ED = [], - i.VD = [], - i.ZD = [], - i.YD = 0, - i.DZ = new ts(i), - i.pE = function () { - window.amap_sdk_log && window.amap_sdk_log("initWorker:" + Date.now()), - i.YD += 1, - i.YD === i.ED.length + 1 && (i.dE = !0, - i._map.setNeedUpdate(!0)) - } - , - window._PreLoadedWorker) { - var n = window._PreLoadedWorker - , s = new _.Bh(n, i, "AMap.nebula"); - i.HD.push(n), - i.ED.push(s), - s.UD = !0, - i.pE() - } else { - for (var e = 0; e < i.ND; e++) - n = new Worker(AMap.getConfig().workerUrl), - s = new _.Bh(n, i, "AMap.nebula"), - i.HD.push(n), - i.ED.push(s); - for (var h = 0, r = i.ED; h < r.length; h++) - !function (t) { - t.send("initCryptWorker", !0, function () { - t.UD = !0, - i.pE() - }) - }(s = r[h]) - } - return i.Wh = new Worker(AMap.getConfig().workerUrl), - i.Uh = new _.Bh(i.Wh, i, "AMap.SDF"), - i.Uh.send("initCryptWorker", !0, function () { - i.Uh.UD = !0, - i.pE() - }), - i.tv(), - i - } - is.prototype.va = function (n, s) { - var e = this - , h = (AMap.getConfig().vdataProxy && (n.url = AMap.getConfig().vdataProxy + "/" + n.url.split("/")[3] + "/" + n.url.split("/")[4]), - n.url + ("?key=" + AMap.getConfig().key + "&flds=" + n.hH) + "&t=" + n.ya.join(";")) - , r = (h = (h = h.replace("nebula/v3", "nebula/v2")).replace("oversea/v3", "oversea/v2"), - h += "&p=3", - window.amap_sdk_log && window.amap_sdk_log("data-request:" + h + "-" + Date.now()), - _.Support.amapRunTime && !_.Support.amapRunTime.workerTime["data-request"] && (_.Support.amapRunTime.workerTime["data-request"] = Date.now()), - new _.vH) - , t = mi.Ajax(h, { - responseType: "arraybuffer" - }, function (t, i) { - window.amap_sdk_log && window.amap_sdk_log("data-loaded:" + h + "-" + Date.now()), - _.Support.amapRunTime && !_.Support.amapRunTime.workerTime["data-loaded"] && (_.Support.amapRunTime.workerTime["data-loaded"] = Date.now()), - "complete" === t && (n.buffer = i.data, - t = e.parent.jD().send("decodeNebulaSourceTile", n, function (t, i) { - t && e.parent._map.emit("TileDecodeError", { - type: "nebula", - err: t - }), - i && i.nebulaDatas && (_.Support.amapRunTime && !_.Support.amapRunTime.workerTime["data-decode-begin"] && (_.Support.amapRunTime.workerTime["data-decode-begin"] = i.amapRunTime["data-decode-begin"]), - _.Support.amapRunTime && !_.Support.amapRunTime.workerTime["data-decode-end"] && (_.Support.amapRunTime.workerTime["data-decode-end"] = i.amapRunTime["data-decode-end"]), - _.Support.amapRunTime && !_.Support.amapRunTime.workerTime["style-parse-begin"] && (_.Support.amapRunTime.workerTime["style-parse-begin"] = i.amapRunTime["style-parse-begin"]), - _.Support.amapRunTime && !_.Support.amapRunTime.workerTime["style-parse-end"] && (_.Support.amapRunTime.workerTime["style-parse-end"] = i.amapRunTime["data-decode-end"]), - s(i.nebulaDatas)) - }), - r._H(t)) - }); - return r._H({ - cancel: t.abort.bind(t) - }), - r - } - , - is.prototype.RD = function (n, s) { - var e = this - , h = (t = (t = (t = n.url + ("?key=" + AMap.getConfig().key) + "&flds=poi,roadname&t=" + n.ya.join(";")).replace("nebula/v3", "nebula/v2")).replace("oversea/v3", "oversea/v2"), - t += "&p=3", - new _.vH) - , t = mi.Ajax(t, { - responseType: "arraybuffer" - }, function (t, i) { - "complete" === t && (n.buffer = i.data, - t = e.parent.Uh.send("decodeNebulaSourceTileSdf", n, function (t, i) { - s(t, i) - }), - h._H(t)) - }); - return h._H({ - cancel: t.abort.bind(t) - }), - h - } - ; - var ts = is; - function is(t) { - this.parent = t - } - ss.prototype.ov = function (t) { - var i = t.gl; - if (this.buffer || (this.buffer = new _.yp(t, new Uint16Array(0), 8)), - this.texture || (this.texture = t.createTexture({ - height: 1024, - width: 1024, - data: null - }, { - Yi: !0 - }), - this.texture.bind(i.CLAMP_TO_EDGE, i.NEAREST, i.LINEAR)), - this.av || (this.av = t.createFramebuffer(1024, 1024)), - !this.Pc) { - for (var n = new Uint16Array(192), s = 0; s < 32; s++) { - var e = 6 * s - , h = 4 * s; - n[e] = h, - n[1 + e] = 1 + h, - n[2 + e] = 2 + h, - n[3 + e] = h, - n[4 + e] = 2 + h, - n[5 + e] = 3 + h - } - this.Pc = t.ve(n) - } - } - , - ss.prototype.sv = function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - this.rv[s.hv] = s.name, - this.images[s.name] = s.img, - this.lv.push(s.name), - this.jG[s.name] = { - width: s.width, - height: s.height - } - } - } - , - ss.prototype.update = function (t) { - this.ov(t.context), - this.uv(t, this.lv), - this.lv = [] - } - , - ss.prototype.uv = function (t, i) { - if (0 !== i.length) { - for (var n = t.context, s = n.gl, e = 0, h = i; e < h.length; e++) { - var r, o = h[e]; - this.De[o] || ((r = n.createTexture(this.images[o], { - Yi: !0 - })).bind(s.CLAMP_TO_EDGE, s.LINEAR, s.LINEAR), - this.De[o] = r) - } - for (var a = [], u = 0, f = this.rv.length; u < f; u++) { - var c = this.rv[u] - , d = void 0 === (l = (c = this.jG[c] || {}).width) ? 512 : l - , v = void 0 === (l = c.height) ? 1024 : l - , c = 4 * u * 4 - , l = this.cv(u); - a[c] = 0, - a[1 + c] = 0, - a[2 + c] = l[0], - a[3 + c] = l[1], - a[4 + c] = 0, - a[5 + c] = v, - a[6 + c] = l[0], - a[7 + c] = l[1] + v, - a[8 + c] = d, - a[9 + c] = v, - a[10 + c] = l[0] + d, - a[11 + c] = l[1] + v, - a[12 + c] = d, - a[13 + c] = 0, - a[14 + c] = l[0] + d, - a[15 + c] = l[1] - } - var p = n.fe(new Uint16Array(a), 8) - , m = t.Hn() - , y = (this.fv(), - this.av.Wi.set(this.texture.texture), - this.getSize()) - , i = (n.bindFramebuffer.set(this.av.framebuffer), - n.be.current); - for (n.be.set([0, 0, y[0], y[1]]), - u = 0, - f = this.rv.length; u < f; u++) { - var b = this.rv[u] - , g = this.jG[b] || {} - , M = g.width - , d = void 0 === M ? 512 : M - , v = void 0 === (M = g.height) ? 1024 : M; - b && m.Ce({ - u_sourceTexture: this.De[b], - u_sourceTextureSize: [d, v], - u_targetTextureSize: y - }, { - a_sourceTexturePos: { - buffer: p, - type: "vec2", - Re: 8, - offset: 0 - }, - a_targetTexturePos: { - buffer: p, - type: "vec2", - Re: 8, - offset: 4 - } - }, 6, this.Pc, void 0, void 0, void 0, void 0, void 0, 6 * u) - } - n.bindTexture.set(null), - this.texture.bind(s.CLAMP_TO_EDGE, s.NEAREST, s.LINEAR), - n.be.set(i), - n.bindFramebuffer.set(null) - } - } - , - ss.prototype.getSize = function () { - return [1024, 1024 * this.rv.length] - } - , - ss.prototype.destroy = function () { - this.buffer && (this.buffer.destroy(), - delete this.buffer), - this.texture && (this.texture.destroy(), - delete this.texture); - for (var t = 0, i = this.De; t < i.length; t++) - i[t].destroy(); - this.av && (this.av.destroy(), - delete this.av), - this.Pc && (this.Pc.context.deleteBuffer(this.Pc), - delete this.Pc), - this.images = {}, - this.lv = [], - this.rv = [], - this.De = {} - } - , - ss.prototype.fv = function () { - var t = this.getSize(); - this.texture.update({ - width: t[0], - height: t[1], - data: null - }, { - resize: !0 - }) - } - , - ss.prototype.cv = function (t) { - return [0, 1024 * t] - } - ; - var ns = ss; - function ss() { - this.pv = 0, - this.lv = [], - this.rv = [], - this.images = {}, - this.jG = {}, - this.De = {}, - this.dv = [256, 256] - } - var es, hs = "labelsLayer", os = { - visible: !0, - zIndex: 120, - opacity: 1, - collision: !0, - animation: !0, - allowCollision: !1, - zooms: _.zoomRange, - VT: !1 - }; - function as(t) { - var i = es.call(this, t = void 0 === t ? {} : t) || this; - return i.CLASS_NAME = "AMap.LabelsLayer", - i._opts = { - id: hs, - type: hs, - opacity: 1, - visible: 1 - }, - i._opts = _.assign({}, os, t), - i.xt = i._opts.zooms, - i.Qh = void 0 === t.zIndex ? 120 : t.zIndex, - i.il = void 0 === t.visible || t.visible, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i - } - es = e, - _.Ei(as, es), - as.prototype.getSourceConfig = function () { - return { - id: this.hS, - type: hs - } - } - , - as.prototype.getState = function () { - return es.prototype.getLayerConfig.call(this) - } - , - as.prototype.co = function () { - return this.hS - } - , - as.prototype.vi = function (t) { - var i = this.fz; - return (i = i && i.vi(t, this.hS) || "") ? this.getSource().Ds(i) : null - } - , - as.prototype.Do = function (t) { - return t = es.prototype.Do.call(this, t), - this.map && this.uz(this.map), - t - } - , - as.prototype.v$ = function () { - this.fz && this.fz.remove(this) - } - , - as.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - as.prototype.IL = function (t) { - var i = this.fz - , n = this.source; - return !!(t && i && n && (i = i.$f || {}, - n = n.zL(t))) && !!i[n] - } - , - as.prototype.uz = function (t) { - (this.fz = t.fS()).add(this) - } - , - us = as, - _.Ei(M, us), - M.prototype.getCollision = function () { - return this._opts.collision - } - , - M.prototype.setCollision = function (t) { - this._opts.collision = t = void 0 === t || t, - this.to({ - vv: !1 - }) - } - , - M.prototype.getAllowCollision = function () { - return this._opts.allowCollision - } - , - M.prototype.setAllowCollision = function (t) { - this._opts.allowCollision = t = void 0 === t || t, - this.to({ - vv: !1 - }) - } - , - M.prototype.getOpacity = function () { - return this._opts.opacity - } - , - M.prototype.setOpacity = function (t) { - void 0 !== t && (this._opts.opacity = t, - this.tl = t, - this.to({ - vv: !0 - })) - } - , - M.prototype.getZooms = function () { - return this._opts.zooms - } - , - M.prototype.setZooms = function (t) { - void 0 !== t && (this._opts.zooms = t, - this.xt = t, - this.to({ - vv: !0 - })) - } - , - M.prototype.getzIndex = function () { - return this._opts.zIndex - } - , - M.prototype.setzIndex = function (t) { - void 0 !== t && (this._opts.zIndex = t, - this.Qh = t, - this.to({ - vv: !0 - })) - } - , - M.prototype.add = function (t) { - Array.isArray(t) || (t = [t]), - this._add(t), - (t = this.getSource()) && t.add(this.mv, this._opts, this.to.bind(this)) - } - , - M.prototype.remove = function (t) { - Array.isArray(t) || (t = [t]), - this._remove(t), - (t = this.getSource()) && t.remove(this.mv, this._opts, this.to.bind(this)) - } - , - M.prototype.clear = function () { - this.mv = {}; - var t = this.getSource(); - t && (t.clear(), - this.to({ - vv: !1 - })) - } - , - M.prototype.show = function () { - us.prototype.show.call(this) - } - , - M.prototype.hide = function () { - us.prototype.hide.call(this) - } - , - M.prototype.getAllOverlays = function () { - var t, i, n = this.mv, s = []; - for (t in n) - n.hasOwnProperty(t) && (i = n[t]) && s.push(i); - return s - } - , - M.prototype.getState = function () { - var t = this._opts; - return { - zIndex: this.Qh, - zooms: this.xt, - visible: this.il, - opacity: this.tl, - collision: t.collision, - animation: t.animation, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - M.prototype.setTop = function (t, i) { - var n = this.Kl; - t && (i ? (n && n.hS !== t.hS && n.setTop(!1), - this.Kl = t) : this.Kl = null) - } - , - M.prototype.Kh = function (t) { - us.prototype.Kh.call(this, t); - var i = this.mv; - Object.keys(i).length && t.add(i, this._opts, this.to.bind(this, { - vv: !1 - })) - } - , - M.prototype.to = function (t) { - var i = this - , t = (t = void 0 === t ? {} : t).vv; - this.map && (void 0 === t || t ? (t = this.getSource()) && t.update(this._opts, function () { - i.map && i.map.setNeedUpdate(!0) - }) : this.map.setNeedUpdate(!0)) - } - , - M.prototype.onAdd = function () { - var t, i = this.mv; - for (t in i) - i.hasOwnProperty(t) && i[t].Cs(this) - } - , - M.prototype.v$ = function () { - us.prototype.v$.call(this); - var t, i = this.mv; - for (t in i) - i.hasOwnProperty(t) && i[t].Cs(null) - } - , - M.prototype._add = function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - (this.mv[s.hS] = s).Cs(this) - } - } - , - M.prototype._remove = function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - delete this.mv[s.hS], - s.Cs(null) - } - } - ; - var us, fs = _.dZ([_.pZ("LabelsLayer")], M); - function M(t) { - return (t = us.call(this, t = void 0 === t ? {} : t) || this).mv = {}, - t - } - ls.prototype.addImage = function (e, h) { - var r = this; - this.getImage(e) ? console.log("there is already a image named " + e) : (this.zH.SH(e, function (t, i) { - h.cb && h.cb(t, i) - }), - this.zH.has(e) || this.zH.nS(e, function (s) { - r.map.z_.loadImage(h.url, { - name: e, - type: "userImage", - cb: function (t) { - var i, n; - t && t.img ? (n = r.map.getContext()) && (t = n.createTexture(t.img, { - Zi: !0 - }), - i = h.filter ? n.gl[h.filter] : n.gl.LINEAR, - n = h.wrap ? n.gl[h.wrap] : n.gl.CLAMP_TO_EDGE, - t.bind(n, i, i), - r.De[e] = t, - s(null, t)) : s(new Error("no img")) - } - }) - })) - } - , - ls.prototype.addImageBitmap = function (e, h) { - var r = this - , o = h.url; - this.getImage(o) ? console.log("there is already a image named " + o) : (this.zH.SH(o, function (t, i) { - h.cb && h.cb(t, i) - }), - this.zH.has(o) || this.zH.nS(o, function (t) { - var i = { - img: e, - startX: 0, - startY: 0, - status: _.uc.LOADED, - height: e.height, - width: e.width, - type: "userImage" - }; - r.map.z_.addImageData(o, i); - var i = (n = r.map.getContext()).createTexture(i.img, { - Zi: !0 - }) - , s = h.filter ? n.gl[h.filter] : n.gl.LINEAR - , n = h.wrap ? n.gl[h.wrap] : n.gl.CLAMP_TO_EDGE; - i.bind(n, s, s), - t(null, r.De[o] = i) - })) - } - , - ls.prototype.getImage = function (t) { - return this.De[t] - } - , - ls.prototype.RH = function (t) { - var i = this.De[t]; - i && (delete this.De[t], - i.destroy()) - } - , - ls.prototype.MH = function (t) { - return this.zH.has(t) - } - , - ls.prototype.L_ = function () { - var t = w.create("canvas", null) - , i = (t.getContext || console.error("createArrowTexture error"), - t.height = 64, - t.width = 64, - t.getContext("2d")); - i ? (i.fillStyle = "white", - i.beginPath(), - i.moveTo(8, 56), - i.lineTo(32, 36), - i.lineTo(58, 56), - i.lineTo(58, 36), - i.lineTo(32, 14), - i.lineTo(8, 36), - i.fill(), - (t = (i = this.map.getContext()).createTexture(t, { - Zi: !0 - })).bind(i.gl.CLAMP_TO_EDGE, i.gl.LINEAR, i.gl.LINEAR), - this.De.AMapArrow = t) : console.error("createArrowTexture error") - } - , - ls.prototype.AH = function () { - this.addImage("emptyTexture", { - url: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" - }) - } - ; - var cs = ls; - function ls(t) { - this.map = t, - this.De = {}, - this.zH = new _.IH, - this.L_(), - this.AH() - } - ds = e, - _.Ei(ps, ds), - ps.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "sky" - } - } - , - ps.prototype.destroy = function () { - this._id && (this._id = "") - } - , - ps.prototype.co = function () { - return this._id - } - , - ps.prototype.getState = function () { - return { - visible: this.il, - opacity: 1, - skyColor: this.$C, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - ps.prototype.lo = function () { - return !0 - } - ; - var ds, vs = ps; - function ps(t) { - var i = ds.call(this, t = void 0 === t ? { - visible: !0 - } : t) || this; - return i.CLASS_NAME = "AMap.SkyLayer", - i._id = "sky_" + _.Util.uuid(), - i.il = void 0 === t.visible || t.visible, - i.$C = t.skyColor, - i.$C = i.$C && _.Util.color2RgbaArray(i.$C), - i.Qh = t.zIndex || 500, - i._rejectMapMask = !0, - i - } - k.prototype.cS = function (t, i, n) { - for (var s = (this.wf = i).viewState, e = s.projectionId, h = s.viewMode, r = (s.zoom, - this.If = _.V[e], - this._viewMode = h, - this.reset(), - this.Of(), - this._map), o = {}, a = 0, u = this.Tw(); a < u.length; a++) { - var f = u[a] - , c = f.getLayerConfig() - , l = f._opts - , d = f.hS - , v = f.getRender(); - if (v) { - var p, m = n[d]; - if (m) - for (var y in m) - m.hasOwnProperty(y) && (p = m[y], - "AMap.Inner.LabelsLayer" === f.CLASS_NAME && "other" === y || "AMap.LabelsLayer" === f.CLASS_NAME && "tile" === y || p && (y = v.Hz(t, i, this, p, r, c)) && (o[d] = y, - (l.collision || l.allowCollision) && (this.YL = !1), - l.allowCollision) && (this.UT = !1)) - } - } - this.Ps = o, - e = (s = this._map.getMapState()).rotating, - h = s.zooming, - s = s.panning, - h || s || this.reset(), - this.YL && this.UT && (e || h || s) || this.Ff(), - s = void 0 === (h = (e = this.Ef()).Uf) ? {} : h, - h = e.$f, - this.$f = void 0 === h ? {} : h, - this.Uf = s - } - , - k.prototype.uS = function () { - return this.LC - } - , - k.prototype.add = function (t) { - this.LC[t.hS] = t - } - , - k.prototype.remove = function (t) { - t && delete this.LC[t.hS] - } - , - k.prototype.destroy = function () { - this.LC && (this.LC = {}), - this.Uf && (this.Uf = {}, - delete this.Uf), - this.$f && (this.$f = {}, - delete this.$f) - } - , - k.prototype.vi = function (t, i, n) { - if ((void 0 === n && (n = !1), - this._map) && ((this._map.getStatus().pickWhenMoving || !this._map.TL()) && t && this._p)) { - var s = this._map.getMapsContainer() - , t = (s = w.mousePos(s, t, this._map))[0] - , s = s[1] - , e = this._p.search({ - ja: t - 1, - Fa: s - 1, - Oa: t + 1, - Ea: s + 1 - }); - if (e.length) { - if (e = this.NL(e, i), - (i = this.sP(e)) && i.path && 0 < i.path.length && (e = i.path, - !this.ss([t, s], e))) - return null; - if (!i) - return null; - if (t = i.id, - (s = this.DC(t)) && s.Nf && (i = (e = s.Nf[t]) && e.data.extData || {}, - this.Uf[t])) { - if (n) - return [i.Lp, i.Ap]; - if ("poi" === i.type) - return { - type: i.type, - id: i.id, - lnglat: e.data.position, - name: e.data.name - }; - if (!i.type) - return i.id - } - } - } - return null - } - , - k.prototype.search = function (t) { - for (var i = [], n = 0, s = this._p.search(t); n < s.length; n++) { - var e, h = s[n], r = h.id; - (e = this.FC(r)) && "AMap.Inner.LabelsLayer" === e.CLASS_NAME && this.TC(r) && i.push(h) - } - return i - } - , - k.prototype.reset = function () { - this.Uf = {}, - this.$f = {} - } - , - k.prototype.tC = function () { - return this._p - } - , - k.prototype.iC = function (t, i, n, s) { - var e = void 0 === (e = (t = void 0 === t ? {} : t).x) ? 0 : e - , h = void 0 === (h = t.y) ? 0 : h - , r = void 0 === (r = t.width) ? 0 : r - , t = void 0 === (t = t.height) ? 0 : t - , o = (i = void 0 === i ? {} : i).id - , a = i.rank - , u = i.padding - , f = void 0 === (f = i.type) ? "" : f - , i = i.name - , c = _.tc._d - , u = u || c || 0; - return n && 0 < n.length && void 0 !== s && 0 !== s ? (n = (c = this.Ddt(n[0], n[1], { - ja: e - u, - Fa: h - u, - Oa: e + r + u, - Ea: h + t + u - }, s)) && c.Ro || [], - s = c && c.path || [], - { - id: o, - name: i, - type: f, - rank: a || 1, - ja: n[0], - Fa: n[1], - Oa: n[2], - Ea: n[3], - path: s - }) : { - id: o, - name: i, - type: f, - rank: a || 1, - ja: e - u, - Fa: h - u, - Oa: e + r + u, - Ea: h + t + u - } - } - , - k.prototype.NL = function (t, i) { - for (var n = [], s = 0, e = t = void 0 === t ? [] : t; s < e.length; s++) { - var h, r = e[s]; - r.id && (h = this.FC(r.id)) && h.hS === i && n.push(r) - } - return n - } - , - k.prototype.sP = function (t) { - for (var i = this.Uf || {}, n = [], s = 0, e = t; s < e.length; s++) { - var h = e[s]; - i[h.id] && n.push(h) - } - for (var r = -1 / 0, o = null, a = 0, u = n; a < u.length; a++) { - var f = u[a] - , c = f.rank; - r < c && (r = c, - o = f) - } - return o - } - , - k.prototype.Tw = function () { - var t, i, n = this.LC, s = []; - for (t in n) - n.hasOwnProperty(t) && (i = n[t], - s.push(i)); - return s.sort(function (t, i) { - return i.Qh - t.Qh - }), - s - } - , - k.prototype.Rdt = function (t, i, n) { - var s = n.x - , n = n.y - , e = t[0] - , t = t[1] - , h = s + (e - s) * Math.cos(i * Math.PI / 180) - (t - n) * Math.sin(i * Math.PI / 180) - , e = n + (e - s) * Math.sin(i * Math.PI / 180) + (t - n) * Math.cos(i * Math.PI / 180); - return [this.Pdt(h, 2), this.Pdt(e, 2)] - } - , - k.prototype.Pdt = function (t, i) { - return Math.round(t * Math.pow(10, i)) / Math.pow(10, i) - } - , - k.prototype.ss = function (t, i, n) { - for (var s = t[0], e = t[1], h = !1, r = i.length, o = 0, a = r - 1; o < r; a = o, - o += 1) { - var u = !1 - , f = i[o][0] - , c = i[o][1] - , l = i[a][0] - , d = i[a][1]; - if (f === s && c === e || l === s && d === e) - return !!n; - if (c < e == e <= d) { - if (s === (l = (l - f) * (e - c) / (d - c) + f)) - return !!n; - u = s < l - } - u && (h = !h) - } - return h - } - , - k.prototype.Ddt = function (t, i, n, s) { - var e, h, t = { - x: t, - y: i - }; - return void 0 !== s && 0 !== s ? (i = [n.ja, n.Fa], - s = this.Rdt(i, i = -s, t), - e = [n.Oa, n.Fa], - e = this.Rdt(e, i, t), - h = [n.Oa, n.Ea], - h = this.Rdt(h, i, t), - n = [n.ja, n.Ea], - s = [s, e, h, this.Rdt(n, i, t)], - { - Ro: Rt.Qa(s), - path: s - }) : null - } - , - k.prototype.rd = function (t, i) { - var n = i.anchorOffset - , s = (i = void 0 === (i = i.size) ? [0, 0] : i)[0] - , i = i[1]; - return { - x: (t = _.vector.add(t, n))[0], - y: t[1], - width: s, - height: i - } - } - , - k.prototype.hd = function (t, i, n, s) { - var e = i.offsetX - , h = i.offsetY - , r = i.w - , i = i.h; - return { - x: t[0] + (void 0 === e ? 0 : e) * n, - y: t[1] + (void 0 === h ? 0 : h) * n, - width: (void 0 === r ? 0 : r) * n, - height: (void 0 === i ? 0 : i) * n - } - } - , - k.prototype.Ff = function () { - var t = this.Ps - , i = this.wf && this.wf.viewState - , n = this.ad - , s = this.$f; - if (i) { - var e, h = { - viewState: i, - size: this.wf.size, - transform: this.If, - view: this._view, - viewMode: this._viewMode, - positionType: "relative" - }, r = i.zoom; - for (e in t) - if (t.hasOwnProperty(e) && t[e]) { - var o = t[e] - , a = o.coords - , u = o.style - , f = o.Nf; - if (o = this.LC[e]) { - var c, l, d, v, p, m, y, b, g, M, k = o.getRender().Jz(), w = k.Sa, x = o.Qh; - for (c in a) - a.hasOwnProperty(c) && (g = (M = a[c]).origin, - m = M.icon, - M = M.padding, - (l = u[c]).forceShow, - this.TC(c) || (s[c] = 1), - s[c] || (d = (b = f[c]).data && b.data.rotation || 0, - v = (y = b.data.extData || {}).Sa || w || [0, 0], - v = (g = _.vector.add(g, [v[0], v[1], 0]))[0], - p = g[1], - g = g[2], - h.centerCoord = k.centerCoord, - v = _.LabelsRenderUtil.r0(v, p, g, r, h), - p = { - id: c, - rank: _.LabelsRenderUtil.getRank(b, { - forceShow: l.forceShow, - _z: x - }), - name: b.data.name, - type: y.type || "" - }, - g = this.rd(v, m), - y = this.PC(l) || _.zoomRange, - m = _.Util.dS(r, y), - l.showIcon && m && g.width && g.height && (y = this.iC(g, p, v, d), - n.push(y)), - m = 1, - b.data.extData.Lp && b.data.extData.Ap && (m = (g = this._map.mapStyle.dn(b.data.extData.Lp, b.data.extData.Ap, i.optimalZoom)) && l.text ? g.fontSize / l.text.style.fontSize : 1), - y = this.hd(v, M, m), - b = this.OC(l) || [2, 20], - g = _.Util.dS(r, b), - l.showText && g && y.width && y.height && (M = this.iC(y, p, v, d), - n.push(M)))) - } - } - this.ld(n) - } - } - , - k.prototype.Ef = function () { - var t = {} - , i = this.$f; - if (!this.wf) - return {}; - var n = (this.wf && this.wf.viewState).zoom - , s = this.Ps - , e = {}; - if (this.YL) { - for (var h in s) - if (s.hasOwnProperty(h) && s[h]) { - var r, o = s[h], a = o.Nf, u = void 0 === a ? {} : a; - for (r in o.coords, - o.style, - u) - u.hasOwnProperty(r) && (t[r] = 1) - } - } else { - for (var h in s) - if (s.hasOwnProperty(h) && s[h]) { - var f, c, l = s[h], d = l.Nf, v = void 0 === d ? {} : d; - l.coords; - var j = void 0 === (d = l.style) ? {} : d - , B = (w = this.LC[h]).Qh; - for (f in v) - v.hasOwnProperty(f) && (c = j[f], - e[c = _.LabelsRenderUtil.getRank(v[f], { - forceShow: c.forceShow, - _z: B - })] || (e[c] = {}), - e[c][f] = v[f]) - } - for (var p, m = _.labelsUtil.rank(Object.keys(e)), W = m.length, y = this.wf, b = { - viewState: y.viewState, - size: y.size, - transform: this.If, - view: this._view, - viewMode: this._viewMode, - positionType: "relative" - }, g = W - 1; 0 <= g; g--) - for (var M, F = e[m[g]], k = (M = Object.keys(F)).length - 1; 0 <= k; k--) { - var w, x = M[k]; - if (!i[x] && (w = this.FC(x))) - if (!(A = w._opts || {}).collision && this.UT || A.VT) - t[x] = 1; - else { - var A, z = (A = w.getRender().Jz()).Sa, C = (R = this.DC(x)).style, S = R.coords; - if ((R = R.Nf)[x].data && R[x].data.rotation, - (C = C[x]) && C.forceShow) - t[x] = 1; - else { - if (O = (S = S[x]).icon || {}, - p = S.padding || {}, - S = S.origin || {}, - z = ((R = R[x]).data.extData || {}).Sa || z || [0, 0], - z = (S = _.vector.add(S, [z[0], z[1], 0]))[0], - T = S[1], - S = S[2], - b.centerCoord = A.centerCoord, - A = _.LabelsRenderUtil.r0(z, T, S, n, b), - (z = O.size)[0] && z[1]) - for (var L, T = this.rd(A, O), S = this.iC(T), G = (L = this._p.search(S)).length, I = 0; I < G; I++) { - var D = L[I]; - D.id === x ? t[D.id] = 1 : this.BC(x, D.id) && (i[D.id] = 1) - } - var z = this.wf && this.wf.viewState - , O = 1; - if (R.data.extData.Lp && R.data.extData.Ap && (O = (T = this._map.mapStyle.dn(R.data.extData.Lp, R.data.extData.Ap, z.optimalZoom)) && C.text ? T.fontSize / C.text.style.fontSize : 1), - (S = this.hd(A, p, O)).width && S.height) - for (var E, R = this.iC(S), N = (E = this._p.search(R)).length, I = 0; I < N; I++) { - var P = E[I]; - P.id === x ? t[P.id] = 1 : this.BC(x, P.id) && (i[P.id] = 1) - } - } - } - } - } - return { - Uf: t, - $f: i - } - } - , - k.prototype.ld = function (t) { - this._p && (this._p.clear(), - this._p.load(t)) - } - , - k.prototype.Of = function () { - this._p && (this._p.clear(), - this.ad = []) - } - , - k.prototype.DC = function (t) { - var i, n, s = this.Ps; - for (n in s) - if (s.hasOwnProperty(n)) { - var e = s[n]; - if (e && e.Nf && e.Nf[t]) { - i = e; - break - } - } - return i || {} - } - , - k.prototype.jC = function (t) { - var i, n = this.Ps, s = ""; - for (i in n) - if (n.hasOwnProperty(i)) { - var e = n[i] || {}; - if (e.Nf && e.Nf[t]) { - s = i; - break - } - } - return s - } - , - k.prototype.FC = function (t) { - return (t = this.jC(t)) ? this.LC[t] : null - } - , - k.prototype.TC = function (t) { - var i = this.DC(t) - , n = this._map.qz() - , s = this._map.getLayerByClass("AMap.MaskLayer") - , e = this._map.jH(); - if (i) { - var h = i.Nf; - if (!(i = i.style[t])) - return !1; - var r = h[t].data.extData || {}; - if ("poi" === r.type && !1 === n) - return !1; - if (!i.visible) - return !1; - if (n = this.EC(i), - i = this.wf.viewState.zoom, - !_.Util.dS(i, n)) - return !1; - if (i = this._map.getLayerByClass("AMap.IndoorMap"), - h[t] && r.bz && i && i.yD().show) - return !1; - if (s) { - if (n = s.getRender(), - e) - return !0; - if (n && !n.EH(h[t].data.position, this.wf)) - return !1 - } - return !0 - } - return !1 - } - , - k.prototype.BC = function (t, i, n) { - if (void 0 === n && (n = !1), - s = this.DC(i)) { - var s = s.style - , e = (t = this.FC(t)) && t._opts || {} - , h = this.FC(i) - , r = h && h._opts || {}; - if (s[i].forceShow) - return n && console.log("", " -1- ", 1), - !1; - if (t && h) { - if (t.hS !== h.hS && !e.allowCollision && !r.allowCollision) - return n && console.log("", " -2- ", 1), - !1; - if (t.hS === h.hS && !r.collision) - return n && console.log("", " -3- ", 1), - !1 - } - } - return n && console.log("", " -4- ", 1), - !0 - } - , - k.prototype.EC = function (t) { - var n = (i = this.PC(t) || [])[0] - , i = i[1] - , s = (t = this.OC(t) || [])[0] - , t = t[1]; - return [n && s ? n <= s ? n : s : n || s || 2, n && s ? i <= t ? t : i : i || t || _.zoomRange[1]] - } - , - k.prototype.PC = function (t) { - return t.icon && t.icon[0] && t.icon[0].zooms - } - , - k.prototype.OC = function (t) { - return t.text && t.text.zooms - } - ; - var ms = _.dZ([_.pZ("LabelsManager")], k); - function k(t) { - this.LC = {}, - this.Uf = {}, - this.$f = {}, - this.Ps = {}, - this._p = _.rbush(), - this.ad = [], - this._viewMode = "2D", - this.YL = !0, - this.UT = !0, - this._map = t, - this._view = t.getView() - } - ys = e, - _.Ei(gs, ys), - gs.prototype.getState = function () { - return { - visible: this.il, - opacity: this.tl, - zIndex: this.Qh, - layer: this, - path: this.$x, - depthTest: this.AF, - ce: this.IF - } - } - , - gs.prototype.setMask = function (t) { - t && (this.$x = t, - this.getSource().CS(), - null != (t = this.map)) && t.setNeedUpdate(!1) - } - , - gs.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "mask", - zooms: _.zoomRange - } - } - , - gs.prototype.co = function () { - return this._id - } - , - gs.prototype.lo = function () { - return !0 - } - ; - var ys, bs = gs; - function gs(t) { - var i = ys.call(this, t) || this; - return i.CLASS_NAME = "AMap.MaskLayer", - i.$x = t.path, - i.Qh = t.zIndex || -100, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i.il = void 0 === t.visible || t.visible, - i.xt = t.zooms || _.zoomRange, - i - } - var Ms, ks = "Nebula.labelsLayer", xs = "nebulaLabel", As = (Ms = e, - _.Ei(zs, Ms), - zs.prototype.getState = function () { - return _.assign({}, { - layer: this, - rejectMapMask: this._rejectMapMask - }, Ms.prototype.getLayerConfig.call(this)) - } - , - zs.prototype.getSourceConfig = function () { - var t = AMap.getConfig().protocol; - return { - id: xs, - type: xs, - tileUrl: t + (_.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), - tileSize: 0, - zooms: _.zoomRange - } - } - , - zs.prototype.co = function () { - return xs - } - , - zs.prototype.vi = function (t) { - return null - } - , - zs.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - zs.prototype.Do = function (t) { - return Ms.prototype.Do.call(this, t) - } - , - zs); - function zs(t) { - var i = Ms.call(this, t = void 0 === t ? {} : t) || this; - return i.CLASS_NAME = "AMap.Nebula.LabelsLayer", - i._opts = { - id: ks, - type: ks, - opacity: 1, - visible: 1, - collision: !0, - allowCollision: !1 - }, - i._opts = _.assign({}, i._opts, t), - i.Qh = t.labelzIndex || 100, - i.il = !1 !== t.showLabel, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i - } - Ss.prototype.qk = function (t) { - return t = Object.keys(t), - this.Uk + t.length < this.uf - } - , - Ss.prototype.getSize = function () { - return [this.maxWidth, this.Uk / this.Hk * this.unit] - } - , - Ss.prototype.clear = function () { } - , - Ss.prototype.destroy = function () { } - , - Ss.prototype.Rk = function (t) { - var i = this.Vk - , n = this.$k - , s = t[_.dY.iconWidth] - , t = t[_.dY.iconHeight]; - return this.pY < t && (this.pY = t), - i + s <= this.maxWidth || (this.$k += this.pY, - n = this.$k, - this.Vk = i = 0, - this.pY = t), - this.Vk += s, - this.nU = [i, n], - { - startX: i, - startY: n - } - } - ; - var Cs = Ss; - function Ss() { - this.Uk = 0, - this.unit = 32, - this.Hk = 128, - this.maxWidth = this.unit * this.Hk, - this.maxHeight = this.unit * this.Hk, - this.uf = this.maxWidth / this.unit * (this.maxHeight / this.unit), - this.Kv = !1, - this.Vk = 0, - this.$k = 0, - this.pY = 0, - this.nU = [0, 0], - this.Es = {}; - var t = document.createElement("canvas"); - t.width = this.maxWidth, - t.height = this.maxHeight, - this.mY = t, - this.Nz = t.getContext("2d") - } - Ts.prototype.play = function (t) { - for (var i = t, n = Date.now(); 0 < i && this.offset !== this.mG.length;) { - var s = this.mG[this.offset] - , e = this.bY.Rk(s.info) - , h = s.info[_.dY.iconWidth] - , r = s.info[_.dY.iconHeight]; - 0 < h && 0 < r && this.bY.Nz.putImageData(function (t, i, n, s) { - for (var e = (t = t.createImageData(n, s)).data, h = 0; h < i.length; h++) - e[4 * h + 0] = i[h], - e[4 * h + 1] = i[h], - e[4 * h + 2] = i[h], - e[4 * h + 3] = 255; - return t - }(this.bY.Nz, s.data, s.info[_.dY.iconWidth], s.info[_.dY.iconHeight]), e.startX, e.startY), - s.pos = e, - delete s.data, - this.result.push(s), - this.offset++, - i = t - (Date.now() - n) - } - return this.offset === this.mG.length && (this.bY.Kv = !0), - this.result - } - , - Object.defineProperty(Ts.prototype, "status", { - get: function () { - return this.offset >= this.mG.length ? _.vY.finish : _.vY.pause - }, - eb: !1, - nb: !0 - }); - var Ls = Ts; - function Ts(t, i) { - this.bY = t, - this.mG = i, - this.type = "SDFCombineTask", - this.offset = 0, - this.result = [] - } - Ds.prototype.dynamicTextSDFInfoLoaded = function (t) { - var i = this.map.R_; - i && "SDFManagerBase" !== i.CLASS_NAME && (i.Ju(t.data), - this.Eo()) - } - , - Ds.prototype.iconImageLoaded = function (t) { - for (var i = this, t = t.data, e = [], n = 0, s = t; n < s.length; n++) - !function (n) { - n.url; - var s = n.data; - e.push(new Promise(function (t) { - var i = new Image; - i.src = n.data.data.data, - i.onload = function () { - t({ - img: i, - name: n.data.data.hash, - hv: n.data.ext.hv, - width: s.width, - height: s.height - }) - } - } - )) - }(s[n]); - Promise.all(e).then(function (t) { - i.map.so.sv(t) - }), - this.Eo() - } - , - Ds.prototype.updateDataVersion = function (t) { - this.map.UH(t.version) - } - , - Ds.prototype.destroy = function () { - this.$$() - } - , - Ds.prototype.Ia = function () { - this.map.gn.on("dynamicTextSDFInfoLoaded", this.dynamicTextSDFInfoLoaded.bind(this)), - this.map.gn.on("iconImageLoaded", this.iconImageLoaded.bind(this)), - this.map.gn.on("updateDataVersion", this.updateDataVersion.bind(this)) - } - , - Ds.prototype.$$ = function () { - this.map.gn.clearEvents("dynamicTextSDFInfoLoaded"), - this.map.gn.clearEvents("commonWordLoaded"), - this.map.gn.clearEvents("iconImageLoaded"), - this.map.gn.clearEvents("updateDataVersion") - } - , - Ds.prototype.Eo = function () { - this.map.setNeedUpdate(!0) - } - ; - var Is = Ds; - function Ds(t) { - this.map = t, - this.Ia() - } - Es.prototype.CS = function () { - this.AS = !1 - } - , - Es.prototype.getData = function () { - var t, h, e, r, i, o, a, u = this, n = this.$E; - return this.AS || !n || (t = _.GeometryUtil.typePolygon(n), - h = { - type: "Polygon", - $S: new Array, - polygons: new Array, - BM: new Array, - LS: { - x: 0, - y: 0 - } - }, - t && "Polygon" === t ? (n[0][0] instanceof _.LngLat ? h.LS = _.lcs.getLocalByLnglat(n[0][0].toString()) : h.LS = _.lcs.getLocalByLnglat(n[0][0]), - e = (i = h.LS).x, - r = i.y, - _.forEach(n, function (t, i) { - var s; - 0 === i ? _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(e, r, t.x, t.y))[0] - , i = i[1]; - h.$S.push(t.Sa[0] + n, t.Sa[1] + i) - }) : (s = [], - _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(e, r, t.x, t.y))[0] - , i = i[1]; - s.push(t.Sa[0] + n, t.Sa[1] + i) - }), - h.BM.push(s)) - })) : t && "MultiPolygon" === t && (h.type = "MultiPolygon", - n[0][0][0] instanceof _.LngLat ? h.LS = _.lcs.getLocalByLnglat(n[0][0][0].toArray()) : h.LS = _.lcs.getLocalByLnglat(n[0][0][0]), - o = (i = h.LS).x, - a = i.y, - _.forEach(n, function (t) { - var e = [] - , n = []; - _.forEach(t, function (t, i) { - var s; - 0 === i ? _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(o, a, t.x, t.y))[0] - , i = i[1]; - e.push(t.Sa[0] + n, t.Sa[1] + i) - }) : (s = [], - _.forEach(t, function (t) { - t instanceof _.LngLat && (t = t.toArray()); - var t = _.lcs.getLocalByLnglat(t) - , n = (i = u.DS(o, a, t.x, t.y))[0] - , i = i[1]; - s.push(t.Sa[0] + n, t.Sa[1] + i) - }), - n.push(s)) - }), - h.BM.push(n), - h.polygons.push(e) - })), - this.AS = this.zw(h), - this.AS) - } - , - Es.prototype.DS = function (t, i, n, s) { - return n -= t, - t = s - i, - [n * (s = _.lcs.getSize())[0], t * s[1]] - } - , - Es.prototype.zw = function (t) { - if (t.Oc = new _._w, - !t.Dc) { - t.Dc = new _.K_; - var i = [] - , n = []; - "Polygon" === t.type ? (i = [t.$S], - n = [t.BM]) : "MultiPolygon" === t.type && (i = t.polygons, - n = t.BM); - for (var s = 0; s < i.length; s++) { - for (var e = i[s], h = [], r = 0; r < n[s].length; r++) { - var o = n[s][r]; - h.push(e.length / 2), - e.push.apply(e, o) - } - var a = t.Dc.Nx(e, h); - 0 < a && t.Oc.add(99, 99, a, _.zoomRange[0], _.zoomRange[1]) - } - return t - } - } - , - Es.prototype.EE = function (t) { - if (!t) - return null; - for (var i = [], n = t.length, s = 0; s < n; s++) { - var e = t[s] - , e = [(e = this.map.pixelToLngLat(e, 16)).lng, e.lat]; - i.push(e) - } - return [i] - } - ; - var Os = Es; - function Es(t, i, n) { - this.map = i, - this.$E = t - } - Ps.prototype.destroy = function () { - for (var t = 0, i = this.MZ; t < i.length; t++) { - var n = i[t]; - "function" == typeof n.destroy && n.destroy.call(n) - } - } - ; - var Rs = Ps; - function Ps(t) { - this.MZ = t, - this.dynamic = new Bs - } - js = _.Event, - _.Ei(Ws, js), - Ws.prototype.has = function (t) { - return this.gV.has(t) - } - , - Ws.prototype.set = function (t, i, n) { - (n = void 0 === n || n) ? (n = this.gV.get(t), - this.gV.set(t, i), - n !== i && this.emit(t, i)) : this.gV.set(t, i) - } - , - Ws.prototype.get = function (t) { - return this.gV.get(t) - } - , - Ws.prototype.subscribe = function (t, i, n, s) { - var e = this; - return this.on(t, i, n, s = void 0 !== s && s), - function () { - return e.off(t, i, n) - } - } - ; - var js, Bs = Ws; - function Ws() { - var t = null !== js && js.apply(this, arguments) || this; - return t.gV = new _.OZ, - t - } - function Fs(t) { - var i = this - , t = (this.map = t, - this.gZ = function () { - return i.stencil.getData() - } - , - t.getOutseaDataType()) - , t = _.vZ(t).boundsP16; - this.stencil = new Os(t, this.map) - } - Ns.prototype.update = function (t) { - var i = this; - void 0 === t ? this.PZ.forEach(function (t) { - i.jZ(t) - }) : (t = this.WZ(t)) && this.jZ(t) - } - , - Ns.prototype.add = function (t) { - if (this.PZ.has(t.group)) { - var i = this.PZ.get(t.group); - if (null == i || !i.includes(t)) - return null != (i = this.PZ.get(t.group)) && i.push(t), - !0 - } - return !1 - } - , - Ns.prototype.remove = function (t) { - if (this.PZ.has(t.group)) { - var i = null == (i = this.PZ.get(t.group)) ? void 0 : i.indexOf(t); - if (-1 !== i) - return null != (t = this.PZ.get(t.group)) && t.splice(i, 1), - !0 - } - return !1 - } - , - Ns.prototype.BZ = function (t) { - var i = 0; - return void 0 === t ? this.PZ.forEach(function (t) { - i += t.length - }) : i += null != (t = null == (t = this.WZ(t)) ? void 0 : t.length) ? t : 0, - i - } - , - Ns.prototype.RZ = function (t, i, n) { - if (void 0 === n && (n = 1), - !this.WZ(t) || this.BZ(t) <= 0) - return !1; - for (var s = 0; s < n && 0 < this.BZ(t); s++) { - var e = this.GZ(t, !0); - void 0 !== e && (!i || null != i && i(e) ? e.NZ() : this.add(e)) - } - return !0 - } - , - Ns.prototype.GZ = function (t, i) { - var n, s; - return void 0 === i && (i = !1), - this.WZ(t) && (s = null == (s = this.WZ(t)) ? void 0 : s.pop(), - i) && s && null != (n = s.UZ) && n.call(s) ? this.GZ(t, i) : s - } - , - Ns.prototype.sort = function (t, i) { - return i.FZ() - t.FZ() - } - , - Ns.prototype.WZ = function (t) { - return this.PZ.get(t) - } - , - Ns.prototype.jZ = function (t) { - for (var i, n = 0; n < t.length; n++) { - var s = t[n]; - null != (i = null == s ? void 0 : s.UZ) && i.call(s) && (t.splice(n, 1), - n--) - } - t.sort(this.sort) - } - , - Ns.prototype.destroy = function () { - this.PZ.clear() - } - ; - var Gs = Ns; - function Ns(t) { - var i = this; - this.PZ = new _.OZ, - this.ZZ = t, - null != (t = this.ZZ.Fz) && t.forEach(function (t) { - i.PZ.set(t, []) - }), - this.ZZ._Z && (this.sort = this.ZZ._Z) - } - var _s = { - rainbow: { - HY: ["#96005A", "#0000C8", "#0019FF", "#0098FF", "#2CFF96", "#97FF00", "#FFEA00", "#FF6F00", "#FF0000"], - JY: [0, .125, .25, .375, .5, .625, .75, .875, 1] - }, - jet: { - HY: ["#000083", "#003CAA", "#05FFFF", "#FFFF00", "#FA0000", "#800000"], - JY: [0, .125, .375, .625, .875, 1] - }, - hsv: { - HY: ["#ff0000", "#fdff02", "#f7ff02", "#00fc04", "#00fc0a", "#01f9ff", "#0200fd", "#0800fd", "#ff00fb", "#ff00f5", "#ff0006"], - JY: [0, .169, .173, .337, .341, .506, .671, .675, .839, .843, 1] - }, - hot: { - HY: ["#000000", "#e60000", "#ffd200", "#ffffff"], - JY: [0, .3, .6, 1] - }, - greys: { - HY: ["#000000", "#ffffff"], - JY: [0, 1] - }, - greens: { - HY: ["#00441b", "#006d2c", "#238b45", "#41ab5d", "#74c476", "#a1d99b", "#c7e9c0", "#e5f5e0", "#f7fcf5"], - JY: [0, .125, .25, .375, .5, .625, .75, .875, 1] - }, - ylgnbu: { - HY: ["#081d58", "#253494", "#225ea8", "#1d91c0", "#41b6c4", "#7fcdbb", "#c7e9b4", "#edf8d9", "#ffffd9"], - JY: [1, .875, .75, .625, .5, .375, .25, .125, 0] - }, - ylorrd: { - HY: ["#800026", "#bd0026", "#e31a1c", "#fc4e2a", "#fd8d3c", "#feb24c", "#fed976", "#ffeda0", "#ffffcc"], - JY: [1, .875, .75, .625, .5, .375, .25, .125, 0] - } - } - , Us = (Ys.getTexture = function (t, i) { - var n; - return this.cache[i] || (_s[i] && (n = function (t) { - t.JY, - t.HY; - for (var i = document.createElement("canvas"), n = (i.height = 1, - i.width = 256, - i.getContext("2d")), s = n.createLinearGradient(0, 0, 256, 1), e = 0; e < t.JY.length; e++) { - var h = t.JY[e] - , r = t.HY[e]; - s.addColorStop(h, r) - } - return n.fillStyle = s, - n.fillRect(0, 0, 256, 1), - i - }(_s[i]), - n = t.createTexture(n, { - Zi: !0 - }), - t = t.gl, - n.bind(t.CLAMP_TO_EDGE, t.NEAREST, t.NEAREST_MIPMAP_NEAREST), - this.cache[i] = n), - null) - } - , - Ys.cache = {}, - _.dZ([_.pZ("ColorScale")], Ys)); - function Ys() { } - Zs.oX = function (t) { - var i = document.createElement("canvas") - , n = (i.width = 256, - i.height = 256, - i.getContext("2d")); - if (n) { - n.beginPath(); - for (var s = "rgba(" + t[0] + "," + t[1] + "," + t[2] + "," + t[3] / 255 + ")", e = 0; e < 9; e++) { - n.lineWidth = 1, - n.strokeStyle = s; - var h = 256 * e / 8; - 8 === e ? (n.moveTo(.5, h - .5), - n.lineTo(255.5, h - .5), - n.moveTo(h - .5, .5), - n.lineTo(h - .5, 255.5)) : (n.moveTo(.5, .5 + h), - n.lineTo(255.5, .5 + h), - n.moveTo(.5 + h, .5), - n.lineTo(.5 + h, 255.5)) - } - return n.stroke(), - "url(" + i.toDataURL("image/png") + ")" - } - } - , - Zs.hX = function (t, i) { - var n = t.toLowerCase(); - if (n && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)) { - if (4 === n.length) { - for (var s = "#", e = 1; e < 4; e += 1) - s += n.slice(e, e + 1).concat(n.slice(e, e + 1)); - n = s - } - for (var h = [], e = 1; e < 7; e += 2) - h.push(parseInt("0x" + n.slice(e, e + 2), 10)); - return i && (t = parseFloat((parseInt(i, 16) / 255).toFixed(2)), - h.push(t)), - "RGB(" + h.join(",") + ")" - } - return n - } - ; - var Xs = Zs; - function Zs() { } - new _.rW({}), - Hs.addLayerRender = function (t, i, n) { - i && (this.YZ[t] = i), - n && (this.JZ[t] = n), - this.XZ(!0) - } - , - Hs.XZ = function (t) { - this.HZ = t - } - , - Hs.VZ = function () { - return this.HZ - } - , - Hs.HZ = !0, - Hs.YZ = {}, - Hs.JZ = {}; - var Js = _.dZ([_.pZ("LayerRenderManager")], Hs); - function Hs() { } - Vs = _.Event, - _.Ei(x, Vs), - x.prototype.TL = function () { - return !window.movingDraw && (this.gm || this.Lv || this.lt || this.Cv) - } - , - x.prototype.getContext = function () { - var t; - return null == (t = this.mm) ? void 0 : t.context - } - , - x.prototype.getGL = function () { - return this.gl - } - , - x.prototype.getView = function () { - return this._view - } - , - x.prototype.loadData = function () { - return this.IY - } - , - x.prototype.wX = function () { - return { - hardwareAccEnabled: _.Support.hardwareAccEnabled - } - } - , - x.prototype.getContainer = function () { - return this.kv - } - , - x.prototype.getSize = function () { - var t = this._view.getStatus().size; - return new _.Size(t[0], t[1]) - } - , - x.prototype.addLayer = function (t) { - var i, n, s; - "d" === _.Support.baseRender && /^(AMap\.DistrictLayer)|(AMap\.MapboxLayer)$/g.test(t.CLASS_NAME) ? console.log("浏览器版本过低,请升级最新版本的浏览器,或使用高版本火狐、谷歌等浏览器。") : (t.map = this, - i = t.getSourceConfig(), - n = this.Mv.addSource(i, this._view.au(), t), - t.Hh(this.Mv), - t.Kh(n), - s = this.Rv(t, {}), - t.Do(s), - this.zv.push(t), - this.zv.sort(function (t, i) { - return t.getOptions().zIndex - i.getOptions().zIndex - }), - "AMap.NebulaLayer" !== t.CLASS_NAME && "AMap.TileLayer.RoadNet" !== t.CLASS_NAME || !1 === this.showLabel || "w" !== this.baseRender || this.getLayerByClass("AMap.Nebula.LabelsLayer") || (s = new As(_.Ln(_.Ln({}, this.options), { - rejectMapMask: !0 - })), - this.addLayer(s)), - "AMap.Nebula.LabelsLayer" !== t.CLASS_NAME && "AMap.MapboxLayer" !== t.CLASS_NAME || !1 === this.showLabel || "w" !== this.baseRender || ((s = this.getLayerByClass("AMap.Inner.LabelsLayer")) ? s.oP() && s.show() : (s = new Vi(_.Ln(_.Ln({}, this.options), { - rejectMapMask: !0 - })), - this.addLayer(s)), - s.getSource().addSource(i.id, n)), - "AMap.NebulaLayer" === t.CLASS_NAME && this.yS() && !_.some(this.zv, function (t) { - return "AMap.Buildings" === t.CLASS_NAME - }) && this.addLayer(new AMap.Buildings({ - zooms: [16.8, _.zoomRange[1]], - rejectMapMask: !0, - zIndex: 10, - visible: !0, - u$: !0 - })), - !this.c$ || _.some(this.zv, function (t) { - return "AMap.MaskLayer" === t.CLASS_NAME - }) || this.d$ || (this.d$ = new bs({ - zIndex: -10, - visible: !0, - path: this.c$ - }), - this.addLayer(this.d$)), - "3D" !== this.getView().type || _.some(this.zv, function (t) { - return "AMap.SkyLayer" === t.CLASS_NAME - }) || this.addLayer(new vs({ - zIndex: -1, - visible: !0, - skyColor: this.$C - })), - t.onAdd && t.onAdd(), - this.d_(), - this.setNeedUpdate(!0)) - } - , - x.prototype.removeLayer = function (t) { - for (var i, n = 0; n < this.zv.length; n++) - this.zv[n] === t && (this.zv.splice(n, 1), - t.v$ && (t.v$(), - "d" === _.Support.baseRender) && null != (i = t.getRender()) && i.destroy(), - t.map = null, - --n); - this.d_(), - this.setNeedUpdate(!0) - } - , - x.prototype.setLayers = function (t) { - for (var i = 0; i < this.zv.length; i++) - "AMap.VectorLayer" !== (n = this.zv[i]).CLASS_NAME && this.removeLayer(n); - for (var n, i = 0; i < t.length; i++) - (n = t[i]).setMap(this) - } - , - x.prototype.getLayers = function () { - return this.zv.filter(function (t) { - return !t._opts || !t._opts.TF - }) - } - , - x.prototype.DF = function () { - return this.zv - } - , - x.prototype.getDefaultLayer = function () { - for (var t = this.getLayers(), i = 0; i < t.length; i++) { - var n = t[i]; - if (n instanceof Ui || "_defaultLayer" === n.getLayerConfig().id) - return n - } - } - , - x.prototype.getLayerByClass = function (t) { - for (var i = this.getLayers(), n = 0; n < i.length; n++) { - var s = i[n]; - if (s.CLASS_NAME === t) - return s - } - } - , - x.prototype.isDOMRender = function () { - return !_.Support.isWebGL || "d" === this.baseRender - } - , - x.prototype.isDOMMode = function () { - return !_.Support.isWebGL || "d" === this.baseRender - } - , - x.prototype.getMapState = function () { - return { - zooming: this.lt, - panning: this.Cv, - rotating: this.Lv, - pitching: this.gm - } - } - , - x.prototype.getControlContainer = function () { - return this.Tv - } - , - x.prototype.getMapsContainer = function () { - return this.Iv - } - , - x.prototype.getStatus = function () { - return { - dragEnable: this.Dv, - zoomEnable: this.Pv, - doubleClickZoom: this.fi, - keyboardEnable: this.jv, - jogEnable: this.Ov, - scrollWheel: this.Fv, - zoomSpeed: this.fZ, - animateEnable: this.Ev, - touchZoomCenter: this.Nv, - touchZoom: this.$v, - pitchEnable: this.Uv, - rotateEnable: this.Bv, - showBuildingBlock: this.m$, - isHotspot: this.Wv, - mapstyleUrl: this.c_, - features: this.Cw, - allBubble: this.HL, - pickWhenMoving: this.UB - } - } - , - x.prototype.setStatus = function (t) { - this.Dv = void 0 !== t.dragEnable ? t.dragEnable : this.Dv, - this.Pv = void 0 !== t.zoomEnable ? t.zoomEnable : this.Pv, - this.fi = void 0 !== t.doubleClickZoom ? t.doubleClickZoom : this.fi, - this.jv = void 0 !== t.keyboardEnable ? t.keyboardEnable : this.jv, - this.Ov = void 0 !== t.jogEnable ? t.jogEnable : this.Ov, - this.Fv = void 0 !== t.scrollWheel ? t.scrollWheel : this.Fv, - this.Ev = void 0 === t.animateEnable ? this.Ev : t.animateEnable, - this.Uv = void 0 === t.pitchEnable ? this.Uv : t.pitchEnable, - this.$v = void 0 === t.touchZoom ? this.$v : t.touchZoom, - this.Wv = void 0 === t.isHotspot ? this.Wv : t.isHotspot, - this.Bv = void 0 === t.rotateEnable ? this.Bv : t.rotateEnable, - this.HL = void 0 === t.allBubble ? this.HL : t.allBubble - } - , - x.prototype.getBuildingColor = function () { - return { - buildingColor: this.az, - roofColor: this.rz, - wallColor: this.sz - } - } - , - x.prototype.getMask = function () { - return this.c$ - } - , - x.prototype.getOutseaState = function () { - return this.YG - } - , - x.prototype.getOutseaDataType = function () { - return this.QZ - } - , - x.prototype.getMapboxStyle = function () { - return this.JG - } - , - x.prototype._setStyle = function (t) { - this.mapStyle.setStyle(t, !1, this) - } - , - x.prototype.RY = function (t) { - "d" !== this.baseRender && (this.mapStyle.setStyleByPlat(t, this), - this.u0(t)) - } - , - x.prototype.f_ = function (t) { - var i = this; - if (!t) - return !1; - "d" !== this.baseRender ? (this.c_ = t, - this.mapStyle.pn(function () { - i._getUserStyle(t), - i.d_(), - i.setNeedUpdate(!0) - })) : console.log("浏览器版本过低,请升级最新版本的浏览器,或使用高版本火狐、谷歌等浏览器。") - } - , - x.prototype.getProjection = function () { - return _.ProjectionManager.getProjection(this._view.au()) - } - , - x.prototype.getDefaultCursor = function () { - return this.Zv - } - , - x.prototype.setDefaultCursor = function (t) { - this.Zv = t, - this.setCursor() - } - , - x.prototype.setCursor = function (t) { - this.kv && (t = t || this.getDefaultCursor()) !== this.qv && (_.Support.$e || (this.kv.style.cursor = t), - this.qv = t) - } - , - x.prototype.destroy = function () { - this.G("beforeDestroy"), - this.y$ = !0, - this.bZ && (this.bZ.destroy(), - delete this.bZ), - this.x$ && (this.x$.destroy(), - delete this.x$), - this.gn && (this.gn.destroy(), - delete this.gn), - this.mapStyle && this.mapStyle.destroy && (this.mapStyle.destroy(), - delete this.mapStyle), - this.b$ && this.b$.destroy && (this.b$.destroy(), - delete this.b$), - this.$F && this.$F.destroy && (this.$F.destroy(), - delete this.$F), - this.wm && delete this.wm, - this.z_ && this.z_.destory && (this.z_.destory(), - delete this.z_), - this._view && delete this._view, - this.I_ && delete this.I_, - this.yH && delete this.yH, - this.m_ && delete this.m_, - this.gl && delete this.gl, - this.canvas && delete this.canvas, - this.lcs && (this.lcs = null), - this.Vv(), - this.Xv(), - this.Hv(), - this.G("afterDestroy") - } - , - x.prototype.getLimitBounds = function () { - return this.it - } - , - x.prototype.setLimitBounds = function (t) { - t instanceof l ? this.it = t : this.it = new l(t) - } - , - x.prototype.clearLimitBounds = function () { - this.it = void 0 - } - , - x.prototype.getZooms = function () { - return [Math.max(this.xt[0], _.zoomRange[0]), Math.min(_.zoomRange[1], this.xt[1])] - } - , - x.prototype.setZooms = function (t) { - this.xt = t - } - , - x.prototype.setNeedUpdate = function (t) { - this.zX || (this.Jv = 5, - t && !this.Kv && (this.Kv = t, - _.Util.cancelAnimFrame(this.Qv), - this.Qv = 0, - this.Eo()), - this.Kv = t, - this.bZ && this.bZ.MZ.yY.setNeedUpdate(t)) - } - , - x.prototype.render = function () { - this.setNeedUpdate(!0) - } - , - x.prototype.qz = function () { - return !1 !== this.showLabel && (!this.Cw || -1 < this.Cw.indexOf("point")) - } - , - x.prototype.Qz = function () { - return !1 !== this.showLabel && (!this.Cw || -1 < this.Cw.indexOf("road")) - } - , - x.prototype.yS = function () { - return !!this.m$ || void 0 === this.m$ && (!this.Cw || -1 < this.Cw.indexOf("building")) - } - , - x.prototype.getViewMode_ = function () { - return this._view.type - } - , - x.prototype.fS = function () { - return this.b$ - } - , - x.prototype.XT = function (t) { - this.QT = t - } - , - x.prototype.JF = function (t) { - return this.mapStyle.vn ? ((t = this.mapStyle.vn.nX("00001", "1", "color", t)) && (t = _.Util.Hex2Rgba(t), - t = _.vector.Up(t, 255)), - this.$C || t || [.329, .549, .839, 1]) : this.$C || [.329, .549, .839, 1] - } - , - x.prototype.sX = function (t) { - var i; - return this.mapStyle.vn ? ((i = (i = this.mapStyle.vn.nX("00001", "2", "color", t)) || this.mapStyle.vn.nX("00001", "1", "color", t)) && (i = _.Util.Hex2Rgba(i), - i = _.vector.Up(i, 255)), - this.$C || i || [.329, .549, .839, 1]) : this.$C || [.329, .549, .839, 1] - } - , - x.prototype.qF = function () { - return this.tB - } - , - x.prototype.qY = function (t, i) { - var n; - return t && 2 === t.length ? (n = t[0], - t = t[1], - this.mapStyle.dn(n, t, i)) : null - } - , - x.prototype.ra = function (t) { - return { - 2: 3, - 3: 3, - 4: 3, - 5: 3, - 6: 6, - 7: 6, - 8: 8, - 9: 8, - 10: 10, - 11: 10, - 12: 10, - 13: 12, - 14: 12, - 15: 14, - 16: 14, - 17: 14, - 18: 14, - 19: 14, - 20: 14, - 21: 14, - 22: 14 - }[t] - } - , - x.prototype.getCustomTypeByPos = function (t) { - var i = this.ym().viewState.optimalZoom - , i = this.ra(i) - , t = [(t = t.lnglat).lng, t.lat, t.lng, t.lat]; - return _.Util.WY(t, i) - } - , - x.prototype.jH = function () { - return this.NH - } - , - x.prototype.UH = function (t) { - this.Mv.UH(t) - } - , - x.prototype.setHighlight = function (t, i) { - var n; - this.bZ && (n = this.bZ.MZ.KY) && n.setHighlight(t, i) - } - , - x.prototype.start = function () { - this.zX = !1, - this.setNeedUpdate(!0) - } - , - x.prototype.stop = function () { - this.setNeedUpdate(!1), - this.zX = !0 - } - , - x.prototype.im = function () { - return this.Mv - } - , - x.prototype.em = function (t, i, n) { - var s, e, h, r, o, a, u, f, c; - return void 0 === i && (i = [0, 0, 0, 0]), - void 0 === n && (n = _.zoomRange[1]), - t ? (h = _.ProjectionManager.getProjection(this._view.au()), - s = _.V[this._view.au()], - e = h.project(t[0], t[1]), - t = [(h = h.project(t[2], t[3]))[0] - e[0], h[1] - e[1]], - c = this.getSize().toArray(), - r = this._view.getStatus().pitch, - f = this._view.getStatus().rotation, - f *= Math.PI / 180, - a = (i[2] - i[3]) / 2, - u = (i[0] - i[1]) / 2, - o = a * Math.cos(f) + Math.sin(f) * u, - a = -Math.sin(f) * a + Math.cos(f) * u, - u = t[0], - 0 != f && (t[0] = Math.abs(t[0] * Math.cos(f)) + Math.abs(t[1] * Math.sin(f)), - t[1] = Math.abs(t[1] * Math.cos(f)) + Math.abs(u * Math.sin(f))), - u = Math.max(10, c[0] - i[2] - i[3]), - f = Math.max(10, c[1] - i[0] - i[1]), - c = Math.log(156543.03392804097 / t[0] * u) / Math.log(2), - i = Math.log(156543.03392804097 / t[1] * f) / Math.log(2), - u = Math.min(c, i), - 0 < r && (u -= r / 60), - u = Math.min(u, n), - t = [(e[0] + h[0]) / 2, (e[1] + h[1]) / 2], - (f = s.transform(t[0], t[1], u))[0] -= o, - f[1] -= a, - c = s.unproject(f[0], f[1], u), - _.Pt(c, [u])) : [116.39708007097433, 39.874529056682476, 12] - } - , - x.prototype.nm = function (t) { - if (0 < t.length) { - for (var i, n = void 0, s = 0; s < t.length; s++) - n ? (i = t[s].getBounds()) && n.union(i) : n = (n = t[s].getBounds()) && n.clone(); - return n - } - } - , - x.prototype.om = function (t, i) { - void 0 === i && (i = !0), - this._view && this._view.setOptions(t, i) - } - , - x.prototype.Eo = function () { - this.zX || (this.Qv || (this.Qv = _.Util.requestAnimFrame(this.Yf.bind(this))), - this.bZ && this.bZ.MZ.yY.to()) - } - , - x.prototype.rm = function () { - return this.hm || (this.hm = new fs, - this.addLayer(this.hm)), - this.hm - } - , - x.prototype.sm = function () { - return this.$F.source - } - , - x.prototype.FY = function (t) { - if (_.Module.eS.BY) - return this.getLayerByClass("AMap.Inner.LabelsLayer").vi(t, !0) - } - , - x.prototype._getUserStyle = function (t) { - t && this._changeStyle(t) - } - , - x.prototype._changeStyle = function (t) { - var s = this - , i = t.split("amap://styles/")[1] - , e = (n = AMap.getConfig()).protocol - , n = n.key - , h = ((t = -1 !== t.indexOf("?isPublic=true")) && (i = i.split("?isPublic")[0]), - null) - , r = !1; - i.length < 32 ? (r = !0, - h = e + "://webapi.amap.com/style2?name=" + i + "&key=" + n) : (h = e + "://webapi.amap.com/v4/map/styles2?styleid=" + i + "&s=rsv3&key=" + n + (t ? "&ispublic=1" : ""), - AMap.getConfig().jscode ? h += "&jscode=" + AMap.getConfig().jscode : AMap.getConfig().gaodeserver && (h = AMap.getConfig().gaodeserver + "/v4/map/styles2?styleid=" + i + "&s=rsv3&key=" + n + (t ? "&ispublic=1" : ""))), - mi.JSONP(h, function (t, i) { - var n; - "complete" === t && (i = i.data) && i.data && i.data.content ? (t = JSON.parse(i.data.content), - n = JSON.parse(i.data.layer || "{}"), - s.QR = t, - s.mapStyle && (s.mapStyle.setStyle(t, r, s), - n) && s.mapStyle.vn.EY(n), - s.u0(i.data)) : s.emit("styleChanged") - }) - } - , - x.prototype._getMapboxStyle = function (n) { - var s = this - , t = AMap.getConfig() - , i = t.protocol; - t.key, - mi.Ajax(i + "://a.amap.com/jsapi/static/json/web_v8_2.0_" + n + ".json", { - type: "GET", - requestContentType: "application/json" - }, function (t, i) { - "complete" === t ? (i = i.data, - s.JG = { - styles: i, - vectorMapForeign: n - }, - s.gn && s.gn.Ha({ - QG: s.JG - }), - s.Eo()) : s.JG = null - }) - } - , - x.prototype.um = function (t) { - for (var i = 0, n = t.length; i < n; i += 1) - this.addLayer(t[i]) - } - , - x.prototype.u0 = function (t) { - var i = this; - t && t.third_layer && _.Module.module("AMap.StyleParser", function () { - setTimeout(function () { - i.y$ || (i.f0 || (i.f0 = new AMap.StyleParser(i)), - i.emit("styleLoaded", t)) - }, 0) - }) - } - , - x.prototype.cm = function () { - var n = this - , t = (w.addClass(this.kv, "amap-container"), - this.l0 = w.watchSize(this.kv, function (t, i) { - n.om({ - size: [t, i] - }) - }, this), - this.kv) - , i = (!1 === this.options.showMapGrid && (this.kv.style.backgroundImage = "none"), - this.Iv = w.create("div", null, "amap-maps"), - this.do = w.create("div", this.Iv, "amap-layers"), - this.fm = w.create("div", this.Iv, "amap-overlays"), - t.appendChild(this.Iv), - this.Tv = w.create("div", this.kv, "amap-controls"), - this.Iv.tabIndex = 0, - {}); - i.p_ = w.create("a", t, "amap-logo"), - // w.create("img", i.p_).src = _.Support.Ue ? AMap.getConfig().protocol + "://" + AMap.getConfig().domain + "/theme/v2.0/logo@2x.png" : AMap.getConfig().protocol + "://" + AMap.getConfig().domain + "/theme/v2.0/logo@1x.png", - // i.v_ = w.create("div", t, "amap-copyright"), - // i.v_.style.display = "none", - // 350 < w.getViewport(this.kv)[0] && (i.v_.innerHTML = AMap.getConfig().v_, - // i.v_.mapNumber = w.create("span", i.v_, "amap-mcode")), - this.m_ = i - } - , - x.prototype.d_ = function () { - var t = this.getLayers(); - if (t) { - for (var i = -1, n = "", s = 0; s < t.length; s += 1) { - var e = t[s].get("mapNumber") - , h = t[s].get("zIndex"); - e && i < h && t[s].get("visible") && (n = e, - i = h) - } - var r = this.c_; - return (n = !this.g$ || "GS(2021)6375" === n && r && "normal" !== r && "amap://styles/normal" !== r ? "" : n) && this.tE !== n && this.m_ && this.m_.v_ && this.m_.v_.mapNumber && (this.m_.v_.mapNumber.innerHTML = "- " + n + "号"), - this.tE = n - } - } - , - x.prototype.pm = function (t) { - var i = { - size: w.getViewport(this.kv), - zoom: t.zoom, - center: t.center, - rotation: t.rotation, - projectionId: t.projection, - pitch: t.pitch - }; - return new (t.viewMode && "3D" === t.viewMode ? Pn : Dn)(i, this) - } - , - x.prototype.dm = function () { } - , - x.prototype.Hv = function () { - for (w.remove(this.Iv), - delete this.Iv, - this.do && (w.remove(this.do), - delete this.do), - this.Tv && (w.remove(this.Tv), - delete this.Tv), - this.fm && (w.remove(this.fm), - delete this.fm), - this.l0 && (this.l0(), - delete this.l0); this.kv && this.kv.firstChild;) - this.kv.removeChild(this.kv.firstChild); - this.kv && delete this.kv, - Us.cache && (Us.cache = {}) - } - , - x.prototype.Vv = function () { - this.pi && (this.pi.destroy(), - delete this.pi), - this.di && (this.di.destroy(), - delete this.di), - this.vm && (this.vm.destroy(), - delete this.vm) - } - , - x.prototype.Xv = function () { - this.mm && this.mm.destroy && (this.mm.destroy(), - delete this.mm); - for (var t = 0, i = this.getLayers(); t < i.length; t++) - i[t].destroy(); - this.so && this.so.destroy(), - this.R_ && (this.R_.destroy(), - delete this.R_), - this.zv = [], - this.Mv && this.Mv.destroy && (this.Mv.destroy(), - delete this.Mv) - } - , - x.prototype.ym = function () { - var t = this._view.getStatus(); - return { - debug: this.debug, - layers: this.zv, - uo: this.Mv, - size: t.size, - do: this.do, - viewState: t, - map: this - } - } - , - x.prototype.Yf = function () { - if (!this.zX && (this.w$(), - !this.y$)) { - if (Js.VZ()) - for (var t = 0, i = this.ym().layers; t < i.length; t++) { - var n, s = i[t]; - s.getRender() || (n = this.Rv(s, {}), - s.Do(n)) - } - this.pi && this.pi.iy({}), - this.di && this.di.iy({}); - var e = this.ym(); - if (this.bm(e), - this.tB = (new Date).getTime(), - this.Mv.loadData(e.viewState, this, this.mm ? this.mm.context : null), - this.mm && this.mm.renderFrame(e), - this.Jv && this.Kv) - this.Qv = _.Util.requestAnimFrame(this.Yf.bind(this)); - else if ((this.Jv <= 0 || !this.Kv) && (this.Kv = !1, - _.Util.cancelAnimFrame(this.Qv), - this.Qv = 0, - this.gm || this.Lv || this.lt || this.Cv)) { - if (this.lt && -1 !== this.k$) { - if ("d" === _.Support.baseRender && 0 <= this.k$) { - if (this.KT(), - !this.tD) - return void (this.tD = !0); - this.tD = !1 - } - this.G("zoomend", { - target: e.map - }) - } - this.Cv && -1 !== this._$ && this.G("moveend", { - target: e.map - }), - this.Lv && -1 !== this.M$ && this.G("rotateend"), - this.gm && -1 !== this.S$ && this.G("pitchend"), - this.Lv = !1, - this.gm = !1, - this.lt = !1, - this.Cv = !1, - this.Qv || (this.Mv.loadData(e.viewState, this, this.mm ? this.mm.context : null), - this.mm && this.mm.renderFrame(e)) - } - this.Jv-- - } - } - , - x.prototype.bm = function (t) { - var i = t.viewState - , s = (n = this.wm).center - , e = n.rotation - , h = n.zoom - , n = n.pitch - , r = i.center - , o = i.zoom - , a = i.rotation - , u = i.pitch; - if (s[0] !== r[0] || s[1] !== r[1] ? (this._$ = 1, - this.Cv || this.G("movestart", { - target: t.map - }), - this.Cv = !0, - this.G("mapmove", { - target: t.map - })) : 1 <= this._$ && this._$++, - h !== o ? (this.lt || this.G("zoomstart", { - target: t.map - }), - this.G("zoomchange", { - target: t.map - }), - this.lt = !0, - this.k$ = 1) : 1 <= this.k$ && this.k$++, - e !== a ? (this.Lv || this.G("rotatestart"), - this.G("rotatechange"), - this.Lv = !0, - this.M$ = 1) : 1 <= this.M$ && this.M$++, - n !== u ? (this.gm || this.G("pitchstart"), - this.G("pitchchange"), - this.gm = !0, - this.S$ = 1) : 1 <= this.S$ && this.S$++, - 5 <= this._$ && (this.Cv = !1, - this._$ = -1, - this.G("moveend", { - target: t.map - })), - 5 <= this.k$ && (this.lt = !1, - this.k$ = -1, - this.G("zoomend", { - target: t.map - })), - 5 <= this.M$ && (this.Lv = !1, - this.M$ = -1, - this.G("rotateend")), - 5 <= this.S$ && (this.gm = !1, - this.S$ = -1, - this.G("pitchend")), - "d" === _.Support.baseRender && 4 <= this.k$) { - if (this.KT(), - !this.tD) - return void (this.tD = !0); - this.tD = !1 - } - this.Qv || this.mm && (this.Mv.loadData(t.viewState, this, this.mm.context), - this.mm.renderFrame(t)), - this.wm = i - } - , - x.prototype.G = function (t, i) { - this.emit(t, i = void 0 === i ? {} : i) - } - , - x.prototype.Rm = function () { - var h = this; - this.on("styleChanged", function () { - if (h.kv) { - var t = void 0 - , i = (t = h.options.backgroundColor || (h.mapStyle && (i = "fast" === h.bZ.MZ.drawMode ? _.Util.getOptimalZoom(h.getZoom()) : h.getZoom(), - i = h.mapStyle.dn(30001, 1, i)) && i.faceColor ? ((t = i.faceColor.rgba.slice(0))[3] = t[3] / 255, - "rgba( " + t.join(",") + ")") : "#f7f7f7"), - h.kv.style.backgroundColor = t, - h.mapStyle.vn.nX("00001", "3", "visible", 10)) - , t = h.mapStyle.vn.nX("00001", "3", "lineColor", 10); - i && t ? (t = _.Util.Hex2Rgba(t), - (t = Xs.oX(t)) && (h.kv.style.backgroundImage = t, - h.kv.style.backgroundSize = "100px 100px")) : !1 === i && (h.kv.style.backgroundImage = "none"); - for (var n = 0, s = h.zv; n < s.length; n++) { - var e = s[n]; - _.qG(e) && e.sl() - } - } - h.xm = !0, - h.Eo() - }), - this.on("repaint", function () { - h.Eo() - }) - } - , - x.prototype.w$ = function () { - var t = this; - this.R$ || ("d" === this.baseRender ? (this.R$ = !0, - _.Module.module("DomRender", function () { - setTimeout(function () { - t.y$ || (t.mm = new _.Module.DomRender(t), - t.Eo()) - }, 0) - })) : (this.R$ = !0, - _.Module.module("WebGLRender", function () { - setTimeout(function () { - t.y$ || (AMap.Browser.isWebGL && !t.KZ ? (t.KZ = !0, - t.mm = new _.Module.WebGLRender(t), - t.I_ = new cs(t), - t.yH = new _.LH(t, t.I_, t.gn), - t.Eo()) : t.R$ = !1) - }, 0) - }))) - } - , - x.prototype.Rv = function (t, i) { - return this.isDOMMode() ? Js.JZ[t.CLASS_NAME] ? new Js.JZ[t.CLASS_NAME](this, t) : void 0 : Js.YZ[t.CLASS_NAME] ? new Js.YZ[t.CLASS_NAME] : void 0 - } - , - x.prototype.KT = function () { - var e, h, r, o, a, u, f = this, t = this._view.getStatus(), c = t.zoom, l = t.centerCoord, d = c, v = 0; - 0 != (v = (d = this.bo > c ? Math.floor(c) : Math.ceil(c)) - c) && (this.bo = d, - e = _.V[this._view.au()], - h = 200 * Math.abs(v) + 100, - r = new H(0, .6, .15, 1), - u = o = 0, - a = function () { - o += 16; - var t = f._view.getStatus().zoom - , i = c + v * r.h(o / h) - , t = (h < o && (i = d), - e.nt(f.QT[0], f.QT[1], t)) - , s = (n = e.nt(f.QT[0], f.QT[1], i))[0] - t[0] + l[0] - , n = n[1] - t[1] + l[1] - , t = f.getProjection().unproject(s, n); - f.setZoomAndCenter(i, t, !0), - d <= i && 0 < v || v < 0 && i <= d ? (f.setZoom(d, !0), - _.Util.cancelAnimFrame(u)) : o < h && (u = _.Util.requestAnimFrame(a)) - } - , - u = _.Util.requestAnimFrame(a)) - } - , - x.prototype.iB = function () { - window.onbeforeload = this.destroy, - window.onunload = this.destroy, - window.onbeforeunload = this.destroy - } - , - x.t_ = [2, 20]; - var Vs, qs = x; - function x(t, i) { - var n = Vs.call(this) || this; - n.className = "AMap.Map", - n.so = new ns, - n.lcs = _.lcs, - n.debug = !1, - n.complete = !1, - n.Kv = !1, - n.controls = [], - n.langForeign = "zh_cn", - n.fE = !0, - n.IY = "normal", - n.az = [.92, .92, .9, .9], - n.sz = [.94, .94, .94, .9], - n.rz = [.94, .94, .94, .9], - n.$C = [.329, .549, .839, 1], - n.Ov = !0, - n.Dv = !0, - n.Pv = !0, - n.Fv = !0, - n.fZ = 1, - n.fi = !0, - n.jv = !0, - n.Ev = !0, - n.Uv = !0, - n.Bv = !0, - n.$v = !0, - n.Nv = 0, - n.Sm = !1, - n.c_ = "", - n.Zv = "default", - n.qv = "", - n.xt = [2, 20], - n.YG = !1, - n.QZ = "", - n.zv = [], - n.A$ = !1, - n.R$ = !1, - n.Qv = 0, - n.f0 = void 0, - n.xm = !1, - n.lt = !1, - n.Cv = !1, - n.Lv = !1, - n.gm = !1, - n.km = 0, - n.Jv = 5, - n.y$ = !1, - n.Wv = !_.Support.$e, - n.g$ = !0, - n.tB = (new Date).getTime(), - n._$ = -1, - n.M$ = -1, - n.S$ = -1, - n.k$ = -1, - n.HL = !1, - n.bo = 10, - n.tD = !1, - n.QT = [0, 0], - n.UB = !1, - n.tE = "", - n.KZ = !1, - n.zX = !1, - _.Support.hardwareAccEnabled || console && console.log && console.log("检测到您已关闭硬件加速模式,开启以获得更好的体验!"), - n.Rm(), - n.options = i, - n.xX = i.cacheSize, - n.g$ = void 0 === i.I$ ? n.g$ : i.I$, - n.az = _.Util.color2RgbaArray(i.buildingColor = i.buildingColor), - n.sz = _.Util.color2RgbaArray(i.wallColor), - n.rz = _.Util.color2RgbaArray(i.roofColor), - n.$C = _.Util.color2RgbaArray(i.skyColor), - n.Dv = void 0 === i.dragEnable ? n.Dv : i.dragEnable, - n.Pv = void 0 === i.zoomEnable ? n.Pv : i.zoomEnable, - n.Fv = void 0 === i.scrollWheel ? n.Fv : i.scrollWheel, - n.fZ = void 0 === i.zoomSpeed ? n.fZ : i.zoomSpeed, - n.Ov = void 0 === i.jogEnable ? n.Ov : i.jogEnable, - n.fi = void 0 === i.doubleClickZoom ? n.fi : i.doubleClickZoom, - n.jv = void 0 === i.keyboardEnable ? n.jv : i.keyboardEnable, - n.Ev = void 0 === i.animateEnable ? n.Ev : i.animateEnable, - n.Uv = void 0 === i.pitchEnable ? n.Uv : i.pitchEnable, - n.$v = void 0 !== i.touchZoom ? i.touchZoom : n.$v, - n.Nv = void 0 !== i.touchZoomCenter ? i.touchZoomCenter : n.Nv, - n.Zv = i.defaultCursor || n.Zv, - n.QZ = i.overseaDataType || n.QZ, - n.IY = i.loadData || "normal", - i.limitBounds && n.setLimitBounds(i.limitBounds), - n.Sm = i.Lm || !1, - n.xt = i.zooms || n.xt, - n.bo = i.zoom || n.bo, - n.baseRender = _.Support.baseRender, - i.viewMode = "d" === _.Support.baseRender ? "2D" : i.viewMode, - n.Bv = !("3D" !== i.viewMode), - n.Bv = void 0 === i.rotateEnable ? n.Bv : i.rotateEnable, - n.debug = i.debug || !1, - n.m$ = "3D" === i.viewMode && i.showBuildingBlock, - n.Wv = void 0 === i.isHotspot ? n.Wv : i.isHotspot, - n.UB = void 0 === i.pickWhenMoving ? n.UB : i.pickWhenMoving, - n.fE = void 0 === i.asyncOverlay ? n.fE : i.asyncOverlay, - n.showLabel = void 0 === i.showLabel || Boolean(i.showLabel), - n.Cw = i.features || ["bg", "point", "road", "building"], - n.c$ = i.mask, - n.NH = void 0 !== i.labelRejectMask && Boolean(i.labelRejectMask), - n.bZ = new Rs({ - lY: new _.MY, - gY: new Cs, - yY: new _.wY({ - check: function () { - return !!n.bZ && n.bZ.MZ.lY.xY() - }, - render: function () { - if (n.TL()) - return !1; - n.bZ && n.bZ.MZ.lY.exec(20) - } - }), - drawMode: i.drawMode || "normal", - tY: new Gs({ - Fz: ["default"] - }), - wZ: new Fs(n), - KY: new Qs(n) - }), - n.WebGLParams = void 0 === i.WebGLParams ? {} : i.WebGLParams, - "d" !== n.baseRender ? (n.bZ.dynamic.subscribe("firstPaint", function () { - n.emit("firstPaint", _.Support.amapRunTime) - }, n, !0), - n.bZ.MZ.lY.on("taskclear", function () { - n.setNeedUpdate(!0) - }), - n.bZ.MZ.lY.register("SDFCombine", function (t) { - return new Ls(n.bZ.MZ.gY, t) - }, { - kY: 10 - }), - n.bZ.MZ.lY.register("LangSDF", function (t) { - return new Nn(n.R_.yG, t) - }, { - kY: 10 - }), - n.mapStyle = new Bn(n), - n.mapStyle.pn(function () { - var t = i.mapStyle; - t ? n._getUserStyle(t) : n.emit("styleChanged") - }), - n.Eo(), - s = n.z_ = new Un, - n.gn = new $n(n), - n.R_ = new Gn(s, n), - n.x$ = new Is(n)) : (n.z_ = new Un, - n.R_ = new _.vG, - n.emit("styleChanged")); - (s = i.vectorMapForeign) && n._getMapboxStyle(s), - i.langForeign && (n.langForeign = i.langForeign), - n.gn && n.gn.Ha({ - langForeign: n.langForeign - }), - t && (t.amap && t.amap.destroy(), - t.amap = n), - n.kv = t, - n._view = n.pm(i), - n.b$ = new ms(n), - n.Mv = new Fi(n), - n.c_ = i.mapStyle || "normal", - n.QR = null; - var s = _.Support.isWebGL - , t = AMap.getConfig().y_ - , e = i.layers || [] - , t = (n.cm(), - s && "d" !== n.baseRender && (n.canvas = w.create("canvas", n.do, "amap-layer"), - n.canvas.width = 0, - n.canvas.height = 0, - n.gl = _.Support.getContext(n.canvas, n.WebGLParams)), - n.w$(), - 0 === e.length ? n.isDOMMode() ? (n.addLayer(new ln({ - id: "_defaultLayer", - tileUrl: t - })), - n.Bv = !1) : s && n.addLayer(new Ui({ - cacheSize: n.xX - })) : n.um(e), - n.d_(), - n.$F = new Vn({ - map: n - }), - n.addLayer(n.$F), - n._view.getStatus()); - return n.wm = t, - n.setCursor(n.Zv), - n - } - Ks.prototype.setHighlight = function (t, i) { - this.Lp = t, - this.Ap = i, - this._Y.setNeedUpdate(!0) - } - , - Ks.prototype.destroy = function () { - this.map.off("hotspotclick", this.$Y), - this.map.off("hotspotover", this.$Y), - this.map.off("hotspotout", this.tX) - } - , - Ks.prototype.$Y = function (t) { - this.iX = t.id, - this.map.setNeedUpdate(!0) - } - , - Ks.prototype.tX = function (t) { - this.iX = "", - this.map.setNeedUpdate(!0) - } - ; - var Qs = Ks; - function Ks(t) { - var i = this; - this.map = t, - this.Lp = -2, - this.Ap = [], - this.iX = "", - this.$Y = this.$Y.bind(this), - this.tX = this.tX.bind(this), - this.map.on("hotspotclick", this.$Y), - this.map.on("hotspotover", this.$Y), - this.map.on("hotspotout", this.tX), - this.GY = Date.now(), - this.NY = 0, - this.UY = !0, - this._Y = new _.wY({ - check: function () { - return -1 < i.Lp - }, - render: function () { - var t = Date.now() - i.GY; - i.NY = 2400 < t % 3e3 ? 0 : .5 - Math.abs(t % 3e3 / 2400 - .5), - i.map.setNeedUpdate(!0) - } - }), - this._Y.setNeedUpdate(!0) - } - te.prototype.setImageSize = function (t) { - t instanceof _.Size && (t = t.toArray()), - this._opts.imageSize = t - } - , - te.prototype.getImageSize = function () { - var t = this._opts.imageSize - , i = this.Om; - return t || (i.length ? i : []) - } - , - te.prototype.setSize = function (t) { - t instanceof _.Size && (t = t.toArray()), - this._opts.size = t - } - , - te.prototype.getSize = function () { - return this._opts.size - } - , - te.prototype.setImageOffset = function (t) { - t instanceof _.Pixel && (t = t.toArray()), - this._opts.imageOffset = t - } - , - te.prototype.getImageOffset = function () { - return this._opts.imageOffset || [0, 0] - } - , - te.prototype.getImage = function () { - return this._opts.image - } - , - te.prototype.setImage = function (t) { - this._opts.image = t - } - , - te.prototype.Fm = function () { - return this.Om || [] - } - , - te.prototype.Em = function (t) { - t instanceof _.Size && (t = t.toArray()), - this.Om = t - } - ; - var $s = te; - function te(t) { - this.CLASS_NAME = "AMap.Icon", - this._opts = { - size: [0, 0], - imageOffset: new _.Pixel(0, 0), - image: AMap.getConfig().protocol + "://webapi.amap./theme/v1.3/markers/0.png" - }, - this.Om = []; - var i = t.size - , n = t.imageSize - , s = t.image - , t = t.imageOffset; - i && this.setSize(i), - n && this.setImageSize(n), - t && this.setImageOffset(t), - s && this.setImage(s) - } - var ie, ne = "AMap.Overlay", Qt = (ie = _.Event, - _.Ei(se, ie), - se); - function se() { - var t = null !== ie && ie.apply(this, arguments) || this; - return t.type = ne, - t.className = ne, - t - } - ee = _.Event, - _.Ei(he, ee); - var ee; - function he() { - var t = null !== ee && ee.apply(this, arguments) || this; - return t.type = ne, - t.className = ne, - t - } - var re, oe = "AMap.DOMOverlay", le = { - top: "top", - right: "right", - bottom: "bottom", - left: "left", - Nm: "top-left", - $m: "top-center", - Um: "top-right", - Bm: "middle-left", - center: "center", - Wm: "middle-right", - Gm: "bottom-left", - Zm: "bottom-center", - qm: "bottom-right" - }, de_Ym = "viewchange", ve = [10, 0, 0, 0], pe = { - map: null, - visible: !0, - offset: [0, 0], - anchor: "top-left", - rotate: 0, - orientation: null, - scale: 1, - zooms: _.zoomRange, - noSelect: !1, - innerOverlay: !1, - isCustom: !1 - }, ni = (re = he, - _.Ei(me, re), - me.prototype.getOptions = function () { - return this._options - } - , - me.prototype.add = function (t) { - for (var i = this._map, n = 0, s = t = void 0 === t ? [] : t; n < s.length; n++) - s[n].add(i) - } - , - me.prototype.remove = function (t) { - for (var i = 0, n = t = void 0 === t ? [] : t; i < n.length; i++) - n[i].remove() - } - , - me.prototype.updateOverlay = function (t) { - if (t) - for (var i = 0, n = t; i < n.length; i++) - n[i].updateOverlay(); - else { - var s, e = !this.aZ && this.viewChange, h = (this.aZ = !1, - this._overlays); - for (s in h) - h.hasOwnProperty(s) && h[s].updateOverlay({ - viewChange: e - }) - } - } - , - me.prototype.iy = function (t) { - this.updateOverlay() - } - , - me.prototype.addToGroup = function (t) { - var i = this._container - , n = this._overlays - , s = t.hS - , e = t.dom; - i.appendChild(e), - n[s] = t - } - , - me.prototype.removeFromGroup = function (t) { - var i = this._container - , n = this._overlays - , s = t.hS - , t = t.dom; - i.removeChild(t), - delete n[s] - } - , - me.prototype.vi = function (t) { - return null - } - , - me.prototype.destroy = function () { - this.ey(); - var t, i = this._overlays; - for (t in i) - i.hasOwnProperty(t) && i[t].remove(); - this._overlays = {}, - this._container && w.remove(this._container) - } - , - me.prototype.getAllOverlays = function () { - var t, i, n = this._overlays, s = []; - for (t in n) - n.hasOwnProperty(t) && (i = n[t]) && s.push(i); - return s - } - , - me.prototype.ny = function () { - this._map - } - , - me.prototype.ey = function () { - var t = this._map - , i = de_Ym; - t.off(i, this.iy) - } - , - me); - function me(t, i) { - void 0 === i && (i = {}); - var n = re.call(this) || this - , t = (n.type = "AMap.DOMOverlayGroup", - n.viewChange = !1, - n.aZ = !1, - n._options = { - zIndex: 120 - }, - n._overlays = {}, - (n._map = t).kv) - , t = (n._parent = t.querySelector(".amap-layers"), - i.className); - return n._className = t, - n.iy = n.iy.bind(n), - n.ny(), - n - } - ye = Qt, - _.Ei(A, ye), - Object.defineProperty(A.prototype, "CLASS_NAME", { - get: function () { - return this.className - }, - eb: !1, - nb: !0 - }), - A.prototype.getMap = function () { - return this._map || null - } - , - A.prototype.setMap = function (t) { - t instanceof nh ? this.add(t) : null == t && this.remove() - } - , - A.prototype.addTo = function (t) { - this.add(t) - } - , - A.prototype.add = function (t) { - t && (this._add(t), - this._parent) && (this._parent.addToGroup(this), - this.updateOverlay()) - } - , - A.prototype.remove = function () { - this._map && this._parent && (this._parent.removeFromGroup(this), - this._remove()) - } - , - A.prototype.show = function () { - this._opts.visible = !0, - this.updateOverlay() - } - , - A.prototype.hide = function () { - this._opts.visible = !1, - this.updateOverlay() - } - , - A.prototype.getPosition = function () { - var t = this._position; - return t ? _.Bs(t) ? t : new _.LngLat(t[0], t[1]) : null - } - , - A.prototype.setPosition = function (t) { - this._position = t, - this.updateOverlay() - } - , - A.prototype.getAnchor = function () { - return this._opts.anchor || le.Nm - } - , - A.prototype.setAnchor = function (t) { - t && (this._opts.anchor = t, - this.updateOverlay()) - } - , - A.prototype.getOffset = function () { - var t = this._opts.offset || [0, 0]; - return new _.Pixel(t[0], t[1]) - } - , - A.prototype.setOffset = function (t) { - t && (t instanceof Array || void 0 === t.x || void 0 === t.y || (this._opts.offset = [t.x, t.y]), - this.updateOverlay()) - } - , - A.prototype.getAngle = function () { - return this._opts.rotate || 0 - } - , - A.prototype.setAngle = function (t) { - this._opts.rotate = t, - this.updateOverlay() - } - , - A.prototype.getOrientation = function () { - return this._opts.orientation - } - , - A.prototype.setOrientation = function (t) { - "number" == typeof t ? (this._opts.orientation = t, - this._opts.rotate = this.dP(t)) : (this._opts.orientation = void 0, - this._opts.rotate = 0), - this.updateOverlay() - } - , - A.prototype.getSize = function () { - return this._getSize() - } - , - A.prototype.setSize = function (t) { - this._opts.size = _.ay(t) ? t.toArray() : t, - this.updateOverlay() - } - , - A.prototype.getzIndex = function () { - return this._opts.zIndex - } - , - A.prototype.setzIndex = function (t) { - this._opts.zIndex = t, - this.updateOverlay() - } - , - A.prototype.getOptions = function () { - return this._opts - } - , - A.prototype.getContent = function () { - return this._opts.content || "" - } - , - A.prototype.setContent = function (t) { - this._opts.content = t = void 0 === t ? "" : t, - this._size = [0, 0], - this._removeContent(), - this._createDom(this.dom, t), - this.updateOverlay() - } - , - A.prototype.getBounds = function () { - var t = this._position; - return new l(t, t) - } - , - A.prototype.getVisible = function () { - return void 0 === this._opts.visible || this._opts.visible - } - , - A.prototype.updateOverlay = function (t) { - t = void 0 !== (t = (t = void 0 === t ? {} : t).viewChange) && t, - this._map && this._setStyle(t) && this._applyStyle(t) - } - , - A.prototype.uZ = function (t) { - t = void 0 !== (t = (t = void 0 === t ? {} : t).viewChange) && t, - this._map && (this._setStyle(t), - this._applyStyle(t)) - } - , - A.prototype.destroy = function () { - this.dom && w.remove(this.dom) - } - , - A.prototype.getCursor = function () { - if (this._map) - return this._map.getDefaultCursor() - } - , - A.prototype.getContentDom = function () { - return this.dom - } - , - A.prototype._add = function (t) { } - , - A.prototype._remove = function () { - this._map = null, - this._parent = null - } - , - A.prototype._createContainer = function () { - var t = document.createElement("div"); - return w.addClass(t, this._className), - t - } - , - A.prototype._createDefaultInnerDom = function () { - return document.createElement("div") - } - , - A.prototype._setStyle = function (t) { - void 0 === t && (t = !1); - var i = this._position - , i = this._points = this._map && i && this._map.lngLatToContainer(i).toArray() - , n = (this._map && this._map.getRotation(), - this._style) - , s = this._map && this._map.getZoom() - , e = this._opts.zooms || [2, 20] - , h = void 0 === this._opts.visible || this._opts.visible - , s = s && (s < e[0] || s > e[1]) - , e = n.visible - , h = (void 0 !== h && (n.visible = h), - h && (n.visible = !s), - this.ZF(i)); - n.visible && (n.visible = !h); - var h = (s = this._opts).zIndex - , r = void 0 === (r = s.anchor) ? le.Nm : r - , o = void 0 === (o = s.offset) ? [0, 0] : o - , a = s.rotate - , u = s.scale - , f = s.noSelect - , c = [0, 0]; - return "number" == typeof (s = s.orientation) ? n.rotate = this.dP(s) : void 0 !== a && (n.rotate = a), - e !== n.visible && this._map && (this._map.render(), - this._parent) ? !(this._parent.aZ = !0) : (t ? i && (n.left = i[0] + "px", - n.top = i[1] + "px", - c = n.translate) : (this._getContentSize(), - (s = this._getStyleZIndex(h)) && (n.zIndex = s), - void 0 !== u && (n.scale = u), - i && (n.left = i[0] + "px", - n.top = i[1] + "px"), - (r || o) && (c = this._getOffset(r, o), - n.translate = c, - n.transformOrigin = -c[0] + "px " + -c[1] + "px"), - n.pointerEvents = !0 === f ? "none" : "auto"), - a = "translate(" + c[0] + "px, " + c[1] + "px) scale(" + n.scale + ") rotate(" + n.rotate + "deg)", - _.Support.ie && (n.msTransform = a), - n.transform = a, - !0) - } - , - A.prototype._getStyleZIndex = function (t) { - return t - } - , - A.prototype._getSize = function () { - var i = (t = (t = this._opts.size || []) instanceof _.Size ? t.toArray() : t)[0] - , t = void 0 === (t = t[1]) ? 0 : t - , s = (n = this._size)[0] - , n = n[1]; - return [(void 0 === i ? 0 : i) || (void 0 === s ? 0 : s), t || (void 0 === n ? 0 : n)] - } - , - A.prototype._getContentSize = function () { - var t = this._style - , i = this._getSize() - , n = 0 - , s = 0; - i[0] && i[1] ? (n = i[0], - s = i[1]) : this.dom && (i = this.dom, - n = Math.ceil(i.offsetWidth) || 0, - s = Math.ceil(i.offsetHeight) || 0, - this._size = [n, s]), - t.width = n + "px", - t.height = s + "px", - t.size = [n, s] - } - , - A.prototype._applyStyle = function (t) { - void 0 === t && (t = !1); - var i, n, s = this._style, e = this.dom; - for (i in s) - s.hasOwnProperty(i) && ("visible" === i ? (n = s[i] ? "block" : "none", - e.style.display = n) : t ? "top" !== i && "left" !== i && "transform" !== i && "msTransform" !== i || (e.style[i] = s[i]) : "width" === i || "height" === i ? "0px" !== s[i] && (n = this._opts.size) && "AMap.InfoWindow" !== this.type && ("width" === i && (e.style[i] = n[0] + "px"), - "height" === i) && (e.style[i] = n[1] + "px") : "translate" !== i && "scale" !== i && "rotate" !== i && (e.style[i] = s[i])) - } - , - A.prototype._getOffset = function (t, i) { - var n = (t = this._getAnchorOffset(t))[0] - , t = t[1]; - return [n + i[0], t + i[1]] - } - , - A.prototype._getAnchorOffset = function (t) { - var n = (i = this._style.size)[0] - , s = i[1] - , i = le - , e = 0 - , h = 0; - if (Array.isArray(t)) - return t; - switch (t) { - case i.Nm: - e = 0; - break; - case i.$m: - e = -n / 2; - break; - case i.Um: - e = -n; - break; - case i.Bm: - e = 0, - h = -s / 2; - break; - case i.center: - e = -n / 2, - h = -s / 2; - break; - case i.Wm: - e = -n, - h = -s / 2; - break; - case i.Gm: - h = -s; - break; - case i.Zm: - e = -n / 2, - h = -s; - break; - case i.qm: - e = -n, - h = -s - } - return [e, h] - } - , - A.prototype._createDom = function (t, i) { - return i && ("object" == typeof i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = i), - t - } - , - A.prototype._removeContent = function () { - this.dom.innerHTML = "" - } - , - A.prototype._formatSize = function (t) { - return [t.getWidth(), t.getHeight()] - } - , - A.prototype.ZF = function (t) { - var i, n = this._map; - return !!(n && t && "3D" === (n = n.getView()).type && (n = n.Uu(), - i = ve, - t) && t[1] - n - i[0] <= 0) - } - , - A.prototype._getRotationByPoints = function (t, i) { - var n = i.y - t.y - , s = i.x - t.x - , e = 0; - return (0 != n || 0 != s) && (i.x - t.x != 0 ? (e = Math.atan((i.y - t.y) / (i.x - t.x)), - 0 <= n && s < 0 || n < 0 && s <= 0 ? e = Math.PI + e : n < 0 && 0 <= s && (e = 2 * Math.PI + e)) : e = i.y > t.y ? Math.PI / 2 : 3 * Math.PI / 2, - Math.round(180 * e / Math.PI * 10) / 10) - } - , - A.prototype._getRotationByLngLats = function (t, i) { - var n = null == (n = this._map) ? void 0 : n.getProjection().project(t.KL, t.kT) - , i = (t = null == (t = this._map) ? void 0 : t.getProjection().project(i.KL, i.kT))[0] - n[0] - , t = t[1] - n[1] - , n = 0; - return (0 != i || 0 != t) && (0 != t ? (n = Math.atan(i / t), - 0 <= i && 0 < t || (0 <= i && t < 0 || i < 0 && t < 0 ? n = Math.PI + n : i < 0 && 0 < t && (n = 2 * Math.PI + n))) : n = 0 < i ? Math.PI / 2 : 3 * Math.PI / 2, - Math.round(180 * n / Math.PI * 10) / 10) - } - , - A.prototype.dP = function (t) { - var i = 0 - , n = this._position - , s = (n instanceof AMap.LngLat && (n = [n.lng, n.lat]), - this._map); - return s && n && (t = this.pP(n, t), - n = s.lngLatToContainer(n), - s = s.lngLatToContainer(t), - i = !1 === (t = this._getRotationByPoints(n, s)) ? 0 : t + Math.PI), - i + 90 - } - , - A.prototype.pP = function (t, i) { - var n = null == (n = this._map) ? void 0 : n.getProjection().project(t[0], t[1]); - return n[0] += Math.sin(i * Math.PI / 180) * Math.pow(2, 18 - this._map.getZoom()), - n[1] += Math.cos(i * Math.PI / 180) * Math.pow(2, 18 - this._map.getZoom()), - null == (t = this._map) ? void 0 : t.getProjection().unproject(n[0], n[1]) - } - , - A.prototype.vP = function (t) { - return 10 / Math.pow(2, t - 2) - } - ; - var ye, Ri = A; - function A(t, i) { - void 0 === t && (t = {}), - void 0 === i && (i = {}); - var n = ye.call(this) || this - , s = (n.type = oe, - n.className = oe, - n._style = { - width: 0, - height: 0, - size: [0, 0], - position: "absolute", - top: 0, - left: 0, - translate: [0, 0], - rotate: 0, - scale: 1, - transformOrigin: [0, 0], - zIndex: 12, - visible: !0, - draggable: !1, - zooms: _.zoomRange, - noSelect: !1 - }, - n._size = [0, 0], - n._dragObjects = { - sy: [0, 0], - hy: [0, 0], - ly: [0, 0] - }, - n._className = "amap-overlay", - n._originOpts = t, - n._opts = _.assign({}, pe, t), - n._opts.angle && (n._opts.rotate = n._opts.angle), - !t.offset || t.offset instanceof Array || void 0 === t.offset.x || void 0 === t.offset.y || (n._opts.offset = [t.offset.x, t.offset.y]), - n.hS = _.Util.stamp(n), - i.className) - , i = i.anchor - , s = (n._className = s, - !t.anchor && i && (n._opts.anchor = i), - t.content) - , i = n._createContainer(); - return n.dom = n._createDom(i, s), - n._position = t.position, - n.updateOverlay(), - n - } - var be, ge = { - uy: "AMap.Marker", - py: "amap-markers", - vy: "amap-marker", - my: "//webapi.amap.com/theme/v1.3/markers/b/mark_bs.png", - yy: 120, - xy: 12, - by: 2, - gy: Math.pow(2, 31) - }, Me = _.assign({}, pe, { - title: "", - clickable: !0, - draggable: !1, - bubble: !1, - topWhenClick: !1, - zIndex: ge.xy, - cursor: "pointer", - extData: {} - }), ke = (be = ni, - _.Ei(we, be), - we.prototype.vi = function (t) { - var i, n, t = t.target; - return _.isEmpty(this._overlays) || !t ? null : (i = w.closest(t, "amap-marker"), - t = this._overlays, - n = null, - i && _.forEach(t, function (t) { - t.dom === i && (n = t) - }), - n) - } - , - we.prototype.setTop = function (t) { - var i; - t && ((i = this.Kl) && i !== t && i.setTop(!1), - this.Kl = t) - } - , - we.prototype._createContainer = function (t) { - var i = document.createElement("div"); - return w.addClass(i, this._className), - t.appendChild(i), - i - } - , - we); - function we(t) { - return (t = be.call(this, t, { - className: ge.py - }) || this).type = ge.uy, - t.className = ge.uy, - t._container = t._createContainer(t._parent), - t - } - xe = Ri, - _.Ei(z, xe), - z.prototype.getTitle = function () { - return this._opts.title - } - , - z.prototype.setTitle = function (t) { - this._opts.title = t, - this.dom && this.dom.setAttribute("title", t) - } - , - z.prototype.getIcon = function () { - return this._opts.icon - } - , - z.prototype.setIcon = function (t) { - t && (this._opts.icon = t, - this._opts.content || this._removeContent(), - "AMap.Icon" === t.CLASS_NAME && (this._opts.size = t.getSize()), - this.wy(), - this.updateOverlay()) - } - , - z.prototype.getLabel = function () { - return this._opts.label || {} - } - , - z.prototype.setLabel = function (t) { - var i, n = this._opts.label || {}, t = (this._opts.label = _.assign(n, t), - n.content), n = void 0 === (n = n._needUpdate) || n; - t ? ((i = this._y ? this.ky(t, this._y) : this._y = this.ky(t)) && (11 <= (t = void 0, - t = this.v0()) || t < 0) && this.d0(), - this.dom && this.dom.appendChild(i), - n && this.updateOverlay()) : this._y && (w.remove(this._y), - this._y = null) - } - , - z.prototype.getClickable = function () { - var t = this._opts.clickable; - return !(void 0 !== t && !t) - } - , - z.prototype.setClickable = function (t) { - this._opts.clickable = !!(t = void 0 === t || t) - } - , - z.prototype.getDraggable = function () { - var t = this._opts.draggable; - return void 0 !== t && t - } - , - z.prototype.setDraggable = function (t) { - (this._opts.draggable = t) ? this._bindEvents() : this.T_() - } - , - z.prototype.getTop = function () { - return this._isTop - } - , - z.prototype.setTop = function (t) { - this._isTop = t = void 0 !== t && t; - var i = this._parent; - i && t && i.setTop(this), - this.updateOverlay() - } - , - z.prototype.getCursor = function () { - var t = this._opts.cursor; - return !t && this._map ? this._map.getDefaultCursor() : t - } - , - z.prototype.setCursor = function (t) { - t && (this._opts.cursor = t) - } - , - z.prototype.getExtData = function () { - return this._opts.extData - } - , - z.prototype.setExtData = function (t) { - this._opts.extData = t - } - , - z.prototype.remove = function () { - this.T_(), - this.ZH(), - xe.prototype.remove.call(this) - } - , - z.prototype.moveTo = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.moveAlong = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.startMove = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.stopMove = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.pauseMove = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.resumeMove = function () { - console.log("Should implement AMap.moveAnimation plugin first.") - } - , - z.prototype.setOptions = function (t) { - this._opts = _.assign({}, Me, this._opts, t), - t.content && this.setContent(t.content), - t.offset && this.setOffset(t.offset), - t.title && this.setTitle(t.title), - t.label && this.setLabel(t.label), - t.draggable && this.setDraggable(!0), - this.updateOverlay() - } - , - z.prototype.updateOverlay = function (t) { - xe.prototype.updateOverlay.call(this, t = void 0 === t ? {} : t); - t = this._y; - this._opts.label && t && (!t.parentElement && this.dom && this.dom.appendChild(t), - 0 < (t = void 0, - t = this.v0()) && t < 11 && this.My(), - this.Ry()) - } - , - z.prototype.emit = function (t, i) { - var n = this.getCursor(); - return this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(n)), - "click" === t ? this.getClickable() && (xe.prototype.emit.call(this, t, i), - void 0 !== (n = this.getOptions().topWhenClick)) && n && this.setTop(!0) : ("dragstart" !== t && "dragging" !== t && "dragend" !== t || (_.Support.$e || i.originEvent.buttons && 2 !== i.originEvent.buttons && i.originEvent.preventDefault(), - this.getDraggable())) && xe.prototype.emit.call(this, t, i), - this - } - , - z.prototype.toGeometry = function () { - var t = this.getPosition(); - if (t) - return { - type: "Point", - coordinates: t && t.toJSON() - } - } - , - z.prototype.v0 = function () { - var t = navigator.userAgent - , i = -1 < t.indexOf("compatible") && -1 < t.indexOf("MSIE") - , n = -1 < t.indexOf("Edge") && !i - , s = -1 < t.indexOf("Trident") && -1 < t.indexOf("rv:11.0"); - return i ? (new RegExp("MSIE (\\d+\\.\\d+);").test(t), - 7 === (i = parseFloat(RegExp.$1)) ? 7 : 8 === i ? 8 : 9 === i ? 9 : 10 === i ? 10 : 6) : n ? "edge" : s ? 11 : -1 - } - , - z.prototype.d0 = function () { - var t = this; - new MutationObserver(function () { - t._opts.label && t.My() - } - ).observe(this._y, { - attributes: !0, - characterData: !0, - childList: !0, - subtree: !0 - }) - } - , - z.prototype._add = function (t) { - this._map = t, - this._parent = t.pi, - this.updateOverlay() - } - , - z.prototype._createDom = function (t, i) { - return this.dom = xe.prototype._createDom.call(this, t, i), - this.wy(), - t - } - , - z.prototype._createDefaultInnerDom = function () { - var t = document.createElement("img"); - return t.setAttribute("width", "19px"), - t.setAttribute("height", "32px"), - t.setAttribute("src", ge.my), - this._size = [19, 32], - t - } - , - z.prototype._getMarkerOffset = function (t, i) { - return i - } - , - z.prototype._getStyleZIndex = function (t) { - var i; - return this._isTop ? i = ge.gy : void 0 !== t && (i = t), - i - } - , - z.prototype._createIcon = function (n, s) { - var e = this - , t = n.getImage() - , i = n.getSize() - , h = n.getImageSize() - , r = n.getImageOffset() - , o = document.createElement("div") - , a = (o.className = "amap-icon", - o.style.overflow = "hidden", - document.createElement("img")); - return a.onload = function () { - var t = a.width - , i = a.height - , t = (n.Em([t, i]), - e._size = h && h.length ? h : [t, i], - e._getSize()); - e._setIconSize(o, a, t, h), - s && s() - } - , - a.onerror = function () { } - , - o.appendChild(a), - this._setIconStyle(o, a, { - size: i, - imageSize: h, - imageOffset: r - }), - a.src = t, - o - } - , - z.prototype._setIconStyle = function (t, i, n) { - var s = void 0 === (s = n.size) ? [0, 0] : s - , e = void 0 === (e = n.imageSize) ? [0, 0] : e - , n = void 0 === (n = n.imageOffset) ? [0, 0] : n; - i.style.top = n[1] + "px", - i.style.left = n[0] + "px", - this._setIconSize(t, i, s, e) - } - , - z.prototype._setIconSize = function (t, i, n, s) { - var e = n[0] - , n = n[1] - , h = s[0] - , s = s[1]; - e && (t.style.width = e + "px"), - n && (t.style.height = n + "px"), - h && s && (i.style.width = h + "px", - i.style.height = s + "px") - } - , - z.prototype._removeContent = function () { - this.dom.innerHTML = "", - this._opts.label && this.setLabel(this._opts.label) - } - , - z.prototype._getD = function () { - return this.dom - } - , - z.prototype.wy = function () { - var t, i = this, s = (n = this._opts).content, e = n.icon, n = n.text; - !s && e ? (t = "string" == typeof e ? new $s({ - image: e - }) : e, - t = this._createIcon(t, function () { - i.updateOverlay(), - i._opts.label && i.My() - }), - this.dom.appendChild(t)) : s || e || n || (t = this._createDefaultInnerDom(), - this._originOpts.anchor || (this._opts.anchor = "bottom-center"), - this.dom.appendChild(t)) - } - , - z.prototype.ky = function (t, i) { - return i || ((i = document.createElement("div")).className = "amap-marker-label"), - i.innerHTML = t, - i - } - , - z.prototype.My = function () { - var t = this._style.size - , i = this._opts.label - , n = void 0 === (n = i.offset) ? [0, 0] : n - , s = (n = _.oy(n) ? n.toArray() : n)[0] - , n = n[1] - , e = this._y.offsetWidth - , h = this._y.offsetHeight - , e = this.zy.size = [e, h] - , t = (i = [(h = this.Sy(i, t, e))[0] + s, h[1] + n])[0]; - this.zy.top = i[1], - this.zy.left = t - } - , - z.prototype.Sy = function (t, i, n) { - var t = t.direction - , e = i[0] - , h = i[1] - , r = n[0] - , o = n[1] - , a = 0 - , u = 0; - switch (void 0 === t ? "right" : t) { - case le.Nm: - a = 0, - u = -o; - break; - case le.top: - case le.$m: - a = e / 2 - r / 2, - u = -o; - break; - case le.Um: - a = e, - u = -o; - break; - case le.right: - case le.Wm: - a = e, - u = h / 2 - o / 2; - break; - case le.center: - a = e / 2 - r / 2, - u = h / 2 - o / 2; - break; - case le.left: - case le.Bm: - a = -r, - u = h / 2 - o / 2; - break; - case le.Gm: - a = 0, - u = h; - break; - case le.bottom: - case le.Zm: - a = e / 2 - r / 2, - u = h; - break; - case le.qm: - a = e, - u = h; - break; - default: - a = e / 2 - r / 2, - u = -o - } - return [a, u] - } - , - z.prototype.Ry = function () { - var i = (t = this.zy).top - , t = t.left - , n = this._y; - n.style.top = i + "px", - n.style.left = t + "px" - } - , - z.prototype._bindEvents = function () { - this.on("dragstart", this.Cy.bind(this)), - this.on("dragging", this._dragging.bind(this)), - this.on("dragend", this.Ly.bind(this)) - } - , - z.prototype.XH = function () { - this.dom && (this.dom.ondragstart = function () { - return !1 - } - ) - } - , - z.prototype.T_ = function () { - this.off("dragstart", this.Cy.bind(this)), - this.off("dragging", this._dragging.bind(this)), - this.off("dragend", this.Ly.bind(this)) - } - , - z.prototype.ZH = function () { - this.dom && (this.dom.ondragstart = null) - } - , - z.prototype.Cy = function (t) { - this.Ay(t) - } - , - z.prototype._dragging = function (t) { - var n = (i = this._dragObjects.sy).x - , i = i.y - , e = (s = t.pixel).x - , s = s.y - , s = (e = _.vector.Ip([e, s], [n, i]))[0] - , n = e[1] - , e = (i = _.vector.add([s, n], this._points))[0] - , s = i[1]; - this._map && (n = this._map.containerToLngLat([e, s]), - this.setPosition(n.toJSON()), - this.Ay(t)) - } - , - z.prototype.Ly = function (t) { } - , - z.prototype.Ay = function (t) { - this._dragObjects = { - sy: t.pixel, - hy: t.pos, - ly: t.lnglat - } - } - ; - var xe, Ae = z; - function z(t) { - var i = xe.call(this, t = void 0 === t ? {} : t, { - className: ge.vy - }) || this - , n = (i.type = ge.uy, - i.className = ge.uy, - i._isTop = !1, - i.zy = { - width: 0, - height: 0, - size: [0, 0], - top: 0, - left: 0, - translate: [0, 0], - zIndex: ge.by - }, - i._opts = _.assign({}, Me, i._opts), - i._opts.size) - , s = i._opts.icon; - return !n && s instanceof $s && (n = s.getSize(), - i._opts.size = n), - n instanceof _.Size && (i._opts.size = i._formatSize(n)), - t.title && i.setTitle(t.title), - t.label && i.setLabel(t.label), - t.draggable && i.setDraggable(!0), - (s = t.map) && s instanceof nh && i.add(s), - i.XH(), - i - } - var ze, Ce, Se, C = { - getViewport: function (t) { - return t ? [t.clientWidth, t.clientHeight] : [0, 0] - }, - getStyle: function (t, i) { - var n, s = t.style[i]; - return "auto" === (s = (s = (s = s && "auto" !== s || !document.defaultView ? s : (n = document.defaultView.getComputedStyle(t, null)) ? n[i] : null) && "auto" !== s || "height" !== i ? s : t.clientHeight + "px") && "auto" !== s || "width" !== i ? s : t.clientWidth + "px") ? null : s - }, - getViewportOffset: function (t) { - var i, n = 0, s = 0, e = t, h = document.body, r = document.documentElement; - do { - if (n += e.offsetTop || 0, - s += e.offsetLeft || 0, - n += parseInt(C.getStyle(e, "borderTopWidth"), 10) || 0, - s += parseInt(C.getStyle(e, "borderLeftWidth"), 10) || 0, - i = C.getStyle(e, "position"), - e.offsetParent === h && "absolute" === i) - break; - if ("fixed" === i) { - n += h.scrollTop || r.scrollTop || 0, - s += h.scrollLeft || r.scrollLeft || 0; - break - } - } while (e = e.offsetParent); - for (e = t; e !== h && (n -= e.scrollTop || 0, - s -= e.scrollLeft || 0, - !C.m() && _.Support.webkit && (s += e.scrollWidth - e.clientWidth), - e = e.parentNode);) - ; - return [s, n] - }, - m: function () { - return ze || (Ce = "ltr" === C.getStyle(document.body, "direction"), - ze = !0), - Ce - }, - create: function (t, i, n, s) { - return t = document.createElement(t), - n && (t.className = n), - i && (s && "before" === s ? (n = i.firstChild, - i.insertBefore(t, n)) : i.appendChild(t)), - t - }, - toggleClass: function (t, i, n) { - n ? this.addClass(t, i) : this.removeClass(t, i) - }, - hasClass: function (t, i) { - if (t && i) - return 0 < t.className.length && new RegExp("(^|\\s)" + i + "(\\s|$)").test(t.className) - }, - addClass: function (t, i) { - t && i && (t.classList && t.classList.add ? t.classList.add(i) : this.hasClass(t, i) || (t.className += (t.className ? " " : "") + i)) - }, - setClass: function (t, i) { - t && (t.className = i || "") - }, - removeClass: function (t, n) { - t && n && (t.classList && t.classList.remove ? t.classList.remove(n) : t.className = t.className.replace(/(\S+)\s*/g, function (t, i) { - return i === n ? "" : t - }).replace(/(^\s+|\s+$)/, "")) - }, - watchSize: function (n, s, e) { - var i = document.createElement("iframe") - , h = (i.style.cssText = "width: 100%;height: 100%;position: absolute;pointEvents:none; opacity:0; margin: 0;padding: 0;border: none;", - i.onload = function () { - i && (i.contentWindow.onresize = t) - } - , - n.appendChild(i), - i.src = "javascript:void(0)", - 0) - , r = 0; - function t() { - e.k = n.getBoundingClientRect(), - e.M = [n.clientLeft, n.clientTop]; - var t = n.offsetWidth - , i = n.offsetHeight; - t === h && i === r || (s(t, i), - h = t, - r = i) - } - return t(), - e.resize = t, - window.onscroll = t, - function () { - var t; - e.resize && (e.resize = null), - window.onscroll && (window.onscroll = null), - i.contentWindow && (i.contentWindow.onresize = null, - i.contentWindow.document.write(""), - i.parentNode.removeChild(i), - null != (t = i.contentWindow)) && t.close() - } - }, - watchSize2: function (n, s, e) { - var h, r, o = document.createElement("_"), a = (o.className = "expand", - o.appendChild(document.createElement("_"))), u = (a.className = "shrink", - o.appendChild(document.createElement("_"))), t = (u.className = "expandChild", - a.appendChild(document.createElement("_"))); - return t.className = "shrinkChild", - a.style.cssText = o.style.cssText = "height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1", - t.style.cssText = u.style.cssText = "display:block;height:100%;transition:0s;width:100%", - t.style.width = t.style.height = "200%", - n.appendChild(o), - f(), - function () { - c(), - n.removeChild(o) - } - ; - function f() { - c(), - e.k = n.getBoundingClientRect(), - e.M = [n.clientLeft, n.clientTop]; - var t = n.offsetWidth - , i = n.offsetHeight; - t === h && i === r || (h = t, - r = i, - u.style.width = 2 * t + "px", - u.style.height = 2 * i + "px", - o.scrollLeft = o.scrollWidth, - o.scrollTop = o.scrollHeight, - a.scrollLeft = a.scrollWidth, - a.scrollTop = a.scrollHeight, - s(t, i)), - a.addEventListener("scroll", f), - o.addEventListener("scroll", f) - } - function c() { - a.removeEventListener("scroll", f), - o.removeEventListener("scroll", f) - } - }, - mousePos: function (t, i, n) { - return t && (n.k = t.getBoundingClientRect(), - n.M = [t.clientLeft, t.clientTop]), - t = n.k, - [(i = i.touches && i.changedTouches ? 0 < i.touches.length ? i.touches[0] : i.changedTouches[i.changedTouches.length - 1] : i).clientX - t.left - n.M[0], i.clientY - t.top - n.M[1]] - }, - remove: function (t) { - t && t.parentNode && t.parentNode.removeChild(t) - }, - empty: function (t) { - for (; t.firstChild;) - t.removeChild(t.firstChild) - }, - closest: function (t, i) { - return t ? this.hasClass(t, i) ? t : (t = t.parentElement) ? C.closest(t, i) : null : null - }, - fillText: function (t, i) { - if (t) - return void 0 !== t.textContent ? t.textContent = i : void 0 !== t.innerText ? t.innerText = i : t.innerHTML = i, - t - }, - _L: function (t) { - for (var i = document.documentElement.style, n = 0; n < t.length; n += 1) - if (t[n] in i) - return t[n]; - return !1 - }, - rotate: function (t, i, n) { - var s, e = C.kL; - n = n || { - x: t.clientWidth / 2, - y: t.clientHeight / 2 - }, - e ? (s = "", - t.style[e] = s += " rotate(" + i + "deg)", - t.style[C.ML[e] + "-origin"] = n.x + "px " + n.y + "px") : (s = Math.cos(i * Math.PI / 180), - e = Math.sin(i * Math.PI / 180), - t.style.filter = "progid:DXImageTransform.Microsoft.Matrix()", - 0 < t.filters.length && ((i = t.filters.item(0)).Dx = -n.x * s + n.y * e + n.x, - i.Dy = -n.x * e - n.y * s + n.y, - i.M11 = i.M22 = s, - i.M12 = -(i.M21 = e))) - }, - setCss: function (t, i) { - t = t instanceof Array ? t : [t]; - for (var n = 0; n < t.length; n += 1) - for (var s in i) - i.hasOwnProperty(s) && (t[n].style[s] = i[s]); - return this - }, - setOpacity: function (t, i) { - t.style && ("opacity" in t.style ? t.style.opacity = "" + i : "filter" in t.style && (i = Math.round(100 * i), - t.style.filter = "", - 100 !== i) && (t.style.filter = " progid:DXImageTransform.Microsoft.Alpha(opacity=" + i + ")")) - }, - ML: {}, - kL: Ce = ze = !1 - }, Le = (C.kL = C._L(["WebkitTransform", "OTransform", "MozTransform", "msTransform", "transform"]), - C.ML = { - transform: "transform", - WebkitTransform: "-webkit-transform", - OTransform: "-o-transform", - MozTransform: "-moz-transform", - msTransform: "-ms-transform" - }, - { - uy: "AMap.InfoWindow", - JP: "", - XP: "amap-info", - QP: 121, - KP: 8, - tF: 8, - iF: [20, 20, 20, 20] - }), Te = _.assign({}, pe, { - isCustom: !1, - closeWhenClickMap: !1, - anchor: "bottom-center", - autoMove: !0, - avoid: Le.iF - }), Ie = (Se = ni, - _.Ei(De, Se), - De.prototype.addToGroup = function (t) { - this.Iy && this._overlays[this.Iy] && this.Iy !== t.hS && this._overlays[this.Iy].remove(), - this.Iy = t.hS, - Se.prototype.addToGroup.call(this, t) - } - , - De.prototype.removeFromGroup = function (t) { - Se.prototype.removeFromGroup.call(this, t), - this.Iy = 0 - } - , - De.prototype.close = function () { - var t = this.Iy; - (t = this._overlays[t]) && (this.Iy = 0, - t.close()) - } - , - De.prototype.vi = function (t) { - return t = t.target, - this.Iy && t && C.closest(t, "amap-info") ? this._overlays[this.Iy] : null - } - , - De.prototype.destroy = function () { - this.Dy(), - Se.prototype.destroy.call(this) - } - , - De.prototype.Rm = function () { - this._map.on("click", this.Py) - } - , - De.prototype.Dy = function () { - this._map.off("click", this.Py) - } - , - De); - function De(t) { - var n = Se.call(this, t, { - className: Le.JP - }) || this; - return n.type = Le.uy, - n.Py = function (t) { - var i = n.Iy - , i = n._overlays[i]; - !C.closest(t.originEvent.target, "amap-info") && i && i.getOptions().closeWhenClickMap && (n.Iy = 0, - i.close()) - } - , - n._container = n._parent, - n.Rm(), - n - } - Oe = Ri, - _.Ei(S, Oe), - S.prototype.open = function (t, i) { - t && t instanceof nh && i ? (this._opts.visible = !0, - this.add(t), - this.setPosition(i), - this.jy(), - this.emit("open"), - this.GF()) : t && this._position ? (this._opts.visible = !0, - this.add(t), - this.jy(), - this.emit("open"), - this.GF()) : this._map && this._position && (this._opts.visible = !0, - this.updateOverlay(), - this.emit("open"), - this.GF()) - } - , - S.prototype.close = function () { - this._parent && (this._opts.visible = !1, - this.updateOverlay(), - this.emit("close")) - } - , - S.prototype.getIsOpen = function () { - return !(!this._map || !this._opts.visible) - } - , - S.prototype.setSize = function (t) { - t instanceof _.Size && (t = t.toArray()), - this._opts.size = t, - this.updateOverlay() - } - , - S.prototype.setContent = function (t) { - Oe.prototype.setContent.call(this, t = void 0 === t ? "" : t), - this.jy() - } - , - S.prototype.setAnchor = function (t) { - var i, n = this.dom && this.dom.querySelector(".amap-info-contentContainer"); - t && n && ((i = this.g_([].slice.call(n.className.split(" ")))) && C.removeClass(n, i), - this._size = [0, 0], - C.addClass(n, t)), - Oe.prototype.setAnchor.call(this, t) - } - , - S.prototype.getDraggable = function () { - return !1 - } - , - S.prototype.setOptions = function (t) { - this._opts = _.assign({}, Te, this._opts, t) - } - , - S.prototype.updateOverlay = function (t) { - void 0 === t && (t = {}), - this._map && (t = t.viewChange, - this._setStyle(t = void 0 !== t && t), - this._applyStyle(t), - t = this._getSize(), - this.Fy) && t[0] && window.getComputedStyle(this.Fy).boxSizing - } - , - S.prototype.getBounds = function () { - return null - } - , - S.prototype.getExtData = function () { - return this._opts.extData || null - } - , - S.prototype.setExtData = function (t) { - this._opts.extData = t - } - , - S.prototype._add = function (t) { - this._map = t, - this._parent = t.di, - this.updateOverlay() - } - , - S.prototype._remove = function () { - Oe.prototype._remove.call(this), - this.Ey() - } - , - S.prototype._createDefaultInnerDom = function () { - return document.createElement("div") - } - , - S.prototype._createDom = function (t, i) { - var n = this.Ny(t); - return this.$y(n, i), - t - } - , - S.prototype._getContentSize = function () { - var t, i, n = this._style, s = this._getSize(); - s[0] && s[1] && !this._opts.isCustom ? (t = s[0], - i = s[1]) : (s = this.dom.querySelector(".amap-info-contentContainer")) && (t = s.clientWidth, - i = s.clientHeight, - this._size = [t, i]), - n.width = t + "px", - n.height = i + "px", - n.size = [t, i] - } - , - S.prototype._getAnchorOffset = function (t) { - return [(t = Oe.prototype._getAnchorOffset.call(this, t))[0], t[1]] - } - , - S.prototype.Ny = function (t) { - var i = document.createElement("div") - , n = (C.addClass(i, "amap-info-shadowContainer"), - document.createElement("div")); - return C.addClass(n, "amap-info-contentContainer"), - n.addEventListener("touchstart", function (t) { - t.cH = "infoWindow" - }), - t.style.position = "absolute", - i.style.position = "absolute", - t.appendChild(i), - t.appendChild(n), - n - } - , - S.prototype.$y = function (t, i) { - var s = (n = this._opts).isCustom - , n = n.anchor; - void 0 !== s && s ? "object" == typeof i && i instanceof HTMLElement ? t.appendChild(i) : t.innerHTML = i + "" : (s = this.Fy = document.createElement("div"), - C.addClass(s, "amap-info-content"), - C.addClass(s, "amap-info-outer"), - "object" == typeof i && i instanceof HTMLElement ? s.appendChild(i) : s.innerHTML = i ? i + "" : "", - i = document.createElement("a"), - C.addClass(i, "amap-info-close"), - i.innerText = "×", - s.appendChild(i), - i = document.createElement("div"), - C.addClass(i, "amap-info-sharp"), - C.addClass(t, n), - t.appendChild(s), - t.appendChild(i)) - } - , - S.prototype.jy = function () { - var t = this.dom.querySelector(".amap-info-close"); - t && t.addEventListener("click", this.close.bind(this)) - } - , - S.prototype.Ey = function () { - var t = this - , i = this.dom.querySelector(".amap-info-close"); - i && i.removeEventListener("click", function () { - t.close() - }) - } - , - S.prototype.Oy = function () { - if (this._position) { - var t = this._map; - if (t && this._opts.autoMove && this.dom) { - for (var i = this._getSize(), n = new _.Size(i[0], i[1]), s = t.lngLatToContainer(this._position).toArray(), e = this._getOffset(this.getAnchor(), this.getOffset().toArray()), h = _.vector.add(s, e), r = _.vector.add(h, i), o = t.getSize(), a = [this._opts.avoid || Le.iF], u = 0, f = 0, c = 0; c < a.length; c += 1) { - var l = a[c] - , d = 0 - , v = 0; - 0 !== l[3] && 0 < (d = l[3] - (h[0] + u)) && (u += d), - 0 !== l[1] && (d = o.getWidth() - l[1] - (r[0] + u)) < 0 && (u += d), - 0 !== l[0] && 0 < (v = l[0] - (h[1] + f)) && (f += v), - 0 !== l[2] && (v = o.getHeight() - l[2] - (r[1] + f)) < 0 && (f += v) - } - h = _.vector.add(h, [u, f]), - r = _.vector.add(r, [u, f]), - h[e = s = 0] < 0 || n.getWidth() > o.getWidth() ? s = 20 - h[0] : o.getWidth() < r[0] && (s = o.getWidth() - r[0] - 25), - h[1] < 0 || n.getHeight() > o.getHeight() ? e = 5 - h[1] : o.getHeight() < r[1] && (e = o.getHeight() - r[1] - 15), - e += f, - ((s += u) || e) && t.panBy(s, e) - } - } - } - , - S.prototype.GF = function () { - var t, i, n, s, e, h, r, o, a, u, f, c; - this._position && (t = this._map) && this._opts.autoMove && this.dom && (i = this._position, - _.Bs(i) && (i = i.toArray()), - o = (u = t.getSize()).getWidth() || 0, - u = u.getHeight() || 0, - f = this._getSize(), - c = t.lngLatToContainer(i).toArray(), - n = this._getOffset(this.getAnchor(), this.getOffset().toArray()), - c = _.vector.add(c, n), - a = _.vector.add(c, f), - s = this._opts.avoid || Le.iF, - e = c[0], - h = c[1], - r = !1, - c[1] - s[0] < 0 && (h = s[0], - r = !0), - a[0] + s[1] > o && (e = o - f[0] - s[1], - r = !0), - a[1] + s[2] > u && (h = u - s[2] - f[1], - r = !0), - c[0] - s[3] < 0 && (e = s[3], - r = !0), - r) && (o = _.vector.Ip([e, h], n), - a = t.containerToLngLat(o).toArray(), - u = _.vector.Ip(a, i), - f = t.getCenter().toArray(), - c = _.vector.Ip(f, u), - t.panTo(c)) - } - , - S.prototype.g_ = function (t) { - var i, n, s = le; - for (n in s) - if (s.hasOwnProperty(n)) { - var e = s[n]; - if (-1 !== t.indexOf(e)) { - i = e; - break - } - } - return i - } - ; - var Oe, Ee = S; - function S(t) { - (t = Oe.call(this, t = void 0 === t ? {} : t, { - className: Le.XP, - anchor: Te.anchor - }) || this).type = Le.uy, - t._opts = _.assign({}, Te, t._opts), - t._originOpts.zIndex || (t._opts.zIndex = Le.QP); - var i = t._opts.size; - return i instanceof _.Size && (t._opts.size = t._formatSize(i)), - t.jy(), - t - } - var Re, Pe = "AMap.ContextMenu", Ge = (Re = ni, - _.Ei(Ne, Re), - Ne.prototype.addToGroup = function (t) { - this.Iy && this._overlays[this.Iy] && this.Iy !== t.hS && this._overlays[this.Iy].remove(), - this.Iy = t.hS, - Re.prototype.addToGroup.call(this, t) - } - , - Ne.prototype.removeFromGroup = function (t) { - Re.prototype.removeFromGroup.call(this, t), - this.Iy = 0 - } - , - Ne.prototype.vi = function (t) { - return t = t.target, - this.Iy && t && w.closest(t, "amap-menu") ? this._overlays[this.Iy] : null - } - , - Ne.prototype.destroy = function () { - this.Uy(), - Re.prototype.destroy.call(this) - } - , - Ne.prototype.By = function () { - this._map.on("viewchange", this.Wy), - this._map.on("click", this.Py) - } - , - Ne.prototype.Uy = function () { - this._map.off("viewchange", this.Wy), - this._map.off("click", this.Py) - } - , - Ne); - function Ne(t) { - var n = Re.call(this, t, { - className: "" - }) || this; - return n.type = Pe, - n.className = Pe, - n.Wy = function () { - var t; - n.Iy && (t = n._overlays[n.Iy]) && !t.getOptions().aliveWhenMapClick && n.removeFromGroup(t) - } - , - n.Py = function (t) { - var i = n.Iy - , i = n._overlays[i]; - w.closest(t.originEvent.target, "amap-info") || !i || i.getOptions().aliveWhenMapClick || (n.Iy = 0, - i.close()) - } - , - n._container = n._parent, - n.By(), - n - } - _e = Ri, - _.Ei(Ye, _e), - Ye.prototype.open = function (t, i) { - t && i ? (this._opts.visible = !0, - this.add(t), - this.setPosition(i), - this.emit("open")) : this._map && this._position && (this._opts.visible = !0, - this.updateOverlay(), - this.emit("open")) - } - , - Ye.prototype.close = function () { - this._parent && (this._opts.visible = !1, - this.uZ(), - this.emit("close")) - } - , - Ye.prototype.addItem = function (t, i, n) { - this.Zy.push({ - content: t, - fn: i, - order: n - }), - this.qy(this.dom), - this.updateOverlay() - } - , - Ye.prototype.removeItem = function (t, i) { - for (var n = this.Zy, s = 0; s < n.length; s++) { - var e = n[s]; - e.content === t && e.fn === i && (n.splice(s, 1), - s--) - } - this.qy(this.dom), - this.updateOverlay() - } - , - Ye.prototype.getBounds = function () { - return null - } - , - Ye.prototype.getDraggable = function () { - return !1 - } - , - Ye.prototype._add = function (t) { - this._map = t, - this._parent = t.vm, - this.updateOverlay() - } - , - Ye.prototype._createDefaultInnerDom = function () { - return document.createElement("div") - } - , - Ye.prototype._createDom = function (t, i) { - var n = this.dom = this.Yy(); - return this._opts.isCustom && this._opts.content ? _e.prototype._createDom.call(this, n, this._opts.content) : this.qy(n), - n - } - , - Ye.prototype.Yy = function () { - var t = document.createElement("div"); - return w.addClass(t, this._className), - t - } - , - Ye.prototype.qy = function (t) { - var i = this.Vy(this.Zy) - , n = document.createElement("ul"); - w.addClass(n, "amap-menu-outer"); - for (var s = 0, e = i; s < e.length; s++) { - var h = e[s] - , h = this.Xy(h); - n.appendChild(h) - } - t.innerHTML = "", - t.appendChild(n) - } - , - Ye.prototype.Vy = function (t) { - return (t = void 0 === t ? [] : t).sort(function (t, i) { - return isNaN(t.order) || isNaN(i.order) ? 0 : t.order - i.order - }), - t - } - , - Ye.prototype.Xy = function (i) { - var n = this - , t = document.createElement("li"); - return t.innerHTML = i.content, - t.addEventListener("click", function (t) { - i.fn(t), - n._opts.aliveWhenMapClick || n.hide() - }), - t - } - ; - var _e, Ue = Ye; - function Ye(t) { - var i = _e.call(this, t = void 0 === t ? {} : t, { - className: "amap-menu" - }) || this; - return i.type = Pe, - i.className = Pe, - i._opts = {}, - i.Zy = [], - i._opts = t, - i._style.zIndex = 140, - i - } - function Xe() { - this.Hy = !1, - this.ex = null, - this.Ky = this.nx() - } - Xe.prototype.open = function (t, i, n) { - var s, e, h, r, o, a, u, f, c, l = this; - this.Hy || (s = this.Jy, - e = AMap.getConfig().server + "/verify/", - (_.Support.$e ? (this.Ky.style.marginLeft = -Math.min(330, screen.width) / 2 + "px", - document.body) : (h = this.Qy("amap-container", document.body)[0]) && 322 < h.clientWidth && 346 < h.clientHeight ? (this.Ky.style.position = "absolute", - h) : (o = r = 0, - h && (h = w.getViewportOffset(h), - r = h[0], - o = h[1]), - this.Ky.style.top = "0%", - this.Ky.style.left = "0%", - a = (.5 - r) / 5, - u = (.5 - o) / 5, - f = setInterval(function () { - o += u, - .5 - (r += a) < .05 && .5 - o < .05 ? (l.Ky.style.top = "50%", - l.Ky.style.left = "50%", - clearInterval(f)) : (l.Ky.style.top = 100 * o + "%", - l.Ky.style.left = 100 * r + "%") - }, 25), - document.body)).appendChild(this.Ky), - c = !0, - s.onload = function () { - c ? c = !1 : l.Hy && (l.Ky.parentNode && l.Ky.parentNode.removeChild(l.Ky), - l.Hy = !1, - l.tx()) - } - , - s.src = e + "jsapi.html?channel=JSAPI-" + t + "&from=" + encodeURIComponent(e + "success.html") + "&th=" + i + "&restUrl=" + encodeURIComponent(n), - this.Hy = !0) - } - , - Xe.prototype.ix = function (t) { - this.ex = t - } - , - Xe.prototype.tx = function () { - this.ex && this.ex() - } - , - Xe.prototype.Qy = function (t, i) { - if (window.getElementsByClassName) - return window.getElementsByClassName(t, i); - for (var n = (i || document).getElementsByTagName("*"), s = [], e = 0; e < n.length; e += 1) - for (var h = n[e], r = h.className.split(" "), o = 0; o < r.length; o += 1) - if (r[o] === t) { - s.push(h); - break - } - return s - } - , - Xe.prototype.nx = function () { - var t = document.createElement("div") - , i = (t.className = "amap-popup", - t.style.zIndex = "2147483647", - document.createElement("iframe")); - return i.className = "amap-popup-content", - t.appendChild(i), - i.style.width = Math.min(330, screen.width) + "px", - this.Jy = i, - t - } - ; - var Ze = { - "restapi.amap.com/v3/place/text": "KEYWORD", - "restapi.amap.com/v3/place/polygon": "POLYGON", - "restapi.amap.com/v3/place/around": "NEARBY", - "restapi.amap.com/v3/place/detail": "ID", - "restapi.amap.com/v3/geocode/regeo": "REGEO" - } - , Je = new Xe - , He = (Je.ix(function () { - He.ox = !1; - for (var t = He.ax, i = 0, n = t.length; i < n; i += 1) { - var s = t[i]; - 10 < n - i ? t[2]({ - status: "error", - info: "TIME_OUT_A" - }) : He.get(s[0], s[1], s[2]) - } - He.ax = [] - }), - Ve.get = function (n, s, e, t) { - if (void 0 === t && (t = {}), - Ve.ox) - Ve.ax.push([n, s, e]); - else { - var i, h = n.split("://")[1], r = Ze[h], o = void 0 !== r, u = (a = AMap.getConfig()).key, f = a.version, c = a.appname, l = a.jscode, a = a.gaodeserver, d = n + "?platform=JS&s=rsv3&logversion=2.0&key=" + u + "&sdkversion=" + f + "&appname=" + c + "&csid=" + _.Util.uuid(); - for (i in l ? d += "&jscode=" + l : a && h && "restapi.amap.com" === h.split("/")[0] && (d = h.replace(h.split("/")[0], a) + "?platform=JS&s=rsv3&logversion=2.0&key=" + u + "&sdkversion=" + f + "&appname=" + c + "&csid=" + _.Util.uuid()), - s) - s.hasOwnProperty(i) && (d += "&" + i + "=" + s[i]); - mi.JSONP(d, function (t, i) { - "complete" === t && (i = i.data, - o) && 3e4 === i.errcode && i.data ? (Ve.ox = !0, - Ve.ax.push([n, s, e]), - Je.open(r, i.data.host, d)) : e(t, i) - }, t) - } - } - , - Ve.post = function (t, i, n) { - var e = (s = AMap.getConfig()).key - , h = s.version - , r = s.appname - , o = s.jscode - , s = s.gaodeserver - , a = t.split("://")[1] - , t = t + "?platform=JS&s=rsv3&logversion=2.0&key=" + e + "&sdkversion=" + h + "&appname=" + r + "&csid=" + _.Util.uuid(); - o ? t += "&jscode=" + o : s && a && "restapi.amap.com" === a.split("/")[0] && (t = a.replace(a.split("/")[0], s) + "?platform=JS&s=rsv3&logversion=2.0&key=" + e + "&sdkversion=" + h + "&appname=" + r + "&csid=" + _.Util.uuid()), - mi.Ajax(t, { - type: "POST", - content: JSON.stringify(i), - requestContentType: "text/plain" - }, function (t, i) { - "complete" === t ? (i = i.data, - n(t, JSON.parse(i))) : n(t, i) - }) - } - , - Ve.ox = !1, - Ve.ax = [], - Ve); - function Ve() { } - function qe(t, i, h) { - var n = AMap.getConfig() - , s = n.server + "/v3/assistant/coordinate/convert" - , e = AMap.Util.parseLngLatData(t) - , r = []; - if (e instanceof Array) { - for (var o = 0, a = e.length; o < a; o += 1) - r.push(e[o] + ""); - r = r.join(";") - } else - r = e + ""; - t = { - key: n.key, - s: "rsv3", - locations: r, - coordsys: i || "gps" - }, - AMap.WebService.get(s, t, function (t, i) { - if ("complete" === t && i.status && "1" === i.status) { - for (var n = i.locations.split(";"), s = 0; s < n.length; s += 1) { - var e = n[s].split(","); - n[s] = new AMap.LngLat(e[0], e[1]) - } - h && "function" == typeof h && h("complete", { - info: "ok", - locations: n - }) - } else - h && "function" == typeof h && h("error", i.info); - "error" === t && h("error", i.info) - }) - } - $e.prototype.setCenter = function (t) { - t instanceof _.LngLat ? this.cB = t.toArray() : this.cB = t, - this.dB = (t = this.map.getProjection()).project.apply(t, this.cB) - } - , - $e.prototype.getCenter = function () { - return this.cB - } - , - $e.prototype.lngLatToCoord = function (t) { - var i = this.map.getProjection().project; - return t instanceof _.LngLat && (t = t.toArray()), - this.cB || this.setCenter(t), - this.pB(i(t[0], t[1]), this.dB) - } - , - $e.prototype.lngLatsToCoords = function (t) { - if (_.Util.isArray(t)) { - var i = this.map.getProjection().project - , n = []; - if (_.Util.vB(t[0])) - this.cB || this.setCenter(t), - n[0] = this.pB(i(t[0], t[1]), this.dB); - else - for (var s = 0, e = t.length; s < e; s++) { - var h = t[s]; - if (_.Util.vB(h[0])) - this.cB || this.setCenter(h), - n[s] = this.pB(i(h[0], h[1]), this.dB); - else { - for (var r = [], o = 0, a = h.length; o < a; o++) { - var u = h[o]; - if (_.Util.vB(u[0])) - this.cB || this.setCenter(u), - r[o] = this.pB(i(u[0], u[1]), this.dB); - else { - for (var f = [], c = 0, l = h.length; c < l; c++) { - var d = u[c]; - _.Util.vB(d[0]) && (this.cB || this.setCenter(d), - f[c] = this.pB(i(d[0], d[1]), this.dB)) - } - r[o] = f - } - } - n[s] = r - } - } - return 0 < n.length ? n : t - } - return t - } - , - $e.prototype.getCameraParams = function () { - this.mB(); - var t, i, n, s, e, h, r, o = this.map.getView(), a = o.pz(), u = this.pB(this.dB, this.Us); - return "3D" === o.type ? (t = (e = a.lB()).fov, - n = e.near, - s = e.far, - r = e.position, - i = e.target, - e = e.up, - { - fov: t / Math.PI * 180, - near: n, - far: s, - position: _.Pt(this.pB(r, u), [r[2]]), - lookAt: _.Pt(this.pB(i, u), [i[2]]), - up: e - }) : "2D" === o.type ? (i = (t = a.lB()).rotation, - n = t.near, - s = t.far, - e = t.top, - o = t.bottom, - a = t.left, - h = t.right, - r = t.position, - { - rotation: i, - near: n, - far: s, - top: e, - bottom: o, - left: a, - right: h, - position: _.Pt(this.pB(r, u), [r[2]]) - }) : void 0 - } - , - $e.prototype.getMVPMatrix = function () { - this.mB(); - var t = this.map.getView().pz() - , i = this.pB(this.dB, this.Us) - , n = _.Il(); - return this.Xl = t.Vl(), - n.set([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, i[0], i[1], 0, 1]), - _.multiply(this.Xl, this.Xl, n), - this.Xl - } - , - $e.prototype.mB = function () { - var i = (t = this.map.getView().getStatus()).optimalZoom - , t = t.centerCoord; - i >= _.Ra ? (i = _.lcs.getLocalByCoord([t[0], t[1]]), - this.Us = i.center) : this.Us = [0, 0] - } - , - $e.prototype.pB = function (t, i) { - var n = [0, 0]; - return n[0] = t[0] - i[0], - n[1] = t[1] - i[1], - n - } - ; - var Qe, Ke = $e; - function $e(t) { - this.Us = [0, 0], - t || console.error("需要传入 map 实例对象。new AMap.CustomCoords(map);"), - this.map = t, - this.mB() - } - var th = [116.397128, 39.916527] - , ih = qs; - _.Ei(L, ih), - L.prototype.setCenter = function (t, i, n) { - void 0 === i && (i = !1), - t instanceof _.LngLat && (t = t.toJSON()), - !i && this.Ev ? this.viewChange({ - lng: t[0], - lat: t[1] - }, n) : this.om({ - center: t - }) - } - , - L.prototype.getStyleByUserId = function (t, i) { - return this.qY(t, i) - } - , - L.prototype.getCustomTypeByContainerPos = function (t) { - var i, n, s, e = this.getCustomTypeByPos(t); - return e && e[0] ? (i = {}, - s = e[0][0], - e = { - x: e[0][1], - y: e[0][2], - z: s - }, - n = (t = t.lnglat).lng, - t = t.lat, - s = _.ZY(s, s, n, t, e), - i.tileInnerCoord = s, - i.tileCoord = e, - i) : null - } - , - L.prototype.getScreenShot = function (t, i) { - for (var n = this.getSize(), s = document.createElement("canvas"), e = s.getContext("2d"), h = (t = t || n.width, - i = i || n.height, - s.width = t, - s.height = i, - n.width, - n.height, - this.do.childNodes), r = [], o = 0; o < h.length; o += 1) - r.push(h[o]); - for (o = 0; o < r.length; o += 1) { - var a = r[o]; - "CANVAS" === a.tagName && e.drawImage(a, 0, 0, t, i) - } - return s.toDataURL() - } - , - L.prototype.updateView = function (t, i) { - this.om(t, i = void 0 === i || i) - } - , - L.prototype.destroy = function () { - delete this.hx, - ih.prototype.destroy.call(this) - } - , - L.prototype.setZoomAndCenter = function (t, i, n, s) { - void 0 === n && (n = !1), - this.Pv || (t = this.getZoom()), - i instanceof _.LngLat && (i = i.toJSON()), - !n && this.Ev ? this.viewChange({ - lng: i[0], - lat: i[1], - zoom: t - }, s) : this.om({ - center: i, - zoom: t - }) - } - , - L.prototype.getBounds = function () { - return new l(this._view.getStatus().bounds) - } - , - L.prototype.getCenter = function () { - var i = (t = this._view.getOptions().center)[0] - , t = t[1]; - return new _.LngLat(+i.toFixed(6), +t.toFixed(6)) - } - , - L.prototype.getGraphicInfo = function () { - return this.wX() - } - , - L.prototype.setZoom = function (t, i, n) { - void 0 === i && (i = !1), - this.Pv && (!i && this.Ev ? this.viewChange({ - zoom: t - }, n) : this.om({ - zoom: t - })) - } - , - L.prototype.getZoom = function (t) { - return void 0 === t && (t = 2), - +this._view.getOptions().zoom.toFixed(t) - } - , - L.prototype.zoomIn = function () { - this.setZoom(this.getZoom() + 1) - } - , - L.prototype.zoomOut = function () { - this.setZoom(this.getZoom() - 1) - } - , - L.prototype.getPitch = function () { - return this._view.getOptions().pitch - } - , - L.prototype.setPitch = function (t, i, n) { - !(i = void 0 !== i && i) && this.Ev ? this.viewChange({ - pitch: t - }, n) : this.om({ - pitch: t - }) - } - , - L.prototype.getRotation = function () { - return this._view.getOptions().rotation - } - , - L.prototype.setRotation = function (t, i, n) { - void 0 === t && (t = 0), - !(i = void 0 !== i && i) && this.Ev ? this.viewChange({ - rotation: t - }, n) : this.om({ - rotation: t - }) - } - , - L.prototype.setBounds = function (t, i, n) { - void 0 === i && (i = !1), - n = (void 0 === n ? [0, 0, 0, 0] : n) || [0, 0, 0, 0], - t instanceof l && (t = t.toJSON()), - t = this.em(t, n), - this.setZoomAndCenter(t[2], [t[0], t[1]], i) - } - , - L.prototype.panTo = function (t, i) { - t instanceof _.LngLat && (t = t.toJSON()), - this.viewChange({ - lng: t[0], - lat: t[1] - }, i) - } - , - L.prototype.getBindHandler = function () { - return this.hx - } - , - L.prototype.panBy = function (t, i, n) { - var s, e, h, r, o, a, u, f, l = (c = this.getSize()).width / 2 - t, c = c.height / 2 - i, d = this.getCenter(); - this.lx && this.ux && (s = Math.sqrt(t * t + i * i), - u = this.getProjection(), - e = (void 0 === this.ux.lng ? d : this.ux).lng, - d = (void 0 === this.ux.lat ? d : this.ux).lat, - h = void 0 === this.ux.zoom ? this.getZoom() : this.ux.zoom, - r = void 0 === this.ux.rotation ? this.getRotation() : this.ux.rotation, - o = void 0 === this.ux.pitch ? this.getPitch() : this.ux.pitch, - a = u.getResolution(h), - u = u.project(e, d), - f = r / 180 * Math.PI, - t = Math.atan(t / i) - f, - i < 0 && (t += Math.PI), - f = s * Math.sin(t), - i = s * Math.cos(t), - u[0] -= a * f, - u[1] += a * i, - this.setCenter([e, d], !0), - this.setZoom(h, !0), - this.setRotation(r, !0), - this.setPitch(o, !0)), - this.panTo(this.containerToLngLat([l, c]), n) - } - , - L.prototype.viewChange = function (t, i) { - var n, s, e, h, r, o, a, u = new H(.4, 0, .15, 1), f = (new H(.67, 0, 1, .42), - new H(.95, .25, .79, 1)), c = new H(.18, .66, .55, .86), l = this.getZoom(), d = this.getPitch(), v = this.getRotation(), p = this.getCenter().toJSON(), m = 0, y = 0, b = 0, g = 0; - this.lx ? (_.Util.cancelAnimFrame(this.lx), - this.ux = _.assign(this.ux, t)) : this.ux = t; - var M = (t = this.ux).zoom - , k = t.pitch - , w = t.rotation - , x = t.lng - , A = t.lat - , z = (void 0 !== M && (n = M - l, - m = u.h(Math.abs(n / 10)), - m = 1e3 * Math.max(Math.min(1, m), .1)), - void 0 !== k && (s = k - d, - y = Math.abs(16.7 * s)), - void 0 !== w && (e = w - v, - b = Math.abs(16.7 * e)), - void 0 !== x && void 0 !== A && (t = [], - a = this._view.getStatus().centerCoord, - h = x - p[0], - r = A - p[1], - o = this.getProjection().project(x, A), - t[0] = Math.abs(o[0] - a[0]) / this.getResolution(), - t[1] = Math.abs(o[1] - a[1]) / this.getResolution(), - 0, - o = u.h(Math.min(t[0] / this.getSize().width, 1)), - a = u.h(Math.min(t[1] / this.getSize().height, 1)), - g = 1e3 * Math.max(Math.min(1, a, o), .05, o, a)), - Math.max(m, y, b, g)) - , C = 0; - function S() { - var t, i = {}; - z <= C ? (void 0 !== M && (i.zoom = M), - void 0 !== k && (i.pitch = k), - void 0 !== w && (i.rotation = w), - void 0 !== x && void 0 !== A && (i.center = [x, A]), - this.om(i), - _.Util.cancelAnimFrame(this.lx), - this.lx = !1, - this.ux = {}) : (C += 16.7, - t = Math.min(1, u.p(C / z)), - void 0 !== k && (i.pitch = s * t + d), - void 0 !== w && (i.rotation = e * t + v), - void 0 !== x && void 0 !== A && (n && .5 < n ? t = c.h(C / z) : n && n < -.5 && (t = f.h(C / z)), - i.center = [h * t + p[0], r * t + p[1]]), - void 0 !== M && (t = (n < 0 ? c : f).h(C / z), - i.zoom = n * t + l), - this.om(i), - this.lx = _.Util.requestAnimFrame(S.bind(this))) - } - void 0 !== i && (z = i), - this.Ev || (z = -1), - S.call(this) - } - , - L.prototype.getContainer = function () { - return this.kv - } - , - L.prototype.add = function (t) { - for (var i = [], n = [], s = [], e = [], h = 0, r = t = Array.isArray(t) ? t : [t]; h < r.length; h++) { - var o = r[h]; - if (_.px(o)) - this.addLayer(o); - else if (_.er(o)) - _.RF(o) ? (this.add(o.getOverlays()), - o.setMap(this)) : this.am(o); - else - switch (o.type) { - case "AMap.Marker": - case "AMap.ElasticMarker": - case "AMap.Text": - i.push(o); - break; - case "AMap.InfoWindow": - n.push(o); - break; - case "AMap.ContextMenu": - s.push(o); - break; - case "AMap.LabelMarker": - e.push(o) - } - } - this.pi.add(i), - this.di.add(n), - this.vm.add(s), - e.length && this.rm().add(e), - this.setNeedUpdate(!0) - } - , - L.prototype.remove = function (t) { - for (var i = [], n = [], s = [], e = [], h = 0, r = t = Array.isArray(t) ? t : [t]; h < r.length; h++) { - var o = r[h]; - if (_.er(o)) - _.RF(o) ? (this.remove(o.getOverlays()), - o.setMap(null)) : this.$F.remove(o); - else if (_.px(o)) - this.removeLayer(o); - else - switch (o.type) { - case "AMap.Marker": - case "AMap.ElasticMarker": - case "AMap.Text": - i.push(o); - break; - case "AMap.InfoWindow": - n.push(o); - break; - case "AMap.ContextMenu": - s.push(o); - break; - case "AMap.LabelMarker": - e.push(o) - } - } - e.length && this.rm().remove(e), - this.pi && this.pi.remove(i), - this.di && this.di.remove(n), - this.vm && this.vm.remove(s), - this.setNeedUpdate(!0) - } - , - L.prototype.lngLatToCoords = function (t) { - var i; - return _.Bs(t) && (t = [t.lng, t.lat]), - (i = this.getProjection()).project.apply(i, t) - } - , - L.prototype.coordsToLngLat = function (t) { - var i = (i = this.getProjection()).unproject.apply(i, t); - return new AMap.LngLat(i[0], i[1]) - } - , - L.prototype.lngLatToContainer = function (t) { - var i = (t = _.Bs(t) ? [t.lng, t.lat] : t)[0] - , n = t[1] - , t = void 0 === (t = t[2]) ? 0 : t - , s = this._view - , e = s.getOptions().zoom || this.xt[1] - , i = (s = s.lnglatToContainer(+i, +n, t, e))[0] - , n = s[1]; - return new _.Pixel(i, n) - } - , - L.prototype.lnglatToContainer = function () { - console.log && console.log("请使用 lngLatToContainer 方法替代。") - } - , - L.prototype.containerTolnglat = function () { - console.log && console.log("请使用 containerToLngLat 方法替代。") - } - , - L.prototype.containerToLngLat = function (t) { - var t = t instanceof Array ? (i = t[0], - t[1]) : (i = t.x, - t.y) - , t = (i = this._view.containerTolnglat(i, t))[0] - , i = i[1]; - return new _.LngLat(t, i) - } - , - L.prototype.coordToContainer = function (t) { - var i; - return (i = this._view)._u.apply(i, t) - } - , - L.prototype.containerToCoord = function (t) { - return t instanceof _.Pixel && (t = t.toArray()), - this._view.ku(t[0], t[1]) - } - , - L.prototype.pixelToLngLat = function (t, i) { - void 0 === i && (i = this.getZoom()), - t = t instanceof Array ? (n = t[0], - t[1]) : (n = t.x, - t.y); - var n = _.V[this._view.au()].unproject(n, t, i) - , t = n[0] - , i = n[1]; - return new _.LngLat(t, i) - } - , - L.prototype.pixelTolnglat = function () { - console.log && console.log("请使用 pixelToLngLat 方法替代。") - } - , - L.prototype.unproject = function () { - console.log && console.log("请使用 pixelToLngLat 方法替代。") - } - , - L.prototype.lngLatToPixel = function (t, i) { - var n = (t = t instanceof _.LngLat ? t.toJSON() : t)[0] - , t = t[1]; - void 0 === i && (i = this.getZoom()); - t = (n = _.V[this._view.au()].project(n, t, i))[0], - i = n[1]; - return new _.Pixel(t, i) - } - , - L.prototype.project = function (t, i) { - return console.log && console.log("请使用 lngLatToPixel 方法替代。"), - this.lngLatToPixel(t, i) - } - , - L.prototype.lnglatToPixel = function (t, i) { - return console.log && console.log("请使用 lngLatToPixel 方法替代。"), - this.lngLatToPixel(t, i) - } - , - L.prototype.lnglatToPixelArray = function (t, i) { - var n = (t = t instanceof _.LngLat ? t.toJSON() : t)[0] - , t = t[1]; - return void 0 === i && (i = this.getZoom()), - _.V[this.getView().au()].project(n, t, i) - } - , - L.prototype.getTileCoordByLngLat = function (t, i, n) { - var s = (t = t instanceof _.LngLat ? t.toJSON() : t)[0] - , t = t[1] - , s = _.V[this.getView().au()].project(s, t, n) - , t = Math.floor(s[0] / 256) - , s = Math.floor(s[1] / 256); - return new _.ca(n, t, s) - } - , - L.prototype.addOverlay = function (t) { - this.am(t), - this.setNeedUpdate(!0) - } - , - L.prototype.removeOverlay = function (t) { - this.ar(t), - this.setNeedUpdate(!0) - } - , - L.prototype.getResolution = function (t) { - return t = (t || this.getCenter()).kT, - this.getProjection().getResolution(this.getZoom()) * Math.cos(t * Math.PI / 180) - } - , - L.prototype.getScale = function (t) { - return this.getResolution() * (t || 96) / .0254 - } - , - L.prototype.getCity = function (n, t) { - He.get(AMap.getConfig().server + "/v3/geocode/regeo", { - extensions: "", - output: "json", - location: t || this.getCenter().toJSON() - }, function (t, i) { - "complete" === t && i.status + "" == "1" ? (t = i.regeocode.addressComponent, - n({ - province: t.province, - city: t.city instanceof Array ? "" : t.city, - citycode: t.citycode instanceof Array ? "" : t.citycode, - district: t.district instanceof Array ? "" : t.district - })) : n({}) - }) - } - , - L.prototype.setCity = function (h, r) { - var o = this; - He.get(AMap.getConfig().server + "/v3/config/district", { - output: "json", - subdistrict: "0", - extensions: "all", - keywords: h - }, function (t, i) { - if ("complete" === t && i.status + "" == "1") { - if ((t = i.districts) && t.length) { - i = t[0], - /[^\w]+/.test(h) && (t = _.find(t, function (t) { - return t.name === h - })) && t !== i && (i = t); - try { - var n = i.center.split(",") - , s = i.level - , e = void 0; - switch (s) { - case "city": - e = 10; - break; - case "province": - e = 7; - break; - case "district": - e = 12; - break; - case "country": - e = 4; - break; - default: - e = 12 - } - -1 !== i.name.indexOf("市") && (e = 10), - o.setZoomAndCenter(e, n), - r && r.call(o, n, e) - } catch (t) { } - } - } else - r(null, null) - }) - } - , - L.prototype.setFitView = function (t, i, n, s) { - var e, h; - if ((void 0 === i && (i = !1), - void 0 === n && (n = [60, 60, 60, 60]), - void 0 === s && (s = Math.min(17.5, qs.t_[1])), - !((t = _.FF(t) ? t.getAllOverlays() : t) instanceof Array && 0 === t.length)) && (n = Boolean(n) ? n : [60, 60, 60, 60], - (t = !(t = t || []) || t instanceof Array ? t : [t]) && 0 !== t.length || (t = this.getAllOverlays()), - t = this.nm(t))) - return e = t.toJSON(), - e = this.em(e, n, s), - "d" === _.Support.baseRender && (e[2] = Math.floor(e[2])), - this.viewChange({ - lng: e[0], - lat: e[1], - zoom: e[2] - }, h = i ? 0 : h), - t - } - , - L.prototype.getFitZoomAndCenterByOverlays = function (t, i, n) { - if (void 0 === i && (i = [0, 0, 0, 0]), - void 0 === n && (n = _.zoomRange[1]), - t = this.nm(t)) - return t = t.toJSON(), - [(t = this.em(t, i, n))[2], new _.LngLat(t[0], t[1])] - } - , - L.prototype.getFitZoomAndCenterByBounds = function (t, i, n) { - return void 0 === i && (i = [0, 0, 0, 0]), - void 0 === n && (n = _.zoomRange[1]), - t instanceof l && (t = t.toJSON()), - [(t = this.em(t, i, n))[2], new _.LngLat(t[0], t[1])] - } - , - L.prototype.addControl = function (t) { - t.addTo(this), - this.controls.push(t) - } - , - L.prototype.removeControl = function (t) { - t.remove ? t.remove() : t.removeFrom && t.removeFrom(this, this.controls); - for (var i = 0; i < this.controls.length; i++) - if (this.controls[i] === t) - return void this.controls.splice(i - 1, 1) - } - , - L.prototype.L$ = function () { } - , - L.prototype.D$ = function () { - return "zh_cn" - } - , - L.prototype.set = function (t, i) { - switch (t) { - case "layers": - this.setLayers(i); - break; - case "projection": - break; - case "pitch": - this.setPitch(i); - break; - case "debug": - this.debug = i; - break; - case "showLabel": - this.showLabel = i; - break; - case "zoom": - this.setZoom(i); - break; - case "center": - this.setCenter(i); - break; - case "rotation": - this.setRotation(i); - break; - case "dragEnable": - this.setStatus({ - dragEnable: i - }); - break; - case "zoomEnable": - this.setStatus({ - zoomEnable: i - }); - break; - case "scrollWheel": - this.setStatus({ - scrollWheel: i - }); - break; - case "jogEnable": - this.setStatus({ - jogEnable: i - }); - break; - case "doubleClickZoom": - this.setStatus({ - doubleClickZoom: i - }); - break; - case "keyboardEnable": - this.setStatus({ - keyboardEnable: i - }); - break; - case "animateEnable": - this.setStatus({ - animateEnable: i - }); - break; - case "pitchEnable": - this.setStatus({ - pitchEnable: i - }); - break; - case "touchZoom": - this.setStatus({ - touchZoom: i - }); - break; - case "isHotspot": - this.setStatus({ - isHotspot: i - }); - break; - case "style": - this.setStyleByPlat(i) - } - } - , - L.prototype.setMapStyle = function (t) { - this.f_(t), - this.setStatus({ - mapStyle: t - }), - this.indoorMap && this.indoorMap.hide() - } - , - L.prototype.getMapStyle = function () { - var t, i = this.getStatus(); - return i && i.mapstyleUrl ? (t = i.mapstyleUrl, - "normal" === i.mapstyleUrl ? "amap://styles/normal" : t) : "" - } - , - L.prototype.getAllOverlays = function (i) { - var t = this.$F.getAllOverlays() - , n = _.Pt(t) - , t = this.pi.getAllOverlays() - , s = this.di.getAllOverlays(); - _.vx(t, function (t) { - n.push(t) - }), - s && s.length && _.Util.Ig(n, s); - for (var e = 0, h = this.zv; e < h.length; e++) { - var r = h[e]; - r instanceof fs && _.Util.Ig(n, r.getAllOverlays()) - } - return n = n.filter(function (t) { - return !(t._opts && t._opts.innerOverlay || i && !(-1 < t.className.toLocaleLowerCase().indexOf(i))) - }) - } - , - L.prototype.clearMap = function () { - for (var t = this.getAllOverlays(), i = 0; i < t.length; i++) { - var n = t[i]; - n && n.remove && n.remove() - } - } - , - L.prototype.clearInfoWindow = function () { - this.di && this.di.close() - } - , - L.prototype.addImage = function (t, i) { - this.I_ && this.I_.addImage(t, i) - } - , - L.prototype.getImage = function (t) { - if (this.I_) - return this.I_.getImage(t) - } - , - L.prototype.getFeatures = function () { - return this.Cw - } - , - L.prototype.setFeatures = function (t) { - this.Cw = t; - for (var i = this.yS(), n = this.getLayers(), s = 0; s < n.length; s++) { - var e = n[s]; - "AMap.Buildings" === e.CLASS_NAME && e.getState().u$ && (i ? e.show() : e.hide()) - } - this.setNeedUpdate(!0) - } - , - L.prototype.hasLayer = function (i) { - var t = this.getLayers(); - return -1 < _.findIndex(t, function (t) { - return t === i - }) - } - , - L.prototype.getMapApprovalNumber = function () { - var t = this.c_ - , i = { - satellite: "GS(2021)6342", - district: "GS(2021)6375" - }; - return t && ("normal" === t || "amap://styles/normal" === t) || (i.base = "GS(2021)6375"), - i - } - , - L.prototype.setMask = function (t) { - t && (this.c$ = t, - this.d$ || (this.d$ = new bs({ - zIndex: -10, - visible: !0, - path: this.c$ - }), - this.addLayer(this.d$)), - null != (t = this.d$)) && t.setMask(this.c$) - } - , - L.prototype.cancelMapAnimate = function () { - this.lx && (_.Util.cancelAnimFrame(this.lx), - this.lx = -1, - this.ux = {}) - } - , - L.prototype.setLabelRejectMask = function (t) { - void 0 !== t && (this.NH = t, - this.setNeedUpdate(!0)) - } - , - L.prototype.queryOverlayByPosition = function (t) { - return this.FY(t) - } - , - L.prototype.am = function (t) { - this.$F.add(t) - } - , - L.prototype.ar = function (t) { - this.sm().remove(t) - } - , - L.prototype.setStyle = function (t) { - this.RY(t) - } - , - L.prototype.setStyleByPlat = function (t) { - this.RY(t) - } - ; - var ih, sh, nh = L; - function L(t, i) { - void 0 === i && (i = { - zoom: 9, - center: [116.397128, 39.916527], - rotation: 0, - pitch: 0, - viewMode: "2D" - }); - var n = this - , s = null; - if (null === (s = t instanceof HTMLDivElement || null !== (t = document.getElementById(t)) ? t : s)) - throw Error("Map container div not exist"); - i.zooms = i.zooms || qs.t_, - t = !1, - void 0 === i.zoom && (t = !0, - i.zoom = Math.max(Math.min(i.zooms[1], 12), i.zooms[0])), - i.center = i.center ? _.Bs(i.center) ? i.center.toJSON() : i.center : th, - i.rotation = i.rotation || 0, - i.layers = i.layers || [], - i.baseRender = _.Support.isWebGL ? "w" : "d", - i.showIndoorMap = i.showIndoorMap || !1, - i.vectorMapForeign = i.vectorMapForeign || !1, - i.overseaDataType = i.overseaDataType || "", - i.vdataProxy = i.vdataProxy || "", - i.vdataProxy && (AMap.getConfig().vdataProxy = i.vdataProxy), - n = ih.call(this, s, i) || this, - t && (s = n.em(Qe)[2], - n.setZoom(s, !0)), - n.pi = new ke(n), - n.di = new Ie(n), - n.vm = new Ge(n), - n.hx = new ot(n), - n.hx.Xt(), - n.plugin = AMap.plugin; - for (var e = 0; e < i.layers.length; e++) { - var h = i.layers[e]; - h && "AMap.IndoorMap" === h.CLASS_NAME && h.setMap(n) - } - return !i.showIndoorMap || "normal" !== n.c_ && "amap://styles/normal" !== n.c_ || n.isDOMMode() || n.addLayer(n.indoorMap = new AMap.IndoorMap({ - zIndex: 8, - opacity: 1, - map: n - })), - n.YG = i.vectorMapForeign, - n.QZ = i.overseaDataType, - i.vectorMapForeign && n.addLayer(new AMap.Mapbox({ - zIndex: 8, - opacity: 1, - visible: !0, - map: n - })), - n.lcs.setMap(n), - n.customCoords = new Ke(n), - n.getOutseaState() && n.bZ.MZ.tY.add({ - NZ: function () { - n.bZ.MZ.wZ.gZ() - }, - group: "default", - UZ: function () { - return n.bZ.MZ.wZ.stencil.AS - }, - FZ: function () { - return 0 - } - }), - n - } - function eh(t) { - var i = sh.call(this, t) || this; - return i.CLASS_NAME = "AMap.ImageLayer", - i._tileUrl = t.url || t.tileUrl, - i.ir = t.bounds, - i.Qh = t.zIndex || 6, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i.il = void 0 === t.visible || t.visible, - i.xt = void 0 === t.zooms ? _.zoomRange : t.zooms, - i.canvas = t.canvas, - i - } - sh = e, - _.Ei(eh, sh), - eh.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "image", - tileUrl: this._tileUrl, - bounds: this.ir, - canvas: this.canvas, - zooms: this.xt - } - } - , - eh.prototype.co = function () { - return this._id - } - , - eh.prototype.getState = function () { - return { - visible: this.il, - opacity: this.tl, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - ; - var hh, rh = { - tileUrl: "", - url: "", - bounds: [0, 0, 0, 0], - opacity: 1, - visible: !0, - zIndex: 4, - zooms: _.zoomRange - }, oh = (hh = vi = eh, - _.Ei(ah, hh), - ah.prototype.getImageUrl = function () { - return this._tileUrl - } - , - ah.prototype.setImageUrl = function (t) { - var i; - t && (this._tileUrl = t, - this.getSourceConfig(), - (i = this.getSource()) && i._tileUrl && i.reLoadImgage && (i._tileUrl = t, - i.reLoadImgage(t)), - this._opts.url = t, - this.uo.getSource(this._id).Fo(!1), - this.map) && this.map.setNeedUpdate(!0) - } - , - ah.prototype.getBounds = function () { - return this.ir - } - , - ah.prototype.setBounds = function (t) { - t && (this.ir = t, - this.map.setNeedUpdate(!0)) - } - , - ah); - function ah(t) { - var i = this; - if ((t = void 0 === t ? rh : t).tileUrl || t.url) - return t.bounds = t.bounds || rh.bounds, - t.opacity = (void 0 === t.opacity ? rh : t).opacity, - t.visible = (void 0 === t.visible ? rh : t).visible, - t.zIndex = (void 0 === t.zIndex ? rh : t).zIndex, - t.canvas = void 0, - (i = hh.call(this, t) || this).onCreated(), - i; - throw new Error("ImageLayer need an Url") - } - var uh, fh, ch = { - url: "", - tileUrl: "", - bounds: [0, 0, 0, 0], - opacity: 1, - visible: !0, - zooms: _.zoomRange, - zIndex: 6 - }, lh = (uh = vi, - _.Ei(dh, uh), - dh.prototype.setCanvas = function (t) { - this.canvas = t, - this.reFresh() - } - , - dh.prototype.getElement = function () { - return this.canvas - } - , - dh.prototype.getBounds = function () { - return this.ir - } - , - dh.prototype.setBounds = function (t) { - t && (this.ir = t, - this.map.setNeedUpdate(!0)) - } - , - dh.prototype.reFresh = function () { - this.map && this.map.setNeedUpdate(!0) - } - , - dh.prototype.destroy = function () { - var t = this.getSource(); - t && t.destroy && t.destroy() - } - , - dh); - function dh(t) { - var i = this; - return (t = void 0 === t ? ch : t).bounds = t.bounds || ch.bounds, - t.opacity = (void 0 === t.opacity ? ch : t).opacity, - t.visible = (void 0 === t.visible ? ch : t).visible, - t.tileUrl = "", - (i = uh.call(this, t) || this).onCreated(), - i.CLASS_NAME = "AMap.CanvasLayer", - i - } - function vh(t, i) { - var n = fh.call(this, i) || this; - return n.CLASS_NAME = "AMap.CustomLayer", - n.eP = !1, - n.UF = !1, - n.render = i.render || function () { } - , - n.canvas = t, - n.Qh = i.zIndex || 11, - n.tl = void 0 === i.opacity ? 1 : i.opacity, - n.il = void 0 === i.visible || i.visible, - n.UF = void 0 !== i.alwaysRender && i.alwaysRender, - n.xt = i.zooms || _.zoomRange, - n.canvas.style.opacity = "" + n.tl, - n.canvas.style.display = n.il ? "block" : "none", - n.map && n.gx(n.canvas), - n - } - fh = e, - _.Ei(vh, fh), - vh.prototype.getState = function () { - return !this.eP && this.map && this.gx(this.canvas), - { - visible: this.il, - opacity: this.tl, - zIndex: this.Qh, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF, - kv: this._container, - alwaysRender: this.UF - } - } - , - vh.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "custom", - zooms: this.xt - } - } - , - vh.prototype.co = function () { - return this._id - } - , - vh.prototype.setOpacity = function (t) { - fh.prototype.setOpacity.call(this, t), - this.canvas.style.opacity = "" + this.tl - } - , - vh.prototype.setMap = function (t) { - t || this.destroy(), - fh.prototype.setMap.call(this, t), - t && this.gx(this.canvas) - } - , - vh.prototype.setzIndex = function (t) { - this.Qh = t, - this._container && (this._container.style.zIndex = this.Qh + "") - } - , - vh.prototype.destroy = function () { - var t; - this._container && (this.map ? this.map.do.removeChild(this._container) : (t = document.querySelector(".amap-layers")) && t.removeChild(this._container), - this._container = null) - } - , - vh.prototype.gx = function (t) { - this._container || (this._container = document.createElement("div"), - this._container.style.zIndex = this.Qh + "", - this._container.className = "amap-layer amap-e", - this._container.appendChild(t), - this.map.do.appendChild(this._container), - this.eP = !0) - } - , - ph = vh, - _.Ei(yh, ph); - var ph, mh = yh; - function yh(t, i) { - return (t = ph.call(this, t, i) || this).onCreated(), - t - } - var bh, gh = { - zIndex: 120, - opacity: 1, - zooms: _.zoomRange, - cursor: "pointer", - alwaysRender: !0 - }, Mh = (bh = _.Event, - _.Ei(T, bh), - T.prototype.setMap = function (t) { - t ? (this._map = t).add(this.a$) : this._map && (this.clear(), - this._map.remove(this.a$)) - } - , - T.prototype.getMap = function () { - return this._map || null - } - , - T.prototype.getData = function () { - return this.VL - } - , - T.prototype.setData = function (t) { - var i = this; - t && (this.VL = t, - this.XD(), - AMap.Util.requestAnimFrame(function () { - i.emit("complete") - })) - } - , - T.prototype.getStyle = function () { - return 1 === this.Ze.length ? this.Ze[0] : this.Ze - } - , - T.prototype.setStyle = function (t) { - if (t) { - Array.isArray(t) || (t = [t]); - var i = this.Ze - , n = []; - if (i && i.length) - for (var s = 0; s < t.length; s++) { - var e = t[s] - , h = i[s] || i[0]; - n.push(AMap.extend({}, h, e)) - } - else - n = t; - this.Ze = n, - this.XD() - } - } - , - T.prototype.getOpacity = function () { - return this._opts.opacity - } - , - T.prototype.setOpacity = function (t) { - this._opts.opacity = t, - this.a$ && this.a$.setOpacity(t) - } - , - T.prototype.getzIndex = function () { - return this._opts.zIndex - } - , - T.prototype.setzIndex = function (t) { - this._opts.zIndex = t, - this.a$ && this.a$.setzIndex(t) - } - , - T.prototype.getZooms = function () { - return this._opts.zooms || [2, 30] - } - , - T.prototype.setZooms = function (t) { - this._opts.zooms = t, - this.a$ && this.a$.setZooms(t) - } - , - T.prototype.getCursor = function () { - return this._opts.cursor || "default" - } - , - T.prototype.show = function () { - this.a$.show() - } - , - T.prototype.hide = function () { - this.a$.hide() - } - , - T.prototype.clear = function () { - this.a$.clear(), - this.VL = [] - } - , - T.prototype.XD = function () { - var t = this.VL - , i = this.Ze - , n = [] - , s = this.getCursor(); - if (t && i) { - for (var e = 0, h = t; e < h.length; e++) { - var r, o, a, u, f, c = h[e], l = c.lnglat, d = void 0 === (d = c.style) ? 0 : d; - l && (r = (a = i[d] || i[0]).url, - f = void 0 === (f = a.anchor) ? new AMap.Pixel(0, 0) : f, - u = a.size, - o = a.rotation, - d = void 0 === (a = a.zIndex) ? d : a, - a = u.width ? u.toArray() : u, - u = f.x ? f.toArray() : f, - (f = new AMap.LabelMarker({ - position: l, - zIndex: d, - cursor: s, - rotation: o, - icon: { - image: r, - size: a, - anchor: u - } - })).qD = c, - this.Rm(f), - n.push(f)) - } - this.jT = n, - this.a$.clear(), - this.a$.add(n) - } - } - , - T.prototype.Rm = function (t) { - var h = this; - t.on(["click", "dblclick", "mouseover", "mousemove", "mouseout", "mouseup", "mousedown", "touchstart", "touchend"], function (t) { - var i, n = t.type, s = h._map, e = h.getCursor(); - "default" !== e && s && (i = s.getDefaultCursor(), - "mouseover" === n ? s.setCursor(e) : "mouseout" === n && s.setCursor(i)), - h.QD(t) - }) - } - , - T.prototype.QD = function (t) { - var i = t.type - , t = this.KD(t); - this.emit(i, t) - } - , - T.prototype.KD = function (t) { - var i = t.target; - return t.target = this, - { - target: t.target, - type: t.type, - data: i.qD || {} - } - } - , - T); - function T(t, i) { - var n = bh.call(this) || this; - n.CLASS_NAME = "AMap.MassMarks", - n._opts = AMap.extend({}, gh, i); - var s = (i = n._opts).zIndex - , e = i.opacity - , h = i.zooms - , i = i.style; - return n.a$ = new AMap.LabelsLayer({ - zIndex: s, - opacity: e, - zooms: h, - collision: !1, - allowCollision: !1, - VT: !0 - }), - n.setData(t), - n.setStyle(i), - n.XD(), - n - } - var kh, wh = "AMap.Text", xh = "amap-overlay-text-container", Ah = (kh = Ae, - _.Ei(zh, kh), - zh.prototype.getText = function () { - return this._opts.text - } - , - zh.prototype.setText = function (t) { - t = this.wx(t), - this.setContent(t) - } - , - zh.prototype.setStyle = function (t) { - t && (this._x = t, - this._size = [0, 0], - this.updateOverlay()) - } - , - zh.prototype.updateOverlay = function (t) { - void 0 === t && (t = {}), - this.dom && !_.isEmpty(this._x) && this.kx(this._x), - kh.prototype.updateOverlay.call(this, t) - } - , - zh.prototype.wx = function (t) { - var i = document.createElement("div"); - return w.addClass(i, xh), - i.innerHTML = t || "", - i - } - , - zh.prototype.kx = function (t) { - void 0 === t && (t = {}); - var i = this.dom.querySelector("." + xh); - if (i) - for (var n in t) - t.hasOwnProperty(n) && (i.style[n] = t[n]) - } - , - zh); - function zh(t) { - var i = kh.call(this, t = void 0 === t ? {} : t) || this; - return i.className = wh, - i.type = wh, - i._x = {}, - i._size = [0, 0], - t.style && (i._x = t.style), - t.text && i.setText(t.text), - i - } - var Ch, Sh = { - zooms: _.zoomRange, - opacity: 1, - rank: 1, - bubble: !1, - visible: !0, - zIndex: 1, - cursor: "pointer", - noSelect: !1, - icon: { - clipOrigin: [0, 0], - anchor: [0, 0], - retina: !0 - }, - innerOverlay: !1, - rotation: 0, - text: { - content: "", - direction: "right", - offset: [0, 0], - zooms: _.zoomRange, - style: { - fontSize: 12, - fontFamily: "sans-serif", - fontWeight: "normal", - fillColor: "#000", - strokeWidth: 0, - padding: "3", - fold: !1 - } - } - }, Lh = { - uy: "AMap.LabelMarker", - gy: Math.pow(2, 31) - }, Th = (Ch = Qt, - _.Ei(I, Ch), - I.prototype.nY = function (t) { - var i, n = _.yn(t); - for (i in Sh) - Sh.hasOwnProperty(i) && void 0 === n[i] && (n[i] = _.clone(Sh[i])); - return n - } - , - I.prototype.getName = function () { - return this._opts.name - } - , - I.prototype.setName = function (t) { - this._opts.name = t - } - , - I.prototype.getBounds = function () { - var t = this._position; - return new l(t, t) - } - , - I.prototype.getPosition = function () { - return new _.LngLat(this._position[0], this._position[1]) - } - , - I.prototype.setPosition = function (t) { - t && ("string" == typeof t ? t = _.map(t.split(","), function (t) { - return parseFloat(t) - }) : _.Bs(t) && (t = t.toJSON()), - this._position = t, - this.to()) - } - , - I.prototype.getZooms = function () { - return this._opts.zooms - } - , - I.prototype.setZooms = function (t) { - void 0 === t && (t = _.zoomRange), - this._opts.zooms = t, - this.to() - } - , - I.prototype.getOpacity = function () { - return this._opts.opacity - } - , - I.prototype.setOpacity = function (t) { - void 0 !== t && (this._opts.opacity = t, - this.to()) - } - , - I.prototype.setRotation = function (t) { - void 0 !== t && (this._opts.rotation = t, - this.to()) - } - , - I.prototype.getRotation = function () { - return void 0 === this._opts.rotation ? 0 : this._opts.rotation - } - , - I.prototype.getzIndex = function () { - return this._opts.zIndex - } - , - I.prototype.setzIndex = function (t) { - this._opts.zIndex = t, - this.to() - } - , - I.prototype.getRank = function () { - return this._opts.rank - } - , - I.prototype.setRank = function (t) { - this._opts.rank = t, - this.to() - } - , - I.prototype.getText = function () { - return this._originOpts.text && this._opts.text || null - } - , - I.prototype.setText = function (t) { - t && (_.assign(this._opts.text, t), - this.to()) - } - , - I.prototype.getIcon = function () { - return this._originOpts.icon && this._opts.icon || null - } - , - I.prototype.setIcon = function (t) { - t && (_.assign(this._opts.icon, t), - this.to()) - } - , - I.prototype.getOptions = function () { - return this._opts - } - , - I.prototype.getDraggable = function () { - return !1 - } - , - I.prototype.getExtData = function () { - return this._opts.extData || null - } - , - I.prototype.setExtData = function (t) { - this._opts.extData = t - } - , - I.prototype.setTop = function (t) { - void 0 === t && (t = !0), - this._parent && this._parent.setTop(this, t), - t ? (this.vL = this._opts.zIndex || 1, - this.setzIndex(Lh.gy)) : (t = this.vL || this._opts.zIndex || 1, - this.setzIndex(t)) - } - , - I.prototype.setCursor = function (t) { - t && (this._opts.cursor = t) - } - , - I.prototype.getCursor = function () { - return this._opts.cursor || "default" - } - , - I.prototype.setVisible = function (t) { - void 0 !== t && (this._opts.visible = t, - this.to()) - } - , - I.prototype.getVisible = function () { - return this._opts.visible || !0 - } - , - I.prototype.getCollision = function () { - var t, i = this.getVisible(), n = !1; - return this._parent && i && (t = this.hS, - n = this._parent.IL(t)), - i && n - } - , - I.prototype.show = function () { - this._opts.visible = !0, - this.to() - } - , - I.prototype.hide = function () { - this._opts.visible = !1, - this.to() - } - , - I.prototype.emit = function (t, i) { - var n = this._opts || {} - , s = n.icon - , e = n.text - , h = e && e.content - , r = this.getCursor() - , r = (this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(r)), - { - data: { - name: h, - txt: h, - position: this._position, - extData: {}, - rank: n.rank, - zooms: n.zooms - }, - opts: { - visible: n.visible, - opacity: n.opacity, - zooms: n.zooms, - zIndex: n.zIndex, - icon: s, - text: e - } - }); - return i.data = r, - Ch.prototype.emit.call(this, t, i), - this - } - , - I.prototype.remove = function () { - this._parent && this._parent.remove(this) - } - , - I.prototype.to = function () { - this._parent && this._parent.to() - } - , - I.prototype.Cs = function (t) { - (this._parent = t) && t.map ? this._map = t.map : this._map = null - } - , - I); - function I(t) { - var i = Ch.call(this) || this; - return i.type = Lh.uy, - i.className = Lh.uy, - i.hS = _.Util.stamp(i), - i._originOpts = t, - i._opts = i.nY(t), - t.position && i.setPosition(t.position), - i - } - Ih = _.Event, - _.Ei(Oh, Ih), - Oh.prototype.addTo = function (t) { - this.map = t, - this.map.controls.push(this), - t.getControlContainer().appendChild(this._container), - t.on("beforeDestroy", this.remove.bind(this)) - } - , - Oh.prototype.removeFrom = function (t) { - t ? (t.off("beforeDestroy", this.remove.bind(this)), - t.getControlContainer().removeChild(this._container), - delete this.map) : this.map && (this.map.off("beforeDestroy", this.remove.bind(this)), - this.map.getControlContainer().removeChild(this._container), - delete this.map) - } - , - Oh.prototype.remove = function () { - this.map && (this.map.off("beforeDestroy", this.remove.bind(this)), - this.map.getControlContainer().removeChild(this._container), - delete this.map) - } - , - Oh.prototype.show = function () { - this._container.style.display = "block", - this.emit("show"), - this.il = !0 - } - , - Oh.prototype.hide = function () { - this._container.style.display = "none", - this.emit("hide"), - this.il = !1 - } - , - Oh.prototype.initContainer = function () { - this._className ? (this._container = w.create("div", null, "amap-control amap-" + this._className), - void 0 === this._config.visible || this._config.visible || (this._container.style.display = "none")) : this._container = w.create("div", null, "amap-control"), - this.Pb() - } - , - Oh.prototype.Pb = function () { - var t = 0 - , i = 0 - , n = 0 - , s = 0; - switch (this._config.offset && 0 < this._config.offset.length && (t = this._config.offset[0] + t, - i = this._config.offset[1] + i, - n = this._config.offset[0] + n, - s = this._config.offset[1] + s), - t += "px", - i += "px", - n += "px", - s += "px", - this._config.position) { - case "LT": - this._container.style.top = i, - this._container.style.left = t, - this._container.style.bottom = "", - this._container.style.right = ""; - break; - case "RT": - this._container.style.top = i, - this._container.style.right = n, - this._container.style.bottom = "", - this._container.style.left = ""; - break; - case "LB": - this._container.style.bottom = s, - this._container.style.left = t, - this._container.style.top = "", - this._container.style.right = ""; - break; - case "RB": - this._container.style.bottom = s, - this._container.style.right = n, - this._container.style.top = "", - this._container.style.left = ""; - break; - default: - this._container.style.top = this._config.position.top || "", - this._container.style.left = this._config.position.left || "", - this._container.style.right = this._config.position.right || "", - this._container.style.bottom = this._config.position.bottom || "" - } - } - ; - var Ih, Dh = Oh; - function Oh(t) { - var i = Ih.call(this) || this; - return i.il = !0, - i._config = t, - i.il = void 0 === t.visible || t.visible, - i - } - var Eh, Rh = { - ua: (wi = window.navigator).userAgent, - mobile: _.Support.$e, - plat: _.Support.plat, - mac: _.Support.mac, - windows: _.Support.windows, - ios: _.Support.ios, - iPad: _.Support.iPad, - iPhone: _.Support.iPhone, - android: _.Support.android, - android23: _.Support.android23, - chrome: _.Support.chrome, - firefox: _.Support.firefox, - safari: _.Support.safari, - wechat: _.Support.wechat, - uc: _.Support.SL, - qq: _.Support.qq, - ie: _.Support.ie, - ie6: _.Support.ie6, - ie7: _.Support.ie7, - ie8: _.Support.ielt9 && !_.Support.ie7 && !_.Support.ie6, - ie9: _.Support.ie9, - ie10: _.Support.ie10, - ie11: _.Support.ie11, - edge: _.Support.edge, - ielt9: _.Support.ielt9, - baidu: _.Support.baidu, - isLocalStorage: _.Support.RL, - isGeolocation: !!wi.geolocation, - mobileWebkit: _.Support.mobileWebkit, - mobileWebkit3d: _.Support.mobileWebkit3d, - mobileOpera: !!_.Support.mobileOpera, - retina: _.Support.Ue, - touch: !!_.Support.touch, - msPointer: !!_.Support.msPointer, - pointer: !!_.Support.pointer, - baseRender: _.Support.baseRender, - wasm: _.Support.wasm, - webkit: _.Support.webkit, - ie3d: _.Support.ie3d, - webkit3d: _.Support.webkit3d, - gecko3d: _.Support.gecko3d, - opera3d: _.Support.opera3d, - any3d: _.Support.any3d, - isCanvas: _.Support.isCanvas, - isSvg: _.Support.isSvg, - isVML: _.Support.ie, - isWorker: !!window.Worker, - isWebsocket: !!window.WebSocket, - isWebGL: _.Support.isWebGL, - checkWebGL: function () { - return _.Support.isWebGL = _.Support.sY(), - _.Support.isWebGL - } - }, Di = (Eh = e, - _.Ei(Ph, Eh), - Ph.prototype.getState = function () { - return { - zooms: this.xt, - heightFactor: this.Q_, - visible: this.il, - zIndex: this.Qh, - opacity: this.tl, - wallColor: [], - roofColor: [], - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - Ph.prototype.getLayerConfig = function () { - return Eh.prototype.getLayerConfig.call(this) - } - , - Ph.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "building", - tileUrl: AMap.getConfig().protocol + (_.Support.wasm ? "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v3" : "://{vdata,vdata01,vdata02,vdata03,vdata04}.amap.com/nebula/v2"), - tileSize: 0, - zooms: _.zoomRange - } - } - , - Ph.prototype.co = function () { - return this._id - } - , - Ph.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - Ph); - function Ph() { - var t = Eh.call(this) || this; - return t.CLASS_NAME = "AMap.Buildings", - t.Q_ = 1, - t._id = "building", - t - } - var jh, Bh = { - zooms: [14.8, _.zoomRange[1]], - opacity: 1, - heightFactor: 1, - visible: !0, - zIndex: 11, - wallColor: [.94, .94, .94, .9], - roofColor: [.89, .89, .86, .9], - u$: !1 - }, Wh = (jh = Di, - _.Ei(Fh, jh), - Fh.prototype.setStyle = function (t) { - this.fL = t, - this.uL() - } - , - Fh.prototype.getState = function () { - return { - zooms: this.xt, - heightFactor: this.Q_, - visible: this.il, - zIndex: this.Qh, - opacity: this.tl, - wallColor: this.sz, - roofColor: this.rz, - vS: this.fL, - layer: this, - u$: this.cL, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - Fh.prototype.uL = function () { - this.map && (this.getSource().reload(), - this.map.setNeedUpdate(!0)) - } - , - Fh); - function Fh(t) { - void 0 === t && (t = Bh); - var i = jh.call(this) || this; - return i.cL = !1, - i.xt = (void 0 === t.zooms ? Bh : t).zooms, - i.xt[0] = Math.max(i.xt[0], 14.8), - i.tl = (void 0 === t.opacity ? Bh : t).opacity, - i.Q_ = (void 0 === t.heightFactor ? Bh : t).heightFactor, - i.il = (void 0 === t.visible ? Bh : t).visible, - i.Qh = (void 0 === t.zIndex ? Bh : t).zIndex, - i.sz = void 0 !== t.wallColor && _.Util.color2RgbaArray(t.wallColor), - i.rz = void 0 !== t.roofColor && _.Util.color2RgbaArray(t.roofColor), - i.AF = void 0 === t.depthTest || Boolean(t.depthTest), - i.cL = t.u$, - i.cL && (i._id = "nebula"), - i.onCreated(), - i - } - Nh.add = function () { } - ; - var Gh = Nh; - function Nh() { } - function _h(t) { - return _.Support.isWebGL ? new Ui(t) : new ln(_.Ln({ - id: "_defaultLayer_" + _.Util.uuid(), - tileUrl: AMap.getConfig().y_ - }, t)) - } - var Uh, Yh = "gl_custom"; - function Xh(t) { - var i = Uh.call(this, t) || this; - return i.CLASS_NAME = "AMap.GLCustomLayer", - i.init = t.init || function (t) { } - , - i.render = t.render || function (t, i, n) { } - , - i.Qh = t.zIndex || 120, - i.tl = void 0 === t.opacity ? 1 : t.opacity, - i.il = void 0 === t.visible || t.visible, - i.xt = t.zooms || _.zoomRange, - i - } - Uh = e, - _.Ei(Xh, Uh), - Xh.prototype.getState = function () { - return { - visible: this.il, - opacity: this.tl, - zIndex: this.Qh, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - Xh.prototype.getSourceConfig = function () { - return { - id: Yh, - type: Yh, - zooms: this.xt - } - } - , - Xh.prototype.co = function () { - return Yh - } - , - Xh.prototype.setMap = function (t) { - Uh.prototype.setMap.call(this, t) - } - , - Xh.prototype.setzIndex = function (t) { - this.Qh = t - } - , - Zh = Xh, - _.Ei(Hh, Zh); - var Zh, Jh = Hh; - function Hh(t) { - return (t = Zh.call(this, t) || this).onCreated(), - t - } - Vh = _.Event, - _.Ei(Qh, Vh), - Qh.prototype.setMap = function (t) { - var i = this; - return t && t !== this._map && (this._map = t, - _.forEach(this.zv, function (t) { - i._map && !i._map.hasLayer(t) && t.setMap(i._map) - })), - this - } - , - Qh.prototype.hasLayer = function (i) { - return !!_.find(this.zv, function (t) { - return t === i - }) - } - , - Qh.prototype.setOptions = function (e) { - var h = this.zv; - return _.vx(e, function (t, i) { - for (var n = 0; n < h.length; n++) { - var s = h[n]; - if ("AMap.Layer" === s.el) - switch (i) { - case "visible": - t ? s.show() : s.hide(); - break; - case "opacity": - s.setOpacity && s.setOpacity(t); - break; - case "zIndex": - s.setzIndex && s.setzIndex(t); - break; - case "zooms": - s.setZooms && s.setZooms(t) - } - else - s.setOptions && s.setOptions(e) - } - }), - this - } - , - Qh.prototype.eachLayer = function (t) { - if (_.isFunction(t)) - for (var i = 0; i < this.zv.length; i++) - t(this.zv[i], i, this.zv) - } - , - Qh.prototype.addLayer = function (t) { - this.hasLayer(t) || (this.zv.push(t), - t.setMap(this._map)) - } - , - Qh.prototype.addLayers = function (t) { - if (0 < t.length) - for (var i = 0; i < t.length; i++) { - var n = t[i]; - this.addLayer(n) - } - } - , - Qh.prototype.removeLayer = function (t) { - for (var i = 0; i < this.zv.length; i++) - t === this.zv[i] && this.zv.splice(i, 1); - return t.setMap(null), - t - } - , - Qh.prototype.removeLayers = function (t) { - if (t && 0 < t.length) - for (var i = 0; i < t.length; i++) { - var n = t[i]; - this.removeLayer(n) - } - } - , - Qh.prototype.getLayers = function () { - return this.zv - } - , - Qh.prototype.clearLayers = function () { - for (var t = 0; t < this.zv.length; t++) { - var i = this.zv[t]; - this.removeLayer(i) - } - } - , - Qh.prototype.hide = function () { - for (var t = 0; t < this.zv.length; t++) - this.zv[t].hide(); - return this - } - , - Qh.prototype.show = function () { - for (var t = 0; t < this.zv.length; t++) - this.zv[t].show(); - return this - } - , - Qh.prototype.on = function (t, i) { - for (var n = 0; n < this.zv.length; n++) { - var s = this.zv[n]; - s.on instanceof Function && i instanceof Function && s.on(t, i) - } - return this - } - , - Qh.prototype.reload = function () { - for (var t = 0; t < this.zv.length; t++) { - var i = this.zv[t]; - i.reload && i.reload() - } - return this - } - ; - var Vh, $h, qh = Qh; - function Qh(t) { - var i = Vh.call(this) || this; - if (i.zv = [], - i._map = null, - t && 0 < t.length) - for (var n = 0; n < t.length; n++) { - var s = t[n]; - i.addLayer(s) - } - return i - } - function Kh() { - console.log("jsapi2.0 AMap.Heatmap is renamed, please use AMap.HeatMap"), - console.log("jsapi2.0 AMap.Heatmap 已重命名, 请使用 AMap.HeatMap") - } - function tr(t) { - var i = $h.call(this) || this; - return i.CLASS_NAME = "AMap.MapboxLayer", - i._id = "mapbox", - i._tileUrl = AMap.getConfig().protocol + "://fmap0{1234}.amap.com/v3/vectormap?version=v8&key=" + AMap.getConfig().key + "&s=rsv3&x=[x]&y=[y]&zoom=[z]", - AMap.getConfig().jscode ? i._tileUrl += "&jscode=" + AMap.getConfig().jscode : AMap.getConfig().gaodeserver && (i._tileUrl = AMap.getConfig().gaodeserver + "/v3/vectormap?version=v8&key=" + AMap.getConfig().key + "&s=rsv3&x=[x]&y=[y]&zoom=[z]"), - i.Xa = t.tileSize || 256, - i.Qs = [2, 22], - i.Qh = 2, - i.xt = [9.8, _.zoomRange[1]], - i - } - $h = e, - _.Ei(tr, $h), - tr.prototype.getState = function () { - return { - zooms: [17, 23], - visible: this.il, - zIndex: 2, - opacity: this.tl, - layer: this, - depthTest: this.AF, - ce: this.IF, - tileUrl: this._tileUrl - } - } - , - tr.prototype.getSourceConfig = function () { - return { - id: this._id, - tileUrl: this._tileUrl || "", - type: "mapbox", - tileSize: this.Xa || 256, - zooms: this.xt, - dataZooms: this.Qs, - projection: "EPS3857" - } - } - , - tr.prototype.co = function () { - return this._id - } - , - ir = tr, - _.Ei(sr, ir); - var ir, nr = sr; - function sr(t) { - return ir.call(this, t) || this - } - Object.defineProperty(rr.prototype, "CLASS_NAME", { - get: function () { - return this.className - }, - eb: !1, - nb: !0 - }), - rr.prototype.addOverlay = function (t) { - this._overlays.indexOf(t) < 0 && (this._overlays.push(t), - this._map) && this._map.add(t) - } - , - rr.prototype.addOverlays = function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - this.addOverlay(s) - } - } - , - rr.prototype.getOverlays = function () { - return this._overlays - } - , - rr.prototype.hasOverlay = function (t) { - return -1 < this._overlays.indexOf(t) - } - , - rr.prototype.removeOverlay = function (t) { - this.hasOverlay(t) && (_.Util.deleteItemFromArray(this._overlays, t), - this._map) && this._map.remove(t) - } - , - rr.prototype.removeOverlays = function (t) { - for (var i = 0, n = t; i < n.length; i++) { - var s = n[i]; - this.removeOverlay(s) - } - } - , - rr.prototype.clearOverlays = function () { - this._map && this._map.remove(this._overlays), - this._overlays = [] - } - , - rr.prototype.eachOverlay = function (t) { - _.forEach(this._overlays, t) - } - , - rr.prototype.setMap = function (t) { - this._map = t - } - , - rr.prototype.show = function () { - for (var t = 0, i = this._overlays; t < i.length; t++) - i[t].show() - } - , - rr.prototype.hide = function () { - for (var t = 0, i = this._overlays; t < i.length; t++) - i[t].hide() - } - , - rr.prototype.setOptions = function (t) { - for (var i = 0, n = this._overlays; i < n.length; i++) - n[i].setOptions(t) - } - , - rr.prototype.on = function (i, n, s, e) { - this.eachOverlay(function (t) { - t.on(i, n, s, e) - }) - } - , - rr.prototype.off = function (i, n, s, t) { - this.eachOverlay(function (t) { - t.off(i, n, s) - }) - } - ; - var er, hr = rr; - function rr(t) { - void 0 === t && (t = []), - this.className = "Overlay.OverlayGroup", - this._overlays = [], - this.addOverlays(t) - } - function or() { - var t = null !== er && er.apply(this, arguments) || this; - return t.P$ = !1, - t._dragObjects = { - sy: { - x: 0, - y: 0 - }, - hy: [0, 0], - ly: { - lng: 0, - lat: 0 - } - }, - t - } - er = Qt, - _.Ei(or, er), - or.prototype.Cy = function (t) { - this.P$ = !0, - _.Support.$e || t.originEvent.preventDefault(), - this.Ay(t) - } - , - or.prototype.Ly = function (t) { - this.P$ = !1, - _.Support.$e || t.originEvent.preventDefault() - } - , - or.prototype.Ay = function (t) { - this._dragObjects = { - sy: t.pixel, - hy: t.pos, - ly: t.lnglat - } - } - , - or.prototype.Mx = function () { - this.on("dragstart", this.Cy.bind(this)), - this.on("dragging", this._dragging.bind(this)), - this.on("dragend", this.Ly.bind(this)) - } - , - or.prototype.Rx = function () { - this.off("dragstart", this.Cy.bind(this)), - this.off("dragging", this._dragging.bind(this)), - this.off("dragend", this.Ly.bind(this)) - } - , - ar = or, - _.Ei(D, ar), - Object.defineProperty(D.prototype, "CLASS_NAME", { - get: function () { - return this.className - }, - eb: !1, - nb: !0 - }), - D.prototype.Zx = function (t) { - this._map = t, - this._opts && (this._opts.map = t) - } - , - D.prototype.setMap = function (t) { - this._map !== t && (this._map && this._map.remove(this), - t) && t.add(this) - } - , - D.prototype.getMap = function () { - return this._map || null - } - , - D.prototype.destroy = function () { - this.Rx(), - this._beforeRemoveMap && this._beforeRemoveMap(), - this._map = null, - this.F$ && delete this.F$, - this._bindEvents && delete this._bindEvents, - this._afterSetMap && delete this._afterSetMap - } - , - D.prototype.remove = function () { - this.setMap(null) - } - , - D.prototype.hide = function () { - this.visible && (this.visible = !1, - this._map && this._map.setNeedUpdate(!0), - this.emit("hide", { - target: this - })) - } - , - D.prototype.show = function () { - this.visible || (this.visible = !0, - this._map && this._map.setNeedUpdate(!0), - this.emit("show", { - target: this - })) - } - , - D.prototype.setDraggable = function (t) { - return this._opts.draggable = t - } - , - D.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - , - D.prototype.to = function () { - this._map && this._map.setNeedUpdate(!0) - } - , - D.prototype.getExtData = function () { - var t = this._opts; - if (t && t.extData) - return t.extData - } - , - D.prototype.setExtData = function (t) { - this.setOptions({ - extData: t - }) - } - , - D.prototype.getCursor = function () { - var t = this._opts.cursor; - return !t && this._map ? this._map.getDefaultCursor() : t - } - , - D.prototype.emit = function (t, i) { - var n = this.getCursor(); - return this._map && ("mouseout" === t ? this._map.setCursor() : this._map.setCursor(n)), - ("dragstart" !== t && "dragging" !== t && "dragend" !== t || this.getDraggable()) && ar.prototype.emit.call(this, t, i), - this - } - , - D.prototype.getDraggable = function () { - var t = this._opts.draggable; - return void 0 !== t && t - } - , - D.prototype.BB = function () { - this.b_([0, 0]) - } - , - D.prototype.getDeltaCoord = function () { - return this.zx - } - , - D.prototype.b_ = function (t) { - this.zx = t - } - , - D.prototype.rY = function (t) { - var i = this.Sx; - return _.Util.hp(i, t) - } - , - D.prototype._beforeRemoveMap = function () { - var t; - this.F$ && (null != (t = this.F$.parentNode) && t.removeChild(this.F$), - delete this.F$) - } - , - D.prototype.nY = function (t) { - var i, n = this._opts; - for (i in t) - t.hasOwnProperty(i) && (n[i] = t[i]); - return n - } - , - D.prototype._dragging = function (t) { - var i, n, s, e, h; - this.getDraggable() && (n = this._dragObjects.hy, - i = t.pos[0] - n[0], - n = t.pos[1] - n[1], - h = this._dragObjects.sy, - this.F$ && "d" === this._map.baseRender ? (e = t.pixel.x - h.x, - h = t.pixel.y - h.y, - s = this.B$, - this.B$ = [e + s[0], h + s[1]], - e = " translate(" + this.B$[0] + "px, " + this.B$[1] + "px)", - this.F$.style.transform = e, - this.F$.style.webkitTransform = e, - this.F$.style.MozTransform = e, - this.F$.style.msTransform = e) : this.to(), - h = this.getDeltaCoord(), - this.b_([i + h[0], n + h[1]]), - this.Ay(t)) - } - , - D.prototype.Ly = function (t) { - ar.prototype.Ly.call(this, t), - this.Ay(t), - this.F$ && "d" === this._map.baseRender ? this.moveWithPixel(this.B$[0], -1 * this.B$[1]) : this.moveWithPos(this.zx[0], this.zx[1]), - this.BB(), - this.B$ = [0, 0], - this.F$ && (this.F$.style.transform = "", - this.F$.style.webkitTransform = "", - this.F$.style.MozTransform = "", - this.F$.style.msTransform = ""), - this.to() - } - , - D.prototype.moveWithPixel = function () { - console.log("please implement movePixel") - } - , - D.prototype.moveWithPos = function () { - console.log("please implement moveWithPos") - } - , - D.prototype._checkMap = function () { - this._opts && this._opts.map !== this._map && this.setMap(this._opts.map) - } - , - D.prototype.cE = function () { - this._needUpdate = !0, - !this._map || this._map.fE && !this._map.isDOMMode() || this.ZB() - } - ; - var ar, ci = D; - function D() { - var t = ar.call(this) || this; - return t._needUpdate = !1, - t.className = "Overlay", - t.gdt = !1, - t.visible = !0, - t.P$ = !1, - t.zx = [0, 0], - t.B$ = [0, 0], - t.Ax = [0, 0], - t.hS = _.Util.stamp(t), - t.Mx(), - t - } - function ur(t) { - if (t = _.jsonLngLatData(t), - _.ys(t)) - t = [[t]]; - else if (_.Ox(t)) - t = [t]; - else if (!_.tL(t)) - return; - return t - } - function fr(t, i, n) { - return _.hL.ss(t, i, n) - } - function cr(t, i) { - if (!fr(t, i[0])) - return !1; - for (var n = 1, s = i.length; n < s; n++) - if (fr(t, i[n], !0)) - return !1; - return !0 - } - function lr(t, i) { - for (var n = 0, s = i.length; n < s; n++) - if (cr(t, i[n])) - return !0; - return !1 - } - function dr(t, i, n) { - for (var s = [], e = 0, h = t; e < h.length; e++) { - var r = h[e]; - s.push(n.moveWithPos(r, i)) - } - return s - } - function vr(t, i, n) { - for (var s = [], e = 0, h = t; e < h.length; e++) { - var r = dr(h[e], i, n); - s.push(r) - } - return s - } - function pr(t, i, n, s) { - for (var e = [], h = 0, r = t; h < r.length; h++) { - var o = r[h]; - e.push(s.moveWithPixel(o, i, n)) - } - return e - } - function mr(t, i, n, s) { - for (var e = [], h = 0, r = t; h < r.length; h++) { - var o = pr(r[h], i, n, s); - e.push(o) - } - return e - } - function yr(t) { - return _.GeometryUtil.ringArea(t) - } - function br(t) { - for (var i = yr(t[0]), n = 1; n < t.length; n++) - i -= yr(t[n]); - return i - } - function gr(t) { - for (var i = 0, n = 0, s = t; n < s.length; n++) - i += br(s[n]); - return i - } - function Mr(t) { - return t = _.jsonLngLatData(t), - _.ys(t) ? [t] : t - } - function kr(t) { - return _.GeometryUtil.distanceOfLine(t) - } - function wr(t) { - if (t.length < 2) - return t; - var i = []; - i.push(t[0]); - for (var n = 1, s = t.length; n < s; n++) { - var e = t[n - 1] - , h = t[n]; - Array.prototype.push.apply(i, function (t, i) { - var n = Math.round(Math.abs(t.KL - i.KL)); - if (!n || Math.abs(t.KL - i.KL) < .001) - return []; - for (var e, h, r, o, a = [], u = Math.PI, f = Math.asin, c = Math.sqrt, l = Math.sin, d = Math.pow, v = Math.cos, p = Math.atan2, m = t.kT * xr, y = t.KL * xr, b = i.kT * xr, g = i.KL * xr, M = 2 * f(c(d(l((m - b) / 2), 2) + v(m) * v(b) * d(l((y - g) / 2), 2))), s = 1; s < n; s += 1) - o = l((1 - (r = 1 / n * s)) * M) / l(M), - r = l(r * M) / l(M), - e = o * v(m) * v(y) + r * v(b) * v(g), - h = o * v(m) * l(y) + r * v(b) * l(g), - r = p(o = o * l(m) + r * l(b), c(d(e, 2) + d(h, 2))), - o = p(h, e), - y < g ? (o < y && (o += 2 * u), - g < o && (o -= 2 * u)) : (y < o && (o -= 2 * u), - o < g && (o += 2 * u)), - a.push([o * Ar, r * Ar]); - return a - }(_.LngLat.from(e), _.LngLat.from(h))), - i.push(h) - } - return i - } - var xr = Math.PI / 180 - , Ar = 180 / Math.PI; - function zr(t, i) { - var n = [] - , t = _.parseLngLatData(t) - , s = _.ProjectionManager.getProjection("EPSG:3857"); - if (t) - for (var e = s.project(t.KL, t.kT), h = e[0], r = e[1], o = 6 * Math.PI / 180, a = Math.cos(t.kT * Math.PI / 180), u = 0; u <= 60; u++) { - var f = u * o - , c = i * Math.cos(f) / a - , f = i * Math.sin(f) / a - , c = s.unproject(h + c, r + f); - n.push(c) - } - return n - } - function Cr(t, i, n) { - var s = [] - , t = _.parseLngLatData(t) - , e = _.ProjectionManager.getProjection("EPSG:3857"); - if (t) - for (var r = (h = e.project(t.KL, t.kT))[0], o = h[1], h = n ? 89 : 359, a = (n ? 4 : 1) * Math.PI / 180, u = i[0], f = i[1], c = Math.cos(t.kT * Math.PI / 180), l = 0, d = h; l <= d; l++) { - var v = l * a - , p = u * Math.cos(v) / c - , v = f * Math.sin(v) / c - , p = e.unproject(r + p, o + v); - s.push(p) - } - return s - } - function Sr(t) { - var i = t.getSouthWest() - , t = t.getNorthEast(); - return [new _.LngLat(i.KL, i.kT, !0), new _.LngLat(t.KL, i.kT, !0), new _.LngLat(t.KL, t.kT, !0), new _.LngLat(i.KL, t.kT, !0)] - } - Tr.prototype.init = function (t, i) { - var n, s, e = t.length; - this.tdt = new Array(e); - for (var h = 0; h < e; h += 1) - if (n = t[h], - s = new Pr(n), - this.tdt[h] = s, - !i) - if (0 === h) { - if (0 === n.length) - return; - s.isClockwise(n) || n.reverse() - } else - 0 !== n.length && s.isClockwise(n) && n.reverse() - } - , - Tr.prototype.getBounds = function () { - if (0 === this.tdt.length) - return Rt.createEmpty(); - if (!this.ndt) { - for (var t = this.tdt[0].getBounds(), i = 1; i < this.tdt.length; i += 1) { - var n = this.tdt[i].getBounds(); - Rt.rs(t, n) || Rt.extend(t, n) - } - this.ndt = t - } - return this.ndt - } - , - Tr.prototype.sdt = function () { - return this.tdt - } - , - Tr.prototype.edt = function () { - for (var t = 0; t < this.tdt.length; t += 1) - this.tdt[t].xh - } - , - Tr.prototype.getType = function () { - return Dr.rdt.POLYGON - } - , - Tr.prototype.ss = function (t) { - for (var i, n = this.tdt, s = 0, e = n.length; s < e && (i = n[s].ss(t), - i = 0 < s ? !i : i); s += 1) - ; - return i - } - , - Tr.prototype.odt = function (t) { - for (var i = this.tdt, n = [], s = 0, e = i.length; s < e; s += 1) - _.hL.isClockwise(i[s].xh) ? n.length && n[n.length - 1].push(s) : n.push([s]); - for (s = 0, - e = n.length; s < e; s += 1) { - for (var a = !1, h = 0, r = n[s].length; h < r; h += 1) { - var o = n[s][h] - , a = Pr.prototype.ss.call(i[o], t); - if (!(a = 0 < h ? !a : a)) - break - } - if (a) - return !0 - } - } - ; - var Lr = Tr; - function Tr() { } - (Xt = Xo = Xo || {}).POINT = "point", - Xt.LINESTRING = "linestring", - Xt.LINEARRING = "linearring", - Xt.POLYGON = "polygon", - Xt.MULTIPOINT = "multipoint", - Xt.MULTILINESTRING = "multilinestring", - Xt.MULTIPOLYGON = "multipolygon", - Xt.GEOMETRYCOLLECTION = "geometrycollection", - Or.prototype.hdt = function () { - var t = this.getBounds(); - return t.center || (t.center = Rt.getCenter(t)), - t.center - } - , - Or.prototype.clone = function () { - var t = new this.constructor; - return t.init(this.XK()), - t - } - , - Or.prototype.XK = function () { - return this.xh - } - , - Or.prototype.got = function (t) { - if (this.adt = this.getBounds(), - this.ndt = null, - this instanceof Lr) - for (var i = t.length, n = void (this.tdt = new Array(i)), s = void 0, e = 0; e < i; e += 1) - if (n = t[e], - s = new Pr(n), - this.tdt[e] = s, - 0 === e) { - if (0 === n.length) - return; - s.isClockwise(n) || n.reverse() - } else - 0 !== n.length && s.isClockwise(n) && n.reverse(); - else - this.xh = t - } - , - Or.rdt = Xo; - var Ir, Dr = Or; - function Or(t) { - var i = this; - this.setCoords = function (t) { - i.got(t) - } - , - this.init(t) - } - function Er() { - return null !== Ir && Ir.apply(this, arguments) || this - } - Ir = Dr, - _.Ei(Er, Ir), - Er.prototype.init = function (t) { - this.xh = t - } - , - Er.prototype.getBounds = function () { - if (!this.ndt) { - for (var t = Rt.createEmpty(), i = 0, n = this.xh.length; i < n; i += 1) - Rt.extendCoordinate(t, this.xh[i]); - this.ndt = t - } - return this.ndt - } - , - Er.prototype.XK = function () { - return this.xh - } - , - Er.prototype.getType = function () { - return Dr.rdt.LINESTRING - } - , - Er.prototype.getCount = function () { - return this.XK().length - } - , - Er.prototype.udt = function (t) { - return _.hL.lr(t, this.XK()) - } - , - Rr = Er, - _.Ei(jr, Rr), - jr.prototype.getType = function () { - return Dr.rdt.LINEARRING - } - , - jr.prototype.ss = function (t) { - return _.hL.ss(t, this.xh) - } - ; - var Rr, Pr = jr; - function jr() { - var t = null !== Rr && Rr.apply(this, arguments) || this; - return t.isClockwise = _.hL.isClockwise, - t - } - Br = ci, - _.Ei(Wr, Br), - Wr.prototype.Tx = function (t) { - t && (t = _.Bs(t) ? _.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : _.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), - this.Sx = _.lcs.getLocalByCoord(t)) - } - , - Wr.prototype.toGeometry = function () { - var t; - if (this._opts.path) - return t = this._opts.path.slice(0), - _.ys(t) ? { - type: "Polygon", - coordinates: [t] - } : _.Ox(t) ? { - type: "Polygon", - coordinates: t - } : { - type: "MultiPolygon", - coordinates: t - } - } - , - Wr.prototype.toString = function () { - var t = this._opts.path; - return _.ys(t) ? "" + t.join(";") : _.Ox(t) ? "" + _.map(t, function (t) { - return "" + t.join(";") - }).join("|") : _.tL(t) ? _.map(t, function (t) { - return _.map(t, function (t) { - return "" + t.join(";") - }).join("|") - }).join("^") : "" - } - , - Wr.prototype.reset = function () { - this.Dx && this.Dx.reset(), - this.Px && this.Px.reset(), - this.XB && this.XB.reset(), - this.qB && this.qB.reset(), - this.p0 && this.p0.reset(), - this.m0 && this.m0.reset() - } - , - Wr.prototype.destroy = function () { - this.Dx && (this.Dx.destroy(), - delete this.Dx), - this.Px && (this.Px.destroy(), - delete this.Px), - this.XB && this.XB.destroy && (this.XB.destroy(), - delete this.XB), - this.qB && this.qB.destroy && (this.qB.destroy(), - delete this.qB), - this.p0 && (this.p0.destroy(), - delete this.p0), - this.p0 && this.Px.destroy && (this.p0.destroy(), - delete this.p0), - this.q$ && delete this.X$, - this.$x && (this.$x = []), - Br.prototype.destroy.call(this) - } - , - Wr.prototype.pdt = function (t, i, n) { - var s = 0; - if (i && this._opts.extrusionHeight) { - for (var e = [], h = 0; h < i.length; h++) - e.push(i[h][0], i[h][1]); - s = this.p0.tz(e, this._opts.extrusionHeight, n) - } - return n = { - bz: "", - length: 1, - mainkey: this.hS, - maxzoom: 26, - minzoom: 2, - offset: 0, - subkey: 1 - }, - s && 0 < s && this.m0.add(n.mainkey, n.subkey, s, n.minzoom, n.maxzoom, n.bz), - this.p0.upload(t), - s - } - , - Wr.prototype.X$ = function (t) { - for (var i = [], n = 0, s = t; n < s.length; n++) { - for (var e = s[n], h = [], r = [], o = 0, a = e[0]; o < a.length; o++) { - var u = a[o] - , f = _.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]); - r.push([f[0], f[1]]) - } - r.length && (r.push(r[0].slice()), - h.push(r)); - for (var c = 1, l = e.length; c < l; c++) { - var d = e[c] - , v = []; - if (d && d.length) { - for (var p = 0, m = d; p < m.length; p++) - u = m[p], - f = _.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]), - v.push([f[0], f[1]]); - v.push(v[0].slice()), - h.push(v) - } - } - i.push(h) - } - this.q$ = i - } - , - Wr.prototype.Q$ = function (t, i) { - this.BB(), - this.JL(), - this.reset(); - var n = this.Dx - , s = this.Px - , e = this.XB - , h = this.qB; - this.Tx(t[0][0][0]); - for (var r = 0, o = t; r < o.length; r++) { - for (var a = o[r], u = this.Sx.center, f = [], c = [], l = [], d = [], v = [], p = 0, m = a[0]; p < m.length; p++) { - var y = m[p] - , b = _.ProjectionManager.getProjection("EPSG:3857").project(y[0], y[1]); - f.push(b[0] - u[0], b[1] - u[1]), - c.push(y) - } - for (var g = 1, M = a.length; g < M; g++) { - for (var k = [], w = [], x = 0, A = a[g]; x < A.length; x++) - y = A[x], - _.Bs(y) ? (k.push(y.pos[0] - u[0], y.pos[1] - u[1]), - w.push(y.toJSON())) : (b = _.ProjectionManager.getProjection("EPSG:3857").project(y[0], y[1]), - k.push(b[0] - u[0], b[1] - u[1]), - w.push(y)); - l.push(k), - d.push(w) - } - for (var z = [], g = 0, M = f.length; g < M; g += 2) - z.push(_.xd(f[g], f[g + 1])); - _.equals(z[0], z[z.length - 1]) || z.push(_.Ex(z[0])); - for (var C = f.length, g = 0; g < l.length; g++) - v.push(C / 2), - C += l[g].length, - _.Util.Ig(f, l[g]); - var S = n.Nx(f, v); - if (i && f && 0 < this._opts.extrusionHeight) { - for (var L = z, T = [], g = 0; g < l.length; g++) - for (var I = l[g], D = 0; D < I.length; D += 2) - T.push([I[D], I[D + 1]]); - T && 0 < T.length && (new Pr(T).isClockwise(T) || T.reverse()), - new Pr(z).isClockwise(z) && z.reverse(), - _.Util.Ig(L, T), - this.pdt(i, L, v) - } - e.add(S); - var O = s.Nx(z, { - lineJoin: "miter" - }).Iw; - for (h.add(O), - g = 0; g < l.length; g++) { - for (var E = [], R = 0, M = (k = l[g]).length; R < M; R += 2) - E.push(_.xd(k[R], k[R + 1])); - E.push(_.xd(k[0], k[1])), - O = s.Nx(E, { - lineJoin: "miter" - }).Iw, - h.add(O) - } - } - i && (this.Dx.upload(i), - this.Px.upload(i)) - } - , - Wr.prototype.JL = function () { - this.Dx || (this.Dx = new _.K_), - this.Px || (this.Px = new _.J_), - this.XB || (this.XB = new _.oE), - this.qB || (this.qB = new _.oE), - this.p0 || (this.p0 = new _.iz), - this.m0 || (this.m0 = new _._w) - } - ; - var Br, Si = Wr; - function Wr() { - return null !== Br && Br.apply(this, arguments) || this - } - var Fr, _r, Gr = { - map: void 0, - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - extrusionHeight: 0, - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, Nr = (Fr = Si, - _.Ei(O, Fr), - O.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - , - O.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.path, t.path); - this._opts = t, - this._checkMap(), - i && this.setPath(this._opts.path), - this.to() - } - , - O.prototype.init = function (t) { - this.reset(), - t = t || this._opts, - this._opts = this.nY(t), - this.setPath(this._opts.path), - this._map && (0 < this._opts.extrusionHeight && (this.zdt = this.Cdt.bind(this), - this.Sdt = this.Ldt.bind(this), - this.tv()), - this._map.setNeedUpdate(!0)) - } - , - O.prototype.destroy = function () { - 0 < this._opts.extrusionHeight && (this.Tdt(), - this.zdt = null, - this.Sdt = null), - this.gdt && delete this.gdt, - this._opts, - Fr.prototype.destroy.call(this) - } - , - O.prototype.getPath = function () { - if (this._opts && this._opts.path) - return _.parseLngLatData(_.yn(this._opts.path)) - } - , - O.prototype.setExtrusionHeight = function (t) { - this._opts && (this._opts.extrusionHeight = t, - this.reset(), - this.Ix(this._opts.path)), - this.to() - } - , - O.prototype.getExtrusionHeight = function () { - return this._opts && this._opts.extrusionHeight ? this._opts.extrusionHeight : 0 - } - , - O.prototype.getBounds = function () { - var t; - if (this.ir) - t = this.ir; - else { - var i = this._opts.path; - if (!i) - return; - if (!(i = ur(i))) - return; - (i = l.ms(i)) && (t = this.ir = i) - } - if (t) - return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), - t = t.getNorthEast(), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - new l(i, t)) : this.ir - } - , - O.prototype.getArea = function () { - var t; - return this._opts && this._opts.path ? (t = _.jsonLngLatData(this._opts.path), - _.ys(t) ? +_.GeometryUtil.ringArea(t).toFixed(2) : _.Ox(t) ? +br(t).toFixed(2) : +gr(t).toFixed(2)) : 0 - } - , - O.prototype.contains = function (t, i) { - var n, s, e; - return !!this.jx() && (n = this._opts.path, - s = _.parseLngLatData(t), - !!(e = null == (e = this._map) ? void 0 : e.lngLatToContainer(s))) && (0 < this._opts.extrusionHeight && (this._opts.bubble && i && i.Adt && "click" === i.Adt && (this.gdt = !1), - !this.gdt) && (0 < (i = this.queryPolyhedronFeature([e.x, e.y])) && i === this.hS) || !(this.ir && !this.ir.contains(t)) && (_.ys(n) ? fr : _.Ox(n) ? cr : lr)([s.lng, s.lat], n)) - } - , - O.prototype.setPath = function (t) { - t && (this.reset(), - this.Ix(t), - this.to()) - } - , - O.prototype.iE = function (t) { - if (this.jx() && (!this.ir || this.ir.contains(t))) { - var i = this._opts.path - , t = _.parseLngLatData(t); - if (_.ys(i)) - return 0; - if (_.Ox(i)) - return 0; - for (var n = [t.lng, t.lat], s = i, e = 0, h = s.length; e < h; e++) - if (cr(n, s[e])) - return e - } - return -1 - } - , - O.prototype.ZB = function (t) { - var i, n = this; - this._map && (this._needUpdate = !1, - this._opts.path) && (i = ur(this._opts.path)) && (this._opts.async ? this._map.gn.QB({ - data: i, - type: "polygon" - }, function (t, i) { - t ? console.log(t) : (n.Dx = i.Dc, - n.Px = i.$c, - n.Sx = i.Sx, - n.XB = i.Oc, - n.qB = i.Uc) - }) : this.Q$(i, t)) - } - , - O.prototype.queryPolyhedronFeature = function (t) { - if (this._map && this.bdt()) { - for (var i, s = (n = this._map).getView().getStatus(), s = { - layers: n.getLayers(), - uo: n.Mv, - size: s.size, - do: n.do, - viewState: s, - map: n - }, e = 0, h = n.getLayers(); e < h.length; e++) { - var r = h[e]; - "AMap.VectorLayer" === r.CLASS_NAME && (i = r) - } - var o = i.getRender(); - if (o) { - var a = o.pu || 0 - , n = n.getGL() - , u = t[0] * a - , t = n.drawingBufferHeight - t[1] * a - , a = new Uint8Array(4); - if (o.vdt && (s = o.pickRender(s, this), - n.bindFramebuffer(n.FRAMEBUFFER, s), - n.readPixels(u, t, 1, 1, n.RGBA, n.UNSIGNED_BYTE, a), - n.bindFramebuffer(n.FRAMEBUFFER, null)), - u = (s = o.ydt) && s.GV([a[0], a[1], a[2]])) - return u - } - } - } - , - O.prototype.Cdt = function () { - this.gdt = !0 - } - , - O.prototype.Ldt = function () { - this.gdt = !1 - } - , - O.prototype.tv = function () { - this._map && (this._map.on("mousedown", this.zdt), - this._map.on("mouseup", this.Sdt)) - } - , - O.prototype.Tdt = function () { - this._map && (this._map.off("mousedown", this.zdt), - this._map.off("mouseup", this.Sdt)) - } - , - O.prototype._dragging = function (t) { - var i, n, s; - this.getDraggable() && (n = this._dragObjects.hy, - i = t.pos[0] - n[0], - n = t.pos[1] - n[1], - this._dragObjects.sy, - s = this.getDeltaCoord(), - this.b_([i + s[0], n + s[1]]), - this.Ay(t), - this.F$ && "d" === this._map.baseRender ? this.moveWithPixel(this.B$[0], -1 * this.B$[1]) : this.moveWithPos(this.zx[0], this.zx[1]), - this.BB(), - this.B$ = [0, 0], - this.F$ && (this.F$.style.transform = "", - this.F$.style.webkitTransform = ""), - this.to()) - } - , - O.prototype.jx = function () { - return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) - } - , - O.prototype.moveWithPixel = function (t, i) { - var n, s, e; - this._map && (n = this._map, - s = _.ProjectionManager.getProjection(n.getView().au()), - e = this._opts.path, - e = (_.ys(e) ? pr : _.Ox(e) ? mr : function (t, i, n, s) { - for (var e = [], h = 0, r = t; h < r.length; h++) { - var o = mr(r[h], i, n, s); - e.push(o) - } - return e - } - )(e, [t, i], n.getZoom(), s), - this.setPath(e)) - } - , - O.prototype.moveWithPos = function (t, i) { - var n, s; - this._map && (n = this._map, - n = _.ProjectionManager.getProjection(n.getView().au()), - s = this._opts.path.slice(0), - s = (_.ys(s) ? dr : _.Ox(s) ? vr : function (t, i, n) { - for (var s = [], e = 0, h = t; e < h.length; e++) { - var r = vr(h[e], i, n); - s.push(r) - } - return s - } - )(s, [t, i], n), - this.setPath(s)) - } - , - O.prototype.bdt = function () { - var t; - return !(this._opts.fillOpacity <= 0 || null != (t = this._map) && t.TL() || (t = this._map.getZoom()) < this._opts.zooms[0] || t > this._opts.zooms[1]) - } - , - O); - function O(t) { - void 0 === t && (t = {}); - var i, n = Fr.call(this) || this, s = (n.Ix = function (t) { - var i; - n._opts.path = _.jsonLngLatData(t), - (t = ur(t)) && (n.ir = l.ms(t), - i = n._map) && ("d" === i.baseRender ? n.X$(t) : n.cE()) - } - , - t.path); - return _.iL(s) ? (i = s[0], - n.Tx(i)) : _.eL(s) ? (i = s[0][0], - n.Tx(i)) : _.yL(s) && (i = s[0][0][0], - n.Tx(i)), - n.className = "Overlay.Polygon", - n._opts = { - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - extrusionHeight: 0, - wallColor: "#00D3FC", - roofColor: "#00B2D5", - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, - n._opts = n.nY(t), - n._checkMap(), - n - } - function Ur() { - var n = null !== _r && _r.apply(this, arguments) || this; - return n.contains = function (t) { - var i; - return !(!n.aE || n.ir && !n.ir.contains(t)) && (i = n.aE, - t = _.parseLngLatData(t), - (_.ys(i) ? fr : _.Ox(i) ? cr : lr)([t.lng, t.lat], i)) - } - , - n - } - _r = Si, - _.Ei(Ur, _r), - Ur.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - , - Ur.prototype.getArea = function () { - var t = this.aE; - return t ? +gr(t).toFixed(2) : 0 - } - , - Yr = jt = Ur, - _.Ei(Zr, Yr), - Zr.prototype.init = function (t) { - t = t || this._opts, - this._opts = this.nY(t), - this.setBounds(t.bounds) - } - , - Zr.prototype.setBounds = function (t) { - t && (_.xs(t) || (t = new l(t)), - this._opts.bounds = t, - this.ir = t.clone(), - this.cE(), - this.to()) - } - , - Zr.prototype.ZB = function (t) { - var i, n, s; - this._map && (this._needUpdate = !1, - i = this._opts.bounds) && (n = this._map, - (s = ur(Sr(i))) && (this.ir = i.clone(), - this.aE = s, - "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), - this.to()) - } - , - Zr.prototype.moveWithPixel = function (t, i) { - var n, s, e; - this._map && (n = this._map, - s = (e = this._opts.bounds).southWest.toJSON(), - e = e.northEast.toJSON(), - s = this._map.getView().ru().moveWithPixel(s, [t, i], n.getZoom()), - e = this._map.getView().ru().moveWithPixel(e, [t, i], n.getZoom()), - t = new l(s, e), - this.setBounds(t)) - } - , - Zr.prototype.moveWithPos = function (t, i) { - var n, s; - this._map && (n = (s = this._opts.bounds).southWest.toJSON(), - s = s.northEast.toJSON(), - n = this._map.getView().ru().moveWithPos(n, [t, i]), - s = this._map.getView().ru().moveWithPos(s, [t, i]), - t = new l(n, s), - this.setBounds(t)) - } - , - Zr.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.bounds, t.bounds); - this._opts = t, - this._checkMap(), - i && this.setBounds(t.bounds), - this.to() - } - , - Zr.prototype.getPath = function () { - var t, i, n; - if (!this.ir) { - var s = this._opts.bounds; - if (!s) - return; - this.ir = s.clone() - } - if (s = this.ir) - return this.P$ && (i = s.getSouthWest(), - n = s.getNorthEast(), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), - s = new l(i, n)), - s ? Sr(s) : t - } - , - Zr.prototype.getBounds = function () { - var t; - if (!this.ir) { - var i = this._opts.bounds; - if (!i) - return; - this.ir = i.clone() - } - if (i = this.ir) - return this.P$ ? (t = i.getSouthWest(), - i = i.getNorthEast(), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - new l(t, i)) : this.ir - } - , - Zr.prototype.getCenter = function () { - if (this._opts.bounds) - return this._opts.bounds.getCenter() - } - ; - var Yr, Xr = Zr; - function Zr(t) { - void 0 === t && (t = {}); - var n = Yr.call(this) || this; - return n.className = "Overlay.Rectangle", - n.contains = function (t) { - var i = n.getBounds(); - return !!i && i.contains(t) - } - , - n._opts = { - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, - n._opts = n.nY(t), - n._checkMap(), - n - } - Jr = jt, - _.Ei(Vr, Jr), - Vr.prototype.init = function (t) { - t = t || this._opts, - this._opts = this.nY(t), - this.setCenterAndRadius(this._opts.center, this._opts.radius) - } - , - Vr.prototype.setCenter = function (t) { - this.setCenterAndRadius(t, this._opts.radius) - } - , - Vr.prototype.setRadius = function (t) { - this.setCenterAndRadius(this._opts.center, t) - } - , - Vr.prototype.getCenter = function () { - var t = _.parseLngLatData(this._opts.center) - , t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx); - return new _.LngLat(t[0], t[1]) - } - , - Vr.prototype.getRadius = function () { - return this._opts.radius - } - , - Vr.prototype.getPath = function () { - var t; - return this._opts.center && this._opts.radius && (t = Cr(this._opts.center, this._opts.radius, _.Support.$e)) && 0 < t.length ? _.parseLngLatData(_.yn(t)) : [] - } - , - Vr.prototype.setCenterAndRadius = function (t, i) { - this._opts.center = t, - this._opts.radius = i, - this.cE(), - this.to() - } - , - Vr.prototype.ZB = function (t) { - var i, n, s; - this._map && (this._needUpdate = !1, - s = this._opts.center, - i = this._opts.radius, - s) && i && (s = _.jsonLngLatData(s), - n = this._map, - (s = ur(Cr(s, i, _.Support.$e))) && (this.ir = l.ms(s), - this.aE = s, - "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), - this.BB(), - this._map.setNeedUpdate(!0)) - } - , - Vr.prototype.moveWithPixel = function (t, i) { - var n, s; - this._map && (n = this._map, - s = _.parseLngLatData(this._opts.center), - s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), - this.setCenter(s)) - } - , - Vr.prototype.moveWithPos = function (t, i) { - var n; - this._map && (n = _.parseLngLatData(this._opts.center), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), - this.setCenter(n)) - } - , - Vr.prototype.getBounds = function () { - if (!this.ir) { - var t = this._opts.center - , i = this._opts.radius; - if (!t || !i) - return; - var i = Math.max(i[0], i[1]) - , n = (t = _.parseLngLatData(t)).offset(-i, -i) - , t = t.offset(i, i); - this.ir = new l(n, t) - } - if (i = this.ir, - this.ir) - return this.P$ ? (n = i.getSouthWest(), - t = i.getNorthEast(), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - new l(n, t)) : this.ir - } - , - Vr.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.center, t.center) || !_.isEqual(this._opts.radius, t.radius); - this._opts = t, - this._checkMap(), - i && this.setCenterAndRadius(this._opts.center, this._opts.radius), - this.to() - } - ; - var Jr, Hr = Vr; - function Vr(t) { - void 0 === t && (t = {}); - var i = Jr.call(this) || this; - return i.className = "Overlay.Ellipse", - i.Cx = _.assign({ - center: void 0, - radius: void 0 - }, Gr), - i._opts = { - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, - i._opts = i.nY(t), - i._checkMap(), - i - } - qr = jt, - _.Ei($r, qr), - $r.prototype.init = function (t) { - t = t || this._opts, - this._opts = this.nY(t), - this.setCenterAndRadius(this._opts.center, this._opts.radius) - } - , - $r.prototype.setCenter = function (t) { - this.setCenterAndRadius(t, this._opts.radius) - } - , - $r.prototype.setRadius = function (t) { - this.setCenterAndRadius(this._opts.center, t) - } - , - $r.prototype.getCenter = function () { - var t, i = _.parseLngLatData(this._opts.center); - return this.P$ ? (t = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - new _.LngLat(t[0], t[1])) : i - } - , - $r.prototype.getPath = function () { - var t; - return this._opts.center && this._opts.radius && (t = zr(this._opts.center, this._opts.radius)) && 0 < t.length ? _.parseLngLatData(_.yn(t)) : [] - } - , - $r.prototype.getRadius = function () { - return parseFloat(this._opts.radius) - } - , - $r.prototype.setCenterAndRadius = function (t, i) { - this._opts.center = t, - _.vB(i) && 0 <= i && (this._opts.radius = i), - this.cE(), - this.to() - } - , - $r.prototype.ZB = function (t) { - var i, n, s; - this._map && (this._needUpdate = !1, - s = this._opts.center, - i = this._opts.radius, - s) && _.vB(i) && (n = this._map, - (s = ur(zr(s, i))) && (this.ir = l.ms(s), - this.aE = s, - "d" === n.baseRender ? this.X$(s) : this.Q$(s, t)), - this.BB(), - this._map.setNeedUpdate(!0)) - } - , - $r.prototype.moveWithPixel = function (t, i) { - var n, s; - this._map && (n = this._map, - s = _.parseLngLatData(this._opts.center), - s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), - this.setCenter(s)) - } - , - $r.prototype.moveWithPos = function (t, i) { - var n; - this._map && (n = _.parseLngLatData(this._opts.center), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), - this.setCenter(n)) - } - , - $r.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.center, t.center) || !_.isEqual(this._opts.radius, t.radius); - this._opts = t, - this._checkMap(), - i && this.setCenterAndRadius(this._opts.center, this._opts.radius), - this.to() - } - , - $r.prototype.O$ = function (t, i, n) { } - , - $r.prototype.getBounds = function () { - if (!this.ir) { - var t = this._opts.center - , i = this._opts.radius; - if (!t) - return; - if (!_.vB(i)) - return; - var n = (t = _.parseLngLatData(t)).offset(-i, -i) - , t = t.offset(i, i); - this.ir = new l(n, t) - } - if (i = this.ir, - this.ir) - return this.P$ ? (n = i.getSouthWest(), - t = i.getNorthEast(), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], this.zx), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - new l(n, t)) : this.ir - } - , - $r.prototype.ab = function (t) { - return delete (t = _.extend({}, t)).center, - delete t.radius, - delete t.map, - delete t.path, - t - } - ; - var qr, Qr, Kr = $r; - function $r(t) { - void 0 === t && (t = {}); - var i = qr.call(this) || this; - return i.className = "Overlay.Circle", - i._opts = { - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, - i._opts = i.nY(t), - i - } - function to(t) { - var i = Qr.call(this) || this; - return i.className = "Overlay.Circle", - i.Tx(t), - i - } - Qr = ci, - _.Ei(to, Qr), - to.prototype.Tx = function (t) { - t && (t = _.Bs(t) ? _.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : _.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), - this.Sx = _.lcs.getLocalByCoord(t)) - } - , - to.prototype.setCenter = function (t) { - t && (this._opts.center = _.parseLngLatData(t), - this.ir = new l(this._opts.center, this._opts.center), - this.cE(), - this.to()) - } - , - to.prototype.destroy = function () { - this.KB && delete this.KB, - this.Sb && (this.Sb.destroy(), - delete this.Sb), - Qr.prototype.destroy.call(this) - } - , - to.prototype.reset = function () { - this.KB && delete this.KB, - this.Sb && this.Sb.reset() - } - , - to.prototype.toGeometry = function () { - var t; - if (this._opts.center) - return { - type: "Point", - coordinates: (t = _.parseLngLatData(this._opts.center)) && t.toJSON() - } - } - , - to.prototype.XL = function (t) { - var i = _.parseLngLatData(t) - , t = (this.reset(), - this.Tx(t), - this.Sx.center) - , i = this._map.getView().ru().project(i.KL, i.kT); - this.KB = [i[0] - t[0], i[1] - t[1]], - _.Support.safari && (this.Sb || (this.Sb = new _.e0), - this.Sb.wb([i[0] - t[0], i[1] - t[1]])) - } - , - io = to, - _.Ei(so, io), - so.prototype.init = function (t) { - t = t || this._opts, - this._opts = this.nY(t), - this.setCenter(this._opts.center) - } - , - so.prototype.setRadius = function (t) { - this._opts.radius = t, - this.to() - } - , - so.prototype.ZB = function () { - var t; - this._map && (this._needUpdate = !1, - t = this._opts.center) && this._map && "d" !== this._map.baseRender && (this.XL(t), - this.BB()) - } - , - so.prototype.getCenter = function () { - var t, i = _.parseLngLatData(this._opts.center); - return this._map ? (t = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - new _.LngLat(t[0], t[1])) : i - } - , - so.prototype.getRadius = function () { - return this._opts.radius - } - , - so.prototype.moveWithPixel = function (t, i) { - var n, s; - this._map && (n = this._map, - s = _.parseLngLatData(this._opts.center), - s = this._map.getView().ru().moveWithPixel([s.KL, s.kT], [t, i], n.getZoom()), - this.setCenter(s)) - } - , - so.prototype.moveWithPos = function (t, i) { - var n; - this._map && (n = _.parseLngLatData(this._opts.center), - n = this._map.getView().ru().moveWithPos([n.KL, n.kT], [t, i]), - this.setCenter(n)) - } - , - so.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.center, t.center); - this._opts = t, - this._checkMap(), - i && this.setCenter(t.center), - this.to() - } - , - so.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - , - so.prototype.getBounds = function () { - var t; - if (!this.ir) { - var i = this._opts.center; - if (!i) - return; - this.ir = new l(i, i) - } - if (i = this.ir) - return this.P$ ? (t = i.getSouthWest(), - i = i.getNorthEast(), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - new l(t, i)) : this.ir - } - , - so.prototype.Ib = function () { - var t = (t = this._opts).radius + (t.strokeWeight || 0); - return Math.min(t, 64) - } - ; - var io, eo, no = so; - function so(t) { - var e = io.call(this, (t = void 0 === t ? {} : t).center || void 0) || this; - return e.contains = function (t) { - return !!e._map && (t = e._map.lngLatToContainer(t), - e.containsWithPixel(t)) - } - , - e.containsWithPixel = function (t) { - var i, n, s; - return !!e._map && !(!e._opts.center || (i = e.Ib(), - n = _.parseLngLatData(e._opts.center), - n = e._map.getView().ru().moveWithPos([n.KL, n.kT], e.zx), - n = e._map.lngLatToContainer(n), - Math.abs(n.x - t.x) > i) || Math.abs(n.y - t.y) > i) && (t = t.toJSON(), - n = n.toJSON(), - s = Math.abs(t[0] - n[0]), - t = Math.abs(t[1] - n[1]), - s = Math.sqrt(s * s + t * t), - t = e._map.getView().Pu || 0, - s / Math.cos(t) < i) - } - , - e.className = "Overlay.CircleMarker", - e._opts = { - radius: 20, - fillColor: "#00D3FC", - fillOpacity: .5, - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .9, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - zIndex: 50, - extData: {}, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - async: !1 - }, - e._opts = e.nY(t), - e._checkMap(), - e - } - function ho() { - var u = null !== eo && eo.apply(this, arguments) || this; - return u.sC = 0, - u.W_ = function () { - if (Rh.isWebGL && u._map && u.q$ && !u._opts.geodesic && !u._needUpdate) { - var t = u._map - , i = Math.min(_.Util.getOptimalZoom(t.getZoom()), 20); - if (u.EI !== i) - if (i < 18) { - u.EI = i; - for (var n = _.ProjectionManager.getProjection("EPSG:3857").getResolution(Math.min(_.Util.getOptimalZoom(t.getZoom()), 18)), s = [], e = 0, h = u.q$; e < h.length; e++) { - for (var r = h[e], o = [], a = 0; a < r.length; a += 1) - r[a][2] > n * n * 1 && o.push([r[a][0], r[a][1]]); - s.push(o) - } - u.D_(s) - } else - u.EI = i, - u.D_(u.q$) - } - } - , - u - } - eo = ci, - _.Ei(ho, eo), - ho.prototype.Tx = function (t) { - t && (t = _.Bs(t) ? _.ProjectionManager.getProjection("EPSG:3857").project(t.KL, t.kT) : _.ProjectionManager.getProjection("EPSG:3857").project(t[0], t[1]), - this.Sx = _.lcs.getLocalByCoord(t)) - } - , - ho.prototype.destroy = function () { - this.Px && (this.Px.destroy(), - delete this.Px), - eo.prototype.destroy.call(this) - } - , - ho.prototype.toGeometry = function () { - var t = this._opts.path; - if (t) - return _.ys(t) ? { - type: "LineString", - coordinates: t - } : _.Ox(t) ? { - type: "MultiLineString", - coordinates: t - } : void 0 - } - , - ho.prototype.U_ = function (t) { - this.F_ && !this.E_ && (this.E_ = t.createTexture(this.F_, { - Zi: !0 - }), - this.E_.bind(t.gl.CLAMP_TO_EDGE, t.gl.LINEAR, t.gl.LINEAR)) - } - , - ho.prototype.aC = function (t, i) { - this.rC || (i = function (t) { - for (var i = document.createElement("canvas"), n = (i.height = 1, - i.width = 4096, - i.getContext("2d")), s = n.createImageData(4096, 1), e = 0, h = 0; h < 4096; h++) { - for (var r = void 0; e < t.length; e++) { - if (e === t.length - 1) { - r = t[e][1]; - break - } - if (!(4096 * t[e + 1][0] < h)) { - r = t[e][1]; - break - } - } - var r = t[e][1] - , a = _.Util.color2RgbaArray(r); - s.data[4 * h] = 255 * a[0], - s.data[4 * h + 1] = 255 * a[1], - s.data[4 * h + 2] = 255 * a[2], - s.data[4 * h + 3] = 255 * a[3] - } - return n.putImageData(s, 0, 0), - i - }(i.values), - this.rC = t.createTexture(i, { - Zi: !0 - }), - i = t.gl, - this.rC.bind(i.CLAMP_TO_EDGE, i.NEAREST, i.NEAREST_MIPMAP_NEAREST)) - } - , - ho.prototype.X$ = function (t) { - for (var i = [], n = [], s = 0, e = t; s < e.length; s++) { - for (var h = [], r = [], o = 0, a = e[s]; o < a.length; o++) { - var u = a[o] - , f = _.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]); - h.push([f[0], f[1]]), - r.push(u) - } - i.push(h), - n.push(r) - } - this.$x = n, - this.q$ = i - } - , - ho.prototype.Q$ = function (t) { - for (var i = [], n = [], s = 0, e = t; s < e.length; s++) { - for (var h = [], r = [], o = 0, a = e[s]; o < a.length; o++) { - var u = a[o] - , f = _.ProjectionManager.getProjection("EPSG:3857").project(u[0], u[1]); - h.push([f[0], f[1], 0]), - r.push(u) - } - this.P_(h), - i.push(h), - n.push(r) - } - this.$x = n, - this.q$ = i, - this.cE() - } - , - ho.prototype.D_ = function (t, i) { - if (0 !== t.length) { - this.Px ? this.Px.reset() : this.Px = new _.J_; - for (var n = this.Sx.center, s = 0, e = _.ProjectionManager.getProjection("EPSG:3857"), h = this.EI, r = e.getResolution(h), o = 0, a = t; o < a.length; o++) { - for (var u = a[o], f = [], c = 0, l = u.length; c < l; c += 1) - f.push(u[c][0] - n[0], u[c][1] - n[1]); - var d = this._opts; - 10 <= this.EI && (this._opts.showDir || "dashed" === this._opts.strokeStyle) ? s += this.Px.eD(f, { - X_: 1, - lineJoin: d.lineJoin, - lineCap: d.lineCap - }, Math.floor(2048 * r)).distance : s += this.Px.hb(f, { - X_: 1, - lineJoin: d.lineJoin, - lineCap: d.lineCap - }).distance - } - this.sC = s, - i && this.Px.upload(i) - } - } - , - ho.prototype.P_ = function (t) { - t[0][2] = 1 / 0, - t[t.length - 1][2] = 1 / 0; - var i = _.ProjectionManager.getProjection("EPSG:3857").getResolution(16); - !function t(i, n, s, e) { - for (var h = e, r = s - n >> 1, o = s - n, a = s, u = i[n][0], f = i[n][1], c = i[s][0], l = i[s][1], d = n + 1; d < s; d += 1) { - var v = function (t, i, n, s, e, h) { - var r, o = e - n, a = h - s; - return 0 == o && 0 == a || (1 < (r = ((t - n) * o + (i - s) * a) / (o * o + a * a)) ? (n = e, - s = h) : 0 < r && (n += o * r, - s += a * r)), - (o = t - n) * o + (a = i - s) * a - }(i[d][0], i[d][1], u, f, c, l); - h < v ? (a = d, - h = v) : v === h && (v = Math.abs(d - r)) < o && (a = d, - o = v) - } - e < h && (1 < a - n && t(i, n, a, e), - i[a][2] = h, - 1 < s - a) && t(i, a, s, e) - }(t, 0, t.length - 1, i * i) - } - , - ro = ai = ho, - _.Ei(E, ro), - E.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - , - E.prototype.getPath = function () { - if (this._opts && this._opts.path) - return _.parseLngLatData(_.yn(this._opts.path)) - } - , - E.prototype.destroy = function () { - this.E_ && (this.E_.destroy(), - delete this.E_), - ro.prototype.destroy.call(this) - } - , - E.prototype.getBounds = function () { - var t; - if (this.ir) - t = this.ir; - else { - var i = this._opts.path; - if (!i) - return; - if (!(i = Mr(i))) - return; - (i = l.bS(i)) && (t = this.ir = i) - } - if (t) - return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), - t = t.getNorthEast(), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - new l(i, t)) : this.ir - } - , - E.prototype.setPath = function (t) { - t && (this.Ix(t), - this.to()) - } - , - E.prototype.moveWithPixel = function (t, i) { - if (this._map) { - for (var n = this._map, s = _.ProjectionManager.getProjection(n.getView().au()), e = [], h = 0, r = this.$x; h < r.length; h++) { - for (var o = [], a = 0, u = r[h]; a < u.length; a++) { - var f = u[a]; - o.push(s.moveWithPixel(f, [t, i], n.getZoom())) - } - e.push(o) - } - this.setPath(e) - } - } - , - E.prototype.moveWithPos = function (t, i) { - if (this._map) { - for (var n = this._map, s = _.ProjectionManager.getProjection(n.getView().au()), e = [], h = 0, r = this.$x; h < r.length; h++) { - for (var o = [], a = 0, u = r[h]; a < u.length; a++) { - var f = u[a]; - o.push(s.moveWithPos(f, [t, i])) - } - e.push(o) - } - this.setPath(_.parseLngLatData(e)) - } - } - , - E.prototype.getLength = function () { - var t = this._opts && this._opts.path; - return _.ys(t) ? +kr(t).toFixed(2) : _.Ox(t) ? +function (t) { - for (var i = 0, n = 0, s = t; n < s.length; n++) - i += kr(s[n]); - return i - }(t).toFixed(2) : 0 - } - , - E.prototype.rL = function () { - return this.sC - } - , - E.prototype.ZB = function (t) { - this._map && (this._needUpdate = !1, - this.D_(this.q$, t)) - } - , - E.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = function (t, i, n) { - for (var s = 0, e = n.length; s < e; s += 1) { - var h = n[s]; - if (t[h] !== i[h]) - return !0 - } - return !1 - }(this._opts, t, ["path", "lineCap", "lineJoin", "geodesic"]); - t.lineGradient !== this._opts.lineGradient && this.rC && (this.rC.destroy(), - delete this.rC), - this._opts = t, - this._checkMap(), - i && this.setPath(this._opts.path), - this.to() - } - , - E.prototype.init = function (t) { - var i, n = this, t = t || this._opts, t = this.nY(t); - this._opts = t, - this._opts.dirImg && (this._opts.dirImg instanceof HTMLCanvasElement ? this.F_ = this._opts.dirImg : (i = this._opts.dirImg, - this._map.z_.loadImage(this._opts.dirImg, { - type: "dirImg", - cb: function (t) { - t ? n.F_ = t.img : console.error("load dirImg error", i) - } - }))), - this.setPath(this._opts.path), - this._map && (this.W_(), - this._map.setNeedUpdate(!0)) - } - , - E.prototype.contains = function (t) { - if (this.jx() && (!this.ir || this.ir.southWest.lat === this.ir.northEast.lat || this.ir.southWest.lng === this.ir.northEast.lng || this.ir.contains(t))) - for (var i = this._map.getView(), n = i.getStatus().pitch * Math.PI / 180, t = _.parseLngLatData(t), s = i.ru().project(t.lng, t.lat), e = i.ru().getResolution(this._map.getZoom()), h = 0, r = this.q$; h < r.length; h++) { - var o = r[h]; - if (_.hL.lr(s, o) * Math.cos(n) < this._opts.strokeWeight * e) - return !0 - } - return !1 - } - , - E.prototype.jx = function () { - return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) - } - , - E.prototype.Ix = function (t) { - var i = _.jsonLngLatData(t); - this._opts.path = i, - i = Mr(t), - _.Ox(i) ? (this._opts.geodesic && (i = _.map(i, wr)), - this.Tx(i[0][0]), - this.ir = l.bS(i), - this._map && ("d" === this._map.baseRender ? this.X$(i) : (this.Q$(i), - this.BB()))) : console.error("error Polyline path") - } - , - E.prototype.rD = function (t) { - var i = _.jsonLngLatData(t); - this._opts.path = i, - i = Mr(t), - _.Ox(i) ? (this._opts.geodesic && (i = _.map(i, wr)), - this.Tx(i[0][0]), - this.ir = l.bS(i)) : console.error("error Polyline path") - } - ; - var ro, oo = E; - function E(t) { - void 0 === t && (t = {}); - var i = ro.call(this) || this; - return i.className = "Overlay.Polyline", - i._opts = { - cursor: "", - strokeColor: "#00B2D5", - strokeWeight: 2, - strokeOpacity: .5, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - isOutline: !1, - geodesic: !1, - showDir: !1, - outlineColor: "#00B2D5", - borderWeight: 1, - lineJoin: "miter", - lineCap: "butt", - extData: {}, - zIndex: 50, - dirColor: "white", - dirImg: "", - lineGradient: void 0, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange, - animate: !1, - speed: 100, - dirImgGap: 1 - }, - i.EI = -1, - i._opts = i.nY(t), - i._opts.path && i.rD(i._opts.path), - i._checkMap(), - i - } - ao = ai, - _.Ei(uo, ao), - uo.prototype.getOptions = function () { - return _.extend({}, this._opts) - } - ; - var ao, hi = uo; - function uo() { - return null !== ao && ao.apply(this, arguments) || this - } - co = _.LngLat, - _.Ei(vo, co), - vo.prototype.lL = function () { - for (var t = [], i = 0, n = this.controlPoints; i < n.length; i++) { - var s = n[i]; - t.push(s.toJSON()) - } - return t.push(this.toJSON()), - t - } - , - vo.prototype.moveWithPos = function (t, i, n) { - for (var s = t.moveWithPos(this.toJSON(), [i, n]), e = [], h = 0, r = this.controlPoints.length; h < r; h++) { - var o = this.controlPoints[h]; - e.push(t.moveWithPos(o.toJSON(), [i, n])) - } - return e.push(s), - new vo(e) - } - , - vo.prototype.moveWithPixel = function (t, i, n, s) { - for (var e = t.moveWithPixel(this.toJSON(), [i, n], s), h = [], r = 0, o = this.controlPoints.length; r < o; r++) { - var a = this.controlPoints[r]; - h.push(t.moveWithPixel(a.toJSON(), [i, n], s)) - } - return h.push(e), - new vo(h) - } - ; - var co, lo = vo; - function vo(t) { - var i = this; - if (_.ys(t)) - for (var n = t.length, i = co.call(this, t[n - 1][0], t[n - 1][1]) || this, s = [], e = 0, h = n - 1; e < h; e += 1) { - var r = t[e][0] - , o = t[e][1]; - s.push(new _.LngLat(r, o)) - } - else - for (n = t.length, - i = co.call(this, t[n - 2], t[n - 1]) || this, - s = [], - e = 0, - h = n - 2; e < h; e += 2) - r = t[e], - o = t[e + 1], - s.push(new _.LngLat(r, o)); - return i.controlPoints = s, - i - } - po = hi, - _.Ei(yo, po), - yo.prototype.init = function (t) { - var i, n = this, t = t || this._opts; - this._opts = this.nY(t), - this._opts.dirImg && (this._opts.dirImg instanceof HTMLCanvasElement ? this.F_ = this._opts.dirImg : (i = this._opts.dirImg, - this._map.z_.loadImage(this._opts.dirImg, { - type: "dirImg", - cb: function (t) { - t ? n.F_ = t.img : console.error("load dirImg error", i) - } - }))), - this.setPath(this._opts.path), - this._map && (this.W_(), - this._map.setNeedUpdate(!0)) - } - , - yo.prototype.setOptions = function (t) { - var t = this.nY(t) - , i = !_.isEqual(this._opts.path, t.path); - this._opts = t, - this._checkMap(), - i && this.Ix(this._opts.path), - this.BB(), - this.to() - } - , - yo.prototype.ZB = function (t) { - this._map && (this._needUpdate = !1, - this.D_(this.q$, t)) - } - , - yo.prototype.getPath = function () { - if (this._opts) - return this._opts.path - } - , - yo.prototype.setPath = function (t) { - t && (this._opts.path = t, - this.Ix(t)) - } - , - yo.prototype.getBounds = function () { - var t; - if (this.ir) - t = this.ir; - else { - var i = this.$x; - if (!i) - return; - if (!(i = Mr(i))) - return; - (i = l.bS(i)) && (t = this.ir = i) - } - if (t) - return this._map && this.zx && (0 !== this.zx[0] || 0 !== this.zx[1]) ? (i = t.getSouthWest(), - t = t.getNorthEast(), - i = this._map.getView().ru().moveWithPos([i.KL, i.kT], this.zx), - t = this._map.getView().ru().moveWithPos([t.KL, t.kT], this.zx), - new l(i, t)) : this.ir - } - , - yo.prototype.moveWithPos = function (t, i) { - if (this._map) { - var n = this._map - , s = _.ProjectionManager.getProjection(n.getView().au()); - if (n = this.getPath()) { - for (var e = [], h = 0, r = n; h < r.length; h++) { - var o = r[h] - , o = (o = new lo(o)).moveWithPos(s, t, i); - e.push(o.lL()) - } - this.setPath(e) - } - } - } - , - yo.prototype.moveWithPixel = function (t, i) { - if (this._map) { - var n = this._map - , s = _.ProjectionManager.getProjection(n.getView().au()) - , e = this.getPath(); - if (e) { - for (var h = [], r = n.getZoom(), o = 0, a = e; o < a.length; o++) { - var u = a[o] - , u = (u = new lo(u)).moveWithPixel(s, t, i, r); - h.push(u.lL()) - } - this.setPath(h) - } - } - } - , - yo.prototype.contains = function (t) { - if (this.jx() && (!this.ir || this.ir.contains(t))) - for (var i = this._map.getView(), n = i.getStatus().pitch * Math.PI / 180, t = _.parseLngLatData(t), s = i.ru().project(t.lng, t.lat), e = i.ru().getResolution(this._map.getZoom()), h = 0, r = this.q$; h < r.length; h++) { - var o = r[h]; - if (_.hL.lr(s, o) * Math.cos(n) < this._opts.strokeWeight * e) - return !0 - } - return !1 - } - , - yo.prototype.Ix = function (t) { - var i = []; - if (t) - for (var n = 0, s = t; n < s.length; n++) { - var e = s[n]; - i.push(new lo(e)) - } - t = Mr(this.yb(i)), - this.Tx(t[0][0]), - this.ir = l.bS(t), - this._map && ("d" === this._map.baseRender ? this.X$(t) : (this.Q$(t), - this.BB())) - } - , - yo.prototype.jx = function () { - return Boolean(this._opts && this._opts.path && 0 < this._opts.path.length) - } - , - yo.prototype.yb = function (t) { - var i; - return this._map ? (i = _.ProjectionManager.getProjection("EPSG:3857").getResolution(this._map.getZoom()), - _.bb.xb(t, i)) : [] - } - ; - var po, mo = yo; - function yo(t) { - void 0 === t && (t = {}); - var i = po.call(this) || this; - return i.className = "Overlay.BezierCurve", - i.bo = 3, - i.W_ = function () { } - , - i._opts = { - cursor: "", - strokeColor: "#00D3FC", - strokeWeight: 2, - strokeOpacity: .5, - strokeStyle: "solid", - draggable: !1, - bubble: !1, - strokeDasharray: [10, 5], - isOutline: !1, - geodesic: !1, - showDir: !1, - outlineColor: "#00B2D5", - borderWeight: 1, - lineJoin: "miter", - lineCap: "butt", - extData: {}, - zIndex: 50, - dirColor: "white", - dirImg: "", - lineGradient: void 0, - noSelect: !1, - innerOverlay: !1, - zooms: _.zoomRange - }, - i.EI = -1, - i._opts = i.nY(t), - i._checkMap(), - i - } - var bo, xo = { - high: { - fillColor: "rgb(252, 249, 242)", - strokeColor: "rgb(230,142,0)" - }, - unHigh: { - fillColor: "rgb(252, 249, 242)", - strokeColor: "rgb(171,171,171)" - } - }, Ao = (bo = e, - _.Ei(R, bo), - R.prototype.Do = function (t) { - return t && (this.Jh = t).HF(this), - t - } - , - R.prototype.onAdd = function () { - var t; - this.$F = new Vn({ - zIndex: this.Qh, - visible: this.il, - TF: !0 - }), - null != (t = this.map) && t.addLayer(this.$F) - } - , - R.prototype.v$ = function () { - var t; - null != (t = this.map) && t.removeLayer(this.$F) - } - , - R.prototype.destroy = function () { - bo.prototype.destroy.call(this), - this.$F.destroy(), - this.$F && this.$F.destroy && (this.$F.destroy(), - delete this.$F) - } - , - R.prototype.yD = function () { - return { - show: this.xD - } - } - , - R.prototype.mD = function (t) { - this.xD = t - } - , - R.prototype.cD = function () { - var n = this; - if (this.dD) - return !1; - this.dD = !0, - this._map.on("moveend", function () { - var t = n._map.getZoom() - , i = n.VR; - n.VR.showId, - i && i.centerId && i.indoor && (!n.ZT(i.indoor) || t < n.xt[0] ? (n.e$ && (n.e$.hide(), - n.xD = !1), - n.nD()) : n.e$ && n.VR.visible && (n.mL || n.e$.show(), - n.xD = !0)) - }) - } - , - R.prototype.uD = function () { - for (var t = this.VR, i = t.indoor, n = t.centerId, s = Object.keys(i), e = xo, h = 0; h < s.length; h++) { - var r = s[h]; - if (i[r] && i[r].outline) - for (var o = i[r].outline, a = 0; a < o.length; a++) { - var u = o[a] - , f = u.getOptions(); - f.strokeColor = (r === n ? e.high : e.unHigh).strokeColor, - u.setOptions(f) - } - } - } - , - R.prototype.oZ = function () { - for (var t = this.VR, i = t.indoor, n = (t.centerId, - Object.keys(i)), s = xo, e = 0; e < n.length; e++) { - var h = n[e]; - if (i[h] && i[h].outline) - for (var r = i[h].outline, o = 0; o < r.length; o++) { - var a = r[o] - , u = a.getOptions(); - u.strokeColor = s.unHigh.strokeColor, - a.setOptions(u) - } - } - } - , - R.prototype.BT = function () { - var t = this; - setTimeout(function () { - t._map && t._map.emit("indoor_create") - }, 500) - } - , - R.prototype.bL = function (t) { - this.VR.opacity = t, - this.gL() - } - , - R.prototype.wL = function (t) { - this.VR.zIndex = t, - this.gL() - } - , - R.prototype.ZI = function () { - return this.VR - } - , - R.prototype.KI = function (t) { - this.VR = t - } - , - R.prototype.getState = function () { - return { - zooms: [17, _.zoomRange[1]], - visible: this.il, - opacity: this.tl, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF, - ce: this.IF - } - } - , - R.prototype.getSourceConfig = function () { - return { - id: this._id, - type: "indoor", - zooms: [17, _.zoomRange[1]], - url: "" - } - } - , - R.prototype.co = function () { - return this._id - } - , - R.prototype.getMap = function () { - return this._map - } - , - R.prototype.n$ = function (t, i) { - this.VR.floorInfo || (this.VR.floorInfo = {}), - this.VR.floorInfo[t] = i - } - , - R.prototype.emit = function (t, i) { - return bo.prototype.emit.call(this, t, i), - this - } - , - R.prototype.showId = function (t) { - this.VR.showId = t - } - , - R.prototype.setBar = function (t) { - this.e$ = t - } - , - R.prototype.setBarOpt = function (t) { - this.VR.defaultBarFloor = t - } - , - R.prototype._hideLayer = function (t) { - this.VR.visible = t, - this.DT(t), - this._hideBar(!t), - t ? this.$F.show() : this.$F.hide(), - this.gL() - } - , - R.prototype._hideBar = function (t) { - this.mL = t, - this.VR.hideFloorBar = t, - this.e$ && t ? this.e$.hide() : this.e$ && this.e$.show() - } - , - R.prototype._showLabels = function (t) { - this.VR.showLabels = t; - var i = this._map && this._map.showLabel; - this.VR.labelsLayer && t && i ? this.VR.labelsLayer.show() : this.VR.labelsLayer && this.VR.labelsLayer.hide() - } - , - R.prototype.setShowId = function (t) { - this.VR.hasId = t - } - , - R.prototype.update = function () { - this.gL() - } - , - R.prototype._getSelectedBuildingId = function () { - return this.VR.centerId - } - , - R.prototype._getSelectedBuilding = function () { - return this.VR.building - } - , - R.prototype.setRenderData = function (t) { - this.VR = _.assign(this.VR, t) - } - , - R.prototype.getIntersectPoly = function (t) { - var t = t.getBounds() - , n = this._map && this._map.getBounds(); - return !(!t || !n) && n.intersects(t) - } - , - R.prototype.getIntersect = function (t) { - if (!t) - return !1; - for (var i = !1, n = this._map && this._map.getBounds(), s = 0; s < t.length; s++) { - var e = t[s] - , e = new AMap.LngLat(e[0], e[1]); - if (i = n.contains(e)) - return !0 - } - return i - } - , - R.prototype.YR = function (t, s) { - var i, e = this; - try { - this._map && this._map.gn && ((i = new XMLHttpRequest).onreadystatechange = function () { - 4 === i.readyState && 200 === i.status && e._map.gn.JB(i.response, function (t, i) { - var n; - t ? console.log(t) : (n = (t = Object.keys(i))[0] ? i[t[0]].building : void 0) && n.properties && n.properties.outside_outline && (n = i[t[0]].building.properties.outside_outline, - i = AMap.Bounds.xS(n)) && e._map.setBounds(i), - s && s() - }) - } - , - i.open("GET", t, !0), - i.responseType = "arraybuffer", - i.send()) - } catch (t) { } - } - , - R.prototype.DT = function (t) { - for (var i = this.VR.indoor, n = Object.keys(i), s = 0; s < n.length; s++) { - var e = i[n[s]]; - if (e.polygons) - for (var h = 0; h < e.polygons.length; h++) { - var r = e.polygons[h]; - t ? r.show() : r.hide() - } - if (e.markers) - for (var o = 0; o < e.markers.length; o++) { - var a = e.markers[o]; - t ? a.show() : a.hide() - } - } - } - , - R.prototype.ZT = function (t) { - for (var i = Object.keys(t), n = 0; n < i.length; n++) { - var s = i[n]; - if (this._map && t[s].outline && (s = t[s].outline, - s = this.getIntersectPoly(s[0]))) - return s - } - return !1 - } - , - R.prototype.gL = function () { } - , - R.prototype.nD = function () { - for (var t = this.VR.indoor, i = Object.keys(t), n = 0; n < i.length; n++) { - var s = i[n] - , e = t[s]; - e.polygons && this.$F.remove(e.polygons), - e && e.markers && 0 < e.markers.length && this.VR.labelsLayer && this.VR.labelsLayer.remove(e.markers), - delete t[s] - } - } - , - R); - function R(t) { - var i = bo.call(this) || this; - return i.CLASS_NAME = "AMap.IndoorLayer", - t = t || {}, - i._id = "indoor", - i.il = !0, - i.Qh = t.zIndex || 5, - i.tl = t.opacity || 1, - i.mL = t.hideFloorBar || !1, - i.xL = t.cursor || "auto", - i.xt = [17, _.zoomRange[1]], - i.xD = !1, - i.dD = !1, - 0 === t.opacity && (i.tl = 0), - i.VR = { - opacity: i.tl, - zIndex: i.Qh, - visible: i.il, - cursor: i.xL, - centerId: null, - centerFloor: null, - indoor: {}, - hideFloorBar: i.mL, - showLabels: !0, - reRender: !1, - floorInfo: {}, - indoorState: {}, - centerBuilding: {} - }, - t && t.map && (i._map = t.map, - i.cD()), - i._config = AMap.getConfig(), - i.BT(), - i - } - zo = Ao, - _.Ei(So, zo), - So.prototype.showIndoorMap = function (t, i, n) { - var s, e, i = i || 1; - t && (this.pL = t, - zo.prototype.showId.call(this, t), - zo.prototype.n$.call(this, t, i), - this.pL = t, - e = this._config.server + "/v3/indoor/indoormaps?", - (s = []).push("poiid=" + t), - s.push("floor=" + i), - s.push("version=0"), - s.push("s=rsv3"), - s.push("from=indoorH5Map"), - s.push("servicetype=unify"), - s.push("key=" + this._config.key), - this._config.jscode ? s.push("jscode=" + this._config.jscode) : this._config.gaodeserver && (e = this._config.gaodeserver + "/v3/indoor/indoormaps?"), - t = e + s.join("&"), - zo.prototype.YR.call(this, t)) - } - , - So.prototype.showFloor = function (t, i) { - this.pL && this.showIndoorMap(this.pL, t) - } - , - So.prototype.show = function () { - this._hideLayer(!0) - } - , - So.prototype.hide = function () { - this._hideLayer(!1) - } - , - So.prototype.getMap = function () { - return this._map - } - , - So.prototype.setMap = function (t) { - var i = (this._map = t).getStatus().animateEnable; - zo.prototype.setRenderData.call(this, { - animateState: i - }), - t.setStatus({ - animateEnable: !1 - }), - zo.prototype.setMap.call(this, t), - zo.prototype.cD.call(this) - } - , - So.prototype.setzIndex = function (t) { - zo.prototype.wL.call(this, t) - } - , - So.prototype.showFloorBar = function () { - this._hideBar(!1) - } - , - So.prototype.hideFloorBar = function () { - this._hideBar(!0) - } - , - So.prototype.setOpacity = function (t) { - zo.prototype.bL.call(this, t) - } - , - So.prototype.getOpacity = function () { - return zo.prototype.getOpacity.call(this) - } - , - So.prototype.showLabels = function () { - this._showLabels(!0) - } - , - So.prototype.hideLabels = function () { - this._showLabels(!1) - } - , - So.prototype.getSelectedBuildingId = function () { - return zo.prototype._getSelectedBuildingId.call(this) - } - , - So.prototype.getSelectedBuilding = function () { - return zo.prototype._getSelectedBuilding.call(this) - } - ; - var zo, Co = So; - function So(t) { - var i = zo.call(this, t) || this; - return i.CLASS_NAME = "AMap.IndoorMap", - i._config = AMap.getConfig(), - i.pL = "", - t && t.map && (i._map = t.map, - t = t.map.getStatus().animateEnable, - zo.prototype.setRenderData.call(i, { - animateState: t - })), - i - } - function To(t, i, n) { - this.x = i, - this.y = n, - this.z = t, - this.key = t + "," + i + "," + n - } - var Lo; - function Io() { - var t = null !== Lo && Lo.apply(this, arguments) || this; - return t.CLASS_NAME = "AMap.DistrictLayer", - t._E = AMap.getConfig().protocol + "://mvt.amap.com/getDistrictInfo", - t - } - Lo = ln, - _.Ei(Io, Lo), - Io.prototype.getLayerConfig = function () { - var t = Lo.prototype.getLayerConfig.call(this); - return t.mapNumber = "GS(2019)756", - t - } - , - Io.prototype.getSourceConfig = function () { - return { - id: this._id, - tileUrl: this._tileUrl || "", - type: "districtVectorTile", - tileSize: this.Xa || 256, - zooms: this.xt, - dataZooms: this.Qs || [3, 16], - projection: this.hl || "EPS3857", - SOC: this.SOC - } - } - , - Io.prototype.getLayerOptions = function () { - return { - zIndex: this.Qh, - visible: this.il, - zooms: this.xt, - opacity: this.tl, - adcode: this._adcode, - styles: this.Ze, - layer: this, - rejectMapMask: this._rejectMapMask, - depthTest: this.AF - } - } - , - Io.prototype.getState = function () { - return _.Ln({}, this.getLayerOptions()) - } - , - Io.prototype.getDistrictByContainerPos = function (t) { - if (i = this.map) { - var n, t = i.containerToLngLat(t), s = i.getProjection().project(t.lng, t.lat), e = i.getView().getStatus().optimalZoom, i = i.getTileCoordByLngLat(t, this.Xa || 256, e - 1); - if (!(e = (t = this.getSource().getTileCache()).getTile(i)) && i.z < 12 && (n = Math.pow(2, i.z) / ((this.Xa || 256) / 256), - e = t.getTile(new To(i.z, i.x + n, i.y)) || t.getTile(new To(i.z, i.x - n, i.y))), - e && e.localCoord && e.data) { - var h = [s[0] - e.localCoord.center[0], s[1] - e.localCoord.center[1]] - , r = e.data; - if (r.polygons) - for (var o = 0, a = r.polygons.length; o < a; o += 1) { - var u = r.polygons[o]; - if (3 < u.path.length && 3 === u.properties.feature_type_) { - for (var f = [], c = 0, l = u.path.length; c < l; c += 2) - f.push([u.path[c], u.path[c + 1]]); - if (AMap.GeometryUtil.pointInRing(h, [[f]])) - return u.properties - } - } - } - } - } - , - Io.prototype.co = function () { - return this._id - } - , - Io.prototype.destroy = function () { - this.Jh && this.Jh.destroy && (this.Jh.destroy(), - delete this.Jh) - } - , - Io.prototype.reload = function () { - var t; - this.map && ((t = this.getSource()).setTileUrl(this._tileUrl), - t.reload(), - this.map.setNeedUpdate(!0)) - } - , - Io.prototype.yE = function () { - var n = this; - AMap.xE || AMap.bE || (AMap.bE = "loading", - AMap.Http.Ajax(this._E, {}, function (t, i) { - i && i.data && (i = JSON.parse(i.data), - AMap.xE || (AMap.xE = i, - n.wE && (i = n.wE, - n.setFitViewByAdcode(i.CE, i.zE, i.avoid)))) - })) - } - , - Do = Io, - _.Ei(Eo, Do), - Eo.prototype.setSOC = function (t) { - this.SOC = t, - this._tileUrl = this.Ml.replace("[SOC]", this.SOC), - this.reload() - } - , - Eo.prototype.setDistricts = function (t) { - this.setAdcode(t) - } - , - Eo.prototype.getDistricts = function () { - return this._adcode - } - , - Eo.prototype.setStyles = function (t) { - this.Ze = _.Util.baseAssign(_.Util.baseAssign({}, this.tP.styles), t), - this.map && ((t = this.getRender()) && t.clearStyleCache(), - this.map.setNeedUpdate(!0)) - } - , - Eo.prototype.getStyle = function () { - return this.Ze - } - , - Eo.prototype.setAdcode = function (t) { - t instanceof Array || (t = [t]); - for (var i, n = {}, s = 0; s < t.length; s += 1) - n[t[s]] = 1; - this._adcode = t = n, - null != (i = this.map) && i.setNeedUpdate(!0) - } - , - Eo.prototype.setFitViewByAdcode = function (t, i, n) { - var s, e; - if (void 0 === i && (i = !1), - t instanceof Array || (t = [t]), - this.RE || (this.RE = window.AE), - AMap.xE) { - this.RE = AMap.xE; - for (var h = 0; h < t.length; h += 1) { - var r = this.RE[t[h]] - , r = new l(_.Pt(r[0], r[1])); - e ? e.union(r) : e = r - } - this.map && null != (s = this.map) && s.setBounds(e, i, n) - } else - this.wE = { - CE: t, - zE: i, - avoid: n - } - } - , - Eo.prototype.on = function (s, t, i, n) { - var e = this - , h = (void 0 === n && (n = !1), - this.getEvents()) - , r = !!h[s]; - return Do.prototype.on.call(this, s, t, i, n), - this.map ? r || ("click" !== s && "mousemove" !== s || null != (r = this.map) && r.on(s, function (t) { - if (!h[s]) - return e; - t.type = s, - t.target = e; - var i = t.pixel - , i = e.getDistrictByContainerPos(i) - , i = { - preProps: e.IE, - props: i, - origin: t - }; - e.emit(s, i) - }), - /(mouseenter|mouseleave|mouseover|mouseout)/.test(s) && (null != (r = this.map) && r.on("mouseleave", function (t) { - if ("mouseleave" === s || "mouseout" === s) { - if (!h[s]) - return e; - t.type = s, - t = { - preProps: (t.target = e).IE, - props: void 0, - origin: t - }, - e.emit(s, t), - e.IE = void 0 - } - }), - null != (r = this.map)) && r.on("mousemove", function (t) { - if (!h[s]) - return e; - var i, n = t.pixel; - (n = e.getDistrictByContainerPos(n)) ? e.IE && e.IE.adcode === n.adcode && e.IE.SOC === n.SOC || (t.type = s, - i = { - preProps: (t.target = e).IE, - props: n, - origin: t - }, - e.emit("mouseleave", i), - e.emit("mouseout", i), - e.emit("mouseenter", i), - e.emit("mouseover", i), - e.IE = n) : !e.IE || "mouseout" !== s && "mouseleave" !== s || (t.type = s, - i = { - preProps: (t.target = e).IE, - props: n, - origin: t - }, - e.emit("mouseleave", i), - e.emit("mouseout", i), - e.IE = n) - })) : (r = { - fn: t, - context: i, - once: n - }, - this.LE[s] ? this.LE[s].push(r) : this.LE[s] = [r]), - this - } - , - Eo.prototype.onAdd = function () { - if (Do.prototype.onAdd.call(this), - this.LE) - for (var t in this.LE) - if (this.LE.hasOwnProperty(t)) - for (var i = this.LE[t], n = 0; n < i.length; n++) - this.on(t, i[n].fn, i[n].context) - } - ; - var Do, Oo = Eo; - function Eo(t) { - var i = Do.call(this, t) || this; - return i.LE = {}, - i.CX = "2" === t.dataVersion ? "2" : "", - i.tP = { - id: "DistrictLayer_" + _.Util.uuid(), - tileUrl: AMap.getConfig().protocol + "://mvt.amap.com/district/[SOC]/[z]/[x]/[y]/4096?\nkey=" + AMap.getConfig().key + "&version=" + i.CX, - zooms: _.zoomRange, - dataZooms: [1, 18], - opacity: 1, - visible: !0, - depth: 0, - zIndex: 80, - styles: { - "stroke-width": .5, - "nation-stroke": [.35, .35, .35, 1], - "coastline-stroke": [.18, .63, .94, 1], - "province-stroke": [.5, .5, .5, 1], - "city-stroke": [.7, .7, .7, 1], - "county-stroke": [.85, .85, .85, 1], - fill: [1, 1, 1, 1], - dash: void 0, - zIndex: 0 - }, - SOC: "CHN" - }, - i.SOC = t.SOC || i.tP.SOC, - i._id = i.tP.id, - t.adcode && i.setAdcode(t.adcode), - i._depth = t.depth || i.tP.depth, - i.Ze = _.Util.baseAssign(_.Util.baseAssign({}, i.tP.styles), t.styles || {}), - i.Ml = i.tP.tileUrl, - i._tileUrl = i.tP.tileUrl.replace("[SOC]", i.SOC), - i.xt = t.zooms || i.tP.zooms, - i.tl = (void 0 === t.opacity ? i.tP : t).opacity, - i.il = (void 0 === t.visible ? i.tP : t).visible, - i.Qh = (void 0 === t.zIndex ? i.tP : t).zIndex, - i.Qs = i.tP.dataZooms, - i.CLASS_NAME = "AMap.DistrictLayer", - i - } - Ro = Oo, - _.Ei(Po, Ro); - var Ro, _t = Po; - function Po(t) { - var i = this - , n = { - id: "WorldLayer_" + _.Util.uuid(), - zIndex: 81, - SOC: "WLD" - }; - return (i = Ro.call(this, t) || this)._id = n.id, - i.SOC = t.SOC || n.SOC, - i.Qh = (void 0 === t.zIndex ? n : t).zIndex, - i._tileUrl = i.Ml.replace("[SOC]", i.SOC), - i.CLASS_NAME = "AMap.DistrictLayer.World", - i - } - jo = Oo, - _.Ei(Bo, jo); - var jo, Ht = Bo; - function Bo(t) { - var i = this - , n = { - id: "CountryLayer_" + _.Util.uuid(), - depth: 1, - zIndex: 82, - SOC: "CHN" - }; - return 0 === (t = t || n).depth && (t.styles || (t.styles = {}), - t.styles["stroke-width"] = 0), - (i = jo.call(this, t) || this)._id = n.id, - i._depth = void 0 === t.depth ? n.depth : +t.depth, - i.SOC = t.SOC || n.SOC, - i.Qh = (void 0 === t.zIndex ? n : t).zIndex, - "CHN" === i.SOC && 1 < i._depth && (i.SOC = "CHN2"), - i._tileUrl = i.Ml.replace("[SOC]", i.SOC), - i.CLASS_NAME = "AMap.DistrictLayer.Country", - i - } - Wo = Oo, - _.Ei(Fo, Wo); - var Wo, _o, Uo, Yo, Ft = Fo; - function Fo(t) { - var i = this - , n = { - id: "ProvinceLayer_" + _.Util.uuid(), - depth: 1, - zIndex: 83, - SOC: "CHN5" - }; - return (i = Wo.call(this, t) || this)._id = n.id, - i._depth = void 0 === t.depth ? n.depth : +t.depth, - i.SOC = t.SOC || n.SOC, - i.Qh = (void 0 === t.zIndex ? n : t).zIndex, - 0 === i._depth && (i.SOC = "CHN4"), - 1 === i._depth && (i.SOC = "CHN5"), - 2 === i._depth && (i.SOC = "CHN3"), - i._tileUrl = i.Ml.replace("[SOC]", i.SOC), - i.CLASS_NAME = "AMap.DistrictLayer.Province", - i.onCreated(), - i - } - function Go(t, i) { - var s = W(t = Array.isArray(t) ? t : [t]); - 0 === s.length ? i() : (j.add(s, i), - F(mapsplugin, function () { - for (var t = 0, i = s; t < i.length; t++) { - var n = i[t]; - j.finish(n) - } - })) - } - function No() { - return Zo - } - Oo.World = _t, - Oo.Country = Ht, - Oo.Province = Ft, - $t = config, - _o = ($t = void 0 === $t ? [] : $t)[16] + "://" + $t[17] || "", - Uo = $t[4], - Yo = $t[0], - $t[18] || console.log("地图 JS API 将于2023年1月1日起,禁止非Web端key的调用权限。请您提前确保已正确使用 Web 端 key 进行服务访问,避免对您的服务产生不必要的影响。"), - _.Module.module = function (t, i) { - var s = W(t = Array.isArray(t) ? t : [t]); - 0 === s.length ? i && i() : (j.add(s, i), - F(mapsplugin, function () { - for (var t = 0, i = s; t < i.length; t++) { - var n = i[t]; - j.finish(n) - } - })) - } - , - N('.amap-custom{top:0;left:0;position:absolute}.amap-container img{max-width:none!important;max-height:none!important}.amap-container{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KD0UqkwAAAf1JREFUeAHtmtGpAkEQBE9TMAi/zMb8MzCGU/97Ye8QunDrfQ7qNFUMS8Pbtom/fd8fEx/b/FymdIDL85p/wmmLgEJa5Ad7FTIA0xorpEV+sFchAzCtsUJa5Ad7FTIA0xorpEV+sPcyW1oG33f8WwL3qZ+blebnMs4DXGzqGWFv6hvSYx83KyRi6Q0V0mMfNyskYukNFdJjHzcrJGLpDRXSYx8329QjltrQpp7QH2jWv/5fA5t6EtKc+YY06YfdCglQmiOFNOmH3QoJUJojhTTph90KCVCaI4U06YfdNvUApTiyqSf4NvVEZdGZbwhMvEIUAiMAi+OFKARGABbHC1EIjAAsjk2dJcSmnnzY1BOVRWc+6jDxClEIjAAsjheiEBgBWBwvRCEwArA4/9LUbx+uLxjbM3Fs6omaTT1RWXTmow4TrxCFwAjA4nghCoERgMXxQhQCIwCL8y9NHYb1dBybekJnU09UFp35qMPEK0QhMAKwOF6IQmAEYHG8EIXACMDi2NRZQmzqyYdNPVFZdOajDhOvEIXACMDieCEKgRGAxfFCFAIjAItjU2cJsaknHzb1RGXRmY86TLxCFAIjAIvjhSgERgAWxwtRCIwALI5NnSXEpp582NQTlUVnPuow8QpRCIwALI4XohAYAVgcL0QhMAKwON+m/oRlWjrOG2SeYNIaKe7fAAAAAElFTkSuQmCC);background-color:#f1f1f1;touch-action:none;position:relative;overflow:hidden;-ms-touch-action:none}.amap-drags,.amap-layers{width:100%;height:100%;position:absolute;overflow:hidden;transform:translateZ(0)}.amap-layers canvas{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.amap-layers .amap-layer-tile{transform:translateZ(0)}.amap-layers .amap-layer-tile,.amap-layers .amap-layer-tile img{position:absolute;top:0;left:0;user-select:none;-webkit-user-select:none}.amap-layers .amap-layer-image{position:absolute;top:0;left:0;transform:translateZ(0)}.amap-layers .amap-layer-image img{position:absolute;top:0;left:0}.amap-layer img{pointer-events:none;display:block}.amap-layers .amap-layer-overlay{position:absolute;top:0;left:0;transform:translateZ(0)}.amap-e,.amap-maps{width:100%;height:100%;outline:none}.amap-maps{z-index:0}.amap-e,.amap-layers,.amap-maps,.amap-tile-container{position:absolute;left:0;top:0;overflow:hidden}.amap-context,.amap-marker,.amap-markers,.amap-overlays{position:absolute;left:0;top:0}.amap-layers{z-index:0}.amap-overlays{z-index:110;cursor:default}.amap-markers{z-index:120}.amap-controls{z-index:150}.amap-copyright{display:block!important;left:85px;height:16px;bottom:1.8px;line-height:1.5;padding-bottom:2px;font-size:11px;font-family:Arial,sans-serif}.amap-copyright,.amap-logo{position:absolute;z-index:160;user-select:none;-webkit-user-select:none}.amap-logo{bottom:1.5px;left:4px;height:20px}.amap-logo img{width:73px!important;height:20px!important;border:none;vertical-align:baseline!important;user-select:none;-webkit-user-select:none}.amap-icon{position:relative;z-index:1}.amap-icon img{position:absolute;z-index:-1}.amap-marker-label{position:absolute;z-index:2;border:1px solid #00f;background-color:#fff;white-space:nowrap;cursor:default;padding:3px;font-size:12px;line-height:14px}.amap-info{left:0;width:fit-content;width:-webkit-fit-content;width:-moz-max-content}.amap-info,.amap-menu{position:absolute;z-index:140}.amap-info-close{position:absolute;right:5px;top:5px;color:#c3c3c3;text-decoration:none;font:700 16px/14px Tahoma,Verdana,sans-serif;width:14px;height:14px;cursor:pointer}.amap-info-outer,.amap-menu-outer{box-shadow:0 1px 2px rgba(0,0,0,.1);background:none repeat scroll 0 0 #fff;border-radius:2px;padding:1px;text-align:left}.amap-info-contentContainer:hover .amap-info-outer,.amap-menu-outer:hover{box-shadow:0 1px 2px rgba(0,0,0,.3)}.amap-info-content{position:relative;background:#fff;padding:10px 18px 10px 10px;line-height:1.4;overflow:auto}.amap-marker-content{position:relative}.amap-info-sharp-old{overflow:hidden;position:absolute;background-image:url(https://webapi.amap.com/images/arrows.png)}.bottom-center .amap-info-sharp-old{height:12px;width:20px;background-position:center 12px;top:100%;left:50%;margin:-9px auto 0 -10px}.bottom-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -46px;top:100%;margin-top:-9px}.bottom-right .amap-info-sharp-old{height:12px;width:13px;top:-1px;background-position:-56px -46px;left:100%;margin-left:-13px;top:100%;margin-top:-9px}.middle-left .amap-info-sharp-old{height:20px;width:12px;background-position:0;top:50%;margin-top:-10px;margin-left:-11px}.center .amap-info-sharp-old{display:none}.middle-right .amap-info-sharp-old{height:20px;margin-right:0;width:12px;background-position:100%;left:100%;margin-left:-9px;top:50%;margin-top:-10px}.top-center .amap-info-sharp-old{height:12px;width:20px;background-position:top;top:0;left:50%;margin:-3px auto 0 -10px}.top-left .amap-info-sharp-old{height:12px;width:13px;background-position:-16px -3px;top:0;margin-top:-3px}.top-right .amap-info-sharp-old{height:12px;width:13px;background-position:-56px -3px;left:100%;margin-left:-13px;top:0;margin-top:-3px}.amap-info-sharp{position:absolute}.bottom-center .amap-info-sharp{bottom:0;left:50%;border-top:8px solid #fff}.bottom-center .amap-info-sharp,.bottom-center .amap-info-sharp:after{margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent}.bottom-center .amap-info-sharp:after{position:absolute;content:"";margin-top:-7px;border-top:8px solid rgba(0,0,0,.3);filter:blur(2px);z-index:-1}.amap-info-contentContainer:hover.bottom-center .amap-info-sharp:after{border-top:8px solid rgba(0,0,0,.5)}.bottom-left .amap-info-sharp{border-color:transparent #fff;border-style:solid;border-width:0 0 10px 10px}.bottom-left .amap-info-sharp:after{position:absolute;content:"";margin-left:-10px;border-color:transparent rgba(0,0,0,.3);border-style:solid;border-width:0 0 10px 10px;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-left .amap-info-sharp:after{border-color:transparent rgba(0,0,0,.5)}.bottom-left .amap-info-content{border-radius:2px 2px 2px 0}.bottom-right .amap-info-sharp{right:0;border-top:10px solid #fff;border-left:10px solid transparent}.bottom-right .amap-info-sharp:after{position:absolute;margin-top:-9px;margin-left:-10px;content:"";border-top:10px solid rgba(0,0,0,.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.bottom-right .amap-info-sharp:after{border-top:10px solid rgba(0,0,0,.5)}.bottom-right .amap-info-content{border-radius:2px 2px 0 2px}.top-center .amap-info-sharp{top:0;left:50%;border-bottom:8px solid #fff}.top-center .amap-info-sharp,.top-center .amap-info-sharp:after{margin-left:-8px;border-left:8px solid transparent;border-right:8px solid transparent}.top-center .amap-info-sharp:after{position:absolute;content:"";margin-top:0;border-bottom:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.top-left .amap-info-sharp{left:0;top:0;border-bottom:10px solid #fff;border-right:10px solid transparent}.top-left .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:0;border-bottom:10px solid rgba(0,0,0,.3);border-right:10px solid transparent;filter:blur(1px);z-index:-1}.top-right .amap-info-sharp{right:0;top:0;border-bottom:10px solid #fff;border-left:10px solid transparent}.top-right .amap-info-sharp:after{position:absolute;content:"";margin-top:0;margin-left:-10px;border-bottom:10px solid rgba(0,0,0,.3);border-left:10px solid transparent;filter:blur(1px);z-index:-1}.middle-right .amap-info-sharp{right:0;top:50%;border-left:8px solid #fff}.middle-right .amap-info-sharp,.middle-right .amap-info-sharp:after{margin-top:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent}.middle-right .amap-info-sharp:after{position:absolute;content:"";margin-left:-8px;border-left:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-right .amap-info-sharp:after{border-left:8px solid rgba(0,0,0,.5)}.middle-left .amap-info-sharp{left:0;top:50%;border-right:8px solid #fff}.middle-left .amap-info-sharp,.middle-left .amap-info-sharp:after{margin-top:-8px;border-top:8px solid transparent;border-bottom:8px solid transparent}.middle-left .amap-info-sharp:after{position:absolute;content:"";margin-left:0;border-right:8px solid rgba(0,0,0,.3);filter:blur(1px);z-index:-1}.amap-info-contentContainer:hover.middle-left .amap-info-sharp:after{border-right:8px solid rgba(0,0,0,.5)}.amap-info-contentContainer.top-center,.amap-info-contentContainer.top-left,.amap-info-contentContainer.top-right{padding-top:8px}.amap-info-contentContainer.bottom-center,.amap-info-contentContainer.bottom-left,.amap-info-contentContainer.bottom-right{padding-bottom:8px}.amap-info-contentContainer.middle-right{padding-right:8px}.amap-info-contentContainer.middle-left{padding-left:8px}.amap-menu-outer{margin:0;padding:0;list-style-type:none}ul.amap-menu-outer li{height:35px;line-height:35px;word-break:break-all;padding:0 10px;font-size:12px;white-space:nowrap}ul.amap-menu-outer li a{text-decoration:none;font-size:13px;margin:0 5px;color:#000;padding:5px}ul.amap-menu-outer li:hover{background-color:#f3f3ee}.amap-overlay-text-container{display:block;width:auto;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;padding:2px 3px;border:1px solid #ccc;border-radius:3px}.amap-overlay-text-container.amap-overlay-text-empty{display:none}.amap-info-content-ie8{border:1px solid #9c9c9c}.amap-control{position:absolute;-webkit-tap-highlight-color:transparent}.amap-toolbar{background-color:#fff;border-radius:4px;box-shadow:0 0 3px rgba(0,0,0,.5)}.amap-toolbar span{display:block;width:30px;height:30px;line-height:30px;text-align:center;border-radius:0 0 4px 4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:20px}.amap-toolbar span:first-child{border-bottom:1px solid #eee;border-radius:4px 4px 0 0}.amap-toolbar span:hover{font-weight:bolder;background-color:#f0f0f0}.amap-scalecontrol{pointer-events:none;background-color:hsla(0,0%,100%,.5);border-radius:2px;user-select:none}.amap-scalecontrol .amap-scale-text{font-size:10px;text-align:center;transition:width .3s;user-select:none}.amap-scalecontrol .amap-scale-line{position:relative;height:8px;left:2px;user-select:none}.amap-scalecontrol .amap-scale-edgeleft,.amap-scalecontrol .amap-scale-edgeright,.amap-scalecontrol .amap-scale-middle{position:absolute;background-color:#333;overflow:hidden;box-sizing:content-box!important}.amap-scalecontrol .amap-scale-edgeright{width:1px;height:6px;border:1px solid #fff;transition:left .3s}.amap-scalecontrol .amap-scale-middle{height:2px;left:2px;top:2px;border-top:1px solid #fff;border-bottom:1px solid #fff;transition:width .3s}.amap-scalecontrol .amap-scale-edgeleft{width:1px;height:6px;border:1px solid #fff}.amap-controlbar,.amap-controlbar *{user-select:none}.amap-controlbar .amap-luopan{width:92px;height:92px;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -22px -30px no-repeat;background-size:348px 270px;user-select:none}.amap-luopan .amap-compass{top:46px;left:50%;position:absolute;margin:-24px;width:48px;height:48px;z-index:10;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -231px -26px no-repeat;background-size:348px 270px}.amap-luopan .amap-compass.amap-compass-black{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -231px -79px;background-size:348px 270px}.amap-luopan .amap-compass .amap-pointers{position:absolute;width:30px;height:48px;top:0;left:9px;border:none;z-index:2;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -281px -26px no-repeat;background-size:348px 270px}.amap-pitchDown,.amap-pitchUp{width:30px;height:25.5px;position:absolute;top:3.5px;margin-left:-15px;left:50%;z-index:1;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -302.5px -49px no-repeat;background-size:348px 270px}.amap-pitchDown:hover,.amap-pitchUp:hover{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -302.5px -23.5px;background-size:348px 270px}.amap-pitchDown{top:66px;transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);-moz-transform:rotate(180deg)}.amap-rotateLeft,.amap-rotateRight{width:21px;height:52px;top:19px;position:absolute;z-index:2;background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) -301.5px -77px no-repeat;background-size:348px 270px}.amap-rotateLeft:hover,.amap-rotateRight:hover{background:url(https://webapi.amap.com/theme/v1.3/controlbar/ctb.png) no-repeat -278.5px -76.5px;background-size:348px 270px}.amap-rotateLeft{left:5px}.amap-rotateRight{right:5px;transform:rotateY(180deg);-ms-transform:rotateY(180deg);-webkit-transform:rotateY(180deg);-o-transform:rotateY(180deg);-moz-transform:rotateY(180deg)}.amap-ctrl-icon-layer{width:30px;height:30px}.amap-ctrl-icon-layer,.amap-ctrl-list-layer{background-color:#fff;border-radius:3px;box-shadow:0 0 4px 1px rgba(0,0,0,.2)}.amap-ctrl-list-layer{position:absolute;top:0;right:0;overflow:hidden;z-index:1}.amap-ctrl-list-layer ul{overflow:hidden;list-style:none;margin:0;padding:5px 8px}.amap-ctrl-list-layer ul li{float:left;width:100%}.amap-ctrl-list-layer ul p{white-space:nowrap;font-size:12px;height:20px;line-height:20px;padding-left:5px;margin:0 10px}.amap-ctrl-list-layer input{float:left;height:20px;width:12px;margin:0 5px}.amap-ctrl-base-layer{border-bottom:1px solid #eee}.amap-ranging-label{_width:10px;font-size:12px;line-height:14px;background:#fff;border:1px solid #ccc;padding:3px 7px 3px 2px;white-space:nowrap}.amap-ranging-label span{height:12px;vertical-align:center;display:inline-block;white-space:nowrap;margin-left:5px}.amap-popup{text-align:center;position:fixed;top:50%;left:50%;margin-left:-165px;margin-top:-170px}.amap-popup-content{vertical-align:middle;line-height:200px;overflow:hidden;background-color:#fff;border:solid;border-width:3px 1px;border-radius:5px;border-color:#ddf;margin:0 auto;text-align:center;height:340px}.amap-labellayers{position:absolute;top:0;left:0;transform-origin:0 0}.amap-indoormap-floorbar-control{position:absolute;width:40px;text-align:center;line-height:1.3em;border-radius:20px;box-shadow:0 0 3px 3px rgba(0,0,0,.1);background-color:#fff;margin-top:-100px}.amap-indoormap-floorbar-control .floor-list-box{max-height:160px;overflow:scroll;-ms-overflow-style:none;overflow:-moz-scrollbars-none;-webkit-user-select:none;-moz-user-select:none}.floor-list-box::-webkit-scrollbar{width:0!important;height:0!important}.amap-indoormap-floorbar-control ul{list-style:none;margin:0;padding:0 4px;width:40px;box-sizing:border-box}.amap-indoormap-floorbar-control ul li{height:32px;width:32px;border-radius:16px}.amap-indoormap-floorbar-control ul li:hover{background-color:#efefef}.amap-indoormap-floorbar-control ul li div{height:32px;text-align:center;line-height:32px;font-size:12px}.amap-indoormap-floorbar-control ul li.selected{color:#fff;background-color:#4196ff}.amap-indoormap-floorbar-control .floor-minus,.amap-indoormap-floorbar-control .floor-plus{height:32px;width:32px;margin:0 auto;border-radius:16px;position:relative}.amap-indoormap-floorbar-control .floor-minus:after,.amap-indoormap-floorbar-control .floor-plus:after{content:"";position:absolute;margin:auto;bottom:4px;left:0;right:0;width:0;height:0;border:7px solid transparent;border-top-color:#777}.amap-indoormap-floorbar-control .floor-plus:after{border-bottom-color:#777;border-top-color:transparent;bottom:11px}.amap-indoormap-floorbar-control .floor-plus:hover:after{border-bottom-color:#222}.amap-indoormap-floorbar-control .floor-minus:hover:after{border-top-color:#222}.amap-indoormap-floorbar-control .floor-plus.disabled:after{border-bottom-color:#ddd}.amap-indoormap-floorbar-control .floor-minus.disabled:after{border-top-color:#ddd}.amap-indoormap-floorbar-control .floor-list-item.selected:after{right:0;left:auto;border-left-color:transparent;border-right-color:#4196ff}.amap-indoormap-floorbar-control .floor-btn.disabled,.amap-indoormap-floorbar-control .floor-btn.disabled *,.amap-indoormap-floorbar-control.with-indrm-loader *{-webkit-pointer-events:none!important;pointer-events:none!important}.amap-indoormap-floorbar-control .with-indrm-loader .floor-nonas{opacity:.5}'), - -1 !== (ni = 0 !== (ni = window.location.href).indexOf("http") && window.parent && window.parent !== window ? window.parent.location.href : ni).indexOf("?") && (ni = ni.substr(0, ni.indexOf("?"))), - ni = encodeURIComponent(ni); - var vi = (Ri = config[16] || config[2].split(":")[0]) + "://restapi.amap.com" - , Di = (wi = Ri + "://" + config[2].split("://")[1]) + "/theme/v1.3/markers/" + (_.Support.Ue ? "b" : "n") - , Qt = Ri + "://webrd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x=[x]&y=[y]&z=[z]" - , Xt = Ri + "://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x=[x]&y=[y]&z=[z]" - , Xo = "" - , Si = "" - , Zo = (window._AMapSecurityConfig && (window._AMapSecurityConfig.securityJsCode ? Xo = window._AMapSecurityConfig.securityJsCode || "" : window._AMapSecurityConfig.serviceHost && (jt = "", - ci = (jt = "https" === (Si = window._AMapSecurityConfig.serviceHost || "").split(":")[0] ? Si.replace(/https:\/\/\S+?\//g, "") : Si.replace(/http:\/\/\S+?\//g, "")) && jt.split("/")[0], - ai = window.location.hostname, - "_AMapService" !== ci) && ("127.0.0.1" === ai || "localhost" === ai ? window.alert("使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由") : "undefined" != typeof console && console.log(" 使用 JSAPI 安全模式,代理服务请以_AMapService 作为一级路由"))), - { - key: config[0], - host: config[2], - domain: config[17], - server: vi, - protocol: Ri, - version: config[4], - adcode: config[6], - callback: config[5], - appname: ni, - client: wi, - markers: Di, - pc: "http://gaode.com", - mo: "http://m.amap.com", - workerUrl: "", - YT: Qt, - qT: Xt, - y_: _.Support.$e ? Xt : Qt, - v_: "\x3c!--v2.0--\x3e © " + (new Date).getFullYear() + " AutoNavi ", - db: config[14] || "", - JH: config[15] || "", - jscode: Xo, - gaodeserver: Si, - vdataProxy: "" - }); - return hi = (new Date).getTime(), - // _t = Zo.server + "/v3/log/init?", - // (e = ["platform=JS&s=rsv3&logversion=2.0&product=JsInit&key=" + Zo.key, "t=" + hi]).push("sdkversion=2.0"), - // e.push("appname=" + ni), - // e.push("csid=" + _.Util.uuid()), - // e.push("resolution=" + window.screen.width + "*" + window.screen.height), - // e.push("mob=" + (_.Support.$e ? 1 : 0)), - // e.push("vt=" + (_.Support.isWebGL ? 1 : 0)), - // e.push("dpr=" + window.devicePixelRatio), - // e.push("scale=" + (_.Support.Ue ? 2 : 1)), - // e.push("detect=" + _.Support.Ue), - // Zo.jscode ? e.push("jscode=" + Zo.jscode) : Zo.gaodeserver && (_t = Zo.gaodeserver + "/v3/log/init?"), - // _t += e.join("&"), - // mi.JSONP(_t), - function (t) { - return t[1] && (th = t[1].slice(-2), - Qe = t[1].slice(0, 4)), - { - Map: nh, - ImageLayer: oh, - createDefaultLayer: _h, - TileLayer: ln, - NebulaLayer: Ui, - Buildings: Wh, - Indoor: Ao, - SkyLayer: vs, - DistrictLayer: Oo, - CanvasLayer: lh, - CustomLayer: mh, - GLCustomLayer: Jh, - LabelsLayer: fs, - MassMarks: Mh, - Event: _.Event, - version: "2.0", - plugin: Go, - LngLat: _.LngLat, - Pixel: _.Pixel, - Size: _.Size, - Icon: $s, - Bounds: l, - extent: Rt, - Marker: Ae, - Text: Ah, - InfoWindow: Ee, - ContextMenu: Ue, - LabelMarker: Th, - Polygon: Nr, - Rectangle: Xr, - Ellipse: Hr, - Circle: Kr, - CircleMarker: no, - Polyline: oo, - BezierCurve: mo, - OverlayGroup: hr, - VectorLayer: Vn, - LayerGroup: qh, - Control: Dh, - DomUtil: w, - Util: _.Util, - GeometryUtil: _.GeometryUtil, - Browser: Rh, - UA: { - ie: Rh.ie, - ie9: Rh.ie9, - ie11: Rh.ie11, - mobile: Rh.mobile, - android: Rh.android, - ios: Rh.ios - }, - PlaneGeometryUtil: _.PlaneGeometryUtil, - getConfig: No, - WebService: He, - extend: _.extend, - Http: mi, - addCss: N, - BuryPoint: Gh, - lcs: _.lcs, - convertFrom: qe, - Heatmap: Kh, - IndoorMap: Co, - Mapbox: nr, - BuildingLayer: Wh - } - } - }); - var __AMap_callback = AMap.getConfig().callback, tryGetCallback, tryCallback; - return __AMap_callback && (tryGetCallback = function () { - var c = __AMap_callback.split(".") - , context = window; - do { - if (!(context = context[c.shift()])) - return null - } while (c.length); - return context || null - } - , - tryCallback = function (isFinalTry) { - var func = tryGetCallback(); - if (func) { - if ("function" != typeof func) - throw new Error(__AMap_callback + " is not a function!"); - setTimeout(func, 1) - } else if (isFinalTry) - throw new Error("Can not find callback: " + __AMap_callback + ", try define it before load JsApi!") - } - , - document.body && tryGetCallback() ? tryCallback() : setTimeout(function () { - tryCallback(!0) - }, 1)), - AMap - }); - (typeof _cssload_ == "function") && _cssload_("logo", ".amap-logo{display:block!important;pointer-events:none;}", true) -} -)(["460db32598e2b08c3f258cf6e58c5fe4", [115.423411, 39.442758, 117.514625, 41.060816, 116.405285, 39.904989], "https://webapi.amap.com", 1, "2.0.5.16", null, "110000", "AMap.MoveAnimation,AMap.Driving,AMap.MouseTool,WebGLRender,AMap.MouseTool", true, false, false, true, "20230103011500-20201123-1", false, "B", "3_23_06_07_00", "https", "webapi.amap.com", 1]) -_jsload_('AMap.MoveAnimation', '!function(){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function createCommonjsModule(fn,module){return fn(module={exports:{}},module.exports),module.exports}var d1,d2,r,eventemitter=createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor};function defineProperties(target,props){for(var i=0;i>4|(3840&iv)>>8,240&iv|(240&iv)>>4,15&iv|(15&iv)<<4,1]:null:7===css_str.length&&0<=(iv=parseInt(css_str.substr(1),16))&&iv<=16777215?[(16711680&iv)>>16,(65280&iv)>>8,255&iv,1]:null;var iv=css_str.indexOf("("),ep=css_str.indexOf(")");if(-1!==iv&&ep+1===css_str.length){var h,l,s,fname=css_str.substr(0,iv),params=css_str.substr(iv+1,ep-(iv+1)).split(","),alpha=1;switch(fname){case"rgba":if(4!==params.length)return null;alpha=parse_css_float(params.pop());case"rgb":return 3!==params.length?null:[parse_css_int(params[0]),parse_css_int(params[1]),parse_css_int(params[2]),alpha];case"hsla":if(4!==params.length)return null;alpha=parse_css_float(params.pop());case"hsl":return 3!==params.length?null:(h=(parseFloat(params[0])%360+360)%360/360,s=parse_css_float(params[1]),[clamp_css_byte(255*css_hue_to_rgb(s=2*(l=parse_css_float(params[2]))-(l=l<=.5?l*(s+1):l+s-l*s),l,h+1/3)),clamp_css_byte(255*css_hue_to_rgb(s,l,h)),clamp_css_byte(255*css_hue_to_rgb(s,l,h-1/3)),alpha]);default:return null}}return null}}catch(e){}})),colorhelper=(csscolorparser.parseCSSColor,createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var obj,_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_csscolorparser2=(obj=csscolorparser)&&obj.__esModule?obj:{default:obj};var parseCSSColor=_csscolorparser2.default.parseCSSColor;function _clamp_css_byte(i){return(i=Math.round(i))<0?0:255>0,fn=interpolation;return function(p0,p1,t){var p0=_slicedToArray(p0,4),r0=p0[0],g0=p0[1],b0=p0[2],p0=p0[3],p1=_slicedToArray(p1,4),r1=p1[0],g1=p1[1],b1=p1[2],p1=p1[3];return[fn(r0,r1,t)>>0,fn(g0,g1,t)>>0,fn(b0,b1,t)>>0,fn(p0,p1,t)]}(steps[i],steps[m<1+i?m:1+i],progress-i)},mixColors:function(color,increase){var c=this.toNormal(color);return Array.isArray(increase)&&c?"rgba("+[(c=[_clamp_css_byte(c[0]+increase[0]||0),_clamp_css_byte(c[1]+increase[1]||0),_clamp_css_byte(c[2]+increase[2]||0),_clamp_css_float(c[3]+increase[3]||0)])[0],c[1],c[2],c[3]].join(",")+")":color},toRGBA:function(color){var alpha;return color&&3<=color.length?(alpha=void 0===color[3]?1:color[3],"rgba("+_clamp_css_byte(color[0])+","+_clamp_css_byte(color[1])+","+_clamp_css_byte(color[2])+","+_clamp_css_float(alpha)+")"):"transparent"},Utils:{Linear:function(p0,p1,t){return(p1-p0)*t+p0}}};exports.default=ColorHelper})),color=(unwrapExports(colorhelper),createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var _clip2=_interopRequireDefault(clip),_colorhelper2=_interopRequireDefault(colorhelper);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var plugin={type:"color",test:function(value,key){return _colorhelper2.default.isColor(value)},parse:function(value,key){return _colorhelper2.default.toNormalArray(value)},valueOf:function(parsedValue,progress,elapsed,key){parsedValue=_colorhelper2.default.linearGradient(parsedValue,progress);return _colorhelper2.default.toRGBA(parsedValue)}};_clip2.default.registerPlugin(plugin),exports.default=plugin})),vector_1=(unwrapExports(color),createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var ArrayCons="undefined"==typeof Float32Array?Array:Float32Array,vector={create:function(){var x=0b?1:a0){var middle=start+Math.floor(size/2);var key=keys[middle];var data=values[middle];var node={key:key,data:data,parent:parent};node.left=loadRecursive(node,keys,values,start,middle);node.right=loadRecursive(node,keys,values,middle+1,end);return node}return null}function sort(keys,values,left,right,compare){if(left>=right)return;var pivot=keys[left+right>>1];var i=left-1;var j=right+1;while(true){do{i++}while(compare(keys[i],pivot)<0);do{j--}while(compare(keys[j],pivot)>0);if(i>=j)break;var tmp=keys[i];keys[i]=keys[j];keys[j]=tmp;tmp=values[i];values[i]=values[j];values[j]=tmp}sort(keys,values,left,j,compare);sort(keys,values,j+1,right,compare)}SplayTree.prototype.rotateLeft=function rotateLeft(x){var y=x.right;if(y){x.right=y.left;if(y.left)y.left.parent=x;y.parent=x.parent}if(!x.parent)this._root=y;else if(x===x.parent.left)x.parent.left=y;else x.parent.right=y;if(y)y.left=x;x.parent=y},SplayTree.prototype.rotateRight=function rotateRight(x){var y=x.left;if(y){x.left=y.right;if(y.right)y.right.parent=x;y.parent=x.parent}if(!x.parent)this._root=y;else if(x===x.parent.left)x.parent.left=y;else x.parent.right=y;if(y)y.right=x;x.parent=y},SplayTree.prototype._splay=function _splay(x){while(x.parent){var p=x.parent;if(!p.parent)if(p.left===x)this.rotateRight(p);else this.rotateLeft(p);else if(p.left===x&&p.parent.left===p){this.rotateRight(p.parent);this.rotateRight(p)}else if(p.right===x&&p.parent.right===p){this.rotateLeft(p.parent);this.rotateLeft(p)}else if(p.left===x&&p.parent.right===p){this.rotateRight(p);this.rotateLeft(p)}else{this.rotateLeft(p);this.rotateRight(p)}}},SplayTree.prototype.splay=function splay(x){var p,gp,ggp,l,r;while(x.parent){p=x.parent;gp=p.parent;if(gp&&gp.parent){ggp=gp.parent;if(ggp.left===gp)ggp.left=x;else ggp.right=x;x.parent=ggp}else{x.parent=null;this._root=x}l=x.left;r=x.right;if(x===p.left){if(gp)if(gp.left===p){if(p.right){gp.left=p.right;gp.left.parent=gp}else gp.left=null;p.right=gp;gp.parent=p}else{if(l){gp.right=l;l.parent=gp}else gp.right=null;x.left=gp;gp.parent=x}if(r){p.left=r;r.parent=p}else p.left=null;x.right=p;p.parent=x}else{if(gp)if(gp.right===p){if(p.left){gp.right=p.left;gp.right.parent=gp}else gp.right=null;p.left=gp;gp.parent=p}else{if(r){gp.left=r;r.parent=gp}else gp.left=null;x.right=gp;gp.parent=x}if(l){p.right=l;l.parent=p}else p.right=null;x.left=p;p.parent=x}}},SplayTree.prototype.replace=function replace(u,v){if(!u.parent)this._root=v;else if(u===u.parent.left)u.parent.left=v;else u.parent.right=v;if(v)v.parent=u.parent},SplayTree.prototype.minNode=function minNode(u){if(u===void 0)u=this._root;if(u)while(u.left)u=u.left;return u},SplayTree.prototype.maxNode=function maxNode(u){if(u===void 0)u=this._root;if(u)while(u.right)u=u.right;return u},SplayTree.prototype.insert=function insert(key,data){var z=this._root;var p=null;var comp=this._compare;var cmp;if(this._noDuplicates)while(z){p=z;cmp=comp(z.key,key);if(cmp===0)return;else if(comp(z.key,key)<0)z=z.right;else z=z.left}else while(z){p=z;if(comp(z.key,key)<0)z=z.right;else z=z.left}z={key:key,data:data,left:null,right:null,parent:p};if(!p)this._root=z;else if(comp(p.key,z.key)<0)p.right=z;else p.left=z;this.splay(z);this._size++;return z},SplayTree.prototype.find=function find(key){var z=this._root;var comp=this._compare;while(z){var cmp=comp(z.key,key);if(cmp<0)z=z.right;else if(cmp>0)z=z.left;else return z}return null},SplayTree.prototype.contains=function contains(key){var node=this._root;var comparator=this._compare;while(node){var cmp=comparator(key,node.key);if(cmp===0)return true;else if(cmp<0)node=node.left;else node=node.right}return false},SplayTree.prototype.remove=function remove(key){var z=this.find(key);if(!z)return false;this.splay(z);if(!z.left)this.replace(z,z.right);else if(!z.right)this.replace(z,z.left);else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true},SplayTree.prototype.removeNode=function removeNode(z){if(!z)return false;this.splay(z);if(!z.left)this.replace(z,z.right);else if(!z.right)this.replace(z,z.left);else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true},SplayTree.prototype.erase=function erase(key){var z=this.find(key);if(!z)return;this.splay(z);var s=z.left;var t=z.right;var sMax=null;if(s){s.parent=null;sMax=this.maxNode(s);this.splay(sMax);this._root=sMax}if(t){if(s)sMax.right=t;else this._root=t;t.parent=sMax}this._size--},SplayTree.prototype.pop=function pop(){var node=this._root,returnValue=null;if(node){while(node.left)node=node.left;returnValue={key:node.key,data:node.data};this.remove(node.key)}return returnValue},SplayTree.prototype.next=function next(node){var successor=node;if(successor)if(successor.right){successor=successor.right;while(successor&&successor.left)successor=successor.left}else{successor=node.parent;while(successor&&successor.right===node){node=successor;successor=successor.parent}}return successor},SplayTree.prototype.prev=function prev(node){var predecessor=node;if(predecessor)if(predecessor.left){predecessor=predecessor.left;while(predecessor&&predecessor.right)predecessor=predecessor.right}else{predecessor=node.parent;while(predecessor&&predecessor.left===node){node=predecessor;predecessor=predecessor.parent}}return predecessor},SplayTree.prototype.forEach=function forEach(callback){var current=this._root;var s=[],done=false,i=0;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();callback(current,i++);current=current.right}else done=true;return this},SplayTree.prototype.range=function range(low,high,fn,ctx){var Q=[];var compare=this._compare;var node=this._root,cmp;while(Q.length!==0||node)if(node){Q.push(node);node=node.left}else{node=Q.pop();cmp=compare(node.key,high);if(cmp>0)break;else if(compare(node.key,low)>=0)if(fn.call(ctx,node))return this;node=node.right}return this},SplayTree.prototype.keys=function keys(){var current=this._root;var s=[],r=[],done=false;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();r.push(current.key);current=current.right}else done=true;return r},SplayTree.prototype.values=function values(){var current=this._root;var s=[],r=[],done=false;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();r.push(current.data);current=current.right}else done=true;return r},SplayTree.prototype.at=function at(index){var current=this._root;var s=[],done=false,i=0;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();if(i===index)return current;i++;current=current.right}else done=true;return null},SplayTree.prototype.load=function load(keys,values,presort){if(keys===void 0)keys=[];if(values===void 0)values=[];if(presort===void 0)presort=false;if(this._size!==0)throw new Error("bulk-load: tree is not empty");var size=keys.length;if(presort)sort(keys,values,0,size-1,this._compare);this._root=loadRecursive(null,keys,values,0,size);this._size=size;return this},SplayTree.prototype.min=function min(){var node=this.minNode(this._root);if(node)return node.key;else return null},SplayTree.prototype.max=function max(){var node=this.maxNode(this._root);if(node)return node.key;else return null},SplayTree.prototype.isEmpty=function isEmpty(){return this._root===null},prototypeAccessors.size.get=function(){return this._size},SplayTree.createTree=function createTree(keys,values,comparator,presort,noDuplicates){return new SplayTree(comparator,noDuplicates).load(keys,values,presort)},Object.defineProperties(SplayTree.prototype,prototypeAccessors);var NORMAL=0,NON_CONTRIBUTING=1,SAME_TRANSITION=2,DIFFERENT_TRANSITION=3,INTERSECTION=0,UNION=1,DIFFERENCE=2,XOR=3;function computeFields(event,prev,operation){if(prev===null){event.inOut=false;event.otherInOut=true}else{if(event.isSubject===prev.isSubject){event.inOut=!prev.inOut;event.otherInOut=prev.otherInOut}else{event.inOut=!prev.otherInOut;event.otherInOut=prev.isVertical()?!prev.inOut:prev.inOut}if(prev)event.prevInResult=!inResult(prev,operation)||prev.isVertical()?prev.prevInResult:prev}var isInResult=inResult(event,operation);if(isInResult)event.resultTransition=determineResultTransition(event,operation);else event.resultTransition=0}function inResult(event,operation){switch(event.type){case NORMAL:switch(operation){case INTERSECTION:return!event.otherInOut;case UNION:return event.otherInOut;case DIFFERENCE:return event.isSubject&&event.otherInOut||!event.isSubject&&!event.otherInOut;case XOR:return true}break;case SAME_TRANSITION:return operation===INTERSECTION||operation===UNION;case DIFFERENT_TRANSITION:return operation===DIFFERENCE;case NON_CONTRIBUTING:return false}return false}function determineResultTransition(event,operation){var thisIn=!event.inOut;var thatIn=!event.otherInOut;var isIn;switch(operation){case INTERSECTION:isIn=thisIn&&thatIn;break;case UNION:isIn=thisIn||thatIn;break;case XOR:isIn=thisIn^thatIn;break;case DIFFERENCE:if(event.isSubject)isIn=thisIn&&!thatIn;else isIn=thatIn&&!thisIn;break}return isIn?+1:-1}var SweepEvent=function SweepEvent(point,left,otherEvent,isSubject,edgeType){this.left=left;this.point=point;this.otherEvent=otherEvent;this.isSubject=isSubject;this.type=edgeType||NORMAL;this.inOut=false;this.otherInOut=false;this.prevInResult=null;this.resultTransition=0;this.otherPos=-1;this.outputContourId=-1;this.isExteriorRing=true},prototypeAccessors$1={inResult:{configurable:true}};function equals(p1,p2){if(p1[0]===p2[0])if(p1[1]===p2[1])return true;else return false;return false}SweepEvent.prototype.isBelow=function isBelow(p){var p0=this.point,p1=this.otherEvent.point;return this.left?(p0[0]-p[0])*(p1[1]-p[1])-(p1[0]-p[0])*(p0[1]-p[1])>0:(p1[0]-p[0])*(p0[1]-p[1])-(p0[0]-p[0])*(p1[1]-p[1])>0},SweepEvent.prototype.isAbove=function isAbove(p){return!this.isBelow(p)},SweepEvent.prototype.isVertical=function isVertical(){return this.point[0]===this.otherEvent.point[0]},prototypeAccessors$1.inResult.get=function(){return this.resultTransition!==0},SweepEvent.prototype.clone=function clone(){var copy=new SweepEvent(this.point,this.left,this.otherEvent,this.isSubject,this.type);copy.contourId=this.contourId;copy.resultTransition=this.resultTransition;copy.prevInResult=this.prevInResult;copy.isExteriorRing=this.isExteriorRing;copy.inOut=this.inOut;copy.otherInOut=this.otherInOut;return copy},Object.defineProperties(SweepEvent.prototype,prototypeAccessors$1);var epsilon=11102230246251565e-32,splitter=134217729,resulterrbound=(3+8*epsilon)*epsilon;function sum(elen,e,flen,f,h){var Q,Qnew,hh,bvirt;var enow=e[0];var fnow=f[0];var eindex=0;var findex=0;if(fnow>enow===fnow>-enow){Q=enow;enow=e[++eindex]}else{Q=fnow;fnow=f[++findex]}var hindex=0;if(eindexenow===fnow>-enow){Qnew=enow+Q;hh=Q-(Qnew-enow);enow=e[++eindex]}else{Qnew=fnow+Q;hh=Q-(Qnew-fnow);fnow=f[++findex]}Q=Qnew;if(hh!==0)h[hindex++]=hh;while(eindexenow===fnow>-enow){Qnew=Q+enow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(enow-bvirt);enow=e[++eindex]}else{Qnew=Q+fnow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(fnow-bvirt);fnow=f[++findex]}Q=Qnew;if(hh!==0)h[hindex++]=hh}}while(eindex=errbound||-det>=errbound)return det;bvirt=ax-acx;acxtail=ax-(acx+bvirt)+(bvirt-cx);bvirt=bx-bcx;bcxtail=bx-(bcx+bvirt)+(bvirt-cx);bvirt=ay-acy;acytail=ay-(acy+bvirt)+(bvirt-cy);bvirt=by-bcy;bcytail=by-(bcy+bvirt)+(bvirt-cy);if(acxtail===0&&acytail===0&&bcxtail===0&&bcytail===0)return det;errbound=ccwerrboundC*detsum+resulterrbound*Math.abs(det);det+=acx*bcytail+bcy*acxtail-(acy*bcxtail+bcx*acytail);if(det>=errbound||-det>=errbound)return det;s1=acxtail*bcy;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcy;bhi=c-(c-bcy);blo=bcy-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcx;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcx;bhi=c-(c-bcx);blo=bcx-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C1len=sum(4,B,4,u,C1);s1=acx*bcytail;c=splitter*acx;ahi=c-(c-acx);alo=acx-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acy*bcxtail;c=splitter*acy;ahi=c-(c-acy);alo=acy-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C2len=sum(C1len,C1,4,u,C2);s1=acxtail*bcytail;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcxtail;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var Dlen=sum(C2len,C2,4,u,D);return D[Dlen-1]}function orient2d(ax,ay,bx,by,cx,cy){var detleft=(ay-cy)*(bx-cx);var detright=(ax-cx)*(by-cy);var det=detleft-detright;if(detleft===0||detright===0||detleft>0!==detright>0)return det;var detsum=Math.abs(detleft+detright);if(Math.abs(det)>=ccwerrboundA*detsum)return det;return-orient2dadapt(ax,ay,bx,by,cx,cy,detsum)}function signedArea(p0,p1,p2){var res=orient2d(p0[0],p0[1],p1[0],p1[1],p2[0],p2[1]);if(res>0)return-1;if(res<0)return 1;return 0}function compareEvents(e1,e2){var p1=e1.point;var p2=e2.point;if(p1[0]>p2[0])return 1;if(p1[0]p2[1]?1:-1;return specialCases(e1,e2,p1)}function specialCases(e1,e2,p1,p2){if(e1.left!==e2.left)return e1.left?1:-1;if(signedArea(p1,e1.otherEvent.point,e2.otherEvent.point)!==0)return!e1.isBelow(e2.otherEvent.point)?1:-1;return!e1.isSubject&&e2.isSubject?1:-1}function divideSegment(se,p,queue){var r=new SweepEvent(p,false,se,se.isSubject);var l=new SweepEvent(p,true,se.otherEvent,se.isSubject);if(equals(se.point,se.otherEvent.point))console.warn("what is that, a collapsed segment?",se);r.contourId=l.contourId=se.contourId;if(compareEvents(l,se.otherEvent)>0){se.otherEvent.left=true;l.left=false}se.otherEvent.otherEvent=l;se.otherEvent=r;queue.push(l);queue.push(r);return queue}function crossProduct(a,b){return a[0]*b[1]-a[1]*b[0]}function dotProduct(a,b){return a[0]*b[0]+a[1]*b[1]}function intersection(a1,a2,b1,b2,noEndpointTouch){var va=[a2[0]-a1[0],a2[1]-a1[1]];var vb=[b2[0]-b1[0],b2[1]-b1[1]];function toPoint(p,s,d){return[p[0]+s*d[0],p[1]+s*d[1]]}var e=[b1[0]-a1[0],b1[1]-a1[1]];var kross=crossProduct(va,vb);var sqrKross=kross*kross;var sqrLenA=dotProduct(va,va);if(sqrKross>0){var s=crossProduct(e,vb)/kross;if(s<0||s>1)return null;var t=crossProduct(e,va)/kross;if(t<0||t>1)return null;if(s===0||s===1)return noEndpointTouch?null:[toPoint(a1,s,va)];if(t===0||t===1)return noEndpointTouch?null:[toPoint(b1,t,vb)];return[toPoint(a1,s,va)]}kross=crossProduct(e,va);sqrKross=kross*kross;if(sqrKross>0)return null;var sa=dotProduct(va,e)/sqrLenA;var sb=sa+dotProduct(va,vb)/sqrLenA;var smin=Math.min(sa,sb);var smax=Math.max(sa,sb);if(smin<=1&&smax>=0){if(smin===1)return noEndpointTouch?null:[toPoint(a1,smin>0?smin:0,va)];if(smax===0)return noEndpointTouch?null:[toPoint(a1,smax<1?smax:1,va)];if(noEndpointTouch&&smin===0&&smax===1)return null;return[toPoint(a1,smin>0?smin:0,va),toPoint(a1,smax<1?smax:1,va)]}return null}function possibleIntersection(se1,se2,queue){var inter=intersection(se1.point,se1.otherEvent.point,se2.point,se2.otherEvent.point);var nintersections=inter?inter.length:0;if(nintersections===0)return 0;if(nintersections===1&&(equals(se1.point,se2.point)||equals(se1.otherEvent.point,se2.otherEvent.point)))return 0;if(nintersections===2&&se1.isSubject===se2.isSubject)return 0;if(nintersections===1){if(!equals(se1.point,inter[0])&&!equals(se1.otherEvent.point,inter[0]))divideSegment(se1,inter[0],queue);if(!equals(se2.point,inter[0])&&!equals(se2.otherEvent.point,inter[0]))divideSegment(se2,inter[0],queue);return 1}var events=[];var leftCoincide=false;var rightCoincide=false;if(equals(se1.point,se2.point))leftCoincide=true;else if(compareEvents(se1,se2)===1)events.push(se2,se1);else events.push(se1,se2);if(equals(se1.otherEvent.point,se2.otherEvent.point))rightCoincide=true;else if(compareEvents(se1.otherEvent,se2.otherEvent)===1)events.push(se2.otherEvent,se1.otherEvent);else events.push(se1.otherEvent,se2.otherEvent);if(leftCoincide&&rightCoincide||leftCoincide){se2.type=NON_CONTRIBUTING;se1.type=se2.inOut===se1.inOut?SAME_TRANSITION:DIFFERENT_TRANSITION;if(leftCoincide&&!rightCoincide)divideSegment(events[1].otherEvent,events[0].point,queue);return 2}if(rightCoincide){divideSegment(events[0],events[1].point,queue);return 3}if(events[0]!==events[3].otherEvent){divideSegment(events[0],events[1].point,queue);divideSegment(events[1],events[2].point,queue);return 3}divideSegment(events[0],events[1].point,queue);divideSegment(events[3].otherEvent,events[2].point,queue);return 3}function compareSegments(le1,le2){if(le1===le2)return 0;if(signedArea(le1.point,le1.otherEvent.point,le2.point)!==0||signedArea(le1.point,le1.otherEvent.point,le2.otherEvent.point)!==0){if(equals(le1.point,le2.point))return le1.isBelow(le2.otherEvent.point)?-1:1;if(le1.point[0]===le2.point[0])return le1.point[1]le2.contourId?1:-1}}else return le1.isSubject?-1:1;return compareEvents(le1,le2)===1?1:-1}function subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation){var sweepLine=new SplayTree(compareSegments);var sortedEvents=[];var rightbound=Math.min(sbbox[2],cbbox[2]);var prev,next,begin;while(eventQueue.length!==0){var event=eventQueue.pop();sortedEvents.push(event);if(operation===INTERSECTION&&event.point[0]>rightbound||operation===DIFFERENCE&&event.point[0]>sbbox[2])break;if(event.left){next=prev=sweepLine.insert(event);begin=sweepLine.minNode();if(prev!==begin)prev=sweepLine.prev(prev);else prev=null;next=sweepLine.next(next);var prevEvent=prev?prev.key:null;var prevprevEvent=void 0;computeFields(event,prevEvent,operation);if(next)if(possibleIntersection(event,next.key,eventQueue)===2){computeFields(event,prevEvent,operation);computeFields(event,next.key,operation)}if(prev)if(possibleIntersection(prev.key,event,eventQueue)===2){var prevprev=prev;if(prevprev!==begin)prevprev=sweepLine.prev(prevprev);else prevprev=null;prevprevEvent=prevprev?prevprev.key:null;computeFields(prevEvent,prevprevEvent,operation);computeFields(event,prevEvent,operation)}}else{event=event.otherEvent;next=prev=sweepLine.find(event);if(prev&&next){if(prev!==begin)prev=sweepLine.prev(prev);else prev=null;next=sweepLine.next(next);sweepLine.remove(event);if(next&&prev)possibleIntersection(prev.key,next.key,eventQueue)}}}return sortedEvents}var Contour=function Contour(){this.points=[];this.holeIds=[];this.holeOf=null;this.depth=null};function orderEvents(sortedEvents){var event,i,len,tmp;var resultEvents=[];for(i=0,len=sortedEvents.length;iorigPos)newPos--;return newPos}function initializeContourFromContext(event,contours,contourId){var contour=new Contour;if(event.prevInResult!=null){var prevInResult=event.prevInResult;var lowerContourId=prevInResult.outputContourId;var lowerResultTransition=prevInResult.resultTransition;if(lowerResultTransition>0){var lowerContour=contours[lowerContourId];if(lowerContour.holeOf!=null){var parentContourId=lowerContour.holeOf;contours[parentContourId].holeIds.push(contourId);contour.holeOf=parentContourId;contour.depth=contours[lowerContourId].depth}else{contours[lowerContourId].holeIds.push(contourId);contour.holeOf=lowerContourId;contour.depth=contours[lowerContourId].depth+1}}else{contour.holeOf=null;contour.depth=contours[lowerContourId].depth}}else{contour.holeOf=null;contour.depth=0}return contour}function connectEdges(sortedEvents){var i,len;var resultEvents=orderEvents(sortedEvents);var processed={};var contours=[];var loop=function(){if(processed[i])return;var contourId=contours.length;var contour=initializeContourFromContext(resultEvents[i],contours,contourId);var markAsProcessed=function(pos){processed[pos]=true;resultEvents[pos].outputContourId=contourId};var pos=i;var origPos=i;var initial=resultEvents[i].point;contour.points.push(initial);while(true){markAsProcessed(pos);pos=resultEvents[pos].otherPos;markAsProcessed(pos);contour.points.push(resultEvents[pos].point);pos=nextPos(pos,resultEvents,processed,origPos);if(pos==origPos)break}contours.push(contour)};for(i=0,len=resultEvents.length;i0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function defaultCompare(a,b){return ab?1:0}TinyQueue.prototype={push:function(item){this.data.push(item);this.length++;this._up(this.length-1)},pop:function(){if(this.length===0)return undefined;var top=this.data[0];this.length--;if(this.length>0){this.data[0]=this.data[this.length];this._down(0)}this.data.pop();return top},peek:function(){return this.data[0]},_up:function(pos){var data=this.data;var compare=this.compare;var item=data[pos];while(pos>0){var parent=pos-1>>1;var current=data[parent];if(compare(item,current)>=0)break;data[pos]=current;pos=parent}data[pos]=item},_down:function(pos){var data=this.data;var compare=this.compare;var halfLength=this.length>>1;var item=data[pos];while(pos=0)break;data[pos]=best;pos=left}data[pos]=item}},tinyqueue.default=default_1;var max=Math.max,min=Math.min,contourId=0;function processPolygon(contourOrHole,isSubject,depth,Q,bbox,isExteriorRing){var i,len,s1,s2,e1,e2;for(i=0,len=contourOrHole.length-1;i0)e2.left=true;else e1.left=true;var x=s1[0],y=s1[1];bbox[0]=min(bbox[0],x);bbox[1]=min(bbox[1],y);bbox[2]=max(bbox[2],x);bbox[3]=max(bbox[3],y);Q.push(e1);Q.push(e2)}}function fillQueue(subject,clipping,sbbox,cbbox,operation){var eventQueue=new tinyqueue(null,compareEvents);var polygonSet,isExteriorRing,i,ii,j,jj;for(i=0,ii=subject.length;icbbox[2]||cbbox[0]>sbbox[2]||sbbox[1]>cbbox[3]||cbbox[1]>sbbox[3])if(operation===INTERSECTION)result=EMPTY;else if(operation===DIFFERENCE)result=subject;else if(operation===UNION||operation===XOR)result=subject.concat(clipping);return result}function boolean(subject,clipping,operation){if(typeof subject[0][0][0]==="number")subject=[subject];if(typeof clipping[0][0][0]==="number")clipping=[clipping];var trivial=trivialOperation(subject,clipping,operation);if(trivial)return trivial===EMPTY?null:trivial;var sbbox=[Infinity,Infinity,-Infinity,-Infinity];var cbbox=[Infinity,Infinity,-Infinity,-Infinity];var eventQueue=fillQueue(subject,clipping,sbbox,cbbox,operation);trivial=compareBBoxes(subject,clipping,sbbox,cbbox,operation);if(trivial)return trivial===EMPTY?null:trivial;var sortedEvents=subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation);var contours=connectEdges(sortedEvents);var polygons=[];for(var i=0;ipt[1]!=yj>pt[1]&&pt[0]<(xj-xi)*(pt[1]-yi)/(yj-yi)+xi&&(isInside=!isInside)}return isInside}return insidePoly},GeometryUtilCls.prototype.isPointInBbox=function(pt,bbox){for(var minX=1/0,minY=1/0,maxX=-1/0,maxY=-1/0,i=0;iminX&&pt[0]minY&&pt[1](cp2[1]-cp1[1])*(p[0]-cp1[0])},intersection=function(){var dc=[cp1[0]-cp2[0],cp1[1]-cp2[1]],dp=[s[0]-e[0],s[1]-e[1]],n1=cp1[0]*cp2[1]-cp1[1]*cp2[0],n2=s[0]*e[1]-s[1]*e[0],n3=1/(dc[0]*dp[1]-dc[1]*dp[0]);return[(n1*dp[0]-n2*dc[0])*n3,(n1*dp[1]-n2*dc[1])*n3]},outputList=subjectPolygon=this.makesureAntiClockwise(subjectPolygon),cp1=(clipPolygon=this.makesureClockwise(clipPolygon))[clipPolygon.length-1],j=0,jlen=clipPolygon.length;jSUBDIVISION_PRECISION&&++i>=0),easeFunction},createObjectURL:function(code,contentType){void 0===contentType&&(contentType="text/javascript; charset=utf-8");var url=null;try{url=(globalInstance.URL||globalInstance.webkitURL).createObjectURL(new Blob([code],{type:contentType}))}catch(e){url=null}return url},revokeObjectURL:function(url){try{(globalInstance.URL||globalInstance.webkitURL).revokeObjectURL(url)}catch(e){}},arrayToVIObj:function(array){for(var obj={},i=0,l=array.length;iarray.length&&(e=array.length);for(var j=s;j>24&255)/255,(hex>>16&255)/255,(hex>>8&255)/255,(255&hex)/255]},isEmpty:function(obj){for(var i in obj)if(obj.hasOwnProperty(i))return!1;return!0},delArrayItem:function(array,n){return 0<=n&&array.splice(n,1),array},startsWith:function(_long,_short){return _long.startsWith?_long.startsWith(_short):_long.substr(0,_short.length)===_short},deleteItemFromArray:function(array,item){item=Util.indexOf(array,item);return Util.delArrayItem(array,item)},deleteItemFromArrayByIndex:function(array,index){return Util.delArrayItem(array,index)},filter:function(array,fun,context){var ret=[];return Util.each(array,function(item,i){fun.call(context,item,i)&&ret.push(item)}),ret},indexOf:function(array,item){if(array&&array.length){if(array.indexOf)return array.indexOf(item);for(var i=0;i=zooms[0]&&zoom<=zooms[1]},getTileTagByZoom:function(key,optimalZoom,forceAll){void 0===forceAll&&(forceAll=!1);key=(key=void 0===key?"":key).split(",")[0]||"";return!forceAll&&key&&optimalZoom&&TagMap[optimalZoom]||"all"},getTileTagByZ:function(z,optimalZoom,forceAll){return!(forceAll=void 0!==forceAll&&forceAll)&&z&&optimalZoom&&TagMap[optimalZoom]||"all"},containTag:function(tag1,tag2){return!(!tag1||!tag2)&&(tag1=this.getNumberByTag(tag1),this.getNumberByTag(tag2)<=tag1)},getNumberTag:function(tag){var numberTag;switch(tag=void 0===tag?"all":tag){case"lite":numberTag=0;break;case"left":numberTag=1;break;default:numberTag=2}return numberTag},getStringTag:function(tag){var numberTag;switch(tag=void 0===tag?2:tag){case 0:numberTag=NebulaTagType.LITE;break;case 1:numberTag=NebulaTagType.LEFT;break;default:numberTag=NebulaTagType.ALL}return numberTag},getNumberByTag:function(tag){var tagNumber=0;switch(tag){case"lite":tagNumber=0;break;case"left":tagNumber=1;break;case"all":tagNumber=2}return tagNumber}};function timeoutDefer(fn){var time=+new Date,timeToCall=Math.max(0,(Browser.android?50:20)-(time-lastTime));return lastTime=time+timeToCall,globalInstance.setTimeout(fn,50)}function timeoutClear(id){globalInstance.clearTimeout(id)}function getPrefixed(name){for(var fn,prefixes=["webkit","moz","o","ms"],i=0;i.plan dt>.afterdt{height:100%}.amap-lib-driving .plan dt.walk .beforedt{left:-27px;width:10px;height:10px;margin-top:-6px;border:2px solid #ddd}.amap-lib-driving .plan dt.bus .beforedt,.amap-lib-driving .plan dt.subway .beforedt{left:-31px;width:24px;height:24px;margin-top:-12px;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan dt.bus .afterdt{background-color:#33a7ff}.amap-lib-driving .plan dt.subway .afterdt{background-color:#3baeca}.amap-lib-driving .plan dt.bus .beforedt{background-position:-164px -102px}.amap-lib-driving .plan dt.subway .beforedt{background-position:-243px -101px}.amap-lib-driving .plan-nobus{margin:0}.amap-lib-driving .plan-nobus dt span{display:block;line-height:18px}.amap-lib-driving .plan-nobus dt .beforedt{left:-31px;width:21px;height:21px;margin-top:-12px;border:1px solid #ddd;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan-nobus dt.end .beforedt,.amap-lib-driving .plan-nobus dt.start .beforedt,.amap-lib-driving .plan-nobus dt.via .beforedt{border:none}.amap-lib-driving .plan-nobus dt.turn-go .beforedt{background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/turn-go.png)}.amap-lib-driving .plan-nobus dt.turn-advance .beforedt{background-position:-46px -23px}.amap-lib-driving .plan-nobus dt.turn-left .beforedt{background-position:-87px -23px}.amap-lib-driving .plan-nobus dt.turn-right .beforedt{background-position:-124px -23px}.amap-lib-driving .plan-nobus dt.turn-keepleft .beforedt{background-position:-406px -23px}.amap-lib-driving .plan-nobus dt.turn-keepright .beforedt{background-position:-445px -23px}.amap-lib-driving .plan-nobus dt.turn-leftup .beforedt{background-position:-165px -23px}.amap-lib-driving .plan-nobus dt.turn-leftdown .beforedt{background-position:-246px -23px}.amap-lib-driving .plan-nobus dt.turn-rightup .beforedt{background-position:-206px -23px}.amap-lib-driving .plan-nobus dt.turn-rightdown .beforedt{background-position:-284px -23px}.amap-lib-driving .plan-nobus dt.turn-leftback .beforedt{background-position:-327px -23px}.amap-lib-driving .plan-nobus dt.turn-rightback .beforedt{background-position:-365px -23px}.amap-lib-driving .plan-nobus dt.turn-enterRing .beforedt{background-position:-561px -23px}.amap-lib-driving .plan-nobus dt.turn-leaveRing .beforedt{background-position:-602px -23px}.amap-lib-driving .plan-nobus dt.turn-slow .beforedt{background-position:-524px -23px}.amap-lib-driving .plan-nobus dt.turn-crosswalk .beforedt{background-position:-126px -184px}.amap-lib-driving .plan-nobus dt.turn-overpass .beforedt{background-position:-164px -184px}.amap-lib-driving .plan-nobus dt.turn-underpass .beforedt{background-position:-85px -184px}.amap-lib-driving .plan-nobus dt.turn-squarepass .beforedt{background-position:-204px -184px}.amap-lib-marker-from,.amap-lib-marker-mid,.amap-lib-marker-to{position:absolute;width:25px;height:30px;color:#e90000;background-size:100% 100%}.amap-lib-marker-from{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/start.png);cursor:pointer}.amap-lib-marker-to{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/end.png);cursor:pointer}.amap-lib-marker-mid{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/mid.png)}.amap-combo-close{position:absolute;top:11px;right:10px;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -1px -151px;width:12px;height:12px;cursor:pointer}.amap-content-body{min-width:200px;max-width:240px;font-family:Helvetica,Hiragino Sans GB,Microsoft Yahei,微软雅黑,Arial,sans-serif;box-shadow:0 0 .5px rgba(0,0,100,.6);background:none repeat scroll 0 0 #fff;border-radius:2px;text-align:left;border:1px solid silver}.amap-combo-sharp{margin:0 auto;bottom:1px;position:relative;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -5px -564px;width:18px;height:9px}.amap-lib-infowindow{padding:0;position:relative;background-color:#fff;margin:8px}.amap-lib-infowindow-title{line-height:22px;font-size:14px;border-bottom:1px solid #99adce;padding-right:15px}.amap-lib-infowindow-content{padding-top:5px;overflow:hidden;font-size:12px;zoom:1}'); -_jsload_('AMap.Driving', '!function(AMap){"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearRoute();this._route=this.addOverlays([],walkPaths,drivingPaths,{strokeOpacity:.4})};me.clearRoute=function(){if(this._route){for(var i=0;i0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearOverlays(1);this._overlays=this.addOverlays(points,walkPaths,drivingPaths);if(me.options["autoFitView"]){me.options.map.setFitView(this._overlays)}};me.addOverlays=function(points,walkPaths,drivingPaths,styleOptions){var _this=this;var map=this.options.map;styleOptions=styleOptions||{strokeOpacity:1};var _overlays=[];if(!this.hideMarkers){if(points[0]){if(!this.startMarker){this.startMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'
\',innerOverlay:true});this.startMarker.isOfficial=true}var start=this.startMarker;start.setPosition(points[0].location);start.setMap(map);start._data=points[0];start.on("click",this.listener.markerClick);AMap.Event.addListener(start,"click",this.listener.markerClick);_overlays.push(start)}if(points.length>1){if(!this.endMarker){this.endMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'
\',innerOverlay:true});this.endMarker.isOfficial=true}var end=this.endMarker;end.setPosition(points[points.length-1].location);end.setMap(map);end._data=points[points.length-1];end.on("click",this.listener.markerClick);AMap.Event.addListener(end,"click",this.listener.markerClick);_overlays.push(end)}for(var i=1,point;i\',innerOverlay:true});point._data=points[i];AMap.Event.addListener(point,"click",this.listener.markerClick)}point.isOfficial=true;_overlays.push(point)}}styleOptions=me.util.extend({},me._styleOpts,styleOptions);for(var _i2=0,drivingPath;_i2"+route.policy+"":"";var result=me.util.getTime(route.time)+"("+me.util.getDistance(route.distance)+")"+policy;return result};me.util={};me.util.extend=function(dest){var sources=Array.prototype.slice.call(arguments,1),i,j,len,src;for(j=0,len=sources.length;j0){me.listener.unfocusTitleClick.call(unfocusTitles[0])}};me.listener={};me.listener.markerClick=function(){var data=this._data;if(data.type==="start"||data.type==="end"){me._infoWindow.setOffset(new AMap.Pixel(0,-30))}else{me._infoWindow.setOffset(new AMap.Pixel(0,0))}if(data.name==="起点"||data.name==="终点"||data.name==="途经点");else{me._infoWindow.setContent(me.view.createInfowindowContent(data));me._infoWindow.open(me.options.map,this.getPosition())}me.options.map.setCenter(this.getPosition())};me.listener.routeStepItem=function(){if(!me.options.map){var _p=this.parentNode;var _children=_p.children;var _stepIndex;for(var i=0,child;i<_children.length;i++){child=_children[i];if(child===this){_stepIndex=i;break}}me._eventSelf.emit("panelClick",{stepIndex:_stepIndex});return}if(me._highlightOverlay){me._highlightOverlay.setMap(null)}this.style.backgroundColor="rgb(240, 240, 240)";if(me.listener.routeStepItem.last){me.listener.routeStepItem.last.style.backgroundColor=""}me.listener.routeStepItem.last=this;var p=this.parentNode;var children=p.children;var stepIndex;for(var _i5=0,_child;_i5\');c.push(\'
\'+data.name+\' 详情»
\');c.push(\'
\');c.push(\'
\');c.push("
地址:"+data.address+"
");if(data.tel){c.push("
电话:"+data.tel+"
")}c.push("
");c.push("
");c.push("");div.innerHTML=c.join("");var sharp=document.createElement("div");sharp.className="amap-combo-sharp";div.appendChild(sharp);var close=document.createElement("div");close.className="amap-combo-close";div.appendChild(close);close.href="javascript: void(0)";AMap.Event.addDomListener(close,"touchend",function(e){me._infoWindow["close"]()});AMap.Event.addDomListener(close,"click",function(e){me._infoWindow["close"]()});content.appendChild(div);content.appendChild(close);content.appendChild(sharp);return content};me.view.createPanel=function(data){var div=document.createElement("div");div.className="amap-lib-driving";if(!data.routes){div.innerHTML="抱歉,没有合适的路线。";return div}var result=[];for(var i=0,route;i");if(roadNameArray.length>4){roadNameArray.splice(2,roadNameArray.length-4,"......");roadNames2=roadNameArray.join(">")}else{roadNames2=roadNames}var r=[];r.push(\'
\');r.push("

\');r.push(" "+roadNames2+"");r.push("

");r.push("

"+title+"

");var d=me.options.data;r.push(\' ");r.push("
");return r};me.view.createOpenitemDiv=function(index,title,data,isDisplay){var route=data.routes[index],steps=route.steps;var r=[];r.push(\'
\');r.push("
"+data.start.name+"
");for(var i=0,step;i \');r.push("
"+step.instruction);r.push(" ")}r.push("
"+data.end.name+"
");r.push("
");return r};me.getSigns=function(action){var signs="";var routeSign={"左转":"left","右转":"right","靠左":"keepleft","靠右":"keepright","向左前方行驶":"leftup","向左后方行驶":"leftdown","向右前方行驶":"rightup","向右后方行驶":"rightdown","左转调头":"leftback","右转调头":"rightback","进入环岛":"enterRing","离开环岛":"leaveRing","减速行驶":"slow","向左前方行走":"leftup","向左后方行走":"leftdown","向右前方行走":"rightup","向右后方行走":"rightdown","通过人行横道":"crosswalk","通过过街天桥":"overpass","通过地下通道":"underpass","通过广场":"squarepass"};signs=routeSign[action];if(!signs){signs="advance"}return signs}};var GetLL=function(){function GetLL(city){_classCallCheck(this,GetLL);this.city=city||"";this.CLASS_NAME="AMap.GetLL"}_createClass(GetLL,[{key:"getCity",value:function getCity(cbk){var url=AMap.getConfig().protocol+"://webapi.amap.com/maps/ipCity";AMap.WebService.get(url,{},function(status,data){if(status==="complete"){cbk(data)}else{cbk({})}})}},{key:"get",value:function get(keywordsList,defaultCity,cbk){var psearch=new PlaceSearch({extensions:"all"});var result=[];var getOne=function getOne(){if(keywordsList.length){var keyAndcity=keywordsList.shift();var keyword=keyAndcity["keyword"];var city=keyAndcity["city"]||defaultCity;if(!city){city=""}psearch["setCity"](city);psearch.search(keyword,function(status,data){if(status==="error"){cbk("error",data)}else if(status==="complete"){if(data["poiList"]&&data["poiList"]["pois"].length){result.push(data["poiList"]["pois"][0]);if(keywordsList.length){getOne()}else{cbk("complete",result)}}else{if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}}else if(status==="no_data"){if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}})}};getOne()}}]);return GetLL}();var PlaceSearch=function(_AMap$Event){_inherits(PlaceSearch,_AMap$Event);var _super=_createSuper(PlaceSearch);function PlaceSearch(opt){var _this;_classCallCheck(this,PlaceSearch);_this=_super.call(this);_this.closed=false;_this.opt=AMap.extend({showCover:true,autoFitView:true},opt||{});_this.opt["pageIndex"]=_this.opt["pageIndex"]||1;_this.opt["pageSize"]=typeof _this.opt["pageSize"]!=="number"||_this.opt["pageSize"]<0?10:_this.opt["pageSize"]>50?50:_this.opt["pageSize"];_this.url=AMap.getConfig().server+"/v3/place";return _this}_createClass(PlaceSearch,[{key:"search",value:function search(keyword,cbk){var params={s:"rsv3",children:+(this.opt["children"]?"1":"")};var map={city:"city",rankBy:"sortrule",type:"types",pageIndex:"page",pageSize:"offset",extensions:"extensions",citylimit:"citylimit"};this._mergeParams(this.opt,map,params);this._query(this.url+"/text",params,cbk,{keywords:keyword||""},"KEYWORD",arguments)}},{key:"setCity",value:function setCity(city){AMap.BuryPoint.add(this,"setCity");this.opt["city"]=city}},{key:"_mergeParams",value:function _mergeParams(data,map,params){for(var i in data){if(typeof data[i]!=="undefined"&&typeof map[i]!=="undefined"){params[map[i]]=data[i]}}return params}},{key:"_query",value:function _query(url,params,cbk,encodeURICom,type,args){var _this2=this;url=url+(params.length>0?"?"+params.join("&"):"");AMap.WebService.get(url,AMap.extend({type_:type,antiCrab:true},params,encodeURICom),function(status,data){if(status==="complete"){_this2._onComplete(data,cbk,type,args)}else{_this2._onError(data,cbk)}})}},{key:"_onComplete",value:function _onComplete(data,cbk,type,args){if(this.closed){return}var result;if(!parseInt(data.status,10)){result={info:data["info"]};AMap.Event.trigger(this,"error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{result={info:data["info"],poiList:{}};result["poiList"]={pois:[],count:parseInt(data["count"],10),pageIndex:this.opt["pageIndex"],pageSize:this.opt["pageSize"]};if(data["pois"]){for(var i=0;i0){poiDeepInfo["groupbuys"]=[]}for(var n=0;n0){poiDeepInfo["discounts"]=[]}for(var dis=0;dis0){args[0]=AMap.Util.parseLngLatData(args[0]);args[1]=AMap.Util.parseLngLatData(args[1]);if(args[0].lng&&args[0].lat){this.search_.apply(this,args)}else if(args[0]instanceof Array){var this_=this;var cbk=args[1];if(!this_.getLL){this_.getLL=new GetLL}this_.getLL.getCity(function(data){var city=data["citycode"]||"";this_.getLL.get(args[0],city,function(status,result){if(status==="error"){if(cbk&&typeof cbk==="function"){cbk("error",result)}}else if(status==="complete"){var start=result[0]["exit_location"]||result[0].location;var end=result[result.length-1]["entr_location"]||result[result.length-1].location;var wps=result.slice(1,result.length-1),ps=[];for(var i=0;i0)){result[pro]=filter.call(this,data[i][pro],pro,result)}else{result[pro]=data[i][pro]}}}results.push(result)}return results.length?results:null}},{key:"_isArray",value:function _isArray(array){if(Object.prototype.toString.call(array)==="[object Array]"){return true}return false}},{key:"close",value:function close(){this.closed=true}},{key:"open",value:function open(){this.closed=false}},{key:"_onComplete",value:function _onComplete(data,cbk,poiresult,extraOpts){if(this.closed){return}var result;var that=this;if(!parseInt(data["status"],10)){result={info:data["info"]};this.emit("error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{if(data["route"]){result={info:data["info"],origin:this._str2LngLat(data["route"]["origin"]),destination:this._str2LngLat(data["route"]["destination"]),routes:this._parseRoutes(data["route"]["paths"])};if(this.opt["extensions"]==="all"){result["taxi_cost"]=Math.ceil(data["route"]["taxi_cost"])}if(poiresult){result["start"]=poiresult[0];result["end"]=poiresult[poiresult.length-1];result["originName"]=result["start"].name;result["destinationName"]=result["end"].name;result["waypoints"]=poiresult.slice(1,poiresult.length-1);for(var i=0,len=result["waypoints"].length;i=0;f--)if(o=e[f])n=(a<3?o(n):a>3?o(r,t,n):o(r,t))||n;return a>3&&n&&Object.defineProperty(r,t,n),n}function __spreadArrays(){for(var e=0,r=0,t=arguments.length;r0){if(++i>=HOT_COUNT){return arguments[0]}}else{i=0}return t.apply(undefined,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var baseSetToString=!defineProperty?identity:function(e,r){return defineProperty(e,"toString",{configurable:true,enumerable:false,value:constant(r),writable:true})};var setToString=shortOut(baseSetToString);function arrayEach(e,r){var t=-1,i=e==null?0:e.length;while(++t-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isIterateeCall(e,r,t){if(!isObject(t)){return false}var i=typeof r;if(i=="number"?isArrayLike(t)&&isIndex(r,t.length):i=="string"&&r in t){return eq(t[r],e)}return false}function createAssigner(f){return baseRest(function(e,r){var t=-1,i=r.length,a=i>1?r[i-1]:undefined,n=i>2?r[2]:undefined;a=f.length>3&&typeof a=="function"?(i--,a):undefined;if(n&&isIterateeCall(r[0],r[1],n)){a=i<3?undefined:a;i=1}e=Object(e);while(++t-1}function listCacheSet(e,r){var t=this.ng,i=assocIndexOf(t,e);if(i<0){++this.size;t.push([e,r])}else{t[i][1]=r}return this}function ListCache(e){var r=-1,t=e==null?0:e.length;this.clear();while(++rf)){return false}var u=n.get(e);var l=n.get(r);if(u&&l){return u==r&&l==e}var v=-1,c=true,h=t&COMPARE_UNORDERED_FLAG?new SetCache:undefined;n.set(e,r);n.set(r,e);while(++v-1?i[a?e[n]:n]:undefined}}var nativeMax$1=Math.max;function findIndex(e,r,t){var i=e==null?0:e.length;if(!i){return-1}var a=t==null?0:toInteger(t);if(a<0){a=nativeMax$1(i+a,0)}return baseFindIndex(e,baseIteratee(r),a)}var find=createFind(findIndex);function baseMap(e,i){var a=-1,n=isArrayLike(e)?Array(e.length):[];baseEach(e,function(e,r,t){n[++a]=i(e,r,t)});return n}function map(e,r){var t=isArray(e)?arrayMap:baseMap;return t(e,baseIteratee(r))}function isEqual(e,r){return baseIsEqual(e,r)}function isUndefined(e){return e===undefined}function baseSome(e,i){var a;baseEach(e,function(e,r,t){a=i(e,r,t);return!a});return!!a}function some(e,r,t){var i=isArray(e)?arraySome:baseSome;if(t&&isIterateeCall(e,r,t)){r=undefined}return i(e,baseIteratee(r))}var LocalZoom=13;var zoomRange=[2,26];var CONSTS={ID:"__id__",Rp:zoomRange[1],Mp:zoomRange[0],jp:.8,Pp:.2,YM:5,KM:{dom:"div",id:"_amap_custom_labellayer_div_",className:"amap-layer",style:{cssText:"position:absolute;top:0;left:0;",zIndex:"",width:"",height:"",visible:""}},Dp:{Op:180,Ad:70,Td:360,t1:300,e1:30,Bd:Math.PI/10},XM:{top:3,right:3,bottom:3,left:3},JM:{ZM:"top",QM:"right",tj:"bottom",LEFT:"left",nj:"middle",ij:"center",ej:"alphabetic"},oj:{CLICK:"click",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",aj:"touchstart",uj:"touchend"},sj:{rank:1,angle:0,opacity:1,offset:[0,0],zooms:zoomRange,icon:{type:"image",image:"://visuallocal.amap.com/public/poi-marker.png",clipOrigin:[0,0],clipSize:[36,36],size:[36,36],anchor:"bottom-center",angel:0,qq:true,zooms:zoomRange},text:{type:"billboard",direction:"top",offset:[0,0],zooms:zoomRange,style:{fj:6,fontFamily:"sans-serif",fontSize:12,fontWeight:"normal",fillColor:[0,0,0,1],strokeWidth:0,strokeColor:[.988,.988,.988,1],borderColor:"transparent",padding:[3,3,3,3],backgroundColor:""}}},hj:{cj:{opacity:.2},vj:"fadeIn",lj:"fadeOut",dj:{bj:"start",RUNNING:"running",pj:"complete"},yj:{mj:"opacity",gj:"size"}},_d:3,wj:"_AMap_sdf_com_words",Mj:128,pc:["://sdf.amap.com","://sdf01.amap.com","://sdf02.amap.com","://sdf03.amap.com","://sdf04.amap.com"],sp:4,Cd:200/256,Ld:205/256,Aj:{kj:"纹理加载失败,请重试",Oj:"资源加载失败,请重试"},xj:"bufferChanged",Ij:"frameBufferChanged",Tj:"combineFrameBufferChanged",ic:1,ud:13,Cj:12,Ej:"__icon_combination",Nj:"__text_combination",Lj:{file:{0:"://vdata.amap.com/style_icon/2.0/icon-normal-big.png",1:"://vdata.amap.com/style_icon/2.0/icon-biz-big.png"},size:[40,40],Rj:10},Kp:{buffer:3,family:"ios9",size:24},Color:{Uj:[0,0,0,1],Gp:[0,0,0,0]},gH:"sdf",RB:"sdfJson",FN:"version"};var StaticSourceID;(function(e){e["nebula"]="nebula";e["nebulaLabel"]="nebulaLabel"})(StaticSourceID||(StaticSourceID={}));var DangerousFontSize=24;var EnumTextureIndex;(function(e){e[e["dynamic"]=0]="dynamic";e[e["icon"]=1]="icon"})(EnumTextureIndex||(EnumTextureIndex={}));var TextureMaxLength=2;var ImageStatus;(function(e){e["BLOB"]="blob";e["TOLOAD"]="toload";e["LOADING"]="loading";e["LOADED"]="loaded";e["UNLOADED"]="unloaded";e["ERROR"]="error";e["RELOADING"]="reloading";e["UNCOMBINED"]="uncombined";e["COMBINING"]="combining";e["COMBINED"]="combined"})(ImageStatus||(ImageStatus={}));var ColorMode=function(){function e(e,r){this.Ci=e;this.mask=r}e.wi={ZERO:0,ONE:1,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771};e.tH=[true,true,true,true];e.iH=[false,false,false,false];e.disabled=new e([e.wi.ONE,e.wi.ZERO,e.wi.ONE,e.wi.ZERO],e.iH);e.Mi=new e([e.wi.ONE,e.wi.ZERO,e.wi.ONE,e.wi.ZERO],e.tH);e.Ri=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.zi=new e([e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.Si=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ONE_MINUS_SRC_ALPHA],e.tH);e.eee=new e([e.wi.SRC_ALPHA,e.wi.ONE_MINUS_SRC_ALPHA,e.wi.ONE,e.wi.ZERO],e.tH);return e}();var StencilMode=function(){function e(e,r,t){this.stencilFunc=e;this.stencilOp=r;this.stencilMask=t}e.wi={NOTEQUAL:517,ALWAYS:519,EQUAL:514,GEQUAL:518,GREATER:516,LESS:513,NEVER:512,KEEP:7680,REPLACE:7681,ZERO:0,INCR_WRAP:34055,INCR:7682,DECR:7683};e.disable=new e({test:e.wi.ALWAYS,Li:0,mask:0},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],0);e.Ai=new e({test:e.wi.ALWAYS,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);e.writeWithStencil=new e({test:e.wi.LESS,Li:240,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.nH=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.$H=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.DH=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.FH=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.DECR],255);e.PH=new e({test:e.wi.ALWAYS,Li:255,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR],255);e.HH=new e({test:e.wi.NOTEQUAL,Li:1,mask:1},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.js=new e({test:e.wi.NOTEQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.nbStencil=new e({test:e.wi.EQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.outseaStencil=new e({test:e.wi.ALWAYS,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);e.TE=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR],255);e.FE=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.ZERO],255);e.test=new e({test:e.wi.NOTEQUAL,Li:254,mask:255},[e.wi.ZERO,e.wi.ZERO,e.wi.INCR],255);e.HE=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],0);e.ree=new e({test:e.wi.EQUAL,Li:0,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.iee=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.KEEP],255);e.aee=new e({test:e.wi.EQUAL,Li:1,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.INCR_WRAP],255);e.nee=new e({test:e.wi.NOTEQUAL,Li:254,mask:255},[e.wi.KEEP,e.wi.KEEP,e.wi.REPLACE],255);return e}();var globalInstance=typeof self===undefined?window:self;var assert=function(e){var r=[];for(var t=1;t=l?p:1;var V=[0,0,j,0];if(!m||!y){return}if(M){r.ge.set(this._f);n.Ae({a_vertex:{type:"vec2",buffer:m,Re:w,offset:0},a_texcoord:{type:"vec2",buffer:m,Re:w,offset:2*o},a_origin:{type:"vec2",buffer:m,Re:w,offset:4*o},a_texIndex:{type:"float",buffer:m,Re:w,offset:6*o},a_type:{type:"float",buffer:m,Re:w,offset:7*o},a_zooms:{type:"vec2",buffer:m,Re:w,offset:8*o},a_height:{type:"float",buffer:m,Re:w,offset:10*o},a_angle:{type:"float",buffer:m,Re:w,offset:11*o},a_highflag:{type:"float",buffer:m,Re:w,offset:12*o},a_visible:{type:"float",buffer:y,Re:0,offset:0}})}var $;for(var F=0;F_){y=_}if(m>g){m=g}n.globalAlpha=c*this.Wz;n.drawImage(e,p,b,y,m,t[0]*a,t[1]*a,h*a,d*a)};e.prototype.gp=function(e,r,t,i){var a=Support$1.scale,n=a===void 0?1:a;var o=this.Nz;if(!o){return}var f=r.style,s=f===void 0?{}:f;var u=i.opacity,l=u===void 0?1:u;var v=s.fontWeight,c=s.fontSize,h=s.fontFamily,d=h===void 0?"sans-serif":h,_=s.fillColor,g=s.strokeColor,y=s.strokeWidth,m=y===void 0?1:y,p=s.textAlign,b=p===void 0?"center":p,x=s.Gz,C=x===void 0?"Alphabetic":x;o.globalAlpha=l;o.globalAlpha=1;o.font=v+" "+c*n+"px "+d;o.textAlign=b;o.textBaseline=C;var S=t[0];var M=t[1];o.lineJoin="round";if(g&&m){o.strokeStyle=g;o.lineWidth=m;o.strokeText(e,S*n,M*n)}o.fillStyle=_;o.fillText(e,S*n,M*n)};e.prototype.Pz=function(){var e=this.canvas;var r=Support$1.scale;var t=this._size||[0,0],i=t[0],a=t[1]};e.prototype.Tz=function(){this.canvas.width=this.canvas.width};e.prototype.reset=function(){this.Pz()};e.prototype.destroy=function(){this.Pz()};e.prototype.Oz=function(e,r){if(r===void 0){r=[]}var t=r[0]||zoomRange[0];var i=r[1]||zoomRange[1];if(e>=t&&e<=i){return true}return false};e.prototype.Bz=function(e){var r=this._container;if(!r){r=this._container=this.see(this._map)}var t=Support$1.scale;var i=e.zIndex,a=i===void 0?100:i,n=e.opacity,o=e.visible,f=e.zooms,s=f===void 0?zoomRange:f;var u=this.wf.viewState.zoom;var l=this.Oz(u,s);if(!o||!l||n===0){r.style.display="none"}else{r.style.display="block"}this.Wz=n;var v=this._size;r.setAttribute("width",v[0]*t+"px");r.setAttribute("height",v[1]*t+"px");r.style.width=v[0]+"px";r.style.height=v[1]+"px";r.style.zIndex=a+""};e.prototype.see=function(e){var r=e.getContainer();var t=r.querySelector(".amap-layers");if(t){t.appendChild(this.canvas)}AMap.DomUtil.addClass(this.canvas,"amap-labellayers");return this.canvas};return e}();var SmartTypedArray=M["SmartTypedArray"];var LabelsLayerBaseRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.type="labelsLayer";e.wf=null;e.Ps={};e._viewMode="2D";e.Wf={};e.Bf={};e.TG={};e.uu=[0,0];return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!this.ac){this._map=a;this._view=a.getView();this.ac=a.z_;this.Mf=a.R_;this._viewMode=r.viewState.viewMode;this.fz=a.fS();if(!this._map.isDOMMode()){if(!this.Zz){this.Zz=new LabelsRender}}else{if(!this.Vz){this.Vz=new LabelsRenderDOMRender}}if(this.Zz){this.Zz.Mz({map:a,z_:a.z_,R_:a.R_,$i:e.Zn()})}}};e.prototype.Jz=function(){return{centerCoord:this.uu}};e.prototype.vi=function(e){if(this.fz){var r=this.fz.vi(e,"");return r}return null};e.prototype.destroy=function(){if(this.Zz){this.Zz.destroy();delete this.Zz}if(this.Vz){this.Vz.destroy();delete this.Vz}this.AG()};e.prototype.reset=function(){if(this.Zz){this.Zz.reset()}if(this.Vz){this.Vz.reset()}};e.prototype.Yz=function(e,r,t,i,a){this.Vz.Ce(e,r,t,i,a)};e.prototype.SG=function(){var e=typeof Int8Array!=="undefined";var r;if(e){r=new SmartTypedArray("uint8",5e5);r.value.fill(0)}return r};e.prototype.zG=function(e){if(!this.TG[e]){this.TG[e]={iterator:0}}var r=this.TG[e];if(!r.LG){r.LG=this.SG()}if(!r.zz){r.zz=[]}return this.TG[e]};e.prototype.AG=function(){var e=this.TG||{};for(var r in e){if(e.hasOwnProperty(r)){var t=e[r];delete t.zz;if(t.od){t.od.destroy();delete t.od}t.iterator=0;if(t.LG){t.LG.value.fill(0)}}}};return e}(LayerRender);var Util$1=AMap["Util"];var transforms$1=M["transform"];var lcs=M["geo"]["lcs"];var SmartArrayBuffer=M["SmartArrayBuffer"];var LabelsLayerRender=function(_){__extends(e,_);function e(){var e=_.call(this)||this;e.type="labelsLayer";e.l_="labelsLayer";return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!i||!r){return}_.prototype.Hz.call(this,e,r,t,i,a,n);this.wf=r;var o=r.viewState;var f=o.projectionId;this.If=transforms$1[f];var s=o.zoom;if(r&&n.visible&&n.opacity&&Util$1.dS(s,n.zooms)){if(!i.Nf){return}if(!this._map.isDOMMode()){var u=e.context;i.upload(u)}if(!i){return}var l=i.rp,v=i.buffer,c=i.zo;var h=o.centerCoord;this.uu=lcs.getLocalByCoord([h[0],h[1]]).center||[0,0];var d=this.Ps=i;this.Ps.lp=l.up;return d}return null};e.prototype.renderFrame=function(e,r,t,i,a){var n=this.fz;if(n){this.Wf=n.Uf;this.Bf=n.$f}if(!this._map){return}if(!this._map.isDOMMode()){this.Jh(e,t,r,i,a)}else{var o=this.Ps.zo;var f=Util$1.hp(o,this.wf);this.Yz(t,i,r,this._map,{Sa:f,centerCoord:this.uu,Uf:this.Wf,$f:this.Bf})}};e.prototype.Jz=function(){var e=this.Ps.zo;var r=Util$1.hp(e,this.wf);var t={Sa:r,from:"labelsLayer",opacity:1,offset:[0,0],centerCoord:this.uu};return t};e.prototype.Jh=function(e,r,t,i,a){var n=this.Zz;var o=e.context;if(!t){return}if(!t["other"]){return}var f=t["other"],s=f.rp,u=f.buffer,l=f.zo;var v=Util$1.hp(l,r);if(!s||!s.up){return}this.AG();var c=this.zG(this.l_);var h=c.LG,d=c.od;var _=CONSTS.sp;var g=s&&s.pp;var y=g.length;var m=0;var p=0;var b=[];var x=this.Ps.style||{};for(var C=0;C=0;F--){h=f[c[F]];for(var P=0,Z=h;Pm){if(c/m<.3&&v/m>=2){h=labelsUtil.OG(h,d,m/v)}if(_){var A=vector.Ip(h,_);var $=vector.Ip(d,h);I=vector.Qj(A,$)}else{I=0}if(!b){b=labelsUtil.Ed([h,d],s);x=b}else{b=labelsUtil.Ed([h,d],s)}if(I<=n&&b===x&&(T>1||o<12&&T>=.6)){y[y.length-1].push(h)}else{y[y.length-1].push(h);b=x=undefined;var F=y[y.length-1];if(F[0]!==undefined){y.push([])}}if(S===g-3){y[y.length-1].push(d)}}}for(var S=0;S=t){break}}return n};e.prototype.Ud=function(e,r){if(e===void 0){e=[]}if(r===void 0){r=0}var t=CONSTS.Dp.Bd;var i=r-1;if(i<0){return true}var a=e[r];var n=e[i];if(Math.abs(a-n)>=t){return false}return true};e.prototype.Qf=function(e,r){if(r===void 0){r={}}var t=this.aa;if(!t){return}var i=t&&t.zoom||20;var a=this.b$;var n=t.zoom,o=n===void 0?zoomRange[1]:n;var f=r.bounds;var s=this.Gf;var u;var l;var v;var c=false;var h=0;var d=[];for(var _ in e){if(e.hasOwnProperty(_)){v=e[_];for(var g=0,y=v;g1e5){this.Qp.ff(V*n);o=this.Qp.value}else{o=this.Qp.value}var W=[];var q=0;var f=void 0;var s=void 0;var u=void 0;var l=void 0;var v=void 0;var Z=void 0;var Y=void 0;var c=void 0;var h=void 0;var K=void 0;var X=void 0;var J=void 0;var d=void 0;var Q=void 0;var ee=void 0;var re=void 0;var te=void 0;var ie=void 0;var ae=void 0;var ne=void 0;var oe=void 0;var _=void 0;var fe=void 0;var g=void 0;var y=void 0;var m=void 0;var p=void 0;var b=void 0;var x=void 0;var C=void 0;var S=void 0;var M=void 0;var se=void 0;var ue=void 0;var le=void 0;var ve=void 0;var w=void 0;var ce=void 0;var he=void 0;var k=void 0;var T=void 0;var I=void 0;var A=void 0;var de=void 0;var _e=void 0;var $=void 0;var F=void 0;var P=void 0;var ge=void 0;var ye=0;var me=void 0;var pe=void 0;var be=void 0;var L=0;for(var xe in t){if(t.hasOwnProperty(xe)){var Ce=t[xe];q=Ce.length;for(var Se=0;Sez){x=x/Math.pow(2,G-z)}S=g[0];M=g[1];se=g[2];ue=g[3];le=g[5];ve=g[6];w=N.buffer;var Te=h/24*(g[4]+CONSTS.ic);var Ie={x:-Te/2,y:-h/2};if(S>0&&M>0){S+=w*2;M+=w*2;ce=Ie.x;he=Ie.y;k=C*(ce+(se-w)*x);T=C*(ce+(se-w+S)*x);I=C*(he-ue*x);A=C*(he+(M-ue)*x);de=0;_e=0;de+=_.pos.startX;_e+=_.pos.startY;$=de+le;F=_e+ve;P=fe;o.set([k,I,$,F,y,m,P,a,p,b,i,v,L,T,I,$+S,F,y,m,P,a,p,b,i,v,L,k,A,$,F+M,y,m,P,a,p,b,i,v,L,k,A,$,F+M,y,m,P,a,p,b,i,v,L,T,I,$+S,F,y,m,P,a,p,b,i,v,L,T,A,$+S,F+M,y,m,P,a,p,b,i,v,L],ye);ye+=n;ge=H*r*6;W.push([h,[y,m],v,K,X,Q,w,re,ee,te,ie,ge,ge+6*r,l.key,me]);H++}}}}}}var E=this.u_;if(E){E.update(o)}else{E=this.u_=new SmartArrayBuffer$1(O,o,U)}return{pp:W,zs:E,od:this.Cf}}return{pp:[],od:null,zs:null}};e.prototype.Xp=function(e,r){if(r===void 0){r=12}var t=r*1.3;var i=r*1.3;var a=e[0],n=e[1];var o=[a-t/2,n-i/2];return{x:o[0],y:o[1],width:t,height:i}};e.prototype.td=function(e,r){if(e===void 0){e=12}if(r===void 0){r=0}var t=CONSTS.Cd,i=CONSTS.Ld,a=CONSTS.Color;var n=DangerousFontSize;var o=0;var f=e<12?t:i;if(r){r=r*Support$2.scale>10?10:r;o=f*(1-r/10.1)}var s=e>n||Support$2.scale>1?1.7:1.5;s=s*1.4142/e;var u=f-1/256*(Support$2.scale-1);return{gamma:s,nd:o,ed:u,backgroundColor:a.Gp,strokeWidth:r}};e.prototype.Kz=function(){if(this.Gf){this.Gf.clear()}};return e}();var _a;var SmartArrayBuffer$2=M["SmartArrayBuffer"];var Util$2=AMap["Util"];var NebulaLabelFormat=M["NebulaLabelFormat"];var MapboxLabelFormat=M["MapboxLabelFormat"];var labelsUtil$1=M["labelsUtil"];var LabelsRenderUtil$2=M["LabelsRenderUtil"];var vector$1=M["vector"];var transforms$2=M["transform"];var lcs$1=M["geo"]["lcs"];var LabelFormatMap=(_a={},_a[NebulaLabelFormat.id]=NebulaLabelFormat,_a[MapboxLabelFormat.id]=MapboxLabelFormat,_a["nebula"]=NebulaLabelFormat,_a);var TileLabelsLayerRender=function(O){__extends(e,O);function e(){var e=O.call(this)||this;e.type="nebula-labelslayer";e.Xz=false;e.l_="inner";e.vf=[];e.mf={};e.bo=20;e.Xf={};e.tp={pp:[],od:null,zs:null};e.kp={};e.NG={};e.WG=new LabelLine;e.lee=new LabelStyleChangeManager;return e}e.prototype.Hz=function(e,r,t,i,a,n){if(!i||!r){return}O.prototype.Hz.call(this,e,r,t,i,a,n);var o=r.viewState.zoom;if(i&&r&&n.visible&&n.opacity&&Util$2.dS(o,n.zooms)){var f=[];var s=true;var u=void 0;this.NG={};for(var l=0;l20?20:t<3?3:t;var S=this.vf;var z=S.length;var G=[N,B];var M={};var w={};var k={};var T={};var I;var A;var $=r.zoom;var j=true;for(var F=0;Fb[1]||o.Lp&&!f)){if(!this.Bf[E]){T[E]=1}this.Bf[E]=1;continue}if(T[E]){delete this.Bf[E]}c=l.style;M[E]=m;w[E]=p;k[E]=c[E];o.Sa=y;if(o.Lp===40001){k[E].showText=f?f.showText===0?false:true:true;k[E].showIcon=f?f.iconID==="0"?false:true:true;k[E].forceShow=f?f.forceShow:false}else{k[E].showIcon=f?f.iconID!=="0":true;k[E].showText=f?f.showText:true;k[E].forceShow=f?f.forceShow:false}a=true}}this.lee.vee(this._map.bZ.MZ.KY.iX);this.lee.cee(l,this._map.mapStyle,l.Nf,l.style,i,this._map.bZ.MZ.KY.iX);l.upload(D.context)}}}}if(j){a=true}return{Vf:a,lp:n,Nf:M,coords:w,style:k}};e.prototype.qf=function(e,r){var t=this.Zz;var i=this.vf;var a=this.Ps.lp||0;var n=a/12;var o=1;var f={};var s;var u;var l;var v;var c;var h;var d;var _;if(!n){return}this.AG();for(var g=0,y=i;g=0&&this.hee>=0){this.yee(this._ee.rp.rp,this.gee,this.hee,0);this._ee.destroy();this._ee=undefined}};e.prototype.yee=function(e,r,t,i){for(var a=0;af||l[1]s||v[1]=0){d.splice(_,1);d.push(h)}if(i.ce){e.context.clear({depth:true})}for(var g=0,y=d;g=o[0]&&t.viewState.zoom<=o[1]){n.canvas.style.visibility="visible";n["render"]()}else{if(n&&n.canvas&&n.canvas){n.canvas.style.visibility="hidden"}}}i.kv.style[DomUtil.kL]="";i.kv.style.top="";i.kv.style.left="";i.kv.style.height="";i.kv.style.visibility=""}};return e}(LayerRender);var GLCustomRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.kC=true;return e}e.prototype.renderFrame=function(e,r,t,i){if(!e){return}var a=e.context;var n=a.gl;var o=i.layer;if(this.kC){this.kC=false;o.init(n)}if(o.render){var f=o.getLayerConfig().zooms;if(t.viewState.zoom>=f[0]&&t.viewState.zoom<=f[1]){o.render(n,t,t.viewState,a);a.setDirty()}}return};return e}(LayerRender);var ImageRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){var a=e.context;var n=e.Gn();var o=i.layer.getLayerConfig().zooms;if(t.viewState.zoomo[1]){return}var f=t.viewState;var s=t.map;var u=1;if(f.viewMode==="3D"){u=s.getView().EF()}var l=s.JF(t.viewState.optimalZoom);var v=l||[1,1,1,0];if(i.ce){e.context.clear({depth:true})}n.Ce({u_skyColor:v,u_skyHeight:u,u_viewHeight:f.size[1],u_opacity:i.opacity,u_texture:r.texture,u_mvpMatrix:f.mvpMatrix,u_localDeltaCenter:r.Sa,u_flterFlag:false,u_colorscale:null},{a_Position:{type:"vec4",buffer:r.zs,Re:0,offset:0}},6,undefined,undefined,i.depthTest,ColorMode.Si,i.rejectMapMask||!t.map.getMask()?undefined:StencilMode.writeWithStencil);return};return e}(LayerRender);var NebulaTagType;(function(e){e["LITE"]="lite";e["LEFT"]="left";e["ALL"]="all";e["NONE"]=""})(NebulaTagType||(NebulaTagType={}));var extend=function(e){var r=[];for(var t=1;t=0){r=["Intel"];if(0<=e.indexOf("mobile")){r.push("Mobile")}if(0<=e.indexOf("gma")||0<=e.indexOf("graphics media accelerator")){r.push("GMA")}if(0<=e.indexOf("haswell")){r.push("Haswell")}else if(0<=e.indexOf("ivy")){r.push("HD 4000")}else if(0<=e.indexOf("sandy")){r.push("HD 3000")}else if(0<=e.indexOf("ironlake")){r.push("HD")}else{if(0<=e.indexOf("hd")){r.push("HD")}var i=e.match(_);if(i){r.push(i[1].toUpperCase())}}r=r.join(" ");return r}if(e.indexOf("nvidia")>=0||e.indexOf("quadro")>=0||e.indexOf("geforce")>=0||e.indexOf("nvs")>=0){r=["nVidia"];if(0<=e.indexOf("geforce")){r.push("geForce")}if(0<=e.indexOf("quadro")){r.push("Quadro")}if(0<=e.indexOf("nvs")){r.push("NVS")}if(e.match(/\\bion\\b/)){r.push("ION")}if(e.match(/gtx\\b/)){r.push("GTX")}else if(e.match(/gts\\b/)){r.push("GTS")}else if(e.match(/gt\\b/)){r.push("GT")}else if(e.match(/gs\\b/)){r.push("GS")}else if(e.match(/ge\\b/)){r.push("GE")}else if(e.match(/fx\\b/)){r.push("FX")}var i=e.match(_);if(i){r.push(i[1].toUpperCase().replace("GS",""))}if(0<=e.indexOf("titan")){r.push("TITAN")}else if(0<=e.indexOf("ti")){r.push("Ti")}r=r.join(" ");return r}if(e.indexOf("amd")>=0||e.indexOf("ati")>=0||e.indexOf("radeon")>=0||e.indexOf("firegl")>=0||e.indexOf("firepro")>=0){r=["AMD"];if(0<=e.indexOf("mobil")){r.push("Mobility")}var a=e.indexOf("radeon");if(0<=a){r.push("Radeon")}if(0<=e.indexOf("firepro")){r.push("FirePro")}else if(0<=e.indexOf("firegl")){r.push("FireGL")}if(0<=e.indexOf("hd")){r.push("HD")}if(a>=0){e=e.substring(a)}var i=e.match(_);if(i){r.push(i[1].toUpperCase().replace("HD",""))}r=r.join(" ");return r}return e.substring(0,100)},V="google swiftshader;microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";"),g="ActiveXObject"in c,y=window["detectRetina"]==false?false:"devicePixelRatio"in c&&c["devicePixelRatio"]>1||g&&"matchMedia"in c&&c.matchMedia("(min-resolution:144dpi)")&&c.matchMedia("(min-resolution:144dpi)").matches,m=a("windows nt"),W=i.search(/windows nt [1-5]\\./)!==-1,q=i.search(/windows nt 5\\.[12]/)!==-1,Z=a("windows nt 10"),Y=a("windows phone"),K=a("Mb2345Browser"),X=u&&i.search(/ os [456]_/)!==-1,J=u&&i.search(/ os [4-8]_/)!==-1,Q=u&&i.search(/ os [78]_/)!==-1,ee=u&&a("os 8_"),re=u&&a("os 10_"),p=a("android");var b=0;if(p){b=parseInt(i.split("android")[1])||0}var te=p&&b<4,ie=p&&b>=5,ae=ie||i.search(/android 4.4/)!==-1,x=p?"android":u?"ios":m?"windows":n?"mac":"other",ne=g&&!c["XMLHttpRequest"],oe=g&&!h.querySelector,C=g&&!h.addEventListener,S=g&&a("msie 9"),fe=g&&a("msie 10"),se=g&&a("rv:11"),ue=C||S,M=a("edge"),le=a("qtweb"),w=a("ucbrowser"),ve=a("alipay")||p&&w,ce=a("miuibrowser"),he=a("micromessenger"),de=a("dingtalk"),_e=a("mqqbrowser"),ge=a("baidubrowser"),ye=a("crios/"),k=a("chrome/"),me=(k||ye)&&a("chromium"),pe=!me&&(k&&parseInt(i.split("chrome/")[1])>30||ye&&parseInt(i.split("crios/")[1])>30),be=a("firefox"),xe=be&&parseInt(i.split("firefox/")[1])>27,Ce=l&&parseInt(i.split("version/")[1])>7,Se=u&&a("aliapp"),T=p||u||Y||a("mobile"),Me="ontouchstart"in h,we=c["navigator"]&&c["navigator"]["msPointerEnabled"]&&!!c["navigator"]["msMaxTouchPoints"],ke=c["navigator"]&&!!c["navigator"]["maxTouchPoints"],Te=!Me&&(ke||we),Ie=Me||Te,Ae=function(){if(!T){return c.devicePixelRatio||1}var e=document.getElementsByTagName("meta");if(window.parent&&window.parent!==window){try{if(window.parent.location.origin===window.location.origin){e=window.parent.document.getElementsByTagName("meta")}else{return 1}}catch(e){return 1}}for(var r=e.length-1;r>=0;r-=1){if(e[r].name==="viewport"){var t=e[r].content;var i=void 0,a=void 0,n=void 0;if(t.indexOf("initial-scale")!==-1){i=parseFloat(t.split("initial-scale=")[1])}if(t.indexOf("minimum-scale")!==-1){a=parseFloat(t.split("minimum-scale=")[1])}else{a=0}if(t.indexOf("maximum-scale")!==-1){n=parseFloat(t.split("maximum-scale=")[1])}else{n=Infinity}if(i){if(n>=a){if(i>n){return n}else if(i=a){if(a>=1){return 1}else{return Math.min(n,1)}}else{console&&console.log&&console.log("viewport参数不合法");return null}}}}return undefined},I=Ae(),$e=y&&(!T||!!I&&I>=1),Fe=g&&"transition"in d.style,Pe=!!h.createElementNS&&!!h.createElementNS("http://www.w3.org/2000/svg","svg")["createSVGRect"],A=h.createElement("canvas"),Le=!!(A&&A.getContext),Re=window["URL"]||window["webkitURL"],Ee=false;var Oe=window["disableWorker"]!==true&&!g&&!(w&&p&&!pe)&&window["Worker"]&&Re&&Re["createObjectURL"]&&window["Blob"],$="",F="",P=0,De=window["higtQualityRender"]==false?y?false:true:true,Ue=window["movingDraw"],L=window["forceWebGL"]?{alpha:true,antialias:De,depth:true,stencil:true}:{alpha:true,antialias:De,depth:true,stencil:true},Ne=function(){if(!Le||!Oe){return false}var e=["webgl","experimental-webgl","moz-webgl"];var r=null;for(var t=0;tP){return false}if(23>r.getShaderPrecisionFormat(35632,36338).precision||23>r.getShaderPrecisionFormat(35633,36338).precision){return false}F=r.getExtension("WEBGL_debug_renderer_info")?r.getParameter(37446):null;var o=j(F);if(o){if(o.indexOf("google swiftshader")>-1){f=false;return false}if(-1!==V.indexOf(o)){return false}}$=e[t];return true}}return false},Be=Ne(),He=e[8]!==undefined?e[8]:true,ze=window["Uint8Array"]&&He&&!window["forbidenWebGL"]&&Be&&(window["forceWebGL"]||(pe||xe||Ce||M||he||de)&&x!=="other"),Ge=window["forceWebGLBaseRender"]?"w":ze?"w":"d",je=a("webkit"),R="WebKitCSSMatrix"in c&&"m11"in new window["WebKitCSSMatrix"],Ve="MozPerspective"in d.style,We="vV"in d.style,qe=Fe||R||Ve||We,Ze=false,Ye=e[12]!==undefined?e[12]:null;var E=true;try{if(typeof c.localStorage==="undefined"){E=false}else{var Ke=(new Date).getTime()+"";c.localStorage.setItem("_test",Ke);if(c.localStorage.getItem("_test")!==Ke){E=false}c.localStorage.removeItem("_test")}}catch(e){E=false}var Xe=function(e,r){var t={};extend(t,L);extend(t,r);return e.getContext($,t)};var Je=parseInt(i.split("chrome/")[1]);v={qV:o,KV:s,size:s?100:p?200:500,WV:n,ZV:m,JV:u,uT:re,HV:p,QV:te,cT:ve,eq:x,rq:ge,nq:_e,safari:l,iq:he,ie:g,aq:ne,oq:oe,sq:S,uq:fe,xv:C,fT:ue,cq:se,fq:M,hT:g&&!se,lT:K,RL:E,vT:Ye,geolocation:T||g&&!C||M,SL:w,uc:w&&!k,chrome:k,gT:true,hq:be,mee:f,$e:T,lq:T&&je,dq:T&&R,vq:T&&c.opera,Ue:y,bT:I,Mr:$e,YV:Ie,gq:we,pq:ke,yT:Te,pT:k&&Je>=57,mT:!T&&k&&Je>=64,g:je,bq:Fe,yq:R,mq:Ve,Tq:We,Mq:qe,Aq:Pe,xq:Le,Eb:Oe,TT:Ze,Tm:ze,AT:$,xT:L,ST:F,wT:P,MT:Ee,movingDraw:Ue,baseRender:He?Ge:"d",scale:y?2:1,getContext:Xe,mH:false,AJ:t,amapRunTime:r,sY:Ne};testWepP(function(e){v.mH=e})}return v}var Browser=getSupport(typeof config==="undefined"?[]:config);if(typeof createImageBitmap!=="undefined"&&typeof ImageBitmap!=="undefined"){Browser.imageBitmap=true}var canceledWorkerFetch=Boolean(Browser.DW?!Browser.safari&&!Browser.AQ&&!Browser.gQ&&self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"):!Browser.safari&&!Browser.AQ&&!Browser.gQ&&window.fetch&&window.Request&&window.AbortController&&window.Request.prototype.hasOwnProperty("signal"));Browser.LZ=canceledWorkerFetch;Browser["amapRunTime"]={workerTime:{}};var projections={};var Projection=function(){function e(e,r,t,i){this.project=r;this.unproject=t;this.getResolution=i;projections[e]=this}e.prototype.Sq=function(e,r,t){var i=this.getResolution(t);var a=r[0]*i;var n=r[1]*i;var o=this.project(e[0],e[1]);return this.unproject(o[0]+a,o[1]+n)};e.prototype.wq=function(e,r){var t=this.project(e[0],e[1]);var i=[t[0]+r[0],t[1]+r[1]];return this.unproject(i[0],i[1])};return e}();var ProjectionManager={getProjection:function(e){return projections[e]}};var LngLat=function(){var e=function(e,r){return[e,r]};var r=function(e,r){return[e,r]};var t=function(e){return 180/256/Math.pow(2,e)};return new Projection("EPSG:4326",e,r,t)}();var SphericalMercator=function(){var n=Math.PI/180;var a=180/Math.PI;var o=6378137;var f=85.0511287798;var e=function(e,r){var t=f;r=Math.max(Math.min(t,r),-t);var i=e*n;var a=r*n;a=Math.log(Math.tan(Math.PI/4+a/2));return[i*o,a*o]};var r=function(e,r){var t=e/o*a;var i=(2*Math.atan(Math.exp(r/o))-Math.PI/2)*a;return[t,i]};var t=function(e){return 20037508.342789244*2/256/Math.pow(2,e)};return new Projection("EPSG:3857",e,r,t)}();var LCS=function(){function e(){this.hg=[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244];this.cg=128;this.vg=128;this.lg=(this.hg[2]-this.hg[0])/this.cg;this.dg=(this.hg[3]-this.hg[1])/this.vg}e.prototype.setMap=function(e){this.map=e};e.prototype.getSize=function(){return[this.lg,this.dg]};e.prototype.getNum=function(){return[this.cg,this.vg]};e.prototype.getLocalByLnglat=function(e){var r;var t=(r=ProjectionManager.getProjection("EPSG:3857")).project.apply(r,e);return this.getLocalByCoord(t)};e.prototype.getLocalByCoord=function(e){var r=Math.floor(e[0]/this.lg);var t=Math.floor(e[1]/this.dg);var i=this.getLocalCenterByXY(r,t);var a=[e[0]-i.center[0],e[1]-i.center[1]];return{Sa:a,x:r,y:t,center:i.center,Ro:i.Ro}};e.prototype.getLocalCenterByXY=function(e,r){var t={x:e,y:r,center:[0,0],Ro:[0,0,0,0]};t.center=[(e+.5)*this.lg,(r+.5)*this.dg];t.Ro=[e*this.lg,r*this.dg,(e+1)*this.lg,(r+1)*this.dg];return t};e.prototype.getDeltaCoord=function(e){var r=this.getLocalByCoord(e);return[e[0]-r.center[0],e[1]-r.center[1]]};return e}();var lcs$2=new LCS;var E4326=ProjectionManager.getProjection("EPSG:4326");var E3857=ProjectionManager.getProjection("EPSG:3857");var LngLat$1={Ro:[-180,-90,180,90],project:function(e,r,t){var i=E4326.project(e,r);return this.transform(i[0],i[1],t)},unproject:function(e,r,t){var i=this.Xs(e,r,t);return E4326.unproject(i[0],i[1])},transform:function(e,r,t){var i;if(t===undefined){i=180}else{i=256<0){i=Math.abs(Math.floor(e/this.Ro[3]))}else{i=Math.abs(Math.ceil(e/this.Ro[3]))}var a=0;if(r/this.Ro[3]>0){a=Math.abs(Math.floor(r/this.Ro[3]))}else{a=Math.abs(Math.ceil(r/this.Ro[3]))}var n=e%this.Ro[3];var o=r%this.Ro[3];var f=this.transform(n,o,t);e=this.wu(e,e,t)[0]*i+f[0];r=this.wu(r,r,t)[1]*a+f[1];var s=this.transform(0,0,t),u=s[0],l=s[1];return[e-u,r-l]},Bb:function(e,r,t){return t.X(e,r)},qb:function(e,r,t){return t.H(e,r)},Gd:function(e,r,t,i){var a=i.X(e[0],e[1]);var n=i.X(e[0]+r,e[1]+t);return[n[0]-a[0],n[1]-a[1]]}};var SphericalMercator$1={Ro:[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244],project:function(e,r,t){var i=E3857.project(e,r);return this.transform(i[0],i[1],t)},unproject:function(e,r,t){var i=this.Xs(e,r,t);return E3857.unproject(i[0],i[1])},transform:function(e,r,t){e=Math.min(20037508.342789244,Math.max(e,-20037508.342789244));r=Math.min(20037508.342789244,Math.max(r,-20037508.342789244));var i;if(t===undefined){i=20037508.342789244*2}else{i=256*Math.pow(2,t)}var a=this.Ro[2]-this.Ro[0];var n=this.Ro[3]-this.Ro[1];e=(e-this.Ro[0])/a*i;r=i-(r-this.Ro[1])/n*i;return[e,r]},Xs:function(e,r,t){var i;if(t===undefined){i=20037508.342789244*2}else{i=256*Math.pow(2,t)}e=(e/i-.5)*this.Ro[2]*2;r=-(r/i-.5)*this.Ro[2]*2;return[e,r]},nt:function(e,r,t,i){e=this.Xs(e,r,t)[0]-this.Ro[0];r=this.Ro[2]-this.Xs(e,r,t)[1];return[e,r]},wu:function(e,r,t,i){var a=i.center,n=i.size;var o=(i.rotation||0)/180*Math.PI;var f=this.transform(e,r,t),s=f[0],u=f[1];var l=this.transform(a[0],a[1],t),v=l[0],c=l[1];var h=s-v;var d=u-c;var _=Math.sqrt(Math.pow(h,2)+Math.pow(d,2));var g=d===0?Math.PI/2:Math.atan(Math.abs(h/d));var y;if(h*d<=0){y=g+o}else{y=g-o}var m=h>0?y:-y;var p=d>0?1:-1;var b=n[0]/2+_*Math.sin(m);var x=n[1]/2+_*Math.cos(y)*p;return[b,x]},yo:function(e,r,t,i){var a=0;if(e/this.Ro[3]>0){a=Math.abs(Math.floor(e/this.Ro[3]))}else{a=Math.abs(Math.ceil(e/this.Ro[3]))}var n=0;if(r/this.Ro[3]>0){n=Math.abs(Math.floor(r/this.Ro[3]))}else{n=Math.abs(Math.ceil(r/this.Ro[3]))}var o=e%this.Ro[3];var f=r%this.Ro[3];var s=this.transform(o,f,t);var u=this.transform(0,0,t),l=u[0],v=u[1];e=l*a+s[0];r=v*n+s[1];return[e-l,r-v]},Bb:function(e,r,t){return t.X(e,r)},qb:function(e,r,t){return t.H(e,r)},Gd:function(e,r,t,i){var a=i.X(e[0],e[1]);var n=i.X(e[0]+r,e[1]+t);return[n[0]-a[0],n[1]-a[1]]}};var transform={"EPSG:4326":LngLat$1,"EPSG:3857":SphericalMercator$1};var labelsUtil$2={Bj:function(e){if(e===void 0){e={}}var r={};for(var t in e){if(e.hasOwnProperty(t)){r[t]=1}}return r},zj:function(e,r){e.gs=r;e.qj=r.options||{};e.Wj=r.Wj||{};e.Fs=r.Fs||{};e.Gj=r.Gj||{};e.Hj=r.Hj||{};e.Vj=r.Vj||{};e.$j=r.$j||0},Yj:function(e,r){if(e===void 0){e=[NaN,NaN,NaN,NaN]}if(r===void 0){r=[0,0,0,1]}for(var t=0;t>8;var o=(e&i)>>16;var f=255;return[o/f,n/f,a/f,1]},Xj:function(e,r){if(r===void 0){r={}}var t=[];var i=r.qw,a=r.Aw,n=r.complete;for(var o=0,f=e;o=f){if(n>u){l=[f,u]}else{l=[f,n]}}else{l=null}}else{l=labelsUtil$2.Jj(r,e)}return l},measureText:function(e,r,t,i){if(r===void 0){r=""}if(i===void 0){i="3D"}if(i==="3D"){return e.measureText(r,t)}},lnglatToContainer:function(e,r){var t=r.zoom,i=t===void 0?20:t;if(i=0){h=c}else{h=c+Math.PI}}else if(c>0){if(l>=0){h=c}else{h=c+Math.PI}}else{if(l>0){h=2*Math.PI+c}else{h=Math.PI+c}}return h},Fd:function(e,r,t){var i=e[0],a=i===void 0?0:i,n=e[1],o=n===void 0?0:n;var f=r[0],s=f===void 0?0:f,u=r[1],l=u===void 0?0:u;var v=s-a;var c=l-o;var h=[];var d=0;while(d=4?Math.floor(t/4*3):t-1;var n=e[a];var o=i[0],f=i[1];var s=n[0],u=n[1];var l=u-f;var v=s-o;var c=l/v;var h=[s-o,u-f];var d;if(r==="ch"){if(Math.abs(c)>1){d=vector$3.Zj(h,[0,1])}else{d=vector$3.Zj(h,[1,0])}}else{d=vector$3.Zj(h,[1,0])}return d<0},Nd:function(e,r,t){var i=e[0],a=e[1];var n=r[0],o=r[1];var f=o-a;var s=n-i;var u=f/s;var l=[n-i,o-a];var v;var c;if(Math.abs(u)>1&&t!=="x"){v=vector$3.Zj(l,[0,-1]);if(v>0){c=vector$3.Qj(l,[0,-1])}else{c=vector$3.Qj(l,[0,1])}if(u>0){c=-c}}else{v=vector$3.Zj(l,[1,0]);if(v>0){c=vector$3.Qj(l,[1,0])}else{c=vector$3.Qj(l,[-1,0])}if(u<0){c=-c}}return c},Od:function(e,r,t){var i;var a;i=t*Math.sin(r);a=t*Math.cos(r);var n=e[0],o=e[1];var f=n+a;var s=o+i;return[f,s]},jd:function(e,r,t,i){var a=vector$3.Ip(e,r);var n=vector$3.length(a);var o=vector$3.Ip(t,r);var f=vector$3.length(o);var s=vector$3.Zj(a,o);var u=Math.acos(s/(n*f));var l=Math.PI-u;var v=n*Math.sin(l);var c=n*Math.cos(l);var h=Math.sqrt(Math.pow(i,2)-Math.pow(v,2));var d=h-c;var _=o[0]===0?o[1]>0?Math.PI/2:-Math.PI/2:Math.atan(o[1]/o[0]);var g=Math.abs(d*Math.sin(_));var y=d*Math.cos(_);var m=vector$3.Zj(o,[1,0]);var p=vector$3.Zj(o,[0,1]);var b=[m>=0?y:-y,p>=0?g:-g];var x=vector$3.add(r,b);return x},rank:function(e){var r=[];for(var t=0;t=zoomRange[1]){e[1]=t}if(e[0]<=zoomRange[0]){e[0]=r}return e},toString:function(e,r){if(r===void 0){r=4}var t="";if(!e){return t}for(var i=0,a=e;i=i&&u<=n&&l>=a&&l<=o){t.push(e[f])}}else{t.push(e[f])}}}if(!t.length){t=e}return t},EQ:function(e,r){var t=[];var i=r.length;for(var a=0;a0){i=getSpiltLineWithSpiltIndex(e.name,e.JQ);n="ch"}else if(t){var o=t.lineBreak(e.name,{from:"labelsLayer",CO:[]});var f=0;var s="";if(o.oQ.length>=2){for(var u=1,l=o.oQ.length-1;u=LocalZoom?i:[0,0],g=_[0],y=_[1];var m=[s-g-Math.abs(d[1]),u-y-Math.abs(d[0])];var p=[l-g+Math.abs(h[1]),v-y+Math.abs(h[0])];return[m,p]},gz:function(e,r){var t=r[0],i=r[1];var a=e[0],n=e[1];var o=a-t[0];var f=n-t[1];var s=i[0]-a;var u=i[1]-n;return o>=0&&f>=0&&s>=0&&u>=0},wz:function(e,r){if(r===void 0){r={}}var t=r.forceShow,i=t===void 0?0:t,a=r._z,n=a===void 0?0:a;var o=e["data"]||{};var f=o["rank"]||1;var s=n/100;var u=2e5;f=i?f-1e5:s*u+f;return f},wu:function(e,r,t,i){if(e===void 0){e=0}if(r===void 0){r=0}if(i){var a=i.viewState,n=i.size,o=i.transform,f=i.view,s=i.viewMode,u=i.centerCoord,l=i.positionType,v=l===void 0?"relative":l;if(s==="2D"){var c={center:a.centerCoord,rotation:a.rotation,size:n};var h=a.optimalZoom>=LocalZoom?u:[0,0],d=h[0],_=h[1];return o.wu(e+d,r+_,t,c)}else{return v==="relative"?f.H(e,r):f._u(e,r)}}},r0:function(e,r,t,i,a){if(e===void 0){e=0}if(r===void 0){r=0}if(t===void 0){t=0}if(a){var n=a.viewState,o=a.size,f=a.transform,s=a.view,u=a.viewMode,l=a.centerCoord,v=a.positionType,c=v===void 0?"relative":v;if(u==="2D"){var h={center:n.centerCoord,rotation:n.rotation,size:o};var d=n.optimalZoom>=LocalZoom?l:[0,0],_=d[0],g=d[1];return f.wu(e+_,r+g,i,h)}else{return c==="relative"?s.H(e,r,t):s._u(e,r,t)}}},kz:function(e,r,t,i){if(e===void 0){e=[]}if(i===void 0){i={}}var a=i.centerCoord;if(r=LocalZoom){var n=a[0],o=a[1];var f=[];for(var s=0,u=e;s=a&&e[1]<=n}var o=Math.min(r[0],t[0]);var f=Math.max(r[0],t[0]);var s=(t[1]-r[1])/(t[0]-r[0])*(e[0]-r[0])+r[1];return Math.abs(s-e[1])=o&&e[0]<=f},closestOnSegment:function(e,r){var t=e[0];var i=e[1];var a=r[0];var n=r[1];var o=a[0];var f=a[1];var s=n[0];var u=n[1];var l=s-o;var v=u-f;var c=l===0&&v===0?0:(l*(t-o)+v*(i-f))/(l*l+v*v||0);var h;var d;if(c<=0){h=o;d=f}else if(c>=1){h=s;d=u}else{h=o+c*l;d=f+c*v}return[h,d]},isClockwise:function(e){var r=e.length;var t=0;var i=e[r-1];var a=i[0];var n=i[1];var o;var f;var s;for(var u=0;u0},ss:function(e,r,t){var i=e[0];var a=e[1];var n=false;var o;var f;var s;var u;var l=r.length;for(var v=0,c=l-1;v=a){var d=(s-o)*(a-f)/(u-f)+o;if(i===d){return t?true:false}else{h=i(t[1]-r[1])*(e[0]-r[0])};var i=function(e,r,t,i){var a=[e[0]-r[0],e[1]-r[1]],n=[t[0]-i[0],t[1]-i[1]],o=e[0]*r[1]-e[1]*r[0],f=t[0]*i[1]-t[1]*i[0],s=1/(a[0]*n[1]-a[1]*n[0]);return[(o*n[0]-f*a[0])*s,(o*n[1]-f*a[1])*s]};var a,n,o,f;var s=e;a=r[r.length-2];for(var u=0,l=r.length-1;u0?90:270}var t=Math.atan(r/e)*180/Math.PI;if(e<0&&r>0){return t+180}else if(e<0&&r<0){return t+180}else if(e>0&&r<0){return t+360}else{return t}};t.prototype.toJSON=function(){return[this.x,this.y]};return t}();var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function unwrapExports(e){return e&&e.gP&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,r){return r={exports:{}},e(r,r.exports),r.exports}function getCjsExportFromNamespace(e){return e&&e["default"]||e}var dist=createCommonjsModule(function(e,t){(function(e,r){r(t)})(commonjsGlobal,function(e){function $(e,r){return e>r?1:e0){t=t.left}else{return t}}return null};g.prototype.contains=function e(r){var t=this.yP;var i=this.bP;while(t){var a=i(r,t.key);if(a===0){return true}else if(a<0){t=t.left}else{t=t.right}}return false};g.prototype.remove=function e(r){var t=this.find(r);if(!t){return false}this.xP(t);if(!t.left){this.replace(t,t.right)}else if(!t.right){this.replace(t,t.left)}else{var i=this.MP(t.right);if(i.parent!==t){this.replace(i,i.right);i.right=t.right;i.right.parent=i}this.replace(t,i);i.left=t.left;i.left.parent=i}this._size--;return true};g.prototype.removeNode=function e(r){if(!r){return false}this.xP(r);if(!r.left){this.replace(r,r.right)}else if(!r.right){this.replace(r,r.left)}else{var t=this.MP(r.right);if(t.parent!==r){this.replace(t,t.right);t.right=r.right;t.right.parent=t}this.replace(r,t);t.left=r.left;t.left.parent=t}this._size--;return true};g.prototype.$P=function e(r){var t=this.find(r);if(!t){return}this.xP(t);var i=t.left;var a=t.right;var n=null;if(i){i.parent=null;n=this.SP(i);this.xP(n);this.yP=n}if(a){if(i){n.right=a}else{this.yP=a}a.parent=n}this._size--};g.prototype.pop=function e(){var r=this.yP,t=null;if(r){while(r.left){r=r.left}t={key:r.key,data:r.data};this.remove(r.key)}return t};g.prototype.next=function e(r){var t=r;if(t){if(t.right){t=t.right;while(t&&t.left){t=t.left}}else{t=r.parent;while(t&&t.right===r){r=t;t=t.parent}}}return t};g.prototype.NM=function e(r){var t=r;if(t){if(t.left){t=t.left;while(t&&t.right){t=t.right}}else{t=r.parent;while(t&&t.left===r){r=t;t=t.parent}}}return t};g.prototype.forEach=function e(r){var t=this.yP;var i=[],a=false,n=0;while(!a){if(t){i.push(t);t=t.left}else{if(i.length>0){t=i.pop();r(t,n++);t=t.right}else{a=true}}}return this};g.prototype.range=function e(r,t,i,a){var n=[];var o=this.bP;var f=this.yP,s;while(n.length!==0||f){if(f){n.push(f);f=f.left}else{f=n.pop();s=o(f.key,t);if(s>0){break}else if(o(f.key,r)>=0){if(i.call(a,f)){return this}}f=f.right}}return this};g.prototype.keys=function e(){var r=this.yP;var t=[],i=[],a=false;while(!a){if(r){t.push(r);r=r.left}else{if(t.length>0){r=t.pop();i.push(r.key);r=r.right}else{a=true}}}return i};g.prototype.values=function e(){var r=this.yP;var t=[],i=[],a=false;while(!a){if(r){t.push(r);r=r.left}else{if(t.length>0){r=t.pop();i.push(r.data);r=r.right}else{a=true}}}return i};g.prototype.at=function e(r){var t=this.yP;var i=[],a=false,n=0;while(!a){if(t){i.push(t);t=t.left}else{if(i.length>0){t=i.pop();if(n===r){return t}n++;t=t.right}else{a=true}}}return null};g.prototype.load=function e(r,t,i){if(r===void 0)r=[];if(t===void 0)t=[];if(i===void 0)i=false;if(this._size!==0){throw new Error("bulk-load: tree is not empty")}var a=r.length;if(i){u(r,t,0,a-1,this.bP)}this.yP=l(null,r,t,0,a);this._size=a;return this};g.prototype.min=function e(){var r=this.MP(this.yP);if(r){return r.key}else{return null}};g.prototype.max=function e(){var r=this.SP(this.yP);if(r){return r.key}else{return null}};g.prototype.isEmpty=function e(){return this.yP===null};r.size.get=function(){return this._size};g.LP=function e(r,t,i,a,n){return new g(i,n).load(r,t,a)};Object.defineProperties(g.prototype,r);function l(e,r,t,i,a){var n=a-i;if(n>0){var o=i+Math.floor(n/2);var f=r[o];var s=t[o];var u={key:f,data:s,parent:e};u.left=l(u,r,t,i,o);u.right=l(u,r,t,o+1,a);return u}return null}function u(e,r,t,i,a){if(t>=i){return}var n=e[t+i>>1];var o=t-1;var f=i+1;while(true){do{o++}while(a(e[o],n)<0);do{f--}while(a(e[f],n)>0);if(o>=f){break}var s=e[o];e[o]=e[f];e[f]=s;s=r[o];r[o]=r[f];r[f]=s}u(e,r,t,f,a);u(e,r,f+1,i,a)}var o=0;var s=1;var v=2;var c=3;var y=0;var f=1;var m=2;var h=3;function p(e,r,t){if(r===null){e.PP=false;e.OP=true}else{if(e._P===r._P){e.PP=!r.PP;e.OP=r.OP}else{e.PP=!r.OP;e.OP=r.NP()?!r.PP:r.PP}if(r){e.CP=!a(r,t)||r.NP()?r.CP:r}}var i=a(e,t);if(i){e.hN=F(e,t)}else{e.hN=0}}function a(e,r){switch(e.type){case o:switch(r){case y:return!e.OP;case f:return e.OP;case m:return e._P&&e.OP||!e._P&&!e.OP;case h:return true}break;case v:return r===y||r===f;case c:return r===m;case s:return false}return false}function F(e,r){var t=!e.PP;var i=!e.OP;var a;switch(r){case y:a=t&&i;break;case f:a=t||i;break;case h:a=t^i;break;case m:if(e._P){a=t&&!i}else{a=i&&!t}break}return a?+1:-1}var d=function e(r,t,i,a,n){this.left=t;this.point=r;this.IP=i;this._P=a;this.type=n||o;this.PP=false;this.OP=false;this.CP=null;this.hN=0;this.lN=-1;this.dN=-1;this.DP=true};var t={EP:{configurable:true}};d.prototype.FP=function e(r){var t=this.point,i=this.IP.point;return this.left?(t[0]-r[0])*(i[1]-r[1])-(i[0]-r[0])*(t[1]-r[1])>0:(i[0]-r[0])*(t[1]-r[1])-(t[0]-r[0])*(i[1]-r[1])>0};d.prototype.RP=function e(r){return!this.FP(r)};d.prototype.NP=function e(){return this.point[0]===this.IP.point[0]};t.EP.get=function(){return this.hN!==0};d.prototype.clone=function e(){var r=new d(this.point,this.left,this.IP,this._P,this.type);r.UP=this.UP;r.hN=this.hN;r.CP=this.CP;r.DP=this.DP;r.PP=this.PP;r.OP=this.OP;return r};Object.defineProperties(d.prototype,t);function _(e,r){if(e[0]===r[0]){if(e[1]===r[1]){return true}else{return false}}return false}var i=11102230246251565e-32;var R=134217729;var B=(3+8*i)*i;function E(e,r,t,i,a){var n,o,f,s;var u=r[0];var l=i[0];var v=0;var c=0;if(l>u===l>-u){n=u;u=r[++v]}else{n=l;l=i[++c]}var h=0;if(vu===l>-u){o=u+n;f=n-(o-u);u=r[++v]}else{o=l+n;f=n-(o-l);l=i[++c]}n=o;if(f!==0){a[h++]=f}while(vu===l>-u){o=n+u;s=o-n;f=n-(o-s)+(u-s);u=r[++v]}else{o=n+l;s=o-n;f=n-(o-s)+(l-s);l=i[++c]}n=o;if(f!==0){a[h++]=f}}}while(v=$||-A>=$){return A}v=e-w;f=e-(w+v)+(v-a);v=t-k;u=t-(k+v)+(v-a);v=r-T;s=r-(T+v)+(v-n);v=i-I;l=i-(I+v)+(v-n);if(f===0&&s===0&&u===0&&l===0){return A}$=G*o+B*Math.abs(A);A+=w*l+I*f-(T*u+k*s);if(A>=$||-A>=$){return A}b=f*I;c=R*f;h=c-(c-f);d=f-h;c=R*I;_=c-(c-I);g=I-_;x=d*g-(b-h*_-d*_-h*g);C=s*k;c=R*s;h=c-(c-s);d=s-h;c=R*k;_=c-(c-k);g=k-_;S=d*g-(C-h*_-d*_-h*g);y=x-S;v=x-y;N[0]=x-(y+v)+(v-S);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;N[1]=p-(y+v)+(v-C);M=m+y;v=M-m;N[2]=m-(M-v)+(y-v);N[3]=M;var F=E(4,O,4,N,D);b=w*l;c=R*w;h=c-(c-w);d=w-h;c=R*l;_=c-(c-l);g=l-_;x=d*g-(b-h*_-d*_-h*g);C=T*u;c=R*T;h=c-(c-T);d=T-h;c=R*u;_=c-(c-u);g=u-_;S=d*g-(C-h*_-d*_-h*g);y=x-S;v=x-y;N[0]=x-(y+v)+(v-S);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;N[1]=p-(y+v)+(v-C);M=m+y;v=M-m;N[2]=m-(M-v)+(y-v);N[3]=M;var P=E(F,D,4,N,U);b=f*l;c=R*f;h=c-(c-f);d=f-h;c=R*l;_=c-(c-l);g=l-_;x=d*g-(b-h*_-d*_-h*g);C=s*u;c=R*s;h=c-(c-s);d=s-h;c=R*u;_=c-(c-u);g=u-_;S=d*g-(C-h*_-d*_-h*g);y=x-S;v=x-y;N[0]=x-(y+v)+(v-S);m=b+y;v=m-b;p=b-(m-v)+(y-v);y=p-C;v=p-y;N[1]=p-(y+v)+(v-C);M=m+y;v=M-m;N[2]=m-(M-v)+(y-v);N[3]=M;var L=E(P,U,4,N,j);return j[L-1]}function V(e,r,t,i,a,n){var o=(r-n)*(t-a);var f=(e-a)*(i-n);var s=o-f;if(o===0||f===0||o>0!==f>0){return s}var u=Math.abs(o+f);if(Math.abs(s)>=P*u){return s}return-L(e,r,t,i,a,n,u)}function b(e,r,t){var i=V(e[0],e[1],r[0],r[1],t[0],t[1]);if(i>0){return-1}if(i<0){return 1}return 0}function x(e,r){var t=e.point;var i=r.point;if(t[0]>i[0]){return 1}if(t[0]i[1]?1:-1}return W(e,r,t)}function W(e,r,t,i){if(e.left!==r.left){return e.left?1:-1}if(b(t,e.IP.point,r.IP.point)!==0){return!e.FP(r.IP.point)?1:-1}return!e._P&&r._P?1:-1}function C(e,r,t){var i=new d(r,false,e,e._P);var a=new d(r,true,e.IP,e._P);if(_(e.point,e.IP.point)){console.warn("what is that, a collapsed segment?",e)}i.UP=a.UP=e.UP;if(x(a,e.IP)>0){e.IP.left=true;a.left=false}e.IP.IP=a;e.IP=i;t.push(a);t.push(i);return t}function S(e,r){return e[0]*r[1]-e[1]*r[0]}function M(e,r){return e[0]*r[0]+e[1]*r[1]}function q(e,r,t,i,a){var n=[r[0]-e[0],r[1]-e[1]];var o=[i[0]-t[0],i[1]-t[1]];function f(e,r,t){return[e[0]+r*t[0],e[1]+r*t[1]]}var s=[t[0]-e[0],t[1]-e[1]];var u=S(n,o);var l=u*u;var v=M(n,n);if(l>0){var c=S(s,o)/u;if(c<0||c>1){return null}var h=S(s,n)/u;if(h<0||h>1){return null}if(c===0||c===1){return a?null:[f(e,c,n)]}if(h===0||h===1){return a?null:[f(t,h,o)]}return[f(e,c,n)]}u=S(s,n);l=u*u;if(l>0){return null}var d=M(n,s)/v;var _=d+M(n,o)/v;var g=Math.min(d,_);var y=Math.max(d,_);if(g<=1&&y>=0){if(g===1){return a?null:[f(e,g>0?g:0,n)]}if(y===0){return a?null:[f(e,y<1?y:1,n)]}if(a&&g===0&&y===1){return null}return[f(e,g>0?g:0,n),f(e,y<1?y:1,n)]}return null}function w(e,r,t){var i=q(e.point,e.IP.point,r.point,r.IP.point);var a=i?i.length:0;if(a===0){return 0}if(a===1&&(_(e.point,r.point)||_(e.IP.point,r.IP.point))){return 0}if(a===2&&e._P===r._P){return 0}if(a===1){if(!_(e.point,i[0])&&!_(e.IP.point,i[0])){C(e,i[0],t)}if(!_(r.point,i[0])&&!_(r.IP.point,i[0])){C(r,i[0],t)}return 1}var n=[];var o=false;var f=false;if(_(e.point,r.point)){o=true}else if(x(e,r)===1){n.push(r,e)}else{n.push(e,r)}if(_(e.IP.point,r.IP.point)){f=true}else if(x(e.IP,r.IP)===1){n.push(r.IP,e.IP)}else{n.push(e.IP,r.IP)}if(o&&f||o){r.type=s;e.type=r.PP===e.PP?v:c;if(o&&!f){C(n[1].IP,n[0].point,t)}return 2}if(f){C(n[0],n[1].point,t);return 3}if(n[0]!==n[3].IP){C(n[0],n[1].point,t);C(n[1],n[2].point,t);return 3}C(n[0],n[1].point,t);C(n[3].IP,n[2].point,t);return 3}function Z(e,r){if(e===r){return 0}if(b(e.point,e.IP.point,r.point)!==0||b(e.point,e.IP.point,r.IP.point)!==0){if(_(e.point,r.point)){return e.FP(r.IP.point)?-1:1}if(e.point[0]===r.point[0]){return e.point[1]r.UP?1:-1}}}else{return e._P?-1:1}return x(e,r)===1?1:-1}function Y(e,r,t,i,a,n){var o=new g(Z);var f=[];var s=Math.min(i[2],a[2]);var u,l,v;while(e.length!==0){var c=e.pop();f.push(c);if(n===y&&c.point[0]>s||n===m&&c.point[0]>i[2]){break}if(c.left){l=u=o.Xc(c);v=o.MP();if(u!==v){u=o.NM(u)}else{u=null}l=o.next(l);var h=u?u.key:null;var d=void 0;p(c,h,n);if(l){if(w(c,l.key,e)===2){p(c,h,n);p(c,l.key,n)}}if(u){if(w(u.key,c,e)===2){var _=u;if(_!==v){_=o.NM(_)}else{_=null}d=_?_.key:null;p(h,d,n);p(c,h,n)}}}else{c=c.IP;l=u=o.find(c);if(u&&l){if(u!==v){u=o.NM(u)}else{u=null}l=o.next(l);o.remove(c);if(l&&u){w(u.key,l.key,e)}}}}return f}var K=function e(){this.points=[];this.vN=[];this.gN=null;this.depth=null};K.prototype.pN=function e(){return this.gN==null};function X(e){var r,t,i,a;var n=[];for(t=0,i=e.length;ti){a--}return a}function Q(e,r,t){var i=new K;if(e.CP!=null){var a=e.CP;var n=a.dN;var o=a.hN;if(o>0){var f=r[n];if(f.gN!=null){var s=f.gN;r[s].vN.push(t);i.gN=s;i.depth=r[n].depth}else{r[n].vN.push(t);i.gN=n;i.depth=r[n].depth+1}}else{i.gN=null;i.depth=r[n].depth}}else{i.gN=null;i.depth=0}return i}function ee(e){var o,r;var f=X(e);var s={};var u=[];var t=function(){if(s[o]){return}var r=u.length;var e=Q(f[o],u,r);var t=function(e){s[e]=true;f[e].dN=r};var i=o;var a=o;var n=f[o].point;e.points.push(n);while(true){t(i);i=f[i].lN;t(i);e.points.push(f[i].point);i=J(i,f,s,a);if(i==a){break}}u.push(e)};for(o=0,r=f.length;o0){for(var t=(this.length>>1)-1;t>=0;t--){this.zP(t)}}}function ie(e,r){return er?1:0}k.prototype={push:function(e){this.data.push(e);this.length++;this.El(this.length-1)},pop:function(){if(this.length===0){return undefined}var e=this.data[0];this.length--;if(this.length>0){this.data[0]=this.data[this.length];this.zP(0)}this.data.pop();return e},GP:function(){return this.data[0]},El:function(e){var r=this.data;var t=this.compare;var i=r[e];while(e>0){var a=e-1>>1;var n=r[a];if(t(i,n)>=0){break}r[e]=n;e=a}r[e]=i},zP:function(e){var r=this.data;var t=this.compare;var i=this.length>>1;var a=r[e];while(e=0){break}r[e]=f;e=n}r[e]=a}};re.default=te;var ae=Math.max;var ne=Math.min;var T=0;function oe(e,r,t,i,a,n){var o,f,s,u,l,v;for(o=0,f=e.length-1;o0){v.left=true}else{l.left=true}var c=s[0],h=s[1];a[0]=ne(a[0],c);a[1]=ne(a[1],h);a[2]=ae(a[2],c);a[3]=ae(a[3],h);i.push(l);i.push(v)}}function fe(e,r,t,i,a){var n=new re(null,x);var o,f,s,u,l,v;for(s=0,u=e.length;si[2]||i[0]>t[2]||t[1]>i[3]||i[1]>t[3]){if(a===y){n=I}else if(a===m){n=e}else if(a===f||a===h){n=e.concat(r)}}return n}function A(e,r,t){if(typeof e[0][0][0]==="number"){e=[e]}if(typeof r[0][0][0]==="number"){r=[r]}var i=se(e,r,t);if(i){return i===I?null:i}var a=[Infinity,Infinity,-Infinity,-Infinity];var n=[Infinity,Infinity,-Infinity,-Infinity];var o=fe(e,r,a,n,t);i=ue(e,r,a,n,t);if(i){return i===I?null:i}var f=Y(o,e,r,a,n,t);var s=ee(f);var u=[];for(var l=0;l0}var GeometryUtilCls=function(){function r(e){this.CLASS_NAME="AMap.GeometryUtil";this._opts=assign({onSegmentTolerance:5,crs:"EPSG3857",maxZoom:zoomRange[1]},e);this["setCrs"](this._opts["crs"])}r.prototype["clone"]=function(e){return new r(assign({},this._opts,e))};r.prototype["isPoint"]=function(e){return e&&(e instanceof LngLat$2||Util$3.isArray(e)&&!isNaN(e[0]))};r.prototype["normalizePoint"]=function(e){return e};r.prototype["normalizeLine"]=function(e){var r=[];for(var t=0,i=e.length;te[1]!==u>e[1]&&e[0]<(s-o)*(e[1]-f)/(u-f)+o;if(v){i=!i}}return i}return i};r.prototype["isPointInBbox"]=function(e,r){var t=Infinity;var i=Infinity;var a=-Infinity;var n=-Infinity;for(var o=0;ot&&e[0]i&&e[1]0){t=!t}if(!t){break}}return Boolean(t)};r.prototype["isPointInPolygons"]=function(e,r){for(var t=0;t0){a=!a}if(!a){break}}if(a){return true}}return false};r.prototype["doesSegmentsIntersect"]=function(e,r,t,i){var a=this.xr([e,r,t,i]);e=a[0];r=a[1];t=a[2];i=a[3];var n=false;var o=(i[0]-t[0])*(e[1]-t[1])-(i[1]-t[1])*(e[0]-t[0]);var f=(r[0]-e[0])*(e[1]-t[1])-(r[1]-e[1])*(e[0]-t[0]);var s=(i[1]-t[1])*(r[0]-e[0])-(i[0]-t[0])*(r[1]-e[1]);if(s!==0){var u=o/s;var l=f/s;if(0<=u&&u<=1&&0<=l&&l<=1){n=true}}return n};r.prototype["doesSegmentLineIntersect"]=function(e,r,t){t=this["normalizeLine"](t);for(var i=0,a=t.length;i(o[1]-n[1])*(e[0]-n[0])};var i=function(){var e=[n[0]-o[0],n[1]-o[1]],r=[f[0]-s[0],f[1]-s[1]],t=n[0]*o[1]-n[1]*o[0],i=f[0]*s[1]-f[1]*s[0],a=1/(e[0]*r[1]-e[1]*r[0]);return[(t*r[0]-i*e[0])*a,(t*r[1]-i*e[1])*a]};var a=e;n=r[r.length-1];for(var u=0,l=r.length;u2&&(e[0][0][0].length===2||e[0][0][0]instanceof LngLat$2)){return"MultiPolygon"}else{return"never"}};return r}();var GeometryUtilInstance=new GeometryUtilCls({});var PlaneGeometryUtilInstance=new GeometryUtilCls({});PlaneGeometryUtilInstance["setCrs"]("plane");var GeometryUtil={distance:GeometryUtilInstance.distance.bind(GeometryUtilInstance),ringArea:GeometryUtilInstance.ringArea.bind(GeometryUtilInstance),isClockwise:GeometryUtilInstance.isClockwise.bind(GeometryUtilInstance),typePolygon:GeometryUtilInstance.typePolygon.bind(GeometryUtilInstance),makesureClockwise:GeometryUtilInstance.makesureClockwise.bind(GeometryUtilInstance),makesureAntiClockwise:GeometryUtilInstance.makesureAntiClockwise.bind(GeometryUtilInstance),distanceOfLine:GeometryUtilInstance.distanceOfLine.bind(GeometryUtilInstance),ringRingClip:GeometryUtilInstance.ringRingClip.bind(GeometryUtilInstance),doesSegmentsIntersect:GeometryUtilInstance.doesSegmentsIntersect.bind(GeometryUtilInstance),doesSegmentLineIntersect:GeometryUtilInstance.doesSegmentLineIntersect.bind(GeometryUtilInstance),doesSegmentRingIntersect:GeometryUtilInstance.doesSegmentRingIntersect.bind(GeometryUtilInstance),doesSegmentPolygonIntersect:GeometryUtilInstance.doesSegmentPolygonIntersect.bind(GeometryUtilInstance),doesLineLineIntersect:GeometryUtilInstance.doesLineLineIntersect.bind(GeometryUtilInstance),doesLineRingIntersect:GeometryUtilInstance.doesLineRingIntersect.bind(GeometryUtilInstance),doesRingRingIntersect:GeometryUtilInstance.doesRingRingIntersect.bind(GeometryUtilInstance),pointInRing:GeometryUtilInstance.pointInRing.bind(GeometryUtilInstance),isPointInRing:GeometryUtilInstance.isPointInRing.bind(GeometryUtilInstance),isPointInBbox:GeometryUtilInstance.isPointInBbox.bind(GeometryUtilInstance),isRingInRing:GeometryUtilInstance.isRingInRing.bind(GeometryUtilInstance),isPointInPolygon:GeometryUtilInstance.isPointInPolygon.bind(GeometryUtilInstance),isPointInPolygons:GeometryUtilInstance.isPointInPolygons.bind(GeometryUtilInstance),isPointOnSegment:GeometryUtilInstance.isPointOnSegment.bind(GeometryUtilInstance),isPointOnLine:GeometryUtilInstance.isPointOnLine.bind(GeometryUtilInstance),isPointOnRing:GeometryUtilInstance.isPointOnRing.bind(GeometryUtilInstance),isPointOnPolygon:GeometryUtilInstance.isPointOnPolygon.bind(GeometryUtilInstance),closestOnSegment:GeometryUtilInstance.closestOnSegment.bind(GeometryUtilInstance),closestOnLine:GeometryUtilInstance.closestOnLine.bind(GeometryUtilInstance),distanceToSegment:GeometryUtilInstance.distanceToSegment.bind(GeometryUtilInstance),distanceToLine:GeometryUtilInstance.distanceToLine.bind(GeometryUtilInstance)};var PlaneGeometryUtil={distance:PlaneGeometryUtilInstance.distance.bind(PlaneGeometryUtilInstance),ringArea:PlaneGeometryUtilInstance.ringArea.bind(PlaneGeometryUtilInstance),isClockwise:PlaneGeometryUtilInstance.isClockwise.bind(PlaneGeometryUtilInstance),typePolygon:PlaneGeometryUtilInstance.typePolygon.bind(PlaneGeometryUtilInstance),makesureClockwise:PlaneGeometryUtilInstance.makesureClockwise.bind(PlaneGeometryUtilInstance),makesureAntiClockwise:PlaneGeometryUtilInstance.makesureAntiClockwise.bind(PlaneGeometryUtilInstance),distanceOfLine:PlaneGeometryUtilInstance.distanceOfLine.bind(PlaneGeometryUtilInstance),ringRingClip:PlaneGeometryUtilInstance.ringRingClip.bind(PlaneGeometryUtilInstance),doesSegmentsIntersect:PlaneGeometryUtilInstance.doesSegmentsIntersect.bind(PlaneGeometryUtilInstance),doesSegmentLineIntersect:PlaneGeometryUtilInstance.doesSegmentLineIntersect.bind(PlaneGeometryUtilInstance),doesSegmentRingIntersect:PlaneGeometryUtilInstance.doesSegmentRingIntersect.bind(PlaneGeometryUtilInstance),doesSegmentPolygonIntersect:PlaneGeometryUtilInstance.doesSegmentPolygonIntersect.bind(PlaneGeometryUtilInstance),doesLineLineIntersect:PlaneGeometryUtilInstance.doesLineLineIntersect.bind(PlaneGeometryUtilInstance),doesLineRingIntersect:PlaneGeometryUtilInstance.doesLineRingIntersect.bind(PlaneGeometryUtilInstance),doesRingRingIntersect:PlaneGeometryUtilInstance.doesRingRingIntersect.bind(PlaneGeometryUtilInstance),pointInRing:PlaneGeometryUtilInstance.pointInRing.bind(PlaneGeometryUtilInstance),isPointInRing:PlaneGeometryUtilInstance.isPointInRing.bind(PlaneGeometryUtilInstance),isPointInBbox:PlaneGeometryUtilInstance.isPointInBbox.bind(PlaneGeometryUtilInstance),isRingInRing:PlaneGeometryUtilInstance.isRingInRing.bind(PlaneGeometryUtilInstance),isPointInPolygon:PlaneGeometryUtilInstance.isPointInPolygon.bind(PlaneGeometryUtilInstance),isPointInPolygons:PlaneGeometryUtilInstance.isPointInPolygons.bind(PlaneGeometryUtilInstance),isPointOnSegment:PlaneGeometryUtilInstance.isPointOnSegment.bind(PlaneGeometryUtilInstance),isPointOnLine:PlaneGeometryUtilInstance.isPointOnLine.bind(PlaneGeometryUtilInstance),isPointOnRing:PlaneGeometryUtilInstance.isPointOnRing.bind(PlaneGeometryUtilInstance),isPointOnPolygon:PlaneGeometryUtilInstance.isPointOnPolygon.bind(PlaneGeometryUtilInstance),closestOnSegment:PlaneGeometryUtilInstance.closestOnSegment.bind(PlaneGeometryUtilInstance),closestOnLine:PlaneGeometryUtilInstance.closestOnLine.bind(PlaneGeometryUtilInstance),distanceToSegment:PlaneGeometryUtilInstance.distanceToSegment.bind(PlaneGeometryUtilInstance),distanceToLine:PlaneGeometryUtilInstance.distanceToLine.bind(PlaneGeometryUtilInstance)};var LngLat$2=function(){function o(e,r,t){if(t===void 0){t=false}this.className="AMap.LngLat";if(isNumberArray(e)){e=parseFloat(e[0]);r=parseFloat(e[1])}else{r=parseFloat(r);e=parseFloat(e)}if(isNaN(e)||isNaN(r)){throw Error("Invalid Object: LngLat("+e+", "+r+")")}if(t!==true){r=Math.max(Math.min(r,90),-90);e=(e+180)%360+(e<-180||e===180?180:-180)}this.kT=r;this.KL=e;this.lng=Math.round(e*1e6)/1e6;this.lat=Math.round(r*1e6)/1e6;this.pos=ProjectionManager.getProjection("EPSG:3857").project(e,r)}o.from=function(e){if(isLngLat(e)){return new o(e.KL,e.kT)}return new o(e[0],e[1])};o.prototype["setLng"]=function(e){this.KL=e;this.lng=Math.round(e*1e6)/1e6;return this};o.prototype["setLat"]=function(e){this.kT=e;this.lat=Math.round(e*1e6)/1e6;return this};o.prototype["getLng"]=function(){return this.lng};o.prototype["getLat"]=function(){return this.lat};o.prototype["equals"]=function(e){e=parseLngLatData(e);if(!(e instanceof o)){return false}var r=Math.max(Math.abs(this.kT-e.kT),Math.abs(this.KL-e.KL));return r<=1e-9};o.prototype["add"]=function(e,r){return new o(this.KL+e.KL,this.kT+e.kT,r)};o.prototype["subtract"]=function(e,r){return new o(this.KL-e.KL,this.kT-e.kT,r)};o.prototype["divideBy"]=function(e,r){return new o(this.KL/e,this.kT/e,r)};o.prototype["multiplyBy"]=function(e,r){return new o(this.KL*e,this.kT*e,r)};o.prototype["offset"]=function(e,r){if(isNaN(e)||isNaN(r)){throw Error("valid offset args, require number")}var t=2*Math.asin(Math.sin(Math.round(e)/(2*6378137))/Math.cos(this.kT*Math.PI/180));var i=this.KL+t*180/Math.PI;var a=2*Math.asin(Math.round(r)/(2*6378137));var n=this.kT+a*180/Math.PI;return new o(i,n)};o.prototype["toString"]=function(){return this.lng+","+this.lat};o.prototype["toArray"]=function(){return[this.lng,this.lat]};o.prototype["toJSON"]=function(){return[this.lng,this.lat]};o.prototype["distanceTo"]=function(e){return GeometryUtil["distance"](this,e)};o.prototype["distance"]=function(e){return GeometryUtil["distance"](this,e)};return o}();var Size=function(){function e(e,r,t){if(t===void 0){t=false}this.className="AMap.Size";if(isNaN(e)||isNaN(r)){throw new Error("Invalid Object: Pixel("+e+", "+r+")")}this["width"]=t?Math.round(e):Number(e);this["height"]=t?Math.round(r):Number(r)}e.prototype["getWidth"]=function(){return this.width};e.prototype["getHeight"]=function(){return this.height};e.prototype["toString"]=function(){return this.width+","+this.height};e.prototype["toArray"]=function(){return[this.width,this.height]};return e}();var easing=function(){var o={};var f=4;var l=.001;var s=1e-7;var u=10;var v=11;var c=1/(v-1);var h=typeof Float32Array==="function";function i(e,r){return 1-3*r+3*e}function a(e,r){return 3*r-6*e}function n(e){return 3*e}function d(e,r,t){return((i(r,t)*e+a(r,t))*e+n(r))*e}function _(e,r,t){return 3*i(r,t)*e*e+2*a(r,t)*e+n(r)}function g(e,r,t,i,a){var n,o,f=0;do{o=r+(t-r)/2;n=d(o,i,a)-e;if(n>0){t=o}else{r=o}}while(Math.abs(n)>s&&++f=l){return y(e,n,f,s)}else if(o===0){return n}else{return g(e,r,r+c,f,s)}}var n=function(e){if(e===0){return 0}if(e===1){return 1}return d(a(e),r,t)};o[e]=n;return n}}();function getQuadBezierValue(e,r,t,i){if(e>=1){return i}var a=1-e;return a*a*r+2*a*e*t+e*e*i}function cubic(e,r,t,i,a){if(e>=1){return a}var n=3*(t.pos[0]-r.pos[0]),o=3*(i.pos[0]-t.pos[0])-n,f=a.pos[0]-r.pos[0]-n-o;var s=3*(t.pos[1]-r.pos[1]),u=3*(i.pos[1]-t.pos[1])-s,l=a.pos[1]-r.pos[1]-s-u;var v=f*Math.pow(e,3)+o*Math.pow(e,2)+n*e+r.pos[0];var c=l*Math.pow(e,3)+u*Math.pow(e,2)+s*e+r.pos[1];return ProjectionManager.getProjection("EPSG:3857").unproject(v,c)}function quad(e,r,t,i){return ProjectionManager.getProjection("EPSG:3857").unproject(getQuadBezierValue(e,r.pos[0],t.pos[0],i.pos[0]),getQuadBezierValue(e,r.pos[1],t.pos[1],i.pos[1]))}function p20CoordsToLngLat(e,r){if(Array.isArray(r)){r=new Pixel(r[0],r[1])}return e.ai(r,20)}function getSplitNum(e,r){var t={tolerance:4,interpolateNumLimit:[3,300]};var i=t["tolerance"],a=t["interpolateNumLimit"];i=Math.max(2,i);var n=0,o=0;for(var f=0,s=e.length;f>0}return n}},createObjectURL:function(e,r){if(r===void 0){r="text/javascript; charset=utf-8"}var t=null;try{var i=globalInstance["URL"]||globalInstance["webkitURL"];t=i["createObjectURL"](new Blob([e],{type:r}))}catch(e){t=null}return t},revokeObjectURL:function(e){try{var r=globalInstance["URL"]||globalInstance["webkitURL"];r["revokeObjectURL"](e)}catch(e){}},Og:function(e){var r={};for(var t=0,i=e.length;t0){r(e[0],0);if(t>1){r(e[1],1);for(var i=2;i"v5"){i=t.length;a=512}else{i=27;t=t.substr(0,27);a=333}var n,o,f,s,u;o=[];f=NaN;for(s=0,u=e.length;s512){t=Math.round(Math.pow(r.length,.5))}else{t=r.length}var i=Math.ceil(r.length/t);for(var a=0;ar.length){o=r.length}for(var f=n;f1){t-=1}if(t<1/6){return e+(r-e)*6*t}if(t<1/2){return r}if(t<2/3){return e+(r-e)*(2/3-t)*6}return e},rgbHex2Rgba:function(e){if(e.startsWith("#")){e=e.slice(1)}return c.argbHex2Rgba("ff"+e)},argbHex2Rgba:function(e){if(e.startsWith("#")){e=e.slice(1)}var r=[];for(var t=0,i=e.length;t>24&255)/255,(r>>16&255)/255,(r>>8&255)/255,(r&255)/255];return t},isEmpty:function(e){for(var r in e){if(e.hasOwnProperty(r)){return false}}return true},Wg:function(e,r){if(r>=0){e.splice(r,1)}return e},startsWith:function(e,r){if(e["startsWith"]){return e["startsWith"](r)}else{return e.substr(0,r.length)===r}},deleteItemFromArray:function(e,r){var t=c.indexOf(e,r);return c.Wg(e,t)},deleteItemFromArrayByIndex:function(e,r){return c.Wg(e,r)},filter:function(e,t,i){var a=[];c.Cg(e,function(e,r){if(t.call(i,e,r)){a.push(e)}});return a},indexOf:function(e,r){if(!e||!e.length){return-1}if(e["indexOf"]){return e["indexOf"](r)}else{for(var t=0;t2?Array.prototype.slice.call(arguments,2):null;if(i){if(t){t.unshift(r);return e.bind.apply(e,t)}else{return e.bind(r)}}else{return function(){return e.apply(r,t||arguments)}}}}(),setOptions:function(e,r){r=r||{};e.opts=assign({},e.opts,r);return e.opts},yn:function(e,r,t){return typeof r=="function"?this.Hg(e,true,this.Vg(r,t,1)):this.Hg(e,true)},Hg:function(t,i,a,e,r,n,o){var f;if(a){f=r?a(t,e,r):a(t)}if(f!==undefined){return f}if(!this.$g(t)){return t}var s=this.isArray(t);if(s){f=this.Yg(t);if(!i){return this.Kg(t,f)}}else{var u=Object.prototype.toString.call(t),l=u=="[object Function]";if(u=="[object Object]"||u=="[object Arguments]"||l&&!r){f=this.Xg(l?{}:t);if(!i){return this.baseAssign(f,t)}}else{return r?t:{}}}n||(n=[]);o||(o=[]);var v=n.length;while(v--){if(n[v]==t){return o[v]}}n.push(t);o.push(f);(s?this.Zg:this.Qg)(t,function(e,r){f[r]=c.Hg(e,i,a,r,t,n,o)});return f},baseAssign:function(e,r){return r==null?e:this.tM(r,Object.keys(r),e)},$g:function(e){var r=typeof e;return!!e&&(r=="object"||r=="function")},rM:function(e){return!!e&&typeof e=="object"},nM:function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991},Yg:function(e){var r=e.length,t=new Array(r);if(r&&typeof e[0]=="string"&&Object.hasOwnProperty.call(e,"index")){t.index=e.index;t.input=e.input}return t},Kg:function(e,r){var t=-1,i=e.length;r||(r=Array(i));while(++t1?1:-1;var f=parseInt("1"+t)/3e3;var s=parseInt("1"+i)/3e3;e-=f*n;r-=s*o;return new LngLat$2(parseFloat(e).toFixed(5),parseFloat(r).toFixed(5))},vM:function(e){if(typeof JSON!=="undefined"&&JSON.stringify){return c.fM(JSON.stringify(e))}return null},lM:function(e,r){var t="_amap_hash";if(r||!e.hasOwnProperty(t)){var i=c.vM(e);if(i){e[t]=i}}return e[t]},parseLngLatData:function(e){if(c.isArray(e)){if(c.isArray(e[0])){for(var r=0;r=LocalZoom){var a=lcs$2.getSize();var n=r.viewState.centerCoord;var o=lcs$2.getLocalByCoord([n[0],n[1]]);var f=e.x-o.x;var s=e.y-o.y;if(f!==0){f*=a[0];t[0]=f}if(s!==0){s*=a[1];t[1]=s}}else if(e){t[0]+=e.center[0];t[1]+=e.center[1]}return t},dS:function(e,r){return e>=r[0]&&e<=r[1]},kD:function(e,r,t){if(e===void 0){e=""}if(t===void 0){t=false}var i=e.split(",")[0]||"";if(t){return"all"}if(i&&r){return TagMap[r]||"all"}return"all"},VF:function(e,r,t){if(t===void 0){t=false}if(t){return"all"}if(e&&r){return TagMap[r]||"all"}return"all"},LD:function(e,r){var t=false;if(!e||!r){return t}var i=this.iN(e);var a=this.iN(r);return i>=a},SD:function(e){if(e===void 0){e="all"}var r;switch(e){case"lite":{r=0;break}case"left":{r=1;break}case"all":default:{r=2}}return r},pW:function(e){if(e===void 0){e=2}var r;switch(e){case 0:{r=NebulaTagType.LITE;break}case 1:{r=NebulaTagType.LEFT;break}case 2:default:{r=NebulaTagType.ALL}}return r},iN:function(e){var r=0;switch(e){case"lite":{r=0;break}case"left":{r=1;break}case"all":{r=2;break}}return r}};(function(){var i=0;function e(e){var r=+new Date,t=Math.max(0,(Browser.HV?50:20)-(r-i));i=r+t;return globalInstance.setTimeout(e,50)}var r=function(e){globalInstance.clearTimeout(e)};if(Browser.DW){var a=e;var t=r;s["requestAnimFrame"]=function(e,r,t,i){if(t){if(r){c.bind(e,r).call(r,i)}else{e()}}else{return a(function(){if(r){c.bind(e,r).call(r,i)}else{e()}})}};s["cancelAnimFrame"]=function(e){if(e){t.call(globalInstance,e)}};return}function n(e){var r,t,i=["webkit","moz","o","ms"];for(r=0;r=0||ua.indexOf("Windows")>=0;this.wU=Math.round(r[1]/2*(s?1.2:1))}e.prototype.bU=function(e){this.size=e||[];this.xU();this.mU()};e.prototype.Ce=function(e){var r=this.size,t=r[0],i=r[1];var a=t*i;var n=this.Nz;if(n){n.clearRect(0,0,t,i);n.fillText(e,this.buffer,this.wU);var o=n.getImageData(0,0,t,i);var f=new Uint8ClampedArray(a);var s=new Array(9).fill(0);s[0]=1;s[1]=1;var u=e.charCodeAt(0);if(this.RU(u)){return{bitmap:f,info:s}}var l=0;var v=0;var c=INF;var h=INF;var d=0;var _=0;for(var g=0;g0){if(c>l){c=l}if(h>v){h=v}if(dthis.AU.uf){this.AU.ff(i);this.TU.ff(i)}var a=ua.indexOf("Gecko/")>=0||ua.indexOf("Windows")>=0;this.wU=Math.round(t/2*(a?1.2:1))};e.prototype.RU=function(e){var r=this.SU(e,ControlChars);var t=this.SU(e,ZeroWidthChars);return r||t};e.prototype.SU=function(e,r){for(var t=0,i=r;t=a[0]&&e<=a[1]){return true}}};return e}();function expandTypeArray(e){f.ff(e);d.ff(e);z.ff(e);v.ff(e)}function edt(e,r,t){if(f.uf1){this.width=Math.floor(this.CU.size[0]*e.length*.5);this.NU.bU([this.width,this.height])}return this.NU.Ce(e)};return e}();var LangManager=function(){function i(){this.OU={}}i.gG=function(e){var r=e.split("|");var t=parseInt(r[0],10);return this.IU(t)};i.kU=function(e){var r=[];for(var t=0;t32&&e<591){r="en"}else if(e>=4096&&e<=4255){r="my"}else if(e>=3584&&e<=3711){r="th"}else if(e>=6016&&e<=6143){r="km"}else if(e>=3712&&e<=3839){r="lao"}else if(e>=1536&&e<=1791){r="arabic"}else{r="ch"}return r};i.prototype.D$=function(e){if(e===void 0){e="ch"}var r=this.OU[e];if(!r){var t=LangConf[e]?LangConf[e]:LangConf.default;r=new Lang(t);this.OU[e]=r}return r};i.EU=[LangConf.my.type,LangConf.km.type,LangConf.PU.type];return i}();var CHN=[["90.398619","47.62125"],["90.493569","47.512157"],["90.491338","47.430787"],["90.552986","47.391174"],["90.522859","47.318461"],["90.584915","47.224989"],["90.782025","47.019194"],["90.923517","46.97996"],["90.986624","46.807403"],["91.082926","46.722064"],["91.051812","46.596604"],["91.100242","46.564068"],["91.102624","46.537196"],["90.935125","46.300398"],["91.032801","46.126363"],["91.055181","46.011658"],["90.741148","45.713536"],["90.699563","45.544726"],["90.700228","45.504993"],["90.795887","45.449956"],["90.832257","45.31629"],["90.919719","45.26871"],["90.920899","45.225065"],["91.136978","45.244316"],["91.253943","45.164928"],["91.372068","45.142003"],["91.45689","45.18485"],["91.624753","45.098124"],["92.062061","45.11548"],["92.497694","45.030848"],["92.887666","45.075869"],["93.513157","44.997233"],["94.22699","44.694971"],["94.374082","44.542037"],["94.620202","44.47394"],["94.737532","44.366876"],["95.002041","44.282908"],["95.42701","44.324539"],["95.440292","44.292217"],["95.365491","44.054053"],["95.549126","44.026335"],["95.883651","43.431746"],["95.911953","43.287656"],["96.385653","42.919774"],["96.41151","42.75927"],["97.176454","42.824161"],["98.198333","42.682435"],["99.505985","42.597497"],["99.964106","42.676693"],["100.259793","42.666107"],["100.320604","42.718863"],["100.867753","42.700052"],["101.814637","42.530852"],["102.090733","42.250567"],["102.451458","42.173439"],["102.716911","42.181644"],["103.426452","41.910629"],["103.858223","41.830321"],["104.537873","41.903108"],["104.55755","41.881352"],["104.554117","41.69046"],["104.929798","41.682608"],["105.010371","41.620463"],["105.220141","41.778353"],["105.732529","41.977008"],["106.776853","42.319288"],["107.167833","42.354897"],["107.458928","42.487147"],["107.937949","42.433308"],["108.241189","42.489425"],["108.84269","42.425722"],["109.022141","42.487574"],["109.290662","42.465227"],["109.534657","42.500548"],["109.723763","42.60669"],["110.100045","42.671172"],["110.420666","42.80617"],["111.005001","43.354829"],["111.446257","43.521761"],["111.555004","43.519925"],["111.780481","43.697712"],["111.925235","43.719055"],["111.936243","43.796237"],["111.863286","43.902314"],["111.643689","44.039247"],["111.386948","44.360034"],["111.610923","44.793044"],["111.742544","44.988614"],["111.9942","45.118751"],["112.435906","45.103062"],["112.61512","44.956037"],["112.806373","44.882816"],["113.624854","44.775834"],["113.896701","44.9424"],["114.104283","44.984106"],["114.437113","45.233044"],["114.543629","45.41585"],["114.742713","45.46746"],["114.977202","45.40645"],["115.36123","45.421513"],["115.688202","45.487095"],["116.023886","45.712008"],["116.163919","45.717567"],["116.251037","45.785617"],["116.213851","45.874652"],["116.246574","45.98171"],["116.56904","46.316673"],["116.83033","46.413023"],["117.353361","46.390324"],["117.41533","46.528251"],["117.39222","46.582448"],["117.411768","46.610108"],["117.618878","46.628442"],["117.72387","46.549579"],["118.312433","46.768455"],["118.774374","46.71799"],["118.828619","46.795917"],["118.912926","46.804113"],["118.941979","46.764971"],["119.028625","46.769292"],["119.119864","46.669494"],["119.724391","46.623078"],["119.791059","46.707882"],["119.884572","46.701717"],["119.896224","46.880494"],["119.836485","46.899381"],["119.742007","47.13776"],["119.30249","47.404711"],["119.315214","47.461827"],["119.134262","47.517476"],["119.10804","47.64174"],["118.755577","47.747779"],["118.55396","47.96464"],["118.177657","48.02096"],["117.82558","47.987997"],["117.388809","47.612384"],["117.082887","47.796869"],["116.816533","47.867783"],["116.452289","47.808327"],["116.270714","47.845797"],["115.938377","47.653883"],["115.559971","47.900966"],["115.500727","48.161305"],["115.791907","48.279437"],["115.776629","48.537807"],["116.042275","48.826715"],["116.024444","48.890046"],["116.709459","49.880215"],["117.07866","49.723328"],["117.482128","49.648667"],["117.801998","49.554185"],["117.858689","49.620567"],["118.068073","49.643304"],["118.210831","49.759243"],["118.358674","49.80286"],["118.37378","49.853853"],["118.468623","49.857768"],["118.559926","49.957101"],["119.082034","50.01451"],["119.311051","50.169532"],["119.328389","50.327724"],["119.175332","50.320094"],["119.103534","50.373674"],["119.103642","50.409488"],["119.224019","50.469114"],["119.262214","50.625767"],["119.470096","50.763554"],["119.480245","50.910299"],["119.734497","51.106944"],["119.73542","51.228925"],["119.789064","51.243368"],["119.787948","51.298691"],["119.896417","51.365189"],["119.889615","51.410731"],["119.950318","51.426267"],["120.067241","51.699773"],["120.632029","51.963004"],["120.755196","52.16206"],["120.733974","52.23734"],["120.60276","52.318868"],["120.688398","52.529211"],["120.459208","52.615218"],["120.046556","52.554881"],["120.004778","52.785297"],["120.275145","52.889292"],["120.877526","53.323248"],["121.231921","53.310391"],["122.338707","53.534212"],["122.443142","53.474191"],["122.84101","53.486577"],["123.278553","53.592823"],["123.480492","53.533829"],["123.518364","53.587614"],["123.901491","53.509565"],["124.129157","53.379309"],["124.260864","53.404185"],["124.447374","53.252351"],["124.696798","53.233398"],["124.854212","53.143501"],["124.877429","53.19179"],["125.14374","53.233437"],["125.500989","53.129213"],["125.53472","53.084642"],["125.631731","53.108131"],["125.776978","53.000452"],["125.732839","52.906456"],["125.842016","52.927481"],["125.973551","52.795444"],["126.049747","52.829373"],["126.137295","52.788424"],["126.136093","52.7501"],["126.082878","52.727183"],["126.094744","52.66376"],["126.01078","52.632295"],["126.225078","52.557751"],["126.227546","52.502887"],["126.28664","52.498733"],["126.378071","52.405299"],["126.365626","52.334723"],["126.460233","52.313556"],["126.457937","52.278438"],["126.370797","52.21752"],["126.587327","52.146539"],["126.544647","52.022831"],["126.483493","52.004144"],["126.489866","51.963387"],["126.757379","51.72942"],["126.769931","51.638237"],["126.737959","51.604012"],["126.870396","51.541384"],["126.8313","51.449554"],["126.939726","51.411373"],["126.952021","51.35238"],["127.007918","51.339647"],["126.930671","51.194554"],["126.950047","51.077214"],["127.328668","50.761993"],["127.324612","50.674039"],["127.399564","50.585975"],["127.336199","50.480736"],["127.39435","50.441709"],["127.374866","50.346296"],["127.622938","50.242265"],["127.624762","50.159938"],["127.524126","50.053819"],["127.569466","49.832087"],["127.686474","49.798414"],["127.716987","49.69577"],["127.838395","49.617717"],["128.185065","49.56898"],["128.533065","49.633229"],["128.791094","49.618148"],["128.84167","49.562161"],["128.811865","49.506248"],["129.022107","49.485245"],["129.11165","49.389985"],["129.230032","49.429552"],["129.343135","49.392234"],["129.383497","49.461849"],["129.526126","49.451932"],["129.593332","49.316758"],["129.745059","49.313625"],["129.972146","49.057136"],["130.243692","48.89923"],["130.444579","48.939218"],["130.526934","48.889044"],["130.693552","48.907086"],["130.705612","48.869994"],["130.580449","48.630526"],["130.630317","48.609845"],["130.648105","48.52472"],["130.790884","48.525345"],["130.778868","48.413864"],["130.875106","48.300724"],["130.708423","48.108792"],["130.914073","47.945556"],["131.01546","47.736076"],["131.552374","47.750448"],["131.621768","47.692216"],["131.711934","47.740348"],["131.958075","47.703033"],["131.995368","47.741041"],["132.235458","47.739381"],["132.340472","47.796162"],["132.546873","47.750881"],["132.655685","47.89209"],["132.654505","47.979308"],["132.811511","47.967327"],["133.097413","48.158185"],["133.473394","48.128346"],["133.728504","48.281365"],["134.199908","48.411499"],["134.519091","48.448618"],["134.797053","48.402511"],["134.903462","48.476549"],["135.111473","48.465979"],["135.087461","48.366044"],["134.70854","48.235879"],["134.705815","48.142967"],["134.587133","47.991745"],["134.802439","47.732613"],["134.805079","47.701502"],["134.584837","47.454022"],["134.327302","47.405829"],["134.203448","47.309543"],["134.189801","47.25835"],["134.258273","47.190339"],["134.25029","47.096963"],["134.160018","47.066453"],["134.091868","46.968583"],["134.042215","46.633997"],["133.892806","46.477753"],["133.978872","46.404235"],["133.938468","46.35728"],["133.943124","46.251663"],["133.734856","46.143924"],["133.77584","46.068467"],["133.698828","45.924364"],["133.509421","45.823745"],["133.533154","45.779212"],["133.488886","45.719859"],["133.513906","45.69461"],["133.496869","45.599732"],["133.229721","45.489276"],["133.168674","45.414886"],["133.124621","45.258199"],["133.158975","45.105773"],["132.946351","44.989767"],["131.996377","45.226214"],["131.893723","45.301592"],["131.80903","45.186922"],["131.72307","45.208468"],["131.688416","45.166214"],["131.716461","45.107939"],["131.507506","44.942491"],["131.131804","44.90387"],["131.021662","44.839439"],["131.137726","44.723122"],["131.338398","44.056058"],["131.273661","43.974086"],["131.248341","43.566337"],["131.344342","43.514183"],["131.346252","43.391702"],["131.236002","43.22857"],["131.242955","43.131057"],["131.13749","43.018486"],["131.168904","42.923466"],["131.065779","42.901952"],["131.05005","42.834641"],["130.673962","42.819219"],["130.46123","42.731347"],["130.617421","42.685874"],["130.650616","42.595365"],["130.604267","42.509264"],["130.661752","42.412289"],["130.553477","42.421191"],["130.507536","42.571366"],["130.42958","42.523293"],["130.416105","42.590452"],["130.235238","42.692151"],["130.237405","42.873951"],["130.125611","42.876169"],["130.075765","42.911319"],["130.092008","42.956423"],["129.933178","42.975108"],["129.878311","42.92378"],["129.795163","42.719399"],["129.815032","42.601778"],["129.735103","42.411401"],["129.607751","42.418118"],["129.55415","42.330996"],["129.383025","42.403749"],["129.268527","42.323223"],["129.222093","42.257635"],["129.2434","42.19201"],["128.992774","42.075243"],["128.959644","41.997184"],["128.121765","41.974471"],["128.183949","41.746614"],["128.336234","41.608881"],["128.268621","41.434008"],["128.127944","41.337429"],["128.00482","41.417516"],["127.65285","41.377517"],["127.537794","41.447986"],["127.248116","41.454805"],["127.234962","41.492217"],["127.08566","41.544545"],["127.128081","41.592273"],["127.012339","41.679643"],["127.035706","41.702541"],["126.914964","41.778689"],["126.809177","41.669562"],["126.74607","41.691325"],["126.612003","41.629975"],["126.529799","41.412013"],["126.562243","41.368516"],["126.557908","41.33825"],["126.45328","41.325763"],["126.3043","41.139979"],["126.148946","41.070584"],["126.132917","40.990783"],["126.041744","40.924117"],["126.041787","40.876401"],["125.721896","40.840697"],["125.681319","40.80754"],["125.712733","40.774611"],["125.686641","40.761853"],["125.582743","40.75319"],["125.423162","40.624246"],["125.310595","40.636606"],["125.022783","40.521123"],["125.06057","40.46396"],["124.907556","40.445935"],["124.374311","40.078794"],["124.388452","39.905638"],["123.741782","39.10294"],["123.282201","38.058466"],["124.24299","31.368588"],["124.714351","29.508006"],["125.072136","25.859069"],["124.935837","25.676612"],["123.836839","25.5127"],["122.751321","24.515956"],["121.947788","22.070621"],["121.867355","21.383021"],["119.827087","18.177352"],["119.026527","16.873489"],["119.11665","15.951676"],["119.101406","14.063252"],["119.100623","12.209516"],["119.07742","11.23357"],["116.011301","7.678721"],["114.941852","6.182877"],["114.229887","5.47862"],["113.86269","4.692236"],["112.795642","3.695169"],["111.953841","3.231846"],["109.894631","3.714037"],["108.659956","4.748032"],["107.925439","5.91737"],["107.96348","6.895899"],["108.555028","9.28242"],["110.128544","11.338543"],["109.983314","12.44102"],["109.806102","13.535124"],["109.636428","14.636855"],["109.78629","15.402577"],["109.449813","15.723154"],["108.117871","17.258818"],["107.310076","18.842045"],["107.374728","19.467179"],["108.051095","20.114414"],["108.328478","21.187373"],["108.278139","21.403412"],["108.107378","21.47839"],["107.943356","21.509097"],["107.849844","21.619412"],["107.547355","21.55724"],["107.470751","21.571209"],["107.451932","21.615722"],["107.357798","21.570152"],["107.289755","21.702532"],["107.207551","21.682454"],["106.998789","21.79714"],["107.015655","21.907972"],["106.951239","21.893876"],["106.768184","21.978429"],["106.703854","21.935422"],["106.674027","21.941175"],["106.664565","22.266461"],["106.643493","22.30484"],["106.538715","22.328641"],["106.53142","22.460275"],["106.592939","22.622033"],["106.708553","22.615477"],["106.793547","22.794758"],["106.548972","22.899047"],["106.304634","22.830954"],["106.190543","22.951201"],["106.088791","22.966118"],["105.867991","22.889816"],["105.712488","23.033058"],["105.550311","23.045755"],["105.530806","23.163759"],["105.330691","23.346393"],["105.249667","23.237422"],["105.089657","23.231409"],["104.951169","23.149476"],["104.843495","23.101267"],["104.893084","22.94393"],["104.747257","22.79551"],["104.567764","22.813411"],["104.371855","22.65974"],["104.249053","22.720536"],["104.237015","22.806132"],["104.137495","22.783462"],["104.078336","22.740585"],["104.017096","22.520843"],["103.962035","22.492019"],["103.666692","22.741534"],["103.525093","22.580551"],["103.458703","22.648987"],["103.394201","22.751092"],["103.341286","22.767397"],["103.306804","22.661878"],["103.215652","22.621855"],["103.205309","22.536362"],["103.107505","22.486567"],["103.076606","22.416444"],["102.91784","22.456309"],["102.840786","22.583305"],["102.610223","22.696625"],["102.558017","22.673838"],["102.493515","22.738071"],["102.424293","22.676273"],["102.446694","22.621241"],["102.327948","22.511268"],["102.278531","22.386786"],["102.142661","22.36867"],["102.03475","22.427651"],["101.942096","22.415036"],["101.8765","22.355136"],["101.764791","22.472926"],["101.700847","22.453176"],["101.694624","22.349917"],["101.579332","22.223979"],["101.631925","21.988099"],["101.718335","21.962549"],["101.79863","21.848016"],["101.778824","21.73654"],["101.856952","21.62392"],["101.847124","21.595911"],["101.773932","21.558438"],["101.760328","21.349162"],["101.862724","21.239522"],["101.764727","21.115389"],["101.663511","21.164623"],["101.587808","21.146813"],["101.574161","21.209359"],["101.53264","21.221881"],["101.293538","21.149214"],["101.203866","21.206559"],["101.216612","21.289294"],["101.114173","21.403592"],["101.183052","21.497378"],["101.111941","21.560533"],["101.095719","21.734009"],["100.901892","21.659343"],["100.747526","21.494902"],["100.586185","21.423588"],["100.468576","21.433695"],["100.414267","21.504705"],["100.248806","21.434534"],["100.115855","21.481604"],["100.078626","21.591362"],["100.11579","21.654357"],["100.010068","21.666462"],["99.916813","21.811046"],["99.968591","21.972539"],["99.950867","22.023392"],["99.699748","22.008512"],["99.585378","22.083453"],["99.19384","22.094388"],["99.129961","22.147006"],["99.24403","22.347694"],["99.226069","22.407775"],["99.348979","22.505302"],["99.289627","22.751963"],["99.429595","22.858203"],["99.422858","22.95454"],["99.521735","22.955884"],["99.488432","23.051046"],["99.336512","23.101188"],["99.258964","23.048934"],["99.10449","23.057463"],["98.99924","23.151389"],["98.858693","23.167152"],["98.89811","23.292382"],["98.844295","23.323341"],["98.878284","23.4184"],["98.821571","23.466061"],["98.773527","23.530055"],["98.849638","23.617887"],["98.774085","23.751823"],["98.656368","23.775684"],["98.63961","23.801661"],["98.649909","23.978332"],["98.828974","24.077833"],["98.83893","24.109859"],["98.594849","24.051324"],["98.534853","24.098401"],["98.118939","24.06406"],["97.652578","23.812007"],["97.500916","23.916402"],["97.507889","23.946076"],["97.703905","24.12772"],["97.7321","24.242073"],["97.646012","24.307132"],["97.678134","24.384313"],["97.653759","24.420913"],["97.528617","24.403523"],["97.504349","24.421636"],["97.520614","24.750904"],["97.686181","24.867223"],["97.726886","24.872596"],["97.701159","24.901891"],["97.691374","25.085579"],["97.816257","25.289948"],["97.844152","25.297669"],["97.93803","25.249897"],["98.122308","25.413237"],["98.152177","25.643055"],["98.313818","25.589382"],["98.380058","25.615679"],["98.510756","25.863626"],["98.635018","25.83211"],["98.668857","25.860517"],["98.546226","26.121072"],["98.648708","26.171346"],["98.686366","26.138757"],["98.648","26.279486"],["98.751404","26.620222"],["98.701365","26.849746"],["98.733852","27.033154"],["98.685272","27.065508"],["98.663149","27.194049"],["98.708661","27.325701"],["98.657935","27.422786"],["98.67244","27.532116"],["98.574979","27.540164"],["98.537407","27.61841"],["98.464022","27.631357"],["98.417695","27.512725"],["98.29766","27.498051"],["98.144388","27.832814"],["98.155954","27.920407"],["98.109477","27.953809"],["98.111","28.123353"],["97.991245","28.182664"],["97.984571","28.253152"],["97.904449","28.328541"],["97.775702","28.306704"],["97.650433","28.498038"],["97.537651","28.471615"],["97.537544","28.300942"],["97.374809","28.215134"],["97.340262","28.085365"],["97.441328","28.020526"],["97.41045","27.866111"],["97.271254","27.865238"],["97.104206","27.710621"],["97.074959","27.716851"],["96.959302","27.833554"],["96.799979","27.862962"],["96.485238","28.041967"],["96.435456","28.122218"],["96.282742","28.11548"],["96.254032","28.195619"],["96.011753","28.160892"],["95.866721","28.266533"],["95.747824","28.246895"],["95.417182","28.118906"],["95.304315","27.916842"],["94.898787","27.716889"],["94.531603","27.567615"],["94.290032","27.552854"],["93.888688","27.17204"],["93.845987","27.008916"],["93.571308","26.909059"],["92.944937","26.862668"],["92.647405","26.922873"],["92.093539","26.830122"],["92.094247","26.952103"],["91.998589","27.089524"],["92.083004","27.299047"],["92.034273","27.387239"],["91.995907","27.444668"],["91.729424","27.433927"],["91.566002","27.518015"],["91.534996","27.644815"],["91.602566","27.75719"],["91.514804","27.82382"],["91.562676","27.867913"],["91.468799","27.914302"],["91.441784","27.98019"],["91.319818","28.026891"],["91.09123","27.815659"],["90.700164","28.042914"],["90.592875","27.992071"],["90.457885","28.016188"],["90.284765","28.126494"],["90.15898","28.149257"],["90.026414","28.108761"],["89.808083","28.209972"],["89.741178","28.14466"],["89.620585","28.133666"],["89.394701","27.853894"],["89.261577","27.776101"],["89.129934","27.494282"],["89.208705","27.359876"],["89.003119","27.183627"],["88.914757","27.261172"],["88.754318","27.459692"],["88.742559","27.575756"],["88.824484","27.683585"],["88.858366","27.84585"],["88.817167","27.989323"],["88.749833","28.04227"],["88.643789","28.079175"],["88.414536","27.948938"],["88.164768","27.927649"],["88.119621","27.836742"],["87.844298","27.914245"],["87.731731","27.773994"],["87.596998","27.78341"],["87.555606","27.832169"],["87.226918","27.783961"],["87.114007","27.809055"],["87.017899","27.921014"],["86.741974","28.007834"],["86.699681","28.06541"],["86.621253","28.036683"],["86.583402","28.057988"],["86.53626","27.935498"],["86.410089","27.875861"],["86.21079","27.953771"],["86.168518","28.117581"],["86.115561","28.075237"],["86.149271","27.905693"],["85.994046","27.879218"],["85.944521","27.932939"],["85.832512","28.151055"],["85.730202","28.210313"],["85.701256","28.320003"],["85.608344","28.222546"],["85.501399","28.296408"],["85.379283","28.245137"],["85.108273","28.308745"],["85.080035","28.467918"],["85.159664","28.55567"],["85.153999","28.618263"],["85.06716","28.641711"],["84.995663","28.560816"],["84.851232","28.539159"],["84.68178","28.609315"],["84.624424","28.696084"],["84.465938","28.711423"],["84.389849","28.828396"],["84.202845","28.880867"],["84.21602","29.009754"],["84.163899","29.035197"],["84.138279","29.170731"],["84.156046","29.210987"],["84.110534","29.218441"],["84.085858","29.266484"],["83.922973","29.294016"],["83.658078","29.134976"],["83.571818","29.151918"],["83.232014","29.552591"],["83.070545","29.578981"],["82.920063","29.684809"],["82.816744","29.661877"],["82.675381","29.739992"],["82.684436","29.800693"],["82.605515","29.811846"],["82.541184","29.930689"],["82.159367","30.045582"],["82.174859","30.141657"],["82.084479","30.216893"],["82.077913","30.310431"],["81.993091","30.291904"],["81.637645","30.413095"],["81.562006","30.34101"],["81.44238","30.380465"],["81.419613","30.185719"],["81.306617","30.138261"],["81.279452","29.994378"],["81.11603","30.010804"],["80.995588","30.23662"],["80.302677","30.539587"],["80.0878","30.543727"],["79.94236","30.672449"],["79.868267","30.834188"],["79.825373","30.839126"],["79.673774","30.945519"],["79.593372","30.894565"],["79.4033","31.036535"],["79.346716","31.001927"],["79.336288","30.933391"],["79.224193","30.920174"],["79.170227","30.981969"],["79.092743","30.963258"],["78.986249","31.027673"],["78.96668","31.157988"],["78.856924","31.281503"],["78.783796","31.274131"],["78.728542","31.344273"],["78.757918","31.433515"],["78.697536","31.51499"],["78.804524","31.611708"],["78.62458","31.82264"],["78.722126","31.927562"],["78.578596","31.999524"],["78.497701","32.11424"],["78.432641","32.118838"],["78.402622","32.220389"],["78.4762","32.31131"],["78.36638","32.528271"],["78.381336","32.554898"],["78.75176","32.731065"],["78.809223","32.496551"],["78.976872","32.364195"],["79.005883","32.376536"],["79.080126","32.394077"],["79.114029","32.491665"],["79.279168","32.61355"],["79.272795","32.713951"],["79.195912","32.779409"],["79.222884","32.93039"],["79.135616","33.001861"],["79.1289","33.16414"],["78.818901","33.407102"],["78.715496","33.540948"],["78.723736","33.604683"],["78.656015","33.65053"],["78.749506","33.746395"],["78.715582","33.972994"],["78.631468","34.014908"],["78.635867","34.100789"],["78.894839","34.171104"],["78.97243","34.341399"],["78.867137","34.336615"],["78.698266","34.491737"],["78.566988","34.478543"],["78.527312","34.539705"],["78.430667","34.514354"],["78.403587","34.570207"],["78.247139","34.615374"],["78.238835","34.685346"],["78.179204","34.722162"],["78.172767","34.964414"],["78.056982","35.102584"],["77.985699","35.231108"],["77.986279","35.376996"],["78.060694","35.455461"],["77.904546","35.435236"],["77.815948","35.484733"],["77.688854","35.41908"],["77.389219","35.439747"],["77.300084","35.509365"],["77.189727","35.490691"],["76.844516","35.637645"],["76.746969","35.630442"],["76.675837","35.721674"],["76.57151","35.752903"],["76.552477","35.878323"],["76.372211","35.795695"],["76.149781","35.797227"],["76.124933","35.947734"],["75.922673","36.058952"],["75.911558","36.150212"],["76.037836","36.25097"],["75.962627","36.325913"],["75.987883","36.449905"],["75.852334","36.642976"],["75.645268","36.740208"],["75.442793","36.696296"],["75.389578","36.92691"],["75.229053","36.936669"],["75.144038","36.993436"],["74.896481","36.905551"],["74.830134","37.022531"],["74.731107","36.999897"],["74.690745","37.052831"],["74.559724","37.004866"],["74.481919","37.046871"],["74.437845","37.120308"],["74.499922","37.266966"],["74.739861","37.314987"],["74.866312","37.253902"],["75.109062","37.372562"],["75.102367","37.44057"],["74.921629","37.536802"],["74.864573","37.654148"],["74.964759","37.773242"],["74.890065","37.834937"],["74.908884","37.982278"],["74.777327","38.153069"],["74.761705","38.335766"],["74.838288","38.415972"],["74.834661","38.466073"],["74.630191","38.571841"],["74.373536","38.625873"],["74.159667","38.646204"],["74.103234","38.581"],["74.111817","38.521998"],["74.000838","38.494528"],["73.77285","38.599147"],["73.670411","38.8621"],["73.725193","38.95749"],["73.802719","38.951449"],["73.807654","38.986017"],["73.72221","39.008697"],["73.473516","39.38863"],["73.616295","39.498494"],["73.852308","39.511093"],["73.918183","39.600828"],["73.897347","39.705585"],["73.808942","39.800228"],["73.93934","39.994893"],["73.923182","40.040084"],["74.206402","40.150079"],["74.349396","40.120697"],["74.57305","40.295485"],["74.65313","40.30568"],["74.68538","40.371234"],["74.834146","40.370645"],["74.764109","40.445837"],["74.82522","40.547706"],["74.991968","40.485604"],["75.234225","40.478276"],["75.595829","40.68866"],["75.623209","40.675235"],["75.670288","40.537172"],["75.761075","40.482617"],["75.702088","40.361506"],["75.718331","40.319244"],["75.831778","40.356634"],["75.909498","40.327457"],["75.962198","40.405801"],["76.169136","40.4108"],["76.276231","40.468254"],["76.350474","40.381058"],["76.518981","40.485522"],["76.629574","40.63177"],["76.618888","40.769281"],["76.705191","40.836687"],["76.738064","40.970777"],["76.866853","41.052415"],["77.002079","41.102703"],["77.174621","41.038594"],["77.761016","41.051719"],["77.819595","41.177071"],["78.104789","41.252161"],["78.153155","41.41058"],["78.633699","41.494773"],["78.691227","41.573398"],["79.204752","41.752489"],["79.314144","41.836204"],["79.760721","41.919283"],["79.886034","42.062214"],["80.133162","42.067184"],["80.141101","42.212865"],["80.253518","42.271926"],["80.176806","42.427971"],["80.233755","42.509043"],["80.134728","42.629333"],["80.233669","42.836907"],["80.527124","42.908804"],["80.358446","43.012006"],["80.363209","43.05597"],["80.77054","43.196057"],["80.751915","43.283969"],["80.657952","43.321619"],["80.722024","43.489763"],["80.498157","43.799783"],["80.367136","44.112086"],["80.382199","44.282371"],["80.320637","44.484489"],["80.375676","44.600628"],["80.200903","44.711915"],["80.153825","44.809898"],["79.982829","44.769908"],["79.863417","44.896027"],["79.863911","44.925979"],["80.099001","45.081976"],["80.380783","45.073778"],["80.472493","45.151008"],["80.593643","45.1361"],["80.723355","45.20611"],["80.897505","45.157969"],["81.777248","45.412611"],["81.933761","45.262246"],["82.295816","45.254845"],["82.544253","45.206065"],["82.569401","45.340669"],["82.52743","45.402307"],["82.265496","45.514783"],["82.238288","45.626914"],["82.311373","45.780155"],["82.319655","45.956177"],["82.440763","46.003982"],["82.822452","46.775333"],["83.012309","47.24291"],["83.148286","47.241861"],["83.371532","47.179737"],["83.583899","47.087891"],["83.927865","46.999324"],["84.753106","47.038661"],["84.955001","46.896507"],["85.227256","47.083274"],["85.529079","47.087102"],["85.670679","47.295094"],["85.656817","47.416255"],["85.581307","47.505664"],["85.500433","48.023314"],["85.564678","48.210504"],["85.778117","48.445159"],["86.21609","48.461326"],["86.297393","48.520485"],["86.571493","48.56921"],["86.745751","48.738276"],["86.72689","48.79468"],["86.785169","48.850936"],["86.706676","48.980358"],["86.708565","49.011387"],["86.889625","49.162344"],["87.145572","49.183316"],["87.435358","49.10582"],["87.476878","49.120484"],["87.490826","49.169134"],["87.836187","49.198616"],["87.895432","49.115877"],["87.87024","49.056222"],["87.9406","48.974696"],["87.803872","48.87904"],["88.125672","48.72326"],["88.023491","48.591881"],["88.35763","48.495848"],["88.450756","48.423234"],["88.527102","48.435337"],["88.631537","48.352171"],["88.608513","48.280466"],["88.657844","48.207172"],["88.828926","48.136652"],["88.942652","48.146274"],["89.088199","48.017358"],["89.571383","48.066881"],["89.777999","47.863838"],["90.077548","47.910676"],["90.155997","47.747389"],["90.399628","47.669347"],["90.413575","47.647046"],["90.398619","47.62125"]];var JPN=[["145.824681","43.408601"],["145.802708","43.198731"],["145.188847","43.068449"],["144.992667","42.907867"],["143.970938","42.890345"],["143.384543","42.351736"],["143.299399","41.875506"],["142.95333","42.100071"],["142.391844","42.272669"],["141.369501","42.535185"],["140.832544","42.147648"],["141.028863","41.945699"],["141.296655","41.765675"],["141.564447","41.265171"],["141.675004","40.481173"],["141.829516","40.300647"],["141.982619","40.122464"],["142.142627","39.594221"],["142.025897","39.368452"],["142.021777","39.317473"],["141.850783","38.901626"],["140.939308","35.65669"],["139.436268","34.193845"],["137.347075","34.1603"],["135.63835","33.29272"],["133.488103","32.70897"],["131.614016","31.325292"],["130.633951","28.842845"],["127.785048","25.789008"],["126.597333","26.344784"],["128.404011","28.563857"],["128.940636","30.856318"],["128.544464","32.79621"],["129.194642","34.475467"],["129.324698","34.765641"],["129.502255","34.700627"],["129.480282","33.855809"],["130.439605","33.915587"],["130.801388","34.159716"],["130.791882","34.445506"],["131.121471","34.437578"],["131.298124","34.567727"],["132.535148","35.287335"],["132.978675","36.154847"],["133.268559","36.366209"],["134.710796","35.708808"],["135.303308","35.794165"],["136.404389","36.456814"],["136.612743","37.37546"],["137.409252","37.580348"],["137.291471","36.906421"],["137.982237","37.126821"],["138.504087","37.383552"],["138.758146","37.83898"],["139.207212","38.04151"],["139.310081","38.315743"],["139.737028","38.85997"],["139.403318","39.234917"],["139.952634","39.328459"],["140.002073","39.745742"],["139.695586","39.824208"],["139.679107","40.025361"],["139.935912","40.077921"],["140.001079","40.309807"],["139.922802","40.434311"],["139.828954","40.646676"],["139.95008","40.766604"],["139.957833","41.432491"],["140.001779","42.027933"],["139.389291","42.038134"],["139.346719","42.242877"],["139.63099","42.291658"],["139.72712","42.641155"],["139.942098","42.710048"],["140.194783","42.842098"],["140.30396","42.856193"],["140.309453","43.306551"],["140.393224","43.399418"],["140.61976","43.355264"],["140.788732","43.238558"],["140.923314","43.24556"],["141.029058","43.24356"],["141.083989","43.216544"],["141.141667","43.185513"],["141.336675","43.240561"],["141.328435","43.731771"],["141.350408","43.792272"],["141.594854","43.937818"],["141.565334","44.291761"],["141.70541","44.45177"],["141.708157","44.742196"],["141.683437","45.002047"],["141.226594","45.076599"],["141.053559","45.165748"],["140.987641","45.335905"],["140.943696","45.481498"],["141.201589","45.501064"],["141.972005","45.52416"],["142.341996","45.204477"],["142.567215","45.014513"],["142.747966","44.801094"],["143.487122","44.343678"],["144.463587","44.078617"],["144.874201","44.098345"],["145.125513","44.222478"],["145.300832","44.391445"],["145.487445","44.320885"],["145.111163","43.848378"],["145.420933","43.545126"],["145.451146","43.393635"]];var EAST=[["73.757316","29.95798"],["73.045185","28.989136"],["72.434431","28.60931"],["72.060098","28.097836"],["71.631749","27.60702"],["70.67236","27.593264"],["69.82743","27.041579"],["70.337045","26.566045"],["70.070655","26.098932"],["70.070655","25.85946"],["70.290717","25.713457"],["70.626599","25.671708"],["70.68451","25.201036"],["70.974064","24.791642"],["70.811914","24.612763"],["70.139151","24.465923"],["69.268014","24.435423"],["68.313114","24.267539"],["67.911051","23.808548"],["68.547651","23.00912"],["69.11724","22.684917"],["68.748682","22.406416"],["69.301519","21.536417"],["70.153052","20.55461"],["71.170222","20.332219"],["72.234349","21.204506"],["72.501752","21.087142"],["72.627589","19.003767"],["72.973641","16.878922"],["74.267757","13.888898"],["75.369075","10.48118"],["76.976429","7.781262"],["78.374805","8.242836"],["79.427902","9.641233"],["80.513091","10.734685"],["80.254133","11.953377"],["80.702994","13.082541"],["80.402232","15.312175"],["82.991824","16.887862"],["85.259974","19.051683"],["87.784208","21.10679"],["89.263244","21.658877"],["89.121009","23.437218"],["88.869364","23.717994"],["88.93501","24.317619"],["88.267603","24.596482"],["88.727129","25.073086"],["89.186656","25.132532"],["88.891246","25.626788"],["88.650542","25.666241"],["88.201956","25.892841"],["88.420778","26.12883"],["88.54113","26.285892"],["89.241361","26.020727"],["89.613359","25.863309"],["89.657124","25.330477"],["90.190932","25.070998"],["91.175632","25.051175"],["91.811935","25.05221"],["92.234344","24.983507"],["92.104658","24.649259"],["91.844714","24.363456"],["91.46563","24.215373"],["90.999897","23.839459"],["91.216517","23.054471"],["91.389672","22.300847"],["92.125338","20.623521"],["93.946113","18.753448"],["92.823675","16.135717"],["91.224276","9.998681"],["93.522355","5.752403"],["96.409859","0.991383"],["100.048825","-3.72227"],["104.60328","-7.736835"],["114.01025","-9.967468"],["123.433702","-11.032285"],["123.717523","-10.536628"],["124.427075","-10.257467"],["125.004217","-9.79418"],["125.026253","-9.527403"],["125.12788","-9.406056"],["125.031601","-9.358561"],["124.946021","-9.216037"],["125.026253","-9.168516"],["125.192065","-9.13155"],["125.181368","-8.982538"],["124.999509","-8.987821"],["124.919277","-8.924418"],["125.095787","-8.596662"],["125.555784","-8.088612"],["125.721597","-8.120384"],["127.292232","-8.326419"],["132.424841","-8.447132"],["139.646777","-8.512957"],["141.039618","-9.209048"],["141.025347","-6.894209"],["140.978655","-6.887392"],["140.92235","-6.851943"],["140.912737","-6.791946"],["140.905871","-6.737397"],["140.850939","-6.695117"],["140.903124","-6.59554"],["140.945696","-6.509588"],["141.000442","-6.341825"],["140.971754","-2.322171"],["131.63417","2.671779"],["125.182746","17.665698"],["120.512231","19.243264"],["119.486602","16.550429"],["119.820154","12.379244"],["115.293339","5.77989"],["114.675587","4.850295"],["114.550618","4.735342"],["113.923024","4.60805"],["113.581092","3.881824"],["113.423754","3.763395"],["113.138025","3.427757"],["112.798973","3.119213"],["111.886744","2.960093"],["109.608393","3.016867"],["108.771364","3.935896"],["107.181008","7.101455"],["110.509765","12.398562"],["108.171244","18.449712"],["108.482399","21.923911"],["106.042422","23.36869"],["103.861684","23.500971"],["101.853026","22.51803"],["101.964992","22.453371"],["102.079606","22.467488"],["102.100842","22.366033"],["102.192713","22.264854"],["102.457234","22.052786"],["102.482552","21.991854"],["102.505944","21.933096"],["102.598494","21.858522"],["102.635027","21.768076"],["102.625285","21.706993"],["102.652076","21.663993"],["102.749497","21.641356"],["102.798208","21.673047"],["102.841349","21.836472"],["102.857688","21.688772"],["102.936435","21.684707"],["102.971433","21.587108"],["102.897061","21.530145"],["102.831439","21.416153"],["102.853313","21.363197"],["102.770191","21.249074"],["102.905811","20.975636"],["103.219101","20.747931"],["103.517772","20.714677"],["103.809332","20.581588"],["103.928404","20.796397"],["104.17602","20.868718"],["104.456453","20.674762"],["104.597217","20.649539"],["104.494205","20.561152"],["104.33078","20.448774"],["104.574769","20.381484"],["104.658948","20.213054"],["104.76838","20.149846"],["104.838529","20.181454"],["104.938282","20.043215"],["104.745932","19.888842"],["104.790827","19.817585"],["104.656142","19.725166"],["104.580381","19.643265"],["104.41625","19.738372"],["104.315236","19.711959"],["104.004834","19.776374"],["103.978829","19.601517"],["104.057089","19.487272"],["103.795479","19.292317"],["104.05618","19.205901"],["104.303857","19.041792"],["104.509718","18.953592"],["104.638381","18.819682"],["104.82816","18.734411"],["105.081179","18.714495"],["105.090265","18.561021"],["105.010482","18.494337"],["105.215532","18.232365"],["105.507333","18.022503"],["105.673181","17.706155"],["105.959258","17.411042"],["106.393016","16.974064"],["106.530565","16.907086"],["106.511314","16.705452"],["106.610307","16.485756"],["106.704089","16.360817"],["106.855183","16.430793"],["106.917705","16.245803"],["107.074009","16.275813"],["107.178212","16.130721"],["107.386617","15.975505"],["107.256364","15.895346"],["107.157745","15.729918"],["107.270294","15.538977"],["107.541111","15.371176"],["107.598724","15.119441"],["107.495192","15.087312"],["107.421241","14.973038"],["107.491494","14.719275"],["107.439728","14.558285"],["107.365777","14.619117"],["107.28443","14.576179"],["107.125343","14.454386"],["107.058787","14.468707"],["106.862816","14.336197"],["106.714913","14.443644"],["106.640961","14.525985"],["106.467176","14.622607"],["106.385829","14.475868"],["106.219438","14.500928"],["106.189858","14.42932"],["106.104814","14.407834"],["105.956911","14.346944"],["105.993887","14.192854"],["106.138092","14.056594"],["106.067838","13.984846"],["105.938423","13.948964"],["105.860774","14.067355"],["105.570516","14.196239"],["105.40579","14.123984"],["105.307739","14.207645"],["105.23322","14.257067"],["105.284207","14.321679"],["105.397946","14.336879"],["105.499919","14.435654"],["105.550906","14.617894"],["105.535217","14.773437"],["105.660723","14.90613"],["105.629347","15.019802"],["105.511685","15.118269"],["105.543062","15.182626"],["105.660723","15.2848"],["105.543062","15.368016"],["105.641113","15.40205"],["105.652879","15.526792"],["105.672489","15.723201"],["105.433244","15.866611"],["105.419865","16.077323"],["105.134284","16.158015"],["105.05029","16.303179"],["104.798307","16.56635"],["104.815106","16.791639"],["104.807079","17.064937"],["104.834545","17.357467"],["104.746654","17.518618"],["104.392993","17.569592"],["104.221867","17.790865"],["104.071113","18.043041"],["103.989584","18.196169"],["103.880878","18.236734"],["103.692584","18.269917"],["103.616878","18.310466"],["103.546996","18.349162"],["103.428584","18.336313"],["103.370348","18.277339"],["103.302336","18.221647"],["103.237773","18.102183"],["103.207191","18.040806"],["103.105249","17.937384"],["102.938746","17.875949"],["102.914959","17.827432"],["102.813018","17.765959"],["102.687291","17.753015"],["102.568359","17.830667"],["102.510593","17.840371"],["102.422244","17.921219"],["102.310109","17.960013"],["102.204769","17.995566"],["102.143605","18.066652"],["101.987295","17.966477"],["101.868364","17.927685"],["101.647491","17.811257"],["101.148809","17.535022"],["101.023374","17.599797"],["101.039054","17.808912"],["101.175591","17.993048"],["101.212078","18.10208"],["101.219896","18.173904"],["101.206865","18.240749"],["101.212078","18.344679"],["101.107829","18.394147"],["101.092192","18.45349"],["101.206865","18.578877"],["101.31372","18.655442"],["101.272021","18.741845"],["101.272021","18.830671"],["101.311114","18.939171"],["101.370997","19.079681"],["101.298023","19.148632"],["101.279779","19.212632"],["101.22818","19.375675"],["101.230424","19.441269"],["101.295484","19.487804"],["101.29997","19.591402"],["101.239397","19.633668"],["101.145173","19.587175"],["101.093574","19.629442"],["100.94102","19.650571"],["100.893907","19.65691"],["100.864742","19.616763"],["100.835578","19.570265"],["100.770518","19.534326"],["100.611233","19.574493"],["100.584312","19.52164"],["100.525983","19.540669"],["100.46541","19.637894"],["100.436245","19.777288"],["100.541687","19.91867"],["100.597773","20.190526"],["100.502946","20.195053"],["100.428788","20.262059"],["100.379218","20.36601"],["100.329779","20.413638"],["100.244635","20.387895"],["100.173224","20.317079"],["100.160865","20.244943"],["100.114789","20.260301"],["100.107922","20.315689"],["100.155988","20.507461"],["100.211891","20.650056"],["100.290818","20.736459"],["100.399973","20.811825"],["100.562866","20.788277"],["100.673701","20.899705"],["100.59616","20.954029"],["100.751867","21.254036"],["100.998402","21.338663"],["101.211622","21.580378"],["101.209043","21.846211"],["100.909901","21.894492"],["100.207565","21.580378"],["100.051491","22.159742"],["99.466212","22.436515"],["99.71333","23.024318"],["99.352488","23.281431"],["99.03983","24.3247"],["98.101855","24.95993"],["98.855913","25.608485"],["98.911088","26.812993"],["98.892697","27.483968"],["98.340947","27.826069"],["98.120247","28.377665"],["97.586888","28.733061"],["97.108705","28.329109"],["96.658506","27.787659"],["96.296725","28.010502"],["95.847241","28.136253"],["95.288126","27.787659"],["94.685158","27.233428"],["93.281889","26.647032"],["92.037851","26.720259"],["90.141229","26.820605"],["88.984724","26.833974"],["88.731159","27.080308"],["88.794435","27.331629"],["88.741186","27.914582"],["88.223484","27.953015"],["88.169108","27.50057"],["87.774017","27.262697"],["88.215457","26.870398"],["87.783036","26.535989"],["87.047344","26.702224"],["84.777332","27.310285"],["83.539214","27.665305"],["82.385985","27.880248"],["81.010299","28.662263"],["80.547568","29.001896"],["81.345045","30.304903"],["80.749935","31.185747"],["80.056967","31.015739"],["79.215234","31.178494"],["78.991224","31.346766"],["79.254658","31.656243"],["78.835019","31.979804"],["78.65109","32.12011"],["78.595912","32.240756"],["78.591313","32.400075"],["78.669483","32.54361"],["78.739513","32.426665"],["78.84424","32.288005"],["79.067657","32.24668"],["79.277111","32.470789"],["79.395802","32.676713"],["79.235221","33.233259"],["79.011803","33.47819"],["78.84424","33.681772"],["79.182009","34.336185"],["78.821102","34.565916"],["78.428537","34.758609"],["78.294895","34.940474"],["78.23791","35.530039"],["77.722544","35.628785"],["77.294994","35.609184"],["76.821489","35.701892"],["76.684572","35.988603"],["76.399329","35.919333"],["76.159724","35.933192"],["76.165429","36.20986"],["76.074151","36.366207"],["75.999987","36.641347"],["75.714744","36.787688"],["75.562518","36.805399"],["75.481245","36.811057"],["75.45651","36.950968"],["75.253968","37.023882"],["75.084541","37.066268"],["74.894884","37.084426"],["74.735572","37.122745"],["74.643309","37.074934"],["74.566145","37.033976"],["74.549925","36.938948"],["74.491692","37.015218"],["74.377803","36.998366"],["74.261908","36.915016"],["74.132106","36.91687"],["74.057933","36.840851"],["73.967535","36.853836"],["73.925813","36.892775"],["73.808039","36.908632"],["73.728388","36.920709"],["73.639124","36.911926"],["73.699986","36.820121"],["73.765904","36.814624"],["73.833196","36.776135"],["73.853795","36.743128"],["73.834569","36.711208"],["73.735692","36.736525"],["73.657414","36.707906"],["73.599736","36.711208"],["73.57227","36.735425"],["73.517339","36.729922"],["73.397862","36.757433"],["73.319585","36.738726"],["73.241307","36.720664"],["73.175389","36.732772"],["73.112218","36.71516"],["73.032567","36.686532"],["73.039433","36.651284"],["73.060033","36.609405"],["73.036687","36.564195"],["73.002355","36.529994"],["72.958409","36.507921"],["72.944676","36.475904"],["72.886998","36.474799"],["72.855412","36.448292"],["72.848546","36.400777"],["72.832334","36.374217"],["72.796629","36.362053"],["72.685258","36.303681"],["72.663286","36.274901"],["72.574022","36.267151"],["72.461412","36.175196"],["73.530389","35.809316"],["74.170542","35.420826"],["74.340245","35.055408"],["73.9237","34.612198"],["73.676858","34.332391"],["73.880481","33.422673"],["74.651862","32.906095"],["75.747223","32.542685"],["75.623802","32.256112"],["74.975842","31.968632"],["74.759855","31.732749"],["74.759855","30.955369"],["74.327882","30.584206"],["74.18929","30.224947"],["74.035013","29.864372"]];var getOutseaData=function(e){if(e&&e==="mapbox"){return{boundsP16:[[CHN]],nebulaOutSea:[]}}else{return{boundsP16:[[CHN],[JPN],[EAST]],nebulaOutSea:[[JPN],[EAST]]}}};var geoUtil=new GeometryUtilCls({});var CONSTS$1={sV:"https://webapi.amap.com/style_icon/sprite_v8@2x.png",EU:[LangConf.my.type,LangConf.km.type,LangConf.PU.type,LangConf.th.type,LangConf.$U.type]};var MapboxLabelFormat$1=function(t){__extends(e,t);function e(e){var r=t.call(this)||this;r.kQ={};return r}e.prototype.Ns=function(e,r){t.prototype.Ns.call(this,e,r);return this.rV(e,r)};e.prototype.rV=function(e,r){var t=e.data||{};var i=t.poilabel||[];var a=e.road||[];var n={};var o=this.hV(e);var f;for(var s in i){if(i.hasOwnProperty(s)){f=i[s];var u=this.nV(f,o,r.zoom,r.VQ);n[s]=u}}var l=this.oV(a,{});return n};e.prototype.nV=function(e,r,t,i){var a=[];var n=this.kQ;for(var o=0,f=e;o=9&&r&&!this.uV(l[0])){continue}var g=_.lV,y=_.th,m=_.ih,p=_.nh,b=_.qU,x=_.eh,C=_.textAnchor,S=C===void 0?"bottom":C,M=_.rh,E=_.sh,w=_.Kr,k=_.Qr;var T=[c,h];var I=null;if(p&&b&&x){this.Fs[CONSTS$1.sV]=1;I=[{image:CONSTS$1.sV,size:[b[6]/2,b[7]/2],clipOrigin:[b[4],b[5]],clipSize:[b[6],b[7]]}]}var A=null;if(u&&w){if(!n[w]){n[w]=Util$3.color2RgbaArray(w)}var $=n[w];var F=void 0;var P=0;if(!n[k]){n[k]=Util$3.color2RgbaArray(k||"")}if(n[k]){F=n[k];P=3}var L=this.fV(u)?[0,u.length]:[];this.Ws(u,L);A={txt:u,$G:L,direction:S||"center",offset:[0,0],style:{fontSize:M,fillColor:$,strokeColor:F,strokeWidth:P,fold:false}}}var R={data:{id:v,name:u,txt:u,position:l[0],positionType:"relative",zooms:[y,m],extData:{id:v,type:"poi"}},opts:{zIndex:g,zooms:T,visible:true}};if(I){R.opts.icon=I}if(A){R.opts.text=A}if(R.opts.text||R.opts.icon){a.push(R)}}return a};e.prototype.oV=function(e,r){var t;var i;for(var a=0,n=e;a.5?-.5:.5)*r*f;var s=this.GQ(i,a,n,o);return s};e.DV=function(e,r,t,i){var a=Math.max(e,r,t),n=Math.min(e,r,t),o,f,s=(a+n)/2,u;if(a===n){o=f=0}else{u=a-n;f=s>.5?u/(2-a-n):u/(a+n);switch(a){case e:o=(r-t)/u+(r1){t-=1}if(t<1/6){return e+(r-e)*6*t}if(t<1/2){return r}if(t<2/3){return e+(r-e)*(2/3-t)*6}return e};e.GQ=function(e,r,t,i){var a,n,o;if(r===0){a=n=o=t}else{var f=t<.5?t*(1+r):t+r-t*r,s=2*t-f;a=this.uQ(s,f,e+1/3);n=this.uQ(s,f,e);o=this.uQ(s,f,e-1/3)}return[a,n,o,i]};e.Hb=function(e,r){if(r===void 0){r=[]}for(var t=0,i=e.length;t=5;for(var x=0,ne=O;x1||s.fontSize>9?s.fontSize:9;h=s.sn;J=s.Qe;Q=s.forceShow;ee=s.zIndex;re=s.zooms;d=labelsUtil$2.Jj([n,zoomRange[1]],re);if(!d){continue}d=labelsUtil$2.$p(d);var S=d[0];var M=[];var w={};while(S<=d[1]){var k=this.vn.dn(o,f,S);if(k&&k.iconID!=="0"){var T=k.iconID;if(M.indexOf(T)===-1){M.push(T);w[T]=[]}w[T].push(S)}S++}if((o!==10002||f!==20&&f!==18)&&u>16){u=15}var I=[d[0]-H,d[1]+z];if(o===10002&&(f===13||f===18)&&I[0]<=3){I[0]=2.5}_=h&&q+D[h];g={data:{id:i?i+f:"",position:Y,name:a,txt:a,rank:K,BG:b.type,extData:{Lp:o,Ap:f,id:i,type:"poi",bz:Z}},opts:{type:"billboard",angle:0,forceShow:Q,zIndex:ee,visible:true,zooms:I}};y=s.nn||0;m=s.an||0;var A=[];var $=void 0;var F=[0,0];var P=void 0;for(var L=0;L=5}}:{};if(g.opts){g.opts.icon=A;g.opts.text=te}if(_){this.Fs[_]=1}if(a){this.Ws(a,p)}W.push(g);s=null}return W};e.prototype.oV=function(e,r){if(r===void 0){r={}}var t=CONSTS.Lj,i=t.file,a=t.size;var n=CONSTS.Mp,o=CONSTS.Rp,f=CONSTS.Pp,s=CONSTS.jp;var u=[];var l=this._opts.scale;var v=this.lang;var c=r&&r.R_&&r.R_["protocol"]||"https";var h;var d;var _;var g;var y;var m;var p;var b;for(var x=0,C=e;x1||A.fontSize>9?A.fontSize:9;var F=A.faceColor;var P=A.iconID;var L={data:{id:Util$3.stamp(this),position:k,positionType:"relative",name:h,txt:p,rank:g,BG:M.type,extData:{type:"shield",Lp:T,Ap:I}},opts:{type:"billboard",angle:0,zooms:[y-f,m+s],visible:true}};var R=[0,0];var O="center";var D=this.aA(parseInt(P,10));var E=p.length/4>1?p.length/4:1;E=l>1?E:E*9/7;var U=c+i["0"];var N={type:"image",image:U,clipOrigin:D,clipSize:a,size:[24*E,24],anchor:"center",angle:0,qq:true};var B=p?{direction:O,offset:R,style:{fontSize:$,fillColor:F&&Color$1.normalize(F.rgba),strokeWidth:0,padding:[0,1,0,1]}}:{};if(L.opts){L.opts.text=B;L.opts.icon=[N]}if(p){this.Ws(p)}u.push(L)}return u};e.prototype.DQ=function(e,r){var t;var i=CONSTS.Mp,a=CONSTS.Rp,n=CONSTS.Pp,o=CONSTS.jp;var f=this.WW=r.zoom;var s;var u;var l;var v;var c=0;var h;var d;var _;var g;var y;var m;var p;var b;var x;var C;var S;var M;var w=[];var k=this.lang;var T;for(var I=0,A=e;I=20?zoomRange[1]:d;if(s&&T&&C&&S){var F={id:T,positionType:"relative",name:s,$G:g,CO:p,rank:u,BG:y,distance:c,zooms:[h-n,d+o],path:$.path.length>0?$.path:undefined,style:{fontSize:C,fillColor:vector$3.Up(S.rgba,255),strokeColor:M&&vector$3.Up(M.rgba,255)},extData:{mainkey:l,subkey:v}};w.push(F)}}return w};e.prototype.aA=function(e){var r=CONSTS.Lj,t=r.Rj,i=t,a=r.size;var n=Math.floor(e/i);if(e%10===0){n=n-1}var o=e-i*n-1;var f=[o*a[0],n*a[1]];return f};e.prototype.oA=function(e,r,t){var i=[3,20];var a=this.vn.dn(e,r,t);var n=this.vn.mn(e,r);if(!a){var o=1;while(t-o>=i[0]||t+o<=i[1]){a=this.vn.dn(e,r,t-o);if(!a){a=this.vn.dn(e,r,t+o)}if(a){break}else{o++}}}if(a){a.zooms=n}return a};e.prototype.mN=function(e,r){var t=[0,0];if(e==="0"){switch(r){case"3":{t=[6,6];break}case"4":case"5":case"6":{t=[9,9];break}}}return t};e.prototype.TN=function(e,r,t){if(t===void 0){t=[0,0]}var i=t;if(e==="0"){switch(r){case"3":{i=[30,30];break}case"4":case"5":case"6":{i=[20,20];break}}}return i};e.id=StaticSourceID.nebulaLabel;return e}(LabelFormat);function quickselect(e,r,t,i,a){quickselectStep(e,r,t||0,i||e.length-1,a||defaultCompare)}function quickselectStep(e,r,t,i,a){while(i>t){if(i-t>600){var n=i-t+1;var o=r-t+1;var f=Math.log(n);var s=.5*Math.exp(2*f/3);var u=.5*Math.sqrt(f*s*(n-s)/n)*(o-n/2<0?-1:1);var l=Math.max(t,Math.floor(r-o*s/n+u));var v=Math.min(i,Math.floor(r+(n-o)*s/n+u));quickselectStep(e,r,l,v,a)}var c=e[r];var h=t;var d=i;swap(e,t,r);if(a(e[i],c)>0)swap(e,t,i);while(h0)d--}if(a(e[t],c)===0)swap(e,t,d);else{d++;swap(e,d,i)}if(d<=r)t=d+1;if(r<=d)i=d-1}}function swap(e,r,t){var i=e[r];e[r]=e[t];e[t]=i}function defaultCompare(e,r){return er?1:0}var quickselect$1=Object.freeze({__proto__:null,default:quickselect});var quickselect$2=getCjsExportFromNamespace(quickselect$1);var rbush_1=rbush$1;var default_1=rbush$1;function rbush$1(e,r){if(!(this instanceof rbush$1))return new rbush$1(e,r);this.Bc=Math.max(4,e||9);this.Wc=Math.max(2,Math.ceil(this.Bc*.4));if(r){this.Gc(r)}this.clear()}rbush$1.prototype={all:function(){return this.qc(this.data,[])},search:function(e){var r=this.data,t=[],i=this.Yc;if(!intersects(e,r))return t;var a=[],n,o,f,s;while(r){for(n=0,o=r.children.length;n=0){if(n[r].children.length>this.Bc){this.af(n,r);r--}else break}this.sf(a,n,r)},af:function(e,r){var t=e[r],i=t.children.length,a=this.Wc;this.rf(t,a,i);var n=this.hf(t,a,i);var o=createNode(t.children.splice(n,t.children.length-n));o.height=t.height;o.Zc=t.Zc;calcBBox(t,this.Yc);calcBBox(o,this.Yc);if(r)e[r-1].children.push(o);else this.Jc(t,o)},Jc:function(e,r){this.data=createNode([e,r]);this.data.height=e.height+1;this.data.Zc=false;calcBBox(this.data,this.Yc)},hf:function(e,r,t){var i,a,n,o,f,s,u,l;s=u=Infinity;for(i=r;i<=t-r;i++){a=distBBox(e,0,i,this.Yc);n=distBBox(e,i,t,this.Yc);o=intersectionArea(a,n);f=bboxArea(a)+bboxArea(n);if(o=r;s--){u=e.children[s];extend$1(o,e.Zc?a(u):u);f+=bboxMargin(o)}return f},sf:function(e,r,t){for(var i=t;i>=0;i--){extend$1(r[i],e)}},Qc:function(e){for(var r=e.length-1,t;r>=0;r--){if(e[r].children.length===0){if(r>0){t=e[r-1].children;t.splice(t.indexOf(e[r]),1)}else this.clear()}else calcBBox(e[r],this.Yc)}},Gc:function(e){var r=["return a"," - b",";"];this.tf=new Function("a","b",r.join(e[0]));this.if=new Function("a","b",r.join(e[1]));this.Yc=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};function findItem(e,r,t){if(!t)return r.indexOf(e);for(var i=0;i=e.ja&&r.Ea>=e.Fa}function createNode(e){return{children:e,height:1,Zc:true,ja:Infinity,Fa:Infinity,Oa:-Infinity,Ea:-Infinity}}function multiSelect(e,r,t,i,a){var n=[r,t],o;while(n.length){t=n.pop();r=n.pop();if(t-r<=i)continue;o=r+Math.ceil((t-r)/i/2)*i;quickselect$2(e,o,r,t,a);n.push(r,o,o,t)}}rbush_1.default=default_1;var Status;(function(e){e["loading"]="loading";e["loaded"]="loaded"})(Status||(Status={}));var M$1;M$1=getModule();function getModule(){if(!M$1){M$1={nS:function(clsName,clsText){try{eval(clsText)}catch(e){throw e}},eS:{iS:"__detaiVersion__",BY:Browser.DW?false:config[13]}}}return M$1}var Module=getModule();function InnerClass(r){return function(e){getModule()[r]=e}}getModule()["MapboxLabelFormat"]=MapboxLabelFormat$1;getModule()["NebulaLabelFormat"]=NebulaLabelFormat$1;getModule()["_LocalZoom"]={Ra:13,za:12,Ge:""};getModule()["Support"]=Browser;getModule()["geo"]={lcs:lcs$2,ProjectionManager:ProjectionManager};getModule()["transform"]=transform;getModule()["Util"]=Util$3;getModule()["TileState"]=TileState$1;getModule()["assign"]=assign;getModule()["labelsUtil"]=labelsUtil$2;getModule()["LabelsRenderUtil"]=LabelsRenderUtil$3;getModule()["vector"]=vector$3;getModule()["rbush"]=rbush_1;getModule()["lodash"]={map:map,find:find,assign:assign,every:every,some:some};var TileState$1;(function(e){e["TOLOAD"]="toload";e["LOADING"]="loading";e["LOADED"]="loaded";e["UNLOADED"]="unloaded";e["ERROR"]="error";e["RELOADING"]="reloading"})(TileState$1||(TileState$1={}));var TileCoord=function(){function e(e,r,t){this.x=r;this.y=t;this.z=e;this.key=e+","+r+","+t}a=e;e.prototype.s0=function(e){var r=e-this.z;var t=Math.floor(Math.pow(2,r)*this.x);var i=Math.floor(Math.pow(2,r)*this.y);return new a(e,t,i)};var a;e=a=__decorate([InnerClass("TileCoord")],e);return e}();var Tile=function(){function e(e){this.type="tile";this.Ro=[0,0,0,0];this.stamp=0;this.zo=e;this.status=TileState$1.TOLOAD;this._v=null;this.data={}}e.YH=function(e){return e.status===TileState$1.LOADED||e.status===TileState$1.RELOADING};e.prototype.destroy=function(){assert(true,"Tile should not implement destroy")};e.prototype.nG=function(e){this.type=e};e=__decorate([InnerClass("Tile")],e);return e}();var NebulaTile=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.type="nebula";e.region="world";e.aN=NebulaTagType.NONE;e.BN=NebulaTagType.NONE;return e}Object.defineProperty(e.prototype,"tag",{get:function(){return this.nN},set:function(e){this.aN=this.tag;this.nN=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"gB",{get:function(){return this.VN},set:function(e){this.BN=this.gB;this.VN=e},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"data",{get:function(){var e=[];if(this.qc&&this.qc.Dc){e.push(this.qc)}else{if(this.sN){e.push(this.sN)}if(this.uN){e.push(this.uN)}}if(this.lU&&this.lU.Dc){e.push(this.lU)}else{if(this.fU){e.push(this.fU)}if(this.cU){e.push(this.cU)}}if(this.zN&&this.zN.labels){e.push(this.zN)}else{if(this.HN){e.push(this.HN)}if(this.WN){e.push(this.WN)}}if(this.dU&&this.dU.labels){e.push(this.dU)}else{if(this.vU){e.push(this.vU)}if(this.gU){e.push(this.gU)}}return e},set:function(e){},enumerable:false,configurable:true});e.prototype.xa=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.uN=__assign(__assign({},this.uN),e);break}case NebulaTagType.LEFT:{this.sN=__assign(__assign({},this.sN),e);break}case NebulaTagType.ALL:default:{this.qc=__assign(__assign({},this.qc),e)}}};e.prototype.JE=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.cU=__assign(__assign({},this.cU),e);break}case NebulaTagType.LEFT:{this.fU=__assign(__assign({},this.fU),e);break}case NebulaTagType.ALL:default:{this.lU=__assign(__assign({},this.lU),e)}}};e.prototype.rO=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.WN=__assign(__assign({},this.WN),e);break}case NebulaTagType.LEFT:{this.HN=__assign(__assign({},this.HN),e);break}case NebulaTagType.ALL:default:{this.zN=__assign(__assign({},this.zN),e)}}};e.prototype.qE=function(e,r){if(r===void 0){r=NebulaTagType.ALL}if(!Object.keys(e)){return}switch(r){case NebulaTagType.LITE:{this.gU=__assign(__assign({},this.gU),e);break}case NebulaTagType.LEFT:{this.vU=__assign(__assign({},this.vU),e);break}case NebulaTagType.ALL:default:{this.dU=__assign(__assign({},this.dU),e)}}};e.prototype.ID=function(e){if(e){if(e.uN){this.uN=e.uN}if(e.sN){this.sN=e.sN}if(e.qc){this.qc=e.qc}if(e.WN){this.WN=e.WN}if(e.HN){this.HN=e.HN}if(e.zN){this.zN=e.zN}}};e.prototype.rN=function(){if(this.aN){this.nN=this.aN}else{this.nN=NebulaTagType.NONE}if(this.BN){this.VN=this.BN;this.nN=NebulaTagType.NONE}};e.prototype.AB=function(){var e=[];if(this.qc&&this.qc.road&&this.zN&&this.zN.labels){e.push(this.qc)}else{if(this.sN&&this.sN.road&&this.HN&&this.HN.labels){e.push(this.sN)}if(this.uN&&this.uN.road&&this.WN&&this.WN.labels){e.push(this.uN)}}return e};e.prototype.LY=function(e,r){var t=this.data;for(var i=0,a=t;ii.zooms[1]){return}if(i.ce){e.context.clear({depth:true})}var n=r.tiles;n.sort(function(e,r){return r.zo.z-e.zo.z});var o=i.layer["getLabelsLayer"]();var f=n.every(function(e){return o.Ho.indexOf(e.zo.key)>-1});if(!f){o.Ho=[];o["remove"](o["getAllOverlays"]())}if(n&&n.length){e.context.clear({stencil:true});for(var s=0,u=n;s-1){return}var i=[];for(var a=0;a=n||a>=o){return false}if(this.SC[f]){return true}return false};e.prototype.renderFrame=function(e,r,t,i,a,n){var o=e.aS();var f=t.viewState;var s=f.centerCoord;var u=o.context;var l=[0,0];if(t.viewState.optimalZooms&&o>3||f+.8-1){u=ColorConstructor.FV(u,l.NY)}var v=linePropertys.roadWidth.An(i,o,f,n,s)+linePropertys.borderWidth.An(i,o,f,n,s);var c=linePropertys.borderDash.An(i,o,f,n,s)||[1,0,1,0];return{u_skyHeight:a,u_matrix:e.viewState.mvpMatrix,u_meter_per_pixel:e.viewState.resolution,u_width:v,u_border:1,u_color:u,u_dash:c,u_localDeltaCenter:t,u_viewHeight:e.size[1]}}function getLineFaceUniformValues(e,r,t,i,a){if(t===void 0){t=[0,0]}var n=e.map.bZ.MZ.drawMode==="fast"?e.viewState.optimalZoom:e.viewState.zoom;var o=r.mainkey,f=r.subkey,s=r.minzoom,u=r.maxzoom;var l=linePropertys.roadColor.An(i,o,f,n,s);if(f<0&&o<0){l=[1,0,0,e.debug?1:0]}if(!l){return undefined}var v=e.map.bZ.MZ.KY;if(v&&o===v.Lp&&v.Ap.indexOf(f)>-1){l=ColorConstructor.FV(l,v.NY)}var c=linePropertys.roadWidth.An(i,o,f,n,s);var h=linePropertys.roadDash.An(i,o,f,n,s)||[1,0,1,0];return{u_matrix:e.viewState.mvpMatrix,u_meter_per_pixel:e.viewState.resolution,u_width:c,u_color:l,u_dash:h,u_border:0,u_localDeltaCenter:t,u_viewHeight:e.size[1],u_skyHeight:a}}var fillFragmentString="precision highp float;\\nuniform vec4 u_color;\\n// uniform float u_opacity;\\nuniform float u_skyHeight;\\nuniform float u_viewHeight; // 地图容器高度,单位像素\\nuniform vec3 u_skyColor;\\nvarying vec4 v_pos;\\n\\nvoid main() {\\n gl_FragColor = u_color;\\n // gl_FragColor = v_color;\\n // gl_FragColor = vec4(0,0,1.0,1.0);\\n // return;\\n\\n // 雾化\\n float y = v_pos.y / v_pos.w;\\n float fogHeight = 2. / u_viewHeight * 30.; // 10 像素高度作为模糊处理\\n vec3 fogColor= vec3(0.9, 0.9, 0.9);\\n if(u_skyHeight < 1.0 && y > 0.0) {\\n float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\n // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\n // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\n gl_FragColor.a *= fogFactor;\\n }\\n #ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n #endif\\n}\\n\\n";var fillVertextString="precision highp float;\\nattribute vec2 a_pos;\\nuniform mat4 u_matrix;\\nuniform vec2 u_localDeltaCenter;\\nuniform vec2 u_offset;\\nvarying vec4 v_pos;\\n\\nvoid main() {\\n vec2 pos = vec2(a_pos.x+u_localDeltaCenter.x+u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\n gl_Position = u_matrix * vec4(pos, 0, 1);\\n v_pos = gl_Position;\\n}\\n";var fillPatternFragmentString="precision highp float;\\n#define GLSLIFY 1\\nuniform vec4 u_color;\\nuniform sampler2D u_image;\\n// uniform float u_opacity;\\nuniform float u_skyHeight;\\nuniform float u_viewHeight; // 地图容器高度,单位像素\\nuniform float u_resolution;\\nuniform vec2 u_imageSize;\\nvarying vec4 v_pos;\\nvarying vec2 v_coord;\\n// varying vec2 v_texture_pos;\\n\\nfloat fogcalc(vec4 pos, float skyHeight, float viewHeight) {\\n float y = pos.y / pos.w;\\n float fogHeight = 2. / viewHeight * 30.;\\n float fogFactor = 1.0;\\n if(skyHeight < 1.0 && y > 0.0) {\\n fogFactor = smoothstep(skyHeight + fogHeight/2.0, skyHeight - fogHeight/2.0, y);\\n }\\n return fogFactor;\\n}\\n\\nvoid main() {\\n vec2 v_texture_pos = mod(vec2(v_coord.x,v_coord.y*-1.0)/u_resolution/u_imageSize,1.0);\\n gl_FragColor = texture2D(u_image, v_texture_pos);\\n // gl_FragColor = vec4(1.0,0,0,1.0);\\n \\n float y = v_pos.y / v_pos.w;\\n if(u_skyHeight > 0.0 && y > u_skyHeight) {\\n gl_FragColor.a = 1.0 - smoothstep(u_skyHeight, 1.0, y);\\n }\\n gl_FragColor.a *= fogcalc(v_pos, u_skyHeight, u_viewHeight);\\n #ifdef OVERDRAW_INSPECTOR\\n gl_FragColor = vec4(1.0);\\n #endif\\n}\\n";var fillPatternVertextString="precision highp float;\\n#define GLSLIFY 1\\nattribute vec2 a_pos;\\nuniform mat4 u_matrix;\\nuniform vec2 u_localDeltaCenter;\\nuniform float u_resolution;\\nuniform vec2 u_offset;\\nvarying vec4 v_pos;\\nvarying vec2 v_coord;\\n\\n// varying vec2 v_texture_pos;\\nvoid main(){\\n vec2 pos = vec2(a_pos.x+u_localDeltaCenter.x+u_offset.x,a_pos.y+u_localDeltaCenter.y+u_offset.y);\\n gl_Position = u_matrix * vec4(pos, 0, 1);\\n v_pos = gl_Position;\\n v_coord = pos;\\n}\\n";var fillUniforms={u_skyColor:"vec3",u_color:"vec4",u_skyHeight:"float",u_viewHeight:"float",u_offset:"vec2",u_matrix:"mat4",u_localDeltaCenter:"vec2"};var fillAttributes={a_pos:{Me:"float32",Oe:"vec2"}};var fill={uniforms:fillUniforms,attributes:fillAttributes,vertexSource:fillVertextString,fragmentSource:fillFragmentString};var fillProperties={faceColor:new FillProperty("faceColor","linear"),borderWidth:new FillProperty("borderWidth","linear"),borderColor:new FillProperty("borderColor","linear"),texture:new FillProperty("texture","const")};var ColorConstructor$1=M["Color"];var getFillUniformValues=function(e,r,t,i,a){if(t===void 0){t=[0,0]}if(a===void 0){a=1}var n=e.map.bZ.MZ.drawMode==="fast"?e.viewState.optimalZoom:e.viewState.zoom;if(r.minzoom-.2>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillProperties.faceColor.An(i,o,f,n,s);if(!u){return undefined}var l=e.map;var v=e.map.bZ.MZ.KY;if(v&&o===v.Lp&&v.Ap.indexOf(f)>-1){u=ColorConstructor$1.FV(u,v.NY)}var c=l.JF(e.viewState.optimalZoom);return{u_matrix:e.viewState.mvpMatrix,u_color:u,u_offset:[0,0],u_skyHeight:a,u_viewHeight:e.viewState.size[1],u_skyColor:c||[1,1,1,0],u_image:fillProperties.texture.An(i,o,f,n,s),u_imageSize:[1,1],u_localDeltaCenter:t,u_resolution:e.viewState.optimalResolution}};var getFillPatternUniformValues=function(e,r,t,i,a){if(t===void 0){t=[0,0]}if(a===void 0){a=1}var n=e.viewState.zoom;if(r.minzoom-.2>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillProperties.faceColor.An(i,o,f,n,s);var l=e.map;var v=l.JF(e.viewState.optimalZoom);if(!u){return undefined}return{u_matrix:e.viewState.mvpMatrix,u_color:u,u_offset:[0,0],u_skyHeight:a,u_viewHeight:e.viewState.size[1],u_skyColor:v||[1,1,1,0],u_image:fillProperties.texture.An(i,o,f,n,s),u_imageSize:[1,1],u_localDeltaCenter:t,u_resolution:e.viewState.optimalResolution}};var fillPatternUniforms={u_color:"vec4",u_skyColor:"vec4",u_viewHeight:"float",u_skyHeight:"float",u_offset:"vec2",u_matrix:"mat4",u_localDeltaCenter:"vec2",u_image:"sampler2D",u_resolution:"float",u_imageSize:"vec2"};var fillPatternAttributes={a_pos:{Me:"float32",Oe:"vec2"}};var fillPattern={uniforms:fillPatternUniforms,attributes:fillPatternAttributes,vertexSource:fillPatternVertextString,fragmentSource:fillPatternFragmentString};function drawFillPattern(e,r,t,i,a,n,o,f,s,u,l){if(n===void 0){n="TRIANGLES"}if(o===void 0){o=false}if(f===void 0){f=ColorMode.Mi}if(s===void 0){s=StencilMode.disable}if(u===void 0){u=CullFaceMode.we}if(l===void 0){l=0}var v=e.aH();v.Ce(r,t,i,a,n,o,f,s,u,l)}var lineFragmentString$1="precision mediump float;\\nuniform vec4 u_color;\\nvarying vec4 v_pos;\\n// uniform float u_opacity;\\nuniform float u_skyHeight;\\nuniform float u_viewHeight; // 地图容器高度,单位像素\\n\\nvoid main(){\\n // float dist=length(v_pos-gl_FragCoord.xy);\\n // float alpha=1.-smoothstep(0.,1.,dist);\\n gl_FragColor=u_color;\\n // gl_FragColor=vec4(0.8, 0.8, 0.8, 0.5);\\n // 雾化\\n float y = v_pos.y / v_pos.w;\\n float fogHeight = 2. / u_viewHeight * 30.; // 10 像素高度作为模糊处理\\n vec3 fogColor= vec3(0.9, 0.9, 0.9);\\n if(u_skyHeight < 1.0 && y > 0.0) {\\n float fogFactor = smoothstep(u_skyHeight + fogHeight/2.0, u_skyHeight - fogHeight/2.0, y);\\n // float fogFactor = smoothstep(u_skyHeight + fogHeight, u_skyHeight, y);\\n // gl_FragColor.rgb = gl_FragColor.rgb * fogFactor + fogColor * (1.0 - fogFactor);\\n gl_FragColor.a *= fogFactor;\\n }\\n #ifdef OVERDRAW_INSPECTOR\\n gl_FragColor=vec4(1.);\\n #endif\\n}\\n";var lineVertextString$1="precision highp float;\\nattribute vec2 a_pos;\\n\\nuniform mat4 u_matrix;\\nuniform vec2 u_localDeltaCenter;\\n\\nvarying vec4 v_pos;\\n\\nvoid main(){\\n vec2 pos=vec2(a_pos.x+u_localDeltaCenter.x,a_pos.y+u_localDeltaCenter.y);\\n gl_Position=u_matrix*vec4(pos,0,1);\\n v_pos=gl_Position;\\n}\\n";var fillOutlineUniforms={u_color:"vec4",u_normal:"vec3",u_matrix:"mat4",u_localDeltaCenter:"vec2",u_skyHeight:"float",u_viewHeight:"float"};var fillOutlineAttributes={a_pos:{Oe:"vec2",Me:"float32"}};var fillOutline={uniforms:fillOutlineUniforms,attributes:fillOutlineAttributes,vertexSource:lineVertextString$1,fragmentSource:lineFragmentString$1};var fillOutlineProperties={faceColor:new BuildingProperty("faceColor","linear"),borderWidth:new BuildingBorderProperty("borderWidth","const"),borderColor:new BuildingBorderProperty("borderColor","linear"),wallColor1:new BuildingProperty("wallColor1","linear"),wallColor2:new BuildingProperty("wallColor2","linear")};var getFillOutlineUniformValues=function(e,r,t,i,a){if(a===void 0){a=1}var n=e.map.bZ.MZ.drawMode==="fast"?e.viewState.optimalZoom:e.viewState.zoom;if(r.minzoom-.5>e.viewState.zoom&&r.minzoom>3){return}var o=r.mainkey,f=r.subkey,s=r.minzoom;var u=fillOutlineProperties.borderColor.An(i,o,f,n,s);if(!u){return undefined}return{u_color:u,u_normal:[0,0,-.1],u_matrix:e.viewState.mvpMatrix,u_localDeltaCenter:t,u_skyHeight:a,u_viewHeight:e.viewState.size[1]}};var Tile$1=M["Tile"];var lcs$4=M["geo"]["lcs"];var find$2=M["lodash"]["find"];var map$2=M["lodash"]["map"];var Browser$1=M["Support"];var NebulaRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.yz=1;return e}e.prototype.renderFrame=function(e,r,t,i,a){if(!a.map.mapStyle.vn){return}this.kG=i.rejectMapMask||!t.map["getMask"]()?undefined:StencilMode["writeWithStencil"];var n=t.map.getOutseaState();var o=t.map.getOutseaDataType();if(n&&t.viewState.optimalZoom>=9.8){this.kG=StencilMode["nbStencil"];var f=r&&r.outseaData;if(f){this.wG(e,t,i,a,f)}}if(t.map.bZ.MZ.drawMode!=="fast"&&!r.s_){return}var s=r.tiles;var u={};for(var l=0,v=s;l=0){m.splice(p,1);m.push(y)}if(t.viewState.viewMode==="3D"){this.yz=t.map.getView().EF()}for(var b=0,x=m;b0){a.map.bZ.dynamic.set("firstPaint",true)}if(window["testTime"]&&!window["testTime"]["renderTime"]&&s&&s.length>0){var R=(new Date).getTime();window["testTime"]["renderTime"]=R-window["testTime"]["start"]}if(n&&t.viewState.optimalZoom>=10){this.kG=StencilMode["nbStencil"];var f=r&&r.outseaData;if(f){e.context.clear({stencil:true})}}};e.prototype.destroy=function(){};e.prototype.wG=function(e,r,t,i,a){if(!a||!a.LS){return}var n=e.aS();var o=n.context;var f=r.viewState;var s=[0,0];var u=f.centerCoord;if(r.viewState.optimalZooms[1]){return}var c=e.Gn();var h=t.map;var d=h.JF(t.viewState.optimalZoom);var _=d||[1,1,1,0];var g=r.tiles;var y=1;if(t.viewState.viewMode==="3D"){y=t.map.getView().EF()}if(i.ce){e.context.clear({depth:true})}var m=null;if(f.OY){var p=h.mapStyle.vn.MS("satellite");if(p&&p["filter"]){m=ColorScaleConstructor["getTexture"](e.context,p["filter"])||null}}for(var b=0,x=g.length;b0){this.S_(e,r,t)}else{this.Wx(e,r,t);this.Gx(e,r,t)}};e.prototype.S_=function(e,r,t,i,a){if(i===void 0){i=false}if(a===void 0){a=false}if(!e.visible){return}var n=e.p0;if(!n){return}n.upload(t.context,true);var o=r.map;var f=r.viewState.size;var s=o.getView();var u=e.rY(r);var l={zooms:e._opts.zooms,layer:{CLASS_NAME:"AMap.VectorLayer"},opacity:1,heightFactor:1,visible:true,zIndex:e._opts.zIndex,depthTest:true};var v=1;if(r.viewState.viewMode==="3D"){v=s.EF()}else{return}var c=s.X(f[0]/2,s.Uu()+5);var h=s.X(f[0]/2,s.Uu()-5);var d=s.pz().getPosition();var _=c[0]-d[0];var g=c[1]-d[1];var y=h[0]-d[0];var m=h[1]-d[1];var p=[Math.sqrt(_*_+g*g),Math.sqrt(y*y+m*m)];var b=e.m0;var x=n.zs;for(var C=0,S=b.jc;C=3){t=3;i=r.strokeDasharray.slice(0,3)}else{t=2;i=__spreadArrays(r.strokeDasharray.slice(0),[0])}}return{Jx:t,dash:i}};return e}();var Util$5=AMap["Util"];var PolylineWebglRender=function(){function e(){this.See=performance.now()}e.prototype.render=function(e,r,t){if(!e._map){return}var i=e._opts;this.Tc(e,r,t);this.Ic(e,r,t);if(i.lineGradient){this.nC(e,r,t)}if(i.showDir){this.N_(e,r,t,i)}};e.prototype.fb=function(e,r){var t=e.rY(r);var i=e._opts;var a=i.strokeWeight||-1;if(a<=0){return}if(i.strokeOpacity<=0){return}if(!i.strokeColor){return}var n=Util$5.color2RgbaArray(i.strokeColor);if(!n){return}n=n.slice(0,3);var o=this.Xx(e);n.push(i.strokeOpacity);if(i.unit==="meter"){a/=r.viewState.resolution}return{u_color:n,u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_width:a,u_offset:e.zx,u_localDeltaCenter:t,u_dash:o.dash,u_dashType:o.Jx,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.pb=function(e,r){var t=e.rY(r);var i=e._opts;if(!i.outlineColor){return}var a=Util$5.color2RgbaArray(i.outlineColor);if(!a){return}a=a.slice(0,3);a.push(i.strokeOpacity);var n=i.strokeWeight+i.borderWeight*2;if(n<=0){return}if(i.strokeOpacity<=0){return}var o=this.Xx(e);return{u_color:a,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:t,u_width:n,u_offset:e.zx,u_meter_per_pixel:r.viewState.resolution,u_dash:o.dash,u_dashType:o.Jx,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.B_=function(e,r,t){if(!e._map){return}var i=e.rY(r);var a=e._opts;var n=a.strokeWeight;var o;if(n<=0){return}var f=Boolean(a.dirImg);var s=a["dirImgGap"]?a["dirImgGap"]:1;if(f){e.U_(t);o=e.E_}else{o=e._map.getImage("AMapArrow")}if(!o){return}var u=Util$5.color2RgbaArray(a.dirColor).slice(0,3);if(a.unit==="meter"){n/=r.viewState.resolution}return{u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_meter_per_pixel_optimal:r.viewState.optimalResolution,u_width:n,u_offset:e.zx,u_localDeltaCenter:i,u_texture:o,u_iconsize:o.size,u_custom_img_flag:f,u_dir_color:u,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1],u_timer:performance.now()-this.See,u_speed:a.speed,u_size_scale:s,u_animate:!!a.animate}};e.prototype.oC=function(e,r,t){if(!e._map){return}var i=e.rY(r);var a=e._opts;if(!a.lineGradient){return}var n=a.strokeWeight;if(n<=0){return}if(!e.rC){e.aC(t,a.lineGradient)}if(a.unit==="meter"){n/=r.viewState.resolution}return{u_matrix:r.viewState.mvpMatrix,u_meter_per_pixel:r.viewState.resolution,u_width:n,u_offset:e.zx,u_localDeltaCenter:i,u_texture:e.rC,u_total_distance:e.sC,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.U_=function(e,r){if(e.F_){if(!e.E_){e.E_=r.createTexture(e.F_,{Zi:true});e.E_.bind(r.gl.CLAMP_TO_EDGE,r.gl.LINEAR,r.gl.LINEAR)}}};e.prototype.aC=function(e,r,t){if(!e.rC){var i=createLineGradinetCanvas(t.values);e.rC=r.createTexture(i,{Zi:true});var a=r.gl;e.rC.bind(a.CLAMP_TO_EDGE,a.NEAREST,a.NEAREST_MIPMAP_NEAREST)}};e.prototype.Xx=function(e){var r=e._opts;var t=2;var i=[1,0,0];if(r.strokeStyle==="dashed"&&r.strokeDasharray){if(r.strokeDasharray.length>=3){t=3;i=r.strokeDasharray.slice(0,3)}else{t=2;i=__spreadArrays(r.strokeDasharray.slice(0),[0])}}return{Jx:t,dash:i}};e.prototype.N_=function(e,r,t,i){if(!e.Px){return}var a=e.Px;a.upload(t.context);if(!a.uploaded||!a.zs){return}if(!e.visible){return}var n=a.zs.buffer;var o=this.B_(e,r,t.context);if(!o){return}var f=t.M_();f.Ce(o,{a_pos:{buffer:n,type:"vec2",Re:n.size,offset:0},a_normal:{type:"vec2",buffer:n,Re:n.size,offset:4*2},a_distance:{type:"float",buffer:n,Re:n.size,offset:4*4},a_dir:{type:"vec2",buffer:n,Re:n.size,offset:4*5}},a.Qx.length*3,a.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);f.Ni()};e.prototype.Ic=function(e,r,t){if(!e.Px){return}var i=e.Px;i.upload(t.context);if(!i.uploaded||!i.zs){return}if(!e.visible){return}var a=i.zs.buffer;var n=this.fb(e,r);if(!n){return}var o=t.Xn();o.Ce(n,{a_pos:{buffer:a,type:"vec2",Re:a.size,offset:0},a_normal:{type:"vec2",buffer:a,Re:a.size,offset:4*2},a_distance:{type:"float",buffer:a,Re:a.size,offset:4*4},a_dir:{type:"vec2",buffer:a,Re:a.size,offset:4*5}},i.Qx.length*3,i.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);o.Ni()};e.prototype.nC=function(e,r,t){if(!e.Px){return}var i=e.Px;i.upload(t.context);if(!i.uploaded||!i.zs){return}if(!e.visible){return}var a=i.zs.buffer;var n=this.oC(e,r,t.context);if(!n){return}var o=t.sS();o.Ce(n,{a_pos:{buffer:a,type:"vec2",Re:a.size,offset:0},a_normal:{type:"vec2",buffer:a,Re:a.size,offset:4*2},a_distance:{type:"float",buffer:a,Re:a.size,offset:4*4},a_dir:{type:"vec2",buffer:a,Re:a.size,offset:4*5}},i.Qx.length*3,i.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);o.Ni()};e.prototype.Tc=function(e,r,t){var i=e._opts;if(!i||!i.isOutline){return}if(!e.Px){return}var a=e.Px;a.upload(t.context);if(!a.uploaded&&!a.zs){return}var n=a.zs.buffer;if(!e.visible){return}var o=this.pb(e,r);if(!o){return}var f=t.Xn();f.Ce(o,{a_pos:{buffer:n,type:"vec2",Re:n.size,offset:0},a_normal:{type:"vec2",buffer:n,Re:n.size,offset:4*2},a_distance:{type:"float",buffer:n,Re:n.size,offset:4*4},a_dir:{type:"vec2",buffer:n,Re:n.size,offset:4*5}},a.Qx.length*3,a.Pc.buffer,undefined,undefined,ColorMode.Si,undefined,undefined,0);f.Ni()};return e}();function createLineGradinetCanvas(e){var r=document.createElement("canvas");var t=4096;r.height=1;r.width=t;var i=r.getContext("2d");var a=i.createImageData(t,1);var n=0;for(var o=0;os*t){continue}f=e[n][1];break}f=e[n][1];var u=Util$5.color2RgbaArray(f);a.data[o*4]=u[0]*255;a.data[o*4+1]=u[1]*255;a.data[o*4+2]=u[2]*255;a.data[o*4+3]=u[3]*255}i.putImageData(a,0,0);return r}var Util$6=AMap["Util"];var Support$5=M["Support"];var CircleWebglRender=function(){function e(){}e.prototype.render=function(e,r,t){if(!e._map){return}if(!e["getRadius"]()){return}if(Support$5["safari"]){this.Mee(e,r,t)}else{this.Cb(e,r,t)}};e.prototype.Cb=function(e,r,t){if(!e.visible){return}var i=this.Ab(e,r);if(!i){return}var a=t.Un();a.Ce(i,{},1,undefined,"POINTS",false,ColorMode.Si,undefined,undefined,0)};e.prototype.Mee=function(e,r,t){var i=e.Sb;if(!i){return}i.upload(t.context);if(!i.upload){return}if(!e.visible){return}var a=i.zs;var n=this.Ab(e,r);if(!n){return}var o=t.wee();o.Ce(n,{a_pos:{buffer:a,type:"vec2",Re:a.size,offset:0}},i._b.length,undefined,"POINTS",false,ColorMode.Si,undefined,undefined,0)};e.prototype.Lb=function(e,r,t){if(!e.visible){return}var i=this.Tb(e,r);if(!i){return}var a=t.Un();a.Ce(i,{},1,undefined,"POINTS",false,ColorMode.Si,undefined,undefined,0)};e.prototype.Ab=function(e,r){var t=e.KB;if(!t){return}var i=e.rY(r);var a=e._opts;if(!a.fillColor){return}var n=Util$6.color2RgbaArray(a.fillColor).slice(0,3);n.push(a.fillOpacity);var o=a.radius+(a.strokeWeight||0);var f=[0,a.radius/o];var s=[0,0,0,0];if(a.strokeColor&&a.strokeWeight&&a.strokeOpacity){s=Util$6.color2RgbaArray(a.strokeColor).slice(0,3);s.push(a.strokeOpacity)}return{u_pos:t,u_color:n,u_borderColor:s,u_offset:e.zx,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_radius:this.Ib(e),u_range:f,u_retinaRatio:Support$5.Ue?2:1,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Tb=function(e,r){var t=e.KB;if(!t){return}var i=e.rY(r);var a=e._opts;if(!a.strokeWeight){return}if(!a.strokeColor){return}var n=Util$6.color2RgbaArray(a.strokeColor).slice(0,3);n.push(a.strokeOpacity);var o=a.radius+a.strokeWeight;var f=[a.radius/o,1];var s=n.slice(0,3);s.push(0);return{u_pos:t,u_color:n,u_borderColor:s,u_offset:e.zx,u_matrix:r.viewState.mvpMatrix,u_localDeltaCenter:i,u_radius:this.Ib(e),u_range:f,u_retinaRatio:Support$5.Ue?2:1,u_skyHeight:r.viewState.skyHeight,u_viewHeight:r.viewState.size[1]}};e.prototype.Ib=function(e){var r=e._opts;var t=r.radius+(r.strokeWeight||0);return Math.min(t,64)};return e}();var ColorPick=function(){function e(){this.uA={};this.cdt=[0,0,0,255];this.ldt=256}e.prototype.add=function(e){this.uA[this.fdt()]=e;return __spreadArrays(this.cdt)};e.prototype.find=function(e){var r=this.ldt;var t=r*r;for(var i in this.uA){var a=Number(i);if(isEqual(this.uA[a],e)){return[a%r,~~(a/r)%r,~~(a/t)%r,255]}}return undefined};e.prototype.clear=function(){this.cdt=[0,0,0,255];this.uA={}};e.prototype.ddt=function(){return __spreadArrays(this.cdt)};e.prototype.GV=function(e){var r=this.ldt;var t=r*r;var i=e[0],a=e[1],n=e[2];var o=i+a*r+n*t;return this.uA[o]};e.prototype.fdt=function(){var e=this.ldt;var r=e*e;var t=this.cdt,i=t[0],a=t[1],n=t[2];var o=i+a*e+n*r+1;this.cdt[0]=o%e;this.cdt[1]=~~(o/e)%e;this.cdt[2]=~~(o/r)%e;return o};return e}();var Support$6=M["Support"];var scale$3=Support$6.scale;var OverlayRender=function(r){__extends(e,r);function e(){var e=r!==null&&r.apply(this,arguments)||this;e.ydt=new ColorPick;e.uC=new PolygonWebglRender(e.ydt);e.cC=new PolylineWebglRender;e.dC=new CircleWebglRender;return e}e.prototype.renderFrame=function(e,r,t,i,a){var n=t.viewState.zoom;this.wf=t;this.vdt=e;this.kee=r.sr;this.pu=scale$3;if(r.sr){for(var o=0,f=r.sr;os._opts.zooms[1]){continue}switch(s.CLASS_NAME){case"Overlay.Polygon":case"Overlay.Rectangle":case"Overlay.Circle":case"Overlay.Ellipse":this.hC(s,t,e);break;case"Overlay.Polyline":case"Overlay.BezierCurve":this.lC(s,t,e);break;case"Overlay.CircleMarker":this.fC(s,t,e);break}}}};e.prototype.pickRender=function(e,r){if(!this.vdt){return}var t=this.vdt.context;var i=this.vdt.context.gl;if(!e){return}var a=e.size[0]*scale$3;var n=e.size[1]*scale$3;var o=e.viewState.bounds.toString();var f=false;if(!this.bee){this.bee=this.Tee(i,a,n,o);f=true}else if(a!==this.bee.w||n!==this.bee.h){this.Iee(this.bee,i,a,n,o);f=true}else if(o!==this.bee.bounds){this.bee.bounds=o;f=true}if(f){t.bindFramebuffer.set(this.bee);t.be.set([0,0,a,n]);t.clear({color:true,stencil:true,depth:true});if(this.kee){var s=e.viewState.zoom;for(var u=0,l=this.kee;uv._opts.zooms[1]){continue}if(v.CLASS_NAME==="Overlay.Polygon"&&c._opts.extrusionHeight>0){this.uC.S_(c,e,this.vdt,false,true)}}}t.bindFramebuffer.set(null)}return this.bee};e.prototype.mdt=function(){if(this.vdt){var e=this.vdt.context;e.bindFramebuffer.set(null);e.setDirty()}};e.prototype.destroy=function(){if(this.ydt&&this.ydt["clear"]){this.ydt.clear();delete this.ydt}if(this.bee&&this.vdt){var e=this.vdt.context.gl;if(e){e.deleteFramebuffer(this.bee)}this.bee=null;delete this.bee}if(this.kee){this.kee=[]}};e.prototype.hC=function(e,r,t){this.uC.render(e,r,t)};e.prototype.lC=function(e,r,t){this.cC.render(e,r,t)};e.prototype.fC=function(e,r,t){this.dC.render(e,r,t)};e.prototype.Tee=function(e,r,t,i){var a=e.createFramebuffer();a.w=r;a.h=t;a.bounds=i;var n=e.createTexture();a.texture=n;e.bindTexture(e.TEXTURE_2D,n);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,r,t,0,e.RGBA,e.UNSIGNED_BYTE,null);var o=e.createRenderbuffer();a.AC=o;e.bindRenderbuffer(e.RENDERBUFFER,o);e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,r,t);e.bindFramebuffer(e.FRAMEBUFFER,a);e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,o);var f=e.checkFramebufferStatus(e.FRAMEBUFFER);if(e.FRAMEBUFFER_COMPLETE!==f){console.log("Frame buffer object is incomplete: "+f.toString());return}e.bindFramebuffer(e.FRAMEBUFFER,null);e.bindTexture(e.TEXTURE_2D,null);e.bindRenderbuffer(e.RENDERBUFFER,null);return a};e.prototype.Iee=function(e,r,t,i,a){e.w=t;e.h=i;e.bounds=a;r.bindTexture(r.TEXTURE_2D,e.texture);r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t,i,0,r.RGBA,r.UNSIGNED_BYTE,null);r.bindRenderbuffer(r.RENDERBUFFER,e.AC);r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,t,i);r.bindTexture(r.TEXTURE_2D,null);r.bindRenderbuffer(r.RENDERBUFFER,null)};return e}(LayerRender);var TileState$3=M["TileState"];var VectorTrafficRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;return e}e.prototype.renderFrame=function(e,r,t,i){var a=t.viewState.optimalZoom;if(ai.zooms[1]){return}if(i.ce){e.context.clear({depth:true})}var n=r.tiles[0];if(n&&n.length){for(var o=0,f=n;o0||i.iconId)){r=false;break}}return r},VC:function(e,r){return this.Tn(e,r)},ZC:function(e,r){return this.Tn(e,r)},Pr:function(e,r){return this.Tn(e,r)},YC:function(e,r){var t=allowedStyleKeys;if(r){for(var i in r){if(r.hasOwnProperty(i)&&t.indexOf(i)>=0&&e[i]===void 0){e[i]=r[i]}}}return e},JC:function(e,r){if(!e){return null}var t=allowedStyleKeys;var i={};for(var a=0,n=t.length;a=0){return n[o].styleOpts}}if(r>20){var s=n[n.length-1];if(s.levels.indexOf("20")>=0){s.levels.push(""+r);return s.styleOpts}}return null},UC:function(e){for(var r in e){if(e.hasOwnProperty(r)){this.XC(e[r],r)}}},XC:function(e,r){for(var t=0,i=e.length;t1){if(u[0]>u[1]){s=s.reverse();u=u.reverse()}}if(!this.e$&&this.i$){if(M&&M["IndoorMapFloorBar"]){this.e$=new M["IndoorMapFloorBar"]({floors:s,floorIndexs:u,currentFloor:l});this.WL=n;this.gs.setBar(this.e$);this.gs.setRenderData({barCenterId:this.WL})}if(!this.e$){return false}this._map.addControl(this.e$);this.e$.on("floorchange",function(e){o.pD=true;var r=e["currentIndex"];var t=o.gs.ZI();var i=r;var a=t.centerId;o.gs.n$(a,i);var n=o._map.Mv.getSource(o.gs.co());if(a){o.gs.setRenderData({changeFloor:true});n.JR(a,i)}})}else if(this.e$){this.WL=n;this.e$["setOption"]({floors:s,floorIndexs:u,currentFloor:l});this.gs.setRenderData({barCenterId:this.WL})}if(f&&this.e$){this.e$.hide()}if(!this.GL&&this._map){this.GL=true;this._map.on("moveend",function(){var e=o.vD();if(e){var r={centerId:e};o.gs.setRenderData(r)}o.gs.setRenderData({changeFloor:false});o.Aee();o.gs.uD()})}};e.prototype.Aee=function(){var e=1;var r=this.gs.ZI();var t=r.centerId;if(t===this.WL){return false}if(r["floorInfo"][t]){e=r["floorInfo"][t]}if(this.UL&&this.UL[t]&&this.UL[t]["building"]){var i=this.UL[t]["building"];var a=i.properties;var n=null;var o=null;if(a&&a["floor_nonas"]){n=a["floor_nonas"];o=a["floor_indexs"]}if(!n||!o){return false}if(o.length>1){if(o[0]>o[1]){n=n.reverse();o=o.reverse()}}if(this.e$){this.e$["setOption"]({floors:n,floorIndexs:o,currentFloor:Number(e)});this.WL=t;this.gs.setRenderData({barCenterId:this.WL})}}};e.prototype.qI=function(e){var r=this._map.getCenter().toJSON();var t=null;var i="";var a=Object.keys(e);for(var n=0;n0){this.a$.remove(t[e]["markers"])}}};e.prototype.h$=function(e){var r=this;if(!e||!e["properties"]){return null}var t=e["properties"]["poitype"];var i=e["position"];var a=t.join("_");var n=this.l$[a]&&this.l$[a][0];var o=this.gs.ZI();if(n&&n["styleOpts"]&&n["styleOpts"]["iconId"]){var f=n["styleOpts"]["iconId"];var s=indoorStyleSet.GC(f);var u={position:i,zooms:e["zooms"],opacity:o["opacity"],rank:3e5,icon:{size:[18,18],image:s,anchor:"center"},extData:e["properties"],innerOverlay:true,bubble:true};if(e["text"]){var l=n["styleOpts"]["fillColor"]||"rgb(132,99,142)";var v=n["styleOpts"]["strokeColor"]||"#FFFFFF";u=assign$1(u,{text:{content:e["text"],direction:"bottom",style:{fillColor:l,strokeColor:v,fontSize:12}}})}var c=new AMap["LabelMarker"](u);c.on("click",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi("click",e)}});c.on("mousemove",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi("mousemove",e)}});c.on("mouseout",function(e){if(r._map&&r._map.getStatus().isHotspot){r.bi("mousemove",e)}});return c}return null};e.prototype.bi=function(e,r){var t="hotspot";var i;var a=r.target.getExtData();switch(e){case"click":i=t+e;break;case"mouseover":i=t+"over";break;case"mouseout":i=t+"out";break}if(i){var n=this._map.getProjection();var o=n["unproject"](r["lnglat"]["lng"],r["lnglat"]["lat"]),f=o[0],s=o[1];var u={type:i,id:a["pid"],name:a["name"],lnglat:r["lnglat"],originEvent:r["originEvent"]};this._map.emit(i,u)}};e.prototype.o$=function(e,r,t,i){var s=this;if(!this._map||!r){return false}var a=this.gs.ZI();this.ar(r);var O=this._map["getZoom"]();var n=[];var o=[];var f=e["shops"];var u=e["floor"];var l=e["cons"];var D={building_id:r,floor:u};var U=f.length;var v=[];var c=[];var h=[];var d=[];var _=[];for(var g=0;g\'+o+"";s.JT=new AMap["Marker"]({position:n,content:f,anchor:"bottom-left",map:s._map,noSelect:true})}T.to()});T.on("mouseout",function(e){for(var r=0,t=d.length;r1){var H=[];for(var $=0;$0){a.map.bZ.dynamic.set("firstPaint",true)}var s=t.map.getMask();this.PB(e,t,i,s)};e.prototype.GG=function(e,r,t,i){var a=e.Wn();var n=r.stencil;if(!n){return}var o=n.Dc;if(!o){return}o.upload(a.context);var f=o.zs;var s=o.Pc;var u=n.Oc;var l=t.viewState.optimalZoom;var v=i.opacity;var c=[r.Sa[0],r.Sa[1]];var h=1;if(t.viewState.viewMode==="3D"){h=t.map.getView().EF()}if(l0){if(a){a.vertexAttribDivisorANGLE(this.location,this.$ee)}}};e.prototype.ke=function(e){return true};return e}();var Uniform=function(){function e(e,r,t){this.context=e;this.type=r;this.location=t;this.Re=0;this.offset=0;this.te=same;this.ze=e.gl}e.prototype.set=function(e){if(this.te(this.current,e)){return}if(e!==undefined){switch(this.type){case"bool":case"int":case"sampler2D":this.ze.uniform1i(this.location,e);break;case"sampler2D[]":this.ze.uniform1iv(this.location,e);break;case"float":this.ze.uniform1f(this.location,e);break;case"float[]":this.ze.uniform1fv(this.location,e);break;case"vec2":this.ze.uniform2f(this.location,e[0],e[1]);break;case"vec3":this.ze.uniform3f(this.location,e[0],e[1],e[2]);break;case"vec4":this.ze.uniform4f(this.location,e[0],e[1],e[2],e[3]);break;case"mat2":this.ze.uniformMatrix2fv(this.location,false,new Float32Array(e));break;case"mat3":this.ze.uniformMatrix3fv(this.location,false,new Float32Array(e));break;case"mat4":this.ze.uniformMatrix4fv(this.location,false,new Float32Array(e));break}this.current=e}};return e}();var Program=function(){function d(e,r,t,i,a,n){this.name=n;this.Ie=[];this.context=e;this.attributes={};this.Te={};var o=e.gl;var f=d.createProgram(o,r,t);this.$i=f;if(!this.$i){console.log("createProgram fail",this.name);this.je=false;return this}this.je=true;for(var s in i){if(i.hasOwnProperty(s)){var u=i[s].Oe;var l=i[s].Me;var v=o.getAttribLocation(this.$i,s);var c=i[s].normalize;var h=i[s].$ee;this.attributes[s]=new Attribute(e,u,l,v,c,h)}}for(var s in a){if(a.hasOwnProperty(s)){var u=a[s];var v=o.getUniformLocation(this.$i,s);if(v){this.Te[s]=new Uniform(e,u,v)}if(u==="sampler2D"){this.Ie.push(s)}}}}d.createProgram=function(e,r,t){var i=d.Se(e,e.VERTEX_SHADER,r);var a=d.Se(e,e.FRAGMENT_SHADER,t);if(!i||!a){return null}var n=e.createProgram();if(!n){return null}e.attachShader(n,i);e.attachShader(n,a);e.bindAttribLocation(n,0,"a_Position");e.linkProgram(n);var o=e.getProgramParameter(n,e.LINK_STATUS);e.deleteShader(a);e.deleteShader(i);if(!o){var f=e.getProgramInfoLog(n);console.log("Failed to link program: "+f);e.deleteProgram(n);return null}return n};d.Se=function(e,r,t){var i=e.createShader(r);if(i===null){return null}e.shaderSource(i,t);e.compileShader(i);var a=e.getShaderParameter(i,e.COMPILE_STATUS);if(!a){var n=e.getShaderInfoLog(i);console.log("Failed to compile shader: "+n);e.deleteShader(i);return null}return i};d.prototype.Ce=function(e,r,t,i,a,n,o,f,s,u,l){if(a===void 0){a="TRIANGLES"}if(n===void 0){n=false}if(o===void 0){o=ColorMode.Mi}if(f===void 0){f=StencilMode.disable}if(s===void 0){s=CullFaceMode.we}if(u===void 0){u=0}if(!this.je){return}var v=this.context;var c=v.gl;v.ge.set(this);v.ne(n);v.ae(f);v.Qi(o);v.re(s);v.hB.set(false);this.Le(e);this.Ae(r);if(i){v.me.set(i);if(l){var h=v.getExtension("ANGLE_instanced_arrays");if(h){if(i.size===32){h.drawElementsInstancedANGLE(c[a],t,c.UNSIGNED_INT,i.size/8*u,l.divisor)}else{h.drawElementsInstancedANGLE(c[a],t,c.UNSIGNED_SHORT,i.size/8*u,l.divisor)}}}else{if(i.size===32){c.drawElements(c[a],t,c.UNSIGNED_INT,i.size/8*u)}else{c.drawElements(c[a],t,c.UNSIGNED_SHORT,i.size/8*u)}}}else{if(l){var h=v.getExtension("ANGLE_instanced_arrays");if(h){h.drawArraysInstancedANGLE(c[a],u,t,l.divisor)}}else{c.drawArrays(c[a],u,t)}}};d.prototype.Le=function(e){if(!this.je){return}for(var r in this.Te){var t=this.Te[r];if(t.type==="sampler2D"){var i=this.Ie.indexOf(r);if(i>=0){var a=e[r];if(a){this.context.bindTexture.setDirty();this.context.activeTexture.set(i);this.context.bindTexture.set(a.texture)}else{this.context.activeTexture.set(i);this.context.bindTexture.setDirty();this.context.bindTexture.set(null)}t.set(i)}}else if(t.type==="sampler2D[]"){var n=e[r];var o=n.De;var f=n.offset||0;var s=n.count||o.length;var u=[];for(var l=0;l0?"else ":" ")+"if(texIdx=="+f+"){ distColor = texture2D(u_texture["+f+"], v_texcoord); }")}n.vertexSource=n.vertexSource.replace(/_TotalTextureLenTwice/g,(a*2).toString()).replace(/_TotalTextureLen/g,a.toString());n.fragmentSource=n.fragmentSource.replace(/_TotalTextureLen/g,a.toString()).replace(/__SmpColorLoop__/g,o.join("\\n"))}return this.Bn(t)};e.prototype.Yn=function(){return this.Bn("fillOutline")};e.prototype.Vn=function(){return this.Bn("line")};e.prototype.Xn=function(){return this.Bn("polyline")};e.prototype.M_=function(){return this.Bn("polyline-pattern")};e.prototype.sS=function(){return this.Bn("polyline-gradient")};e.prototype.Hn=function(){return this.Bn("combineText")};e.prototype.Jn=function(){return this.Bn("debugImage")};e.prototype.destroy=function(){for(var e in this.cache){if(this.cache.hasOwnProperty(e)){var r=this.cache[e];r.destroy();delete this.cache[e]}}};e.prototype.Bn=function(e){if(this.cache[e]){return this.cache[e]}var r=programs[e];if(r){this.cache[e]=new Program(this.context,r.vertexSource,r.fragmentSource,r.attributes,r.uniforms,e)}return this.cache[e]};return e}();var Util$8=AMap["Util"];var LandRender=function(r){__extends(e,r);function e(){var e=r.call(this)||this;e.CLASS_NAME="AMap.Land";e.e_=[0,0,0,0];e.Qn={color:[.9882352941176471,.9764705882352941,.9490196078431372,1]};return e}e.prototype.renderFrame=function(e,r,t,i,a){return};return e}(LayerRender);var MapRenderBase=function(){function e(e){this.map=e}e.prototype.lS=function(e,r){var t=this.map.fS();var i=t.uS();var a={};for(var n in i){if(i.hasOwnProperty(n)){var o=i[n];var f=r.uo.getData(o.co(),r.viewState,this.context||null);a[n]=f}}t.cS(e,r,a)};return e}();var Support$7=M["Support"];var DomUtil$1=AMap["DomUtil"];var utils$1=AMap["Util"];var scale$4=Support$7.scale;var MapRender=function(t){__extends(e,t);function e(e){var r=t.call(this,e)||this;r.map=e;r.gl=e["getGL"]();r.io=r.gl.canvas;r.gl.getExtension("OES_standard_derivatives");r.gl.getExtension("OES_element_index_uint");r.context=new Context(r.gl);r.oo=new ProgramManager(r.context);r.z_=e.z_;r.R_=e.R_;r.no=new LandRender;r.Fee();r.uee=r.context.createTexture({height:4096,width:4096,data:null});r.uee.bind(r.context.gl.CLAMP_TO_EDGE,r.context.gl.LINEAR,r.context.gl.LINEAR);return r}e.prototype.getMapState=function(){return this.map&&this.map.getMapState()||{}};e.prototype.Pee=function(){return this.map};e.prototype.to=function(){if(this.map){this.map.setNeedUpdate(true)}};e.prototype.renderFrame=function(e){if(e.size[0]*scale$4!==this.io.width){this.io.width=e.size[0]*scale$4;this.io.style.width=e.size[0]+"px"}if(e.size[1]*scale$4!==this.io.height){this.io.height=e.size[1]*scale$4;this.io.style.height=e.size[1]+"px"}this.context.be.set([0,0,this.io.width,this.io.height]);this.context.clear({stencil:true,color:true,depth:true});var r=e.viewState.zoom;var t=e.layers.sort(function(e,r){return e.getLayerConfig().zIndex-r.getLayerConfig().zIndex});this.no.renderFrame(this.oo,this.map.options.backgroundColor,e,{},this);this.map.so.update(this.oo);var i=this.map.TL();if(!i&&this.map.bZ.MZ.gY.Kv){this.uee.update(this.map.bZ.MZ.gY.mY);this.map.bZ.MZ.gY.Kv=false}if(this.map.bZ.MZ.drawMode!=="fast"&&(this.map.bZ.dynamic.get("firstLabelDataAllLoaded")||this.map.bZ.dynamic.get("firstLabelLayerDataAllLoaded"))){this.lS(this.oo,e)}else if(this.map.bZ.MZ.drawMode==="fast"&&(this.map.bZ.dynamic.get("firstLabelDataAllLoaded")||this.map.bZ.dynamic.get("firstLabelLayerDataAllLoaded"))&&!i){this.lS(this.oo,e)}var a;var n=true;for(var o=0,f=t.length;o0;if(a.CLASS_NAME==="AMap.IndoorMap"){l=s.opacity>=0}if(s.visible&&l&&utils$1.dS(r,u)||a.CLASS_NAME==="AMap.CustomLayer"){var v=a.getRender();if(v){if(!a.lo()){n=false}var c=e.uo.getData(t[o].co(),e.viewState,this.context);if(c){a.beforeRender();v.renderFrame(this.oo,c,e,s,this,t[o],c.fo);a.afterRender()}}}}if(!this.map.complete&&n){this.map.emit("complete");this.map.complete=true}if(this.map["getView"]()&&!this.map["getView"]().h_()){this.map.getView().aD();this.map.emit("viewchange",{zoom:e.viewState.zoom,center:e.viewState.center,pitch:e.viewState.pitch,rotation:e.viewState.rotation})}if(!this.map.bZ){return}var h=this.map.bZ.dynamic.get("stamp");var d=Date.now();this.map.bZ.dynamic.set("stamp",d);var _=Math.floor(1e3/(d-h));this.map.bZ.MZ.tY.update();if(_>=50){this.map.bZ.MZ.tY.RZ("default")}if(this.map.bZ.MZ.tY.BZ("default")>0||this.map.bZ.MZ.gY.Kv){this.to()}};e.prototype.destroy=function(){if(this.oo&&this.oo["destroy"]){this.oo.destroy()}if(this.R_&&this.R_["destroy"]){this.R_.destroy();delete this.R_}if(this.context){delete this.context}};e.prototype.Fee=function(){var e=this;this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Hn()},UZ:function(){return Boolean(e.oo.cache["combineText"])},group:"default",FZ:function(){return 1}});if(this.map["getViewMode_"]()==="3D"){this.map.bZ.MZ.tY.add({NZ:function(){e.oo.rS()},UZ:function(){return Boolean(e.oo.cache["sky"])},group:"default",FZ:function(){return 1}})}if(!this.map.yS()){this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Yn()},UZ:function(){return Boolean(e.oo.cache["fillOutline"])},group:"default",FZ:function(){return 1}})}this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Wn()},UZ:function(){return Boolean(e.oo.cache["fill"])},group:"default",FZ:function(){return 1}});this.map.bZ.MZ.tY.add({NZ:function(){e.oo.Vn()},UZ:function(){return Boolean(e.oo.cache["line"])},group:"default",FZ:function(){return 1}});this.map.setNeedUpdate(true)};return e}(MapRenderBase);M.Lee=MapRender;M.WebGLRender=MapRender;M["LayerRenderManager"]["addLayerRender"]("AMap.NebulaLayer",NebulaRender);M["LayerRenderManager"]["addLayerRender"]("AMap.Buildings",BuildingRender);M["LayerRenderManager"]["addLayerRender"]("AMap.Inner.LabelsLayer",TileLabelsLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.LabelsLayer",LabelsLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.ImageLayer",ImageRender);M["LayerRenderManager"]["addLayerRender"]("AMap.CanvasLayer",ImageRender);M["LayerRenderManager"]["addLayerRender"]("AMap.RasterLayer",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.Flexible",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.RoadNet",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.Satellite",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.Traffic",VectorTrafficRender);M["LayerRenderManager"]["addLayerRender"]("AMap.WMTSLayer",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.WMS",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.TileLayer.WMTS",RasterLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.CustomLayer",CustomRender);M["LayerRenderManager"]["addLayerRender"]("AMap.GLCustomLayer",GLCustomRender);M["LayerRenderManager"]["addLayerRender"]("AMap.VTLayer",VTRender);M["LayerRenderManager"]["addLayerRender"]("AMap.SkyLayer",SkyLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.MaskLayer",MaskLayerRender);M["LayerRenderManager"]["addLayerRender"]("AMap.MapboxLayer",MapboxRender);M["LayerRenderManager"]["addLayerRender"]("AMap.VectorLayer",OverlayRender);M["LayerRenderManager"]["addLayerRender"]("AMap.VectorSvgLayer",OverlayRender);M["LayerRenderManager"]["addLayerRender"]("AMap.IndoorMap",IndoorRender);M["LayerRenderManager"]["addLayerRender"]("AMap.DistrictLayer",DistrictRender);M["LayerRenderManager"]["addLayerRender"]("AMap.DistrictLayer.World",DistrictRender);M["LayerRenderManager"]["addLayerRender"]("AMap.DistrictLayer.Country",DistrictRender);M["LayerRenderManager"]["addLayerRender"]("AMap.DistrictLayer.Province",DistrictRender);M["LayerRenderManager"]["addLayerRender"]("AMap.MapboxVectorTileLayer",MapboxVTRender)})(); '); -_jsload_('AMap.MouseTool', '!function(){"use strict";var extendStatics=function(d,b){return(extendStatics=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(d,b){d.__proto__=b}:function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])}))(d,b)};var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,freeSelf=freeGlobal||freeSelf||Function("return this")(),Symbol=freeSelf.Symbol,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol?Symbol.toStringTag:void 0;var nativeObjectToString$1=Object.prototype.toString;var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag$1=Symbol?Symbol.toStringTag:void 0;function baseGetTag(value){return null==value?void 0===value?undefinedTag:nullTag:(symToStringTag$1&&symToStringTag$1 in Object(value)?function(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{var unmasked=!(value[symToStringTag]=void 0)}catch(e){}var result=nativeObjectToString.call(value);return unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]),result}:function(value){return nativeObjectToString$1.call(value)})(value)}function isObjectLike(value){return null!=value&&"object"==typeof value}var isArray=Array.isArray;function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function identity(value){return value}var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(isObject(value))return(value=baseGetTag(value))==funcTag||value==genTag||value==asyncTag||value==proxyTag}var objectProto=freeSelf["__core-js_shared__"],maskSrcKey=(Symbol=/[^.]+$/.exec(objectProto&&objectProto.keys&&objectProto.keys.IE_PROTO||""))?"Symbol(src)_1."+Symbol:"";var funcToString=Function.prototype.toString;var reIsHostCtor=/^\\[object .+?Constructor\\]$/,objectProto=Function.prototype,Symbol=Object.prototype,objectProto=objectProto.toString,Symbol=Symbol.hasOwnProperty,reIsNative=RegExp("^"+objectProto.call(Symbol).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function baseIsNative(value){var func;return isObject(value)&&(func=value,!(maskSrcKey&&maskSrcKey in func))&&(isFunction(value)?reIsNative:reIsHostCtor).test(function(func){if(null!=func){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}(value))}var nativeNow=Date.now;var func,count,lastCalled,defineProperty=function(){try{var func=baseIsNative(object=function(object,key){return null==object?void 0:object[key]}(object=Object,"defineProperty"))?object:void 0;return func({},"",{}),func}catch(e){}var object}(),setToString=(func=defineProperty?function(func,string){return defineProperty(func,"toString",{configurable:!0,enumerable:!1,value:(value=string,function(){return value}),writable:!0});var value}:identity,lastCalled=count=0,function(){var stamp=nativeNow(),remaining=16-(stamp-lastCalled);if(lastCalled=stamp,0=this.h&&this.l<=this.v?(r=new u.Marker({position:t.lnglat,anchor:"top-left"}),o?o.call(null,{clusterData:this.m,count:n,marker:r,indexs:this.k}):(r.setContent(h.content),r.setOffset(h.offset))):(r=t.originMarker?t.originMarker:new u.Marker({position:t.lnglat,anchor:"top-left",offset:new u.Pixel(-9,-32)}),e&&e.call(null,{count:n,marker:r,data:this.m,indexs:this.k})),r},i.C=function(t,i){var n=document.createElement("div");return n.style.width=i.size.width+"px",n.style.height=i.size.height+"px",n.innerHTML=t,n.style.backgroundImage="url("+i.url+")",n.style.textAlign="center",n.style.lineHeight=i.size.height+"px",n.style.backgroundPosition=i.imageOffset?i.imageOffset.x+"px "+i.imageOffset.y+"px":"0 0",n.style.color=i.textColor||"#000",n.style.fontSize=i.textSize?i.textSize+"px":"12px",n.style.cursor="pointer",{content:n,offset:i.offset||new u.Pixel(0,0)}},i.J=function(t){for(var i=0,n=t;0!==n;)n=parseInt(n/10,10),i+=1;return i=Math.min(i,5)},i.F=function(){return this.m},i.L=function(){for(var t=[],i=this.M.length,n=0;nthis.v){t=this.ct(),this.V=t;var i=this.vt(t);this.lt(i)}else{t=this.pt(),this.V=t;var n=this.vt(t);this.lt(n)}},i.vt=function(t){this._=[];var i=t.length,n=this.l,r=this.i.getBounds();r=this.dt(r,5);for(var s=this.it.length,h=0;hthis.h)for(var a=0;an&&i.y>h&&i.y>4|(3840&iv)>>8,240&iv|(240&iv)>>4,15&iv|(15&iv)<<4,1]:null:7===css_str.length&&0<=(iv=parseInt(css_str.substr(1),16))&&iv<=16777215?[(16711680&iv)>>16,(65280&iv)>>8,255&iv,1]:null;var iv=css_str.indexOf("("),ep=css_str.indexOf(")");if(-1!==iv&&ep+1===css_str.length){var h,l,s,fname=css_str.substr(0,iv),params=css_str.substr(iv+1,ep-(iv+1)).split(","),alpha=1;switch(fname){case"rgba":if(4!==params.length)return null;alpha=parse_css_float(params.pop());case"rgb":return 3!==params.length?null:[parse_css_int(params[0]),parse_css_int(params[1]),parse_css_int(params[2]),alpha];case"hsla":if(4!==params.length)return null;alpha=parse_css_float(params.pop());case"hsl":return 3!==params.length?null:(h=(parseFloat(params[0])%360+360)%360/360,s=parse_css_float(params[1]),[clamp_css_byte(255*css_hue_to_rgb(s=2*(l=parse_css_float(params[2]))-(l=l<=.5?l*(s+1):l+s-l*s),l,h+1/3)),clamp_css_byte(255*css_hue_to_rgb(s,l,h)),clamp_css_byte(255*css_hue_to_rgb(s,l,h-1/3)),alpha]);default:return null}}return null}}catch(e){}})),colorhelper=(csscolorparser.parseCSSColor,createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var obj,_slicedToArray=function(arr,i){if(Array.isArray(arr))return arr;if(Symbol.iterator in Object(arr))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=arr[Symbol.iterator]();!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_csscolorparser2=(obj=csscolorparser)&&obj.__esModule?obj:{default:obj};var parseCSSColor=_csscolorparser2.default.parseCSSColor;function _clamp_css_byte(i){return(i=Math.round(i))<0?0:255>0,fn=interpolation;return function(p0,p1,t){var p0=_slicedToArray(p0,4),r0=p0[0],g0=p0[1],b0=p0[2],p0=p0[3],p1=_slicedToArray(p1,4),r1=p1[0],g1=p1[1],b1=p1[2],p1=p1[3];return[fn(r0,r1,t)>>0,fn(g0,g1,t)>>0,fn(b0,b1,t)>>0,fn(p0,p1,t)]}(steps[i],steps[m<1+i?m:1+i],progress-i)},mixColors:function(color,increase){var c=this.toNormal(color);return Array.isArray(increase)&&c?"rgba("+[(c=[_clamp_css_byte(c[0]+increase[0]||0),_clamp_css_byte(c[1]+increase[1]||0),_clamp_css_byte(c[2]+increase[2]||0),_clamp_css_float(c[3]+increase[3]||0)])[0],c[1],c[2],c[3]].join(",")+")":color},toRGBA:function(color){var alpha;return color&&3<=color.length?(alpha=void 0===color[3]?1:color[3],"rgba("+_clamp_css_byte(color[0])+","+_clamp_css_byte(color[1])+","+_clamp_css_byte(color[2])+","+_clamp_css_float(alpha)+")"):"transparent"},Utils:{Linear:function(p0,p1,t){return(p1-p0)*t+p0}}};exports.default=ColorHelper})),color=(unwrapExports(colorhelper),createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var _clip2=_interopRequireDefault(clip),_colorhelper2=_interopRequireDefault(colorhelper);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var plugin={type:"color",test:function(value,key){return _colorhelper2.default.isColor(value)},parse:function(value,key){return _colorhelper2.default.toNormalArray(value)},valueOf:function(parsedValue,progress,elapsed,key){parsedValue=_colorhelper2.default.linearGradient(parsedValue,progress);return _colorhelper2.default.toRGBA(parsedValue)}};_clip2.default.registerPlugin(plugin),exports.default=plugin})),vector_1=(unwrapExports(color),createCommonjsModule(function(module,exports){Object.defineProperty(exports,"__esModule",{value:!0});var ArrayCons="undefined"==typeof Float32Array?Array:Float32Array,vector={create:function(){var x=0b?1:a0){var middle=start+Math.floor(size/2);var key=keys[middle];var data=values[middle];var node={key:key,data:data,parent:parent};node.left=loadRecursive(node,keys,values,start,middle);node.right=loadRecursive(node,keys,values,middle+1,end);return node}return null}function sort(keys,values,left,right,compare){if(left>=right)return;var pivot=keys[left+right>>1];var i=left-1;var j=right+1;while(true){do{i++}while(compare(keys[i],pivot)<0);do{j--}while(compare(keys[j],pivot)>0);if(i>=j)break;var tmp=keys[i];keys[i]=keys[j];keys[j]=tmp;tmp=values[i];values[i]=values[j];values[j]=tmp}sort(keys,values,left,j,compare);sort(keys,values,j+1,right,compare)}SplayTree.prototype.rotateLeft=function rotateLeft(x){var y=x.right;if(y){x.right=y.left;if(y.left)y.left.parent=x;y.parent=x.parent}if(!x.parent)this._root=y;else if(x===x.parent.left)x.parent.left=y;else x.parent.right=y;if(y)y.left=x;x.parent=y},SplayTree.prototype.rotateRight=function rotateRight(x){var y=x.left;if(y){x.left=y.right;if(y.right)y.right.parent=x;y.parent=x.parent}if(!x.parent)this._root=y;else if(x===x.parent.left)x.parent.left=y;else x.parent.right=y;if(y)y.right=x;x.parent=y},SplayTree.prototype._splay=function _splay(x){while(x.parent){var p=x.parent;if(!p.parent)if(p.left===x)this.rotateRight(p);else this.rotateLeft(p);else if(p.left===x&&p.parent.left===p){this.rotateRight(p.parent);this.rotateRight(p)}else if(p.right===x&&p.parent.right===p){this.rotateLeft(p.parent);this.rotateLeft(p)}else if(p.left===x&&p.parent.right===p){this.rotateRight(p);this.rotateLeft(p)}else{this.rotateLeft(p);this.rotateRight(p)}}},SplayTree.prototype.splay=function splay(x){var p,gp,ggp,l,r;while(x.parent){p=x.parent;gp=p.parent;if(gp&&gp.parent){ggp=gp.parent;if(ggp.left===gp)ggp.left=x;else ggp.right=x;x.parent=ggp}else{x.parent=null;this._root=x}l=x.left;r=x.right;if(x===p.left){if(gp)if(gp.left===p){if(p.right){gp.left=p.right;gp.left.parent=gp}else gp.left=null;p.right=gp;gp.parent=p}else{if(l){gp.right=l;l.parent=gp}else gp.right=null;x.left=gp;gp.parent=x}if(r){p.left=r;r.parent=p}else p.left=null;x.right=p;p.parent=x}else{if(gp)if(gp.right===p){if(p.left){gp.right=p.left;gp.right.parent=gp}else gp.right=null;p.left=gp;gp.parent=p}else{if(r){gp.left=r;r.parent=gp}else gp.left=null;x.right=gp;gp.parent=x}if(l){p.right=l;l.parent=p}else p.right=null;x.left=p;p.parent=x}}},SplayTree.prototype.replace=function replace(u,v){if(!u.parent)this._root=v;else if(u===u.parent.left)u.parent.left=v;else u.parent.right=v;if(v)v.parent=u.parent},SplayTree.prototype.minNode=function minNode(u){if(u===void 0)u=this._root;if(u)while(u.left)u=u.left;return u},SplayTree.prototype.maxNode=function maxNode(u){if(u===void 0)u=this._root;if(u)while(u.right)u=u.right;return u},SplayTree.prototype.insert=function insert(key,data){var z=this._root;var p=null;var comp=this._compare;var cmp;if(this._noDuplicates)while(z){p=z;cmp=comp(z.key,key);if(cmp===0)return;else if(comp(z.key,key)<0)z=z.right;else z=z.left}else while(z){p=z;if(comp(z.key,key)<0)z=z.right;else z=z.left}z={key:key,data:data,left:null,right:null,parent:p};if(!p)this._root=z;else if(comp(p.key,z.key)<0)p.right=z;else p.left=z;this.splay(z);this._size++;return z},SplayTree.prototype.find=function find(key){var z=this._root;var comp=this._compare;while(z){var cmp=comp(z.key,key);if(cmp<0)z=z.right;else if(cmp>0)z=z.left;else return z}return null},SplayTree.prototype.contains=function contains(key){var node=this._root;var comparator=this._compare;while(node){var cmp=comparator(key,node.key);if(cmp===0)return true;else if(cmp<0)node=node.left;else node=node.right}return false},SplayTree.prototype.remove=function remove(key){var z=this.find(key);if(!z)return false;this.splay(z);if(!z.left)this.replace(z,z.right);else if(!z.right)this.replace(z,z.left);else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true},SplayTree.prototype.removeNode=function removeNode(z){if(!z)return false;this.splay(z);if(!z.left)this.replace(z,z.right);else if(!z.right)this.replace(z,z.left);else{var y=this.minNode(z.right);if(y.parent!==z){this.replace(y,y.right);y.right=z.right;y.right.parent=y}this.replace(z,y);y.left=z.left;y.left.parent=y}this._size--;return true},SplayTree.prototype.erase=function erase(key){var z=this.find(key);if(!z)return;this.splay(z);var s=z.left;var t=z.right;var sMax=null;if(s){s.parent=null;sMax=this.maxNode(s);this.splay(sMax);this._root=sMax}if(t){if(s)sMax.right=t;else this._root=t;t.parent=sMax}this._size--},SplayTree.prototype.pop=function pop(){var node=this._root,returnValue=null;if(node){while(node.left)node=node.left;returnValue={key:node.key,data:node.data};this.remove(node.key)}return returnValue},SplayTree.prototype.next=function next(node){var successor=node;if(successor)if(successor.right){successor=successor.right;while(successor&&successor.left)successor=successor.left}else{successor=node.parent;while(successor&&successor.right===node){node=successor;successor=successor.parent}}return successor},SplayTree.prototype.prev=function prev(node){var predecessor=node;if(predecessor)if(predecessor.left){predecessor=predecessor.left;while(predecessor&&predecessor.right)predecessor=predecessor.right}else{predecessor=node.parent;while(predecessor&&predecessor.left===node){node=predecessor;predecessor=predecessor.parent}}return predecessor},SplayTree.prototype.forEach=function forEach(callback){var current=this._root;var s=[],done=false,i=0;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();callback(current,i++);current=current.right}else done=true;return this},SplayTree.prototype.range=function range(low,high,fn,ctx){var Q=[];var compare=this._compare;var node=this._root,cmp;while(Q.length!==0||node)if(node){Q.push(node);node=node.left}else{node=Q.pop();cmp=compare(node.key,high);if(cmp>0)break;else if(compare(node.key,low)>=0)if(fn.call(ctx,node))return this;node=node.right}return this},SplayTree.prototype.keys=function keys(){var current=this._root;var s=[],r=[],done=false;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();r.push(current.key);current=current.right}else done=true;return r},SplayTree.prototype.values=function values(){var current=this._root;var s=[],r=[],done=false;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();r.push(current.data);current=current.right}else done=true;return r},SplayTree.prototype.at=function at(index){var current=this._root;var s=[],done=false,i=0;while(!done)if(current){s.push(current);current=current.left}else if(s.length>0){current=s.pop();if(i===index)return current;i++;current=current.right}else done=true;return null},SplayTree.prototype.load=function load(keys,values,presort){if(keys===void 0)keys=[];if(values===void 0)values=[];if(presort===void 0)presort=false;if(this._size!==0)throw new Error("bulk-load: tree is not empty");var size=keys.length;if(presort)sort(keys,values,0,size-1,this._compare);this._root=loadRecursive(null,keys,values,0,size);this._size=size;return this},SplayTree.prototype.min=function min(){var node=this.minNode(this._root);if(node)return node.key;else return null},SplayTree.prototype.max=function max(){var node=this.maxNode(this._root);if(node)return node.key;else return null},SplayTree.prototype.isEmpty=function isEmpty(){return this._root===null},prototypeAccessors.size.get=function(){return this._size},SplayTree.createTree=function createTree(keys,values,comparator,presort,noDuplicates){return new SplayTree(comparator,noDuplicates).load(keys,values,presort)},Object.defineProperties(SplayTree.prototype,prototypeAccessors);var NORMAL=0,NON_CONTRIBUTING=1,SAME_TRANSITION=2,DIFFERENT_TRANSITION=3,INTERSECTION=0,UNION=1,DIFFERENCE=2,XOR=3;function computeFields(event,prev,operation){if(prev===null){event.inOut=false;event.otherInOut=true}else{if(event.isSubject===prev.isSubject){event.inOut=!prev.inOut;event.otherInOut=prev.otherInOut}else{event.inOut=!prev.otherInOut;event.otherInOut=prev.isVertical()?!prev.inOut:prev.inOut}if(prev)event.prevInResult=!inResult(prev,operation)||prev.isVertical()?prev.prevInResult:prev}var isInResult=inResult(event,operation);if(isInResult)event.resultTransition=determineResultTransition(event,operation);else event.resultTransition=0}function inResult(event,operation){switch(event.type){case NORMAL:switch(operation){case INTERSECTION:return!event.otherInOut;case UNION:return event.otherInOut;case DIFFERENCE:return event.isSubject&&event.otherInOut||!event.isSubject&&!event.otherInOut;case XOR:return true}break;case SAME_TRANSITION:return operation===INTERSECTION||operation===UNION;case DIFFERENT_TRANSITION:return operation===DIFFERENCE;case NON_CONTRIBUTING:return false}return false}function determineResultTransition(event,operation){var thisIn=!event.inOut;var thatIn=!event.otherInOut;var isIn;switch(operation){case INTERSECTION:isIn=thisIn&&thatIn;break;case UNION:isIn=thisIn||thatIn;break;case XOR:isIn=thisIn^thatIn;break;case DIFFERENCE:if(event.isSubject)isIn=thisIn&&!thatIn;else isIn=thatIn&&!thisIn;break}return isIn?+1:-1}var SweepEvent=function SweepEvent(point,left,otherEvent,isSubject,edgeType){this.left=left;this.point=point;this.otherEvent=otherEvent;this.isSubject=isSubject;this.type=edgeType||NORMAL;this.inOut=false;this.otherInOut=false;this.prevInResult=null;this.resultTransition=0;this.otherPos=-1;this.outputContourId=-1;this.isExteriorRing=true},prototypeAccessors$1={inResult:{configurable:true}};function equals(p1,p2){if(p1[0]===p2[0])if(p1[1]===p2[1])return true;else return false;return false}SweepEvent.prototype.isBelow=function isBelow(p){var p0=this.point,p1=this.otherEvent.point;return this.left?(p0[0]-p[0])*(p1[1]-p[1])-(p1[0]-p[0])*(p0[1]-p[1])>0:(p1[0]-p[0])*(p0[1]-p[1])-(p0[0]-p[0])*(p1[1]-p[1])>0},SweepEvent.prototype.isAbove=function isAbove(p){return!this.isBelow(p)},SweepEvent.prototype.isVertical=function isVertical(){return this.point[0]===this.otherEvent.point[0]},prototypeAccessors$1.inResult.get=function(){return this.resultTransition!==0},SweepEvent.prototype.clone=function clone(){var copy=new SweepEvent(this.point,this.left,this.otherEvent,this.isSubject,this.type);copy.contourId=this.contourId;copy.resultTransition=this.resultTransition;copy.prevInResult=this.prevInResult;copy.isExteriorRing=this.isExteriorRing;copy.inOut=this.inOut;copy.otherInOut=this.otherInOut;return copy},Object.defineProperties(SweepEvent.prototype,prototypeAccessors$1);var epsilon=11102230246251565e-32,splitter=134217729,resulterrbound=(3+8*epsilon)*epsilon;function sum(elen,e,flen,f,h){var Q,Qnew,hh,bvirt;var enow=e[0];var fnow=f[0];var eindex=0;var findex=0;if(fnow>enow===fnow>-enow){Q=enow;enow=e[++eindex]}else{Q=fnow;fnow=f[++findex]}var hindex=0;if(eindexenow===fnow>-enow){Qnew=enow+Q;hh=Q-(Qnew-enow);enow=e[++eindex]}else{Qnew=fnow+Q;hh=Q-(Qnew-fnow);fnow=f[++findex]}Q=Qnew;if(hh!==0)h[hindex++]=hh;while(eindexenow===fnow>-enow){Qnew=Q+enow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(enow-bvirt);enow=e[++eindex]}else{Qnew=Q+fnow;bvirt=Qnew-Q;hh=Q-(Qnew-bvirt)+(fnow-bvirt);fnow=f[++findex]}Q=Qnew;if(hh!==0)h[hindex++]=hh}}while(eindex=errbound||-det>=errbound)return det;bvirt=ax-acx;acxtail=ax-(acx+bvirt)+(bvirt-cx);bvirt=bx-bcx;bcxtail=bx-(bcx+bvirt)+(bvirt-cx);bvirt=ay-acy;acytail=ay-(acy+bvirt)+(bvirt-cy);bvirt=by-bcy;bcytail=by-(bcy+bvirt)+(bvirt-cy);if(acxtail===0&&acytail===0&&bcxtail===0&&bcytail===0)return det;errbound=ccwerrboundC*detsum+resulterrbound*Math.abs(det);det+=acx*bcytail+bcy*acxtail-(acy*bcxtail+bcx*acytail);if(det>=errbound||-det>=errbound)return det;s1=acxtail*bcy;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcy;bhi=c-(c-bcy);blo=bcy-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcx;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcx;bhi=c-(c-bcx);blo=bcx-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C1len=sum(4,B,4,u,C1);s1=acx*bcytail;c=splitter*acx;ahi=c-(c-acx);alo=acx-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acy*bcxtail;c=splitter*acy;ahi=c-(c-acy);alo=acy-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var C2len=sum(C1len,C1,4,u,C2);s1=acxtail*bcytail;c=splitter*acxtail;ahi=c-(c-acxtail);alo=acxtail-ahi;c=splitter*bcytail;bhi=c-(c-bcytail);blo=bcytail-bhi;s0=alo*blo-(s1-ahi*bhi-alo*bhi-ahi*blo);t1=acytail*bcxtail;c=splitter*acytail;ahi=c-(c-acytail);alo=acytail-ahi;c=splitter*bcxtail;bhi=c-(c-bcxtail);blo=bcxtail-bhi;t0=alo*blo-(t1-ahi*bhi-alo*bhi-ahi*blo);_i=s0-t0;bvirt=s0-_i;u[0]=s0-(_i+bvirt)+(bvirt-t0);_j=s1+_i;bvirt=_j-s1;_0=s1-(_j-bvirt)+(_i-bvirt);_i=_0-t1;bvirt=_0-_i;u[1]=_0-(_i+bvirt)+(bvirt-t1);u3=_j+_i;bvirt=u3-_j;u[2]=_j-(u3-bvirt)+(_i-bvirt);u[3]=u3;var Dlen=sum(C2len,C2,4,u,D);return D[Dlen-1]}function orient2d(ax,ay,bx,by,cx,cy){var detleft=(ay-cy)*(bx-cx);var detright=(ax-cx)*(by-cy);var det=detleft-detright;if(detleft===0||detright===0||detleft>0!==detright>0)return det;var detsum=Math.abs(detleft+detright);if(Math.abs(det)>=ccwerrboundA*detsum)return det;return-orient2dadapt(ax,ay,bx,by,cx,cy,detsum)}function signedArea(p0,p1,p2){var res=orient2d(p0[0],p0[1],p1[0],p1[1],p2[0],p2[1]);if(res>0)return-1;if(res<0)return 1;return 0}function compareEvents(e1,e2){var p1=e1.point;var p2=e2.point;if(p1[0]>p2[0])return 1;if(p1[0]p2[1]?1:-1;return specialCases(e1,e2,p1)}function specialCases(e1,e2,p1,p2){if(e1.left!==e2.left)return e1.left?1:-1;if(signedArea(p1,e1.otherEvent.point,e2.otherEvent.point)!==0)return!e1.isBelow(e2.otherEvent.point)?1:-1;return!e1.isSubject&&e2.isSubject?1:-1}function divideSegment(se,p,queue){var r=new SweepEvent(p,false,se,se.isSubject);var l=new SweepEvent(p,true,se.otherEvent,se.isSubject);if(equals(se.point,se.otherEvent.point))console.warn("what is that, a collapsed segment?",se);r.contourId=l.contourId=se.contourId;if(compareEvents(l,se.otherEvent)>0){se.otherEvent.left=true;l.left=false}se.otherEvent.otherEvent=l;se.otherEvent=r;queue.push(l);queue.push(r);return queue}function crossProduct(a,b){return a[0]*b[1]-a[1]*b[0]}function dotProduct(a,b){return a[0]*b[0]+a[1]*b[1]}function intersection(a1,a2,b1,b2,noEndpointTouch){var va=[a2[0]-a1[0],a2[1]-a1[1]];var vb=[b2[0]-b1[0],b2[1]-b1[1]];function toPoint(p,s,d){return[p[0]+s*d[0],p[1]+s*d[1]]}var e=[b1[0]-a1[0],b1[1]-a1[1]];var kross=crossProduct(va,vb);var sqrKross=kross*kross;var sqrLenA=dotProduct(va,va);if(sqrKross>0){var s=crossProduct(e,vb)/kross;if(s<0||s>1)return null;var t=crossProduct(e,va)/kross;if(t<0||t>1)return null;if(s===0||s===1)return noEndpointTouch?null:[toPoint(a1,s,va)];if(t===0||t===1)return noEndpointTouch?null:[toPoint(b1,t,vb)];return[toPoint(a1,s,va)]}kross=crossProduct(e,va);sqrKross=kross*kross;if(sqrKross>0)return null;var sa=dotProduct(va,e)/sqrLenA;var sb=sa+dotProduct(va,vb)/sqrLenA;var smin=Math.min(sa,sb);var smax=Math.max(sa,sb);if(smin<=1&&smax>=0){if(smin===1)return noEndpointTouch?null:[toPoint(a1,smin>0?smin:0,va)];if(smax===0)return noEndpointTouch?null:[toPoint(a1,smax<1?smax:1,va)];if(noEndpointTouch&&smin===0&&smax===1)return null;return[toPoint(a1,smin>0?smin:0,va),toPoint(a1,smax<1?smax:1,va)]}return null}function possibleIntersection(se1,se2,queue){var inter=intersection(se1.point,se1.otherEvent.point,se2.point,se2.otherEvent.point);var nintersections=inter?inter.length:0;if(nintersections===0)return 0;if(nintersections===1&&(equals(se1.point,se2.point)||equals(se1.otherEvent.point,se2.otherEvent.point)))return 0;if(nintersections===2&&se1.isSubject===se2.isSubject)return 0;if(nintersections===1){if(!equals(se1.point,inter[0])&&!equals(se1.otherEvent.point,inter[0]))divideSegment(se1,inter[0],queue);if(!equals(se2.point,inter[0])&&!equals(se2.otherEvent.point,inter[0]))divideSegment(se2,inter[0],queue);return 1}var events=[];var leftCoincide=false;var rightCoincide=false;if(equals(se1.point,se2.point))leftCoincide=true;else if(compareEvents(se1,se2)===1)events.push(se2,se1);else events.push(se1,se2);if(equals(se1.otherEvent.point,se2.otherEvent.point))rightCoincide=true;else if(compareEvents(se1.otherEvent,se2.otherEvent)===1)events.push(se2.otherEvent,se1.otherEvent);else events.push(se1.otherEvent,se2.otherEvent);if(leftCoincide&&rightCoincide||leftCoincide){se2.type=NON_CONTRIBUTING;se1.type=se2.inOut===se1.inOut?SAME_TRANSITION:DIFFERENT_TRANSITION;if(leftCoincide&&!rightCoincide)divideSegment(events[1].otherEvent,events[0].point,queue);return 2}if(rightCoincide){divideSegment(events[0],events[1].point,queue);return 3}if(events[0]!==events[3].otherEvent){divideSegment(events[0],events[1].point,queue);divideSegment(events[1],events[2].point,queue);return 3}divideSegment(events[0],events[1].point,queue);divideSegment(events[3].otherEvent,events[2].point,queue);return 3}function compareSegments(le1,le2){if(le1===le2)return 0;if(signedArea(le1.point,le1.otherEvent.point,le2.point)!==0||signedArea(le1.point,le1.otherEvent.point,le2.otherEvent.point)!==0){if(equals(le1.point,le2.point))return le1.isBelow(le2.otherEvent.point)?-1:1;if(le1.point[0]===le2.point[0])return le1.point[1]le2.contourId?1:-1}}else return le1.isSubject?-1:1;return compareEvents(le1,le2)===1?1:-1}function subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation){var sweepLine=new SplayTree(compareSegments);var sortedEvents=[];var rightbound=Math.min(sbbox[2],cbbox[2]);var prev,next,begin;while(eventQueue.length!==0){var event=eventQueue.pop();sortedEvents.push(event);if(operation===INTERSECTION&&event.point[0]>rightbound||operation===DIFFERENCE&&event.point[0]>sbbox[2])break;if(event.left){next=prev=sweepLine.insert(event);begin=sweepLine.minNode();if(prev!==begin)prev=sweepLine.prev(prev);else prev=null;next=sweepLine.next(next);var prevEvent=prev?prev.key:null;var prevprevEvent=void 0;computeFields(event,prevEvent,operation);if(next)if(possibleIntersection(event,next.key,eventQueue)===2){computeFields(event,prevEvent,operation);computeFields(event,next.key,operation)}if(prev)if(possibleIntersection(prev.key,event,eventQueue)===2){var prevprev=prev;if(prevprev!==begin)prevprev=sweepLine.prev(prevprev);else prevprev=null;prevprevEvent=prevprev?prevprev.key:null;computeFields(prevEvent,prevprevEvent,operation);computeFields(event,prevEvent,operation)}}else{event=event.otherEvent;next=prev=sweepLine.find(event);if(prev&&next){if(prev!==begin)prev=sweepLine.prev(prev);else prev=null;next=sweepLine.next(next);sweepLine.remove(event);if(next&&prev)possibleIntersection(prev.key,next.key,eventQueue)}}}return sortedEvents}var Contour=function Contour(){this.points=[];this.holeIds=[];this.holeOf=null;this.depth=null};function orderEvents(sortedEvents){var event,i,len,tmp;var resultEvents=[];for(i=0,len=sortedEvents.length;iorigPos)newPos--;return newPos}function initializeContourFromContext(event,contours,contourId){var contour=new Contour;if(event.prevInResult!=null){var prevInResult=event.prevInResult;var lowerContourId=prevInResult.outputContourId;var lowerResultTransition=prevInResult.resultTransition;if(lowerResultTransition>0){var lowerContour=contours[lowerContourId];if(lowerContour.holeOf!=null){var parentContourId=lowerContour.holeOf;contours[parentContourId].holeIds.push(contourId);contour.holeOf=parentContourId;contour.depth=contours[lowerContourId].depth}else{contours[lowerContourId].holeIds.push(contourId);contour.holeOf=lowerContourId;contour.depth=contours[lowerContourId].depth+1}}else{contour.holeOf=null;contour.depth=contours[lowerContourId].depth}}else{contour.holeOf=null;contour.depth=0}return contour}function connectEdges(sortedEvents){var i,len;var resultEvents=orderEvents(sortedEvents);var processed={};var contours=[];var loop=function(){if(processed[i])return;var contourId=contours.length;var contour=initializeContourFromContext(resultEvents[i],contours,contourId);var markAsProcessed=function(pos){processed[pos]=true;resultEvents[pos].outputContourId=contourId};var pos=i;var origPos=i;var initial=resultEvents[i].point;contour.points.push(initial);while(true){markAsProcessed(pos);pos=resultEvents[pos].otherPos;markAsProcessed(pos);contour.points.push(resultEvents[pos].point);pos=nextPos(pos,resultEvents,processed,origPos);if(pos==origPos)break}contours.push(contour)};for(i=0,len=resultEvents.length;i0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}function defaultCompare(a,b){return ab?1:0}TinyQueue.prototype={push:function(item){this.data.push(item);this.length++;this._up(this.length-1)},pop:function(){if(this.length===0)return undefined;var top=this.data[0];this.length--;if(this.length>0){this.data[0]=this.data[this.length];this._down(0)}this.data.pop();return top},peek:function(){return this.data[0]},_up:function(pos){var data=this.data;var compare=this.compare;var item=data[pos];while(pos>0){var parent=pos-1>>1;var current=data[parent];if(compare(item,current)>=0)break;data[pos]=current;pos=parent}data[pos]=item},_down:function(pos){var data=this.data;var compare=this.compare;var halfLength=this.length>>1;var item=data[pos];while(pos=0)break;data[pos]=best;pos=left}data[pos]=item}},tinyqueue.default=default_1;var max=Math.max,min=Math.min,contourId=0;function processPolygon(contourOrHole,isSubject,depth,Q,bbox,isExteriorRing){var i,len,s1,s2,e1,e2;for(i=0,len=contourOrHole.length-1;i0)e2.left=true;else e1.left=true;var x=s1[0],y=s1[1];bbox[0]=min(bbox[0],x);bbox[1]=min(bbox[1],y);bbox[2]=max(bbox[2],x);bbox[3]=max(bbox[3],y);Q.push(e1);Q.push(e2)}}function fillQueue(subject,clipping,sbbox,cbbox,operation){var eventQueue=new tinyqueue(null,compareEvents);var polygonSet,isExteriorRing,i,ii,j,jj;for(i=0,ii=subject.length;icbbox[2]||cbbox[0]>sbbox[2]||sbbox[1]>cbbox[3]||cbbox[1]>sbbox[3])if(operation===INTERSECTION)result=EMPTY;else if(operation===DIFFERENCE)result=subject;else if(operation===UNION||operation===XOR)result=subject.concat(clipping);return result}function boolean(subject,clipping,operation){if(typeof subject[0][0][0]==="number")subject=[subject];if(typeof clipping[0][0][0]==="number")clipping=[clipping];var trivial=trivialOperation(subject,clipping,operation);if(trivial)return trivial===EMPTY?null:trivial;var sbbox=[Infinity,Infinity,-Infinity,-Infinity];var cbbox=[Infinity,Infinity,-Infinity,-Infinity];var eventQueue=fillQueue(subject,clipping,sbbox,cbbox,operation);trivial=compareBBoxes(subject,clipping,sbbox,cbbox,operation);if(trivial)return trivial===EMPTY?null:trivial;var sortedEvents=subdivide(eventQueue,subject,clipping,sbbox,cbbox,operation);var contours=connectEdges(sortedEvents);var polygons=[];for(var i=0;ipt[1]!=yj>pt[1]&&pt[0]<(xj-xi)*(pt[1]-yi)/(yj-yi)+xi&&(isInside=!isInside)}return isInside}return insidePoly},GeometryUtilCls.prototype.isPointInBbox=function(pt,bbox){for(var minX=1/0,minY=1/0,maxX=-1/0,maxY=-1/0,i=0;iminX&&pt[0]minY&&pt[1](cp2[1]-cp1[1])*(p[0]-cp1[0])},intersection=function(){var dc=[cp1[0]-cp2[0],cp1[1]-cp2[1]],dp=[s[0]-e[0],s[1]-e[1]],n1=cp1[0]*cp2[1]-cp1[1]*cp2[0],n2=s[0]*e[1]-s[1]*e[0],n3=1/(dc[0]*dp[1]-dc[1]*dp[0]);return[(n1*dp[0]-n2*dc[0])*n3,(n1*dp[1]-n2*dc[1])*n3]},outputList=subjectPolygon=this.makesureAntiClockwise(subjectPolygon),cp1=(clipPolygon=this.makesureClockwise(clipPolygon))[clipPolygon.length-1],j=0,jlen=clipPolygon.length;jSUBDIVISION_PRECISION&&++i>=0),easeFunction},createObjectURL:function(code,contentType){void 0===contentType&&(contentType="text/javascript; charset=utf-8");var url=null;try{url=(globalInstance.URL||globalInstance.webkitURL).createObjectURL(new Blob([code],{type:contentType}))}catch(e){url=null}return url},revokeObjectURL:function(url){try{(globalInstance.URL||globalInstance.webkitURL).revokeObjectURL(url)}catch(e){}},arrayToVIObj:function(array){for(var obj={},i=0,l=array.length;iarray.length&&(e=array.length);for(var j=s;j>24&255)/255,(hex>>16&255)/255,(hex>>8&255)/255,(255&hex)/255]},isEmpty:function(obj){for(var i in obj)if(obj.hasOwnProperty(i))return!1;return!0},delArrayItem:function(array,n){return 0<=n&&array.splice(n,1),array},startsWith:function(_long,_short){return _long.startsWith?_long.startsWith(_short):_long.substr(0,_short.length)===_short},deleteItemFromArray:function(array,item){item=Util.indexOf(array,item);return Util.delArrayItem(array,item)},deleteItemFromArrayByIndex:function(array,index){return Util.delArrayItem(array,index)},filter:function(array,fun,context){var ret=[];return Util.each(array,function(item,i){fun.call(context,item,i)&&ret.push(item)}),ret},indexOf:function(array,item){if(array&&array.length){if(array.indexOf)return array.indexOf(item);for(var i=0;i=zooms[0]&&zoom<=zooms[1]},getTileTagByZoom:function(key,optimalZoom,forceAll){void 0===forceAll&&(forceAll=!1);key=(key=void 0===key?"":key).split(",")[0]||"";return!forceAll&&key&&optimalZoom&&TagMap[optimalZoom]||"all"},getTileTagByZ:function(z,optimalZoom,forceAll){return!(forceAll=void 0!==forceAll&&forceAll)&&z&&optimalZoom&&TagMap[optimalZoom]||"all"},containTag:function(tag1,tag2){return!(!tag1||!tag2)&&(tag1=this.getNumberByTag(tag1),this.getNumberByTag(tag2)<=tag1)},getNumberTag:function(tag){var numberTag;switch(tag=void 0===tag?"all":tag){case"lite":numberTag=0;break;case"left":numberTag=1;break;default:numberTag=2}return numberTag},getStringTag:function(tag){var numberTag;switch(tag=void 0===tag?2:tag){case 0:numberTag=NebulaTagType.LITE;break;case 1:numberTag=NebulaTagType.LEFT;break;default:numberTag=NebulaTagType.ALL}return numberTag},getNumberByTag:function(tag){var tagNumber=0;switch(tag){case"lite":tagNumber=0;break;case"left":tagNumber=1;break;case"all":tagNumber=2}return tagNumber}};function timeoutDefer(fn){var time=+new Date,timeToCall=Math.max(0,(Browser.android?50:20)-(time-lastTime));return lastTime=time+timeToCall,globalInstance.setTimeout(fn,50)}function timeoutClear(id){globalInstance.clearTimeout(id)}function getPrefixed(name){for(var fn,prefixes=["webkit","moz","o","ms"],i=0;i.plan dt>.afterdt{height:100%}.amap-lib-driving .plan dt.walk .beforedt{left:-27px;width:10px;height:10px;margin-top:-6px;border:2px solid #ddd}.amap-lib-driving .plan dt.bus .beforedt,.amap-lib-driving .plan dt.subway .beforedt{left:-31px;width:24px;height:24px;margin-top:-12px;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan dt.bus .afterdt{background-color:#33a7ff}.amap-lib-driving .plan dt.subway .afterdt{background-color:#3baeca}.amap-lib-driving .plan dt.bus .beforedt{background-position:-164px -102px}.amap-lib-driving .plan dt.subway .beforedt{background-position:-243px -101px}.amap-lib-driving .plan-nobus{margin:0}.amap-lib-driving .plan-nobus dt span{display:block;line-height:18px}.amap-lib-driving .plan-nobus dt .beforedt{left:-31px;width:21px;height:21px;margin-top:-12px;border:1px solid #ddd;background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/diricon.png)}.amap-lib-driving .plan-nobus dt.end .beforedt,.amap-lib-driving .plan-nobus dt.start .beforedt,.amap-lib-driving .plan-nobus dt.via .beforedt{border:none}.amap-lib-driving .plan-nobus dt.turn-go .beforedt{background-image:url(https://webapi.amap.com/theme/v1.3/images/newpc/icon/turn-go.png)}.amap-lib-driving .plan-nobus dt.turn-advance .beforedt{background-position:-46px -23px}.amap-lib-driving .plan-nobus dt.turn-left .beforedt{background-position:-87px -23px}.amap-lib-driving .plan-nobus dt.turn-right .beforedt{background-position:-124px -23px}.amap-lib-driving .plan-nobus dt.turn-keepleft .beforedt{background-position:-406px -23px}.amap-lib-driving .plan-nobus dt.turn-keepright .beforedt{background-position:-445px -23px}.amap-lib-driving .plan-nobus dt.turn-leftup .beforedt{background-position:-165px -23px}.amap-lib-driving .plan-nobus dt.turn-leftdown .beforedt{background-position:-246px -23px}.amap-lib-driving .plan-nobus dt.turn-rightup .beforedt{background-position:-206px -23px}.amap-lib-driving .plan-nobus dt.turn-rightdown .beforedt{background-position:-284px -23px}.amap-lib-driving .plan-nobus dt.turn-leftback .beforedt{background-position:-327px -23px}.amap-lib-driving .plan-nobus dt.turn-rightback .beforedt{background-position:-365px -23px}.amap-lib-driving .plan-nobus dt.turn-enterRing .beforedt{background-position:-561px -23px}.amap-lib-driving .plan-nobus dt.turn-leaveRing .beforedt{background-position:-602px -23px}.amap-lib-driving .plan-nobus dt.turn-slow .beforedt{background-position:-524px -23px}.amap-lib-driving .plan-nobus dt.turn-crosswalk .beforedt{background-position:-126px -184px}.amap-lib-driving .plan-nobus dt.turn-overpass .beforedt{background-position:-164px -184px}.amap-lib-driving .plan-nobus dt.turn-underpass .beforedt{background-position:-85px -184px}.amap-lib-driving .plan-nobus dt.turn-squarepass .beforedt{background-position:-204px -184px}.amap-lib-marker-from,.amap-lib-marker-mid,.amap-lib-marker-to{position:absolute;width:25px;height:30px;color:#e90000;background-size:100% 100%}.amap-lib-marker-from{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/start.png);cursor:pointer}.amap-lib-marker-to{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/end.png);cursor:pointer}.amap-lib-marker-mid{background-image:url(https://a.amap.com/jsapi/static/image/plugin/marker/mid.png)}.amap-combo-close{position:absolute;top:11px;right:10px;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -1px -151px;width:12px;height:12px;cursor:pointer}.amap-content-body{min-width:200px;max-width:240px;font-family:Helvetica,Hiragino Sans GB,Microsoft Yahei,微软雅黑,Arial,sans-serif;box-shadow:0 0 .5px rgba(0,0,100,.6);background:none repeat scroll 0 0 #fff;border-radius:2px;text-align:left;border:1px solid silver}.amap-combo-sharp{margin:0 auto;bottom:1px;position:relative;background:url(https://webapi.amap.com/theme/v1.3/images/amap-info.png) no-repeat -5px -564px;width:18px;height:9px}.amap-lib-infowindow{padding:0;position:relative;background-color:#fff;margin:8px}.amap-lib-infowindow-title{line-height:22px;font-size:14px;border-bottom:1px solid #99adce;padding-right:15px}.amap-lib-infowindow-content{padding-top:5px;overflow:hidden;font-size:12px;zoom:1}'); -_jsload_('AMap.Driving', '!function(AMap){"use strict";function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(target,props){for(var i=0;i0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearRoute();this._route=this.addOverlays([],walkPaths,drivingPaths,{strokeOpacity:.4})};me.clearRoute=function(){if(this._route){for(var i=0;i0){drivingPaths=[drivingPaths]}drivingPaths.steps=steps;this.clearOverlays(1);this._overlays=this.addOverlays(points,walkPaths,drivingPaths);if(me.options["autoFitView"]){me.options.map.setFitView(this._overlays)}};me.addOverlays=function(points,walkPaths,drivingPaths,styleOptions){var _this=this;var map=this.options.map;styleOptions=styleOptions||{strokeOpacity:1};var _overlays=[];if(!this.hideMarkers){if(points[0]){if(!this.startMarker){this.startMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'
\',innerOverlay:true});this.startMarker.isOfficial=true}var start=this.startMarker;start.setPosition(points[0].location);start.setMap(map);start._data=points[0];start.on("click",this.listener.markerClick);AMap.Event.addListener(start,"click",this.listener.markerClick);_overlays.push(start)}if(points.length>1){if(!this.endMarker){this.endMarker=new AMap.Marker({offset:markerOffset,map:map,content:\'
\',innerOverlay:true});this.endMarker.isOfficial=true}var end=this.endMarker;end.setPosition(points[points.length-1].location);end.setMap(map);end._data=points[points.length-1];end.on("click",this.listener.markerClick);AMap.Event.addListener(end,"click",this.listener.markerClick);_overlays.push(end)}for(var i=1,point;i\',innerOverlay:true});point._data=points[i];AMap.Event.addListener(point,"click",this.listener.markerClick)}point.isOfficial=true;_overlays.push(point)}}styleOptions=me.util.extend({},me._styleOpts,styleOptions);for(var _i2=0,drivingPath;_i2"+route.policy+"":"";var result=me.util.getTime(route.time)+"("+me.util.getDistance(route.distance)+")"+policy;return result};me.util={};me.util.extend=function(dest){var sources=Array.prototype.slice.call(arguments,1),i,j,len,src;for(j=0,len=sources.length;j0){me.listener.unfocusTitleClick.call(unfocusTitles[0])}};me.listener={};me.listener.markerClick=function(){var data=this._data;if(data.type==="start"||data.type==="end"){me._infoWindow.setOffset(new AMap.Pixel(0,-30))}else{me._infoWindow.setOffset(new AMap.Pixel(0,0))}if(data.name==="起点"||data.name==="终点"||data.name==="途经点");else{me._infoWindow.setContent(me.view.createInfowindowContent(data));me._infoWindow.open(me.options.map,this.getPosition())}me.options.map.setCenter(this.getPosition())};me.listener.routeStepItem=function(){if(!me.options.map){var _p=this.parentNode;var _children=_p.children;var _stepIndex;for(var i=0,child;i<_children.length;i++){child=_children[i];if(child===this){_stepIndex=i;break}}me._eventSelf.emit("panelClick",{stepIndex:_stepIndex});return}if(me._highlightOverlay){me._highlightOverlay.setMap(null)}this.style.backgroundColor="rgb(240, 240, 240)";if(me.listener.routeStepItem.last){me.listener.routeStepItem.last.style.backgroundColor=""}me.listener.routeStepItem.last=this;var p=this.parentNode;var children=p.children;var stepIndex;for(var _i5=0,_child;_i5\');c.push(\'
\'+data.name+\' 详情»
\');c.push(\'
\');c.push(\'
\');c.push("
地址:"+data.address+"
");if(data.tel){c.push("
电话:"+data.tel+"
")}c.push("
");c.push("
");c.push("");div.innerHTML=c.join("");var sharp=document.createElement("div");sharp.className="amap-combo-sharp";div.appendChild(sharp);var close=document.createElement("div");close.className="amap-combo-close";div.appendChild(close);close.href="javascript: void(0)";AMap.Event.addDomListener(close,"touchend",function(e){me._infoWindow["close"]()});AMap.Event.addDomListener(close,"click",function(e){me._infoWindow["close"]()});content.appendChild(div);content.appendChild(close);content.appendChild(sharp);return content};me.view.createPanel=function(data){var div=document.createElement("div");div.className="amap-lib-driving";if(!data.routes){div.innerHTML="抱歉,没有合适的路线。";return div}var result=[];for(var i=0,route;i");if(roadNameArray.length>4){roadNameArray.splice(2,roadNameArray.length-4,"......");roadNames2=roadNameArray.join(">")}else{roadNames2=roadNames}var r=[];r.push(\'
\');r.push("

\');r.push(" "+roadNames2+"");r.push("

");r.push("

"+title+"

");var d=me.options.data;r.push(\' ");r.push("
");return r};me.view.createOpenitemDiv=function(index,title,data,isDisplay){var route=data.routes[index],steps=route.steps;var r=[];r.push(\'
\');r.push("
"+data.start.name+"
");for(var i=0,step;i \');r.push("
"+step.instruction);r.push(" ")}r.push("
"+data.end.name+"
");r.push("
");return r};me.getSigns=function(action){var signs="";var routeSign={"左转":"left","右转":"right","靠左":"keepleft","靠右":"keepright","向左前方行驶":"leftup","向左后方行驶":"leftdown","向右前方行驶":"rightup","向右后方行驶":"rightdown","左转调头":"leftback","右转调头":"rightback","进入环岛":"enterRing","离开环岛":"leaveRing","减速行驶":"slow","向左前方行走":"leftup","向左后方行走":"leftdown","向右前方行走":"rightup","向右后方行走":"rightdown","通过人行横道":"crosswalk","通过过街天桥":"overpass","通过地下通道":"underpass","通过广场":"squarepass"};signs=routeSign[action];if(!signs){signs="advance"}return signs}};var GetLL=function(){function GetLL(city){_classCallCheck(this,GetLL);this.city=city||"";this.CLASS_NAME="AMap.GetLL"}_createClass(GetLL,[{key:"getCity",value:function getCity(cbk){var url=AMap.getConfig().protocol+"://webapi.amap.com/maps/ipCity";AMap.WebService.get(url,{},function(status,data){if(status==="complete"){cbk(data)}else{cbk({})}})}},{key:"get",value:function get(keywordsList,defaultCity,cbk){var psearch=new PlaceSearch({extensions:"all"});var result=[];var getOne=function getOne(){if(keywordsList.length){var keyAndcity=keywordsList.shift();var keyword=keyAndcity["keyword"];var city=keyAndcity["city"]||defaultCity;if(!city){city=""}psearch["setCity"](city);psearch.search(keyword,function(status,data){if(status==="error"){cbk("error",data)}else if(status==="complete"){if(data["poiList"]&&data["poiList"]["pois"].length){result.push(data["poiList"]["pois"][0]);if(keywordsList.length){getOne()}else{cbk("complete",result)}}else{if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}}else if(status==="no_data"){if(!city){cbk("no_city",keyAndcity)}else{cbk("no_poi",keyAndcity)}}})}};getOne()}}]);return GetLL}();var PlaceSearch=function(_AMap$Event){_inherits(PlaceSearch,_AMap$Event);var _super=_createSuper(PlaceSearch);function PlaceSearch(opt){var _this;_classCallCheck(this,PlaceSearch);_this=_super.call(this);_this.closed=false;_this.opt=AMap.extend({showCover:true,autoFitView:true},opt||{});_this.opt["pageIndex"]=_this.opt["pageIndex"]||1;_this.opt["pageSize"]=typeof _this.opt["pageSize"]!=="number"||_this.opt["pageSize"]<0?10:_this.opt["pageSize"]>50?50:_this.opt["pageSize"];_this.url=AMap.getConfig().server+"/v3/place";return _this}_createClass(PlaceSearch,[{key:"search",value:function search(keyword,cbk){var params={s:"rsv3",children:+(this.opt["children"]?"1":"")};var map={city:"city",rankBy:"sortrule",type:"types",pageIndex:"page",pageSize:"offset",extensions:"extensions",citylimit:"citylimit"};this._mergeParams(this.opt,map,params);this._query(this.url+"/text",params,cbk,{keywords:keyword||""},"KEYWORD",arguments)}},{key:"setCity",value:function setCity(city){AMap.BuryPoint.add(this,"setCity");this.opt["city"]=city}},{key:"_mergeParams",value:function _mergeParams(data,map,params){for(var i in data){if(typeof data[i]!=="undefined"&&typeof map[i]!=="undefined"){params[map[i]]=data[i]}}return params}},{key:"_query",value:function _query(url,params,cbk,encodeURICom,type,args){var _this2=this;url=url+(params.length>0?"?"+params.join("&"):"");AMap.WebService.get(url,AMap.extend({type_:type,antiCrab:true},params,encodeURICom),function(status,data){if(status==="complete"){_this2._onComplete(data,cbk,type,args)}else{_this2._onError(data,cbk)}})}},{key:"_onComplete",value:function _onComplete(data,cbk,type,args){if(this.closed){return}var result;if(!parseInt(data.status,10)){result={info:data["info"]};AMap.Event.trigger(this,"error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{result={info:data["info"],poiList:{}};result["poiList"]={pois:[],count:parseInt(data["count"],10),pageIndex:this.opt["pageIndex"],pageSize:this.opt["pageSize"]};if(data["pois"]){for(var i=0;i0){poiDeepInfo["groupbuys"]=[]}for(var n=0;n0){poiDeepInfo["discounts"]=[]}for(var dis=0;dis0){args[0]=AMap.Util.parseLngLatData(args[0]);args[1]=AMap.Util.parseLngLatData(args[1]);if(args[0].lng&&args[0].lat){this.search_.apply(this,args)}else if(args[0]instanceof Array){var this_=this;var cbk=args[1];if(!this_.getLL){this_.getLL=new GetLL}this_.getLL.getCity(function(data){var city=data["citycode"]||"";this_.getLL.get(args[0],city,function(status,result){if(status==="error"){if(cbk&&typeof cbk==="function"){cbk("error",result)}}else if(status==="complete"){var start=result[0]["exit_location"]||result[0].location;var end=result[result.length-1]["entr_location"]||result[result.length-1].location;var wps=result.slice(1,result.length-1),ps=[];for(var i=0;i0)){result[pro]=filter.call(this,data[i][pro],pro,result)}else{result[pro]=data[i][pro]}}}results.push(result)}return results.length?results:null}},{key:"_isArray",value:function _isArray(array){if(Object.prototype.toString.call(array)==="[object Array]"){return true}return false}},{key:"close",value:function close(){this.closed=true}},{key:"open",value:function open(){this.closed=false}},{key:"_onComplete",value:function _onComplete(data,cbk,poiresult,extraOpts){if(this.closed){return}var result;var that=this;if(!parseInt(data["status"],10)){result={info:data["info"]};this.emit("error",result);if(cbk&&typeof cbk==="function"){cbk("error",data["info"])}}else{if(data["route"]){result={info:data["info"],origin:this._str2LngLat(data["route"]["origin"]),destination:this._str2LngLat(data["route"]["destination"]),routes:this._parseRoutes(data["route"]["paths"])};if(this.opt["extensions"]==="all"){result["taxi_cost"]=Math.ceil(data["route"]["taxi_cost"])}if(poiresult){result["start"]=poiresult[0];result["end"]=poiresult[poiresult.length-1];result["originName"]=result["start"].name;result["destinationName"]=result["end"].name;result["waypoints"]=poiresult.slice(1,poiresult.length-1);for(var i=0,len=result["waypoints"].length;i { - return ( - - - - - - - - ) -}; \ No newline at end of file