diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c7a13d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/* +~$* diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..875653c --- /dev/null +++ b/Readme.md @@ -0,0 +1,11 @@ +## 开票业务 +excle 结算状态过滤 +登录 +总进度 + + + +## 避免锁屏 +打开目录:D:\Cheney\2\geely-kaipiao\ +地址栏删空,输入 cmd,打开黑框。 +输入命令:bun.exe keep-awake.js \ No newline at end of file diff --git a/Readme.txt b/Readme.txt deleted file mode 100644 index e69de29..0000000 diff --git a/duizhang.js b/duizhang.js index 691603d..5ddf5d7 100644 --- a/duizhang.js +++ b/duizhang.js @@ -62,7 +62,13 @@ function readTeamIds() { const teamIds = []; for (const row of rows) { const val = row['团号']; - if (val && /^TEAM-\d+$/.test(String(val).trim())) teamIds.push(String(val).trim()); + const kaipiaoStatus = row['开票状态']; + if (!val || !/^TEAM-\d+$/.test(String(val).trim())) continue; + if (kaipiaoStatus && String(kaipiaoStatus).trim() !== '未开票') { + console.log(` ⚠ ${String(val).trim()} 开票状态: "${kaipiaoStatus}",跳过`); + continue; + } + teamIds.push(String(val).trim()); } return teamIds; } @@ -168,4 +174,4 @@ async function main() { } } -main().catch(err => { console.error('Error:', err); process.exit(1); }); +main().catch(err => { console.error('Error:', err); process.exit(1); }); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..d08f135 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,164 @@ +{ + "name": "geely-kaipiao", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "geely-kaipiao", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "playwright": "^1.61.0", + "xlsx": "^0.18.5" + } + }, + "node_modules/adler-32": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/adler-32/-/adler-32-1.3.1.tgz", + "integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/cfb": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/cfb/-/cfb-1.2.2.tgz", + "integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.3.0", + "crc-32": "~1.2.0" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/codepage": { + "version": "1.15.0", + "resolved": "https://registry.npmmirror.com/codepage/-/codepage-1.15.0.tgz", + "integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/frac": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/frac/-/frac-1.1.2.tgz", + "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/playwright": { + "version": "1.61.0", + "resolved": "https://registry.npmmirror.com/playwright/-/playwright-1.61.0.tgz", + "integrity": "sha512-Z+7BeeqQPRRzklHsVFP4KTGIyMxKUmfeRA4WisM6G3/XW6nwGeX6fX9qYaDa+CiUqpOkb2f6X3nar05R3kSuJQ==", + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.61.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.61.0", + "resolved": "https://registry.npmmirror.com/playwright-core/-/playwright-core-1.61.0.tgz", + "integrity": "sha512-caX7TrY3Ml6egyDX0WUcTHDxodl/b51y5wJOdCEA36QviK/s2g081hvmGs8eaE3DWb6NYZQ6BjO/QkNRPenoPA==", + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/ssf": { + "version": "0.11.2", + "resolved": "https://registry.npmmirror.com/ssf/-/ssf-0.11.2.tgz", + "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==", + "license": "Apache-2.0", + "dependencies": { + "frac": "~1.1.2" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/wmf": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/wmf/-/wmf-1.0.2.tgz", + "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/word": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/word/-/word-0.3.0.tgz", + "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/xlsx": { + "version": "0.18.5", + "resolved": "https://registry.npmmirror.com/xlsx/-/xlsx-0.18.5.tgz", + "integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.3.0", + "cfb": "~1.2.1", + "codepage": "~1.15.0", + "crc-32": "~1.2.1", + "ssf": "~0.11.2", + "wmf": "~1.0.1", + "word": "~0.3.0" + }, + "bin": { + "xlsx": "bin/xlsx.njs" + }, + "engines": { + "node": ">=0.8" + } + } + } +} diff --git a/read_team_ids.js b/read_team_ids.js new file mode 100644 index 0000000..f652bc2 --- /dev/null +++ b/read_team_ids.js @@ -0,0 +1,39 @@ +const XLSX = require('xlsx'); +const path = require('path'); + +// 读取 Excel 文件(项目根目录) +const filePath = path.join(__dirname, '新建 XLSX 工作表.xlsx'); +const workbook = XLSX.readFile(filePath); + +// 目标 sheet +const sheetName = '2026'; +const sheet = workbook.Sheets[sheetName]; + +if (!sheet) { + console.error(`Sheet "${sheetName}" 不存在`); + process.exit(1); +} + +// 将 sheet 转为 JSON 数组(以第一行为表头) +const rows = XLSX.utils.sheet_to_json(sheet, { defval: null }); + +// 查找"团号"列(兼容表头可能的空格差异) +const headerRow = XLSX.utils.sheet_to_json(sheet, { header: 1, defval: null })[0]; +const tuanHaoIndex = headerRow.findIndex(h => h && String(h).trim() === '团号'); + +if (tuanHaoIndex === -1) { + console.error('未找到"团号"列'); + process.exit(1); +} + +// 提取所有 TEAM-xxxx 格式的 ID +const teamIds = []; +for (const row of rows) { + const val = row['团号']; + if (val && /^TEAM-\d+$/.test(String(val).trim())) { + teamIds.push(String(val).trim()); + } +} + +console.log(`找到 ${teamIds.length} 个 TEAM ID:`); +teamIds.forEach(id => console.log(id)); diff --git a/src/login.js b/src/login.js new file mode 100644 index 0000000..77e0167 --- /dev/null +++ b/src/login.js @@ -0,0 +1,65 @@ +const { chromium } = require('playwright'); +const path = require('path'); + +const LOGIN_URL = 'https://superstar.geelytravel.com/new-tmc/login'; +const STATE_PATH = process.env.STATE_PATH || path.resolve(__dirname, 'state.json'); +const USER_AGENT = + process.env.USER_AGENT || + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'; + +async function run() { + // 1. 启动本地 Chrome 浏览器,并添加排除自动化检测的参数 + const browser = await chromium.launch({ + headless: false, + channel: 'chrome', + args: [ + '--disable-blink-features=AutomationControlled', + '--start-maximized', + ], + }); + + // 2. 设置上下文,伪造 User-Agent + const context = await browser.newContext({ + noViewport: true, + userAgent: USER_AGENT, + }); + + const page = await context.newPage(); + + try { + // 3. 访问登录页 + await page.goto(LOGIN_URL); + + // 输入信息:如需自动填写,可通过环境变量 USERNAME / PASSWORD 传入 + if (process.env.USERNAME) { + await page.getByPlaceholder('用户名').fill(process.env.USERNAME); + } + + if (process.env.PASSWORD) { + await page.getByPlaceholder('密码').fill(process.env.PASSWORD); + } + + // 4. 进入暂停状态,此时手动滑动验证码并完成登录 + console.log('请在浏览器中手动完成滑块验证,登录进入系统首页后回到终端按 Enter...'); + await page.pause(); + + // 5. 关键:等待页面跳转完成,确保已进入登录后的状态 + // 如需按业务页面确认登录成功,可打开下面一行并按实际 URL 片段调整。 + // await page.waitForURL('**/report/**', { timeout: 60000 }); + + // 额外等待 3 秒,确保 Cookie 和 LocalStorage 完整写入内存 + await page.waitForTimeout(3000); + + // 6. 保存状态 + await context.storageState({ path: STATE_PATH }); + console.log(`登录状态已保存至:${STATE_PATH}`); + } finally { + await context.close(); + await browser.close(); + } +} + +run().catch((error) => { + console.error(error); + process.exitCode = 1; +}); diff --git a/src/state.json b/src/state.json new file mode 100644 index 0000000..1057f68 --- /dev/null +++ b/src/state.json @@ -0,0 +1,270 @@ +{ + "cookies": [ + { + "name": "acw_tc", + "value": "731dc87617821342220792029e817e963a7658d8444d25a6f999214ed1f32f", + "domain": "superstar.geelytravel.com", + "path": "/", + "expires": 1782136023.564213, + "httpOnly": true, + "secure": false, + "sameSite": "Lax" + }, + { + "name": "_c_WBKFRo", + "value": "1TISgYif8qUdGZCkJy9cxiGzqSHjzS8h6gRX37L3", + "domain": ".geelytravel.com", + "path": "/", + "expires": 1813670273, + "httpOnly": false, + "secure": false, + "sameSite": "Lax" + }, + { + "name": "_nb_ioWEgULi", + "value": "", + "domain": ".geelytravel.com", + "path": "/", + "expires": -1, + "httpOnly": false, + "secure": false, + "sameSite": "Lax" + }, + { + "name": "datav_uuid", + "value": "cfzNTedCDnDXWj2tKn4hBX", + "domain": ".datav.aliyuncs.com", + "path": "/", + "expires": 1816694282.676189, + "httpOnly": true, + "secure": true, + "sameSite": "None", + "partitionKey": "https://geelytravel.com", + "_crHasCrossSiteAncestor": true + }, + { + "name": "datav_uuid.sig", + "value": "eI7R9Re4yV2WvgRbqXvvCU0h-UlTBdFEJTjTodZ4Ji8", + "domain": ".datav.aliyuncs.com", + "path": "/", + "expires": 1816694282.67637, + "httpOnly": true, + "secure": true, + "sameSite": "None", + "partitionKey": "https://geelytravel.com", + "_crHasCrossSiteAncestor": true + }, + { + "name": "cna", + "value": "CSTAIq+mhXgBASQOA5Di9fdm", + "domain": ".mmstat.com", + "path": "/", + "expires": 1816694283.169207, + "httpOnly": false, + "secure": true, + "sameSite": "None", + "partitionKey": "https://geelytravel.com", + "_crHasCrossSiteAncestor": true + }, + { + "name": "cna", + "value": "CSTAIq+mhXgBASQOA5Di9fdm", + "domain": ".aliyuncs.com", + "path": "/", + "expires": 1816694283.113879, + "httpOnly": false, + "secure": true, + "sameSite": "None" + }, + { + "name": "sca", + "value": "7d03e667", + "domain": ".mmstat.com", + "path": "/", + "expires": -1, + "httpOnly": false, + "secure": true, + "sameSite": "None", + "partitionKey": "https://geelytravel.com", + "_crHasCrossSiteAncestor": true + }, + { + "name": "atpsida", + "value": "4f1781b39a52518bc26130c8_1782134281_1", + "domain": ".mmstat.com", + "path": "/", + "expires": -1, + "httpOnly": false, + "secure": true, + "sameSite": "None", + "partitionKey": "https://geelytravel.com", + "_crHasCrossSiteAncestor": true + }, + { + "name": "isg", + "value": "BI2N2C-H21WNXH95CdB7y-UknKkHasE8mWAtVM8SySSTxq14l7rRDNvENlqgHdn0", + "domain": ".aliyuncs.com", + "path": "/", + "expires": 1797686290, + "httpOnly": false, + "secure": true, + "sameSite": "None" + }, + { + "name": "xlly_s", + "value": "1", + "domain": ".aliyuncs.com", + "path": "/", + "expires": 1782393490, + "httpOnly": false, + "secure": true, + "sameSite": "None" + }, + { + "name": "tfstk", + "value": "g04xqJ2AaTXmdu75pEjujSFjipflqgV4a-PBSADDf8e8LRLGgfVsW1e0MnmG3xq-B8w-hE4G0cTtFX4c_sl1PLw_dAac_VttVJcXCn6ZfQgSsRKX5FMjPA34roYintuT1J0OK9bh-SRquV6hKJP5WJ3s1ND1qm6N9UHhK9bhrSPq7V63snGsiahKOVGjhVi5wfGH5VisG71-1fvXfEw_N_HrFAgs5RN5wfDSCVg_C71-_jn66ARjIFEPIPDwVHHp5Fa-MmsuGYTsazhxDvNXjFTTTjnxd5MRnGPqe0NZXPRwWDNbYRlQhK6tQzF7lkwCEnDbvfF3XS_XPq44Gki_RO-_pqetAriJ1E3ryxg-Ny1MYY4-nRaxV6YKj4anAqZl4tmikXe_u-d95JNutrozW9pSQocEPfUNOhHtfguT-ynNfpDKsnCRwh-ZGbJyc6dT8YawLbHhZkxwb05rwvfRTh-ZcXh-K_X6bhoSd", + "domain": ".aliyuncs.com", + "path": "/", + "expires": 1797686292, + "httpOnly": false, + "secure": true, + "sameSite": "None" + } + ], + "origins": [ + { + "origin": "https://superstar.geelytravel.com", + "localStorage": [ + { + "name": "userTmc", + "value": "{\"id\":220,\"userCode\":\"SEQ_USER_TMC_00000183\",\"account\":\"yaxin.feng\",\"workNumber\":\"0317933\",\"phoneNumber\":\"18789582816\",\"accountStatus\":\"1\",\"name\":\"冯雅鑫\",\"landline\":null,\"mailBox\":\"Yaxin.Feng@geely.com\",\"createTime\":\"2023-07-31 13:17:30\",\"createUser\":\"SEQ_USER_TMC_00000098\",\"tcCode\":\"\",\"telephoneCallPermissionFlag\":\"0\",\"onlineCallPermissionFlag\":\"0\",\"firstLogin\":\"0\",\"systemCode\":\"1\"}" + }, + { + "name": "token", + "value": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJKV1QtRC1TRVFfVVNFUl9UTUNfMDAwMDAxODMiLCJ1c2VyX2NvZGUiOiJTRVFfVVNFUl9UTUNfMDAwMDAxODMiLCJyb2xlcyI6WyLnu5PnrpfkuJPlkZgiLCLnu5PnrpfkuJPlkZgiXSwiZXhwIjoxNzg0NzI2MjgwLCJpYXQiOjE3ODIxMzQyODB9.ZwZbhcfFKiPucSpDHgwjA7xHduijih7BO9UFa9ozB_o" + }, + { + "name": "_AMap_AMap.ToolBar", + "value": "{\"version\":\"1773639622895\",\"script\":\"(function(){\\\"use strict\\\";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if(typeof b!==\\\"function\\\"&&b!==null)throw new TypeError(\\\"Class extends value \\\"+String(b)+\\\" is not a constructor or null\\\");extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var _SuppressedError=typeof SuppressedError===\\\"function\\\"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name=\\\"SuppressedError\\\",e.error=error,e.suppressed=suppressed,e};var zoomRange=[2,26];var defultOpts={position:{bottom:\\\"20px\\\",right:\\\"20px\\\"},offset:[15,15]};var ToolBar=function(_super){__extends(ToolBar,_super);function ToolBar(opts){if(opts===void 0){opts=defultOpts}var _this=_super.call(this,opts)||this;_this._className=\\\"toolbar\\\";_this._handleZoomEnd=_this._handleZoomEnd.bind(_this);_this._config=AMap.extend(defultOpts,opts);_this.initContainer();_this._initUI();return _this}ToolBar.prototype.addTo=function(map){_super.prototype.addTo.call(this,map);this._handleZoomEnd();map.on(\\\"zoomend\\\",this._handleZoomEnd)};ToolBar.prototype.remove=function(){if(this.map){this.map.off(\\\"zoomend\\\",this._handleZoomEnd)}_super.prototype.remove.call(this)};ToolBar.prototype.removeFrom=function(map){if(map){map.off(\\\"zoomend\\\",this._handleZoomEnd)}_super.prototype.removeFrom.call(this,map)};ToolBar.prototype._handleZoomEnd=function(){var map=this.map;var zooms=map.getZooms();if(map.getZoom()<=zooms[0]){this._zoomOut.style.color=\\\"#ddd\\\"}else{this._zoomOut.style.color=\\\"#000\\\"}if(map.getZoom()>=zooms[1]){this._zoomIn.style.color=\\\"#ddd\\\"}else{this._zoomIn.style.color=\\\"#000\\\"}};ToolBar.prototype._initUI=function(){var _this=this;this._zoomIn=AMap.DomUtil.create(\\\"span\\\",this._container,\\\"amap-ctrl-zoomin\\\");this._zoomOut=AMap.DomUtil.create(\\\"span\\\",this._container,\\\"amap-ctrl-zoomout\\\");this._zoomIn.innerHTML=\\\"+\\\";this._zoomOut.innerHTML=\\\"-\\\";this._zoomIn.setAttribute(\\\"data-type\\\",\\\"add\\\");this._zoomOut.setAttribute(\\\"data-type\\\",\\\"sub\\\");this._container.addEventListener(\\\"click\\\",function(event){if(event.target instanceof HTMLElement){var type=event.target.getAttribute(\\\"data-type\\\");var z=_this.map.getZoom();if(type===\\\"add\\\"){_this.map.setZoom(Math.min(z+1,zoomRange[1]))}else if(type===\\\"sub\\\"){_this.map.setZoom(Math.max(z-1,2))}}})};return ToolBar}(AMap.Control);AMap[\\\"ToolBar\\\"]=ToolBar})(); \"}" + }, + { + "name": "_AMap_AMap.ControlBar", + "value": "{\"version\":\"1773639622895\",\"script\":\"(function(){\\\"use strict\\\";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){if(typeof b!==\\\"function\\\"&&b!==null)throw new TypeError(\\\"Class extends value \\\"+String(b)+\\\" is not a constructor or null\\\");extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var _SuppressedError=typeof SuppressedError===\\\"function\\\"?SuppressedError:function(error,suppressed,message){var e=new Error(message);return e.name=\\\"SuppressedError\\\",e.error=error,e.suppressed=suppressed,e};var defultOpts={position:{top:\\\"20px\\\",left:\\\"20px\\\"},showControlButton:true};var ControlBar=function(_super){__extends(ControlBar,_super);function ControlBar(opts){if(opts===void 0){opts=defultOpts}var _this=_super.call(this,opts)||this;_this._className=\\\"controlbar\\\";_this._handleViewChange=_this._handleViewChange.bind(_this);_this._config=AMap.extend(defultOpts,opts);_this.initContainer();_this._initUI();return _this}ControlBar.prototype.addTo=function(map){_super.prototype.addTo.call(this,map);map.on(\\\"viewchange\\\",this._handleViewChange);this._handleViewChange()};ControlBar.prototype.remove=function(){if(this.map){this.map.off(\\\"viewchange\\\",this._handleViewChange)}_super.prototype.remove.call(this)};ControlBar.prototype.removeFrom=function(map){if(map){map.off(\\\"viewchange\\\",this._handleViewChange)}_super.prototype.removeFrom.call(this,map)};ControlBar.prototype._handleViewChange=function(){var rotation=this.map.getRotation();var pitch=this.map.getPitch();this._compass.style.transform=\\\"rotateX(\\\"+pitch+\\\"deg) rotateZ(\\\"+rotation+\\\"deg)\\\"};ControlBar.prototype._initUI=function(){var _this=this;this._luopan=AMap.DomUtil.create(\\\"div\\\",this._container,\\\"amap-luopan\\\");this._compass=AMap.DomUtil.create(\\\"div\\\",this._luopan,\\\"amap-compass\\\");this._pointers=AMap.DomUtil.create(\\\"div\\\",this._compass,\\\"amap-pointers\\\");this._pitchUp=AMap.DomUtil.create(\\\"div\\\",this._luopan,\\\"amap-pitchUp\\\");this._pitchDown=AMap.DomUtil.create(\\\"div\\\",this._luopan,\\\"amap-pitchDown\\\");this._rotateLeft=AMap.DomUtil.create(\\\"div\\\",this._luopan,\\\"amap-rotateLeft\\\");this._rotateRight=AMap.DomUtil.create(\\\"div\\\",this._luopan,\\\"amap-rotateRight\\\");this._pitchUp.setAttribute(\\\"data-type\\\",\\\"pitchUp\\\");this._pitchDown.setAttribute(\\\"data-type\\\",\\\"pitchDown\\\");this._rotateLeft.setAttribute(\\\"data-type\\\",\\\"rotateLeft\\\");this._rotateRight.setAttribute(\\\"data-type\\\",\\\"rotateRight\\\");this._pointers.setAttribute(\\\"data-type\\\",\\\"pointers\\\");this._compass.setAttribute(\\\"data-type\\\",\\\"pointers\\\");if(!this._config.showControlButton){this._pitchUp.style.display=\\\"none\\\";this._pitchDown.style.display=\\\"none\\\";this._rotateLeft.style.display=\\\"none\\\";this._rotateRight.style.display=\\\"none\\\";this._luopan.style.background=\\\"rgba(0,0,0,0)\\\";this._compass.className+=\\\" amap-compass-black\\\"}var down=function(event){up();if(event.target instanceof HTMLElement){switch(event.target.getAttribute(\\\"data-type\\\")){case\\\"pitchUp\\\":_this._changePitch(\\\"pitchUp\\\");break;case\\\"pitchDown\\\":_this._changePitch(\\\"pitchDown\\\");break;case\\\"rotateLeft\\\":_this._changeRotation(\\\"rotateLeft\\\");break;case\\\"rotateRight\\\":_this._changeRotation(\\\"rotateRight\\\");break;case\\\"pointers\\\":_this._returnZero();break}}};var up=function(){AMap.Util.cancelAnimFrame(_this._raf)};this._luopan.addEventListener(\\\"mousedown\\\",down);this._luopan.addEventListener(\\\"touchstart\\\",down);this._luopan.addEventListener(\\\"mouseout\\\",up);this._luopan.addEventListener(\\\"mouseup\\\",up);this._luopan.addEventListener(\\\"touchend\\\",up);this._luopan.addEventListener(\\\"touchmove\\\",up)};ControlBar.prototype._changePitch=function(type){var deltaP=1;if(type===\\\"pitchDown\\\"){deltaP=-1}function pitching(){var _this=this;var pitch=this.map.getPitch();this._raf=AMap.Util.requestAnimFrame(function(){_this.map.setPitch(pitch+deltaP,true);pitching.call(_this)})}pitching.call(this)};ControlBar.prototype._changeRotation=function(type){var deltaR=5;if(type===\\\"rotateLeft\\\"){deltaR=-5}function rotating(){var _this=this;var rotation=this.map.getRotation();this._raf=AMap.Util.requestAnimFrame(function(){_this.map.setRotation(rotation+deltaR,true);rotating.call(_this)})}rotating.call(this)};ControlBar.prototype._returnZero=function(){this.map.viewChange({rotation:0,pitch:0})};return ControlBar}(AMap.Control);AMap[\\\"ControlBar\\\"]=ControlBar})(); \"}" + }, + { + "name": "_AMap_AMap.AutoComplete", + "value": "{\"version\":\"1773639622895\",\"script\":\"!function(AMap){\\\"use strict\\\";function _defineProperties(target,props){for(var i=0;iscrollL&&input.bottom>outputPosHeight&&this.output?output.style.top=input.top+scrollT-outputPosHeight-2+\\\"px\\\":output.style.top=input.bottom+scrollT+2+\\\"px\\\",output.style.minWidth=outputPos+2+\\\"px\\\",this}},{key:\\\"parseEmpityArray\\\",value:function(value){return value instanceof Array&&!value.length?\\\"\\\":value}},{key:\\\"_onError\\\",value:function(e,cbk){this.emit(\\\"error\\\",e),cbk&&\\\"function\\\"==typeof cbk&&cbk(\\\"error\\\",e.info)}},{key:\\\"_parseInt\\\",value:function(v){v=parseInt(v,10);return isNaN(v)?0:v}},{key:\\\"_onComplete\\\",value:function(data,cbk){var result;if(parseInt(data.status,10)){var tips=data.tips;if(tips&&0!==tips.length){for(var i=0;i\",w=n&&n.createElement(\"div\"),g=[],x={webkit:void 0,edge:void 0,trident:void 0,gecko:void 0,presto:void 0,chrome:void 0,safari:void 0,firefox:void 0,ie:void 0,ieMode:void 0,opera:void 0,mobile:void 0,core:void 0,shell:void 0,phantomjs:void 0,os:void 0,ipad:void 0,iphone:void 0,ipod:void 0,ios:void 0,android:void 0,nodejs:void 0,extraName:void 0,extraVersion:void 0};if(w&&w.getElementsByTagName&&(w.innerHTML=p.replace(v,\"\"),g=w.getElementsByTagName(\"s\")),g.length>0){for(_(e,x),s=f[0],c=f[1];s<=c;s++)if(w.innerHTML=p.replace(v,s),g.length>0){x[b=\"ie\"]=s;break}!x.ie&&(d=N(e))&&(x[b=\"ie\"]=d)}else((a=e.match(/AppleWebKit\\/*\\s*([\\d.]*)/i))||(a=e.match(/Safari\\/([\\d.]*)/)))&&a[1]?(x[m=\"webkit\"]=y(a[1]),(a=e.match(/OPR\\/(\\d+\\.\\d+)/))&&a[1]?x[b=\"opera\"]=y(a[1]):(a=e.match(/Chrome\\/([\\d.]*)/))&&a[1]?x[b=\"chrome\"]=y(a[1]):(a=e.match(/\\/([\\d.]*) Safari/))&&a[1]?x[b=\"safari\"]=y(a[1]):x.safari=x.webkit,(a=e.match(/Edge\\/([\\d.]*)/))&&a[1]&&(m=b=\"edge\",x[m]=y(a[1])),/ Mobile\\//.test(e)&&e.match(/iPad|iPod|iPhone/)?(x.mobile=\"apple\",a=e.match(/OS ([^\\s]*)/),a&&a[1]&&(x.ios=y(a[1].replace(\"_\",\".\"))),t=\"ios\",a=e.match(/iPad|iPod|iPhone/),a&&a[0]&&(x[a[0].toLowerCase()]=x.ios)):/ Android/i.test(e)?(/Mobile/.test(e)&&(t=x.mobile=\"android\"),a=e.match(/Android ([^\\s]*);/),a&&a[1]&&(x.android=y(a[1]))):(a=e.match(/NokiaN[^\\/]*|Android \\d\\.\\d|webOS\\/\\d\\.\\d/))&&(x.mobile=a[0].toLowerCase()),(a=e.match(/PhantomJS\\/([^\\s]*)/))&&a[1]&&(x.phantomjs=y(a[1]))):(a=e.match(/Presto\\/([\\d.]*)/))&&a[1]?(x[m=\"presto\"]=y(a[1]),(a=e.match(/Opera\\/([\\d.]*)/))&&a[1]&&(x[b=\"opera\"]=y(a[1]),(a=e.match(/Opera\\/.* Version\\/([\\d.]*)/))&&a[1]&&(x[b]=y(a[1])),(a=e.match(/Opera Mini[^;]*/))&&a?x.mobile=a[0].toLowerCase():(a=e.match(/Opera Mobi[^;]*/))&&a&&(x.mobile=a[0]))):(d=N(e))?(x[b=\"ie\"]=d,_(e,x)):(a=e.match(/Gecko/))&&(x[m=\"gecko\"]=.1,(a=e.match(/rv:([\\d.]*)/))&&a[1]&&(x[m]=y(a[1]),/Mobile|Tablet/.test(e)&&(x.mobile=\"firefox\")),(a=e.match(/Firefox\\/([\\d.]*)/))&&a[1]&&(x[b=\"firefox\"]=y(a[1])));t||(t=i());var z,O,T;if(!r(\"type\",\"application/vnd.chromium.remoting-viewer\")){z=\"scoped\"in n.createElement(\"style\"),T=\"v8Locale\"in o;try{O=o.external||void 0}catch(e){}if(a=e.match(/360SE/))u=\"360\";else if((a=e.match(/SE\\s([\\d.]*)/))||O&&\"SEVersion\"in O)u=\"sougou\",h=y(a[1])||.1;else if((a=e.match(/Maxthon(?:\\/)+([\\d.]*)/))&&O){u=\"maxthon\";try{h=y(O.max_version||a[1])}catch(e){h=.1}}else z&&T?u=\"360se\":z||T||!/Gecko\\)\\s+Chrome/.test(k)||x.opera||x.edge||(u=\"360ee\")}(a=e.match(/TencentTraveler\\s([\\d.]*)|QQBrowser\\/([\\d.]*)/))?(u=\"tt\",h=y(a[2])||.1):(a=e.match(/LBBROWSER/))||O&&\"LiebaoGetVersion\"in O?u=\"liebao\":(a=e.match(/TheWorld/))?(u=\"theworld\",h=3):(a=e.match(/TaoBrowser\\/([\\d.]*)/))?(u=\"taobao\",h=y(a[1])||.1):(a=e.match(/UCBrowser\\/([\\d.]*)/))&&(u=\"uc\",h=y(a[1])||.1),x.os=t,x.core=x.core||m,x.shell=b,x.ieMode=x.ie&&n.documentMode||x.ie,x.extraName=u,x.extraVersion=h;var P=o.screen.width,M=o.screen.height;return x.resolution=P+\"x\"+M,x},S=function(e){function i(e){return Object.prototype.toString.call(e)}function o(e,o,n){if(\"[object Function]\"==i(o)&&(o=o(n)),!o)return null;var r={name:e,version:\"\"},t=i(o);if(o===!0)return r;if(\"[object String]\"===t){if(n.indexOf(o)!==-1)return r}else if(o.exec){var a=o.exec(n);if(a)return a.length>=2&&a[1]?r.version=a[1].replace(/_/g,\".\"):r.version=\"\",r}}var n={name:\"other\",version:\"\"};e=(e||\"\").toLowerCase();for(var r=[[\"nokia\",function(e){return e.indexOf(\"nokia \")!==-1?/\\bnokia ([0-9]+)?/:/\\bnokia([a-z0-9]+)?/}],[\"samsung\",function(e){return e.indexOf(\"samsung\")!==-1?/\\bsamsung(?:[ \\-](?:sgh|gt|sm))?-([a-z0-9]+)/:/\\b(?:sgh|sch|gt|sm)-([a-z0-9]+)/}],[\"wp\",function(e){return e.indexOf(\"windows phone \")!==-1||e.indexOf(\"xblwp\")!==-1||e.indexOf(\"zunewp\")!==-1||e.indexOf(\"windows ce\")!==-1}],[\"pc\",\"windows\"],[\"ipad\",\"ipad\"],[\"ipod\",\"ipod\"],[\"iphone\",/\\biphone\\b|\\biph(\\d)/],[\"mac\",\"macintosh\"],[\"mi\",/\\bmi[ \\-]?([a-z0-9 ]+(?= build|\\)))/],[\"hongmi\",/\\bhm[ \\-]?([a-z0-9]+)/],[\"aliyun\",/\\baliyunos\\b(?:[\\-](\\d+))?/],[\"meizu\",function(e){return e.indexOf(\"meizu\")>=0?/\\bmeizu[\\/ ]([a-z0-9]+)\\b/:/\\bm([0-9x]{1,3})\\b/}],[\"nexus\",/\\bnexus ([0-9s.]+)/],[\"huawei\",function(e){var i=/\\bmediapad (.+?)(?= build\\/huaweimediapad\\b)/;return e.indexOf(\"huawei-huawei\")!==-1?/\\bhuawei\\-huawei\\-([a-z0-9\\-]+)/:i.test(e)?i:/\\bhuawei[ _\\-]?([a-z0-9]+)/}],[\"lenovo\",function(e){return e.indexOf(\"lenovo-lenovo\")!==-1?/\\blenovo\\-lenovo[ \\-]([a-z0-9]+)/:/\\blenovo[ \\-]?([a-z0-9]+)/}],[\"zte\",function(e){return/\\bzte\\-[tu]/.test(e)?/\\bzte-[tu][ _\\-]?([a-su-z0-9\\+]+)/:/\\bzte[ _\\-]?([a-su-z0-9\\+]+)/}],[\"vivo\",/\\bvivo(?: ([a-z0-9]+))?/],[\"htc\",function(e){return/\\bhtc[a-z0-9 _\\-]+(?= build\\b)/.test(e)?/\\bhtc[ _\\-]?([a-z0-9 ]+(?= build))/:/\\bhtc[ _\\-]?([a-z0-9 ]+)/}],[\"oppo\",/\\boppo[_]([a-z0-9]+)/],[\"konka\",/\\bkonka[_\\-]([a-z0-9]+)/],[\"sonyericsson\",/\\bmt([a-z0-9]+)/],[\"coolpad\",/\\bcoolpad[_ ]?([a-z0-9]+)/],[\"lg\",/\\blg[\\-]([a-z0-9]+)/],[\"android\",/\\bandroid\\b|\\badr\\b/],[\"blackberry\",function(e){return e.indexOf(\"blackberry\")>=0?/\\bblackberry\\s?(\\d+)/:\"bb10\"}]],t=0;t0?o.ratio:r.jsErrorRecordRatio}),e=[\"Message: \"+o.message,\"Error object: \"+o.error,\"Url: \"+location.href].join(\" - \"),c=goldlog.spm_ab||[],i=location.hostname+location.pathname;t.run({code:110,page:i,msg:\"record_jserror_by\"+s+\"_\"+o.message,spm_a:c[0],spm_b:c[1],c1:e,c2:o.filename,c3:location.protocol+\"//\"+i,c4:goldlog.pvid||\"\",c5:o.logid||\"\"})}catch(o){a.logger({msg:o})}},do_tracker_lostpv:function(o){var t=!1;try{if(o&&o.page){var e=o.spm_ab?o.spm_ab.split(\".\"):[],c=\"record_lostpv_by\"+s+\"_\"+o.msg,i=new n({ratio:o.ratio||r.lostPvRecordRatio});i.run({code:102,page:o.page,msg:c,spm_a:e[0],spm_b:e[1],c1:o.duration,c2:o.page_url}),t=!0}}catch(o){a.logger({msg:o})}return t},do_tracker_obsolete_inter:function(o){var t=!1;try{if(o&&o.page){var e=o.spm_ab?o.spm_ab.split(\".\"):[],c=\"record_obsolete interface be called by\"+s,i=new n({ratio:o.ratio||r.obsoleteInterRecordRatio});i.run({code:109,page:o.page,msg:c,spm_a:e[0],spm_b:e[1],c1:o.interface_name,c2:o.interface_params},1),t=!0}}catch(o){a.logger({msg:o})}return t},do_tracker_browser_support:function(o){var t=!1;try{if(o&&o.page){var e=o.spm_ab?o.spm_ab.split(\".\"):[],c=new n({ratio:o.ratio||r.browserSupportRatio}),i=goldlog._aplus_client||{},l=i.ua_info||{};c.run({code:111,page:o.page,msg:o.msg+\"_by\"+s,spm_a:e[0],spm_b:e[1],c1:[l.o,l.b,l.w].join(\"_\"),c2:o.etag||\"\",c3:o.cna||\"\"}),t=!0}}catch(o){a.logger({msg:o})}return t},do_tracker_common_analysis:function(o){var t=!1;try{if(o&&o.page){var e=o.spm_ab?o.spm_ab.split(\".\"):[],c=new n({ratio:o.ratio||r.browserSupportRatio}),i=goldlog._aplus_client||{},l=i.ua_info||{};c.run({code:113,page:o.page,msg:o.msg+\"_by\"+s,spm_a:e[0],spm_b:e[1],c1:[l.o,l.b,l.w].join(\"_\"),c2:o.init_time||\"\",c3:o.wspv_time||0,c4:o.load_time||0,c5:o.channel_type}),t=!0}}catch(o){a.logger({msg:o})}return t}}}},function(o,t){\"use strict\";t.lostPvRecordRatio=\"0.01\",t.obsoleteInterRecordRatio=\"0.001\",t.jsErrorRecordRatio=\"0.001\",t.browserSupportRatio=\"0.001\",t.goldlogQueueRatio=\"0.01\"},function(o,t){\"use strict\";var e=function(o){var t=o.level||\"warn\";window.console&&window.console[t]&&window.console[t](o.msg)};t.logger=e,t.assign=function(o,t){if(\"function\"!=typeof Object.assign){var e=function(o){if(null===o)throw new TypeError(\"Cannot convert undefined or null to object\");for(var t=Object(o),e=1;e-1}var f=window;e.assign=o,e.makeCacheNum=function(){return Math.floor(268435456*Math.random()).toString(16)},e.each=n(10),e.isStartWith=function(t,e){return 0===t.indexOf(e)},e.isEndWith=function(t,e){var n=t.length,o=e.length;return n>=o&&t.indexOf(e)==n-o},e.any=function(t,e){var n,o=t.length;for(n=0;n-1&&(r=1),a.setTime(a.getTime()+365*r*24*60*60*1e3),e+=\"; expires=\"+a.toUTCString()}e+=\"; path=\"+(n.path?n.path:\"/\"),e+=\"; domain=\"+n.domain,s.cookie=t+\"=\"+e;var i=0;try{var u=navigator.userAgent.match(/Chrome\\/\\d+/);u&&u[0]&&(i=u[0].split(\"/\")[1],i&&(i=parseInt(i)))}catch(t){}return n.SameSite&&i>=80&&(e+=\"; SameSite=\"+n.SameSite,e+=\"; Secure\",s.cookie=t+\"=\"+e),o(t)}function r(t,e,n){try{if(n||(n={}),n.domain)a(t,e,n);else for(var o=l.getDomains(),r=0;r0&&(n=i[0])}return n||(n=r.is_terminal?\"m.gif\":\"v.gif\"),n},run:function(){var t=!!this.options.context.is_single;if(!t){var e=this.getAplusMetaByKey(\"aplus-rhost-v\"),n=this.options.context.where_to_sendpv||{},a=n.url||\"\",r=this.getGifPath(n.urlRule,a),i=o.getPvUrl({metaName:\"aplus-rhost-v\",metaValue:e,gifPath:r,url:o.filterIntUrl(a)});n.url=i,this.options.context.where_to_sendpv=n}}}}},function(t,e,n){\"use strict\";function o(t){t=(t||\"\").split(\"#\")[0].split(\"?\")[0];var e=t.length,n=function(t){var e,n=t.length,o=0;for(e=0;e1&&e===r[0]?r[1]:\"\":r.length>1?r[1]:\"\"}return decodeURIComponent(n)}return\"\"},setLsCna:function(t,e,n){n&&a.set&&a.test()&&a.set(t,e+\"_\"+encodeURIComponent(n))},getUrl:function(t){var e=t||\"//log.mmstat.com/eg.js\";try{var n=goldlog.getMetaInfo(\"aplus-rhost-v\"),o=/[[a-z|0-9\\.]+[a-z|0-9]/,a=n.match(o);a&&a[0]&&(e=e.replace(o,a[0]))}catch(t){}return e}}},function(t,e){\"use strict\";function n(t){return\"string\"==typeof t?t.replace(/^\\s+|\\s+$/g,\"\"):\"\"}e.trim=n},function(t,e){\"use strict\";t.exports={set:function(t,e){try{return localStorage.setItem(t,e),!0}catch(t){return!1}},get:function(t){try{return localStorage.getItem(t)}catch(t){return\"\"}},test:function(){var t=\"grey_test_key\";try{return localStorage.setItem(t,1),localStorage.removeItem(t),!0}catch(t){return!1}},remove:function(t){localStorage.removeItem(t)}}},function(t,e,n){\"use strict\";var o=n(9),a=function(){if(goldlog.aplusDebug){var t=location.protocol;return\"http:\"!==t&&\"https:\"!==t&&(t=\"https:\"),t}return\"https:\"};e.getProtocal=a,e.isStartWithProtocol=function(t){for(var e=[\"javascript:\",\"tel:\",\"sms:\",\"mailto:\",\"tmall://\",\"#\"],n=0,a=e.length;n-1},l=0;l0?n.param2obj(t.substring(0,u)):{};delete p[\"\"],s=n.obj2param(c.assign(p,r))+\"&\"+t.substring(u,t.length)}else s=n.obj2param(r)+\"&\"+o;return s}return a}catch(t){return a}};e.mergeExparams=d},function(t,e,n){\"use strict\";var o=n(32),a=n(3),r=n(11),i=n(30),s=n(19),u=n(33),c=n(34),l=n(25),p=n(4);t.exports=function(){return{init:function(t){this.options=t;var e=this.options.context.etag||{};this.cna=e.cna||r.getCookie(\"cna\"),this.setTag(0),this.setStag(-1),this.setLsTag(\"-1\"),this.setEtag(this.cna||\"\"),this.requesting=!1,this.today=u.getFormatDate()},setLsTag:function(t){this.lstag=t,this.options.context.etag.lstag=t},setTag:function(t){this.tag=t,this.options.context.etag.tag=t},setStag:function(t){this.stag=t,this.options.context.etag.stag=t},setEtag:function(t){t&&(this.etag=t,this.options.context.etag.cna=t,r.getCookie(\"cna\")!==t&&(o.publishCNA(t),r.setCookie(\"cna\",t,{SameSite:\"none\"})))},setLscnaStatus:function(t){this.options.context.etag.lscnastatus=t},run:function(t,e){var n=this;if(n.cna)return void n.setTag(1);var o=null,r=c.getUrl(this.options.context.etag||{});n.requesting=!0;var u=function(){setTimeout(function(){e()},20),clearTimeout(o)};return i.loadScript(r,function(t){var e,o;if(t&&\"error\"===t.type?(n.setStag(-3),a.do_tracker_jserror({message:\"loadError\",error:\"\",filename:\"etag_ls\"})):(e=l.getGoldlogVal(\"Etag\"),o=l.getGoldlogVal(\"stag\"),\"undefined\"!=typeof o&&n.setStag(o)),!n.requesting)return void n.setEtag(e);if(2===o||4===o){var r=s.getLsCna(p.LS_CNA_KEY);r?(n.setLsTag(1),n.setEtag(r)):(n.setLsTag(0),s.setLsCna(p.LS_CNA_KEY,n.today,e),n.setEtag(e))}else n.setEtag(e);u()}),o=setTimeout(function(){n.requesting=!1,n.setStag(-2),e()},1500),2e3}}}},function(t,e){\"use strict\";var n=\"function\",o=function(){var t=window.goldlog||{},e=t.aplus_pubsub||{},o=typeof e.publish===n;return o?e:\"\"},a=function(t){var e=o();e&&typeof e.publish===n&&e.publish.apply(e,t)};e.doPubMsg=a;var r=function(t){var e=o();e&&typeof e.cachePubs===n&&e.cachePubs.apply(e,t)};e.doCachePubs=r,e.doSubMsg=function(t,e){var a=o();a&&typeof a.subscribe===n&&a.subscribe(t,e)},e.doSubOnceMsg=function(t,e){var a=o();a&&typeof a.subscribeOnce===n&&a.subscribeOnce(t,e)},e.publishCNA=function(t){if(t){var e=[\"CNA\",{value:t}];a(e),r(e)}}},function(t,e){\"use strict\";function n(t,e,n){var o=\"\"+Math.abs(t),a=e-o.length,r=t>=0;return(r?n?\"+\":\"\":\"-\")+Math.pow(10,Math.max(0,a)).toString().substr(1)+o}e.getFormatDate=function(t){var e=new Date;try{return[e.getFullYear(),n(e.getMonth()+1,2,0),n(e.getDate(),2,0)].join(t||\"\")}catch(t){return\"\"}}},function(t,e,n){\"use strict\";var o=n(19);e.getUrl=function(t){var e=(new Date).getTime(),n=o.getUrl(t&&t.egUrl?t.egUrl:\"gj.mmstat.com/eg.js\"),a=n.match(/[\\w+\\.]+[a-z|A-Z|0-9]+\\/(eg|ge).js/);return 0!==n.indexOf(\"http\")&&a&&a.length>0&&(n=\"//\"+a[0]),n+\"?t=\"+e}},function(t,e,n){\"use strict\";var o=n(19),a=n(30),r=n(34),i=n(4),s=n(33),u=n(21);t.exports=function(){return{init:function(t){this.options=t,this.today=s.getFormatDate()},run:function(){var t=this;if(u.test()){var e=o.getLsCna(i.LS_CNA_KEY,t.today);e||setTimeout(function(){var e=r.getUrl(t.options.context.etag||{});a.loadScript(e,function(e){e&&\"error\"!==e.type&&o.setLsCna(i.LS_CNA_KEY,t.today,goldlog.Etag)})},1e3)}}}}},function(t,e,n){\"use strict\";e.plugins_pv=[{name:\"etag\",enable:!0,path:n(37)},{name:\"when_to_sendpv\",enable:!0,path:n(38)},{name:\"where_to_sendlog_ut\",enable:!0,path:n(39)},{name:\"is_single\",enable:!0,path:n(41)},{name:\"what_to_pvhash\",enable:!0,path:n(45)},{name:\"what_to_sendpv\",enable:!0,path:n(46)},{name:\"what_to_sendpv_userdata\",enable:!0,path:n(50),deps:[\"what_to_sendpv\"]},{name:\"what_to_sendpv_etag\",enable:!0,path:n(55),deps:[\"etag\",\"what_to_sendpv\"]},{name:\"what_to_sendpv_ut2\",enable:n(56),path:n(57),deps:[\"where_to_sendlog_ut\",\"is_single\"]},{name:\"what_to_sendpv_ut\",enable:!0,path:n(58),deps:[\"where_to_sendlog_ut\",\"is_single\"]},{name:\"what_to_pv_slog\",enable:!0,path:n(59),deps:[\"what_to_sendpv\"]},{name:\"can_to_sendpv\",enable:!0,path:n(60)},{name:\"where_to_sendpv\",enable:!0,path:n(17),deps:[\"is_single\"]},{name:\"do_sendpv\",enable:!0,path:n(61),deps:[\"is_single\",\"what_to_sendpv\",\"where_to_sendpv\"]},{name:\"do_sendpv_ut2\",enable:n(56),path:n(62),deps:[\"what_to_sendpv_ut2\",\"where_to_sendlog_ut\"]},{name:\"do_sendpv_ut\",enable:n(56),path:n(63),deps:[\"what_to_sendpv_ut\",\"where_to_sendlog_ut\"]},{name:\"after_pv\",enable:!0,path:n(64)}]},function(t,e,n){\"use strict\";var o=n(32);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this;o.doSubOnceMsg(\"aplusInitContext\",function(e){e.etag&&(t.options.context.etag=e.etag)})}}}},function(t,e,n){\"use strict\";var o=n(25),a=n(23),r=n(26);t.exports=function(){return{init:function(t){this.options=t},getMetaInfo:function(){var t=o.getGoldlogVal(\"_$\")||{},e=t.meta_info||r.getInfo();return e},getAplusWaiting:function(){var t=this.getMetaInfo()||{};return t[\"aplus-waiting\"]},run:function(t,e){var n=this.options.config||{},o=this.getAplusWaiting();if(o&&n.is_auto)switch(o=this.getAplusWaiting()+\"\",this.options.context.when_to_sendpv={aplusWaiting:o},o){case\"MAN\":return\"done\";case\"1\":return this.options.context.when_to_sendpv.isWait=!0,a.sleep(6e3,function(){e()}),6e3;default:var r=1*o;if(r+\"\"!=\"NaN\")return this.options.context.when_to_sendpv.isWait=!0,a.sleep(r,function(){e()}),r}}}}},function(t,e,n){\"use strict\";var o=n(40);t.exports=function(){return{init:function(t){this.options=t},getAplusToUT:function(t){return{toUT2:o.getAplusToUT(\"toUT2\",t),toUT:o.getAplusToUT(\"toUT\",t)}},run:function(){if(\"Umeng4Aplus\"===goldlog.aplusBridgeName)this.options.context.where_to_sendlog_ut.toUTName=\"toUT2\";else{var t=this.getAplusToUT(this.options.config.recordType);this.options.context.where_to_sendlog_ut.aplusToUT=t}}}}},function(t,e){\"use strict\";var n=navigator.userAgent,o=/WindVane/i.test(n);e.is_WindVane=o;var a=function(){var t=goldlog.getMetaInfo(\"aplus_chnl\");return!(!t||!t.isAvailable||\"function\"!=typeof t.toUT2&&\"function\"!=typeof t.toUT)&&t};e.isAplusChnl=a,e.getAplusToUT=function(t,e){var n={},r=a();if(\"object\"==typeof r)n.bridgeName=r.bridgeName||\"customBridge\",n.bridgeVersion=r.bridgeVersion||r.version||\"\",n.isAvailable=r.isAvailable,n.toUT2=r.toUT2||r.toUT;else{var i=window.WindVane||{};if(o&&i&&i.isAvailable&&\"function\"==typeof i.call){var s=t||\"toUT\",u=goldlog.getMetaInfo(\"aplus-toUT\")+\"\";\"toUT2HC\"===u&&\"PV\"===e&&(s=u),n={bridgeName:\"WindVane\",bridgeVersion:i.version||\"\",isAvailable:!0,toUT2:function(t,e,n,o){return i.call(\"WVTBUserTrack\",s,t,e,n,o)}}}}return n}},function(t,e,n){\"use strict\";var o=n(25),a=n(42),r=n(43),i=n(4);t.exports=function(){return{init:function(t){this.options=t,this._$=o.getGoldlogVal(\"_$\")||{},this.isBoth=\"1\"===this._$.meta_info[\"aplus-both-request\"],this.is_WindVane=this._$.is_WindVane},isSingle_pv:function(t){return t?!this.isBoth:!(!this.is_WindVane||!r.isSingleUaVersion()||this.isBoth)},isSingle_hjlj:function(t,e){return e?!this.isBoth:!(!this.is_WindVane||!r.isSingleSendLog(t)||this.isBoth)},isSingle_uhjlj:function(t,e){return(!t||!/^\\/aplus\\.99\\.(\\d)+$/.test(t.logkey))&&(e?!this.isBoth:!(!(this.is_WindVane&&t&&t.logkey&&r.isSingleUaVersion())||this.isBoth))},run:function(){var t=this.options.context||{},e=this.options.config||{},n=t.where_to_sendlog_ut.aplusToUT||{},o=n.toUT||{},r=n.toUT2||{},s=a.isNative4Aplus(),u=!!(o.isAvailable||r.isAvailable||s),c=t.userdata||{},l=!!t.is_single;switch(e.recordType){case i.recordTypes.uhjlj:l=this.isSingle_uhjlj(c,s);break;case i.recordTypes.hjlj:l=this.isSingle_hjlj(c,s);break;case i.recordTypes.pv:l=this.isSingle_pv(s);break;default:l=this.isSingle_pv(s)}this.options.context.is_single=u&&l,this.options.context.ut_is_available=u}}}},function(t,e){\"use strict\";var n=\"UT4Aplus\",o=\"Umeng4Aplus\";e.isNative4Aplus=function(){var t=goldlog.getMetaInfo(\"aplus-toUT\"),e=goldlog.aplusBridgeName;return e===n&&t===n||e===o},e.haveNativeFlagInUA=function(){var t=goldlog.aplusBridgeName;if(!t&&\"boolean\"!=typeof t){var e=new RegExp([n,o].join(\"|\"),\"i\"),a=navigator.userAgent.match(e);t=!!a&&a[0],goldlog.aplusBridgeName=t}return!!t}},function(t,e,n){\"use strict\";var o=n(44),a=n(42),r=function(t){var e=t.logkey.toLowerCase();0===e.indexOf(\"/\")&&(e=e.substr(1));var n=t.gmkey?t.gmkey.toUpperCase():\"OTHER\";switch(n){case\"EXP\":return\"2201\";case\"CLK\":return\"2101\";case\"SLD\":return\"19999\";case\"OTHER\":default:return\"19999\"}},i=/\\sA2U\\/x/.test(window.navigator.userAgent),s=function(){var t=window.navigator.userAgent,e=!1,n=/AliApp\\((DM|DY|DingTalk|CN|LA)\\/(\\d+[._]\\d+[._]\\d+)/i,r=n.test(t);return e=r,i||a.haveNativeFlagInUA()||e||o.webviewIsAbove({version_ios_tb:[5,11,7],version_ios_tm:[5,24,1],version_android_tb:[5,11,7],version_android_tm:[5,24,1]})};e.isSingleUaVersion=s,e.isSingleSendLog=function(t){return(!t||!/^\\/fsp\\.1\\.1$/.test(t.logkey))&&!!(t&&t.logkey&&s())},e.getFunctypeValue=function(t){return e.isSingleSendLog(t)?r(t):\"2101\"},e.getFunctypeValue2=function(t){return r(t)}},function(t,e){\"use strict\";var n=function(t){var e=[0,0,0];try{if(t){var n=t[1],o=n.split(\".\");if(o.length>2)for(var a=0;ae[0],a=t[1]>e[1],r=t[2]>e[2],i=t[0]===e[0],s=t[1]===e[1],u=t[2]===e[2];n=!!o||(!(!i||!a)||(!!(i&&s&&r)||!!(i&&s&&u)))}catch(t){n=!1}finally{return n}};e.isAboveVersion=o,e.webviewIsAbove=function(t,e){var a=!1;try{e||(e=navigator.userAgent);var r=e.match(/AliApp\\(TB\\/(\\d+[._]\\d+[._]\\d+)/i),i=n(r),s=e.match(/AliApp\\(TM\\/(\\d+[._]\\d+[._]\\d+)/i),u=n(s),c=/iPhone|iPad|iPod|ios/i.test(e),l=/android/i.test(e);c?r&&i?a=o(i,t.version_ios_tb):s&&u&&(a=o(u,t.version_ios_tm)):l&&(r&&i?a=o(i,t.version_android_tb):s&&u&&(a=o(u,t.version_android_tm)))}catch(t){a=!1}return a},e.webviewIsEqual=function(t,e){var n=!1;try{e||(e=navigator.userAgent);var o=e.match(/AliApp\\(CN\\/(\\d+[._]\\d+[._]\\d+)/i),a=o?o[1]:\"0.0.0\",r=e.match(/AliApp\\(DingTalk\\/(\\d+[._]\\d+[._]\\d+)/i),i=r?r[1]:\"0.0.0\",s=/iPhone|iPad|iPod|ios/i.test(e),u=/android/i.test(e);s?o&&a?n=t.version_ios_cn===a:r&&i&&(n=t.version_ios_dd===i):u&&(o&&a?n=t.version_android_cn===a:r&&i&&(n=t.version_android_dd===i))}catch(t){n=!1}return n},e.webviewIsBelow=function(t,e){var a=!1;try{e||(e=navigator.userAgent);var r=e.match(/AliApp\\(CN\\/(\\d+[._]\\d+[._]\\d+)/i),i=n(r),s=/iPhone|iPad|iPod|ios/i.test(e),u=/android/i.test(e);s?r&&i&&(a=!o(i,t.version_ios_cn)):u&&r&&i&&(a=!o(i,t.version_android_cn))}catch(t){a=!1}return a}},function(t,e,n){\"use strict\";var o=n(25);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this.options.context.what_to_pvhash||{},e=o.getGoldlogVal(\"_$\")||{},n=e.meta_info||{},a=n[\"aplus-pvhash\"]||\"\",r=[];\"1\"===a&&(r=[\"_aqx_uri\",encodeURIComponent(location.href)]),t.hash=r,this.options.context.what_to_pvhash=t}}}},function(t,e,n){\"use strict\";var o=n(18),a=n(9),r=n(30),i=n(25),s=n(27),u=n(11),c=n(47),l=n(48),p=n(49);t.exports=function(){return a.assign(p,{init:function(t){this.options=t,this.cookie_data||(this.cookie_data=u.getData()),this.client_info||(this.client_info=i.getClientInfo()||{});\nvar e=location.hash;e&&0===e.indexOf(\"#\")&&(e=e.substr(1)),this.loc_hash=e},getExParams:function(){var t=window,e=document,n=[],u=parent!==t.self,l=e.getElementById(\"beacon-aplus\")||e.getElementById(\"tb-beacon-aplus\"),p=s.tryToGetAttribute(l,\"exparams\"),g=r.mergeExparams(p,r.getExParamsFromMeta(),o)||\"\";g=g.replace(/&/g,\"&\");var f,d,_=[\"taobao.com\",\"tmall.com\",\"etao.com\",\"hitao.com\",\"taohua.com\",\"juhuasuan.com\",\"alimama.com\"],h=i.getGoldlogVal(\"_$\")||{},m=h.meta_info||{};if(u&&!m[\"aplus-ifr-pv\"]){for(d=_.length,f=0;f=0&&t.splice(r,1)}function r(t,e,n,o){var a,r,i=t.length,s=-1,u=\"function\"==typeof n;for(a=0;a-1?t.splice(s,0,[e,n]):t.push([e,n]))}t.exports={updateSPMCnt:n,updateSPMUrl:o,updateKey:r,removeKey:a}},function(t,e,n){\"use strict\";function o(t,e){var n,o=2146271213;for(n=0;n2&&(g[1]=l,e.spm_cnt=g.join(\".\"))}}var f=function(t){if(\"object\"==typeof t)for(var e in t)\"object\"!=typeof t[e]&&\"function\"!=typeof t[e]&&c.push([e,t[e]])};f(goldlog.getMetaInfo(\"aplus-cpvdata\")),f(r);var d=i.getCookie(\"workno\")||i.getCookie(\"emplId\");d&&c.push([\"workno\",d]);var _=i.getHng();_&&c.push([\"_hng\",i.getHng()]);var h=this.getPageInfo();return h&&(c.push([\"_pw\",h.width]),c.push([\"_ph\",h.height])),c},processLodashDollar:function(){var t=this.options.config||{},e=a.getGoldlogVal(\"_$\")||{};t&&t.referrer&&(e.page_referrer=t.referrer),a.setGoldlogVal(\"_$\",e)},updatePre:function(t){var e=a.getGoldlogVal(\"_$\")||{};return e.page_referrer&&r.updateKey(t,\"pre\",e.page_referrer),t},run:function(){var t=this.options.context.what_to_sendpv.pvdata,e=this.getUserdata();this.processLodashDollar();var n=t,o=this.options.context.what_to_pvhash.hash;o&&o.length>0&&n.push(o),n=n.concat(e),n=this.updatePre(n);var a=this.getPageId();a&&r.updateSPMCnt(n,a),this.options.context.what_to_sendpv.pvdata=n,this.options.context.userdata=e}}}},function(t,e,n){\"use strict\";function o(){if(!s.data.a||!s.data.b){var t=r._SPM_a,e=r._SPM_b;if(t&&e)return t=t.replace(/^{(\\w+\\/)}$/g,\"$1\"),e=e.replace(/^{(\\w+\\/)}$/g,\"$1\"),s.is_wh_in_page=!0,void c.setAB(t,e);var n=goldlog._$.meta_info;t=n[\"data-spm\"]||n[\"spm-id\"]||\"0\";var o=t.split(\".\");o.length>1&&(t=o[0],e=o[1]),c.setA(t),e&&c.setB(e);var a=i.getElementsByTagName(\"body\");a=a&&a.length?a[0]:null,a&&(e=l.tryToGetAttribute(a,\"data-spm\"),e?c.setB(e):1===o.length&&c.setAB(\"0\",\"0\"))}}function a(){var t=s.data.a,e=s.data.b;t&&e&&(goldlog.spm_ab=[t,e])}var r=window,i=document,s={},u={};s.data=u;var c={},l=n(27),p=n(52),g=location.href,f=n(53).getRefer(),d=n(4);c.setA=function(t){s.data.a=t,a()},c.setB=function(t){s.data.b=t,a()},c.setAB=function(t,e){s.data.a=t,s.data.b=e,a()};var _=p.getSPMFromUrl,h=function(){var t=d.utilPvid.makePVId();return d.mustSpmE?t||goldlog.pvid||\"\":t||\"\"},m=function(t,e){var n=t.goldlog||window.goldlog||{},a=n.meta_info||{};s.meta_protocol=a.spm_protocol;var r,i=n.spm_ab||[],u=i[0]||\"0\",c=i[1]||\"0\";\"0\"===u&&\"0\"===c&&(o(),u=s.data.a||\"0\",c=s.data.b||\"0\"),r=[s.data.a,s.data.b].join(\".\"),s.spm_cnt=(r||\"0.0\")+\".0.0\";var l=t.send_pv_count>0?h():n.pvid;l&&(s.spm_cnt+=\".\"+l),n._$.spm=s,\"function\"==typeof e&&e(l)};c.spaInit=function(t,e,n,o){var a=\"function\"==typeof o?o:function(){},r=s.spm_url,i=window.g_SPM||{},u=t._$||{},c=u.send_pv_count;m({goldlog:t,meta_info:e,send_pv_count:c},function(t){s.spm_cnt=s.data.a+\".\"+s.data.b+\".0.0\"+(t?\".\"+t:\"\");var o=e[\"aplus-spm-fixed\"];if(\"1\"!==o){s.spm_pre=_(f),s.origin_spm_pre=s.spm_pre,s.spm_url=_(location.href),s.origin_spm_url=s.spm_url;var u=i._current_spm||{};u&&u.a&&\"0\"!==u.a&&u.b&&\"0\"!==u.b?(s.spm_url=[u.a,u.b,u.c,u.d,u.e].join(\".\"),s.spm_pre=r):c>0&&n&&\"0\"!==n[0]&&\"0\"!==n[1]&&(s.spm_url=n.concat([\"0\",\"0\"]).join(\".\"),s.spm_pre=r),i._current_spm={}}a()})},c.init=function(t,e,n){s.spm_url=_(g),s.spm_pre=_(f),m({goldlog:t,meta_info:e},function(){\"function\"==typeof n&&n()})},c.resetSpmCntPvid=function(){var t=goldlog.spm_ab;if(t&&2===t.length){var e=t.join(\".\")+\".0.0\",n=h();n&&(e=e+\".\"+n),s.spm_cnt=e,s.spm_url=e,goldlog._$.spm=s}},t.exports=c},function(t,e){\"use strict\";function n(t,e){if(!t||!e)return\"\";var n,o=\"\";try{var a=new RegExp(\"[?|&]+\"+t+\"=([^&|#|?|/]+)\");if(\"spm\"===t||\"scm\"===t){var r=new RegExp(\"\\\\?.*\"+t+\"=([\\\\w\\\\.\\\\-\\\\*/]+)\"),i=e.match(a),s=e.match(r),u=i&&2===i.length?i[1]:\"\",c=s&&2===s.length?s[1]:\"\";o=u>c?u:c,o=decodeURIComponent(o)}else n=e.match(a),o=n&&2===n.length?n[1]:\"\"}catch(t){}finally{return o}}e.getParamFromUrl=n,e.getSPMFromUrl=function(t){return n(\"spm\",t)}},function(t,e,n){\"use strict\";var o=n(54).nameStorage,a=n(5);e.getRefer=function(){var t=a.KEY||{},e=t.NAME_STORAGE||{};return document.referrer||o.getItem(e.REFERRER)||\"\"}},function(t,e){\"use strict\";var n=function(){function t(){var t,e=[],r=!0;for(var l in p)p.hasOwnProperty(l)&&(r=!1,t=p[l]||\"\",e.push(c(l)+s+c(t)));n.name=r?o:a+c(o)+i+e.join(u)}function e(t,e,n){t&&(t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent(\"on\"+e,function(e){n.call(t,e)}))}var n=window;if(n.nameStorage)return n.nameStorage;var o,a=\"nameStorage:\",r=/^([^=]+)(?:=(.*))?$/,i=\"?\",s=\"=\",u=\"&\",c=encodeURIComponent,l=decodeURIComponent,p={},g={};return function(t){if(t&&0===t.indexOf(a)){var e=t.split(/[:?]/);e.shift(),o=l(e.shift())||\"\";for(var n,i,s,c=e.join(\"\"),g=c.split(u),f=0,d=g.length;f0&&(this.options.context.what_to_sendpv.pvdata=t.concat(n))},run:function(){this.updateBasicParams(),this.addTagParams()}}}},function(t,e,n){\"use strict\";var o=n(44),a=n(40),r=n(42),i=/\\sA2U\\/x/.test(window.navigator.userAgent),s=function(t){t||(t=window.navigator.userAgent);var e=goldlog.getMetaInfo(\"aplus-toUT\")+\"\",n=a.isAplusChnl(),s=/AliApp\\((DM|DY|DingTalk|CN|LA)\\/(\\d+[._]\\d+[._]\\d+)/i,u=s.test(t),c=o.webviewIsAbove({version_ios_tb:[6,6,0],version_ios_tm:[5,28,0],version_android_tb:[6,6,2],version_android_tm:[5,32,0]},t);return c||(c=r.haveNativeFlagInUA()||i||\"2\"===e||\"toUT2HC\"===e||u),n&&\"AliBCBridge\"!==n.bridgeName&&(c=!!n.toUT2),c};e.isToUT2=s,e.isEnable=function(t,e){var n=s(e),o=!0;switch(t){case\"what_to_hjlj_ut2\":case\"do_sendhjlj_ut2\":case\"what_to_sendpv_ut2\":case\"do_sendpv_ut2\":o=!!n;break;case\"what_to_hjlj_ut\":case\"do_sendhjlj_ut\":case\"what_to_sendpv_ut\":case\"do_sendpv_ut\":o=!n}return o}},function(t,e,n){\"use strict\";function o(t){var e,n,o,a,r=[],s={};for(e=t.length-1;e>=0;e--)n=t[e],o=n[0],o&&o.indexOf(i.s_plain_obj)==-1&&s.hasOwnProperty(o)||(a=n[1],(\"aplus\"==o||a)&&(r.unshift([o,a]),s[o]=1));return r}function a(t){var e,n,o,a,r=[],u={logtype:!0,cache:!0,scr:!0,\"spm-cnt\":!0};for(e=t.length-1;e>=0;e--)if(n=t[e],o=n[0],a=n[1],!(s.isStartWith(o,i.s_plain_obj)&&!s.isStartWith(o,i.mkPlainKeyForExparams())||u[o]))if(s.isStartWith(o,i.mkPlainKeyForExparams())){var c=i.param2arr(a);if(\"object\"==typeof c&&c.length>0)for(var l=c.length-1;l>=0;l--){var p=c[l];p&&p[1]&&r.unshift([p[0],p[1]])}}else r.unshift([o,a]);return r}function r(){var t={isonepage:\"-1\",urlpagename:\"\"},e=g.qGet();if(e&&e.hasOwnProperty(\"isonepage_data\"))t.isonepage=e.isonepage_data.isonepage,t.urlpagename=e.isonepage_data.urlpagename;else{var n=c.getMetaCnt(\"isonepage\")||\"-1\",o=n.split(\"|\");t.isonepage=o[0],t.urlpagename=o[1]?o[1]:\"\"}return t}var i=n(18),s=n(9),u=n(25),c=n(28),l=n(52),p=n(42),g=n(26),f=n(4),d=n(11);t.exports=function(){return{init:function(t){this.options=t},keyIsAvailable:function(t){var e=[\"functype\",\"funcId\",\"spm-cnt\",\"spm-url\",\"spm-pre\",\"_ish5\",\"_is_g2u\",\"_h5url\",\"cna\",\"isonepage\",\"lver\",\"jsver\"];return i.indexof(e,t)===-1},valIsAvailable:function(t){return\"object\"!=typeof t&&\"function\"!=typeof t},upUtData:function(t,e){var n=this;if(t=t?t:{},e&&\"object\"==typeof e)for(var o in e){var a=e[o];o&&n.valIsAvailable(a)&&n.keyIsAvailable(o)&&(t[o]=a)}return t},getToUtData:function(t){var e=u.getGoldlogVal(\"_$\")||{},n=e.spm||{},s=this.options.context||{},c=!!s.is_single,p=s.what_to_sendpv||{},g=a(o(p.exparams||[]));g=i.arr2obj(g);var _=i.arr2obj(p.pvdata),h=a(o(s.userdata||[]));h=i.arr2obj(h);var m=location.href,v={},b=l.getParamFromUrl(\"scm\",m)||\"\";b&&(v.scm=b);var y=l.getParamFromUrl(\"pg1stepk\",m)||\"\";y&&(v.pg1stepk=y);var w=l.getParamFromUrl(\"point\",m)||\"\";w&&(v.issb=1),_&&_.mansndlog&&(v.mansndlog=_.mansndlog),v=this.upUtData(v,g),v=this.upUtData(v,h);var x=r();v.functype=\"page\",v.funcId=\"2001\",v.url=goldlog.getMetaInfo(\"aplus-pagename\")||location.origin+location.pathname,v._ish5=\"1\",v._h5url=m,v._toUT=2,v._bridgeName=t.bridgeName||\"\",v._bridgeVersion=t.bridgeVersion||\"\",v[\"spm-cnt\"]=n.spm_cnt||\"\",v[\"spm-url\"]=n.spm_url||\"\",v[\"spm-pre\"]=n.spm_pre||\"\",v.cna=d.getCookie(\"cna\"),v.lver=goldlog.lver||f.lver,v.jsver=f.script_name,v.pver=goldlog.aplus_cplugin_ver,v.isonepage=x.isonepage;var T=goldlog.getMetaInfo(\"aplus-utparam\");return T&&(v[\"utparam-cnt\"]=JSON.stringify(T)),v._is_g2u_=c?1:2,v},run:function(){var t=this.options.context||{},e=t.what_to_sendpv_ut2||{},n=t.where_to_sendlog_ut||{},o=n.aplusToUT||{},a=o.toUT2||{};(a&&a.isAvailable&&\"function\"==typeof a.toUT2||p.haveNativeFlagInUA())&&(e.pvdataToUt=this.getToUtData(a),this.options.context.what_to_sendpv_ut2=e)}}}},function(t,e,n){\"use strict\";function o(t){var e,n,o,a,i=[],s={};for(e=t.length-1;e>=0;e--)n=t[e],o=n[0],o&&o.indexOf(r.s_plain_obj)==-1&&s.hasOwnProperty(o)||(a=n[1],(\"aplus\"==o||a)&&(i.unshift([o,a]),s[o]=1));return i}function a(t){var e,n,o,a,s=[],u={logtype:!0,cache:!0,scr:!0,\"spm-cnt\":!0};for(e=t.length-1;e>=0;e--)if(n=t[e],o=n[0],a=n[1],!(i.isStartWith(o,r.s_plain_obj)&&!i.isStartWith(o,r.mkPlainKeyForExparams())||u[o]))if(i.isStartWith(o,r.mkPlainKeyForExparams())){var c=r.param2arr(a);if(\"object\"==typeof c&&c.length>0)for(var l=c.length-1;l>=0;l--){var p=c[l];p&&p[1]&&s.unshift([p[0],p[1]])}}else s.unshift([o,a]);return s}var r=n(18),i=n(9),s=n(25),u=n(28),c=n(42),l=n(26),p=n(4),g=n(11);t.exports=function(){return{init:function(t){this.options=t},getToUtData:function(t,e){var n,i=s.getGoldlogVal(\"_$\")||{},c=i.spm||{},f=a(o(t)),d={};try{var _=r.arr2obj(f);_._toUT=1,_._bridgeName=e.bridgeName||\"\",_._bridgeVersion=e.bridgeVersion||\"\",n=JSON.stringify(_)}catch(t){n='{\"_toUT\":1}'}var h=u.getOnePageInfo(l);d.functype=\"2001\",d.urlpagename=h.urlpagename,d.url=location.href,d.spmcnt=c.spm_cnt||\"\",d.spmurl=c.spm_url||\"\",d.spmpre=c.spm_pre||\"\",d.lzsid=\"\",d.cna=g.getCookie(\"cna\"),d.extendargs=n,d.isonepage=h.isonepage;var m=this.options.context||{},v=!!m.is_single;return d._is_g2u_=v?1:2,d.version=p.toUtVersion,d.lver=goldlog.lver||p.lver,d.jsver=p.script_name,d},run:function(){var t=this.options.context||{},e=t.what_to_sendpv||{},n=e.pvdata||[],o=t.what_to_sendpv_ut||{},a=t.where_to_sendlog_ut||{},r=a.aplusToUT||{},i=r.toUT||{};(i&&i.isAvailable&&\"function\"==typeof i.toUT2||c.haveNativeFlagInUA())&&(o.pvdataToUt=this.getToUtData(n,i),this.options.context.what_to_sendpv_ut=o)}}}},function(t,e){\"use strict\";t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this.options.context||{},e=t.is_single?\"1\":\"0\";if(t.what_to_sendpv_ut2.pvdataToUt._slog=e,t.what_to_sendpv_ut.pvdataToUt._slog=e,t.what_to_sendpv.pvdata.push([\"_slog\",e]),t.ut_is_available){var n=t.is_single?\"1\":\"2\";t.what_to_sendpv.pvdata.push([\"_is_g2u\",n])}}}}},function(t,e,n){\"use strict\";var o=n(25);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=o.getGoldlogVal(\"_$\")||{},e=this.options.context.can_to_sendpv||{},n=t.send_pv_count||0,a=this.options.config||{};return a.is_auto&&n>0?\"done\":(e.flag=\"YES\",this.options.context.can_to_sendpv=e,t.send_pv_count=++n,void o.setGoldlogVal(\"_$\",t))}}}},function(t,e,n){\"use strict\";var o=n(25),a=n(18);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this.options.context||{},e=this.options.config||{},n=!!t.is_single;if(!n){var r=t.what_to_sendpv||{},i=t.where_to_sendpv||{},s=r.pvdata||[],u=goldlog.getMetaInfo(\"aplus-channel\");if(\"WS-ONLY\"!==u){var c=location.hostname+location.pathname,l=\"www.taobao.com/\"===c||\"www.aliyun.com/\"===c,p=\"POST\"===e.method||l,g=goldlog.send(i.url,p?a.arr2param(s):a.arr2obj(s),p?\"POST\":\"\");o.setGoldlogVal(\"req\",g)}}}}}},function(t,e,n){\"use strict\";var o=n(42);t.exports=function(){return{init:function(t){this.options=t},run:function(t,e){var n=this,a=this.options.context||{},r=a.what_to_sendpv_ut2||{},i=a.where_to_sendlog_ut||{},s=r.pvdataToUt||{},u=i.aplusToUT||{},c=u.toUT2;if(o.isNative4Aplus())return u.toutflag=\"toUT2\",i.toUTName=\"toUT2\",void(n.options.context.what_to_sendpv_ut2.isSuccess=!0);if(c&&\"function\"==typeof c.toUT2&&c.isAvailable)try{u.toutflag=\"toUT2\",c.toUT2(s,function(){n.options.context.what_to_sendpv_ut2.isSuccess=!0,e(\"done\")},function(t){n.options.context.what_to_sendpv_ut2.errorMsg=t,e()},2e3)}catch(t){e()}finally{return\"pause\"}}}}},function(t,e,n){\"use strict\";var o=n(42);t.exports=function(){return{init:function(t){this.options=t},run:function(t,e){var n=this,a=this.options.context||{},r=a.what_to_sendpv_ut||{},i=a.where_to_sendlog_ut||{},s=r.pvdataToUt||{},u=i.aplusToUT||{},c=u.toUT;if(o.isNative4Aplus())return u.toutflag=\"toUT\",i.toUTName=\"toUT\",void(n.options.context.what_to_sendpv_ut.isSuccess=!0);if(c&&\"function\"==typeof c.toUT2&&c.isAvailable)try{u.toutflag=\"toUT\",c.toUT2(s,function(){n.options.context.what_to_sendpv_ut.isSuccess=!0,e()},function(t){n.options.context.what_to_sendpv_ut.errorMsg=t,e()},2e3)}catch(t){e()}finally{return\"pause\"}}}}},function(t,e,n){\"use strict\";var o=n(32),a=n(25);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=goldlog._$||{},e=this.options.context||{};a.setGoldlogVal(\"pv_context\",e);var n=goldlog.spm_ab||[],r=n.join(\".\"),i=t.send_pv_count,s={cna:e.etag.cna,count:i,spmab_pre:goldlog.spmab_pre};o.doPubMsg([\"sendPV\",\"complete\",r,s]),o.doCachePubs([\"sendPV\",\"complete\",r,s])}}}},function(t,e){\"use strict\";e.plugins_prepv=[]},function(t,e,n){\"use strict\";function o(){var t=i.getGoldlogVal(\"_$\")||{},e=\"//gm.mmstat.com/\";return t.is_terminal&&(e=\"//wgo.mmstat.com/\"),{where_to_hjlj:{url:e,ac_atpanel:\"//ac.mmstat.com/\",tblogUrl:\"//log.mmstat.com/\"}}}function a(){return r.assign(new s,new o)}var r=n(9),i=n(25),s=n(67);t.exports=a},function(t,e,n){\"use strict\";function o(){return{compose:{},basic_params:{cna:a.getCookie(\"cna\")},where_to_hjlj:{url:\"//gm.mmstat.com/\",ac_atpanel:\"//ac.mmstat.com/\",tblogUrl:\"//log.mmstat.com/\"},userdata:{},what_to_hjlj:{logdata:{}},what_to_pvhash:{hash:[]},what_to_hjlj_exinfo:{EXPARAMS_FLAG:\"EXPARAMS\",exinfo:[],exparams_key_names:[\"uidaplus\",\"pc_i\",\"pu_i\"]},what_to_hjlj_ut:{logdataToUT:{}},what_to_hjlj_ut2:{isSuccess:!1,logdataToUT:{}},where_to_sendlog_ut:{aplusToUT:{},toUTName:\"toUT\"},network:{connType:\"UNKNOWN\"},is_single:!1}}var a=n(11);t.exports=o},function(t,e,n){\"use strict\";e.plugins_hjlj=[{name:\"etag\",enable:!0,path:n(37)},{name:\"where_to_sendlog_ut\",enable:!0,path:n(39)},{name:\"is_single\",enable:!0,path:n(41)},{name:\"what_to_hjlj_exinfo\",enable:!0,path:n(69)},{name:\"what_to_pvhash\",enable:!0,path:n(45)},{name:\"what_to_hjlj\",enable:!0,path:n(70),deps:[\"what_to_hjlj_exinfo\",\"what_to_pvhash\"]},{name:\"what_to_hjlj_ut2\",enable:n(56),path:n(71),deps:[\"is_single\",\"what_to_hjlj_exinfo\"]},{name:\"what_to_hjlj_ut\",enable:n(56),path:n(72),deps:[\"is_single\",\"what_to_hjlj_exinfo\"]},{name:\"what_to_hjlj_slog\",enable:!0,path:n(73),deps:[\"what_to_hjlj\"]},{name:\"where_to_hjlj\",enable:!0,path:n(74),deps:[\"is_single\",\"what_to_hjlj\"]},{name:\"do_sendhjlj\",enable:!0,path:n(75),deps:[\"is_single\",\"what_to_hjlj\",\"where_to_hjlj\"]},{name:\"do_sendhjlj_ut2\",enable:n(56),path:n(76),deps:[\"what_to_hjlj\",\"what_to_hjlj_ut2\",\"where_to_sendlog_ut\"]},{name:\"do_sendhjlj_ut\",path:n(77),deps:[\"what_to_hjlj\",\"what_to_hjlj_ut\",\"where_to_sendlog_ut\"]}]},function(t,e,n){\"use strict\";var o=n(18),a=n(30),r=n(25),i=n(25),s=n(12),u=n(11);t.exports=function(){return{init:function(t){this.options=t},getCookieUserInfo:function(){var t=[],e=u.getCookie(\"workno\")||u.getCookie(\"emplId\");e&&t.push(\"workno=\"+e);var n=u.getHng();return n&&t.push(\"_hng=\"+u.getHng()),t},filterExinfo:function(t){var e=\"\";try{t&&(\"string\"==typeof t?e=t.replace(/&/g,\"&\").replace(/\\buser(i|I)d=/,\"uidaplus=\").replace(/&aplus&/,\"&\"):\"object\"==typeof t&&(e=o.obj2param(t,!0)))}catch(t){e=t.message?t.message:\"\"}return e},getExparamsFlag:function(){var t=this.options.context||{},e=t.what_to_hjlj_exinfo||{};return e.EXPARAMS_FLAG||\"EXPARAMS\"},getCustomExParams:function(t){var e=\"\";return t!==this.getExparamsFlag()&&(e=this.filterExinfo(t)||\"\"),e?e.split(\"&\"):[]},getBeaconExparams:function(t,e){var n=[],r=a.getExParams(o)||\"\";r=r.replace(/&aplus&/,\"&\");for(var i=o.param2arr(r)||[],u=function(e){return s.indexof(t,e)>-1},c=0;c0&&(t=t.concat(e)),t},run:function(){try{var t=this.options.context.what_to_hjlj_exinfo||{},e=r.getGoldlogVal(\"_$\")||{},n=e.meta_info||{},o=n[\"aplus-exinfo\"]||\"\",a=n[\"aplus-exdata\"]||\"\",s=[];s=this.doConcatArr(s,t.exinfo||[]),s=this.doConcatArr(s,this.getExinfo(o)),s=this.doConcatArr(s,this.getCookieUserInfo()),s=this.doConcatArr(s,this.getCustomExParams(o)),s=this.doConcatArr(s,this.getExData(a)),t.exinfo=s.join(\"&\"),this.options.context.what_to_hjlj_exinfo=t}catch(t){i.logger({msg:t?t.message:\"\"})}}}}},function(t,e,n){\"use strict\";var o=n(30),a=n(18),r=n(11),i=n(9),s=n(4);t.exports=function(){return{init:function(t){this.options=t},getParams:function(){var t=this.options.context||{},e=t.userdata||{},n=t.basic_params||{},u=t.what_to_hjlj_exinfo||{},c=u.exinfo||\"\",l=t.etag||{},p=l.cna||n.cna||r.getCookie(\"cna\"),g=e.gmkey,f=\"\";e.gokey&&c?f=[e.gokey,c].join(\"&\"):e.gokey?f=e.gokey:c&&(f=c);var d=t.what_to_pvhash||{},_=d.hash||[];_.length&&(f+=\"&\"+_.join(\"=\")),f+=\"&jsver=\"+s.script_name,f+=\"&lver=\"+s.lver,f+=\"&pver=\"+goldlog.aplus_cplugin_ver,f+=\"&cache=\"+i.makeCacheNum(),f+=\"&page_cna=\"+p;var h={gmkey:g||\"\",gokey:f,cna:p};try{var m=location.href.substring(0,1200);m&&(h._p_url=goldlog.getMetaInfo(\"aplus-p-url\")||m)}catch(t){}e[\"spm-cnt\"]&&(h[\"spm-cnt\"]=e[\"spm-cnt\"]),e[\"spm-pre\"]&&(h[\"spm-pre\"]=e[\"spm-pre\"]);try{var v=o.getExParams(a),b=a.param2obj(v).uidaplus;b&&(h._gr_uid_=b);var y=a.param2obj(f).uidaplus;y&&(h.uidaplus=y)}catch(t){}return h},run:function(){this.options.context.what_to_hjlj.logdata=this.getParams()}}}},function(t,e,n){\"use strict\";var o=n(43),a=n(25),r=n(4);t.exports=function(){return{init:function(t){this.options=t},getToUtData:function(t,e){var n=a.getGoldlogVal(\"_$\")||{},i=n.spm||{},s=this.options.context.userdata||{},u=this.options.context.basic_params||{},c=this.options.context||{},l=c.what_to_hjlj_exinfo||{},p=l.exinfo||\"\",g=\"\";s.gokey&&p?g=[s.gokey,p].join(\"&\"):s.gokey?g=s.gokey:p&&(g=p);var f={};f.functype=\"ctrl\",f.funcId=o.getFunctypeValue2({logkey:s.logkey,gmkey:s.gmkey,spm_ab:a.getGoldlogVal(\"spm_ab\")}),f.url=goldlog.getMetaInfo(\"aplus-pagename\")||location.origin+location.pathname,f.logkey=s.logkey,f.gokey=encodeURIComponent(g),f.gmkey=s.gmkey,f._ish5=\"1\",f._h5url=location.href,f._is_g2u_=t?1:2,f._toUT=2,f._bridgeName=e.bridgeName||\"\",f._bridgeVersion=e.bridgeVersion||\"\",f[\"spm-cnt\"]=i.spm_cnt||\"\",f[\"spm-url\"]=i.spm_url||\"\",f[\"spm-pre\"]=i.spm_pre||\"\",f.cna=u.cna,f.lver=r.lver,f.jsver=r.script_name,s.hasOwnProperty(\"autosend\")&&(f.autosend=s.autosend);var d=goldlog.getMetaInfo(\"aplus-utparam\");return d&&(f[\"utparam-cnt\"]=JSON.stringify(d)),f},run:function(){var t=this.options.context||{},e=t.what_to_hjlj_ut2||{},n=!!t.is_single,o=t.where_to_sendlog_ut||{},a=o.aplusToUT||{},r=a.toUT2||{};e.logdataToUT=this.getToUtData(n,r),this.options.context.what_to_hjlj_ut2=e}}}},function(t,e,n){\"use strict\";var o=n(43),a=n(11),r=n(25),i=n(4);t.exports=function(){return{init:function(t){this.options=t},getToUtData:function(t,e){var n=r.getGoldlogVal(\"_$\")||{},s=n.spm||{},u=this.options.context||{},c=u.userdata||{},l=u.what_to_hjlj_exinfo||{},p=l.exinfo||\"\",g=\"\";c.gokey&&p?g=[c.gokey,p].join(\"&\"):c.gokey?g=c.gokey:p&&(g=p);var f={gmkey:c.gmkey,gokey:g,lver:i.lver,jsver:i.script_name,version:i.toUtVersion,spm_cnt:s.spm_cnt||\"\",spm_url:s.spm_url||\"\",spm_pre:s.spm_pre||\"\"};f._is_g2u_=t?1:2,f._bridgeName=e.bridgeName||\"\",f.bridgeVersion=e.bridgeVersion||\"\",f._toUT=1;try{f=JSON.stringify(f),\"{}\"==f&&(f=\"\")}catch(t){f=\"\"}var d=n.meta_info||{},_=d.isonepage_data||{},h={};return h.functype=o.getFunctypeValue({logkey:c.logkey,gmkey:c.gmkey,spm_ab:r.getGoldlogVal(\"spm_ab\")}),h.spmcnt=s.spm_cnt||\"\",h.spmurl=s.spm_url||\"\",h.spmpre=s.spm_pre||\"\",h.logkey=c.logkey,h.logkeyargs=f,h.urlpagename=_.urlpagename,h.url=location.href,h.cna=a.getCookie(\"cna\")||\"\",h.extendargs=\"\",h.isonepage=_.isonepage,h},run:function(){var t=this.options.context||{},e=!!t.is_single,n=t.what_to_hjlj_ut||{},o=t.where_to_sendlog_ut||{},a=o.aplusToUT||{},r=a.toUT||{};n.logdataToUT=this.getToUtData(e,r),this.options.context.what_to_hjlj_ut=n}}}},function(t,e){\"use strict\";t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this.options.context||{},e=t.is_single?\"1\":\"0\";t.what_to_hjlj_ut2.logdataToUT._slog=e,t.what_to_hjlj_ut.logdataToUT._slog=e;var n=[\"_slog=\"+e];if(t.ut_is_available){var o=t.is_single?\"1\":\"2\";n.push(\"_is_g2u=\"+o)}t.what_to_hjlj.logdata.gokey?t.what_to_hjlj.logdata.gokey+=\"&\"+n.join(\"&\"):t.what_to_hjlj.logdata.gokey=n.join(\"&\")}}}},function(t,e,n){\"use strict\";var o=n(18),a=n(9),r=n(25),i=n(24),s=n(26);t.exports=function(){return{init:function(t){this.options=t},getMetaInfo:function(){var t=r.getGoldlogVal(\"_$\")||{},e=t.meta_info||s.getInfo();return e},getAplusMetaByKey:function(t){var e=this.getMetaInfo()||{};return e[t]},cramUrl:function(t){var e=r.getGoldlogVal(\"_$\")||{},n=e.spm||{},o=this.options.context.where_to_hjlj||{},i=o.ac_atpanel,s=o.tblogUrl,u=this.options.context.what_to_hjlj||{},c=this.options.context.userdata||{},l=!0,p=c.logkey;if(!p)return{url:t,logkey_available:!1};if(\"ac\"==p)t=i+\"1.gif\";else if(a.isStartWith(p,\"ac-\"))t=i+p.substr(3);else if(a.isStartWith(p,\"/\")){t+=p.substr(1);var g=u.logdata||{};g[\"spm-cnt\"]=n.spm_cnt,g.logtype=2;try{u.logdata=g,this.options.context.what_to_hjlj=u}catch(t){}}else a.isEndWith(p,\".gif\")?t=s+p:l=!1;return{url:t,logkey_available:l}},can_to_sendhjlj:function(t){var e=this.options.context||{},n=e.logger||function(){},o=this.options.context.userdata||{};return!!t.logkey_available||(n({msg:\"logkey: \"+o.logkey+\" is not legal!\"}),!1)},run:function(){var t=!!this.options.context.is_single;if(!t){var e,n,a=o.filterIntUrl(this.options.context.where_to_hjlj.url),r=this.getAplusMetaByKey(\"aplus-rhost-g\"),s=r&&o.hostValidity(r);s&&(e=/^\\/\\//.test(r)?\"\":\"//\",n=/\\/$/.test(r)?\"\":\"/\",a=e+r+n),r&&!s&&i.logger({msg:\"aplus-rhost-g: \"+r+' is invalid, suggestion: \"xxx.mmstat.com\"'});var u=this.cramUrl(a);return this.can_to_sendhjlj(u)?void(this.options.context.where_to_hjlj.url=u.url):\"done\"}}}}},function(t,e,n){\"use strict\";var o=n(25);t.exports=function(){return{init:function(t){this.options=t},run:function(){var t=this.options.context||{},e=this.options.config||{},n=!!t.is_single;if(!n){var a=t.logger||{},r=t.what_to_hjlj||{},i=t.where_to_hjlj||{},s=r.logdata||{},u=i.url||\"\";u||\"function\"!=typeof a||a({msg:\"warning: where_to_hjlj.url is null, goldlog.record failed!\"});var c=goldlog.getMetaInfo(\"aplus-channel\");if(\"WS-ONLY\"!==c){var l=goldlog.send(i.url,s,e.method||\"GET\");o.setGoldlogVal(\"req\",l)}}}}}},function(t,e,n){\"use strict\";var o=n(42);t.exports=function(){return{init:function(t){this.options=t},run:function(t,e){var n=this,a=this.options.context||{},r=a.logger||function(){},i=a.what_to_hjlj_ut2||{},s=a.where_to_sendlog_ut||{},u=!!a.is_single,c=i.logdataToUT||{},l=s.aplusToUT||{},p=l.toUT2;if(o.isNative4Aplus())return l.toutflag=\"toUT2\",s.toUTName=\"toUT2\",void(n.options.context.what_to_hjlj_ut2.isSuccess=!0);if(p&&\"function\"==typeof p.toUT2&&p.isAvailable)try{l.toutflag=\"toUT2\",p.toUT2(c,function(){n.options.context.what_to_hjlj_ut2.isSuccess=!0,e()},function(t){n.options.context.what_to_hjlj_ut2.errorMsg=t,e()},2e3)}catch(t){u&&r({msg:\"warning: singleSendHjlj toUTName = toUT2 errorMsg:\"+t.message})}finally{return\"pause\"}}}}},function(t,e,n){\"use strict\";var o=n(42);t.exports=function(){return{init:function(t){this.options=t},run:function(t,e){var n=this,a=this.options.context||{},r=a.what_to_hjlj_ut2.isSuccess,i=a.logger||function(){},s=!!a.is_single,u=a.where_to_sendlog_ut||{},c=a.what_to_hjlj_ut||{},l=c.logdataToUT||{},p=u.aplusToUT||{},g=p.toUT;if(o.isNative4Aplus())return p.toutflag=\"toUT\",u.toUTName=\"toUT\",void(n.options.context.what_to_hjlj_ut.isSuccess=!0);if(!r&&g&&\"function\"==typeof g.toUT2&&g.isAvailable)try{p.toutflag=\"toUT\",g.toUT2(l,function(){n.options.context.what_to_hjlj_ut.isSuccess=!0,e()},function(t){n.options.context.what_to_hjlj_ut.errorMsg=t,e()},3e3)}catch(t){s&&i({msg:\"warning: singleSend toUTName = \"+u.toUTName+\" errorMsg:\"+t.message})}finally{return\"pause\"}}}}},function(t,e,n){\"use strict\";function o(){var t,e,n=i.KEY||{},o=n.NAME_STORAGE||{};if(!c&&u){var a=location.href,l=u&&(a.indexOf(\"login.taobao.com\")>=0||a.indexOf(\"login.tmall.com\")>=0),p=s.getRefer();l&&p?(t=p,e=r.getItem(o.REFERRER_PV_ID)):(t=a,e=goldlog.pvid),r.setItem(o.REFERRER,t),r.setItem(o.REFERRER_PV_ID,e)}}var a=n(79),r=n(54).nameStorage,i=n(4),s=n(53),u=\"https:\"==location.protocol,c=parent!==self;e.run=function(){var t=\"beforeunload\";a.on(window,t,function(){o()})}},function(t,e,n){\"use strict\";function o(t,e,n){var o=goldlog._$||{},a=o.meta_info||{},r=a.aplus_ctap||{},i=a[\"aplus-touch\"];if(r&&\"function\"==typeof r.on)r.on(t,e);else{var u=\"ontouchend\"in document.createElement(\"div\");!u||\"tap\"!==i&&\"tapSpm\"!==n?s(t,u?\"touchstart\":\"mousedown\",e):c.on(t,e)}}function a(t){try{p.documentElement.doScroll(\"left\")}catch(e){return void setTimeout(function(){a(t)},1)}t()}function r(t){var e=0,n=function(){0===e&&t(),e++};\"complete\"===p.readyState&&n();var o;if(p.addEventListener)o=function(){p.removeEventListener(\"DOMContentLoaded\",o,!1),n()},p.addEventListener(\"DOMContentLoaded\",o,!1),window.addEventListener(\"load\",n,!1);else if(p.attachEvent){o=function(){\"complete\"===p.readyState&&(p.detachEvent(\"onreadystatechange\",o),n())},p.attachEvent(\"onreadystatechange\",o),window.attachEvent(\"onload\",n);var r=!1;try{r=null===window.frameElement}catch(t){}p.documentElement.doScroll&&r&&a(n)}}function i(t){\"complete\"===p.readyState?t():s(l,\"load\",t)}function s(){var t=arguments;if(2===t.length)\"DOMReady\"===t[0]&&r(t[1]),\"onload\"===t[0]&&i(t[1]);else if(3===t.length){var e=t[0],n=t[1],a=t[2];\"tap\"===n||\"tapSpm\"===n?o(e,a,n):e[_]((g?\"on\":\"\")+n,function(t){t=t||l.event;var e=t.target||t.srcElement;\n\"function\"==typeof a&&a(t,e)},!!u(n)&&{passive:!0})}}var u=n(80),c=n(81),l=window,p=document,g=!!p.attachEvent,f=\"attachEvent\",d=\"addEventListener\",_=g?f:d;e.DOMReady=r,e.onload=i,e.on=s},function(t,e){var n;t.exports=function(t){if(\"boolean\"==typeof n)return n;if(!/touch|mouse|scroll|wheel/i.test(t))return!1;n=!1;try{var e=Object.defineProperty({},\"passive\",{get:function(){n=!0}});window.addEventListener(\"test\",null,e)}catch(t){}return n}},function(t,e){\"use strict\";function n(t,e){return t+Math.floor(Math.random()*(e-t+1))}function o(t,e,n){var o=l.createEvent(\"HTMLEvents\");if(o.initEvent(e,!0,!0),\"object\"==typeof n)for(var a in n)o[a]=n[a];t.dispatchEvent(o)}function a(t){0===Object.keys(g).length&&(p.addEventListener(_,r,!1),p.addEventListener(d,i,!1),p.addEventListener(m,i,!1));for(var e=0;e10&&(o.status=\"panning\")}}function i(t){for(var e=0;e0&&setTimeout(function(){for(;n=a.shift();)p(n)},100)}}try{e()}catch(t){u.do_tracker_jserror({message:t&&t.message,error:encodeURIComponent(t.stack),filename:\"processGoldlogQueue\"})}};e.processGoldlogQueue=g;var f=i.extend({push:function(t){this.length++,p(t)}});e.init_watchGoldlogQueue=function(t){try{var e=a[c]||[];if(t){var n=o(e,t);a[c]=n.queue,g(n.formatQueue)}else a[c]=f.create({startLength:e.length,length:0}),s.init_loadAplusPlugin(),g(e)}catch(t){u.do_tracker_jserror({message:t&&t.message,error:encodeURIComponent(t.stack),filename:\"init_watchGoldlogQueue\"})}}},function(t,e){\"use strict\";function n(){}n.prototype.extend=function(){},n.prototype.create=function(){},n.extend=function(t){return this.prototype.extend.call(this,t)},n.prototype.create=function(t){var e=new this;for(var n in t)e[n]=t[n];return e},n.prototype.extend=function(t){var e=function(){};try{\"function\"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),e.prototype=Object.create(this.prototype);for(var n in t)e.prototype[n]=t[n];e.prototype.constructor=e,e.extend=e.prototype.extend,e.create=e.prototype.create}catch(t){console.log(t)}finally{return e}},t.exports=n},function(t,e,n){\"use strict\";var o=n(30),a=n(28),r=n(6),i=function(){var t=goldlog.getCdnPath()+\"/alilog/s/\"+r.lver+\"/plugin/\";return{aplus_ae_path:t+\"aplus_ae.js\",aplus_ac_path:t+\"aplus_ac.js\"}},s={},u=\"aplus-auto-exp\",c=\"aplus-auto-clk\",l=function(t,e){var n=i(),r=goldlog&&goldlog.getMetaInfo?goldlog.getMetaInfo(t):\"\",l=e||r||a.getMetaCnt(t),p={};p[u]=n.aplus_ae_path,p[c]=n.aplus_ac_path,l&&p[t]&&!s[t]&&(o.addScript(p[t]),s[t]=!0)};e.init_loadAplusPlugin=function(){try{!goldlog._aplus_auto_exp&&l(u),!goldlog._aplus_ac&&l(c),goldlog.aplus_pubsub.subscribe(\"setMetaInfo\",function(t,e){t!==u||goldlog._aplus_auto_exp||l(t,e),t!==c||goldlog._aplus_ac||l(t,e)})}catch(t){}}},function(t,e){\"use strict\";function n(t,e){return t.indexOf(e)>-1}function o(t,e){for(var o=0,a=t.length;o=1e3&&n<=1e4&&(t=n)}}catch(t){}return t}var u=window,c=document,l=n(84),p=n(18),g=n(79),f=n(30),d=n(24),_=n(32),h=n(9),m=n(25),v=n(22),b=n(51),y=n(26),w=y.getInfo(),x=n(4),T=n(3),j=n(88),A=n(11),P=n(91),S=n(93),k=[],U=[],E=[],I=[],M=\"//g.alicdn.com\",C=\"//g-assets.daily.taobao.net\",N=\"//assets.alicdn.com/g\",O=\"//s.alicdn.com/@g/\",V=\"//u.alicdn.com\",G=\"//laz-g-cdn.alicdn.com\";e.run=l.extend({getCdnPath:function(){var t=f.getCurrentNode(),e=M,n=[N,O,C,V,G],o=new RegExp(V);if(t)for(var a=0;a-1;return t||\"int\"===this.getMetaInfo(\"aplus-env\")},getCookie:function(t){return A.getCookie(t)},getParam:function(t){var e=u.WindVane||{},n=e&&\"function\"==typeof e.getParam?e.getParam(t):\"\";return n},beforeSendPV:function(t){k.push(t)},afterSendPV:function(t){U.push(t)},send:function(t,e,n){var o;if(0===t.indexOf(\"//\")){var a=v.getProtocal();t=a+t}return o=\"POST\"===n&&navigator&&navigator.sendBeacon?S.postData(t,e):S.sendImg(p.makeUrl(t,e),s())},launch:function(t,e){var n;try{e=h.assign(e,t),n=goldlog._$._sendPV(e,t);var o=goldlog.spm_ab?goldlog.spm_ab.join(\".\"):\"0.0\";T.do_tracker_obsolete_inter({page:location.hostname+location.pathname,spm_ab:o,interface_name:\"goldlog.launch\",interface_params:\"userdata = \"+JSON.stringify(t)+\", config = \"+JSON.stringify(e)})}catch(t){}finally{return d.logger({msg:\"warning: This interface is deprecated, please use goldlog.sendPV instead! API: http://log.alibaba-inc.com/log/info.htm?type=2277&id=31\"}),n}},_$:{_sendPV:function(t,e){if(t=t||{},h.any(k,function(e){return e(goldlog,t)===!1}))return!1;var o=n(94).SendPV,a=new o;return\"undefined\"==typeof t.recordType&&(t.recordType=x.recordTypes.pv),a.run(t,e,{fn_after_pv:U}),!0},_sendPseudo:function(t,e){t||(t={});var o=n(95).SendPrePV,a=new o;return\"undefined\"==typeof t.recordType&&(t.recordType=x.recordTypes.prepv),a.run(t,e,{},function(){_.doPubMsg([\"sendPrePV\",\"complete\"])}),!0}},sendPV:function(t,e){return e=e||{},e.pageName&&goldlog.setMetaInfo(\"aplus-pagename\",e.pageName),goldlog._$._sendPV(t,e)},updatePageProperties:function(t){t&&\"object\"==typeof t?(t._page&&(t.pageName=t._page,delete t._page),t.pageName&&(goldlog.setMetaInfo(\"aplus-pagename\",t.pageName),delete t.pageName),goldlog.appendMetaInfo(\"aplus-cpvdata\",t)):d.logger({msg:\"warning: typeof updatePageProperties's params must be object\"})},beforeRecord:function(t){E.push(t)},afterRecord:function(t){I.push(t)},record:function(t,e,n,o,a){if(!h.any(E,function(t){return t(goldlog)===!1}))return\"POST\"!==o&&\"WS\"!==o&&\"WS-ONLY\"!==o&&(o=\"GET\"),j.run({recordType:x.recordTypes.hjlj,method:o},{logkey:t,gmkey:e,gokey:n},{fn_after_record:I},function(){\"function\"==typeof a&&a()}),!0},recordUdata:function(t,e,n,o,a){var r=m.getGoldlogVal(\"_$\")||{},i=r.spm||{};\"POST\"!==o&&\"WS\"!==o&&\"WS-ONLY\"!==o&&(o=\"GET\"),j.run({ignore_chksum:!0,method:o,recordType:x.recordTypes.uhjlj},{logkey:t,gmkey:e,gokey:n,\"spm-cnt\":i.spm_cnt,\"spm-pre\":i.spm_pre},{},function(){h.isFunction(a)&&a()})},setPageSPM:function(t,e,n){var o=\"setPageSPM\",a=goldlog.getMetaInfo(\"aplus-spm-fixed\"),s=\"function\"==typeof n?n:function(){};goldlog.spm_ab=goldlog.spm_ab||[];var u=h.cloneObj(goldlog.spm_ab);if(t&&(goldlog.spm_ab[0]=\"\"+t,goldlog._$.spm.data.a=\"\"+t),e&&(goldlog.spm_ab[1]=\"\"+e,goldlog._$.spm.data.b=\"\"+e),b.spaInit(goldlog,w,u),\"1\"!==a){var c=u.join(\".\");goldlog.spmab_pre=c}var l=goldlog.spm_ab.join(\".\");_.doPubMsg([o,{spmab_pre:goldlog.spmab_pre,spmab:l}]),_.doCachePubs([o,{spmab_pre:goldlog.spmab_pre,spmab:l}]),r(),i(),s()},setMetaInfo:function(t,e,n){if(y.setMetaInfo(t,e,n)){var o=m.getGoldlogVal(\"_$\")||{};o.meta_info=y.qGet();var a=m.setGoldlogVal(\"_$\",o),r=P.isDisablePvid()+\"\";return\"aplus-disable-pvid\"===t&&r!==e+\"\"&&b.resetSpmCntPvid(),_.doPubMsg([\"setMetaInfo\",t,e,n]),_.doCachePubs([\"setMetaInfo\",t,e,n]),a}},appendMetaInfo:y.appendMetaInfo,getMetaInfo:function(t){return y.getMetaInfo(t)},on:g.on,cloneDeep:h.cloneDeep,getPvId:P.getPvId})},function(t,e,n){\"use strict\";var o=n(9),a=n(25),r=n(32),i=n(24),s=n(89),u=n(90),c=n(4);e.run=function(t,e,n,l){var p=new u;p.init({middleware:[],config:t,plugins:c.plugins_hjlj});var g=p.run(),f=new c.context_hjlj;f.userdata=e,f.logger=i.logger;var d={context:f,pubsub:a.getGoldlogVal(\"aplus_pubsub\"),pubsubType:\"hjlj\"},_=new s;_.create(d),_.wrap(g,function(){d.context.status=\"complete\",d.context.method=t.method,r.doPubMsg([\"mw_change_hjlj\",d.context]),n&&n.fn_after_record&&o.each(n.fn_after_record,function(t){t(window.goldlog)}),\"function\"==typeof l&&l()})()}},function(t,e,n){\"use strict\";function o(){}var a=n(12),r=n(23),i=n(24),s=n(3),u=n(11);o.prototype.create=function(t){for(var e in t)\"undefined\"==typeof this[e]&&(this[e]=t[e]);return this},o.prototype.pubsubInfo=function(t,e){try{t&&t.pubsub&&t.pubsub.publish(\"mw_change_\"+t.pubsubType,t.context,e)}catch(t){}},o.prototype.calledList=[],o.prototype.setCalledList=function(t){a.indexof(this.calledList,t)===-1&&this.calledList.push(t)},o.prototype.resetCalledList=function(){this.calledList=[]},o.prototype.wrap=function(t,e){var n=this,o=this.context||{},c=o.compose||{},l=c.maxTimeout||1e4;return function(o){var c,p=t.length,g=0,f=0,d=function(){if(n.pubsubInfo(n,t[g]),g===p)return o=\"done\",n.resetCalledList(),\"function\"==typeof e&&e.call(n,o),void clearTimeout(c);if(a.indexof(n.calledList,g)===-1){if(n.setCalledList(g),!t[g]||\"function\"!=typeof t[g][0])return;try{o=t[g][0].call(n,o,function(){g++,f=1,clearTimeout(c),d(g)})}catch(e){s.do_tracker_jserror({message:e?e.message:\"compose middleware error\",error:encodeURIComponent(e.stack),filename:t[g][1]})}}var _=\"number\"==typeof o;if(\"pause\"===o||_){f=0;var h=_?o:l,m=t[g]?t[g][1]:\"\";c=r.sleep(h,function(){if(0===f){var t=\"jump the middleware about \"+m+\", because waiting timeout maxTimeout = \"+h+\"ms!\";i.logger({msg:t});var e=window.goldlog_queue||(window.goldlog_queue=[]);e.push({action:\"goldlog._aplus_cplugin_m.do_tracker_browser_support\",arguments:[{msg:t,spmab:goldlog.spm_ab,page:location.href,etag:n.context?JSON.stringify(n.context.etag):\"\",cna:document.cookie?u.getCookie(\"cna\"):\"\"}]}),o=null,g++,d(g)}})}else\"done\"===o?(g=p,d(g)):(g++,d(g))};return n.calledList&&n.calledList.length>0&&n.resetCalledList(),d(g)}},t.exports=o},function(t,e,n){\"use strict\";var o=n(12);t.exports=function(){return{init:function(t){this.opts=t,t&&\"object\"==typeof t.middleware&&t.middleware.length>0?this.middleware=t.middleware:this.middleware=[],this.plugins_name=[]},pubsubInfo:function(t,e){try{var n=t.pubsub;n&&n.publish(\"plugins_change_\"+t.pubsubType,e)}catch(t){}},checkPluginLoader:function(t,e){var n=!0;if(\"object\"==typeof e.enable&&\"function\"==typeof e.enable.isEnable?n=e.enable.isEnable(e.name):\"boolean\"==typeof e.enable&&(n=!!e.enable),!n)return!1;if(n&&e.deps&&e.deps.length>0)for(var a=0;a0){var r=a[t];if(this.checkPluginLoader(a,r)&&(this.plugins_name.push(r.name),n.push([function(t,n){e.pubsubInfo(this,r);var a=new r.path;return a.init({context:this.context,config:o.config}),a.run(t,n)},r.name])),t++,a[t])return this.run(t)}else window.console&&console.log(\"aplus plugins \"+JSON.stringify(a)+\" must be object of array!\");return n}}}},function(t,e,n){\"use strict\";function o(){var t=\"true\"===l.disablePvid;try{var e=goldlog.getMetaInfo(\"aplus-disable-pvid\")+\"\";\"true\"===e?t=!0:\"false\"===e&&(t=!1)}catch(t){}return t}function a(t){function e(t){var e=\"0123456789abcdefhijklmnopqrstuvwxyzABCDEFHIJKLMNOPQRSTUVWXYZ\",n=\"0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ\";return 1==t?e.substr(Math.floor(60*Math.random()),1):2==t?n.substr(Math.floor(60*Math.random()),1):\"0\"}for(var n,o=\"\",a=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\",r=!1;o.length=0;o--)a=t.charCodeAt(o),r^=(r<<5)+a+(r>>2);var i=(2147483647&r).toString(16);return i}},function(t,e,n){\"use strict\";function o(t){if(!t)return\"\";var e=decodeURIComponent(t).match(/cache=\\w+/);return e&&1===e.length?e[0].split(\"=\")[1]:void 0}var a=n(3),r=window;e.sendImg=function(t,e){var n=new Image,i=\"_img_\"+Math.random();r[i]=n;var s=function(){if(r[i])try{delete r[i]}catch(t){r[i]=void 0}};return n.onload=function(){s()},n.onerror=function(){a.do_tracker_jserror({message:\"loadError\",error:\"\",filename:\"sendImg\",logid:o(t)}),s()},setTimeout(function(){window[i]&&(a.do_tracker_jserror({message:\"loadTimeout\",error:e,filename:\"sendImg\",logid:o(t)}),window[i].src=\"\",s())},e||3e3),n.src=t,n=null,t},e.postData=function(t,e){var n;if(\"string\"==typeof e)n=e;else{for(var o in e)[\"cna\"].indexOf(o)===-1&&(e[o]=encodeURIComponent(e[o]));n=JSON.stringify(e)}return navigator.sendBeacon(t,n),t}},function(t,e,n){\"use strict\";var o=n(9),a=n(25),r=n(32),i=n(24),s=n(89),u=n(90),c=n(4),l=function(){};l.prototype.run=function(t,e,n){var l=new u;l.init({middleware:[],config:t,plugins:c.plugins_pv});var p=l.run(),g=new c.context;g.userdata=e,g.logger=i.logger;var f={context:g,pubsub:a.getGoldlogVal(\"aplus_pubsub\"),pubsubType:\"pv\"},d=new s;d.create(f),d.wrap(p,function(){var e=f.context.can_to_sendpv||{};f.context.status=\"YES\"===e.flag?\"complete\":\"skip\",f.context.method=t.method||\"GET\",r.doPubMsg([\"mw_change_pv\",f.context]),n&&n.fn_after_pv&&o.each(n.fn_after_pv,function(e){e(window.goldlog,t)})})()},e.SendPV=l},function(t,e,n){\"use strict\";var o=n(9),a=n(25),r=n(32),i=n(24),s=n(89),u=n(90),c=n(4),l=function(){};l.prototype.run=function(t,e,n,l){var p=new u;p.init({middleware:[],config:t,plugins:c.plugins_prepv});var g=p.run(),f=new c.context_prepv;f.userdata=e,f.logger=i.logger;var d={context:f,pubsub:a.getGoldlogVal(\"aplus_pubsub\"),pubsubType:\"prepv\"},_=new s;_.create(d),_.wrap(g,function(){d.context.status=\"complete\",r.doPubMsg([\"mw_change_prepv\",d.context]),n&&n.fn_after_record&&o.each(n.fn_after_pv,function(e){e(window.goldlog,t)}),a.setGoldlogVal(\"prepv_context\",f),\"function\"==typeof l&&l()})()},e.SendPrePV=l},function(t,e,n){\"use strict\";!function(){var t=window.goldlog||(window.goldlog={}),e=n(97);t.aplus_pubsub||(t.aplus_pubsub=e.create())}()},function(t,e,n){\"use strict\";function o(t){if(\"function\"!=typeof t)throw new TypeError(t+\" is not a function\");return t}var a=n(84),r=function(t){for(var e=t.length,n=new Array(e-1),o=1;o0){for(var a=0;a0)for(var a=0;a1?a.pop():\"\",i>0&&(n=r.pop(),t=r.join(\"?\")),n&&i>1&&n.indexOf(\"&\")==-1&&n.indexOf(\"%\")!==-1&&(c=\"%26\");var l=\"\";if(t=t+\"?spm=\"+l+e+(n?c+n:\"\")+(o?\"#\"+o:\"\"),u=h.isContain(s,\".\")?s.split(\".\").pop().toLowerCase():\"\"){if({png:1,jpg:1,jpeg:1,gif:1,bmp:1,swf:1}.hasOwnProperty(u))return 0;!n&&i<=1&&(o||{htm:1,html:1,php:1,aspx:1,shtml:1,xhtml:1}.hasOwnProperty(u)||(t+=\"&file=\"+s))}return t}}function s(t,e){if(!goldlog.isUT4Aplus||\"UT4Aplus\"!==goldlog.getMetaInfo(\"aplus-toUT\")){var n,o=t.innerHTML;o&&o.indexOf(\"<\")==-1&&(n=document.createElement(\"b\"),n.style.display=\"none\",t.appendChild(n)),t.href=e,n&&t.removeChild(n)}}function u(t,e,n){if(!/^0\\.0\\.?/.test(e)){var o=y.tryToGetHref(t),r=a(),u=w.is_ignore_spm(t);if(u){var c=_.param2obj(o);if(c.spm&&c.spm.split)for(var l=c.spm.split(\".\"),p=e.split(\".\"),g=0;g<3&&p[g]===l[g];g++)2===g&&l[3]&&(e=c.spm)}t.setAttribute(\"data-spm-anchor-id\",e);var f=goldlog.getPvId();f&&(e+=\".\"+f);var d=\"0.0\";(f||r&&r!=d)&&(u||n||(o=i(o,e))&&s(t,o))}}function c(t){var e=v.tryToGetAttribute(t,A),n=m.parseSemicolonContent(e)||{};return n}function l(t){var e,n=b.getGoldlogVal(\"_$\")||{},o=n.spm.data;return\"0\"==o.a&&\"0\"==o.b?e=\"0\":(e=v.tryToGetAttribute(t,j),e&&e.match(/^d\\w+$/)||(e=\"\")),e}function p(t,e){for(var n=[],o=m.nodeListToArray(t.getElementsByTagName(\"a\")),a=m.nodeListToArray(t.getElementsByTagName(\"area\")),r=o.concat(a),i=0;i0&&(d+=\"&\"),d+=v.length>0?v.join(\"&\"):\"\",goldlog&&s.isFunction(goldlog.recordUdata)?goldlog.recordUdata(m,f,d,\"GET\",function(){}):l.logger({msg:\"goldlog.recordUdata is not function!\"}),i.tryToSetAttribute(t,\"data-spm-anchor-id\",h)}function a(t,e){var n=e;window.g_SPM&&(g_SPM._current_spm=p.spm_getSPMParam(e));for(var a;e&&\"HTML\"!==e.tagName;){a=i.tryToGetAttribute(e,\"data-spm-click\");{if(a){o(e,a,\"mousedown\"===t.type?t.type:\"tap\");break}e=e.parentNode}}if(!a){var r=g.getGlobalSPMId(),s=goldlog.getMetaInfo(\"aplus-getspmcd\");\"function\"==typeof s&&s(n,t,r)}}var r=n(79),i=n(27),s=n(9),u=n(19),c=n(12),l=n(24),p=n(104),g=n(105);e.run=function(t){t&&t.isTouchEnabled?r.on(document,\"tap\",a):r.on(document,\"mousedown\",a)}},function(t,e,n){\"use strict\";function o(){for(var t=document.getElementsByTagName(\"iframe\"),e=0;e10&&(n=3e3),o(),setTimeout(t,n)}var e=0,n=500;t()}var r=n(27),i=n(105),s=n(104);e.run=function(t){t&&!t.isTerminal&&a()}},function(t,e,n){\"use strict\";function o(t,e){for(var n,o=window;e&&(n=e.tagName);){if(\"A\"===n||\"AREA\"===n){r.spm_spmAnchorChk(e,!1);var a=o.g_SPM||(o.g_SPM={}),i=a._current_spm=r.spm_getSPMParam(e),s=[];try{s=[i.a,i.b,i.c,i.d];var u=i.e||goldlog.pvid||\"\";u&&s.push(u)}catch(t){}break}if(\"BODY\"==n||\"HTML\"==n)break;e=e.parentNode}}var a=n(79),r=n(104);e.run=function(t){var e=document;t&&t.isTouchEnabled?a.on(e,\"tapSpm\",o):(a.on(e,\"mousedown\",o),a.on(e,\"keydown\",o))}},function(t,e,n){\"use strict\";function o(t,e){\nif(e||(e=p),p.evaluate)return e.evaluate(t,p,null,9,null).singleNodeValue;for(var n,a=t.split(\"/\");!n&&a.length>0;)n=a.shift();var r,i=/^.+?\\[@id='(.+?)']$/i,s=/^(.+?)\\[(\\d+)]$/i;return(r=n.match(i))?e=e.getElementById(r[1]):(r=n.match(s))&&(e=e.getElementsByTagName(r[1])[parseInt(r[2])-1]),e?0===a.length?e:o(a.join(\"/\"),e):null}function a(){var t={};for(var e in l)if(l.hasOwnProperty(e)){var n=o(e);if(n){t[e]=1;var a=l[e],r=\"A\"===n.tagName?a.spmd:a.spmc;s.tryToSetAttribute(n,\"data-spm\",r||\"\")}}for(var i in t)t.hasOwnProperty(i)&&delete l[i]}function r(){if(!c&&g.spmData){c=!0;var t=g.spmData.data;if(t&&i.isArray(t)){for(var e=0;e1?a.pop():\"\",o>0&&(r=i.pop(),t=i.join(\"?\")),r&&o>1&&r.indexOf(\"&\")==-1&&r.indexOf(\"%\")!=-1&&(s=\"%26\"),t=t+\"?spm=\"+e+(r?s+r:\"\")+(n?\"#\"+n:\"\"),p=c.indexOf(\".\")>-1?c.split(\".\").pop().toLowerCase():\"\"){if({png:1,jpg:1,jpeg:1,gif:1,bmp:1,swf:1}.hasOwnProperty(p))return 0;!r&&o<=1&&(n||{htm:1,html:1,php:1}.hasOwnProperty(p)||(t+=\"&file=\"+c))}return t}function n(t){function e(t){return t=t.replace(/refpos[=(%3D)]\\w*/gi,c).replace(i,\"%3D\"+n+\"%26\"+a.replace(\"=\",\"%3D\")).replace(o,n),a.length>0&&(t+=\"&\"+a),t}var r=window.location.href,n=r.match(/mm_\\d{0,24}_\\d{0,24}_\\d{0,24}/i),a=r.match(/[&\\?](pvid=[^&]*)/i),i=new RegExp(\"%3Dmm_\\\\d+_\\\\d+_\\\\d+\",\"ig\"),o=new RegExp(\"mm_\\\\d+_\\\\d+_\\\\d+\",\"ig\");a=a&&a[1]?a[1]:\"\";var c=r.match(/(refpos=(\\d{0,24}_\\d{0,24}_\\d{0,24})?(,[a-z]+)?)(,[a-z]+)?/i);return c=c&&c[0]?c[0]:\"\",n?(n=n[0],e(t)):t}function a(e){var r=s.KISSY;r?r.ready(e):s.jQuery?jQuery(m).ready(e):\"complete\"===m.readyState?e():t(s,\"load\",e)}function i(t,e){return t&&t.getAttribute?t.getAttribute(e)||\"\":\"\"}function o(t){if(t){var e,r=g.length;for(e=0;e-1)return!0;return!1}}function c(t,e){if(t&&/&?\\bspm=[^&#]*/.test(t)&&(t=t.replace(/&?\\bspm=[^&#]*/g,\"\").replace(/&{2,}/g,\"&\").replace(/\\?&/,\"?\").replace(/\\?$/,\"\")),!e)return t;var r,n,a,i,o,c,p,s=\"&\";if(t.indexOf(\"#\")!=-1&&(a=t.split(\"#\"),t=a.shift(),n=a.join(\"#\")),i=t.split(\"?\"),o=i.length-1,a=i[0].split(\"//\"),a=a[a.length-1].split(\"/\"),c=a.length>1?a.pop():\"\",o>0&&(r=i.pop(),t=i.join(\"?\")),r&&o>1&&r.indexOf(\"&\")==-1&&r.indexOf(\"%\")!=-1&&(s=\"%26\"),t=t+\"?spm=\"+e+(r?s+r:\"\")+(n?\"#\"+n:\"\"),p=c.indexOf(\".\")>-1?c.split(\".\").pop().toLowerCase():\"\"){if({png:1,jpg:1,jpeg:1,gif:1,bmp:1,swf:1}.hasOwnProperty(p))return 0;!r&&o<=1&&(n||{htm:1,html:1,shtml:1,php:1}.hasOwnProperty(p)||(t+=\"&__file=\"+c))}return t}function p(t){if(o(t.href)){var r=i(t,u);if(!r){var n=l()(t),a=[n.a,n.b,n.c,n.d].join(\".\");n.e&&(n+=\".\"+n.e),d&&(a=[n.a||\"0\",n.b||\"0\",n.c||\"0\",n.d||\"0\"].join(\".\"),a=(e()||\"0.0.0.0.0\")+\"_\"+a),t.href=c(t.href,a),t.setAttribute(u,a)}}}var s=window,m=document;if(1!==s.aplus_spmact){s.aplus_spmact=1;var f=function(){return{a:0,b:0,c:0,d:0,e:0}},l=function(){return s.g_SPM&&s.g_SPM.getParam?s.g_SPM.getParam:f},d=!0;try{d=self.location!=top.location}catch(t){}var u=\"data-spm-act-id\",g=[\"mclick.simba.taobao.com\",\"click.simba.taobao.com\",\"click.tanx.com\",\"click.mz.simba.taobao.com\",\"click.tz.simba.taobao.com\",\"redirect.simba.taobao.com\",\"rdstat.tanx.com\",\"stat.simba.taobao.com\",\"s.click.taobao.com\"],h=!!m.attachEvent,b=\"attachEvent\",v=\"addEventListener\",_=h?b:v;t(m,\"mousedown\",function(t,e){for(var r,n=0;e&&(r=e.tagName);){if(\"A\"==r||\"AREA\"==r){p(e);break}if(\"BODY\"==r||\"HTML\"==r)break;e=e.parentNode,n+=1}}),a(function(){for(var t,a,o=document.getElementsByTagName(\"iframe\"),c=0;c=this.RU||Math.abs(q[1]-r[1])>=this.RU){if(t){var D=Math.sqrt(Math.pow(q[0]-r[0],2)+Math.pow(q[1]-r[1],2));if(D+C>w){var A=0,A=r,B=q;if(B[0]===A[0])A=B[1]>A[1]?Math.PI:0;else if(B[1]===A[1])A=B[0]>A[0]?Math.PI/2:-Math.PI/2;else{var G=B[0]-A[0],B=B[1]-A[1],A=Math.atan(G/B);0G&&0>B?A=-A:0B?A=-A:0>G&&0g.a.Fa/2?c=[[c[0][0]+g.a.Fa,c[0][1]],[c[1][0]+g.a.Fa,c[1][1]],[c[2][0]+g.a.Fa,c[2][1]],[c[3][0]+g.a.Fa,c[3][1]],[c[4][0]+g.a.Fa,c[4][1]]]:r<-g.a.Fa/2&&(c=[[c[0][0]-g.a.Fa,c[0][1]],[c[1][0]-g.a.Fa,c[1][1]], [c[2][0]-g.a.Fa,c[2][1]],[c[3][0]-g.a.Fa,c[3][1]],[c[4][0]-g.a.Fa,c[4][1]]]),v=g.yd.W7(v,c));this.nA[b]=[];w=0;for(t=v.length;wg.a.Fa/2?d-=g.a.Fa:e<-g.a.Fa/2&&(d+=g.a.Fa)}d=(d-this.ge[0])/c;return[d,(a[1]-this.ge[1])/c]}}); \"}" + }, + { + "name": "_AMap_mouse", + "value": "{\"version\":\"1768801478717\",\"script\":\"g.Sb.Ib({rN:\\\"_docMsMov\\\",Kca:function(){var a=this.Ya.ad;g.F.h(a,\\\"mousedown\\\",this.S4,this);g.F.h(document,\\\"mousedown\\\",this.Y4,this);this.Jpa||g.l.Ve||(this.hw=g.a.ND(this.hw,150,this),this.Jpa=!0);this.v7();g.F.h(document,\\\"mouseout\\\",this.hw,this);this.h(this.rN,this.N6,this);g.F.h(a,\\\"mouseover\\\",this.T4,this);g.F.h(a,\\\"mouseup\\\",this.U4,this);g.F.h(a,\\\"contextmenu\\\",this.KF,this);g.F.h(a,\\\"rightclick\\\",this.KF,this)},Eha:function(){var a=this.Ya.ad;g.F.G(a,\\\"mousedown\\\",this.S4,this);g.F.G(document,\\\"mousedown\\\", this.Y4,this);this.Ona();g.F.G(document,\\\"mouseout\\\",this.hw,this);this.G(this.rN,this.N6,this);g.F.G(a,\\\"mouseover\\\",this.T4,this);g.F.G(a,\\\"mouseup\\\",this.U4,this);g.F.G(a,\\\"contextmenu\\\",this.KF,this);g.F.G(a,\\\"rightclick\\\",this.KF,this)},Mca:function(){g.F.h(this.Ya.ad,\\\"mousewheel\\\",this.R4,this)},r_:function(){g.F.G(this.Ya.ad,\\\"mousewheel\\\",this.R4,this)},Pna:function(){g.F.G(document,\\\"mousemove\\\",this.hw,this);g.F.G(this.Ya.ad,\\\"mousemove\\\",this.$R,this)},v7:function(){g.F.h(document,\\\"mousemove\\\",this.hw,this); g.F.h(this.Ya.ad,\\\"mousemove\\\",this.$R,this)},Ona:function(){g.F.G(document,\\\"mousemove\\\",this.hw,this);g.F.G(this.Ya.ad,\\\"mousemove\\\",this.$R,this)},T4:function(){this.IG=!0},Y4:function(){this.IG=!1},hw:function(a){if(!this.Kf&&!this.sg&&this.Ya){var b=this.Mi(a,!0,!0);this.r(this.rN,{event:a,TJ:b})}},Lca:function(){this.h(\\\"mousemove\\\",this.P_);this.h(\\\"mouseout\\\",this.Q_);this.h(\\\"mouseover\\\",this.R_);this.h(\\\"mouseup\\\",this.S_);this.h(\\\"mousedown\\\",this.O_);this.h(\\\"rightclick\\\",this.U_);this.h(\\\"contextmenu\\\", this.G_);this.h(\\\"rdblclick\\\",this.V_)},Gha:function(){this.G(\\\"mousemove\\\",this.P_);this.G(\\\"mouseout\\\",this.Q_);this.G(\\\"mouseover\\\",this.R_);this.G(\\\"mouseup\\\",this.S_);this.G(\\\"mousedown\\\",this.O_);this.G(\\\"rightclick\\\",this.U_);this.G(\\\"contextmenu\\\",this.G_);this.G(\\\"rdblclick\\\",this.V_)},keyboardEnableChanged:function(){this.get(\\\"keyboardEnable\\\")?this.Ica():this.CO()},scrollWheelChanged:function(){this.get(\\\"scrollWheel\\\")?this.h(\\\"mousewheel\\\",this.T_):this.G(\\\"mousewheel\\\",this.T_)},KF:function(a){g.F.preventDefault(a)}, vha:function(a){var b=this.Mi(a,!1,!0),c=0;\\\"3D\\\"==this.D.view.type?(this.qa(\\\"mousewheel\\\",b),a.wheelDelta?(c=a.wheelDelta,window.opera&&g.a.Qh(window.opera.version)&&9.5>parseFloat(window.opera.version())&&(c=-c),0==c/120%1&&(c/=2)):a.detail&&(c=-a.detail,120!==c&&-120!==c&&(c*=20)),a=c/800,a=this.get(\\\"zoom\\\")+a,this.x2(a,b.Ta,!0)):(a.wheelDelta?(c=a.wheelDelta/120,window.opera&&g.a.Qh(window.opera.version)&&9.5>parseFloat(window.opera.version())&&(c=-c)):a.detail&&(c=-a.detail),this.V.VC=(this.V.VC|| 0)+c,this.r(\\\"mousewheel\\\",b))},R4:function(a){\\\"info\\\"!=a.af&&this.get(\\\"scrollWheel\\\")&&this.vha(a)},cS:function(a,b){b=this.Mi(a,!1,!0);if(!this.Sv(b.Db,this.V.Hx)){var c=this.V;c.Hx=b.Db;if(c.Cr){if(!c.Cd&&(b.Db.x!==c.jo.x||b.Db.y!==c.jo.y)){var d;this.$N(c.au)&&c.au.get(\\\"draggable\\\")&&(d=c.au);!d&&this.get(\\\"dragEnable\\\")&&(d=this);d&&(c.Cd=!0,c.kq=d,c.gg=c.jo,c.jq=c.NT)}c.Cd&&(c.bk=b,b.button=a.buttons||a.button||0,this.UO())}}},qJ:function(){var a=this.TJ;g.f.fb(this.K,\\\"amap-drag\\\");g.f.Gpa();g.f.t3(); this.V&&(this.V.Cd=!1);this.V.Gp&&(this.V.Gp=!1,this.V.kq.r(\\\"dragend\\\",a));this.V.Cr=!1;this.V.Hx=null;this.V.gg=null;g.F.G(document,\\\"mousemove\\\",this.cS,this);g.F.G(document,\\\"mouseup\\\",this.qJ,this);try{g.F.G(window.parent.document,\\\"mouseup\\\",this.qJ,this)}catch(b){}this.Ya&&(this.Kf&&(this.sg=this.Kf=!1),g.F.Cza(this.Ya.ad),this.v7())},Rra:function(a,b){b=b||this.Mi(a,!1,!1,a.srcElement||a.target);var c=this.get(\\\"size\\\"),d;0<=b.Db.x&&b.Db.x<=c.width&&0<=b.Db.y&&b.Db.y<=c.height&&(d=!0);this.L5&&!d?this.r(\\\"mouseout\\\", b):!this.L5&&d&&this.r(\\\"mouseover\\\",b);this.L5=d},$R:function(a){if(!this.Kf&&!this.sg&&this.Ya&&\\\"info\\\"!=a.af&&(g.F.preventDefault(a),g.l.Gs&&(a=window.event),a)){a=this.Mi(a,!1,!1,a.srcElement||a.target);var b=this.V,c=a.kd,d;if(c){this.V.Cr||(c instanceof g.B.Fh?d=c.Mb.get(\\\"cursor\\\"):c instanceof g.q.Zb&&(d=c.get(\\\"cursor\\\")),d&&c!==this||(d=this.D.De.defaultCursor),d=this.D.get(\\\"optimalCursor\\\")||d,this.K.style.cursor=d||\\\"\\\");d=b.Wga;var e=a.uu;d!==e&&(d&&b.ZZ&&b.ZZ.r(\\\"mouseout\\\",a),e&&c&&(c.r(\\\"mouseover\\\", a),c.get(\\\"topWhenMouseOver\\\")&&(c.Mb.C=!0,c.Mb.setTop(!0),c.Mb.C=!1)));a.kd.r(\\\"mousemove\\\",a);a.kd!==this&&this.r(\\\"mousemove\\\",a);b.Wga=a.uu||null;b.ZZ=a.kd||null}}},S4:function(a){if(\\\"info\\\"!=a.af&&(this.IG=!0,g.f.Xoa(),g.f.g3(),this.V.Hx=null,this.V.gg=null,\\\"info\\\"!=a.af)){var b=this.Mi(a,!0,!1,a.srcElement||a.target);if(b.kd){this.V.k3=new Date;this.V.au=b.kd;this.V.jo=b.Db;this.V.Sga=b.button;this.V.Cr=!0;this.V.Tga=b;this.V.Cd||(this.V.NT=b);this.Ie&&this.Ie.stop();var c=b.kd;!c.Mb&&c.get(\\\"dragEnable\\\")&& (this.V.Cr=!0);g.f.Wa(this.K,\\\"amap-drag\\\");c=!1;b.kd.r(\\\"mousedown\\\",b);b.kd!==this&&(this.r(\\\"mousedown\\\",b),c=b.kd.get(\\\"draggable\\\"));c=c||this.get(\\\"dragEnable\\\");g.F.Bxa(this.Ya.ad);g.F.h(document,\\\"mousemove\\\",this.cS,this);g.F.h(document,\\\"mouseup\\\",this.qJ,this);try{window.parent.document&&g.l.Gs&&g.F.h(window.parent.document,\\\"mouseup\\\",this.qJ,this)}catch(d){}g.F.stopPropagation(a);c&&this.Pna()}}},N6:function(a){this.Rra(a.event,a.TJ)},JDa:function(a){this.cS(a.event,a.TJ)},U4:function(a){if(\\\"info\\\"!= a.af){this.TJ=a=this.Mi(a,!1,!1,a.srcElement||a.target);var b=a.kd;if(b){var c=this.D.get(\\\"allBubble\\\")||b.get(\\\"bubble\\\");b!==document&&(b.r(\\\"mouseup\\\",a),a.kd!==this&&c&&this.r(\\\"mouseup\\\",a));this.V.jo&&this.Sv(a.Db,this.V.jo)&&(this.bg&&this.Sv(this.V.Ex,a.Db)&&a.button===this.V.Sga?(clearTimeout(this.bg),this.bg=null,g.F.R5(a)?c?(b.r(\\\"dblclick\\\",a),b!==this&&this.r(\\\"dblclick\\\",a)):b.r(\\\"dblclick\\\",a):b.r(\\\"rdblclick\\\",a),this.V.Ex=null):(g.F.R5(a)?(this.r(\\\"clickstart\\\",a),c?(b.r(\\\"click\\\",a),b!==this&&this.r(\\\"click\\\", a)):(b.r(\\\"click\\\",a),this.r(\\\"closeOverlays\\\",a)),b.get(\\\"topWhenClick\\\")&&(b.Mb.C=!0,b.Mb.setTop(!0),b.Mb.C=!1),this.r(\\\"clickend\\\",a)):c?(b.r(\\\"rightclick\\\",a),b!==this&&this.r(\\\"rightclick\\\",a),this.r(\\\"contextmenu\\\",a)):(b.r(\\\"rightclick\\\",a),b.r(\\\"contextmenu\\\",a)),this.V.Ex=a.Db,this.bg&&clearTimeout(this.bg),this.bg=setTimeout(g.a.bind(function(){clearTimeout(this.bg);this.bg=null;this.V.Ex=null},this),260)))}}}});g.Sb.Ib({T_:function(a){this.qa(\\\"mousewheel\\\",a);var b=this;if(1<=Math.abs(this.V.VC)&&!this.T$){var c=this.V.VC;if(1<=c)c=1;else if(-1>=c)c=-1;else return;b.eH(a.Ta,c);this.V.VC=0;this.T$=!0;setTimeout(function(){b.T$=!1;b.V.VC=0},g.l.pz?50:40)}},P_:function(a){this.qa(\\\"mousemove\\\",a)},Q_:function(a){this.qa(\\\"mouseout\\\",a)},R_:function(a){this.qa(\\\"mouseover\\\",a)},S_:function(a){this.qa(\\\"mouseup\\\",a)},O_:function(a){this.qa(\\\"mousedown\\\",a)},U_:function(a){this.qa(\\\"rightclick\\\",a)},G_:function(a){this.qa(\\\"contextmenu\\\", a)},V_:function(a){this.get(\\\"doubleClickZoom\\\")&&this.get(\\\"zoomEnable\\\")&&this.eH(a.Ta,-1);this.qa(\\\"rdblclick\\\",a)}});g.Sb.Ib({yga:function(){this.BB={left:[37],right:[39],IQ:[40],dF:[38],Qi:[187,107,61],Ri:[189,109,173]};this.uda={left:this.by(this.cH(100,0)),right:this.by(this.cH(-100,0)),IQ:this.by(this.cH(0,-100)),dF:this.by(this.cH(0,100)),Qi:this.by(this.L1(1)),Ri:this.by(this.L1(-1))}},Ica:function(){this.get(\\\"keyboardEnable\\\")&&(this.BB||this.yga(),g.F.h(document,\\\"keydown\\\",this.aH,this),g.F.h(document,\\\"keyup\\\",this.C_,this))},CO:function(){g.F.G(document,\\\"keydown\\\",this.aH,this);g.F.G(document,\\\"keyup\\\",this.C_, this)},C_:function(a){var b=a.keyCode;!a.ctrlKey||37!==b&&39!==b||this.set(\\\"refresh\\\",1)},aH:function(a){var b=a.keyCode,c;for(c in this.BB)if(this.BB.hasOwnProperty(c))for(var d=0;d=u&&(D=\\\"SimHei\\\");\\\"roadlabel\\\"===p&&(D=\\\"Arial Narrow,Arial\\\");v[3]&&(B=b(v[3]));E.font=D;E.L3=A;E.strokeColor=B;E.Ura=b(v[4]);E.rv=v[5]}v=v[0];l&&(C*=d);E.fontSize=Math.round(C);E.fg=v;for(C=0;Cv[0]||256<=v[0]||0>v[1]||256<=v[1])){B=D=0;H=1;D=256*r.x;B=256*r.y;H=r.T;v={textBaseline:\\\"top\\\",textAlign:\\\"left\\\",za:[(D+v[0])*H,(B+v[1])*H],name:\\\"aw\\\"===A[0]?\\\"\\\\u2191\\\":A[0].replace(\\\"^\\\",\\\"\\\"),Ta:v,Ca:[],aa:[],visible:!0,xk:!0,Cm:q[x][4]};if(\\\"roadlabel\\\"===p){v.Zc=q[x][3];v.Cm=q[x][4]; D=v;B=E;H=s;M=r;G=l;I=m;P=n;L=!1;D.Bj=!0;D.margin=0;D.z=M.z;D.zIndex=9E3;D.id=\\\"roadlabel_\\\"+f(D);M=\\\"\\\";if((M=B.fg)&&A[3]){D.Bv=!0;var K=void 0;D.Ca.push(P+\\\"://vdata.amap.com/style_icon/icon-normal-\\\"+(I||G?\\\"big\\\":\\\"small\\\")+\\\".png\\\");var M=parseInt(M)-1,P=Math.floor(M/10),M=M%10,F=K=0,L=0;G?(K=48,F=40,L=28):I?(K=F=40,L=28):(K=F=24,L=20);I=D.name.length*(G?16:10)+2;I=Math.max(G?48:24,I);K=[-I/2,-K/2-1,I,K,F*M,F*P,F,F];D.B2=L;D.te=7;D.aa.push(K);L=!0}I=void 0;H?A[4]&&(I=H.u,D.Ca.push(I),H=H.b[A[4][0]],D.te= B.fontSize,D.aa.push([-Math.floor(H[2]/2),-Math.floor(H[3]/2)+1,H[2],H[3],H[0],H[1],H[2],H[3]])):(D.textBaseline=\\\"middle\\\",D.textAlign=\\\"center\\\",M=B.strokeColor,L&&(B.fontSize=Math.min(18,B.fontSize)),D.B2=G?28:16,D.rc||(D.rc=[]),D.rc.push([D.name,B.font,L&&!G?9:B.fontSize,B.L3,M,0,0,L,[0,0,0,0]]),D.aa.push([0,0,0,0]));D.Wq=A[2]?\\\"\\\\u2191\\\"!==A[0]&&(15>A[2]%90||75q[x][2]?0:q[x][2];q[x][3]?2E4=K&&(M[8]=!0);D.fg=K;D.rv=parseInt(B.rv,10);D.te=7;D.aa.push(M);M=!0}if(0b.Gv?-5:3;e=b.df;var n=b.Gv,p=b.Sq;d=b.G8;var q=b.ba,r=b.lwa,s=null,u=[];void 0!==b.iy&&(s=b.Ue[b.iy].stylemaps);for(var v=0,w=b.Pc.length;vthis.CM&&this.jca()},Nd:function(a){return this.Rj.hasOwnProperty(a)},Cw:function(a){if(!this.Nd(a))return null;this.Ep-=1;var b=this.Rj[a];delete this.Rj[a];return b.Kg},clear:function(){this.vM();this.Rj={};this.Ep=0},vM:function(){this.DM&&clearTimeout(this.DM)},jca:function(){if(this.Ep>this.CM*this.jx.A3)this.vM(),this.iX();else if(!(10>g.a.eg()-this.lca)){this.vM();var a=this;this.DM=setTimeout(function(){a.DM=null;a.iX()},this.jx.r9);this.lca=g.a.eg()}},iX:function(){var a=Math.round(this.CM* this.jx.s9);if(!(this.Ep=b)return[];for(var d=0,e=a.length-1,f,h,k;d=b;){for(;f<=b&&0>c.call(this,a[f],k);)f+=1;for(;h>=b&&0b&&(e=h)}return a.slice(0,b)}});g.Tw={FQ:function(a){g.f.fb(a,\\\"transition\\\")},kT:\\\"function\\\"!==typeof Object.create?function(){function a(){}return function(b){a.prototype=b;b=new a;a.prototype=null;return b}}():Object.create,W1:function(a,b){var c=this.Bla;c||(c=this.Bla=this.Ofa());if(!1!==c){this.FQ(a);var d,e=this,f=function k(){clearTimeout(d);e.FQ(a);g.F.G(a,c,k,e)};d=setTimeout(f,b||1E3);g.f.Wa(a,\\\"transition\\\");g.F.Dj(a,c,f,this)}},Ofa:function(){var a,b=document.createElement(\\\"fakeelement\\\"),c={transition:\\\"transitionend\\\",OTransition:\\\"oTransitionEnd\\\", MozTransition:\\\"transitionend\\\",WebkitTransition:\\\"webkitTransitionEnd\\\"};for(a in c)if(void 0!==b.style[a])return c[a];return!1}};(function(){var a=\\\"strokeColor strokeOpacity strokeWeight fillColor fillOpacity strokeStyle strokeDasharray fontSize\\\".split(\\\" \\\"),b=g.da.extend({A:function(){this.Eca=1;this.pP={};this.qda(c);this.k_=[]},K5:function(a){for(var b=!0,c=13;22>=c;c++){var h=this.y4(a,c);if(h&&(0this.k_.indexOf(c)&&this.k_.push(c),null;for(var c=0,k=h.length;c>>7?(d=String.fromCharCode(a[b]),\\\"0\\\"!==d.charCodeAt(0).toString(16)&&(c+=d),b+=1):252===(d&252)?(d=(a[b]&3)<<30,d|=(a[b+1]&63)<<24,d|=(a[b+2]&63)<<18,d|=(a[b+3]&63)<<12,d|=(a[b+4]&63)<<6,d|=a[b+5]&63,c+=String.fromCharCode(d),b+=6):248===(d&248)?(d=(a[b]&7)<<24,d|=(a[b+1]&63)<<18,d|=(a[b+2]&63)<<12,d|=(a[b+3]&63)<<6,d|=a[b+4]&63,c+=String.fromCharCode(d),b+=5):240===(d&240)?(d=(a[b]&15)<< 18,d|=(a[b+1]&63)<<12,d|=(a[b+2]&63)<<6,d|=a[b+3]&63,c+=String.fromCharCode(d),b+=4):224===(d&224)?(d=(a[b]&31)<<12,d|=(a[b+1]&63)<<6,d|=a[b+2]&63,c+=String.fromCharCode(d),b+=3):192===(d&192)?(d=(a[b]&63)<<6,d|=a[b+1]&63,c+=String.fromCharCode(d),b+=2):(d=String.fromCharCode(a[b]),\\\"0\\\"!==d.charCodeAt(0).toString(16)&&(c+=d),b+=1);return c.trim()}function d(a,b){a=a.toString(2);b=b.toString(2);a=Array(32-a.length+1).join(\\\"0\\\")+a;b=Array(32-b.length+1).join(\\\"0\\\")+b;var c=k;c.lastIndex=0;if(c=(b+a).toString().match(c)){var d= 0;-1===c[0].indexOf(\\\".\\\")&&(d=parseInt(c,2));return d=d.toString(36).toUpperCase()}return\\\"error\\\"}function e(a){for(var b,e,f,k,r,s={},u={},v=new Uint8Array(a),w=new DataView(a),t=0,t=t+4,t=t+4,x=w.getInt32(t,!0),t=t+4,t=t+4,y=w.getInt32(t,!0),t=t+(4+y),t=t+4,E=w.getUint32(t,!0).toString(2),C=w.getUint32(t+4,!0).toString(2),D=d(E,C),t=t+8,A=c(v,t,t+64),t=t+64,B=c(v,t,t+64),t=t+64,G=w.getInt8(t,!0),t=t+1,H=c(v,t,t+8),t=t+8,I=w.getInt16(t,!0),P=w.getInt16(t+2,!0),t=t+4,L=w.getFloat32(t,!0),M=w.getFloat32(t+ 4,!0),t=t+8,K=w.getFloat32(t,!0),F=w.getFloat32(t+4,!0),t=t+8,Q=w.getFloat32(t,!0),N=w.getFloat32(t+4,!0),t=t+8,J=w.getInt32(t,!0),t=t+4,O=w.getInt32(t,!0),t=t+4,V=w.getInt32(t,!0),t=t+4,R=[],S=0;S=this.Pr&&(this.bj=0);this.uH=this.bj}};f.Ap.prototype.IK=function(){this.flush();this.Lr=null};f.Ap.prototype.LU=function(a){this.IK();this.Lr=a};f.Ap.prototype.Dg=function(a){a||(this.bj=this.uH=0)};f.Ap.prototype.moa=function(a,b){var c=this.bj-a-1;for(0>c&&(c+=this.Pr);b--;)c>=this.Pr&&(c=0),this.nx[this.bj++]=this.nx[c++],this.bj>=this.Pr&&this.flush()};f.Ap.prototype.nwa=function(a){this.nx[this.bj++]=a;this.bj>=this.Pr&&this.flush()};f.Ap.prototype.U3=function(a){a=this.bj-a-1;0>a&& (a+=this.Pr);return this.nx[a]};f.$w=function(){};f.$w.prototype.LU=function(a){this.Lr=a};f.$w.prototype.IK=function(){this.Lr=null};f.$w.prototype.Dg=function(){var a=5;this.Sj=0;for(this.Ih=-1;a--;)this.Sj=this.Sj<<8|this.Lr.Sh()};f.$w.prototype.Loa=function(a){for(var b=0,c;a--;)this.Ih>>>=1,c=this.Sj-this.Ih>>>31,this.Sj-=this.Ih&c-1,b=b<<1|1-c,0===(this.Ih&4278190080)&&(this.Sj=this.Sj<<8|this.Lr.Sh(),this.Ih<<=8);return b};f.$w.prototype.Zj=function(a,b){var c=a[b],d=(this.Ih>>>11)*c;if((this.Sj^ 2147483648)<(d^2147483648))return this.Ih=d,a[b]+=2048-c>>>5,0===(this.Ih&4278190080)&&(this.Sj=this.Sj<<8|this.Lr.Sh(),this.Ih<<=8),0;this.Ih-=d;this.Sj-=d;a[b]-=c>>>5;0===(this.Ih&4278190080)&&(this.Sj=this.Sj<<8|this.Lr.Sh(),this.Ih<<=8);return 1};f.To=function(a,b){for(;b--;)a[b]=1024};f.Mm=function(a){this.tO=[];this.YG=a};f.Mm.prototype.Dg=function(){f.To(this.tO,1<b);return b&255};f.sF.prototype.Ooa=function(a,b){var c=1,d,e;do if(d=b>>7&1,b<<=1,e=a.Zj(this.nG,(1+d<<8)+c),c=c<<1|e,d!==e){for(;256>c;)c=c<<1|a.Zj(this.nG,c);break}while(256>c);return c&255};f.BF=function(){};f.BF.prototype.create=function(a, b){var c;if(!this.fG||this.MB!==b||this.AO!==a)for(this.AO=a,this.Zja=(1<>>8-this.MB)]};f.Ow=function(){this.Op=new f.Ap;this.Jh=new f.$w;this.MZ=[];this.RZ=[];this.SZ=[];this.TZ=[];this.UZ=[];this.QZ=[];this.Qx=[];this.u0=[];this.t0=new f.Mm(4);this.eO=new f.EA;this.eP= new f.EA;this.iO=new f.BF;this.oN=this.nN=-1;this.Qx[0]=new f.Mm(6);this.Qx[1]=new f.Mm(6);this.Qx[2]=new f.Mm(6);this.Qx[3]=new f.Mm(6)};f.Ow.prototype.Fxa=function(a){if(0>a)return!1;this.nN!==a&&(this.nN=a,this.oN=Math.max(this.nN,1),this.Op.create(Math.max(this.oN,4096)));return!0};f.Ow.prototype.Lxa=function(a,b,c){var d=1<c||vd?0:d-(10>d?3:6);else{if(1===this.Jh.Zj(this.RZ, d))w=0,0===this.Jh.Zj(this.SZ,d)?0===this.Jh.Zj(this.QZ,(d<<4)+a)&&(d=7>d?9:11,w=1):(0===this.Jh.Zj(this.TZ,d)?b=h:(0===this.Jh.Zj(this.UZ,d)?b=k:(b=u,u=k),k=h),h=e,e=b),0===w&&(w=2+this.eP.Ge(this.Jh,a),d=7>d?8:11);else if(u=k,k=h,h=e,w=2+this.eO.Ge(this.Jh,a),d=7>d?7:10,a=this.Qx[5>=w?w-2:3].Ge(this.Jh),4<=a)if(b=(a>>1)-1,e=(2|a&1)<a)e+=f.jxa(this.u0,e-a-1,this.Jh,b);else{if(e+=this.Jh.Loa(b-4)<<4,e+=this.t0.ixa(this.Jh),0>e){if(-1===e)break;return!1}}else e=a;if(e>=v||e>=this.oN)return!1; this.Op.moa(e,w);v+=w;w=this.Op.U3(0)}this.Op.flush();this.Op.IK();this.Jh.IK();return!0};f.Ow.prototype.Exa=function(a){var b,c;if(5>a.size)return!1;b=a.Sh();c=b%9;b=~~(b/9);if(!this.Lxa(c,b%5,~~(b/5)))return!1;b=a.Sh();b|=a.Sh()<<8;b|=a.Sh()<<16;b+=16777216*a.Sh();return this.Fxa(b)};f.Poa=function(a,b){var c=new f.Ow,d;if(!c.Exa(a))throw\\\"Incorrect stream properties\\\";d=a.Sh();d|=a.Sh()<<8;d|=a.Sh()<<16;d+=16777216*a.Sh();a.Sh();a.Sh();a.Sh();a.Sh();if(!c.Ge(a,b,d))throw\\\"Error in data stream\\\";}; var h=1E-9,k=RegExp(\\\"^[+\\\\\\\\-]?[0-1]*[.]?[0-1]*$\\\",\\\"gi\\\");a.getUnifyJson=function(a){var b=[];if(!(a instanceof ArrayBuffer)){var d={status:3,building:{},floor:{},id:\\\"\\\"};b.push(d);return b}new Uint8Array(a);a=new DataView(a);var h;h=4;var k=a.getInt16(h,!1);for(h+=2;0 h&&(h=d[l][0]),d[l][1]k&&(k=d[l][1]);d.yg=[e,f,h,k];return d},Mva:function(a){var b=[];a=a.coordinates;for(var c=0;c=this.qi.loaded},H5:function(a,b){return this.SY(a,b)>=this.qi.loaded},Fna:function(a,b,c){var d=b||a.Tc;if(d&&d!==this.Go){d=\\\"\\\"+d;b=a.gI;for(var e=[a.ha,a.bv,a.My,a.gv],f=[a.TI,a.hR,a.jz],h=[],k=0,l=b.length;k=this.qi.empty||h.push(\\\"\\\"+m)}this.mY(e,function(a){a=\\\"\\\"+a;return 0<=h.indexOf(\\\"\\\"+a)&&a!==d});this.mY(f, function(a){var b=a.split(\\\"_\\\"),b=b[0];return 0<=h.indexOf(b)&&0!==a.indexOf(d+\\\"_\\\"+(c?c:\\\"\\\"))})}},mY:function(a,b){for(var c=0,d=a.length;c=this.qi.loaded?console.warn(\\\"Floor alreay load!\\\",d,c):(c.gv[d]=this.Xca(a,c),c.My[d]=this.qi.loaded));a=c.Xp;if(!a)return console.log(\\\"Missing building geojson\\\", c.gv),c.Yr=this.qi.aoa,c;a=a.wa;c.TS||(c.TS=new g.U(a.centerPoint[0],a.centerPoint[1]));c.Yr=this.qi.loaded;return{error:null,result:c}},jka:function(a,b){b&&(a.an||(a.an=[]),a.an.push(b))},VS:function(a,b,c){c=c||{};\\\"string\\\"===typeof a&&(a={id:a});var d=this.Rh(a);d?d!==a&&g.extend(d,a):(d=g.extend({Yr:this.qi.empty,My:{}},a),this.fla(d));var e=this.wG(d);if(this.ES(d,e))return b&&setTimeout(function(){b(null,d)},0),!1;e=parseInt(e,10);if(isNaN(e))b&&b(Error(\\\"Floor should be an integer!\\\"));else if(d.gI&& 0>d.gI.indexOf(e))b&&b(Error(\\\"Floor out of range, try these: \\\"+d.gI));else{var f=this;a=!1;this.jka(d,function(a,d){e===f.Go&&(e=f.wG(d));a||f.ES(d,e)?b&&b(a,d):e===f.wG(d)?c.rxa?b&&b(Error(\\\"Floor request failed!\\\"),null):f.VS(d,b,g.extend({},c,{rxa:!0})):b&&b(Error(\\\"Requested floor expired!\\\"),null)});d.Yrd.zoom_max||d.zoom_min&&b-this.uoa.name.indexOf(\\\"polygon\\\")||!this.wY(a,b,{tt:\\\"polygon\\\"})||!a.style?!1:!0},this);return c.length===a.length?a:c},eY:function(a,b,c,d){d=g.extend({split:!0,margin:{x:10,y:10}},d);var e=d.I|| a.I,f=d.ge||a.ge,h=Math.pow(2,20-c),k=d.margin,l=Math.ceil((e[2]-e[0])/h)+2*k.x,e=Math.ceil((e[3]-e[1])/h)+2*k.y,f=[f[0]-k.x*h,f[1]-k.y*h];c=this.nP({zoom:c,T:h,ge:f,width:l,height:e},{split:d.split});f=0;for(h=c.length;f=a.total&&(a.status=1,a.ha=null)},lfa:function(){this.DY||(this.DY=g.a.bind(this.Nea,this));return this.DY},xla:function(a,b,c){c||(c=g.l.ba?300:1E3);b=a.eh;c=Math.min(b+c,a.total);var d=a.ha;b>=c||!d?a.status=1:(a.eh=c,a.Ba?\\\"function\\\"!==typeof a.Ba&&(this.lH(g.extend({},a,{kh:!1})),this.$a.LK(d.slice(b,c)), this.XX(a)):a.Ba=this.lfa(),b=!0,a.eh=e;e++)if(f=this.vG(a,e),c[f])return c[f];for(e=b;e>=d;e--)if(f=this.vG(a,e),c[f])return c[f];return null},jG:function(){this.GM||(this.GM=1);var a=document.createElement(\\\"canvas\\\");a.id=\\\"amap_indoor_c_\\\"+this.GM;this.GM++;return a},YM:function(a,b){var c=this.jG();this.EZ=c;c.width=Math.max(300,a);c.height=Math.max(300,b);c.mG={x:0,y:0,uh:0};return c},Bha:function(a,b,c){a=a.mG;a.x+=b;a.uh=Math.max(a.uh,c)},Kea:function(a,b){var c=this.EZ;c||(c=this.YM(a, b));for(var d=c.mG,d=[{x:d.x,y:d.y,uh:Math.max(d.uh,b)},{x:0,y:d.y+d.uh,uh:b}],e=0,f=d.length;e=d||!f)b.status=1;else{for(;eparseFloat(window.opera.version())&&(c=-c)):b.detail&&(c=-b.detail);this.xha(c)}},mousedown:{\\\"floor-nav\\\":function(a){a.kO=!1;var b=arguments, c=this;a.TG=setTimeout(function(){a.TG=null;a.kO=!0;a.mO&&(a.mO.apply(c,b),a.b_=!0)},1E3)}},mouseup:{\\\"floor-nav\\\":function(){b.apply(this,arguments)}},mouseover:{\\\"floor-nav\\\":function(a){g.f.Wa(a,\\\"hover\\\")}},mouseout:{\\\"floor-nav\\\":function(a){g.f.fb(a,\\\"hover\\\");b.apply(this,arguments)}},click:{\\\"floor-plus\\\":function(a){a.kO||this.n_(1)},\\\"floor-minus\\\":function(a){a.kO||this.n_(-1)},\\\"floor-nonas\\\":function(a){this.Oea(a.parentNode)}}};if(g.l.ba&&g.l.Uf){var d=this;this.$x=!0;g.ub.load(\\\"AMap.IndoorMapTouch\\\", function(){d.ZF=c;d.Aga();d.OM(a)})}else this.ZF=c,this.OM(a)}},Wfa:function(a){var b=a.target||a.target||a.srcElement,c=a.type;if(b){var d=[b,a];this.PY(function(a){for(var f in a)if(a.hasOwnProperty(f)&&!(0>f.split(\\\" \\\").indexOf(c))){var h=a[f],k;for(k in h)(\\\"*\\\"===k||g.f.An(b,k))&&h[k].apply(this,d)}})}},DN:function(a,b){var c=this.j.K.Pea,d=c.indexOf(a);if(0>d)console.warn(\\\"Can not found floor: \\\",a,c);else if(d+=b,!(0>d||d>=c.length))return{id:d,dv:c[d]}},n_:function(a){(a=this.DN(this.j.K.co,a))&& this.uP(a.dv)},xha:function(a){0c.Uma;this.wo(this.j.K,\\\"can-scroll\\\",d);this.j.K.S0=a;d&&(a=c.M9,d=c.gT,c=c.dT,ac&&(a=c),d=-parseInt(b.style.marginTop,10)||0,5this.$F(c)+e+5||b(this.$x?Infinity:5),h=document.createDocumentFragment(),k=g.f.create(\\\"div\\\", h,\\\"panel-box\\\");this.W0(b,c.name_cn);this.j.DU=g.f.create(\\\"div\\\",k,\\\"select-dock\\\");f&&(this.j.R7=this.hda(),k.appendChild(this.j.R7));var l=document.createElement(\\\"ul\\\");l.className=\\\"floor-list\\\";for(var m=e-1;0<=m;m--){var n=document.createElement(\\\"li\\\");n.className=\\\"floor-list-item\\\";n.innerHTML='
'+c.cqa[m]+\\\"
\\\";n.zr=c.iR[m];0===m?b.sha=n.zr:m===e-1&&(b.qha=n.zr);this.W0(n,d[m]);l.appendChild(n)}b.xCa=0;b.wCa=e-1;b.Pea=[].concat(c.iR);c=document.createElement(\\\"div\\\"); c.className=\\\"floor-list-box\\\";c.appendChild(l);k.appendChild(c);f&&(this.j.K6=this.dda(),k.appendChild(this.j.K6));b.Fp=a.id;b.appendChild(h);this.j.ys=l;this.j.gR=c;this.yca()},yca:function(){var a={floorBarContainer:this.j.K,floorListContainer:this.j.gR},b;for(b in a)if(a.hasOwnProperty(b)){var c=this.get(b+\\\"Style\\\");c&&this.zca(a[b],c)}},zca:function(a,b){if(a)for(var c in b)b.hasOwnProperty(c)&&(a.style[c]=b[c])}});z.q.Iaa=z.q.Zb.extend({A:function(){var a=0c.indexOf(\\\"click\\\")&&c.push(\\\"click\\\"),g.l.ba||(0>c.indexOf(\\\"mouseover\\\")&&c.push(\\\"mouseover\\\"),0>c.indexOf(\\\"mouseout\\\")&&c.push(\\\"mouseout\\\"))):c=c.split(\\\" \\\");a=a?b.h:b.G;for(var d=0,e=c.length;dg.a.eg()-this.MG},h_:function(){this.MG=g.a.eg()},g_:function(){this.MG= g.a.eg()},f_:function(){this.MG=0;this.nu({c5:!0})},Dca:function(){var a=this.getVisibleBuildingIds();a&&1===a.length&&this.setSelectedBuildingId(a[0])},e_:function(){this.LZ=!0},d_:function(){this.LZ=!1},lga:function(){this.vZ=!0;var a=this;setTimeout(function(){a.vZ=!1},0)},UG:function(){this.vZ||(this.r(\\\"map_click\\\"),this.iea({id:0},200))},c_:function(){this.jQ()},iea:function(a,b){var c=this;this.jQ();this.pG=setTimeout(function(){c.pG=null;c.vu(a)},b||300)},jQ:function(){this.pG&&(clearTimeout(this.pG), this.pG=null)},$O:function(){var a=!this.Ym()||!this.get(\\\"visible\\\");if(!a&&this.sa)var a=this.sa.get(\\\"zoom\\\"),b=this.get(\\\"zooms\\\"),a=ab[1];this.aj!==a&&(this.eG(),this.aj=a,g.Nj&&g.Nj.c9(!this.aj,this.sa),this.disableHoverMarkerChanged(),this.hO(!this.aj),this.nu(),this.aj&&(this.wx(null),this.JH(null)),this.oH());this.NA()},setSelectedBuildingId:function(a){g.c.add(this,\\\"setSelectedBuildingId\\\");this.vu({id:a})},vu:function(a){this.jQ();if(this.Wl!==a.id){if(this.Wl){var b=this.Gb.Rh(this.Wl); b&&(b.rH=!1,this.WX(b.id))}this.r(\\\"selectedBuildingIdChanged\\\",{oldId:this.Wl,newId:a.id});this.Wl=a.id;if(a=this.Gb.Rh(a.id))a.rH=!0;this.so()}this.nu()},NA:function(){if(this.sa&&!g.l.ba)for(var a=this.sa.get(\\\"zoom\\\"),b=[this.sa],c=!this.aj&&this.TB&&0f[1]&&(b[d].set(\\\"zooms\\\",[f[0],20]),b[d].pva=f[1]):18'+d+\\\"\\\")),this.lY(c.Of||c.lnglat,!0)):(this.vO=null,this.$f.hide(),this.$f.setContent(\\\"\\\")));this.Rka(b)},Rka:function(a){this.KV&&g.a.si(this.KV);this.KV=g.a.Xc(function(){this.KV=null;this.K0(a)},this)},Sfa:function(a){if(this.aj)console.warn(\\\"Layer is hidden\\\");else{var b=this.oja(a); if(!b)this.wx(null),b=null;else if(b.building_id){a.eCa=!0;a.type||(a.type=a.type);var c=b.building_id,d=\\\"click\\\"===a.type,e=\\\"mouseover\\\"===a.type,f=\\\"mouseout\\\"===a.type;if(d||e)d&&this.lga(),this.Wl!==c&&this.vu({id:b.building_id});e?(this.kP(\\\"default\\\"),this.wx(a.uu,c,a,b)):f&&(this.kP(this.get(\\\"cursor\\\")),this.wx(null))}g.event.O(this,a.type,b||a)}},oH:function(a){this.jP&&clearTimeout(this.jP);var b=this;this.jP=setTimeout(function(){b.jP=null;b.so()},a||100)},cg:function(){if(!this.Yt)return null; var a=this.constructor.cd.cg.apply(this,arguments),b=this;setTimeout(function(){b.mapChanged()},0);return a},mB:function(){return this.get(\\\"map\\\")},$ea:function(){var a=this.mB();return a?a.map:null},dCa:function(){var a=this.mB();return a?g.Nj.G3(a):null},cCa:function(a,b){var c=this.sa.getResolution(),d=this.sa.Cb(this.sa.get(\\\"center\\\")),e=b.yi(),f=this.sa.get(\\\"size\\\"),h=Math.abs(d.y-e.y)/c;return Math.abs(d.x-e.x)/c>3*f.width||h>3*f.height},AN:function(){if(this.aj||!this.Ym())return[];var a=this.HN(), b=[],c=[];a&&this.Gb.forEach(function(c){if(this.Gb.DS(c)){var d=this.Gb.lm(c);d&&a.$g(d,0)&&b.push(c.id)}},this);if(c.length)for(var d=0,e=c.length;de.R-d.R?a.x-=g.a.Fa:180d)return!0}}return!1},Fka:function(a,b){var c=this.dP;c&&this.Ola(a,b)&&(c=!1);for(var d=0,e=a.length;ds[1]?Math.PI:0:x[1]===s[1]?s=x[0]>s[0]?Math.PI/2:-Math.PI/2:(m=x[0]-s[0],x=x[1]-s[1],s=Math.atan(m/x),0m&&0>x?s=-s:0x?s=-s:0>m&&0g.a.Fa/2&&(d.x-=g.a.Fa);d=d.nd(this.ym);1!==c&&(b.K.style[g.f.qg]=\\\"scale3d(\\\"+c+\\\",\\\"+c+\\\",1)\\\");b.K.style.top=-d.y*c+\\\"px\\\";b.K.style.left=-d.x*c+\\\"px\\\"; return}}(d=this.g.E4())&&d.call(this.g.S,a);this.g.Ra||(this.g.Ra=!0,g.a.Xc(function(){this.g&&(this.g.Ld?this.g.qa(\\\"renderComplete\\\"):(this.g.Ld=!0,this.g.qa(\\\"complete\\\")))},this));this.Na=c;this.ym=a.P.T;this.Df=a.P.zoom;b.K.style.zIndex=b.zIndex;b.K.style[g.f.qg]=\\\"\\\";b.K.style.top=\\\"\\\";b.K.style.left=\\\"\\\";b.K.style.height=\\\"\\\";b.K.style.visibility=\\\"\\\";g.f.Yq(b.K,b.opacity)}}}); \"}" + }, + { + "name": "_AMap_wgl", + "value": "{\"version\":\"1768801478717\",\"script\":\"g.l.sp&&(g.H$=function(a){function b(a,b,c,e,f,h,k){var l=a.Oa;c=[];e=a.Ig;var m=null,n=null,s;a.Oa=[];h=h&&16b[2]?1:a.v5>b.v5?1:-1});for(var u={},v=0,t=q.length;vb[2]?1:a[2]r[1].length)break a;l=r[1];h=r[0]}else 2l;l++)h.push(c[0]+d*Math.cos(e),c[1]+d*Math.sin(e)),e+=f,0Math.sqrt(3)/2&&(d=Math.sqrt(3)/2);c=c.ps(d)}return c}function f(a,c,e){if(void 0===e||!0===e)b.push(a[0],a[1]),b.push(-c.y,c.x,0,0),b.push(n,0,0),d.push(a[2]);if(void 0===e||!1===e)b.push(a[0],a[1]),b.push(c.y,-c.x,0,0),b.push(n,0,0),d.push(a[2])}for(var k=a[0],l=a[a.length-1],n=0,r=void 0;k[0]===l[0]&&k[1]===l[1]&&k!==l;)a.pop(), l=a[a.length-1];a.push(k);a.push(a[1]);a.unshift(l);var q=a.length;a.forEach(function(a,d,k){var l=k[d-1];k=k[d+1];var u=void 0;l&&(n+=s.Vd(a,l));if(0===d||d===q-1)0===d?(u=s.normalize(new h(k[0]-a[0],k[1]-a[1])),c.push(0,1,2)):(u=s.normalize(new h(a[0]-l[0],a[1]-l[1])),d=b.length/p+2,c.push(d-3,d-1,d-2)),f(a,u);else{d=s.normalize(new h(a[0]-l[0],a[1]-l[1]));k=s.normalize(new h(k[0]-a[0],k[1]-a[1]));l=s.normalize(d.multiply(-1).sk(k));r=s.FS(l,d);f(a,e(d,k),!0);f(a,e(d,k),!1);f(a,e(d,k),!0);f(a,e(d, k),!1);a=b.length/p-4;k=a+2;var u=a*p,t=u+p,E=t+p,C=E+p;d=Math.abs(s.cos(d,l)/s.sin(d,l));l=m;r?(b[u+l]=d,b[t+l]=-d,b[E+l]=-d,b[C+l]=d):(b[u+l]=-d,b[t+l]=d,b[E+l]=d,b[C+l]=-d);c.push(a,a-1,a+1);c.push(k,k+1,k+2)}})}function e(c,d,e){function f(a,b){if(r)for(;0=a&&(a+=2*Math.PI);return a}};h.prototype={sk:function(a){return new h(this.x+a.x,this.y+a.y)},zf:function(a){return new h(this.x-a.x,this.y-a.y)},multiply:function(a){return\\\"number\\\"===typeof a?new h(this.x*a,this.y*a):this.x*a.x+this.y*a.y}, ps:function(a){return new h(this.x/a,this.y/a)},$u:function(a){var b=a.y;return this.x===a.x&&this.y===b}};return{parse:function(a,b){var h=a.lineJoin,h=void 0===h?\\\"bevel\\\":h,k=a.lineCap,k=void 0===k?\\\"butt\\\":k,l=a.Vsa,l=void 0===l?!1:l,m=a.ez,n=void 0===m?!1:m,r=a.y7,m=a.Tya,s=void 0===m?!0:m,m=a.Lsa,q=[],B=[],G=f(a.Rv,void 0===r?!0:r),r=[];l?(d(G,q,B,r),h=q.length,[0,1,2,h/p-1,h/p-2].forEach(function(a){q[a*p+8]=-1})):(c(G,q,B,h,n,r),e(G,q,B,k,r));s&&(q=new Float32Array(q),B=655351) {v_op=a_op.xy;v_TB=a_op.z;vec3 curPos=position.xyz;v_distance=a_Next.z;float ddis=0.0;vec3 previous=vec3(a_Previous.x+u_xDelta,a_Previous.y,0);vec3 next=vec3(a_Next.x+u_xDelta,a_Next.y,0);vec4 up,dir;v_distance *= u_scale;if(previous==curPos){ dir= vec4(normalize(next-curPos).xy,0,0);}else if(next==curPos){dir= -vec4(normalize(previous-curPos).xy,0,0);}else {vec3 dir0=previous-curPos;vec3 dir1=next-curPos;vec3 dir2=normalize(dir0);vec3 dir3=normalize(dir1);float f0=dir0.x*dir1.y-dir1.x*dir0.y;dir = vec4(0); v_cap=1.0;if(f0==0.0){up = vec4(dir3.y,-dir3.x,0,0); }else{vec3 dir4=normalize(dir2+dir3);float sinA=length(cross(dir4,dir2));float cosA=dot(dir4,dir2);if(sinA<0.5){sinA=0.5;}up= vec4(dir4,0)/sinA;ddis=abs(length(up)*cosA*u_width*0.5);if(f0<0.0){up=-up;ddis=-ddis;}v_distance += v_TB*a_Previous.z*ddis;}}if(previous==curPos||next==curPos){ up = vec4(dir.y,-dir.x,0,0); if(u_type==4){v_cap=sqrt(v_TB*v_TB+a_Previous.z*a_Previous.z);}else if(u_type==3){v_cap=1.0;}else{dir = vec4(0);}}vec4 pos=u_zoomMatrix*u_modelMatrix*position;pos=pos+(up*v_TB-dir*a_Previous.z)*u_width*0.5;gl_Position=u_othMatrix*pos;}else if (u_type==1) {v_Tags=a_Tags;gl_Position=u_othMatrix*u_zoomMatrix*u_modelMatrix*position;}}\\\", raa:\\\"precision lowp float;uniform vec4 u_FragColor,u_FragColor2;varying lowp float v_distance,v_TB;varying vec2 v_op;varying lowp float v_Tags;varying float v_cap;uniform lowp int u_type;uniform int u_isDash,u_onlyBorder;uniform vec4 u_dash;void main() {vec4 color=u_FragColor;if (u_type==0) {}else if(u_type>1) {if(v_op.x<-0.2||v_op.x>256.2||v_op.y<-0.2||v_op.y>256.2){discard;}if(v_cap>1.0){discard;}if(u_isDash==1){float all = u_dash[0] + u_dash[1] + u_dash[2] + u_dash[3];float off = mod(v_distance - u_dash[0], all);if(off> u_dash[0]&&off<=(u_dash[0]+u_dash[1])||off>(all-u_dash[3])){discard;}}if(u_onlyBorder==1&&v_TB<=0.7&&v_TB>=-0.7){discard;}}else if(u_type==1) {color=v_Tags==3.0?u_FragColor2:vec4((u_FragColor+(u_FragColor2-u_FragColor)*v_Tags/3.0).xyzw);}gl_FragColor=color;}\\\", reloadChanged:function(){this.g&&(this.g.Ra=!1);this.oa.clear();this.xa&&this.xa.parentNode&&this.xa.parentNode.removeChild(this.xa);this.set(\\\"display\\\")},Bz:function(a){if(this.g&&a.PS===this.g.mc)for(var b=0,c=a.Pc.length;bthis.zoom))for(d.uniform1i(this.Ak,1),this.Zp(0,void 0,void 0),d.disableVertexAttribArray(this.hj),d.disableVertexAttribArray(this.gj),d.disableVertexAttribArray(this.Rg),d.enableVertexAttribArray(this.cy),f=0,h=e.length;ff&&(this.fq=f);this.hya()}},K7:function(){var a=new Date,b=!1;do if(b=this.parse(),new Date-a>=this.iW)break;while(!b);this.C7=b?null:g.a.Xc(this.K7,this)},hya:function(){this.C7|| (this.C7=g.a.Xc(this.K7,this))},woa:function(){return document.createElement(\\\"canvas\\\")},parse:function(){var a,b=!1,c=this.fq,d=this.pw[this.fq];if(d.vh())6===c&&(b=!0),this.fq=(this.fq+1)%7;else{a=d.Eua();var e=a[3],f=e.ja?512:256;if(\\\"groupcomplete\\\"===a[0])e.set(\\\"display\\\",0);else{var h=a[2];if(e.oa.Nd(h.key))if(\\\"co\\\"===a[0])if(3===a[1])this.OT(e,h,f),h.ra.region&&e.$a.MK(h.ra.region,0,h.ta.z);else if(4===a[1])this.OT(e,h,f),h.ra.road&&e.$a.B8(h.ra.road,h.ta.z);else if(5===a[1]&&h.ra&&h.ra.building)a= g.Nj&&g.Nj.M5(e.e.D),e.Be?h.uf=h.ra.building:(this.OT(e,h,f),e.$a.MK(h.ra.building,1,h.ta.z,void 0,a));else{if(7===a[1]){h.ld&&(e.DL&&0===(h.ta.x+h.ta.y)%2&&h.ld.getContext(\\\"2d\\\").drawImage(e.DL,0,0),h.Bma=!0,g.l.GD&&h.ld.toDataURL&&(f=new Image,f.src=h.ld.toDataURL(),h.ld=f));if(\\\"3D\\\"===(e.e.D&&e.e.D.getViewMode_())){if(h.nl){h.nl.cf=null;h.Vh=null;a=e.e.Hc;if(e.Cf&&a.Cf){c=a.Cf.cI(a.Cf.ca,h.nl);c.mc=a.Cf.mc;a={ni:c,tagName:\\\"CANVAS\\\",width:h.nl.width,height:h.nl.height};c=0;for(f=h.ha.length;c=this.pD(c)&&1>=this.pD(d)?1>=this.qD(c)&&1>=this.qD(d)?\\\"middle\\\":c[1]p){var s=Math.pow(2,p);if(q>=s||0>q)q=(q+s)%s}q=g.a.HI(q,r,p).join(\\\",\\\");g.a.ka(e,q)||e.push(q)}if(this.ay())if(m=this.bfa({Kya:d,Je:c,Od:b,hr:e}),m.LCa=(new Date).getTime(), this.Di)g.Lk.yh(m,function(a,c){if(f.e)if(c.U5){var d=c.Jb.map(function(a){return f.oa.get(a.key)}).filter(function(a){return a});f.Ml(d,b)}else f.Vo?(g.a.Ub(c.Jb,function(a){this.oa.set(a.key,a);a.td&&!a.td.loaded&&(g.jk.vm(a.td),a.td.loaded=!0);a.qe&&a.qe.uf&&g.Mj&&g.Mj.r(\\\"vecTileParsed.buildings\\\",{tp:a})},f),f.set(\\\"display\\\"),f.M1(c,!0)):(g.a.Ub(c.Jb,function(a){var b=this.oa.get(a.key);b&&(b.status=a.status,a.L&&a.L.Ca&&this.hha(a.L.Ca))},f),c.data&&f.Bz(c.data))});else{var u=g.Fc.v6;this.e.D.Ra&& !g.Fc.Yoa&&this.e.D.xq||(u=g.Fc.yh);this.bG();u(m,function(a,c){if(f.e){if(c.U5){var d=c.Jb.map(function(a){return f.oa.get(a.key)}).filter(function(a){return a});f.Ml(d,b)}if(u===g.Fc.v6){if(c.disabled){g.Fc.Yoa=!0;f.set(\\\"display\\\");return}if(c.Ula)return}c.data&&(f.e.Ee!==c.Fu&&(f.e.Ee=c.Fu),g.a.Ub(c.Jb,function(a){var b=this.oa.get(a.key);b&&(b.status=a.status)},f),f.M1(c),c.data&&f.Bz(c.data))}})}else!this.Di&&this.Lc&&this.Lc.V5()?this.e.D.get(\\\"workerMode\\\")?this.RG(d,b,e,c):(1>this.Lc.za.length|| 3=b){var e= this,f=this.e,h=f.D;f.QS||void 0!==f.YS||(\\\"dv\\\"===h.get(\\\"baseRender\\\")?f.YS=1:f.YS=2);d.get({type:h.Ra?\\\"NFS\\\":\\\"FS\\\",Be:this.g.zv||this.g.Be,Fya:a,Nf:!!this.ll,q:this.g,url:this.Ny(b,[]),timeout:1E3},function(d,h){if(e.g){if(d)return c(null,a);h.L6.length&&c(null,h.L6);if(h.lS.length)if(h.lS.length===a.length&&(f.QS&&f.YS--,e.e.D.Ra||e.Di||e.HD||e.e.gU()),h.Pc){e.df=h.Ug[\\\"x-vd-v\\\"];e.Oh=h.Ug.tv;var m=h.Ug.bgc;e.e.Ee!==m&&(e.e.Ee=m);g.a.forEach(h.lS,function(a){a.status=\\\"loaded\\\"});e.G7(h.Pc,b)}else h.r6&& (g.a.forEach(h.r6,function(a){var b=e.oa.get(a.key);if(b){b.status=\\\"loaded\\\";b.qe=a.qe;if(a.td){b.td=a.td;b.ha=a.ha;var c=\\\"limg-\\\"+a.key+\\\"-\\\"+e.g.mc;b.td.Dk=c;b.ha&&(g.a.forEach(b.ha,function(a){a.Ca&&g.a.forEach(a.Ca,function(b,d){b&&0===b.indexOf(\\\"limg-\\\")&&(a.Ca[d]=c)})}),g.jk.vm(b.td),b.td.loaded=!0)}b.qe&&b.qe.uf&&g.Mj&&g.Mj.r(\\\"vecTileParsed.buildings\\\",{tp:b});b.Ba=b.Ra=!0;e.oa.set(a.key,b)}}),e.set(\\\"display\\\"))}})}else c(null,a)},jha:function(a,b,c,d){if(!d||!this.dC()){var e=[(new Date).getTime(), this.Lc.za.length+1&65535,d?1:0].join(\\\"-\\\"),f={command:\\\"tiles\\\",reqId:e,payload:{t:c,opt:b,cs:{level:b,flds:this.g.ha.join(\\\",\\\"),v:g.Ue?\\\"3\\\":\\\"2\\\"}}},h;if(!this.Lc.GJ()){var k=this;setTimeout(function(){k.Lc&&!k.Lc.GJ()&&(k.ru?k.ru++:k.ru=1,k.Lc.zpa(h)&&(delete k.ug[e],k.RG(a,b,c,d)))},300)}h=this.Lc.send(f);this.ug[e]={Jb:a,Od:b}}},qT:function(a){if(!a.Ra||a.Je)a.status=\\\"\\\",a.Ra=void 0,a.Ba=null,a.ld=null,this.oa.Cw(a.key)},bfa:function(a){var b=a.Kya,c=a.Od,d=a.hr;a=a.Je;return{mc:+new Date+\\\"_\\\"+Math.random(), Fu:this.e.Ee,Dd:this.e.Dd,Di:this.Di,Vo:this.Vo,Be:this.g.Be,Hsa:!!g.Ue,Vf:this.J.type,Nf:this.ll,OS:this.g.mc,ha:this.g.ha,Kc:this.g.ja,Ua:this.g.Ua,ZR:Math.ceil(this.rk.Xy),Jb:g.a.filter(b,function(a){return\\\"loaded\\\"!==a.status}),Od:c,hr:d,Je:a,url:this.Ny(c,d,b),Ch:this.bZ(c,[]),VFa:this.e.D.Ra}},bZ:function(a,b){return{AS:\\\"3D\\\"===this.J.type,ZP:this.g.Be,Xr:g.o.Xr||null,hDa:this.g.get(\\\"businessIconsID\\\"),df:this.df,Dd:this.e.Dd,Oh:this.Oh,eFa:this.g.get(\\\"iconsID\\\"),PS:this.g.mc,Gv:a,az:this.g.az, Pf:!this.g.zn()&&this.g.S.get(\\\"merge\\\"),Pc:b,ba:this.g.get(\\\"forceBig\\\")||g.l.ba,Vf:this.J.type,mode:this.g.get(\\\"mode\\\"),lwa:g.o.Cc,G8:this.g.get(\\\"forceBig\\\")?1:this.g.Ua,Sq:this.g.get(\\\"forceBig\\\")?!1:this.g.ja,iy:this.g.get(\\\"forceBig\\\")||g.l.ba&&!this.g.ja?1:0}},cB:function(a){a=a.split(\\\";\\\");for(var b=0,c=a.length;bk&&(f<=e&&d(f+q,h,k),f>=q-e&&d(f-q,h,k));d(f,h,k)},SB:function(a){this.xu||(this.xu=[]);this.xu.push(a)},dk:function(){if(this.xu&&this.xu.length){for(var a=0,b=this.xu.length;af.readyState)){var c=4===f.readyState&&0===f.status;b!==k.gb&&c&&!f.Ot?(f.Ot=!0,k.Ml(a,b),f.onreadystatechange=\\\"\\\",c||f.abort()):f.Ot||(3===f.readyState?(c=f.responseText.substring(h),f.Oq=d(c,f.Oq),h=f.responseText.length): 4===f.readyState&&(c=f.responseText.substring(h),k.Di&&(c+=\\\"|\\\"),d(c,f.Oq),f.Oq=\\\"\\\"))}};f.onerror=function(){};this.Sra||(this.Sra=1);f.open(\\\"GET\\\",e,!0);f.send()},Y9:function(a,b){var c=this.Jw||this.rk,d=a.ta.x,e=a.ta.y;return d>Math.floor(c.Ic/b)||dMath.floor(c.tc/b)||eg.a.Fa/2&&(d.x-=g.a.Fa);this.dQ=d.nd(this.Hg);for(d=c.length-1;0<=d;d-=1){var e=c[d];if(e.length){var f=e[0].ta.z,h=!1;if(e.wg&&!g.Ca.Ke&&(\\\"stable\\\"==this.Hf||f<=this.zoom&&\\\"zoomIn\\\"===this.Hf||f>=this.zoom&&\\\"zoomOut\\\"===this.Hf)&&(!this.labels||!this.labels.length||this.MJ||a.Gi||!this.sE(this.labels.yk,this.rk)|| this.xJ(a)||this.ue!==a.ue)){h=!0;h=[];a.ue&&(h.push.apply(h,a.ue),this.ue=a.ue);a.pb.length?(h.push.apply(h,a.pb),this.QN=a.pb.hI):this.QN=null;for(var k=e.length-1;0<=k;k-=1){var l=e[k],m=!1,n=l.ha;l.se&&(l.se=!1,this.RI(\\\"poilabel\\\",l.ha,void 0,!0),this.Vj.I3(l));!n&&l.qb&&l.qb.ha&&(n=l.qb.ha,m=!0);if(n)for(var p=0,l=n.length;pb.zIndex?-1:1:!a.Ed^!b.Ed?a.Ed?1:-1:a.Ed==b.Ed?a.id==b.id?a.te==b.te?a.nameb.te?-1:1:a.idb.Ed?-1:1});this.labels=e;this.labels.yk=this.rk;this.MJ=!1}}}if(this.gQ(a)){this.Bd();if(!this.e.D.Ra)return;this.mU(a);this.sh=this.labels}this.X6=!1;this.Oe(a)},eT:function(a){this.labels&&this.labels.opacity||(this.labels=[],this.labels.opacity={}); for(var b={},c=0;cg.a.Fa/2&&(b.x-=g.a.Fa);this.transform={translate:new g.H(a.P.Ha.Ac.x*(this.g.ja?this.g.Ua:1),a.P.Ha.Ac.y*(this.g.ja?this.g.Ua:1)),scale:1/(this.g.ja?this.g.Ua:1),rotate:0}},sE:function(a,b){return a.hc===b.hc&&a.Jc===b.Jc&&a.tc===b.tc&&a.Ic===b.Ic},xn:function(a, b){var c;if(this.zoom){var d=a.nd(Math.pow(2,20-this.zoom));this.labels&&(c=this.Qqa(d,b))&&(c.N5=!1);!c&&this.pb&&(c=this.Pqa(d))&&(c.N5=!0)}return c?[c]:[]},Qqa:function(a,b){for(var c=a.x,d=a.y,e=this.labels.IFa||this.labels,f=e.length-1;0<=f;f-=1){var h=e[f],k=h.za[0]/this.T,l=h.za[1]/this.T;if((h.Ys||!b)&&this.J5(h,c,d,k,l))return h}},Pqa:function(a){var b=a.x;a=a.y;for(var c=this.pb.length-1;0<=c;c-=1){var d=this.pb[c],e=d.za[0]/this.T,f=d.za[1]/this.T;if(d.Ys&&this.J5(d,b,a,e,f))return d}}, J5:function(a,b,c,d,e){for(var f=0;f=d+l-1&&b<=d+l+h+1&&c>=e+m-1&&c<=e+m+k+1)return!0}return!1},reloadChanged:function(){this.g&&(this.g.Ra=!1);this.oa.count&&(this.oa.clear(),g.Oj&&g.Oj.clear());this.labels=[];this.l6=[];this.Ob&&this.Ob.parentNode&&this.Ob.parentNode.removeChild(this.Ob);this.$m&&this.$m.parentNode&&this.$m.parentNode.removeChild(this.$m); this.set(\\\"display\\\")},vj:function(){return this.$m},reCalcLabelPos:function(){this.oa&&this.oa.forEach(function(a){a.se=!0})},styleChanged:function(){this.reCalcLabelPos&&this.reCalcLabelPos()},RI:function(a,b,c,d){if(b&&(\\\"roadlabel\\\"===a||\\\"poilabel\\\"===a))for(a=0;aA[0]||256<=A[0]||0>A[1]||256<=A[1])){var B=q.Hz(A,f),A={margin:0,z:m,zIndex:9E3,za:B,name:w[0],Bj:!0,Ta:A,Ca:[],aa:[],visible:!0,xk:!0};A.id=\\\"roadlabel_\\\"+ g.a.zb(A);A.Wq=15>w[2]%90||75A[0]||256<=A[0]||0>A[1]||256<=A[1])){B=q.Hz(A,f);A={id:w[4],margin:n,zIndex:9001,za:B,name:w[0].replace(\\\"^\\\",\\\"\\\"),mk:!0,Ta:A,Ca:[],aa:[],visible:!0,xk:!0};A.id||(A.id=\\\"poilabel_\\\"+g.a.zb(A));P=0;A.Ed=w[8];w[6]&&(I=w[6].split(\\\":\\\"),P=I[1],H=Math.floor((parseInt(I[0].split(\\\"_\\\")[1])-28)/2));if(P&&w[3]){I=g.o.Cc+\\\"://vdata.amap.com/style_icon/icon-\\\"+ (1===H?\\\"biz-\\\":\\\"normal-\\\")+(k||l?\\\"big\\\":\\\"small\\\")+\\\".png\\\";A.Ca.push(I);P=parseInt(P)-1;I=Math.floor(P/10);L=P%10;l?(M=48,K=40,F=28):k?(M=K=40,F=28):(M=K=24,F=20);Q=M;if(151===P||152===P||153===P)F-=4,G=w[7][0][2],Q=M*Math.max(G+2,F)/F;I=[-Q/2,-M/2,Q,M,K*L,K*I,K,K];A.aa.push(I)}if(w[2]&&w[7])for(G=w[2],I=0;Ip&&(c<=m&&f(c+w,n,p),c>=w-m&&f(c-w,n,p));f(c,n,p);return h}};g.M.canvas.rM=g.M.canvas.Qj.extend({ka:[g.sM]});g.M.canvas.Qj.Ib({mU:function(a){this.Wx++;var b=this.$m,c=this.Sk;this.Wy={};var d=this.g.ja?this.g.Ua:1;this.lh=d;var e;0!==a.P.rotation?(e=2*Math.floor(a.P.Ha.Ac.x)*d,d*=2*Math.floor(a.P.Ha.Ac.y)):(e=a.size.width*d,d*=a.size.height);g.f.zm(b,e,d,!0);g.l.Bna&&b.parentNode&&b.parentNode.appendChild(b);c.textBaseline=\\\"bottom\\\";this.gk=0;this.labels&&this.LT(this.labels);this.labels&&this.Twa(this.labels,c,g.Nj.Zqa(this.e.D),this.jd,e,d);this.i6=[];this.labels&&(this.labels.pp=this.zoom,this.labels.op= this.nb,this.labels.Rq=this.rotation,this.labels.NK=this.g.ja,this.labels.size=a.size);a.pb&&(this.pb=a.pb);this.pb&&(this.pb.pp=this.zoom,this.pb.op=this.nb,this.pb.Rq=this.rotation,this.pb.size=a.size);this.r(\\\"afterLabelRender\\\")},Swa:function(a,b,c){var d=void 0===b.xk?!0:b.xk,e=1,f=void 0===b.visible?!0:b.visible,h=null,k=this.e.J.be;if(b.Cm&&k){var l=k=h=\\\"\\\";b.rc&&b.rc.length&&this.LQ&&(l=b.rc[0],h=l[3],k=l[4],l=b.Bj?\\\"\\\":l[7]);if(h=this.J.Py&&this.J.Py(h,k,l,b.Cm,b.Uu))f=h[4],d=h[3],e=h[5]}if(f){if(this.Sk.globalAlpha!== c||e)this.Sk.globalAlpha=c||e;f=0;for(k=b.Ca.length;fg.a.Fa/2?c-=g.a.Fa:c<-g.a.Fa/2&&(c+=g.a.Fa));return this.Mu(c,a[1])},Mu:function(a,b){var c=this.g.ja?this.g.Ua:1,d=this.T,e=0,f=0,e=(a-this.ge[0])/d,f=(b-this.ge[1])/d;return[Math.round(e*c),Math.round(f*c)]},j4:function(a,b){var c=a[0];b&&(c> g.a.Fa/2?c-=g.a.Fa:cb.Xd.x||c[1]>b.Xd.y||c[0]e?(a.opacity[b]-=e,d.ze=1,d.gk=1):a.opacity[b]=0}var d=this,e=0.34;if(!a.qF||\\\"stable\\\"==this.Hf&&\\\"stable\\\"!=this.NS){for(var f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l])}a.qF=!0}else if(\\\"zoomIn\\\"== this.Hf){f=0;for(h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);f=0;for(h=a.length;fthis.zoom)for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);else for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);return!1},Twa:function(a,b,c,d,e,f){d=!1;18===a.zoom&&18 l[0]||l[0]>e+256||-256>l[1]||l[1]>f+256||a.opacity[k.id]&&this.Swa(l,k,a.opacity[k.id])}}},xJ:function(a){if(a.pb&&a.pb.length)if(this.pb&&this.pb.length){if(this.pb!==a.pb||this.pb.pp!==this.zoom||this.pb.op!==this.nb||this.pb.Rq!==this.rotation||!this.pb.size.hb(a.size))return!0}else return!0;else if(this.pb&&this.pb.length)return!0},gQ:function(a){this.sh&&this.sh.NK!==this.g.ja&&this.g.set(\\\"reload\\\");return this.gk||this.xJ(a)||this.labels&&(this.e.kR||this.labels!==this.sh||!this.sh||this.sh.pp!== this.zoom||this.sh.op!==this.nb||a.Gi||this.sh.Rq!==this.rotation||this.sh.NK!==this.g.ja||!this.sh.size.hb(a.size))?!0:!1},r5:function(a,b,c){var d,e=b.aa.length,f=[];if(b.Ji>this.zoom)d=!0;else for(var h=0;ha?0:255< a?255:Math.round(a)},A1:function(a,b){for(var c=0;4>c;c++)a[b+c]=this.Dla(a[b+c]);return a},gP:function(a,b){var c=259*(b+255)/(255*(259-b));return[c*(a[0]-128)+128,c*(a[1]-128)+128,c*(a[2]-128)+128]},Yka:function(a){return[255-a[0],255-a[1],255-a[2]]},hP:function(a,b){isNaN(b)&&(b=20);var c=Math.max(0,0.299*a[0]+0.587*a[1]+0.114*a[2]-b);switch(this.Eq){case \\\"amap://styles/normal\\\":case \\\"normal\\\":return[1*c,1.2*c,255];case \\\"amap://styles/light\\\":case \\\"light\\\":return[1*c,1*c,255];case \\\"amap://styles/fresh\\\":case \\\"fresh\\\":return[1* c,1*c,220];case \\\"amap://styles/grey\\\":case \\\"amap://styles/dark\\\":case \\\"insight\\\":case \\\"dark\\\":return[1.5*a[0],1.5*a[1],1*a[2]];case \\\"amap://styles/blue\\\":case \\\"amap://styles/darkblue\\\":case \\\"blue_night\\\":case \\\"mapv\\\":return[2*a[0],1.5*a[1],1*a[2]]}return!1},jga:function(a,b){var c=20,d=10;switch(b.So){case \\\"active\\\":c+=20,d+=20}return this.gP(this.hP(a,c),d)},uZ:function(a,b){var c=-110;switch(b.So){case \\\"active\\\":c+=30}return this.gP(this.hP(this.Yka(a),c),50)},gga:function(a){return this.gP(a,20)},tZ:function(a, b,c,d,e,f){var h=a[b],k=a[b+1],l=a[b+2];a=a[b+3];0b[m+3])){e++;kh[0]&&(h[0]=k);l>h[1]&&(h[1]=l);for(var n=!0,p=0;4>p;p++)if(220>b[m+p]){n=!1;break}n&&d++}}return{hAa:0Math.abs(a[0]-b[0])&&0.1>Math.abs(a[1]-b[1])},sla:function(a,b){for(var c=[a[0]],d=1,e=a.length;d=e&&f<=n)for(e=0;e=e&&f<=n)for(e=c-1;0<=e&&!this.yH(a,f,e,b, c,m,d);e--);}if(!l.length||!m.length)return null;m.reverse();h.reverse();if(this.Px(l[l.length-1],k[0])&&this.Px(k[k.length-1],m[0])&&this.Px(m[m.length-1],h[0])&&this.Px(h[h.length-1],l[0])){b=[m,h,l,k];e=0;for(a=b.length;eb[e].length||(b[e]=this.sla(b[e],d.E6),b[e])))return null;return[].concat(b[0]).concat(b[1].slice(1)).concat(b[2].slice(1)).concat(b[3].slice(1))}return null},Vea:function(a){for(var b=[Infinity,Infinity],c=[-Infinity,-Infinity],d=0,e=a.length;df&&(b[0]=f);b[1]>h&&(b[1]=h);c[0]e?this.vX(a,b,c,d):d&&d.call(this)}},this):d&&d.call(this)},Ida:function(a,b,c){a=a.createImageData(b.width,b.height);var d=a.data,e=a.width,f=a.height,h=c[0]+c[2],k=c[1],l=c[1]+c[3];for(c=c[0];cp;p++)d[n+p]=b.data[n+p];return a},bha:function(a,b,c){var d=a[1]+(b[1]-a[1])*c;return[Math.round(a[0]+(b[0]-a[0])*c),Math.round(d)]},Dga:function(a,b,c){for(var d=1/c,e=[],f=1;fs&&(a<=n&&c(a+q,r,s),a>=q-n&&c(a-q,r,s));c(a,r,s)},Tua:function(a,c){for(var d=a.fF,e=a.Dn,f=[],h=0,k=d.length;hv[0]||256<=v[0]||0>v[1]||256<=v[1])){var u=t.Hz(v,b),v={margin:0,z:f,zIndex:9E3,za:u,name:m[0],Bj:!0,Ta:v,Ca:[],aa:[],visible:!0,xk:!0};v.id=\\\"roadlabel_\\\"+d.zb(v);v.Wq=15>m[2]%90||75v[0]||256<=v[0]||0>v[1]||256<=v[1])){u=t.Hz(v,b);v={id:m[4],margin:e,zIndex:9001,za:u,name:m[0].replace(\\\"^\\\", \\\"\\\"),mk:!0,Ta:v,Ca:[],aa:[],visible:!0,xk:!0};v.id||(v.id=\\\"poilabel_\\\"+d.zb(v));F=0;v.Ed=m[8];m[6]&&(K=m[6].split(\\\":\\\"),F=K[1],L=Math.floor((parseInt(K[0].split(\\\"_\\\")[1])-28)/2));if(F&&m[3]){K=r.Cc+\\\"://vdata.amap.com/style_icon/icon-\\\"+(1===L?\\\"biz-\\\":\\\"normal-\\\")+(s||h?\\\"big\\\":\\\"small\\\")+\\\".png\\\";v.Ca.push(K);F=parseInt(F)-1;K=Math.floor(F/10);Q=F%10;O=J=N=0;h?(N=48,J=40,O=28):s?(N=J=40,O=28):(N=J=24,O=20);V=N;if(151===F||152===F||153===F)O-=4,w=m[7][0][2],V=N*Math.max(w+2,O)/O;K=[-V/2,-N/2,V,N,J*Q,J*K,J,J];2<= F&&5>=F&&(K[8]=!0);v.aa.push(K)}if(m[2]&&m[7])for(w=m[2],K=0;Kw&&(a<=l&&c(f,a+m,v,w),a>=m-l&&c(f,a-m,v,w));c(f,a,v,w)}}},function(a){a||(g.Lk.ota=!0)})}})();(function(){if(!g.Fc){g.Fc=g.KL();var a=g.a.oD({h:\\\"on\\\",we:\\\"hasEvents\\\",G:\\\"off\\\",fK:\\\"offByContext\\\",r:\\\"emit\\\",ui:\\\"clearEvents\\\"});g.Fc.xf(null,function(){return{usa:function(){var a=this;this.as=[];this.bs={};if(\\\"undefined\\\"!==typeof worker)for(var c=0;10>c;c++){var d=new Worker(this.yna);d.status={index:c,m5:!0,DK:!1,hL:0};d.addEventListener(\\\"message\\\",function(c){var d=c.data;c=c.target;d.ping&&200===d.status?(c.status.DK=!0,a.as.filter(function(a){return a.status.DK}).length===a.as.length&&(a.as.DK=!0)): d.result&&a.kwa(c,d)});this.as.push(d);d.postMessage({cmd:\\\"ping\\\",ts:(new Date).getTime()})}},kwa:function(a,c){var d=c.parentTaskId,e=c.taskId,f=this.bs[d],h=!1;f[e].data=c;f[e].index=a.status.index;for(var k=0,l=f.length;kdiv,.amap-zoom-touch-minus>div{margin:auto;font-size:26px;line-height:43px;font-family:verdana;text-align:center;color:#666;height:100%;cursor:pointer}.amap-zoom-touch>div{opacity:.2}', A:function(a){this.CLASS_NAME=\\\"AMap.ToolBar\\\";g.c.ya(this,a);this.Ug(a||{});this.j={};this.j.K=g.f.create(\\\"div\\\",null,\\\"amap-toolbar\\\");this.j.Qv=g.f.create(\\\"div\\\",this.j.K,\\\"amap-pancontrol\\\");this.j.left=g.f.create(\\\"div\\\",this.j.Qv,\\\"amap-pan-left\\\");this.j.top=g.f.create(\\\"div\\\",this.j.Qv,\\\"amap-pan-top\\\");this.j.right=g.f.create(\\\"div\\\",this.j.Qv,\\\"amap-pan-right\\\");this.j.bottom=g.f.create(\\\"div\\\",this.j.Qv,\\\"amap-pan-bottom\\\");this.j.ff=g.f.create(\\\"div\\\",this.j.K,\\\"amap-locate\\\");this.j.zoom=g.f.create(\\\"div\\\",this.j.K, \\\"amap-zoomcontrol\\\");this.j.sk=g.f.create(\\\"div\\\",this.j.zoom,\\\"amap-zoom-plus\\\");this.j.Uh=g.f.create(\\\"div\\\",this.j.zoom,\\\"amap-zoom-ruler\\\");this.j.zf=g.f.create(\\\"div\\\",this.j.zoom,\\\"amap-zoom-minus\\\");this.j.Oc=g.f.create(\\\"div\\\",this.j.Uh,\\\"amap-zoom-mask\\\");this.j.cursor=g.f.create(\\\"div\\\",this.j.Uh,\\\"amap-zoom-cursor\\\");this.j.labels=g.f.create(\\\"div\\\",this.j.Uh,\\\"amap-zoom-labels\\\");this.j.street=g.f.create(\\\"div\\\",this.j.labels,\\\"amap-zoom-label-street\\\");this.j.city=g.f.create(\\\"div\\\",this.j.labels,\\\"amap-zoom-label-city\\\"); this.j.g8=g.f.create(\\\"div\\\",this.j.labels,\\\"amap-zoom-label-province\\\");this.j.country=g.f.create(\\\"div\\\",this.j.labels,\\\"amap-zoom-label-country\\\");(this.Or=(this.Ala=g.l.ba)||a&&a.liteStyle)?(this.Sxa(),this.position=\\\"RB\\\",this.offset=new g.H(10,110)):g.f.ab(this.j.Qv,{position:\\\"relative\\\"}).ab(this.j.ff,{position:\\\"relative\\\",left:\\\"17px\\\"}).ab(this.j.zoom,{position:\\\"relative\\\",left:\\\"14px\\\"});this.vb(a);this.LP&&this.yP()},Ug:function(a){this.Oza=a.useNative||!1;this.dj=\\\"toolbar\\\";this.m9=this.ff=this.direction= this.Uh=this.visible=!0;this.position=\\\"LT\\\";this.offset=new g.H(10,10);this.LP=!1;this.timeout=a.timeout||5E3;this.Tta=g.o.Fb+\\\"/theme/v1.3/small_loading.gif\\\";this.Bq=new z.B.wb({position:this.Hh,offset:new g.H(-11,-11),innerOverlay:!0,content:\\\"
\\\"});this.Bq.Da=!0},zu:function(a,b){this.map=a;b.appendChild(this.j.K);this.vf=b;this.O1();this.fn(); var c=this;setTimeout(function(){c.map&&c.l0()},0)},Yv:function(){this.mn();this.vf.removeChild(this.j.K);this.map=this.vf=null;this.xP()},Sxa:function(){var a=g.f.create(\\\"div\\\",this.j.sk);a.innerHTML=\\\"+\\\";g.f.fb(this.j.sk,\\\"amap-zoom-plus\\\");g.f.Wa(this.j.sk,\\\"amap-zoom-touch-plus\\\");g.f.fb(this.j.ff,\\\"amap-locate\\\");g.f.Wa(this.j.ff,\\\"amap-geo\\\");g.f.Wa(this.j.ff,\\\"amap-toolbar-geo\\\");a=g.f.create(\\\"div\\\",this.j.zf);a.innerHTML=\\\"−\\\";g.f.fb(this.j.zf,\\\"amap-zoom-minus\\\");g.f.Wa(this.j.zf,\\\"amap-zoom-touch-minus\\\"); g.f.Wa(this.j.K,\\\"amap-touch-toolbar\\\")},Txa:function(a){a.direction=!1;!0!==a.locate&&(a.locate=!1);a.ruler=!1;return a},vb:function(a){a=a||{};this.Or&&(a=this.Txa(a));for(var b in a)a.hasOwnProperty(b)&&\\\"_\\\"!==b.substr(0,1)&&void 0!==this[b]&&(this[b]=a[b]);this.offset=void 0!==a.offset?a.offset:this.offset;this.position=void 0!==a.position?a.position:this.position;this.Uh=void 0!==a.ruler?a.ruler:this.Uh;this.ff=void 0!==a.locate?a.locate:this.ff;this.direction=void 0!==a.direction?a.direction:this.direction; this.LP=void 0!==a.autoPosition?a.autoPosition:this.LP;void 0!==a.locationMarker&&(this.Bq.getMap===this.map&&(this.Bq.setMap(null),a.locationMarker.setPosition(this.Bq.getPosition()),a.locationMarker.setMap(this.map)),this.Bq=a.locationMarker);this.mha();this.position&&this.offset&&this.cC(this.position,this.offset);this.direction?g.f.ab(this.j.Qv,{display:\\\"block\\\"}):g.f.ab(this.j.Qv,{display:\\\"none\\\"});this.ff?g.f.ab(this.j.ff,{display:\\\"block\\\"}):g.f.ab(this.j.ff,{display:\\\"none\\\"});!this.Uh||this.map&& 270>this.map.getSize().getHeight()?g.f.ab(this.j.Uh,{display:\\\"none\\\"}):g.f.ab(this.j.Uh,{display:\\\"block\\\"});this.visible?g.f.ab(this.j.K,{visibility:\\\"visible\\\"}):g.f.ab(this.j.K,{visibility:\\\"hidden\\\"})},IR:function(a){return this[a]},cC:function(a,b){switch(a){case \\\"LT\\\":g.f.ab(this.j.K,{left:b.wf()+\\\"px\\\",top:b.ve()+\\\"px\\\",right:\\\"\\\",bottom:\\\"\\\"});break;case \\\"RT\\\":g.f.ab(this.j.K,{right:b.wf()+\\\"px\\\",top:b.ve()+\\\"px\\\",left:\\\"\\\",bottom:\\\"\\\"});break;case \\\"LB\\\":g.f.ab(this.j.K,{left:b.wf()+\\\"px\\\",bottom:b.ve()+\\\"px\\\",right:\\\"\\\", top:\\\"\\\"});break;case \\\"RB\\\":g.f.ab(this.j.K,{right:b.wf()+\\\"px\\\",bottom:b.ve()+\\\"px\\\",left:\\\"\\\",top:\\\"\\\"})}this.vf&&(this.vf.removeChild(this.j.K),this.vf.appendChild(this.j.K))},l0:function(){this.Za=null;this.O1();this.mP(this.map.get(\\\"zoom\\\"))},fn:function(){this.mP(this.map.get(\\\"zoom\\\"));this.Va={Za:g.event.addListener(this.map,\\\"zooms\\\",this.l0,this),left:g.event.Y(this.j.left,\\\"click\\\",this.Zha,this),top:g.event.Y(this.j.top,\\\"click\\\",this.Pia,this),right:g.event.Y(this.j.right,\\\"click\\\",this.via,this),bottom:g.event.Y(this.j.bottom, \\\"click\\\",this.Jha,this),ff:g.event.Y(this.j.ff,\\\"click\\\",this.bia,this),BGa:g.event.Y(this.j.K,\\\"mousedown\\\",function(a){g.F.preventDefault(a)},this),NDa:g.event.Y(this.j.cursor,\\\"mousedown\\\",this.gu,this),DDa:g.event.Y(this.j.cursor,\\\"mouseover\\\",this.Uha,this),CDa:g.event.Y(this.j.cursor,\\\"mouseout\\\",this.Vha,this),LDa:g.event.Y(document,\\\"mousemove\\\",this.eu,this),MDa:g.event.Y(document,\\\"mouseup\\\",this.fu,this),cursor:g.event.Y(this.j.cursor,\\\"click\\\",this.Tha,this),sk:g.event.Y(this.j.sk,\\\"click\\\",this.sia,this), zf:g.event.Y(this.j.zf,\\\"click\\\",this.dia,this),wHa:g.event.Y(this.j.Uh,\\\"mouseover\\\",this.Y_,this),PIa:g.event.Y(this.j.zoom,\\\"mouseout\\\",this.X_,this),GFa:g.event.Y(this.j.labels,\\\"mouseover\\\",this.Y_,this),FFa:g.event.Y(this.j.labels,\\\"mouseout\\\",this.X_,this),Uh:g.event.Y(this.j.Uh,\\\"click\\\",this.Nia,this),street:g.event.Y(this.j.street,\\\"click\\\",this.Oia,this),city:g.event.Y(this.j.city,\\\"click\\\",this.Nha,this),g8:g.event.Y(this.j.g8,\\\"click\\\",this.tia,this),country:g.event.Y(this.j.country,\\\"click\\\",this.Sha,this), V$:g.event.addListener(this.map,\\\"zoomend\\\",this.po,this),gIa:g.event.Y(this.j.K,\\\"touchstart\\\",g.a.C3,g.F.stopPropagation),resize:g.event.addListener(this.map,\\\"resize\\\",this.uia,this)};g.l.Ai&&(this.Va.KFa=g.event.Y(this.j.left,\\\"mouseover\\\",this.aia,this),this.Va.eIa=g.event.Y(this.j.top,\\\"mouseover\\\",this.Ria,this),this.Va.hHa=g.event.Y(this.j.right,\\\"mouseover\\\",this.yia,this),this.Va.bDa=g.event.Y(this.j.bottom,\\\"mouseover\\\",this.Lha,this),this.Va.JFa=g.event.Y(this.j.left,\\\"mouseout\\\",this.$ha,this),this.Va.dIa= g.event.Y(this.j.top,\\\"mouseout\\\",this.Qia,this),this.Va.gHa=g.event.Y(this.j.right,\\\"mouseout\\\",this.xia,this),this.Va.aDa=g.event.Y(this.j.bottom,\\\"mouseout\\\",this.Kha,this))},Uha:function(){this.j.cursor.style.top=parseInt(this.j.cursor.style.top)-2+\\\"px\\\"},Vha:function(){this.j.cursor.style.top=parseInt(this.j.cursor.style.top)+2+\\\"px\\\"},mn:function(){if(this.Va)for(var a in this.Va)this.Va.hasOwnProperty(a)&&g.event.removeListener(this.Va[a])},Zha:function(){this.map.panBy(this.map.getSize().width/2-1, 0)},Jha:function(){this.map.panBy(0,-this.map.getSize().height/2+1)},via:function(){this.map.panBy(-this.map.getSize().width/2+1,0)},aia:function(){this.j.left.className+=\\\" amap-pan-left-hover\\\"},yia:function(){this.j.right.className+=\\\" amap-pan-right-hover\\\"},Ria:function(){this.j.top.className+=\\\" amap-pan-top-hover\\\"},Lha:function(){this.j.bottom.className+=\\\" amap-pan-bottom-hover\\\"},$ha:function(){this.j.left.className=this.j.left.className.replace(\\\" amap-pan-left-hover\\\",\\\"\\\")},xia:function(){this.j.right.className= this.j.right.className.replace(\\\" amap-pan-right-hover\\\",\\\"\\\")},Qia:function(){this.j.top.className=this.j.top.className.replace(\\\" amap-pan-top-hover\\\",\\\"\\\")},Kha:function(){this.j.bottom.className=this.j.bottom.className.replace(\\\" amap-pan-bottom-hover\\\",\\\"\\\")},Pia:function(){this.map.panBy(0,this.map.getSize().height/2-1)},mha:function(){navigator.geolocation||(this.ff=!1)},O1:function(){this.Za||(this.Za=this.map?this.map.get(\\\"zooms\\\"):[3,18]);this.m9=5this.Za[1]?!1:!0},bia:function(){this.Hh? this.xP():this.yP()},GCa:function(a,b){var c=g.o.fd+\\\"/v3/assistant/coordinate/convert?coordsys=gps&s=rsv3&output=json\\\",c=c+\\\"&locations=\\\"+a.toString()+\\\"&key=\\\"+g.o.key;g.o.Xa&&(c+=\\\"&jscode=\\\"+g.o.Xa);c=new g.kb.Ab(c,{callback:\\\"callback\\\"});c.h(\\\"complete\\\",b,this);c.h(\\\"error\\\",b,this)},yP:function(){if(navigator.geolocation){this.Or||(this.j.Ke||(this.j.Ke=g.f.create(\\\"img\\\",this.j.ff),this.j.Ke.src=this.Tta,g.f.ab(this.j.Ke,{margin:(this.Or?10:4)+\\\"px\\\"})),this.j.ff.appendChild(this.j.Ke));g.f.Wa(this.j.ff, \\\"amap-locate-loading\\\");var a=this;g.ub.load(\\\"AMap.Geolocation\\\",function(){a.geolocation||(a.geolocation=new g.Vn({useNative:this.Oza,showButton:!1,showMarker:!1,showCircle:!1,panToLocation:!1,maximumAge:6E5}));a.geolocation.getCurrentPosition(function(b,c){g.f.fb(a.j.ff,\\\"amap-locate-loading\\\");\\\"complete\\\"===b?(a.nha(c),g.event.O(a,\\\"location-success\\\",c)):(a.lha(),g.event.O(a,\\\"location-failed\\\",c))})})}},xP:function(){this.Or?g.f.fb(this.j.ff,\\\"amap-toolbar-geo-secc\\\"):g.f.ab(this.j.ff,{backgroundPosition:\\\"-130px -185px\\\"}); this.dga();this.Hh=null},qla:function(){var a=this;if(this.Hh)if(this.Tb=this.Bq,this.Tb.setMap(this.map),this.Bq instanceof z.B.wb&&this.Bq.setPosition(this.Hh),this.MA&&(this.Qa=new z.B.Ze({isCustom:!0,innerOverlay:!0,content:\\\"\\\\u5b9a\\\\u4f4d\\\\u7cbe\\\\u5ea6:\\\"+this.MA+\\\"\\\\u7c73\\\",offset:new g.H(25,0)}),this.Tb.h(\\\"mouseover\\\",function(){a.Qa.open(a.map,a.Tb.getPosition())}),this.Tb.h(\\\"mouseout\\\", function(){a.Qa.close()})),this.MA){this.Lb=new z.B.hh({center:this.Hh,radius:this.MA,strokeColor:\\\"#0093FF\\\",strokeOpacity:0.3,strokeWeight:1,fillColor:\\\"#02B0FF\\\",fillOpacity:0.25,innerOverlay:!0});this.Lb.Da=!0;this.Lb.setMap(this.map);var b=this.map.getSize(),b=Math.min(b.width,b.height)/4,b=Math.floor(Math.LOG2E*Math.log(b*Math.cos(this.Hh.getLat()*Math.PI/180)*12756274*Math.PI/256/this.MA));this.map.setZoomAndCenter(b,this.Hh)}else this.map.setCenter(this.Hh);g.event.O(this,\\\"location\\\",{type:\\\"location\\\", lnglat:this.Hh})},dga:function(){this.Tb&&(this.Tb.setMap(null),this.Tb=null);this.Lb&&(this.Lb.setMap(null),this.Lb=null);this.Bq.setMap(null)},pla:function(){this.m9&&this.j.labels&&g.f.ab(this.j.labels,{display:\\\"block\\\"})},cga:function(){this.j.labels&&g.f.ab(this.j.labels,{display:\\\"none\\\"})},rA:function(a,b){var c=b-a;c&&g.event.O(this,\\\"zoomchanged\\\",{type:0===c?void 0:0c[1]&&(a=c[1]);ab-10&&(a=b-10);g.f.ab(this.j.cursor,{top:a+\\\"px\\\"}).ab(this.j.Oc,{height:a+\\\"px\\\"});a=this.map.get(\\\"zoom\\\");b=this.mZ();this.map.setZoom(b);this.rA(a,b)}},Oia:function(a){this.map&&this.map.getStatus().zoomEnable&&(g.F.stopPropagation(a).preventDefault(a), this.map.setZoom(17),a=this.map.get(\\\"zoom\\\"),this.rA(a,17))},Nha:function(a){this.map&&this.map.getStatus().zoomEnable&&(g.F.stopPropagation(a).preventDefault(a),this.map.setZoom(11),a=this.map.get(\\\"zoom\\\"),this.rA(a,11))},tia:function(a){this.map&&this.map.getStatus().zoomEnable&&(g.F.stopPropagation(a).preventDefault(a),this.map.setZoom(7),a=this.map.get(\\\"zoom\\\"),this.rA(a,7))},Sha:function(a){this.map&&this.map.getStatus().zoomEnable&&(g.F.stopPropagation(a).preventDefault(a),this.map.setZoom(3), a=this.map.get(\\\"zoom\\\"),this.rA(a,3))},uia:function(){this.vb({locate:this.ff})},nha:function(a){try{this.Hh=a.position,this.MA=a.accuracy,this.j.Ke&&this.j.Ke.parentNode&&this.j.Ke.parentNode.removeChild(this.j.Ke),this.Or?g.f.Wa(this.j.ff,\\\"amap-toolbar-geo-secc\\\"):g.f.ab(this.j.ff,{backgroundPosition:\\\"-130px -211px\\\"}),this.qla({locations:this.Hh+\\\"\\\"})}catch(b){}},lha:function(){this.Hh=null;try{this.j.ff.removeChild(this.j.Ke),this.Or||g.f.ab(this.j.ff,{backgroundPosition:\\\"-130px -185px\\\"})}catch(a){}}, getOffset:function(){g.c.add(this,\\\"getOffset\\\");return this.offset},setOffset:function(a){g.c.add(this,\\\"setOffset\\\");this.vb({offset:a})},hideRuler:function(){g.c.add(this,\\\"hideRuler\\\");this.vb({ruler:!1})},showRuler:function(){g.c.add(this,\\\"showRuler\\\");this.vb({ruler:!0})},hideDirection:function(){g.c.add(this,\\\"hideDirection\\\");this.vb({direction:!1})},showDirection:function(){g.c.add(this,\\\"showDirection\\\");this.vb({direction:!0})},hideLocation:function(){g.c.add(this,\\\"hideLocation\\\");this.vb({locate:!1})}, showLocation:function(){g.c.add(this,\\\"showLocation\\\");this.vb({locate:!0})},hide:function(){g.c.add(this,\\\"hide\\\");this.vb({visible:!1});g.event.O(this,\\\"hide\\\")},show:function(){g.c.add(this,\\\"show\\\");this.vb({visible:!0});g.event.O(this,\\\"show\\\")},doLocation:function(){g.c.add(this,\\\"doLocation\\\");this.Hh&&this.xP();this.yP()},getLocation:function(){g.c.add(this,\\\"getLocation\\\");return this.Hh},Ty:function(){var a=[0,0,0,0];if(this.j.K){var b=g.f.$c(this.j.K,\\\"width\\\"),c=g.f.$c(this.j.K,\\\"height\\\"),b=this.offset.wf()+ parseFloat(b),c=this.offset.ve()+parseFloat(c)+5;-1!==this.position.indexOf(\\\"T\\\")&&(a[0]=c);-1!==this.position.indexOf(\\\"R\\\")&&(a[1]=b);-1!==this.position.indexOf(\\\"B\\\")&&(a[2]=c);-1!==this.position.indexOf(\\\"L\\\")&&(a[3]=b)}return a}});window.AMap.ToolBar||(window.AMap.ToolBar=g.Bba); \"}" + }, + { + "name": "_AMap_AMap.IndoorMap3D", + "value": "{\"version\":\"1768801478717\",\"script\":\"z.q.Jt=z.q.Pm.extend(g.extend({},z.q.QL,{w:{visible:!0,opacity:1,zIndex:11,featureszIndex:null,zooms:[17,20],hideFloorBar:!1,bubble:\\\"true\\\",rejectMapMask:!1,alwaysShow:!1,disableIconRender:!1,disableLabelRender:!1,disableHoverMarker:!1,autoLoadBuildingsInTile:!0},ep:[215440491,106744817],setOpacity:function(a){this.get(\\\"opacity\\\")!==a&&(z.q.Jt.cd.setOpacity.call(this,a),this.so())},A:function(a){if(!g.l.kl)return null;this.GB=g.a.ND(this.GB,150,this);this.LAYER_NAME=\\\"IndoorLayer3D\\\";z.q.Jt.cd.A.call(this, a);this.dP=!g.l.ba;this.CLASS_NAME=\\\"AMap.IndoorMap\\\";g.c.ya(this,a);this.$f=new z.B.wb({innerOverlay:!0,offset:new g.H(0,0),content:\\\" \\\",noSelect:!0,visible:!1,cursor:a.cursor,bubble:!0});this.$f.Da=!0;this.sa=this.mB();this.yc=null;this.Gb=new g.zF(this.sa);this.Gb.h(\\\"loaded\\\",this.so,this);this.Gb.h(\\\"featureStyleUpdate\\\",this.B_,this);this.Gb.h(\\\"featureLabelStyleUpdate\\\",this.z_,this);this.Gb.h(\\\"featureOptionsUpdate\\\",this.A_,this);this.AX=1;this.aj=void 0;this.Kh=g.AF;this.Kh.fJ({strokeColor:\\\"rgba(224,180,135,1)\\\", fillColor:\\\"rgba(224,180,135,0.5)\\\"});this.c3=[0.6705,0.6705,0.6705,1];this.Yt=!0;this.CY=29;this.g1={fillColor:[0.8862745098039215,0.7803921568627451,0.7215686274509804,1],strokeColor:[0.8313725490196079,0.6862745098039216,0.5450980392156862,1]};this.ho={ZK:null,qE:null,NJ:null,index:-1,Nn:null,fillColor:null,strokeColor:null};this.sa&&this.mapChanged();this.QP=this.getRenderLabels;g.a.zb(this)},UG:function(a){z.q.QL.UG.call(this);this.sa.C=!0;if(this.sa&&17<=this.sa.getZoom()){var b=this.sa.getObject3DByContainerPos(a.Db|| a.pixel,[this]);if(b){var c=b.object;c&&c.XN&&(b=this.e4(c,b.index))&&(b=b.f8,this.r(\\\"click\\\",this.nja(a,b)),g.l.ba&&this.vu({id:b.Co}))}}this.sa.C=!1},nja:function(a,b){return{type:\\\"click\\\",building_id:b.Co,floor:b.sG,lnglat:a.lnglat,shop:\\\"shops\\\"!==b.Kl?null:{building_id:b.Co,category:\\\"shop\\\",id:b.cpid,lnglat:a.lnglat,name:b.name||b.name_cn,poiId:b.Ys}}},so:function(){var a=this;if(this.kI()){this.QB();var b=this.yx(),c=g.a.Ub,d=g.a.keys;b.Vr.length&&(c(b.Vr,function(b){var f=a.Wl===b.id;c(d(b.ha), function(d){if(b.ha[d]){var k=parseInt(d)===b.Tc,l=b.ha[d].im;l&&(k?(l.wa.Co=b.id,a.nX(l,!0),f?a.oca(l):a.I0(l)):(a.I0(l),a.H0(l)));d=b.ha[d].ha;d.length&&!d[0].wa.Co&&c(d,function(c){c.wa.Co=b.id;\\\"point\\\"===c.dj&&a.hka(c)});k?a.nX(d):a.H0(d)}})}),this.JH(b.Vr),this.NA(),this.V0())}},G1:function(a,b){g.a.Ub(a,function(a){for(var d=a.W,e=0,f=d.cb.length;e'+c+\\\"\\\"),k.$f.Cea=c),k.$f.setPosition(a.lnglat),k.$f.show())}function e(){var a=k.ho;if(a.ZK){a.qE.w.color[a.index]=a.fillColor;a.qE.Ur=!0;var b=a.qE.Pp;if(b){for(var c=b.W,d=k.ho.Nn,e=d[0],d=d[1];ethis.sa.getZoom())this.sa.C=!1;else{this.sa.C=!1;var k=this,l=a.lnglat;if(!(l&&this.CB&&l.hb(this.CB))){this.kN&&clearTimeout(this.kN);this.kN=setTimeout(function(){var a=h.yx();h.JH(a.Vr);h.NA();h.kN=null},300);this.CB= l;this.sa.C=!0;var m=this.sa.getObject3DByContainerPos(a.Db||a.pixel,[this]);this.sa.C=!1;if(m)if((l=m.object)&&l.XN&&\\\"prism\\\"===l.type){var n=null,n=l.vY,n=n.length?n[0].Co:n.Co;this.vu({id:n});if(n=this.e4(l,m.index))if(m=n.f8,n=n.index,m)switch(m.Kl){case \\\"shops\\\":f(l,m,n);d(m);k.get(\\\"cursor\\\")&&void 0===k.VG&&(k.VG=k.sa.getDefaultCursor(),k.sa.setDefaultCursor(k.get(\\\"cursor\\\")));break;case \\\"floor\\\":e();b();d(m);break;default:e(),b(),c()}}else e(),b(),c();else e(),b(),c()}}},e4:function(a,b){for(var c= a.vY,d=a.W.MI,e=0,f=d.length;e=b.Jc&&c.tc>=b.hc}function r(b){return{children:b,height:1,We:!0,Jc:Infinity,hc:Infinity, Ic:-Infinity,tc:-Infinity}}function s(b,c,d,e,f){for(var h=[c,d],k;h.length;)d=h.pop(),c=h.pop(),d-c<=e||(k=c+Math.ceil((d-c)/e/2)*e,u(b,k,c,d,f),h.push(c,k,k,d))}c.Yb=d;g.TT=d;var u=b(\\\"quickselect\\\");d.prototype={search:function(b){var c=this.data,d=[],e=this.zk;if(!q(b,c))return d;for(var f=[],h,k,l,m;c;){h=0;for(k=c.children.length;hthis.qO)this.tla(e,c),c--;else break;this.uca(d,e,c)},tla:function(b,c){var d=b[c],f=d.children.length,h=this.j_;this.Cda(d,h,f);f=this.Dda(d,h,f);f=r(d.children.splice(f,d.children.length-f));f.height=d.height;f.We=d.We;e(d,this.zk);e(f,this.zk);c?b[c-1].children.push(f):this.j1(d,f)},j1:function(b,c){this.data=r([b,c]);this.data.height=b.height+1;this.data.We=!1;e(this.data,this.zk)},Dda:function(b,c,d){var e, h,k,l,n,p,r;n=p=Infinity;for(e=c;e<=d-c;e++){h=f(b,0,e,this.zk);k=f(b,e,d,this.zk);var s=h,q=k;l=Math.max(s.Jc,q.Jc);var u=Math.max(s.hc,q.hc),P=Math.min(s.Ic,q.Ic),s=Math.min(s.tc,q.tc);l=Math.max(0,P-l)*Math.max(0,s-u);h=m(h)+m(k);l=c;p--)r=b.children[p],h(l,b.We?e(r):r),m+=n(l);return m},uca:function(b,c,d){for(;0<=d;d--)h(c[d],b)},Kda:function(b){for(var c=b.length-1,d;0<=c;c--)0===b[c].children.length?0k;){if(600p-n/2?-1:1),q=Math.max(k,Math.floor(c-p*r/n+s)),n=Math.min(l,Math.floor(c+(n-p)*r/n+s));d(b,c,q,n,m)}n=b[c];p=k;r=l;e(b,k,c);for(0m(b[p],n);)p++;for(;0=g.a.Fa?a.x-=g.a.Fa:a.x<=-g.a.Fa&&(a.x+=g.a.Fa);this.Ie=new g.Lj(a,b,function(a,b,e){if(600<=e)return b;b=1-Math.pow(e/600,1.5);a.x*= b;a.y*=b;return a},1);this.Ie.Kq=function(a){2>Math.abs(a.x)&&2>Math.abs(a.y)?(this.Ie.stop(),this.r(\\\"moveend\\\"),this.ws(),this.Fx=this.ih=null):(a=this.get(\\\"centerCoords\\\").bb(a).toFixed(3),this.set(\\\"centerCoords\\\",a),this.qa(\\\"mapmove\\\"))};this.Ie.On(this)}else this.r(\\\"moveend\\\"),this.ws(!0),this.Fx=this.ih=null;else this.r(\\\"moveend\\\"),this.ws(),this.Fx=this.ih=null},wia:function(a){var b=this.get(\\\"rotateEnable\\\"),c=this.get(\\\"pitchEnable\\\");if(b||c){var d=this.get(\\\"size\\\"),e=a.Db.y-this.V.DI;if(Math.abs(a.Db.x- this.V.CI)b*d-e*c&&(f=-f);this.set(\\\"rotation\\\",(f/Math.PI*180+this.get(\\\"rotation\\\"))%360)}else return this.V.CI=a.Db.x,this.V.DI=a.Db.y,!0;this.V.CI=a.Db.x;this.V.DI=a.Db.y}else return!0}});g.Qaa={uHa:g.l.ba?1:2,fIa:g.l.ba?44:22,$Ea:g.l.ba?22:11,a2:g.l.ba?15:7,iz:g.l.Kc?1024:512,Fva:function(a,b,c,d){a.Vh||(a.Vh={});var e=c;this.iz=b.length&&b[0].jm?g.l.Kc?1024:512:g.l.Kc?512:256;(e=this.gAa(a,this.iz))&&!1===a.S6&&a.nl&&(a.Vh={},delete a.nl);a.S6=e;for(var f=0;fk&&(n=0,r+=h.maxHeight||0,h.maxHeight=0,r+c>this.iz))return console.log(\\\"canvas \\\\u4e0d\\\\u591f\\\\u5927\\\\u4e86\\\"),null;h.maxHeight= Math.max(h.maxHeight||0,c);l&&(a.fillStyle!==l&&(a.fillStyle=l),a.fillRect(n,r,p,c));f&&(m=m?3:2,a.lineWidth!==m&&(a.lineWidth=m),a.strokeStyle!==f&&(a.strokeStyle=f),a.strokeText(b,n+q,r+d+2));a.fillStyle!==e&&(a.fillStyle=e);a.fillText(b,n+q,r+d+2+(l?2:0));b=h;h.nK=n+p;h.oK=r;b.Vc=[n,r,p,c,d];return b},pD:function(a){return Math.abs(a[2]/2+a[0])},qD:function(a){return Math.abs(a[3]/2+a[1])},Wd:function(a){var b=a.aa;if(1===b.length)return\\\"\\\";var c=b[0],d=b[1];return b.length===a.Ca.length?\\\"top\\\": 1>=this.pD(c)&&1>=this.pD(d)?1>=this.qD(c)&&1>=this.qD(d)?\\\"middle\\\":c[1]=l&&(c(k),l=0)}for(var h=b.length,k=[],l=0,m,n=[],p=0;pe.zoom&&this.Kt.pc(b,a);a.Oc&&this.Oc.pc(b,a);for(var h=0,k=c.length;he.zoom||l.Za[1]d.zoom||l.Za[1]f.width||16>f.height||!h.KJ(f.width)||!h.KJ(f.height))d(a);else{var k=h.createTexture(f,e);c(a,k,f.width,f.height,b)}};f.onerror=f.onabort=function(){d(a)}},createTexture:function(a,b){var c= this.ca,d=c.createTexture();c.bindTexture(c.TEXTURE_2D,d);c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,a);c.generateMipmap(c.TEXTURE_2D);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,b?c.MIRRORED_REPEAT:c.REPEAT);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,b?c.MIRRORED_REPEAT:c.REPEAT);return d},zoomChanged:function(){this.Hj= g.a.xb(this.e.get(\\\"zoom\\\"),1);this.be&&this.AV(this.Hj)}});g.Ea.DF.Ib(g.Y2);g.Ea.Zb=g.da.extend({ka:[g.va,g.$e],F5:!0,A:function(a,b){this.g=a;this.J=b;this.e=b.e;this.Aj=a.S.Aj;this.X(\\\"display\\\",a);this.Xsa||this.createProgram()},ak:function(){this.Jq&&this.Jq();this.Um&&(this.J.ca.deleteBuffer(this.Um),this.Um=null);this.zl();this.Lc&&this.zza();this.pa=this.e=this.J=this.g=null},fqa:\\\"varying highp float w;\\\",gqa:\\\"w = gl_Position.w;\\\",dqa:\\\"varying highp float w;uniform vec2 fog;uniform vec4 fogColor;uniform float _opacity;\\\",eqa:\\\"float depth = gl_FragCoord.z * w;highp float fogFactor = smoothstep( fog.x, fog.y, depth );gl_FragColor.w*=(1.0-fogFactor)*_opacity;\\\", cva:\\\"uniform float _opacity;\\\",dva:\\\"gl_FragColor=vec4(gl_FragColor.rgb,gl_FragColor.a*_opacity);\\\",Q1:function(a,b,c,d){var e=\\\"\\\",f=\\\"\\\",h=this.cva,k=this.dva;d&&(k=h=\\\"\\\");(c||this).mh&&(e=this.fqa,f=this.gqa,h=this.dqa,k=this.eqa,a=a.replace(\\\"void main\\\",e+\\\"void main\\\"),a=a.substr(0,a.lastIndexOf(\\\"}\\\"))+f+\\\"}\\\");b=b.replace(\\\"void main\\\",h+\\\"void main\\\");b=b.substr(0,b.lastIndexOf(\\\"}\\\"))+k+\\\"}\\\";return[a,b]},createProgram:function(){var a;a=\\\"custom\\\"===this.type?this.g.S.get(\\\"type\\\"):this.type;if(!this.J.lp[a]){var b= this.J.ca,c=this.Yh||this.g.S.get(\\\"vertexShader\\\"),d=this.de||this.g.S.get(\\\"fragmentShader\\\");if(c&&d&&(c=this.Q1(c,d),c=g.Km.createProgram(b,c[0],c[1]))){this.J.lp[a]=c;c.xw=b.getUniformLocation(c,\\\"u_projectionMatrix\\\");c.o$=b.getUniformLocation(c,\\\"u_mvpMatrix\\\");c.ww=b.getUniformLocation(c,\\\"u_modelViewMatrix\\\");var e,f;this.g&&this.g.S.getWebGLVariableLoaction?(f=this.g.S,e=f.getWebGLVariableLoaction):this.Nh&&(f=this,e=this.Nh);this.mh&&(c.oV=b.getUniformLocation(c,\\\"fog\\\"),c.rL=b.getUniformLocation(c, \\\"fogColor\\\"));c.hA=b.getUniformLocation(c,\\\"_opacity\\\");e&&(b=this.J.ca,e.call(f,b,c))}}this.pa=this.J.lp[a]},pc:function(a,b,c){var d=this.pa;if(!d)return!1;a.useProgram(d);b=b.P;this.Ha=b.Ha;d.xw&&a.uniformMatrix4fv(d.xw,!1,b.Me.elements);d.ww&&a.uniformMatrix4fv(d.ww,!1,b.dc.elements);d.o$&&a.uniformMatrix4fv(d.o$,!1,g.Dc.multiply(b.Me,b.dc).elements);c=parseFloat((c||{}).opacity);isNaN(c)&&(c=1);a.uniform1f(d.hA,c);if(0>=c)return!1;a.bindTexture(a.TEXTURE_2D,this.J.ck[0]);1>c&&(a.enable(a.BLEND), a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA));this.mh&&(c=this.e.D.view.qn*(1+1.1*Math.cos(b.pitch*Math.PI/180)),a.uniform2f(d.oV,0.9*c,1.5*c),d.rL&&(c=this.J.$q.GE,a.uniform4f(d.rL,c[0],c[1],c[2],1)));return!0},hra:function(a){var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity;a.forEach(function(a){a[0]>b&&(b=a[0]);a[1]>d&&(d=a[1]);a[0]=c&&k<=e&&k>=f?!0:!1},p=m.shape? this.ID(k,f,n):p(n,f),l[0]instanceof Array||(l=[l]),p&&c.push(k)));else l.Ud?(n=k.get(\\\"deltaPos\\\")||[0,0],l.Ud([a.x-n[0],a.y-n[1]])&&c.push(k)):l.Gy&&(n=k.get(\\\"deltaPos\\\")||[0,0],1.8*l.Gy([a.x-n[0],a.y-n[1]])<=k.get(\\\"strokeWeight\\\")*this.T&&c.push(k));this.Aj?c.sort(function(a,b){return a.hm>b.hm?-1:1}):c.sort(function(a,b){return a.get(\\\"isTop\\\")?-1:b.get(\\\"isTop\\\")?1:a.get(\\\"zIndex\\\")>b.get(\\\"zIndex\\\")||a.get(\\\"zIndex\\\")===b.get(\\\"zIndex\\\")&&a.hm>b.hm?-1:1});b(c,d)}else b([],d)}else b(c,d)},ID:function(a,b,c){var d= a.get(\\\"params\\\").shape,e=a.Vg.children[0].clientWidth;a=a.Vg.children[0].clientHeight;if(\\\"circle\\\"===d.w.type){if(e=c.x-e/2+d.w.coords[0],c=c.y-a+d.w.coords[1],Math.sqrt((b.x-e)*(b.x-e)+(b.y-c)*(b.y-c))<=d.w.coords[2])return!0}else{if(\\\"poly\\\"===d.w.type)return b=[b.x,b.y],d=d.w.coords,d=this.iI(d),g.yd.Ud(b,d);if(\\\"rect\\\"===d.w.type){d=d.w.coords;c=d[0];e=d[1];a=d[3];var f=b.x;b=b.y;if(fc&&b>a&&ba.Ic||ca.tc?!1:!0},jw:function(a,b){if(a.length){var c=this.nb.nd(this.Fd<<20-a[0].ta.z),d=Math.floor(c.x),e=Math.floor(c.y);a.sort(function(a,c){var k=a.ta,l=c.ta,m=k.x-d,k=k.y-e,n=l.x-d,l=l.y-e;return(b?-1:1)*(n*n+l*l-(m*m+k*k))})}},clear:function(){this.rm.clear()}, Cra:function(){return this.zoom+\\\"-\\\"+this.Fd},doa:function(){\\\"AMap.MapBox\\\"==this.g.S.CLASS_NAME?this.gb=Math.max(2,this.oe-g.o.Wn):(this.gb=!1===this.Ei&&!this.g.qS&&this.g.ja?this.oe+1:this.oe,this.g.$pa&&(this.gb=this.g.$pa(this.gb)));this.gf&&this.gb>this.gf&&(this.gb=this.gf);this.$o&&this.gbthis.zoom? this.Hf=\\\"zoomIn\\\":c.zoom=this.gb;){s[p+\\\"\\\"]|=C;v=p.x>>1;t=p.y>>1;w=v<<1;x=t<<1;C=0;for(y=2;0k.kx)&&(v=!0))):(q=!1,this.xv(e,y,E)&&(v=!0),k.status&&(\\\"loading\\\"!==k.status||!k.Je)||\\\"3D\\\"!=this.J.type&&this.oe!==f||this.Jw&&!this.xv(this.Jw,y,E)||l.push(k)),v&&n.push(k);q?this.hD||(this.hD=!0):this.g.Ra=!1;this.wg=q;m.length&&this.hD&&(d.push(m), m.wg=q);h.push(l);l=!1;if(n.length){if(this.Zi){n=n.slice(0);w=[];for(q=n.length-1;0<=q;q-=1)k=n[q],s[k.key]&4||w.push(k);k=b.Za[1];for(r=this.gb+1;n.length&&r<=k;r+=1){m=[];f=n;n=[];p.z=r;for(q=f.length-1;0<=q;q-=1)if(E=f[q],C=s[E.key],C&7)for(v=E.ta.x<<1,t=E.ta.y<<1,y=1;0<=y;y-=1)for(p.x=v+y,E=1;0<=E;E-=1)p.y=t+E,C=p+\\\"\\\",x=this.oa.sK(C),s[C]&5&&x&&x.Ba?(x.KB=!0,x.fe=this.fe,m.push(x),this.cu(x)):n.push(new g.mb(p.eb(),\\\"\\\"));m.length&&(l=!0,d.push(m))}n=w}if(!l&&this.$i)for(E=!d.length||this.ll?b.Za[0]: Math.max(b.Za[0],this.gb-2),y=Math.max(E,this.gb-this.kha),r=this.gb-1;n.length&&r>=E;r-=1){t=r>=y;l=[];m=[];w={};f=n;n=[];for(q=f.length-1;0<=q;q-=1)C=f[q],p.z=r,p.x=C.ta.x>>1,p.y=C.ta.y>>1,k=this.Vy(p,!t,c.hr),w[k.key]||(w[k.key]=1,v=!1,k.Ba&&(!this.kja||s[k.key]&64)?(p.x=Math.min(e.Ic,Math.max(e.Jc,p.x<u[C]?v=!0:k.KB=!0,k.fe=this.fe,m.push(k),this.cu(k)):v=!0,v&&n.push(k));m.length&& d.push(m);t&&l.length&&h.push(l)}}this.iV=h;this.Jv=this.Aq=0;e=a.P.Wo;!(a.he||this.Di&&(a.Cd||a.hf))||e?1===h.length&&0===h[0].length||this.Gn(h):h&&h.length&&this.set(\\\"display\\\");1b[0].ta.z?-1:1});this.Jg=d;this.g&&this.g.set(\\\"tiles\\\",d);this.state.Im=c.key},KR:function(a){var b=a.Hya,c=[];a=this.e.D.getCoordsBoundByZoomIn3D(a.N9);b=this.uy(a.path,b);a=0;for(var d=b.length;a1) {\\\\tv_op=a_op.xy;\\\\tv_TB=a_op.z;\\\\tvec3 curPos=position.xyz;\\\\tv_distance=a_Next.z;\\\\tfloat ddis=0.0;\\\\tvec3 previous=vec3(a_Previous.x+u_xDelta,a_Previous.y,0);\\\\tvec3 next=vec3(a_Next.x+u_xDelta,a_Next.y,0);\\\\tvec4 up,dir;\\\\tv_distance *= u_scale;\\\\tif(previous==curPos){ \\\\t\\\\tdir= vec4(normalize(next-curPos).xy,0,0);\\\\t}else if(next==curPos){\\\\t\\\\tdir= -vec4(normalize(previous-curPos).xy,0,0);\\\\t}else {\\\\t\\\\tvec3 dir0=previous-curPos;\\\\t\\\\tvec3 dir1=next-curPos;\\\\t\\\\tvec3 dir2=normalize(dir0);\\\\t\\\\tvec3 dir3=normalize(dir1);\\\\t\\\\tfloat f0=dir0.x*dir1.y-dir1.x*dir0.y;\\\\t\\\\tdir = vec4(0); \\\\t\\\\tv_cap=1.0;\\\\t\\\\tif(f0==0.0){\\\\t\\\\t\\\\tup = vec4(dir3.y,-dir3.x,0,0); \\\\t\\\\t}else{\\\\t\\\\t\\\\tvec3 dir4=normalize(dir2+dir3);\\\\t\\\\t\\\\tfloat sinA=length(cross(dir4,dir2));\\\\t\\\\t\\\\tfloat cosA=dot(dir4,dir2);\\\\t\\\\t\\\\tif(sinA<0.5){\\\\t\\\\t\\\\t\\\\tsinA=0.5;\\\\t\\\\t\\\\t}\\\\t\\\\t\\\\tup= vec4(dir4,0)/sinA;\\\\t\\\\t\\\\tddis=abs(length(up)*cosA*u_width*0.5);\\\\t\\\\t\\\\tif(f0<0.0){\\\\t\\\\t\\\\t\\\\tup=-up;\\\\t\\\\t\\\\t\\\\tddis=-ddis;\\\\t\\\\t\\\\t}\\\\t\\\\t\\\\tv_distance += v_TB*a_Previous.z*ddis;\\\\t\\\\t}\\\\t}\\\\tif(previous==curPos||next==curPos){ \\\\t\\\\tup = vec4(dir.y,-dir.x,0,0); \\\\t\\\\tif(u_type==4){\\\\t\\\\t\\\\tv_cap=sqrt(v_TB*v_TB+a_Previous.z*a_Previous.z);\\\\t\\\\t}else if(u_type==3){\\\\t\\\\t\\\\tv_cap=1.0;\\\\t\\\\t}else{dir = vec4(0);}\\\\t}\\\\tposition=position+(up*v_TB-dir*a_Previous.z)*u_width*0.5/u_scale;\\\\tgl_Position=u_mvpMatrix*position;}else if (u_type==1) {\\\\tfloat xielv = position.w;\\\\tvec4 c;\\\\tvec3 n;\\\\tbool BLC = true;\\\\tif (xielv <= 0.0) { \\\\t\\\\tc = xielv == 0.0 ? u_FragColor2 : u_FragColor;\\\\t\\\\tn = vec3(0, 0, -1);\\\\t\\\\tif (position.z == 0.0) {\\\\t\\\\t\\\\tBLC = false;\\\\t\\\\t}\\\\t} else {\\\\t\\\\tc = (u_FragColor2 + (u_FragColor - u_FragColor2) * (position.z == 0.0 ? 0.9 : 0.4));\\\\t\\\\tfloat dx = 5000.0 - float(xielv);\\\\t\\\\tfloat dy = 5000.0 - fract(xielv) * 10000.0;\\\\t\\\\tn = vec3(dy, -dx, 0);\\\\t}\\\\tif (BLC) {\\\\t\\\\tvec3 normal = normalize(u_normalMatrix * n);\\\\t\\\\tfloat nDotL = dot(u_lightDirection, -normal);\\\\t\\\\tvec3 diffuse = u_light * nDotL;\\\\t\\\\tvec3 ll = (u_ambient + diffuse);\\\\t\\\\tv_color = vec4(ll * c.rgb, c.a);\\\\t} else v_color = c;\\\\tposition=vec4(position.xy,position.z*u_heightPercent,1.0);\\\\tgl_Position=u_mvpMatrix*position;\\\\tvTextureCoord = a_uvs;}}\\\", de:\\\"#define BASE 1\\\\nprecision highp float;uniform vec4 u_FragColor;uniform sampler2D texture;uniform vec2 textureScale;varying vec2 vTextureCoord;varying lowp float v_distance,v_TB;varying vec4 v_color;varying vec2 v_op;varying highp float v_cap;uniform lowp int u_type;uniform int u_isDash,u_onlyBorder;uniform vec4 u_dash;uniform float pitch;uniform lowp int useTexture;void main() {vec4 color;if (u_type==0) {\\\\tcolor = u_FragColor;\\\\tif (useTexture==1) {\\\\t\\\\tvec4 smpColor = texture2D(texture, vec2(vTextureCoord.x/textureScale.x,vTextureCoord.y/textureScale.y));\\\\t\\\\tcolor= vec4(smpColor.rgb*smpColor.a+color.rgb*(1.0-smpColor.a),color.a);\\\\t}}else if(u_type>1) {\\\\tif(v_op.x<-0.2||v_op.x>256.2||v_op.y<-0.2||v_op.y>256.2){discard;}\\\\tif(v_cap>1.0001){discard;}\\\\tif(u_isDash==1){\\\\t\\\\tfloat all = u_dash[0] + u_dash[1] + u_dash[2] + u_dash[3];\\\\t\\\\tfloat off = mod(v_distance*sqrt(pitch) - u_dash[0], all);\\\\t\\\\tif(off> u_dash[0]&&off<=(u_dash[0]+u_dash[1])||off>(all-u_dash[3])){discard;}}\\\\tif(u_onlyBorder==1&&v_TB<=0.7&&v_TB>=-0.7){discard;}\\\\tcolor = u_FragColor;}else if(u_type==1) {\\\\tcolor = v_color;\\\\tif(useTexture==1&&vTextureCoord.x>-0.0) {\\\\t\\\\tvec4 smpColor = texture2D(texture, vec2(vTextureCoord.x*textureScale.x,vTextureCoord.y*textureScale.y));\\\"+ (g.l.ba?\\\"color= vec4(smpColor.rgb,color.a);\\\":\\\"color= vec4(smpColor.rgb*smpColor.a+color.rgb*(1.0-smpColor.a),color.a);\\\")+\\\"\\\\t}}gl_FragColor=color;}\\\",Nh:function(a,b){b.zV=a.getUniformLocation(b,\\\"u_xDelta\\\");b.p$=a.getUniformLocation(b,\\\"u_othMatrix\\\");b.t$=a.getUniformLocation(b,\\\"u_zoomMatrix\\\");b.n$=a.getUniformLocation(b,\\\"u_modelMatrix\\\");b.Sd=a.getAttribLocation(b,\\\"a_Position\\\");b.oi=a.getAttribLocation(b,\\\"a_uvs\\\");b.hj=a.getAttribLocation(b,\\\"a_op\\\");b.gj=a.getAttribLocation(b,\\\"a_Previous\\\");b.Rg=a.getAttribLocation(b, \\\"a_Next\\\");b.oza=a.getUniformLocation(b,\\\"u_normalMatrix\\\");b.nza=a.getUniformLocation(b,\\\"u_lightDirection\\\");b.mza=a.getUniformLocation(b,\\\"u_light\\\");b.Zya=a.getUniformLocation(b,\\\"u_ambient\\\");b.Kj=a.getUniformLocation(b,\\\"u_FragColor\\\");b.gA=a.getUniformLocation(b,\\\"u_FragColor2\\\");b.iA=a.getUniformLocation(b,\\\"texture\\\");b.cF=a.getUniformLocation(b,\\\"textureScale\\\");b.Ak=a.getUniformLocation(b,\\\"u_type\\\");b.zw=a.getUniformLocation(b,\\\"u_width\\\");b.pV=a.getUniformLocation(b,\\\"u_isDash\\\");b.rV=a.getUniformLocation(b, \\\"u_onlyBorder\\\");b.mV=a.getUniformLocation(b,\\\"u_dash\\\");b.wV=a.getUniformLocation(b,\\\"u_scale\\\");b.yw=a.getUniformLocation(b,\\\"useTexture\\\");b.vV=a.getUniformLocation(b,\\\"pitch\\\");b.m$=a.getUniformLocation(b,\\\"u_heightPercent\\\")},A:function(a,b){this.OE=this.OE||500;this.mh=!0;this.nn=[];arguments.callee.ma.apply(this,arguments);this.pa.UN=void 0;this.pa.hN=[];this.pa.LO=void 0;this.pa.Rla=0;this.gF=!0;this.ij=20;this.Ua=Math.min(2,window.devicePixelRatio||1);this.bp=1;this.X(\\\"mapStyle\\\",a.e);this.X(\\\"style\\\", a.e);this.ll=this.Ei=!0;a.e.D.xq&&this.AC(a,b);this.ao=0;this.Xk={};this.iF=!1;this.Im=\\\"\\\";this.nH=null;\\\"building\\\"===a.ha[0]&&(this.RD=this.HD=!0)},Gn:function(a){var b=1h.z){var k=this.lJ(f);k&&(f.qb=k,f.status=\\\"loaded\\\", f.Ba=!0,k.Tg+=1,f.cl=(h.x-k.ta.x)/Math.pow(2,h.z),d.splice(c,1),this.set(\\\"display\\\",0))}this.oa.set(f.key,f);!b&&f.Je?f.Je=!1:f.status=\\\"loading\\\"}}this.OI(a,function(a){for(var c=a.length-1;0<=c;c-=1){var d=a[c];if(d.length){var e=d[0].ta.z;this.jw(d,1);for(var f=0,h=0;fMath.abs(b[5][0]-q)+Math.abs(b[5][1]-r)?1:-1});e.Od=d;this.FI(a,e,k)}17>this.gb&&this.um&&(this.FI(a,this.um,k),this.ze||(this.um=null));a.disable(a.BLEND);a.disable(a.DEPTH_TEST)}}}},ar:256*Math.pow(2, 20),NQ:function(a,b){var c=g.Km,d=this.pa;c.JC([d.yw,d.iA,d.cF]);for(var e=this.J.be,f=0,h=b.length;fthis.gb?h=!1:this.um=b;var k=this.g.zv?!1:this.g.e.D.get(\\\"buildingAnimation\\\");17>b.Od&&(k=!1);var l=this.J.nD(\\\"50001:1\\\");a.uniform1f(e.m$,1);var m=100;a.activeTexture(a.TEXTURE0);var n=!1,p=!(!l||!l.Ja);if(p){var q=Math.max(l.width,l.height),q=128/q;a.bindTexture(a.TEXTURE_2D,l.Ja);a.uniform2f(e.cF,128/ l.width/q,128/l.height/q)}else a.bindTexture(a.TEXTURE_2D,this.J.ck[0]);d(p);var q=this.J.fl(this.J.cla),r=this.J.fl(this.J.Lla);a.uniform4f(e.gA,q[0],q[1],q[2],q[3]);a.uniform4f(e.Kj,r[0],r[1],r[2],r[3]);for(var s=!1,u=this.nn.Zra,v=0,w=b.length;vt.hk&&(t.hk+=20):0t.hk&&h?this.ze=1:0e[e.length-1]&&(d[b]=d[e[e.length-1]])}this.Xk[a]=this.AP(c[d[b]])}return this.Xk[a]}});g.Ea.KW=g.Ea.Zb.extend({type:\\\"sky\\\",Yh:\\\"precision highp float;attribute vec3 a_Position;attribute vec2 a_uvs;uniform mat4 u_scaleMatrix;uniform mat4 u_scaleMatrix2;uniform mat4 u_panMatrix;uniform int u_fh;uniform mat4 u_modelViewMatrix;uniform mat4 u_projectionMatrix;varying vec2 v_uvs;varying float z;void main(void) {\\\\tv_uvs = a_uvs;\\\\tz = -a_Position.z/3000.0;\\\\tvec4 pos = u_scaleMatrix2*u_modelViewMatrix* u_panMatrix* u_scaleMatrix * vec4(a_Position,1.0);\\\\tgl_Position = u_projectionMatrix * pos;}\\\", de:\\\"precision mediump float;uniform vec4 color;uniform sampler2D texture;uniform int ok;uniform float opacity;varying vec2 v_uvs;varying float z;void main(void) {\\\\tif(ok==1){\\\\t\\\\tvec4 smpColor = texture2D(texture, v_uvs);\\\\t\\\\tgl_FragColor = vec4(smpColor.xyz,color.w*opacity*z);\\\\t}else{\\\\t\\\\tgl_FragColor = vec4(color.xyz,color.w*opacity*z);\\\\t}}\\\",Lf:function(){this.J.ca.deleteBuffer(this.Lg);this.Lg=null;this.J.ca.deleteBuffer(this.xt);this.xt=null;this.J.ca.deleteBuffer(this.ZE);this.ZE=null;this.J.deleteProgram(this.pa); this.pa=null},Nh:function(a,b){b.tV=a.getUniformLocation(b,\\\"u_panMatrix\\\");b.ae=a.getAttribLocation(b,\\\"a_Position\\\");b.oi=a.getAttribLocation(b,\\\"a_uvs\\\");b.iA=a.getUniformLocation(b,\\\"texture\\\");b.q$=a.getUniformLocation(b,\\\"ok\\\");b.sV=a.getUniformLocation(b,\\\"opacity\\\");b.vw=a.getUniformLocation(b,\\\"color\\\");b.l$=a.getUniformLocation(b,\\\"aspect\\\");b.qL=a.getUniformLocation(b,\\\"u_cameraheight\\\");b.hza=a.getUniformLocation(b,\\\"u_fh\\\");b.rza=a.getUniformLocation(b,\\\"u_scaleMatrix\\\");b.sza=a.getUniformLocation(b,\\\"u_scaleMatrix2\\\")}, A:function(a){this.cA=\\\"00001:1\\\";this.Za=[11,20];this.mh=!1;this.J=a;this.e=a.e;this.X(\\\"display\\\",this.e);this.createProgram();this.e.D.get(\\\"skyColor\\\")?this.GE=g.a.Zk(\\\"ff\\\"+this.e.D.get(\\\"skyColor\\\").substr(1)):this.GE=g.a.Zk(\\\"ffcce0ff\\\");this.OC()},OC:function(){for(var a=void 0!==a?a:0,b=void 0!==b?b:2*Math.PI,c=void 0!==c?c:Math.PI/4,d=void 0!==d?d:Math.PI/4,e=c+d,f=new Float32Array(1887),h=new Float32Array(1258),k=0,l=[],m=0;16>=m;m++){for(var n=[],p=m/16,q=0;36>=q;q++){var r=q/36,s=-1*Math.cos(a+r* b)*Math.sin(c+p*d),u=1*Math.cos(c+p*d),v=1*Math.sin(a+r*b)*Math.sin(c+p*d);f[3*k]=1E4*s;f[3*k+1]=1E4*v;f[3*k+2]=1E4*-u;h[2*k]=r;h[2*k+1]=p;n.push(k);k++}l.push(n)}a=[];for(m=0;16>m;m++)for(q=0;36>q;q++)b=l[m][q+1],d=l[m][q],k=l[m+1][q],n=l[m+1][q+1],(0!==m||0a?!0:!1}});g.Ea.MAa=g.Ea.Zb.extend({type:\\\"fog\\\",Yh:\\\"precision highp float;attribute vec3 a_Position;uniform float u_cameraheight;uniform float pitch;uniform float aspect;uniform mat4 u_panMatrix;uniform mat4 u_modelViewMatrix;uniform mat4 u_projectionMatrix;varying float z;void main(void) {\\\\tz = a_Position.z;\\\\tvec3 pos_ = vec3(a_Position.xy,a_Position.z*pitch);\\\\tvec4 pos = u_modelViewMatrix* u_panMatrix * vec4(pos_*u_cameraheight,1.0);\\\\tpos.x *= aspect;\\\\tgl_Position = u_projectionMatrix * pos;}\\\",de:\\\"precision mediump float;uniform vec4 color;varying float z;uniform float factor;void main(void) {\\\\tfloat a = color.a*(1.0-pow(abs(z)/(z>0.0?(0.08-factor):(0.04+factor)),2.0));\\\\tgl_FragColor = vec4(color.rgb,a);}\\\", Nh:function(a,b){b.tV=a.getUniformLocation(b,\\\"u_panMatrix\\\");b.ae=a.getAttribLocation(b,\\\"a_Position\\\");b.vw=a.getUniformLocation(b,\\\"color\\\");b.vV=a.getUniformLocation(b,\\\"pitch\\\");b.l$=a.getUniformLocation(b,\\\"aspect\\\");b.gza=a.getUniformLocation(b,\\\"factor\\\");b.qL=a.getUniformLocation(b,\\\"u_cameraheight\\\")},A:function(a){this.mh=!1;this.J=a;this.e=a.e;this.X(\\\"display\\\",this.e);this.createProgram();this.e.D.get(\\\"skyColor\\\")?this.GE=g.a.Zk(\\\"ff\\\"+this.e.D.get(\\\"skyColor\\\").substr(1)):this.GE=g.a.Zk(\\\"ffcce0ff\\\");this.OC()}, OC:function(){for(var a=void 0!==a?a:0,b=void 0!==b?b:2*Math.PI,c=void 0!==c?c:30*Math.PI/100,d=void 0!==d?d:35*Math.PI/100,e=c+d,f=new Float32Array(666),h=new Float32Array(444),k=0,l=[],m=0;5>=m;m++){for(var n=[],p=m/5,q=0;36>=q;q++){var r=q/36,s=-1*Math.cos(a+r*b)*Math.sin(c+p*d),u=1*Math.cos(c+p*d),v=1*Math.sin(a+r*b)*Math.sin(c+p*d);f[3*k]=s;f[3*k+1]=v;f[3*k+2]=-u/3;h[2*k]=r;h[2*k+1]=p;n.push(k);k++}l.push(n)}a=[];for(m=0;5>m;m++)for(q=0;36>q;q++)b=l[m][q+1],d=l[m][q],k=l[m+1][q],n=l[m+1][q+1], (0!==m||0e?0:0.008*(e-11));a.uniform1f(d.l$,b.P.wC);a.uniform1f(d.vV,b.P.pitch/65*(1-0.5*Math.abs(e-11)/(11e&&f&&f.Ja&&(l=f.width*k,m=f.height*k,a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,f.Ja),a.uniform1i(this.pa.uza,0));11>e&&h&&h.Ja&&(n=h.width*k,p=h.height*k,a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,h.Ja),a.uniform1i(this.pa.wza,1));a.uniform4f(this.pa.cF,l,m,n,p);a.bindBuffer(a.ARRAY_BUFFER,this.Lg);a.vertexAttribPointer(d.ae,3,a.FLOAT,!1,0,0);a.bindBuffer(a.ARRAY_BUFFER,this.xt);a.vertexAttribPointer(d.oi,2,a.FLOAT,!1,0,0);a.drawArrays(a.TRIANGLES,0,12);a.disableVertexAttribArray(d.oi); this.Bd()}});g.Ea.Xaa=g.Ea.Zb.extend({type:\\\"mask\\\",Yh:\\\"\\\\n\\\\t\\\\t\\\\t\\\\tprecision highp float;\\\\n\\\\t\\\\t\\\\t\\\\tattribute highp vec2 a_Position;\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tuniform vec2 u_DeltaPos;\\\\n\\\\t\\\\t\\\\t\\\\tuniform mat4 u_mvpMatrix;\\\\n\\\\n\\\\t\\\\t\\\\t\\\\tvoid main() {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\thighp vec4 position = vec4(a_Position, 0, 1);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_Position=u_mvpMatrix*position;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\",de:\\\"\\\\n\\\\t\\\\t\\\\t\\\\tprecision highp float;\\\\n\\\\t\\\\t\\\\t\\\\tvoid main() {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor=vec4(1.0,0,0,1.0);\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\",A:function(a){this.mh=!1;this.J=a;this.e=a.e;this.createProgram(); this.ij=20;this.AL=0},Lf:function(){this.th&&(this.J.ca.deleteFramebuffer(this.th),this.J.ca.deleteRenderbuffer(this.th.pQ),this.th=this.th.pQ=null);this.J.deleteProgram(this.pa);this.pa=null},opa:function(a,b){var c=b.size.width,d=b.size.height;if(this.th){var e=this.th.pQ;if(c!==e.Jm||d!==e.uh)a.bindRenderbuffer(a.RENDERBUFFER,e),a.renderbufferStorage(a.RENDERBUFFER,a.RGBA4,c,d)}else this.th=this.zsa(a,b);a.bindFramebuffer(a.FRAMEBUFFER,this.th);a.viewport(0,0,c,d);a.disable(a.DEPTH_TEST);a.disable(a.BLEND); a.clear(a.COLOR_BUFFER_BIT);this.rY(a,b);e=c*d*4;this.Tv&&e===this.Tv.length||(this.Tv=new Uint8Array(e));a.readPixels(0,0,c,d,a.RGBA,a.UNSIGNED_BYTE,this.Tv);this.canvas||(this.canvas=document.createElement(\\\"canvas\\\"));a.bindFramebuffer(a.FRAMEBUFFER,null)},HT:function(a,b){var c=this.J.e.Zd(a),d=Math.round(c.x),c=Math.round(c.y);return 0>d||0>c||d>=b.size.width||c>=b.size.height?!1:this.Tv[4*((b.size.height-c)*b.size.width+d)+3]?!0:!1},bna:function(a,b){for(var c=Array(2),d=0;df||0>e||f>=b.size.width||e>=b.size.height)&&this.Tv[4*((b.size.height-e)*b.size.width+f)+3])return!0}},D3:function(a,b){if(this.Tv){var c;if(\\\"label\\\"==a.type){c=[];for(var d=0,e=a.length;d 0 ) {\\\\t\\\\tfloat r = u_hlColorFactor.x > 0.0 ? smpColor.r * u_hlColorFactor.x : -u_hlColorFactor.x; \\\\t\\\\tfloat g = u_hlColorFactor.y > 0.0 ? smpColor.g * u_hlColorFactor.y : -u_hlColorFactor.y; \\\\t\\\\tfloat b = u_hlColorFactor.z > 0.0 ? smpColor.b * u_hlColorFactor.z : -u_hlColorFactor.z; \\\\t\\\\tsmpColor = vec4(r, g, b, smpColor.a);\\\\t\\\\tif(style > 1){ smpColor = vec4(smpColor.rgb * 0.9, smpColor.a); }\\\\t} \\\\tsmpColor *= opacity;\\\\tgl_FragColor = smpColor;}\\\", Nh:function(a,b){b.ae=a.getAttribLocation(b,\\\"a_Position\\\");b.nw=a.getUniformLocation(b,\\\"texture\\\");b.xV=a.getUniformLocation(b,\\\"u_texVertices\\\");b.yV=a.getUniformLocation(b,\\\"u_textureMatrix\\\");b.pza=a.getUniformLocation(b,\\\"u_poiPrjMatrix\\\");b.xza=a.getUniformLocation(b,\\\"u_transMatrix\\\");b.uV=a.getUniformLocation(b,\\\"u_params\\\");b.lza=a.getUniformLocation(b,\\\"u_hlColorFactor\\\");b.Ak=a.getUniformLocation(b,\\\"u_type\\\")},A:function(a,b){this.OE=300;this.RD=!0;var c=b.ca;this.Ko=Math.max(1,Math.min(Math.floor((c.getParameter(c.MAX_VERTEX_UNIFORM_VECTORS)- 20)/4/4),128));g.l&&(g.l.BJ||g.l.CJ)&&(this.Ko=Math.min(this.Ko,32));this.Yh=this.Yh.replace(/_ElemBatchNum_/g,this.Ko);this.Pn=Math.min(this.Ko,c.getParameter(c.MAX_TEXTURE_IMAGE_UNITS),16);for(var d=[],e=0;eh.z){var k=this.lJ(f);k&&(f.qb=k,f.status=\\\"loaded\\\",f.Ba=!0,k.Tg+=1,f.cl=(h.x-k.ta.x)/Math.pow(2,h.z),d.splice(c,1),this.set(\\\"display\\\",0))}this.oa.set(f.key,f);!b&&f.Je?f.Je=!1:f.status=\\\"loading\\\"}}this.OI(a,function(a){for(var c=a.length-1;0<=c;c-=1){var d=a[c];if(d.length){if(this.e.jA)break; var e=d[0].ta.z;this.jw(d,1);for(var f=0,h=0;fg.a.Fa/2?c-=g.a.Fa:c<-g.a.Fa/2&&(c+=g.a.Fa));return[c,b[1]]},hY:function(a,b){var c=a.createTexture();a.bindTexture(a.TEXTURE_2D,c);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE, b);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1);return c},cI:function(a,b){var c=null,d=\\\"IMG\\\"===b.tagName&&0m&&(m+=360);if(this.jp&&c.Wp)for(e=0,f=c.Wp.length;e=m&&n.BE&&(r=n.BE.dir,0===r?45<=m&&225>=m&&(p=!0):1===r&&135<=m&&315>=m&&(p=!0),r=90*-Math.round(m/90));var p=this.kJ(n.U9,n.P9,p&&n.BE&&n.BE.Td?n.BE.Td:n.t9,0),u=this.tP(n.p3),q=this.Era(u,q+r,s?l.pitch:0,s?1:this.bla);k.push([p.elements,q.elements,{Cj:n.Cj,Td:u,opacity:n.Cj.uT,R9:n.p1,Y7:n.fz? -1:-2,G9:0}]);if(e===f-1||k.length>=this.Ko)this.EI(a,b,k,d),this.jp&&c.Wp.push(k),k=[]}},tP:function(a){var b=g.a.ec,c=b.x,b=b.y;return[a[0]-c,a[1]-b,a[2]-c,a[3]-b]},tpa:function(a,b,c){var d=[],e,f;e=0;for(f=c.Zz.length;e=this.Ko)this.EI(a,b,k,d),this.jp&&c.Wp.push(k),k=[]}},EI:function(a,b,c,d){var e=c.length;if(e){var f= null,h=null,k=null,l=null,m=d.S9,n=d.f$;if(this.jp&&c.Z5)f=c.Z5,l=c.hE,h=c.wya,k=c.Qya;else{for(var f=[],h=[],k=[],l=[],p=0;pk&&(l=a.za.slice(0).reverse());e;){for(var m=[],n=!0,k=0;kthis.zoom||1>l&&11>h*l||0.75>l?!1:this.Zpa(d)}d=this.kG.P.pitch;return 60this.ux&&(c+=Math.min(10,d)*(1-this.ux),b+=Math.min(10,e)*(1-this.ux));return!this.dh.N2({Jc:a[0]-c,hc:a[1]-b,Ic:a[2]+c,tc:a[3]+b})},rS:function(a,b){return!this.dh.N2({Jc:a[0]-b,hc:a[1]-b,Ic:a[0]+b,tc:a[1]+b})},bta:function(a){return this.Aua&&!this.ata(a.gS,2*a.Cj.margin)?!1:!0},Kua:function(a){for(var b= 0,c=a.length;b=a)return[-8,-8,-8,-8];if(6<=a&&8>=a)return[-5,0,-5,0];if(9===a)return[-7,0,-7,0];if(10<=a&&139>=a&&120!==a||142<=a&&144>=a||150<=a&&159>=a||164<=a&&169>=a)return[-3,-3,-3,-3]}else{if(1===b.rv)return[-3,-3,-3,-3]}else if(13<=b.te)return[-1,-1,-1,-1];return null},Wma:function(a){var b= a.KT,c=1;a.$Q=1;if(1>this.ux){var d=this.bB.height,e=b.y/d;0.5>e&&(d=Math.min(1,0=this.zoom&&\\\"zoomOut\\\"===this.Hf)&&(!this.Zo.yk||!this.sE(this.Zo.yk,this.rk)))){for(var f=[],k=d[0],l=k.length-1;0<=l;l-=1){var m=k[l],n=!1,h=m.ha;!h&&m.qb&&m.qb.ha&&(h=m.qb.ha,n=!0);if(h)for(var p=0,d=h.length;pb.zIndex?-1:1:!a.Ed^!b.Ed?a.Ed?1:-1:a.Ed==b.Ed?a.id==b.id?a.te==b.te?a.name< b.name?-1:1:a.te>b.te?-1:1:a.idb.Ed?-1:1});this.labels=e;this.MJ=!1}if(this.gQ(b)){this.Bd();this.Wo=b.P.Wo;if(!this.e.D.Ra||!this.labels||!this.labels.length)return;this.mU();if(this.sh=this.labels)this.labels.pp=this.zoom,this.labels.op=this.nb,this.labels.Rq=this.rotation,this.labels.NK=this.g.ja,this.labels.size=b.size;b.pb&&(this.pb=b.pb);this.pb&&(this.pb.pp=this.zoom,this.pb.op=this.nb,this.pb.Rq=this.rotation,this.pb.size=b.size)}this.X6=!1;this.NS=this.Hf;this.lta=this.Wo; \\\"stable\\\"!==this.Hf&&this.set(\\\"display\\\")}},xJ:function(a){if(a.pb&&a.pb.length)if(this.pb&&this.pb.length){if(this.pb!==a.pb||this.pb.pp!==this.zoom||this.pb.op!==this.nb||this.pb.Rq!==this.rotation||!this.pb.size.hb(a.size))return!0}else return!0;else if(this.pb&&this.pb.length)return!0},eT:function(a){this.labels&&this.labels.opacity||(this.labels=[],this.labels.opacity={});for(var b={},c=0;ce.zya)){var f=this.labels.opacity[e.id];f&&(e.uT=f,c.push.apply(c,e.Fq))}}c.length&&this.vpa(b,a,c);a.uniform1i(b.Ak,1);c=[];for(d=0;dthis.zoom?Math.min(1,Math.max(0.75,1-(this.aO-this.zoom))):1;this.pna();this.sna();if(this.Im!==a){this.bB=this.e.D.get(\\\"size\\\");new g.Xf(0,0,this.bB.width,this.bB.height);var c=this.kG.P.pitch*Math.PI/ 180;this.ux=Math.cos(c);this.cea=Math.sin(c)}this.b8=this.a8=0;this.cr={};this.labels.MT||(this.gwa(b,this.labels),this.labels.MT=!0);this.GS||(this.$ma(this.labels),window.VGa=[]);this.oka(this.labels.length);this.LT(this.labels);this.Im=a;this.dN=this.I8;this.cN=this.T7;this.jp=!0;this.rU=this.labels.slice(0);this.rU.zoom=this.aO;this.ipa(this.dN,this.cN,this.uJ);this.ze&&this.set(\\\"display\\\")},rp:function(a){this.Kua(a.Fq)},LT:function(a){function b(b){a.opacity[b]<1-e?(a.opacity[b]+=e,d.ze=1,d.gk= 1):a.opacity[b]=1}function c(b,c){c.qj?a.opacity[b]=0:a.opacity[b]>e?(a.opacity[b]-=e,d.ze=1,d.gk=1):a.opacity[b]=0}var d=this,e=0.34;if(!a.qF||this.Wo&&!this.lta||\\\"stable\\\"==this.Hf&&\\\"stable\\\"!=this.NS){for(var f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l])}a.qF=!0}else if(\\\"zoomIn\\\"==this.Hf){f=0;for(h=a.length;f< h;f+=1)k=a[f],e=0.34,l=k.id,k.yj?k.Xg&&(k.qj&&this.tq(k),this.rp(k),b(l)):l in a.opacity&&(k.qj?delete a.opacity[l]:a.opacity[l]>e?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);f=0;for(h=a.length;fthis.zoom||!this.Wo)for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);else for(f=0,h=a.length;fe?(a.opacity[l]-=e,this.gk=this.ze=1):delete a.opacity[l]);return!1},xn:function(a,b){var c;if(this.zoom&&this.dh){this.e.D.C=!0;var d=this.e.D.Zd(new g.H(a.wf(),a.ve())),e=d.wf(),d=d.ve();this.e.D.C=!1;e=this.dh.search({Jc:e-1,hc:d-1,Ic:e+1,tc:d+1});if(e.length)if(b)for(d= 0;de&&(e=a[h][0]),a[h][1]f&&(f=a[h][1]));return[c,d,e,f]},Zv:function(){if(this.Th&&this.Th)for(var a in this.Th)if(this.Th.hasOwnProperty(a)){var b=this.Th[a]; b.fe!==this.fe&&b.fa&&this.J.Nl.appendChild(b.fa)}},pc:function(a,b,c){this.fe=1E6*Math.random()<<0;this.wt(a,b,c);this.P=b.P;this.size=b.size;var d=this.g;this.Fd=256;var e;this.$ta=d=d.yn(this.mv(b));var f=!1;c.Oc&&(d=this.J.Oc.D3(d,b));for(e in d)d.hasOwnProperty(e)&&(d[e].fe=this.fe,d[e].m6=this,f=!0);this.Zv(d);f&&(this.wt.call(this.$a,a,b,c),this.$a.yE(d),this.Th=d,this.Oe(b))},Oe:function(){var a=Math.pow(2,this.zoom-this.oe);this.transform={translate:this.Na.bb(this.ob).nd(this.T),scale:a, rotate:0}},nq:function(a,b,c,d){c=this.g;var e=this.$ta,f=[];if(e&&a){a=this.g.e.D.view.Zd(a);if(c.nm){for(var h=c.bh,k=!0,l=[],m=0;m=c&&k<=e&&k>=f?!0:!1},k=h.get(\\\"params\\\"),k.visible&&h.fa)if(k.shape){m=new g.H(m[0],m[1]);m=this.g.e.D.view.Zd(m,null,k.altitude);if(n=k.Tp%360){var p=a.x-m.x,q=a.y-m.y,s=Math.PI*n/180,n=Math.cos(-s),s=Math.sin(-s),u=p*s+q*n;a.x=m.x+(p*n-q*s);a.y=m.y+u}var v=h.width,w=h.height,t=k.offset.x,x=k.offset.y,p=!1;k.shape?(a.x-=t,a.y-=x,p=this.ID(h,a,m)):p=l(m,a);p&&f.push(h)}else g.f.JD(d,h.fa,\\\"amap-markers\\\")&&f.push(h);f.sort(function(a, b){return a.get(\\\"isTop\\\")?-1:b.get(\\\"isTop\\\")?1:a.get(\\\"zIndex\\\")>b.get(\\\"zIndex\\\")||a.get(\\\"zIndex\\\")===b.get(\\\"zIndex\\\")&&a.hm>b.hm?-1:1});b(f,c)}else b([],c)},ID:function(a,b,c){a=a.get(\\\"params\\\").shape;if(\\\"circle\\\"===a.w.type){var d=c.x+a.w.coords[0];c=c.y+a.w.coords[1];if(Math.sqrt((b.x-d)*(b.x-d)+(b.y-c)*(b.y-c))<=a.w.coords[2])return!0}else{if(\\\"poly\\\"===a.w.type)return b=[b.x,b.y],a=a.w.coords,a=this.iI(a),g.yd.Ud(b,a);if(\\\"rect\\\"===a.w.type){a=a.w.coords;var d=a[0],e=a[1],f=a[3],h=b.x-c.x;b=b.y-c.y;if(h< a[2]&&h>d&&b>e&&b sqrt(3.0) / 2.0) {\\\\n cosA = sqrt(3.0) / 2.0; \\\\n }\\\\n\\\\n dir = dir / cosA;\\\\n }\\\\n }\\\\n\\\\n if (a_Op.z > 0.0) {\\\\n position.x = position.x - dir.y * u_Width;\\\\n position.y = position.y + dir.x * u_Width;\\\\n } else {\\\\n position.x = position.x + dir.y * u_Width;\\\\n position.y = position.y - dir.x * u_Width;\\\\n }\\\\n\\\\n gl_Position=u_projectionMatrix*u_modelViewMatrix*position;\\\\n }\\\\n \\\", de:\\\"\\\\n precision lowp float;\\\\n uniform vec4 v_Color;\\\\n\\\\n void main() {\\\\n gl_FragColor=v_Color;\\\\n }\\\\n \\\",A:function(a,b){this.OE=300;this.mh=!0;arguments.callee.ma.apply(this,arguments);this.ij=20;this.Ua=this.g.Ua;this.X(\\\"style\\\",a.e);var c=this.e.get(\\\"style\\\");this.style=this.QR(c)},QR:function(a){var b=null;a&&a.traffic&&a.traffic.multiFillColors&&(b=a.traffic.multiFillColors);return b},Nh:function(a,b){b.Sd=a.getAttribLocation(b,\\\"a_Position\\\");b.Rg=a.getAttribLocation(b,\\\"a_Next\\\"); b.DP=a.getAttribLocation(b,\\\"a_Pre\\\");b.OH=a.getAttribLocation(b,\\\"a_Op\\\");b.yt=a.getUniformLocation(b,\\\"v_Color\\\");b.Yya=a.getUniformLocation(b,\\\"u_Scale\\\");b.bF=a.getUniformLocation(b,\\\"u_Width\\\")},fk:function(){return Math.pow(2,this.zoom-this.ij)*(this.g.ja?this.Ua:1)},Gn:function(a){for(var b=a.length-1;0<=b;b-=1){var c=a[b];if(c.length){var d=function(){var a=c.length;return function(){--a}}();this.jw(c);this.Aq+=c.length;for(var e=c.length-1;0<=e;e-=1)this.yh(c[e],this.rm,d)}}},yh:function(a){var b= a.ta;this.oa.Nd(a.key)||(this.oa.set(a.key,a),a.status=\\\"loading\\\");var c=this.g.Ro(b.x,b.y,b.z),c=new g.kb.Ab(c,{callback:\\\"callback\\\"});c.h(\\\"complete\\\",function(c){var e=this;this.g&&(a.Oa=c.data?c.data[g.a.HI(b.x,b.y,b.z).join(\\\"_\\\")]:[],this.Jv+=1,c=this.QR(this.e.get(\\\"layerStyle\\\")),g.Fc.Qva({Od:a.ta.z,Pc:[a],ba:this.g.get(\\\"forceBig\\\")||g.l.ba,Ua:this.g.get(\\\"forceBig\\\")?1:this.Ua,Kc:this.g.get(\\\"forceBig\\\")?!1:this.g.ja,Oya:c},function(a,b){b.data.Pc.forEach(function(a){e.Pya(a.Oa);a.status=\\\"loaded\\\";a.Ba= !0;e.oa.set(a.key,a)});e.set(\\\"display\\\")}))},this);c.h(\\\"error\\\",function(){a.status=null},this)},Bd:function(){this.Jv>=this.Aq&&(this.g.Ra||(this.g.Ra=!0),this.g.Ld?this.g.qa(\\\"renderComplete\\\"):(this.g.Ld=!0,this.g.qa(\\\"complete\\\")))},styleChanged:function(){var a=this.style,b=this.QR(this.e.get(\\\"layerStyle\\\"));JSON.stringify(a)!==JSON.stringify(b)&&this.set(\\\"reload\\\")},pc:function(a,b,c){arguments.callee.ma.apply(this,arguments);this.ca=a;this.ip(b,c);if(this.Jg.length&&this.Jg[0].length){var d=this.Jg[0].filter(function(a){return\\\"loaded\\\"=== a.status});d.length&&this.dt(a,d)}this.Bd()},Pya:function(a){var b=this;if(this.J){var c=this.J.ca;a.forEach(function(a){a&&a[0].length&&a[1].length&&(a.Ki=a[1].length,a[0]=b.Rm(c.ARRAY_BUFFER,a[0]),a[1]=b.Rm(c.ELEMENT_ARRAY_BUFFER,a[1]))})}},Rm:function(a,b){if(b.length){var c=this.J.ca,d=c.createBuffer();c.bindBuffer(a,d);c.bufferData(a,b,c.STATIC_DRAW);return d}},dt:function(a,b){var c=this;if(b.length){var d=this.pa;a.useProgram(d);a.enableVertexAttribArray(d.Sd);a.enableVertexAttribArray(d.OH); a.enableVertexAttribArray(d.DP);a.enableVertexAttribArray(d.Rg);b.forEach(function(b){return c.ypa(a,b.Oa)});a.disableVertexAttribArray(d.Sd);a.disableVertexAttribArray(d.OH);a.disableVertexAttribArray(d.DP);a.disableVertexAttribArray(d.Rg)}},Lf:function(a){if(a.Oa){var b=this.J;a.Oa.forEach&&a.Oa.forEach(function(a){b&&b.ca&&a&&a[0]&&\\\"[object WebGLBuffer]\\\"===Object.prototype.toString.apply(a[0])&&b.ca.deleteBuffer(a[0]);a[0]=null;b&&b.ca&&a&&a[1]&&\\\"[object WebGLBuffer]\\\"===Object.prototype.toString.apply(a[1])&& b.ca.deleteBuffer(a[1]);a[1]=null;a[2]=null})}},ypa:function(a,b){var c=this,d=this.pa;b.forEach(function(b){if(04.0){\\\\n x = v_PositionDir.x/dis*4.0;\\\\n y = v_PositionDir.y/dis*4.0;\\\\n }\\\\n position.x = (position.x + u_Width * x) + u_Width * v_PositionDir.z;\\\\n position.y = (position.y + u_Width * y) + u_Width * v_PositionDir.w;\\\\n }\\\\n\\\\n gl_Position=u_mvpMatrix*(position + vec4(u_DeltaPos.xy, 0, 0));\\\\n gl_PointSize = (2.0*u_radius.x+2.0);\\\\n }\\\\n \\\", de:\\\"\\\\n precision highp float;\\\\n\\\\n uniform vec4 v_Color;\\\\n uniform vec4 u_ColorBorder;\\\\n uniform vec3 u_Dash;\\\\n // 2-[10, 10] 3-[10, 2, 10]\\\\n uniform float u_DashType;\\\\n\\\\n varying highp float v_Distance;\\\\n varying float v_Render;\\\\n\\\\n uniform lowp int u_Type;\\\\n\\\\n uniform highp vec2 u_radius;\\\\n\\\\n void main() {\\\\n if (u_Type == 1 || u_Type == 5) {\\\\n if (u_DashType == 2.0) {\\\\n if (u_Dash[0] != 0.0 && u_Dash[1] != 0.0) {\\\\n float all = u_Dash[0] + u_Dash[1];\\\\n float off = mod(v_Distance, all);\\\\n\\\\n if (off > u_Dash[0] && off <= all) {\\\\n discard;\\\\n }\\\\n } \\\\n } else if(u_DashType == 3.0) {\\\\n if (u_Dash[0] != 0.0 && u_Dash[1] != 0.0 && u_Dash[2] != 0.0) {\\\\n float all = u_Dash[0] * 2.0 + u_Dash[1] * 2.0 + u_Dash[2] * 2.0; \\\\n float off = mod(v_Distance, all);\\\\n\\\\n vec3 solidBound = vec3(u_Dash[0], u_Dash[0] + u_Dash[1] + u_Dash[2], u_Dash[0] * 2.0 + u_Dash[1] * 2.0 + u_Dash[2]);\\\\n vec3 dashBound = vec3(solidBound.x + u_Dash[1], solidBound.y + u_Dash[0], solidBound.z + u_Dash[2]);\\\\n\\\\n if (off > solidBound.x && off <= dashBound.x \\\\n || off > solidBound.y && off <= dashBound.y\\\\n || off > solidBound.z && off <= dashBound.z) {\\\\n discard; \\\\n }\\\\n } \\\\n }\\\\n\\\\n if (v_Render < 0.0) {\\\\n discard; \\\\n }\\\\n }\\\\n if(u_Type==6){\\\\n float dis2center = distance(gl_PointCoord,vec2(0.5,0.5));\\\\n float dis2border = dis2center*(u_radius.x+1.0)*2.0;\\\\n if(dis2border<=u_radius.y-0.5){\\\\n gl_FragColor=v_Color;\\\\n }else if(dis2bordere&&(e=a[h][0]),a[h][1]f&&(f=a[h][1]));return[c,d,e,f]},pc:function(a,b,c){var d=this;arguments.callee.ma.apply(this,arguments);a.disable(a.DEPTH_TEST);a.enable(a.BLEND);a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA);this.ca=a;this.AL++;a.cullFace(a.BACK);this.un.length=0;this.Jy={};this.P=b.P;this.T=this.P.T;this.zoom=b.P.zoom;if(this.g.gm&&this.g.gm.sq.length){var e=this.g.gm.sq.filter(function(a){return!!a});this.g.XR(e).forEach(function(a){d.u8(a[0],null)})}a.disableVertexAttribArray(this.pa.Bl); a.disableVertexAttribArray(this.pa.zt);a.disableVertexAttribArray(this.pa.At)},u8:function(a){for(var b=0,c=a.length;b=k.strokeWeight&&(k.strokeWeight=1);var l=d.Rf;if(l&&l.length){var m=c.bJ(a);if(d.Uj){d.Uj=!1;for(var s=[],u=0;ug.a.Fa/2?b=-g.a.Fa:d<-g.a.Fa/2&&(b=g.a.Fa);if(a=a.get(\\\"deltaPos\\\"))b+=a[0],c=a[1];if(b||c)return[b,c]},renderPolyline:function(a){function b(a){function b(){a.rCa? g.a.Ub(a,function(a){return f(a)}):f(a)}function f(a){e.bindBuffer(e.ARRAY_BUFFER,a[0]);e.vertexAttribPointer(d.Bl,2,e.FLOAT,!1,36,0);e.vertexAttribPointer(d.zt,4,e.FLOAT,!1,36,8);e.vertexAttribPointer(d.At,3,e.FLOAT,!1,36,24);e.enableVertexAttribArray(d.Bl);e.enableVertexAttribArray(d.zt);e.enableVertexAttribArray(d.At);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,a[1]);e.drawElements(e.TRIANGLES,a.Ki,a.qm,0)}var k=a.fm;k?e.uniform2fv(d.ut,k):e.uniform2fv(d.ut,[0,0]);\\\"dashed\\\"===h.strokeStyle&&2<=h.strokeDasharray.length&& (2==h.strokeDasharray.length?(e.uniform1f(d.fA,2),e.uniform3fv(d.pL,h.strokeDasharray.map(function(a){return a/c.fk()*c.Ua}).concat(0))):(h.strokeDasharray=h.strokeDasharray.slice(0,3),e.uniform1f(d.fA,3),e.uniform3fv(d.pL,h.strokeDasharray.map(function(a){return a/c.fk()*c.Ua}))));e.uniform1i(d.aF,1);h.isOutline&&(1>h.borderWeight&&(h.borderWeight=1),e.uniform1f(d.bF,(h.strokeWeight+2*h.borderWeight)/c.fk()/2*c.Ua),e.uniform4fv(d.yt,c.qv(h.outlineColor,h.strokeOpacity)),b());e.uniform1f(d.bF,h.strokeWeight/ c.fk()/2*c.Ua);e.uniform4fv(d.yt,c.qv(h.strokeColor,h.strokeOpacity));b()}var c=this,d=this.pa,e=this.ca,f=[],h=a.style,k=a.fc();if(h.strokeColor){1>h.strokeWeight&&(h.strokeWeight=1);var l=h.lineJoin||\\\"miter\\\";k instanceof g.Aa.tr?f=[k]:k instanceof g.Aa.Ww&&(f=k.ke);f.forEach(function(d){var f=c.bJ(a);d.Uj?(d.Uj=!1,g.LV.parse({Rv:g.a.eb(d.za),lineJoin:l,lineCap:h.lineCap||\\\"butt\\\",ez:\\\"dashed\\\"===h.strokeStyle},function(a,b){var h=b.data;0!==h[1].length&&(h.Ki=h[1].length,h.fm=f,h[1]instanceof Uint32Array? (e.getExtension(\\\"OES_element_index_uint\\\"),h.qm=e.UNSIGNED_INT):h.qm=e.UNSIGNED_SHORT,h[0]=c.Rm(e.ARRAY_BUFFER,h[0]),h[1]=c.Rm(e.ELEMENT_ARRAY_BUFFER,h[1]),d.Oa=h,c.g.set(\\\"display\\\",0))})):d.Oa&&(d.Oa.fm=f);d.Oa&&b(d.Oa)})}else this.gpa()},Rm:function(a,b){if(b.length){var c=this.J.ca;if(c){var d=c.createBuffer();c.bindBuffer(a,d);c.bufferData(a,b,c.STATIC_DRAW);return d}return null}},renderCircleMarker:function(a){function b(b,f){0>=f.strokeWeight&&(f.strokeWeight=0);e.enable(e.BLEND);e.blendFuncSeparate(e.SRC_ALPHA, e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);e.vertexAttrib4f(d.Bl,b[0],b[1],b[2],1);e.uniform1i(d.aF,6);e.uniform2f(d.qza,(f.radius+f.strokeWeight)*c.Ua,f.radius*c.Ua);var k=h.fillColor,l=k;f.strokeWeight&&(l=h.strokeColor);e.uniform4fv(d.Xya,l);e.uniform4fv(d.yt,k);k=c.bJ(a);e.uniform2fv(d.ut,k||[0,0]);e.drawArrays(e.POINTS,0,1)}var c=this,d=this.pa,e=this.ca,f=a.style,h=a.fc(),k=h;if(k.Uj){k.Uj=!1;var l=k.za,l=[l[0]-g.a.ec.x,l[1]-g.a.ec.y,0];k.Oa=l;k.fillColor=c.qv(f.fillColor,f.fillOpacity); k.strokeColor=c.qv(f.strokeColor,f.strokeOpacity);b(l,f)}else b(k.Oa,f)},renderCircle:function(a){function b(b,f){0>=f.strokeWeight&&(f.strokeWeight=0);e.bindBuffer(e.ARRAY_BUFFER,b[0]);e.vertexAttribPointer(d.Bl,2,e.FLOAT,!1,0,0);e.enableVertexAttribArray(d.Bl);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,b[1]);e.uniform1i(d.aF,3);e.uniform4fv(d.yt,c.qv(f.fillColor,f.fillOpacity));b.fm&&e.uniform2fv(d.ut,b.fm);e.drawElements(e.TRIANGLES,b.Ki,e.UNSIGNED_SHORT,0);c.z8(b.sta,f,b.fm,a,l)}if(a.Av)this.renderCircleMarker(a); else{var c=this,d=this.pa,e=this.ca,f=[],h=a.style,k=a.fc(),l=this.AL;k instanceof g.Aa.Ng&&(f=[k]);f.forEach(function(d){var f=c.bJ(a);if(d.Uj){d.Uj=!1;var k=d.za,q=c.e.D.Qd({x:k[0],y:k[1]});g.Fc.D7({ob:k.map(function(a,b){return a-c.ep[b]}),ul:a.get(\\\"radius\\\")/c.e.D.getResolution(q,20)},function(b,h){var k=h.data;if(0!==k[1].length){k.Ki=k[1].length;k.fm=f;var p=g.a.eb(k[0]).slice(2);k[0]=c.Rm(e.ARRAY_BUFFER,new Float32Array(k[0]));k[1]=c.Rm(e.ELEMENT_ARRAY_BUFFER,new Uint16Array(k[1]));c.I7(c.lra(p), e,d,a,l,function(a,b){a?console.log(\\\"loop parse Error\\\"):(k.sta=b,d.Oa=k,c.g.set(\\\"display\\\"))})}})}else d.Oa&&(d.Oa.fm=f);d.Oa&&b(d.Oa,h)})}},lra:function(a){var b=this,c=[];a.forEach(function(a,e){var f=Math.floor(e/2);void 0===c[f]?c[f]=[a+b.ep[0]]:c[f][1]=a+b.ep[1]});return c},I7:function(a,b,c,d,e,f){var h=this;a.length||f(null,null);g.LV.parse({Rv:g.a.eb(a),Vsa:!0},function(a,c){var d=c.data;d.Ki=d[1].length;d[1]instanceof Uint32Array?(b.getExtension(\\\"OES_element_index_uint\\\"),d.qm=b.UNSIGNED_INT): d.qm=b.UNSIGNED_SHORT;d[0]=h.Rm(b.ARRAY_BUFFER,d[0]);d[1]=h.Rm(b.ELEMENT_ARRAY_BUFFER,d[1]);f(null,d)})},z8:function(a,b,c){var d=this,e=this.ca,f=this.pa;e.bindBuffer(e.ARRAY_BUFFER,a[0]);e.vertexAttribPointer(f.Bl,2,e.FLOAT,!1,36,0);e.vertexAttribPointer(f.zt,4,e.FLOAT,!1,36,8);e.vertexAttribPointer(f.At,3,e.FLOAT,!1,36,24);e.enableVertexAttribArray(f.Bl);e.enableVertexAttribArray(f.zt);e.enableVertexAttribArray(f.At);e.uniform1i(f.aF,5);\\\"dashed\\\"==b.strokeStyle&&2<=b.strokeDasharray.length&&(2== b.strokeDasharray.length?(e.uniform1f(f.fA,2),e.uniform3fv(f.pL,b.strokeDasharray.map(function(a){return a/d.fk()*d.Ua}).concat(0))):(b.strokeDasharray=b.strokeDasharray.slice(0,3),e.uniform1f(f.fA,3),e.uniform3fv(f.pL,b.strokeDasharray.map(function(a){return a/d.fk()*d.Ua}))));c&&e.uniform2fv(f.ut,c);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,a[1]);e.uniform1f(f.bF,b.strokeWeight/d.fk()/2*d.Ua);e.uniform4fv(f.yt,d.qv(b.strokeColor,b.strokeOpacity));e.drawElements(e.TRIANGLES,a.Ki,a.qm||e.UNSIGNED_SHORT, 0)}});g.Ea.Zaa=g.Ea.Hl.extend({type:\\\"massVector\\\",PP:1,dV:[1,0,1,1,0,0,1,1,0,1,0,0],Yh:\\\"precision mediump float;attribute highp vec4 a_Position;varying vec4 v_texcoord;uniform vec2 u_texVertices[6];uniform highp mat4 u_modelViewMatrix;uniform highp mat4 u_projectionMatrix;uniform mat4 u_textureMatrix;void main(void) { int pointIdx = int(a_Position.z); v_texcoord = vec4((u_textureMatrix * vec4(u_texVertices[pointIdx].xy, 0.0, 1.0))); vec4 pos = vec4(a_Position.xy, 0.0, 1.0); gl_Position = u_projectionMatrix * u_modelViewMatrix * pos;}\\\", de:\\\"precision mediump float;uniform sampler2D texture;varying vec4 v_texcoord;void main(void) { gl_FragColor = texture2D(texture, v_texcoord.xy);}\\\",Nh:function(a,b){b.ae=a.getAttribLocation(b,\\\"a_Position\\\");b.nw=a.getUniformLocation(b,\\\"texture\\\");b.xV=a.getUniformLocation(b,\\\"u_texVertices\\\");b.yV=a.getUniformLocation(b,\\\"u_textureMatrix\\\")},A:function(a,b){arguments.callee.ma.apply(this,arguments);this.mc=g.a.zb(this);this.Um=b.ca.createBuffer();this.Ca={}},pc:function(a,b,c){arguments.callee.ma.ma.apply(this, arguments);this.P=b.P;this.T=this.P.T;this.zoom=b.P.zoom;var d=this.g.yn(this.mv(b)),e=[],f;for(f in d)d.hasOwnProperty(f)&&e.push(d[f]);this.kU(e)},kU:function(a){var b={},c=this.g.get(\\\"style\\\");a.forEach(function(a){var d=c;d instanceof Array&&(d=\\\"number\\\"===typeof a.ib.style&&d[a.ib.style]?d[a.ib.style]:d[0]);b[d.url]||(b[d.url]={style:d,list:[]});b[d.url].list.push(a)});this.cka();for(var d in b)b.hasOwnProperty(d)&&this.Qwa(b[d].style,b[d].list);this.bka()},cka:function(){var a=this.pa,b=this.J.ca; b.enable(b.BLEND);b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA);b.enableVertexAttribArray(a.ae);b.uniform2fv(a.xV,this.dV)},bka:function(){var a=this.J.ca;a.disableVertexAttribArray(this.pa.ae);a.disable(a.BLEND)},Qwa:function(a,b){var c=this.Oo(a.url);if(!c)return!1;c.ni&&c.ni.mc===this.mc||(c.ni=this.cI(c),c.ni.mc=this.mc);for(var d=a.size.width,e=a.size.height,f=a.anchor.x,h=a.anchor.y,k=[],l=0,m=b.length;lc&&2>d)){this.IA=this.HA=1;if(this.J.KJ(c)&&this.J.KJ(d))this.canvas= null;else{var e=this.g4(c),f=this.g4(d),h=this.canvas||document.createElement(\\\"canvas\\\");this.canvas=h;h.width=e;h.height=f;h.getContext(\\\"2d\\\").drawImage(a,0,0,c,d);this.HA=c/e;this.IA=d/f}b.bindTexture(b.TEXTURE_2D,this.Ja);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,this.canvas||this.Pb);b.generateMipmap(b.TEXTURE_2D);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.MIRRORED_REPEAT); b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.MIRRORED_REPEAT)}},pc:function(a,b,c){this.Ja||(this.Ja=a.createTexture());if(c.rg!==this.Ja.rg||c.rg.length!==this.Ja.rg.length)this.Pb&&(this.Pb.onload=this.Pb.onerror=this.Pb.mGa=null),this.Ja.loaded=!1,this.Lta(c.rg),this.Ja.rg=c.rg,this.g.bI=!0;if(this.Ja.loaded){this.g.ME&&(this.g.ME=!1,this.A$(c));this.g.bI&&(this.Jza(c),this.g.bI=!1);var d=this.pa;a.enable(a.BLEND);a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA); arguments.callee.ma.apply(this,arguments);a.activeTexture(a.TEXTURE0);a.uniform1f(d.ima,c.opacity);a.uniform1i(d.nw,0);a.bindTexture(a.TEXTURE_2D,this.Ja);a.enableVertexAttribArray(d.ae);a.bindBuffer(a.ARRAY_BUFFER,this.Lg);a.vertexAttribPointer(d.ae,3,a.FLOAT,!1,0,0);a.enableVertexAttribArray(d.GV);a.bindBuffer(a.ARRAY_BUFFER,this.Qza);a.vertexAttribPointer(d.GV,2,a.FLOAT,!1,0,0);a.drawArrays(a.TRIANGLES,0,6);this.Bd();a.disableVertexAttribArray(d.GV);a.disableVertexAttribArray(d.ae)}}});g.Sb.Ib({Pca:function(){var a=this.Ya.ad;g.F.h(a,\\\"touchstart\\\",this.W4,this);a.addEventListener&&a.addEventListener(\\\"touchmove\\\",this.xK,{Uva:!1})},Iha:function(){var a=this.Ya.ad;g.F.G(a,\\\"touchstart\\\",this.W4,this);a.removeEventListener&&a.removeEventListener(\\\"touchmove\\\",this.xK)},yEa:function(a,b){var c=b.pageY-a.pageY,d=b.pageX-a.pageX;if(0!==d||0!==c){var e=0;0!==b.pageX-a.pageX?(e=180*Math.atan((b.pageY-a.pageY)/(b.pageX-a.pageX))/Math.PI,0===c?e=0c&&0c&&0>d?e=180-e:0 d?e=180-e:0d&&17>e)return;b.direction();c.direction();(d=b.Nu(c))&&30>d&&(60>b.Nu(new g.H(0,1))&&60>c.Nu(new g.H(0,1))||60>b.Nu(new g.H(0,-1))&&60>c.Nu(new g.H(0,-1)))?this.V.Fm=\\\"pitch\\\":(d=new g.H(a.touches[1].pageX-a.touches[0].pageX,a.touches[1].pageY-a.touches[0].pageY),b=d.Nu(b),c=d.Nu(c), this.V.Fm=b&&(40>b||140c||140a.touches.length)&&(g.F.preventDefault(a),this.get(\\\"zoomEnable\\\")&& this.get(\\\"touchZoom\\\"))){var b=0;if(a.scale)b=Math.log(a.scale/this.dO)/Math.log(2),this.dO=a.scale;else{var b=a.touches[0],c=a.touches[1];a=c.clientY-b.clientY;b=c.clientX-b.clientX;a=Math.sqrt(a*a+b*b);b=Math.log(a/this.bO)/Math.log(2);this.bO=a}b&&(b=this.get(\\\"zoom\\\")+b,this.x2(b,this.Kw,!0))}},Wia:function(){this.dO=1;this.bO=null}});g.Sb.Ib({jva:function(){g.F.h(this.Ya.ad,\\\"touchmove\\\",this.e0,this);this.Via(this.V.touches)},Tna:function(){g.F.G(this.Ya.ad,\\\"touchmove\\\",this.e0,this);this.Uia()},Via:function(a){var b=a[0];a=a[1];this.LG=Math.atan2(a.clientY-b.clientY,a.clientX-b.clientX);this.cO=0},e0:function(a){if(!(2>a.touches.length)&&(g.F.preventDefault(a),this.get(\\\"rotateEnable\\\"))){var b;if(a.rotation)b=Math.round(this.get(\\\"rotation\\\")+a.rotation-this.cO),this.cO=a.rotation;else{var c=a.touches[0];a=a.touches[1];c=Math.atan2(a.clientY- c.clientY,a.clientX-c.clientX);0.1this.max.elements[0]||a.max.elements[1]this.max.elements[1]|| a.max.elements[2]this.max.elements[2]?!1:!0},hb:function(a){return a.min.hb(this.min)&&a.max.hb(this.max)},tf:function(){var a=new g.Pa,b=new g.Pa,c=new g.Pa,d=new g.Pa,e=new g.Pa,f=new g.Pa,h=new g.Pa,k=new g.Pa,l=[a,b,c,d,e,f,h,k];return function(m){var n=this.max.elements,p=this.min.elements;a.set(n[0],n[1],n[2]);b.set(p[0],n[1],n[2]);c.set(n[0],p[1],n[2]);d.set(p[0],p[1],n[2]);e.set(n[0],n[1],p[2]);f.set(p[0],n[1],p[2]);h.set(n[0],p[1],p[2]);k.set(p[0], p[1],p[2]);a.tf(m);b.tf(m);c.tf(m);d.tf(m);e.tf(m);f.tf(m);h.tf(m);k.tf(m);m=new g.vA;for(var q=p=n=Infinity,r=-Infinity,s=-Infinity,u=-Infinity,v=0,w=l.length;vr&&(r=x);y>s&&(s=y);t>u&&(u=t)}m.min.set(n,p,q);m.max.set(r,s,u);return m}}()}; function rd(a,b,c){var d=Infinity,e=Infinity,f=Infinity,h=-Infinity,k=-Infinity,l=-Infinity;c=c||3;for(var m=0,n=b.length;mh&&(h=p);q>k&&(k=q);r>l&&(l=r)}a.min.set(d,e,f);a.max.set(h,k,l)};g.kM=function(a,b){this.origin=void 0!==a?a:new g.Pa;this.direction=void 0!==b?b:new g.Pa}; g.kM.prototype={constructor:g.kM,set:function(a,b){this.origin.copy(a);this.direction.copy(b);return this},eb:function(){return(new this.constructor).copy(this)},copy:function(a){this.origin.copy(a.origin);this.direction.copy(a.direction);return this},zI:function(a,b){return Math.sqrt(this.Zoa(a,b))},Zoa:function(){var a=new g.Pa;return function(b,c){var d=a.Xz(b,this.origin).Mf(this.direction);if(0>d)return Infinity;a.copy(this.direction).Ln(d).add(this.origin);c&&c.copy(a);return a.i3(b)}}(),h3:function(){var a= new g.Pa,b=new g.Pa,c=new g.Pa;return function(d,e,f,h){a.copy(d).add(e).Ln(0.5);b.copy(e).sub(d).normalize();c.copy(this.origin).sub(a);var k=0.5*d.He(e),l=-this.direction.Mf(b),m=c.Mf(this.direction),n=-c.Mf(b),p=c.q6(),q=Math.abs(1-l*l),r;0=-r?e<=r?(k=1/q,d*=k,e*=k,l=d*(d+l*e+2*m)+e*(l*d+e+2*n)+p):(e=k,d=Math.max(0,-(l*e+m)),l=-d*d+e*(e+2*n)+p):(e=-k,d=Math.max(0,-(l*e+m)),l=-d*d+e*(e+2*n)+p):e<=-r?(d=Math.max(0,-(-l*k+m)),e=0h)return!1;f=a.Mf(e);if(0>f||f>h)return!1;b.zy(a,c);p=p.Mf(b);if(0>p||f+p>h)return!1;p=d.Mf(b);if(0>=p)return!1;p*=1/h;m&&m.copy(this.origin.eb().add(this.direction.eb().Ln(p)));return p}}(),hb:function(a){return a.origin.hb(this.origin)&&a.direction.hb(this.direction)}}; function sd(a,b,c){var d,e,f,h;e=1/a.direction.elements[0];h=1/a.direction.elements[1];var k=1/a.direction.elements[2],l=a.origin;0<=e?(d=(b.min.elements[0]-l.elements[0])*e,e*=b.max.elements[0]-l.elements[0]):(d=(b.max.elements[0]-l.elements[0])*e,e*=b.min.elements[0]-l.elements[0]);0<=h?(f=(b.min.elements[1]-l.elements[1])*h,h*=b.max.elements[1]-l.elements[1]):(f=(b.max.elements[1]-l.elements[1])*h,h*=b.min.elements[1]-l.elements[1]);if(d>h||f>e)return null;if(f>d||d!==d)d=f;if(hb||f>e)return null;if(f>d||d!==d)d=f;if(be?null:(c||new g.Pa).copy(a.direction).Ln(0<=d?d:e).add(a.origin)};z.q.Pm=z.q.Zb.extend({w:{visible:!0,opacity:1,zIndex:1200,zooms:[3,20],alwaysRender:!1,rejectMapMask:!0,type:\\\"obj3d\\\",DEPTH_TEST:!0},gltfOpts:{position:\\\"\\\",scale:1E3,height:0,scene:0,rotateX:0,rotateY:0,rotateZ:0},pua:[],A:function(a){this.CLASS_NAME=this.CLASS_NAME||\\\"AMap.Object3DLayer\\\";g.c.ya(this,a);arguments.callee.ma.apply(this,arguments);this.objects=this.Yd=[]},setOption:function(a){g.c.add(this,\\\"setOption\\\");\\\"undefined\\\"!==typeof a.position&&(this.gltfOpts.position=a.position);\\\"undefined\\\"!==typeof a.scale&& (this.gltfOpts.scale=a.scale);\\\"undefined\\\"!==typeof a.height&&(this.gltfOpts.height=a.height);\\\"undefined\\\"!==typeof a.scene&&(this.gltfOpts.scene=a.scene)},add:function(a){g.c.add(this,\\\"add\\\");this.C=!0;if(a&&a.gltf){a.gltf.option&&this.setOption(a.gltf.option);this.meshObj=[];this.gltf=a.gltf;this.Sta(a.gltf);var b=this.meshObj,c=b.length;a.layerMesh=b;for(a=0;ab.id?1:-1});var b=g.extend({},this.state);b.visible=this.get(\\\"visible\\\");b.zIndex=this.get(\\\"zIndex\\\");b.Za=this.get(\\\"zooms\\\");b.opacity=this.get(\\\"opacity\\\"); b.K=this.get(\\\"container\\\");b.Yd=a;b.Oc=this.zn();return b},d4:function(){var a=g.extend({},this.state);a.visible=this.get(\\\"visible\\\");a.zIndex=this.get(\\\"zIndex\\\");a.Za=this.get(\\\"zooms\\\");a.opacity=this.get(\\\"opacity\\\");a.K=this.get(\\\"container\\\");a.Yd=this.S.Yd;a.Oc=this.zn();return a},cm:function(a){if(g.Ea.Pm)return new g.Ea.Pm(this,a)}});g.Ea.Pm=g.Ea.Zb.extend({ka:[g.va,g.$e],F5:!0,A:function(a,b){this.g=a;this.J=b;this.e=b.e;this.X(\\\"display\\\",a);this.lp={}},createProgram:function(a){var b=this.J.ca,c=a.lg.Sn,d=a.lg.de;if(c&&d){c=this.Q1(c,d,a);if(c=g.Km.createProgram(b,c[0],c[1]))c.hA=b.getUniformLocation(c,\\\"_opacity\\\"),c.xw=b.getUniformLocation(c,\\\"u_projectionMatrix\\\"),c.ww=b.getUniformLocation(c,\\\"u_modelViewMatrix\\\"),d=a.getWebGLVariableLoaction||a.Nh,a.mh&&(c.oV=b.getUniformLocation(c,\\\"fog\\\"),c.rL=b.getUniformLocation(c,\\\"fogColor\\\")), d&&(b=this.J.ca,d.call(a,b,c));return c}},C4:function(a){var b=a.type;if(!b)return null;var c=this.lp[b];c||(c=this.createProgram(a),this.lp[b]=c);return c},joa:function(a){return{Nsa:a.isEnabled(a.DEPTH_TEST),Isa:a.isEnabled(a.BLEND),Msa:a.isEnabled(a.CULL_FACE)}},ioa:function(a,b){b.Nsa?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST);b.Isa?a.enable(a.BLEND):a.disable(a.BLEND);b.Msa?a.enable(a.CULL_FACE):a.disable(a.CULL_FACE);a.cullFace(a.BACK)},yj:function(a,b,c){var d=a.dc;d||(d=b);a=a.W.$l.tf(d); return c.AJ(a)?!0:!1},pc:function(a,b,c){b=b.P;var d=c.Yd;this.Ha=b.Ha;a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA);var e=this.joa(a);a.enable(a.DEPTH_TEST);for(var f=0,h=d.length;fthis.cb.length/4)for(a=this.Tn.length/3-this.cb.length/4;0=Math.pow(2,16)&&a.getExtension(\\\"OES_element_index_uint\\\")?(this.Yg=this.Ad(a,a.ELEMENT_ARRAY_BUFFER,new Uint32Array(c),this.Yg),this.Yg.qm=a.UNSIGNED_INT):(this.Yg=this.Ad(a,a.ELEMENT_ARRAY_BUFFER,new Uint16Array(c),this.Yg),this.Yg.qm=a.UNSIGNED_SHORT),this.Yg.length=c.length);for(var l in b.Mo)d.hasOwnProperty(l)&&(h=d[l].value.call(this, this),k=\\\"_fbo_\\\"+l+\\\"Buffer\\\",!h.length&&this[k]&&(a.deleteBuffer(this[k]),this[k]=null),h.length&&(this[k]=this.Ad(a,a.ARRAY_BUFFER,new Float32Array(h),this[k]),this[k].size=parseInt(d[l].type.substr(3))||1,this[k].length=h.length/this[k].size))},ZH:function(a,b){if(-1!==b.r$){if(this.gd.length){for(var c=this.q.q.e.J,d=0;8>d;d+=1)d>16)/255;a.Cg[h+1]=((f&65280)>>8)/255;a.Cg[h+2]=(f&255)/255;a.Cg[h+3]=(f&2147483648)/255}}else if(a.le)for(d=4*a.le.length,a.Cg=new Float32Array(d), d=0,e=a.le.length;d>16)/255,a.Cg[h+1]=((f&65280)>>8)/255,a.Cg[h+2]=(f&255)/255,a.Cg[h+3]=(f&2147483648)/255;else if(a.Gf)for(d=4*a.Gf.length,a.Cg=new Float32Array(d),d=0,e=a.Gf.length;d>16)/255,a.Cg[h+1]=((f&65280)>>8)/255,a.Cg[h+2]=(f&255)/255,a.Cg[h+3]=(f&2147483648)/255;else{var d=4*a.Z.length,k=1;\\\"LINES\\\"==this.type?k=2:\\\"TRIANGLES\\\"==this.type&&(k=3);a.Cg=new Float32Array(d); d=0;for(e=a.Z.length;d>16)/255,a.Cg[h+1]=((f&65280)>>8)/255,a.Cg[h+2]=(f&255)/255,a.Cg[h+3]=(f&2147483648)/255}return this.W.Cg}}},Mo:{},Sn:\\\"\\\\n\\\\t\\\\t\\\\tattribute vec3 a_vertex;\\\\n\\\\t\\\\t\\\\tuniform mat4 u_modelViewMatrix;\\\\n\\\\t\\\\t\\\\tuniform mat4 u_projectionMatrix;\\\\n\\\\t\\\\t\\\\tvoid main() {\\\\n\\\\t\\\\t\\\\tgl_Position = u_projectionMatrix * u_modelViewMatrix * vec4( a_vertex, 1.0 );\\\\n\\\\t\\\\t}\\\",de:\\\"void main() {\\\\n\\\\t\\\\t\\\\tgl_FragColor = vec4( 1.0, 1.0, 1.0, 1.0);\\\\n\\\\t\\\\t}\\\"}, Nh:function(a,b){var c=this.lg,d=c.attributes,c=c.Ck,e;for(e in c)c.hasOwnProperty(e)&&(b[\\\"u_\\\"+e]=a.getUniformLocation(b,e));for(e in d)d.hasOwnProperty(e)&&(b[\\\"a_\\\"+e]=a.getAttribLocation(b,e));b.vza=a.getUniformLocation(b,\\\"u_textureNum\\\");b.r$=a.getUniformLocation(b,\\\"u_textures\\\")},u6:function(a,b,c){var d=!1;a[0]instanceof g.U&&(d=!0);for(var e=[],f=0;f1.0;\\\\n d2=d1+d0;\\\\n if(aa){\\\\n // discard;\\\\n if(m>=d0 && m=d2)discard;\\\\n }\\\\n }\\\\n \\\\n }\\\\n if(u_offScreen) {\\\\n gl_FragColor = vec4(v_index_color.rgb, v_index_color.a + 0.5);\\\\t\\\\n }else {\\\\n gl_FragColor = v_color;\\\\t\\\\n }\\\\n // gl_FragColor = vec4(0.8,0.8,0.8,1);\\\\t\\\\n }\\\\n \\\"}, fk:function(){return Math.pow(2,20-this.q.get(\\\"map\\\").get(\\\"zoom\\\"))},Pf:function(a){var b=new g.bc.QW;b.transparent=a[0].transparent;b.Eoa=0;b.Fw={};for(var c=b.W.cb,d=b.W.Z,e=b.W.$d,f=b.W.tn,h=b.W.Gk,k=0,l=a.length;k4.0){\\\\n x = 0.5/dis*4.0;\\\\n y = 0.5/dis*4.0;\\\\n }\\\\n pos.x = pos.x + u_width * x;\\\\n pos.y = pos.y + u_width * y;\\\\n\\\\n gl_Position = u_projectionMatrix * u_modelViewMatrix * pos;\\\\n }\\\\n \\\", de:\\\"\\\\n precision mediump float;\\\\n\\\\n uniform bool u_offScreen;\\\\n\\\\n varying vec4 v_color;\\\\n varying vec4 v_index_color;\\\\n void main() {\\\\n if(u_offScreen) {\\\\n gl_FragColor = vec4(v_index_color.rgb, v_index_color.a + 0.5);\\\\n }else {\\\\n gl_FragColor = v_color;\\\\t\\\\t\\\\n }\\\\n }\\\\n \\\"},Pf:function(a){for(var b=new g.bc.fx,c=b.W.cb,d=b.W.Gf,e=b.W.Gk,f=b.W.Tn||[],h=b.W.iq||[],k=0,l=a.length;k=e.x&&c.x<=a.x&&c.y>=e.y&& c.y<=a.y)return!0},mp:function(a,b,c,d,e){var f=this.dc;f||(f=c);f.ef||(f.ef=f.Eg());b=new g.Pa(f.ef.Bh(b));f=new g.Pa(f.ef.Bh(new g.Gl(0,0,0,1)));b=b.sub(f).normalize();a.origin.copy(f);a.direction.copy(b);var h=this.W,f=h.Z,k=Infinity;b=new g.Pa;for(var l,m=new g.Pa,n=this.q.q.e.D,p=0,q=f.length;ph.IT[p]/2*1.414*d)&&this.Fsa(m,n,e,p/3)){var u=a.origin.He(r);u maxX || gl_PointCoord.y maxY) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tdiscard;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\t\\\\n\\\\t\\\\t\\\\tif(u_offScreen){\\\\n\\\\t\\\\t\\\\t\\\\tgl_FragColor = vec4(v_index_color.rgb,v_index_color.a+0.5);\\\\n\\\\t\\\\t\\\\t\\\\t// gl_FragColor = vec4(1.0,0.0,0.0,1.0);\\\\n\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif (u_borderWeight!=0.0&&(gl_PointCoord.x <= minX + v_borderFactor || gl_PointCoord.x >= maxX - v_borderFactor || gl_PointCoord.y <= minY + v_borderFactor || gl_PointCoord.y >= maxY - v_borderFactor)) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = u_borderColor;\\\\n\\\\t\\\\t\\\\t}else{\\\\n\\\\t\\\\t\\\\t\\\\tif (u_textureNum == 0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = v_color;\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tvec4 smpColor;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfloat textureIndex;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (u_textureNum == 1) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\ttextureIndex = 0.0;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\ttextureIndex = v_textureIndex;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tvec2 uv = v_uv.xy;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfloat x, y;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (u_hasPointArea == 0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tx = gl_PointCoord.x;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\ty = gl_PointCoord.y;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tx = (gl_PointCoord.x - v_area.x) / (v_area.z - v_area.x);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\ty = (gl_PointCoord.y - v_area.y) / (v_area.w - v_area.y);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tuv = vec2(x * (v_uv.z - v_uv.x) + v_uv.x, y * (v_uv.w - v_uv.y) + v_uv.y);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (textureIndex == 0.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[0], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 1.0) {\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[1], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 2.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[2], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 3.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[3], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 4.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[4], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 5.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[5], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 6.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[6], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 7.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = texture2D(u_textures[7], uv);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tsmpColor = vec4(1, 0, 0, 1);\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tif (smpColor.a == 0.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\\tdiscard;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = smpColor;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\t\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\\n\\\\t\\\\t\\\"}});g.bc.pba=g.bc.FA.extend({A:function(){this.CLASS_NAME=this.CLASS_NAME||\\\"AMap.Object3D.RoundPoints\\\";this.Dh(arguments);this.type=\\\"roundpoints\\\";this.th=this.u_isBlend=this.merge=!1},M:function(a,b){var c=a.isEnabled(a.BLEND);if((this.texturesAllLoaded||this.iL).call(this)&&this.a_vertexBuffer){this.DEPTH_TEST?a.enable(a.DEPTH_TEST):a.disable(a.DEPTH_TEST);this.ZH(a,b);var d=this.lg,e=d.Ck,f;for(f in e)if(e.hasOwnProperty(f)){var h=b[\\\"u_\\\"+f],k=e[f].value;k.call&&(k=k.call(this,this));if(k||0===k){var l= e[f].type;if(0==l.indexOf(\\\"mat\\\"))a[\\\"uniform\\\"+this.qz[l]](h,!1,k);else a[\\\"uniform\\\"+this.qz[l]](h,k)}}d=d.attributes;for(f in d)d.hasOwnProperty(f)&&(e=b[\\\"a_\\\"+f],-1!==e&&((h=this[f+\\\"Buffer\\\"])?(a.enableVertexAttribArray(e),a.bindBuffer(a.ARRAY_BUFFER,h),a.vertexAttribPointer(e,h.size,a.FLOAT,!1,0,0)):a.disableVertexAttribArray(e)));\\\"lighter\\\"===this.blendMode?(a.disable(a.DEPTH_TEST),f=Math.min(2,window.devicePixelRatio||1),d=this.e.b4(),this.th=this.th||a.createFramebuffer(),e=a.createTexture(),a.bindTexture(a.TEXTURE_2D, e),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,d.width*f,d.height*f,0,a.RGBA,a.UNSIGNED_BYTE,null),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.enable(a.BLEND),a.blendFuncSeparate(a.SRC_ALPHA,a.ONE,a.ONE,a.ONE_MINUS_SRC_ALPHA),a.bindRenderbuffer(a.RENDERBUFFER,a.createRenderbuffer()),a.renderbufferStorage(a.RENDERBUFFER, a.DEPTH_COMPONENT16,d.width*f,d.height*f),a.bindFramebuffer(a.FRAMEBUFFER,this.th),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,e,0),a.bindTexture(a.TEXTURE_2D,null),a.uniform1f(a.getUniformLocation(b,\\\"u_isBlend\\\"),0),a.drawArrays(a.POINTS,0,this.a_vertexBuffer.length),a.bindFramebuffer(a.FRAMEBUFFER,null),a.uniform1f(a.getUniformLocation(b,\\\"u_isBlend\\\"),1),a.uniform1i(a.getUniformLocation(b,\\\"u_fboTextures\\\"),0),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e),a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),f=a.getAttribLocation(b,\\\"a_textureVertex\\\"),d=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,d),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,1,1,1,-1,1,-1,1,1,1,1,1,1,-1,1]),a.STATIC_DRAW),a.enableVertexAttribArray(f),a.vertexAttribPointer(f,3,a.FLOAT,!1,0,0),d=a.getAttribLocation(b, \\\"a_blendTextureVertex\\\"),e=a.createBuffer(),a.bindBuffer(a.ARRAY_BUFFER,e),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,0,1,1,1,1,0]),a.STATIC_DRAW),a.enableVertexAttribArray(d),a.vertexAttribPointer(d,2,a.FLOAT,!1,0,0),c?a.enable(a.BLEND):a.disable(a.BLEND),a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA),a.drawArrays(a.TRIANGLES,0,6),a.bindTexture(a.TEXTURE_2D,null),a.disableVertexAttribArray(d),a.disableVertexAttribArray(f)):(c=this.drawMode,this.Yg? (a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.Yg),a.drawElements(a[c],this.Yg.length,this.Yg.qm,0)):a.drawArrays(a[c],0,this.a_vertexBuffer.length));(this.afterRender||this.Bd).call(this,a,b)}},lg:{Ck:{u_merge:{type:\\\"int\\\",value:function(){return this.merge}}},attributes:{},Sn:\\\"attribute vec3 a_vertex;\\\\n\\\\t\\\\tattribute vec3 a_textureVertex;\\\\n\\\\t\\\\tattribute vec2 a_blendTextureVertex;\\\\n\\\\t\\\\tattribute vec4 a_color;\\\\n\\\\t\\\\tattribute vec4 a_uv;\\\\n attribute float a_size;\\\\n\\\\t\\\\tuniform float u_retinaRatio;\\\\n\\\\t\\\\tattribute float a_textureIndex;\\\\n\\\\t\\\\tattribute vec4 a_indexColor;\\\\n\\\\n\\\\t\\\\tuniform mat4 u_modelViewMatrix;\\\\n\\\\t\\\\tuniform mat4 u_projectionMatrix;\\\\n\\\\t\\\\tuniform mediump float u_borderWeight;\\\\n\\\\t\\\\t\\\\n\\\\t\\\\tvarying vec4 v_color;\\\\n\\\\t\\\\tvarying vec4 v_uv;\\\\n\\\\t\\\\tvarying float v_textureIndex;\\\\n\\\\t\\\\tvarying vec2 v_rs;\\\\n\\\\t\\\\tvarying vec4 v_index_color;\\\\n\\\\n\\\\t\\\\tvarying vec2 v_blendTextureVertex;\\\\n\\\\t\\\\tuniform float u_isBlend;\\\\n\\\\t\\\\tvarying float v_isBlend;\\\\n\\\\n\\\\t\\\\tvoid main(void) {\\\\n\\\\t\\\\t\\\\tv_color = a_color;\\\\n\\\\t\\\\t\\\\tv_uv = a_uv;\\\\n\\\\t\\\\t\\\\tv_textureIndex = a_textureIndex;\\\\n\\\\t\\\\t\\\\tvec4 pos = vec4(a_vertex, 1.0);\\\\n\\\\n\\\\t\\\\t\\\\tif(u_isBlend == 1.0) {\\\\n\\\\t\\\\t\\\\t\\\\tgl_Position = vec4(a_textureVertex, 1.0);\\\\n\\\\t\\\\t\\\\t\\\\tv_isBlend = u_isBlend;\\\\n\\\\t\\\\t\\\\t\\\\tv_blendTextureVertex = a_blendTextureVertex;\\\\n\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tgl_Position = u_projectionMatrix * u_modelViewMatrix * pos;\\\\n\\\\t\\\\t\\\\tgl_PointSize = a_size*u_retinaRatio;\\\\n\\\\t\\\\t\\\\tv_rs = vec2(a_size/2.0,a_size/2.0-u_borderWeight)*u_retinaRatio;//\\\\u5916\\\\u534a\\\\u5f84\\\\uff0c\\\\u5185\\\\u534a\\\\u5f84\\\\n\\\\t\\\\t\\\\tv_index_color = a_indexColor;\\\\n\\\\t\\\\t}\\\\n\\\\t\\\", de:\\\"precision mediump float;\\\\n\\\\t\\\\tvarying vec4 v_color;\\\\n\\\\t\\\\tvarying vec4 v_uv;\\\\n\\\\t\\\\tvarying vec2 v_blendTextureVertex;\\\\n\\\\t\\\\tvarying float v_textureIndex;\\\\n\\\\t\\\\tvarying float v_borderFactor;\\\\n\\\\t\\\\tvarying vec4 v_index_color;\\\\n\\\\n\\\\t\\\\tuniform vec4 u_borderColor;\\\\n\\\\t\\\\tuniform int u_textureNum;\\\\n\\\\t\\\\tuniform int u_merge;\\\\n\\\\t\\\\tuniform float u_borderWeight;\\\\n\\\\t\\\\tuniform sampler2D u_textures[8];\\\\n\\\\t\\\\tuniform bool u_offScreen;\\\\n\\\\n\\\\t\\\\tvarying vec2 v_rs;\\\\n\\\\n\\\\t\\\\t// \\\\u5e27\\\\u7f13\\\\u51b2\\\\u5bf9\\\\u8c61\\\\u4e2d\\\\u7684\\\\u7eb9\\\\u7406\\\\n\\\\t\\\\tvarying float v_isBlend;\\\\n\\\\t\\\\tuniform sampler2D u_fboTextures;\\\\n\\\\n\\\\t\\\\tvoid main(void) {\\\\n\\\\t\\\\t\\\\tif(v_isBlend == 1.0) {\\\\n\\\\t\\\\t\\\\t\\\\tgl_FragColor = texture2D(u_fboTextures, vec2(v_blendTextureVertex.x, v_blendTextureVertex.y));\\\\n\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\n\\\\t\\\\t\\\\tfloat ro = v_rs.x;\\\\n\\\\t\\\\t\\\\tfloat ri = v_rs.y;\\\\n\\\\t\\\\t\\\\tfloat dis2center = distance(gl_PointCoord,vec2(0.5,0.5))*ro*2.0;//\\\\u8ddd\\\\u79bb\\\\u8fb9\\\\u754c\\\\u7684\\\\u50cf\\\\u7d20\\\\u8ddd\\\\u79bb\\\\n\\\\t\\\\t\\\\tif(dis2center>ro){\\\\n\\\\t\\\\t\\\\t\\\\tdiscard;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif(u_offScreen){\\\\n\\\\t\\\\t\\\\t\\\\tgl_FragColor = vec4(v_index_color.rgb,v_index_color.a+0.5);\\\\n\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif(u_borderWeight>0.0){//\\\\u6709border\\\\n\\\\t\\\\t\\\\t\\\\tif(dis2center>ro-1.0){\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = vec4(u_borderColor.xyz,u_borderColor.a*(ro-dis2center));\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t\\\\t}else if(dis2center>ri){\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor=u_borderColor;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\treturn;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tvec4 color = v_color;\\\\n\\\\t\\\\t\\\\tif (u_textureNum != 0) {\\\\n\\\\t\\\\t\\\\t\\\\tfloat textureIndex;\\\\n\\\\t\\\\t\\\\t\\\\tif (u_textureNum == 1) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\ttextureIndex = 0.0;\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\ttextureIndex = v_textureIndex;\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tvec2 uv = mix(v_uv.xy,v_uv.zw,gl_PointCoord);\\\\n\\\\t\\\\t\\\\t\\\\tif (textureIndex == 0.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[0], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 1.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[1], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 2.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[2], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 3.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[3], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 4.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[4], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 5.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[5], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 6.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[6], uv);\\\\n\\\\t\\\\t\\\\t\\\\t} else if (textureIndex == 7.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = texture2D(u_textures[7], uv);\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t\\\\tif(u_merge==1){\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tcolor = vec4(color.rgb * color.a + v_color.rgb * (1.0 - color.a), color.a+v_color.a*(1.0-color.a));\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\tif(dis2center>ri-1.0){\\\\n\\\\t\\\\t\\\\t\\\\tfloat factor = ri-dis2center;//\\\\u586b\\\\u5145\\\\u8272\\\\u7684\\\\u767e\\\\u5206\\\\u6bd4\\\\n\\\\t\\\\t\\\\t\\\\tif (u_borderWeight == 0.0) {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfloat a = color.a*factor;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = vec4(color.rgb, a);\\\\n\\\\t\\\\t\\\\t\\\\t} else {\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tfloat a = u_borderColor.a*(1.0-factor) +color.a*factor;\\\\n\\\\t\\\\t\\\\t\\\\t\\\\tgl_FragColor = vec4(u_borderColor.rgb * (1.0-factor) + color.rgb * factor, a);\\\\n\\\\t\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t\\\\t}else{\\\\n\\\\t\\\\t\\\\t\\\\tgl_FragColor=color;\\\\n\\\\t\\\\t\\\\t}\\\\n\\\\t\\\\t}\\\"}});g.bc.aba=g.bc.fx.extend({A:function(a){this.CLASS_NAME=this.CLASS_NAME||\\\"AMap.Object3D.MeshLine\\\";this.Dh(arguments);this.type=\\\"meshline\\\";this.w=a},Gu:function(a){this.needUpdate&&this.yr(this.w,a)},yr:function(a,b){var c=g.a,d=a.path,e=a.height||0,f=c.am(a.color||\\\"black\\\"),h=[],k=[],l=a.unit;\\\"px\\\"===l?d[0]instanceof g.H||c.Ub(d,function(a,b){d[b]=new g.H(a[0],a[1])}):d[0]instanceof g.U||c.Ub(d,function(a,b){d[b]=new g.U(a[0],a[1])});var e=c.isArray(e)?c.map(e,function(a){return-1*a}):c.map(d,function(){return-1* e}),m=e[e.length-1];d.forEach(function(a,c){var d=void 0,d=\\\"px\\\"===l?a:b.OJ(a);h.push(d.x,d.y,e[c]||m);k.push.apply(k,f)});this.W.Z.length&&this.W.Z.splice(0,this.W.Z.length);this.W.cb.length&&this.W.cb.splice(0,this.W.cb.length);g.a.Pf(this.W.Z,h);g.a.Pf(this.W.cb,k)},setColor:function(a){this.w.color=a;this.GH()},setHeight:function(a){this.w.height=a;this.GH()},setWidth:function(a){this.width=this.w.width=a;this.GH()},setPath:function(a){this.w.path=a;this.GH();this.Gu(this.q.get(\\\"map\\\"))},GH:function(){this.needUpdate= !0;this.reDraw()}});$=window.AMap;$.Vector3=g.Pa;$.Object3D=g.bc;$.Object3DLayer=z.q.Pm;$.Object3DGroup=g.cba;$.Walls=g.QF;$.Object3D.Mesh=g.bc.Lt;$.Object3D.MeshAcceptLights=g.bc.FF;$.Object3D.Prism=g.bc.hM;$.Object3D.Wall=g.bc.Qba;$.Object3D.Line=g.bc.yp;$.Object3D.ThinLine=g.bc.QW;$.Object3D.Points=g.bc.FA;$.Object3D.RoundPoints=g.bc.pba;$.Object3D.MeshLine=g.bc.aba;$.Geometry3D={Mesh:g.Pe.Lt,Line:g.Pe.yp,Points:g.Pe.FA};$.Lights={AmbientLight:g.Vw.TV,DirectionLight:g.Vw.dW}; \"}" + } + ] + } + ] +} \ No newline at end of file diff --git a/新建 XLSX 工作表.xlsx b/新建 XLSX 工作表.xlsx new file mode 100644 index 0000000..12b0302 Binary files /dev/null and b/新建 XLSX 工作表.xlsx differ diff --git a/脚本/unlock.js b/脚本/unlock.js new file mode 100644 index 0000000..8918726 --- /dev/null +++ b/脚本/unlock.js @@ -0,0 +1,72 @@ +const { exec } = require('child_process'); + +const CHECK_INTERVAL = 30 * 1000; // 每 30 秒检查一次 +const IDLE_LIMIT = 60 * 1000; // 空闲超过 60 秒则触发 + +// 封装执行 PowerShell 的方法(使用 UTF-16LE 编码避免引号转义问题) +function runPs(script) { + return new Promise((resolve, reject) => { + const encoded = Buffer.from(script, 'utf16le').toString('base64'); + exec(`powershell -NoProfile -EncodedCommand "${encoded}"`, (err, stdout) => { + if (err) reject(err); + else resolve(stdout.trim()); + }); + }); +} + +// 获取当前系统空闲毫秒数 +async function getIdleTime() { + const ps = ` + Add-Type @" + using System; + using System.Runtime.InteropServices; + public class IdleChecker { + [DllImport("user32.dll")] + public static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); + public struct LASTINPUTINFO { + public uint cbSize; + public uint dwTime; + } + public static uint GetIdleMilliseconds() { + LASTINPUTINFO lii = new LASTINPUTINFO(); + lii.cbSize = (uint)Marshal.SizeOf(typeof(LASTINPUTINFO)); + GetLastInputInfo(ref lii); + return (uint)Environment.TickCount - lii.dwTime; + } + } + "@ + [IdleChecker]::GetIdleMilliseconds() + `; + const result = await runPs(ps); + return parseInt(result, 10); +} + +// 模拟按下 F15 键(无任何副作用) +async function pressF15() { + const ps = ` + $wshell = New-Object -ComObject wscript.shell; + $wshell.SendKeys('{F15}'); + `; + await runPs(ps); +} + +console.log('✅ 防锁屏脚本已启动 (PowerShell 模式)'); +console.log(`⏱️ 检测到空闲 ${IDLE_LIMIT/1000} 秒后,自动模拟按键防止锁屏。`); + +setInterval(async () => { + try { + const idleMs = await getIdleTime(); + if (idleMs > IDLE_LIMIT) { + console.log(`🔄 已空闲 ${Math.round(idleMs/1000)} 秒,模拟 F15 重置计时器...`); + await pressF15(); + } + } catch (e) { + console.error('⚠️ 执行出错:', e.message); + } +}, CHECK_INTERVAL); + +// 按 Ctrl+C 退出时提示 +process.on('SIGINT', () => { + console.log('\n🛑 脚本已停止'); + process.exit(0); +}); \ No newline at end of file