diff --git a/build/builder-debug.yml b/build/builder-debug.yml deleted file mode 100644 index 9f2a73f..0000000 --- a/build/builder-debug.yml +++ /dev/null @@ -1,220 +0,0 @@ -x64: - firstOrDefaultFilePatterns: - - '!**/node_modules' - - '!build{,/**/*}' - - '!build{,/**/*}' - - dist/electron/**/* - - node_modules/**/* - - package.json - - '!**/*.{iml,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,suo,xproj,cc,d.ts,pdb}' - - '!**/._*' - - '!**/electron-builder.{yaml,yml,json,json5,toml}' - - '!**/{.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,.DS_Store,thumbs.db,.gitignore,.gitkeep,.gitattributes,.npmignore,.idea,.vs,.flowconfig,.jshintrc,.eslintrc,.circleci,.yarn-integrity,.yarn-metadata.json,yarn-error.log,yarn.lock,package-lock.json,npm-debug.log,appveyor.yml,.travis.yml,circle.yml,.nyc_output}' - - '!.yarn{,/**/*}' - - '!.editorconfig' - - '!.yarnrc.yml' - nodeModuleFilePatterns: - - '**/*' - - dist/electron/**/* - - node_modules/**/* - - package.json -nsis: - script: |- - !include "F:\workCode\fs-4.0\4.0\node_modules\app-builder-lib\templates\nsis\include\StdUtils.nsh" - !addincludedir "F:\workCode\fs-4.0\4.0\node_modules\app-builder-lib\templates\nsis\include" - !macro _isUpdated _a _b _t _f - ${StdUtils.TestParameter} $R9 "updated" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isUpdated `"" isUpdated ""` - - !macro _isForceRun _a _b _t _f - ${StdUtils.TestParameter} $R9 "force-run" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isForceRun `"" isForceRun ""` - - !macro _isKeepShortcuts _a _b _t _f - ${StdUtils.TestParameter} $R9 "keep-shortcuts" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isKeepShortcuts `"" isKeepShortcuts ""` - - !macro _isNoDesktopShortcut _a _b _t _f - ${StdUtils.TestParameter} $R9 "no-desktop-shortcut" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isNoDesktopShortcut `"" isNoDesktopShortcut ""` - - !macro _isDeleteAppData _a _b _t _f - ${StdUtils.TestParameter} $R9 "delete-app-data" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isDeleteAppData `"" isDeleteAppData ""` - - !macro _isForAllUsers _a _b _t _f - ${StdUtils.TestParameter} $R9 "allusers" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isForAllUsers `"" isForAllUsers ""` - - !macro _isForCurrentUser _a _b _t _f - ${StdUtils.TestParameter} $R9 "currentuser" - StrCmp "$R9" "true" `${_t}` `${_f}` - !macroend - !define isForCurrentUser `"" isForCurrentUser ""` - - !macro addLangs - !insertmacro MUI_LANGUAGE "English" - !insertmacro MUI_LANGUAGE "German" - !insertmacro MUI_LANGUAGE "French" - !insertmacro MUI_LANGUAGE "SpanishInternational" - !insertmacro MUI_LANGUAGE "SimpChinese" - !insertmacro MUI_LANGUAGE "TradChinese" - !insertmacro MUI_LANGUAGE "Japanese" - !insertmacro MUI_LANGUAGE "Korean" - !insertmacro MUI_LANGUAGE "Italian" - !insertmacro MUI_LANGUAGE "Dutch" - !insertmacro MUI_LANGUAGE "Danish" - !insertmacro MUI_LANGUAGE "Swedish" - !insertmacro MUI_LANGUAGE "Norwegian" - !insertmacro MUI_LANGUAGE "Finnish" - !insertmacro MUI_LANGUAGE "Russian" - !insertmacro MUI_LANGUAGE "Portuguese" - !insertmacro MUI_LANGUAGE "PortugueseBR" - !insertmacro MUI_LANGUAGE "Polish" - !insertmacro MUI_LANGUAGE "Ukrainian" - !insertmacro MUI_LANGUAGE "Czech" - !insertmacro MUI_LANGUAGE "Slovak" - !insertmacro MUI_LANGUAGE "Hungarian" - !insertmacro MUI_LANGUAGE "Arabic" - !insertmacro MUI_LANGUAGE "Turkish" - !insertmacro MUI_LANGUAGE "Thai" - !insertmacro MUI_LANGUAGE "Vietnamese" - !macroend - - !addincludedir "F:\workCode\fs-4.0\4.0\build" - !include "F:\workCode\fs-4.0\4.0\installer.nsh" - !addplugindir /x86-unicode "C:\Users\Administrator\AppData\Local\electron-builder\Cache\nsis\nsis-resources-3.4.1\plugins\x86-unicode" - !include "C:\Users\ADMINI~1\AppData\Local\Temp\t-wLRMfI\0-messages.nsh" - !include "C:\Users\ADMINI~1\AppData\Local\Temp\t-wLRMfI\1-messages.nsh" - - Var newStartMenuLink - Var oldStartMenuLink - Var newDesktopLink - Var oldDesktopLink - Var oldShortcutName - Var oldMenuDirectory - - !include "common.nsh" - !include "MUI2.nsh" - !include "multiUser.nsh" - !include "allowOnlyOneInstallerInstance.nsh" - - !ifdef INSTALL_MODE_PER_ALL_USERS - !ifdef BUILD_UNINSTALLER - RequestExecutionLevel user - !else - RequestExecutionLevel admin - !endif - !else - RequestExecutionLevel user - !endif - - !ifdef BUILD_UNINSTALLER - SilentInstall silent - !else - Var appExe - Var launchLink - !endif - - !ifdef ONE_CLICK - !include "oneClick.nsh" - !else - !include "assistedInstaller.nsh" - !endif - - !insertmacro addLangs - - !ifmacrodef customHeader - !insertmacro customHeader - !endif - - Function .onInit - SetOutPath $INSTDIR - ${LogSet} on - - !ifmacrodef preInit - !insertmacro preInit - !endif - - !ifdef DISPLAY_LANG_SELECTOR - !insertmacro MUI_LANGDLL_DISPLAY - !endif - - !ifdef BUILD_UNINSTALLER - WriteUninstaller "${UNINSTALLER_OUT_FILE}" - !insertmacro quitSuccess - !else - !insertmacro check64BitAndSetRegView - - !ifdef ONE_CLICK - !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE - !else - ${IfNot} ${UAC_IsInnerInstance} - !insertmacro ALLOW_ONLY_ONE_INSTALLER_INSTANCE - ${EndIf} - !endif - - !insertmacro initMultiUser - - !ifmacrodef customInit - !insertmacro customInit - !endif - - !ifmacrodef addLicenseFiles - InitPluginsDir - !insertmacro addLicenseFiles - !endif - !endif - FunctionEnd - - !ifndef BUILD_UNINSTALLER - !include "installUtil.nsh" - !endif - - Section "install" - !ifndef BUILD_UNINSTALLER - # If we're running a silent upgrade of a per-machine installation, elevate so extracting the new app will succeed. - # For a non-silent install, the elevation will be triggered when the install mode is selected in the UI, - # but that won't be executed when silent. - !ifndef INSTALL_MODE_PER_ALL_USERS - !ifndef ONE_CLICK - ${if} $hasPerMachineInstallation == "1" # set in onInit by initMultiUser - ${andIf} ${Silent} - ${ifNot} ${UAC_IsAdmin} - ShowWindow $HWNDPARENT ${SW_HIDE} - !insertmacro UAC_RunElevated - ${Switch} $0 - ${Case} 0 - ${Break} - ${Case} 1223 ;user aborted - ${Break} - ${Default} - MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Unable to elevate, error $0" - ${Break} - ${EndSwitch} - Quit - ${else} - !insertmacro setInstallModePerAllUsers - ${endIf} - ${endIf} - !endif - !endif - !include "installSection.nsh" - !endif - SectionEnd - - !ifdef BUILD_UNINSTALLER - !include "uninstaller.nsh" - !endif diff --git a/build/builder-effective-config.yaml b/build/builder-effective-config.yaml deleted file mode 100644 index 067e2b2..0000000 --- a/build/builder-effective-config.yaml +++ /dev/null @@ -1,48 +0,0 @@ -directories: - output: build - buildResources: build -extraFiles: - - from: ./collada2gltf/ - to: ./collada2gltf - - from: ./convert/ - to: ./convert - - from: ./yjearth4_0/ - to: ./yjearth4_0 - - from: ./ffplay/ - to: ./ffplay - - from: ./build/icons/ - to: ./icons -productName: 实景三维电子沙盘系统 -appId: org.dzsp_yingjizhihuijunyong_offline_Y_save -files: - - filter: - - dist/electron/**/* - - node_modules/**/* - - package.json -dmg: - contents: - - x: 410 - 'y': 150 - type: link - path: /Applications - - x: 130 - 'y': 150 - type: file -mac: - icon: build/icons/icon.icns -win: - icon: build/icons/81.ico -linux: - target: rpm - icon: build/icons/81.png - desktop: - Icon: /opt/实景三维电子沙盘系统/icons/81.png - executableArgs: - - '--no-sandbox' -nsis: - include: installer.nsh - oneClick: false - perMachine: true - allowToChangeInstallationDirectory: true - language: '2052' -electronVersion: 13.6.9 diff --git a/build/实景三维电子沙盘系统 Setup 4.0.0.exe b/build/实景三维电子沙盘系统 Setup 4.0.0.exe deleted file mode 100644 index 87161ed..0000000 Binary files a/build/实景三维电子沙盘系统 Setup 4.0.0.exe and /dev/null differ diff --git a/build/实景三维电子沙盘系统 Setup 4.0.0.exe.blockmap b/build/实景三维电子沙盘系统 Setup 4.0.0.exe.blockmap deleted file mode 100644 index 64eb094..0000000 Binary files a/build/实景三维电子沙盘系统 Setup 4.0.0.exe.blockmap and /dev/null differ diff --git a/dist/electron/main.js b/dist/electron/main.js index 20307f9..8fabe13 100644 --- a/dist/electron/main.js +++ b/dist/electron/main.js @@ -1,5562 +1 @@ -module.exports = -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 77); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -var core = module.exports = { version: '2.6.12' }; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - - -/***/ }), -/* 1 */ -/***/ (function(module, exports) { - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func - : Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef - - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -var store = __webpack_require__(42)('wks'); -var uid = __webpack_require__(29); -var Symbol = __webpack_require__(1).Symbol; -var USE_SYMBOL = typeof Symbol == 'function'; - -var $exports = module.exports = function (name) { - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); -}; - -$exports.store = store; - - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(1); -var core = __webpack_require__(0); -var ctx = __webpack_require__(11); -var hide = __webpack_require__(12); -var has = __webpack_require__(13); -var PROTOTYPE = 'prototype'; - -var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && has(exports, key)) continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] - // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) - // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? (function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: return new C(); - case 1: return new C(a); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - // make static versions for prototype methods - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; - // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } -}; -// type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe -$export.R = 128; // real proto method for `library` -module.exports = $export; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__(6); -var IE8_DOM_DEFINE = __webpack_require__(57); -var toPrimitive = __webpack_require__(38); -var dP = Object.defineProperty; - -exports.f = __webpack_require__(7) ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(4); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; - - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -// Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(16)(function () { - return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; -}); - - -/***/ }), -/* 8 */ -/***/ (function(module, exports) { - -module.exports = require("path"); - -/***/ }), -/* 9 */ -/***/ (function(module, exports) { - -module.exports = require("electron"); - -/***/ }), -/* 10 */ -/***/ (function(module, exports) { - -module.exports = require("os"); - -/***/ }), -/* 11 */ -/***/ (function(module, exports, __webpack_require__) { - -// optional / simple context binding -var aFunction = __webpack_require__(21); -module.exports = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -var dP = __webpack_require__(5); -var createDesc = __webpack_require__(27); -module.exports = __webpack_require__(7) ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - - -/***/ }), -/* 13 */ -/***/ (function(module, exports) { - -var hasOwnProperty = {}.hasOwnProperty; -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; - - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -module.exports = require("child_process"); - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - -module.exports = require("fs"); - -/***/ }), -/* 16 */ -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } -}; - - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -module.exports = {}; - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(60); -var defined = __webpack_require__(35); -module.exports = function (it) { - return IObject(defined(it)); -}; - - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var $at = __webpack_require__(95)(true); - -// 21.1.3.27 String.prototype[@@iterator]() -__webpack_require__(36)(String, 'String', function (iterated) { - this._t = String(iterated); // target - this._i = 0; // next index -// 21.1.5.2.1 %StringIteratorPrototype%.next() -}, function () { - var O = this._t; - var index = this._i; - var point; - if (index >= O.length) return { value: undefined, done: true }; - point = $at(O, index); - this._i += point.length; - return { value: point, done: false }; -}); - - -/***/ }), -/* 20 */ -/***/ (function(module, exports) { - -module.exports = true; - - -/***/ }), -/* 21 */ -/***/ (function(module, exports) { - -module.exports = function (it) { - if (typeof it != 'function') throw TypeError(it + ' is not a function!'); - return it; -}; - - -/***/ }), -/* 22 */ -/***/ (function(module, exports) { - -var toString = {}.toString; - -module.exports = function (it) { - return toString.call(it).slice(8, -1); -}; - - -/***/ }), -/* 23 */ -/***/ (function(module, exports, __webpack_require__) { - -var def = __webpack_require__(5).f; -var has = __webpack_require__(13); -var TAG = __webpack_require__(2)('toStringTag'); - -module.exports = function (it, tag, stat) { - if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); -}; - - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(100); -var global = __webpack_require__(1); -var hide = __webpack_require__(12); -var Iterators = __webpack_require__(17); -var TO_STRING_TAG = __webpack_require__(2)('toStringTag'); - -var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + - 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + - 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + - 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + - 'TextTrackList,TouchList').split(','); - -for (var i = 0; i < DOMIterables.length; i++) { - var NAME = DOMIterables[i]; - var Collection = global[NAME]; - var proto = Collection && Collection.prototype; - if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); - Iterators[NAME] = Iterators.Array; -} - - -/***/ }), -/* 25 */ -/***/ (function(module, exports, __webpack_require__) { - -var ctx = __webpack_require__(11); -var call = __webpack_require__(113); -var isArrayIter = __webpack_require__(114); -var anObject = __webpack_require__(6); -var toLength = __webpack_require__(40); -var getIterFn = __webpack_require__(68); -var BREAK = {}; -var RETURN = {}; -var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { - var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); - var f = ctx(fn, that, entries ? 2 : 1); - var index = 0; - var length, step, iterator, result; - if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); - // fast case for arrays with default iterator - if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { - result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); - if (result === BREAK || result === RETURN) return result; - } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { - result = call(iterator, f, step.value, entries); - if (result === BREAK || result === RETURN) return result; - } -}; -exports.BREAK = BREAK; -exports.RETURN = RETURN; - - -/***/ }), -/* 26 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GetHomeDir; }); -/* unused harmony export GetAsar */ - -function GetHomeDir() { - var HOME_DIR = process.cwd(); - console.log("process.env.NODE_ENV", process.env.NODE_ENV); - if (process.env.NODE_ENV === "production") { - var arr = process.execPath.replaceAll("\\", "/").split("/"); - arr.pop(); - HOME_DIR = arr.join("/"); - } - return HOME_DIR; -} - -function GetAsar() { - if (process.env.NODE_ENV === "production") { - var arr = process.execPath.replaceAll("\\", "/").split("/"); - arr.pop(); - HOME_DIR = arr.join("/"); - } - return HOME_DIR; -} - - -/***/ }), -/* 27 */ -/***/ (function(module, exports) { - -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - - -/***/ }), -/* 28 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(6); -var dPs = __webpack_require__(97); -var enumBugKeys = __webpack_require__(43); -var IE_PROTO = __webpack_require__(41)('IE_PROTO'); -var Empty = function () { /* empty */ }; -var PROTOTYPE = 'prototype'; - -// Create object with fake `null` prototype: use iframe Object with cleared prototype -var createDict = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(37)('iframe'); - var i = enumBugKeys.length; - var lt = '<'; - var gt = '>'; - var iframeDocument; - iframe.style.display = 'none'; - __webpack_require__(61).appendChild(iframe); - iframe.src = 'javascript:'; // eslint-disable-line no-script-url - // createDict = iframe.contentWindow.Object; - // html.removeChild(iframe); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); - iframeDocument.close(); - createDict = iframeDocument.F; - while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; - return createDict(); -}; - -module.exports = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - Empty[PROTOTYPE] = anObject(O); - result = new Empty(); - Empty[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO] = O; - } else result = createDict(); - return Properties === undefined ? result : dPs(result, Properties); -}; - - -/***/ }), -/* 29 */ -/***/ (function(module, exports) { - -var id = 0; -var px = Math.random(); -module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); -}; - - -/***/ }), -/* 30 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.13 ToObject(argument) -var defined = __webpack_require__(35); -module.exports = function (it) { - return Object(defined(it)); -}; - - -/***/ }), -/* 31 */ -/***/ (function(module, exports, __webpack_require__) { - -// getting tag from 19.1.3.6 Object.prototype.toString() -var cof = __webpack_require__(22); -var TAG = __webpack_require__(2)('toStringTag'); -// ES3 wrong here -var ARG = cof(function () { return arguments; }()) == 'Arguments'; - -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { - try { - return it[key]; - } catch (e) { /* empty */ } -}; - -module.exports = function (it) { - var O, T, B; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T - // builtinTag case - : ARG ? cof(O) - // ES3 arguments fallback - : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; -}; - - -/***/ }), -/* 32 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* WEBPACK VAR INJECTION */(function(__dirname) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getmainWindow", function() { return getmainWindow; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_electron__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_electron___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_electron__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config__ = __webpack_require__(86); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__config__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__back_processGo__ = __webpack_require__(53); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__back_processGo___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__back_processGo__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__back_app__ = __webpack_require__(54); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dbPath__ = __webpack_require__(91); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__dbPath___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__dbPath__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__back_ipcMain__ = __webpack_require__(92); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__back_awesomeProject3_test__ = __webpack_require__(174); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__back_awesomeProject3_test___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__back_awesomeProject3_test__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_path__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_path___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_path__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__back_sandTable_udpServer__ = __webpack_require__(75); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__tool__ = __webpack_require__(175); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__back_config__ = __webpack_require__(26); - - - - - - - - - - - -var os = __webpack_require__(10); -var sharedObject = {}; - -process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true; - -if (process.env.NODE_ENV !== "development") { - global.__static = __webpack_require__(8).join(__dirname, "/static").replace(/\\/g, "\\\\"); -} - -var mainWindow = void 0; -var splashWindow = void 0; -var winURL = process.env.NODE_ENV === "development" ? "http://localhost:" + __WEBPACK_IMPORTED_MODULE_1__config___default.a.AppConfig.PORT : "file://" + __dirname + "/index.html"; - -var isDev = !__WEBPACK_IMPORTED_MODULE_0_electron__["app"].isPackaged; - -var icon = process.env.NODE_ENV === "development" ? __WEBPACK_IMPORTED_MODULE_7_path__["join"](Object(__WEBPACK_IMPORTED_MODULE_10__back_config__["a" /* GetHomeDir */])(), "static/logo_ico/81.ico") : __WEBPACK_IMPORTED_MODULE_7_path__["join"](Object(__WEBPACK_IMPORTED_MODULE_10__back_config__["a" /* GetHomeDir */])(), "resources/app.asar/" + "dist/electron/static/logo_ico/81.png"); -function reExeName() { - var platform = os.platform(); - var fs = __webpack_require__(15); - var cmd = ""; - if (platform === "win32") { - cmd = "yjearth4.exe"; - } - if (platform === "linux") { - cmd = "yjearth4"; - } - var newcmd = ""; - if (platform === "win32") { - newcmd = "yjearth4" + __WEBPACK_IMPORTED_MODULE_4__dbPath__["execPath"] + ".exe"; - } - if (platform === "linux") { - newcmd = "yjearth4" + __WEBPACK_IMPORTED_MODULE_4__dbPath__["execPath"]; - } - - var oldPath = __WEBPACK_IMPORTED_MODULE_7_path__["join"](Object(__WEBPACK_IMPORTED_MODULE_10__back_config__["a" /* GetHomeDir */])() + "/yjearth4_0/", cmd); - - var newPath = __WEBPACK_IMPORTED_MODULE_7_path__["join"](Object(__WEBPACK_IMPORTED_MODULE_10__back_config__["a" /* GetHomeDir */])() + "/yjearth4_0/", newcmd); - console.log("oldPath", newPath); - - fs.access(oldPath, fs.constants.F_OK, function (err) { - if (err) { - console.error(oldPath + " does not exist."); - return; - } - - fs.rename(oldPath, newPath, function (err) { - if (err) { - console.error("Error renaming " + oldPath + " to " + newPath + ": " + err); - return; - } - - console.log("File renamed from " + oldPath + " to " + newPath); - }); - }); -} -function createSplashWindow() { - splashWindow = new __WEBPACK_IMPORTED_MODULE_0_electron__["BrowserWindow"]({ - width: 896, - height: 510, - transparent: true, - frame: false, - alwaysOnTop: true, - icon: icon, - webPreferences: { - nodeIntegration: true, - contextIsolation: false, - enableRemoteModule: true, - webSecurity: false, - devTools: false - } - }); - - splashWindow.loadURL(splashURL); - - splashWindow.on("closed", function () { - splashWindow = null; - }); - - splashWindow.webContents.on("did-finish-load", function () { - splashWindow.show(); - }); - - var _require = __webpack_require__(9), - ipcMain = _require.ipcMain; - - ipcMain.on("splash-completed", function () { - setTimeout(function () { - if (mainWindow && !mainWindow.isDestroyed()) { - mainWindow.maximize(); - mainWindow.show(); - mainWindow.focus(); - - setTimeout(function () { - mainWindow.webContents.send("start-login-video"); - }, 200); - } - - if (splashWindow && !splashWindow.isDestroyed()) { - splashWindow.close(); - } - }, 500); - }); -} -function createWindow() { - Object(__WEBPACK_IMPORTED_MODULE_3__back_app__["b" /* start */])(); - - var prefix = __WEBPACK_IMPORTED_MODULE_4__dbPath__["execPath"]; - console.log("process.env.NODE_ENV +++", process.env.NODE_ENV); - if (process.env.NODE_ENV === "production") { - reExeName(); - } else { - prefix = ""; - } - Object(__WEBPACK_IMPORTED_MODULE_9__tool__["a" /* killProcessByName */])(prefix); - setTimeout(function () { - Object(__WEBPACK_IMPORTED_MODULE_2__back_processGo__["runProcess"])(prefix, __WEBPACK_IMPORTED_MODULE_4__dbPath__["db_path"]); - - mainWindow = new __WEBPACK_IMPORTED_MODULE_0_electron__["BrowserWindow"]({ - minWidth: 1500, - minHeight: 860, - useContentSize: true, - simpleFullscreen: true, - resizable: true, - frame: __WEBPACK_IMPORTED_MODULE_1__config___default.a.IsUseSysTitle, - icon: icon, - show: true, - webPreferences: { - nodeIntegration: true, - contextIsolation: false, - enableRemoteModule: true, - webSecurity: false, - - devTools: true, - - scrollBounce: process.platform === "darwin" - } - }); - mainWindow.loadURL(winURL); - Object(__WEBPACK_IMPORTED_MODULE_8__back_sandTable_udpServer__["a" /* Init */])(); - mainWindow.center(); - mainWindow.maximize(); - __WEBPACK_IMPORTED_MODULE_5__back_ipcMain__["a" /* default */].Mainfunc(mainWindow); - - mainWindow.webContents.on("did-finish-load", function () { - mainWindow.show(); - mainWindow.focus(); - mainWindow.webContents.executeJavaScript("\n const { ipcRenderer } = require('electron'); \n window.addEventListener('dragover', (event) => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'copy'; // \u663E\u793A\u590D\u5236\u6548\u679C\n });\n window.addEventListener('drop', (event) => {\n event.preventDefault();\n const files = event.dataTransfer.files;\n if (files.length > 0) {\n ipcRenderer.send('files-dropped', Array.from(files).map(file => file.path));\n }\n });\n "); - }); - - mainWindow.webContents.on("did-fail-load", function () {}); - - mainWindow.on("closed", function () { - mainWindow = null; - }); - mainWindow.on("close", function (e) { - e.preventDefault(); - __WEBPACK_IMPORTED_MODULE_0_electron__["dialog"].showMessageBox(mainWindow, { - type: "warning", - title: "提示", - message: "是否确认退出系统?", - buttons: ["cancel", "ok"] - }).then(function (res) { - if (res.response) { - mainWindow = null; - Object(__WEBPACK_IMPORTED_MODULE_2__back_processGo__["closeChild"])(); - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].exit(); - } - }); - }); - __WEBPACK_IMPORTED_MODULE_0_electron__["Menu"].setApplicationMenu(null); - if (process.env.NODE_ENV === "development") mainWindow.webContents.openDevTools({ - mode: "undocked" - }); - __WEBPACK_IMPORTED_MODULE_0_electron__["globalShortcut"].register("CommandOrControl+f5", function () { - mainWindow.reload(); - - mainWindow.webContents.once("did-finish-load", function () { - setTimeout(function () { - if (mainWindow && !mainWindow.isDestroyed()) { - console.log("发送播放视频消息"); - mainWindow.webContents.send("start-login-video"); - } - }, 500); - }); - }); - console.log(mainWindow.WebPreferences); - var flg = true; - __WEBPACK_IMPORTED_MODULE_0_electron__["globalShortcut"].register("CommandOrControl+f12", function () { - mainWindow.openDevTools(flg); - flg = !flg; - }); - }, 1000); -} -function getmainWindow() { - return mainWindow; -} - -var gotTheLock = __WEBPACK_IMPORTED_MODULE_0_electron__["app"].requestSingleInstanceLock(); - -if (!gotTheLock) { - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].quit(); -} else { - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].on("ready", createWindow); - if (__WEBPACK_IMPORTED_MODULE_0_electron__["app"].isReady()) {} - - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].on("window-all-closed", function () { - if (process.platform !== "darwin") { - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].quit(); - } - }); - - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].on("activate", function () { - if (mainWindow === null) { - createWindow(); - } - }); - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].on("second-instance", function (event, commandLine, workingDirectory) { - if (mainWindow) { - if (mainWindow.isMinimized()) mainWindow.restore(); - mainWindow.focus(); - } - }); - __WEBPACK_IMPORTED_MODULE_0_electron__["app"].on("before-quit", function () { - Object(__WEBPACK_IMPORTED_MODULE_2__back_processGo__["closeChild"])(); - }); - - global.sharedObject = { - hasService: false - }; -} - -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, "src\\main")) - -/***/ }), -/* 33 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _iterator = __webpack_require__(93); - -var _iterator2 = _interopRequireDefault(_iterator); - -var _symbol = __webpack_require__(102); - -var _symbol2 = _interopRequireDefault(_symbol); - -var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; }; - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) { - return typeof obj === "undefined" ? "undefined" : _typeof(obj); -} : function (obj) { - return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj); -}; - -/***/ }), -/* 34 */ -/***/ (function(module, exports) { - -// 7.1.4 ToInteger -var ceil = Math.ceil; -var floor = Math.floor; -module.exports = function (it) { - return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); -}; - - -/***/ }), -/* 35 */ -/***/ (function(module, exports) { - -// 7.2.1 RequireObjectCoercible(argument) -module.exports = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - - -/***/ }), -/* 36 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var LIBRARY = __webpack_require__(20); -var $export = __webpack_require__(3); -var redefine = __webpack_require__(58); -var hide = __webpack_require__(12); -var Iterators = __webpack_require__(17); -var $iterCreate = __webpack_require__(96); -var setToStringTag = __webpack_require__(23); -var getPrototypeOf = __webpack_require__(62); -var ITERATOR = __webpack_require__(2)('iterator'); -var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` -var FF_ITERATOR = '@@iterator'; -var KEYS = 'keys'; -var VALUES = 'values'; - -var returnThis = function () { return this; }; - -module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var getMethod = function (kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case KEYS: return function keys() { return new Constructor(this, kind); }; - case VALUES: return function values() { return new Constructor(this, kind); }; - } return function entries() { return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator'; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto = Base.prototype; - var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; - var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; - var methods, key, IteratorPrototype; - // Fix native - if ($anyNative) { - IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); - } - } - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { return $native.call(this); }; - } - // Define iterator - if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { - hide(proto, ITERATOR, $default); - } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if (DEFAULT) { - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) for (key in methods) { - if (!(key in proto)) redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - } - return methods; -}; - - -/***/ }), -/* 37 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(4); -var document = __webpack_require__(1).document; -// typeof document.createElement is 'object' in old IE -var is = isObject(document) && isObject(document.createElement); -module.exports = function (it) { - return is ? document.createElement(it) : {}; -}; - - -/***/ }), -/* 38 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(4); -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -module.exports = function (it, S) { - if (!isObject(it)) return it; - var fn, val; - if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; - if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; - throw TypeError("Can't convert object to primitive value"); -}; - - -/***/ }), -/* 39 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(59); -var enumBugKeys = __webpack_require__(43); - -module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); -}; - - -/***/ }), -/* 40 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.15 ToLength -var toInteger = __webpack_require__(34); -var min = Math.min; -module.exports = function (it) { - return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 -}; - - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -var shared = __webpack_require__(42)('keys'); -var uid = __webpack_require__(29); -module.exports = function (key) { - return shared[key] || (shared[key] = uid(key)); -}; - - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -var core = __webpack_require__(0); -var global = __webpack_require__(1); -var SHARED = '__core-js_shared__'; -var store = global[SHARED] || (global[SHARED] = {}); - -(module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: core.version, - mode: __webpack_require__(20) ? 'pure' : 'global', - copyright: '© 2020 Denis Pushkarev (zloirock.ru)' -}); - - -/***/ }), -/* 43 */ -/***/ (function(module, exports) { - -// IE 8- don't enum bug keys -module.exports = ( - 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' -).split(','); - - -/***/ }), -/* 44 */ -/***/ (function(module, exports, __webpack_require__) { - -exports.f = __webpack_require__(2); - - -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -var META = __webpack_require__(29)('meta'); -var isObject = __webpack_require__(4); -var has = __webpack_require__(13); -var setDesc = __webpack_require__(5).f; -var id = 0; -var isExtensible = Object.isExtensible || function () { - return true; -}; -var FREEZE = !__webpack_require__(16)(function () { - return isExtensible(Object.preventExtensions({})); -}); -var setMeta = function (it) { - setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); -}; -var fastKey = function (it, create) { - // return primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMeta(it); - // return object ID - } return it[META].i; -}; -var getWeak = function (it, create) { - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMeta(it); - // return hash weak collections IDs - } return it[META].w; -}; -// add metadata on freeze-family methods calling -var onFreeze = function (it) { - if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); - return it; -}; -var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, - onFreeze: onFreeze -}; - - -/***/ }), -/* 46 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(1); -var core = __webpack_require__(0); -var LIBRARY = __webpack_require__(20); -var wksExt = __webpack_require__(44); -var defineProperty = __webpack_require__(5).f; -module.exports = function (name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); -}; - - -/***/ }), -/* 47 */ -/***/ (function(module, exports) { - -exports.f = {}.propertyIsEnumerable; - - -/***/ }), -/* 48 */ -/***/ (function(module, exports) { - - - -/***/ }), -/* 49 */ -/***/ (function(module, exports, __webpack_require__) { - -var hide = __webpack_require__(12); -module.exports = function (target, src, safe) { - for (var key in src) { - if (safe && target[key]) target[key] = src[key]; - else hide(target, key, src[key]); - } return target; -}; - - -/***/ }), -/* 50 */ -/***/ (function(module, exports) { - -module.exports = function (it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { - throw TypeError(name + ': incorrect invocation!'); - } return it; -}; - - -/***/ }), -/* 51 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// 25.4.1.5 NewPromiseCapability(C) -var aFunction = __webpack_require__(21); - -function PromiseCapability(C) { - var resolve, reject; - this.promise = new C(function ($$resolve, $$reject) { - if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); - resolve = $$resolve; - reject = $$reject; - }); - this.resolve = aFunction(resolve); - this.reject = aFunction(reject); -} - -module.exports.f = function (C) { - return new PromiseCapability(C); -}; - - -/***/ }), -/* 52 */ -/***/ (function(module, exports) { - -function webpackEmptyContext(req) { - throw new Error("Cannot find module '" + req + "'."); -} -webpackEmptyContext.keys = function() { return []; }; -webpackEmptyContext.resolve = webpackEmptyContext; -module.exports = webpackEmptyContext; -webpackEmptyContext.id = 52; - -/***/ }), -/* 53 */ -/***/ (function(module, exports, __webpack_require__) { - -var _require = __webpack_require__(14), - exec = _require.exec, - spawn = _require.spawn; - -var os = __webpack_require__(10); -var path = __webpack_require__(8); -var fs = __webpack_require__(15); - -var child = null; - -function runProcess(execPath) { - var dbPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "C:\\Users\\Administrator\\Desktop\\go"; - - var platform = os.platform(); - var cmd = ""; - if (platform === "win32") { - cmd = "yjearth4" + execPath + ".exe"; - } - if (platform === "linux") { - cmd = "yjearth4" + execPath; - } - if (!fs.existsSync(dbPath)) { - fs.mkdirSync(dbPath); - } - - var home_path = path.join(GetHomeDir(), "/yjearth4_0/"); - - console.log(home_path); - var cmd_path = path.join(home_path, cmd); - console.log("cmd_path0", cmd_path); - child = spawn(cmd_path, [dbPath], { - cwd: home_path, - stdio: "ignore" - }).on("exit", function (err) { - console.log("out"); - console.log('err', err); - global.sharedObject.hasService = false; - }).on("stdio", function (err, s) { - console.log(err); - console.log(s); - }); - global.sharedObject.hasService = true; -} - -function GetHomeDir() { - var HOME_DIR = process.cwd(); - - if (process.env.NODE_ENV === "production") { - var arr = process.execPath.replaceAll("\\", "/").split("/"); - arr.pop(); - HOME_DIR = arr.join("/"); - } - return HOME_DIR; -} - -function closeChild() { - if (child) { - child.kill(); - child = null; - } -} - -module.exports = { runProcess: runProcess, closeChild: closeChild }; - -/***/ }), -/* 54 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return apps; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return start; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_electron__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_electron___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_electron__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config__ = __webpack_require__(26); - -var net = __webpack_require__(90); -var express = __webpack_require__(55); -var path = __webpack_require__(8); - - - -var SERVER_PORTS = 55110; - -function portIsOccupied(port, cb) { - port = Number(port); - var server = net.createServer().listen(port); - - server.on("listening", function () { - server.close(); - console.log("端口【" + port + "】 可用"); - SERVER_PORTS = port; - cb(port); - }); - - server.on("error", function (err) { - if (err.code === "EADDRINUSE") { - console.log("端口【" + port + "】 被占用"); - portIsOccupied(++port, cb); - } - }); -} - -var apps = void 0; - -function createApp() { - apps = express(); - - apps.all("*", function (req, res, next) { - res.header("Access-Control-Allow-Origin", "*"); - - res.header("Access-Control-Allow-Headers", "content-type"); - - res.header("Access-Control-Allow-Methods", "POST,GET"); - if (req.url === "/api/v1/file/upload") { - req.setTimeout(1000 * 60 * 2 * 5 * 2); - res.setTimeout(1000 * 60 * 2 * 5 * 2); - } - if (req.method.toLowerCase() === "options") res.sendStatus(200);else { - next(); - } - }); - - - var prefix = process.env.NODE_ENV === "development" ? "" : "resources/app.asar/dist/electron/"; - var static_path = ["./", "static"]; - var home_dir = Object(__WEBPACK_IMPORTED_MODULE_1__config__["a" /* GetHomeDir */])(); - static_path.forEach(function (p) { - apps.use(express.static(path.join(path.join(home_dir, prefix), p))); - }); -} -function start() { - createApp(); - portIsOccupied(SERVER_PORTS, function (avilablePort) { - apps.listen(avilablePort); - - global.sharedObject.avilablePort = avilablePort; - }); -} - - - - -/***/ }), -/* 55 */ -/***/ (function(module, exports) { - -module.exports = require("express"); - -/***/ }), -/* 56 */ -/***/ (function(module, exports) { - -module.exports = require("electron-store"); - -/***/ }), -/* 57 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = !__webpack_require__(7) && !__webpack_require__(16)(function () { - return Object.defineProperty(__webpack_require__(37)('div'), 'a', { get: function () { return 7; } }).a != 7; -}); - - -/***/ }), -/* 58 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(12); - - -/***/ }), -/* 59 */ -/***/ (function(module, exports, __webpack_require__) { - -var has = __webpack_require__(13); -var toIObject = __webpack_require__(18); -var arrayIndexOf = __webpack_require__(98)(false); -var IE_PROTO = __webpack_require__(41)('IE_PROTO'); - -module.exports = function (object, names) { - var O = toIObject(object); - var i = 0; - var result = []; - var key; - for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); - // Don't enum bug & hidden keys - while (names.length > i) if (has(O, key = names[i++])) { - ~arrayIndexOf(result, key) || result.push(key); - } - return result; -}; - - -/***/ }), -/* 60 */ -/***/ (function(module, exports, __webpack_require__) { - -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = __webpack_require__(22); -// eslint-disable-next-line no-prototype-builtins -module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { - return cof(it) == 'String' ? it.split('') : Object(it); -}; - - -/***/ }), -/* 61 */ -/***/ (function(module, exports, __webpack_require__) { - -var document = __webpack_require__(1).document; -module.exports = document && document.documentElement; - - -/***/ }), -/* 62 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = __webpack_require__(13); -var toObject = __webpack_require__(30); -var IE_PROTO = __webpack_require__(41)('IE_PROTO'); -var ObjectProto = Object.prototype; - -module.exports = Object.getPrototypeOf || function (O) { - O = toObject(O); - if (has(O, IE_PROTO)) return O[IE_PROTO]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectProto : null; -}; - - -/***/ }), -/* 63 */ -/***/ (function(module, exports) { - -module.exports = function (done, value) { - return { value: value, done: !!done }; -}; - - -/***/ }), -/* 64 */ -/***/ (function(module, exports) { - -exports.f = Object.getOwnPropertySymbols; - - -/***/ }), -/* 65 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.2.2 IsArray(argument) -var cof = __webpack_require__(22); -module.exports = Array.isArray || function isArray(arg) { - return cof(arg) == 'Array'; -}; - - -/***/ }), -/* 66 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var $keys = __webpack_require__(59); -var hiddenKeys = __webpack_require__(43).concat('length', 'prototype'); - -exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return $keys(O, hiddenKeys); -}; - - -/***/ }), -/* 67 */ -/***/ (function(module, exports, __webpack_require__) { - -var pIE = __webpack_require__(47); -var createDesc = __webpack_require__(27); -var toIObject = __webpack_require__(18); -var toPrimitive = __webpack_require__(38); -var has = __webpack_require__(13); -var IE8_DOM_DEFINE = __webpack_require__(57); -var gOPD = Object.getOwnPropertyDescriptor; - -exports.f = __webpack_require__(7) ? gOPD : function getOwnPropertyDescriptor(O, P) { - O = toIObject(O); - P = toPrimitive(P, true); - if (IE8_DOM_DEFINE) try { - return gOPD(O, P); - } catch (e) { /* empty */ } - if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); -}; - - -/***/ }), -/* 68 */ -/***/ (function(module, exports, __webpack_require__) { - -var classof = __webpack_require__(31); -var ITERATOR = __webpack_require__(2)('iterator'); -var Iterators = __webpack_require__(17); -module.exports = __webpack_require__(0).getIteratorMethod = function (it) { - if (it != undefined) return it[ITERATOR] - || it['@@iterator'] - || Iterators[classof(it)]; -}; - - -/***/ }), -/* 69 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var global = __webpack_require__(1); -var core = __webpack_require__(0); -var dP = __webpack_require__(5); -var DESCRIPTORS = __webpack_require__(7); -var SPECIES = __webpack_require__(2)('species'); - -module.exports = function (KEY) { - var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; - if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { - configurable: true, - get: function () { return this; } - }); -}; - - -/***/ }), -/* 70 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(4); -module.exports = function (it, TYPE) { - if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); - return it; -}; - - -/***/ }), -/* 71 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.3.20 SpeciesConstructor(O, defaultConstructor) -var anObject = __webpack_require__(6); -var aFunction = __webpack_require__(21); -var SPECIES = __webpack_require__(2)('species'); -module.exports = function (O, D) { - var C = anObject(O).constructor; - var S; - return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); -}; - - -/***/ }), -/* 72 */ -/***/ (function(module, exports, __webpack_require__) { - -var ctx = __webpack_require__(11); -var invoke = __webpack_require__(136); -var html = __webpack_require__(61); -var cel = __webpack_require__(37); -var global = __webpack_require__(1); -var process = global.process; -var setTask = global.setImmediate; -var clearTask = global.clearImmediate; -var MessageChannel = global.MessageChannel; -var Dispatch = global.Dispatch; -var counter = 0; -var queue = {}; -var ONREADYSTATECHANGE = 'onreadystatechange'; -var defer, channel, port; -var run = function () { - var id = +this; - // eslint-disable-next-line no-prototype-builtins - if (queue.hasOwnProperty(id)) { - var fn = queue[id]; - delete queue[id]; - fn(); - } -}; -var listener = function (event) { - run.call(event.data); -}; -// Node.js 0.9+ & IE10+ has setImmediate, otherwise: -if (!setTask || !clearTask) { - setTask = function setImmediate(fn) { - var args = []; - var i = 1; - while (arguments.length > i) args.push(arguments[i++]); - queue[++counter] = function () { - // eslint-disable-next-line no-new-func - invoke(typeof fn == 'function' ? fn : Function(fn), args); - }; - defer(counter); - return counter; - }; - clearTask = function clearImmediate(id) { - delete queue[id]; - }; - // Node.js 0.8- - if (__webpack_require__(22)(process) == 'process') { - defer = function (id) { - process.nextTick(ctx(run, id, 1)); - }; - // Sphere (JS game engine) Dispatch API - } else if (Dispatch && Dispatch.now) { - defer = function (id) { - Dispatch.now(ctx(run, id, 1)); - }; - // Browsers with MessageChannel, includes WebWorkers - } else if (MessageChannel) { - channel = new MessageChannel(); - port = channel.port2; - channel.port1.onmessage = listener; - defer = ctx(port.postMessage, port, 1); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { - defer = function (id) { - global.postMessage(id + '', '*'); - }; - global.addEventListener('message', listener, false); - // IE8- - } else if (ONREADYSTATECHANGE in cel('script')) { - defer = function (id) { - html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { - html.removeChild(this); - run.call(id); - }; - }; - // Rest old browsers - } else { - defer = function (id) { - setTimeout(ctx(run, id, 1), 0); - }; - } -} -module.exports = { - set: setTask, - clear: clearTask -}; - - -/***/ }), -/* 73 */ -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return { e: false, v: exec() }; - } catch (e) { - return { e: true, v: e }; - } -}; - - -/***/ }), -/* 74 */ -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__(6); -var isObject = __webpack_require__(4); -var newPromiseCapability = __webpack_require__(51); - -module.exports = function (C, x) { - anObject(C); - if (isObject(x) && x.constructor === C) return x; - var promiseCapability = newPromiseCapability.f(C); - var resolve = promiseCapability.resolve; - resolve(x); - return promiseCapability.promise; -}; - - -/***/ }), -/* 75 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* unused harmony export GetUdpServerPort */ -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return UpdateUdpServerPort; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Init; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return sendMsg; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_slicedToArray__ = __webpack_require__(165); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_slicedToArray__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_electron__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_electron___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_electron__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__index__ = __webpack_require__(32); - - - -var dgram = __webpack_require__(171); - -var server = void 0; -var Store = __webpack_require__(56); -var store = new Store(); -var sandTable_udp_server_port = "sandTable_udp_server_port"; -function Init() { - if (server) { - server.close(); - server = null; - } - var port = GetUdpServerPort().port; - server = dgram.createSocket("udp4"); - - console.log("udp的port", port); - console.log("udp的server", server); - server.on("listening", function () { - var address = server.address(); - console.log("server running " + address.address + ":" + address.port); - - Object(__WEBPACK_IMPORTED_MODULE_2__index__["getmainWindow"])().webContents.send('udpServerSuccess', "udp服务创建成功"); - }); - - server.on("message", function (msg, remoteInfo) { - console.log("udp server got " + msg + " from " + remoteInfo.address + ":" + remoteInfo.port); - - var ModeIndex = 1; - try { - var positions = []; - var str = msg.toString(); - - var angle = 45; - if (ModeIndex == 0) { - var s = JSON.parse(str); - if (typeof s == "string") s = JSON.parse(s); - console.log(s); - - if (s.Placemark.hasOwnProperty("Point")) { - var arr = s.Placemark.Point.coordinates.split(","); - var position = { - lng: Number(arr[0]), - lat: Number(arr[1]), - alt: Number(arr[2]) || 0 - }; - if (arr.length > 2) position.alt = arr[2]; - if (arr.length > 3) angle = arr[3]; - positions.push(position); - } else { - var coordinates = s.Placemark.Polygon.outerBoundaryIs.LinearRing.coordinates; - var parseCoordinates = function parseCoordinates(coords) { - return coords.split(" ").map(function (pair) { - var _pair$split$map = pair.split(",").map(Number), - _pair$split$map2 = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_slicedToArray___default()(_pair$split$map, 2), - lng = _pair$split$map2[0], - lat = _pair$split$map2[1]; - - return { lng: lng, lat: lat }; - }); - }; - positions = parseCoordinates(coordinates); - } - Object(__WEBPACK_IMPORTED_MODULE_2__index__["getmainWindow"])().webContents.send(sandTable_udp_server_port, positions, angle); - } else if (ModeIndex == 1) { - var key = str.slice(0, -3); - - var status = str.split(key)[1]; - Object(__WEBPACK_IMPORTED_MODULE_2__index__["getmainWindow"])().webContents.send(sandTable_udp_server_port + "_str", key, status); - } - } catch (err) { - console.log(err); - } - }); - server.on("error", function (err) { - console.log("server error", err); - Object(__WEBPACK_IMPORTED_MODULE_2__index__["getmainWindow"])().webContents.send('udpServerError', "udp服务创建失败,尝试更换端口"); - }); - console.log("port ", port); - server.bind(port); - - sendMsg("A000g #"); -} -function sendMsg(val) { - var msg = void 0; - var port = store.get("sandTable_udp_client_port") || 60000; - var ip = store.get("sandTable_udp_client_host"); - server.send(val, port, ip); - return; - var num = val.toString().split(""); - var swit = Number(num.pop()); - if (swit == 1 || swit == 0) { - var cnt = num.join(""); - if (cnt == "FF") { - var message = Buffer.from([0xff, Number(swit)]); - server.send(message, port, ip); - msg = "发送成功"; - } else { - var exp = /^[+-]?\d*(\.\d*)?(e[+-]?\d+)?$/; - if (exp.test(cnt)) { - var cntHex = cnt.toString(16); - var switHex = swit.toString(16); - var _message = Buffer.from([cntHex, switHex], "hex"); - console.log("message", _message); - server.send(_message, port, ip); - msg = "发送成功"; - } else { - msg = "接受失败"; - } - } - } - return msg; -} - -function UpdateUdpServerPort(port) { - store.set(sandTable_udp_server_port, port); - - Init(); -} - -function GetUdpServerPort() { - var port = 6000; - var server_port = store.get(sandTable_udp_server_port); - if (!server_port) { - store.set(sandTable_udp_server_port, port); - } else { - port = server_port; - } - var host = getHostIP(); - console.log("GetUdpServerPort", port); - return { port: port, host: host }; -} -function getHostIP() { - var os = __webpack_require__(10); - var interfaces = os.networkInterfaces(); - var hostIP = ""; - console.log(interfaces); - - for (var networkInterface in interfaces) { - if (networkInterface.indexOf("以太网") > -1) { - var iface = interfaces[networkInterface]; - for (var i = 0; i < iface.length; i++) { - var _iface$i = iface[i], - address = _iface$i.address, - family = _iface$i.family, - internal = _iface$i.internal; - - if (family === "IPv4" && !internal) { - hostIP = address; - break; - } - } - - if (hostIP) { - break; - } - } - } - - return hostIP; -} - - - -/***/ }), -/* 76 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(169), __esModule: true }; - -/***/ }), -/* 77 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(78); -module.exports = __webpack_require__(32); - - -/***/ }), -/* 78 */ -/***/ (function(module, exports, __webpack_require__) { - - -process.env.NODE_ENV = 'development'; - -__webpack_require__(79)({ showDevTools: true }); - -__webpack_require__(9).app.on('ready', function () {}); - -__webpack_require__(32); - -/***/ }), -/* 79 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -const electron = __webpack_require__(9); -const localShortcut = __webpack_require__(80); -const isDev = __webpack_require__(85); - -const app = electron.app; -const BrowserWindow = electron.BrowserWindow; -const isMacOS = process.platform === 'darwin'; - -function devTools(win) { - win = win || BrowserWindow.getFocusedWindow(); - - if (win) { - win.toggleDevTools(); - } -} - -function openDevTools(win, showDevTools) { - win = win || BrowserWindow.getFocusedWindow(); - - if (win) { - const mode = showDevTools === true ? undefined : showDevTools; - win.webContents.openDevTools({mode}); - } -} - -function refresh(win) { - win = win || BrowserWindow.getFocusedWindow(); - - if (win) { - win.webContents.reloadIgnoringCache(); - } -} - -function inspectElements() { - const win = BrowserWindow.getFocusedWindow(); - const inspect = () => { - win.devToolsWebContents.executeJavaScript('DevToolsAPI.enterInspectElementMode()'); - }; - - if (win) { - if (win.webContents.isDevToolsOpened()) { - inspect(); - } else { - win.webContents.on('devtools-opened', inspect); - win.openDevTools(); - } - } -} - -const addExtensionIfInstalled = (name, getPath) => { - const isExtensionInstalled = name => { - return BrowserWindow.getDevToolsExtensions && - {}.hasOwnProperty.call(BrowserWindow.getDevToolsExtensions(), name); - }; - - try { - if (!isExtensionInstalled(name)) { - BrowserWindow.addDevToolsExtension(getPath(name)); - } - } catch (err) {} -}; - -module.exports = opts => { - opts = Object.assign({ - enabled: null, - showDevTools: false - }, opts); - - if (opts.enabled === false || (opts.enabled === null && !isDev)) { - return; - } - - app.on('browser-window-created', (e, win) => { - if (opts.showDevTools) { - openDevTools(win, opts.showDevTools); - } - }); - - app.on('ready', () => { - addExtensionIfInstalled('devtron', name => !(function webpackMissingModule() { var e = new Error("Cannot find module \".\""); e.code = 'MODULE_NOT_FOUND'; throw e; }()).path); - // TODO: Use this when https://github.com/firejune/electron-react-devtools/pull/6 is out - // addExtensionIfInstalled('electron-react-devtools', name => require(name).path); - addExtensionIfInstalled('electron-react-devtools', name => __webpack_require__(8).dirname(/*require.resolve*/(!(function webpackMissingModule() { var e = new Error("Cannot find module \".\""); e.code = 'MODULE_NOT_FOUND'; throw e; }())))); - - localShortcut.register('CmdOrCtrl+Shift+C', inspectElements); - localShortcut.register(isMacOS ? 'Cmd+Alt+I' : 'Ctrl+Shift+I', devTools); - localShortcut.register('F12', devTools); - - localShortcut.register('CmdOrCtrl+R', refresh); - localShortcut.register('F5', refresh); - }); -}; - -module.exports.refresh = refresh; -module.exports.devTools = devTools; -module.exports.openDevTools = openDevTools; - - -/***/ }), -/* 80 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -const {app, BrowserWindow} = __webpack_require__(9); -const isAccelerator = __webpack_require__(81); -const equals = __webpack_require__(82); -const {toKeyEvent} = __webpack_require__(83); -const _debug = __webpack_require__(84); - -const debug = _debug('electron-localshortcut'); - -// A placeholder to register shortcuts -// on any window of the app. -const ANY_WINDOW = {}; - -const windowsWithShortcuts = new WeakMap(); - -const title = win => { - if (win) { - try { - return win.getTitle(); - // eslint-disable-next-line no-unused-vars - } catch (error) { - return 'A destroyed window'; - } - } - - return 'An falsy value'; -}; - -function _checkAccelerator(accelerator) { - if (!isAccelerator(accelerator)) { - const w = {}; - Error.captureStackTrace(w); - const stack = w.stack ? w.stack.split('\n').slice(4).join('\n') : w.message; - const msg = ` -WARNING: ${accelerator} is not a valid accelerator. - -${stack} -`; - console.error(msg); - } -} - -/** - * Disable all of the shortcuts registered on the BrowserWindow instance. - * Registered shortcuts no more works on the `window` instance, but the module - * keep a reference on them. You can reactivate them later by calling `enableAll` - * method on the same window instance. - * @param {BrowserWindow} win BrowserWindow instance - */ -function disableAll(win) { - debug(`Disabling all shortcuts on window ${title(win)}`); - const wc = win.webContents; - const shortcutsOfWindow = windowsWithShortcuts.get(wc); - - for (const shortcut of shortcutsOfWindow) { - shortcut.enabled = false; - } -} - -/** - * Enable all of the shortcuts registered on the BrowserWindow instance that - * you had previously disabled calling `disableAll` method. - * @param {BrowserWindow} win BrowserWindow instance - */ -function enableAll(win) { - debug(`Enabling all shortcuts on window ${title(win)}`); - const wc = win.webContents; - const shortcutsOfWindow = windowsWithShortcuts.get(wc); - - for (const shortcut of shortcutsOfWindow) { - shortcut.enabled = true; - } -} - -/** - * Unregisters all of the shortcuts registered on any focused BrowserWindow - * instance. This method does not unregister any shortcut you registered on - * a particular window instance. - * @param {BrowserWindow} win BrowserWindow instance - */ -function unregisterAll(win) { - debug(`Unregistering all shortcuts on window ${title(win)}`); - const wc = win.webContents; - const shortcutsOfWindow = windowsWithShortcuts.get(wc); - if (shortcutsOfWindow && shortcutsOfWindow.removeListener) { - // Remove listener from window - shortcutsOfWindow.removeListener(); - windowsWithShortcuts.delete(wc); - } -} - -function _normalizeEvent(input) { - const normalizedEvent = { - code: input.code, - key: input.key - }; - - ['alt', 'shift', 'meta'].forEach(prop => { - if (typeof input[prop] !== 'undefined') { - normalizedEvent[`${prop}Key`] = input[prop]; - } - }); - - if (typeof input.control !== 'undefined') { - normalizedEvent.ctrlKey = input.control; - } - - return normalizedEvent; -} - -function _findShortcut(event, shortcutsOfWindow) { - let i = 0; - for (const shortcut of shortcutsOfWindow) { - if (equals(shortcut.eventStamp, event)) { - return i; - } - - i++; - } - - return -1; -} - -const _onBeforeInput = shortcutsOfWindow => (e, input) => { - if (input.type === 'keyUp') { - return; - } - - const event = _normalizeEvent(input); - - debug(`before-input-event: ${input} is translated to: ${event}`); - for (const {eventStamp, callback} of shortcutsOfWindow) { - if (equals(eventStamp, event)) { - debug(`eventStamp: ${eventStamp} match`); - callback(); - - return; - } - - debug(`eventStamp: ${eventStamp} no match`); - } -}; - -/** - * Registers the shortcut `accelerator`on the BrowserWindow instance. - * @param {BrowserWindow} win - BrowserWindow instance to register. - * This argument could be omitted, in this case the function register - * the shortcut on all app windows. - * @param {String|Array} accelerator - the shortcut to register - * @param {Function} callback This function is called when the shortcut is pressed - * and the window is focused and not minimized. - */ -function register(win, accelerator, callback) { - let wc; - if (typeof callback === 'undefined') { - wc = ANY_WINDOW; - callback = accelerator; - accelerator = win; - } else { - wc = win.webContents; - } - - if (Array.isArray(accelerator) === true) { - accelerator.forEach(accelerator => { - if (typeof accelerator === 'string') { - register(win, accelerator, callback); - } - }); - return; - } - - debug(`Registering callback for ${accelerator} on window ${title(win)}`); - _checkAccelerator(accelerator); - - debug(`${accelerator} seems a valid shortcut sequence.`); - - let shortcutsOfWindow; - if (windowsWithShortcuts.has(wc)) { - debug('Window has others shortcuts registered.'); - shortcutsOfWindow = windowsWithShortcuts.get(wc); - } else { - debug('This is the first shortcut of the window.'); - shortcutsOfWindow = []; - windowsWithShortcuts.set(wc, shortcutsOfWindow); - - if (wc === ANY_WINDOW) { - const keyHandler = _onBeforeInput(shortcutsOfWindow); - const enableAppShortcuts = (e, win) => { - const wc = win.webContents; - wc.on('before-input-event', keyHandler); - wc.once('closed', () => - wc.removeListener('before-input-event', keyHandler) - ); - }; - - // Enable shortcut on current windows - const windows = BrowserWindow.getAllWindows(); - - windows.forEach(win => enableAppShortcuts(null, win)); - - // Enable shortcut on future windows - app.on('browser-window-created', enableAppShortcuts); - - shortcutsOfWindow.removeListener = () => { - const windows = BrowserWindow.getAllWindows(); - windows.forEach(win => - win.webContents.removeListener('before-input-event', keyHandler) - ); - app.removeListener('browser-window-created', enableAppShortcuts); - }; - } else { - const keyHandler = _onBeforeInput(shortcutsOfWindow); - wc.on('before-input-event', keyHandler); - - // Save a reference to allow remove of listener from elsewhere - shortcutsOfWindow.removeListener = () => - wc.removeListener('before-input-event', keyHandler); - wc.once('closed', shortcutsOfWindow.removeListener); - } - } - - debug('Adding shortcut to window set.'); - - const eventStamp = toKeyEvent(accelerator); - - shortcutsOfWindow.push({ - eventStamp, - callback, - enabled: true - }); - - debug('Shortcut registered.'); -} - -/** - * Unregisters the shortcut of `accelerator` registered on the BrowserWindow instance. - * @param {BrowserWindow} win - BrowserWindow instance to unregister. - * This argument could be omitted, in this case the function unregister the shortcut - * on all app windows. If you registered the shortcut on a particular window instance, it will do nothing. - * @param {String|Array} accelerator - the shortcut to unregister - */ -function unregister(win, accelerator) { - let wc; - if (typeof accelerator === 'undefined') { - wc = ANY_WINDOW; - accelerator = win; - } else { - if (win.isDestroyed()) { - debug('Early return because window is destroyed.'); - return; - } - - wc = win.webContents; - } - - if (Array.isArray(accelerator) === true) { - accelerator.forEach(accelerator => { - if (typeof accelerator === 'string') { - unregister(win, accelerator); - } - }); - return; - } - - debug(`Unregistering callback for ${accelerator} on window ${title(win)}`); - - _checkAccelerator(accelerator); - - debug(`${accelerator} seems a valid shortcut sequence.`); - - if (!windowsWithShortcuts.has(wc)) { - debug('Early return because window has never had shortcuts registered.'); - return; - } - - const shortcutsOfWindow = windowsWithShortcuts.get(wc); - - const eventStamp = toKeyEvent(accelerator); - const shortcutIdx = _findShortcut(eventStamp, shortcutsOfWindow); - if (shortcutIdx === -1) { - return; - } - - shortcutsOfWindow.splice(shortcutIdx, 1); - - // If the window has no more shortcuts, - // we remove it early from the WeakMap - // and unregistering the event listener - if (shortcutsOfWindow.length === 0) { - // Remove listener from window - shortcutsOfWindow.removeListener(); - - // Remove window from shortcuts catalog - windowsWithShortcuts.delete(wc); - } -} - -/** - * Returns `true` or `false` depending on whether the shortcut `accelerator` - * is registered on `window`. - * @param {BrowserWindow} win - BrowserWindow instance to check. This argument - * could be omitted, in this case the function returns whether the shortcut - * `accelerator` is registered on all app windows. If you registered the - * shortcut on a particular window instance, it return false. - * @param {String} accelerator - the shortcut to check - * @return {Boolean} - if the shortcut `accelerator` is registered on `window`. - */ -function isRegistered(win, accelerator) { - _checkAccelerator(accelerator); - const wc = win.webContents; - const shortcutsOfWindow = windowsWithShortcuts.get(wc); - const eventStamp = toKeyEvent(accelerator); - - return _findShortcut(eventStamp, shortcutsOfWindow) !== -1; -} - -module.exports = { - register, - unregister, - isRegistered, - unregisterAll, - enableAll, - disableAll -}; - - -/***/ }), -/* 81 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -const modifiers = /^(Command|Cmd|Control|Ctrl|CommandOrControl|CmdOrCtrl|Alt|Option|AltGr|Shift|Super)$/; -const keyCodes = /^([0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]']|F1*[1-9]|F10|F2[0-4]|Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Home|End|PageUp|PageDown|Escape|Esc|VolumeUp|VolumeDown|VolumeMute|MediaNextTrack|MediaPreviousTrack|MediaStop|MediaPlayPause|PrintScreen)$/; - -module.exports = function (str) { - let parts = str.split("+"); - let keyFound = false; - return parts.every((val, index) => { - const isKey = keyCodes.test(val); - const isModifier = modifiers.test(val); - if (isKey) { - // Key must be unique - if (keyFound) return false; - keyFound = true; - } - // Key is required - if (index === parts.length - 1 && !keyFound) return false; - return isKey || isModifier; - }); -}; - - -/***/ }), -/* 82 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function _lower(key) { - if (typeof key !== 'string') { - return key; - } - return key.toLowerCase(); -} - -function areEqual(ev1, ev2) { - if (ev1 === ev2) { - // Same object - // console.log(`Events are same.`) - return true; - } - - for (const prop of ['altKey', 'ctrlKey', 'shiftKey', 'metaKey']) { - const [value1, value2] = [ev1[prop], ev2[prop]]; - - if (Boolean(value1) !== Boolean(value2)) { - // One of the prop is different - // console.log(`Comparing prop ${prop}: ${value1} ${value2}`); - return false; - } - } - - if ((_lower(ev1.key) === _lower(ev2.key) && ev1.key !== undefined) || - (ev1.code === ev2.code && ev1.code !== undefined)) { - // Events are equals - return true; - } - - // Key or code are differents - // console.log(`key or code are differents. ${ev1.key} !== ${ev2.key} ${ev1.code} !== ${ev2.code}`); - - return false; -} - -module.exports = areEqual; - - -/***/ }), -/* 83 */ -/***/ (function(module, exports) { - -const modifiers = /^(CommandOrControl|CmdOrCtrl|Command|Cmd|Control|Ctrl|AltGr|Option|Alt|Shift|Super)/i; -const keyCodes = /^(Plus|Space|Tab|Backspace|Delete|Insert|Return|Enter|Up|Down|Left|Right|Home|End|PageUp|PageDown|Escape|Esc|VolumeUp|VolumeDown|VolumeMute|MediaNextTrack|MediaPreviousTrack|MediaStop|MediaPlayPause|PrintScreen|F24|F23|F22|F21|F20|F19|F18|F17|F16|F15|F14|F13|F12|F11|F10|F9|F8|F7|F6|F5|F4|F3|F2|F1|[0-9A-Z)!@#$%^&*(:+<_>?~{|}";=,\-./`[\\\]'])/i; -const UNSUPPORTED = {}; - -function _command(accelerator, event, modifier) { - if (process.platform !== 'darwin') { - return UNSUPPORTED; - } - - if (event.metaKey) { - throw new Error('Double `Command` modifier specified.'); - } - - return { - event: Object.assign({}, event, {metaKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function _super(accelerator, event, modifier) { - if (event.metaKey) { - throw new Error('Double `Super` modifier specified.'); - } - - return { - event: Object.assign({}, event, {metaKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function _commandorcontrol(accelerator, event, modifier) { - if (process.platform === 'darwin') { - if (event.metaKey) { - throw new Error('Double `Command` modifier specified.'); - } - - return { - event: Object.assign({}, event, {metaKey: true}), - accelerator: accelerator.slice(modifier.length) - }; - } - - if (event.ctrlKey) { - throw new Error('Double `Control` modifier specified.'); - } - - return { - event: Object.assign({}, event, {ctrlKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function _alt(accelerator, event, modifier) { - if (modifier === 'option' && process.platform !== 'darwin') { - return UNSUPPORTED; - } - - if (event.altKey) { - throw new Error('Double `Alt` modifier specified.'); - } - - return { - event: Object.assign({}, event, {altKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function _shift(accelerator, event, modifier) { - if (event.shiftKey) { - throw new Error('Double `Shift` modifier specified.'); - } - - return { - event: Object.assign({}, event, {shiftKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function _control(accelerator, event, modifier) { - if (event.ctrlKey) { - throw new Error('Double `Control` modifier specified.'); - } - - return { - event: Object.assign({}, event, {ctrlKey: true}), - accelerator: accelerator.slice(modifier.length) - }; -} - -function reduceModifier({accelerator, event}, modifier) { - switch (modifier) { - case 'command': - case 'cmd': { - return _command(accelerator, event, modifier); - } - - case 'super': { - return _super(accelerator, event, modifier); - } - - case 'control': - case 'ctrl': { - return _control(accelerator, event, modifier); - } - - case 'commandorcontrol': - case 'cmdorctrl': { - return _commandorcontrol(accelerator, event, modifier); - } - - case 'option': - case 'altgr': - case 'alt': { - return _alt(accelerator, event, modifier); - } - - case 'shift': { - return _shift(accelerator, event, modifier); - } - - default: - console.error(modifier); - } -} - -function reducePlus({accelerator, event}) { - return { - event, - accelerator: accelerator.trim().slice(1) - }; -} - -const virtualKeyCodes = { - 0: 'Digit0', - 1: 'Digit1', - 2: 'Digit2', - 3: 'Digit3', - 4: 'Digit4', - 5: 'Digit5', - 6: 'Digit6', - 7: 'Digit7', - 8: 'Digit8', - 9: 'Digit9', - '-': 'Minus', - '=': 'Equal', - Q: 'KeyQ', - W: 'KeyW', - E: 'KeyE', - R: 'KeyR', - T: 'KeyT', - Y: 'KeyY', - U: 'KeyU', - I: 'KeyI', - O: 'KeyO', - P: 'KeyP', - '[': 'BracketLeft', - ']': 'BracketRight', - A: 'KeyA', - S: 'KeyS', - D: 'KeyD', - F: 'KeyF', - G: 'KeyG', - H: 'KeyH', - J: 'KeyJ', - K: 'KeyK', - L: 'KeyL', - ';': 'Semicolon', - '\'': 'Quote', - '`': 'Backquote', - '/': 'Backslash', - Z: 'KeyZ', - X: 'KeyX', - C: 'KeyC', - V: 'KeyV', - B: 'KeyB', - N: 'KeyN', - M: 'KeyM', - ',': 'Comma', - '.': 'Period', - '\\': 'Slash', - ' ': 'Space' -}; - -function reduceKey({accelerator, event}, key) { - if (key.length > 1 || event.key) { - throw new Error(`Unvalid keycode \`${key}\`.`); - } - - const code = - key.toUpperCase() in virtualKeyCodes ? - virtualKeyCodes[key.toUpperCase()] : - null; - - return { - event: Object.assign({}, event, {key}, code ? {code} : null), - accelerator: accelerator.trim().slice(key.length) - }; -} - -const domKeys = Object.assign(Object.create(null), { - plus: 'Add', - space: 'Space', - tab: 'Tab', - backspace: 'Backspace', - delete: 'Delete', - insert: 'Insert', - return: 'Return', - enter: 'Return', - up: 'ArrowUp', - down: 'ArrowDown', - left: 'ArrowLeft', - right: 'ArrowRight', - home: 'Home', - end: 'End', - pageup: 'PageUp', - pagedown: 'PageDown', - escape: 'Escape', - esc: 'Escape', - volumeup: 'AudioVolumeUp', - volumedown: 'AudioVolumeDown', - volumemute: 'AudioVolumeMute', - medianexttrack: 'MediaTrackNext', - mediaprevioustrack: 'MediaTrackPrevious', - mediastop: 'MediaStop', - mediaplaypause: 'MediaPlayPause', - printscreen: 'PrintScreen' -}); - -// Add function keys -for (let i = 1; i <= 24; i++) { - domKeys[`f${i}`] = `F${i}`; -} - -function reduceCode({accelerator, event}, {code, key}) { - if (event.code) { - throw new Error(`Duplicated keycode \`${key}\`.`); - } - - return { - event: Object.assign({}, event, {key}, code ? {code} : null), - accelerator: accelerator.trim().slice((key && key.length) || 0) - }; -} - -/** - * This function transform an Electron Accelerator string into - * a DOM KeyboardEvent object. - * - * @param {string} accelerator an Electron Accelerator string, e.g. `Ctrl+C` or `Shift+Space`. - * @return {object} a DOM KeyboardEvent object derivate from the `accelerator` argument. - */ -function toKeyEvent(accelerator) { - let state = {accelerator, event: {}}; - while (state.accelerator !== '') { - const modifierMatch = state.accelerator.match(modifiers); - if (modifierMatch) { - const modifier = modifierMatch[0].toLowerCase(); - state = reduceModifier(state, modifier); - if (state === UNSUPPORTED) { - return {unsupportedKeyForPlatform: true}; - } - } else if (state.accelerator.trim()[0] === '+') { - state = reducePlus(state); - } else { - const codeMatch = state.accelerator.match(keyCodes); - if (codeMatch) { - const code = codeMatch[0].toLowerCase(); - if (code in domKeys) { - state = reduceCode(state, { - code: domKeys[code], - key: code - }); - } else { - state = reduceKey(state, code); - } - } else { - throw new Error(`Unvalid accelerator: "${state.accelerator}"`); - } - } - } - - return state.event; -} - -module.exports = { - UNSUPPORTED, - reduceModifier, - reducePlus, - reduceKey, - reduceCode, - toKeyEvent -}; - - -/***/ }), -/* 84 */ -/***/ (function(module, exports) { - -module.exports = require("debug"); - -/***/ }), -/* 85 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -const getFromEnv = parseInt(process.env.ELECTRON_IS_DEV, 10) === 1; -const isEnvSet = 'ELECTRON_IS_DEV' in process.env; - -module.exports = isEnvSet ? getFromEnv : (process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath)); - - -/***/ }), -/* 86 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { - build: { - env: __webpack_require__(87) - }, - dev: { - removeElectronJunk: true, - env: __webpack_require__(88) - }, - IsUseSysTitle: true, - AppConfig: __webpack_require__(89) -}; - -/***/ }), -/* 87 */ -/***/ (function(module, exports) { - -module.exports = { - NODE_ENV: '"production"', - BASE_API: '"http://127.0.0.1:8890/yjearth4.0"', - HOST: '"http://127.0.0.1:8890"', - - DOCKAIR: '"http://192.168.110.24:9136"', - DOCKSOCKETURL: '"ws://192.168.110.24:9136/websocket"', - - REMOTEAIR: '"http://121.37.119.107:6789"', - REMOTESOCKETURL: '"ws://121.37.119.107:6789/api/v1/ws"', - AI_URL: '"http://121.37.119.107:8000"' -}; - -/***/ }), -/* 88 */ -/***/ (function(module, exports) { - -module.exports = { - NODE_ENV: '"development"', - BASE_API: '"http://127.0.0.1:8890/yjearth4.0"', - HOST: '"http://127.0.0.1:8890"', - - DOCKAIR: '"http://192.168.110.24:9136"', - DOCKSOCKETURL: '"ws://192.168.110.24:9136/websocket"', - REMOTEAIR: '"http://192.168.110.26:6789"', - REMOTEAIR2: '"http://192.168.110.47:8000"', - REMOTESOCKETURL: '"ws://192.168.110.26:6789/api/v1/ws"', - - AI_URL: '"http://121.37.119.107:8000"' -}; - -/***/ }), -/* 89 */ -/***/ (function(module, exports) { - -var name = 'dzsp_yingjizhihuijunyong_offline_Y_save'; -var productName = '实景三维电子沙盘系统'; -var productName_tw = '实景三维电子沙盘系统'; -var productName_en = 'Realistic 3D electronic sand table system'; -var obj = { - baseApi: "", - PORT: 8099, - head: "henan_head", - name: name, - version: "v4.0.0", - productName: productName, - productName_tw: productName_tw, - productName_en: productName_en, - build_productName: productName, - build_win_icon: 'build/icons/81.ico', - - build_extraFiles: [{ - from: "./collada2gltf/", - to: "./collada2gltf" - }, { - from: "./convert/", - to: "./convert" - }, { - from: "./yjearth4_0/", - to: "./yjearth4_0" - }, { - from: "./ffplay/", - to: "./ffplay" - }, { - from: "./build/icons/", - to: "./icons" - }], - installUrl: "D:\\ProgramFiles\\" + name, - build_appId: "org." + name, - APPSECRET: "", - appVersion: "earth", - build_linux_desktop_Icon: "/opt/" + productName + "/icons/81.png" -}; -module.exports = obj; - -/***/ }), -/* 90 */ -/***/ (function(module, exports) { - -module.exports = require("net"); - -/***/ }), -/* 91 */ -/***/ (function(module, exports, __webpack_require__) { - -var os = __webpack_require__(10); - -var Store = __webpack_require__(56); -var path = new Store().path; -var arr = []; -if (os.platform() == "win32") { - arr = path.split("\\"); -} -if (os.platform() == "linux") { - arr = path.split("/"); -} -arr[arr.length - 1] = ""; -var db_path = arr.join("/"); - -var exePathStr = process.execPath.replaceAll("\\", "/"); -var exePaths = exePathStr.split("/"); -exePaths[exePaths.length - 2]; -module.exports = { db_path: db_path, execPath: exePaths[exePaths.length - 2] }; - -/***/ }), -/* 92 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(33); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_map__ = __webpack_require__(109); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_map__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_electron__ = __webpack_require__(9); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_electron___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_electron__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__convert_main__ = __webpack_require__(126); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__convert_obj2gltf__ = __webpack_require__(127); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__convert_fbx2gltf__ = __webpack_require__(132); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app__ = __webpack_require__(54); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__recorder__ = __webpack_require__(143); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_os__ = __webpack_require__(10); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_os___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_os__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_child_process__ = __webpack_require__(14); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_child_process___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_child_process__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_dayjs__ = __webpack_require__(164); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_dayjs__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__back_sandTable_udpServer__ = __webpack_require__(75); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__processGo__ = __webpack_require__(53); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__processGo___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12__processGo__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__config__ = __webpack_require__(26); - - - - - - - - - - - - - - - -var fs = __webpack_require__(15); -var ini = __webpack_require__(172); -var path = __webpack_require__(8); -var express = __webpack_require__(55); -var cwd = path.join(Object(__WEBPACK_IMPORTED_MODULE_13__config__["a" /* GetHomeDir */])(), "/ffplay/"); -var http = __webpack_require__(173); -var recorder = ""; - -var ffplayProcesses = new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_map___default.a(); -/* harmony default export */ __webpack_exports__["a"] = ({ - Mainfunc: function Mainfunc(mainWindow) { - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("setStaticFile", function (event, url) { - if (fs.existsSync(url)) { - var arr = url.replaceAll("\\", "/").split("/"); - arr.pop(); - __WEBPACK_IMPORTED_MODULE_6__app__["a" /* apps */].use(express.static(arr.join("/"))); - } - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("restart", function (e) { - Object(__WEBPACK_IMPORTED_MODULE_12__processGo__["closeChild"])(); - __WEBPACK_IMPORTED_MODULE_2_electron__["app"].relaunch(); - __WEBPACK_IMPORTED_MODULE_2_electron__["app"].exit(); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("getHead", function (event) { - event.sender.send("headRes", process.env.Head); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("open-directory-dialog", function (event, option) { - __WEBPACK_IMPORTED_MODULE_2_electron__["dialog"].showOpenDialog(__WEBPACK_IMPORTED_MODULE_2_electron__["BrowserWindow"].getFocusedWindow(), { - properties: option.properties, - filters: option.filters - }).then(function (files) { - var arr = []; - - if (!files.canceled) { - files.filePaths.forEach(function (url) { - arr.push(url.replace(/\\/g, "/")); - }); - } - event.sender.send("selectedItem", arr); - }); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("openFFPlay", function (e, obj) { - var cmd = ""; - var platform = __WEBPACK_IMPORTED_MODULE_8_os___default.a.platform(); - if (platform === "win32") { - cmd = "ffplay.exe"; - } else { - cmd = "ffplay"; - } - var title = obj.name; - console.log("obj", obj); - - console.log(path.join(Object(__WEBPACK_IMPORTED_MODULE_13__config__["a" /* GetHomeDir */])(), "/ffplay/" + cmd)); - var child = Object(__WEBPACK_IMPORTED_MODULE_9_child_process__["spawn"])(path.join(Object(__WEBPACK_IMPORTED_MODULE_13__config__["a" /* GetHomeDir */])(), "/ffplay/" + cmd), ["-window_title", title, "-x", "1300", "-y", "730", obj.url], { - cwd: cwd, - stdio: "ignore" - }).on("exit", function (err) { - console.log("out"); - console.log(err); - e.sender.send("openFFPlayOut", err); - if (obj.id) { - e.sender.send("openFFPlayOut_" + obj.id, err, obj.id); - } - }); - - console.log("child", child.pid); - child.unref(); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("saveFile", function (event, _ref) { - var title = _ref.title, - filename = _ref.filename, - filters = _ref.filters; - - __WEBPACK_IMPORTED_MODULE_2_electron__["dialog"].showSaveDialog({ - title: title, - defaultPath: filename, - filters: filters - }).then(function (files) { - var path = ""; - if (!files.canceled) { - path = files.filePath.replace(/\\/g, "/"); - } - event.sender.send("selectedFileItem", path); - }); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("startRecoder", function (event) { - recorder = new __WEBPACK_IMPORTED_MODULE_7__recorder__["a" /* Recorder */](); - recorder.start(); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("endRecoder", function (event) { - if (!recorder) { - console.log("recorder不存在"); - return; - } - recorder.end(function () { - console.log('xxxxx'); - var path = __WEBPACK_IMPORTED_MODULE_2_electron__["dialog"].showSaveDialogSync({ - title: "保存视频文件", - defaultPath: __WEBPACK_IMPORTED_MODULE_10_dayjs___default()().format("YYYYMMDDHHmmss") + "视频录制.mp4", - filters: [{ name: "文件类型", extensions: ["mp4"] }] - }); - console.log('path', path); - if (path != undefined) { - recorder.move(path, function () { - recorder = null; - }); - } else { - recorder = null; - } - }); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("saveNetFile", function (event, _ref2) { - var title = _ref2.title, - filename = _ref2.filename, - filters = _ref2.filters, - url = _ref2.url; - - __WEBPACK_IMPORTED_MODULE_2_electron__["dialog"].showSaveDialog({ - title: title, - defaultPath: filename, - filters: filters - }).then(function (files) { - var path = ""; - if (!files.canceled) { - var callBack = function callBack(key) { - console.log("下载完成"); - event.sender.send("saveNetFileRes", key); - }; - - var downloadFile = function downloadFile(url, path) { - http.get(url, function (response) { - var contentLength = parseInt(response.headers["content-length"]); - var downloadedLength = 0; - response.pipe(fs.createWriteStream(path)); - response.on("end", function () { - callBack("success"); - }); - }).on("error", function (err) { - console.log("完成"); - callBack("error"); - }); - }; - - path = files.filePath.replace(/\\/g, "/"); - - downloadFile(url, path); - } - }); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("requireGEMarkerName", function (event, obj) { - - var data = {}; - for (var objKey in obj) { - var files = fs.readdirSync(path.join(global.__static ? global.__static : Object(__WEBPACK_IMPORTED_MODULE_13__config__["a" /* GetHomeDir */])() + "/static", obj[objKey])); - console.log(files); - for (var i = 0; i < files.length; i++) { - files[i] = obj[objKey] + "/" + files[i]; - } - data[obj[objKey]] = files; - } - - event.sender.send("dirFiles", data); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("transformModel", function (event, option) { - var callBack = function callBack(msg) { - event.sender.send("transformModelRes", "模型转换结束", msg); - }; - var fun = option.fun, - input = option.input, - output = option.output; - - switch (fun) { - case "osgbToglb": - Object(__WEBPACK_IMPORTED_MODULE_3__convert_main__["c" /* osgbToglb */])(input, output, callBack); - break; - case "shapeToglb": - Object(__WEBPACK_IMPORTED_MODULE_3__convert_main__["d" /* shapeToglb */])(input, output, callBack); - break; - case "b3dmToglb": - Object(__WEBPACK_IMPORTED_MODULE_3__convert_main__["a" /* b3dmToglb */])(input, output, callBack); - break; - case "objToglb": - new __WEBPACK_IMPORTED_MODULE_4__convert_obj2gltf__["a" /* Format */]().obj2glb(input, output, callBack); - break; - case "daeTogltf": - Object(__WEBPACK_IMPORTED_MODULE_3__convert_main__["b" /* daeTogltf */])(input, output, callBack); - break; - case "Fbx2glb": - new __WEBPACK_IMPORTED_MODULE_5__convert_fbx2gltf__["a" /* Fbx2glb */]().fbx2glb(input, output, callBack); - break; - } - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("newDir", function (event, option) { - var dir = ""; - option.paths.forEach(function (item) { - dir = path.join(dir, item); - }); - if (!fs.existsSync(dir)) { - fs.mkdirSync(dir); - } - var filePath = path.join(dir, option.name + ".png"); - fs.writeFile(filePath, option.buffer, function (err) { - var res = filePath; - if (err) { - res = "失败"; - } - event.sender.send("newDirRes", res); - }); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("getIniConfig", function (event, option) { - console.log("1111111111111111111111111111111111111111111111111111111111111"); - var iniPath = path.join(Object(__WEBPACK_IMPORTED_MODULE_13__config__["a" /* GetHomeDir */])(), "/yjearth4_0/static/config/config.ini"); - console.log("iniPath", iniPath); - - var iniContent = ini.parse(fs.readFileSync(iniPath, "utf-8")); - - for (var section in option) { - var property = option[section]; - if ((typeof property === "undefined" ? "undefined" : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(property)) == "object") { - for (var key in property) { - iniContent[section][key] = property[key]; - } - } - } - fs.writeFileSync(iniPath, ini.stringify(iniContent)); - - event.sender.send("IniConfig", iniContent); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("submitPort", function (event, port) { - Object(__WEBPACK_IMPORTED_MODULE_11__back_sandTable_udpServer__["b" /* UpdateUdpServerPort */])(port); - event.sender.send("submitPortRes", port); - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("setNodes", function (event, val) { - console.log("接受到数据", val); - var msg = Object(__WEBPACK_IMPORTED_MODULE_11__back_sandTable_udpServer__["c" /* sendMsg */])(val); - event.sender.send("replayRenderer", msg); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("files-dropped", function (event, filePaths) { - event.sender.send("DroppedFiles", filePaths); - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].handle("get-shared-object", function () { - return global.sharedObject; - }); - - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].handle("set-shared-object", function (event, key, value) { - global.sharedObject[key] = value; - return { success: true }; - }); - __WEBPACK_IMPORTED_MODULE_2_electron__["ipcMain"].on("changeField", function (e, val) { - mainWindow.webContents.send("changeFields", val); - }); - } -}); - -/***/ }), -/* 93 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(94), __esModule: true }; - -/***/ }), -/* 94 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(19); -__webpack_require__(24); -module.exports = __webpack_require__(44).f('iterator'); - - -/***/ }), -/* 95 */ -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__(34); -var defined = __webpack_require__(35); -// true -> String#at -// false -> String#codePointAt -module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; - }; -}; - - -/***/ }), -/* 96 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var create = __webpack_require__(28); -var descriptor = __webpack_require__(27); -var setToStringTag = __webpack_require__(23); -var IteratorPrototype = {}; - -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -__webpack_require__(12)(IteratorPrototype, __webpack_require__(2)('iterator'), function () { return this; }); - -module.exports = function (Constructor, NAME, next) { - Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); - setToStringTag(Constructor, NAME + ' Iterator'); -}; - - -/***/ }), -/* 97 */ -/***/ (function(module, exports, __webpack_require__) { - -var dP = __webpack_require__(5); -var anObject = __webpack_require__(6); -var getKeys = __webpack_require__(39); - -module.exports = __webpack_require__(7) ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = getKeys(Properties); - var length = keys.length; - var i = 0; - var P; - while (length > i) dP.f(O, P = keys[i++], Properties[P]); - return O; -}; - - -/***/ }), -/* 98 */ -/***/ (function(module, exports, __webpack_require__) { - -// false -> Array#indexOf -// true -> Array#includes -var toIObject = __webpack_require__(18); -var toLength = __webpack_require__(40); -var toAbsoluteIndex = __webpack_require__(99); -module.exports = function (IS_INCLUDES) { - return function ($this, el, fromIndex) { - var O = toIObject($this); - var length = toLength(O.length); - var index = toAbsoluteIndex(fromIndex, length); - var value; - // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare - if (IS_INCLUDES && el != el) while (length > index) { - value = O[index++]; - // eslint-disable-next-line no-self-compare - if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (;length > index; index++) if (IS_INCLUDES || index in O) { - if (O[index] === el) return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; -}; - - -/***/ }), -/* 99 */ -/***/ (function(module, exports, __webpack_require__) { - -var toInteger = __webpack_require__(34); -var max = Math.max; -var min = Math.min; -module.exports = function (index, length) { - index = toInteger(index); - return index < 0 ? max(index + length, 0) : min(index, length); -}; - - -/***/ }), -/* 100 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var addToUnscopables = __webpack_require__(101); -var step = __webpack_require__(63); -var Iterators = __webpack_require__(17); -var toIObject = __webpack_require__(18); - -// 22.1.3.4 Array.prototype.entries() -// 22.1.3.13 Array.prototype.keys() -// 22.1.3.29 Array.prototype.values() -// 22.1.3.30 Array.prototype[@@iterator]() -module.exports = __webpack_require__(36)(Array, 'Array', function (iterated, kind) { - this._t = toIObject(iterated); // target - this._i = 0; // next index - this._k = kind; // kind -// 22.1.5.2.1 %ArrayIteratorPrototype%.next() -}, function () { - var O = this._t; - var kind = this._k; - var index = this._i++; - if (!O || index >= O.length) { - this._t = undefined; - return step(1); - } - if (kind == 'keys') return step(0, index); - if (kind == 'values') return step(0, O[index]); - return step(0, [index, O[index]]); -}, 'values'); - -// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) -Iterators.Arguments = Iterators.Array; - -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); - - -/***/ }), -/* 101 */ -/***/ (function(module, exports) { - -module.exports = function () { /* empty */ }; - - -/***/ }), -/* 102 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(103), __esModule: true }; - -/***/ }), -/* 103 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(104); -__webpack_require__(48); -__webpack_require__(107); -__webpack_require__(108); -module.exports = __webpack_require__(0).Symbol; - - -/***/ }), -/* 104 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// ECMAScript 6 symbols shim -var global = __webpack_require__(1); -var has = __webpack_require__(13); -var DESCRIPTORS = __webpack_require__(7); -var $export = __webpack_require__(3); -var redefine = __webpack_require__(58); -var META = __webpack_require__(45).KEY; -var $fails = __webpack_require__(16); -var shared = __webpack_require__(42); -var setToStringTag = __webpack_require__(23); -var uid = __webpack_require__(29); -var wks = __webpack_require__(2); -var wksExt = __webpack_require__(44); -var wksDefine = __webpack_require__(46); -var enumKeys = __webpack_require__(105); -var isArray = __webpack_require__(65); -var anObject = __webpack_require__(6); -var isObject = __webpack_require__(4); -var toObject = __webpack_require__(30); -var toIObject = __webpack_require__(18); -var toPrimitive = __webpack_require__(38); -var createDesc = __webpack_require__(27); -var _create = __webpack_require__(28); -var gOPNExt = __webpack_require__(106); -var $GOPD = __webpack_require__(67); -var $GOPS = __webpack_require__(64); -var $DP = __webpack_require__(5); -var $keys = __webpack_require__(39); -var gOPD = $GOPD.f; -var dP = $DP.f; -var gOPN = gOPNExt.f; -var $Symbol = global.Symbol; -var $JSON = global.JSON; -var _stringify = $JSON && $JSON.stringify; -var PROTOTYPE = 'prototype'; -var HIDDEN = wks('_hidden'); -var TO_PRIMITIVE = wks('toPrimitive'); -var isEnum = {}.propertyIsEnumerable; -var SymbolRegistry = shared('symbol-registry'); -var AllSymbols = shared('symbols'); -var OPSymbols = shared('op-symbols'); -var ObjectProto = Object[PROTOTYPE]; -var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; -var QObject = global.QObject; -// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 -var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; - -// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 -var setSymbolDesc = DESCRIPTORS && $fails(function () { - return _create(dP({}, 'a', { - get: function () { return dP(this, 'a', { value: 7 }).a; } - })).a != 7; -}) ? function (it, key, D) { - var protoDesc = gOPD(ObjectProto, key); - if (protoDesc) delete ObjectProto[key]; - dP(it, key, D); - if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); -} : dP; - -var wrap = function (tag) { - var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); - sym._k = tag; - return sym; -}; - -var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - return it instanceof $Symbol; -}; - -var $defineProperty = function defineProperty(it, key, D) { - if (it === ObjectProto) $defineProperty(OPSymbols, key, D); - anObject(it); - key = toPrimitive(key, true); - anObject(D); - if (has(AllSymbols, key)) { - if (!D.enumerable) { - if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); - it[HIDDEN][key] = true; - } else { - if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; - D = _create(D, { enumerable: createDesc(0, false) }); - } return setSymbolDesc(it, key, D); - } return dP(it, key, D); -}; -var $defineProperties = function defineProperties(it, P) { - anObject(it); - var keys = enumKeys(P = toIObject(P)); - var i = 0; - var l = keys.length; - var key; - while (l > i) $defineProperty(it, key = keys[i++], P[key]); - return it; -}; -var $create = function create(it, P) { - return P === undefined ? _create(it) : $defineProperties(_create(it), P); -}; -var $propertyIsEnumerable = function propertyIsEnumerable(key) { - var E = isEnum.call(this, key = toPrimitive(key, true)); - if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; - return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; -}; -var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { - it = toIObject(it); - key = toPrimitive(key, true); - if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; - var D = gOPD(it, key); - if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; - return D; -}; -var $getOwnPropertyNames = function getOwnPropertyNames(it) { - var names = gOPN(toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); - } return result; -}; -var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { - var IS_OP = it === ObjectProto; - var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); - var result = []; - var i = 0; - var key; - while (names.length > i) { - if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); - } return result; -}; - -// 19.4.1.1 Symbol([description]) -if (!USE_NATIVE) { - $Symbol = function Symbol() { - if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); - var tag = uid(arguments.length > 0 ? arguments[0] : undefined); - var $set = function (value) { - if (this === ObjectProto) $set.call(OPSymbols, value); - if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; - setSymbolDesc(this, tag, createDesc(1, value)); - }; - if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); - return wrap(tag); - }; - redefine($Symbol[PROTOTYPE], 'toString', function toString() { - return this._k; - }); - - $GOPD.f = $getOwnPropertyDescriptor; - $DP.f = $defineProperty; - __webpack_require__(66).f = gOPNExt.f = $getOwnPropertyNames; - __webpack_require__(47).f = $propertyIsEnumerable; - $GOPS.f = $getOwnPropertySymbols; - - if (DESCRIPTORS && !__webpack_require__(20)) { - redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); - } - - wksExt.f = function (name) { - return wrap(wks(name)); - }; -} - -$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); - -for (var es6Symbols = ( - // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' -).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); - -for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); - -$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { - // 19.4.2.1 Symbol.for(key) - 'for': function (key) { - return has(SymbolRegistry, key += '') - ? SymbolRegistry[key] - : SymbolRegistry[key] = $Symbol(key); - }, - // 19.4.2.5 Symbol.keyFor(sym) - keyFor: function keyFor(sym) { - if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); - for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; - }, - useSetter: function () { setter = true; }, - useSimple: function () { setter = false; } -}); - -$export($export.S + $export.F * !USE_NATIVE, 'Object', { - // 19.1.2.2 Object.create(O [, Properties]) - create: $create, - // 19.1.2.4 Object.defineProperty(O, P, Attributes) - defineProperty: $defineProperty, - // 19.1.2.3 Object.defineProperties(O, Properties) - defineProperties: $defineProperties, - // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) - getOwnPropertyDescriptor: $getOwnPropertyDescriptor, - // 19.1.2.7 Object.getOwnPropertyNames(O) - getOwnPropertyNames: $getOwnPropertyNames, - // 19.1.2.8 Object.getOwnPropertySymbols(O) - getOwnPropertySymbols: $getOwnPropertySymbols -}); - -// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives -// https://bugs.chromium.org/p/v8/issues/detail?id=3443 -var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); - -$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { - getOwnPropertySymbols: function getOwnPropertySymbols(it) { - return $GOPS.f(toObject(it)); - } -}); - -// 24.3.2 JSON.stringify(value [, replacer [, space]]) -$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { - var S = $Symbol(); - // MS Edge converts symbol values to JSON as {} - // WebKit converts symbol values to JSON as null - // V8 throws on boxed symbols - return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; -})), 'JSON', { - stringify: function stringify(it) { - var args = [it]; - var i = 1; - var replacer, $replacer; - while (arguments.length > i) args.push(arguments[i++]); - $replacer = replacer = args[1]; - if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined - if (!isArray(replacer)) replacer = function (key, value) { - if (typeof $replacer == 'function') value = $replacer.call(this, key, value); - if (!isSymbol(value)) return value; - }; - args[1] = replacer; - return _stringify.apply($JSON, args); - } -}); - -// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) -$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(12)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); -// 19.4.3.5 Symbol.prototype[@@toStringTag] -setToStringTag($Symbol, 'Symbol'); -// 20.2.1.9 Math[@@toStringTag] -setToStringTag(Math, 'Math', true); -// 24.3.3 JSON[@@toStringTag] -setToStringTag(global.JSON, 'JSON', true); - - -/***/ }), -/* 105 */ -/***/ (function(module, exports, __webpack_require__) { - -// all enumerable object keys, includes symbols -var getKeys = __webpack_require__(39); -var gOPS = __webpack_require__(64); -var pIE = __webpack_require__(47); -module.exports = function (it) { - var result = getKeys(it); - var getSymbols = gOPS.f; - if (getSymbols) { - var symbols = getSymbols(it); - var isEnum = pIE.f; - var i = 0; - var key; - while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); - } return result; -}; - - -/***/ }), -/* 106 */ -/***/ (function(module, exports, __webpack_require__) { - -// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window -var toIObject = __webpack_require__(18); -var gOPN = __webpack_require__(66).f; -var toString = {}.toString; - -var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) : []; - -var getWindowNames = function (it) { - try { - return gOPN(it); - } catch (e) { - return windowNames.slice(); - } -}; - -module.exports.f = function getOwnPropertyNames(it) { - return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); -}; - - -/***/ }), -/* 107 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(46)('asyncIterator'); - - -/***/ }), -/* 108 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(46)('observable'); - - -/***/ }), -/* 109 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(110), __esModule: true }; - -/***/ }), -/* 110 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(48); -__webpack_require__(19); -__webpack_require__(24); -__webpack_require__(111); -__webpack_require__(119); -__webpack_require__(122); -__webpack_require__(124); -module.exports = __webpack_require__(0).Map; - - -/***/ }), -/* 111 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var strong = __webpack_require__(112); -var validate = __webpack_require__(70); -var MAP = 'Map'; - -// 23.1 Map Objects -module.exports = __webpack_require__(115)(MAP, function (get) { - return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; -}, { - // 23.1.3.6 Map.prototype.get(key) - get: function get(key) { - var entry = strong.getEntry(validate(this, MAP), key); - return entry && entry.v; - }, - // 23.1.3.9 Map.prototype.set(key, value) - set: function set(key, value) { - return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); - } -}, strong, true); - - -/***/ }), -/* 112 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var dP = __webpack_require__(5).f; -var create = __webpack_require__(28); -var redefineAll = __webpack_require__(49); -var ctx = __webpack_require__(11); -var anInstance = __webpack_require__(50); -var forOf = __webpack_require__(25); -var $iterDefine = __webpack_require__(36); -var step = __webpack_require__(63); -var setSpecies = __webpack_require__(69); -var DESCRIPTORS = __webpack_require__(7); -var fastKey = __webpack_require__(45).fastKey; -var validate = __webpack_require__(70); -var SIZE = DESCRIPTORS ? '_s' : 'size'; - -var getEntry = function (that, key) { - // fast case - var index = fastKey(key); - var entry; - if (index !== 'F') return that._i[index]; - // frozen object case - for (entry = that._f; entry; entry = entry.n) { - if (entry.k == key) return entry; - } -}; - -module.exports = { - getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function (that, iterable) { - anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type - that._i = create(null); // index - that._f = undefined; // first entry - that._l = undefined; // last entry - that[SIZE] = 0; // size - if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); - }); - redefineAll(C.prototype, { - // 23.1.3.1 Map.prototype.clear() - // 23.2.3.2 Set.prototype.clear() - clear: function clear() { - for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { - entry.r = true; - if (entry.p) entry.p = entry.p.n = undefined; - delete data[entry.i]; - } - that._f = that._l = undefined; - that[SIZE] = 0; - }, - // 23.1.3.3 Map.prototype.delete(key) - // 23.2.3.4 Set.prototype.delete(value) - 'delete': function (key) { - var that = validate(this, NAME); - var entry = getEntry(that, key); - if (entry) { - var next = entry.n; - var prev = entry.p; - delete that._i[entry.i]; - entry.r = true; - if (prev) prev.n = next; - if (next) next.p = prev; - if (that._f == entry) that._f = next; - if (that._l == entry) that._l = prev; - that[SIZE]--; - } return !!entry; - }, - // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) - // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) - forEach: function forEach(callbackfn /* , that = undefined */) { - validate(this, NAME); - var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); - var entry; - while (entry = entry ? entry.n : this._f) { - f(entry.v, entry.k, this); - // revert to the last existing entry - while (entry && entry.r) entry = entry.p; - } - }, - // 23.1.3.7 Map.prototype.has(key) - // 23.2.3.7 Set.prototype.has(value) - has: function has(key) { - return !!getEntry(validate(this, NAME), key); - } - }); - if (DESCRIPTORS) dP(C.prototype, 'size', { - get: function () { - return validate(this, NAME)[SIZE]; - } - }); - return C; - }, - def: function (that, key, value) { - var entry = getEntry(that, key); - var prev, index; - // change existing entry - if (entry) { - entry.v = value; - // create new entry - } else { - that._l = entry = { - i: index = fastKey(key, true), // <- index - k: key, // <- key - v: value, // <- value - p: prev = that._l, // <- previous entry - n: undefined, // <- next entry - r: false // <- removed - }; - if (!that._f) that._f = entry; - if (prev) prev.n = entry; - that[SIZE]++; - // add to index - if (index !== 'F') that._i[index] = entry; - } return that; - }, - getEntry: getEntry, - setStrong: function (C, NAME, IS_MAP) { - // add .keys, .values, .entries, [@@iterator] - // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 - $iterDefine(C, NAME, function (iterated, kind) { - this._t = validate(iterated, NAME); // target - this._k = kind; // kind - this._l = undefined; // previous - }, function () { - var that = this; - var kind = that._k; - var entry = that._l; - // revert to the last existing entry - while (entry && entry.r) entry = entry.p; - // get next entry - if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { - // or finish the iteration - that._t = undefined; - return step(1); - } - // return step by kind - if (kind == 'keys') return step(0, entry.k); - if (kind == 'values') return step(0, entry.v); - return step(0, [entry.k, entry.v]); - }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); - - // add [@@species], 23.1.2.2, 23.2.2.2 - setSpecies(NAME); - } -}; - - -/***/ }), -/* 113 */ -/***/ (function(module, exports, __webpack_require__) { - -// call something on iterator step with safe closing on error -var anObject = __webpack_require__(6); -module.exports = function (iterator, fn, value, entries) { - try { - return entries ? fn(anObject(value)[0], value[1]) : fn(value); - // 7.4.6 IteratorClose(iterator, completion) - } catch (e) { - var ret = iterator['return']; - if (ret !== undefined) anObject(ret.call(iterator)); - throw e; - } -}; - - -/***/ }), -/* 114 */ -/***/ (function(module, exports, __webpack_require__) { - -// check on default Array iterator -var Iterators = __webpack_require__(17); -var ITERATOR = __webpack_require__(2)('iterator'); -var ArrayProto = Array.prototype; - -module.exports = function (it) { - return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); -}; - - -/***/ }), -/* 115 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var global = __webpack_require__(1); -var $export = __webpack_require__(3); -var meta = __webpack_require__(45); -var fails = __webpack_require__(16); -var hide = __webpack_require__(12); -var redefineAll = __webpack_require__(49); -var forOf = __webpack_require__(25); -var anInstance = __webpack_require__(50); -var isObject = __webpack_require__(4); -var setToStringTag = __webpack_require__(23); -var dP = __webpack_require__(5).f; -var each = __webpack_require__(116)(0); -var DESCRIPTORS = __webpack_require__(7); - -module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { - var Base = global[NAME]; - var C = Base; - var ADDER = IS_MAP ? 'set' : 'add'; - var proto = C && C.prototype; - var O = {}; - if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { - new C().entries().next(); - }))) { - // create collection constructor - C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); - redefineAll(C.prototype, methods); - meta.NEED = true; - } else { - C = wrapper(function (target, iterable) { - anInstance(target, C, NAME, '_c'); - target._c = new Base(); - if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target); - }); - each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) { - var IS_ADDER = KEY == 'add' || KEY == 'set'; - if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) { - anInstance(this, C, KEY); - if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false; - var result = this._c[KEY](a === 0 ? 0 : a, b); - return IS_ADDER ? this : result; - }); - }); - IS_WEAK || dP(C.prototype, 'size', { - get: function () { - return this._c.size; - } - }); - } - - setToStringTag(C, NAME); - - O[NAME] = C; - $export($export.G + $export.W + $export.F, O); - - if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); - - return C; -}; - - -/***/ }), -/* 116 */ -/***/ (function(module, exports, __webpack_require__) { - -// 0 -> Array#forEach -// 1 -> Array#map -// 2 -> Array#filter -// 3 -> Array#some -// 4 -> Array#every -// 5 -> Array#find -// 6 -> Array#findIndex -var ctx = __webpack_require__(11); -var IObject = __webpack_require__(60); -var toObject = __webpack_require__(30); -var toLength = __webpack_require__(40); -var asc = __webpack_require__(117); -module.exports = function (TYPE, $create) { - var IS_MAP = TYPE == 1; - var IS_FILTER = TYPE == 2; - var IS_SOME = TYPE == 3; - var IS_EVERY = TYPE == 4; - var IS_FIND_INDEX = TYPE == 6; - var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - var create = $create || asc; - return function ($this, callbackfn, that) { - var O = toObject($this); - var self = IObject(O); - var f = ctx(callbackfn, that, 3); - var length = toLength(self.length); - var index = 0; - var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; - var val, res; - for (;length > index; index++) if (NO_HOLES || index in self) { - val = self[index]; - res = f(val, index, O); - if (TYPE) { - if (IS_MAP) result[index] = res; // map - else if (res) switch (TYPE) { - case 3: return true; // some - case 5: return val; // find - case 6: return index; // findIndex - case 2: result.push(val); // filter - } else if (IS_EVERY) return false; // every - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; - }; -}; - - -/***/ }), -/* 117 */ -/***/ (function(module, exports, __webpack_require__) { - -// 9.4.2.3 ArraySpeciesCreate(originalArray, length) -var speciesConstructor = __webpack_require__(118); - -module.exports = function (original, length) { - return new (speciesConstructor(original))(length); -}; - - -/***/ }), -/* 118 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(4); -var isArray = __webpack_require__(65); -var SPECIES = __webpack_require__(2)('species'); - -module.exports = function (original) { - var C; - if (isArray(original)) { - C = original.constructor; - // cross-realm fallback - if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; - if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; - } - } return C === undefined ? Array : C; -}; - - -/***/ }), -/* 119 */ -/***/ (function(module, exports, __webpack_require__) { - -// https://github.com/DavidBruant/Map-Set.prototype.toJSON -var $export = __webpack_require__(3); - -$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(120)('Map') }); - - -/***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { - -// https://github.com/DavidBruant/Map-Set.prototype.toJSON -var classof = __webpack_require__(31); -var from = __webpack_require__(121); -module.exports = function (NAME) { - return function toJSON() { - if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); - return from(this); - }; -}; - - -/***/ }), -/* 121 */ -/***/ (function(module, exports, __webpack_require__) { - -var forOf = __webpack_require__(25); - -module.exports = function (iter, ITERATOR) { - var result = []; - forOf(iter, false, result.push, result, ITERATOR); - return result; -}; - - -/***/ }), -/* 122 */ -/***/ (function(module, exports, __webpack_require__) { - -// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of -__webpack_require__(123)('Map'); - - -/***/ }), -/* 123 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// https://tc39.github.io/proposal-setmap-offrom/ -var $export = __webpack_require__(3); - -module.exports = function (COLLECTION) { - $export($export.S, COLLECTION, { of: function of() { - var length = arguments.length; - var A = new Array(length); - while (length--) A[length] = arguments[length]; - return new this(A); - } }); -}; - - -/***/ }), -/* 124 */ -/***/ (function(module, exports, __webpack_require__) { - -// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from -__webpack_require__(125)('Map'); - - -/***/ }), -/* 125 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// https://tc39.github.io/proposal-setmap-offrom/ -var $export = __webpack_require__(3); -var aFunction = __webpack_require__(21); -var ctx = __webpack_require__(11); -var forOf = __webpack_require__(25); - -module.exports = function (COLLECTION) { - $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { - var mapFn = arguments[1]; - var mapping, A, n, cb; - aFunction(this); - mapping = mapFn !== undefined; - if (mapping) aFunction(mapFn); - if (source == undefined) return new this(); - A = []; - if (mapping) { - n = 0; - cb = ctx(mapFn, arguments[2], 2); - forOf(source, false, function (nextItem) { - A.push(cb(nextItem, n++)); - }); - } else { - forOf(source, false, A.push, A); - } - return new this(A); - } }); -}; - - -/***/ }), -/* 126 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["c"] = osgbToglb; -/* harmony export (immutable) */ __webpack_exports__["d"] = shapeToglb; -/* unused harmony export objToglb */ -/* harmony export (immutable) */ __webpack_exports__["a"] = b3dmToglb; -/* harmony export (immutable) */ __webpack_exports__["b"] = daeTogltf; -var path = __webpack_require__(8); -var childProcess = __webpack_require__(14); - -var _3dtilePath = path.join(process.cwd(), '/convert/_3dtile.exe'); -var colladaPath = path.join(process.cwd(), '/collada2gltf/COLLADA2GLTF-bin.exe'); - -function osgbToglb(input, output, callBack) { - var exeFilePath = 'start ' + _3dtilePath + ' -f osgb -i ' + input + ' -o ' + output; - - start(exeFilePath, callBack); -} - -function shapeToglb(input, output, callBack) { - var exeFilePath = 'start ' + _3dtilePath + ' -f shape -i ' + input + ' -o ' + output + ' --height height'; - - start(exeFilePath, callBack); -} - -function objToglb(input, output, callBack) { - var exeFilePath = 'start ' + _3dtilePath + ' -f gltf -i ' + input + ' -o ' + output; - - start(exeFilePath, callBack); -} - -function b3dmToglb(input, output, callBack) { - var exeFilePath = 'start ' + _3dtilePath + ' -f b3dm -i ' + input + ' -o ' + output; - - start(exeFilePath, callBack); -} - -function start(exeFilePath, callBack) { - console.log(exeFilePath); - try { - var a = childProcess.exec(exeFilePath, { cwd: path.join(process.cwd(), 'convert') }); - a.stdout.on('data', function (data) {}); - a.stderr.on('data', function (data) { - console.log("stderr_________________________"); - }); - a.on('close', function (code) { - console.log('out code_______________________:' + code); - callBack(); - }); - } catch (e) { - console.log(e); - } -} - -function daeTogltf(i, o, c) { - var exeFilePath = 'start ' + colladaPath + ' -i ' + i + ' -o ' + o; - try { - var a = childProcess.exec(exeFilePath, { cwd: path.join(process.cwd(), 'collada2gltf') }); - a.on('close', function (code) { - c(); - }); - } catch (e) { - console.log(e); - } -} - -/***/ }), -/* 127 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = Format; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__ = __webpack_require__(128); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__); - - -var obj2gltf = __webpack_require__(130); -var fs = __webpack_require__(15); - -var gltfPipeline = __webpack_require__(131); - - -var processGltf = gltfPipeline.processGltf; -function Format() { - - this.obj2gltf = function (name) { - obj2gltf(name + '.obj').then(function (gltf) { - var data = Buffer.from(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(gltf)); - fs.writeFileSync(name + '.gltf', data); - }); - }; - - this.obj2glb = function (input, output, callBack) { - var options = { - binary: true - }; - obj2gltf(input, options).then(function (glb) { - fs.writeFileSync(output, glb); - callBack(); - }); - }; -} - -/***/ }), -/* 128 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(129), __esModule: true }; - -/***/ }), -/* 129 */ -/***/ (function(module, exports, __webpack_require__) { - -var core = __webpack_require__(0); -var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify }); -module.exports = function stringify(it) { // eslint-disable-line no-unused-vars - return $JSON.stringify.apply($JSON, arguments); -}; - - -/***/ }), -/* 130 */ -/***/ (function(module, exports) { - -module.exports = require("obj2gltf"); - -/***/ }), -/* 131 */ -/***/ (function(module, exports) { - -module.exports = require("gltf-pipeline"); - -/***/ }), -/* 132 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (immutable) */ __webpack_exports__["a"] = Fbx2glb; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise__ = __webpack_require__(133); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise__); - - - -var childProcess = __webpack_require__(14); -var fs = __webpack_require__(15); -var os = __webpack_require__(10); -var path = __webpack_require__(8); -var rimraf = __webpack_require__(142); -console.log(path.join(process.cwd(), 'convert/FBX2glTF.exe')); -function Fbx2glb() { - function convert(srcFile, destFile) { - var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; - - return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) { - try { - var binExt = os.type() === 'Windows_NT' ? '.exe' : ''; - - var tool = path.join(process.cwd(), 'convert/FBX2glTF.exe'); - if (!fs.existsSync(tool)) { - throw new Error('Unsupported OS: ' + os.type()); - } - - var destExt = void 0; - if (destFile.endsWith('.glb')) { - destExt = '.glb'; - opts.includes('--binary') || opts.push('--binary'); - } else if (destFile.endsWith('.gltf')) { - destExt = '.gltf'; - } else { - throw new Error('Unsupported file extension: ' + destFile); - } - - var srcPath = fs.realpathSync(srcFile); - var destDir = fs.realpathSync(path.dirname(destFile)); - var destPath = path.join(destDir, path.basename(destFile, destExt)); - - var args = opts.slice(0); - args.push('--input', srcPath, '--output', destPath); - var child = childProcess.spawn(tool, args); - - var output = ''; - child.stdout.on('data', function (data) { - return output += data; - }); - child.stderr.on('data', function (data) { - return output += data; - }); - child.on('error', reject); - child.on('close', function (code) { - var fbmCruft = srcPath.replace(/.fbx$/i, '.fbm'); - - var onError = function onError(error) { - return error && console.warn('Failed to delete ' + fbmCruft + ': ' + error); - }; - try { - fs.existsSync(fbmCruft) && rimraf(fbmCruft, {}, onError); - } catch (error) { - onError(error); - } - - if (code != 0) { - reject(new Error('Converter output:\n' + (output.length ? output : ""))); - } else { - resolve(destPath + destExt); - } - }); - } catch (error) { - reject(error); - } - }); - } - - this.fbx2glb = function (input, output, callBack) { - convert(input, output, ['--khr-materials-unlit']).then(function (destPath) { - callBack(destPath); - }, function (error) { - callBack(error); - }); - }; -} - -/***/ }), -/* 133 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(134), __esModule: true }; - -/***/ }), -/* 134 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(48); -__webpack_require__(19); -__webpack_require__(24); -__webpack_require__(135); -__webpack_require__(140); -__webpack_require__(141); -module.exports = __webpack_require__(0).Promise; - - -/***/ }), -/* 135 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var LIBRARY = __webpack_require__(20); -var global = __webpack_require__(1); -var ctx = __webpack_require__(11); -var classof = __webpack_require__(31); -var $export = __webpack_require__(3); -var isObject = __webpack_require__(4); -var aFunction = __webpack_require__(21); -var anInstance = __webpack_require__(50); -var forOf = __webpack_require__(25); -var speciesConstructor = __webpack_require__(71); -var task = __webpack_require__(72).set; -var microtask = __webpack_require__(137)(); -var newPromiseCapabilityModule = __webpack_require__(51); -var perform = __webpack_require__(73); -var userAgent = __webpack_require__(138); -var promiseResolve = __webpack_require__(74); -var PROMISE = 'Promise'; -var TypeError = global.TypeError; -var process = global.process; -var versions = process && process.versions; -var v8 = versions && versions.v8 || ''; -var $Promise = global[PROMISE]; -var isNode = classof(process) == 'process'; -var empty = function () { /* empty */ }; -var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; -var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; - -var USE_NATIVE = !!function () { - try { - // correct subclassing with @@species support - var promise = $Promise.resolve(1); - var FakePromise = (promise.constructor = {})[__webpack_require__(2)('species')] = function (exec) { - exec(empty, empty); - }; - // unhandled rejections tracking support, NodeJS Promise without it fails @@species test - return (isNode || typeof PromiseRejectionEvent == 'function') - && promise.then(empty) instanceof FakePromise - // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables - // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 - // we can't detect it synchronously, so just check versions - && v8.indexOf('6.6') !== 0 - && userAgent.indexOf('Chrome/66') === -1; - } catch (e) { /* empty */ } -}(); - -// helpers -var isThenable = function (it) { - var then; - return isObject(it) && typeof (then = it.then) == 'function' ? then : false; -}; -var notify = function (promise, isReject) { - if (promise._n) return; - promise._n = true; - var chain = promise._c; - microtask(function () { - var value = promise._v; - var ok = promise._s == 1; - var i = 0; - var run = function (reaction) { - var handler = ok ? reaction.ok : reaction.fail; - var resolve = reaction.resolve; - var reject = reaction.reject; - var domain = reaction.domain; - var result, then, exited; - try { - if (handler) { - if (!ok) { - if (promise._h == 2) onHandleUnhandled(promise); - promise._h = 1; - } - if (handler === true) result = value; - else { - if (domain) domain.enter(); - result = handler(value); // may throw - if (domain) { - domain.exit(); - exited = true; - } - } - if (result === reaction.promise) { - reject(TypeError('Promise-chain cycle')); - } else if (then = isThenable(result)) { - then.call(result, resolve, reject); - } else resolve(result); - } else reject(value); - } catch (e) { - if (domain && !exited) domain.exit(); - reject(e); - } - }; - while (chain.length > i) run(chain[i++]); // variable length - can't use forEach - promise._c = []; - promise._n = false; - if (isReject && !promise._h) onUnhandled(promise); - }); -}; -var onUnhandled = function (promise) { - task.call(global, function () { - var value = promise._v; - var unhandled = isUnhandled(promise); - var result, handler, console; - if (unhandled) { - result = perform(function () { - if (isNode) { - process.emit('unhandledRejection', value, promise); - } else if (handler = global.onunhandledrejection) { - handler({ promise: promise, reason: value }); - } else if ((console = global.console) && console.error) { - console.error('Unhandled promise rejection', value); - } - }); - // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should - promise._h = isNode || isUnhandled(promise) ? 2 : 1; - } promise._a = undefined; - if (unhandled && result.e) throw result.v; - }); -}; -var isUnhandled = function (promise) { - return promise._h !== 1 && (promise._a || promise._c).length === 0; -}; -var onHandleUnhandled = function (promise) { - task.call(global, function () { - var handler; - if (isNode) { - process.emit('rejectionHandled', promise); - } else if (handler = global.onrejectionhandled) { - handler({ promise: promise, reason: promise._v }); - } - }); -}; -var $reject = function (value) { - var promise = this; - if (promise._d) return; - promise._d = true; - promise = promise._w || promise; // unwrap - promise._v = value; - promise._s = 2; - if (!promise._a) promise._a = promise._c.slice(); - notify(promise, true); -}; -var $resolve = function (value) { - var promise = this; - var then; - if (promise._d) return; - promise._d = true; - promise = promise._w || promise; // unwrap - try { - if (promise === value) throw TypeError("Promise can't be resolved itself"); - if (then = isThenable(value)) { - microtask(function () { - var wrapper = { _w: promise, _d: false }; // wrap - try { - then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); - } catch (e) { - $reject.call(wrapper, e); - } - }); - } else { - promise._v = value; - promise._s = 1; - notify(promise, false); - } - } catch (e) { - $reject.call({ _w: promise, _d: false }, e); // wrap - } -}; - -// constructor polyfill -if (!USE_NATIVE) { - // 25.4.3.1 Promise(executor) - $Promise = function Promise(executor) { - anInstance(this, $Promise, PROMISE, '_h'); - aFunction(executor); - Internal.call(this); - try { - executor(ctx($resolve, this, 1), ctx($reject, this, 1)); - } catch (err) { - $reject.call(this, err); - } - }; - // eslint-disable-next-line no-unused-vars - Internal = function Promise(executor) { - this._c = []; // <- awaiting reactions - this._a = undefined; // <- checked in isUnhandled reactions - this._s = 0; // <- state - this._d = false; // <- done - this._v = undefined; // <- value - this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled - this._n = false; // <- notify - }; - Internal.prototype = __webpack_require__(49)($Promise.prototype, { - // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) - then: function then(onFulfilled, onRejected) { - var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); - reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; - reaction.fail = typeof onRejected == 'function' && onRejected; - reaction.domain = isNode ? process.domain : undefined; - this._c.push(reaction); - if (this._a) this._a.push(reaction); - if (this._s) notify(this, false); - return reaction.promise; - }, - // 25.4.5.1 Promise.prototype.catch(onRejected) - 'catch': function (onRejected) { - return this.then(undefined, onRejected); - } - }); - OwnPromiseCapability = function () { - var promise = new Internal(); - this.promise = promise; - this.resolve = ctx($resolve, promise, 1); - this.reject = ctx($reject, promise, 1); - }; - newPromiseCapabilityModule.f = newPromiseCapability = function (C) { - return C === $Promise || C === Wrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - }; -} - -$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); -__webpack_require__(23)($Promise, PROMISE); -__webpack_require__(69)(PROMISE); -Wrapper = __webpack_require__(0)[PROMISE]; - -// statics -$export($export.S + $export.F * !USE_NATIVE, PROMISE, { - // 25.4.4.5 Promise.reject(r) - reject: function reject(r) { - var capability = newPromiseCapability(this); - var $$reject = capability.reject; - $$reject(r); - return capability.promise; - } -}); -$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { - // 25.4.4.6 Promise.resolve(x) - resolve: function resolve(x) { - return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); - } -}); -$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(139)(function (iter) { - $Promise.all(iter)['catch'](empty); -})), PROMISE, { - // 25.4.4.1 Promise.all(iterable) - all: function all(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var values = []; - var index = 0; - var remaining = 1; - forOf(iterable, false, function (promise) { - var $index = index++; - var alreadyCalled = false; - values.push(undefined); - remaining++; - C.resolve(promise).then(function (value) { - if (alreadyCalled) return; - alreadyCalled = true; - values[$index] = value; - --remaining || resolve(values); - }, reject); - }); - --remaining || resolve(values); - }); - if (result.e) reject(result.v); - return capability.promise; - }, - // 25.4.4.4 Promise.race(iterable) - race: function race(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var reject = capability.reject; - var result = perform(function () { - forOf(iterable, false, function (promise) { - C.resolve(promise).then(capability.resolve, reject); - }); - }); - if (result.e) reject(result.v); - return capability.promise; - } -}); - - -/***/ }), -/* 136 */ -/***/ (function(module, exports) { - -// fast apply, http://jsperf.lnkit.com/fast-apply/5 -module.exports = function (fn, args, that) { - var un = that === undefined; - switch (args.length) { - case 0: return un ? fn() - : fn.call(that); - case 1: return un ? fn(args[0]) - : fn.call(that, args[0]); - case 2: return un ? fn(args[0], args[1]) - : fn.call(that, args[0], args[1]); - case 3: return un ? fn(args[0], args[1], args[2]) - : fn.call(that, args[0], args[1], args[2]); - case 4: return un ? fn(args[0], args[1], args[2], args[3]) - : fn.call(that, args[0], args[1], args[2], args[3]); - } return fn.apply(that, args); -}; - - -/***/ }), -/* 137 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(1); -var macrotask = __webpack_require__(72).set; -var Observer = global.MutationObserver || global.WebKitMutationObserver; -var process = global.process; -var Promise = global.Promise; -var isNode = __webpack_require__(22)(process) == 'process'; - -module.exports = function () { - var head, last, notify; - - var flush = function () { - var parent, fn; - if (isNode && (parent = process.domain)) parent.exit(); - while (head) { - fn = head.fn; - head = head.next; - try { - fn(); - } catch (e) { - if (head) notify(); - else last = undefined; - throw e; - } - } last = undefined; - if (parent) parent.enter(); - }; - - // Node.js - if (isNode) { - notify = function () { - process.nextTick(flush); - }; - // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 - } else if (Observer && !(global.navigator && global.navigator.standalone)) { - var toggle = true; - var node = document.createTextNode(''); - new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new - notify = function () { - node.data = toggle = !toggle; - }; - // environments with maybe non-completely correct, but existent Promise - } else if (Promise && Promise.resolve) { - // Promise.resolve without an argument throws an error in LG WebOS 2 - var promise = Promise.resolve(undefined); - notify = function () { - promise.then(flush); - }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessag - // - onreadystatechange - // - setTimeout - } else { - notify = function () { - // strange IE + webpack dev server bug - use .call(global) - macrotask.call(global, flush); - }; - } - - return function (fn) { - var task = { fn: fn, next: undefined }; - if (last) last.next = task; - if (!head) { - head = task; - notify(); - } last = task; - }; -}; - - -/***/ }), -/* 138 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(1); -var navigator = global.navigator; - -module.exports = navigator && navigator.userAgent || ''; - - -/***/ }), -/* 139 */ -/***/ (function(module, exports, __webpack_require__) { - -var ITERATOR = __webpack_require__(2)('iterator'); -var SAFE_CLOSING = false; - -try { - var riter = [7][ITERATOR](); - riter['return'] = function () { SAFE_CLOSING = true; }; - // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { throw 2; }); -} catch (e) { /* empty */ } - -module.exports = function (exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return false; - var safe = false; - try { - var arr = [7]; - var iter = arr[ITERATOR](); - iter.next = function () { return { done: safe = true }; }; - arr[ITERATOR] = function () { return iter; }; - exec(arr); - } catch (e) { /* empty */ } - return safe; -}; - - -/***/ }), -/* 140 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -// https://github.com/tc39/proposal-promise-finally - -var $export = __webpack_require__(3); -var core = __webpack_require__(0); -var global = __webpack_require__(1); -var speciesConstructor = __webpack_require__(71); -var promiseResolve = __webpack_require__(74); - -$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise); - var isFunction = typeof onFinally == 'function'; - return this.then( - isFunction ? function (x) { - return promiseResolve(C, onFinally()).then(function () { return x; }); - } : onFinally, - isFunction ? function (e) { - return promiseResolve(C, onFinally()).then(function () { throw e; }); - } : onFinally - ); -} }); - - -/***/ }), -/* 141 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// https://github.com/tc39/proposal-promise-try -var $export = __webpack_require__(3); -var newPromiseCapability = __webpack_require__(51); -var perform = __webpack_require__(73); - -$export($export.S, 'Promise', { 'try': function (callbackfn) { - var promiseCapability = newPromiseCapability.f(this); - var result = perform(callbackfn); - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); - return promiseCapability.promise; -} }); - - -/***/ }), -/* 142 */ -/***/ (function(module, exports) { - -module.exports = require("rimraf"); - -/***/ }), -/* 143 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Recorder; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_createClass__ = __webpack_require__(144); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_createClass__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_get_prototype_of__ = __webpack_require__(148); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_get_prototype_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_get_prototype_of__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(152); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(153); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(154); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_path__ = __webpack_require__(8); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_path___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_path__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_fs__ = __webpack_require__(15); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_fs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_fs__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__config__ = __webpack_require__(26); - - - - - - - - -var os = __webpack_require__(10); -var platform = os.platform(); -var arch = os.arch(); -var moment = __webpack_require__(162); - -var _require = __webpack_require__(14), - spawn = _require.spawn; - -var EventEmitter = __webpack_require__(163); -var ffmpegExePath = __WEBPACK_IMPORTED_MODULE_5_path___default.a.join(Object(__WEBPACK_IMPORTED_MODULE_7__config__["a" /* GetHomeDir */])(), "ffplay"); - -var MyEmitter = function (_EventEmitter) { - __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(MyEmitter, _EventEmitter); - - function MyEmitter() { - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, MyEmitter); - - return __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, (MyEmitter.__proto__ || __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_object_get_prototype_of___default()(MyEmitter)).apply(this, arguments)); - } - - return MyEmitter; -}(EventEmitter); - -var myEmitter = new MyEmitter(); - -var Recorder = function () { - function Recorder() { - var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, Recorder); - - this.shell = undefined; - this.filename = moment(parseInt(new Date().getTime())).format("YYYYMMDDHHmmss") + ".mp4"; - this.exe = "ffmpeg.exe"; - if (platform === "win32") { - this.exe = "ffmpeg.exe"; - this.params = "-f gdigrab -r 30 -y -i desktop -pix_fmt yuv420p"; - } - if (platform === "linux") { - switch (arch) { - case "x64": - this.exe = "ffmpeg_x86"; - break; - case "arm": - case "arm64": - this.exe = "ffmpeg_arm"; - break; - } - this.params = "-v verbose -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -c:v libx264 -preset ultrafast -crf 18"; - } - this.commands = __WEBPACK_IMPORTED_MODULE_5_path___default.a.join(Object(__WEBPACK_IMPORTED_MODULE_7__config__["a" /* GetHomeDir */])(), "/ffplay/" + this.exe); - } - - __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_createClass___default()(Recorder, [{ - key: "get_path", - value: function get_path() { - return __WEBPACK_IMPORTED_MODULE_5_path___default.a.join(ffmpegExePath, this.filename); - } - }, { - key: "start", - value: function start() { - this.exec(this.commands, this.params); - } - }, { - key: "exec", - value: function exec(commands, param) { - var arr = param.split(" "); - arr.push(this.get_path()); - console.log("commands, arr", commands, arr); - this.shell = spawn(commands, arr, { - ffmpegExePath: ffmpegExePath - }).on("exit", function (err) { - console.log("exit", err); - myEmitter.emit("process-exit"); - }).on("data", function (data) {}); - - this.shell.stdout.on('data', function (data) {}); - - this.shell.stderr.on('data', function (data) {}); - this.shell.unref(); - } - }, { - key: "end", - value: function end(cb) { - if (!this.shell.killed) { - console.log(this.shell); - this.shell.stdin.write("q\n"); - myEmitter.once("process-exit", function () { - cb(); - }); - } else { - cb(); - } - } - }, { - key: "move", - value: function move(dst, cb) { - var _this2 = this; - - var readStream = __WEBPACK_IMPORTED_MODULE_6_fs___default.a.createReadStream(this.get_path()); - var writeStream = __WEBPACK_IMPORTED_MODULE_6_fs___default.a.createWriteStream(dst); - readStream.pipe(writeStream); - readStream.on("end", function () { - __WEBPACK_IMPORTED_MODULE_6_fs___default.a.unlinkSync(_this2.get_path()); - cb(); - }); - } - }]); - - return Recorder; -}(); - - - -/***/ }), -/* 144 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _defineProperty = __webpack_require__(145); - -var _defineProperty2 = _interopRequireDefault(_defineProperty); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - (0, _defineProperty2.default)(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; -}(); - -/***/ }), -/* 145 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(146), __esModule: true }; - -/***/ }), -/* 146 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(147); -var $Object = __webpack_require__(0).Object; -module.exports = function defineProperty(it, key, desc) { - return $Object.defineProperty(it, key, desc); -}; - - -/***/ }), -/* 147 */ -/***/ (function(module, exports, __webpack_require__) { - -var $export = __webpack_require__(3); -// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) -$export($export.S + $export.F * !__webpack_require__(7), 'Object', { defineProperty: __webpack_require__(5).f }); - - -/***/ }), -/* 148 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(149), __esModule: true }; - -/***/ }), -/* 149 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(150); -module.exports = __webpack_require__(0).Object.getPrototypeOf; - - -/***/ }), -/* 150 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.9 Object.getPrototypeOf(O) -var toObject = __webpack_require__(30); -var $getPrototypeOf = __webpack_require__(62); - -__webpack_require__(151)('getPrototypeOf', function () { - return function getPrototypeOf(it) { - return $getPrototypeOf(toObject(it)); - }; -}); - - -/***/ }), -/* 151 */ -/***/ (function(module, exports, __webpack_require__) { - -// most Object methods by ES6 should accept primitives -var $export = __webpack_require__(3); -var core = __webpack_require__(0); -var fails = __webpack_require__(16); -module.exports = function (KEY, exec) { - var fn = (core.Object || {})[KEY] || Object[KEY]; - var exp = {}; - exp[KEY] = exec(fn); - $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); -}; - - -/***/ }), -/* 152 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -}; - -/***/ }), -/* 153 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof2 = __webpack_require__(33); - -var _typeof3 = _interopRequireDefault(_typeof2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; -}; - -/***/ }), -/* 154 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _setPrototypeOf = __webpack_require__(155); - -var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - -var _create = __webpack_require__(159); - -var _create2 = _interopRequireDefault(_create); - -var _typeof2 = __webpack_require__(33); - -var _typeof3 = _interopRequireDefault(_typeof2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); - } - - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; -}; - -/***/ }), -/* 155 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(156), __esModule: true }; - -/***/ }), -/* 156 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(157); -module.exports = __webpack_require__(0).Object.setPrototypeOf; - - -/***/ }), -/* 157 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.3.19 Object.setPrototypeOf(O, proto) -var $export = __webpack_require__(3); -$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(158).set }); - - -/***/ }), -/* 158 */ -/***/ (function(module, exports, __webpack_require__) { - -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ -var isObject = __webpack_require__(4); -var anObject = __webpack_require__(6); -var check = function (O, proto) { - anObject(O); - if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); -}; -module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function (test, buggy, set) { - try { - set = __webpack_require__(11)(Function.call, __webpack_require__(67).f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { buggy = true; } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) O.__proto__ = proto; - else set(O, proto); - return O; - }; - }({}, false) : undefined), - check: check -}; - - -/***/ }), -/* 159 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(160), __esModule: true }; - -/***/ }), -/* 160 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(161); -var $Object = __webpack_require__(0).Object; -module.exports = function create(P, D) { - return $Object.create(P, D); -}; - - -/***/ }), -/* 161 */ -/***/ (function(module, exports, __webpack_require__) { - -var $export = __webpack_require__(3); -// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -$export($export.S, 'Object', { create: __webpack_require__(28) }); - - -/***/ }), -/* 162 */ -/***/ (function(module, exports) { - -module.exports = require("moment"); - -/***/ }), -/* 163 */ -/***/ (function(module, exports) { - -module.exports = require("events"); - -/***/ }), -/* 164 */ -/***/ (function(module, exports) { - -module.exports = require("dayjs"); - -/***/ }), -/* 165 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _isIterable2 = __webpack_require__(166); - -var _isIterable3 = _interopRequireDefault(_isIterable2); - -var _getIterator2 = __webpack_require__(76); - -var _getIterator3 = _interopRequireDefault(_getIterator2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function () { - function sliceIterator(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"]) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; - } - - return function (arr, i) { - if (Array.isArray(arr)) { - return arr; - } else if ((0, _isIterable3.default)(Object(arr))) { - return sliceIterator(arr, i); - } else { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); - } - }; -}(); - -/***/ }), -/* 166 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(167), __esModule: true }; - -/***/ }), -/* 167 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(24); -__webpack_require__(19); -module.exports = __webpack_require__(168); - - -/***/ }), -/* 168 */ -/***/ (function(module, exports, __webpack_require__) { - -var classof = __webpack_require__(31); -var ITERATOR = __webpack_require__(2)('iterator'); -var Iterators = __webpack_require__(17); -module.exports = __webpack_require__(0).isIterable = function (it) { - var O = Object(it); - return O[ITERATOR] !== undefined - || '@@iterator' in O - // eslint-disable-next-line no-prototype-builtins - || Iterators.hasOwnProperty(classof(O)); -}; - - -/***/ }), -/* 169 */ -/***/ (function(module, exports, __webpack_require__) { - -__webpack_require__(24); -__webpack_require__(19); -module.exports = __webpack_require__(170); - - -/***/ }), -/* 170 */ -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__(6); -var get = __webpack_require__(68); -module.exports = __webpack_require__(0).getIterator = function (it) { - var iterFn = get(it); - if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); - return anObject(iterFn.call(it)); -}; - - -/***/ }), -/* 171 */ -/***/ (function(module, exports) { - -module.exports = require("dgram"); - -/***/ }), -/* 172 */ -/***/ (function(module, exports) { - -module.exports = require("ini"); - -/***/ }), -/* 173 */ -/***/ (function(module, exports) { - -module.exports = require("http"); - -/***/ }), -/* 174 */ -/***/ (function(module, exports) { - - - -/***/ }), -/* 175 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return killProcessByName; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(76); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__); - - -var _require = __webpack_require__(14), - exec = _require.exec; - -var os = __webpack_require__(10); - -function killProcessByName(processName) { - var command = void 0; - switch (os.platform()) { - case "win32": - processName = "yjearth4" + processName + ".exe"; - - command = "tasklist | findstr \"" + processName + "\""; - exec(command, function (error, stdout, stderr) { - if (error) { - console.error("\u6267\u884C tasklist \u547D\u4EE4\u65F6\u51FA\u9519: " + error); - return; - } - var lines = stdout.split("\n"); - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(lines), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var line = _step.value; - - if (line.includes(processName)) { - (function () { - var fields = line.split(/\s+/); - var pid = fields[1]; - exec("taskkill /F /PID " + pid, function (err) { - if (err) { - console.error("\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: " + err); - return; - } - console.log("\u5DF2\u5728 Windows \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B " + processName + " (PID: " + pid + ")"); - }); - })(); - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - }); - break; - case "linux": - command = "ps -ef | grep \"yjearth4" + processName + "\""; - exec(command, function (error, stdout, stderr) { - if (error) { - console.error("\u6267\u884C ps \u547D\u4EE4\u65F6\u51FA\u9519: " + error); - return; - } - var lines = stdout.split("\n"); - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(lines), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var line = _step2.value; - - if (line.includes(processName)) { - (function () { - var fields = line.split(/\s+/); - var pid = fields[1]; - exec("kill -9 " + pid, function (err) { - if (err) { - console.error("\u6740\u6B7B\u8FDB\u7A0B\u65F6\u51FA\u9519: " + err); - return; - } - console.log("\u5DF2\u5728 Linux \u7CFB\u7EDF\u6740\u6B7B\u8FDB\u7A0B " + processName + " (PID: " + pid + ")"); - }); - })(); - } - } - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } - }); - break; - default: - console.error("\u4E0D\u652F\u6301\u7684\u64CD\u4F5C\u7CFB\u7EDF: " + os.platform()); - } -} - - - -/***/ }) -/******/ ]); \ No newline at end of file +module.exports=function(e){function t(r){if(o[r])return o[r].exports;var n=o[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,r){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var o=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(o,'a',o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=51)}([function(e){var t=e.exports={version:'2.6.12'};'number'==typeof __e&&(__e=t)},function(e){var t=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=t)},function(e,t,o){var r=o(41)('wks'),n=o(29),s=o(1).Symbol,a='function'==typeof s,i=e.exports=function(e){return r[e]||(r[e]=a&&s[e]||(a?s:n)('Symbol.'+e))};i.store=r},function(e,t,o){var r=o(1),n=o(0),s=o(10),a=o(11),i=o(12),l='prototype',p=function(e,t,o){var d,c,u,f=e&p.F,_=e&p.G,g=e&p.S,h=e&p.P,y=e&p.B,m=e&p.W,x=_?n:n[t]||(n[t]={}),b=x[l],v=_?r:g?r[t]:(r[t]||{})[l];for(d in _&&(o=t),o)c=!f&&v&&void 0!==v[d],c&&i(x,d)||(u=c?v[d]:o[d],x[d]=_&&'function'!=typeof v[d]?o[d]:y&&c?s(u,r):m&&v[d]==u?function(e){var t=function(t,o,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o);}return new e(t,o,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(u):h&&'function'==typeof u?s(Function.call,u):u,h&&((x.virtual||(x.virtual={}))[d]=u,e&p.R&&b&&!b[d]&&a(b,d,u)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},function(e){e.exports=function(e){return'object'==typeof e?null!==e:'function'==typeof e}},function(e,t,o){var r=o(6),n=o(56),s=o(37),a=Object.defineProperty;t.f=o(7)?Object.defineProperty:function(e,t,o){if(r(e),t=s(t,!0),r(o),n)try{return a(e,t,o)}catch(t){}if('get'in o||'set'in o)throw TypeError('Accessors not supported!');return'value'in o&&(e[t]=o.value),e}},function(e,t,o){var r=o(4);e.exports=function(e){if(!r(e))throw TypeError(e+' is not an object!');return e}},function(e,t,o){e.exports=!o(15)(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a})},function(e){e.exports=require('os')},function(e){e.exports=require('path')},function(e,t,o){var r=o(21);e.exports=function(e,t,o){return(r(e),void 0===t)?e:1===o?function(o){return e.call(t,o)}:2===o?function(o,r){return e.call(t,o,r)}:3===o?function(o,r,n){return e.call(t,o,r,n)}:function(){return e.apply(t,arguments)}}},function(e,t,o){var r=o(5),n=o(27);e.exports=o(7)?function(e,t,o){return r.f(e,t,n(1,o))}:function(e,t,o){return e[t]=o,e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},function(e){e.exports=require('child_process')},function(e){e.exports=require('fs')},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e){e.exports={}},function(e,t,o){var r=o(59),n=o(34);e.exports=function(e){return r(n(e))}},function(e){e.exports=require('electron')},function(e,t,o){'use strict';var r=o(85)(!0);o(35)(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=r(t,o),this._i+=e.length,{value:e,done:!1})})},function(e){e.exports=!0},function(e){e.exports=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t,o){var r=o(5).f,n=o(12),s=o(2)('toStringTag');e.exports=function(e,t,o){e&&!n(e=o?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}},function(e,t,o){o(90);for(var r=o(1),n=o(11),s=o(16),a=o(2)('toStringTag'),l='CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split(','),p=0;pf;f++)if(y=t?x(a(g=e[f])[0],g[1]):x(e[f]),y===p||y===d)return y;}else for(h=m.call(e);!(g=h.next()).done;)if(y=n(h,x,g.value,t),y===p||y===d)return y};t.BREAK=p,t.RETURN=d},function(e,t,o){'use strict';function r(){var e=process.cwd();console.log('process.env.NODE_ENV','production');var t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}o.d(t,'a',function(){return r})},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,o){var r=o(6),n=o(87),s=o(42),a=o(40)('IE_PROTO'),i=function(){},l='prototype',p=function(){var e,t=o(36)('iframe'),r=s.length,n='<',a='>';for(t.style.display='none',o(60).appendChild(t),t.src='javascript:',e=t.contentWindow.document,e.open(),e.write(n+'script'+a+'document.F=Object'+n+'/script'+a),e.close(),p=e.F;r--;)delete p[l][s[r]];return p()};e.exports=Object.create||function(e,t){var o;return null===e?o=p():(i[l]=r(e),o=new i,i[l]=null,o[a]=e),void 0===t?o:n(o,t)}},function(e){var t=0,o=Math.random();e.exports=function(e){return'Symbol('.concat(e===void 0?'':e,')_',(++t+o).toString(36))}},function(e,t,o){var r=o(34);e.exports=function(e){return Object(r(e))}},function(e,t,o){var r=o(22),n=o(2)('toStringTag'),s='Arguments'==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(t){}};e.exports=function(e){var t,o,i;return e===void 0?'Undefined':null===e?'Null':'string'==typeof(o=a(t=Object(e),n))?o:s?r(t):'Object'==(i=r(t))&&'function'==typeof t.callee?'Arguments':i}},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=o(83),s=r(n),a=o(92),i=r(a),l='function'==typeof i.default&&'symbol'==typeof s.default?function(e){return typeof e}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':typeof e};t.default='function'==typeof i.default&&'symbol'===l(s.default)?function(e){return'undefined'==typeof e?'undefined':l(e)}:function(e){return e&&'function'==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?'symbol':'undefined'==typeof e?'undefined':l(e)}},function(e){var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0 {\n event.preventDefault();\n event.dataTransfer.dropEffect = \'copy\'; // \u663E\u793A\u590D\u5236\u6548\u679C\n });\n window.addEventListener(\'drop\', (event) => {\n event.preventDefault();\n const files = event.dataTransfer.files;\n if (files.length > 0) {\n ipcRenderer.send(\'files-dropped\', Array.from(files).map(file => file.path));\n }\n });\n ')}),O.webContents.on('did-fail-load',function(){}),O.on('closed',function(){O=null}),O.on('close',function(t){t.preventDefault(),a.dialog.showMessageBox(O,{type:'warning',title:'\u63D0\u793A',message:'\u662F\u5426\u786E\u8BA4\u9000\u51FA\u7CFB\u7EDF?',buttons:['cancel','ok']}).then(function(e){e.response&&(O=null,Object(d.closeChild)(),a.app.exit())})}),a.Menu.setApplicationMenu(null),!1,a.globalShortcut.register('CommandOrControl+f5',function(){O.reload(),O.webContents.once('did-finish-load',function(){setTimeout(function(){O&&!O.isDestroyed()&&(console.log('\u53D1\u9001\u64AD\u653E\u89C6\u9891\u6D88\u606F'),O.webContents.send('start-login-video'))},500)})}),console.log(O.WebPreferences);var t=!0;a.globalShortcut.register('CommandOrControl+f12',function(){O.openDevTools(t),t=!t})},1e3)}function s(){return O}Object.defineProperty(t,'__esModule',{value:!0}),o.d(t,'getmainWindow',function(){return s});var a=o(18),i=o.n(a),l=o(76),p=o.n(l),d=o(52),c=o.n(d),u=o(53),f=o(81),_=o.n(f),g=o(82),h=o(164),y=o.n(h),m=o(9),x=o.n(m),b=o(74),v=o(165),S=o(26),E=o(8);process.env.ELECTRON_DISABLE_SECURITY_WARNINGS=!0,global.__static=o(9).join(__dirname,'/static').replace(/\\/g,'\\\\');var O=void 0,P=void 0,T='file://'+__dirname+'/index.html',w=!a.app.isPackaged,j=m.join(Object(S.a)(),'resources/app.asar/dist/electron/static/logo_ico/81.png'),k=a.app.requestSingleInstanceLock();k?(a.app.on('ready',n),a.app.isReady(),a.app.on('window-all-closed',function(){'darwin'!==process.platform&&a.app.quit()}),a.app.on('activate',function(){null===O&&n()}),a.app.on('second-instance',function(){O&&(O.isMinimized()&&O.restore(),O.focus())}),a.app.on('before-quit',function(){Object(d.closeChild)()}),global.sharedObject={hasService:!1}):a.app.quit()},function(e,t,o){function r(){var e=process.cwd(),t=process.execPath.replaceAll('\\','/').split('/');return t.pop(),e=t.join('/'),e}var n=o(13),s=n.exec,a=n.spawn,i=o(8),l=o(9),p=o(14),d=null;e.exports={runProcess:function(e){var t=1p;)r(l,o=t[p++])&&(~s(i,o)||i.push(o));return i}},function(e,t,o){var r=o(22);e.exports=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==r(e)?e.split(''):Object(e)}},function(e,t,o){var r=o(1).document;e.exports=r&&r.documentElement},function(e,t,o){var r=o(12),n=o(30),s=o(40)('IE_PROTO'),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=n(e),r(e,s)?e[s]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,o){var r=o(22);e.exports=Array.isArray||function(e){return'Array'==r(e)}},function(e,t,o){var r=o(58),n=o(42).concat('length','prototype');t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},function(e,t,o){var r=o(46),n=o(27),s=o(17),a=o(37),i=o(12),l=o(56),p=Object.getOwnPropertyDescriptor;t.f=o(7)?p:function(e,t){if(e=s(e),t=a(t,!0),l)try{return p(e,t)}catch(t){}return i(e,t)?n(!r.f.call(e,t),e[t]):void 0}},function(e,t,o){var r=o(31),n=o(2)('iterator'),s=o(16);e.exports=o(0).getIteratorMethod=function(e){if(e!=void 0)return e[n]||e['@@iterator']||s[r(e)]}},function(e,t,o){'use strict';var r=o(1),n=o(0),s=o(5),a=o(7),i=o(2)('species');e.exports=function(e){var t='function'==typeof n[e]?n[e]:r[e];a&&t&&!t[i]&&s.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,o){var r=o(4);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError('Incompatible receiver, '+t+' required!');return e}},function(e,t,o){var r=o(6),n=o(21),s=o(2)('species');e.exports=function(e,t){var o,a=r(e).constructor;return a===void 0||(o=r(a)[s])==void 0?t:n(o)}},function(e,t,o){var r,n,s,a=o(10),i=o(126),l=o(60),p=o(36),d=o(1),c=d.process,u=d.setImmediate,f=d.clearImmediate,_=d.MessageChannel,g=d.Dispatch,h=0,y={},m='onreadystatechange',x=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},b=function(e){x.call(e.data)};u&&f||(u=function(e){for(var t=[],o=1;arguments.length>o;)t.push(arguments[o++]);return y[++h]=function(){i('function'==typeof e?e:Function(e),t)},r(h),h},f=function(e){delete y[e]},'process'==o(22)(c)?r=function(e){c.nextTick(a(x,e,1))}:g&&g.now?r=function(e){g.now(a(x,e,1))}:_?(n=new _,s=n.port2,n.port1.onmessage=b,r=a(s.postMessage,s,1)):d.addEventListener&&'function'==typeof postMessage&&!d.importScripts?(r=function(e){d.postMessage(e+'','*')},d.addEventListener('message',b,!1)):m in p('script')?r=function(e){l.appendChild(p('script'))[m]=function(){l.removeChild(this),x.call(e)}}:r=function(e){setTimeout(a(x,e,1),0)}),e.exports={set:u,clear:f}},function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,o){var r=o(6),n=o(4),s=o(50);e.exports=function(e,t){if(r(e),n(t)&&t.constructor===e)return t;var o=s.f(e),a=o.resolve;return a(t),o.promise}},function(e,t,o){'use strict';function r(){_&&(_.close(),_=null);var e=a().port;_=f.createSocket('udp4'),console.log('udp\u7684port',e),console.log('udp\u7684server',_),_.on('listening',function(){var e=_.address();console.log('server running '+e.address+':'+e.port),Object(u.getmainWindow)().webContents.send('udpServerSuccess','udp\u670D\u52A1\u521B\u5EFA\u6210\u529F')}),_.on('message',function(e,t){console.log('udp server got '+e+' from '+t.address+':'+t.port);try{var o=e.toString();var r=o.slice(0,-3),n=o.split(r)[1];Object(u.getmainWindow)().webContents.send(y+'_str',r,n)}catch(e){console.log(e)}}),_.on('error',function(e){console.log('server error',e),Object(u.getmainWindow)().webContents.send('udpServerError','udp\u670D\u52A1\u521B\u5EFA\u5931\u8D25\uFF0C\u5C1D\u8BD5\u66F4\u6362\u7AEF\u53E3')}),console.log('port ',e),_.bind(e),n('A000g #')}function n(e){var t=void 0,o=h.get('sandTable_udp_client_port')||6e4,r=h.get('sandTable_udp_client_host');return void _.send(e,o,r);var n=e.toString().split(''),s=+n.pop()}function s(e){h.set(y,e),r()}function a(){var e=6e3,t=h.get(y);t?e=t:h.set(y,e);var o=i();return console.log('GetUdpServerPort',e),{port:e,host:o}}function i(){var e=o(8),t=e.networkInterfaces(),r='';for(var n in console.log(t),t)if(-1s||s>=i?e?'':void 0:(p=d.charCodeAt(s),55296>p||56319(a=d.charCodeAt(s+1))||57343p;)r.f(e,o=a[p++],t[o]);return e}},function(e,t,o){var r=o(17),n=o(39),s=o(89);e.exports=function(e){return function(t,o,a){var i,l=r(t),p=n(l.length),d=s(a,p);if(e&&o!=o){for(;p>d;)if(i=l[d++],i!=i)return!0;}else for(;p>d;d++)if((e||d in l)&&l[d]===o)return e||d||0;return!e&&-1}}},function(e,t,o){var r=o(33),n=Math.max,s=Math.min;e.exports=function(e,t){return e=r(e),0>e?n(e+t,0):s(e,t)}},function(e,t,o){'use strict';var r=o(91),n=o(62),s=o(16),a=o(17);e.exports=o(35)(Array,'Array',function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,n(1)):'keys'==t?n(0,o):'values'==t?n(0,e[o]):n(0,[o,e[o]])},'values'),s.Arguments=s.Array,r('keys'),r('values'),r('entries')},function(e){e.exports=function(){}},function(e,t,o){e.exports={default:o(93),__esModule:!0}},function(e,t,o){o(94),o(47),o(97),o(98),e.exports=o(0).Symbol},function(e,t,o){'use strict';var r=o(1),n=o(12),s=o(7),a=o(3),i=o(57),l=o(44).KEY,p=o(15),d=o(41),c=o(23),u=o(29),f=o(2),_=o(43),g=o(45),h=o(95),y=o(64),m=o(6),x=o(4),b=o(30),v=o(17),S=o(37),E=o(27),O=o(28),P=o(96),T=o(66),w=o(63),M=o(5),R=o(38),I=T.f,A=M.f,D=P.f,C=r.Symbol,F=r.JSON,N=F&&F.stringify,L='prototype',Y=f('_hidden'),H=f('toPrimitive'),K={}.propertyIsEnumerable,W=d('symbol-registry'),G=d('symbols'),U=d('op-symbols'),z=Object[L],B='function'==typeof C&&!!w.f,V=r.QObject,J=!V||!V[L]||!V[L].findChild,q=s&&p(function(){return 7!=O(A({},'a',{get:function(){return A(this,'a',{value:7}).a}})).a})?function(e,t,o){var r=I(z,t);r&&delete z[t],A(e,t,o),r&&e!==z&&A(z,t,r)}:A,Z=function(e){var t=G[e]=O(C[L]);return t._k=e,t},X=B&&'symbol'==typeof C.iterator?function(e){return'symbol'==typeof e}:function(e){return e instanceof C},Q=function(e,t,o){return e===z&&Q(U,t,o),m(e),t=S(t,!0),m(o),n(G,t)?(o.enumerable?(n(e,Y)&&e[Y][t]&&(e[Y][t]=!1),o=O(o,{enumerable:E(0,!1)})):(!n(e,Y)&&A(e,Y,E(1,{})),e[Y][t]=!0),q(e,t,o)):A(e,t,o)},$=function(e,t){m(e);for(var o,r=h(t=v(t)),n=0,s=r.length;s>n;)Q(e,o=r[n++],t[o]);return e},ee=function(e){var t=K.call(this,e=S(e,!0));return this===z&&n(G,e)&&!n(U,e)?!1:t||!n(this,e)||!n(G,e)||n(this,Y)&&this[Y][e]?t:!0},te=function(e,t){if(e=v(e),t=S(t,!0),e!==z||!n(G,t)||n(U,t)){var o=I(e,t);return o&&n(G,t)&&!(n(e,Y)&&e[Y][t])&&(o.enumerable=!0),o}},oe=function(e){for(var t,o=D(v(e)),r=[],s=0;o.length>s;)n(G,t=o[s++])||t==Y||t==l||r.push(t);return r},re=function(e){for(var t,o=e===z,r=D(o?U:v(e)),s=[],a=0;r.length>a;)n(G,t=r[a++])&&(!o||n(z,t))&&s.push(G[t]);return s};B||(C=function(){if(this instanceof C)throw TypeError('Symbol is not a constructor!');var e=u(0se;)f(ne[se++]);for(var j=R(f.store),ae=0;j.length>ae;)g(j[ae++]);a(a.S+a.F*!B,'Symbol',{for:function(e){return n(W,e+='')?W[e]:W[e]=C(e)},keyFor:function(e){if(!X(e))throw TypeError(e+' is not a symbol!');for(var t in W)if(W[t]===e)return t},useSetter:function(){J=!0},useSimple:function(){J=!1}}),a(a.S+a.F*!B,'Object',{create:function(e,t){return t===void 0?O(e):$(O(e),t)},defineProperty:Q,defineProperties:$,getOwnPropertyDescriptor:te,getOwnPropertyNames:oe,getOwnPropertySymbols:re});var k=p(function(){w.f(1)});a(a.S+a.F*k,'Object',{getOwnPropertySymbols:function(e){return w.f(b(e))}}),F&&a(a.S+a.F*(!B||p(function(){var e=C();return'[null]'!=N([e])||'{}'!=N({a:e})||'{}'!=N(Object(e))})),'JSON',{stringify:function(e){for(var t,o,r=[e],n=1;arguments.length>n;)r.push(arguments[n++]);if(o=t=r[1],(x(t)||void 0!==e)&&!X(e))return y(t)||(t=function(e,t){if('function'==typeof o&&(t=o.call(this,e,t)),!X(t))return t}),r[1]=t,N.apply(F,r)}}),C[L][H]||o(11)(C[L],H,C[L].valueOf),c(C,'Symbol'),c(Math,'Math',!0),c(r.JSON,'JSON',!0)},function(e,t,o){var r=o(38),n=o(63),s=o(46);e.exports=function(e){var t=r(e),o=n.f;if(o)for(var a,l=o(e),p=s.f,d=0;l.length>d;)p.call(e,a=l[d++])&&t.push(a);return t}},function(e,t,o){var r=o(17),n=o(65).f,s={}.toString,a='object'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(e){try{return n(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&'[object Window]'==s.call(e)?i(e):n(r(e))}},function(e,t,o){o(45)('asyncIterator')},function(e,t,o){o(45)('observable')},function(e,t,o){e.exports={default:o(100),__esModule:!0}},function(e,t,o){o(47),o(19),o(24),o(101),o(109),o(112),o(114),e.exports=o(0).Map},function(e,t,o){'use strict';var r=o(102),n=o(69),s='Map';e.exports=o(105)(s,function(e){return function(){return e(this,0m;m++)if((5==e||p||m in h)&&(u=h[m],_=y(u,m,g),e))if(o)x[m]=_;else if(_)switch(e){case 3:return!0;case 5:return u;case 6:return m;case 2:x.push(u);}else if(l)return!1;return p?-1:3==e||l?l:x}}},function(e,t,o){var r=o(108);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,o){var r=o(4),n=o(64),s=o(2)('species');e.exports=function(e){var t;return n(e)&&(t=e.constructor,'function'==typeof t&&(t===Array||n(t.prototype))&&(t=void 0),r(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?Array:t}},function(e,t,o){var r=o(3);r(r.P+r.R,'Map',{toJSON:o(110)('Map')})},function(e,t,o){var r=o(31),n=o(111);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+'#toJSON isn\'t generic');return n(this)}}},function(e,t,o){var r=o(25);e.exports=function(e,t){var o=[];return r(e,!1,o.push,o,t),o}},function(e,t,o){o(113)('Map')},function(e,t,o){'use strict';var r=o(3);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,o){o(115)('Map')},function(e,t,o){'use strict';var r=o(3),s=o(21),a=o(10),i=o(25);e.exports=function(e){r(r.S,e,{from:function(e){var t,o,r,n,l=arguments[1];return(s(this),t=void 0!==l,t&&s(l),void 0==e)?new this:(o=[],t?(r=0,n=a(l,arguments[2],2),i(e,!1,function(e){o.push(n(e,r++))})):i(e,!1,o.push,o),new this(o))}})}},function(e,t,o){'use strict';function r(e,t){console.log(e);try{var o=s.exec(e,{cwd:n.join(process.cwd(),'convert')});o.stdout.on('data',function(){}),o.stderr.on('data',function(){console.log('stderr_________________________')}),o.on('close',function(e){console.log('out code_______________________\uFF1A'+e),t()})}catch(t){console.log(t)}}t.c=function(e,t,o){r('start '+a+' -f osgb -i '+e+' -o '+t,o)},t.d=function(e,t,o){r('start '+a+' -f shape -i '+e+' -o '+t+' --height height',o)},t.a=function(e,t,o){r('start '+a+' -f b3dm -i '+e+' -o '+t,o)},t.b=function(e,t,o){try{var r=s.exec('start '+l+' -i '+e+' -o '+t,{cwd:n.join(process.cwd(),'collada2gltf')});r.on('close',function(){o()})}catch(t){console.log(t)}};var n=o(9),s=o(13),a=n.join(process.cwd(),'/convert/_3dtile.exe'),l=n.join(process.cwd(),'/collada2gltf/COLLADA2GLTF-bin.exe')},function(e,t,o){'use strict';t.a=function(){this.obj2gltf=function(e){s(e+'.obj').then(function(t){var o=Buffer.from(n()(t));a.writeFileSync(e+'.gltf',o)})},this.obj2glb=function(e,t,o){s(e,{binary:!0}).then(function(e){a.writeFileSync(t,e),o()})}};var r=o(118),n=o.n(r),s=o(120),a=o(14),i=o(121),l=i.processGltf},function(e,t,o){e.exports={default:o(119),__esModule:!0}},function(e,t,o){var r=o(0),n=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(){return n.stringify.apply(n,arguments)}},function(e){e.exports=require('obj2gltf')},function(e){e.exports=require('gltf-pipeline')},function(e,t,o){'use strict';t.a=function(){function e(e,t){var o=2')))})}catch(e){n(e)}})}this.fbx2glb=function(t,o,r){e(t,o,['--khr-materials-unlit']).then(function(e){r(e)},function(e){r(e)})}};var r=o(123),n=o.n(r),s=o(13),a=o(14),i=o(8),l=o(9),p=o(132);console.log(l.join(process.cwd(),'convert/FBX2glTF.exe'))},function(e,t,o){e.exports={default:o(124),__esModule:!0}},function(e,t,o){o(47),o(19),o(24),o(125),o(130),o(131),e.exports=o(0).Promise},function(e,t,o){'use strict';var r,n,s,a,i=o(20),l=o(1),p=o(10),d=o(31),c=o(3),u=o(4),f=o(21),_=o(49),g=o(25),h=o(70),y=o(71).set,m=o(127)(),x=o(50),b=o(72),v=o(128),S=o(73),E='Promise',O=l.TypeError,P=l.process,T=P&&P.versions,w=T&&T.v8||'',j=l[E],k='process'==d(P),M=function(){},R=n=x.f,I=!!function(){try{var e=j.resolve(1),t=(e.constructor={})[o(2)('species')]=function(e){e(M,M)};return(k||'function'==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==w.indexOf('6.6')&&-1===v.indexOf('Chrome/66')}catch(t){}}(),A=function(e){var t;return u(e)&&'function'==typeof(t=e.then)&&t},D=function(e,t){if(!e._n){e._n=!0;var o=e._c;m(function(){for(var r=e._v,n=1==e._s,s=0,a=function(t){var o,s,a,i=n?t.ok:t.fail,l=t.resolve,p=t.reject,d=t.domain;try{i?(!n&&(2==e._h&&N(e),e._h=1),!0===i?o=r:(d&&d.enter(),o=i(r),d&&(d.exit(),a=!0)),o===t.promise?p(O('Promise-chain cycle')):(s=A(o))?s.call(o,l,p):l(o)):p(r)}catch(t){d&&!a&&d.exit(),p(t)}};o.length>s;)a(o[s++]);e._c=[],e._n=!1,t&&!e._h&&C(e)})}},C=function(e){y.call(l,function(){var t,o,r,n=e._v,s=F(e);if(s&&(t=b(function(){k?P.emit('unhandledRejection',n,e):(o=l.onunhandledrejection)?o({promise:e,reason:n}):(r=l.console)&&r.error&&r.error('Unhandled promise rejection',n)}),e._h=k||F(e)?2:1),e._a=void 0,s&&t.e)throw t.v})},F=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){y.call(l,function(){var t;k?P.emit('rejectionHandled',e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},L=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),D(t,!0))},Y=function(e){var t,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===e)throw O('Promise can\'t be resolved itself');(t=A(e))?m(function(){var r={_w:o,_d:!1};try{t.call(e,p(Y,r,1),p(L,r,1))}catch(t){L.call(r,t)}}):(o._v=e,o._s=1,D(o,!1))}catch(t){L.call({_w:o,_d:!1},t)}}};I||(j=function(e){_(this,j,E,'_h'),f(e),r.call(this);try{e(p(Y,this,1),p(L,this,1))}catch(e){L.call(this,e)}},r=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=o(48)(j.prototype,{then:function(e,t){var o=R(h(this,j));return o.ok='function'!=typeof e||e,o.fail='function'==typeof t&&t,o.domain=k?P.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&D(this,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),s=function(){var e=new r;this.promise=e,this.resolve=p(Y,e,1),this.reject=p(L,e,1)},x.f=R=function(e){return e===j||e===a?new s(e):n(e)}),c(c.G+c.W+c.F*!I,{Promise:j}),o(23)(j,E),o(68)(E),a=o(0)[E],c(c.S+c.F*!I,E,{reject:function(e){var t=R(this),o=t.reject;return o(e),t.promise}}),c(c.S+c.F*(i||!I),E,{resolve:function(e){return S(i&&this===a?j:this,e)}}),c(c.S+c.F*!(I&&o(129)(function(e){j.all(e)['catch'](M)})),E,{all:function(e){var t=this,o=R(t),r=o.resolve,n=o.reject,s=b(function(){var o=[],s=0,a=1;g(e,!1,function(e){var i=s++,l=!1;o.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,o[i]=e,--a||r(o))},n)}),--a||r(o)});return s.e&&n(s.v),o.promise},race:function(e){var t=this,o=R(t),r=o.reject,n=b(function(){g(e,!1,function(e){t.resolve(e).then(o.resolve,r)})});return n.e&&r(n.v),o.promise}})},function(e){e.exports=function(e,t,o){var r=o===void 0;switch(t.length){case 0:return r?e():e.call(o);case 1:return r?e(t[0]):e.call(o,t[0]);case 2:return r?e(t[0],t[1]):e.call(o,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(o,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(o,t[0],t[1],t[2],t[3]);}return e.apply(o,t)}},function(e,t,o){var r=o(1),n=o(71).set,s=r.MutationObserver||r.WebKitMutationObserver,a=r.process,i=r.Promise,l='process'==o(22)(a);e.exports=function(){var t,o,p,e=function(){var e,r;for(l&&(e=a.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(r){throw t?p():o=void 0,r}}o=void 0,e&&e.enter()};if(l)p=function(){a.nextTick(e)};else if(s&&!(r.navigator&&r.navigator.standalone)){var d=!0,c=document.createTextNode('');new s(e).observe(c,{characterData:!0}),p=function(){c.data=d=!d}}else if(i&&i.resolve){var u=i.resolve(void 0);p=function(){u.then(e)}}else p=function(){n.call(r,e)};return function(e){var r={fn:e,next:void 0};o&&(o.next=r),t||(t=r,p()),o=r}}},function(e,t,o){var r=o(1),n=r.navigator;e.exports=n&&n.userAgent||''},function(e,t,o){var r=o(2)('iterator'),n=!1;try{var s=[7][r]();s['return']=function(){n=!0},Array.from(s,function(){throw 2})}catch(t){}e.exports=function(e,t){if(!t&&!n)return!1;var o=!1;try{var s=[7],a=s[r]();a.next=function(){return{done:o=!0}},s[r]=function(){return a},e(s)}catch(t){}return o}},function(e,t,o){'use strict';var r=o(3),n=o(0),s=o(1),a=o(70),i=o(73);r(r.P+r.R,'Promise',{finally:function(t){var o=a(this,n.Promise||s.Promise),e='function'==typeof t;return this.then(e?function(e){return i(o,t()).then(function(){return e})}:t,e?function(r){return i(o,t()).then(function(){throw r})}:t)}})},function(e,t,o){'use strict';var r=o(3),n=o(50),s=o(72);r(r.S,'Promise',{try:function(e){var t=n.f(this),o=s(e);return(o.e?t.reject:t.resolve)(o.v),t.promise}})},function(e){e.exports=require('rimraf')},function(e,t,o){'use strict';o.d(t,'a',function(){return j});var r=o(134),n=o.n(r),s=o(138),a=o.n(s),i=o(142),l=o.n(i),p=o(143),d=o.n(p),c=o(144),u=o.n(c),f=o(9),_=o.n(f),g=o(14),h=o.n(g),y=o(26),m=o(8),x=m.platform(),b=m.arch(),v=o(152),S=o(13),E=S.spawn,O=o(153),P=_.a.join(Object(y.a)(),'ffplay'),T=function(e){function t(){return l()(this,t),d()(this,(t.__proto__||a()(t)).apply(this,arguments))}return u()(t,e),t}(O),w=new T,j=function(){function e(){0=11.0.1" + } + }, + "@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "optional": true + }, + "@types/verror": { + "version": "1.10.11", + "resolved": "https://registry.npmjs.org/@types/verror/-/verror-1.10.11.tgz", + "integrity": "sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==", + "dev": true, + "optional": true + }, + "@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "@xmldom/xmldom": { + "version": "0.8.11", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.11.tgz", + "integrity": "sha512-cQzWCtO6C8TQiYl1ruKNn2U6Ao4o4WBBcbL61yJl84x+j5sOWWFU9X7DpND8XZG3daDppSsigMdfAIl2upQBRw==", + "dev": true + }, + "@zip.js/zip.js": { + "version": "2.8.11", + "resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.8.11.tgz", + "integrity": "sha512-0fztsk/0ryJ+2PPr9EyXS5/Co7OK8q3zY/xOoozEWaUsL5x+C0cyZ4YyMuUffOO2Dx/rAdq4JMPqW0VUtm+vzA==" + }, + "accepts": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + } + } + }, + "accessibility-developer-tools": { + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/accessibility-developer-tools/-/accessibility-developer-tools-2.12.0.tgz", + "integrity": "sha512-ltexLD/Bzwr1tDskQQFi88L4akbn8zFLIFIc00vFkH3G4hNEHruuJVcJuJTeUXLxms9dSon+cHSCmfFThnowFQ==", + "dev": true + }, + "acorn": { + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "dev": true + }, + "acorn-dynamic-import": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", + "integrity": "sha512-GKp5tQ8h0KMPWIYGRHHXI1s5tUpZixZ3IHF2jAu42wSCf6In/G873s6/y4DdKdhWvzhu1T6mE1JgvnhAKqyYYQ==", + "dev": true, + "requires": { + "acorn": "^4.0.3" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha512-fu2ygVGuMmlzG8ZeRJ0bvR41nsAkxxhbyk8bZ1SS521Z7vmgJFTQQlfz/Mp/nJexGBz+v8sC9bM6+lNgskt4Ug==", + "dev": true + } + } + }, + "acorn-jsx": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", + "integrity": "sha512-AU7pnZkguthwBjKgCg6998ByQNIMjbuDQZ8bb78QAFZwPfmKia8AIzgY/gWgqCjnht8JLdXmB4YxA0KaV60ncQ==", + "dev": true, + "requires": { + "acorn": "^3.0.4" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "integrity": "sha512-OLUyIIZ7mF5oaAUT1w0TFqQS81q3saT46x8t7ukpPjMNk+nbs4ZHhs7ToV8EWnLYLepjETXd4XaCE4uxkMeqUw==", + "dev": true + } + } + }, + "adler-32": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.3.1.tgz", + "integrity": "sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A==" + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "requires": { + "debug": "4" + } + }, + "ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "requires": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + } + }, + "ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "requires": { + "ajv": "^8.0.0" + } + }, + "ajv-keywords": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", + "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha512-GrTZLRpmp6wIC2ztrWW9MjjTgSKccffgFagbNDOX95/dcjEcYZibYTeaOntySQLcdw1ztBoFkviiUvTMbb9MYg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha512-0FcBfdcmaumGPQ0qPn7Q5qTgz/ooXgIyp1rf8ik5bGX8mpE2YHjC0P/eyQvxu1GURYQgq9ozf2mteQ5ZD9YiyQ==", + "dev": true + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "dev": true + }, + "ansi-align": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", + "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "dev": true, + "requires": { + "string-width": "^4.1.0" + } + }, + "ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true + }, + "ansi-html": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", + "integrity": "sha512-JoAxEa1DfP9m2xfB/y2r/aKcwXNlltr4+0QSBC4TrLfcxyvepX2Pv0t/xpgGV5bGsDzCYV8SzjWgyCW0T9yYbA==", + "dev": true + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "optional": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "app-builder-bin": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-3.7.1.tgz", + "integrity": "sha512-ql93vEUq6WsstGXD+SBLSIQw6SNnhbDEM0swzgugytMxLp3rT24Ag/jcC80ZHxiPRTdew1niuR7P3/FCrDqIjw==", + "dev": true + }, + "app-builder-lib": { + "version": "22.14.13", + "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-22.14.13.tgz", + "integrity": "sha512-SufmrtxU+D0Tn948fjEwAOlCN9757UXLkzzTWXMwZKR/5hisvgqeeBepWfphMIE6OkDGz0fbzEhL1P2Pty4XMg==", + "dev": true, + "requires": { + "7zip-bin": "~5.1.1", + "@develar/schema-utils": "~2.6.5", + "@electron/universal": "1.0.5", + "@malept/flatpak-bundler": "^0.4.0", + "async-exit-hook": "^2.0.1", + "bluebird-lst": "^1.0.9", + "builder-util": "22.14.13", + "builder-util-runtime": "8.9.2", + "chromium-pickle-js": "^0.2.0", + "debug": "^4.3.2", + "ejs": "^3.1.6", + "electron-osx-sign": "^0.5.0", + "electron-publish": "22.14.13", + "form-data": "^4.0.0", + "fs-extra": "^10.0.0", + "hosted-git-info": "^4.0.2", + "is-ci": "^3.0.0", + "isbinaryfile": "^4.0.8", + "js-yaml": "^4.1.0", + "lazy-val": "^1.0.5", + "minimatch": "^3.0.4", + "read-config-file": "6.2.0", + "sanitize-filename": "^1.6.3", + "semver": "^7.3.5", + "temp-file": "^3.4.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + } + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "archiver": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.2.tgz", + "integrity": "sha512-+25nxyyznAXF7Nef3y0EbBeqmGZgeN/BxHX29Rs39djAfaFalmQ89SE6CWyDCHzGL0yt/ycBtNOmGTW0FyGWNw==", + "requires": { + "archiver-utils": "^2.1.0", + "async": "^3.2.4", + "buffer-crc32": "^0.2.1", + "readable-stream": "^3.6.0", + "readdir-glob": "^1.1.2", + "tar-stream": "^2.2.0", + "zip-stream": "^4.1.0" + } + }, + "archiver-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-2.1.0.tgz", + "integrity": "sha512-bEL/yUb/fNNiNTuUz979Z0Yg5L+LzLxGJz8x79lYmR54fmTIb6ob/hNQgkQnIUDWIFjZVQwl9Xs356I6BAMHfw==", + "requires": { + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^2.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==" + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==" + }, + "array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "requires": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + } + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" + }, + "array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + } + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==" + }, + "arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "requires": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + } + }, + "asar": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/asar/-/asar-3.2.0.tgz", + "integrity": "sha512-COdw2ZQvKdFGFxXwX3oYh2/sOsJWJegrdJCGxnN4MZ7IULgRBp9P6665aqj9z1v9VwP4oP1hRBojRDQ//IGgAg==", + "dev": true, + "requires": { + "@types/glob": "^7.1.1", + "chromium-pickle-js": "^0.2.0", + "commander": "^5.0.0", + "glob": "^7.1.6", + "minimatch": "^3.0.4" + }, + "dependencies": { + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true + } + } + }, + "asn1.js": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "assert": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.1.tgz", + "integrity": "sha512-zzw1uCAgLbsKwBfFc8CX78DDg+xZeBksSO3vwVIDDN5i94eOrPsSSyiVhmsSABFDM/OcpE2aagCat9dnWQLG1A==", + "dev": true, + "requires": { + "object.assign": "^4.1.4", + "util": "^0.10.4" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + } + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "dev": true, + "optional": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==" + }, + "ast-types": { + "version": "0.9.6", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz", + "integrity": "sha512-qEdtR2UH78yyHX/AUNfXmJTlM48XoFZKBdwi1nzkI1mJL21cmbu0cvjxjpkXJ5NENMq42H+hNs8VLJcqXLerBQ==", + "dev": true + }, + "async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" + }, + "async-each": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.6.tgz", + "integrity": "sha512-c646jH1avxr+aVpndVMeAfYw7wAa6idufrlN3LPA4PmKS0QEGp6PIC9nwz0WQkkvBGAMEki3pFdtxaF39J9vvg==", + "dev": true + }, + "async-exit-hook": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/async-exit-hook/-/async-exit-hook-2.0.1.tgz", + "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==", + "dev": true + }, + "async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==" + }, + "async-validator": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz", + "integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==", + "requires": { + "babel-runtime": "6.x" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + }, + "atomically": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz", + "integrity": "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==" + }, + "autolinker": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-4.1.5.tgz", + "integrity": "sha512-vEfYZPmvVOIuE567XBVCsx8SBgOYtjB2+S1iAaJ+HgH+DNjAcrHem2hmAeC9yaNGWayicv4yR+9UaJlkF3pvtw==", + "requires": { + "tslib": "^2.8.1" + } + }, + "autoprefixer": { + "version": "6.7.7", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", + "integrity": "sha512-WKExI/eSGgGAkWAO+wMVdFObZV7hQen54UpD1kCCTN3tvlL3W1jL4+lPP/M7MwoP7Q4RHzKtO3JQ4HxYEcd+xQ==", + "dev": true, + "requires": { + "browserslist": "^1.7.6", + "caniuse-db": "^1.0.30000634", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "postcss": "^5.2.16", + "postcss-value-parser": "^3.2.3" + }, + "dependencies": { + "browserslist": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", + "integrity": "sha512-qHJblDE2bXVRYzuDetv/wAeHOJyO97+9wxC1cdCtyzgNuSozOyRCiiLaCR1f71AN66lQdVVBipWm63V+a7bPOw==", + "dev": true, + "requires": { + "caniuse-db": "^1.0.30000639", + "electron-to-chromium": "^1.2.7" + } + } + } + }, + "available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "requires": { + "possible-typed-array-names": "^1.0.0" + } + }, + "axios": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.17.1.tgz", + "integrity": "sha512-mZzWRyJeJ0rtK7e1/6iYBUzmeXjzei+1h1IvbedyU0sB52++tU5AU6r6TLXpwNVR0ebXIpvTVW+9CpWNyc1n8w==", + "requires": { + "follow-redirects": "^1.2.5", + "is-buffer": "^1.1.5" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g==", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha512-RjTcuD4xjtthQkaWH7dFlH85L+QaVtSoOyGdZ3g6HFhS9dFNDfLyqgm2NFe2X6cQpeFmt0452FJjFG5UameExg==", + "dev": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + }, + "dependencies": { + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "babel-eslint": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-7.2.3.tgz", + "integrity": "sha512-i2yKOhjgwUbUrJ8oJm6QqRzltIoFahGNPZ0HF22lUN4H1DW03JQyJm7WSv+I1LURQWjDNhVqFo04acYa07rhOQ==", + "dev": true, + "requires": { + "babel-code-frame": "^6.22.0", + "babel-traverse": "^6.23.1", + "babel-types": "^6.23.0", + "babylon": "^6.17.0" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha512-Mke0DA0QjUWuJlhsE0ZPPhYiJkRap642SmI/4ztCFaUs6V2AiH1sfecc+57NgaryfAA2VR3v6O+CSjC1jZJKOA==", + "dev": true + } + } + }, + "babel-helper-bindify-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", + "integrity": "sha512-TYX2QQATKA6Wssp6j7jqlw4QLmABDN1olRdEHndYvBXdaXM5dcx6j5rN0+nd+aVL+Th40fAEYvvw/Xxd/LETuQ==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha512-gCtfYORSG1fUMX4kKraymq607FWgMWg+j42IFPc18kFQEsmtaibP4UrqsXt8FlEJle25HUd4tsoDR7H2wDhe9Q==", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha512-RL8n2NiEj+kKztlrVJM9JT1cXzzAdvWFh76xh/H1I4nKwunzE4INBXn8ieCZ+wh4zWszZk7NBS1s/8HR5jDkzQ==", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-define-map": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", + "integrity": "sha512-bHkmjcC9lM1kmZcVpA5t2om2nzT/xiZpo6TJq7UlZ3wqKfzia4veeXbIhKvJXAMzhhEBd3cR1IElL5AenWEUpA==", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-helper-evaluate-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/babel-helper-evaluate-path/-/babel-helper-evaluate-path-0.1.0.tgz", + "integrity": "sha512-uYUt1Nt6etJcanj62vbtlKNTtQWTir4UgSYZnm2RKHX2wNChecVdHBsIIlHZzMhFrpH1L8UKMWTdJCKNbbWR6A==", + "dev": true + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha512-qe5csbhbvq6ccry9G7tkXbzNtcDiH4r51rrPUbwwoTzZ18AqxWYRZT6AOmxrpxKnQBW0pYlBI/8vh73Z//78nQ==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-explode-class": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", + "integrity": "sha512-SFbWewr0/0U4AiRzsHqwsbOQeLXVa9T1ELdqEa2efcQB5KopTnunAqoj07TuHlN2lfTQNPGO/rJR4FMln5fVcA==", + "dev": true, + "requires": { + "babel-helper-bindify-decorators": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-flip-expressions": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-helper-flip-expressions/-/babel-helper-flip-expressions-0.1.2.tgz", + "integrity": "sha512-n43Vj4t2qos11252JZlgRnI1ow0/eWZ1f+WaFfuTVNwXm0ElK8rKTwZmfRuIywkHSKyiIkn7GeDngQQKKeJKeQ==", + "dev": true + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha512-Oo6+e2iX+o9eVvJ9Y5eKL5iryeRdsIkwRYheCuhYdVHsdEQysbc2z2QkqCLIYnNxkT5Ss3ggrHdXiDI7Dhrn4Q==", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha512-WfgKFX6swFB1jS2vo+DwivRN4NB8XUdM3ij0Y1gnC21y1tdBoe6xjVnd7NSI6alv+gZXCtJqvrTeMW3fR/c0ng==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha512-zAYl3tqerLItvG5cKYw7f1SpvIxS9zi7ohyGHaI9cgDUjAT6YcY9jIEH5CstetP5wHIVSceXwNS7Z5BpJg+rOw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-is-nodes-equiv": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/babel-helper-is-nodes-equiv/-/babel-helper-is-nodes-equiv-0.0.1.tgz", + "integrity": "sha512-ri/nsMFVRqXn7IyT5qW4/hIAGQxuYUFHa3qsxmPtbk6spZQcYlyDogfVpNm2XYOslH/ULS4VEJGUqQX5u7ACQw==", + "dev": true + }, + "babel-helper-is-void-0": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-helper-is-void-0/-/babel-helper-is-void-0-0.1.1.tgz", + "integrity": "sha512-b2oNq04KPmSNNN0Iyq3/omLItSVdbq4RBysMYirwZ5Wg8esqAzze8rfmZl5U6aT163Bk0wKF15s9YJ1EJ2tj5A==", + "dev": true + }, + "babel-helper-mark-eval-scopes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-helper-mark-eval-scopes/-/babel-helper-mark-eval-scopes-0.1.1.tgz", + "integrity": "sha512-wq2wKu6Q0YyMGOQZ5zy2o8Ut40rvOCWuUkPKnjyMaQV6GVXP8S1B8VzqyJg+RxJe+e4OU80+25ola4jIfZoGSQ==", + "dev": true + }, + "babel-helper-optimise-call-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", + "integrity": "sha512-Op9IhEaxhbRT8MDXx2iNuMgciu2V8lDvYCNQbDGjdBNCjaMvyLf4wl4A3b8IgndCyQF8TwfgsQ8T3VD8aX1/pA==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha512-VlPiWmqmGJp0x0oK27Out1D+71nVVCTSdlbhIVoaBAj2lUgrNjBCRR9+llO4lTSb2O4r7PJg+RobRkhBrf6ofg==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha512-RYqaPD0mQyQIFRu7Ho5wE2yvA/5jxqCIj/Lv4BXNq23mHYu/vxikOy2JueLiBxQknwapwrJeNCesvY0ZcfnlHg==", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-remove-or-void": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-helper-remove-or-void/-/babel-helper-remove-or-void-0.1.1.tgz", + "integrity": "sha512-FBOadheNEwMkiyrB7t6p36i22Ou5PY3RfV4CxvuTzyYigUod28ULUBu5Vz+cfyDuB4SA9ojf8Q74ekf8hLi42w==", + "dev": true + }, + "babel-helper-replace-supers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", + "integrity": "sha512-sLI+u7sXJh6+ToqDr57Bv973kCepItDhMou0xCP2YPVmR1jkHSCY+p1no8xErbV1Siz5QE8qKT1WIwybSWlqjw==", + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-to-multiple-sequence-expressions": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-helper-to-multiple-sequence-expressions/-/babel-helper-to-multiple-sequence-expressions-0.1.1.tgz", + "integrity": "sha512-VhZytJ9X8apSUsWc13TWcxuAkFbn9ljR5O3ajrYm8eDiYy1dG6nzISJQErg9lax5PuDj543WAjZr51+82fOFQg==", + "dev": true + }, + "babel-helper-vue-jsx-merge-props": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz", + "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==" + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha512-n7pFrqQm44TCYvrCDb0MqabAF+JUBq+ijBvNMUxpkLjJaAu32faIexewMumrH5KLLJ1HDyT0PTEqRyAe/GwwuQ==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-loader": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.5.tgz", + "integrity": "sha512-iCHfbieL5d1LfOQeeVJEUyD9rTwBcP/fcEbRCfempxTDuqrKpu0AZjLAQHEQa3Yqyj9ORKe2iHfoj4rHLf7xpw==", + "dev": true, + "requires": { + "find-cache-dir": "^1.0.0", + "loader-utils": "^1.0.2", + "mkdirp": "^0.5.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha512-B1M5KBP29248dViEo1owyY32lk1ZSH2DaNNrXLGt8lyjjHm7pBqAdQ7VKUPR6EEDO323+OvT3MQXbCin8ooWdA==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-minify-builtins": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-builtins/-/babel-plugin-minify-builtins-0.1.3.tgz", + "integrity": "sha512-ixrxAI1ba/N045RJzWvx0rN7u8jDm+5zvXh/FQ2SF+6AzOZ8cIgU/W2b5a4yerm5JRy+R/F3YL2k2ijWvkuKRQ==", + "dev": true, + "requires": { + "babel-helper-evaluate-path": "^0.1.0" + } + }, + "babel-plugin-minify-constant-folding": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-constant-folding/-/babel-plugin-minify-constant-folding-0.1.3.tgz", + "integrity": "sha512-qCd6l/8LOeaXaiPXpsHy1eNyyuvTRtXDF6lT8ET0Xns3R+3oa8n8ofROYh5kT894CJS4AtNzcI3Ll+HDLfje1A==", + "dev": true, + "requires": { + "babel-helper-evaluate-path": "^0.1.0" + } + }, + "babel-plugin-minify-dead-code-elimination": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.1.7.tgz", + "integrity": "sha512-7I+X6fG7D4vs6GzgRUqNXo3t+C62D0+tAVw+e653UjzpepJ0fQR+hkRWTHhmtrejYWL+zIF2jdDy1URqowW4Ug==", + "dev": true, + "requires": { + "babel-helper-mark-eval-scopes": "^0.1.1", + "babel-helper-remove-or-void": "^0.1.1", + "lodash.some": "^4.6.0" + } + }, + "babel-plugin-minify-flip-comparisons": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-flip-comparisons/-/babel-plugin-minify-flip-comparisons-0.1.2.tgz", + "integrity": "sha512-IxE1BVm9QOyTIs444lgr6HzdrQH4HRnjRyyK1+HepH5OWkjy2InciaUm9zAd1LPj7v612IOmQbpP05TvToeDbw==", + "dev": true, + "requires": { + "babel-helper-is-void-0": "^0.1.1" + } + }, + "babel-plugin-minify-guarded-expressions": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-guarded-expressions/-/babel-plugin-minify-guarded-expressions-0.1.2.tgz", + "integrity": "sha512-IqKnn9EXEs/Gbh3xvF1l/taaI/ZJrcPs/DZVO3L/6D4Ao0HI2HBoilq97UuUwKz4+yZDEGeOeHMN9gJi8QYbPg==", + "dev": true, + "requires": { + "babel-helper-flip-expressions": "^0.1.2" + } + }, + "babel-plugin-minify-infinity": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-infinity/-/babel-plugin-minify-infinity-0.1.2.tgz", + "integrity": "sha512-4BA0tL1TYsndVpHVBbSE3Y77ZLcEMjfSfv2UhiJOxFxaLHSxAo4DWmXvnZkk3yBt9GPtYeEnJNuztNKa9H8pDw==", + "dev": true + }, + "babel-plugin-minify-mangle-names": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-mangle-names/-/babel-plugin-minify-mangle-names-0.1.3.tgz", + "integrity": "sha512-/us4oWavsDoQwumBs1Bfy9pXs2jK7MVaHFSziQnNhgZSMWA/r7SAjqGN2jKB96Rirk1q1Ac3IPAU5wRSIePlkw==", + "dev": true, + "requires": { + "babel-helper-mark-eval-scopes": "^0.1.1" + } + }, + "babel-plugin-minify-numeric-literals": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-numeric-literals/-/babel-plugin-minify-numeric-literals-0.1.1.tgz", + "integrity": "sha512-Nl2Luu5Y0RI66nDbzybThgc/SDOJQD4qnOyqhhEkRB7c+8e+4Sat4CoDSxkMg7MzcYmFUy8LeXCfUTw527Oaxw==", + "dev": true + }, + "babel-plugin-minify-replace": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-replace/-/babel-plugin-minify-replace-0.1.2.tgz", + "integrity": "sha512-kQ4NYNzlsxJF/rC6YC6rnHLUC01gFy4PCdTvc1rV6tQHXSDVBEDFMSLaDl7yTXevaNDINasT7CcPVISSYY4qEg==", + "dev": true + }, + "babel-plugin-minify-simplify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-simplify/-/babel-plugin-minify-simplify-0.1.2.tgz", + "integrity": "sha512-gVYVqkXZtNXk8VuWChzWeE2lulwnbmvuNWT+JzZlZJLPixsYBquKwMAtyIrtFHqAPgVt746aryTApE88/beRYw==", + "dev": true, + "requires": { + "babel-helper-flip-expressions": "^0.1.2", + "babel-helper-is-nodes-equiv": "^0.0.1", + "babel-helper-to-multiple-sequence-expressions": "^0.1.1" + } + }, + "babel-plugin-minify-type-constructors": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-minify-type-constructors/-/babel-plugin-minify-type-constructors-0.1.2.tgz", + "integrity": "sha512-PS+pYQuw+yDZjLhWhZy8PBlsxEw607m5T066Twa2DnkOUh0O4Eioq5S21/4RSf11fDZM02FHdBs093QIQCvEZg==", + "dev": true, + "requires": { + "babel-helper-is-void-0": "^0.1.1" + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.14.tgz", + "integrity": "sha512-Co2Y9wX854ts6U8gAAPXfn0GmAyctHuK8n0Yhfjd6t30g7yvKjspvvOo9yG+z52PZRgFErt7Ka2pYnXCjLKEpg==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.27.7", + "@babel/helper-define-polyfill-provider": "^0.6.5", + "semver": "^6.3.1" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.13.0.tgz", + "integrity": "sha512-U+GNwMdSFgzVmfhNm8GJUX88AadB3uo9KpJqS3FaqNIPKgySuvMb+bHPsOmmuWyIcuqZj/pzt1RUIUZns4y2+A==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.6.5", + "core-js-compat": "^3.43.0" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.5.tgz", + "integrity": "sha512-ISqQ2frbiNU9vIJkzg7dlPpznPZ4jOiUQ1uSmB0fEHeowtN3COYRsXr/xexn64NpU13P06jc/L5TgiJXOgrbEg==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.6.5" + } + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha512-4Zp4unmHgw30A1eWI5EpACji2qMocisdXhAftfhXoSV9j0Tvj6nRFE3tOmRY912E0FMRm/L5xWE7MGVT2FoLnw==", + "dev": true + }, + "babel-plugin-syntax-async-generators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", + "integrity": "sha512-EbciFN5Jb9iqU9bqaLmmFLx2G8pAUsvpWJ6OzOWBNrSY9qTohXj+7YfZx6Ug1Qqh7tCb1EA7Jvn9bMC1HBiucg==", + "dev": true + }, + "babel-plugin-syntax-class-constructor-call": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", + "integrity": "sha512-EEuBcXz/wZ81Jaac0LnMHtD4Mfz9XWn2oH2Xj+CHwz2SZWUqqdtR2BgWPSdTGMmxN/5KLSh4PImt9+9ZedDarA==", + "dev": true + }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "integrity": "sha512-chI3Rt9T1AbrQD1s+vxw3KcwC9yHtF621/MacuItITfZX344uhQoANjpoSJZleAmW2tjlolqB/f+h7jIqXa7pA==", + "dev": true + }, + "babel-plugin-syntax-decorators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", + "integrity": "sha512-AWj19x2aDm8qFQ5O2JcD6pwJDW1YdcnO+1b81t7gxrGjz5VHiUqeYWAR4h7zueWMalRelrQDXprv2FrY1dbpbw==", + "dev": true + }, + "babel-plugin-syntax-do-expressions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", + "integrity": "sha512-HD/5qJB9oSXzl0caxM+aRD7ENICXqcc3Up/8toDQk7zNIDE7TzsqtxC5f4t9Rwhu2Ya8l9l4j6b3vOsy+a6qxg==", + "dev": true + }, + "babel-plugin-syntax-dynamic-import": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", + "integrity": "sha512-MioUE+LfjCEz65Wf7Z/Rm4XCP5k2c+TbMd2Z2JKc7U9uwjBhAfNPE48KC4GTGKhppMeYVepwDBNO/nGY6NYHBA==", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha512-Z/flU+T9ta0aIEKl1tGEmN/pZiI1uXmCiGFRegKacQfEJzp7iNsKloZmyJlQr+75FCJtiFfGIK03SiCvCt9cPQ==", + "dev": true + }, + "babel-plugin-syntax-export-extensions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", + "integrity": "sha512-Eo0rcRaIDMld/W6mVhePiudIuLW+Cr/8eveW3mBREfZORScZgx4rh6BAPyvzdEc/JZvQ+LkC80t0VGFs6FX+lg==", + "dev": true + }, + "babel-plugin-syntax-function-bind": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", + "integrity": "sha512-m8yMoh9LIiNyeLdQs5I9G+3YXo4nqVsKQkk7YplrG4qAFbNi9hkZlow8HDHxhH9QOVFPHmy8+03NzRCdyChIKw==", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha512-C4Aq+GaAj83pRQ0EFgTvw5YO6T3Qz2KGrNRwIj9mSoNHVvdZY4KO2uA6HNtNXCw993iSZnckY1aLW8nOi8i4+w==", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha512-Gx9CH3Q/3GKbhs07Bszw5fPTlU+ygrOGfAhEt7W2JICwufpC4SuO0mG0+4NykPBSYPMJhqvVlDBU17qB1D+hMQ==", + "dev": true + }, + "babel-plugin-transform-async-generator-functions": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", + "integrity": "sha512-uT7eovUxtXe8Q2ufcjRuJIOL0hg6VAUJhiWJBLxH/evYAw+aqoJLcYTR8hqx13iOx/FfbCMHgBmXWZjukbkyPg==", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-generators": "^6.5.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha512-7BgYJujNCg0Ti3x0c/DL3tStvnKS6ktIYOmo9wginv/dfZOrbSZ+qG4IRRHMBOzZ5Awb1skTiAsQXg/+IWkZYw==", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-class-constructor-call": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz", + "integrity": "sha512-RvYukT1Nh7njz8P8326ztpQUGCKwmjgu6aRIx1lkvylWITYcskg29vy1Kp8WXIq7FvhXsz0Crf2kS94bjB690A==", + "dev": true, + "requires": { + "babel-plugin-syntax-class-constructor-call": "^6.18.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", + "integrity": "sha512-n4jtBA3OYBdvG5PRMKsMXJXHfLYw/ZOmtxCLOOwz6Ro5XlrColkStLnz1AS1L2yfPA9BKJ1ZNlmVCLjAL9DSIg==", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-plugin-syntax-class-properties": "^6.8.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", + "integrity": "sha512-skQ2CImwDkCHu0mkWvCOlBCpBIHW4/49IZWVwV4A/EnWjL9bB6UBvLyMNe3Td5XDStSZNhe69j4bfEW8dvUbew==", + "dev": true, + "requires": { + "babel-helper-explode-class": "^6.24.1", + "babel-plugin-syntax-decorators": "^6.13.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-do-expressions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz", + "integrity": "sha512-yQwYqYg+Tnj1InA8W1rsItsZVhkv1Euc4KVua9ledtPz5PDWYz7LVyy6rDBpVYUWFZj5k6GUm3YZpCbIm8Tqew==", + "dev": true, + "requires": { + "babel-plugin-syntax-do-expressions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", + "integrity": "sha512-PCqwwzODXW7JMrzu+yZIaYbPQSKjDTAsNNlK2l5Gg9g4rz2VzLnZsStvp/3c46GfXpwkyufb3NCyG9+50FF1Vg==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", + "integrity": "sha512-2+ujAT2UMBzYFm7tidUsYh+ZoIutxJ3pN9IYrF1/H6dCKtECfhmB8UkHVpyxDwkj0CYbQG35ykoz925TUnBc3A==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha512-YiN6sFAQ5lML8JjCmr7uerS5Yc/EMbgg9G8ZNmk2E3nYX4ckHR01wrkeeMijEf5WHNK5TW0Sl0Uu3pv3EdOJWw==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", + "integrity": "sha512-5Dy7ZbRinGrNtmWpquZKZ3EGY8sDgIVB4CU8Om8q8tnMLrD/m94cKglVcHps0BCTdZ0TJeeAWOq2TK9MIY6cag==", + "dev": true, + "requires": { + "babel-helper-define-map": "^6.24.1", + "babel-helper-function-name": "^6.24.1", + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-helper-replace-supers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", + "integrity": "sha512-C/uAv4ktFP/Hmh01gMTvYvICrKze0XVX9f2PdIXuriCSvUmV9j+u+BB9f5fJK3+878yMK6dkdcq+Ymr9mrcLzw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha512-aNv/GDAW0j/f4Uy1OEPZn1mqD+Nfy9viFGBfQ5bZyT35YqOiqx7/tXdyfZkJ1sC21NyEsBdfDY6PYmLHF4r5iA==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", + "integrity": "sha512-ossocTuPOssfxO2h+Z3/Ea1Vo1wWx31Uqy9vIiJusOP4TbF7tPs9U0sJ9pX9OJPf4lXRGj5+6Gkl/HHKiAP5ug==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", + "integrity": "sha512-DLuRwoygCoXx+YfxHLkVx5/NpeSbVwfoTeBykpJK7JhYWlL/O8hgAK/reforUnZDlxasOrVPPJVI/guE3dCwkw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha512-iFp5KIcorf11iBqu/y/a7DK3MN5di3pNCzto61FqCNnUX4qeBwcV1SLqe10oXNnCaxBUImX3SckX2/o1nsrTcg==", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", + "integrity": "sha512-tjFl0cwMPpDYyoqYA9li1/7mGFit39XiNX5DKC/uCNjBctMxyL1/PT/l4rSlbvBG1pOKI88STRdUsWXB3/Q9hQ==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", + "integrity": "sha512-LnIIdGWIKdw7zwckqx+eGjcS8/cl8D74A3BpJbGjKTFFNJSMrjN4bIh22HY1AlkUbeLG6X6OZj56BDvWD+OeFA==", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", + "integrity": "sha512-ONFIPsq8y4bls5PPsAWYXH/21Hqv64TBxdje0FvU3MhIV6QM2j5YS7KvAzg/nTIVLot2D2fmFQrFWCbgHlFEjg==", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", + "integrity": "sha512-LpVbiT9CLsuAIp3IG0tfbVo81QIhn6pE8xBJ7XSeCtFlMltuar5VuBV6y6Q45tpui9QWcy5i0vLQfCfrnF7Kiw==", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", + "integrity": "sha512-8G5hpZMecb53vpD3mjs64NhI1au24TAmokQ4B+TBFBjN9cVoGoOvotdrMMRmHvVZUEvqGUPWL514woru1ChZMA==", + "dev": true, + "requires": { + "babel-helper-replace-supers": "^6.24.1", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha512-8HxlW+BB5HqniD+nLkQ4xSAVq3bR/pcYW9IigY+2y0dI+Y7INFeTbfAQr+63T3E4UDsZGjyb+l9txUnABWxlOQ==", + "dev": true, + "requires": { + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", + "integrity": "sha512-mDdocSfUVm1/7Jw/FIRNw9vPrBQNePy6wZJlR8HAUBLybNp1w/6lr6zZ2pjMShee65t/ybR5pT8ulkLzD1xwiw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha512-3Ghhi26r4l3d0Js933E5+IhHwk0A1yiutj9gwvzmFbVV0sPMYk2lekhOufHBswX7NCoSeF4Xrl3sCIuSIa+zOg==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha512-CYP359ADryTo3pCsH0oxRo/0yn6UsEZLqYohHmvLQdfS9xkf+MbCzE3/Kolw9OYIY4ZMilH25z/5CbQbwDD+lQ==", + "dev": true, + "requires": { + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", + "integrity": "sha512-x8b9W0ngnKzDMHimVtTfn5ryimars1ByTqsfBDwAqLibmuuQY6pgBQi5z1ErIsUOWBdw1bW9FSz5RZUojM4apg==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", + "integrity": "sha512-fz6J2Sf4gYN6gWgRZaoFXmq93X+Li/8vf+fb0sGDVtdeWvxC9y5/bTD7bvfWMEq6zetGEHpWjtzRGSugt5kNqw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha512-v61Dbbihf5XxnYjtBN04B/JBvsScY37R1cZT5r9permN1cp+b70DY3Ib3fIkgn1DI9U3tGgBJZVD8p/mE/4JbQ==", + "dev": true, + "requires": { + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "regexpu-core": "^2.0.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha512-tJ9+S4oKjxY8IZ9jmjnp/mtytu1u3iyIQAfmI51IKWH6bFf7XR1ybtaO6j7INhZKXOTYADk7V5qxaqLkmNxiZQ==", + "dev": true, + "requires": { + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha512-x+Y3yA24uF68m5GA+tBjbGYo64xXVJpbToBaWCoSNSc1hdk6dfctaRWrNFTVJZIIhL5GxW8zwjoixbnifnK59g==", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha512-jlQ9gYLfk2p3V5Ag5fYhA7fv7OHzd1KUH0PRP46xc3TgwjwgROIW572AfYg/X9kaNq/LJnu6oJcFRXlIrGoTRw==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + } + } + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha512-LzXDmbMkklvNhprr20//RStKVcT8Cu+SQtX18eMHLhjHf2yFzwtQ0S2f0jQ+89rokoNdmwoSqYzAhq86FxlLSQ==", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-export-extensions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz", + "integrity": "sha512-mtzELzINaYqdVglyZrDDVwkcFRuE7s6QUFWXxwffKAHB/NkfbJ2NJSytugB43ytIC8UVt30Ereyx+7gNyTkDLg==", + "dev": true, + "requires": { + "babel-plugin-syntax-export-extensions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-function-bind": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz", + "integrity": "sha512-9Ec4KYf1GurT39mlUjDSlN7HWSlB3u3mWRMogQbb+Y88lO0ZM3rJ0ADhPnQwWK9TbO6e/4E+Et1rrfGY9mFimA==", + "dev": true, + "requires": { + "babel-plugin-syntax-function-bind": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-inline-consecutive-adds": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-inline-consecutive-adds/-/babel-plugin-transform-inline-consecutive-adds-0.1.2.tgz", + "integrity": "sha512-+pAfdjieyTmsiGzoAyaicdYuk9lApfWaNWFxapfO3JVsrDWl2mtM+uHNZPA0DrZPdqagzjwitqzmzPUMyrRXmg==", + "dev": true + }, + "babel-plugin-transform-member-expression-literals": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-member-expression-literals/-/babel-plugin-transform-member-expression-literals-6.9.4.tgz", + "integrity": "sha512-Xq9/Rarpj+bjOZSl1nBbZYETsNEDDJSrb6Plb1sS3/36FukWFLLRysgecva5KZECjUJTrJoQqjJgtWToaflk5Q==", + "dev": true + }, + "babel-plugin-transform-merge-sibling-variables": { + "version": "6.9.5", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-merge-sibling-variables/-/babel-plugin-transform-merge-sibling-variables-6.9.5.tgz", + "integrity": "sha512-xj/KrWi6/uP+DrD844h66Qh2cZN++iugEIgH8QcIxhmZZPNP6VpOE9b4gP2FFW39xDAY43kCmYMM6U0QNKN8fw==", + "dev": true + }, + "babel-plugin-transform-minify-booleans": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-minify-booleans/-/babel-plugin-transform-minify-booleans-6.9.4.tgz", + "integrity": "sha512-9pW9ePng6DZpzGPalcrULuhSCcauGAbn8AeU3bE34HcDkGm8Ldt0ysjGkyb64f0K3T5ilV4mriayOVv5fg0ASA==", + "dev": true + }, + "babel-plugin-transform-object-rest-spread": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", + "integrity": "sha512-ocgA9VJvyxwt+qJB0ncxV8kb/CjfTcECUY4tQ5VT7nP6Aohzobm8CDFaQ5FHdvZQzLmf0sgDxB8iRXZXxwZcyA==", + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "^6.8.0", + "babel-runtime": "^6.26.0" + } + }, + "babel-plugin-transform-property-literals": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-property-literals/-/babel-plugin-transform-property-literals-6.9.4.tgz", + "integrity": "sha512-Pf8JHTjTPxecqVyL6KSwD/hxGpoTZjiEgV7nCx0KFQsJYM0nuuoCajbg09KRmZWeZbJ5NGTySABYv8b/hY1eEA==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "babel-plugin-transform-regenerator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", + "integrity": "sha512-LS+dBkUGlNR15/5WHKe/8Neawx663qttS6AGqoOUhICc9d1KciBvtrQSuc0PI+CxQ2Q/S1aKuJ+u64GtLdcEZg==", + "dev": true, + "requires": { + "regenerator-transform": "^0.10.0" + } + }, + "babel-plugin-transform-regexp-constructors": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regexp-constructors/-/babel-plugin-transform-regexp-constructors-0.1.1.tgz", + "integrity": "sha512-H9uY55PHqO78HwiKaVp3Z4KgKukfug2cdM5AkNXVna1D/vnhxjMprCtajUfBngSyLt3WfO67XUnSTCV7qu8rug==", + "dev": true + }, + "babel-plugin-transform-remove-console": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", + "integrity": "sha512-88blrUrMX3SPiGkT1GnvVY8E/7A+k6oj3MNvUtTIxJflFzXTw1bHkuJ/y039ouhFMp2prRn5cQGzokViYi1dsg==", + "dev": true + }, + "babel-plugin-transform-remove-debugger": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-debugger/-/babel-plugin-transform-remove-debugger-6.9.4.tgz", + "integrity": "sha512-Kd+eTBYlXfwoFzisburVwrngsrz4xh9I0ppoJnU/qlLysxVBRgI4Pj+dk3X8F5tDiehp3hhP8oarRMT9v2Z3lw==", + "dev": true + }, + "babel-plugin-transform-remove-undefined": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-undefined/-/babel-plugin-transform-remove-undefined-0.1.2.tgz", + "integrity": "sha512-MOpvj4WxMuM7NvnE5ZWQoxWddVpadCpuhg+3W3gAcuEcLjuhymIqZzMkkUMeCRNUPt4Y7FWbW8pACyxNCKE1nw==", + "dev": true + }, + "babel-plugin-transform-runtime": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz", + "integrity": "sha512-cpGMVC1vt/772y3jx1gwSaTitQVZuFDlllgreMsZ+rTYC6jlYXRyf5FQOgSnckOiA5QmzbXTyBY2A5AmZXF1fA==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-simplify-comparison-operators": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-simplify-comparison-operators/-/babel-plugin-transform-simplify-comparison-operators-6.9.4.tgz", + "integrity": "sha512-GLInxhGAQWJ9YIdjwF6dAFlmh4U+kN8pL6Big7nkDzHoZcaDQOtBm28atEhQJq6m9GpAovbiGEShKqXv4BSp0A==", + "dev": true + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha512-j3KtSpjyLSJxNoCDrhwiJad8kw0gJ9REGj8/CqL0HeRyLnvUNYV9zcqluL6QJSXh3nfsLEmSLvwRfGzrgR96Pw==", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-undefined-to-void": { + "version": "6.9.4", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-undefined-to-void/-/babel-plugin-transform-undefined-to-void-6.9.4.tgz", + "integrity": "sha512-D2UbwxawEY1xVc9svYAUZQM2xarwSNXue2qDIx6CeV2EuMGaes/0su78zlIDIAgE7BvnMw4UpmSo9fDy+znghg==", + "dev": true + }, + "babel-preset-babili": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/babel-preset-babili/-/babel-preset-babili-0.1.4.tgz", + "integrity": "sha512-WHGo9Vdv3t/qwUzk6L2jKaQrTlwnN4ftrOANspsFAA55LvcldF4bzCVMhJ7DaCyZzJb93sA2e/roC7rUzSK93A==", + "dev": true, + "requires": { + "babel-plugin-minify-builtins": "^0.1.3", + "babel-plugin-minify-constant-folding": "^0.1.3", + "babel-plugin-minify-dead-code-elimination": "^0.1.7", + "babel-plugin-minify-flip-comparisons": "^0.1.2", + "babel-plugin-minify-guarded-expressions": "^0.1.2", + "babel-plugin-minify-infinity": "^0.1.2", + "babel-plugin-minify-mangle-names": "^0.1.3", + "babel-plugin-minify-numeric-literals": "^0.1.1", + "babel-plugin-minify-replace": "^0.1.2", + "babel-plugin-minify-simplify": "^0.1.2", + "babel-plugin-minify-type-constructors": "^0.1.2", + "babel-plugin-transform-inline-consecutive-adds": "^0.1.2", + "babel-plugin-transform-member-expression-literals": "^6.8.4", + "babel-plugin-transform-merge-sibling-variables": "^6.8.5", + "babel-plugin-transform-minify-booleans": "^6.8.2", + "babel-plugin-transform-property-literals": "^6.8.4", + "babel-plugin-transform-regexp-constructors": "^0.1.1", + "babel-plugin-transform-remove-console": "^6.8.4", + "babel-plugin-transform-remove-debugger": "^6.8.4", + "babel-plugin-transform-remove-undefined": "^0.1.2", + "babel-plugin-transform-simplify-comparison-operators": "^6.8.4", + "babel-plugin-transform-undefined-to-void": "^6.8.2", + "lodash.isplainobject": "^4.0.6" + } + }, + "babel-preset-env": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/babel-preset-env/-/babel-preset-env-1.7.0.tgz", + "integrity": "sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "^6.22.0", + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-to-generator": "^6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoping": "^6.23.0", + "babel-plugin-transform-es2015-classes": "^6.23.0", + "babel-plugin-transform-es2015-computed-properties": "^6.22.0", + "babel-plugin-transform-es2015-destructuring": "^6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", + "babel-plugin-transform-es2015-for-of": "^6.23.0", + "babel-plugin-transform-es2015-function-name": "^6.22.0", + "babel-plugin-transform-es2015-literals": "^6.22.0", + "babel-plugin-transform-es2015-modules-amd": "^6.22.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-umd": "^6.23.0", + "babel-plugin-transform-es2015-object-super": "^6.22.0", + "babel-plugin-transform-es2015-parameters": "^6.23.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", + "babel-plugin-transform-es2015-spread": "^6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", + "babel-plugin-transform-es2015-template-literals": "^6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", + "babel-plugin-transform-exponentiation-operator": "^6.22.0", + "babel-plugin-transform-regenerator": "^6.22.0", + "browserslist": "^3.2.6", + "invariant": "^2.2.2", + "semver": "^5.3.0" + }, + "dependencies": { + "browserslist": { + "version": "3.2.8", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz", + "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30000844", + "electron-to-chromium": "^1.3.47" + } + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + } + } + }, + "babel-preset-stage-0": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz", + "integrity": "sha512-MJD+xBbpsApbKlzAX0sOBF+VeFaUmv5s8FSOO7SSZpes1QgphCjq/UIGRFWSmQ/0i5bqQjLGCTXGGXqcLQ9JDA==", + "dev": true, + "requires": { + "babel-plugin-transform-do-expressions": "^6.22.0", + "babel-plugin-transform-function-bind": "^6.22.0", + "babel-preset-stage-1": "^6.24.1" + } + }, + "babel-preset-stage-1": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz", + "integrity": "sha512-rn+UOcd7BHDniq1SVxv2/AVVSVI1NK+hfS0I/iR6m6KbOi/aeBRcqBilqO73pd9VUpRXF2HFtlDuC9F2BEQqmg==", + "dev": true, + "requires": { + "babel-plugin-transform-class-constructor-call": "^6.24.1", + "babel-plugin-transform-export-extensions": "^6.22.0", + "babel-preset-stage-2": "^6.24.1" + } + }, + "babel-preset-stage-2": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", + "integrity": "sha512-9F+nquz+37PrlTSBdpeQBKnQfAMNBnryXw+m4qBh35FNbJPfzZz+sjN2G5Uf1CRedU9PH7fJkTbYijxmkLX8Og==", + "dev": true, + "requires": { + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-decorators": "^6.24.1", + "babel-preset-stage-3": "^6.24.1" + } + }, + "babel-preset-stage-3": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", + "integrity": "sha512-eCbEOF8uN0KypFXJmZXn2sTk7bPV9uM5xov7G/7BM08TbQEObsVs0cEWfy6NQySlfk7JBi/t+XJP1JkruYfthA==", + "dev": true, + "requires": { + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-generator-functions": "^6.24.1", + "babel-plugin-transform-async-to-generator": "^6.24.1", + "babel-plugin-transform-exponentiation-operator": "^6.24.1", + "babel-plugin-transform-object-rest-spread": "^6.22.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha512-veliHlHX06wjaeY8xNITbveXSiI+ASFnOqvne/LaIJIqOWi2Ogmj91KOugEz/hoh/fwMhXNBJPCv8Xaz5CyM4A==", + "dev": true, + "requires": { + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" + } + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha512-PCOcLFW7/eazGUKIoqH97sO9A2UYMahsn/yRQ7uOk37iutwjq7ODtcTNF+iFDSHNfkctqsLRjLP7URnOx0T1fg==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha512-iSxeXx7apsjCHe9c7n8VtRXGzI2Bk1rBSOJgCCjfyXb6v1aCqE1KSEpq/8SXuVN8Ka/Rh1WDTF0MDzkvTA4MIA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + } + }, + "babili-webpack-plugin": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/babili-webpack-plugin/-/babili-webpack-plugin-0.1.2.tgz", + "integrity": "sha512-CPPfzBU2NlaZVxI45ubwfFhzczEBUSwX7+2lvCR6G2VpLUJKxTumtA8GFHwic4kBgrLmzB3jPWSiC557Hlro7A==", + "dev": true, + "requires": { + "babel-core": "^6.24.1", + "babel-preset-babili": "^0.1.4", + "webpack-sources": "^1.0.1" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + } + }, + "base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" + }, + "baseline-browser-mapping": { + "version": "2.8.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz", + "integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==", + "dev": true + }, + "batch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", + "dev": true + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==" + }, + "binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "optional": true + }, + "bitmap-sdf": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/bitmap-sdf/-/bitmap-sdf-1.0.4.tgz", + "integrity": "sha512-1G3U4n5JE6RAiALMxu0p1XmeZkTeCwGKykzsLTCqVzfSDaN6S7fKnkIkfejogz+iwqBWc0UYAIKnKHNN7pSfDg==" + }, + "bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "requires": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "bluebird-lst": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/bluebird-lst/-/bluebird-lst-1.0.9.tgz", + "integrity": "sha512-7B1Rtx82hjnSD4PGLAjVWeYH3tHAcVUmChh85a3lltKQm6FresXh9ErQo6oAv6CqxttczC3/kEg8SY5NluPuUw==", + "dev": true, + "requires": { + "bluebird": "^3.5.5" + } + }, + "bn.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.2.tgz", + "integrity": "sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==", + "dev": true + }, + "body-parser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz", + "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==", + "requires": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.3", + "http-errors": "^2.0.0", + "iconv-lite": "^0.7.0", + "on-finished": "^2.4.1", + "qs": "^6.14.0", + "raw-body": "^3.0.1", + "type-is": "^2.0.1" + } + }, + "bonjour": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", + "integrity": "sha512-RaVTblr+OnEli0r/ud8InrU7D+G0y6aJhlxaLa6Pwty4+xoxboF1BsUI45tujvRpbj9dQVoglChqonGAsjEBYg==", + "dev": true, + "requires": { + "array-flatten": "^2.1.0", + "deep-equal": "^1.0.1", + "dns-equal": "^1.0.0", + "dns-txt": "^2.0.2", + "multicast-dns": "^6.0.1", + "multicast-dns-service-types": "^1.1.0" + }, + "dependencies": { + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + } + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "dev": true + }, + "boolean": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", + "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", + "dev": true, + "optional": true + }, + "boxen": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", + "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", + "dev": true, + "requires": { + "ansi-align": "^3.0.0", + "camelcase": "^6.2.0", + "chalk": "^4.1.0", + "cli-boxes": "^2.2.1", + "string-width": "^4.2.2", + "type-fest": "^0.20.2", + "widest-line": "^3.1.0", + "wrap-ansi": "^7.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true + } + } + }, + "brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + } + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", + "dev": true + }, + "browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz", + "integrity": "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==", + "dev": true, + "requires": { + "bn.js": "^5.2.1", + "randombytes": "^2.1.0", + "safe-buffer": "^5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "browserify-sign": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.5.tgz", + "integrity": "sha512-C2AUdAJg6rlM2W5QMp2Q4KGQMVBwR1lIimTsUnutJ8bMpW5B52pGpR2gEnNBNwijumDo5FojQ0L9JrXA8m4YEw==", + "dev": true, + "requires": { + "bn.js": "^5.2.2", + "browserify-rsa": "^4.1.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.6.1", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.9", + "readable-stream": "^2.3.8", + "safe-buffer": "^5.2.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "~1.0.5" + }, + "dependencies": { + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", + "dev": true + } + } + }, + "browserslist": { + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", + "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "dev": true, + "requires": { + "baseline-browser-mapping": "^2.8.25", + "caniuse-lite": "^1.0.30001754", + "electron-to-chromium": "^1.5.249", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.1.4" + } + }, + "buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==" + }, + "buffer-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-1.0.0.tgz", + "integrity": "sha512-tcBWO2Dl4e7Asr9hTGcpVrCe+F7DubpmqWCTbj4FHLmjqO2hIaC383acQubWtRJhdceqs5uBHs6Es+Sk//RKiQ==", + "dev": true + }, + "buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "buffer-indexof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-1.1.1.tgz", + "integrity": "sha512-4/rOEg86jivtPTeOUUT61jJO1Ya1TrR/OkqCSZDyq84WJh3LuuiphBYJN+fm5xufIk4XAFcEwte/8WzC8If/1g==", + "dev": true + }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "dev": true + }, + "builder-util": { + "version": "22.14.13", + "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-22.14.13.tgz", + "integrity": "sha512-oePC/qrrUuerhmH5iaCJzPRAKlSBylrhzuAJmRQClTyWnZUv6jbaHh+VoHMbEiE661wrj2S2aV7/bQh12cj1OA==", + "dev": true, + "requires": { + "7zip-bin": "~5.1.1", + "@types/debug": "^4.1.6", + "@types/fs-extra": "^9.0.11", + "app-builder-bin": "3.7.1", + "bluebird-lst": "^1.0.9", + "builder-util-runtime": "8.9.2", + "chalk": "^4.1.1", + "cross-spawn": "^7.0.3", + "debug": "^4.3.2", + "fs-extra": "^10.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-ci": "^3.0.0", + "js-yaml": "^4.1.0", + "source-map-support": "^0.5.19", + "stat-mode": "^1.0.0", + "temp-file": "^3.4.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "builder-util-runtime": { + "version": "8.9.2", + "resolved": "https://registry.npmjs.org/builder-util-runtime/-/builder-util-runtime-8.9.2.tgz", + "integrity": "sha512-rhuKm5vh7E0aAmT6i8aoSfEjxzdYEFX7zDApK+eNgOhjofnWb74d9SRJv0H/8nsgOkos0TZ4zxW0P8J4N7xQ2A==", + "dev": true, + "requires": { + "debug": "^4.3.2", + "sax": "^1.2.4" + } + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", + "dev": true + }, + "bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + }, + "cacache": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", + "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", + "dev": true, + "requires": { + "bluebird": "^3.5.1", + "chownr": "^1.0.1", + "glob": "^7.1.2", + "graceful-fs": "^4.1.11", + "lru-cache": "^4.1.1", + "mississippi": "^2.0.0", + "mkdirp": "^0.5.1", + "move-concurrently": "^1.0.1", + "promise-inflight": "^1.0.1", + "rimraf": "^2.6.2", + "ssri": "^5.2.4", + "unique-filename": "^1.1.0", + "y18n": "^4.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } + } + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true + }, + "normalize-url": { + "version": "4.5.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz", + "integrity": "sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==", + "dev": true + } + } + }, + "call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "requires": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + } + }, + "call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "requires": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + } + }, + "call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + } + }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha512-UJiE1otjXPF5/x+T3zTnSFiTOEmJoGTD9HmBoxnCUwho61a2eSNn/VwtwuIBDAo2SEOv1AJ7ARI5gCmohFLu/g==", + "dev": true, + "requires": { + "callsites": "^0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha512-Zv4Dns9IbXXmPkgRRUjAaJQgfN4xX5p6+RQFhWUqscdvvK2xK/ZL8b3IXIJsj+4sD+f24NwnWy2BY8AJ82JB0A==", + "dev": true + }, + "camel-case": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz", + "integrity": "sha512-+MbKztAYHXPr1jNTSKQF52VpcFjwY5RkR7fxksV8Doo4KAYc5Fl4UJRgthBbTmEx8C54DqahhbLJkDwjI3PI/w==", + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.1.1" + } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==", + "dev": true, + "requires": { + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==", + "dev": true + } + } + }, + "caniuse-api": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-1.6.1.tgz", + "integrity": "sha512-SBTl70K0PkDUIebbkXrxWqZlHNs0wRgRD6QZ8guctShjbh63gEPfF+Wj0Yw+75f5Y8tSzqAI/NcisYv/cCah2Q==", + "dev": true, + "requires": { + "browserslist": "^1.3.6", + "caniuse-db": "^1.0.30000529", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + }, + "dependencies": { + "browserslist": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", + "integrity": "sha512-qHJblDE2bXVRYzuDetv/wAeHOJyO97+9wxC1cdCtyzgNuSozOyRCiiLaCR1f71AN66lQdVVBipWm63V+a7bPOw==", + "dev": true, + "requires": { + "caniuse-db": "^1.0.30000639", + "electron-to-chromium": "^1.2.7" + } + } + } + }, + "caniuse-db": { + "version": "1.0.30001757", + "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30001757.tgz", + "integrity": "sha512-A1KAcawhlASOv4/RwYwfJKld9x9//MUFfqqj7hT6vriXiGxVD6B1ZVLdfksa0WzZfGeUVd6JdW8SV+SH6HMSFw==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001757", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001757.tgz", + "integrity": "sha512-r0nnL/I28Zi/yjk1el6ilj27tKcdjLsNqAOZr0yVjWPrSQyHgKI2INaEWw21bAQSv2LXRt1XuCS/GomNpWOxsQ==", + "dev": true + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha512-Baz3aNe2gd2LP2qk5U+sDk/m4oSuwSDcBfayTCTBoWpfIGO5XFxPmjILQII4NGiZjD6DoDI6kf7gKaxkf7s3VQ==", + "dev": true, + "requires": { + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" + } + }, + "cesium": { + "version": "1.135.0", + "resolved": "https://registry.npmjs.org/cesium/-/cesium-1.135.0.tgz", + "integrity": "sha512-U0OuU9pim7ezTns0OVVw199NdMhJzuZWKRKRwQdRbBQH74Q8pmU0FLpQ/Xv94pzvCqJxxqdtziM2JGHa43xzcg==", + "requires": { + "@cesium/engine": "^22.0.0", + "@cesium/widgets": "^14.0.0" + } + }, + "cfb": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.2.tgz", + "integrity": "sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA==", + "requires": { + "adler-32": "~1.3.0", + "crc-32": "~1.2.0" + } + }, + "cfonts": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/cfonts/-/cfonts-1.2.0.tgz", + "integrity": "sha512-gT9tfte2tCN6ZddA531ACPnUMvD6hCXiVHSUVZcCvejvKhsjD2Ph+ot8Vl39hG0CBh/9LvihnXKvtY9RL/UrLg==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "babel-runtime": "^6.26.0", + "chalk": "^2.3.2", + "change-case": "^3.0.2", + "commander": "^2.15.1", + "window-size": "^1.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + } + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "change-case": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-3.1.0.tgz", + "integrity": "sha512-2AZp7uJZbYEzRPsFoa+ijKdvp9zsrnnt6+yFokfwEpeJm0xuJDVoxiRCAaTzyJND8GJkofo2IcKWaUZ/OECVzw==", + "dev": true, + "requires": { + "camel-case": "^3.0.0", + "constant-case": "^2.0.0", + "dot-case": "^2.1.0", + "header-case": "^1.0.0", + "is-lower-case": "^1.1.0", + "is-upper-case": "^1.1.0", + "lower-case": "^1.1.1", + "lower-case-first": "^1.0.0", + "no-case": "^2.3.2", + "param-case": "^2.1.0", + "pascal-case": "^2.0.0", + "path-case": "^2.1.0", + "sentence-case": "^2.1.0", + "snake-case": "^2.1.0", + "swap-case": "^1.1.0", + "title-case": "^2.1.0", + "upper-case": "^1.1.1", + "upper-case-first": "^1.1.0" + } + }, + "chardet": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", + "integrity": "sha512-j/Toj7f1z98Hh2cYo2BVr85EpIRWqUi7rtRSGxh/cqUjqrnJe9l9UE7IUGd2vQ2p+kSHLkSzObQPZPLUC6TQwg==", + "dev": true + }, + "chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "requires": { + "readdirp": "^4.0.1" + } + }, + "chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "dev": true + }, + "chromium-pickle-js": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", + "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", + "dev": true + }, + "ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true + }, + "cipher-base": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz", + "integrity": "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.2" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "circular-json": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", + "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "dev": true + }, + "clap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", + "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", + "dev": true, + "requires": { + "chalk": "^1.1.3" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "clean-css": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.4.tgz", + "integrity": "sha512-EJUDT7nDVFDvaQgAo2G/PJvxmp1o/c6iXLbswsBbUFXi1Nr+AjA2cKmfbKDMjMvzEe75g3P6JkaDDAKk96A85A==", + "dev": true, + "requires": { + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==" + }, + "clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } + } + }, + "clone-response": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", + "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true + }, + "coa": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", + "integrity": "sha512-KAGck/eNAmCL0dcT3BiuYwLbExK6lduR8DxM3C1TyDzaXhZHyZ8ooX5I5+na2e3dPFuibfxrGdorr0/Lr7RYCQ==", + "dev": true, + "requires": { + "q": "^1.1.2" + } + }, + "coalescy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/coalescy/-/coalescy-1.0.0.tgz", + "integrity": "sha512-OmRR46eVfyaXZYI7Ai5/vnLHjWhhh99sugx+UTsmVhwaYzARb+Tcdit59/HkVxF8KdqJG5NN8ClUhzQXS3Hh+w==", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==", + "dev": true + }, + "codepage": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.15.0.tgz", + "integrity": "sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA==" + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw==", + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz", + "integrity": "sha512-Ajpjd8asqZ6EdxQeqGzU5WBhhTfJ/0cA4Wlbre7e5vXfmDSmda7Ov6jeKoru+b0vHcb1CqvuroTHp5zIWzhVMA==", + "dev": true, + "requires": { + "clone": "^1.0.2", + "color-convert": "^1.3.0", + "color-string": "^0.3.0" + }, + "dependencies": { + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "dev": true + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + } + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "color-string": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", + "integrity": "sha512-sz29j1bmSDfoAxKIEU6zwoIZXN6BrFbAMIhfYCNyiZXBDuU/aiHlN84lp/xDzL2ubyFhLDobHIlU1X70XRrMDA==", + "dev": true, + "requires": { + "color-name": "^1.0.0" + } + }, + "colormin": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colormin/-/colormin-1.1.2.tgz", + "integrity": "sha512-XSEQUUQUR/lXqGyddiNH3XYFUPYlYr1vXy9rTFMsSOw+J7Q6EQkdlQIrTlYn4TccpsOaUE1PYQNjBn20gwCdgQ==", + "dev": true, + "requires": { + "color": "^0.11.0", + "css-color-names": "0.0.4", + "has": "^1.0.1" + } + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha512-ENwblkFQpqqia6b++zLD/KUWafYlVY/UNnAp7oz7LY7E924wmpye416wBOmvv/HMWzl8gL1kJlfvId/1Dg176w==", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "compare-version": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/compare-version/-/compare-version-0.1.2.tgz", + "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==", + "dev": true + }, + "component-emitter": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==" + }, + "compress-commons": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.1.2.tgz", + "integrity": "sha512-D3uMHtGc/fcO1Gt1/L7i1e33VOvD4A9hfQLP+6ewd+BvG/gQ84Yh4oftEhAdjSMgBgwGL+jsppT7JYNpo6MHHg==", + "requires": { + "buffer-crc32": "^0.2.13", + "crc32-stream": "^4.0.2", + "normalize-path": "^3.0.0", + "readable-stream": "^3.6.0" + } + }, + "compressible": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz", + "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==", + "dev": true, + "requires": { + "mime-db": ">= 1.43.0 < 2" + } + }, + "compressing": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/compressing/-/compressing-1.10.3.tgz", + "integrity": "sha512-F3RxWLU4UNfNYFVNwCK58HwQnv/5drvUW176FC//3i0pwpdahoZxMM7dkxWuA2MEafqfwDc+iudk70Sx/VMUIw==", + "requires": { + "@eggjs/yauzl": "^2.11.0", + "flushwritable": "^1.0.0", + "get-ready": "^1.0.0", + "iconv-lite": "^0.5.0", + "mkdirp": "^0.5.1", + "pump": "^3.0.0", + "streamifier": "^0.1.1", + "tar-stream": "^1.5.2", + "yazl": "^2.4.2" + }, + "dependencies": { + "bl": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", + "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "iconv-lite": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", + "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "requires": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + } + } + } + }, + "compression": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/compression/-/compression-1.8.1.tgz", + "integrity": "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==", + "dev": true, + "requires": { + "bytes": "3.1.2", + "compressible": "~2.0.18", + "debug": "2.6.9", + "negotiator": "~0.6.4", + "on-headers": "~1.1.0", + "safe-buffer": "5.2.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "negotiator": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", + "integrity": "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==", + "dev": true + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "conf": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/conf/-/conf-10.2.0.tgz", + "integrity": "sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==", + "requires": { + "ajv": "^8.6.3", + "ajv-formats": "^2.1.1", + "atomically": "^1.7.0", + "debounce-fn": "^4.0.0", + "dot-prop": "^6.0.1", + "env-paths": "^2.2.1", + "json-schema-typed": "^7.0.3", + "onetime": "^5.1.2", + "pkg-up": "^3.1.0", + "semver": "^7.3.5" + } + }, + "config-chain": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz", + "integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==", + "dev": true, + "optional": true, + "requires": { + "ini": "^1.3.4", + "proto-list": "~1.2.1" + }, + "dependencies": { + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true, + "optional": true + } + } + }, + "configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dev": true, + "requires": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "dependencies": { + "dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "requires": { + "is-obj": "^2.0.0" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "connect-history-api-fallback": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", + "integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", + "dev": true + }, + "console-browserify": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true + }, + "consolidate": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.14.5.tgz", + "integrity": "sha512-PZFskfj64QnpKVK9cPdY36pyWEhZNM+srRVqtwMiVTlnViSoZcvX35PpBhhUcyLTHXYvz7pZRmxvsqwzJqg9kA==", + "dev": true, + "requires": { + "bluebird": "^3.1.1" + } + }, + "constant-case": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-2.0.0.tgz", + "integrity": "sha512-eS0N9WwmjTqrOmR3o83F5vW8Z+9R1HnVz3xmzT2PMFug9ly+Au/fxRWlEBSb6LcZwspSsEn9Xs1uw9YgzAg1EQ==", + "dev": true, + "requires": { + "snake-case": "^2.1.0", + "upper-case": "^1.1.1" + } + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", + "dev": true + }, + "content-disposition": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "requires": { + "safe-buffer": "5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + } + } + }, + "content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" + }, + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "cookie": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" + }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "fs-write-stream-atomic": "^1.0.8", + "iferr": "^0.1.5", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.0" + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==" + }, + "copy-webpack-plugin": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-4.6.0.tgz", + "integrity": "sha512-Y+SQCF+0NoWQryez2zXn5J5knmr9z/9qSQt7fbL78u83rxmigOy8X5+BFn8CFSuX+nKT8gpYwJX68ekqtQt6ZA==", + "dev": true, + "requires": { + "cacache": "^10.0.4", + "find-cache-dir": "^1.0.0", + "globby": "^7.1.1", + "is-glob": "^4.0.0", + "loader-utils": "^1.1.0", + "minimatch": "^3.0.4", + "p-limit": "^1.0.0", + "serialize-javascript": "^1.4.0" + }, + "dependencies": { + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true + } + } + }, + "core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" + }, + "core-js-compat": { + "version": "3.47.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.47.0.tgz", + "integrity": "sha512-IGfuznZ/n7Kp9+nypamBhvwdwLsW6KC8IOaURw2doAK5e98AG3acVLdh0woOnEqCfUtS+Vu882JE4k/DAm3ItQ==", + "dev": true, + "requires": { + "browserslist": "^4.28.0" + } + }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "cosmiconfig": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.2.tgz", + "integrity": "sha512-GiNXLwAFPYHy25XmTPpafYvn3CLAkJ8FLsscq78MQd1Kh0OU6Yzhn4eV2MVF4G9WEQZoWEGltatdR+ntGPMl5A==", + "dev": true, + "requires": { + "is-directory": "^0.3.1", + "js-yaml": "^3.4.3", + "minimist": "^1.2.0", + "object-assign": "^4.1.0", + "os-homedir": "^1.0.1", + "parse-json": "^2.2.0", + "require-from-string": "^1.1.0" + }, + "dependencies": { + "require-from-string": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-1.2.1.tgz", + "integrity": "sha512-H7AkJWMobeskkttHyhTVtS0fxpFLjxhbfMa6Bk3wimP7sdPRGL3EyCg3sAQenFfAe+xQ+oAc85Nmtvq0ROM83Q==", + "dev": true + } + } + }, + "countup.js": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/countup.js/-/countup.js-1.9.3.tgz", + "integrity": "sha512-UHf2P/mFKaESqdPq+UdBJm/1y8lYdlcDd0nTZHNC8cxWoJwZr1Eldm1PpWui446vDl5Pd8PtRYkr3q6K4+Qa5A==" + }, + "crc": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", + "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "dev": true, + "optional": true, + "requires": { + "buffer": "^5.1.0" + } + }, + "crc-32": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz", + "integrity": "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==" + }, + "crc32-stream": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz", + "integrity": "sha512-NT7w2JVU7DFroFdYkeq8cywxrgjPHWkdX1wjpRQXPX5Asews3tA+Ght6lddQO5Mkumffp3X7GEqku3epj2toIw==", + "requires": { + "crc-32": "^1.2.0", + "readable-stream": "^3.4.0" + } + }, + "create-ecdh": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", + "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "cross-env": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz", + "integrity": "sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.5" + } + }, + "cross-spawn": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + } + } + }, + "cross-unzip": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/cross-unzip/-/cross-unzip-0.0.2.tgz", + "integrity": "sha512-nRJ5c+aqHz0OJVU4V1bqoaDggydfauK/Gha/H/ScBvuIjhZvl8YIpdWVzSR3vUhzCloqB1tvBdQ4V7J8qK7HzQ==", + "dev": true + }, + "crypto-browserify": { + "version": "3.12.1", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.1.tgz", + "integrity": "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.1", + "browserify-sign": "^4.2.3", + "create-ecdh": "^4.0.4", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "diffie-hellman": "^5.0.3", + "hash-base": "~3.0.4", + "inherits": "^2.0.4", + "pbkdf2": "^3.1.2", + "public-encrypt": "^4.0.3", + "randombytes": "^2.1.0", + "randomfill": "^1.0.4" + } + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true + }, + "css-color-names": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "integrity": "sha512-zj5D7X1U2h2zsXOAM8EyUREBnnts6H+Jm+d1M2DbiQQcUtnqgQsMrdo8JW9R80YFUmIdBZeMu5wvYM7hcgWP/Q==", + "dev": true + }, + "css-loader": { + "version": "0.28.11", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.28.11.tgz", + "integrity": "sha512-wovHgjAx8ZIMGSL8pTys7edA1ClmzxHeY6n/d97gg5odgsxEgKjULPR0viqyC+FWMCL9sfqoC/QCUBo62tLvPg==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "css-selector-tokenizer": "^0.7.0", + "cssnano": "^3.10.0", + "icss-utils": "^2.1.0", + "loader-utils": "^1.0.2", + "lodash.camelcase": "^4.3.0", + "object-assign": "^4.1.1", + "postcss": "^5.0.6", + "postcss-modules-extract-imports": "^1.2.0", + "postcss-modules-local-by-default": "^1.2.0", + "postcss-modules-scope": "^1.1.0", + "postcss-modules-values": "^1.3.0", + "postcss-value-parser": "^3.3.0", + "source-list-map": "^2.0.0" + } + }, + "css-select": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.3.0.tgz", + "integrity": "sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==", + "dev": true, + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "dependencies": { + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + } + } + }, + "css-selector-tokenizer": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.3.tgz", + "integrity": "sha512-jWQv3oCEL5kMErj4wRnK/OPoBi0D+P1FR2cDCKYPaMeD2eW3/mttav8HT4hT1CKopiJI/psEULjkClhvJo4Lvg==", + "dev": true, + "requires": { + "cssesc": "^3.0.0", + "fastparse": "^1.1.2" + } + }, + "css-what": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz", + "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==", + "dev": true + }, + "cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true + }, + "cssnano": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz", + "integrity": "sha512-0o0IMQE0Ezo4b41Yrm8U6Rp9/Ag81vNXY1gZMnT1XhO4DpjEf2utKERqWJbOoz3g1Wdc1d3QSta/cIuJ1wSTEg==", + "dev": true, + "requires": { + "autoprefixer": "^6.3.1", + "decamelize": "^1.1.2", + "defined": "^1.0.0", + "has": "^1.0.1", + "object-assign": "^4.0.1", + "postcss": "^5.0.14", + "postcss-calc": "^5.2.0", + "postcss-colormin": "^2.1.8", + "postcss-convert-values": "^2.3.4", + "postcss-discard-comments": "^2.0.4", + "postcss-discard-duplicates": "^2.0.1", + "postcss-discard-empty": "^2.0.1", + "postcss-discard-overridden": "^0.1.1", + "postcss-discard-unused": "^2.2.1", + "postcss-filter-plugins": "^2.0.0", + "postcss-merge-idents": "^2.1.5", + "postcss-merge-longhand": "^2.0.1", + "postcss-merge-rules": "^2.0.3", + "postcss-minify-font-values": "^1.0.2", + "postcss-minify-gradients": "^1.0.1", + "postcss-minify-params": "^1.0.4", + "postcss-minify-selectors": "^2.0.4", + "postcss-normalize-charset": "^1.1.0", + "postcss-normalize-url": "^3.0.7", + "postcss-ordered-values": "^2.1.0", + "postcss-reduce-idents": "^2.2.2", + "postcss-reduce-initial": "^1.0.0", + "postcss-reduce-transforms": "^1.0.3", + "postcss-svgo": "^2.1.1", + "postcss-unique-selectors": "^2.0.2", + "postcss-value-parser": "^3.2.3", + "postcss-zindex": "^2.0.1" + } + }, + "csso": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", + "integrity": "sha512-FmCI/hmqDeHHLaIQckMhMZneS84yzUZdrWDAvJVVxOwcKE1P1LF9FGmzr1ktIQSxOw6fl3PaQsmfg+GN+VvR3w==", + "dev": true, + "requires": { + "clap": "^1.0.9", + "source-map": "^0.5.3" + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==", + "dev": true, + "requires": { + "array-find-index": "^1.0.1" + } + }, + "cyclist": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.2.tgz", + "integrity": "sha512-0sVXIohTfLqVIW3kb/0n6IiWF3Ifj5nm2XaSrLq2DI6fKIGa2fYAZdk917rUneaeLVpYfFcyXE2ft0fe3remsA==", + "dev": true + }, + "d": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", + "integrity": "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==", + "dev": true, + "requires": { + "es5-ext": "^0.10.64", + "type": "^2.7.2" + } + }, + "data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + } + }, + "data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + } + }, + "data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + } + }, + "date-fns": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz", + "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==" + }, + "date-format": { + "version": "4.0.14", + "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==" + }, + "dayjs": { + "version": "1.11.19", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", + "integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==" + }, + "de-indent": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", + "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==", + "dev": true + }, + "debounce-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz", + "integrity": "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==", + "requires": { + "mimic-fn": "^3.0.0" + } + }, + "debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "requires": { + "ms": "^2.1.3" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "dev": true + }, + "decode-uri-component": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==" + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "deep-equal": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.2.tgz", + "integrity": "sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==", + "dev": true, + "requires": { + "is-arguments": "^1.1.1", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "regexp.prototype.flags": "^1.5.1" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "deepmerge": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", + "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==" + }, + "defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true + }, + "define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "requires": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + } + }, + "define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "requires": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", + "requires": { + "is-descriptor": "^1.0.0" + }, + "dependencies": { + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + } + } + }, + "defined": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", + "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", + "dev": true + }, + "del": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz", + "integrity": "sha512-7yjqSoVSlJzA4t/VUwazuEagGeANEKB3f/aNI//06pfKgwoCb7f6Q1gETN1sZzYaj6chTQ0AhIwDiPdfOjko4A==", + "dev": true, + "requires": { + "globby": "^6.1.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "p-map": "^1.1.1", + "pify": "^3.0.0", + "rimraf": "^2.2.8" + }, + "dependencies": { + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true + }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + }, + "des.js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", + "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha512-BDKtmHlOzwI7iRuEkhzsnPoi5ypEhWAJB5RvHWe1kMr06js3uK5B3734i3ui5Yd+wOJV1cpE4JnivPD283GU/A==", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "dev": true, + "optional": true + }, + "detect-node": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", + "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", + "dev": true + }, + "devtron": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/devtron/-/devtron-1.4.0.tgz", + "integrity": "sha512-BFWB7plA0PSprN1l3UnI4jtzV4xopPFaB87nF1Kl5yNjMwdHDxUVb8ov9ymQA1ZfeulbstVLYGDkUTJ8YZpKJw==", + "dev": true, + "requires": { + "accessibility-developer-tools": "^2.11.0", + "highlight.js": "^9.3.0", + "humanize-plus": "^1.8.1" + } + }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "dir-compare": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/dir-compare/-/dir-compare-2.4.0.tgz", + "integrity": "sha512-l9hmu8x/rjVC9Z2zmGzkhOEowZvW7pmYws5CWHutg8u1JgvsKWMx7Q/UODeu4djLZ4FgW5besw5yvMQnBHzuCA==", + "dev": true, + "requires": { + "buffer-equal": "1.0.0", + "colors": "1.0.3", + "commander": "2.9.0", + "minimatch": "3.0.4" + }, + "dependencies": { + "colors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", + "integrity": "sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw==", + "dev": true + }, + "commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==", + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + } + } + }, + "dir-glob": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz", + "integrity": "sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw==", + "dev": true, + "requires": { + "path-type": "^3.0.0" + } + }, + "dmg-builder": { + "version": "22.14.13", + "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-22.14.13.tgz", + "integrity": "sha512-xNOugB6AbIRETeU2uID15sUfjdZZcKdxK8xkFnwIggsM00PJ12JxpLNPTjcRoUnfwj3WrPjilrO64vRMwNItQg==", + "dev": true, + "requires": { + "app-builder-lib": "22.14.13", + "builder-util": "22.14.13", + "builder-util-runtime": "8.9.2", + "dmg-license": "^1.0.9", + "fs-extra": "^10.0.0", + "iconv-lite": "^0.6.2", + "js-yaml": "^4.1.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "dmg-license": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz", + "integrity": "sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==", + "dev": true, + "optional": true, + "requires": { + "@types/plist": "^3.0.1", + "@types/verror": "^1.10.3", + "crc": "^3.8.0", + "plist": "^3.0.4", + "smart-buffer": "^4.0.2", + "verror": "^1.10.0" + } + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + } + } + }, + "dns-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/dns-equal/-/dns-equal-1.0.0.tgz", + "integrity": "sha512-z+paD6YUQsk+AbGCEM4PrOXSss5gd66QfcVBFTKR/HpFL9jCqikS94HYwKww6fQyO7IxrIIyUu+g0Ka9tUS2Cg==", + "dev": true + }, + "dns-packet": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", + "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", + "dev": true, + "requires": { + "ip": "^1.1.0", + "safe-buffer": "^5.0.1" + } + }, + "dns-txt": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/dns-txt/-/dns-txt-2.0.2.tgz", + "integrity": "sha512-Ix5PrWjphuSoUXV/Zv5gaFHjnaJtb02F2+Si3Ht9dyJ87+Z/lMmy+dpNHtTGraNK958ndXq2i+GLkWsWHcKaBQ==", + "dev": true, + "requires": { + "buffer-indexof": "^1.0.0" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-converter": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", + "integrity": "sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA==", + "dev": true, + "requires": { + "utila": "~0.4" + } + }, + "dom-serializer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz", + "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==", + "requires": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + }, + "dependencies": { + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==" + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==" + } + } + }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, + "domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==" + }, + "domhandler": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "requires": { + "domelementtype": "1" + } + }, + "dompurify": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.3.0.tgz", + "integrity": "sha512-r+f6MYR1gGN1eJv0TVQbhA7if/U7P87cdPl3HN5rikqaBSBxLiCb/b9O+2eG0cxz0ghyU+mU1QkbsOwERMYlWQ==", + "requires": { + "@types/trusted-types": "^2.0.7" + } + }, + "domready": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/domready/-/domready-1.0.8.tgz", + "integrity": "sha512-uIzsOJUNk+AdGE9a6VDeessoMCzF8RrZvJCX/W8QtyfgdR6Uofn/MvRonih3OtCO79b2VDzDOymuiABrQ4z3XA==" + }, + "domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "dot-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-2.1.1.tgz", + "integrity": "sha512-HnM6ZlFqcajLsyudHq7LeeLDr2rFAVYtDv/hV5qchQEidSck8j9OPUsXY9KwJv/lHMtYlX4DjRQqwFYa+0r8Ug==", + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "dot-prop": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz", + "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==", + "requires": { + "is-obj": "^2.0.0" + } + }, + "dotenv": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==", + "dev": true + }, + "dotenv-expand": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz", + "integrity": "sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==", + "dev": true + }, + "draco3d": { + "version": "1.5.7", + "resolved": "https://registry.npmjs.org/draco3d/-/draco3d-1.5.7.tgz", + "integrity": "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==" + }, + "dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "requires": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + } + }, + "duplexer3": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.5.tgz", + "integrity": "sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA==", + "dev": true + }, + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "earcut": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.2.tgz", + "integrity": "sha512-X7hshQbLyMJ/3RPhyObLARM2sNxxmRALLKx1+NVFFnQ9gKzmCrxm9+uLIAdBcvc8FNLpctqlQ2V6AE92Ol9UDQ==" + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" + }, + "ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "requires": { + "jake": "^10.8.5" + } + }, + "electron": { + "version": "13.6.9", + "resolved": "https://registry.npmjs.org/electron/-/electron-13.6.9.tgz", + "integrity": "sha512-Es/sBy85NIuqsO9MW41PUCpwIkeinlTQ7g0ainfnmRAM2rmog3GBxVCaoV5dzEjwTF7TKG1Yr/E7Z3qHmlfWAg==", + "dev": true, + "requires": { + "@electron/get": "^1.0.1", + "@types/node": "^14.6.2", + "extract-zip": "^1.0.3" + }, + "dependencies": { + "@types/node": { + "version": "14.18.63", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", + "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==", + "dev": true + } + } + }, + "electron-builder": { + "version": "22.14.13", + "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-22.14.13.tgz", + "integrity": "sha512-3fgLxqF2TXVKiUPeg74O4V3l0l3j7ERLazo8sUbRkApw0+4iVAf2BJkHsHMaXiigsgCoEzK/F4/rB5rne/VAnw==", + "dev": true, + "requires": { + "@types/yargs": "^17.0.1", + "app-builder-lib": "22.14.13", + "builder-util": "22.14.13", + "builder-util-runtime": "8.9.2", + "chalk": "^4.1.1", + "dmg-builder": "22.14.13", + "fs-extra": "^10.0.0", + "is-ci": "^3.0.0", + "lazy-val": "^1.0.5", + "read-config-file": "6.2.0", + "update-notifier": "^5.1.0", + "yargs": "^17.0.1" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "electron-debug": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/electron-debug/-/electron-debug-1.5.0.tgz", + "integrity": "sha512-23CLHQXW+gMgdlJbeW1EinPX7DpwuLtfdzSuFL0OnsqEhKGJVJufAZTyq2hc3sr+R53rr3P+mJiYoR5VzAHKJQ==", + "dev": true, + "requires": { + "electron-is-dev": "^0.3.0", + "electron-localshortcut": "^3.0.0" + } + }, + "electron-devtools-installer": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/electron-devtools-installer/-/electron-devtools-installer-2.2.4.tgz", + "integrity": "sha512-b5kcM3hmUqn64+RUcHjjr8ZMpHS2WJ5YO0pnG9+P/RTdx46of/JrEjuciHWux6pE+On6ynWhHJF53j/EDJN0PA==", + "dev": true, + "requires": { + "7zip": "0.0.6", + "cross-unzip": "0.0.2", + "rimraf": "^2.5.2", + "semver": "^5.3.0" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + } + } + }, + "electron-is-accelerator": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/electron-is-accelerator/-/electron-is-accelerator-0.1.2.tgz", + "integrity": "sha512-fLGSAjXZtdn1sbtZxx52+krefmtNuVwnJCV2gNiVt735/ARUboMl8jnNC9fZEqQdlAv2ZrETfmBUsoQci5evJA==", + "dev": true + }, + "electron-is-dev": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-0.3.0.tgz", + "integrity": "sha512-jLttuuq8QK67n3mXmIe9pkrO7IH3LGIk12xJkhTmc852U2sCJaRAOpRGPSh+1Xnzck5v9escd9YXzuze9nGejg==", + "dev": true + }, + "electron-localshortcut": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/electron-localshortcut/-/electron-localshortcut-3.2.1.tgz", + "integrity": "sha512-DWvhKv36GsdXKnaFFhEiK8kZZA+24/yFLgtTwJJHc7AFgDjNRIBJZ/jq62Y/dWv9E4ypYwrVWN2bVrCYw1uv7Q==", + "dev": true, + "requires": { + "debug": "^4.0.1", + "electron-is-accelerator": "^0.1.0", + "keyboardevent-from-electron-accelerator": "^2.0.0", + "keyboardevents-areequal": "^0.2.1" + } + }, + "electron-osx-sign": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/electron-osx-sign/-/electron-osx-sign-0.5.0.tgz", + "integrity": "sha512-icoRLHzFz/qxzDh/N4Pi2z4yVHurlsCAYQvsCSG7fCedJ4UJXBS6PoQyGH71IfcqKupcKeK7HX/NkyfG+v6vlQ==", + "dev": true, + "requires": { + "bluebird": "^3.5.0", + "compare-version": "^0.1.2", + "debug": "^2.6.8", + "isbinaryfile": "^3.0.2", + "minimist": "^1.2.0", + "plist": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "isbinaryfile": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz", + "integrity": "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==", + "dev": true, + "requires": { + "buffer-alloc": "^1.2.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "electron-publish": { + "version": "22.14.13", + "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-22.14.13.tgz", + "integrity": "sha512-0oP3QiNj3e8ewOaEpEJV/o6Zrmy2VarVvZ/bH7kyO/S/aJf9x8vQsKVWpsdmSiZ5DJEHgarFIXrnO0ZQf0P9iQ==", + "dev": true, + "requires": { + "@types/fs-extra": "^9.0.11", + "builder-util": "22.14.13", + "builder-util-runtime": "8.9.2", + "chalk": "^4.1.1", + "fs-extra": "^10.0.0", + "lazy-val": "^1.0.5", + "mime": "^2.5.2" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "electron-store": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/electron-store/-/electron-store-8.2.0.tgz", + "integrity": "sha512-ukLL5Bevdil6oieAOXz3CMy+OgaItMiVBg701MNlG6W5RaC0AHN7rvlqTCmeb6O7jP0Qa1KKYTE0xV0xbhF4Hw==", + "requires": { + "conf": "^10.2.0", + "type-fest": "^2.17.0" + } + }, + "electron-to-chromium": { + "version": "1.5.260", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.260.tgz", + "integrity": "sha512-ov8rBoOBhVawpzdre+Cmz4FB+y66Eqrk6Gwqd8NGxuhv99GQ8XqMAr351KEkOt7gukXWDg6gJWEMKgL2RLMPtA==", + "dev": true + }, + "electron-wpc": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/electron-wpc/-/electron-wpc-2.0.1.tgz", + "integrity": "sha512-9bwyn8dtvFoyWnmj13TBPPPaiZcxJDmF14gKkBkSPw6FyENvKY8++ieU/S9kpRBIpUO5u4JPaQBhONqSF+mPGQ==" + }, + "element-ui": { + "version": "2.15.14", + "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.14.tgz", + "integrity": "sha512-2v9fHL0ZGINotOlRIAJD5YuVB8V7WKxrE9Qy7dXhRipa035+kF7WuU/z+tEmLVPBcJ0zt8mOu1DKpWcVzBK8IA==", + "requires": { + "async-validator": "~1.8.1", + "babel-helper-vue-jsx-merge-props": "^2.0.0", + "deepmerge": "^1.2.0", + "normalize-wheel": "^1.0.1", + "resize-observer-polyfill": "^1.5.0", + "throttle-debounce": "^1.0.1" + } + }, + "elliptic": { + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "dev": true, + "requires": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + }, + "end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "requires": { + "once": "^1.4.0" + } + }, + "enhanced-resolve": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", + "integrity": "sha512-ZaAux1rigq1e2nQrztHn4h2ugvpzZxs64qneNah+8Mh/K0CRqJFJc+UoXnUsq+1yX+DmQFPPdVqboKAJ89e0Iw==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.4.0", + "object-assign": "^4.0.1", + "tapable": "^0.2.7" + } + }, + "entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + }, + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==" + }, + "errno": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", + "dev": true, + "requires": { + "prr": "~1.0.1" + } + }, + "error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.24.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.0.tgz", + "integrity": "sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==", + "requires": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + } + }, + "es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + }, + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" + }, + "es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "requires": { + "es-errors": "^1.3.0" + } + }, + "es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "requires": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "requires": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + } + }, + "es5-ext": { + "version": "0.10.64", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.64.tgz", + "integrity": "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==", + "dev": true, + "requires": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "esniff": "^2.0.1", + "next-tick": "^1.1.0" + } + }, + "es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true, + "optional": true + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha512-mz3UqCh0uPCIqsw1SSAkB/p0rOzF/M0V++vyN7JqlPtSW/VsYgQBvVvqMLmfBuyMzTpLnNqi6JmcSizs4jy19A==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" + } + }, + "es6-set": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.6.tgz", + "integrity": "sha512-TE3LgGLDIBX332jq3ypv6bcOpkLO0AslAQo7p2VqX/1N46YNsvIWgvjojjSEnWEGWMhr1qUbYeTSir5J6mFHOw==", + "dev": true, + "requires": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "es6-iterator": "~2.0.3", + "es6-symbol": "^3.1.3", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + } + }, + "es6-symbol": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.4.tgz", + "integrity": "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==", + "dev": true, + "requires": { + "d": "^1.0.2", + "ext": "^1.7.0" + } + }, + "es6-templates": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/es6-templates/-/es6-templates-0.2.3.tgz", + "integrity": "sha512-sziUVwcvQ+lOsrTyUY0Q11ilAPj+dy7AQ1E1MgSaHTaaAFTffaa08QSlGNU61iyVaroyb6nYdBV6oD7nzn6i8w==", + "dev": true, + "requires": { + "recast": "~0.11.12", + "through": "~2.3.6" + } + }, + "es6-weak-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz", + "integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "^0.10.46", + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.1" + } + }, + "escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==" + }, + "escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha512-75IUQsusDdalQEW/G/2esa87J7raqdJF+Ca0/Xm5C3Q58Nr4yVYjZGp/P1+2xiEVgXRrA39dpRb8LcshajbqDQ==", + "dev": true, + "requires": { + "es6-map": "^0.1.3", + "es6-weak-map": "^2.0.1", + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint": { + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", + "integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==", + "dev": true, + "requires": { + "ajv": "^5.3.0", + "babel-code-frame": "^6.22.0", + "chalk": "^2.1.0", + "concat-stream": "^1.6.0", + "cross-spawn": "^5.1.0", + "debug": "^3.1.0", + "doctrine": "^2.1.0", + "eslint-scope": "^3.7.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^3.5.4", + "esquery": "^1.0.0", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.0.1", + "ignore": "^3.3.3", + "imurmurhash": "^0.1.4", + "inquirer": "^3.0.6", + "is-resolvable": "^1.0.0", + "js-yaml": "^3.9.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.4", + "minimatch": "^3.0.2", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "pluralize": "^7.0.0", + "progress": "^2.0.0", + "regexpp": "^1.0.1", + "require-uncached": "^1.0.3", + "semver": "^5.3.0", + "strip-ansi": "^4.0.0", + "strip-json-comments": "~2.0.1", + "table": "4.0.2", + "text-table": "~0.2.0" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "dev": true, + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==", + "dev": true + }, + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==", + "dev": true + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } + } + }, + "eslint-friendly-formatter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-friendly-formatter/-/eslint-friendly-formatter-3.0.0.tgz", + "integrity": "sha512-QJnemSH+g5i9yxQQNGQo1yM6VPR1PdNVIE8krQTNdTf3MDg9D22At/BfZpTPRkCdWEtiFCTZnZUOKTPNufqOYw==", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "coalescy": "1.0.0", + "extend": "^3.0.0", + "minimist": "^1.2.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "eslint-loader": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/eslint-loader/-/eslint-loader-1.9.0.tgz", + "integrity": "sha512-40aN976qSNPyb9ejTqjEthZITpls1SVKtwguahmH1dzGCwQU/vySE+xX33VZmD8csU0ahVNCtFlsPgKqRBiqgg==", + "dev": true, + "requires": { + "loader-fs-cache": "^1.0.0", + "loader-utils": "^1.0.2", + "object-assign": "^4.0.1", + "object-hash": "^1.1.4", + "rimraf": "^2.6.1" + }, + "dependencies": { + "object-hash": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-1.3.1.tgz", + "integrity": "sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA==", + "dev": true + } + } + }, + "eslint-plugin-html": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-3.2.2.tgz", + "integrity": "sha512-sSuafathF6ImPrzF2vUKEJY6Llq06d/riMTMzlsruDRDhNsQMYp2viUKo+jx+JRr1QevskeUpQcuptp2gN1XVQ==", + "dev": true, + "requires": { + "htmlparser2": "^3.8.2", + "semver": "^5.4.1" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + } + } + }, + "eslint-scope": { + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.3.tgz", + "integrity": "sha512-W+B0SvF4gamyCTmUc+uITPY0989iXVfKvhwtmJocTaYoc/3khEHmEmvfY/Gn9HA9VV75jrQECsHizkNw1b68FA==", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + }, + "esniff": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/esniff/-/esniff-2.0.1.tgz", + "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==", + "dev": true, + "requires": { + "d": "^1.0.1", + "es5-ext": "^0.10.62", + "event-emitter": "^0.3.5", + "type": "^2.7.2" + } + }, + "espree": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", + "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", + "dev": true, + "requires": { + "acorn": "^5.5.0", + "acorn-jsx": "^3.0.0" + } + }, + "esprima": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", + "integrity": "sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A==", + "dev": true + }, + "esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } + }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", + "dev": true + }, + "events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true + }, + "eventsource": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz", + "integrity": "sha512-bbB5tEuvC+SuRUG64X8ghvjgiRniuA4WlehWbFnoN4z6TxDXpyX+BMHF7rMgZAqoe+EbyNRUbHN0uuP9phy5jQ==", + "dev": true, + "requires": { + "original": ">=0.0.5" + } + }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha512-RztN09XglpYI7aBBrJCPW95jEH7YF1UEPOoX9yDhUTPdp7mK+CQvnLTuD10BNXZ3byLTu2uehZ8EcKT/4CGiFw==", + "dev": true, + "requires": { + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==", + "dev": true + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } + } + }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha512-MsG3prOVw1WtLXAZbM3KiYtooKR1LvxHh3VHsVtIy0uiUu8usxgB/94DP2HxtD/661lLdB6yzQ09lGJSQr6nkg==", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "express": { + "version": "4.21.2", + "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "body-parser": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==" + }, + "finalhandler": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + } + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + }, + "merge-descriptors": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==" + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "qs": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "requires": { + "side-channel": "^1.0.6" + } + }, + "raw-body": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + } + } + }, + "ext": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", + "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", + "dev": true, + "requires": { + "type": "^2.7.2" + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "requires": { + "is-extendable": "^0.1.0" + } + }, + "external-editor": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", + "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", + "dev": true, + "requires": { + "chardet": "^0.4.0", + "iconv-lite": "^0.4.17", + "tmp": "^0.0.33" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.2" + } + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "extract-text-webpack-plugin": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-3.0.2.tgz", + "integrity": "sha512-bt/LZ4m5Rqt/Crl2HiKuAl/oqg0psx1tsTLkvWbJen1CtD+fftkZhMaQ9HOtY2gWsl2Wq+sABmMVi9z3DhKWQQ==", + "dev": true, + "requires": { + "async": "^2.4.1", + "loader-utils": "^1.1.0", + "schema-utils": "^0.3.0", + "webpack-sources": "^1.0.1" + }, + "dependencies": { + "async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + } + } + }, + "extract-zip": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz", + "integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==", + "dev": true, + "requires": { + "concat-stream": "^1.6.2", + "debug": "^2.6.9", + "mkdirp": "^0.5.4", + "yauzl": "^2.10.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "extsprintf": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz", + "integrity": "sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==", + "dev": true, + "optional": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==" + }, + "fastparse": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", + "dev": true + }, + "faye-websocket": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", + "integrity": "sha512-Xhj93RXbMSq8urNCUq4p9l0P6hnySJ/7YNRhYNug0bLOuii7pKO7xQFb5mx9xZXWCar88pLPb805PvUkwrLZpQ==", + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fbx2gltf": { + "version": "0.9.7-p1", + "resolved": "https://registry.npmjs.org/fbx2gltf/-/fbx2gltf-0.9.7-p1.tgz", + "integrity": "sha512-8S5rtp8fWCFjyHEQDTtrtXZOgvlzqkx3P1QsCptzvt9Ev3oRxRIaZ1XcXAQnfLoy1w3l/H8qhHdzDqZmVyhd9w==", + "requires": { + "rimraf": "^2.6.2" + } + }, + "fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "dev": true, + "requires": { + "pend": "~1.2.0" + } + }, + "fd-slicer2": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fd-slicer2/-/fd-slicer2-1.2.0.tgz", + "integrity": "sha512-3lBUNUckhMZduCc4g+Pw4Ve16LD9vpX9b8qUkkKq2mgDRLYWzblszZH2luADnJqjJe+cypngjCuKRm/IW12rRw==", + "requires": { + "pend": "^1.2.0" + } + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "file-entry-cache": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", + "integrity": "sha512-uXP/zGzxxFvFfcZGgBIwotm+Tdc55ddPAzF7iHshP4YGaXMww7rSF9peD9D1sui5ebONg5UobsZv+FfgEpGv/w==", + "dev": true, + "requires": { + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" + } + }, + "file-loader": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-0.11.2.tgz", + "integrity": "sha512-N+uhF3mswIFeziHQjGScJ/yHXYt3DiLBeC+9vWW+WjUBiClMSOlV1YrXQi+7KM2aA3Rn4Bybgv+uXFQbfkzpvg==", + "dev": true, + "requires": { + "loader-utils": "^1.0.2" + } + }, + "file-saver": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", + "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==" + }, + "filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + } + }, + "finalhandler": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.0.tgz", + "integrity": "sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==", + "requires": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "dependencies": { + "encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==" + } + } + }, + "find-cache-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", + "integrity": "sha512-46TFiBOzX7xq/PcSWfFwkyjpemdRnMe31UQF+os0y+1W3k95f6R4SEt02Hj4p3X0Mir9gfrkmOtshFidS0VPUg==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^1.0.0", + "pkg-dir": "^2.0.0" + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "requires": { + "locate-path": "^3.0.0" + } + }, + "flat-cache": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.4.tgz", + "integrity": "sha512-VwyB3Lkgacfik2vhqR4uv2rvebqmDvFu4jlN/C1RzWoJEo8I7z4Q404oiqYCkq41mni8EzQnm95emU9seckwtg==", + "dev": true, + "requires": { + "circular-json": "^0.3.1", + "graceful-fs": "^4.1.2", + "rimraf": "~2.6.2", + "write": "^0.2.1" + }, + "dependencies": { + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==" + }, + "flatten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.3.tgz", + "integrity": "sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==", + "dev": true + }, + "flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "flushwritable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/flushwritable/-/flushwritable-1.0.0.tgz", + "integrity": "sha512-3VELfuWCLVzt5d2Gblk8qcqFro6nuwvxwMzHaENVDHI7rxcBRtMCwTk/E9FXcgh+82DSpavPNDueA9+RxXJoFg==" + }, + "follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==" + }, + "for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "requires": { + "is-callable": "^1.2.7" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==" + }, + "form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "dependencies": { + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "requires": { + "mime-db": "1.52.0" + } + } + } + }, + "forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + }, + "frac": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz", + "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==" + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", + "requires": { + "map-cache": "^0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" + }, + "fs-extra": { + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.2.tgz", + "integrity": "sha512-Xr9F6z6up6Ws+NjzMCZc6WXg2YFRlrLP9NQDO3VQrWrfiojdhS56TzueT88ze0uBdCTwEIhQ3ptnmKeWGFAe0A==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha512-gehEzmPn2nAwr39eay+x3X34Ra+M2QlVUTLhkXPjWdeO8RF9kszk116avgBJM3ZyNHgHXBNx+VmPaFC36k0PzA==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "iferr": "^0.1.5", + "imurmurhash": "^0.1.4", + "readable-stream": "1 || 2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" + }, + "function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + } + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g==", + "dev": true + }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" + }, + "generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==" + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" + }, + "get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + } + }, + "get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "requires": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + } + }, + "get-ready": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-ready/-/get-ready-1.0.0.tgz", + "integrity": "sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw==" + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==" + }, + "glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "optional": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "global-agent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", + "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", + "dev": true, + "optional": true, + "requires": { + "boolean": "^3.0.1", + "es6-error": "^4.1.1", + "matcher": "^3.0.0", + "roarr": "^2.15.3", + "semver": "^7.3.2", + "serialize-error": "^7.0.1" + } + }, + "global-dirs": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.1.tgz", + "integrity": "sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==", + "dev": true, + "requires": { + "ini": "2.0.0" + }, + "dependencies": { + "ini": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", + "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", + "dev": true + } + } + }, + "global-tunnel-ng": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz", + "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==", + "dev": true, + "optional": true, + "requires": { + "encodeurl": "^1.0.2", + "lodash": "^4.17.10", + "npm-conf": "^1.1.3", + "tunnel": "^0.0.6" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "requires": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + } + }, + "globby": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", + "integrity": "sha512-yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g==", + "dev": true, + "requires": { + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" + } + }, + "gltf-pipeline": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/gltf-pipeline/-/gltf-pipeline-4.3.0.tgz", + "integrity": "sha512-hZM3zagd87Kzaoutsg1vwWWpPXyTt4h4rysUuXdDFy48m0YZwaqkka34Q0Keutgo7DvtvvrkdAI4ShdW439jlA==", + "requires": { + "bluebird": "^3.7.2", + "cesium": "^1.131.0", + "draco3d": "^1.5.7", + "fs-extra": "^11.3.0", + "mime": "^3.0.0", + "object-hash": "^3.0.0", + "yargs": "^17.7.2" + }, + "dependencies": { + "mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==" + } + } + }, + "gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" + }, + "got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dev": true, + "requires": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "graceful-readlink": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", + "integrity": "sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w==", + "dev": true + }, + "grapheme-splitter": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", + "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==" + }, + "handle-thing": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.1.tgz", + "integrity": "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==", + "dev": true + }, + "has": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz", + "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==", + "dev": true + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg==", + "requires": { + "ansi-regex": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" + } + } + }, + "has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==" + }, + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==" + }, + "has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "requires": { + "es-define-property": "^1.0.0" + } + }, + "has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "requires": { + "dunder-proto": "^1.0.0" + } + }, + "has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" + }, + "has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "requires": { + "has-symbols": "^1.0.3" + } + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "dev": true + }, + "hash-base": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.5.tgz", + "integrity": "sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "hash-sum": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz", + "integrity": "sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA==" + }, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "requires": { + "function-bind": "^1.1.2" + } + }, + "he": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" + }, + "header-case": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/header-case/-/header-case-1.0.1.tgz", + "integrity": "sha512-i0q9mkOeSuhXw6bGgiQCCBgY/jlZuV/7dZXyZ9c6LcBrqwvT8eT719E9uxE5LiZftdl+z81Ugbg/VvXV4OJOeQ==", + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.1.3" + } + }, + "highlight.js": { + "version": "9.18.5", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.18.5.tgz", + "integrity": "sha512-a5bFyofd/BHCX52/8i8uJkjr9DYwXIPnM/plwI6W7ezItLGqzt7X2G2nXuYSfsIJdkwwj/g9DG1LkcGJI/dDoA==", + "dev": true + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "dev": true, + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha512-ycURW7oUxE2sNiPVw1HVEFsW+ecOpJ5zaj7eC0RlwhibhRBod20muUN8qu/gzx956YrLolVvs1MTXwKgC2rVEg==", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" + } + }, + "hosted-git-info": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", + "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "hpack.js": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", + "integrity": "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "html-comment-regex": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.2.tgz", + "integrity": "sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ==", + "dev": true + }, + "html-entities": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-1.4.0.tgz", + "integrity": "sha512-8nxjcBcd8wovbeKx7h3wTji4e6+rhaVuPNpMqwWgnHh+N9ToqsCs6XztWRBPQ+UtzsoMAdKZtUENoVzU/EMtZA==", + "dev": true + }, + "html-minifier": { + "version": "3.5.21", + "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.21.tgz", + "integrity": "sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA==", + "dev": true, + "requires": { + "camel-case": "3.0.x", + "clean-css": "4.2.x", + "commander": "2.17.x", + "he": "1.2.x", + "param-case": "2.1.x", + "relateurl": "0.2.x", + "uglify-js": "3.4.x" + }, + "dependencies": { + "commander": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==", + "dev": true + } + } + }, + "html-webpack-plugin": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-2.30.1.tgz", + "integrity": "sha512-TKQYvHTJYUwPgXzwUF3EwPPkyQyvzfz+6s8Fw2eamxl0cRin1tDnYppcDYWz8UIoYMX4CgatplRq18odzmpAWw==", + "dev": true, + "requires": { + "bluebird": "^3.4.7", + "html-minifier": "^3.2.3", + "loader-utils": "^0.2.16", + "lodash": "^4.17.3", + "pretty-error": "^2.0.2", + "toposort": "^1.0.0" + }, + "dependencies": { + "big.js": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", + "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", + "dev": true + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha512-knHEZMgs8BB+MInokmNTg/OyPlAddghe1YBgNwJBc5zsJi/uyIcXoSDsL/W9ymOsBoBGdPIHXYJ9+qKFwRwDng==", + "dev": true + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw==", + "dev": true + }, + "loader-utils": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", + "integrity": "sha512-tiv66G0SmiOx+pLWMtGEkfSEejxvb6N6uRrQjfWJIT79W9GMpgKeCAmm9aVBKtd4WEgntciI8CsGqjpDoCWJug==", + "dev": true, + "requires": { + "big.js": "^3.1.3", + "emojis-list": "^2.0.0", + "json5": "^0.5.0", + "object-assign": "^4.0.1" + } + } + } + }, + "htmlparser2": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", + "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", + "requires": { + "domelementtype": "^1.3.1", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^3.1.1" + } + }, + "http-cache-semantics": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", + "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", + "dev": true + }, + "http-deceiver": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/http-deceiver/-/http-deceiver-1.2.7.tgz", + "integrity": "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==", + "dev": true + }, + "http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "requires": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + } + }, + "http-parser-js": { + "version": "0.5.10", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.10.tgz", + "integrity": "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA==", + "dev": true + }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dev": true, + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, + "http-proxy-middleware": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-0.19.2.tgz", + "integrity": "sha512-aYk1rTKqLTus23X3L96LGNCGNgWpG4cG0XoZIT1GUPhhulEHX/QalnO6Vbo+WmKWi4AL2IidjuC0wZtbpg0yhQ==", + "dev": true, + "requires": { + "http-proxy": "^1.18.1", + "is-glob": "^4.0.0", + "lodash": "^4.17.11", + "micromatch": "^3.1.10" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + } + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", + "dev": true + }, + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "humanize-plus": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/humanize-plus/-/humanize-plus-1.8.2.tgz", + "integrity": "sha512-jaLeQyyzjjINGv7O9JJegjsaUcWjSj/1dcXvLEgU3pGdqCdP1PiC/uwr+saJXhTNBHZtmKnmpXyazgh+eceRxA==", + "dev": true + }, + "iconv-lite": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "icss-replace-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", + "integrity": "sha512-chIaY3Vh2mh2Q3RGXttaDIzeiPvaVXJ+C4DAh/w3c37SKZ/U6PGMmuicR2EQQp9bKG8zLMCl7I+PtIoOOPp8Gg==", + "dev": true + }, + "icss-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-2.1.0.tgz", + "integrity": "sha512-bsVoyn/1V4R1kYYjLcWLedozAM4FClZUdjE9nIr8uWY7xs78y9DATgwz2wGU7M+7z55KenmmTkN2DVJ7bqzjAA==", + "dev": true, + "requires": { + "postcss": "^6.0.1" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA==", + "dev": true + }, + "ignore": { + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", + "dev": true + }, + "image-size": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.5.5.tgz", + "integrity": "sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ==" + }, + "immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + }, + "immutable": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.4.tgz", + "integrity": "sha512-p6u1bG3YSnINT5RQmx/yRZBpenIl30kVxkTLDyHLIMk0gict704Q9n+thfDI7lTRm9vXdDYutVzXhzcThxTnXA==", + "dev": true + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha512-m7ZEHgtw69qOGw+jwxXkHlrlIPdTGkyh66zXZ1ajZbxkDBNjSY/LGbmjc7h0s2ELsUDTAhFr55TrPSSqJGPG0A==", + "dev": true + }, + "import-local": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz", + "integrity": "sha512-vAaZHieK9qjGo58agRBg+bhHX3hoTZU/Oa3GESWLz7t1U62fk63aHuDJJEteXoDeTCcPmUT+z38gkHPZkkmpmQ==", + "dev": true, + "requires": { + "pkg-dir": "^2.0.0", + "resolve-cwd": "^2.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha512-bup+4tap3Hympa+JBJUG7XuOsdNQ6fxt0MHyXMKuLBKn0OqsTfvUxkUrroEX1+B2VsSHvCjiIcZVxRtYa4nllA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "ini": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz", + "integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==" + }, + "inquirer": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", + "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", + "dev": true, + "requires": { + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.0", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^2.0.4", + "figures": "^2.0.0", + "lodash": "^4.3.0", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rx-lite": "^4.0.8", + "rx-lite-aggregates": "^4.0.8", + "string-width": "^2.1.0", + "strip-ansi": "^4.0.0", + "through": "^2.3.6" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "internal-ip": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/internal-ip/-/internal-ip-1.2.0.tgz", + "integrity": "sha512-DzGfTasXPmwizQP4XV2rR6r2vp8TjlOpMnJqG9Iy2i1pl1lkZdZj5rSpIc7YFGX2nS46PPgAGEyT+Q5hE2FB2g==", + "dev": true, + "requires": { + "meow": "^3.3.0" + } + }, + "internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "requires": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + } + }, + "interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", + "dev": true + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==", + "dev": true + }, + "ip": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.9.tgz", + "integrity": "sha512-cyRxvOEpNHNtchU3Ln9KC/auJgup87llfQpQ+t5ghoC/UhL16SWzbueiCsdTnWmqAWl7LadfuwhlqmtOaqMHdQ==", + "dev": true + }, + "ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + }, + "is-absolute-url": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", + "integrity": "sha512-vOx7VprsKyllwjSkLV79NIhpyLfr3jAp7VaTCMXOJHu4m0Ew1CZ2fcjASwmV1jI3BWuWHB013M48eyeldk9gYg==", + "dev": true + }, + "is-accessor-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz", + "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==", + "requires": { + "hasown": "^2.0.0" + } + }, + "is-arguments": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz", + "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==", + "dev": true, + "requires": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + } + }, + "is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "requires": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + } + }, + "is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "requires": { + "has-bigints": "^1.0.2" + } + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" + }, + "is-ci": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", + "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", + "dev": true, + "requires": { + "ci-info": "^3.2.0" + } + }, + "is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "requires": { + "hasown": "^2.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz", + "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==", + "requires": { + "hasown": "^2.0.0" + } + }, + "is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "requires": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + } + }, + "is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "requires": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + } + }, + "is-descriptor": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz", + "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==", + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw==", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true + }, + "is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-finite": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.1.0.tgz", + "integrity": "sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" + }, + "is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "requires": { + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + } + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-installed-globally": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", + "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", + "dev": true, + "requires": { + "global-dirs": "^3.0.0", + "is-path-inside": "^3.0.2" + }, + "dependencies": { + "is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true + } + } + }, + "is-lower-case": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-lower-case/-/is-lower-case-1.1.3.tgz", + "integrity": "sha512-+5A1e/WJpLLXZEDlgz4G//WYSHyQBD32qa4Jd3Lw06qQlv3fJHnp3YIHjTQSGzHMgzmVKz2ZP3rBxTHkPw/lxA==", + "dev": true, + "requires": { + "lower-case": "^1.1.0" + } + }, + "is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==" + }, + "is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==" + }, + "is-npm": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", + "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", + "dev": true + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw==", + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dev": true, + "requires": { + "is-path-inside": "^1.0.0" + } + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g==", + "dev": true, + "requires": { + "path-is-inside": "^1.0.1" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==" + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "^3.0.1" + } + }, + "is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "requires": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==" + }, + "is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + }, + "is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "requires": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + } + }, + "is-svg": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz", + "integrity": "sha512-Ya1giYJUkcL/94quj0+XGcmts6cETPBW1MiFz1ReJrnDJ680F52qpAEGAEGU0nq96FRGIGPx6Yo1CyPXcOoyGw==", + "dev": true, + "requires": { + "html-comment-regex": "^1.1.0" + } + }, + "is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "requires": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + } + }, + "is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "requires": { + "which-typed-array": "^1.1.16" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "dev": true + }, + "is-upper-case": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-upper-case/-/is-upper-case-1.1.2.tgz", + "integrity": "sha512-GQYSJMgfeAmVwh9ixyk888l7OIhNAGKtY6QA+IrWlu9MDTCaXmeozOZ2S9Knj7bQwBO/H6J2kb+pbyTUiMNbsw==", + "dev": true, + "requires": { + "upper-case": "^1.1.0" + } + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", + "dev": true + }, + "is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==" + }, + "is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "requires": { + "call-bound": "^1.0.3" + } + }, + "is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "requires": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + } + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" + }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha512-gfygJYZ2gLTDlmbWMI0CE2MwnFzSN/2SZfkMlItC4K/JBlsWVDB0bO6XhqcY13YXE7iMcAJnzTCJjPiTeJJ0Mw==", + "dev": true + }, + "is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "isbinaryfile": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-4.0.10.tgz", + "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" + }, + "jake": { + "version": "10.9.4", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz", + "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==", + "dev": true, + "requires": { + "async": "^3.2.6", + "filelist": "^1.0.4", + "picocolors": "^1.1.1" + } + }, + "jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" + }, + "js-base64": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", + "integrity": "sha512-pZe//GGmwJndub7ZghVHz7vjb2LgC1m8B07Au3eYqeqv9emhESByMXxaEgkUkEqJe87oBbSniGYoQNIBklc7IQ==" + }, + "js-cookie": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz", + "integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ==" + }, + "js-md5": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/js-md5/-/js-md5-0.7.3.tgz", + "integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==" + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", + "integrity": "sha512-eIlkGty7HGmntbV6P/ZlAsoncFLGsNoM27lkTzS+oneY/EiNhj+geqD9ezg/ip+SW6Var0BJU2JtV0vEUZpWVQ==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^2.6.0" + } + }, + "jsep": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", + "integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==" + }, + "jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ==", + "dev": true + }, + "json-loader": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", + "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", + "dev": true + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + }, + "json-schema-typed": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz", + "integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==" + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "optional": true + }, + "json3": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.3.tgz", + "integrity": "sha512-c7/8mbUsKigAbLkD5B010BK4D9LZm7A1pNItkEwiUZRpIN66exu/e7YQWysGun+TRKaJp8MhemM+VkfWv42aCA==", + "dev": true + }, + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "requires": { + "minimist": "^1.2.0" + } + }, + "jsonfile": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.0.tgz", + "integrity": "sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "requires": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + }, + "dependencies": { + "pako": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "kdbush": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/kdbush/-/kdbush-4.0.2.tgz", + "integrity": "sha512-WbCVYJ27Sz8zi9Q7Q0xHC+05iwkm3Znipc2XTlrnJbsHMYktW4hPhXUE8Ys1engBrvffoSCqbil1JQAa7clRpA==" + }, + "keyboardevent-from-electron-accelerator": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/keyboardevent-from-electron-accelerator/-/keyboardevent-from-electron-accelerator-2.0.0.tgz", + "integrity": "sha512-iQcmNA0M4ETMNi0kG/q0h/43wZk7rMeKYrXP7sqKIJbHkTU8Koowgzv+ieR/vWJbOwxx5nDC3UnudZ0aLSu4VA==", + "dev": true + }, + "keyboardevents-areequal": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/keyboardevents-areequal/-/keyboardevents-areequal-0.2.2.tgz", + "integrity": "sha512-Nv+Kr33T0mEjxR500q+I6IWisOQ0lK1GGOncV0kWE6n4KFmpcu7RUX5/2B0EUtX51Cb0HjZ9VJsSY3u4cBa0kw==", + "dev": true + }, + "keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, + "killable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", + "integrity": "sha512-LzqtLKlUwirEUyl/nicirVmNiPvYs7l5n8wOPP7fyJVpUPkvCnW/vuiXGpylGUlnPDnB7311rARzAt3Mhswpjg==", + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + }, + "ktx-parse": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ktx-parse/-/ktx-parse-1.1.0.tgz", + "integrity": "sha512-mKp3y+FaYgR7mXWAbyyzpa/r1zDWeaunH+INJO4fou3hb45XuNSwar+7llrRyvpMWafxSIi99RNFJ05MHedaJQ==" + }, + "latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dev": true, + "requires": { + "package-json": "^6.3.0" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha512-RE2g0b5VGZsOCFOCgP7omTRYFqydmZkBwl5oNnQ1lDYC57uyO9KqNnNVxT7COSHTxrRCWVcAVOcbjk+tvh/rgQ==", + "dev": true + }, + "lazy-val": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/lazy-val/-/lazy-val-1.0.5.tgz", + "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==", + "dev": true + }, + "lazystream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.1.tgz", + "integrity": "sha512-b94GiNHQNy6JNTrt5w6zNyffMrNkXZb3KTkCZJb2V1xaEGCk093vkZ2jk3tpaeP33/OiXC+WvK9AxUebnf5nbw==", + "requires": { + "readable-stream": "^2.0.5" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", + "dev": true, + "requires": { + "invert-kv": "^1.0.0" + } + }, + "lerc": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lerc/-/lerc-2.0.0.tgz", + "integrity": "sha512-7qo1Mq8ZNmaR4USHHm615nEW2lPeeWJ3bTyoqFbd35DLx0LUH7C6ptt5FDCTAlbIzs3+WKrk5SkJvw8AFDE2hg==" + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "requires": { + "immediate": "~3.0.5" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha512-3p6ZOGNbiX4CdvEd1VcE6yi78UrGNpjHO33noGwHCnT/o2fyllJDepsm8+mFFv/DvtwFHht5HIHSyOy5a+ChVQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "loader-fs-cache": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/loader-fs-cache/-/loader-fs-cache-1.0.3.tgz", + "integrity": "sha512-ldcgZpjNJj71n+2Mf6yetz+c9bM4xpKtNds4LbqXzU/PTdeAX0g3ytnU1AJMEcTk2Lex4Smpe3Q/eCTsvUBxbA==", + "dev": true, + "requires": { + "find-cache-dir": "^0.1.1", + "mkdirp": "^0.5.1" + }, + "dependencies": { + "find-cache-dir": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", + "integrity": "sha512-Z9XSBoNE7xQiV6MSgPuCfyMokH2K7JdpRkOYE1+mu3d4BFJtx3GW+f6Bo4q8IX6rlf5MYbLBKW0pjl2cWdkm2A==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "mkdirp": "^0.5.1", + "pkg-dir": "^1.0.0" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "pkg-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", + "integrity": "sha512-c6pv3OE78mcZ92ckebVDqg0aWSoKhOTbwCV6qbCWMk546mAL9pZln0+QsN/yQ7fkucd4+yJPLrCBXNt8Ruk+Eg==", + "dev": true, + "requires": { + "find-up": "^1.0.0" + } + } + } + }, + "loader-runner": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", + "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", + "dev": true + }, + "loader-utils": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^1.0.1" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "lodash._arraycopy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._arraycopy/-/lodash._arraycopy-3.0.0.tgz", + "integrity": "sha512-RHShTDnPKP7aWxlvXKiDT6IX2jCs6YZLCtNhOru/OX2Q/tzX295vVBK5oX1ECtN+2r86S0Ogy8ykP1sgCZAN0A==", + "dev": true + }, + "lodash._arrayeach": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._arrayeach/-/lodash._arrayeach-3.0.0.tgz", + "integrity": "sha512-Mn7HidOVcl3mkQtbPsuKR0Fj0N6Q6DQB77CtYncZcJc0bx5qv2q4Gl6a0LC1AN+GSxpnBDNnK3CKEm9XNA4zqQ==", + "dev": true + }, + "lodash._baseassign": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz", + "integrity": "sha512-t3N26QR2IdSN+gqSy9Ds9pBu/J1EAFEshKlUHpJG3rvyJOYgcELIxcIeKKfZk7sjOz11cFfzJRsyFry/JyabJQ==", + "dev": true, + "requires": { + "lodash._basecopy": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._baseclone": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-3.3.0.tgz", + "integrity": "sha512-1K0dntf2dFQ5my0WoGKkduewR6+pTNaqX03kvs45y7G5bzl4B3kTR4hDfJIc2aCQDeLyQHhS280tc814m1QC1Q==", + "dev": true, + "requires": { + "lodash._arraycopy": "^3.0.0", + "lodash._arrayeach": "^3.0.0", + "lodash._baseassign": "^3.0.0", + "lodash._basefor": "^3.0.0", + "lodash.isarray": "^3.0.0", + "lodash.keys": "^3.0.0" + } + }, + "lodash._basecopy": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz", + "integrity": "sha512-rFR6Vpm4HeCK1WPGvjZSJ+7yik8d8PVUdCJx5rT2pogG4Ve/2ZS7kfmO5l5T2o5V2mqlNIfSF5MZlr1+xOoYQQ==", + "dev": true + }, + "lodash._basefor": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash._basefor/-/lodash._basefor-3.0.3.tgz", + "integrity": "sha512-6bc3b8grkpMgDcVJv9JYZAk/mHgcqMljzm7OsbmcE2FGUMmmLQTPHlh/dFqR8LA0GQ7z4K67JSotVKu5058v1A==", + "dev": true + }, + "lodash._bindcallback": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz", + "integrity": "sha512-2wlI0JRAGX8WEf4Gm1p/mv/SZ+jLijpj0jyaE/AXeuQphzCgD8ZQW4oSpoN8JAopujOFGU3KMuq7qfHBWlGpjQ==", + "dev": true + }, + "lodash._createassigner": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lodash._createassigner/-/lodash._createassigner-3.1.1.tgz", + "integrity": "sha512-LziVL7IDnJjQeeV95Wvhw6G28Z8Q6da87LWKOPWmzBLv4u6FAT/x5v00pyGW0u38UoogNF2JnD3bGgZZDaNEBw==", + "dev": true, + "requires": { + "lodash._bindcallback": "^3.0.0", + "lodash._isiterateecall": "^3.0.0", + "lodash.restparam": "^3.0.0" + } + }, + "lodash._getnative": { + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/lodash._getnative/-/lodash._getnative-3.9.1.tgz", + "integrity": "sha512-RrL9VxMEPyDMHOd9uFbvMe8X55X16/cGM5IgOKgRElQZutpX89iS6vwl64duTV1/16w5JY7tuFNXqoekmh1EmA==", + "dev": true + }, + "lodash._isiterateecall": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz", + "integrity": "sha512-De+ZbrMu6eThFti/CSzhRvTKMgQToLxbij58LMfM8JnYDNSOjkjTCIaa8ixglOeGh2nyPlakbt5bJWJ7gvpYlQ==", + "dev": true + }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true + }, + "lodash.clonedeep": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz", + "integrity": "sha512-I8MpGh5z+6OixDAAb21teLSZDmqVPjlq02Q7ZFrbn2xnQHYYuJf6on/94SWpF/p0s3p/cEv/53ro4AhDOfCR0g==", + "dev": true, + "requires": { + "lodash._baseclone": "^3.0.0", + "lodash._bindcallback": "^3.0.0" + } + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "lodash.defaults": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", + "integrity": "sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==" + }, + "lodash.difference": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", + "integrity": "sha512-dS2j+W26TQ7taQBGN8Lbbq04ssV3emRw4NY58WErlTO29pIqS0HmoT5aJ9+TUQ1N3G+JOZSji4eugsWwGp9yPA==" + }, + "lodash.flatten": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "integrity": "sha512-C5N2Z3DgnnKr0LOpv/hKCgKdb7ZZwafIrsesve6lmzvZIRZRGaZ/l6Q8+2W7NaT+ZwO3fFlSCzCzrDCFdJfZ4g==" + }, + "lodash.isarguments": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz", + "integrity": "sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==", + "dev": true + }, + "lodash.isarray": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/lodash.isarray/-/lodash.isarray-3.0.4.tgz", + "integrity": "sha512-JwObCrNJuT0Nnbuecmqr5DgtuBppuCvGD9lxjFpAzwnVtdGoDQ1zig+5W8k5/6Gcn0gZ3936HDAlGd28i7sOGQ==", + "dev": true + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" + }, + "lodash.istypedarray": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/lodash.istypedarray/-/lodash.istypedarray-3.0.6.tgz", + "integrity": "sha512-lGWJ6N8AA3KSv+ZZxlTdn4f6A7kMfpJboeyvbFdE7IU9YAgweODqmOgdUHOA+c6lVWeVLysdaxciFXi+foVsWw==", + "dev": true + }, + "lodash.keys": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-3.1.2.tgz", + "integrity": "sha512-CuBsapFjcubOGMn3VD+24HOAPxM79tH+V6ivJL3CHYjtrawauDJHUk//Yew9Hvc6e9rbCrURGk8z6PC+8WJBfQ==", + "dev": true, + "requires": { + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "lodash.keysin": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/lodash.keysin/-/lodash.keysin-3.0.8.tgz", + "integrity": "sha512-YDB/5xkL3fBKFMDaC+cfGV00pbiJ6XoJIfRmBhv7aR6wWtbCW6IzkiWnTfkiHTF6ALD7ff83dAtB3OEaSoyQPg==", + "dev": true, + "requires": { + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0" + } + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "lodash.merge": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-3.3.2.tgz", + "integrity": "sha512-ZgGZpRhWLjivGUbjtApZR4HyLv/UAyoYqESVYkK4aLBJVHRrbFpG+GNnE9JPijliME4LkKM0SFI/WyOiBiv1+w==", + "dev": true, + "requires": { + "lodash._arraycopy": "^3.0.0", + "lodash._arrayeach": "^3.0.0", + "lodash._createassigner": "^3.0.0", + "lodash._getnative": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.isarray": "^3.0.0", + "lodash.isplainobject": "^3.0.0", + "lodash.istypedarray": "^3.0.0", + "lodash.keys": "^3.0.0", + "lodash.keysin": "^3.0.0", + "lodash.toplainobject": "^3.0.0" + }, + "dependencies": { + "lodash.isplainobject": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-3.2.0.tgz", + "integrity": "sha512-P4wZnho5curNqeEq/x292Pb57e1v+woR7DJ84DURelKB46lby8aDEGVobSaYtzHdQBWQrJSdxcCwjlGOvvdIyg==", + "dev": true, + "requires": { + "lodash._basefor": "^3.0.0", + "lodash.isarguments": "^3.0.0", + "lodash.keysin": "^3.0.0" + } + } + } + }, + "lodash.restparam": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/lodash.restparam/-/lodash.restparam-3.6.1.tgz", + "integrity": "sha512-L4/arjjuq4noiUJpt3yS6KIKDtJwNe2fIYgMqyYYKoeIfV1iEqvPwhCx23o+R9dzouGihDAPN1dTIRWa7zk8tw==", + "dev": true + }, + "lodash.some": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz", + "integrity": "sha512-j7MJE+TuT51q9ggt4fSgVqro163BEFjAt3u97IqU+JA2DkWl80nFTrowzLpZ/BnpN7rrl0JA/593NAdd8p/scQ==", + "dev": true + }, + "lodash.toplainobject": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash.toplainobject/-/lodash.toplainobject-3.0.0.tgz", + "integrity": "sha512-wMI0Ju1bvSmnBS3EcRRH/3zDnZOPpDtMtNDzbbNMKuTrEpALsf+sPyMeogmv63Y11qZQO7H1xFzohIEGRMjPYA==", + "dev": true, + "requires": { + "lodash._basecopy": "^3.0.0", + "lodash.keysin": "^3.0.0" + } + }, + "lodash.union": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.union/-/lodash.union-4.6.0.tgz", + "integrity": "sha512-c4pB2CdGrGdjMKYLA+XiRDO7Y0PRQbm/Gzg8qMj+QH+pFVAoTp5sBpO0odL3FjoPCGjK96p6qsP+yQoiLoOBcw==" + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ==", + "dev": true + }, + "log-update": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/log-update/-/log-update-1.0.2.tgz", + "integrity": "sha512-4vSow8gbiGnwdDNrpy1dyNaXWKSCIPop0EHdE8GrnngHoJujM3QhvHUN/igsYCgPoHo7pFOezlJ61Hlln0KHyA==", + "dev": true, + "requires": { + "ansi-escapes": "^1.0.0", + "cli-cursor": "^1.0.2" + }, + "dependencies": { + "ansi-escapes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "integrity": "sha512-wiXutNjDUlNEDWHcYH3jtZUhd3c4/VojassD8zHdHCY13xbZy2XbW+NKQwA0tWGBVzDA9qEzYwfoSsWmviidhw==", + "dev": true + }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha512-25tABq090YNKkF6JH7lcwO0zFJTRke4Jcq9iX2nr/Sz0Cjjv4gckmwlW6Ty/aoyFd6z3ysR2hMGC2GFugmBo6A==", + "dev": true, + "requires": { + "restore-cursor": "^1.0.1" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha512-GZ+g4jayMqzCRMgB2sol7GiCLjKfS1PINkjmx8spcKce1LiVqcbQreXwqs2YAFXC6R03VIG28ZS31t8M866v6A==", + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha512-reSjH4HuiFlxlaBaFCiS6O76ZGG2ygKoSlCsipKdaZuKSPx/+bt9mULkn4l0asVzbEfQQmXRg6Wp6gv6m0wElw==", + "dev": true, + "requires": { + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" + } + } + } + }, + "log4js": { + "version": "6.9.1", + "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.9.1.tgz", + "integrity": "sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g==", + "requires": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "flatted": "^3.2.7", + "rfdc": "^1.3.0", + "streamroller": "^3.1.5" + } + }, + "loglevel": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.9.2.tgz", + "integrity": "sha512-HgMmCqIJSAKqo68l0rS2AanEWfkxaZ5wNiEFb5ggm08lDs9Xl2KxBlX3PTcaD2chBM1gXAYf491/M2Rv8Jwayg==", + "dev": true + }, + "long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==" + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha512-k+yt5n3l48JU4k8ftnKG6V7u32wyH2NfKzeMto9F/QRE0amxy/LayxwlvjjkZEIzqR+19IrtFO8p5kB9QaYUFg==", + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==", + "dev": true, + "requires": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + } + }, + "lower-case": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-1.1.4.tgz", + "integrity": "sha512-2Fgx1Ycm599x+WGpIYwJOvsjmXFzTSc34IwDWALRA/8AopUKAVPwfJ+h5+f85BCp0PWmmJcWzEpxOpoXycMpdA==", + "dev": true + }, + "lower-case-first": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lower-case-first/-/lower-case-first-1.0.2.tgz", + "integrity": "sha512-UuxaYakO7XeONbKrZf5FEgkantPf5DUqDayzP5VXZrtRPdH86s4kN47I8B3TW10S4QKiE3ziHNf3kRN//okHjA==", + "dev": true, + "requires": { + "lower-case": "^1.1.2" + } + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==" + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", + "requires": { + "object-visit": "^1.0.0" + } + }, + "matcher": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", + "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", + "dev": true, + "optional": true, + "requires": { + "escape-string-regexp": "^4.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "optional": true + } + } + }, + "math-expression-evaluator": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.4.0.tgz", + "integrity": "sha512-4vRUvPyxdO8cWULGTh9dZWL2tZK6LDBvj+OGHBER7poH9Qdt7kXEoj20wiz4lQUbUXQZFjPbe5mVDo9nutizCw==", + "dev": true + }, + "math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + }, + "md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==" + }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha512-nOBDrc/wgpkd3X/JOhMqYR+/eLqlfLP4oQfoBA6QExIxEl+GU01oyEkwWyueyO8110pUKijtiHGhEmYoOn88oQ==", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + }, + "dependencies": { + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + } + } + }, + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha512-cda4JKCxReDXFXRqOHPQscuIYg1PvxbE2S2GP45rnwfEK+vZaXC8C1OFvdHIbgw0DLzowXGVoxLaAmlgRy14GQ==", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha512-TNdwZs0skRlpPpCUK25StC4VH+tP5GgeY1HQOOGP+lQ2xtdkN2VtT/5tiX9k3IWpkBPV9b3LsAWXn4GGi/PrSA==", + "dev": true, + "requires": { + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + } + } + }, + "merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==" + }, + "merge-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-options/-/merge-options-1.0.1.tgz", + "integrity": "sha512-iuPV41VWKWBIOpBsjoxjDZw8/GbSfZ2mk7N1453bwMrfzdrIk7EzBd+8UVR6rkw67th7xnk9Dytl3J+lHPdxvg==", + "requires": { + "is-plain-obj": "^1.1" + } + }, + "mersenne-twister": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mersenne-twister/-/mersenne-twister-1.1.0.tgz", + "integrity": "sha512-mUYWsMKNrm4lfygPkL3OfGzOPTR2DBlTkBNHM//F6hGp8cLThY897crAlk3/Jo17LEOOjQUrNAx6DvgO77QJkA==" + }, + "meshoptimizer": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/meshoptimizer/-/meshoptimizer-0.25.0.tgz", + "integrity": "sha512-ewwuAo3ujPZ7T3Y2oTkEoLlXvNOqnr0cjyAxfv5djXJqwD9QlxDDO0qGtsqB4Z9QUVvhruKXg9q/xfK9I5S1xQ==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + }, + "micromatch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.0.tgz", + "integrity": "sha512-3StSelAE+hnRvMs8IdVW7Uhk8CVed5tp+kLLGlBP6WiRAXS21GPGu/Nat4WNPXj2Eoc24B02SaeoyozPMfj0/g==", + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.2.2", + "define-property": "^1.0.0", + "extend-shallow": "^2.0.1", + "extglob": "^2.0.2", + "fragment-cache": "^0.2.1", + "kind-of": "^5.0.2", + "nanomatch": "^1.2.1", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==" + }, + "mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "requires": { + "mime-db": "^1.54.0" + } + }, + "mimic-fn": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", + "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==" + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" + }, + "mississippi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-2.0.0.tgz", + "integrity": "sha512-zHo8v+otD1J10j/tC+VNoGK9keCuByhKovAvdn74dmxJl9+mWHnx6EMsDN4lgRoMI/eYo2nchAxniIbUPb5onw==", + "dev": true, + "requires": { + "concat-stream": "^1.5.0", + "duplexify": "^3.4.2", + "end-of-stream": "^1.1.0", + "flush-write-stream": "^1.0.0", + "from2": "^2.1.0", + "parallel-transform": "^1.1.0", + "pump": "^2.0.1", + "pumpify": "^1.3.3", + "stream-each": "^1.1.0", + "through2": "^2.0.0" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "mitt": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-1.1.2.tgz", + "integrity": "sha512-3btxP0O9iGADGWAkteQ8mzDtEspZqu4I32y4GZYCV5BrwtzdcRpF4dQgNdJadCrbBx7Lu6Sq9AVrerMHR0Hkmw==" + }, + "mixin-deep": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", + "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "requires": { + "minimist": "^1.2.6" + } + }, + "moment": { + "version": "2.30.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", + "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==" + }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha512-hdrFxZOycD/g6A6SoI2bB5NA/5NEqD0569+S47WZhPvm46sD50ZHdYaFmnua5lndde9rCHGjmfK7Z8BuCt/PcQ==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "copy-concurrently": "^1.0.0", + "fs-write-stream-atomic": "^1.0.8", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.3" + } + }, + "ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "multicast-dns": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.3.tgz", + "integrity": "sha512-ji6J5enbMyGRHIAkAOu3WdV8nggqviKCEKtXcOqfphZZtQrmHKycfynJ2V7eVPUA4NhJ6V7Wf4TmGbTwKE9B6g==", + "dev": true, + "requires": { + "dns-packet": "^1.3.1", + "thunky": "^1.0.2" + } + }, + "multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha512-cnAsSVxIDsYt0v7HmC0hWZFwwXSh+E6PgCrREDuN/EsjgLwA5XRmlMHhSiDPrt6HxY1gTivEa/Zh7GtODoLevQ==", + "dev": true + }, + "multispinner": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/multispinner/-/multispinner-0.2.1.tgz", + "integrity": "sha512-SdI5XhdMs3IRJiPmaYBlyoMzz+/wIWdsIPNIDWVHMhVxmxqLaOppLDsvzvuR2xUAOxQq1sbJEI231gB1zABwjw==", + "dev": true, + "requires": { + "chalk": "^1.1.1", + "figures": "^1.4.0", + "kind-of": "^2.0.1", + "lodash.clonedeep": "^3.0.2", + "lodash.merge": "^3.3.2", + "log-update": "^1.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha512-UxKlfCRuCBxSXU4C6t9scbDyWZ4VlaFFdojKtzJuSkuOBQ5CNFum+zZXFwHjo+CxBC1t6zlYPgHIgFjL8ggoEQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "kind-of": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-2.0.1.tgz", + "integrity": "sha512-0u8i1NZ/mg0b+W3MGGw5I7+6Eib2nx72S/QvXa0hYjEkjTknYmEYQJwGu3mLC0BrhtJjtQafTkyRUQ75Kx0LVg==", + "dev": true, + "requires": { + "is-buffer": "^1.0.2" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==", + "dev": true + } + } + }, + "mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==", + "dev": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" + } + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "ncname": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ncname/-/ncname-1.0.0.tgz", + "integrity": "sha512-VLkyYr2kmPzVzrmkER9i13RJIdGbjNr855gfh2VvuboO1eYnb9k+nFS+JygfSVgtbo/HMpLz5pEYLK4Xjy7XGg==", + "dev": true, + "requires": { + "xml-char-classes": "^1.0.0" + } + }, + "negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "next-tick": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", + "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "no-case": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", + "integrity": "sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ==", + "dev": true, + "requires": { + "lower-case": "^1.1.1" + } + }, + "node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "optional": true + }, + "node-forge": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", + "dev": true + }, + "node-libs-browser": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", + "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", + "dev": true, + "requires": { + "assert": "^1.1.1", + "browserify-zlib": "^0.2.0", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "os-browserify": "^0.3.0", + "path-browserify": "0.0.1", + "process": "^0.11.10", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.3.3", + "stream-browserify": "^2.0.1", + "stream-http": "^2.7.2", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.0", + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "^1.0.1" + }, + "dependencies": { + "buffer": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "node-loader": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/node-loader/-/node-loader-0.6.0.tgz", + "integrity": "sha512-WlUacqHqHWb383Mec656pJmAtg7EXBcijg1sovgy0tI4xevAzv8RqcRARTMlzm0HLXzy1Pdo/DMU19/fxoMnmA==", + "dev": true + }, + "node-releases": { + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "hosted-git-info": { + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", + "dev": true + }, + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "dev": true + } + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true + }, + "normalize-url": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz", + "integrity": "sha512-A48My/mtCklowHBlI8Fq2jFWK4tX4lJ5E6ytFsSOq1fzpvT0SQSgKhSg7lN5c2uYFOrUAOQp6zhhJnpp1eMloQ==", + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "prepend-http": "^1.0.0", + "query-string": "^4.1.0", + "sort-keys": "^1.0.0" + } + }, + "normalize-wheel": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz", + "integrity": "sha512-1OnlAPZ3zgrk8B91HyRj+eVv+kS5u+Z0SCsak6Xil/kmgEia50ga7zfkumayonZrImffAxPU/5WcyGhzetHNPA==" + }, + "normalize.css": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/normalize.css/-/normalize.css-7.0.0.tgz", + "integrity": "sha512-LYaFZxj2Q1Q9e1VJ0f6laG46Rt5s9URhKyckNaA2vZnL/0gwQHWhM7ALQkp3WBQKM5sXRLQ5Ehrfkp+E/ZiCRg==" + }, + "nosleep.js": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/nosleep.js/-/nosleep.js-0.12.0.tgz", + "integrity": "sha512-9d1HbpKLh3sdWlhXMhU6MMH+wQzKkrgfRkYV0EBdvt99YJfj0ilCJrWRDYG2130Tm4GXbEoTCx5b34JSaP+HhA==" + }, + "npm-conf": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", + "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", + "dev": true, + "optional": true, + "requires": { + "config-chain": "^1.1.11", + "pify": "^3.0.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "nprogress": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", + "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==" + }, + "nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "dev": true, + "requires": { + "boolbase": "^1.0.0" + } + }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg==", + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==", + "dev": true + }, + "obj2gltf": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/obj2gltf/-/obj2gltf-3.2.0.tgz", + "integrity": "sha512-1pCbHSK55tiTkJG8Td0Nfqx97jcCtIKNeoukWhmuiyEtty3gmLBxHRN6WdYM6XKKAVgZVgeJ/PxXAizeRbQFxQ==", + "requires": { + "bluebird": "^3.7.2", + "cesium": "^1.86.1", + "fs-extra": "^11.0.0", + "jpeg-js": "^0.4.3", + "mime": "^3.0.0", + "pngjs": "^7.0.0", + "yargs": "^17.2.1" + }, + "dependencies": { + "mime": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", + "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==" + } + } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" + }, + "object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==" + }, + "object-is": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz", + "integrity": "sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==", + "dev": true, + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", + "requires": { + "isobject": "^3.0.1" + } + }, + "obuf": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", + "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==", + "dev": true + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz", + "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "requires": { + "mimic-fn": "^2.1.0" + }, + "dependencies": { + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" + } + } + }, + "opn": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz", + "integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==", + "dev": true, + "requires": { + "is-wsl": "^1.1.0" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "original": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/original/-/original-1.0.2.tgz", + "integrity": "sha512-hyBVl6iqqUOJ8FqRe+l/gS8H+kKYjrEndd5Pm1MfBtsEKA038HkkdbAl/72EAXGyonD/PFsvmVG+EvcIpliMBg==", + "dev": true, + "requires": { + "url-parse": "^1.4.3" + } + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "dev": true + }, + "own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "requires": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + } + }, + "p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==", + "dev": true + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-map": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", + "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==", + "dev": true + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dev": true, + "requires": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "pako": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz", + "integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug==" + }, + "parallel-transform": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", + "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", + "dev": true, + "requires": { + "cyclist": "^1.0.1", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "param-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/param-case/-/param-case-2.1.1.tgz", + "integrity": "sha512-eQE845L6ot89sk2N8liD8HAuH4ca6Vvr7VWAWwt7+kvvG5aBcPmmphQ68JsEG2qa9n1TykS2DLeMt363AAH8/w==", + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "parse-asn1": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.9.tgz", + "integrity": "sha512-fIYNuZ/HastSb80baGOuPRo1O9cf4baWw5WsAp7dBuUzeTD/BoaG8sVTdlPFksBE2lF21dN+A1AnrpIjSWqHHg==", + "dev": true, + "requires": { + "asn1.js": "^4.10.1", + "browserify-aes": "^1.2.0", + "evp_bytestokey": "^1.0.3", + "pbkdf2": "^3.1.5", + "safe-buffer": "^5.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "pascal-case": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-2.0.1.tgz", + "integrity": "sha512-qjS4s8rBOJa2Xm0jmxXiyh1+OFf6ekCWOvUaRgAQSktzlTbMotS0nmG9gyYAybCWBcuP4fsBeRCKNwGBnMe2OQ==", + "dev": true, + "requires": { + "camel-case": "^3.0.0", + "upper-case-first": "^1.1.0" + } + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==" + }, + "path-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", + "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", + "dev": true + }, + "path-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/path-case/-/path-case-2.1.1.tgz", + "integrity": "sha512-Ou0N05MioItesaLr9q8TtHVWmJ6fxWdqKB2RohFmNWVyJ+2zeKIeDNWAN6B/Pe7wpzWChhZX6nONYmOnMeJQ/Q==", + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q==", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==" + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==" + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "pbkdf2": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.5.tgz", + "integrity": "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ==", + "dev": true, + "requires": { + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "ripemd160": "^2.0.3", + "safe-buffer": "^5.2.1", + "sha.js": "^2.4.12", + "to-buffer": "^1.2.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "optional": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha512-ojakdnUgL5pzJYWw2AIDEupaQCX5OPbM688ZevubICjdIX01PRSYKqm33fJoCOJBRseYCTUlQRnBNX+Pchaejw==", + "dev": true, + "requires": { + "find-up": "^2.1.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true + } + } + }, + "pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "requires": { + "find-up": "^3.0.0" + } + }, + "plist": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz", + "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==", + "dev": true, + "requires": { + "@xmldom/xmldom": "^0.8.8", + "base64-js": "^1.5.1", + "xmlbuilder": "^15.1.1" + } + }, + "pluralize": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", + "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", + "dev": true + }, + "pngjs": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-7.0.0.tgz", + "integrity": "sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==" + }, + "polyfill-object.fromentries": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/polyfill-object.fromentries/-/polyfill-object.fromentries-1.0.1.tgz", + "integrity": "sha512-zlEL/n2S73hX7BQXIPapzirQw4yM/VC7slrcOyfbsH0ZyUQ/lLh4NF9wshSJ354v0F3KDMC8FCxeTQ7UUPpu9g==" + }, + "portfinder": { + "version": "1.0.38", + "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.38.tgz", + "integrity": "sha512-rEwq/ZHlJIKw++XtLAO8PPuOQA/zaPJOZJ37BVuN97nLpMJeuDVLVGRwbFoBgLudgdTMP2hdRJP++H+8QOA3vg==", + "dev": true, + "requires": { + "async": "^3.2.6", + "debug": "^4.3.6" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==" + }, + "possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==" + }, + "postcss": { + "version": "5.2.18", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", + "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", + "requires": { + "chalk": "^1.1.3", + "js-base64": "^2.1.9", + "source-map": "^0.5.6", + "supports-color": "^3.2.3" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==" + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==" + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "postcss-calc": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz", + "integrity": "sha512-iBcptYFq+QUh9gzP7ta2btw50o40s4uLI4UDVgd5yRAZtUDWc5APdl5yQDd2h/TyiZNbJrv0HiYhT102CMgN7Q==", + "dev": true, + "requires": { + "postcss": "^5.0.2", + "postcss-message-helpers": "^2.0.0", + "reduce-css-calc": "^1.2.6" + } + }, + "postcss-colormin": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-2.2.2.tgz", + "integrity": "sha512-XXitQe+jNNPf+vxvQXIQ1+pvdQKWKgkx8zlJNltcMEmLma1ypDRDQwlLt+6cP26fBreihNhZxohh1rcgCH2W5w==", + "dev": true, + "requires": { + "colormin": "^1.0.5", + "postcss": "^5.0.13", + "postcss-value-parser": "^3.2.3" + } + }, + "postcss-convert-values": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz", + "integrity": "sha512-SE7mf25D3ORUEXpu3WUqQqy0nCbMuM5BEny+ULE/FXdS/0UMA58OdzwvzuHJRpIFlk1uojt16JhaEogtP6W2oA==", + "dev": true, + "requires": { + "postcss": "^5.0.11", + "postcss-value-parser": "^3.1.2" + } + }, + "postcss-discard-comments": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz", + "integrity": "sha512-yGbyBDo5FxsImE90LD8C87vgnNlweQkODMkUZlDVM/CBgLr9C5RasLGJxxh9GjVOBeG8NcCMatoqI1pXg8JNXg==", + "dev": true, + "requires": { + "postcss": "^5.0.14" + } + }, + "postcss-discard-duplicates": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz", + "integrity": "sha512-+lk5W1uqO8qIUTET+UETgj9GWykLC3LOldr7EehmymV0Wu36kyoHimC4cILrAAYpHQ+fr4ypKcWcVNaGzm0reA==", + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-discard-empty": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz", + "integrity": "sha512-IBFoyrwk52dhF+5z/ZAbzq5Jy7Wq0aLUsOn69JNS+7YeuyHaNzJwBIYE0QlUH/p5d3L+OON72Fsexyb7OK/3og==", + "dev": true, + "requires": { + "postcss": "^5.0.14" + } + }, + "postcss-discard-overridden": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz", + "integrity": "sha512-IyKoDL8QNObOiUc6eBw8kMxBHCfxUaERYTUe2QF8k7j/xiirayDzzkmlR6lMQjrAM1p1DDRTvWrS7Aa8lp6/uA==", + "dev": true, + "requires": { + "postcss": "^5.0.16" + } + }, + "postcss-discard-unused": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz", + "integrity": "sha512-nCbFNfqYAbKCw9J6PSJubpN9asnrwVLkRDFc4KCwyUEdOtM5XDE/eTW3OpqHrYY1L4fZxgan7LLRAAYYBzwzrg==", + "dev": true, + "requires": { + "postcss": "^5.0.14", + "uniqs": "^2.0.0" + } + }, + "postcss-filter-plugins": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/postcss-filter-plugins/-/postcss-filter-plugins-2.0.3.tgz", + "integrity": "sha512-T53GVFsdinJhgwm7rg1BzbeBRomOg9y5MBVhGcsV0CxurUdVj1UlPdKtn7aqYA/c/QVkzKMjq2bSV5dKG5+AwQ==", + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-load-config": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-1.2.0.tgz", + "integrity": "sha512-3fpCfnXo9Qd/O/q/XL4cJUhRsqjVD2V1Vhy3wOEcLE5kz0TGtdDXJSoiTdH4e847KphbEac4+EZSH4qLRYIgLw==", + "dev": true, + "requires": { + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0", + "postcss-load-options": "^1.2.0", + "postcss-load-plugins": "^2.3.0" + } + }, + "postcss-load-options": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-load-options/-/postcss-load-options-1.2.0.tgz", + "integrity": "sha512-WKS5LJMZLWGwtfhs5ahb2ycpoYF3m0kK4QEaM+elr5EpiMt0H296P/9ETa13WXzjPwB0DDTBiUBBWSHoApQIJg==", + "dev": true, + "requires": { + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0" + } + }, + "postcss-load-plugins": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/postcss-load-plugins/-/postcss-load-plugins-2.3.0.tgz", + "integrity": "sha512-/WGUMYhKiryWjYO6c7kAcqMuD7DVkaQ8HcbQenDme/d3OBOmrYMFObOKgUWyUy1uih5U2Dakq8H6VcJi5C9wHQ==", + "dev": true, + "requires": { + "cosmiconfig": "^2.1.1", + "object-assign": "^4.1.0" + } + }, + "postcss-merge-idents": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz", + "integrity": "sha512-9DHmfCZ7/hNHhIKnNkz4CU0ejtGen5BbTRJc13Z2uHfCedeCUsK2WEQoAJRBL+phs68iWK6Qf8Jze71anuysWA==", + "dev": true, + "requires": { + "has": "^1.0.1", + "postcss": "^5.0.10", + "postcss-value-parser": "^3.1.1" + } + }, + "postcss-merge-longhand": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz", + "integrity": "sha512-ma7YvxjdLQdifnc1HFsW/AW6fVfubGyR+X4bE3FOSdBVMY9bZjKVdklHT+odknKBB7FSCfKIHC3yHK7RUAqRPg==", + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-merge-rules": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz", + "integrity": "sha512-Wgg2FS6W3AYBl+5L9poL6ZUISi5YzL+sDCJfM7zNw/Q1qsyVQXXZ2cbVui6mu2cYJpt1hOKCGj1xA4mq/obz/Q==", + "dev": true, + "requires": { + "browserslist": "^1.5.2", + "caniuse-api": "^1.5.2", + "postcss": "^5.0.4", + "postcss-selector-parser": "^2.2.2", + "vendors": "^1.0.0" + }, + "dependencies": { + "browserslist": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", + "integrity": "sha512-qHJblDE2bXVRYzuDetv/wAeHOJyO97+9wxC1cdCtyzgNuSozOyRCiiLaCR1f71AN66lQdVVBipWm63V+a7bPOw==", + "dev": true, + "requires": { + "caniuse-db": "^1.0.30000639", + "electron-to-chromium": "^1.2.7" + } + } + } + }, + "postcss-message-helpers": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz", + "integrity": "sha512-tPLZzVAiIJp46TBbpXtrUAKqedXSyW5xDEo1sikrfEfnTs+49SBZR/xDdqCiJvSSbtr615xDsaMF3RrxS2jZlA==", + "dev": true + }, + "postcss-minify-font-values": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz", + "integrity": "sha512-vFSPzrJhNe6/8McOLU13XIsERohBJiIFFuC1PolgajOZdRWqRgKITP/A4Z/n4GQhEmtbxmO9NDw3QLaFfE1dFQ==", + "dev": true, + "requires": { + "object-assign": "^4.0.1", + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.2" + } + }, + "postcss-minify-gradients": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz", + "integrity": "sha512-DZhT0OE+RbVqVyGsTIKx84rU/5cury1jmwPa19bViqYPQu499ZU831yMzzsyC8EhiZVd73+h5Z9xb/DdaBpw7Q==", + "dev": true, + "requires": { + "postcss": "^5.0.12", + "postcss-value-parser": "^3.3.0" + } + }, + "postcss-minify-params": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz", + "integrity": "sha512-hhJdMVgP8vasrHbkKAk+ab28vEmPYgyuDzRl31V3BEB3QOR3L5TTIVEWLDNnZZ3+fiTi9d6Ker8GM8S1h8p2Ow==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.1", + "postcss": "^5.0.2", + "postcss-value-parser": "^3.0.2", + "uniqs": "^2.0.0" + } + }, + "postcss-minify-selectors": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz", + "integrity": "sha512-e13vxPBSo3ZaPne43KVgM+UETkx3Bs4/Qvm6yXI9HQpQp4nyb7HZ0gKpkF+Wn2x+/dbQ+swNpCdZSbMOT7+TIA==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.2", + "has": "^1.0.1", + "postcss": "^5.0.14", + "postcss-selector-parser": "^2.0.0" + } + }, + "postcss-modules-extract-imports": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.2.1.tgz", + "integrity": "sha512-6jt9XZwUhwmRUhb/CkyJY020PYaPJsCyt3UjbaWo6XEbH/94Hmv6MP7fG2C5NDU/BcHzyGYxNtHvM+LTf9HrYw==", + "dev": true, + "requires": { + "postcss": "^6.0.1" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "postcss-modules-local-by-default": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz", + "integrity": "sha512-X4cquUPIaAd86raVrBwO8fwRfkIdbwFu7CTfEOjiZQHVQwlHRSkTgH5NLDmMm5+1hQO8u6dZ+TOOJDbay1hYpA==", + "dev": true, + "requires": { + "css-selector-tokenizer": "^0.7.0", + "postcss": "^6.0.1" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "postcss-modules-scope": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz", + "integrity": "sha512-LTYwnA4C1He1BKZXIx1CYiHixdSe9LWYVKadq9lK5aCCMkoOkFyZ7aigt+srfjlRplJY3gIol6KUNefdMQJdlw==", + "dev": true, + "requires": { + "css-selector-tokenizer": "^0.7.0", + "postcss": "^6.0.1" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "postcss-modules-values": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz", + "integrity": "sha512-i7IFaR9hlQ6/0UgFuqM6YWaCfA1Ej8WMg8A5DggnH1UGKJvTV/ugqq/KaULixzzOi3T/tF6ClBXcHGCzdd5unA==", + "dev": true, + "requires": { + "icss-replace-symbols": "^1.1.0", + "postcss": "^6.0.1" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "postcss-normalize-charset": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz", + "integrity": "sha512-RKgjEks83l8w4yEhztOwNZ+nLSrJ+NvPNhpS+mVDzoaiRHZQVoG7NF2TP5qjwnaN9YswUhj6m1E0S0Z+WDCgEQ==", + "dev": true, + "requires": { + "postcss": "^5.0.5" + } + }, + "postcss-normalize-url": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz", + "integrity": "sha512-WqtWG6GV2nELsQEFES0RzfL2ebVwmGl/M8VmMbshKto/UClBo+mznX8Zi4/hkThdqx7ijwv+O8HWPdpK7nH/Ig==", + "dev": true, + "requires": { + "is-absolute-url": "^2.0.0", + "normalize-url": "^1.4.0", + "postcss": "^5.0.14", + "postcss-value-parser": "^3.2.3" + } + }, + "postcss-ordered-values": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz", + "integrity": "sha512-5RB1IUZhkxDCfa5fx/ogp/A82mtq+r7USqS+7zt0e428HJ7+BHCxyeY39ClmkkUtxdOd3mk8gD6d9bjH2BECMg==", + "dev": true, + "requires": { + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.1" + } + }, + "postcss-prefix-selector": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/postcss-prefix-selector/-/postcss-prefix-selector-1.16.1.tgz", + "integrity": "sha512-Umxu+FvKMwlY6TyDzGFoSUnzW+NOfMBLyC1tAkIjgX+Z/qGspJeRjVC903D7mx7TuBpJlwti2ibXtWuA7fKMeQ==" + }, + "postcss-reduce-idents": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz", + "integrity": "sha512-0+Ow9e8JLtffjumJJFPqvN4qAvokVbdQPnijUDSOX8tfTwrILLP4ETvrZcXZxAtpFLh/U0c+q8oRMJLr1Kiu4w==", + "dev": true, + "requires": { + "postcss": "^5.0.4", + "postcss-value-parser": "^3.0.2" + } + }, + "postcss-reduce-initial": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz", + "integrity": "sha512-jJFrV1vWOPCQsIVitawGesRgMgunbclERQ/IRGW7r93uHrVzNQQmHQ7znsOIjJPZ4yWMzs5A8NFhp3AkPHPbDA==", + "dev": true, + "requires": { + "postcss": "^5.0.4" + } + }, + "postcss-reduce-transforms": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz", + "integrity": "sha512-lGgRqnSuAR5i5uUg1TA33r9UngfTadWxOyL2qx1KuPoCQzfmtaHjp9PuwX7yVyRxG3BWBzeFUaS5uV9eVgnEgQ==", + "dev": true, + "requires": { + "has": "^1.0.1", + "postcss": "^5.0.8", + "postcss-value-parser": "^3.0.1" + } + }, + "postcss-selector-parser": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz", + "integrity": "sha512-3pqyakeGhrO0BQ5+/tGTfvi5IAUAhHRayGK8WFSu06aEv2BmHoXw/Mhb+w7VY5HERIuC+QoUI7wgrCcq2hqCVA==", + "dev": true, + "requires": { + "flatten": "^1.0.2", + "indexes-of": "^1.0.1", + "uniq": "^1.0.1" + } + }, + "postcss-svgo": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz", + "integrity": "sha512-y5AdQdgBoF4rbpdbeWAJuxE953g/ylRfVNp6mvAi61VCN/Y25Tu9p5mh3CyI42WbTRIiwR9a1GdFtmDnNPeskQ==", + "dev": true, + "requires": { + "is-svg": "^2.0.0", + "postcss": "^5.0.14", + "postcss-value-parser": "^3.2.3", + "svgo": "^0.7.0" + } + }, + "postcss-unique-selectors": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz", + "integrity": "sha512-WZX8r1M0+IyljoJOJleg3kYm10hxNYF9scqAT7v/xeSX1IdehutOM85SNO0gP9K+bgs86XERr7Ud5u3ch4+D8g==", + "dev": true, + "requires": { + "alphanum-sort": "^1.0.1", + "postcss": "^5.0.4", + "uniqs": "^2.0.0" + } + }, + "postcss-value-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz", + "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", + "dev": true + }, + "postcss-zindex": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz", + "integrity": "sha512-uhRZ2hRgj0lorxm9cr62B01YzpUe63h0RXMXQ4gWW3oa2rpJh+FJAiEAytaFCPU/VgaBS+uW2SJ1XKyDNz1h4w==", + "dev": true, + "requires": { + "has": "^1.0.1", + "postcss": "^5.0.4", + "uniqs": "^2.0.0" + } + }, + "posthtml": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/posthtml/-/posthtml-0.9.2.tgz", + "integrity": "sha512-spBB5sgC4cv2YcW03f/IAUN1pgDJWNWD8FzkyY4mArLUMJW+KlQhlmUdKAHQuPfb00Jl5xIfImeOsf6YL8QK7Q==", + "requires": { + "posthtml-parser": "^0.2.0", + "posthtml-render": "^1.0.5" + } + }, + "posthtml-parser": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/posthtml-parser/-/posthtml-parser-0.2.1.tgz", + "integrity": "sha512-nPC53YMqJnc/+1x4fRYFfm81KV2V+G9NZY+hTohpYg64Ay7NemWWcV4UWuy/SgMupqQ3kJ88M/iRfZmSnxT+pw==", + "requires": { + "htmlparser2": "^3.8.3", + "isobject": "^2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "posthtml-rename-id": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/posthtml-rename-id/-/posthtml-rename-id-1.0.12.tgz", + "integrity": "sha512-UKXf9OF/no8WZo9edRzvuMenb6AD5hDLzIepJW+a4oJT+T/Lx7vfMYWT4aWlGNQh0WMhnUx1ipN9OkZ9q+ddEw==", + "requires": { + "escape-string-regexp": "1.0.5" + } + }, + "posthtml-render": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/posthtml-render/-/posthtml-render-1.4.0.tgz", + "integrity": "sha512-W1779iVHGfq0Fvh2PROhCe2QhB8mEErgqzo1wpIt36tCgChafP+hbXIhLDOM8ePJrZcFs0vkNEtdibEWVqChqw==" + }, + "posthtml-svg-mode": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/posthtml-svg-mode/-/posthtml-svg-mode-1.0.3.tgz", + "integrity": "sha512-hEqw9NHZ9YgJ2/0G7CECOeuLQKZi8HjWLkBaSVtOWjygQ9ZD8P7tqeowYs7WrFdKsWEKG7o+IlsPY8jrr0CJpQ==", + "requires": { + "merge-options": "1.0.1", + "posthtml": "^0.9.2", + "posthtml-parser": "^0.2.1", + "posthtml-render": "^1.0.6" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg==", + "dev": true + }, + "prettier": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz", + "integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==", + "dev": true + }, + "pretty-error": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.2.tgz", + "integrity": "sha512-EY5oDzmsX5wvuynAByrmY0P0hcp+QpnAKbJng2A2MPjVKXCxrDSUkzghVJ4ZGPIv+JC4gX8fPUWscC0RtjsWGw==", + "dev": true, + "requires": { + "lodash": "^4.17.20", + "renderkid": "^2.0.4" + } + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "dev": true + }, + "proto-list": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", + "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==", + "dev": true, + "optional": true + }, + "protobufjs": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + } + }, + "proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", + "dev": true + }, + "public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", + "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "dev": true + } + } + }, + "pump": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", + "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true + }, + "pupa": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", + "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", + "dev": true, + "requires": { + "escape-goat": "^2.0.0" + } + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==", + "dev": true + }, + "qs": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "requires": { + "side-channel": "^1.1.0" + } + }, + "query-string": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", + "integrity": "sha512-O2XLNDBIg1DnTOa+2XrIwSiXEV8h2KImXUnjhhn2+UsvZ+Es2uyd5CCRTNQlDGbzUQOW3aYCBx9rVA6dzsiY7Q==", + "requires": { + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", + "dev": true + }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "quickselect": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz", + "integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g==" + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "requires": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + } + }, + "rbush": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/rbush/-/rbush-4.0.1.tgz", + "integrity": "sha512-IP0UpfeWQujYC8Jg162rMNc01Rf0gWMMAb2Uxus/Q0qOFw4lCcq6ZnQEZwUoJqWyUGJ9th7JjwI4yIWo+uvoAQ==", + "requires": { + "quickselect": "^3.0.0" + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true + } + } + }, + "read-config-file": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/read-config-file/-/read-config-file-6.2.0.tgz", + "integrity": "sha512-gx7Pgr5I56JtYz+WuqEbQHj/xWo+5Vwua2jhb1VwM4Wid5PqYmZ4i00ZB0YEGIfkVBsCv9UrjgyqCiQfS/Oosg==", + "dev": true, + "requires": { + "dotenv": "^9.0.2", + "dotenv-expand": "^5.1.0", + "js-yaml": "^4.1.0", + "json5": "^2.2.0", + "lazy-val": "^1.0.4" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "requires": { + "argparse": "^2.0.1" + } + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + } + } + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha512-eFIBOPW7FGjzBuk3hdXEuNSiTZS/xEMlH49HxMyzb0hyPfu4EhVjT2DH32K1hSSmVq4sebAWnZuuY5auISUTGA==", + "dev": true, + "requires": { + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" + }, + "dependencies": { + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha512-dUnb5dXUf+kzhC/W/F4e5/SkluXIFf5VUHolW1Eg1irn1hGWjPGdsRcvYJ1nD6lhk8Ir7VM0bHJKsYTx8Jx9OQ==", + "dev": true, + "requires": { + "pify": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha512-1orxQfbWGUiTn9XsPlChs6rLie/AV9jwZTGmu2NZw/CUDJQchXJFYE0Fq5j7+n558T1JhDWLdhyd1Zj+wLY//w==", + "dev": true, + "requires": { + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", + "dev": true + } + } + }, + "readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdir-glob": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "requires": { + "minimatch": "^5.1.0" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true + }, + "recast": { + "version": "0.11.23", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.11.23.tgz", + "integrity": "sha512-+nixG+3NugceyR8O1bLU45qs84JgI3+8EauyRZafLgC9XbdAOIVgwV1Pe2da0YzGo62KzWoZwUpVEQf6qNAXWA==", + "dev": true, + "requires": { + "ast-types": "0.9.6", + "esprima": "~3.1.0", + "private": "~0.1.5", + "source-map": "~0.5.0" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha512-AWwVMNxwhN8+NIPQzAQZCm7RkLC4RbM3B1OobMuyp3i+w73X57KCKaVIxaRZb+DYCojq7rspo+fmuQfAboyhFg==", + "dev": true + } + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==", + "dev": true, + "requires": { + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" + } + }, + "reduce-css-calc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz", + "integrity": "sha512-0dVfwYVOlf/LBA2ec4OwQ6p3X9mYxn/wOl2xTcLwjnPYrkgEfPx3VI4eGCH3rQLlPISG5v9I9bkZosKsNRTRKA==", + "dev": true, + "requires": { + "balanced-match": "^0.4.2", + "math-expression-evaluator": "^1.2.14", + "reduce-function-call": "^1.0.1" + }, + "dependencies": { + "balanced-match": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", + "integrity": "sha512-STw03mQKnGUYtoNjmowo4F2cRmIIxYEGiMsjjwla/u5P1lxadj/05WkNaFjNiKTgJkj8KiXbgAiRTmcQRwQNtg==", + "dev": true + } + } + }, + "reduce-function-call": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/reduce-function-call/-/reduce-function-call-1.0.3.tgz", + "integrity": "sha512-Hl/tuV2VDgWgCSEeWMLwxLZqX7OK59eU1guxXsRKTAyeYimivsKdtcV4fu3r710tpG5GmDKDhQ0HSZLExnNmyQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + } + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", + "dev": true, + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, + "regenerator-transform": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", + "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "dev": true, + "requires": { + "babel-runtime": "^6.18.0", + "babel-types": "^6.19.0", + "private": "^0.1.6" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + } + }, + "regexpp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz", + "integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==", + "dev": true + }, + "regexpu-core": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", + "dev": true, + "requires": { + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.2.2", + "regjsgen": "^0.8.0", + "regjsparser": "^0.13.0", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.2.1" + } + }, + "registry-auth-token": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.2.tgz", + "integrity": "sha512-PC5ZysNb42zpFME6D/XlIgtNGdTl8bBOCw90xQLVMpzuuubJKYDWFAEuUNc+Cn8Z8724tg2SDhDRrkVEsqfDMg==", + "dev": true, + "requires": { + "rc": "1.2.8" + } + }, + "registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dev": true, + "requires": { + "rc": "^1.2.8" + } + }, + "regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true + }, + "regjsparser": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", + "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", + "dev": true, + "requires": { + "jsesc": "~3.1.0" + } + }, + "relateurl": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", + "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "dev": true + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==", + "dev": true + }, + "renderkid": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.7.tgz", + "integrity": "sha512-oCcFyxaMrKsKcTY59qnCAtmDVSLfPbrv6A3tVbPdFMMrv5jaK10V6m40cKsoPNhAqN6rmHW9sswW4o3ruSrwUQ==", + "dev": true, + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "dom-serializer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.4.1.tgz", + "integrity": "sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "dev": true + }, + "domhandler": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-4.3.1.tgz", + "integrity": "sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==", + "dev": true, + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz", + "integrity": "sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==", + "dev": true, + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==", + "dev": true + }, + "htmlparser2": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-6.1.0.tgz", + "integrity": "sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==", + "dev": true, + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "repeat-element": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==" + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==" + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" + }, + "require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==", + "dev": true + }, + "require-uncached": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha512-Xct+41K3twrbBHdxAgMoOS+cNcoqIjfM2/VxBF4LL2hVph7YsF8VSKyQ3BDFZwEVbok9yeDl2le/qo0S77WG2w==", + "dev": true, + "requires": { + "caller-path": "^0.1.0", + "resolve-from": "^1.0.0" + } + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" + }, + "resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "requires": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha512-ccu8zQTrzVr954472aUVPLEcB3YpKSYR3cg/3lo1okzobPBM+1INXBbBZlDbnI/hbEocnf8j0QVo43hQKrbchg==", + "dev": true, + "requires": { + "resolve-from": "^3.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", + "dev": true + } + } + }, + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha512-kT10v4dhrlLNcnO084hEjvXCI1wUG9qZLoz2RogxqDQQYy7IxjI/iMUkOtQTNEh6rzHxvdQWHsJyel1pKOVCxg==", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==" + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ==", + "dev": true, + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha512-6IzJLuGi4+R14vwagDHX+JrXmPVtPpn4mffDJ1UdR7/Edm87fl6yi8mMBIVvFtJaNTUvjughmW4hwLhRG7gC1Q==", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + }, + "dependencies": { + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + } + } + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + }, + "rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==" + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha512-yqINtL/G7vs2v+dFIZmFUDbnVyFUJFKd6gK22Kgo6R4jfJGFtisKyncWDDULgjfqf4ASQuIQyjJ7XZ+3aWpsAg==", + "dev": true, + "requires": { + "align-text": "^0.1.1" + } + }, + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "requires": { + "glob": "^7.1.3" + } + }, + "ripemd160": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.3.tgz", + "integrity": "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA==", + "dev": true, + "requires": { + "hash-base": "^3.1.2", + "inherits": "^2.0.4" + }, + "dependencies": { + "hash-base": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.2.tgz", + "integrity": "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "readable-stream": "^2.3.8", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.1" + } + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + } + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "roarr": { + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", + "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", + "dev": true, + "optional": true, + "requires": { + "boolean": "^3.0.1", + "detect-node": "^2.0.4", + "globalthis": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "semver-compare": "^1.0.0", + "sprintf-js": "^1.1.2" + }, + "dependencies": { + "sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "dev": true, + "optional": true + } + } + }, + "run-async": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", + "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", + "dev": true + }, + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha512-ntymy489o0/QQplUDnpYAYUsO50K9SBrIVaKCWDOJzYJts0f9WH9RFJkyagebkw5+y1oi00R7ynNW/d12GBumg==", + "dev": true, + "requires": { + "aproba": "^1.1.1" + } + }, + "rx-lite": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", + "integrity": "sha512-Cun9QucwK6MIrp3mry/Y7hqD1oFqTYLQ4pGxaHTjIdaFDWRGGLikqp6u8LcWJnzpoALg9hap+JGk8sFIUuEGNA==", + "dev": true + }, + "rx-lite-aggregates": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", + "integrity": "sha512-3xPNZGW93oCjiO7PtKxRK6iOVYBWBvtf9QHDfU23Oc+dLIQmAV//UnyXV/yihv81VS/UqoQPk4NegS8EFi55Hg==", + "dev": true, + "requires": { + "rx-lite": "*" + } + }, + "safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + } + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "requires": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + } + } + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", + "requires": { + "ret": "~0.1.10" + } + }, + "safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sanitize-filename": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz", + "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==", + "dev": true, + "requires": { + "truncate-utf8-bytes": "^1.0.0" + } + }, + "sass": { + "version": "1.94.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.94.2.tgz", + "integrity": "sha512-N+7WK20/wOr7CzA2snJcUSSNTCzeCGUTFY3OgeQP3mZ1aj9NMQ0mSTXwlrnd89j33zzQJGqIN52GIOmYrfq46A==", + "dev": true, + "requires": { + "@parcel/watcher": "^2.4.1", + "chokidar": "^4.0.0", + "immutable": "^5.0.2", + "source-map-js": ">=0.6.2 <2.0.0" + } + }, + "sass-loader": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/sass-loader/-/sass-loader-7.3.1.tgz", + "integrity": "sha512-tuU7+zm0pTCynKYHpdqaPpe+MMTQ76I9TPZ7i4/5dZsigE350shQWe5EZNl5dBidM49TPET75tNqRbcsUZWeNA==", + "dev": true, + "requires": { + "clone-deep": "^4.0.1", + "loader-utils": "^1.0.1", + "neo-async": "^2.5.0", + "pify": "^4.0.1", + "semver": "^6.3.0" + }, + "dependencies": { + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "sass-resources-loader": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/sass-resources-loader/-/sass-resources-loader-2.2.5.tgz", + "integrity": "sha512-po8rfETH9cOQACWxubT/1CCu77KjxwRtCDm6QAXZH99aUHBydwSoxdIjC40SGp/dcS/FkSNJl0j1VEojGZqlvQ==", + "dev": true, + "requires": { + "async": "^3.2.3", + "chalk": "^4.1.0", + "glob": "^7.1.6", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha512-QaVYBaD9U8scJw2EBWnCBY+LJ0AD+/2edTaigDs0XLDLBfJmSUK9KGqktg1rb32U3z4j/XwvFwHHH1YfbYFd7Q==", + "dev": true, + "requires": { + "ajv": "^5.0.0" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "dev": true, + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==", + "dev": true + } + } + }, + "select-hose": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/select-hose/-/select-hose-2.0.0.tgz", + "integrity": "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg==", + "dev": true + }, + "selfsigned": { + "version": "1.10.14", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.14.tgz", + "integrity": "sha512-lkjaiAye+wBZDCBsu5BGi0XiLRxeUlsGod5ZP924CRSEoGuZAw/f7y9RKu28rwTfiHVhdavhB0qH0INV6P1lEA==", + "dev": true, + "requires": { + "node-forge": "^0.10.0" + } + }, + "semver": { + "version": "7.7.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", + "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==" + }, + "semver-compare": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", + "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", + "dev": true, + "optional": true + }, + "semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dev": true, + "requires": { + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + } + } + }, + "send": { + "version": "0.19.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "http-errors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + } + } + }, + "sentence-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-2.1.1.tgz", + "integrity": "sha512-ENl7cYHaK/Ktwk5OTD+aDbQ3uC8IByu/6Bkg+HDv8Mm+XnBnppVNalcfJTNsp1ibstKh030/JKQQWglDvtKwEQ==", + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case-first": "^1.1.2" + } + }, + "serialize-error": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", + "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", + "dev": true, + "optional": true, + "requires": { + "type-fest": "^0.13.1" + }, + "dependencies": { + "type-fest": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", + "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", + "dev": true, + "optional": true + } + } + }, + "serialize-javascript": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", + "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", + "dev": true + }, + "serve-index": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", + "integrity": "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw==", + "dev": true, + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", + "dev": true + }, + "http-errors": { + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", + "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "requires": { + "mime-db": "1.52.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", + "dev": true + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "dev": true + } + } + }, + "serve-static": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "requires": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "dependencies": { + "encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==" + } + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "dev": true + }, + "set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "requires": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + } + }, + "set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "requires": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + } + }, + "set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "requires": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + } + }, + "set-value": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", + "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + }, + "setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "sha.js": { + "version": "2.4.12", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", + "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", + "dev": true, + "requires": { + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1", + "to-buffer": "^1.2.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + } + } + }, + "shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + } + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "requires": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + } + }, + "side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "requires": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + } + }, + "side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + } + }, + "side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "requires": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + } + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==", + "dev": true + }, + "slice-ansi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", + "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + } + } + }, + "smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "dev": true, + "optional": true + }, + "snake-case": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-2.1.0.tgz", + "integrity": "sha512-FMR5YoPFwOLuh4rRz92dywJjyKYZNLpMn1R5ujVpIYkbA9p01fq8RMg0FkO4M+Yobt4MjHeLTJVm5xFFBHSV2Q==", + "dev": true, + "requires": { + "no-case": "^2.2.0" + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "sockjs": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/sockjs/-/sockjs-0.3.19.tgz", + "integrity": "sha512-V48klKZl8T6MzatbLlzzRNhMepEys9Y4oGFpypBFFn1gLI/QQ9HtLLyWJNbPlwGLelOVOEijUbTTJeLLI59jLw==", + "dev": true, + "requires": { + "faye-websocket": "^0.10.0", + "uuid": "^3.0.1" + } + }, + "sockjs-client": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/sockjs-client/-/sockjs-client-1.1.5.tgz", + "integrity": "sha512-PmPRkAYIeuRgX+ZSieViT4Z3Q23bLS2Itm/ck1tSf5P0/yVuFDiI5q9mcnpXoMdToaPSRS9MEyUx/aaBxrFzyw==", + "dev": true, + "requires": { + "debug": "^2.6.6", + "eventsource": "0.1.6", + "faye-websocket": "~0.11.0", + "inherits": "^2.0.1", + "json3": "^3.3.2", + "url-parse": "^1.1.8" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + } + } + }, + "sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg==", + "dev": true, + "requires": { + "is-plain-obj": "^1.0.0" + } + }, + "source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" + }, + "source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + }, + "source-map-url": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==" + }, + "spdx-correct": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", + "integrity": "sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.22", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.22.tgz", + "integrity": "sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==", + "dev": true + }, + "spdy": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/spdy/-/spdy-4.0.2.tgz", + "integrity": "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdy-transport/-/spdy-transport-3.0.0.tgz", + "integrity": "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw==", + "dev": true, + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "requires": { + "extend-shallow": "^3.0.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "ssf": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz", + "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==", + "requires": { + "frac": "~1.1.2" + } + }, + "ssri": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-5.3.0.tgz", + "integrity": "sha512-XRSIPqLij52MtgoQavH/x/dU1qVKtWUAAZeOHsR9c2Ddi4XerFy3mc1alf+dLJKl9EUIm/Ht+EowFkTUOA6GAQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.1" + } + }, + "stat-mode": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz", + "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==" + }, + "stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "requires": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + } + }, + "stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "stream-each": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", + "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "stream-shift": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", + "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", + "dev": true + }, + "streamifier": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", + "integrity": "sha512-zDgl+muIlWzXNsXeyUfOk9dChMjlpkq0DRsxujtYPgyJ676yQ8jEm6zzaaWHFDg5BNcLuif0eD2MTyJdZqXpdg==" + }, + "streamroller": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", + "requires": { + "date-format": "^4.0.14", + "debug": "^4.3.4", + "fs-extra": "^8.1.0" + }, + "dependencies": { + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } + } + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ==" + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + } + }, + "string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "requires": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + } + }, + "string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "requires": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==", + "dev": true, + "requires": { + "get-stdin": "^4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "dev": true + }, + "style-loader": { + "version": "0.18.2", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.18.2.tgz", + "integrity": "sha512-WPpJPZGUxWYHWIUMNNOYqql7zh85zGmr84FdTVWq52WTIkqlW9xSxD3QYWi/T31cqn9UNSsietVEgGn2aaSCzw==", + "dev": true, + "requires": { + "loader-utils": "^1.0.2", + "schema-utils": "^0.3.0" + } + }, + "sumchecker": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", + "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", + "dev": true, + "requires": { + "debug": "^4.1.0" + } + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==", + "requires": { + "has-flag": "^1.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "svg-baker": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/svg-baker/-/svg-baker-1.7.0.tgz", + "integrity": "sha512-nibslMbkXOIkqKVrfcncwha45f97fGuAOn1G99YwnwTj8kF9YiM6XexPcUso97NxOm6GsP0SIvYVIosBis1xLg==", + "requires": { + "bluebird": "^3.5.0", + "clone": "^2.1.1", + "he": "^1.1.1", + "image-size": "^0.5.1", + "loader-utils": "^1.1.0", + "merge-options": "1.0.1", + "micromatch": "3.1.0", + "postcss": "^5.2.17", + "postcss-prefix-selector": "^1.6.0", + "posthtml-rename-id": "^1.0", + "posthtml-svg-mode": "^1.0.3", + "query-string": "^4.3.2", + "traverse": "^0.6.6" + } + }, + "svg-baker-runtime": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/svg-baker-runtime/-/svg-baker-runtime-1.4.7.tgz", + "integrity": "sha512-Zorfwwj5+lWjk/oxwSMsRdS2sPQQdTmmsvaSpzU+i9ZWi3zugHLt6VckWfnswphQP0LmOel3nggpF5nETbt6xw==", + "requires": { + "deepmerge": "1.3.2", + "mitt": "1.1.2", + "svg-baker": "^1.7.0" + }, + "dependencies": { + "deepmerge": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.3.2.tgz", + "integrity": "sha512-qjMjTrk+RKv/sp4RPDpV5CnKhxjFI9p+GkLBOls5A8EEElldYWCWA9zceAkmfd0xIo2aU1nxiaLFoiya2sb6Cg==" + } + } + }, + "svg-sprite-loader": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/svg-sprite-loader/-/svg-sprite-loader-3.9.2.tgz", + "integrity": "sha512-tnL7qj5ArgSYjXePzx+pZpDDzz2rMhjYdzaTjiuBz6nbPPgf2uOvO8mWj8wf/0Iv6Szd406fUYMDIyT3XnwEww==", + "requires": { + "bluebird": "^3.5.0", + "deepmerge": "1.3.2", + "domready": "1.0.8", + "escape-string-regexp": "1.0.5", + "loader-utils": "^1.1.0", + "svg-baker": "^1.2.17", + "svg-baker-runtime": "^1.3.3", + "url-slug": "2.0.0" + }, + "dependencies": { + "deepmerge": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.3.2.tgz", + "integrity": "sha512-qjMjTrk+RKv/sp4RPDpV5CnKhxjFI9p+GkLBOls5A8EEElldYWCWA9zceAkmfd0xIo2aU1nxiaLFoiya2sb6Cg==" + } + } + }, + "svgo": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", + "integrity": "sha512-jT/g9FFMoe9lu2IT6HtAxTA7RR2XOrmcrmCtGnyB/+GQnV6ZjNn+KOHZbZ35yL81+1F/aB6OeEsJztzBQ2EEwA==", + "dev": true, + "requires": { + "coa": "~1.0.1", + "colors": "~1.1.2", + "csso": "~2.3.1", + "js-yaml": "~3.7.0", + "mkdirp": "~0.5.1", + "sax": "~1.2.1", + "whet.extend": "~0.9.9" + } + }, + "swap-case": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/swap-case/-/swap-case-1.1.2.tgz", + "integrity": "sha512-BAmWG6/bx8syfc6qXPprof3Mn5vQgf5dwdUNJhsNqU9WdPt5P+ES/wQ5bxfijy8zwZgZZHslC3iAsxsuQMCzJQ==", + "dev": true, + "requires": { + "lower-case": "^1.1.1", + "upper-case": "^1.1.1" + } + }, + "table": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", + "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", + "dev": true, + "requires": { + "ajv": "^5.2.3", + "ajv-keywords": "^2.1.0", + "chalk": "^2.1.0", + "lodash": "^4.17.4", + "slice-ansi": "1.0.0", + "string-width": "^2.1.1" + }, + "dependencies": { + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha512-Ajr4IcMXq/2QmMkEmSvxqfLN5zGmJ92gHXAeOXq1OekoH2rfDNsgdDoL2f7QaRCy7G/E6TpxBVdRuNraMztGHw==", + "dev": true, + "requires": { + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" + } + }, + "ajv-keywords": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", + "integrity": "sha512-ZFztHzVRdGLAzJmpUT9LNFLe1YiVOEylcaNpEutM26PVTCtOD919IMfD01CgbRouB42Dd9atjx1HseC15DgOZA==", + "dev": true + }, + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha512-fueX787WZKCV0Is4/T2cyAdM4+x1S3MXXOAhavE1ys/W42SHAPacLTQhucja22QBYrfGw50M2sRiXPtTGv9Ymw==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha512-4JD/Ivzg7PoW8NzdrBSr3UFwC9mHgvI7Z6z3QGBsSHgKaRTUDmyZAAKJo2UbG1kUVfS9WS8bi36N49U1xw43DA==", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "tapable": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.9.tgz", + "integrity": "sha512-2wsvQ+4GwBvLPLWsNfLCDYGsW6xb7aeC6utq2Qh0PFwgEy7K7dsma9Jsmb2zSQj7GvYAyUGSntLtsv++GmgL1A==", + "dev": true + }, + "tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "requires": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + } + }, + "temp-file": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/temp-file/-/temp-file-3.4.0.tgz", + "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==", + "dev": true, + "requires": { + "async-exit-hook": "^2.0.1", + "fs-extra": "^10.0.0" + }, + "dependencies": { + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true + }, + "three": { + "version": "0.158.0", + "resolved": "https://registry.npmjs.org/three/-/three-0.158.0.tgz", + "integrity": "sha512-TALj4EOpdDPF1henk2Q+s17K61uEAAWQ7TJB68nr7FKxqwyDr3msOt5IWdbGm4TaWKjrtWS8DJJWe9JnvsWOhQ==" + }, + "throttle-debounce": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz", + "integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg==" + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "dev": true + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + }, + "dependencies": { + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + } + } + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "time-stamp": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.2.0.tgz", + "integrity": "sha512-zxke8goJQpBeEgD82CXABeMh0LSJcj7CXEd0OHOg45HgcofF7pxNwZm9+RknpxpDhwN4gFpySkApKfFYfRQnUA==", + "dev": true + }, + "timers-browserify": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.12.tgz", + "integrity": "sha512-9phl76Cqm6FhSX9Xe1ZUAMLtm1BLkKj2Qd5ApyWkXzsMRaA7dgr81kf4wJmQf/hAvg8EEyJxDo3du/0KlhPiKQ==", + "dev": true, + "requires": { + "setimmediate": "^1.0.4" + } + }, + "title-case": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/title-case/-/title-case-2.1.1.tgz", + "integrity": "sha512-EkJoZ2O3zdCz3zJsYCsxyq2OC5hrxR9mfdd5I+w8h/tmFfeOxJ+vvkxsKxdmN0WtS9zLdHEgfgVOiMVgv+Po4Q==", + "dev": true, + "requires": { + "no-case": "^2.2.0", + "upper-case": "^1.0.3" + } + }, + "tmp": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "dev": true + }, + "tmp-promise": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", + "dev": true, + "requires": { + "tmp": "^0.2.0" + } + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha512-okFlQcoGTi4LQBG/PgSYblw9VOyptsz2KJZqc6qtgGdes8VktzUQkj4BI2blit072iS8VODNcMA+tvnS9dnuMA==", + "dev": true + }, + "to-buffer": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", + "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", + "requires": { + "isarray": "^2.0.5", + "safe-buffer": "^5.2.1", + "typed-array-buffer": "^1.0.3" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + } + } + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha512-lxrWP8ejsq+7E3nNjwYmUBMAgjMTZoTI+sdBOpvNyijeDLa29LUn9QaoXAHv4+Z578hbmHHJKZknzxVtvo77og==", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "dev": true + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + }, + "dependencies": { + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + }, + "topojson-client": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/topojson-client/-/topojson-client-3.1.0.tgz", + "integrity": "sha512-605uxS6bcYxGXw9qi62XyrV6Q3xwbndjachmNxu8HWTtVPxZfEJN9fd/SZS1Q54Sn2y0TMyMxFj/cJINqGHrKw==", + "requires": { + "commander": "2" + } + }, + "toposort": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/toposort/-/toposort-1.0.7.tgz", + "integrity": "sha512-FclLrw8b9bMWf4QlCJuHBEVhSRsqDj6u3nIjAzPeJvgl//1hBlffdlk0MALceL14+koWEdU4ofRAXofbODxQzg==", + "dev": true + }, + "traverse": { + "version": "0.6.11", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.11.tgz", + "integrity": "sha512-vxXDZg8/+p3gblxB6BhhG5yWVn1kGRlaL8O78UDXc3wRnPizB5g83dcvWV1jpDMIPnjZjOFuxlMmE82XJ4407w==", + "requires": { + "gopd": "^1.2.0", + "typedarray.prototype.slice": "^1.0.5", + "which-typed-array": "^1.1.18" + } + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==", + "dev": true + }, + "truncate-utf8-bytes": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", + "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==", + "dev": true, + "requires": { + "utf8-byte-length": "^1.0.1" + } + }, + "tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==", + "dev": true + }, + "tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "dev": true, + "optional": true + }, + "type": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/type/-/type-2.7.3.tgz", + "integrity": "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-fest": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", + "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==" + }, + "type-is": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", + "requires": { + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + } + }, + "typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "requires": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + } + }, + "typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "requires": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + } + }, + "typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "requires": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + } + }, + "typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "requires": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typedarray.prototype.slice": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.5.tgz", + "integrity": "sha512-q7QNVDGTdl702bVFiI5eY4l/HkgCM6at9KhcFbgUAzezHFbOVy4+0O/lCjsABEQwbZPravVfBIiBVGo89yzHFg==", + "requires": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "math-intrinsics": "^1.1.0", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-offset": "^1.0.4" + } + }, + "uglify-js": { + "version": "3.4.10", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz", + "integrity": "sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw==", + "dev": true, + "requires": { + "commander": "~2.19.0", + "source-map": "~0.6.1" + }, + "dependencies": { + "commander": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha512-vb2s1lYx2xBtUgy+ta+b2J/GLVUR+wmpINwHePmPRhOsIVCG2wDzKJ0n14GslH1BifsqVzSOwQhRaCAsZ/nI4Q==", + "dev": true + }, + "uglifyjs-webpack-plugin": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", + "integrity": "sha512-TNM20HMW67kxHRNCZdvLyiwE1ST6WyY5Ae+TG55V81NpvNwJ9+V4/po4LHA1R9afV/WrqzfedG2UJCk2+swirw==", + "dev": true, + "requires": { + "source-map": "^0.5.6", + "uglify-js": "^2.8.29", + "webpack-sources": "^1.0.1" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g==", + "dev": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha512-GIOYRizG+TGoc7Wgc1LiOTLare95R3mzKgoln+Q/lE4ceiYH19gUpl0l0Ffq4lJDEf3FxujMe6IBfOCs7pfqNA==", + "dev": true, + "requires": { + "center-align": "^0.1.1", + "right-align": "^0.1.1", + "wordwrap": "0.0.2" + } + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha512-qLq/4y2pjcU3vhlhseXGGJ7VbFO4pBANu0kwl8VCa9KEI0V8VfZIx2Fy3w01iSTA/pGwKZSmu/+I4etLNDdt5w==", + "dev": true, + "requires": { + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + } + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha512-1pTPQDKTdd61ozlKGNCjhNRd+KPmgLSGa3mZTHoOliaGcESD8G1PXhh7c1fgiPjVbNVfgy2Faw4BI8/m0cC8Mg==", + "dev": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha512-QFzUah88GAGy9lyDKGBqZdkYApt63rCXYBGYnEP4xDJPXNqXXnBDACnbrXnViV6jRSqAePwrATi2i8mfYm4L1A==", + "dev": true, + "requires": { + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", + "window-size": "0.1.0" + } + } + } + }, + "unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "requires": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + } + }, + "undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==" + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", + "dev": true + }, + "unidecode": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/unidecode/-/unidecode-0.1.8.tgz", + "integrity": "sha512-SdoZNxCWpN2tXTCrGkPF/0rL2HEq+i2gwRG1ReBvx8/0yTzC3enHfugOf8A9JBShVwwrRIkLX0YcDUGbzjbVCA==" + }, + "union-value": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", + "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^2.0.1" + } + }, + "uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==", + "dev": true + }, + "uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha512-mZdDpf3vBV5Efh29kMw5tXoup/buMgxLzOt/XKFKcVmi+15ManNQWr6HfZ2aiZTYlYixbdNJ0KFmIZIv52tHSQ==", + "dev": true + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==" + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==" + } + } + }, + "upath": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", + "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", + "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "dev": true, + "requires": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + } + }, + "update-notifier": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", + "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", + "dev": true, + "requires": { + "boxen": "^5.0.0", + "chalk": "^4.1.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.4.0", + "is-npm": "^5.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.1.0", + "pupa": "^2.1.1", + "semver": "^7.3.4", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "dependencies": { + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "upper-case": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz", + "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==", + "dev": true + }, + "upper-case-first": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-1.1.2.tgz", + "integrity": "sha512-wINKYvI3Db8dtjikdAqoBbZoP6Q+PZUyfMR7pmwHzjC2quzSkUq5DmPrTtPEqHaz8AGtmsB4TqwapMTM1QAQOQ==", + "dev": true, + "requires": { + "upper-case": "^1.1.1" + } + }, + "uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==" + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==" + }, + "url": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.4.tgz", + "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", + "dev": true, + "requires": { + "punycode": "^1.4.1", + "qs": "^6.12.3" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", + "dev": true + } + } + }, + "url-loader": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/url-loader/-/url-loader-0.5.9.tgz", + "integrity": "sha512-B7QYFyvv+fOBqBVeefsxv6koWWtjmHaMFT6KZWti4KRw8YUD/hOU+3AECvXuzyVawIBx3z7zQRejXCDSO5kk1Q==", + "dev": true, + "requires": { + "loader-utils": "^1.0.2", + "mime": "1.3.x" + }, + "dependencies": { + "mime": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz", + "integrity": "sha512-a/kG+3WTtU8GJG1ngpkkHOHcH6zNjGrI47OQyoFsFBN0QpYYJ4u2yEORsGK5cZMI+cfu9HbSCCfGfRzG0fWE9A==", + "dev": true + } + } + }, + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==", + "dev": true, + "requires": { + "prepend-http": "^2.0.0" + }, + "dependencies": { + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==", + "dev": true + } + } + }, + "url-slug": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/url-slug/-/url-slug-2.0.0.tgz", + "integrity": "sha512-aiNmSsVgrjCiJ2+KWPferjT46YFKoE8i0YX04BlMVDue022Xwhg/zYlnZ6V9/mP3p8Wj7LEp0myiTkC/p6sxew==", + "requires": { + "unidecode": "0.1.8" + } + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" + }, + "utf8-byte-length": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz", + "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==", + "dev": true + }, + "util": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", + "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, + "requires": { + "inherits": "2.0.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "utila": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", + "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", + "dev": true + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + }, + "vendors": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", + "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", + "dev": true + }, + "verror": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz", + "integrity": "sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==", + "dev": true, + "optional": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + }, + "dependencies": { + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "dev": true, + "optional": true + } + } + }, + "viewerjs": { + "version": "1.11.7", + "resolved": "https://registry.npmjs.org/viewerjs/-/viewerjs-1.11.7.tgz", + "integrity": "sha512-0JuVqOmL5v1jmEAlG5EBDR3XquxY8DWFQbFMprOXgaBB0F7Q/X9xWdEaQc59D8xzwkdUgXEMSSknTpriq95igg==" + }, + "vm-browserify": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", + "dev": true + }, + "vue": { + "version": "2.5.17", + "resolved": "https://registry.npmjs.org/vue/-/vue-2.5.17.tgz", + "integrity": "sha512-mFbcWoDIJi0w0Za4emyLiW72Jae0yjANHbCVquMKijcavBGypqlF7zHRgMa5k4sesdv7hv2rB4JPdZfR+TPfhQ==" + }, + "vue-cropper": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-0.5.11.tgz", + "integrity": "sha512-UeA3qL2BLCTGkOEAxEsxSNFO+qLYAn6YRHv4oS32cP9lMhF1vFmnAf/z+ZamtR0/Fh3sbZeZUCLVR2Ol2/dpTQ==" + }, + "vue-electron": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/vue-electron/-/vue-electron-1.0.6.tgz", + "integrity": "sha512-Ml/vsYi9fMEDqtLxL+4N96oxubpmuZuqwPprqlPHq9+0uOly2dJN+eLuD4db2UU7MMLarzR279xBNjpvMCowAA==" + }, + "vue-hot-reload-api": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", + "integrity": "sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==" + }, + "vue-html-loader": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/vue-html-loader/-/vue-html-loader-1.2.4.tgz", + "integrity": "sha512-HwQitwnA2R65DhGaZnqOCrfCzz/zIgph1oChO6fuoMUtY+1T8JCPuadO4KdQxZwyskEOBSxOCUtZFyxPgewPDw==", + "dev": true, + "requires": { + "es6-templates": "^0.2.2", + "fastparse": "^1.0.0", + "html-minifier": "^2.1.5", + "loader-utils": "^1.0.2", + "object-assign": "^4.1.0" + }, + "dependencies": { + "async": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "integrity": "sha512-eAkdoKxU6/LkKDBzLpT+t6Ff5EtfSF4wx1WfJiPEEV7WNLnDaRXk0oVysiEPm262roaachGexwUv94WhSgN5TQ==", + "dev": true + }, + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g==", + "dev": true + }, + "change-case": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-3.0.2.tgz", + "integrity": "sha512-Mww+SLF6MZ0U6kdg11algyKd5BARbyM4TbFBepwowYSR5ClfQGCGtxNXgykpN0uF/bstWeaGDT4JWaDh8zWAHA==", + "dev": true, + "requires": { + "camel-case": "^3.0.0", + "constant-case": "^2.0.0", + "dot-case": "^2.1.0", + "header-case": "^1.0.0", + "is-lower-case": "^1.1.0", + "is-upper-case": "^1.1.0", + "lower-case": "^1.1.1", + "lower-case-first": "^1.0.0", + "no-case": "^2.3.2", + "param-case": "^2.1.0", + "pascal-case": "^2.0.0", + "path-case": "^2.1.0", + "sentence-case": "^2.1.0", + "snake-case": "^2.1.0", + "swap-case": "^1.1.0", + "title-case": "^2.1.0", + "upper-case": "^1.1.1", + "upper-case-first": "^1.1.0" + } + }, + "clean-css": { + "version": "3.4.28", + "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz", + "integrity": "sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw==", + "dev": true, + "requires": { + "commander": "2.8.x", + "source-map": "0.4.x" + }, + "dependencies": { + "commander": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", + "integrity": "sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ==", + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + } + } + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha512-GIOYRizG+TGoc7Wgc1LiOTLare95R3mzKgoln+Q/lE4ceiYH19gUpl0l0Ffq4lJDEf3FxujMe6IBfOCs7pfqNA==", + "dev": true, + "requires": { + "center-align": "^0.1.1", + "right-align": "^0.1.1", + "wordwrap": "0.0.2" + } + }, + "commander": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz", + "integrity": "sha512-bmkUukX8wAOjHdN26xj5c4ctEV22TQ7dQYhSmuckKhToXrkUn0iIaolHdIxYYqD55nhpSPA9zPQ1yP57GdXP2A==", + "dev": true, + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha512-z/GDPjlRMNOa2XJiB4em8wJpuuBfrFOlYKTZxtpkdr1uPdibHI8rYA3MY0KDObpVyaes0e/aunid/t88ZI2EKA==", + "dev": true + }, + "html-minifier": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-2.1.7.tgz", + "integrity": "sha512-HDb93Rn0fdb/DS0DbTDapR9LlK8zrSccJwukR5Mt+adCd6+ocTpymknnUiBo3JTQ3nXLC3qPhA5diIGdO1CF4A==", + "dev": true, + "requires": { + "change-case": "3.0.x", + "clean-css": "3.4.x", + "commander": "2.9.x", + "he": "1.1.x", + "ncname": "1.0.x", + "relateurl": "0.2.x", + "uglify-js": "2.6.x" + } + }, + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A==", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + }, + "uglify-js": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.6.4.tgz", + "integrity": "sha512-5uPOZS1EDeuBIFwTYTlJefbQXWn+auebcRQpj5EtWr9E/7XwWVZ6YTgulZVSTHAEU9y/mYMYh2Mjt7TJ1iRNxQ==", + "dev": true, + "requires": { + "async": "~0.2.6", + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true + } + } + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha512-1pTPQDKTdd61ozlKGNCjhNRd+KPmgLSGa3mZTHoOliaGcESD8G1PXhh7c1fgiPjVbNVfgy2Faw4BI8/m0cC8Mg==", + "dev": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha512-QFzUah88GAGy9lyDKGBqZdkYApt63rCXYBGYnEP4xDJPXNqXXnBDACnbrXnViV6jRSqAePwrATi2i8mfYm4L1A==", + "dev": true, + "requires": { + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", + "window-size": "0.1.0" + } + } + } + }, + "vue-i18n": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.2.1.tgz", + "integrity": "sha512-eiqkUBP9uoADmHa1vz0jLS/JNvR+dODjn2nz14/ZD14hTaWpbOXoUZ0C5Nd2vbP6vOaxXjmkvkzJn/VISvX1BQ==" + }, + "vue-loader": { + "version": "13.7.3", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-13.7.3.tgz", + "integrity": "sha512-ACCwbfeC6HjY2pnDii+Zer+MZ6sdOtwvLmDXRK/BoD3WNR551V22R6KEagwHoTRJ0ZlIhpCBkptpCU6+Ri/05w==", + "dev": true, + "requires": { + "consolidate": "^0.14.0", + "hash-sum": "^1.0.2", + "loader-utils": "^1.1.0", + "lru-cache": "^4.1.1", + "postcss": "^6.0.8", + "postcss-load-config": "^1.1.0", + "postcss-selector-parser": "^2.0.0", + "prettier": "^1.7.0", + "resolve": "^1.4.0", + "source-map": "^0.6.1", + "vue-hot-reload-api": "^2.2.0", + "vue-style-loader": "^3.0.0", + "vue-template-es2015-compiler": "^1.6.0" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "postcss": { + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "vue-style-loader": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-3.1.2.tgz", + "integrity": "sha512-ICtVdK/p+qXWpdSs2alWtsXt9YnDoYjQe0w5616j9+/EhjoxZkbun34uWgsMFnC1MhrMMwaWiImz3K2jK1Yp2Q==", + "dev": true, + "requires": { + "hash-sum": "^1.0.2", + "loader-utils": "^1.0.2" + } + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } + } + }, + "vue-router": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.0.1.tgz", + "integrity": "sha512-vLLoY452L+JBpALMP5UHum9+7nzR9PeIBCghU9ZtJ1eWm6ieUI8Zb/DI3MYxH32bxkjzYV1LRjNv4qr8d+uX/w==" + }, + "vue-style-loader": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.3.tgz", + "integrity": "sha512-sFuh0xfbtpRlKfm39ss/ikqs9AbKCoXZBpHeVZ8Tx650o0k0q/YCM7FRvigtxpACezfq6af+a7JeqVTWvncqDg==", + "requires": { + "hash-sum": "^1.0.2", + "loader-utils": "^1.0.2" + } + }, + "vue-template-compiler": { + "version": "2.5.17", + "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.5.17.tgz", + "integrity": "sha512-63uI4syCwtGR5IJvZM0LN5tVsahrelomHtCxvRkZPJ/Tf3ADm1U1wG6KWycK3qCfqR+ygM5vewUvmJ0REAYksg==", + "dev": true, + "requires": { + "de-indent": "^1.0.2", + "he": "^1.1.0" + } + }, + "vue-template-es2015-compiler": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz", + "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", + "dev": true + }, + "vuex": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz", + "integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==" + }, + "watchpack": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.7.5.tgz", + "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==", + "dev": true, + "requires": { + "chokidar": "^3.4.1", + "graceful-fs": "^4.1.2", + "neo-async": "^2.5.0", + "watchpack-chokidar2": "^2.0.1" + }, + "dependencies": { + "braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "optional": true, + "requires": { + "fill-range": "^7.1.1" + } + }, + "chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + } + }, + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "optional": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "optional": true + }, + "readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "optional": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "optional": true, + "requires": { + "is-number": "^7.0.0" + } + } + } + }, + "watchpack-chokidar2": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz", + "integrity": "sha512-nCFfBIPKr5Sh61s4LPpy1Wtfi0HE8isJ3d2Yb5/Ppw2P2B/3eVSEBjKfN0fmHJSK14+31KwMKmcrzs2GM4P0Ww==", + "dev": true, + "optional": true, + "requires": { + "chokidar": "^2.1.8" + }, + "dependencies": { + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "optional": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "optional": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, + "binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true, + "optional": true + }, + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "dev": true, + "optional": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "optional": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "optional": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "dev": true, + "optional": true + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dev": true, + "optional": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "optional": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", + "dev": true, + "optional": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dev": true, + "optional": true, + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "optional": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "optional": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "optional": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "optional": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + } + } + }, + "wbuf": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz", + "integrity": "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA==", + "dev": true, + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "webpack": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.12.0.tgz", + "integrity": "sha512-Sw7MdIIOv/nkzPzee4o0EdvCuPmxT98+vVpIvwtcwcF1Q4SDSNp92vwcKc4REe7NItH9f1S4ra9FuQ7yuYZ8bQ==", + "dev": true, + "requires": { + "acorn": "^5.0.0", + "acorn-dynamic-import": "^2.0.0", + "ajv": "^6.1.0", + "ajv-keywords": "^3.1.0", + "async": "^2.1.2", + "enhanced-resolve": "^3.4.0", + "escope": "^3.6.0", + "interpret": "^1.0.0", + "json-loader": "^0.5.4", + "json5": "^0.5.1", + "loader-runner": "^2.3.0", + "loader-utils": "^1.1.0", + "memory-fs": "~0.4.1", + "mkdirp": "~0.5.0", + "node-libs-browser": "^2.0.0", + "source-map": "^0.5.3", + "supports-color": "^4.2.1", + "tapable": "^0.2.7", + "uglifyjs-webpack-plugin": "^0.4.6", + "watchpack": "^1.4.0", + "webpack-sources": "^1.0.1", + "yargs": "^8.0.2" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "async": { + "version": "2.6.4", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", + "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", + "dev": true, + "requires": { + "lodash": "^4.17.14" + } + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw==", + "dev": true + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + } + } + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha512-P+1n3MnwjR/Epg9BBo1KT8qbye2g2Ou4sFumihwt6I4tsUX7jnLcX4BTOSKg/B1ZrIYMN9FcEnG4x5a7NB8Eng==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha512-4xrs1aW+6N5DalkqSVA8fxh458CXvR99WU8WLKmq4v8eWAL86Xo3BVqyd3SkA9wEVjCMqyvvRRkshAdOnBp5rw==", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha512-ycQR/UbvI9xIlEdQT1TQqwoXtEldExbCEAJgRo5YXlmSKjv6ThHnP9/vwGa1gr19Gfw+LkFd7KqYMhzrRC5JYw==", + "dev": true, + "requires": { + "has-flag": "^2.0.0" + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + } + } + }, + "y18n": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", + "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==", + "dev": true + }, + "yargs": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", + "integrity": "sha512-3RiZrpLpjrzIAKgGdPktBcMP/eG5bDFlkI+PHle1qwzyVXyDQL+pD/eZaMoOOO0Y7LLBfjpucObuUm/icvbpKQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "read-pkg-up": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^7.0.0" + } + }, + "yargs-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", + "integrity": "sha512-WhzC+xgstid9MbVUktco/bf+KJG+Uu6vMX0LN1sLJvwmbCQVxb4D8LzogobonKycNasCZLdOzTAk1SK7+K7swg==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } + }, + "webpack-dev-middleware": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz", + "integrity": "sha512-FCrqPy1yy/sN6U/SaEZcHKRXGlqU0DUaEBL45jkUYoB8foVb6wCnbIJ1HKIx+qUFTW+3JpVcCJCxZ8VATL4e+A==", + "dev": true, + "requires": { + "memory-fs": "~0.4.1", + "mime": "^1.5.0", + "path-is-absolute": "^1.0.0", + "range-parser": "^1.0.3", + "time-stamp": "^2.0.0" + } + }, + "webpack-dev-server": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-2.11.5.tgz", + "integrity": "sha512-7TdOKKt7G3sWEhPKV0zP+nD0c4V9YKUJ3wDdBwQsZNo58oZIRoVIu66pg7PYkBW8A74msP9C2kLwmxGHndz/pw==", + "dev": true, + "requires": { + "ansi-html": "0.0.7", + "array-includes": "^3.0.3", + "bonjour": "^3.5.0", + "chokidar": "^2.1.2", + "compression": "^1.7.3", + "connect-history-api-fallback": "^1.3.0", + "debug": "^3.1.0", + "del": "^3.0.0", + "express": "^4.16.2", + "html-entities": "^1.2.0", + "http-proxy-middleware": "^0.19.1", + "import-local": "^1.0.0", + "internal-ip": "1.2.0", + "ip": "^1.1.5", + "killable": "^1.0.0", + "loglevel": "^1.4.1", + "opn": "^5.1.0", + "portfinder": "^1.0.9", + "selfsigned": "^1.9.1", + "serve-index": "^1.9.1", + "sockjs": "0.3.19", + "sockjs-client": "1.1.5", + "spdy": "^4.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^5.1.0", + "webpack-dev-middleware": "1.12.2", + "yargs": "6.6.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", + "dev": true + }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + }, + "dependencies": { + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + } + } + }, + "binary-extensions": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.1.tgz", + "integrity": "sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==", + "dev": true + }, + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==", + "dev": true + }, + "chokidar": { + "version": "2.1.8", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", + "integrity": "sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg==", + "dev": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + } + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "fsevents": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", + "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", + "dev": true, + "optional": true + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA==", + "dev": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha512-9fRVlXc0uCxEDj1nQzaWONSpbTfx0FmJfzHF7pwlI8DkWGoHBBea4Pg5Ky0ojwwxQmnSifgbKkI06Qv0Ljgj+Q==", + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-descriptor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz", + "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.1", + "is-data-descriptor": "^1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", + "dev": true, + "requires": { + "lcid": "^1.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + } + }, + "y18n": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", + "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==", + "dev": true + }, + "yargs": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", + "integrity": "sha512-6/QWTdisjnu5UHUzQGst+UOEuEVwIzFVGBjq3jMTFNs5WJQsH/X6nMURSaScIdF5txylr1Ao9bvbWiKi2yXbwA==", + "dev": true, + "requires": { + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^4.2.0" + } + }, + "yargs-parser": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", + "integrity": "sha512-+QQWqC2xeL0N5/TE+TY6OGEqyNRM+g2/r712PDNYgiCdXYCApXf1vzfmDSLBxfGRwV+moTq/V8FnMI24JCm2Yg==", + "dev": true, + "requires": { + "camelcase": "^3.0.0" + } + } + } + }, + "webpack-hot-middleware": { + "version": "2.26.1", + "resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.26.1.tgz", + "integrity": "sha512-khZGfAeJx6I8K9zKohEWWYN6KDlVw2DHownoe+6Vtwj1LP9WFgegXnVMSkZ/dBEBtXFwrkkydsaPFlB7f8wU2A==", + "dev": true, + "requires": { + "ansi-html-community": "0.0.8", + "html-entities": "^2.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-html-community": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ansi-html-community/-/ansi-html-community-0.0.8.tgz", + "integrity": "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==", + "dev": true + }, + "html-entities": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", + "dev": true + } + } + }, + "webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dev": true, + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "dev": true + }, + "whet.extend": { + "version": "0.9.9", + "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", + "integrity": "sha512-mmIPAft2vTgEILgPeZFqE/wWh24SEsR/k+N9fJ3Jxrz44iDFy9aemCxdksfURSHYFCLmvs/d/7Iso5XjPpNfrA==", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "requires": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + } + }, + "which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "requires": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "dependencies": { + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" + } + } + }, + "which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "requires": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + } + }, + "which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "dev": true + }, + "which-typed-array": { + "version": "1.1.19", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", + "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", + "requires": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + } + }, + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dev": true, + "requires": { + "string-width": "^4.0.0" + } + }, + "window-size": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-1.1.1.tgz", + "integrity": "sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "is-number": "^3.0.0" + } + }, + "wmf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz", + "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==" + }, + "word": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz", + "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==" + }, + "word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true + }, + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha512-xSBsCeh+g+dinoBv3GAOWM4LcVVO68wLXRanibtBSdUvkGWQRGeE9P7IwU9EmDDi4jA6L44lz15CGMwdw9N5+Q==", + "dev": true + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "write": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", + "integrity": "sha512-CJ17OoULEKXpA5pef3qLj5AxTJ6mSt7g84he2WIskKwqFO4T97d5V7Tadl0DYDk7qyUOQD5WlUlOMChaYrhxeA==", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "dev": true + }, + "xlsx": { + "version": "0.18.5", + "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.18.5.tgz", + "integrity": "sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ==", + "requires": { + "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" + } + }, + "xml-char-classes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/xml-char-classes/-/xml-char-classes-1.0.0.tgz", + "integrity": "sha512-dTaaRwm4ccF8UF15/PLT3pNNlZP04qko/FUcr0QBppYLk8+J7xA9gg2vI2X4Kr1PcJAVxwI9NdADex29FX2QVQ==", + "dev": true + }, + "xmlbuilder": { + "version": "15.1.1", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz", + "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==", + "dev": true + }, + "xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + }, + "yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "dev": true, + "requires": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "yazl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", + "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", + "requires": { + "buffer-crc32": "~0.2.3" + } + }, + "zip-stream": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.1.1.tgz", + "integrity": "sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==", + "requires": { + "archiver-utils": "^3.0.4", + "compress-commons": "^4.1.2", + "readable-stream": "^3.6.0" + }, + "dependencies": { + "archiver-utils": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.4.tgz", + "integrity": "sha512-KVgf4XQVrTjhyWmx6cte4RxonPLR9onExufI1jhvw/MQ4BB6IsZD5gT8Lq+u/+pRkWna/6JoHpiQioaqFP5Rzw==", + "requires": { + "glob": "^7.2.3", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^3.6.0" + } + } + } + } + } +} diff --git a/static/sdk/YJEarth.min.js b/static/sdk/YJEarth.min.js index 588465a..6087cb5 100644 --- a/static/sdk/YJEarth.min.js +++ b/static/sdk/YJEarth.min.js @@ -1,4 +1,4 @@ -/*! update time: 2025/11/25 11:39:41*/!function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=22)}([function(t,e,i){var n=i(23)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(18);function o(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=Array(e);it.length)&&(e=t.length);for(var i=0,n=Array(e);i>2]|=t[s]<>6,l[o++]=128|63&n):n<55296||n>=57344?(l[o++]=224|n>>12,l[o++]=128|n>>6&63,l[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++s)),l[o++]=240|n>>18,l[o++]=128|n>>12&63,l[o++]=128|n>>6&63,l[o++]=128|63&n);else for(o=this.start;s>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(r[o>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,i,n,o,s,a=this.blocks;this.first?e=((e=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879<<0)^(i=((i=(-271733879^(n=((n=(-1732584194^2004318071&t)+a[1]-117830708)<<12|n>>>20)+t<<0)&(-271733879^t))+a[2]-1126478375)<<17|i>>>15)+n<<0)&(n^t))+a[3]-1316259209)<<22|e>>>10)+i<<0:(t=this.h0,e=this.h1,i=this.h2,e=((e+=((t=((t+=((n=this.h3)^e&(i^n))+a[0]-680876936)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[1]-389564586)<<12|n>>>20)+t<<0)&(t^e))+a[2]+606105819)<<17|i>>>15)+n<<0)&(n^t))+a[3]-1044525330)<<22|e>>>10)+i<<0),e=((e+=((t=((t+=(n^e&(i^n))+a[4]-176418897)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[5]+1200080426)<<12|n>>>20)+t<<0)&(t^e))+a[6]-1473231341)<<17|i>>>15)+n<<0)&(n^t))+a[7]-45705983)<<22|e>>>10)+i<<0,e=((e+=((t=((t+=(n^e&(i^n))+a[8]+1770035416)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[9]-1958414417)<<12|n>>>20)+t<<0)&(t^e))+a[10]-42063)<<17|i>>>15)+n<<0)&(n^t))+a[11]-1990404162)<<22|e>>>10)+i<<0,e=((e+=((t=((t+=(n^e&(i^n))+a[12]+1804603682)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[13]-40341101)<<12|n>>>20)+t<<0)&(t^e))+a[14]-1502002290)<<17|i>>>15)+n<<0)&(n^t))+a[15]+1236535329)<<22|e>>>10)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[1]-165796510)<<5|t>>>27)+e<<0)^e))+a[6]-1069501632)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[11]+643717713)<<14|i>>>18)+n<<0)^n))+a[0]-373897302)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[5]-701558691)<<5|t>>>27)+e<<0)^e))+a[10]+38016083)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[15]-660478335)<<14|i>>>18)+n<<0)^n))+a[4]-405537848)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[9]+568446438)<<5|t>>>27)+e<<0)^e))+a[14]-1019803690)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[3]-187363961)<<14|i>>>18)+n<<0)^n))+a[8]+1163531501)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[13]-1444681467)<<5|t>>>27)+e<<0)^e))+a[2]-51403784)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[7]+1735328473)<<14|i>>>18)+n<<0)^n))+a[12]-1926607734)<<20|e>>>12)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[5]-378558)<<4|t>>>28)+e<<0))+a[8]-2022574463)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[11]+1839030562)<<16|i>>>16)+n<<0))+a[14]-35309556)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[1]-1530992060)<<4|t>>>28)+e<<0))+a[4]+1272893353)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[7]-155497632)<<16|i>>>16)+n<<0))+a[10]-1094730640)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[13]+681279174)<<4|t>>>28)+e<<0))+a[0]-358537222)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[3]-722521979)<<16|i>>>16)+n<<0))+a[6]+76029189)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[9]-640364487)<<4|t>>>28)+e<<0))+a[12]-421815835)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[15]+530742520)<<16|i>>>16)+n<<0))+a[2]-995338651)<<23|e>>>9)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[0]-198630844)<<6|t>>>26)+e<<0)|~i))+a[7]+1126891415)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[14]-1416354905)<<15|i>>>17)+n<<0)|~t))+a[5]-57434055)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[12]+1700485571)<<6|t>>>26)+e<<0)|~i))+a[3]-1894986606)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[10]-1051523)<<15|i>>>17)+n<<0)|~t))+a[1]-2054922799)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[8]+1873313359)<<6|t>>>26)+e<<0)|~i))+a[15]-30611744)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[6]-1560198380)<<15|i>>>17)+n<<0)|~t))+a[13]+1309151649)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[4]-145523070)<<6|t>>>26)+e<<0)|~i))+a[11]-1120210379)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[2]+718787259)<<15|i>>>17)+n<<0)|~t))+a[9]-343485551)<<21|e>>>11)+i<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=i-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+i<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,i,n="",o=this.array(),s=0;s<15;)t=o[s++],e=o[s++],i=o[s++],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|i>>>6)]+BASE64_ENCODE_CHAR[63&i];return t=o[s],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(31),__webpack_require__(32))},function(t,e,i){var n=i(5),o=i(15),s=i(34),a=i(35);function r(e){var i="function"==typeof Map?new Map:void 0;return t.exports=r=function(t){if(null===t||!s(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){t.exports=i(39)},function(t,e,i){var n=i(11).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},s=Object.prototype,a=s.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function h(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var o=e&&e.prototype instanceof b?e:b,s=Object.create(o.prototype),a=new N(n||[]);return r(s,"_invoke",{value:P(t,i,a)}),s}function m(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var f="suspendedStart",v="executing",g="completed",y={};function b(){}function C(){}function w(){}var k={};h(k,c,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(B([])));_&&_!==s&&a.call(_,c)&&(k=_);var E=w.prototype=b.prototype=Object.create(k);function S(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function i(o,s,r,l){var c=m(t[o],t,s);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==n(p)&&a.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,r,l)}),(function(t){i("throw",t,r,l)})):e.resolve(p).then((function(t){u.value=t,r(u)}),(function(t){return i("throw",t,r,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(t,n){function s(){return new e((function(e,o){i(t,n,e,o)}))}return o=o?o.then(s,s):s()}})}function P(t,i,n){var o=f;return function(s,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===s)throw a;return{value:e,done:!0}}for(n.method=s,n.arg=a;;){var r=n.delegate;if(r){var l=M(r,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=m(t,i,n);if("normal"===c.type){if(o=n.done?g:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function M(t,i){var n=i.method,o=t.iterator[n];if(o===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,M(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var s=m(o,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,y;var a=s.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,y):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function B(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function i(){for(;++o=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),T(i),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;T(i)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:B(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),y}},i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,a,r=[],l=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(r.push(n.value),r.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return r}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(11).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(17);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){var i,n,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(t){if(i===setTimeout)return setTimeout(t,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:s}catch(t){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,c=[],u=!1,p=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var t=r(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++p1)for(var i=1;i0&&void 0!==o[0]?o[0]:{},t.next=3,fetch((e.host||"")+"/yjearth4.0/api/v1/user/sign-in",{method:"post",body:JSON.stringify({username:e.username,password:e.password}),headers:{"Content-Type":"application/json"}});case 3:return i=t.sent,t.next=6,i.text();case 6:n=t.sent,0===(n=JSON.parse(n)).code&&(p(e.host),n.token?d(n.token):d(n.data.token));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t){localStorage.setItem(l,t||"")}function h(){return localStorage.getItem(l)||""}function d(t){localStorage.setItem(r,t)}function m(){return localStorage.getItem(r)}function f(){var t=document.querySelectorAll("script"),e="";return t.forEach((function(t){if(t.src.indexOf("YJEarth.min.js")>-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}var g=i(10),y=i.n(g),b=i(8),C=i.n(b),w=i(1),k=i.n(w),x=i(2),_=i.n(x);function E(t){document.addEventListener("keydown",M.bind(t),!1),document.addEventListener("keyup",O.bind(t),!1),t&&t.clock.onTick.addEventListener((function(){!function(t){if(!t||!t.scene||!t.scene.screenSpaceCameraController.enableTilt)return;var e=t.camera,i=t.scene.globe.ellipsoid.cartesianToCartographic(e.position).height,n=e.positionCartographic.height,o=i/20,s=o/5e5/Cesium.Math.toDegrees(e.pitch),a=n/100;S.moveForward&&(2==t.scene.mode?e.moveUp(a):e.rotate(e.right,-s));S.moveBackward&&(2==t.scene.mode?e.moveDown(a):e.rotate(e.right,s));S.moveLeft&&(2==t.scene.mode?e.moveLeft(a):e.rotate(e.up,-s));S.moveRight&&(2==t.scene.mode?e.moveRight(a):e.rotate(e.up,s));S.moveUp&&e.moveUp(o);S.moveDown&&e.moveDown(o);S.lookUp&&e.lookUp();S.lookDown&&e.lookDown();S.lookLeft&&e.lookLeft();S.lookRight&&e.lookRight();S.twistLeft&&e.twistLeft();S.twistRight&&e.twistRight();if(S.zoomIn){var r=i/2;r<1&&(r=0),e.zoomIn(r)}if(S.zoomOut){var l=i/2;i+i>=5e7&&(l=5e7-i),e.zoomOut(l)}}(t)}))}var S={moveForward:!1,moveBackward:!1,moveLeft:!1,moveRight:!1,moveUp:!1,moveDown:!1,lookUp:!1,lookDown:!1,lookLeft:!1,lookRight:!1,twistLeft:!1,twistRight:!1,zoomIn:!1,zoomOut:!1};function D(t){switch(t){case 87:return"moveForward";case 83:return"moveBackward";case 68:return"moveRight";case 65:return"moveLeft";case 81:return"moveUp";case 69:return"moveDown";case 38:return"lookUp";case 40:return"lookDown";case 37:return"lookLeft";case 39:return"lookRight";case 96:return"twistLeft";case 110:return"twistRight";case 107:return"zoomIn";case 109:return"zoomOut";default:return}}function M(t){var e;if("input"===(e=document.activeElement).tagName.toLowerCase()&&"checkbox"!==e.type||"textarea"===e.tagName.toLowerCase()||"textarea"===e.getAttribute("role"));else if(this.trackedEntity);else if(this._firstPersonView);else if(this._disableKeyboardEvent);else if(t.ctrlKey&&t.altKey){if("v"===t.key||"V"===t.key){var i=this.camera;this._CAMERA_SHORTCUT_VIEW={orientation:{heading:i.heading,pitch:i.pitch,roll:i.roll},position:{x:i.position.x,y:i.position.y,z:i.position.z}},localStorage.setItem("CAMERA_SHORTCUT_VIEW",JSON.stringify(this._CAMERA_SHORTCUT_VIEW))}if("f"===t.key||"F"===t.key){var n=localStorage.getItem("CAMERA_SHORTCUT_VIEW");this._CAMERA_SHORTCUT_VIEW=JSON.parse(n),this._CAMERA_SHORTCUT_VIEW&&this._CAMERA_SHORTCUT_VIEW.position&&this._CAMERA_SHORTCUT_VIEW.orientation&&this.camera.flyTo({destination:this._CAMERA_SHORTCUT_VIEW.position,orientation:this._CAMERA_SHORTCUT_VIEW.orientation})}}else{var o=D(t.keyCode);void 0!==o&&(S[o]=!0)}}function O(t){var e=D(t.keyCode);void 0!==e&&(S[e]=!1)}var T=i(11),N=i.n(T),B=i(6),L=i.n(B),A=i(20),j=i.n(A),I=[{name:"GCS_WGS_1984",epsg:"EPSG:4326",def:"+proj=longlat +datum=WGS84 +no_defs"},{name:"GCS_China_Geodetic_Coordinate_System_2000",epsg:"EPSG:4490",def:"+proj=longlat +ellps=GRS80 +no_defs"},{name:"WGS 84 / UTM zone 1N",epsg:"EPSG:32601",def:"+proj=utm +zone=1 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 2N",epsg:"EPSG:32602",def:"+proj=utm +zone=2 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 3N",epsg:"EPSG:32603",def:"+proj=utm +zone=3 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 4N",epsg:"EPSG:32604",def:"+proj=utm +zone=4 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 5N",epsg:"EPSG:32605",def:"+proj=utm +zone=5 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 6N",epsg:"EPSG:32606",def:"+proj=utm +zone=6 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 7N",epsg:"EPSG:32607",def:"+proj=utm +zone=7 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 8N",epsg:"EPSG:32608",def:"+proj=utm +zone=8 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 9N",epsg:"EPSG:32609",def:"+proj=utm +zone=9 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 10N",epsg:"EPSG:32610",def:"+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 11N",epsg:"EPSG:32611",def:"+proj=utm +zone=11 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 12N",epsg:"EPSG:32612",def:"+proj=utm +zone=12 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 13N",epsg:"EPSG:32613",def:"+proj=utm +zone=13 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 14N",epsg:"EPSG:32614",def:"+proj=utm +zone=14 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 15N",epsg:"EPSG:32615",def:"+proj=utm +zone=15 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 16N",epsg:"EPSG:32616",def:"+proj=utm +zone=16 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 17N",epsg:"EPSG:32617",def:"+proj=utm +zone=17 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 18N",epsg:"EPSG:32618",def:"+proj=utm +zone=18 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 19N",epsg:"EPSG:32619",def:"+proj=utm +zone=19 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 20N",epsg:"EPSG:32620",def:"+proj=utm +zone=20 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 21N",epsg:"EPSG:32621",def:"+proj=utm +zone=21 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 22N",epsg:"EPSG:32622",def:"+proj=utm +zone=22 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 23N",epsg:"EPSG:32623",def:"+proj=utm +zone=23 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 24N",epsg:"EPSG:32624",def:"+proj=utm +zone=24 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 25N",epsg:"EPSG:32625",def:"+proj=utm +zone=25 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 26N",epsg:"EPSG:32626",def:"+proj=utm +zone=26 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 27N",epsg:"EPSG:32627",def:"+proj=utm +zone=27 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 28N",epsg:"EPSG:32628",def:"+proj=utm +zone=28 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 29N",epsg:"EPSG:32629",def:"+proj=utm +zone=29 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 30N",epsg:"EPSG:32630",def:"+proj=utm +zone=30 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 31N",epsg:"EPSG:32631",def:"+proj=utm +zone=31 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 32N",epsg:"EPSG:32632",def:"+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 33N",epsg:"EPSG:32633",def:"+proj=utm +zone=33 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 34N",epsg:"EPSG:32634",def:"+proj=utm +zone=34 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 35N",epsg:"EPSG:32635",def:"+proj=utm +zone=35 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 36N",epsg:"EPSG:32636",def:"+proj=utm +zone=36 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 37N",epsg:"EPSG:32637",def:"+proj=utm +zone=37 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 38N",epsg:"EPSG:32638",def:"+proj=utm +zone=38 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 39N",epsg:"EPSG:32639",def:"+proj=utm +zone=39 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 40N",epsg:"EPSG:32640",def:"+proj=utm +zone=40 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 41N",epsg:"EPSG:32641",def:"+proj=utm +zone=41 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 42N",epsg:"EPSG:32642",def:"+proj=utm +zone=42 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 43N",epsg:"EPSG:32643",def:"+proj=utm +zone=43 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 44N",epsg:"EPSG:32644",def:"+proj=utm +zone=44 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 45N",epsg:"EPSG:32645",def:"+proj=utm +zone=45 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 46N",epsg:"EPSG:32646",def:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 47N",epsg:"EPSG:32647",def:"+proj=utm +zone=47 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 48N",epsg:"EPSG:32648",def:"+proj=utm +zone=48 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 49N",epsg:"EPSG:32649",def:"+proj=utm +zone=49 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 50N",epsg:"EPSG:32650",def:"+proj=utm +zone=50 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 51N",epsg:"EPSG:32651",def:"+proj=utm +zone=51 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 52N",epsg:"EPSG:32652",def:"+proj=utm +zone=52 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 53N",epsg:"EPSG:32653",def:"+proj=utm +zone=53 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 54N",epsg:"EPSG:32654",def:"+proj=utm +zone=54 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 55N",epsg:"EPSG:32655",def:"+proj=utm +zone=55 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 56N",epsg:"EPSG:32656",def:"+proj=utm +zone=56 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 57N",epsg:"EPSG:32657",def:"+proj=utm +zone=57 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 58N",epsg:"EPSG:32658",def:"+proj=utm +zone=58 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 59N",epsg:"EPSG:32659",def:"+proj=utm +zone=59 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 60N",epsg:"EPSG:32660",def:"+proj=utm +zone=60 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 1S",epsg:"EPSG:32701",def:"+proj=utm +zone=1 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 2S",epsg:"EPSG:32702",def:"+proj=utm +zone=2 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 3S",epsg:"EPSG:32703",def:"+proj=utm +zone=3 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 4S",epsg:"EPSG:32704",def:"+proj=utm +zone=4 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 5S",epsg:"EPSG:32705",def:"+proj=utm +zone=5 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 6S",epsg:"EPSG:32706",def:"+proj=utm +zone=6 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 7S",epsg:"EPSG:32707",def:"+proj=utm +zone=7 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 8S",epsg:"EPSG:32708",def:"+proj=utm +zone=8 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 9S",epsg:"EPSG:32709",def:"+proj=utm +zone=9 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 10S",epsg:"EPSG:32710",def:"+proj=utm +zone=10 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 11S",epsg:"EPSG:32711",def:"+proj=utm +zone=11 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 12S",epsg:"EPSG:32712",def:"+proj=utm +zone=12 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 13S",epsg:"EPSG:32713",def:"+proj=utm +zone=13 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 14S",epsg:"EPSG:32714",def:"+proj=utm +zone=14 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 15S",epsg:"EPSG:32715",def:"+proj=utm +zone=15 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 16S",epsg:"EPSG:32716",def:"+proj=utm +zone=16 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 17S",epsg:"EPSG:32717",def:"+proj=utm +zone=17 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 18S",epsg:"EPSG:32718",def:"+proj=utm +zone=18 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 19S",epsg:"EPSG:32719",def:"+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 20S",epsg:"EPSG:32720",def:"+proj=utm +zone=20 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 21S",epsg:"EPSG:32721",def:"+proj=utm +zone=21 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 22S",epsg:"EPSG:32722",def:"+proj=utm +zone=22 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 23S",epsg:"EPSG:32723",def:"+proj=utm +zone=23 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 24S",epsg:"EPSG:32724",def:"+proj=utm +zone=24 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 25S",epsg:"EPSG:32725",def:"+proj=utm +zone=25 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 26S",epsg:"EPSG:32726",def:"+proj=utm +zone=26 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 27S",epsg:"EPSG:32727",def:"+proj=utm +zone=27 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 28S",epsg:"EPSG:32728",def:"+proj=utm +zone=28 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 29S",epsg:"EPSG:32729",def:"+proj=utm +zone=29 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 30S",epsg:"EPSG:32730",def:"+proj=utm +zone=30 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 31S",epsg:"EPSG:32731",def:"+proj=utm +zone=31 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 32S",epsg:"EPSG:32732",def:"+proj=utm +zone=32 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 33S",epsg:"EPSG:32733",def:"+proj=utm +zone=33 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 34S",epsg:"EPSG:32734",def:"+proj=utm +zone=34 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 35S",epsg:"EPSG:32735",def:"+proj=utm +zone=35 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 36S",epsg:"EPSG:32736",def:"+proj=utm +zone=36 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 37S",epsg:"EPSG:32737",def:"+proj=utm +zone=37 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 38S",epsg:"EPSG:32738",def:"+proj=utm +zone=38 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 39S",epsg:"EPSG:32739",def:"+proj=utm +zone=39 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 40S",epsg:"EPSG:32740",def:"+proj=utm +zone=40 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 41S",epsg:"EPSG:32741",def:"+proj=utm +zone=41 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 42S",epsg:"EPSG:32742",def:"+proj=utm +zone=42 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 43S",epsg:"EPSG:32743",def:"+proj=utm +zone=43 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 44S",epsg:"EPSG:32744",def:"+proj=utm +zone=44 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 45S",epsg:"EPSG:32745",def:"+proj=utm +zone=45 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 46S",epsg:"EPSG:32746",def:"+proj=utm +zone=46 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 47S",epsg:"EPSG:32747",def:"+proj=utm +zone=47 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 48S",epsg:"EPSG:32748",def:"+proj=utm +zone=48 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 49S",epsg:"EPSG:32749",def:"+proj=utm +zone=49 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 50S",epsg:"EPSG:32750",def:"+proj=utm +zone=50 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 51S",epsg:"EPSG:32751",def:"+proj=utm +zone=51 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 52S",epsg:"EPSG:32752",def:"+proj=utm +zone=52 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 53S",epsg:"EPSG:32753",def:"+proj=utm +zone=53 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 54S",epsg:"EPSG:32754",def:"+proj=utm +zone=54 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 55S",epsg:"EPSG:32755",def:"+proj=utm +zone=55 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 56S",epsg:"EPSG:32756",def:"+proj=utm +zone=56 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 57S",epsg:"EPSG:32757",def:"+proj=utm +zone=57 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 58S",epsg:"EPSG:32758",def:"+proj=utm +zone=58 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 59S",epsg:"EPSG:32759",def:"+proj=utm +zone=59 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 60S",epsg:"EPSG:32760",def:"+proj=utm +zone=60 +south +datum=WGS84 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_13",epsg:"EPSG:4491",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_14",epsg:"EPSG:4492",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_15",epsg:"EPSG:4493",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_16",epsg:"EPSG:4494",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_17",epsg:"EPSG:4495",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_18",epsg:"EPSG:4496",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_19",epsg:"EPSG:4497",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_20",epsg:"EPSG:4498",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_21",epsg:"EPSG:4499",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_22",epsg:"EPSG:4500",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_23",epsg:"EPSG:4501",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_75E",epsg:"EPSG:4502",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_81E",epsg:"EPSG:4503",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_87E",epsg:"EPSG:4504",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_93E",epsg:"EPSG:4505",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_99E",epsg:"EPSG:4506",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_105E",epsg:"EPSG:4507",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_111E",epsg:"EPSG:4508",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_117E",epsg:"EPSG:4509",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_123E",epsg:"EPSG:4510",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_129E",epsg:"EPSG:4511",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_135E",epsg:"EPSG:4512",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_25",epsg:"EPSG:4513",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_26",epsg:"EPSG:4514",def:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_27",epsg:"EPSG:4515",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_28",epsg:"EPSG:4516",def:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_29",epsg:"EPSG:4517",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_30",epsg:"EPSG:4518",def:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_31",epsg:"EPSG:4519",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_32",epsg:"EPSG:4520",def:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_33",epsg:"EPSG:4521",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_34",epsg:"EPSG:4522",def:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_35",epsg:"EPSG:4523",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_36",epsg:"EPSG:4524",def:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_37",epsg:"EPSG:4525",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_38",epsg:"EPSG:4526",def:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_39",epsg:"EPSG:4527",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_40",epsg:"EPSG:4528",def:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_41",epsg:"EPSG:4529",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_42",epsg:"EPSG:4530",def:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_43",epsg:"EPSG:4531",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_44",epsg:"EPSG:4532",def:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_45",epsg:"EPSG:4533",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_75E",epsg:"EPSG:4534",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_78E",epsg:"EPSG:4535",def:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_81E",epsg:"EPSG:4536",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_84E",epsg:"EPSG:4537",def:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_87E",epsg:"EPSG:4538",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_90E",epsg:"EPSG:4539",def:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_93E",epsg:"EPSG:4540",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_96E",epsg:"EPSG:4541",def:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_99E",epsg:"EPSG:4542",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_102E",epsg:"EPSG:4543",def:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_105E",epsg:"EPSG:4544",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_108E",epsg:"EPSG:4545",def:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_111E",epsg:"EPSG:4546",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_114E",epsg:"EPSG:4547",def:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_117E",epsg:"EPSG:4548",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_120E",epsg:"EPSG:4549",def:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_123E",epsg:"EPSG:4550",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_126E",epsg:"EPSG:4551",def:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_129E",epsg:"EPSG:4552",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_132E",epsg:"EPSG:4553",def:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_135E",epsg:"EPSG:4554",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"}],R=function(){return _()((function t(){k()(this,t),this.name_map=new Map,this.epsg_map=new Map,this.initProj()}),[{key:"initProj",value:function(){var t=this;I.forEach((function(e){proj4.defs(e.epsg,e.def),t.name_map.set(e.name,e),t.epsg_map.set(e.epsg,e)}))}},{key:"convert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={points:[],code:0,message:""};if(!this.name_map.has(e)&&!this.epsg_map.has(e))return n.code=1,n.message="不支持的坐标系:"+e,n;if(!this.name_map.has(i)&&!this.epsg_map.has(i))return n.code=1,n.message="不支持的坐标系:"+i,n;var o=(this.name_map.get(e)||this.epsg_map.get(e)).epsg,s=(this.name_map.get(i)||this.epsg_map.get(i)).epsg,a=proj4.defs(o),r=proj4.defs(s);return t.forEach((function(t){var e=Number(t.x),i=Number(t.y),o=Number(t.z||0),s=proj4(a,r,[e,i]);n.points.push({x:Number(s[0].toFixed(10)),y:Number(s[1].toFixed(10)),z:o})})),n}},{key:"getAllProjection",value:function(){return Array.from(this.name_map.values())}},{key:"projectionIsExists",value:function(t){return this.name_map.has(t)||this.epsg_map.has(t)}},{key:"degreesToDMS",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function i(t){var e=t.toString(),i=e.indexOf(".");return-1!==i?e.length-i-1:0}function n(t){return Math.pow(10,t)}var o=!1;t<0&&(o=!0),t=Math.abs(t);var s=Math.floor(t),a=n(i(t)),r=Math.floor((t-s)*a*60)/a,l=Math.floor(r);o&&(s=-s);var c=n(i(r)),u=Math.floor((r-l)*c)/c*60;return e?s+"°"+Math.floor(1e4*r)/1e4+"'":s+"°"+l+"'"+Math.floor(100*u)/100+'"'}},{key:"dmsToDecimal",value:function(t,e){var i,n,o;if(e){var s=t.split("°"),a=s[1].split("'");i=s[0],n=a[0],console.log(i,n);var r=Math.pow(10,8),l=Number(i*r)+n*r/60;return Math.round(l)/r}var c=t.split("°"),u=c[1].split("'"),p=u[1].split('"');i=c[0],n=u[0],o=p[0],console.log(i,n,o);var h=Math.pow(10,8),d=Number(i*h)+n*h/60+o*h/3600;return Math.round(d)/h}}])}();function F(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function z(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];k()(this,t),this.container=e,this.options=z({},i),this.options.ismove=!0,!1===i.ismove&&(this.options.ismove=i.ismove),this.closeCallBack=i.closeCallBack,this._element={},this._element_style=void 0,this.only=n}),[{key:"init",value:(t=o()(a.a.mark((function t(){var e,i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.only&&this.closeAll(),U.push(this),this.isDestroy=!1,this._element.body=document.createElement("div"),this._element.body.className="YJ-custom-base-dialog",this._element.body.style.top=this.options.top,this._element.body.style.bottom=this.options.bottom,this._element.body.style.left=this.options.left,this._element.body.style.right=this.options.right,this.container.appendChild(this._element.body),this._element.title=document.createElement("div"),this._element.title.className="title-box",this._element.title.innerHTML=''.concat(this.options.title||"","")+'',this._element.body.appendChild(this._element.title),t.next=16,document.createElement("div");case 16:return this._element.content=t.sent,this._element.content.className="content",this._element.body.appendChild(this._element.content),t.next=21,document.createElement("div");case 21:return this._element.foot=t.sent,this._element.foot.className="foot",this._element.foot.innerHTML='\n \n ',this._element.body.appendChild(this._element.foot),t.next=27,document.createElement("div");case 27:for((e=t.sent).style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.backdropFilter="blur(2px)",e.style.zIndex="-999999",this._element.body.appendChild(e),this._element.body.getElementsByClassName("close-box")[0].addEventListener("click",(function(){o.close()})),i=this._element.body.getElementsByClassName("close"),n=0;n=0;e--)t[e].dataset&&"YJ_style_dialog"===t[e].dataset.name&&document.getElementsByTagName("head")[0].removeChild(t[e]);this._element.body&&this._element.body.parentNode&&this.container.removeChild(this._element.body),this._element.body=null,this._element.title=null,this._element.content=null,this._element.foot=null,this._element_style=null,this.isDestroy=!0,this.closeCallBack&&(this.closeCallBack(),this.closeCallBack=null)}},{key:"closeAll",value:function(){for(var t=U.length-1;t>=0;t--)U[t].close(),U.splice(t,1)}},{key:"titleAppChild",value:function(t){this._element.title.appendChild(t)}},{key:"contentAppChild",value:function(t){this._element.content.appendChild(t)}},{key:"footAppChild",value:function(t,e){e?this._element.foot.insertBefore(t,e):this._element.foot.prepend(t)}},{key:"moveDiv",value:function(){var t=this,e=0,i=0,n=0,o=0,s=this._element.body,a=this;s.onmousedown=function(s){if("title-box"===s.toElement.className){var r=t._element.body.offsetHeight,l=t._element.body.offsetWidth;e=s.clientX,i=s.clientY;var c=window.getComputedStyle(t._element.body).left,u=window.getComputedStyle(t._element.body).top;n=1*c.substr(0,c.indexOf("px")),o=1*u.substr(0,u.indexOf("px"));var p=document.documentElement.clientHeight,h=document.documentElement.clientWidth;window.onmousemove=function(t){t.preventDefault();var s=t.clientX,c=t.clientY,u=s-(e-n),d=c-(i-o);u<0?u=0:u+l>h&&(u=h-l),d<=0?d=0:d+r>p&&(d=p-r),a._element.body.style.left=u+"px",a._element.body.style.top=d+"px",a._element.body.style.bottom="unset",a._element.body.style.right="unset"},document.onmouseup=function(t){window.onmousemove=null},window.ondragend=function(t){window.onmousemove=null}}},document.onmouseup=function(t){window.onmousemove=null},window.ondragend=function(t){window.onmousemove=null}}}]);var t}(),U=[],W=G,Y=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=null;return{that:Array.prototype.slice.call(t.querySelectorAll(e),0),stopPropagation:function(t){(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0},hide:function(){Y(t,e).that.forEach((function(t){t.style.cssText+="display:none;"}))},show:function(i){void 0!==i?Y(t,e).that[i].style.cssText+="display:block;":Y(t,e).that.forEach((function(t){t.style.cssText+="display:block;"}))},legp_searchList:function(e){var i=[];return Y(t,"input[name="+e+"]").that.forEach((function(t){i.push(t.value)})),i},legp_search:function(o){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=Y(t,e).that[i];if(a){var r='
\n '.concat(s?'':''),'\n
\n
\n
');a.innerHTML=r,Y(t,".cy_datalist input").that[i].oninput=function(e){var s=this.value;if(Y(t,".cy_datalist dl").hide(),o.length>0){Y(t,".cy_datalist dl").show();var a=new RegExp(s),r=!1;Y(t,".cy_datalist dl").that[i].innerHTML="",o.forEach((function(e){a.test(e.name)&&(r=!0,Y(t,".cy_datalist dl").that[i].innerHTML+='
'+e.name+"
")})),r||(Y(t,".cy_datalist dl").that[i].innerHTML='
暂无数据
'),l()}},Y(t,".cy_datalist input").that[i].onclick=function(e){Y(t,".cy_datalist dl").hide();var i=1*e.srcElement.classList[1];i=i||0,"none"===Y(t,".cy_datalist dl").that[i].style.display&&(0==o.length?this.innerHTML="暂无数据":Y(t,".cy_datalist dl").show(i),Y(t,".cy_datalist dl").that[i].innerHTML="",o.forEach((function(e){Y(t,".cy_datalist dl").that[i].innerHTML+='
'+e.name+"
"})),l()),e.stopPropagation()},document.addEventListener("click",(function(){Y(t,".cy_datalist dl").hide()}))}function l(){Y(t,".cy_datalist dl dd").that.forEach((function(t){t.onclick=function(t){if(this&&this.attributes){var e=this.attributes.value.value;n=e,t.currentTarget.parentNode.previousElementSibling.value=e;var i=new Event("input",{bubbles:!0});t.currentTarget.parentNode.previousElementSibling.dispatchEvent(i)}}}))}},legp_searchActive:function(t){n=t}}},J=function(){var t=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new R,H&&H.close&&(H.close(),H=null),t.next=4,new W(e.viewer._container,{title:"度分秒",left:"180px",top:"100px",closeCallBack:function(){i&&i()}});case 4:return H=t.sent,t.next=7,H.init();case 7:o='\n \n
\n
\n
\n 输入格式\n
\n
\n
\n
\n
\n \n

\n \n 例如116.6°, 39.9°\n

\n
\n
\n 经度\n \n
\n
\n 纬度\n \n
\n
\n \n \n \n \n
\n
\n
\n
\n \n

\n 度分\n 例如95°10.1702\', 49°12.4015\'\n

\n
\n
\n
\n 经度\n \n \n \n \n \n
\n
\n 纬度\n \n \n \n \n \n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n \n

\n 度分秒\n 例如11°18\'54.37", 39°13\'46.57"\n

\n
\n
\n
\n 经度\n \n \n \n \n \n \n \n
\n
\n 纬度\n \n \n \n \n \n \n \n
\n
\n
\n \n \n \n \n
\n
\n
\n \n '),H._element.body.className=H._element.body.className+" proj-convert",(s=document.createElement("div")).style.width="460px",s.style.display="flex",s.style.flexDirection="column",s.innerHTML=o,H.contentAppChild(s),r=s.getElementsByClassName("item"),l=a.a.mark((function t(e){var i,o,l,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=r[e].getAttribute("data-type"),o=r[e].getElementsByClassName("convert")[0],l=r[e].getElementsByClassName("icon-copy-box")[0],(c=new ClipboardJS(l,{text:function(t){var n;switch(i){case 0:case"0":n=r[e].getElementsByClassName("lng")[0].value+"°,"+r[e].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":n=s.getElementsByClassName("lng-dm-d")[0].value+"°"+s.getElementsByClassName("lng-dm-m")[0].value+"',"+s.getElementsByClassName("lat-dm-d")[0].value+"°"+s.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":n=s.getElementsByClassName("lng-dms-d")[0].value+"°"+s.getElementsByClassName("lng-dms-m")[0].value+"'"+s.getElementsByClassName("lng-dms-s")[0].value+'",'+s.getElementsByClassName("lat-dms-d")[0].value+"°"+s.getElementsByClassName("lat-dms-m")[0].value+"'"+s.getElementsByClassName("lat-dms-s")[0].value+'"'}return n}})).on("success",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"已复制到剪切板",type:"success",duration:1500})})),c.on("error",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"复制失败",type:"warning",duration:1500})})),o.addEventListener("click",(function(){var t,o,a,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_;switch(i){case 0:case"0":t=r[e].getElementsByClassName("lng")[0].value,o=r[e].getElementsByClassName("lat")[0].value,p=n.degreesToDMS(t,!0),h=n.degreesToDMS(o,!0),v=(f=p.split("°"))[1].split("'"),y=(g=h.split("°"))[1].split("'"),s.getElementsByClassName("lng-dm-d")[0].value=f[0],s.getElementsByClassName("lng-dm-m")[0].value=v[0],s.getElementsByClassName("lat-dm-d")[0].value=g[0],s.getElementsByClassName("lat-dm-m")[0].value=y[0],d=n.degreesToDMS(t),m=n.degreesToDMS(o),w=(C=(b=d.split("°"))[1].split("'"))[1].split('"'),_=(x=(k=m.split("°"))[1].split("'"))[1].split('"'),s.getElementsByClassName("lng-dms-d")[0].value=b[0],s.getElementsByClassName("lng-dms-m")[0].value=C[0],s.getElementsByClassName("lng-dms-s")[0].value=w[0],s.getElementsByClassName("lat-dms-d")[0].value=k[0],s.getElementsByClassName("lat-dms-m")[0].value=x[0],s.getElementsByClassName("lat-dms-s")[0].value=_[0];break;case 1:case"1":a=r[e].getElementsByClassName("lng-dm-d")[0].value,l=r[e].getElementsByClassName("lng-dm-m")[0].value,c=r[e].getElementsByClassName("lat-dm-d")[0].value,u=r[e].getElementsByClassName("lat-dm-m")[0].value,t=n.dmsToDecimal(a+"°"+l+"'",!0),o=n.dmsToDecimal(c+"°"+u+"'",!0),s.getElementsByClassName("lng")[0].value=t,s.getElementsByClassName("lat")[0].value=o,d=n.degreesToDMS(t),m=n.degreesToDMS(o),w=(C=(b=d.split("°"))[1].split("'"))[1].split('"'),_=(x=(k=m.split("°"))[1].split("'"))[1].split('"'),s.getElementsByClassName("lng-dms-d")[0].value=b[0],s.getElementsByClassName("lng-dms-m")[0].value=C[0],s.getElementsByClassName("lng-dms-s")[0].value=w[0],s.getElementsByClassName("lat-dms-d")[0].value=k[0],s.getElementsByClassName("lat-dms-m")[0].value=x[0],s.getElementsByClassName("lat-dms-s")[0].value=_[0];break;case 2:case"2":d=(a=r[e].getElementsByClassName("lng-dms-d")[0].value)+"°"+(l=r[e].getElementsByClassName("lng-dms-m")[0].value)+"'"+r[e].getElementsByClassName("lng-dms-s")[0].value+'"',m=(c=r[e].getElementsByClassName("lat-dms-d")[0].value)+"°"+(u=r[e].getElementsByClassName("lat-dms-m")[0].value)+"'"+r[e].getElementsByClassName("lat-dms-s")[0].value+'"',t=n.dmsToDecimal(d),o=n.dmsToDecimal(m),s.getElementsByClassName("lng")[0].value=t,s.getElementsByClassName("lat")[0].value=o,p=n.degreesToDMS(t,!0),h=n.degreesToDMS(o,!0),v=(f=p.split("°"))[1].split("'"),y=(g=h.split("°"))[1].split("'"),s.getElementsByClassName("lng-dm-d")[0].value=f[0],s.getElementsByClassName("lng-dm-m")[0].value=v[0],s.getElementsByClassName("lat-dm-d")[0].value=g[0],s.getElementsByClassName("lat-dm-m")[0].value=y[0]}window.ELEMENT&&window.ELEMENT.Message({message:"转换成功",type:"success",duration:1500});for(var E=0;ENumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"mouse_right",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"mouse_right_down",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_DOWN)}},{key:"mouse_right_up",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_UP)}},{key:"mouse_wheel",value:function(t){this.handler&&this.handler.setInputAction((function(){t()}),Cesium.ScreenSpaceEventType.WHEEL)}},{key:"getcartesian",value:function(t){var e=t.position||t.endPosition;t.position1&&t.position2&&(e={x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2});var i=this.viewer.scene.pickPosition(e);if(!i){for(var n=this.viewer.camera.getPickRay(e),o=this.viewer.scene.drillPickFromRay(n,10),s={},a=0;a0&&void 0!==arguments[0]?arguments[0]:"左键开始,右键结束",i=arguments.length>1?arguments[1]:void 0;k()(this,t),this.point=void 0,this.text=e,this.div=void 0,this.mouse_type=0,this.position=new Cesium.Cartesian3,this.viewer=i.viewer,this.create_tip(this.viewer)}),[{key:"set_text",value:function(t){this.div.getElementsByTagName("p")[0].innerText=t}},{key:"get_mouse_style",value:function(t){var e="";switch(t){case 1:e="move.png";break;default:e="arrow.png"}return"url(lib/img/"+e+"),auto"}},{key:"create_tip",value:function(t){this.create_tooltip()}},{key:"setPosition",value:function(t,e,i){this.position=t,this.move_tooltip(e,i)}},{key:"destroy",value:function(){this.viewer.entities.remove(this.point),this.remove_tooltip()}},{key:"create_tooltip",value:function(){var t=new fi;this.div=document.createElement("div");this.div.setAttribute("style","position: absolute;z-index: 777;color: #ec131a;left:10px;top:0px;pointer-events: none;");var e=document.createElement("p");e.style.margin="0px",e.style.padding="0px",e.innerText=this.text,this.div.appendChild(e);var i=document.createElement("div");i.style.width="12px",i.style.height="12px",i.style.background="url(".concat(t.getSourceRootPath()+"/img/point.png",") 100% 100% no-repeat"),i.style.backgroundSize="100% 100%",i.style.position="absolute",i.style.left="-36px",i.style.top="-4px",this.div.style.display="none",this.div.appendChild(i),t=null,document.querySelector("body").appendChild(this.div)}},{key:"style_tip",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t._element.style.cursor=this.get_mouse_style(e)}},{key:"remove_tooltip",value:function(){document.querySelector("body").contains(this.div)&&document.querySelector("body").removeChild(this.div)}},{key:"move_tooltip",value:function(t,e){var i=0,n=0;if(this.div.style.display="block",this.viewer&&this.viewer._element){var o=this.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];i=o.getBoundingClientRect().top+window.scrollY,n=o.getBoundingClientRect().left+window.scrollX}this.div.style.left=t+30+n+"px",this.div.style.top=e+i+"px"}}])}(),K=function(){var t=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new fi,o=new R,V&&V.close&&(V.close(),V=null),t.next=5,new W(e.viewer._container,{title:"投影转换",left:"180px",top:"100px",closeCallBack:function(){i&&i()}});case 5:return V=t.sent,t.next=8,V.init();case 8:'\n \n
\n
\n
\n 源坐标\n \n
\n
\n
\n 椭圆基准\n
\n
\n
\n 经度(x)\n \n
\n
\n 纬度(y)\n \n
\n
\n
\n
\n \n
\n
\n
\n 目标坐标\n \n
\n
\n
\n 椭圆基准\n
\n
\n
\n 经度(x)\n \n
\n
\n 纬度(y)\n \n
\n
\n
\n
\n \n ',(l=document.createElement("div")).innerHTML='\n \n
\n
\n
\n 源坐标\n \n
\n
\n
\n 椭圆基准\n
\n
\n
\n 经度(x)\n \n
\n
\n 纬度(y)\n \n
\n
\n
\n
\n \n
\n
\n
\n 目标坐标\n \n
\n
\n
\n 椭圆基准\n
\n
\n
\n 经度(x)\n \n
\n
\n 纬度(y)\n \n
\n
\n
\n
\n \n ',V.contentAppChild(l),c=[],u=0,o.epsg_map.forEach((function(t,e){u++,c.push({name:"".concat(u,".  ").concat(e,"(").concat(t.name,")"),value:e})})),(p=Y(l.getElementsByClassName("left")[0],".datalist_left")).legp_search(c,!0),(h=Y(l.getElementsByClassName("right")[0],".datalist_right")).legp_search(c,!0),d=l.getElementsByClassName("pick")[0],m=l.getElementsByClassName("copy")[0],(f=l.getElementsByClassName("datalist_left")[0].getElementsByTagName("input")[0]).value=c[0].value,p.legp_searchActive(c[0].value),(v=l.getElementsByClassName("datalist_right")[0].getElementsByTagName("input")[0]).value=c[0].value,h.legp_searchActive(c[0].value),g=l.getElementsByClassName("convert")[0],y=l.getElementsByClassName("left-x")[0],b=l.getElementsByClassName("left-y")[0],C=l.getElementsByClassName("right-x")[0],w=l.getElementsByClassName("right-y")[0],d.addEventListener("click",(function(){s&&s.destroy(),r&&r.destroy(),s=new Z("左键选择起点坐标,右键取消",e),(r=new X(e)).mouse_move((function(t,e){s.setPosition(e,t.endPosition.x,t.endPosition.y)})),r.mouse_left((function(t,i){var a=n.cartesian3Towgs84(i,e.viewer);s&&s.destroy(),r&&r.destroy();var l=o.convert([{x:Number(a.lng),y:Number(a.lat)}],"EPSG:4326",f.value);0===l.code&&(y.value=l.points[0].x,b.value=l.points[0].y)})),r.mouse_right((function(t,e){s&&s.destroy(),r&&r.destroy()}))})),g.addEventListener("click",(function(){if(!y.value||!b.value)return C.value="",w.value="",void(window.ELEMENT&&window.ELEMENT.Message({message:"请输入源坐标",type:"warning",duration:1500}));var t=o.convert([{x:Number(y.value),y:Number(b.value)}],f.value,v.value);0===t.code?(C.value=t.points[0].x,w.value=t.points[0].y):window.ELEMENT&&window.ELEMENT.Message({message:t.message,type:"warning",duration:1500})})),new ClipboardJS(m,{text:function(t){if(C.value&&w.value){var e="".concat(C.value,",").concat(w.value);return e}C.value="",w.value="",window.ELEMENT&&window.ELEMENT.Message({message:"复制失败,目标坐标为空!",type:"warning",duration:1500})}}).on("success",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"已复制到剪切板",type:"success",duration:1500})}));case 36:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}(),$=function(){V&&V.close&&(V.close(),V=null)},Q=[new Map,new Map,new Map];Q[0].set("--color-sdk-base-rgb","0, 255, 255"),Q[0].set("--color-sdk-gradual","rgb(0, 255, 255) 6.25%, rgb(0, 200, 255) 100%"),Q[0].set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%"),Q[0].set("--color-sdk-text-shadow","rgba(20, 118, 255, 1)"),Q[1].set("--color-sdk-base-rgb","42, 200, 251"),Q[1].set("--color-sdk-gradual","rgb(42, 200, 251) 6.25%, rgb(42, 145, 251) 100%"),Q[1].set("--color-sdk-bg-gradual","#2ac8fb33 0%, #2ac8fb00 100%"),Q[1].set("--color-sdk-text-shadow","rgba(20, 63, 255, 1)"),Q[2].set("--color-sdk-base-rgb","187, 26, 41"),Q[2].set("--color-sdk-gradual","rgb(187, 26, 41) 6.25%, rgb(236, 20, 20) 100%"),Q[2].set("--color-sdk-bg-gradual","#bb1a2933 0%, #bb1a2900 100%"),Q[2].set("--color-sdk-text-shadow","rgba(246, 8, 30, 1)");var tt={};function et(t,e,i){if(t&&t.div_id){var n=ae().sdkD,o=document.getElementById(t.div_id).getElementsByClassName("cesium-viewer")[0],s=new fi;tt[t.div_id]||(tt[t.div_id]={}),tt[t.div_id].mousedown&&document.removeEventListener("mousedown",tt[t.div_id].mousedown),tt[t.div_id].click&&document.removeEventListener("click",tt[t.div_id].click),tt[t.div_id].callBack||(tt[t.div_id].callBack=i),t!==n&&tt[t.div_id].mouseRightMenuEvent&&tt[t.div_id].mouseRightMenuEvent.destroy();var a=document.getElementById("custom-menu");a&&o.removeChild(a),tt[t.div_id].status=e,e&&(tt[t.div_id].mousedown=function(t){if(!(t.target.parentNode&&"custom-menu"==t.target.parentNode.id||t.target.parentNode&&t.target.parentNode.parentNode&&"custom-menu"==t.target.parentNode.parentNode.id)){var e=document.getElementById("custom-menu");e&&o.removeChild(e)}},document.addEventListener("mousedown",tt[t.div_id].mousedown),tt[t.div_id].click=function(t){if(!(t.target.parentNode&&"custom-menu"==t.target.parentNode.id||t.target.parentNode&&t.target.parentNode.parentNode&&"custom-menu"==t.target.parentNode.parentNode.id)){var e=document.getElementById("custom-menu");e&&o.removeChild(e)}},document.addEventListener("click",tt[t.div_id].click),tt[t.div_id].mouseRightMenuEvent=new X(t),tt[t.div_id].mouseRightMenuEvent.mouse_right((function(e,i){if(!YJ.Measure.GetMeasureStatus()&&!t.viewer.trackedEntity){var n=t.viewer.entities.getById("svg-control-points_0");if(!n||!n.show){var a=document.getElementById("custom-menu");a&&o.removeChild(a);var r,l=function(e){var i=t.viewer.scene.pick(e.position);if(i)if(i.id){if(i.id.type&&"vector"===i.id.type&&i.id.parentId)return{parentId:i.id.parentId,id:i.id.id};if(i.id.id)return i.id.id;if("string"==typeof i.id)return i.id}else if(i.primitive&&i.primitive.id)return i.primitive.id}(e);"[object Object]"===Object.prototype.toString.call(l)&&(r=l.id,l=l.parentId);var c="",u=t.entityMap.get(l);if(!u&&l){var p=l.split("-");p.splice(p.length-1,1),l=p.join("-"),u=t.entityMap.get(l)}u&&u.picking&&(c='\n \n
    \n
  • 属性
  • \n
\n ');var h=s.cartesian3Towgs84(i,t.viewer);(a=document.createElement("div")).id="custom-menu",a.style.position="absolute",a.style.width="110px",a.style.backgroundColor="#00000085",a.style.color="#ffffff",a.style.padding="6px 0",a.style.boxShadow="4px 4px 4px 0px rgba(0, 0, 0, 0.8)",a.innerHTML='\n
    \n
  • 绕鼠标点旋转
  • \n
\n
    \n
  • 文本框
  • \n
\n '.concat(c,"\n "),o.appendChild(a);var d=e.position.x,m=e.position.y;e.position.x+a.offsetWidth>o.offsetWidth&&(d=e.position.x-a.offsetWidth),e.position.y+a.offsetHeight>o.offsetHeight&&(m=e.position.y-a.offsetHeight),a.style.left=d+"px",a.style.top=m+"px",a.addEventListener("contextmenu",(function(t){t.preventDefault()}));for(var f=a.getElementsByTagName("li"),v={},g=function(e){f[e].addEventListener("mouseover",(function(){f[e].style.backgroundColor="#5e5e5e"})),f[e].addEventListener("mouseout",(function(){f[e].style.backgroundColor="unset"})),f[e].addEventListener("click",(function(){var i="";switch(f[e].innerHTML){case"绕鼠标点旋转":v.position=h,i="rotateAround";break;case"属性":r?(v.id=r,v.parentId=u.options.id):v.id=u.options.id,i="attribute";break;case"文本框":v.position=h,i="textBox"}tt[t.div_id].callBack(i,v),o.removeChild(a)}))},y=0;y=0;l--){var c=Array.from(at.keys())[l],u=at.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M=0;l--){var c=Array.from(Ct.keys())[l],u=Ct.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M1&&void 0!==arguments[1]&&arguments[1];if(t){bt||(bt=new fi),(Pt=!!e)?Tt(t,Mt):Lt(t);var i=Ie();i&&(Pt?Tt(t,Mt):Lt(i));var n=ae().sdkD;n&&t!==n&&Ot(n,e)}}function Tt(t,e){Mt=e,Pt&&Bt(t);var i=Ie();return i&&Pt&&Bt(i),new Promise(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:setTimeout((function(){e()}),1e3);case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}())}function Nt(){return Pt}function Bt(t){Lt(t);var e,i,n=t.viewer.camera.positionCartographic,o={position:{lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),alt:n.height}},s=t.viewer;switch(Mt){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}for(var a=0;au&&(u+=360),c={minLng:r,minLat:l,maxLng:u,maxLat:d},l<-88&&(l=-88),d>88&&(d=88),(c.maxLng-c.minLng)/n*((c.maxLat-c.minLat)/o)>7e3)c=null;else{for(var m=r;m<=u;m+=n){for(var f=[],v=[],g=l;Math.floor(1e9*g)/1e9<=d;g+=o/2)v.push([m,g]),f.push(Cesium.Cartesian3.fromDegrees(m,g,8848));88!=d&&d+o/2>=88&&f.push(Cesium.Cartesian3.fromDegrees(m,88,8848));var y=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:f,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});if(e.add(new Cesium.Primitive({geometryInstances:y,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})})),md)break;var w=p(C.lng,C.lat,t);i.add({position:Cesium.Cartesian3.fromDegrees(C.lng,C.lat,8848),text:w,font:"16px Inter, sans-serif",fillColor:Cesium.Color.fromCssColorString("#fcfc00"),pixelOffset:new Cesium.Cartesian2(0,0),showBackground:!1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1,distanceDisplayCondition:new Cesium.DistanceDisplayCondition(0,8e7),scaleByDistance:s})}}for(var k=l;Math.floor(1e9*k)/1e9<=d;k+=o){for(var x=[],_=[],E=r;E<=u;E+=n/2)_.push([E,k]),x.push(Cesium.Cartesian3.fromDegrees(E,k,8848));var S=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:x,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});e.add(new Cesium.Primitive({geometryInstances:S,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})}))}}}function p(t,e,i){var n,o;switch(i){case"1:100万":n=6,o=4;break;case"1:50万":n=3,o=2;break;case"1:25万":n=1.5,o=1;break;case"1:10万":n=.5,o=1/3;break;case"1:5万":n=.25,o=1/6;break;case"1:2.5万":n=.125,o=1/12;break;case"1:1万":n=.0625,o=1/24;break;case"1:5000":n=.03125,o=1/48}e=Math.max(-88,Math.min(88,e));var s,a=t,r=e=Math.abs(e),l=Math.floor(a/6+31),c="ABCDEFGHIJKLMNOPQRSTUV".charAt(Math.floor(r/4+1)-1),u={"1:100万":"","1:50万":"B","1:25万":"C","1:10万":"D","1:5万":"E","1:2.5万":"F","1:1万":"G","1:5000":"H"}[i];if(!u&&"1:100万"!==i)throw new Error("不支持的比例尺,请使用: 1:100万, 1:50万, 1:25万, 1:10万, 1:5万, 1:2.5万, 1:1万, 1:5000");s=c+l;var p=("000"+(Math.floor((4*Math.ceil(r/4)-r)/o)+1)).slice(-3),h=a-6*Math.floor(a/6),d=("000"+(Math.floor(h/n)+1)).slice(-3);switch(i){case"1:100万":return s;case"1:50万":case"1:25万":case"1:10万":case"1:5万":case"1:2.5万":case"1:1万":case"1:5000":break;default:throw new Error("不支持的比例尺")}return s+u+p+d}function h(){var t=s.camera.computeViewRectangle();if(2==s.scene.mode){var e=s.scene.canvas,i=new Cesium.Cartesian2(0,0),n=new Cesium.Cartesian2(e.clientWidth,e.clientHeight),o=s.scene.globe.ellipsoid,a=s.camera.pickEllipsoid(i,o),r=s.camera.pickEllipsoid(n,o);if(!a){var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:6356755});i.y=l.y+5,a=s.camera.pickEllipsoid(i,o)}if(!r){var c=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:-6356755});n.y=c.y-5,r=s.camera.pickEllipsoid(n,o)}var u=s.scene.globe.ellipsoid.cartesianToCartographic(a),p=s.scene.globe.ellipsoid.cartesianToCartographic(r);return t=(n.y-i.y)/(n.x-i.x)<=.49998752339363695?new Cesium.Rectangle(Cesium.Math.toRadians(-180),Cesium.Math.toRadians(-90),Cesium.Math.toRadians(180),Cesium.Math.toRadians(90)):new Cesium.Rectangle(u.longitude,p.latitude,p.longitude,u.latitude)}return t}e.postRenderEvent=function(){var i=t.viewer.camera.positionCartographic.height;switch(Mt){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}if(i>5*o.position.alt)return c=null,void e.removeAll();var n=!1,s=h();if(s){var a=Cesium.Math.toDegrees(s.west),r=Cesium.Math.toDegrees(s.south),p=Cesium.Math.toDegrees(s.east);a>p&&(p+=360),s={minLng:a,minLat:r,maxLng:p,maxLat:Cesium.Math.toDegrees(s.north)},c?(c.minLng>s.minLng||c.minLat>s.minLat||c.maxLng=50&&(u(Mt),n=!1):l=0}},o.complete=function(){s.scene.postRender.addEventListener(e.postRenderEvent)},Xe(t,o,.5)}function Lt(t){for(var e,i,n=t.viewer,o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==g[2]&&g[2],s=g.length>3?g[3]:void 0,zt){t.next=6;break}return t.abrupt("return");case 6:if(r=zt.entityMap,l=Ft&&Ft.entityMap,!i){t.next=15;break}if((c=r.get(i))&&c.show){t.next=12;break}return t.abrupt("return");case 12:f(i,s),t.next=35;break;case 15:u=It(zt.entityMap),t.prev=16,u.s();case 18:if((p=u.n()).done){t.next=27;break}if(h=y()(p.value,2),d=h[0],(m=h[1])&&m.show){t.next=24;break}return t.abrupt("continue",25);case 24:f(d,s);case 25:t.next=18;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(16),u.e(t.t0);case 32:return t.prev=32,u.f(),t.finish(32);case 35:if(!n){t.next=37;break}return t.abrupt("return");case 37:case"end":return t.stop()}}),t,null,[[16,29,32,35]])})))).apply(this,arguments)}function Qt(t,e){Ft.viewer.imageryLayers.addImageryProvider(t.imageryProvider,e)}function te(t,e,i){for(var n,o=0;o=0;l--){var c=Array.from(ue.keys())[l],u=ue.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function be(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=1;o--){for(s=!1,r=n.length-1;r>=1;r--)n[r].id&&i[r].id&&n[r].id===i[o].id&&(s=!0);s||re.viewer.scene.primitives.remove(i[o])}for(l=n.length-1;l>=1;l--){for(c=!1,u=i.length-1;u>=1;u--)n[l].id&&i[l].id&&n[l].id===i[u].id&&(c=!0,i[u].show=n[l].show,i[u].startColor=n[l].startColor,i[u].endColor=n[l].endColor,i[u].minimumSpeed=n[l].minimumSpeed,i[u].maximumSpeed=n[l].maximumSpeed,i[u].minimumParticleLife=n[l].minimumParticleLife,i[u].maximumParticleLife=n[l].maximumParticleLife,i[u].startScale=n[l].startScale,i[u].endScale=n[l].endScale,i[u].emissionRate=n[l].emissionRate,i[u].particleSize=n[l].particleSize,i[u].modelMatrix=n[l].modelMatrix);c||re.viewer.scene.primitives.add(n[l])}}case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ae(t,e,i){var n=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas);n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.LEFT_DOWN),n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.RIGHT_DOWN),n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.WHEEL),we.push(n)}function je(){var t,e=this.sdks[ce];if(0===ce?t=this.sdks[1]:1===ce&&(t=this.sdks[0]),2===e.viewer.scene.mode)if(this.sdks[0].viewer.trackedEntity){var i=e.viewer.camera.positionCartographic.height;t.viewer.camera.lookAt(Cesium.Cartesian3.fromRadians(e.viewer.camera.positionCartographic.longitude,e.viewer.camera.positionCartographic.latitude,0),new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(-90),i))}else{this.sdks[1].viewer.trackedEntity&&(this.sdks[1].viewer.entities.remove(this.sdks[1].viewer.trackedEntity),this.sdks[1].viewer.trackedEntity=null);var n=this.tools.cartesian3Towgs84(Cesium.Cartesian3.fromRadians(e.viewer.camera.positionCartographic.longitude,e.viewer.camera.positionCartographic.latitude,e.viewer.camera.positionCartographic.height),e.viewer);t.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt)})}else{var o=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/(2-(90+e.viewer.camera.pitch/(Cesium.Math.PI/180))/110)));o||(o=e.viewer.camera.positionWC);var s=this.tools.cartesian3Towgs84(e.viewer.camera.positionWC,e.viewer).alt,a=this.tools.cartesian3Towgs84(o,e.viewer);t.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(a.lng,a.lat,s)})}}function Ie(){return re}function Re(){return le}function Fe(){re&&re.viewer.entities.add({show:!1,polygon:{hierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([100,50,100.0001,50,100.0001,50.0001]))}})}function ze(){return{sdkP:le,sdkD:re}}function He(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ve(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ve(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==u[2]?u[2]:3,o=new fi(e),r=i.orientation,!i.position){t.next=13;break}if(0===i.position.alt||i.position.alt){t.next=8;break}return t.next=7,o.getClampToHeight(i.position);case 7:i.position.alt=t.sent;case 8:l=0,r||(l=500),s=Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt+l),t.next=15;break;case 13:c=o.cal_envelope(i.positions),s=new Cesium.Rectangle(Cesium.Math.toRadians(c[3][0]),Cesium.Math.toRadians(c[3][1]),Cesium.Math.toRadians(c[1][0]),Cesium.Math.toRadians(c[1][1]));case 15:ii(e),e.viewer.camera.flyTo({destination:s,duration:n,orientation:r,complete:i.complete});case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ke(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&t.viewer){var i=t.viewer;i.scene.screenSpaceCameraController.enableRotate=e,i.scene.screenSpaceCameraController.enableTranslate=e,i.scene.screenSpaceCameraController.enableZoom=e,i.scene.screenSpaceCameraController.enableTilt=e,i.scene.screenSpaceCameraController.enableLook=e}}function $e(t,e){if(t&&t.viewer){Je[t.viewer._element.className]||(Je[t.viewer._element.className]={}),Je[t.viewer._element.className].event&&Je[t.viewer._element.className].event.destroy();var i=new fi(t),n=t.viewer._element,s=t.proj,r=function(){switch(l){case"compass":var r=n.getElementsByClassName("compass")[0],c=n.getElementsByClassName("navigation-controls")[0];e[l]?(r&&(r.style.display="block"),c&&(c.style.display="flex")):(r&&(r.style.display="none"),c&&(c.style.display="none"));break;case"legend":var u=n.getElementsByClassName("distance-legend")[0];e[l]?u&&(u.parentNode.style.display="block"):u&&(u.parentNode.style.display="none");break;case"info":var p=n.getElementsByClassName("cesium-info")[0];if(e[l]){var h=function(){var e=o()(a.a.mark((function e(){var n,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ge){e.next=2;break}return e.abrupt("return");case 2:n=i.cartesian3Towgs84(Ge,t.viewer),"EPSG:4326"===Ue?p.innerHTML="\n 经度:".concat(Number(n.lng.toFixed(6)),"° \n 纬度:").concat(Number(n.lat.toFixed(6)),"° \n 海拔高度:").concat(Number(n.alt.toFixed(2)),"米\n "):(o=s.convert([{x:n.lng,y:n.lat,z:n.alt}],"EPSG:4326",Ue),p.innerHTML="\n x:".concat(Number(o.points[0].x.toFixed(6)),'\n y:').concat(Number(o.points[0].y.toFixed(6)),'\n z:').concat(Number(o.points[0].z.toFixed(6)),"\n "));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();p?(h(),p.style.display="block"):((p=document.createElement("div")).className="cesium-info",p.style.position="absolute",p.style.bottom="32px",p.style.right="240px",p.style["font-size"]="14px",p.style["background-color"]="rgba(47,53,60,.8)",p.style.color="#fff",p.style.padding="4px 10px",p.style["border-radius"]="18px",p.innerHTML="EPSG:4326"===Ue?"\n 经度:-\n 纬度:-\n 海拔高度:-\n ":"\n x:-\n y:-\n z:-\n ",t.viewer._element.appendChild(p));var d=new X(t);Je[t.viewer._element.className].event=d;d.mouse_move((function(t,e){Ge=e,h()}))}else p&&(p.style.display="none");break;case"frame":e[l]?(t.viewer.scene.debugShowFramesPerSecond=!0,setTimeout((function(){var e=t.viewer._element.getElementsByClassName("cesium-viewer-cesiumWidgetContainer")[0],i=e.getElementsByClassName("cesium-performanceDisplay-defaultContainer")[0];i&&e.appendChild(i)}),50)):t.viewer.scene.debugShowFramesPerSecond=!1}};for(var l in e)r()}}function Qe(t,e){e=e?"billboard_default_url_"+e:"billboard_default_url";var i=h();t.startsWith("http")||(t.includes(":")||i&&(t=new URL(t,i).href));localStorage.setItem(e,t)}function ti(t){return t=t?"billboard_default_url_"+t:"billboard_default_url",localStorage.getItem(t)}function ei(){return We}function ii(t){t&&t.viewer&&qe[t.viewer._element.className]&&(qe[t.viewer._element.className].animate&&TWEEN.remove(qe[t.viewer._element.className].animate),qe[t.viewer._element.className].event&&qe[t.viewer._element.className].event.destroy(),Ke(t,!0),t.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY))}function ni(t){if(t&&t.entityMap){var e,i=He(t.entityMap);try{for(i.s();!(e=i.n()).done;){var n=y()(e.value,2),o=(n[0],n[1]);"TrajectoryMotion"===o.type&&o.viewFollow&&(o.viewFollow=!1)}}catch(t){i.e(t)}finally{i.f()}}}function oi(t,e){if(t){var i,n=ae().sdkD;n&&t!==n&&oi(n,e);for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function di(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}},{key:"cartesian3Towgs84",value:function(t,e){var i=e.scene.globe.ellipsoid,n=new Cesium.Cartesian3(t.x,t.y,t.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude);return{lng:Cesium.Math.toDegrees(o.longitude),lat:s,alt:o.height<0?0:o.height}}},{key:"computeDistance",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D,P,M,O=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=O.length>0&&void 0!==O[0]?O[0]:[],i=O.length>1&&void 0!==O[1]?O[1]:2,n=O.length>2&&void 0!==O[2]?O[2]:"空间长度",!(e.length<2)){t.next=7;break}return t.abrupt("return",0);case 7:o=0,t.t0=n,t.next="空间长度"===t.t0?11:"投影长度"===t.t0?13:"地表长度"===t.t0?15:48;break;case 11:for(s=0;s20?g/20:g,y=this.chunkLine(e,m),b=[],y.forEach((function(t,e){0===e?b=L()(t.geometry.coordinates):b.push(t.geometry.coordinates[1])})),C=[],w=hi(b),t.prev=25,w.s();case 27:if((k=w.n()).done){t.next=37;break}return x=k.value,_=b.indexOf(x),t.next=32,this.sampleHeight({lng:x[0],lat:x[1],alt:0},_);case 32:(E=t.sent).position.alt=E.position.alt<0?0:E.position.alt,C.push(E);case 35:t.next=27;break;case 37:t.next=42;break;case 39:t.prev=39,t.t1=t.catch(25),w.e(t.t1);case 42:return t.prev=42,w.f(),t.finish(42);case 45:for(C.length,S=0;S0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t.length<2)return 0;var n=0;if(i){var o=[];t.forEach((function(t){o.push([t.lng,t.lat,t.alt])}));var s=turf.lineString(o);n=1e3*turf.length(s)}else for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:2;if(t.length<3)return 0;var i=[];t.forEach((function(t){i.push([t.lng,t.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.tesselate(n);return Number(turf.area(o).toFixed(e))}},{key:"computeSignedArea",value:function(t,e){for(var i=[],n=[],o=0;oc?l/10:c/10;var u=new Cesium.PolygonGeometry.fromPositions({positions:Cesium.Cartesian3.fromDegreesArray(i),vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT,granularity:s}),p=new Cesium.PolygonGeometry.createGeometry(u);if(!p||!p.attributes||!p.attributes.position)return 0;var h=p.indices,d=p.attributes.position.values;function m(e,i){var n=new Cesium.Cartesian3(d[3*i],d[3*i+1],d[3*i+2]);return t.scene.clampToHeight(n)||n}for(var f=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:360};Number(e)<=0&&(e=.01);var n=[Number(t.lng),Number(t.lat)],o=turf.circle(n,e/1e3,i).geometry.coordinates[0],s=[];return o.forEach((function(t){s=s.concat(t)})),s}},{key:"createEllipse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{granularity:.1,semiMinorAxis:10,semiMajorAxis:20,bearing:0,height:0};e.granularity||(e.granularity=.1),e.height||(e.height=0),e.semiMinorAxis||(e.semiMinorAxis=1e-5),e.semiMajorAxis||(e.semiMajorAxis=1e-5);var i=new Cesium.EllipseOutlineGeometry({center:Cesium.Cartesian3.fromDegrees(Number(t.lng),Number(t.lat)),semiMajorAxis:Number(e.semiMajorAxis),semiMinorAxis:Number(e.semiMinorAxis),height:Number(e.height),granularity:Cesium.Math.toRadians(e.granularity),rotation:Cesium.Math.toRadians(e.bearing)}),n=Cesium.EllipseOutlineGeometry.createGeometry(i);if(!n||!n.attributes||!n.attributes.position)return[];for(var o=n.attributes.position.values,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],e=[];t.forEach((function(t){e.push(turf.point([t.lng,t.lat]))}));var i=turf.featureCollection(e),n=turf.center(i).geometry.coordinates;return{lng:n[0],lat:n[1]}}},{key:"computeMidpoint",value:function(t,e){var i=turf.point([t.lng,t.lat]),n=turf.point([e.lng,e.lat]),o=turf.midpoint(i,n).geometry.coordinates;return{lng:o[0],lat:o[1]}}},{key:"computeAttackArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(t,0)}},{key:"computePincerArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(t)}},{key:"computeArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(t.length<3)return[];for(var i,n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.length<2)return[];t.length;var i=new Array;if(t.forEach((function(t){i.push([t.lng,t.lat])})),2===i.length){var n=P.PlotUtils.mid(i[0],i[1]),o=P.PlotUtils.distance(i[0],n)/.9,s=P.PlotUtils.getThirdPoint(i[0],n,P.Constants.HALF_PI,o,!0);i=[i[0],s,i[1]]}var a=P.PlotUtils.mid(i[0],i[2]);i.push(a,i[0],i[1]);for(var r=[],l=void 0,c=void 0,u=void 0,p=[],h=0;h0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.length<2)return[];var i=[t[0].lng,t[0].lat],n=[t[1].lng,t[1].lat];if(t[0].lng===t[1].lng&&t[0].lat===t[1].lat){if(e)return[t[0],t[0],t[0]];var o=Cesium.Cartesian3.fromDegrees(t[0].lng,t[0].lat);return[o,o,o]}for(var s,a=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"#2ab0c2",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="",s={7:10,8:3,9:4,10:4,11:4,12:2};switch(i&&(s[e+""]?i.polyline.width=i.polyline.oriWidth+s[e+""]:i.polyline.width=i.polyline.oriWidth),Number(e)){case 1:o=new Cesium.PolylineDashMaterialProperty({color:Cesium.Color.fromCssColorString(t),dashLength:10});break;case 2:o=new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:Cesium.Color.fromCssColorString(t)});break;case 3:o=new Cesium.PolylineFlowMaterialProperty({color:t,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 4:o=new Cesium.PolylineFlowMultMaterialProperty({color:t,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 5:case 6:var a,r=this;o=new Cesium.FlowDashedLineFlowMaterialProperty({color:t,uType:5==e?0:1,speed:n.rotate?n.speed:0-n.speed,space:n.space,scale:new Cesium.CallbackProperty((function(){if(r.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var t=i.polyline.positions.getValue();if(!Cesium.defined(t))return 1;for(var e=0,n=0;n0||0==e.speed?(n.width=s.width*(e.space+1),n.height=s.height,o.drawImage(s,s.width*(e.space/2),0)):(o.clearRect(0,0,n.width,n.height),n.width=s.width*(e.space+1),n.height=s.height,o.save(),o.translate(n.width/2,n.height/2),o.rotate(Math.PI),o.translate(-n.width/2,-n.height/2),o.drawImage(s,s.width*(e.space/2),0),o.restore());var a=0,r=0;i.polyline.material=new Cesium.LineTextureMaterialProperty({color:e.color,image:n,speed:e.speed,repeat:new Cesium.CallbackProperty((function(){if(t.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var o=i.polyline.positions.getValue(t.sdk.viewer.clock.currentTime);if(!Cesium.defined(o))return new Cesium.Cartesian2(1,1);for(var s=0,l=0;l700){var v=(u*=f/p/(e.space*(n.width/n.height*5)+1))/i.polyline.oriRepeat;i.polyline.oriSpeed=v,i.polyline.oriRepeatX=u,a=v,r=u,c=new Cesium.Cartesian2(u,v||1)}else c=new Cesium.Cartesian2(r||i.polyline.oriRepeatX,a||i.polyline.oriSpeed);return c}var g=Re(),y=g.viewer.entities.getById(t.options.id),b=y.polyline.positions.getValue(g.viewer.clock.currentTime);if(!Cesium.defined(b))return new Cesium.Cartesian2(1,1);for(var C=0,w=0;w700){var M=(x*=P/_/(e.space*(n.width/n.height*5)+1))/y.polyline.oriRepeat;y.polyline.oriSpeed=M,y.polyline.oriRepeatX=x,a=M,r=x,k=new Cesium.Cartesian2(x,M||1)}else k=new Cesium.Cartesian2(r||y.polyline.oriRepeatX,a||y.polyline.oriSpeed);return k}))});var l=t.getSceenLine(i,e,n);l&&(i.polyline.oriRepeat=l)}}},{key:"getSceenLine",value:function(t,e,i){var n=new Cesium.Cartesian2(0,this.sdk.viewer.canvas.clientHeight),o=new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight),s=this.sdk.viewer.camera.getPickRay(n),a=this.sdk.viewer.scene.globe.pick(s,this.sdk.viewer.scene),r=this.sdk.viewer.camera.getPickRay(o),l=this.sdk.viewer.scene.globe.pick(r,this.sdk.viewer.scene);if(a&&l){var c=Cesium.Cartesian3.distance(a,l)/t.polyline.width.getValue(),u=this.sdk.viewer.camera.positionCartographic.height,p=new Cesium.BoundingSphere(new Cesium.Cartesian3(-1e6,0,0),5e5),h=this.sdk.viewer.canvas.clientWidth,d=this.sdk.viewer.canvas.clientHeight,m=this.sdk.viewer.scene.camera.getPixelSize(p,h,d);return m>700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"create_arrow1_picture",value:function(t){var e=new fabric.Canvas("canvas");e.width=150,e.height=75;var i=t,n=new fabric.Polygon([{x:e.width,y:e.height/2},{x:e.width-35,y:e.height},{x:e.width-35,y:e.height-20},{x:e.width/2,y:e.height-20},{x:e.width/2,y:20},{x:e.width-35,y:20},{x:e.width-35,y:0}],{fill:i});return e.add(n),e.toDataURL()}},{key:"create_arrow2_picture",value:function(t){var e=new fabric.Canvas("canvas");e.width=75,e.height=75;var i=t,n=new fabric.Polygon([{x:e.width,y:e.height/2},{x:e.width-35,y:e.height},{x:e.width-35-40,y:e.height},{x:e.width-40,y:e.height/2},{x:e.width-35-40,y:0},{x:e.width-35,y:0}],{fill:i});return e.add(n),e.toDataURL()}},{key:"sampleHeightMostDetailed",value:function(t){var e=[];return t.forEach((function(t){e.push(new Cesium.Cartographic.fromDegrees(t.lng,t.lat))})),this.sdk.viewer.scene.sampleHeightMostDetailed(e)}},{key:"flyHome",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE){var e=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.destination,i=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.orientation;this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),orientation:{heading:Cesium.Math.toRadians(i.heading||0),pitch:Cesium.Math.toRadians(i.pitch||0),roll:Cesium.Math.toRadians(i.roll||0)},duration:t})}else this.sdk.viewer.camera.flyHome(t)}},{key:"setPickStatus",value:function(){}},{key:"create_point_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:10},n=turf.point([Number(t.lng),Number(t.lat)]),o=turf.buffer(n,Number(e)/1e3,i);return o.geometry.coordinates}},{key:"create_line_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===t.length)return this.create_point_buffer(t[0],e);if(0===t.length)return!1;var i=[];t.forEach((function(t){i.push([Number(t.lng),Number(t.lat)])}));var n=turf.lineString(i),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"create_area_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===t.length)return this.create_point_buffer(t[0],e);if(0===t.length)return!1;if(2===t.length)return this.create_line_buffer(t,e);var i=[];t.forEach((function(t){i.push([Number(t.lng),Number(t.lat)])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"cal_envelope",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(t.length<2)){var e=[];t.forEach((function(t){e.push(turf.point([t.lng,t.lat]))}));var i=turf.featureCollection(e);return turf.envelope(i).geometry.coordinates[0]}console.error("坐标数量不能少于2个")}},{key:"chunkLine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t.length<2)return[];var i=[];t.forEach((function(t){i.push([t.lng,t.lat])}));var n=turf.lineString(i),o=turf.lineChunk(n,e/1e3),s=new Map;return o.features.forEach((function(t){t.geometry.coordinates.forEach((function(t){var e=t.join(","),i={lng:t[0],lat:t[1]};s.set(e,i)}))})),o.features}},{key:"billboardAnimation",value:function(t,e){var i=e.id,n=e.offset,o=void 0===n?10:n,s=(e.times,t.entities.getById(i));if(s){var a=Math.PI,r=a/60,l=0,c=this.cartesian3Towgs84(s.position.getValue(),t),u=setInterval((function(){l+=r;var t=o*Math.sin(l)+c.alt;l>a&&(l=0),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t)}),30);setTimeout((function(){clearInterval(u),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt)}),3e3)}}},{key:"calSector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:45,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=turf.point([t.lng,t.lat]),r=turf.sector(a,e/1e3,i,n,{steps:o}).geometry.coordinates,l=[];return r.forEach((function(t){t.forEach((function(t){var e;e=s?{lng:t[0],lat:t[1]}:Cesium.Cartesian3.fromDegrees(t[0],t[1]),l.push(e)}))})),l}},{key:"getClampToHeight",value:(t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>1&&void 0!==c[1]?c[1]:[],this.sdk&&this.sdk.viewer){t.next=3;break}return t.abrupt("return",0);case 3:return n=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat),t.prev=4,t.next=7,this.sdk.viewer.scene.clampToHeight(n,i);case 7:if(t.t0=t.sent,t.t0){t.next=10;break}t.t0=n;case 10:o=t.t0,t.next=16;break;case 13:t.prev=13,t.t1=t.catch(4),o=n;case 16:return t.next=18,this.cartesian3Towgs84(o,this.sdk.viewer).alt;case 18:if(s=t.sent,r=0,t.prev=20,!this.sdk.viewer.scene.terrainProvider.availability){t.next=26;break}return t.next=24,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(e.lng,e.lat)]);case 24:(l=t.sent)[0].height&&(r=l[0].height);case 26:t.next=31;break;case 28:t.prev=28,t.t2=t.catch(20),r=0;case 31:if(!(s>r)){t.next=35;break}return t.abrupt("return",Number(s.toFixed(2)));case 35:return t.abrupt("return",Number(r.toFixed(2)));case 36:case"end":return t.stop()}}),t,this,[[4,13],[20,28]])}))),function(e){return t.apply(this,arguments)})},{key:"deepCopyObj",value:function(t){var e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)"earth"!=i&&"Dialog"!=i&&(e[i]=this.deepCopyObj(t[i]));else e=t;return e}},{key:"projConvert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t?J(this.sdk,e):q()}},{key:"projectionConvert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t?K(this.sdk,e):$()}},{key:"exportExcel",value:function(t){var e="";for(var i in t[0])e+=''.concat(i,"");e+="";for(var n,o='{rows}
',s=function(t,e){return t.replace(/{(\w+)}/g,(function(t,i){return e[i]}))},a="",r="",l=0;l",t[l])r+=s('{data}',{nameType:"String",data:t[l][c]});r+="",l>0&&l/6e4%1==0&&(a+=s(o,{rows:r,nameWS:"Sheet"+l}),r="",r+=e)}a+=s(o,{rows:r,nameWS:"Sheet"}),r="",n=s('Axel Richter{created}{worksheets}',{created:(new Date).getTime(),worksheets:a});var u,p=document.createElement("A");p.href="data:application/vnd.ms-excel;base64,"+(u=n,window.btoa(unescape(encodeURIComponent(u)))),p.download="矢量数据导出.xls",p.target="_blank",document.body.appendChild(p),p.click(),document.body.removeChild(p)}},{key:"decompressGzip",value:function(t){var e=pako.inflate(t);return(new TextDecoder).decode(e)}},{key:"cmykToRgb",value:function(t){var e=t.c,i=t.m,n=t.y,o=t.k,s={r:0,g:0,b:0};return s.c=e/100,s.m=i/100,s.y=n/100,s.k=o/100,s.r=1-Math.min(1,s.c*(1-s.k)+s.k),s.g=1-Math.min(1,s.m*(1-s.k)+s.k),s.b=1-Math.min(1,s.y*(1-s.k)+s.k),s.r=Math.round(255*s.r),s.g=Math.round(255*s.g),s.b=Math.round(255*s.b),"rgb(".concat(s.r,", ").concat(s.g,", ").concat(s.b,")")}},{key:"convertPxToRem",value:function(t,e){var i=parseFloat(getComputedStyle(document.documentElement).fontSize),n=[],o=[];if(e){n=document.getElementById(t.div_id).querySelectorAll(e);for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:[],e=t.length,i=0,n=0,o=0;o0&&i<0||n<0&&i>0)return!1;i=n}}return!0}},{key:"getDateTimeString",value:function(){var t=new Date,e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),r=String(t.getMilliseconds()).padStart(3,"0");return"".concat(e).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)}},{key:"replaceHost",value:function(t,e){var i=t;if(!t||!e)return t;try{if(t.startsWith("http")){var n=/^[^@]+@/;n.test(t)&&(t=t.replace(n,"")),/^[a-z]+:\/\//i.test(t)||(t="http://"+t);var o=new URL(t),s=new URL(e),a=o.hostname,r=o.port;return a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1)),"localhost"!==a&&"127.0.0.1"!==a||55110===parseInt(r,10)||(o.port=s.port,o.protocol=s.protocol,i=o.toString()),i}return t.includes(":")||this.options.host&&(i=new URL(t,this.options.host).href),i}catch(t){return i}}},{key:"message",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type||"success",i=t.text||"",n=(t.duration,document.getElementById("YJ-custom-message"));n&&document.body.removeChild(n),n=document.createElement("div"),n.id="YJ-custom-message","success"==e?n.innerHTML='\n '.concat(i,"\n "):"warning"==e&&(n.innerHTML='\n '.concat(i,"\n ")),document.body.appendChild(n),n.classList.add(e)}}],[{key:"_md5",value:function(t){return j()(t).toUpperCase()}}]);var t,e,i}();function vi(t,e){var i=t.viewer;if(i)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=t.color,this.duration=t.duration,this.fltr=t.fltr,this.image=t.image,this._time=(new Date).getTime()}Object.defineProperties(t.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:Cesium.createPropertyDescriptor("repeat"),color:Cesium.createPropertyDescriptor("color")}),t.prototype.getType=function(t){return"PolylineTrailLink"},t.prototype.getValue=function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrClonedDefault(this._color,t,Cesium.Color.BROWN,e.color),this.image?e.image=this.image:e.image=Cesium.Material.PolylineTrailLinkImage,this.duration&&(e.time=((new Date).getTime()-this._time)%this.duration/this.duration),!1===this.fltr?e.fltr=this.fltr:e.fltr=!0,e},t.prototype.equals=function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)},Cesium.PolylineTrailLinkMaterialProperty=t,Cesium.Material.PolylineTrailLinkType="PolylineTrailLink",Cesium.Material.PolylineTrailLinkImage=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fa2020",e=512,i=32,n=new fabric.Canvas("canvas",{width:e,height:i}),o=new fabric.Rect({width:e,height:i}),s=new fabric.Gradient({type:"linear",gradientUnits:"pixels",coords:{x1:0,y1:0,x2:e,y2:0},colorStops:[{offset:.01,color:"rgba(246,241,241,0)"},{offset:1,color:t}]});return o.set("fill",s),n.add(o),n.toDataURL()}(),Cesium.Material.PolylineTrailLinkSource="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material =czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture(image,vec2(fract(st.t - time), st.t));\n vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb/20.0;\n material.emission = fragColor.rgb;\n return material;\n }",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailLinkType,{fabric:{type:Cesium.Material.PolylineTrailLinkType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.Material.PolylineTrailLinkImage,time:0},source:Cesium.Material.PolylineTrailLinkSource},translucent:function(t){return!0}})}function bi(){var t,e,i,n,o,s,a,r;yi(),t=new fi,"undefined"!=typeof Cesium&&function(e){e.CustomMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(e.Color,e.defaultValue),o=Object.defineProperties,s=e.Event,a=e.createPropertyDescriptor,r=e.Property,l=e.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random()),u={color:new e.Color(1,1,1,1),image:i.image||t.getSourceRootPath()+"/img/material/arrow.png",time:i.time||0,repeat:new e.Cartesian2(100,100),fltr:!i.fltr&&!1!==i.fltr||i.fltr,is2D:!!i.is2D,isTranslucent:!i.isTranslucent&&!1!==i.isTranslucent||i.isTranslucent};if(this.code="",i.repeats)for(var p=e.Property.getValueOrDefault(i.repeats),h=0;h0&&void 0!==arguments[0]?arguments[0]:{};t=n(t,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeats=void 0,this._repeatSubscription=void 0,this.image=t.image,this.is2D=!!t.is2D,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)"),this.repeat=t.repeat,this.repeats=t.repeats,this.duration=t.duration||0===t.duration?t.duration:1e3,this.fltr=!t.fltr&&!1!==t.fltr||t.fltr,this._time=(new Date).getTime()}return o(d.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:e.createPropertyDescriptor("repeat"),color:a("color")}),d.prototype.getType=function(t){return c},d.prototype.getValue=function(t,i){if(e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i.time=this.duration?e.getTimestamp()%this.duration/this.duration:0,i.image=this.image,i.is2D=!!this.is2D,this.repeat&&(i.repeat=e.Property.getValueOrDefault(this.repeat)),this.repeats)for(var n=e.Property.getValueOrDefault(this.repeats),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=(t.Color,t.defaultValue),n=Object.defineProperties,o=t.Event,s=t.createPropertyDescriptor,a=t.Property,r=t.Material,l=e.MaterialType||"wallType"+parseInt(1e3*Math.random());function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=i(e,i.EMPTY_OBJECT),this._definitionChanged=new o,this._color=void 0,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)")}return n(c.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:s("color")}),c.prototype.getType=function(t){return l},c.prototype.getValue=function(e,i){return t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i},c.prototype.equals=function(t){return this===t||t instanceof c&&a.equals(this._color,t._color)},r._materialCache.addMaterial(l,{fabric:{type:l,uniforms:{color:new t.Color(1,1,1,1)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.alpha = color.a;\n \n material.diffuse = color.rgb*0.0;\n material.emission = color.rgb;\n return material;\n }",components:{specular:1,diffuse:"vec3(0.0)"}},translucent:function(t){return!0}}),new c(e)}}(Cesium),function(){var t=new fi;"undefined"!=typeof Cesium&&function(e){e.CustomImageMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(e.Color,e.defaultValue),o=Object.defineProperties,s=e.Event,a=e.createPropertyDescriptor,r=e.Property,l=e.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random());function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=n(t,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.image=t.image,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)"),this.repeat=t.repeat}return o(u.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:e.createPropertyDescriptor("repeat"),color:a("color")}),u.prototype.getType=function(t){return c},u.prototype.getValue=function(t,i){return e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i.image=this.image,i.repeat=e.Property.getValueOrDefault(this.repeat),i},u.prototype.equals=function(t){return this===t||t instanceof u&&r.equals(this._color,t._color)&&r.equals(this.repeat,t._repeat)},l._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new e.Color(1,1,1,1),image:i.image||t.getSourceRootPath()+"/img/material/arrow.png",repeat:new e.Cartesian2(100,100)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = repeat * materialInput.st;\n vec4 colorImage = texture(image, st);\n \n material.diffuse = colorImage.rgb * 0.0;\n material.emission = colorImage.rgb * 0.3;\n return material;\n }"}}),new u(i)}}(Cesium)}(),i=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._duration=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.duration=e.duration||10,this.lineBackAlpha=e.lineBackAlpha||.05}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.FlowLineMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.duration=Cesium.Property.getValueOrDefault(this._duration,t,10,e.duration),e.lineBackAlpha=this.lineBackAlpha,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._duration,e.duration)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(i.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.FlowLineMaterialProperty=i,Cesium.Material.FlowLineMaterialProperty="FlowLineMaterialProperty",Cesium.Material.FlowLineMaterialType="FlowLineMaterialType",Cesium.Material.FlowLineMaterialSource="\n uniform vec4 color;\n uniform float duration;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n float time = fract(czm_frameNumber / (60.0*duration));\n //长度1/10\n time = time * (1.0 + 0.1);\n //平滑过渡函数\n float alpha = smoothstep(time-0.1,time,st.s) * step(-time,-st.s);\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowLineMaterialType,{fabric:{type:Cesium.Material.FlowLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),duration:10,lineBackAlpha:.05},source:Cesium.Material.FlowLineMaterialSource},translucent:function(t){return!0}}),n=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.lineBackAlpha=e.lineBackAlpha||.05,this.rotate=e.rotate}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.PolylineFlowMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.rotate=Cesium.Property.getValueOrDefault(this._rotate,t,!0,e.rotate),e.lineBackAlpha=this.lineBackAlpha,e.frameTime=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(n.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMaterialProperty=n,Cesium.Material.PolylineFlowMaterialProperty="PolylineFlowMaterialProperty",Cesium.Material.PolylineFlowMaterialType="PolylineFlowMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n // float time = fract(czm_frameNumber * speed / 60.0);\n // float time = fract(abs(speed) * czm_frameNumber * 0.01);\n float time = fract(frameTime / 1000.0 / abs(speed));\n //长度1/10\n // time = time * (1.0 + 0.1);\n float staticAlpha = rotate?smoothstep(0.0,1.0, 1.0-st.s) * step(-1.0,-(1.0-st.s)):smoothstep(0.0,1.0, st.s) * step(-1.0,-st.s);\n\n //平滑过渡函数\n float alpha1 = smoothstep(time-0.1,time,1.0-st.s) * step(-time,- (1.0-st.s));\n float alpha2 = smoothstep(time-0.1,time,st.s) * step(-time,- st.s);\n float alpha =(speed== 0.0)? staticAlpha:(speed < 0.0)?alpha2:alpha1;\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(t){return!0}}),o=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.lineBackAlpha=e.lineBackAlpha||.05,this.rotate=e.rotate}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.PolylineFlowMultMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.rotate=Cesium.Property.getValueOrDefault(this._rotate,t,!0,e.rotate),e.lineBackAlpha=this.lineBackAlpha,e.frameTime=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this._rotate,e.rotate)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(o.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMultMaterialProperty=o,Cesium.Material.PolylineFlowMultMaterialProperty="PolylineFlowMultMaterialProperty",Cesium.Material.PolylineFlowMultMaterialType="PolylineFlowMultMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n // 基础时间轴(控制主光带)\n float baseTime = fract(czm_frameNumber * speed / 60.0) * 1.1;\n\n // 高频时间轴(控制高光点)\n // float highlightTime = fract(czm_frameNumber * speed * 3.0 / 60.0);\n // float highlightTime = fract(abs(speed) * czm_frameNumber * 0.01);\n float highlightTime = fract(frameTime / 1000.0 / abs(speed));\n float highlightSpacing = 0.3; // 高光点间隔\n\n // 主光带透明度计算\n float mainAlpha = smoothstep(baseTime-0.1, baseTime, st.s) * step(-baseTime, -st.s);\n\n // 多高光点计算(3个周期性光斑)\n float highlight11 = smoothstep(highlightTime-0.05, highlightTime, st.s) *\n step(-highlightTime, -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - highlightTime)));\n\n float highlight21 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, st.s) *\n step(-(highlightTime+highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+highlightSpacing))));\n\n float highlight31 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight12 = smoothstep(highlightTime-0.05, highlightTime, 1.0 - st.s) *\n step(-highlightTime, -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - highlightTime)));\n\n float highlight22 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+highlightSpacing),-(1.0 - st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0-st.s - (highlightTime+highlightSpacing))));\n\n float highlight32 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight1 = !rotate?highlight11:highlight12;\n float highlight2 = !rotate?highlight21:highlight22;\n float highlight3 = !rotate?highlight31:highlight32;\n // 合并效果\n // material.alpha = mainAlpha * 0.7 +\n // (highlight1 + highlight2 + highlight3) * 0.5 +\n // lineBackAlpha;\n material.alpha = (highlight1 + highlight2 + highlight3) * 0.5 +\n lineBackAlpha;\n material.diffuse = color.rgb; // 高光区变亮\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMultMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMultMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(t){return!0}}),s=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._uType=void 0,this._space=void 0,this._dashSize=void 0,this._scale=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.space=e.space||0,this.dashSize=e.dashSize||.03,this.uType=void 0===e.uType?1:e.uType,this.lineBackAlpha=e.lineBackAlpha||.05,this.scale=e.scale||1}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.FlowDashedLineMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.space=Cesium.Property.getValueOrDefault(this._space,t,10,e.space),e.dashSize=Cesium.Property.getValueOrDefault(this._dashSize,t,10,e.dashSize),e.uType=Cesium.Property.getValueOrDefault(this._uType,t,1,e.uType),e.scale=Cesium.Property.getValueOrDefault(this._scale,t,1,e.scale),e.lineBackAlpha=this.lineBackAlpha,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this._uType,e.uType)&&Cesium.Property.equals(this._lineBackAlpha,e.lineBackAlpha)&&Cesium.Property.equals(this._scale,e.scale)}}])}(),Object.defineProperties(s.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),space:Cesium.createPropertyDescriptor("space"),dashSize:Cesium.createPropertyDescriptor("dashSize"),uType:Cesium.createPropertyDescriptor("uType"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha"),scale:Cesium.createPropertyDescriptor("scale")}),Cesium.FlowDashedLineFlowMaterialProperty=s,Cesium.Material.FlowDashedLineFlowMaterialProperty="FlowDashedLineFlowMaterialProperty",Cesium.Material.FlowDashedLineMaterialType="FlowDashedLineMaterialType",Cesium.Material.FlowDashedLineMaterialSource="\n uniform vec4 color;\n uniform float speed;\n // uniform int uType;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n float dashSize = 0.1;\n float gapSize = space;\n // speed现在表示完成一次完整动画循环的秒数\n float progress = speed==0.0 ? 0.0 : fract(frameNumber / 1000.0 / speed * scale);\n float pattern = fract(st.x / dashSize * (1.0 + gapSize) + progress / dashSize * (1.0 + gapSize));\n float dash1 = step(0.0, pattern) - step(1.0/(1.0 + gapSize), pattern);\n float dash2 = smoothstep(0.0, 0.2, pattern) -\n smoothstep(1.0/(1.0 + gapSize),\n 1.0/(1.0 + gapSize) + 0.2,\n pattern);\n float dash = (float(uType) != 1.0)?dash1:dash2;\n material.alpha = dash;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowDashedLineMaterialType,{fabric:{type:Cesium.Material.FlowDashedLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:1,space:0,scale:1,dashSize:.03,frameNumber:Cesium.getTimestamp(),uType:1,lineBackAlpha:.05},source:Cesium.Material.FlowDashedLineMaterialSource},translucent:function(t){return!0}}),a=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._image=void 0,this._color=void 0,this._speed=void 0,this._repeat=void 0,this.image=e.image||"",this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.repeat=e.repeat||new Cesium.Cartesian2(1,1)}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.LineTextureMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.image=Cesium.Property.getValueOrDefault(this._image,t,"",e.image),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,1,e.speed),e.repeat=Cesium.Property.getValueOrDefault(this._repeat,t,new Cesium.Cartesian2(1,1),e.repeat),e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._imageW,e._imageW)&&Cesium.Property.equals(this._speed,e._speed)}}])}(),Object.defineProperties(a.prototype,{image:Cesium.createPropertyDescriptor("image"),color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),repeat:Cesium.createPropertyDescriptor("repeat")}),Cesium.LineTextureMaterialProperty=a,Cesium.Material.LineTextureMaterialProperty="LineTextureMaterialProperty",Cesium.Material.LineTextureMaterialType="LineTextureMaterialType",Cesium.Material.LineTextureMaterialSource="\n uniform vec4 color;\n uniform sampler2D image;\n uniform float speed;\n // uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat.x; // 关键:通过repeat控制纹理密度\n // vec4 colorImage = texture2D(image, vec2(fract(st.s + speed*czm_frameNumber* 0.01), st.t));\n vec4 colorImage = speed==0.0?texture2D(image, vec2(fract(st.s), st.t)):texture2D(image, vec2(fract(st.s + frameNumber / 1000.0 / speed * repeat.x / repeat.y ), st.t));\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.LineTextureMaterialType,{fabric:{type:Cesium.Material.LineTextureMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),image:"",repeat:new Cesium.Cartesian2(1,1),speed:1,frameNumber:Cesium.getTimestamp(),uTime:1},source:Cesium.Material.LineTextureMaterialSource},translucent:function(t){return!0}}),r=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._image=void 0,this._repeat=void 0,this._stRotation=void 0,this._repeatLength=void 0,this.image=e.image||"",this.repeat=e.repeat||1,this.stRotation=e.stRotation||0}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.RoadTextureMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.image=Cesium.Property.getValueOrDefault(this._image,t,"",e.image),e.repeat=Cesium.Property.getValueOrDefault(this._repeat,t,1,e.repeat),e.stRotation=Cesium.Property.getValueOrDefault(this._stRotation,t,0,e.stRotation),console.log(e,"result"),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._repeat,e._repeat)&&Cesium.Property.equals(this._stRotation,e._stRotation)}}])}(),Object.defineProperties(r.prototype,{image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat"),repeatLength:Cesium.createPropertyDescriptor("stRotation")}),Cesium.RoadTextureMaterialProperty=r,Cesium.Material.RoadTextureMaterialProperty="RoadTextureMaterialProperty",Cesium.Material.RoadTextureMaterialType="RoadTextureMaterialType",Cesium.Material.RoadTextureMaterialSource="\n uniform sampler2D image;\n uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat;\n mat2 rot = mat2(cos(stRotation), -sin(stRotation), sin(stRotation), cos(stRotation));\n vec2 newSt = rot * (st - 0.5) + 0.5;\n\n vec4 colorImage = texture2D(image, newSt);\n material.diffuse = colorImage.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.RoadTextureMaterialType,{fabric:{type:Cesium.Material.RoadTextureMaterialType,uniforms:{image:"",repeat:1,stRotation:0},source:Cesium.Material.RoadTextureMaterialSource},translucent:function(t){return!0}})}var Ci=function(){return _()((function t(e,i){k()(this,t),this.dom=e,this.playerUrl=i.url,this.init()}),[{key:"init",value:function(){this.flvPlayer=flvjs.createPlayer({type:"flv",url:this.playerUrl,isLive:!0,hasAudio:!1,hasVideo:!0},{enableWorker:!0,enableStashBuffer:!1,stashInitialSize:128}),this.flvPlayer.attachMediaElement(this.dom),this.flvPlayer.load()}},{key:"on",value:function(t,e,i){this.flvPlayer.on(flvjs[t][e],i)}},{key:"destroy",value:function(){this.flvPlayer.destroy(),this.flvPlayer=null}}])}(),wi=function(){return _()((function t(e,i){k()(this,t),this.dom=e,this.url=i.url,this.init()}),[{key:"init",value:function(){this.player=new Jessibuca({container:this.dom,decoder:this.getSourceRootPath()+"/3rdparty/jessibuca/decoder.js",timeout:30,heartTimeout:30,heartTimeoutReplay:!1,loadingTimeout:30,loadingTimeoutReplay:!1,wasmDecodeErrorReplay:!1,videoBuffer:.2,isResize:!1,text:"",loadingText:"",useMSE:!1,debug:!0,showBandwidth:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,recorder:!1},forceNoOffscreen:!1,isNotMute:!1}),this.player.play(this.url)}},{key:"on",value:function(t,e){this.player.on(t,e)}},{key:"destroy",value:function(){this.player.destroy(),this.player=null}},{key:"getSourceRootPath",value:function(){var t=document.querySelectorAll("script"),e="";return t.forEach((function(t){if(t.src&&t.src.indexOf("YJEarth.min.js")>-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}}])}();function ki(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function xi(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var _i=/^[og]\s*(.+)?/,Ei=/^mtllib /,Si=/^usemtl /,Di=/^usemap /,Pi=/\s+/,Mi={red:1,green:1,blue:1,alpha:1};function Oi(){var t={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var i=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,e){var i=this._finalize(!1);i&&(i.inherited||i.groupCount<=0)&&this.materials.splice(i.index,1);var n={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==i?i.smooth:this.smooth,groupStart:void 0!==i?i.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(n),n},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var i=this.materials.length-1;i>=0;i--)this.materials[i].groupCount<=0&&this.materials.splice(i,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},i&&i.name&&"function"==typeof i.clone){var n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var i=parseInt(t,10);return 3*(i>=0?i-1:i+e/3)},parseNormalIndex:function(t,e){var i=parseInt(t,10);return 3*(i>=0?i-1:i+e/3)},parseUVIndex:function(t,e){var i=parseInt(t,10);return 2*(i>=0?i-1:i+e/2)},addVertex:function(t,e,i){var n=this.vertices,o=this.object.geometry.vertices;o.push(n[t+0],n[t+1],n[t+2]),o.push(n[e+0],n[e+1],n[e+2]),o.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addVertexLine:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addNormal:function(t,e,i){var n=this.normals,o=this.object.geometry.normals;o.push(n[t+0],n[t+1],n[t+2]),o.push(n[e+0],n[e+1],n[e+2]),o.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(t,e,i){console.warn("addFaceNormal")},addColor:function(t,e,i){var n=this.colors,o=this.object.geometry.colors;void 0!==n[t]&&o.push(n[t+0],n[t+1],n[t+2]),void 0!==n[e]&&o.push(n[e+0],n[e+1],n[e+2]),void 0!==n[i]&&o.push(n[i+0],n[i+1],n[i+2])},addUV:function(t,e,i){var n=this.uvs,o=this.object.geometry.uvs;o.push(n[t+0],n[t+1]),o.push(n[e+0],n[e+1]),o.push(n[i+0],n[i+1])},addDefaultUV:function(){var t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){var e=this.uvs;this.object.geometry.uvs.push(e[t+0],e[t+1])},addFace:function(t,e,i,n,o,s,a,r,l){var c=this.vertices.length,u=this.parseVertexIndex(t,c),p=this.parseVertexIndex(e,c),h=this.parseVertexIndex(i,c);if(this.addVertex(u,p,h),this.addColor(u,p,h),void 0!==a&&""!==a){var d=this.normals.length;u=this.parseNormalIndex(a,d),p=this.parseNormalIndex(r,d),h=this.parseNormalIndex(l,d),this.addNormal(u,p,h)}else this.addFaceNormal(u,p,h);if(void 0!==n&&""!==n){var m=this.uvs.length;u=this.parseUVIndex(n,m),p=this.parseUVIndex(o,m),h=this.parseUVIndex(s,m),this.addUV(u,p,h),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";for(var e=this.vertices.length,i=0,n=t.length;i=7?(Cesium.Color.fromBytes(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),1,Mi),n.colors.push(Mi.red,Mi.green,Mi.blue)):n.colors.push(void 0,void 0,void 0);break;case"vn":n.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":n.uvs.push(parseFloat(u[1]),parseFloat(u[2]))}}else if("f"===c){for(var p=l.slice(1).trim().split(Pi),h=[],d=0,m=p.length;d0){var v=f.split("/");h.push(v)}}for(var g=h[0],y=1,b=h.length-1;y1){var M=s[1].trim().toLowerCase();n.object.smooth="0"!==M&&"off"!==M}else n.object.smooth=!0;var O=n.object.currentMaterial();O&&(O.smooth=n.object.smooth)}else{if("\0"===l)continue;console.warn('Unexpected line: "'+l+'"')}}}n.finalize();var T=new Ai(this.context,this.hls,this.videoId,this.host,i);if(!0===!(1===n.objects.length&&0===n.objects[0].geometry.vertices.length))for(var N=0,B=n.objects.length;N0&&(d=!0),i.colors.length>0&&(m=!0),!0===i.hasUVIndices&&(f=!0),d&&(u+="attribute vec3 normal;\n",u+="varying vec3 v_normal;\n",p+="varying vec3 v_normal;\n",h+="v_normal = normal;\n"),m&&(u+="attribute vec3 color;\n",u+="varying vec2 v_color;\n",p+="varying vec2 v_color;\n",h+="v_color = color;\n"),f&&(u+="attribute vec2 uv;\n",u+="varying vec2 v_uv;\n",p+="varying vec2 v_uv;\n",h+="v_uv = uv;\n"),u+="\n void main() {\n gl_Position = czm_modelViewProjection * vec4(position, 1.);\n ".concat(h,"\n }\n "),p+="\n\t\tuniform sampler2D colorTexture;\n void main() {\n\t\t\t vec4 color = texture2D(colorTexture, v_uv);\n\t\t\t\t\t\tgl_FragColor = color;\n }\n ",this.program=Cesium.ShaderProgram.fromCache({context:e,vertexShaderSource:u,fragmentShaderSource:p}),this.uniformMap={};var v=this;c.then((function(t){for(var e=function(){var e=t[i].diffusemap;r.uniformMap.colorTexture=function(){return e}},i=0;i0){o++;var a=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.normals),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:a,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(i.colors.length>0){o++;var r=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.colors),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:r,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(!0===i.hasUVIndices){o++;var l=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.uvs),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:l,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1})}var c=new Cesium.VertexArray({context:e,attributes:n}),u=Cesium.RenderState.fromCache({cull:{enabled:!1},depthMask:!0,depthTest:{enabled:!0}});this.drawCommand=new Cesium.DrawCommand({owner:this,primitiveType:Cesium.PrimitiveType.TRIANGLES,vertexArray:c,renderState:u,pass:Cesium.Pass.OPAQUE})}),[{key:"setMaterial",value:function(t){this.material=t,t.setCommand(this.drawCommand)}},{key:"update",value:function(t){Cesium.defined(this.material)&&this.material.ready&&t.commandList.push(this.drawCommand)}},{key:"updateVideo",value:function(t,e,i){var n=!1;if(Cesium.defined(this.material)&&this.material.ready)if(i.computeVisibility(this.drawCommand.boundingVolume)>=0&&this.material.ready){var o=t.distanceToBoundingSphere(this.drawCommand.boundingVolume),s=e.width,a=e.height;o>=20&&o<100?(s=e.width/2,a=e.height/2):o>=100&&(s=e.width/10,a=e.height/10),n=!0,this.material.updateColorTexture(e,Math.floor(s),Math.floor(a))}else n=!1;this.lastState=n}}])}(),Li=new WeakMap,Ai=function(){return _()((function t(e,i,n,o,s){k()(this,t),ki(this,Li,!0),this.context=e,this.videoId=n,this.host=o,this._modelMatrix=Cesium.Matrix4.IDENTITY,this.parent=null,this.children=[],this.video={dom:null,playing:!1,timeupdate:!1,width:0,height:0,tracks:null},this.time=0,this.name=s}),[{key:"show",get:function(){return e=this,(t=Li).get(xi(t,e));var t,e},set:function(t){var e,i,n;"boolean"==typeof t?(i=this,n=t,(e=Li).set(xi(e,i),n),t?this.video.player&&this.video.player.getVueInstance().play():this.video.player&&this.video.player.getVueInstance().pause()):console.error("参数必须为boolean")}},{key:"requestVideoResource",value:function(){var t=this,e="",i=(e=this.host.endsWith("yjearth4.0")?this.host:this.host+"/yjearth4.0")+"/videoFusion/"+this.videoId;return fetch(i,{method:"get",headers:{"Content-Type":"application/json"}}).then(function(){var i=o()(a.a.mark((function i(n){var s;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:if(s=i.sent,s=JSON.parse(s),![0,200].includes(s.code)){i.next=13;break}if(!s.data.deviceCode.length){i.next=9;break}return i.abrupt("return",fetch(e+"/videoFusion/vide/stream",{method:"post",body:JSON.stringify({type:"flv",deviceCode:s.data.deviceCode}),headers:{"Content-Type":"application/json"}}).then(function(){var e=o()(a.a.mark((function e(i){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.text();case 2:if(n=e.sent,n=JSON.parse(n),![0,200].includes(n.code)){e.next=9;break}return n.data.url.length?(t.video.player.url=n.data.url,t.setFlvVideo(n.data.url)):console.warn("地址不存在"),e.abrupt("return");case 9:return console.warn(n.msg||n.message),e.abrupt("return");case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 9:console.warn("设备不存在");case 10:return i.abrupt("return");case 13:return console.warn(s.msg||s.message),i.abrupt("return");case 15:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())}},{key:"modelMatrix",get:function(){return this._modelMatrix},set:function(t){this._modelMatrix=t.clone(),this.updateModelMatrix()}},{key:"updateModelMatrix",value:function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k()(this,t);var n,o,s,a,r,l=this,c={el:i.el,size:"mini",isLog:!1,disabled:i.disabled||!1,alpha:!1,clickDefineColor:p,hasClear:!0,openPickerAni:"opacity",defaultColor:i.defaultColor,pickerInputChange:v,startMainCallback:function(t){l.colorPicker&&(l.colorPicker.picker.style.opacity=0),setTimeout((function(){u()}),0)}};function u(){if(l.colorPicker&&l.colorPicker.picker){var t=!1,e=l.colorPicker.box,c=l.colorPicker.picker,u=e.getBoundingClientRect().x,m=e.getBoundingClientRect().y,g=0;c.style.left=u+"px",c.style.minWidth="325px";var y=c.getElementsByClassName("ew-alpha-slider-bar")[0];y&&(y.parentNode.style.width="16px",y.parentNode.removeChild(y));var b=document.createElement("div");b.className="icon-pen-box",b.innerHTML='',b.style.display="none",b.style.cursor="unset";var C=l.colorPicker.pickerInput;C.parentNode.insertBefore(b,C),C.style.width="188px",C.style.display="none";var w=document.createElement("div"),k=document.createElement("div");k.className="row",k.style.margin="6px 0 0 0",k.innerHTML='\n
R
\n
G
\n
B
\n
\n ';var x=document.createElement("div");x.className="row",x.innerHTML='\n
\n \n
\n
\n \n
\n
\n \n
\n ',w.appendChild(k),w.appendChild(x);var _=x.getElementsByTagName("input");_[0].style.width="72px",_[1].style.width="72px",_[2].style.width="72px",n=_[0],o=_[1],s=_[2];var E=c.getElementsByClassName("ew-color-dropbtns")[0];if(c.insertBefore(w,E),n.addEventListener("blur",(function(t){var e=t.target.value;(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eR\n
G
\n
B
\n
A
\n
\n ',x.appendChild(S),a.addEventListener("blur",(function(t){var e=t.target.value;(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e',B.className="yj-pre-collect-color add";var L=document.createElement("div");L.innerHTML='',L.className="yj-pre-collect-color subtract";var A=L.getElementsByClassName("icon-minus")[0],j=L.getElementsByClassName("icon-confirm")[0];N.appendChild(B),N.appendChild(L);var I=[],R=function(t){var e=document.createElement("div");e.className="yj-pre-collect-color",e.setAttribute("tabindex","0"),e.setAttribute("color-box-id",l.colorPicker.uid);var i=document.createElement("div");i.className="yj-pre-define-color-item",e.appendChild(i),i.className="yj-pre-define-color-item";var n=Cesium.Color.fromCssColorString(M[t]).toCssHexString();i.style.backgroundColor=n,i.addEventListener("click",(function(t){l.colorPicker.updateColor(t),e.className="yj-pre-collect-color yj-pre-collect-color-active",p(n)})),e.addEventListener("blur",(function(t){e.className="yj-pre-collect-color"}));var o=document.createElement("div");o.className="yj-pre-define-color-item subtract-btn",o.innerHTML='',o.style.display="none",e.appendChild(o),N.appendChild(e),o.addEventListener("click",(function(){delete M[t],localStorage.setItem("custom-color",JSON.stringify(M)),N.removeChild(e)})),I.push(o)};for(var F in M)R(F);B.addEventListener("click",(function(){if(t){t=!1;for(var e=0;ewindow.innerHeight?c.style.top=m-g+"px":c.style.top=m+e.offsetHeight+4+"px",l.colorPicker.pancelTop=parseFloat(c.style.top)-2,v(Cesium.Color.fromCssColorString(l.colorPicker.config.defaultColor||"#ffffff").toCssHexString())}}function p(t){if(a){var e=Cesium.Color.fromCssColorString(t);a.value=parseInt(100*Number(e.alpha.toFixed(2)))/100}}function h(t){var e,i,n,o=t.a,s=Math.round(t.h),a=Math.round(255*t.s/100),r=Math.round(255*t.b/100);if(0===a)e=i=n=r;else{var l=(255-a)*r/255,c=s%60*(r-l)/60;360===s?(e=r,i=n=0):s<60?(e=r,i=l+c,n=l):s<120?(e=r-c,i=r,n=l):s<180?(e=l,i=r,n=l+c):s<240?(e=l,i=r-c,n=r):s<300?(e=l+c,i=l,n=r):s<360?(e=r,i=l,n=r-c):e=i=n=0}return"rgba("+Math.round(e)+","+Math.round(i)+","+Math.round(n)+","+o+")"}function d(t){var e={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};if(/rgba?/.test(t)){var i=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n="";return i[3],i.map((function(t,i){i<=2&&(n+=function(t){t=Math.min(Math.round(t),255);var i=Math.floor(t/16),n=t%16;return""+(e[i]||i)+(e[n]||n)}(t))})),"#"+n}}function m(t,e){var i=t.toLowerCase(),n=t.length,o=[];i=Cesium.Color.fromCssColorString(i).toCssHexString().substring(0,7);if(t&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(i)){if(4===n){for(var s="#",a=1;a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),Wi(this,Ji,void 0),this.div_id=e,this.entityMap=new Map,this._entityZIndex=0,this.viewer=null,this.options=Ui({},i),ui(ci()),this.proj=new R,this.clickTextDom=void 0,this.isLeftClick=!1,this.init(),Ri()}),[{key:"addIncetance",value:function(t,e){this.entityMap.set(t+"",e)}},{key:"getIncetance",value:function(t){return this.entityMap.get(t+"")}},{key:"removeIncetance",value:function(t){this.entityMap.delete(t),function(t){at.delete(t)}(this),function(t){rt.delete(t)}(this),function(t){lt.delete(t)}(this),se(this,t)}},{key:"setDefaultView",value:function(t){t?(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:t.destination||{},orientation:t.orientation||{}},ii(this),ni(this),this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.destination.lng,t.destination.lat,t.destination.alt),orientation:{heading:Cesium.Math.toRadians(t.orientation.heading||0),pitch:Cesium.Math.toRadians(t.orientation.pitch||0),roll:Cesium.Math.toRadians(t.orientation.roll||0)},duration:0})):(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2),this.viewer.camera.setView({destination:Cesium.Camera.DEFAULT_VIEW_RECTANGLE}))}},{key:"init",value:function(){var t=this,e=new Cesium.Ellipsoid(6378137,6378137,6356752.314140356),i=new Cesium.GeographicProjection(e),n=this;this.options={imageryProvider:new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),baseLayerPicker:!1,geocoder:!1,animation:!1,fullscreenButton:!1,navigationHelpButton:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,shouldAnimate:!0,mapProjection:i},Number(Cesium.VERSION.split(".")[1])>=107?this.options.baseLayer=Cesium.ImageryLayer.fromProviderAsync(Cesium.TileMapServiceImageryProvider.fromUrl(Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"))):this.options.imageryProvider=new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),this.options.contextOptions={webgl:{depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0},requestWebgl2:!0},Cesium.RequestScheduler.maximumRequests=500,this.viewer=new Cesium.Viewer(this.div_id,this.options),this.viewer.scene.imageryLayers._layers[0].notes="default-base-map",this.viewer._shadows=this.viewer.shadows,this.viewer.scene.screenSpaceCameraController.maximumZoomDistance=5e7,this.viewer.scene.globe.translucency.enabled=!0;var o=new fi;this.viewer.scene.skyBox=new Cesium.SkyBox({sources:{negativeX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mx.jpg",negativeY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_my.jpg",negativeZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mz.jpg",positiveX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_px.jpg",positiveY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_py.jpg",positiveZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_pz.jpg"}}),bi();for(var s=[{name:"思源黑体",value:"SourceHanSansTi",url:o.getSourceRootPath()+"/custom/fonts/SourceHanSansCN-Medium.otf",format:"opentype"},{name:"庞门正道标题体",value:"PMZDBTTi",url:o.getSourceRootPath()+"/custom/fonts/PangMenZhengDaoBiaoTiTi-1.ttf",format:"truetype"},{name:"数黑体",value:"AlimamaShuHeiTi",url:o.getSourceRootPath()+"/custom/fonts/AlimamaShuHeiTi-Bold.ttf",format:"truetype"}],a=0;a=1e3?(i.billboard.scale=1.5,i.label.pixelOffset=new Cesium.Cartesian2(-28,-46)):t.length>=100?(i.billboard.scale=1.25,i.label.pixelOffset=new Cesium.Cartesian2(-21,-40)):t.length>=50?(i.billboard.scale=1.1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-36)):t.length>=40?(i.billboard.scale=1.05,i.label.pixelOffset=new Cesium.Cartesian2(-16,-34)):t.length>=30?(i.billboard.scale=1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-32)):t.length>=20?(i.billboard.scale=.95,i.label.pixelOffset=new Cesium.Cartesian2(-16,-30)):t.length>=10?(i.billboard.scale=.9,i.label.pixelOffset=new Cesium.Cartesian2(-16,-28)):(i.billboard.scale=.8,i.label.pixelOffset=new Cesium.Cartesian2(-11,-25))}));var n=t.clustering.pixelRange;t.clustering.pixelRange=0,t.clustering.pixelRange=n}();var a={pixelRange:15,minimumClusterSize:2};function r(e){Cesium.knockout.getObservable(a,e).subscribe((function(i){t.clustering[e]=i}))}Cesium.knockout.track(a),r("pixelRange"),r("minimumClusterSize")}))}(this.viewer),E(this.viewer);Cesium.viewerCesiumNavigationMixin(this.viewer,{resetTooltip:"重置视图",zoomInTitle:"缩小",zoomOutTitle:"放大"});function l(t){var e=t.indexOf("px");return Number(t.slice(0,e))}setTimeout((function(){var e=document.getElementsByClassName("compass-outer-ring")[0],i=document.getElementsByClassName("navigation-controls")[0];e.addEventListener("mousedown",(function(){ii(t),ni(t)})),i.addEventListener("mousedown",(function(){ii(t),ni(t)}))}),0),this.viewer.imageryLayers.layerAdded.addEventListener((function(){for(var e=0;e-1;i--){var o=l(e[i].style.left),s=l(e[i].style.top),a=1*e[i].clientWidth,r=1*e[i].clientHeight,c=t.position.x,u=t.position.y;if(c>o&&cs&&u1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.primitives={building:[],unit:[],dth:[]},this.options=Zi({},i),this.options.host=this.options.host||h(),this.temporaryDth=[],this.dth={},this.PickBuildingEvent=new Cesium.Event,this.initEvents(),this.activeBuilding}),[{key:"PickCallback",value:function(t,e){this.PickBuildingEvent.addEventListener(e,t)}},{key:"initEvents",value:function(){var t=this;new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(e){if(!YJ.Measure.GetMeasureStatus()&&t.isActivate){var i=t.sdk.viewer.scene.pick(e.position);if(i){if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"==i.id.type||"yj-dth-highlight"==i.id.type))return void t.getIDBypickFeature(i);if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"==i.id.type)return t.highlightPrimitive&&t.sdk.viewer.scene.primitives.remove(t.highlightPrimitive),void t.handlePickEvent(i.id)}t.highlightPrimitive&&t.sdk.viewer.scene.primitives.remove(t.highlightPrimitive);var n=t.sdk.viewer.scene.pickPosition(e.position);if(n){var o=Cesium.Cartographic.fromCartesian(n),s=[Cesium.Math.toDegrees(o.longitude),Cesium.Math.toDegrees(o.latitude)];t.queryByPoint(s,o.height)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK);var e=this.sdk.viewer.entities.getOrCreateEntity("yj-dth-cover-label");e.show=!1;var i,n=0,o=this;function s(t){var i=o.sdk.viewer.scene.pick(t.endPosition);if(i){var n="";if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"===i.id.type||"yj-dth-highlight"===i.id.type))n=i.id.build_info.name+" - "+i.id.unit_info.name+" - "+i.id.room_num;else if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"===i.id.type)i.id.build_info.name&&(n=i.id.build_info.name+" - "+i.id.name);else{if(!(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-build"===i.id.type))return i.primitive&&i.primitive.id&&i.primitive.id.id&&"yj-dth-cover-label"===i.primitive.id.id?void(e.position=o.sdk.viewer.scene.pickPosition(t.endPosition)):void(e.show=!1);i.id.name&&(n=i.id.name)}n&&(e.position=o.sdk.viewer.scene.pickPosition(t.endPosition),e.label=new Cesium.LabelGraphics({text:n,font:"20px Helvetica",pixelOffset:{x:0,y:-30},fillColor:Cesium.Color.fromCssColorString("#ffffff"),outlineColor:Cesium.Color.BLACK,outlineWidth:1,showBackground:!0,backgroundColor:Cesium.Color.fromCssColorString("#000000").withAlpha(.8),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY}),e.show=!0)}}new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(t){if(!YJ.Measure.GetMeasureStatus())try{var e=Date.now();if(e-n<100)return clearTimeout(i),void(i=setTimeout((function(){s(t)}),100));clearTimeout(i),n=e,s(t)}catch(t){}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"queryByUserInfo",value:function(t){this.queryByPoint([t.position.lng,t.position.lat],t.position.alt,t.id)}},{key:"queryByPoint",value:(s=o()(a.a.mark((function t(e){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/dth/build/query_by_point":this.options.host+"/yjearth4.0/api/v1/dth/build/query_by_point",i+="?point="+JSON.stringify({lng:e[0],lat:e[1]}),t.next=5,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 5:if(200!==(n=t.sent).status){t.next=11;break}return t.next=9,n.json();case 9:200===(o=t.sent).code||0===o.code?this.processQueryByPointResults(o.data):window.ELEMENT&&window.ELEMENT.Message({message:o.msg||o.message,type:"warning",duration:1500});case 11:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"processQueryByPointResults",value:(n=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>2&&void 0!==p[2]?p[2]:{heading:0,pitch:-90,roll:0},e.build_info&&this.handlePickEvent(e),this.clearAllDthPrimitive(),this.clearAllUnitPrimitive(),this.activeBuilding&&(this.clearBuildingPrimitive(this.activeBuilding),this.activeBuilding=null),!e.build_info){t.next=26;break}if(o=JSON.parse(e.build_info.range),e.dan_yuan.length>0)for(s=0;s0?this.addDthPrimitive(e.dan_yuan[s].children,e.build_info,e.dan_yuan[s]):this.addUnitPrimitive([e.dan_yuan[s]],e.build_info,e.dan_yuan[s]);else this.activeBuilding=e.build_info.ID||e.build_info.id,this.addBuildingPrimitive([e.build_info]);if(!i){t.next=26;break}if(e.info&&e.info.dan_yuan&&(o=JSON.parse(e.info.dan_yuan.range)),!e.info||!e.info.hu){t.next=25;break}for(o=JSON.parse(e.info.hu.range),r=0;r=0;e--)if(t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.ID||t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.building[e]),this.primitives.building.splice(e,1);break}}},{key:"clearAllBuildingPrimitive",value:function(){for(var t=this.primitives.building.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.building[t]);this.primitives.building=[]}},{key:"addUnitPrimitive",value:(e=o()(a.a.mark((function t(e,i,n){var o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=0;o=0;e--)if(t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.ID||t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.unit[e]),this.primitives.unit.splice(e,1);break}}},{key:"clearAllUnitPrimitive",value:function(){for(var t=this.primitives.unit.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.unit[t]);this.primitives.unit=[]}},{key:"addDthPrimitive",value:function(t,e,i){for(var n=0;n=0;e--)t!==this.primitives.dth[e]._primitiveOptions.geometryInstances[0].id.ID&&t!==this.primitives.dth[e]._primitiveOptions.geometryInstances[0].id.id||(this.sdk.viewer.scene.primitives.remove(this.primitives.dth[e]),this.primitives.dth.splice(e,1))}},{key:"clearAllDthPrimitive",value:function(){this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive);for(var t=this.primitives.dth.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.dth[t]);this.primitives.dth=[]}},{key:"getIDBypickFeature",value:function(t){this.clickHighlightPrimitive&&(this.clickHighlightPrimitive.show=!0),this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive),this.highlightPrimitive=this.sdk.viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:new Cesium.GeometryInstance({id:Zi(Zi({},t.id),{},{type:"yj-dth-highlight"}),geometry:t.primitive._primitiveOptions.geometryInstances[0].geometry,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString("#ff9800").withAlpha(.8)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),this.highlightPrimitive.readyPromise.then((function(){t.primitive.show=!1})),this.clickHighlightPrimitive=t.primitive;var e=t.id.range;"string"==typeof t.id.range&&(e=JSON.parse(t.id.range)),this.getHilightArea(e),this.handlePickEvent(t.id)}},{key:"handlePickEvent",value:function(t){this.PickBuildingEvent.raiseEvent(t)}},{key:"getHilightArea",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];t.forEach((function(t){i.push([t.lng,t.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"flyTo",value:(t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=u.length>1&&void 0!==u[1]?u[1]:{heading:0,pitch:-90,roll:0},n=new YJ.Tools(this.sdk),o=0,s=[],r=0;case 5:if(!(r更新高程',s.style.width="auto",s.addEventListener("click",(function(){p.options.updateHeightCallBack()})),o.appendChild(s)),this.options.secondaryEditCallBack&&((r=document.createElement("button")).className="secondaryEdit",r.innerHTML='二次编辑',this.options.updateHeightCallBack&&(r.style.marginLeft="10px"),o.appendChild(r),r.addEventListener("click",(function(){p.options.secondaryEditCallBack&&p.options.secondaryEditCallBack()}))),this.options.translationalCallBack&&((l=document.createElement("button")).className="translational",l.innerHTML='平移',(this.options.updateHeightCallBack||this.options.secondaryEditCallBack)&&(l.style.marginLeft="10px"),o.appendChild(l),l.addEventListener("click",(function(){p.options.translationalCallBack&&p.options.translationalCallBack()})))),this.options.addFootElm)for(c=0;c=0;i--)for(var n in this.info.attribute)if(e[i].value===n){this.info.attribute[n].disabled&&(e[i].disabled=!0);break}}}]);var i}(W);function ln(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function cn(t){for(var e=1;e=3?(h.width=r.width/l*2,h.height=r.height/l*2,d.drawImage(r,0,0,h.width,h.height),p.src=h.toDataURL("image/jpeg",.95)):p.src=s}else p.src=s;p.onload=function(){if(!m){var o=cn({},y),s=JSON.parse(JSON.stringify(C)),r=cn({},w),l=cn({},b);l.width=b.width/j.width*p.width;var h=v/j.width*p.width,d=h;if(l.show&&f&&f.complete&&(d+=l.width),a.width=p.width+2*d,a.height=p.height+2*d,u.clearRect(0,0,a.width,a.height),u.rect(0,0,a.width,a.height),u.fillStyle="#ffffff",u.fill(),u.drawImage(p,d,d,p.width,p.height),o.show){var g=o.text,k=Math.max(5,o.height*p.height*.5);u.font="".concat(k,"px serif"),u.fillStyle=o.bgColor||"#5d5d5d",u.fillRect(d,d,a.width-2*d,o.height*p.height),u.fillStyle=o.color||"white",u.textAlign="center",u.textBaseline="middle",u.fillText(g,a.width/2,o.height*p.height/2+d)}for(var x=function(t){if(s[t].show)if("text"in s[t])u.font="".concat(p.height*s[t].height,"px serif"),u.fillStyle=s[t].color||"white",u.textAlign="left",u.textBaseline="bottom",s[t].width=u.measureText(s[t].text).width/p.height,u.fillText(s[t].text,p.width*s[t].x+d,p.height*s[t].y+d);else if("url"in s[t])if(C[t].svg&&C[t].svg.complete)u.drawImage(C[t].svg,p.width*s[t].x+d,p.height*s[t].y+d,p.height*s[t].width,p.height*s[t].height);else{var e=new Image;e.src=un.getSourceRootPath()+s[t].url,e.onload=function(){s[t].svg=e,u.drawImage(e,p.width*s[t].x+d,p.height*s[t].y+d,p.height*s[t].width,p.height*s[t].height)}}},_=0;_=1e3&&(D="㎞",O=Math.round(O/1e3));var B=S;u.beginPath(),u.moveTo(E,B),u.lineTo(E+r.width,B),u.strokeStyle=r.color,u.lineWidth=.01*r.width,u.stroke();for(var L=0,A=0;A<=r.cell;A++)L=E+A*M,u.beginPath(),u.moveTo(L,B-.1*r.width),u.lineTo(L,B),u.strokeStyle=r.color,u.lineWidth=.01*r.width,u.stroke(),u.font="".concat(P,"px Arial"),u.fillStyle=r.color,u.textAlign="center",u.textBaseline="bottom",u.fillText(A*O,L,B-.1*r.width);u.font="".concat(P,"px Arial"),u.fillStyle=r.color,u.textAlign="left",u.textBaseline="bottom",u.fillText(D,L+1.2*P,B-.1*r.width)}if(l.show&&f&&f.complete&&(R(u,f,h,h,l.width,"top",1),R(u,f,a.width-l.width-h,h,l.width,"right",1),R(u,f,a.width-l.width-h,a.height-l.width-h,l.width,"bottom",1),R(u,f,h,a.height-l.width-h,l.width,"left",1)),"export"===t){var I=i.contentWindow;I&&"function"==typeof I.print?(I.addEventListener("afterprint",(function(){document.body.removeChild(i)})),I.print()):console.error("打印失败,请手动保存截图")}else a.toBlob((function(t){var e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="高清出图-".concat(Ct(),".png"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(e)}),"image/png",.95);c=!1,W.innerHTML="打印",J.innerHTML="保存"}function R(t,e,i,n,o,s){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(t.save(),t.translate(i+o/2,n+o/2),s){case"right":t.rotate(Math.PI/2);break;case"bottom":t.rotate(Math.PI);break;case"left":t.rotate(3*Math.PI/2)}t.beginPath(),t.moveTo(-o*r/2,-o/2),"top"===s||"bottom"===s?(t.lineTo(a.width-2*h-o/2,-o/2),t.lineTo(a.width-2*(h+o)+o/2,o/2)):(t.lineTo(a.height-2*h-o/2,-o/2),t.lineTo(a.height-2*(h+o)+o/2,o/2)),t.lineTo(o*r/2,o/2),t.closePath(),t.clip();var c,u=e.width/e.height*o;t.drawImage(e,-o/2,-o/2,u,o),c="top"===s||"bottom"===s?Math.ceil((a.width-2*h-2*l.width)/l.width):Math.ceil((a.height-2*h-2*l.width)/l.width),c++;for(var p=1;p<=c;p++)t.drawImage(e,-o/2+u*p,-o/2,u,o);t.restore()}}},Ct=function(){var t=new Date,e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),r=String(t.getMilliseconds()).padStart(3,"0");return"".concat(e).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)},bt=function(){if(n){var t=Cesium.Math.toDegrees(n.west),e=Cesium.Math.toDegrees(n.east),i=Cesium.Math.toDegrees(n.north),o=(Cesium.Math.toDegrees(n.south),turf.point([t,i])),s=turf.point([e,i]),a=turf.distance(o,s,{units:"kilometers"});d=1e3*a/j.width}},yt=function(t){var e=v;b.show&&f&&f.complete&&(e+=b.width);var i=.005*L.height;if(A.strokeStyle="red",A.lineWidth=.002*L.height,"text"in t)A.strokeRect(j.width*t.x+e,j.height*t.y+e-j.height*t.height,j.height*t.width,j.height*t.height);else if("url"in t)A.strokeRect(j.width*t.x+e,j.height*t.y+e,j.height*t.width,j.height*t.height);else if(t===w)return void A.strokeRect(j.width*t.x+e-.2*w.width,j.height*t.y+e-t.height-.5*w.height,t.width+.6*w.width,t.height+w.height);var n=ft(t,e);A.fillStyle="red",n.forEach((function(t){A.beginPath(),A.arc(t.x,t.y,i,0,2*Math.PI),A.fill()}))},gt=function(t,e,i,n,o,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(t.save(),t.translate(i+o/2,n+o/2),s){case"right":t.rotate(Math.PI/2);break;case"bottom":t.rotate(Math.PI);break;case"left":t.rotate(3*Math.PI/2)}t.beginPath(),t.moveTo(-o*a/2,-o/2),"top"===s||"bottom"===s?(t.lineTo(L.width-2*v-o/2,-o/2),t.lineTo(L.width-2*(v+o)+o/2,o/2)):(t.lineTo(L.height-2*v-o/2,-o/2),t.lineTo(L.height-2*(v+o)+o/2,o/2)),t.lineTo(o*a/2,o/2),t.closePath(),t.clip();var r,l=e.width/e.height*o;t.drawImage(e,-o/2,-o/2,l,o),r="top"===s||"bottom"===s?Math.ceil((L.width-2*v-2*b.width)/b.width):Math.ceil((L.height-2*v-2*b.width)/b.width),r++;for(var c=1;c<=r;c++)t.drawImage(e,-o/2+l*c,-o/2,l,o);t.restore()},vt=function(){if(!m){var t=v;if(b.show&&f&&f.complete&&(t+=b.width),L.width=j.width+2*t,L.height=j.height+2*t,A.clearRect(0,0,L.width,L.height),A.rect(0,0,L.width,L.height),A.fillStyle="#ffffff",A.fill(),A.drawImage(j,t,t,j.width,j.height),y.show){var e=y.text,i=Math.max(5,y.height*j.height*.5);A.font="".concat(i,"px serif"),A.fillStyle=y.bgColor||"#5d5d5d",A.fillRect(t,t,L.width-2*t,y.height*j.height),A.fillStyle=y.color||"white",A.textAlign="center",A.textBaseline="middle",A.fillText(e,L.width/2,y.height*j.height/2+t)}for(var n=function(e){if(C[e].show)if("text"in C[e])A.font="".concat(j.height*C[e].height,"px serif"),A.fillStyle=C[e].color||"white",A.textAlign="left",A.textBaseline="bottom",C[e].width=A.measureText(C[e].text).width/j.height,A.fillText(C[e].text,j.width*C[e].x+t,j.height*C[e].y+t),C[e].isSelected&&yt(C[e]);else if("url"in C[e])if(C[e].svg&&C[e].svg.complete)A.drawImage(C[e].svg,j.width*C[e].x+t,j.height*C[e].y+t,j.height*C[e].width,j.height*C[e].height),C[e].isSelected&&yt(C[e]);else{var i=new Image;i.src=un.getSourceRootPath()+C[e].url,i.onload=function(){C[e].svg=i,A.drawImage(i,j.width*C[e].x+t,j.height*C[e].y+t,j.height*C[e].width,j.height*C[e].height),C[e].isSelected&&yt(C[e])}}},o=0;o=1e3&&(l="㎞",p=Math.round(p/1e3));var k=r;A.beginPath(),A.moveTo(a,k),A.lineTo(a+w.width,k),A.strokeStyle=w.color,A.lineWidth=.01*w.width,A.stroke();for(var x=0,_=0;_<=w.cell;_++)x=a+_*u,A.beginPath(),A.moveTo(x,k-.1*w.width),A.lineTo(x,k),A.strokeStyle=w.color,A.lineWidth=.01*w.width,A.stroke(),A.font="".concat(c,"px Arial"),A.fillStyle=w.color,A.textAlign="center",A.textBaseline="bottom",A.fillText(_*p,x,k-.1*w.width);A.font="".concat(c,"px Arial"),A.fillStyle=w.color,A.textAlign="left",A.textBaseline="bottom",A.fillText(l,x+1.2*c,k-.1*w.width),w.isSelected&&yt(w)}b.show&&f&&f.complete&&(gt(A,f,v,v,b.width,"top",1),gt(A,f,L.width-b.width-v,v,b.width,"right",1),gt(A,f,L.width-b.width-v,L.height-b.width-v,b.width,"bottom",1),gt(A,f,v,L.height-b.width-v,b.width,"left",1))}},ft=function(t,e){var i=t.x*j.width+e,n=t.y*j.height+e,o=t.width*j.height,s=t.height*j.height;return"text"in t?[{x:i,y:n-s},{x:i+o,y:n-s},{x:i,y:n},{x:i+o,y:n}]:[{x:i,y:n},{x:i+o,y:n},{x:i,y:n+s},{x:i+o,y:n+s}]},mt=function(t){var e,i=L.getBoundingClientRect(),n=i.width,o=i.height,s=L.width,a=L.height,r=(n-s*(e=s/a>n/o?n/s:o/a))/2;return(t.clientX-i.left-r)/e},dt=function(t){var e,i=L.getBoundingClientRect(),n=i.width,o=i.height,s=L.width,a=L.height,r=(e=s/a>n/o?n/s:o/a,(o-a*e)/2);return(t.clientY-i.top-r)/e},K=function(t){var e,i;if(b.color=t||"#000000",new YJColorPicker({el:x.getElementsByClassName("border-color")[0],size:"mini",alpha:!1,defaultColor:b.color,disabled:!1,openPickerAni:"opacity",sure:function(t){K(t)},clear:function(){K("rgba(0,0,0,1)")}}),t){e=g.replace(/fill="[^"]+"/g,'fill="'.concat(t,'"'))}else e=g;i="data:image/svg+xml;base64,"+btoa(Array.from((new TextEncoder).encode(e),(function(t){return String.fromCharCode(t)})).join("")),(f=new Image).setAttribute("crossOrigin","anonymous"),f.src=i,f.onload=function(){b.show&&vt()}},Z=function(t){b.url=t,b.url&&((f=new Image).setAttribute("crossOrigin","anonymous"),b.url.endsWith("svg")?fetch(un.getSourceRootPath()+b.url).then(function(){var t=o()(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.ok){t.next=5;break}return t.next=3,e.text();case 3:g=t.sent,K(b.color);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):(f.src=un.getSourceRootPath()+b.url,f.onload=function(){b.show&&vt()}))},X=function(t){h=t,u=[{name:"模板一",value:"模板一",id:"1",margin:.03,title:{text:"标题一",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},border:{show:!1,url:"/custom/img/map-border1.svg",width:.01,color:""},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.87,y:.97},data:[{text:"",x:.02,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.02,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.02,y:.1,show:!1,isSelected:!1,url:"/custom/img/icon-compass1.svg",width:.1,height:.1}]},{name:"模板二",value:"模板二",id:"2",margin:.03,border:{show:!0,url:"/custom/img/map-border2.svg",width:.01},title:{text:"标题二",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.02,y:.97},data:[{text:"",x:.88,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.87,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.91,y:.1,show:!0,isSelected:!1,url:"/custom/img/icon-compass4.svg",width:.1,height:.1}]}];for(var e=0;e\n
\n
图件信息
\n
\n
\n 模板\n
\n
\n
\n
\n
\n 标题\n \n \n
\n
\n
\n
\n 制图日期\n \n \n
\n
\n
\n
\n 制图单位\n \n \n
\n
\n
\n
\n 图框\n
\n
\n \n
\n
\n
\n
\n
地图要素
\n
\n
\n 指北针\n \n
\n
\n '.concat(function(){for(var t="",e=0;e\n \n \n
')}return t}(),'\n
\n
\n
\n
\n
\n
\n 比例尺\n \n
\n
\n \n \n
\n
\n\n
\n
\n '),p.contentAppChild(x),_=x.getElementsByClassName("left")[0],E=x.getElementsByClassName("right")[0],S=_.getElementsByClassName("title-input")[0],D=_.getElementsByClassName("title-checkbox")[0],P=_.getElementsByClassName("unit-input")[0],M=_.getElementsByClassName("unit-checkbox")[0],O=_.getElementsByClassName("compass-checkbox")[0],T=_.getElementsByClassName("compass-radio"),N=_.getElementsByClassName("plotting-scale-checkbox")[0],B=_.getElementsByClassName("map-border-checkbox")[0],L=document.createElement("canvas"),A=L.getContext("2d"),E.appendChild(L),(j=new Image).src=i,j.onload=function(){m=!1,bt(),X(h)},S.value=y.text,D.checked=y.show,S.addEventListener("input",(function(){y.text=this.value,j.complete&&vt()})),D.addEventListener("change",(function(){y.show=this.checked,j.complete&&vt()})),P.value=C[1].text,M.checked=C[1].show,P.addEventListener("input",(function(){C[1].text=this.value,j&&j.complete&&vt()})),M.addEventListener("change",(function(){C[1].show=this.checked,j&&j.complete&&vt()})),O.checked=C[2].show,O.addEventListener("change",(function(){C[2].show=this.checked,j&&j.complete&&vt()})),I=a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:T[e].addEventListener("change",(function(){this.checked&&(C[2].svg=null,C[2].url=k[e],j&&j.complete&&vt())}));case 1:case"end":return t.stop()}}),t)})),R=0;case 59:if(!(R打印',J.innerHTML='保存',wt("export"))})),J.addEventListener("click",(function(){c||(c=!0,W.innerHTML='打印',J.innerHTML='保存',wt("save"))}));var t=x.getElementsByClassName("print-date")[0];(z=x.getElementsByClassName("print-date-checkbox")[0]).checked=C[0].show,z.addEventListener("change",(function(){C[0].show=this.checked,j.complete&&vt()})),F=jeDate(t,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(t){C[0].text=t.val,j.complete&&vt()}}),C[0].text?F.setValue(C[0].text):(F.nowBtn&&F.nowBtn(),C[0].text=F.getValue(),vt());var e=Y(p._element.content.getElementsByClassName("template-box")[0],".template");if(e){e.legp_search(u);for(var i=p._element.content.getElementsByClassName("template")[0].getElementsByTagName("input")[0],n=0;n'),value:"/custom/img/map-border1.svg",key:0},{name:''),value:"/custom/img/map-border2.svg",key:1},{name:''),value:"/custom/img/map-border3.svg",key:2},{name:''),value:"/custom/img/map-border4.svg",key:3},{name:''),value:"/custom/img/map-border5.svg",key:4},{name:''),value:"/custom/img/map-border6.svg",key:5}];if(V=Y(p._element.content.getElementsByClassName("map-border-box")[0],".map-border")){V.legp_search(o),(G=document.createElement("span")).className="icon icon-active",G.style.width="calc(100% - 40px)",G.style.height="calc(100% - 12px)",G.style.position="absolute",G.style.top="6px",G.style.left="10px",G.style.pointerEvents="none",G.style.backgroundImage="url(".concat(un.getSourceRootPath()+b.url,")"),G.style.backgroundSize="auto 100%",G.style.backgroundRepeat="repeat-x",p._element.content.getElementsByClassName("map-border")[0].getElementsByClassName("cy_datalist")[0].appendChild(G),(H=p._element.content.getElementsByClassName("map-border")[0].getElementsByTagName("input")[0]).style.fontSize=0,H.style.color="transparent";for(var s=0;s=y.height*j.height+n-Q&&i<=y.height*j.height+n+Q){$=!0;for(var o=0;o=t.x-s&&e<=t.x+s&&i>=t.y-s&&i<=t.y+s&&(it=!0,et=!1,nt=n,ot=e,st=i,ut=tt.width*j.height,pt=tt.height*j.height,"text"in tt&&(ut=tt.width*j.height,ht=tt.height))}))}if(!it){for(var a=0;a=0;r--)if(C[r].show){if("text"in C[r]&&e>=j.width*C[r].x+n&&e<=j.width*C[r].x+n+j.height*C[r].width&&i>=j.height*C[r].y+n-j.height*C[r].height&&i<=j.height*C[r].y+n){tt=C[r],C[r].isSelected=!0,et=!0,ot=e,st=i,at=j.height*C[r].y-j.height*C[r].height,rt=j.width*C[r].x+j.height*C[r].width,lt=j.width*C[r].x+n,ct=j.height*C[r].y+n,vt();break}if("url"in C[r]&&C[r].svg&&C[r].svg.complete&&C[r].show&&e>=j.width*C[r].x+n&&e<=j.width*C[r].x+n+j.height*C[r].width&&i>=j.height*C[r].y+n&&i<=j.height*C[r].y+n+j.height*C[r].height){tt=C[r],C[r].isSelected=!0,et=!0,ot=e,st=i,at=j.height*C[r].y+j.height*C[r].height,rt=j.width*C[r].x+j.height*C[r].width,lt=j.width*C[r].x+n,ct=j.height*C[r].y+n,vt();break}}w.show&&e>=j.width*w.x+n-.2*w.width&&e<=j.width*w.x+n-.2*w.width+w.width+.6*w.width&&i>=j.height*w.y+n-w.height-.5*w.height&&i<=j.height*w.y+n-.5*w.height+w.height&&(tt=w,w.isSelected=!0,et=!0,ot=e,st=i,at=j.height*w.y+n+w.height,rt=j.width*w.x+n+w.width,lt=j.width*w.x+n,ct=j.height*w.y+n,vt()),tt||vt()}})),L.addEventListener("mousemove",(function(t){var e=v;b.show&&f&&f.complete&&(e+=b.width);var i=mt(t),n=dt(t);if(!(i<0||n<0||i>L.width||n>L.height)){if(y.show){var o=v;b.show&&f&&f.complete&&(o+=b.width),n>=y.height*j.height+o-Q&&n<=y.height*j.height+o+Q?L.style.cursor="n-resize":L.style.cursor="default",$&&(y.height=Math.min(Math.max(n-o,30)/j.height,1),vt())}if(et){var s=i-ot,a=n-st;tt.x=(lt+s-e)/j.width,tt.y=(ct+a-e)/j.height,vt()}if(it){var r,l=i-ot,c=n-st;switch(nt){case 0:"text"in tt?(r=(ut-l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.x=(rt-tt.width*j.height)/j.width):"url"in tt&&(tt.x=(rt-tt.width*j.height)/j.width,tt.y=(at-tt.height*j.height)/j.height,tt.width=Math.max(10,ut-l)/j.height,tt.height=Math.max(10,pt-c)/j.height);break;case 1:"text"in tt?(r=(ut+l)/ut,tt.height=Math.max(10/j.height,ht*r)):"url"in tt&&(tt.width=Math.max(10,ut+l)/j.height,tt.height=Math.max(10,pt-c)/j.height,tt.y=(at-tt.height*j.height)/j.height);break;case 2:"text"in tt?(r=(ut-l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.x=(rt-tt.width*j.height)/j.width,tt.y=(at+tt.height*j.height)/j.height):"url"in tt&&(tt.x=(rt-tt.width*j.height)/j.width,tt.width=Math.max(10,ut-l)/j.height,tt.height=Math.max(10,pt+c)/j.height);break;case 3:"text"in tt?(r=(ut+l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.y=(at+tt.height*j.height)/j.height):"url"in tt&&(tt.width=Math.max(10,ut+l)/j.height,tt.height=Math.max(10,pt+c)/j.height)}vt()}}})),document.addEventListener("mouseup",(function(){$=!1;b.show&&f&&f.complete&&b.width;for(var t=0;t1&&void 0!==o[1]?o[1]:function(){},n=e.viewer.canvas.toDataURL(),i&&i(n);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function fn(){return(fn=o()(a.a.mark((function t(e){var i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,x,E,S,D=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=function(){setTimeout((function(){f.getElementsByClassName("canvas-width-span")[0].innerHTML=e.viewer.canvas.width,f.getElementsByClassName("canvas-height-span")[0].innerHTML=e.viewer.canvas.height,f.getElementsByClassName("output-width")[0].innerHTML=e.viewer.canvas.width*r,f.getElementsByClassName("output-height")[0].innerHTML=e.viewer.canvas.height*r}),500)},D.length>1&&void 0!==D[1]?D[1]:{},D.length>2&&void 0!==D[2]?D[2]:function(){},e){t.next=5;break}return t.abrupt("return");case 5:return qt(),Ee(e),dn&&(dn.close(),dn=null),i=e.viewer.scene.screenSpaceCameraController.enableTranslate,n=e.viewer.scene.screenSpaceCameraController.enableTilt,s=e.viewer.scene.screenSpaceCameraController.enableLook,r=1,m=new fi,t.next=15,new rn(e,{},{title:"高清出图",left:"180px",top:"100px",confirmCallBack:function(t){d&&(d.desist(),d=null),c&&(c.style.width="0%"),p&&(p.style.left="0%"),u&&(u.style.width="0%"),h&&(h.innerHTML="0%"),d=new S},closeCallBack:function(){e.viewer.scene.screenSpaceCameraController.enableTranslate=i,e.viewer.scene.screenSpaceCameraController.enableTilt=n,e.viewer.scene.screenSpaceCameraController.enableLook=s,e.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="auto",d&&(d.desist(),d=null),window.removeEventListener("resize",v),dn=void 0}});case 15:for((dn=t.sent)._element.body.className=dn._element.body.className+" screenShotHD",(f=document.createElement("div")).innerHTML='\n \n
\n
\n
\n 当前窗口长宽:'.concat(e.viewer.canvas.width,'*').concat(e.viewer.canvas.height,'像素\n
\n
\n
\n
\n 图片大小\n
\n 倍窗口\n
\n
\n
\n
\n 输出图片长宽:').concat(e.viewer.canvas.width*r,'*').concat(e.viewer.canvas.height*r,'像素\n
\n
\n
\n
\n 输出进度\n
\n
\n
\n
\n
\n
\n
\n 0%\n 100%\n
0%
\n
\n \n
\n
\n
\n
\n \n '),dn.contentAppChild(f),e.viewer.scene.screenSpaceCameraController.enableTranslate=!1,e.viewer.scene.screenSpaceCameraController.enableTilt=!1,e.viewer.scene.screenSpaceCameraController.enableLook=!1,e.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="none",window.addEventListener("resize",v),(g=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/2)))||(g=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/(2-(90+e.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(g=e.viewer.camera.position),y=m.cartesian3Towgs84(e.viewer.camera.position,e.viewer).alt,b=m.cartesian3Towgs84(g,e.viewer),e.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(b.lng,b.lat,y),orientation:{heading:0,pitch:Cesium.Math.toRadians(-90),roll:0},duration:1}),C=[],w=1;w<=10;w++)C.push({name:w,value:w});c=document.getElementsByClassName("progress-input")[0],u=document.getElementsByClassName("range-process")[0],p=f.getElementsByClassName("range-node-active")[0],h=f.getElementsByClassName("range-node-active-text")[0],(x=Y(dn._element.content.getElementsByClassName("scale-box")[0],".scale"))&&(x.legp_search(C),E=dn._element.content.getElementsByClassName("scale")[0].getElementsByTagName("input")[0],r=C[0].value,x.legp_searchActive(C[0].value),E.value=C[0].value,E.addEventListener("input",(function(){for(var t=0;tg.maximumLevel&&(f=g.maximumLevel),f=y;J--)for(var q=x;q>=m;q--)Y.push({x:q,y:J});var X={count:0},Z=0,K=-1,$={count:0},Q=0;function tt(){$.count=0,Q=0;for(var t=30*++K;t<30*(K+1);t++){if(t>=Y.length)return;et(t)}}function et(t){if(c.state)try{var e=Y[t].x;e<0&&(e+=d);var i,n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P.drawImage(n,256*(Y[t].x-m)-parseFloat(H.toFixed(0)),256*(Y[t].y-y)-parseFloat(V.toFixed(0)),256,256),v++,X.count++,$.count++;case 4:case"end":return e.stop()}}),e)}))),n.onerror=function(){v++,X.count++,$.count++},i=-1!==g.url.indexOf("{x}")&&-1!==g.url.indexOf("{y}")&&-1!==g.url.indexOf("{z}")?g.url.replace(/\{x\}/g,e).replace(/\{y\}/g,Y[t].y).replace(/\{z\}/g,f):-1!==g.url.indexOf("{TileMatrix}")&&-1!==g.url.indexOf("{TileRow}")&&-1!==g.url.indexOf("{TileCol}")?g.url.replace(/\{TileCol\}/g,e).replace(/\{TileRow\}/g,Y[t].y).replace(/\{TileMatrix\}/g,f):g._layer&&g._style&&g._tileMatrixSetID&&g._format?g.url+"&tilematrix=".concat(f,"&layer=").concat(g._layer,"&style=").concat(g._style,"&tilerow=").concat(W,"&tilecol=").concat(e,"&tilematrixset=").concat(g._tileMatrixSetID,"&format=").concat(g._format):g.url+"tile/".concat(f,"/").concat(Y[t].y,"/").concat(e),n.src=i}catch(t){v++,X.count++,$.count++}}Object.defineProperty($,"count",{get:function(){return Q},set:function(t){(Q=t)>=30&&tt()}}),Object.defineProperty(X,"count",{get:function(){return Z},set:function(o){Z=o,C[i].value=v/S*E;var s=0;for(var a in C)s+=C[a].value;if(u.style.width=.99*s+"%",p.style.left=.99*s+"%",h.innerHTML=Math.floor(.99*s*100)/100+"%",Z===(x-m+1)*(_-y+1)){var l=D.getContext("2d"),d=D.cloneNode(!0),f=d.getContext("2d"),g=l.getImageData(0,0,D.width,D.height);if(f.putImageData(g,0,0),D.width=e.viewer.canvas.width*r,D.height=e.viewer.canvas.height*r,l.drawImage(d,0,0,D.width,D.height),n){if(n.getContext("2d").drawImage(D,0,0),k!=w){var P=i+=1;return void t(P,n)}var M=n.toDataURL("image/jpeg",.95),O=document.createElement("canvas"),T=O.getContext("2d");O.width=n.width/r,O.height=n.height/r,T.drawImage(n,0,0,O.width,O.height),hn(e,O.toDataURL("image/jpeg",.95),b,M),u.style.width="100%",p.style.left="100%",h.innerHTML="100%",c.state=!1}else{if(k!=w){var N=i+=1;return void t(N,D)}var B=D.toDataURL("image/jpeg",.95),L=document.createElement("canvas"),A=L.getContext("2d");L.width=D.width/r,L.height=D.height/r,A.drawImage(D,0,0,L.width,L.height),hn(e,L.toDataURL("image/jpeg",.95),b,B),u.style.width="100%",p.style.left="100%",h.innerHTML="100%",c.state=!1}}}}),g._readyError?X.count=(x-m+1)*(_-y+1):tt()}if(g._readyError)return C[i]={value:E},void x();g.readyPromise.then((function(){x()})).catch((function(t){g._readyError=!0,C[i]={value:E},x()}))}(0)}},{key:"desist",value:function(){this.state=!1}}])}();case 39:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var vn=i(13),gn=i.n(vn);function yn(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return bn(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i0&&e[o].addEventListener(t,(function(e){for(var i=0;i\n
'+s[c].getAttribute("label")+"
\n \n ",r=r+'
'+s[c].innerHTML+"
",l++}}a+="",r+="";var m=document.createElement("div");"string"==typeof e&&m.setAttribute("id",e),m.setAttribute("class","DIV-cy-tabs"),m.innerHTML=a+r,o.parentNode.insertBefore(m,o),o.parentNode.removeChild(o);for(var f=m.getElementsByClassName("DIV-cy-tab-pane-title-p"),v=0;v1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=this;this.title=i,this.objectId=t,document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null;var r='\n
\n
\n
\n

'.concat(i,'

\n \n
\n
\n
\n \n
\n ');this.richTextBox.innerHTML=r,document.body.appendChild(this.richTextBox);var l=window.wangEditor,c=l.createEditor,u=l.createToolbar,p={placeholder:"请输入正文...",MENU_CONF:{uploadImage:{fieldName:"file",server:this.uploadImageServer,customUpload:function(t,e){return o()(a.a.mark((function i(){var n;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(t);case 2:n=i.sent,e((s.host=s.host||h())+"/"+n);case 4:case"end":return i.stop()}}),i)})))()}},uploadVideo:{server:this.uploadVideoServer,allowedFileTypes:["video/mp4","video/mp3","video/ogg","video/webm","video/avi"],customUpload:function(t,e){return o()(a.a.mark((function i(){var n;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(t);case 2:n=i.sent,e((s.host=s.host||h())+"/"+n);case 4:case"end":return i.stop()}}),i)})))()}}},onChange:function(t){t.getHtml()}};this.editor=c({selector:"#editor-container",html:"


",config:p,mode:"default"});var d={excludeKeys:["emotion","insertImage","insertVideo"]};u({editor:this.editor,selector:"#toolbar-container",config:d,mode:"default"});this.editor.on("fullScreen",(function(){console.log("fullScreen")})),this.editor.setHtml(n);var m=this.richTextBox.getElementsByClassName("close")[0],f=this.richTextBox.getElementsByClassName("primary")[0],v=this.richTextBox.getElementsByClassName("cancel")[0];m.addEventListener("click",(function(){e.close()})),f.addEventListener("click",(function(){var t=e.editor.getHtml();e.primaryCallBack(t),e.close()})),v.addEventListener("click",(function(){e.close()}))}},{key:"close",value:function(){document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null}},{key:"upload",value:(t=o()(a.a.mark((function t(e){var i,n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.host=this.host||h(),i=this.host.endsWith("yjearth4.0")?this.host+"/api/v1/richText/upload":this.host+"/yjearth4.0/api/v1/richText/upload",(n=new FormData).append("file",e),t.next=7,fetch(i,{method:"post",body:n,headers:{token:m(),Authorization:"Bearer "+m()}});case 7:if(200!==(o=t.sent).status){t.next=14;break}return t.next=11,o.json();case 11:if(200!==(s=t.sent).code&&0!==s.code){t.next=14;break}return t.abrupt("return",s.data.url);case 14:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"customUploadVideo",get:function(){return En(Dn,this)},set:function(t){_n(Dn,this,t)}},{key:"customUploadContent",get:function(){return En(Pn,this)},set:function(t){_n(Pn,this,t)}},{key:"primaryCallBack",get:function(){return En(Mn,this)},set:function(t){_n(Mn,this,t)}}]);var t}());function Tn(t,e,i,n,o){var s=Math.ceil(e/i)||1;!function i(){var a,r="
  • 1
  • ",l="
  • ").concat(s,"
  • "),c="
  • ...
  • ",u="
  • ...
  • ",p="
    共 ".concat(e," 条
    ");if(a="
  • ",s<=6)for(var h=1;h<=s;h++)a+="
  • ").concat(h,"
  • ");else if(n<=4){for(var d=1;d<=5;d++)a+="
  • ").concat(d,"
  • ");a+=u,a+=l}else if(n>s-3){a+=r,a+=c;for(var m=s-4;m<=s;m++)a+="
  • ").concat(m,"
  • ")}else{a+=r,a+=c;for(var f=n-1;f<=n+1;f++)a+="
  • ").concat(f,"
  • ");a+=u,a+=l}a+="
  • ",a+=p,t.innerHTML=a,t.querySelector("li[pagenumber='"+n+"']").classList.add("active"),t.querySelectorAll("li[pagenumber]").forEach((function(e){e.onclick=function(){n=Number(this.innerHTML),t.querySelector("li[pagenumber='"+n+"']").classList.add("active"),a="",i(),o&&o(n)}})),t.getElementsByClassName("btnPrev")[0].addEventListener("click",(function(){n>1&&(n--,a="",i(),o&&o(n))})),t.getElementsByClassName("btnNext")[0].addEventListener("click",(function(){n10&&(n-=10,a="",i(),o&&o(n))})));var g=t.getElementsByClassName("btnGoRight")[0];g&&(g.addEventListener("mouseenter",(function(){this.innerHTML=">"})),g.addEventListener("mouseleave",(function(){this.innerHTML="..."})),g.addEventListener("click",(function(){n0){Tn(o,e.data.total,5,1,(function(e){t.cameraSelect(e)})),s.getElementsByClassName("table-empty")[0].style.display="none",r.style.display="inline-flex";for(var l=[],c=function(n){var o='\n
    \n
    \n \n 绑定\n
    \n
    ').concat(e.data.list[n].cameraName,'
    \n
    ').concat(i[e.data.list[n].type],'
    \n
    ').concat(e.data.list[n].ip,'
    \n
    ').concat(e.data.list[n].port,'
    \n
    ').concat(e.data.list[n].userName,'
    \n
    ').concat(e.data.list[n].passWord||e.data.list[n].password,"
    \n
    "),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="checkbox"]');l.push(a),a.addEventListener("change",(function(){if(a.checked){t.attributeCamera=[],t.attributeCamera.push(e.data.list[n]);for(var i=0;i=0;i--){for(var n=!1,o=0;o0){Tn(n,e.data.total,5,1,(function(e){t.ISCSelect(e)})),o.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="flex";for(var r=function(i){var n='\n
    \n
    \n \n 绑定\n
    \n
    ').concat(e.data.list[i].name,'
    \n
    ').concat(e.data.list[i].status?"在线":"离线","
    \n
    "),o=document.createRange().createContextualFragment(n),s=o.querySelector('input[type="checkbox"]');s.addEventListener("change",(function(){if(s.checked)t.attributeISC.push(e.data.list[i]);else{var n=t.attributeISC.filter((function(t){return"ID"in e.data.list[i]?t.ID!==e.data.list[i].ID:t.id!==e.data.list[i].id}));t.attributeISC=n}})),a.appendChild(o);for(var r=0;r0){t._allGoodsList=e.data.list;for(var o=t.attributeGoods.length-1;o>=0;o--){for(var a=!1,r=0;r\n
    ').concat(e.data.list[i].name,'
    \n
    \n '),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in e.data.list[i]){if(e.data.list[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e.data.list[i]&&e.data.list[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e.data.list[i].name,cnt:o};"ID"in e.data.list[i]?l.ID=e.data.list[i].ID:"id"in e.data.list[i]&&(l.id=e.data.list[i].id),t.attributeGoods.push(Bn({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in e.data.list[i]){if(e.data.list[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e.data.list[i]&&e.data.list[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e.data.list[i].name,cnt:o};"ID"in e.data.list[i]?l.ID=e.data.list[i].ID:"id"in e.data.list[i]&&(l.id=e.data.list[i].id),t.attributeGoods.push(Bn({},l))}}})),n.appendChild(s)},c=0;c0){n.getElementsByClassName("table-empty")[0].style.display="none",o.style.display="block",o.style.maxHeight="150px";for(var s=function(i){var n='\n
    \n
    \n '.concat(i+1,'\n
    \n
    ').concat(e[i].name,'
    \n
    \n
    '),s=document.createRange().createContextualFragment(n),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in e[i]){if(e[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e[i]&&e[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e[i].name,cnt:o};"ID"in e[i]?l.ID=e[i].ID:"id"in e[i]&&(l.id=e[i].id),t.attributeGoods.push(Bn({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in e[i]){if(e[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e[i]&&e[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e[i].name,cnt:o};"ID"in e[i]?l.ID=e[i].ID:"id"in e[i]&&(l.id=e[i].id),t.attributeGoods.push(Bn({},l))}}})),o.appendChild(s)},a=0;a\n
    \n
    \n 内容类型\n
    \n
    \n
    \n
    \n
    \n
    \n 编辑内容\n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n 编辑内容\n \n \n
    \n
    \n
    \n
    \n
    \n
    \n
    操作
    \n
    设备名称
    \n
    设备类型
    \n
    设备IP
    \n
    设备端口
    \n
    用户名
    \n
    密码
    \n
    \n
    \n \n
    \n
    \n

    暂无数据

    \n
    \n
    \n
    \n
    \n
      \n
      \n
      \n
      \n \x3c!--
      \n
      \n 编辑内容\n \n \n
      \n
      --\x3e\n
      \n
      \n
      \n
      \n
      操作
      \n
      设备名称
      \n
      设备状态
      \n
      \n
      \n \n
      \n
      \n

      暂无数据

      \n
      \n
      \n
      \n
      \n
        \n
        \n
        \n
        \n
        \n 添加链接\n
        \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        名称
        \n
        链接
        \n
        操作
        \n
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n
        \n 添加链接\n
        \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        名称
        \n
        链接
        \n
        操作
        \n
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 编辑内容\n \n \n
        \n
        \n
        \n
        \n
        \n
        序号
        \n
        名称
        \n
        数量
        \n
        \n
        \n \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n '}function An(t){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n

        WGS84坐标

        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 海拔高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        转换坐标选择\n
        \n
        \n
        \n
        \n
        \n X轴:\n \n
        \n
        \n
        \n
        \n Y轴:\n \n
        \n
        \n
        \n
        \n Z轴:\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n \n 小数格式\n
        \n
        \n
        \n
        \n \n 度分格式\n
        \n
        \n
        \n
        \n \n 度分秒格式\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n

        图标设置

        \n
        \n
        \n 显隐\n \n
        \n
        \n 图标\n
        \n \n
        \n
        \n
        \n 默认图标\n
        \n \n
        \n
        \n
        \n 图标倍数\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n

        文字设置

        \n
        \n
        \n 显隐\n \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 文字大小\n
        \n \n px\n \n
        \n
        \n
        \n 文字颜色\n
        \n
        \n
        \n
        \n
        \n \x3c!-- \n
        \n
        \n
        \n 扩散\n \n
        \n
        \n 半径\n \n
        \n
        \n 时间\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        \n 雷达\n \n
        \n
        \n 半径\n \n
        \n
        \n 时间\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        --\x3e\n \n
        \n
        \n
        \n 指令\n \n \x3c!-- --\x3e\n
        \n
        \n
        \n
        \n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!-- 设置操作点--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n\x3c!--
        --\x3e\n
        \n
        \n \n ')}function jn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function In(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Fn(i=Rn(this,e,[t,n]),Gn,void 0),Fn(i,Un,void 0),t&&t.viewer?(i.sdk=t,i.viewer=t.viewer,i.options=In({},n),i.options.id=n.id||i.randomString(),i.entity=null,i.clickCallBack=null,i.rightClickCallBack=null,i.picking=!0,i.options.host=i.options.host||h(),i.setDefaultValue(),i):tn()(i)}return sn()(e,t),_()(e,[{key:"showView",get:function(){return Hn(Gn,this)},set:function(t){var e=ze().sdkD;if(!e)return zn(Gn,this,t),void(this.entity&&(this.entity._showView=t));this.sdk!==e?(Hn(Gn,this)||this.show)&&(this.sdk!==e?(zn(Gn,this,2!=t&&3!=t?0:t),this.isShowView=!0,Hn(Gn,this)?this.show=2!=t:this.show=!0):zn(Gn,this,0)):zn(Gn,this,0)}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this.label&&(this.label.text=t),this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;if(this.isShowView&&e||(this.options.show=t,this.originalOptions&&(this.originalOptions.show=t)),this.entity&&(this.entity._showView=this.showView),"layer"==this.type&&this.entity&&(this.entity._objectState=this.options.show),this.showView&&3!=this.showView&&e?(this.entity&&(this.entity.show=!1),this.options.label&&this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1,"layer"==this.type&&e){var i=e.viewer.imageryLayers._layers[this.layerIndex],n=this.entity;if(!i)return;n._objectState?(n._showView&&2!=n._showView||(i.show=!0),3==n._showView&&(i.show=!1)):i.show=this.options.show}}else console.error("参数必须为boolean")}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"display",value:function(){this.show=!0}},{key:"hide",value:function(){this.show=!1}},{key:"flicker",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,i=arguments.length>1?arguments[1]:void 0;this.flickerAnimate&&TWEEN.remove(this.flickerAnimate),this.flickerAnimate=new TWEEN.Tween({degree:1}).to({degree:0},e/2).easing(TWEEN.Easing.Linear.None).repeat(i||0===i?2*i-1:1/0).yoyo(!0).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.sdk.viewer){e.next=3;break}return TWEEN.remove(t.flickerAnimate),e.abrupt("return");case 3:t.show&&(1===i.degree&&(t.entity&&(t.entity.show=!0),t.labelShow&&t.label&&(t.label.show=!0),t.text&&t.text&&(t.text.show=!0)),0===i.degree&&(t.entity&&(t.entity.show=!1),t.labelShow&&t.label&&(t.label.show=!1),t.text&&t.text&&(t.text.show=!1)));case 4:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onComplete((function(e){TWEEN.remove(t.flickerAnimate),t.flickerAnimate=void 0})).start()}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?l=In({},this.options.position):this.options.positions?l=In({},this.options.positions[0]):this.options.line&&this.options.line.positions?l=In({},this.options.line.positions[0]):this.options.center?l=In({},this.options.center):this.options.start?l=In({},this.options.start):this.geojson?(c=turf.bbox(this.geojson),l={lng:c[0],lat:c[1]}):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sdk.removeIncetance(this.options.id);case 2:this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id);case 6:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"onClick",get:function(){return this.clickCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){Ct.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){ue.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.clickCallBack&&this.options&&this.options.id&&dt(this.options.id,this.leftClickCB,this),this.clickCallBack=t}}},{key:"onRightClick",get:function(){return this.rightClickCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.rightClickCallBack&&this.entity&&this.entity.id&&function(t,e,i){wt.set(t,{callback:e,that:i})}(this.entity.id,this.rightClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){pe.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.rightClickCallBack&&this.entity&&this.entity.id&&mt(this.entity.id,this.rightClickCB,this),this.rightClickCallBack=t}}},{key:"onMouseMove",get:function(){return this.mouseMoveCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&function(t,e,i){kt.set(t,{callback:e,that:i})}(this.entity.id,this.mouseMoveCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){he.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&ft(this.entity.id,this.mouseMoveCB,this),this.mouseMoveCallBack=t}}},{key:"customView",get:function(){return this.options.customView}},{key:"setCustomView",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}this.options.customView=e,t.next=16;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=In({},n),this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?o=In({},this.options.position):this.options.positions?o=In({},this.options.positions[0]):this.options.line&&this.options.line.positions?o=In({},this.options.line.positions[0]):this.options.center?o=In({},this.options.center):this.options.start?o=In({},this.options.start):this.geojson?(r=turf.bbox(this.geojson),o={lng:r[0],lat:r[1]}):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){t.next=13;break}return t.next=12,this.getClampToHeight(o);case 12:o.alt=t.sent;case 13:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"resetCustomView",value:function(){this.options.customView=void 0}},{key:"edit",value:function(){}},{key:"leftClickCB",value:function(t,e,i,n){n.clickCallBack&&"function"==typeof n.clickCallBack&&n.clickCallBack(t,e,i)}},{key:"rightClickCB",value:function(t,e,i,n){n.rightClickCallBack&&"function"==typeof n.rightClickCallBack&&n.rightClickCallBack(t,e,i)}},{key:"mouseMoveCB",value:function(t,e,i,n){n.mouseMoveCallBack&&"function"==typeof n.mouseMoveCallBack&&n.mouseMoveCallBack(t,e,i)}},{key:"getGuid",value:function(){return Cesium.createGuid()}},{key:"setDefaultValue",value:function(){var t,e,i;this.options.id=null!==(t=this.options.id)&&void 0!==t?t:this.getGuid(),this.options.show=null===(e=this.options.show)||void 0===e||e,this.options.name=null!==(i=this.options.name)&&void 0!==i?i:"未命名对象"}},{key:"start",value:function(){}},{key:"end",value:function(){}}]);var i,n,s}(fi);function Yn(t){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n 透明度\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 波纹层数\n
        \n \n \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 扩散速度\n
        \n \n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 半径单位\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}var Jn=[{name:"黑体",value:"黑体",font:"SimHei",key:"0"},{name:"思源黑体",value:"思源黑体",font:"SourceHanSansTi",key:"1"},{name:"庞门正道标题体",value:"庞门正道标题体",font:"PMZDBTTi",key:"2"},{name:"数黑体",value:"数黑体",font:"AlimamaShuHeiTi",key:"3"}];function qn(){return Jn}function Xn(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;k()(this,e),$n(i=Kn(this,e,[t,n]),eo,void 0),$n(i,io,document.createElement("canvas")),$n(i,no,document.createElement("canvas")),i.model=o,i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Xn(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineWidth=n.lineWidth||4,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new X(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return sn()(e,t),_()(e,[{key:"create",value:(i=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this,this.options.position[2]||0===this.options.position[2]){t.next=5;break}return t.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=t.sent;case 5:this.originalOptions=so(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(e.model){if(e.model.isMove){var t=e.model.customScale.x;e.model.customScale.y>t&&(t=e.model.customScale.y),e.model.customScale.z>t&&(t=e.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]+2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),n=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]-2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=e.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=this.cartesian3Towgs84(this.model.position,this.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Ellipsoid.WGS84.geodeticSurfaceNormal(o),a=Cesium.Cartesian3.normalize(s,s),r=Cesium.Cartesian3.multiplyByScalar(a,-1,new Cesium.Cartesian3),l=new Cesium.Ray(o,r),c=this.viewer.scene.drillPickFromRay(l,5),u=0;u40&&(e[i]=e[i].slice(0,40-e[i].length));e.length>10&&e.splice(10-e.length),this.options.text=e.join("\n"),this.entity&&this.updateBillboardImage()}},{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.entity&&(this.entity.billboard.image=this.getcanvas())}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;ei&&(i=a),n+=this.options.fontSize}n=n+20+5*(e.length-1),(i+=30)0&&void 0!==arguments[0]?arguments[0]:{},e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)e[i]=so(t[i]);else e=t;return e},ao=function(){return _()((function t(e){k()(this,t),t.prototype.hasOwnProperty("color")||Object.defineProperties(t.prototype,{color:Cesium.createPropertyDescriptor("color")}),t.prototype.hasOwnProperty("speed")||Object.defineProperties(t.prototype,{speed:Cesium.createPropertyDescriptor("speed")}),t.prototype.hasOwnProperty("transparency")||Object.defineProperties(t.prototype,{transparency:Cesium.createPropertyDescriptor("transparency")}),t.prototype.hasOwnProperty("count")||Object.defineProperties(t.prototype,{count:Cesium.createPropertyDescriptor("count")}),t.prototype.hasOwnProperty("gradient")||Object.defineProperties(t.prototype,{gradient:Cesium.createPropertyDescriptor("gradient")}),this._definitionChanged=new Cesium.Event,this._speed=void 0,this.id=e.id,this.color=e.color||new Cesium.Color(1,1,1,1),this.colors=e.colors||{},this.speed=e.speed,this.transparency=e.transparency,this.count=e.count,this.gradient=e.gradient;var i="",n=[];for(var o in this.colors)Object.hasOwnProperty.call(this.colors,o)&&n.push(o);n.sort((function(t,e){return e-t}));for(var s=0;s 0.0){\n if(disNum < perDis){\n bl = 1.0 - disNum / perDis;\n }\n else if(disNum - perDis < perDis){\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient))) * transparency;\n }\n }\n }\n }\n return material;\n }\n "),this._CircleRippleMaterialType="CircleRippleMaterialType"+this.id,Cesium.Material._materialCache.addMaterial(this._CircleRippleMaterialType,{fabric:{type:this._CircleRippleMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:3,transparency:1,count:4,gradient:.2,frameNumber:Cesium.getTimestamp()},source:this._source},translucent:function(t){return!0}})}),[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return this._CircleRippleMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.transparency=this.transparency,e.count=this.count,e.gradient=this.gradient,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(t){return this===t||t instanceof CircleRippleMaterialProperty&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t._speed)&&Cesium.Property.equals(this.count,t.count)&&Cesium.Property.equals(this.transparency,t.transparency)&&Cesium.Property.equals(this.gradient,t.gradient)}}])}();function ro(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function lo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function uo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(i=po(this,e,[t,n])).options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#1FA8E3",i.options.transparency=n.transparency||0===n.transparency?n.transparency:1,i.options.transparency>1&&(i.options.transparency=1),i.options.speed=n.speed||0===n.speed?n.speed:5,i.options.count=n.count||0===n.count?n.count:3,n.count||0===n.count?(i.options.count=n.count,n.count>99&&(i.options.count=99)):i.options.count=3,i.options.circle=n.circle||[{radius:10}];for(var s=0;s999999&&(i.options.circle[s].radius=999999);i.options.show=!n.show&&!1!==n.show||n.show,i.event=new X(i.sdk),i.options.positionEditin=!1,n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText";for(var a=0,r=0;ra&&(a=Number(i.options.circle[r].radius));return i._radius=a,i.Dialog=o,i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"CircleDiffuse"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity.show=!1,this.options.label.show&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&(this.label.show=this.options.show)),this.isShowView=!1,Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t)}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.options.positionEditing},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(this.options.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1}}))}))):(setTimeout((function(){e.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t,this.label.position=[t,this.lat],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t,this.label.position=[this.lng,t],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"radius",get:function(){return this._radius}},{key:"circle",get:function(){return this.options.circle},set:function(t){console.log(t),this.options.circle=t||[{radius:10}];for(var e=0;e999999&&(this.options.circle[e].radius=999999);this._createCircleElm()}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,e.create(this),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"transparency",get:function(){return this.options.transparency},set:function(t){this.options.transparency=t>1?1:t,e.create(this),this._elms.transparency&&this._elms.transparency.forEach((function(e){e.value=t}))}},{key:"count",get:function(){return this.options.count},set:function(t){this.options.count=t>99?99:t,e.create(this),this._elms.count&&this._elms.count.forEach((function(e){e.value=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=ze().sdkD;this.options.label.show=t,!this.show||this.showView&&3!=this.showView&&e?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=lo({},this.options.position):this.options.positions?l=lo({},this.options.positions[0]):this.options.start?l=lo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=28;break}return t.next=6,new rn(this.sdk,this.options,{title:"扩散光波属性",left:"180px",top:"100px",confirmCallBack:function(t){c.name=c.name.trim(),c.name||(c.name="未命名对象"),c.options.label.position={lng:c.label.position[0],lat:c.label.position[1],alt:c.label.position[2]},c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions),Pe(c.sdk,c.options.id),se(c.sdk,c.options.id)},resetCallBack:function(){c.reset(),c.Dialog.resetCallBack&&c.Dialog.resetCallBack()},removeCallBack:function(){c.Dialog.removeCallBack&&c.Dialog.removeCallBack()},closeCallBack:function(){c.reset(),c.positionEditing=!1,c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},showCallBack:function(t){c.options.show=t,c.originalOptions.show=t,c.show=t,c.Dialog.showCallBack&&c.Dialog.showCallBack()},translationalCallBack:function(){c.positionEditing=!c.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle-ciffuse",(i=document.createElement("div")).innerHTML=Yn(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,this._createCircleElm(),new kn("circle-diffuse-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelColor=t},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelLineColor=t},clear:function(){c.labelLineColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelBackgroundColorStart=t},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelBackgroundColorEnd=t},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.labelColor=[n],this._elms.labelLineColor=[o],this._elms.labelBackgroundColorStart=[s],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content,c.attributeVr=c.options.attribute.vr.content,c.ISCSelect&&c.ISCSelect(),c.goodsSelect&&c.goodsSelect(),c.cameraSelect&&c.cameraSelect();var t=Y(c._DialogObject._element.content.getElementsByClassName("input-radius-unit-box")[0],".input-radius-unit");if(t){t.legp_search([{name:"米",value:"米"},{name:"千米",value:"千米"}]);var e=c._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0];e.value="米",e.addEventListener("input",(function(){var t=c._DialogObject._element.content.getElementsByClassName("circle-content-box")[0].getElementsByClassName("input-number");switch(e.value){case"米":for(var i=0;it&&(t=Number(this.options.circle[i].radius));this._radius=t,e.create(this)}}},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.label&&this.label.remove(),this.entity&&this.sdk.viewer.entities.remove(this.entity),this.entity2&&this.sdk.viewer.entities.remove(this.entity2),this.entity=null,this.entity2=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=10,this.sdk.removeIncetance(this.options.id);case 10:return t.next=12,Pe(this.sdk,this.options.id);case 12:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"instructSubmit",value:function(){this.Dialog.instructSubmit&&this.Dialog.instructSubmit(this.options.id,this.options.label.text,this.instruct),this.originalOptions.instruct=this.instruct}},{key:"operatingPointSubmit",value:function(){this.Dialog.operatingPointSubmit&&this.Dialog.operatingPointSubmit(this.options.id,this.options.label.text,this.operatingPoint),this.originalOptions.operatingPoint=this.operatingPoint}},{key:"_createCircleElm",value:function(){var t=this;if(this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var i=this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0],n=i?i.value:"米",o=this._DialogObject._element.content.getElementsByClassName("circle-content-box")[0];o.innerHTML="";for(var s=function(i){var s=document.createElement("div");s.className="row";var a="",r='';0===i&&i===t.options.circle.length-1&&(r=""),i===t.options.circle.length-1&&(a=''),s.innerHTML='\n
        \n 半径\n
        \n \n '.concat("米"===n?"m":"km",'\n \n
        \n
        \n
        \n
        \n 扩散颜色\n
        \n
        \n ').concat(a,"\n ").concat(r,"\n
        \n ");var l=s.getElementsByClassName("input")[0];l.value=t.options.circle[i].radius/("米"===n?1:1e3),l.addEventListener("input",(function(n){var o=t._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(n.target.value||0===n.target.value){var s=n.target.value;if(s=Number(s),"."!=n.data&&("-"!=n.data||n.target.value)&&(!n.target.max&&!n.target.min||s<=Number(n.target.max)/("米"===o?1:1e3)&&s>=Number(n.target.min))){s="米"===o?Math.floor(100*s)/100:Math.floor(1e5*s)/1e5,t.options.circle[i].radius=s*("米"===o?1:1e3);for(var a=0,r=0;ra&&(a=Number(t.options.circle[r].radius));t._radius=a,e.create(t)}}})),l.addEventListener("blur",(function(n){var o=t._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(n.target.value||0===n.target.value){var s=n.target.value;s=Number(s),n.target.max&&s>Number(n.target.max)/("米"===o?1:1e3)&&(s=Number(n.target.max)/("米"===o?1:1e3)),n.target.min&&sa&&(a=Number(t.options.circle[r].radius));t._radius=a,l.value=s,e.create(t)}}));new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!1,defaultColor:t.options.circle[i].color||t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(n){t.options.circle[i].color=n,e.create(t)},clear:function(){t.options.circle[i].color="rgba(255,255,255,1)",e.create(t)}});var c=s.getElementsByClassName("circle-minus")[0];c&&c.addEventListener("click",(function(){t.options.circle.splice(i,1);for(var n=0,o=0;on&&(n=Number(t.options.circle[o].radius));t._radius=n,e.create(t),t._createCircleElm()}));var u=s.getElementsByClassName("circle-add")[0];u&&u.addEventListener("click",(function(){t.options.circle.push({radius:0,color:"rgba(255,255,255,1)"});for(var i=0,n=0;ni&&(i=Number(t.options.circle[n].radius));t._radius=i,e.create(t),t._createCircleElm()})),o.appendChild(s)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(t){for(var i={},n=0;n\n
        \n
        \n
        \n 名称\n \n
        \n
        \n 扫描颜色\n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 扫描半径\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 扫描速度\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function fo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function vo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=bo(this,e,[t,n])).options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#FFEB3B",i.options.radius=n.radius||10,i.options.radius>999999&&(i.options.radius=999999),i.options.speed=n.speed||0===n.speed?n.speed:20,i.options.show=!n.show&&!1!==n.show||n.show,i.event=new X(i.sdk),i.options.positionEditin=!1,n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.Dialog=o,i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity.show=!1,this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.options.positionEditing},set:function(t){var e=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.options.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1}}))}))):(setTimeout((function(){e.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t,this.label.position=[t,this.lat],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t,this.label.position=[this.lng,t],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){var e=Number(t.toFixed(2));(e>999999&&(e=999999),e<.1&&(e=.1),this.options.radius=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(e=Number((e/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(t){t.value=e}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,this.changeMaterial(),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.changeMaterial(),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=ze().sdkD;this.options.label.show=t,!this.show||this.showView&&3!=this.showView&&e?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=vo({},this.options.position):this.options.positions?l=vo({},this.options.positions[0]):this.options.start?l=vo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=34;break}return t.next=6,new rn(this.sdk,this.options,{title:"雷达光波属性",left:"180px",top:"100px",confirmCallBack:function(t){p.name=p.name.trim(),p.name||(p.name="未命名对象"),p.options.label.position={lng:p.label.position[0],lat:p.label.position[1],alt:p.label.position[2]},p.originalOptions=p.deepCopyObj(p.options),p._DialogObject.close(),p.Dialog.confirmCallBack&&p.Dialog.confirmCallBack(p.originalOptions),Pe(p.sdk,p.options.id),se(p.sdk,p.options.id)},resetCallBack:function(){p.reset(),p.Dialog.resetCallBack&&p.Dialog.resetCallBack()},removeCallBack:function(){p.Dialog.removeCallBack&&p.Dialog.removeCallBack()},closeCallBack:function(){p.reset(),p.positionEditing=!1,p.Dialog.closeCallBack&&p.Dialog.closeCallBack()},showCallBack:function(t){p.options.show=t,p.originalOptions.show=t,p.show=t,p.Dialog.showCallBack&&p.Dialog.showCallBack()},translationalCallBack:function(){p.positionEditing=!p.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" radar-scan",(i=document.createElement("div")).innerHTML=mo(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("radar-scan-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){p.color=t},clear:function(){p.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelColor=t},clear:function(){p.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelLineColor=t},clear:function(){p.labelLineColor="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelBackgroundColorStart=t},clear:function(){p.labelBackgroundColorStart="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelBackgroundColorEnd=t},clear:function(){p.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),c=i.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.labelLineColor=[s],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],(u=this._DialogObject._element.content.getElementsByClassName("input-radius")[0].getElementsByTagName("input")[0]).value=this.options.radius,this._elms.radius=[u],u.addEventListener("input",(function(t){var e=p._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),"."==t.data||"-"==t.data&&!t.target.value||(!t.target.max&&!t.target.min||i<=Number(t.target.max)/("米"===e?1:1e3)&&i>=Number(t.target.min))&&(p.radius=i*("米"===e?1:1e3))}})),u.addEventListener("blur",(function(t){var e=p._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)/("米"===e?1:1e3)&&(i=Number(t.target.max)/("米"===e?1:1e3)),t.target.min&&i0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(t){var i=function(t){if(/^#/.test(t)){var e=t.replace("#",""),i=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),s=parseInt(e.substring(6,8),16);s||0===s?s/=255:s=1,t="rgba(".concat(i,",").concat(n,",").concat(o,",").concat(s,")")}var a=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);return a?[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),a[4]?parseFloat(a[4]):1]:null}(t.options.color),n="rgba(".concat(i[0],",").concat(i[1],",").concat(i[2],",1)");t.entity=t.sdk.viewer.entities.add({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(t.options.lng,t.options.lat)}),!1),name:"雷达扫描",ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(){return t.options.radius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(){return t.options.radius}),!1),material:new Cesium.RadarScanMaterialProperty({color:Cesium.Color.fromCssColorString(n),transparency:i[3],speed:t.options.speed}),zIndex:t.sdk._entityZIndex}}),t.sdk._entityZIndex++,"cesium-viewer 2d"===t.sdk.viewer._element.className&&(t.entity.ellipse.height=1),e.createLabel(t),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){var i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getClampToHeight({lng:e.options.lng,lat:e.options.lat});case 2:i=t.sent,e.options.label.position||(e.options.label.position={lng:e.options.lng,lat:e.options.lat,alt:i}),e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far,ground:!0});case 5:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"createBy2D",value:function(t){t.entity=new Cesium.EntityCollection;var i=0,n=r(t.options,t.options.radius,i),o=(new Date).getTime();t.viewer.clock.onTick.addEventListener((function(){var e=(new Date).getTime(),s=t.options.duration?360/t.options.duration:0,a=(e-o)*s;o=e,i+=a,n=r(t.options,t.options.radius,i)}));var s=t.sdk.viewer.entities.add({show:t.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){var e=t.createCircle({lng:t.options.lng,lat:t.options.lat},t.options.radius);return Cesium.Cartesian3.fromDegreesArray(e)}),!1),width:2,material:Cesium.Color.fromCssColorString(t.options.color),clampToGround:!0}}),a=t.sdk.viewer.entities.add({show:t.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(n)}),!1),width:2,material:Cesium.Color.fromCssColorString(t.options.color),clampToGround:!0}});function r(t,e,i){var n=t.lng,o=t.lat,s=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,0)),a=e*Math.cos(i*Math.PI/180),r=e*Math.sin(i*Math.PI/180),l=Cesium.Cartesian3.fromElements(a,r,0),c=Cesium.Matrix4.multiplyByPoint(s,l,new Cesium.Cartesian3),u=Cesium.Cartographic.fromCartesian(c);return[n,o,Cesium.Math.toDegrees(u.longitude),Cesium.Math.toDegrees(u.latitude)]}t.entity.add(s),t.entity.add(a),t.sdk.viewer.entities.add(t.entity),e.createLabel(t),Pe(t.sdk,t.options.id)}}]);var i,n,s,r}(Wn);function wo(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ko(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ko(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(t,e){var i=Cesium.Cartesian3.distance(e.camera.positionWC,t.position.getValue()),n=t.billboard.scaleByDistance?t.billboard.scaleByDistance.getValue():void 0;if(!n)return 1;var o=n.near,s=n.nearValue,a=n.far,r=n.farValue;if(i<=o)return s;if(i>=a)return r;var l=(i-o)/(a-o);return Cesium.Math.lerp(s,r,l)}return k()(this,e),So(i=Eo(this,e,[t,n]),Oo,null),So(i,To,null),So(i,No,0),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.options.billboard=n.billboard=n.billboard||{},i.options.billboard.isSelect=n.billboard.isSelect||!1,i.options.billboard.show=!n.billboard.show&&!1!==n.billboard.show||n.billboard.show,i.options.billboard.image=n.billboard.image||ti(n.billboard.defaultImage)||i.getSourceRootPath()+"/img/A-ablu-blank.png",i.options.billboard.defaultImage=n.billboard.defaultImage,i.options.billboard.scale=n.billboard.scale||0===n.billboard.scale?n.billboard.scale:3,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.positions=n.positions=n.positions||{},i.options.positions.lng=Number(Number(n.positions.lng||0).toFixed(8)),i.options.positions.lat=Number(Number(n.positions.lat||0).toFixed(8)),i.options.positions.alt=Number(Number(n.positions.alt||0).toFixed(2)),Po(No,i,i.options.positions.alt),i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.rtmp=i.options.attribute.rtmp||{},i.options.attribute.rtmp.content=i.options.attribute.rtmp.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.options.coordinate=n.coordinate||"",i.options.attributeBoxState=n.attributeBoxState||!1,i.operate={},i._elms={},i.previous={positions:_o({},i.options.positions)},i.options.attributePos=n.attributePos||{x:60,y:60,width:200,height:120},i.entity,i._proj=i.sdk.proj,Po(To,i,(function(){i.attributeElm&&(i.attributeElm.style.pointerEvents="unset"),i.sdk&&i.sdk.viewer&&i.sdk.viewer._element&&(i.sdk.viewer._element.onmousemove=null),document.removeEventListener("mouseup",Do(To,i)),document.removeEventListener("mouseleave",Do(To,i))})),Po(Oo,i,(function(){var t=Cesium.Cartesian3.fromDegrees(i.options.positions.lng,i.options.positions.lat,Do(No,i));if(i.attributeElm&&i.entity){var e=i.sdk.viewer.scene.cartesianToCanvasCoordinates(t),n=i.entity.label.pixelOffset.getValue();if(e){var o,a,r,l,c,u=s(i.entity,i.sdk.viewer.scene),p=(i.entity.billboard.height.getValue()*(i.options.billboard.scale||0)+i.options.label.fontSize)*(1-u*u),h=!1,d=i.attributeElm.getElementsByClassName("billboard-attribute-box-line")[0],m=i.attributeElm.getElementsByClassName("left-top")[0],f=i.attributeElm.getElementsByClassName("right-top")[0];i.attributeElm.style.left=(e.x+i.options.attributePos.x).toFixed(0)+"px",i.attributeElm.style.top=(e.y+n.y-(i.options.label.show?i.options.label.fontSize/2:-i.options.label.fontSize/2)-i.attributeElm.offsetHeight-i.options.attributePos.y+p).toFixed(0)+"px",i.attributeElm.style.width=i.options.attributePos.width+"px",i.attributeElm.style.height=i.options.attributePos.height+"px",d.style.zIndex="-1",i.options.attributePos.x<-i.options.attributePos.width/2?(h=!0,d.style.left="unset",d.style.right="0",m.style.display="block",f.style.display="none"):(d.style.left="0",d.style.right="unset",m.style.display="none",f.style.display="block"),h?(l=i.attributeElm.offsetWidth+i.options.attributePos.x,c=i.options.attributePos.y?i.options.attributePos.y:0):(l=i.options.attributePos.x,c=i.options.attributePos.y?i.options.attributePos.y:0),o=Math.sqrt(l*l+c*c).toFixed(2),a=Math.atan(l/c),r=parseFloat((180*a/Math.PI).toFixed(2)),i.options.attributePos.y<0&&(r+=180),d.style.height=o+"px",d.style.transform="rotate("+r+"deg)"}}})),i.sdk.addIncetance(i.options.id,i),e.create(i),i.picking=!0,i.Dialog=o,i._EventBinding=new wn,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"BillboardObject"}},{key:"selectBillboard",value:function(){var t=this;this.sdk.viewer.screenSpaceEventHandler.setInputAction((function(e){var i=t.sdk.viewer.scene.pick(e.position);Cesium.defined(i)&&i.id&&"airportBillboard"===i.id.id?t.entity.billboard&&(t.entity.billboard.color=Cesium.Color.YELLOW):t.entity.billboard&&(t.entity.billboard.color=Cesium.Color.WHITE)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"},{name:"rtmp",value:"rtmp",key:"rtmp"},{name:"IP摄像头",value:"IP摄像头",key:"camera"},{name:"全景图",value:"全景图",key:"vr"},{name:"物资",value:"物资",key:"goods"}]}},{key:"show",get:function(){return this.options.show},set:function(t){this.isShowView||(this.options.show=t,this.originalOptions.show=t),this.showView&&3!=this.showView?(this.entity&&(this.entity.show=!1),document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this))):(this.entity&&(this.entity.show=this.options.show),this.attributeBoxState&&this.options.show?this.attributeBoxState=this.options.show:(document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this)))),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),this.isShowView=!1}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var e,i=this;this.options.heightMode=t||0==t?t:3;var n,o="";switch(this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(n=this._DialogObject._element.content.getElementsByClassName("alt-box")[0]),this.options.heightMode){case"0":case 0:n&&(n.className="input-number input-number-unit-1 alt-box"),this._elms.height&&(this._elms.height.style.display="flex"),e=Cesium.HeightReference.NONE,o="海拔高度";break;case"1":case 1:n&&(n.className="input-number input-number-unit-1 alt-box"),this._elms.height&&(this._elms.height.style.display="flex"),e=Cesium.HeightReference.NONE,o="相对地表";break;case"2":case 2:n&&(n.className="input-number input-number-unit-1 alt-box disabled"),o="依附地表",n&&(n.className="input-number input-number-unit-1 alt-box disabled"),o="依附地表",e=Cesium.HeightReference.CLAMP_TO_GROUND,this._elms.height&&(this._elms.height.style.display="none");break;case"3":case 3:n&&(n.className="input-number input-number-unit-1 alt-box disabled"),this._elms.height&&(this._elms.height.style.display="none"),e=Cesium.HeightReference.NONE,o="依附模型"}this.entity&&(this.entity.billboard.heightReference=e,this.entity.label.heightReference=e,e==Cesium.HeightReference.CLAMP_TO_GROUND?this.sdk.viewer.scene.terrainProvider.availability?Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]).then((function(t){Po(No,i,t[0].height)})):Po(No,this,0):Po(No,this,this.options.positions.alt)),this._elms.heightMode&&(this._elms.heightMode.value=o)}},{key:"labelText",get:function(){return this.options.label.text},set:function(t){this.options.label.text=t,this.options.name=t,this.entity&&(this.entity.label.text=t+""),this._elms.labelText&&this._elms.labelText.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.positions.lng},set:function(t){this.options.positions.lng=Number(Number(t).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.positions.lat},set:function(t){this.options.positions.lat=Number(Number(t).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.positions.alt},set:function(t){var e=this;if(this.options.positions.alt=Number(Number(t).toFixed(2)),Po(No,this,this.options.positions.alt),this.renewPoint(),this.coordinate=this.options.coordinate,this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.positions.alt})),this._elms.height){var i=this._elms.height.getElementsByClassName("height")[0];if(i)switch(this._elms.heightMode.value){case"海拔高度":i.value=this.options.positions.alt;break;case"相对地表":this.sdk.viewer.scene.terrainProvider.availability?Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]).then((function(t){i.value=Number((e.options.positions.alt-t[0].height).toFixed(2))})):i.value=Number(Number(this.options.positions.alt).toFixed(2));break;case"依附地表":case"依附地表":break;case"依附模型":this.updateHeight()}}}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.renewPoint(),this._elms.near&&this._elms.near.forEach((function(t){t.value=e}))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;e=e._frameImages.length-1?0:r+1,t}),!1)),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return a}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-a*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1)}}))}else{var l=new Image;l.src=i;var c=36,u=document.createElement("canvas");l.onload=function(){var t=l.width/l.height;l.width=100,l.height=100/t;var i=l.width,n=l.height,o=u.getContext("2d",{willReadFrequently:!0});u.width=i,u.height=n,o.drawImage(l,0,0,i,n),c=n*(31/i),e.entity.billboard.imgWidth=i,e.entity.billboard.imgHeight=n,e.entity&&(e.entity.billboard.image=u),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return c}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-c*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1),c=n*(31/i)},l.onerror=function(t){u.width=0,u.height=0,c=0,e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity&&(e.entity.billboard.image=u),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return 0}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return new Cesium.Cartesian2(0,0)}),!1),c=36}}}},{key:"billboardScale",get:function(){return this.options.billboard.scale},set:function(t){this.options.billboard.scale=t,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(e){e.value=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.entity&&(this.entity.label.show=t),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.value=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.renewPoint();var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.renewPoint(),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t||"#00ffff",this.renewPoint(),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.label.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(0,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"instruct",get:function(){return this.options.instruct},set:function(t){this.options.instruct=t,this._elms.instruct&&this._elms.instruct.forEach((function(e){e.value=t}))}},{key:"operatingPoint",get:function(){return this.options.operatingPoint},set:function(t){this.options.operatingPoint=t,this._elms.operatingPoint&&this._elms.operatingPoint.forEach((function(e){e.value=t}))}},{key:"attributeType",get:function(){return this.options.attributeType},set:function(t){this.options.attributeType=t,this._elms.attributeType&&this._elms.attributeType.forEach((function(e){e.value=t}));for(var e=this._DialogObject._element.content.getElementsByClassName("attribute-content"),i=0;i-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.rtmp.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={rtmpEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.rtmp.content;case 2:e.attributeRtmp=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-rtmp")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.rtmp.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.rtmp.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==m[0]&&m[0],i=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=41;break}return t.next=7,new rn(this.sdk,this.options,{title:"点属性",left:"180px",top:"100px",confirmCallBack:function(t){d.labelText=d.labelText.trim(),d.labelText||(d.labelText="未命名对象"),d.originalOptions=d.deepCopyObj(d.options),d.previous={positions:_o({},d.options.positions)},d._DialogObject.close();var e=d.deepCopyObj(d.options);e.host="",d.Dialog.confirmCallBack&&d.Dialog.confirmCallBack(e),Pe(d.sdk,d.options.id),se(d.sdk,d.options.id)},resetCallBack:function(){d.reset(),d.Dialog.resetCallBack&&d.Dialog.resetCallBack()},removeCallBack:function(){d.Dialog.removeCallBack&&d.Dialog.removeCallBack()},closeCallBack:function(){d.positionEditing=!1,setTimeout((function(){d.reset(),d.Dialog.closeCallBack&&d.Dialog.closeCallBack()}),0)},showCallBack:function(t){d.show=t,d.Dialog.showCallBack&&d.Dialog.showCallBack()},translationalCallBack:function(){d.positionEditing=!d.positionEditing},updateHeightCallBack:function(){d.updateHeight()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" billboard-object",(n=document.createElement("div")).innerHTML=An(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("point-object-edit-tabs",void 0,this.sdk),s=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){d.labelColor=t},clear:function(){d.labelColor="rgba(255,255,255,1)"}}),r=n.getElementsByTagName("*"),this._EventBinding.on(this,r),this._elms=this._EventBinding.element,this._elms.labelColor=[s],setTimeout(o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,m,f,v,g,b,C,w,k,x,_,E,S,D,P,M,O;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d.attributeLink=d.options.attribute.link.content,d.attributeVr=d.options.attribute.vr.content,d.attributeRtmp=d.options.attribute.rtmp.content,d.cameraSelect&&d.cameraSelect(),d.ISCSelect&&d.ISCSelect(),d.goodsSelect&&d.goodsSelect(),(e=document.createElement("div")).className="col",e.style.flex="0 0 110px",e.innerHTML='\n 属性框\n \n ',d._DialogObject._element.content.getElementsByClassName("attribute")[0].getElementsByClassName("row")[0].appendChild(e),(i=e.getElementsByClassName("btn-switch")[0]).checked=d.attributeBoxState,i.addEventListener("change",(function(t){d.attributeBoxState=i.checked})),n=d.attributeSelect,!(o=d._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0])){t.next=31;break}(s=Y(o,".attribute-select")).legp_search(n),r=d._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],l=0;case 22:if(!(l=0)){t.next=24;break}if(!v[g].position){t.next=21;break}return f=v[g],t.abrupt("break",24);case 21:g--,t.next=17;break;case 24:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),t.prev=25,t.next=28,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]);case 28:b=t.sent,t.next=33;break;case 31:t.prev=31,t.t0=t.catch(25);case 33:if((void 0===i||i0&&void 0!==w[0]?w[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=26;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_o({},this.options.position):this.options.positions?l=_o({},this.options.positions):this.options.center?l=_o({},this.options.center):this.options.start?l=_o({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=19;break}c=[],u=wo(this.sdk.entityMap);try{for(u.s();!(p=u.n()).done;)(h=y()(p.value,2))[0],"RadarScanStereoscopic"===(d=h[1]).type&&d.entity&&c.push(d.entity)}catch(t){u.e(t)}finally{u.f()}return t.next=18,this.getClampToHeight(l,c);case 18:l.alt=t.sent;case 19:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=33;break;case 26:m=[],f=wo(this.sdk.entityMap);try{for(f.s();!(v=f.n()).done;)(g=y()(v.value,2))[0],"RadarScanStereoscopic"===(b=g[1]).type&&b.entity&&m.push(b.entity)}catch(t){f.e(t)}finally{f.f()}return t.next=31,this.getClampToHeight(this.options.positions,m);case 31:C=t.sent,this.sdk.viewer.camera.flyTo({orientation:e.orientation,destination:Cesium.Cartesian3.fromDegrees(this.options.positions.lng,this.options.positions.lat,C+(e.height||500))});case 33:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"setPosition",value:function(t){this.options.positions.lng=t.position.lng,this.options.positions.lat=t.position.lat,this.options.positions.alt=t.position.alt,this.renewPoint()}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,this.event&&this.event.destroy(),this.event=new X(this.sdk),!0===t){this.picking=!1,this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.previous={positions:_o({},this.options.positions)};var i=function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.previous={positions:_o({},e.options.positions)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),e.positionEditing=!1};this.event.mouse_move((function(t,i){e.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left(i),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,n){var o=new Date;e.event.gesture_pinck_end((function(){var s=new Date;t.position1.x,t.position2.x,t.position1.y,t.position2.y;s-o>=500?e.positionEditing=!1:i(0,n)}))}))}else this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy(),this.event=null),this.tip&&this.tip.destroy(),this.lng=this.previous.positions.lng,this.lat=this.previous.positions.lat,this.alt=this.previous.positions.alt,this.renewPoint()}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.positions.lng,this.options.positions.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"setCustomView",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}this.options.customView=e,t.next=19;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=_o({},n),this.options.positions?o=_o({},this.options.positions):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){t.next=16;break}r=[],l=wo(this.sdk.entityMap);try{for(l.s();!(c=l.n()).done;)(u=y()(c.value,2))[0],"RadarScanStereoscopic"===(p=u[1]).type&&p.entity&&r.push(p.entity)}catch(t){l.e(t)}finally{l.f()}return t.next=15,this.getClampToHeight(o,r);case 15:o.alt=t.sent;case 16:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 19:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"attributeBoxState",get:function(){return this.options.attributeBoxState},set:function(t){var e=this;if(t=!!t,this.options.attributeBoxState=t,document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this)),t&&this.sdk&&this.sdk.viewer&&this.sdk.viewer._element&&this.show){var i=document.createElement("div");this.attributeElm=i,i.className="billboard-attribute-box",i.style.top="0px",i.style.left="0px",i.style.width=0,i.style.height=0,Gt&&(i.style.display="none"),this.sdk.viewer._element.appendChild(i);for(var n="",o="",s="",a=0;a'):n+='')}if(this.options.attribute.goods&&this.options.attribute.goods.content&&this.options.attribute.goods.content.length>0){o+='\n
        \n
        \n
        \n
        序号
        \n
        名称
        \n
        数量
        \n
        \n
        \n
        \n ';for(var l=0;l\n
        '.concat(l+1,'
        \n
        ').concat(this.options.attribute.goods.content[l].name,'
        \n
        ').concat(this.options.attribute.goods.content[l].cnt,"
        \n
        ");o+="
        "}this.options.richTextContent&&(s='\n '.concat(this.options.richTextContent,"\n "));var c='\n \n \n ';if(c+=n||o||s?'\n \n '.concat(s,"\n ").concat(o,"\n ").concat(n,'\n \n
        '):'

        暂无属性信息

        ',i.innerHTML=c,i.getElementsByClassName("tabs")[0])new kn(i.getElementsByClassName("tabs")[0],void 0,this.sdk);for(var u=i.getElementsByTagName("img"),p=0;p=t._frameImages.length-1?0:r+1,e}),!1),vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))}}))}else{var h=new Image;switch(h.src=c||t.getSourceRootPath()+"/img/A-ablu-blank.png",t.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}e=document.createElement("canvas"),h.onload=function(){var i=h.width/h.height;h.width=100,h.height=100/i;var o=h.width,s=h.height,a=e.getContext("2d",{willReadFrequently:!0});e.width=o,e.height=s,a.drawImage(h,0,0,o,s),n=s*(31/o),t.entity&&(t.entity.billboard.imgWidth=o,t.entity.billboard.imgHeight=s,t.entity.billboard.image=e,vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))},h.onerror=function(i){e.width=0,e.height=0,n=0,t.entity&&(t.entity.billboard.imgWidth=0,t.entity.billboard.imgHeight=0,t.entity.billboard.image=e,vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))}}t.entity=new Cesium.Entity({show:t.options.show,id:t.options.id,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:a?new Cesium.CallbackProperty((function(){var e=t._frameImages[r];return r=r>=t._frameImages.length-1?0:r+1,e}),!1):e,scale:t.options.billboard.scale,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,color:t.options.billboard.show?void 0:new Cesium.Color(1,1,1,0),width:31,height:new Cesium.CallbackProperty((function(){return n}),!1),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},label:{show:t.options.label.show,text:t.options.label.text,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,font:t.options.label.fontSize+"px "+l,fillColor:Cesium.Color.fromCssColorString(t.options.label.color),pixelOffset:new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-n*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1),outlineColor:Cesium.Color.BLACK,outlineWidth:1,style:Cesium.LabelStyle.FILL_AND_OUTLINE}}),t.entity.billboard.imgWidth=31,t.entity.billboard.imgHeight=36,t.entity.position=Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),3==t.options.heightMode&&t.updateHeight(),t.renewPoint(),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id),t.options.billboard.isSelect&&t.selectBillboard()}}]);var i,n,s,r,l}(Wn);function Lo(t){return'\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n 投影面积:\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n Z值统一增加\n
        \n \n m\n \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        经度(X)
        \n
        纬度(Y)
        \n
        高度(Z)
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n 面颜色\n
        \n
        \n
        \n 描边颜色\n
        \n
        \n
        \n 描边宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function Ao(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function jo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Fo(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.nodePoints=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<3)i._error="多边形最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
        \n
        \n
        \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=jo({},this.options.position):this.options.positions?l=jo({},this.options.positions[0]):this.options.center?l=jo({},this.options.center):this.options.start?l=jo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500?i.positionEditing=!1:y(0,e)}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(n.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(n.positions),[n.positions[0],n.positions[1]])}),!1)}else{this.previous?this.positions=L()(this.previous.positions):this.previous={positions:L()(this.positions)},this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var b=[[]],C=0;C0?new Cesium.PolygonHierarchy(m):new Cesium.PolygonHierarchy(o)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return m.length>0?[].concat(m,[m[0],m[1]]):[].concat(L()(o),[o[0],o[1]])}),!1)}},{key:"renewPositions",value:function(){var t=this;if(!this._error){for(var e=!1,i=[],n=this.options.positions,o=0;o0&&void 0!==h[0]?h[0]:{domid:"",x:10,y:10}).x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10,i=[[]],n=0;nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){var i=L()(t.options.positions);if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n,s,r=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(L()(l),[l[0],l[1],l[2]]):l}),!1);var m=L()(t.sdk.viewer.entities.values);if(t.options.positions.length<3)t.getClampToHeight({lng:t.options.positions[0].lng,lat:t.options.positions[0].lat},m).then((function(e){t.label.position=[t.options.positions[0].lng,t.options.positions[0].lat,e]}));else{for(var f=[[]],v=0;v=500?d():h(o,i)}))})),r()}),200)}}),50)}},{key:"closeNodeEdit",value:function(t){if(t.sdk&&t.sdk.viewer){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n
        \n
        \n 高度模式\n
        \n
        \n
        \n Z值统一增加\n
        \n \n m\n \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        经度(X)
        \n
        纬度(Y)
        \n
        高度(Z)
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n 线条颜色\n
        \n
        \n
        \n 线条宽度\n
        \n \n px\n \n
        \n
        \n
        \n 线条形式\n
        \n
        \n
        \n
        \n
        \n 首尾相连\n \n
        \n
        \n 线段圆滑\n \n
        \n
        \n
        \n
        \n
        \n
        \n 线段缓冲\n \n
        \n
        \n 缓冲宽度\n
        \n \n m\n \n
        \n
        \n
        \n 缓冲颜色\n
        \n
        \n
        \n
        \n
        \n 首尾反向\n \n
        \n
        \n 流动速率\n
        \n \n \n
        \n
        \n
        \n 线条间距\n
        \n \n \n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n \x3c!--
        --\x3e\n
        \n
        \n
        \n \n ')}function Vo(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Go(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Go(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Go(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max),e.target.value=i),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.viwer=this.sdk.viewer,this.options=i,this.options.position=i.position||{},this.options.rotate=i.rotate||{},this.options.position.lng=this.options.position.lng||0,this.options.position.lat=this.options.position.lat||0,this.options.position.alt=this.options.position.alt||0,this.options.rotate.x=this.options.rotate.x||0,this.options.rotate.y=this.options.rotate.y||0,this.options.rotate.z=this.options.rotate.z||0,this.activeAxis,this.activeCircle,this.activeModelParam,this.origin,this.rayX,this.rayY,this.rayZ,this.arrow={},this.activeState,this.coordArrows=[],this.coordCircles=[],this.MapEvent=new X(this.sdk)}),[{key:"position",get:function(){return this.options.position},set:function(t){this.options.position=t,this.againArrow(),this.againCircle()}},{key:"rotate",get:function(){return this.options.rotate},set:function(t){this.options.rotate=t}},{key:"initParam",value:function(){return this._params={tx:this.options.position.lng,ty:this.options.position.lat,tz:this.options.position.alt,rx:this.options.rotate.x,ry:this.options.rotate.y,rz:this.options.rotate.z},Jo(Jo({},this.options.position),this.options.rotate)}},{key:"editTranslational",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w=function(t){if(e.activeAxis){var i=t.startPosition.y-t.endPosition.y,n={x:t.endPosition.x-y.x,y:t.endPosition.y-y.y},o=r.camera.getPickRay(n),s=r.scene.globe.pick(o,r.scene),a=new Cesium.Cartesian3,l=Cesium.Transforms.eastNorthUpToFixedFrame(r.camera.position);Cesium.Matrix4.inverse(l,l),Cesium.Matrix4.multiplyByPoint(l,s,a),Cesium.Cartesian3.normalize(a,a);var c=e.initParam(),u=90+Cesium.Math.toDegrees(Math.asin(a.z)),p=Cesium.Cartographic.fromCartesian(r.camera.position).height,h=e.activeModelParam.alt,d=p/Math.cos(Cesium.Math.toRadians(u));new Cesium.EllipsoidGeodesic(Cesium.Cartographic.fromCartesian(s),Cesium.Cartographic.fromCartesian(r.camera.position)),s=Cesium.Ray.getPoint(o,d*(1-h/p));var m=Cesium.Cartographic.fromCartesian(s),f=Cesium.Math.toDegrees(m.longitude),v=Cesium.Math.toDegrees(m.latitude);switch(e.activeAxis._name){case"model_edit_xAxis":e._params.tx=f,e._params.ty=e.activeModelParam.lat,e._params.tz=h,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var g=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),k=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),x=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,g),e.rayY=new Cesium.Ray(e.origin,k),e.rayZ=new Cesium.Ray(e.origin,x);break;case"model_edit_yAxis":e._params.tx=e.activeModelParam.lng,e._params.ty=v,e._params.tz=h,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var _=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),E=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),S=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,_),e.rayY=new Cesium.Ray(e.origin,E),e.rayZ=new Cesium.Ray(e.origin,S);break;case"model_edit_zAxis":e.activeModelParam.alt+=Cesium.Cartesian3.distance(r.camera.position,Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt))/4300*i*3,e._params.tx=e.activeModelParam.lng,e._params.ty=e.activeModelParam.lat,e._params.tz=e.activeModelParam.alt,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e.activeModelParam.alt);var D=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,e.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),P=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,e.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),M=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e.activeModelParam.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,D),e.rayY=new Cesium.Ray(e.origin,P),e.rayZ=new Cesium.Ray(e.origin,M)}e.updateModel(e._params.tx,e._params.ty,e._params.tz,e._params.rx,e._params.ry,e._params.rz),e.againArrow()}else{var O=Date.now();if(O-b<100)return clearTimeout(C),void(C=setTimeout((function(){w(t)}),100));clearTimeout(C),b=O;for(var T=e.coordArrows,N=0;N=0;L--){var A=B[L];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}},this.destroy(),this.activeState="translational",this.MapEvent=new X(this.sdk),e=this,i=this.initParam(),n=i.lng,o=i.lat,s=i.alt,r=this.viwer,this.origin=Cesium.Cartesian3.fromDegrees(n,o,s),l=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n-.001,o,s),new Cesium.Cartesian3),new Cesium.Cartesian3),c=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o-.001,s),new Cesium.Cartesian3),new Cesium.Cartesian3),u=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o,s-1),new Cesium.Cartesian3),new Cesium.Cartesian3),this.rayX=new Cesium.Ray(this.origin,l),this.rayY=new Cesium.Ray(this.origin,c),this.rayZ=new Cesium.Ray(this.origin,u),this.arrow.positionX=Cesium.Ray.getPoint(this.rayX,0),this.arrow.positionY=Cesium.Ray.getPoint(this.rayY,0),this.arrow.positionZ=Cesium.Ray.getPoint(this.rayZ,0),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(n,o,s)),h=r.camera.position,d=Cesium.Cartesian3.distance(h,this.origin),m=d/15,Cesium.Matrix4.multiplyByScale(p,new Cesium.Cartesian3(m,m,m),p),f=this.createAxisArrow("model_edit_xAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(1,0,0)],p,Cesium.Color.RED),v=this.createAxisArrow("model_edit_yAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,1,0)],p,Cesium.Color.LIME),g=this.createAxisArrow("model_edit_zAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,0,1)],p,Cesium.Color.BLUE),this.viwer.scene.primitives.add(f),this.viwer.scene.primitives.add(v),this.viwer.scene.primitives.add(g),this.againArrow(),this.viwer.camera.percentageChanged=.001,this.viwer.camera.changed.addEventListener(this.againArrow,{_that:this}),y={x:0,y:0},b=0,this.MapEvent.mouse_move((function(t,e){w(t)})),this.MapEvent.mouse_left_down((function(t,i){var n=r.scene.cartesianToCanvasCoordinates(k.origin);y.x=t.position.x-Math.floor(n.x),y.y=t.position.y-Math.floor(n.y);for(var o=r.scene.drillPick(t.position,10),s=o.length-1;s>=0;s--){var a=o[s];if(a&&a.primitive&&a.primitive._name)if(e.activeAxis)e.activeAxis=null,e.activeModelParam=null,e.controllerCallBack;else switch(a.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return r.scene.screenSpaceCameraController.enableRotate=!1,e.activeAxis=a.primitive,e.activeModelParam=e.initParam(),void(a.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(t){r.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(r._params.rx=1),r._params.rx<0&&(r._params.rx=360),Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(r._params.rx)),r._params.ry-=i,r._params.ry>360&&(r._params.ry=1),r._params.ry<0&&(r._params.ry=360),r._params.rz-=n,r._params.rz>360&&(r._params.rz=1),r._params.rz<0&&(r._params.rz=360),r.updateModel(r._params.tx,r._params.ty,r._params.tz,r._params.rx,r._params.ry,r._params.rz)}else{var c=Date.now();if(c-D<100)return clearTimeout(P),void(P=setTimeout((function(){M(t)}),100));clearTimeout(P),D=c;for(var u=s.coordCircles,p=0;p3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=t=parseFloat(parseFloat(t).toFixed(8)),this._params.ty=e=parseFloat(parseFloat(e).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.options.position.lng=t,this.options.position.lat=e,this.options.position.alt=i,this.options.rotate={x:n,y:o,z:s},this.controllerCallBack}},{key:"controllerCallBack",get:function(){this._controllerCallBack&&this._controllerCallBack(this.options,!this.activeAxis)},set:function(t){this._controllerCallBack=t}},{key:"createAxisArrow",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisCircular",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.EllipseGeometry({center:{x:1,y:1,z:1},semiMinorAxis:5e5,semiMajorAxis:1e6,rotation:Cesium.Math.PI_OVER_FOUR,vertexFormat:Cesium.VertexFormat.POSITION_AND_ST})}),releaseGeometryInstances:!1,appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:Cesium.Color.YELLOW}}})}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(t,e,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=t,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var t=0;t=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),ts(i=Qo(this,e,[t,n]),ns,void 0),i.options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options["nose-to-tail"]=n["nose-to-tail"]||!1,i.options.smooth=n.smooth||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.dashSize=n.dashSize||.03,i.options["length-unit"]=n["length-unit"]||"米",i.options["fit-length-unit"]=n["fit-length-unit"]||"米",i.options["words-name"]=n["words-name"]||"空间长度",i.options["extend-width"]=n["extend-width"]||0===n["extend-width"]?n["extend-width"]:10,i.options["extend-color"]=n["extend-color"]||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s2)switch(t){case"米":this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;break;case"千米":this.length=this.noseToTail?(this.options.fitLengthByMeter/1e3).toFixed(5):(this.options.lengthByMeter/1e3).toFixed(5);break;default:this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter}else{var e=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;this.lengthUnit=e>1e3||1e3==e?"千米":"米"}}},{key:"wordsName",get:function(){return this.options["words-name"]},set:function(t){this.options["words-name"]=t,this._elms.wordsName&&this._elms.wordsName.forEach((function(e){e.value=t}));var e=this;if(this.noseToTail)this.renewPositions(this.options.positions);else this.computeDistance(this.options.positions,2,t).then((function(t){e.options.lengthByMeter=t,e.lengthUnit=e.options["length-unit"]}))}},{key:"fitLengthUnit",get:function(){return this.options["fit-length-unit"]},set:function(t){if(this.options["fit-length-unit"]=t,this._elms.fitLengthUnit&&this._elms.fitLengthUnit.forEach((function(e){e.value=t})),this.options.fitLengthByMeter)switch(t){case"米":this.fitLength=this.options.fitLengthByMeter;break;case"千米":this.fitLength=Number((this.options.fitLengthByMeter/1e3).toFixed(5));break;default:this.fitLength=this.options.fitLengthByMeter}}},{key:"lineWidth",get:function(){return this.options.width},set:function(t){var e=this;this.options.width=t||0==t?t:3,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.width})),this.entity&&this.entity.polyline&&(this.entity.polyline.width=this.entity.polyline.width+t-this.entity.polyline.oriWidth,this.entity.polyline.oriWidth=this.options.width)}},{key:"lineType",get:function(){return this.options.type},set:function(t){var e=this,i=[{name:'实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(t);for(var n=function(n){if(i[n].key===Number(t))return e._elms.lineType&&e._elms.lineType.forEach((function(t){t.value=i[n].value,2this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(l=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=32;break}return o=function(t){"2"!==t&&2!==t||(2实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],C=Y(d._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(C){C.legp_search(b);var w=document.createElement("i");w.className="icon icon-active",d._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(w);var k=d._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];d._elms.lineType=[k];for(var x=0;x'.concat(t+1,'\n
        \n
        \n
        \n ');var n=i.getElementsByClassName("lng")[0],o=document.createElement("span");o.innerHTML=d.options.positions[t].lng.toFixed(8),n.appendChild(o);var s=document.createElement("input");s.className="input",s.type="number",s.title="",s.min=-180,s.max=180,s.value=d.options.positions[t].lng.toFixed(8);var a=i.getElementsByClassName("lat")[0],r=document.createElement("span");r.innerHTML=d.options.positions[t].lat.toFixed(8),a.appendChild(r);var l=document.createElement("input");l.className="input",l.type="number",l.title="",l.min=-90,l.max=90,l.value=d.options.positions[t].lat.toFixed(8);var c=i.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=d.options.positions[t].alt.toFixed(2),c.appendChild(u);var p=document.createElement("input");p.className="input",p.type="number",p.title="",p.min=-9999999,p.max=999999999,p.value=d.options.positions[t].alt.toFixed(2),n.addEventListener("dblclick",(function(){n.innerHTML="",s.value=Number(d.options.positions[t].lng.toFixed(8)),n.appendChild(s),s.focus(),d.positionEditing=!1,e.closeNodeEdit(d)})),s.addEventListener("blur",(function(){s.value=Number(d.options.positions[t].lng.toFixed(8)),n.innerHTML="",n.appendChild(o)})),s.addEventListener("input",(function(){d.options.positions[t].lng=Number(Number(s.value).toFixed(8)),o.innerHTML=d.options.positions[t].lng.toFixed(8);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),a.addEventListener("dblclick",(function(){a.innerHTML="",l.value=Number(d.options.positions[t].lat.toFixed(8)),a.appendChild(l),l.focus(),d.positionEditing=!1,e.closeNodeEdit(d)})),l.addEventListener("blur",(function(){l.value=Number(d.options.positions[t].lat.toFixed(8)),a.innerHTML="",a.appendChild(r)})),l.addEventListener("input",(function(){d.options.positions[t].lat=Number(Number(l.value).toFixed(8)),r.innerHTML=d.options.positions[t].lat.toFixed(8);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),c.addEventListener("dblclick",(function(){2!=d.heightMode&&(c.innerHTML="",p.value=Number(d.options.positions[t].alt.toFixed(2)),c.appendChild(p),p.focus(),d.positionEditing=!1,e.closeNodeEdit(d))})),p.addEventListener("blur",(function(){p.value=Number(d.options.positions[t].alt.toFixed(2)),c.innerHTML="",c.appendChild(u)})),p.addEventListener("input",(function(){d.options.positions[t].alt=Number(Number(p.value).toFixed(2)),u.innerHTML=d.options.positions[t].alt.toFixed(2);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),d._elms.lng.push(o),d._elms.lngInput.push(s),d._elms.lat.push(r),d._elms.latInput.push(l),d._elms.alt.push(u),d._elms.altInput.push(p),T.appendChild(i)},B=0;B0&&void 0!==y[0]?y[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=$o({},this.options.position):this.options.positions?l=$o({},this.options.positions[0]):this.options.center?l=$o({},this.options.center):this.options.start?l=$o({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=43;break;case 25:c=[],t.t0=this.options.heightMode,t.next="0"===t.t0||0===t.t0?29:"1"===t.t0||1===t.t0?31:"2"===t.t0||2===t.t0?36:41;break;case 29:for(p=0;p=500?(i.event.mouse_move((function(){})),i.event.mouse_left((function(){})),i.event.mouse_right((function(){})),i.positionEditing=!1):leftEvent(s,e)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return l.length>0?l:n}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var c=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(c),this.renewPolygon(c),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,c[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:c[2]}}}}},{key:"setDIV",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=new Cesium.EntityCollection;if(t.forEach((function(t){(t instanceof Bo||t instanceof zo||t instanceof ho||t instanceof os)&&e.add(t.entity)})),e.values.length){var i=Cesium.exportKml({entities:e});i.then((function(t){ss(t.kml,(new Date).getTime()+".kml")}))}else console.error("允许导出为kml的对象为空")},rs={yingguangse:new Map,gonganlan:new Map,hong:new Map};rs.yingguangse.set("--color-sdk-base","#00ffff"),rs.yingguangse.set("--color-sdk-auxiliary","#004242"),rs.yingguangse.set("--color-sdk-auxiliary-public","#ffffff"),rs.yingguangse.set("--color-sdk-warning-0","#1BF8C3"),rs.yingguangse.set("--color-sdk-warning-1","#F16C55"),rs.yingguangse.set("--color-sdk-warning-2","#FFA145"),rs.yingguangse.set("--color-sdk-warning-3","#FFDF53"),rs.yingguangse.set("--color-sdk-text-head","#FFFFFF"),rs.yingguangse.set("--color-sdk-text-head-1","#E6F7FF"),rs.yingguangse.set("--color-sdk-text-head-2","#ADF1FF"),rs.yingguangse.set("--color-sdk-gradual","#00ffff 6.25%, #00ffff 100%"),rs.yingguangse.set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%");var ls,cs,us,ps=null,hs=0,ds=0,ms=function(){var t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b=function(t){var i=u.getElementsByClassName("tr");i.length>0&&(i[i.length-1].querySelector("input[name='time']").disabled=void 0);var n=u.getElementsByClassName("tr active")[0];n&&(n.className="tr");var o=document.createElement("div");o.className="tr active",o.innerHTML='\n
        视点'.concat(d+1,'
        \n
        \n \n
        \n
        \n
        \n '),o.addEventListener("click",(function(t){if(t.target.parentNode===o){var e=u.getElementsByClassName("tr active")[0];e&&(e.className="tr"),o.className="tr active";for(var n=0;ne+1?(l--,i[l-1].className="tr active"):l==e+1&&(i.length==e&&(l-=1),0!=i.length&&(i[l-1].className="tr active")),i.length>0){var n=i[i.length-1].querySelector("input[name='time']");n.disabled="disabled",n.value=0}break}})),c.addEventListener("input",(function(e){t.duration=Number(c.value),t.duration<0&&(t.duration=0)})),c.addEventListener("blur",(function(){c.value=Number(Number(c.value).toFixed(2)),c.value<0&&(c.value=0)})),u.insertBefore(o,i[l]),l++,i[i.length-1].querySelector("input[name='time']").disabled="disabled"},i=C.length>1&&void 0!==C[1]?C[1]:{},n=C.length>2&&void 0!==C[2]?C[2]:{},o=i.name||"漫游路径",i.points||(i.points=[]),i.repeat&&(hs=Number(i.repeat)),s=e.viewer,r=new fi(e),l=0,ps&&ps.close&&(ps.close(),ps=null),t.next=12,new W(s._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){gs({viewer:s})}});case 12:return ps=t.sent,t.next=15,ps.init();case 15:for((c=document.createElement("div")).className="fly-roam",c.innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 设置总时长\n
        \n \n 秒(s)\n \n
        \n \n
        \n
        \n \n 是否循环播放\n
        \n
        \n
        \n \n
        \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n \n
        \n
        \n
        \n
        \n
        \n
        序号
        \n
        时长(s)
        \n
        操作
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n \n ',ps.contentAppChild(c),c.getElementsByTagName("*"),u=c.getElementsByClassName("table-body")[0],p=c.getElementsByClassName("table-empty")[0],h={set:function(t,e,i){return t[e]=i,t.length>0?p.style.display="none":p.style.display="flex",!0}},d=0,m=new Proxy([],h),d=0;d0&&vs(e,m,0)})),c.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var t={duration:0,position:r.cartesian3Towgs84(s.camera.position,s),orientation:{heading:s.camera.heading,pitch:s.camera.pitch,roll:s.camera.roll}};m.splice(l,0,t),b(t),d++})),c.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(l){var t=r.cartesian3Towgs84(s.camera.position,s);m[l-1].position=t,m[l-1].orientation={heading:s.camera.heading,pitch:s.camera.pitch,roll:s.camera.roll},r.message({text:"操作成功"})}})),g=c.querySelector("input[name='totalTime']"),c.getElementsByClassName("set-total-time-btn")[0].addEventListener("click",(function(){if(m.length>0){for(var t=u.getElementsByClassName("tr"),e=Number((Number(g.value)/(t.length-1)).toFixed(2)),i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;ls&&ls.destroy(),(ls=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas)).setInputAction((function(e){gs(t)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var s,r=t.viewer;r.camera.cancelFlight(),ii(t),ni(t),r.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e[i].position.lng,e[i].position.lat,e[i].position.alt),orientation:e[i].orientation,duration:n?e[i-1].duration:.5,maximumHeight:e[i].position.alt,complete:(s=o()(a.a.mark((function n(){return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:++i<=e.length-1?fs(t,e,i,!0):ds&&e.length>1?(ds--,fs(t,e,0)):ls&&ls.destroy();case 3:case"end":return n.stop()}}),n)}))),function(){return s.apply(this,arguments)}),easingFunction:n?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})},vs=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;ds=hs,fs(t,e,i,n)},gs=function(t){t&&t.viewer&&t.viewer.camera.cancelFlight(),ls&&ls.destroy()},ys=null,bs=null,Cs=null,ws=null,ks="uniform sampler2D colorTexture;//输入的场景渲染照片\n varying vec2 v_textureCoordinates;\n uniform float tiltAngle;\n uniform float rainSize;\n uniform float rainWidth;\n uniform float rainSpeed;\n\n float hash(float x){\n return fract(sin(x*133.3)*13.13);\n }\n void main(void){\n float time = czm_frameNumber / rainSpeed;\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 c=vec3(.6,.7,.8);\n float a= tiltAngle;\n float si=sin(a),co=cos(a);\n uv*=mat2(co,-si,si,co);\n uv*=length(uv+vec2(0,4.9))*rainSize+1.;\n float v=1.-sin(hash(floor(uv.x*rainWidth))*2.);\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*20.;\n c*=v*b; //屏幕上雨的颜色\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5); //将雨和三维场景融合\n }",xs="uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSize;\n uniform float snowSpeed;\n \n float snow(vec2 uv,float scale)\n {\n float time = czm_frameNumber / snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c = 0.0;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5);\n }\n ",_s="\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n uniform float visibility;\n uniform vec4 fogColor;\n varying vec2 v_textureCoordinates;\n void main(void)\n {\n vec4 origcolor = texture2D(colorTexture, v_textureCoordinates);\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates);\n float f = visibility * (depthcolor.r - 0.3) / 0.2;\n if (f < 0.0) f = 0.0;\n else if (f > 1.0) f = 1.0;\n gl_FragColor = mix(origcolor, fogColor, f);\n }\n ";var Es,Ss,Ds,Ps,Ms,Os,Ts,Ns={},Bs=void 0,Ls=void 0,As=!1,js={};function Is(){if(this.sdk&&this.sdk.viewer){(Ls=this.sdk.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight/(2-(90+this.sdk.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(Ls=this.sdk.viewer.camera.position);var t=cs.cartesian3Towgs84(this.sdk.viewer.camera.position,this.sdk.viewer).alt,e=cs.cartesian3Towgs84(Ls,this.sdk.viewer);t>9e6&&(t=9e6),t<4e5?(this.entity.billboard.show=!0,this.entity.rectangle.show=!1):(this.entity.billboard.show=!1,this.entity.rectangle.show=!0),Bs=new Cesium.Rectangle(Cesium.Math.toRadians(e.lng-t/12e4),Cesium.Math.toRadians(e.lat-t/28e4),Cesium.Math.toRadians(e.lng+t/12e4),Cesium.Math.toRadians(e.lat+t/28e4))}}function Rs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var Fs,zs,Hs=null,Vs=null,Gs=null,Us=null,Ws=!1,Ys=10,Js="#ffd000",qs=!0,Xs=2.5,Zs="#43cf7c",Ks=!0,$s=1.8,Qs="#ff0000",ta=!1,ea=1,ia="#64b6d9",na=!1,oa=1,sa="#d084d1";function aa(){if(zs){var t=zs.viewer.camera.positionCartographic;Cesium.Math.toDegrees(t.height)<1e6?zs.viewer.scene.globe.material||!0!==Ws||la(zs):ca(zs)}}function ra(){return(ra=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=function(t){var e=t.target.value;return(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e\n
        \n
        \n
        \n 等高线\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 等高距\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 选中线颜色\n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 计曲线\n \n
        \n
        \n 计曲线颜色\n
        \n
        \n
        \n 计曲线宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 首曲线\n \n
        \n
        \n 首曲线颜色\n
        \n
        \n
        \n 首曲线宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 间曲线\n \n
        \n
        \n 间曲线颜色\n
        \n
        \n
        \n 间曲线宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 助曲线\n \n
        \n
        \n 助曲线颜色\n
        \n
        \n
        \n 助曲线宽度\n
        \n \n px\n \n
        \n
        \n
        \n
        \n ',Hs.contentAppChild(i),e.viewer.scene.postRender.removeEventListener(aa),e.viewer.scene.postRender.addEventListener(aa),(n=i.getElementsByClassName("show")[0]).checked=Ws,n.addEventListener("change",(function(t){if(t.target.checked){if(Ws=!0,e.viewer.camera.positionCartographic.height>16360){var i=e.viewer.camera.positionCartographic,n={position:{lng:Cesium.Math.toDegrees(i.longitude),lat:Cesium.Math.toDegrees(i.latitude),alt:16360}};Xe(e,n,.5)}la(e)}else Ws=!1,ca(e)})),(o=i.getElementsByClassName("equal-height-distance")[0]).value=Ys,o.addEventListener("blur",(function(t){var e=m(t);Ys=e,o.value=e,Vs&&(Vs.uniforms.spacing=5*Ys)})),new zi({el:i.getElementsByClassName("active-color")[0],size:"mini",alpha:!0,defaultColor:Js,disabled:!1,openPickerAni:"opacity",sure:function(t){Js=t,Vs&&(Vs.uniforms.activeColor=Cesium.Color.fromCssColorString(Js))},clear:function(){Js="rgba(255,255,255,1)",Vs&&(Vs.uniforms.activeColor=Cesium.Color.fromCssColorString(Js))}}),(s=i.getElementsByClassName("index-contour-switch")[0]).checked=qs,s.addEventListener("change",(function(t){qs=t.target.checked,Vs&&(Vs.uniforms.indexContourShow=qs)})),new zi({el:i.getElementsByClassName("index-contour-color")[0],size:"mini",alpha:!0,defaultColor:Zs,disabled:!1,openPickerAni:"opacity",sure:function(t){Zs=t,Vs&&(Vs.uniforms.indexContourColor=Cesium.Color.fromCssColorString(Zs))},clear:function(){Zs="rgba(255,255,255,1)",Vs&&(Vs.uniforms.indexContourColor=Cesium.Color.fromCssColorString(Zs))}}),(r=i.getElementsByClassName("index-contour-width")[0]).value=Xs,r.addEventListener("blur",(function(t){var e=m(t);Xs=e,r.value=e,Vs&&(Vs.uniforms.indexContourWidth=Xs)})),(l=i.getElementsByClassName("intermediate-contour-switch")[0]).checked=Ks,l.addEventListener("change",(function(t){Ks=t.target.checked,Vs&&(Vs.uniforms.intermediateContourShow=Ks)})),new zi({el:i.getElementsByClassName("intermediate-contour-color")[0],size:"mini",alpha:!0,defaultColor:Qs,disabled:!1,openPickerAni:"opacity",sure:function(t){Qs=t,Vs&&(Vs.uniforms.intermediateContourColor=Cesium.Color.fromCssColorString(Qs))},clear:function(){Qs="rgba(255,255,255,1)",Vs&&(Vs.uniforms.intermediateContourColor=Cesium.Color.fromCssColorString(Qs))}}),(c=i.getElementsByClassName("intermediate-contour-width")[0]).value=$s,c.addEventListener("blur",(function(t){var e=m(t);$s=e,c.value=e,Vs&&(Vs.uniforms.intermediateContourWidth=$s)})),(u=i.getElementsByClassName("halfInterval-contour-switch")[0]).checked=ta,u.addEventListener("change",(function(t){ta=t.target.checked,Vs&&(Vs.uniforms.halfIntervalContourShow=ta)})),new zi({el:i.getElementsByClassName("halfInterval-contour-color")[0],size:"mini",alpha:!0,defaultColor:ia,disabled:!1,openPickerAni:"opacity",sure:function(t){ia=t,Vs&&(Vs.uniforms.halfIntervalContourColor=Cesium.Color.fromCssColorString(ia))},clear:function(){ia="rgba(255,255,255,1)",Vs&&(Vs.uniforms.halfIntervalContourColor=Cesium.Color.fromCssColorString(ia))}}),(p=i.getElementsByClassName("halfInterval-contour-width")[0]).value=ea,p.addEventListener("blur",(function(t){var e=m(t);ea=e,p.value=e,Vs&&(Vs.uniforms.halfIntervalContourWidth=ea)})),(h=i.getElementsByClassName("supplementary-contour-switch")[0]).checked=na,h.addEventListener("change",(function(t){na=t.target.checked,Vs&&(Vs.uniforms.supplementaryContourShow=na)})),new zi({el:i.getElementsByClassName("supplementary-contour-color")[0],size:"mini",alpha:!0,defaultColor:sa,disabled:!1,openPickerAni:"opacity",sure:function(t){sa=t,Vs&&(Vs.uniforms.supplementaryContourColor=Cesium.Color.fromCssColorString(sa))},clear:function(){sa="rgba(255,255,255,1)",Vs&&(Vs.uniforms.supplementaryContourColor=Cesium.Color.fromCssColorString(sa))}}),(d=i.getElementsByClassName("supplementary-contour-width")[0]).value=oa,d.addEventListener("blur",(function(t){var e=m(t);oa=e,d.value=e,Vs&&(Vs.uniforms.supplementaryContourWidth=oa)}));case 50:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function la(t){var e=t.viewer.camera.positionCartographic;Cesium.Math.toDegrees(e.height)>1e6||(Gs&&Gs.destroy(),t.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]||t.viewer.container.appendChild(Us),(Gs=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas)).setInputAction((function(e){var i=t.viewer.scene.pickPosition(e.endPosition);if(i){var n=0,o=0;if(t.viewer&&t.viewer._element){var s=t.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];n=s.getBoundingClientRect().top+window.scrollY,o=s.getBoundingClientRect().left+window.scrollX}Us.style.left=e.endPosition.x-50+o+"px",Us.style.top=e.endPosition.y-40+n+"px",Us.style.display="block";var a=Fs.cartesian3Towgs84(i,t.viewer),r=Math.floor(a.alt/Vs.uniforms.spacing)*Vs.uniforms.spacing,l=a.alt-r,c=Vs.uniforms.spacing/(Vs.uniforms.secondaryLinesCount+1),u=Math.floor(l/c)*c+r;a.alt<0&&(a.alt=0),a.alt-u>c/2&&(u+=c),Vs.uniforms.mouseHeight=a.alt,Vs.uniforms.mousePosition=i,Us.innerHTML="".concat(u.toFixed(0))}else Us.style.display="none"}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),t.viewer.scene.globe.material=Vs)}function ca(t){Gs&&(Gs.destroy(),Gs=null),t.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]&&(Us.style.display="none",t.viewer.container.removeChild(Us)),t.viewer.scene.globe.material=null}function ua(){Cesium.Material._materialCache._materials.ElevationContour.fabric.source="\nuniform vec4 activeColor; // 选中颜色\nuniform float spacing; // 等高距\n\n// 计曲线\nuniform bool indexContourShow;\nuniform float indexContourWidth;\nuniform vec4 indexContourColor;\n// 首曲线\nuniform bool intermediateContourShow;\nuniform float intermediateContourWidth;\nuniform vec4 intermediateContourColor;\n// 间曲线\nuniform bool halfIntervalContourShow;\nuniform float halfIntervalContourWidth;\nuniform vec4 halfIntervalContourColor;\n// 助曲线\nuniform bool supplementaryContourShow;\nuniform float supplementaryContourWidth;\nuniform vec4 supplementaryContourColor;\n\nuniform float mouseHeight;\n\nuniform float secondaryLinesCount; // 0=无次线, 1=1条次线, 2=2条次线...\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // 主等高线计算\n float distanceToMainContour = mod(materialInput.height, spacing);\n \n // 抗锯齿计算\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n float dxc = abs(dFdx(materialInput.height));\n float dyc = abs(dFdy(materialInput.height));\n float dFMain = max(dxc, dyc) * czm_pixelRatio * indexContourWidth;\n#else\n float dFMain = czm_pixelRatio * indexContourWidth;\n#endif\n\n bool isMainContour = distanceToMainContour < dFMain;\n bool isSecondaryContour = false;\n float dFSecondary = 0.0;\n float secondarySpacing = 0.0;\n bool isHalfInterval = false;\n bool isIntermediate= false;\n\n // 计算当前高度所属的等高线高度\n float mainContourHeight = floor(materialInput.height / spacing) * spacing;\n float secondaryContourHeight = floor(materialInput.height / spacing * (secondaryLinesCount + 1.0)) * spacing / (secondaryLinesCount + 1.0);\n \n // 计算次线在两条主等高线之间的相对位置\n float relativeHeight = materialInput.height - mainContourHeight;\n float normalizedPosition = relativeHeight / spacing;\n \n // 计算次线索引(从主等高线开始计数)\n float lineIndex = floor(normalizedPosition * (secondaryLinesCount + 1.0));\n\n // 只有当存在次线时才计算次线\n if(secondaryLinesCount > 0.0) {\n float secondaryLinesWidth = supplementaryContourWidth;\n secondarySpacing = spacing / (secondaryLinesCount + 1.0);\n float distanceToSecondaryContour = mod(materialInput.height, secondarySpacing);\n \n // 确保次线不会与主线重叠\n float minDistanceToMain = min(distanceToMainContour, spacing - distanceToMainContour);\n bool notCloseToMain = minDistanceToMain > dFMain * 2.0; // 2倍线宽缓冲\n\n\n if (lineIndex > 0.0 && lineIndex < secondaryLinesCount) {\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isHalfInterval = abs(mod(lineIndex, 2.0)) < 0.01;\n if(isHalfInterval) {\n secondaryLinesWidth = halfIntervalContourWidth;\n }\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isIntermediate = abs(mod(lineIndex, 4.0)) < 0.01;\n if(isIntermediate) {\n secondaryLinesWidth = intermediateContourWidth;\n }\n }\n\n\n\n\n\n\n\n\n \n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n dFSecondary = max(dxc, dyc) * czm_pixelRatio * secondaryLinesWidth;\n#else\n dFSecondary = czm_pixelRatio * secondaryLinesWidth;\n#endif\n\n isSecondaryContour = (distanceToSecondaryContour < dFSecondary) && notCloseToMain;\n }\n\n // 高亮判断\n bool shouldHighlight = false;\n if(isMainContour && abs(mainContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n } else if(isSecondaryContour && abs(secondaryContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n }\n\n // 颜色输出\n vec4 outColor;\n if(shouldHighlight) {\n outColor = czm_gammaCorrect(vec4(activeColor.rgb, activeColor.a));\n } else if(isMainContour) {\n float a = indexContourColor.a;\n if(!indexContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(indexContourColor.rgb, a));\n } else if(isSecondaryContour) {\n float a = supplementaryContourColor.a;\n if(!supplementaryContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(supplementaryContourColor.rgb, a));\n if(isHalfInterval) {\n float a = halfIntervalContourColor.a;\n if(!halfIntervalContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(halfIntervalContourColor.rgb, a));\n }\n if(isIntermediate) {\n float a = intermediateContourColor.a;\n if(!intermediateContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(intermediateContourColor.rgb, a));\n }\n } else {\n outColor = vec4(0.0);\n }\n\n if(materialInput.height<0.0) {\n outColor = vec4(0.0);\n }\n\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n return material;\n}\n",Vs=new Cesium.Material({fabric:{type:"ElevationContour",uniforms:{spacing:50,activeColor:Cesium.Color.fromCssColorString(Js),mouseHeight:-1e5,mousePosition:new Cesium.Cartesian3(0,0,0),secondaryLinesCount:19,cameraHeight:0,indexContourShow:qs,indexContourWidth:Xs,indexContourColor:Cesium.Color.fromCssColorString(Zs),intermediateContourShow:Ks,intermediateContourWidth:$s,intermediateContourColor:Cesium.Color.fromCssColorString(Qs),halfIntervalContourShow:ta,halfIntervalContourWidth:ea,halfIntervalContourColor:Cesium.Color.fromCssColorString(ia),supplementaryContourShow:na,supplementaryContourWidth:oa,supplementaryContourColor:Cesium.Color.fromCssColorString(sa)}}})}function pa(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function ha(t,e,i){return t.set(ma(t,e),i),i}function da(t,e){return t.get(ma(t,e))}function ma(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}(Us=document.createElement("div")).className="YJ-customize-active-height-elm",Us.style.position="absolute",Us.style.left="10px",Us.style.top="10px",Us.style.width="100px",Us.style.textAlign="center",Us.style.pointerEvents="none",Us.style.color="#ff0000",Us.style.display="none";var fa=new WeakMap,va=new WeakMap,ga=function(){return _()((function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;k()(this,t),pa(this,fa,null),pa(this,va,{bgimg:null,img1:null,img2:null,img3:null,img4:null}),this.sdk=e,this.options=i,this.data={},this._webSocketCallback=n,this._tools=new fi(this.sdk),this.requestResource()}),[{key:"requestResource",value:function(){var t=this;this.options.host=this.options.host||h();var e;e=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+e,[],{maxReconnectAttempts:8}),this.reconnecting.onopen=function(e){t.reconnecting.onmessage=function(){var e=o()(a.a.mark((function e(i){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.data=JSON.parse(i.data),!t.data||!t.data.rmc){e.next=7;break}return e.next=4,t._tools.getClampToHeight(t.data.rmc);case 4:n=e.sent,t.position=new Cesium.Cartesian3.fromDegrees(t.data.rmc.lng,t.data.rmc.lat,n),t.create();case 7:t._webSocketCallback&&t._webSocketCallback(t.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}},{key:"create",value:function(){var t=this;if(this.getcanvas(),this.data&&this.data.rmc&&!this.entity){this.entity=new Cesium.CustomDataSource,this.sdk.viewer.dataSources.add(this.entity);var e=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:{image:this._tools.getSourceRootPath()+"/img/locate2.png",scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:1e8}),!1),width:31,height:36,pixelOffset:new Cesium.Cartesian2(0,-15)}}),i=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:{image:new Cesium.CallbackProperty((function(){return t.lableCanvas})),scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:1e8}),!1),width:220,height:140,pixelOffset:new Cesium.Cartesian2(0,-110)}});this.entity.entities.add(e),this.entity.entities.add(i)}}},{key:"loaded",value:function(t){var e;Object.defineProperty(this,"data",{get:function(){return e},set:function(i){e=i,t&&(t(),t=void 0)}})}},{key:"getcanvas",value:function(){var t=this,e=[{images:this._tools.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(this.data.rmc.lng.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(this.data.rmc.lat.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/h.png",text:"海拔:"+parseFloat(this.data.rmc.alt.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/satellite.png",text:"卫星:"+this.data.satellites||!1}];if(da(fa,this)){var i=da(fa,this).getContext("2d");i.clearRect(0,0,da(fa,this).width,da(fa,this).height),i.drawImage(da(va,this).bgimg,0,0,da(fa,this).width,da(fa,this).height);var n=0;e.forEach((function(o,s){i.drawImage(da(va,t)["img"+(s+1)],12,12+26*s),i.fillStyle="#fff",i.font="16px Arial",i.fillText(o.text,44,28+26*s),++n===e.length&&(t.lableCanvas=da(fa,t).toDataURL())}))}else{ha(fa,this,document.createElement("canvas"));var o=da(fa,this).getContext("2d");da(fa,this).width=220,da(fa,this).height=140;var s=new Image;da(va,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,da(fa,t).width,da(fa,t).height),e.forEach((function(i,n){var s=new Image;da(va,t)["img"+(n+1)]=s,s.src=i.images,s.onload=function(){o.drawImage(s,12,12+26*n),o.fillStyle="#fff",o.font="16px Arial",o.fillText(i.text,44,28+26*n),++a===e.length&&(t.lableCanvas=da(fa,t).toDataURL())}}))}}}},{key:"flyTo",value:(t=o()(a.a.mark((function t(){var e,i,n=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:{},!this.data||!this.data.rmc){t.next=9;break}return t.next=4,this._tools.getClampToHeight(this.data.rmc);case 4:i=t.sent,pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.camera.flyTo({orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:Cesium.Cartesian3.fromDegrees(this.data.rmc.lng,this.data.rmc.lat,i+(e.height||500))});case 9:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"remove",value:function(){ha(fa,this,null),ha(va,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var t}();var ya=i(9),ba=i.n(ya);function Ca(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var wa=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return k()(this,e),(i=Ca(this,e,[t,n])).viewer=t.viewer,i.entityHasCreated=!1,i.event=null,i.tip=null,i.points_ids=[],i.color=n.color||"rgba(185,14,14,0.58)",i._is2D=o,i._sdk2D=Ie(),i}return sn()(e,t),_()(e,[{key:"create_point",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.viewer,i=this.randomString();return e.entities.add(new Cesium.Entity({id:i,position:t,billboard:{image:this.getSourceRootPath()+"/img/point.png",color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(t){this.viewer.entities.removeById(t),!this._is2D&&this._sdk2D&&this._sdk2D.viewer&&this._sdk2D.viewer.entities&&this._sdk2D.viewer.entities.removeById(t)}},{key:"start",value:function(){}},{key:"end",value:function(){var t=this;YJ.Measure.SetMeasureStatus(!1),this.entityHasCreated=!1,this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy(),this.points_ids.forEach((function(e){t.remove_entity(e)}))}}])}(fi);function ka(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function xa(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=_a(this,e,[t,n])).color=n.color||"rgba(255,0,0,0.5)",i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(t,i){if("2D"!==l){if(l="3D",r.positions=c.concat(xa({},i)),r.tip.setPosition(i,t.position.x,t.position.y),!r.polygonHasCreated){var n=e.create_polygon(r);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(t(null,u),r.end())})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.positions=c.concat(xa({},e)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=c.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",r.positions=c.concat(xa({},i)),r.tip.setPosition(i,t.position.x+r.viewer.canvas.width,t.position.y),!r.polygonHasCreated){var n=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i,r._sdk2D.viewer))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(t(null,u),r.end())})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.positions=c.concat(xa({},e)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=c.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.polygonHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)})),material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions.concat(t.positions[0])})),width:3,material:Cesium.Color.fromCssColorString(t.color).withAlpha(1),clampToGround:!0,zIndex:99999999}})),i}}])}(wa),Sa=function(){return _()((function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,t),this.sdk=e,this.viewer=e.viewer,this.height=i.height||70,this.maxHeigh=-1e6,this.precision=i.precision||125,this.Dialog=n,this.result={allArea:"",cutArea:"",cutVolume:"",fillArea:"",fillVolume:"",noArea:""},this.entities=[],this.Draw=new Ea(this.sdk),YJ.Analysis.AnalysesResults.push(this),t.EditBox(this)}),[{key:"create",value:function(){var t=this;this.clean(),this.Draw.start((function(e,i){if(!i||i.length<3){return console.warn("最少需要三个坐标!"),void(window.ELEMENT&&window.ELEMENT.Message({message:"最少需要三个坐标!",type:"warning",duration:1500}))}for(var n=[],o=0;othis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,0),height:o}}},{key:"clean",value:function(){this.Draw&&this.Draw.end();for(var t=0;t\n
        \n
        \n
        \n 绘制分析区域\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 基准高度\n
        \n \n m\n \n
        \n
        \n
        \n 精度\n
        \n \n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 总分析面积:\n 0\n \n
        \n
        \n 无须填挖面积:\n 0\n \n
        \n
        \n
        \n
        \n 填方面积:\n 0\n \n
        \n
        \n 挖方面积:\n 0\n \n
        \n
        \n
        \n
        \n 填方体积:\n 0\n \n
        \n
        \n 挖方体积:\n 0\n \n
        \n
        \n
        \n \n ',e._DialogObject.contentAppChild(i),e._DialogObject._element.body.className=e._DialogObject._element.body.className+" cut-fill",(n=i.querySelector("input[name='height']")).value=e.height,n.addEventListener("blur",(function(t){var i=t.target.value;"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Pa(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Oa(i=Ma(this,e,[t,n]),Ba,!1),i.sdk=t,i.options={},i.options.name=n.name,i.options.risingSpeed=1,i.options.minWaterLevel=0,i.options.maxWaterLevel=0,i.options.waterVolume=0,i.currentWaterLaver,i.color="#00d9ff66",i.Dialog=o,i.Draw=new Ea(i.sdk),i.positions,i.status=!0,i.area=0,i._elms={},YJ.Analysis.AnalysesResults.push(i),e.EditBox(i),i}return sn()(e,t),_()(e,[{key:"move",value:function(){var t=this;this.TweenAnimate&&TWEEN.remove(this.TweenAnimate),Ta(Ba,this,!1);var e=this._DialogObject._element.body,i=e.getElementsByClassName("pause")[0],n=e.getElementsByClassName("start")[0],s=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},s).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currentWaterLaver=i.waterLevel;case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onComplete((function(){n.style.display="flex",i.style.display="none"})).start(),n.style.display="none",i.style.display="flex"}},{key:"restart",value:function(){var t=this;this.currentWaterLaver=this.options.minWaterLevel,Ta(Ba,this,!1);var e=!1;this.TweenAnimate&&(e=this.TweenAnimate._isPaused,TWEEN.remove(this.TweenAnimate));var i=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},i).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currentWaterLaver=i.waterLevel;case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).start(),e&&this.pause()}},{key:"start",value:function(){var t,e;this.TweenAnimate&&(e=this,(t=Ba).get(Na(t,e))?this.move():this.TweenAnimate._isPlaying?this.TweenAnimate.resume():this.TweenAnimate.start())}},{key:"pause",value:function(){this.TweenAnimate&&this.TweenAnimate.pause()}},{key:"calculateVolumeHeight",value:function(){that.options.maxWaterLevel}},{key:"flyTo",value:function(){if(this.positions&&0!==this.positions.length){ii(this.sdk),ni(this.sdk);for(var t=[],e=0;ei[o].alt&&(t.options.minWaterLevel=i[o].alt),n.push(i[o].lng,i[o].lat);var s=Cesium.Cartesian3.fromDegreesArray(n);t.currentWaterLaver=t.options.minWaterLevel,t.entity=t.sdk.viewer.entities.add({polygon:{hierarchy:new Cesium.PolygonHierarchy(s),height:new Cesium.CallbackProperty((function(){return t.options.minWaterLevel}),!1),extrudedHeight:new Cesium.CallbackProperty((function(){return t.currentWaterLaver}),!1),material:Cesium.Color.fromCssColorString(t.color)}}),t.area=t.computeArea(i),t.TweenAnimate&&(TWEEN.remove(t.TweenAnimate),t.TweenAnimate=null);var a=t._DialogObject._element.body,r=a.getElementsByClassName("pause")[0];a.getElementsByClassName("start")[0].style.display="flex",r.style.display="none"}))}},{key:"EditBox",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"淹没分析",left:"180px",top:"100px",closeCallBack:function(){i.destroy(),i.Dialog.closeCallBack&&i.Dialog.closeCallBack()}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" submerge",(n=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 水量\n
        \n \n \n \n
        \n
        \n
        \n 最小水位\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 水面面积\n
        \n \n \n \n
        \n
        \n
        \n 最大水位\n
        \n \n m\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n 上升速度\n
        \n
        \n
        \n \n
        \n \n m/s\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n \n \n \n \n \n \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        序号
        \n
        经度
        \n
        纬度
        \n
        高程
        \n
        \n
        \n
        \n
        \n
        \n
        \n

        暂无数据

        \n
        \n
        \n \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).className="el-button",o.innerHTML="暂停",o.style.width="80px",n.getElementsByClassName("draw")[0].addEventListener("click",(function(){e.create(i)})),n.getElementsByClassName("analog")[0].addEventListener("click",(function(){i.move()})),n.getElementsByClassName("flyto")[0].addEventListener("click",(function(){i.flyTo()})),n.getElementsByClassName("reset")[0].addEventListener("click",(function(){i.restart()})),s=n.getElementsByClassName("pause")[0],r=n.getElementsByClassName("start")[0],s.addEventListener("click",(function(){i.pause(),s.style.display="none",r.style.display="flex"})),r.addEventListener("click",(function(){i.start(),r.style.display="none",s.style.display="flex"})),(l=n.querySelectorAll("input[name='risingSpeed']"))[0].value=i.options.risingSpeed,l[1].value=i.options.risingSpeed,l[0].addEventListener("input",(function(t){Ta(Ba,i,!0),i.options.risingSpeed=Number(t.target.value)})),l[1].addEventListener("input",(function(t){if("."!=t.data){Ta(Ba,i,!0);var e=Number(t.target.value),n=Number(l[0].max),o=Number(l[0].min);i.options.risingSpeed=e>n?n:e999999999&&(e=999999999),e<0&&(e=0),i.options.minWaterLevel=Math.floor(1e4*e)/1e4,i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}})),Object.defineProperty(i.options,"minWaterLevel",{get:function(){return Number(c.value)},set:function(t){c.value=Math.floor(1e4*Number(t))/1e4}}),(u=n.querySelector("input[name='maxWaterLevel']")).value=i.options.maxWaterLevel,u.addEventListener("input",(function(t){if("."!=t.data){Ta(Ba,i,!0);var e=Number(t.target.value);e>999999999&&(e=999999999),e<0&&(e=0),e99999999999999&&(e=99999999999999),e<0&&(e=0),i.options.waterVolume=Math.floor(1e4*e)/1e4,i.area&&(i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel)}})),Object.defineProperty(i.options,"waterVolume",{get:function(){return Number(p.value)},set:function(t){p.value=t}}),(h=n.getElementsByClassName("area")[0]).value=i.area,Object.defineProperty(i,"area",{get:function(){return Number(h.value)},set:function(t){h.value=t,i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}}),d=n.getElementsByClassName("table-body")[0],m=n.getElementsByClassName("table-empty")[0],Object.defineProperty(i,"positions",{get:function(){return i._positions},set:function(t){if(t&&t.length>0){m.style.display="none";for(var e="",i=0;i\n
        '.concat(i+1,'
        \n
        ').concat(Number(t[i].lng.toFixed(10)),'
        \n
        ').concat(Number(t[i].lat.toFixed(10)),'
        \n
        ').concat(Number(t[i].alt.toFixed(4)),"
        \n ");d.innerHTML=e}else d.innerHTML="",m.style.display="flex"}});case 51:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=Da(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type&&(i=Number(i)),t[r.value]=i})),"IMG"==e[n].nodeName?e[n].src=t[r.value]:e[n].value=t[r.value]),t._elms[r.value]?t._elms[r.value].push(e[n]):t._elms[r.value]=[e[n]],s.push(r.name);break;case"@click":e[n].addEventListener("click",(function(e){"function"==typeof t[r.value]&&t[r.value](e)})),s.push(r.name);break;case"@change":o=!0,i.push((function(e){var i=e.target.value;"number"==e.target.type&&""!=i&&(i=Number(i),e.target.value=i),"function"==typeof t[r.value]&&t[r.value](e,i)}))}};for(r.s();!(a=r.n()).done;)l()}catch(t){r.e(t)}finally{r.f()}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Ia(this,e,[t,n])).viewer=t.viewer,i.options={},i.options.viewPosition=n.viewPosition,i.options.viewPositionEnd=n.viewPositionEnd,i.options.horizontalViewAngle=n.horizontalViewAngle||0===n.horizontalViewAngle?n.horizontalViewAngle:90,i.options.verticalViewAngle=n.verticalViewAngle||0===n.verticalViewAngle?n.verticalViewAngle:60,i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i._elms={},i.viewPointHeight=n.viewPointHeight,i.ids=[],i.Dialog=o,i._EventBinding=new wn,i.html=null,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"viewPosition",get:function(){return this.options.viewPosition},set:function(t){this.options.viewPosition=t,this.ids[0]&&(this.viewer.entities.getById(this.ids[0]).position=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt)),this.update()}},{key:"viewPositionEnd",get:function(){return this.options.viewPositionEnd},set:function(t){this.options.viewPositionEnd=t,this.ids[1]&&(this.viewer.entities.getById(this.ids[1]).position=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt)),this.update()}},{key:"horizontalViewAngle",get:function(){return this.options.horizontalViewAngle},set:function(t){if(this.options.horizontalViewAngle=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var e=this._DialogObject._element.content;e.querySelector("input[name='horizontalViewAngle']").value=t,e.getElementsByClassName("range-node-active")[0].getElementsByClassName("range-node-active-text")[0].innerHTML=t+"°",e.getElementsByClassName("range-process")[0].style.width=t/180*100+"%"}this.update()}},{key:"visibleAreaColor",get:function(){return this.options.visibleAreaColor},set:function(t){this.options.visibleAreaColor=t,this.update()}},{key:"invisibleAreaColor",get:function(){return this.options.invisibleAreaColor},set:function(t){this.options.invisibleAreaColor=t,this.update()}},{key:"verticalViewAngle",get:function(){return this.options.verticalViewAngle},set:function(t){this.options.verticalViewAngle=t,this.update()}},{key:"viewDistance",get:function(){var t=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),e=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return Cesium.Cartesian3.distance(t,e)}},{key:"viewHeading",get:function(){var t,e,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return t=o,e=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(t),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,e,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))}},{key:"viewPitch",get:function(){var t,e,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return t=o,e=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(t),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,e,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.asin(i.z))}},{key:"add",value:function(){this.createLightCamera(),this.createShadowMap(),this.createPostStage(),this.drawSketch(),e.getcanvas(this)}},{key:"update",value:function(){this.clear(),this.add()}},{key:"clear",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,this.sketch&&(this.viewer.entities.removeById(this.sketch.id),this.sketch=null),this.frustumOutline&&(this.viewer.entities.removeById(this.frustumOutline.id),this.frustumOutline=null),this.postStage&&(this.viewer.scene.postProcessStages.remove(this.postStage),this.postStage=null)}},{key:"destroy",value:function(){var t=this;this.clear(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(e){t.viewer.entities.removeById(e)})),this.ids=[],this.viewBillboardPrimitive&&this.viewer.scene.primitives.remove(this.viewBillboardPrimitive),this.viewBillboardPrimitive=null,this.options.viewPosition=null,this.options.viewPositionEnd=null,YJ.Measure.SetMeasureStatus(!1),this._originalShadowMap&&(this.viewer.scene.shadowMap=this._originalShadowMap,this._originalShadowMap=null),this.viewer.shadows=this.viewer._shadows}},{key:"nodeEdit",value:function(){var t,e=this;YJ.Measure.GetMeasureStatus()?console.log("上一次测量未结束"):(this.editevent&&this.editevent.destroy(),this.ids.forEach((function(t){e.viewer.entities.getById(t).show=!0})),YJ.Measure.SetMeasureStatus(!0),this.editevent=new X(this.sdk),this.editevent.mouse_left((function(i,n){var o=e.viewer.scene.pick(i.position);o&&o.id&&o.id.id&&-1!=e.ids.indexOf(o.id.id)&&(!t||t.id!=o.id.id)&&(t=o.id,e.viewer.entities.getById(e.ids[0]).position=new Cesium.Cartesian3.fromDegrees(e.viewPosition.lng,e.viewPosition.lat,e.viewPosition.alt),e.viewer.entities.getById(e.ids[1]).position=new Cesium.Cartesian3.fromDegrees(e.viewPositionEnd.lng,e.viewPositionEnd.lat,e.viewPositionEnd.alt),e.ControllerObject&&e.ControllerObject.destroy(),e.ControllerObject=new qo(e.sdk,{position:ja({},e.cartesian3Towgs84(t.position._value,e.sdk.viewer))}),e.ControllerObject.controllerCallBack=function(i,n){i.position.alt<0&&(i.position.alt=0),t.position=new Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt),n&&(0==e.ids.indexOf(o.id.id)?e.viewPosition=i.position:e.viewPositionEnd=i.position,YJ.Measure.SetMeasureStatus(!0))},e.ControllerObject.editTranslational())})),this.editevent.mouse_right((function(i,n){YJ.Measure.SetMeasureStatus(!1),e.editevent&&e.editevent.destroy(),e.ControllerObject&&e.ControllerObject.destroy(),e.ids.forEach((function(t){e.viewer.entities.getById(t).show=!1})),t=null})),this.editevent.mouse_move((function(t,e){})),this.editevent.gesture_pinck_start((function(i,n){var o=new Date;e.editevent.gesture_pinck_end((function(){new Date-o>=500&&(YJ.Measure.SetMeasureStatus(!1),e.editevent&&e.editevent.destroy(),e.ControllerObject&&e.ControllerObject.destroy(),e.ids.forEach((function(t){e.viewer.entities.getById(t).show=!1})),t=null)}))})))}},{key:"createLightCamera",value:function(){if(this.options.viewPosition){this.lightCamera=new Cesium.Camera(this.viewer.scene),this.lightCamera.position=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),this.lightCamera.frustum.near=.001*this.viewDistance,this.lightCamera.frustum.far=this.viewDistance;var t=Cesium.Math.toRadians(this.horizontalViewAngle),e=Cesium.Math.toRadians(this.verticalViewAngle),i=this.viewDistance*Math.tan(t/2)*2/(this.viewDistance*Math.tan(e/2)*2);this.lightCamera.frustum.aspectRatio=i,this.lightCamera.frustum.fov=t>e?t:e,this.lightCamera.setView({destination:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:{heading:Cesium.Math.toRadians(this.viewHeading||0),pitch:Cesium.Math.toRadians(this.viewPitch||0),roll:0}})}}},{key:"createShadowMap",value:function(){this.shadowMap=new Cesium.ShadowMap({context:this.viewer.scene.context,lightCamera:this.lightCamera,enabled:!0,isPointLight:!0,pointLightRadius:this.viewDistance,cascadesEnabled:!1,size:2048,softShadows:!0,normalOffset:!1,fromLightSource:!1}),this._originalShadowMap||(this._originalShadowMap=this.viewer.scene.shadowMap),this.viewer.scene.shadowMap=this.shadowMap}},{key:"createPostStage",value:function(){var t=this;Number(Cesium.VERSION.split(".")[1])>=102&&gn()("fs");var e=new Cesium.PostProcessStage({fragmentShader:"\n #define USE_CUBE_MAP_SHADOW true\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n varying vec2 v_textureCoordinates;\n uniform mat4 camera_projection_matrix;\n uniform mat4 camera_view_matrix;\n uniform samplerCube shadowMap_textureCube;\n uniform mat4 shadowMap_matrix;\n uniform vec4 shadowMap_lightPositionEC;\n uniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\n uniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\n uniform float helsing_viewDistance;\n uniform vec4 helsing_visibleAreaColor;\n uniform vec4 helsing_invisibleAreaColor;\n\n struct zx_shadowParameters\n {\n vec3 texCoords;\n float depthBias;\n float depth;\n float nDotL;\n vec2 texelStepSize;\n float normalShadingSmooth;\n float darkness;\n };\n\n float czm_shadowVisibility(samplerCube shadowMap, zx_shadowParameters shadowParameters)\n {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec3 uvw = shadowParameters.texCoords;\n depth -= depthBias;\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n }\n\n vec4 getPositionEC(){\n return czm_windowToEyeCoordinates(gl_FragCoord);\n }\n\n vec3 getNormalEC(){\n return vec3(1.);\n }\n\n vec4 toEye(in vec2 uv,in float depth){\n vec2 xy=vec2((uv.x*2.-1.),(uv.y*2.-1.));\n vec4 posInCamera=czm_inverseProjection*vec4(xy,depth,1.);\n posInCamera=posInCamera/posInCamera.w;\n return posInCamera;\n }\n\n vec3 pointProjectOnPlane(in vec3 planeNormal,in vec3 planeOrigin,in vec3 point){\n vec3 v01=point-planeOrigin;\n float d=dot(planeNormal,v01);\n return(point-planeNormal*d);\n }\n\n float getDepth(in vec4 depth){\n float z_window=czm_unpackDepth(depth);\n z_window=czm_reverseLogDepth(z_window);\n float n_range=czm_depthRange.near;\n float f_range=czm_depthRange.far;\n return(2.*z_window-n_range-f_range)/(f_range-n_range);\n }\n\n float shadow(in vec4 positionEC){\n vec3 normalEC=getNormalEC();\n zx_shadowParameters shadowParameters;\n shadowParameters.texelStepSize=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy;\n shadowParameters.depthBias=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z;\n shadowParameters.normalShadingSmooth=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w;\n shadowParameters.darkness=shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w;\n vec3 directionEC=positionEC.xyz-shadowMap_lightPositionEC.xyz;\n float distance=length(directionEC);\n directionEC=normalize(directionEC);\n float radius=shadowMap_lightPositionEC.w;\n if(distance>radius)\n {\n return 2.0;\n }\n vec3 directionWC=czm_inverseViewRotation*directionEC;\n shadowParameters.depth=distance/radius-0.0003;\n shadowParameters.nDotL=clamp(dot(normalEC,-directionEC),0.,1.);\n shadowParameters.texCoords=directionWC;\n float visibility=czm_shadowVisibility(shadowMap_textureCube,shadowParameters);\n return visibility;\n }\n\n bool visible(in vec4 result)\n {\n result.x/=result.w;\n result.y/=result.w;\n result.z/=result.w;\n return result.x>=-1.&&result.x<=1.\n &&result.y>=-1.&&result.y<=1.\n &&result.z>=-1.&&result.z<=1.;\n }\n\n void main(){\n // 釉色 = 结构二维(颜色纹理, 纹理坐标)\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\n // 深度 = 获取深度(结构二维(深度纹理, 纹理坐标))\n float depth = getDepth(texture2D(depthTexture, v_textureCoordinates));\n // 视角 = (纹理坐标, 深度)\n vec4 viewPos = toEye(v_textureCoordinates, depth);\n // 世界坐标\n vec4 wordPos = czm_inverseView * viewPos;\n // 虚拟相机中坐标\n vec4 vcPos = camera_view_matrix * wordPos;\n float near = .001 * helsing_viewDistance;\n float dis = length(vcPos.xyz);\n if(dis > near && dis < helsing_viewDistance){\n // 透视投影\n vec4 posInEye = camera_projection_matrix * vcPos;\n // 可视区颜色\n // vec4 helsing_visibleAreaColor=vec4(0.,1.,0.,.5);\n // vec4 helsing_invisibleAreaColor=vec4(1.,0.,0.,.5);\n if(visible(posInEye)){\n float vis = shadow(viewPos);\n if(vis > 0.3){\n gl_FragColor = mix(gl_FragColor,helsing_visibleAreaColor,.5);\n } else{\n gl_FragColor = mix(gl_FragColor,helsing_invisibleAreaColor,.5);\n }\n }\n }\n }",uniforms:{shadowMap_textureCube:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_shadowMapTexture")},shadowMap_matrix:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_shadowMapMatrix")},shadowMap_lightPositionEC:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_lightPositionEC")},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState"));var e=t.shadowMap._pointBias;return Cesium.Cartesian4.fromElements(e.normalOffsetScale,t.shadowMap._distance,t.shadowMap.maximumDistance,0,new Cesium.Cartesian4)},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState"));var e=t.shadowMap._pointBias,i=new Cesium.Cartesian2;return i.x=1/t.shadowMap._textureSize.x,i.y=1/t.shadowMap._textureSize.y,Cesium.Cartesian4.fromElements(i.x,i.y,e.depthBias,e.normalShadingSmooth,new Cesium.Cartesian4)},camera_projection_matrix:this.lightCamera.frustum.projectionMatrix,camera_view_matrix:this.lightCamera.viewMatrix,helsing_viewDistance:function(){return t.viewDistance},helsing_visibleAreaColor:Cesium.Color.fromCssColorString(this.visibleAreaColor),helsing_invisibleAreaColor:Cesium.Color.fromCssColorString(this.invisibleAreaColor)}});this.postStage=this.viewer.scene.postProcessStages.add(e)}},{key:"drawFrustumOutline",value:function(){var t=new Cesium.Cartesian3,e=new Cesium.Matrix3,i=new Cesium.Quaternion,n=(this.lightCamera.positionWC,this.lightCamera.directionWC),o=this.lightCamera.upWC,s=this.lightCamera.rightWC;s=Cesium.Cartesian3.negate(s,t);var a=e;Cesium.Matrix3.setColumn(a,0,s,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,n,a);var r=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:r}),id:Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOWGREEN),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumOutline=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:[l],appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1})}))}},{key:"drawSketch",value:function(){this.sketch=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN}}),this.frustumOutline=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),innerRadii:new Cesium.Cartesian3(1e-4,1e-4,1e-4),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:1,slicePartitions:1,outlineColor:Cesium.Color.YELLOWGREEN}})}}],[{key:"create",value:function(t){t.destroy();var i=0;function n(){t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),YJ.Measure.SetMeasureStatus(!1),t.tip.destroy(),t.event.destroy(),t.tip=null,t.event=null}YJ.Measure.GetMeasureStatus()?console.log("上一次测量未结束"):(t.event=new X(t.sdk),t.tip=new Z("左键选择观测点位置,右键取消",t.sdk),YJ.Measure.SetMeasureStatus(!0),t.event.mouse_left((function(o,s){t.viewPosition||(t.options.viewPosition=t.cartesian3Towgs84(s,t.viewer),t.ids.push(e.create_point(t,s)),t.tip.set_text("左键选择最远观测点位置,右键取消")),2===++i&&(t.options.viewPositionEnd=t.cartesian3Towgs84(s,t.viewer),t.ids.push(e.create_point(t,s)),n(),t.update())})),t.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.mouse_right((function(e,i){t.ids.forEach((function(e){t.viewer.entities.removeById(e)})),t.ids=[],n()})),t.event.gesture_pinck_start((function(e,i){var o=new Date;t.event.gesture_pinck_end((function(){new Date-o>=500&&(t.ids.forEach((function(e){t.viewer.entities.removeById(e)})),t.ids=[],n())}))})))}},{key:"create_point",value:function(t,e){var i=t.randomString(),n=t.cartesian3Towgs84(e,t.viewer),o={id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return t.viewer.entities.add(new Cesium.Entity(o)),i}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"可视域分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),i.editevent&&i.editevent.destroy(),i.ControllerObject&&i.ControllerObject.destroy(),i.ids.forEach((function(t){i.viewer.entities.removeById(t)}))}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" view-shed",(n=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 位置拾取(起点、终点)\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n
        \n 视域夹角\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n 45°\n 90°\n 135°\n 180°\n
        \n
        \n \n
        \n
        \n
        \n
        \n \n ',i._DialogObject.contentAppChild(n),i._DialogObject._element.body.getElementsByClassName("edit")[0].addEventListener("click",(function(){i.nodeEdit()})),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){e.create(i)})),i._DialogObject.footAppChild(o),i.html=n,s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element,(r=n.querySelector("input[name='horizontalViewAngle']")).value=i.options.horizontalViewAngle,l=n.getElementsByClassName("range-node-active")[0],c=l.getElementsByClassName("range-node-active-text")[0],u=n.getElementsByClassName("range-process")[0],p=i.horizontalViewAngle/180*100,l.style.left=p+"%",u.style.width=p+"%",c.innerHTML=i.horizontalViewAngle+"°",r.addEventListener("input",(function(){var t=r.value/180*100;l.style.left=t+"%",u.style.width=t+"%",c.innerHTML=r.value+"°"})),r.addEventListener("change",(function(){clearTimeout(h),h=setTimeout((function(){i.horizontalViewAngle=r.value}),300)}));case 31:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"getcanvas",value:function(t){if(t.viewPosition){t.viewBillboardPrimitive&&(t.viewer.scene.primitives.remove(t.viewBillboardPrimitive),t.viewBillboardPrimitive=null);var e=document.createElement("canvas"),i=e.getContext("2d");e.width=220,e.height=180,e.style.background="#000000";var n=new Image,o=[{images:t.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(t.viewPosition.lng.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(t.viewPosition.lat.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/h.png",text:"高度:"+Number((parseFloat(t.viewPosition.alt.toFixed(2))+Number(t.viewPointHeight)).toFixed(2))+" m"},{images:t.getSourceRootPath()+"/img/bubble/heading.png",text:"偏航角:"+parseFloat(t.viewHeading.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/pitch.png",text:"俯仰角:"+parseFloat(t.viewPitch.toFixed(10))+"°"}];n.src=t.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;n.onload=function(){i.drawImage(n,0,0,e.width,e.height),o.forEach((function(n,a){var r=new Image;r.src=n.images,r.onload=function(){i.drawImage(r,12,12+26*a),i.fillStyle="#fff",i.font="12px Arial",i.fillText(n.text,44,28+26*a),++s===o.length&&(t.viewBillboardPrimitive&&t.viewer.scene.primitives.remove(t.viewBillboardPrimitive),t.viewBillboardPrimitive=t.viewer.scene.primitives.add(new Cesium.BillboardCollection),t.viewBillboardPrimitive.add({position:Cesium.Cartesian3.fromDegrees(t.viewPosition.lng,t.viewPosition.lat,t.viewPosition.alt+t.viewPointHeight),image:e,width:200,height:180,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}))}}))}}}}]);var i}(fi);function Fa(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return za(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?za(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function za(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Va(i=Ha(this,e,[t,n]),Wa,new Map),i.viewer=t.viewer,i.options={},i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i.ids=[],i.primitives=[],i.viewpointPrimitive=null,i._elms={},i.precision=n.precision,i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new wn,i.html=null,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"precision",get:function(){return this.options.precision},set:function(t){var e=Math.floor(Number(t));isNaN(e)?e=20:e<1&&(e=1),this.options.precision=e,this._elms.precision&&this._elms.precision.forEach((function(t){t.value=e}))}},{key:"analyse",value:function(){var t=this,i=[this.center.lng,this.center.lat],n=this.radius/1e3,o=turf.circle(i,n,{steps:180,units:"kilometers",properties:{foo:"bar"}});this.viewpointPrimitive||(this.viewpointPrimitive=this.viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection)),this.viewBillboardPrimitive||(this.viewBillboardPrimitive=this.viewer.scene.primitives.add(new Cesium.BillboardCollection));for(var s=[],a=n/this.precision,r=1;r=s.length){var e=Ga(Wa,t).get(f);e&&clearInterval(e.event)}else!function(t){for(var e=[],n=t,o=0;o.01&&Math.abs(b.position.y-f.y)>.01&&Math.abs(b.position.z-f.z)>.01&&(w=Cesium.Color.RED);var k=new Cesium.GroundPolylineGeometry({positions:Cesium.Cartesian3.fromDegreesArray([].concat(L()(a),L()(r),L()(l),L()(c),L()(a))),width:2}),x=new Cesium.GeometryInstance({geometry:k,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(w),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});e.push(x)}m.primitives.push(m.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:e,appearance:new Cesium.PolylineColorAppearance})))}(d),d+=1}),0);Ga(Wa,this).set(f,{event:v})}},{key:"destroy",value:function(){var t,e,i,n,o=Fa(Ga(Wa,this));try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);clearInterval(a.event)}}catch(t){o.e(t)}finally{o.f()}e=Wa,i=this,n=new Map,e.set(Ua(e,i),n);for(var r=0;r\n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 采样精度\n \n
        \n
        \n
        \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){i.viewer.terrainProvider.availability?e.create(i):window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500})})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"getcanvas",value:function(t){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=220,e.height=140,e.style.background="#000000";var n=new Image,s=[{images:t.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(t.center.lng.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(t.center.lat.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/h.png",text:"视高:"+t.viewPointHeight+" m"},{images:t.getSourceRootPath()+"/img/bubble/radius.png",text:"半径:"+t.radius+" m"}];n.src=t.getSourceRootPath()+"/img/bubble/bubble.png";var r=0;return new Promise(function(){var t=o()(a.a.mark((function t(o,l){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.onload=function(){i.drawImage(n,0,0,e.width,e.height),s.forEach((function(t,n){var a=new Image;a.src=t.images,a.onload=function(){i.drawImage(a,12,12+26*n),i.fillStyle="#fff",i.font="12px Arial",i.fillText(t.text,44,28+26*n),++r===s.length&&o(e)}}))};case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}())}}]);var i}(fi);function Ja(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function qa(t){for(var e=1;e35?35:200*t;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<=2)window.ELEMENT&&window.ELEMENT.Message({message:"至少拥有三个坐标位置!",type:"warning",duration:1500});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?p:r,l=h>l?h:l}o.push(o[0]);var d=[s,a,r,l],m=turf.polygon([o]),f=turf.squareGrid(d,t,{mask:m});e.createEllipse(f)}}))}},{key:"createNew4Num",value:function(t){var e=this,i=t;this.Draw.start((function(t,n){if(!n||n.length<=2)console.warn("至少拥有三个坐标位置!");else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?p:r,l=h>l?h:l}o.push(o[0]);var d=[s,a,r,l],m=r-s,f=l-a;f=f>m?f:m;var v=turf.polygon([o]),g=turf.area(v);g>5e12?i-=25:g>1e12?i-=20:g>5e11?i-=15:g>1e11?i-=10:g>6e10&&(i-=5);var y=f/i,b=2e3*y>35?35:2e3*y;e.arrowWidth=b<15?15:b;var C=turf.squareGrid(d,y,{units:"degrees",mask:v});e.createEllipse(C)}}))}},{key:"createEllipse",value:function(t){for(var e=[],i=0;i0&&function t(i){Cesium.sampleTerrainMostDetailed(h.viewer.scene.terrainProvider,i).then((function(i){m++;var n=e.slice(m*d,(m+1)*d);n.length>0&&t(n);var o=[],s=i.reduce((function(t,e,i,n){var s=10*i,a=s+10,r=n.slice(s,a);return 0!=r.length&&(o[i]=r),o}),[]);h.calculateSlope(s)}))}(f)}},{key:"createPolygonInsrance",value:function(t,e,i){for(var n=[],o=1;o0?[Cesium.Cartographic.toCartesian(s),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(s)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:r,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}},{key:"calculateSlope",value:function(t){for(var e=this,i=[],n=[],o=0;or&&(r=u,l=c)}var p=new Cesium.Cartographic(a.longitude,a.latitude,0),h=new Cesium.Cartographic(s[l].longitude,s[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(p),Cesium.Cartographic.toCartesian(h)),m=Math.abs(r/d),f=this.calculateSlopeColor(m,.4),v=this.createPolygonInsrance(s,f,m);n.push(v);var g=l>4?s[l-4]:s[l+4],y=s[l],b=this.createArrowInstance(y,a,g,r,m);i.push(b)}var C=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:n,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),w=this.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));this.result.push(w,C),this.event=new X(this.sdk);var k=function(t,i){var n=document.getElementById("SlopeAspect-box");n||((n=document.createElement("div")).id="SlopeAspect-box",n.style.pointerEvents="none",n.style.display="none",n.style.position="absolute",n.style.background="#333333",n.style.color="#fff",n.style.color="#fff",n.style.padding="5px",n.style.fontSize="12px",n.style.borderRadius="5px",n.style.transform="translate(-50%, -10px)",n.innerHTML='\n
        坡度:
        \n \n ',document.body.appendChild(n));var o=n.getElementsByClassName("value")[0],s=qa({},t.position),a=e.sdk.viewer.scene.pick(s);if(a&&a.id&&a.id.type&&"SlopeAspect"===a.id.type){var r=0,l=0;if(e.sdk.viewer&&e.sdk.viewer._element){var c=e.sdk.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];r=c.getBoundingClientRect().top+window.scrollY,l=c.getBoundingClientRect().left+window.scrollX}n.style.display="block",n.style.left=s.x+2+l+"px",n.style.top=s.y-20+r+"px",o.innerHTML="坡度:"+Number(Cesium.Math.toDegrees(a.id.value||0).toFixed(2))+"°"}else n.style.display="none"};this.event.mouse_move((function(t,e){var i={position:qa({},t.endPosition)};k(i)})),this.event.mouse_left(k),this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll},this.sdk.viewer.scene.preRender.addEventListener(this._watchEvent,this)}},{key:"_watchEvent",value:function(){if(this._camera.position.x.toFixed(8)!==this.sdk.viewer.camera.position.x.toFixed(8)||this._camera.position.y.toFixed(8)!==this.sdk.viewer.camera.position.y.toFixed(8)||this._camera.position.z.toFixed(8)!==this.sdk.viewer.camera.position.z.toFixed(8)||this._camera.heading.toFixed(8)!==this.sdk.viewer.camera.heading.toFixed(8)||this._camera.pitch.toFixed(8)!==this.sdk.viewer.camera.pitch.toFixed(8)||this._camera.roll.toFixed(8)!==this.sdk.viewer.camera.roll.toFixed(8)){var t=document.getElementById("SlopeAspect-box");t&&(t.style.display="none")}this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll}}},{key:"calculateSlopeColor",value:function(t,e){return t<.00872686779075879?"rgba(85,182,43,"+e+")":t<.03492076949174773?"rgba(135,211,43,"+e+")":t<.08748866352592401?"rgba(204,244,44,"+e+")":t<.2679491924311227?"rgba(245,233,44,"+e+")":t<.7002075382097097?"rgba(255,138,43,"+e+")":t<1.4281480067421144?"rgba(255,84,43,"+e+")":"rgba(255,32,43,"+e+")"}},{key:"destroy",value:function(){var t=this;this.result&&this.result.forEach((function(e){t.viewer.scene.primitives.remove(e)})),this.result=[],this.sdk.viewer.scene.preRender.removeEventListener(this._watchEvent,this)}}])}(fi);function Ka(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var $a=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),window.addEventListener("resize",(function(){i.echartsObject&&i.echartsObject.resize()})),(i=Ka(this,e,[t])).viewer=t.viewer,i.Dialog=n,YJ.Analysis.AnalysesResults.push(i),e.create(i),i}return sn()(e,t),_()(e,[{key:"clean",value:function(){this.end(),this._currentId=null,this.entityHasCreated=!1,this.polyline&&this.viewer.entities.remove(this.polyline),this.tipEntity&&this.viewer.entities.remove(this.tipEntity),this.polyline=null,this.tipEntity=null}},{key:"destroy",value:function(){this.clean(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}}],[{key:"create",value:function(t){var i=this;this._currentId=Cesium.createGuid();var n=this._currentId;if(t.clean(),YJ.Measure.GetMeasureStatus())console.warn("上一次测量未结束");else{YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("左键确定,右键取消",t.sdk),t.event=new X(t.sdk),t.positions=[],t.points_ids=[];var s=[];t.event.mouse_left(function(){var r=o()(a.a.mark((function o(r,l){var c;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:try{t.entityHasCreated||e.create_polyline(t),s.push(l),t.points_ids.push(t.create_point(l)),2==s.length&&(t.end(),c=[],s.forEach((function(e){c.push(t.cartesian3Towgs84(e,t.viewer))})),e.interPoints(t).then((function(o){i._currentId&&i._currentId===n&&(t._DialogObject?e.initEcharts(t,o):e.edit(t,o))})))}catch(t){console.log(t)}case 1:case"end":return o.stop()}}),o)})));return function(t,e){return r.apply(this,arguments)}}()),t.event.mouse_right((function(e,i){s=[],t.clean()})),t.event.mouse_move((function(e,i){t.positions=s.concat(i),t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500){s=[],t.end()}}))}))}}},{key:"create_polyline",value:function(t){t.entityHasCreated=!0;var e=t.randomString();return t.polyline=t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(t.color),clampToGround:!0,zIndex:99999999}})),e}},{key:"interPoints",value:(n=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D,P;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.viewer,n=e.positions,o=[],s=[],r=0;rb&&(b=y),(C=parseInt(b/2))>150&&(C=150),C<2&&(C=2),w=f/(C-1),k=0;case 24:if(!(k\n
        \n ',i._DialogObject.contentAppChild(o),(s=document.createElement("button")).innerHTML='重新绘制',s.style.width="auto",s.addEventListener("click",(function(){e.create(i),e.initEcharts(i)})),i._DialogObject.footAppChild(s),e.initEcharts(i,n);case 16:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})},{key:"initEcharts",value:function(t,e){var i,n=[],o=[],s=e;if(s){for(var a=s[s.length-1].distance,r=Math.ceil(a),l=0;l高度:"+n[1]+"m
        坐标:"+i[0].toFixed(5)+","+i[1].toFixed(5)}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",max:r,scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:n,smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}else{var m=t._DialogObject._element.content.getElementsByClassName("profile-echarts")[0];t.echartsObject=echarts.init(m),i={tooltip:{trigger:"axis",textStyle:{align:"left"}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:[],smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}t.echartsObject.setOption(i)}}]);var i,n}(wa);function Qa(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var tr=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Qa(this,e,[t,n])).viewer=t.viewer,i.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},i.options={},i._elms={},i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new wn,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"destroy",value:function(){var t=this;this.resultObject.entities.forEach((function(e){t.viewer.entities.remove(e)})),this.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,YJ.Measure.SetMeasureStatus(!1)}}],[{key:"create",value:function(t){if(YJ.Measure.GetMeasureStatus())console.log("上一次测量未结束");else{t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null),t.event=new X(t.sdk),t.tip=new Z("左键点击创建视角起点",t.sdk),YJ.Measure.SetMeasureStatus(!0);t.event.mouse_left(function(){var i=o()(a.a.mark((function i(n,o){var s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.tip.set_text("左键创建视角终点,右键结束通视分析"),t.resultObject.viewPoint){i.next=16;break}if(s=t.cartesian3Towgs84(o,t.viewer),!t.sdk.viewer.terrainProvider.availability){i.next=7;break}return i.next=6,Cesium.sampleTerrainMostDetailed(t.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(s.lng,s.lat)]);case 6:r=i.sent;case 7:r&&r[0].height>s.alt&&(s.alt=r[0].height),s.alt=s.alt+t.viewPointHeight,l=Cesium.Cartesian3.fromDegrees(s.lng,s.lat,s.alt),t.resultObject.viewPoint=l,c=t.viewer.entities.add({position:l,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),t.resultObject.objectExclude.push(c),t.resultObject.entities.push(c),i.next=33;break;case 16:t.resultObject.targetPoint=o,u=t.viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),t.resultObject.objectExclude.push(u),t.resultObject.entities.push(u),p=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.resultObject.targetPoint,t.resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),h=new Cesium.Ray(t.resultObject.viewPoint,p),d=t.viewer.scene.drillPickFromRay(h),m={},f=0;case 25:if(!(fg?(b=t.viewer.entities.add({polyline:{positions:[t.resultObject.viewPoint,m.position],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),t.resultObject.entities.push(b),C=t.viewer.entities.add({polyline:{positions:[m.position,t.resultObject.targetPoint],material:Cesium.Color.RED,width:3,zIndex:99999999}}),t.resultObject.entities.push(C),t.resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[v,g,y]})):(w=t.viewer.entities.add({polyline:{positions:[t.resultObject.viewPoint,t.resultObject.targetPoint],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),t.resultObject.entities.push(w),t.resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[v,g,y]})));case 33:case"end":return i.stop()}}),i)})));return function(t,e){return i.apply(this,arguments)}}()),t.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.mouse_right((function(t,e){i()})),t.event.gesture_pinck_start((function(e,n){var o=new Date;t.event.gesture_pinck_end((function(){new Date-o>=500&&i()}))}))}function i(){YJ.Measure.SetMeasureStatus(!1),t.tip.destroy(),t.event.destroy(),t.tip=null,t.event=null}}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"多点视线分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1)}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" visibility",(n=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 视点高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){e.create(i)})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"distance",value:function(t,e){var i=Cesium.Cartographic.fromCartesian(t),n=Cesium.Cartographic.fromCartesian(e),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n);var s=o.surfaceDistance;return s=Math.sqrt(Math.pow(s,2)+Math.pow(n.height-i.height,2))}}]);var i}(fi),er=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.viewer=e.viewer;var n=this.viewer.terrainProvider.availability;if(!n)return this.error="未加载地形数据!",window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500}),void console.warn(this.error);this.positions=i.positions,this.interfaceNum=i.interfaceNum||25,this.colorFill=i.colorFill||["#8CEA00","#B7FF4A","#FFFF37","#FFE66F","#FFD1A4","#FFCBB3","#FFBD9D","#FFAD86","#FF9D6F","#FF8F59","#FF8040","#FF5809","#F75000","#D94600","#BB3D00","#A23400","#842B00","#642100","#4D0000","#2F0000"],this.countorLineList=Cesium.defaultValue(i.countorLineList,[]),YJ.Analysis.AnalysesResults.push(this),this.createNewLine()}return _()(t,[{key:"type",get:function(){return"ContourAnalysis"}},{key:"createNewLine",value:function(){t.interpolatePoint(this)}},{key:"getObjectIndex",value:function(t,e){for(var i=0;ie)return i}},{key:"clear",value:function(t){if(t){this.viewer.dataSources.remove(t);var e=this.countorLineList.indexOf(t);this.countorLineList.splice(e,1)}}},{key:"destroy",value:function(){var t=this;this.countorLineList.forEach((function(e){t.viewer.dataSources.remove(e)})),this.countorLineList=[]}}],[{key:"interpolatePoint",value:function(t){for(var e=t.positions,i=[],n={minX:360,maxX:-360,minY:180,maxY:-180},o=0;o2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=or(this,e,[t,o])).viewer=t.viewer,n.tiles3d=i,n.options=nr({},o),n.options.regionsType=n.options.regionsType||!1,YJ.Analysis.SectionResults.push(n),n.Planes=[],e.start(n),n}return sn()(e,t),_()(e,[{key:"regionsType",get:function(){return this.options.regionsType},set:function(t){this.options.regionsType=t,this.Planes.length>0&&(this.Planes=[],e.planeCollection(this))}},{key:"destroy",value:function(){this.Planes=[],this.tiles3d.clippingPlanes&&(this.tiles3d.clippingPlanes.enabled=!1,this.tiles3d.clippingPlanes.removeAll())}}],[{key:"start",value:function(t){var i=t.options.positions||[];if(!t.isConvex(i))return window.ELEMENT&&window.ELEMENT.Message({message:"不支持凹多边形",type:"warning",duration:1500}),void console.log("不支持凹多边形");t.inverseTransform=function(t){var e,i=t.root.transform;e=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(t.boundingSphere.center):Cesium.Matrix4.fromArray(t.root.transform);return Cesium.Matrix4.inverseTransformation(e,new Cesium.Matrix4)}(t.tiles3d),t.Planes=[];var n=[];if(i.length>0){for(var o=0;o=0;n--)0===n?t.Planes.push(a(e[n],e[e.length-1],t.inverseTransform)):t.Planes.push(a(e[n],e[n-1],t.inverseTransform));if(t.tiles3d.clippingPlanes){t.tiles3d.clippingPlanes.removeAll();for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(i=ar(this,e,[t])).viewer=t.viewer,i.options=n||{},i.options.height=i.options.height||0===i.options.height?i.options.height:10,i.options.show=!i.options.show&&!1!==i.options.show||i.options.show,i.bottomImg=i.getSourceRootPath()+"/img/excavationregion_top.jpg",i.wallImg=i.getSourceRootPath()+"/img/excavationregion_side.jpg",i.splitNum=Cesium.defaultValue(n.splitNum,50),i.Draw=new Ea(i.sdk),i.bottomMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#735d4f"))}),i.wallMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#976b4e"))});var o=new Image,s=new Image;return o.src=i.bottomImg,s.src=i.wallImg,o.crossOrigin="Anonymous",s.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas");t.width=o.width,t.height=o.height,t.getContext("2d").drawImage(o,0,0,o.width,o.height);var e=t.toDataURL("image/jpg");i.bottomMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:e}}}),i.bottomSurface&&(i.bottomSurface.appearance.material=i.bottomMaterial)},s.onload=function(){var t=document.createElement("canvas");t.width=s.width,t.height=s.height,t.getContext("2d").drawImage(s,0,0,s.width,s.height);var e=t.toDataURL("image/jpg");i.wallMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:e}}}),i.wellWall&&(i.wellWall.appearance.material=i.wallMaterial)},i.init(),i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t,this.switchExcavate(t)}},{key:"height",get:function(){return this.options.height},set:function(t){this.options.height=t}},{key:"init",value:function(){e.edit(this,!0)}},{key:"startCreate",value:function(){var t=this;this.Draw.start((function(e,i){if(i&&!(i.length<=2))return t.isConvex(i)?void t.updateData(i):(window.ELEMENT&&window.ELEMENT.Message({message:"不支持凹多边形",type:"warning",duration:1500}),void console.log("不支持凹多边形"));window.ELEMENT&&window.ELEMENT.Message({message:"至少拥有三个坐标位置!",type:"warning",duration:1500})}))}},{key:"updateData",value:function(t){var e=this.viewer;this.clear();for(var i=[],n=[],o=0;o=0;t--)this.viewer.scene.primitives.remove(rr[t]);rr=[],this.Draw&&this.Draw.end()}},{key:"destroy",value:function(){this.clear()}},{key:"prepareWell",value:function(t){for(var e=t.length,i=this.excavateMinHeight-this.height,n=[],o=[],s=[],a=0;a\n
        \n
        \n
        \n 挖掘高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 绘制开挖区域\n \n
        \n
        \n 清除开挖区域\n \n
        \n
        \n
        \n ',e._DialogObject.contentAppChild(n),n.getElementsByClassName("start-excavation")[0].addEventListener("click",(function(){e.startCreate()})),n.getElementsByClassName("clean-excavation")[0].addEventListener("click",(function(){e.clear()})),(o=n.querySelector("input[name='height']")).value=e.height,o.addEventListener("change",(function(t){var i=t.target.value;(i=Number(i))<.01&&(i=.01,t.target.value=i,e.height=i)})),o.addEventListener("blur",(function(t){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),i<.01&&(i=.01),t.target.value=i,e.height=i})),t.next=22;break;case 21:e._DialogObject&&e._DialogObject.close&&(e._DialogObject.close(),e._DialogObject=null);case 22:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]);var i}(fi);function cr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ur(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(k()(this,e),n=pr(this,e,[t]),C()(n,"getUniqueArray",(function(t){return t.filter((function(t,e,i){return i.indexOf(t,0)===e}))})),!i||!n.sdk||!n.sdk.viewer)return tn()(n);if(n.options=ur({},o),n.options.id=o.id||n.randomString(),n.options.name=o.name||"压平面",n.options.positions=o.positions||[],n.options.show=!o.show&&!1!==o.show||o.show,n.tileset=i,n.Dialog=s,!n.options.height&&0!==n.options.height){for(var a=n.options.positions[0].alt,r=0;rn.options.positions[r].alt&&(a=n.options.positions[r].alt);n.options.height=a}return hr[n.tileset.id]?hr[n.tileset.id].push(ur({},n.options)):hr[n.tileset.id]=[ur({},n.options)],n.center=i.boundingSphere.center.clone(),n.center84=n.cartesian3Towgs84(n.center,n.sdk.viewer),n.matrix=Cesium.Transforms.eastNorthUpToFixedFrame(n.center.clone()),n.localMatrix=Cesium.Matrix4.inverse(n.matrix,new Cesium.Matrix4),n.addFlat(),n}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t;for(var e=0;e= max(p1[1], p2[1])){\n continue;\n }\n float x = p1[0] + ((point[1] - p1[1]) * (p2[0] - p1[0])) / (p2[1] - p1[1]);\n if(x > point[0]){\n nCross++;\n }\n }\n return int(mod(float(nCross), float(2))) == 1;\n }\n ")})),n}},{key:"updateShader",value:function(t,e){var i=new Cesium.CustomShader({uniforms:{u_tileset_localToWorldMatrix:{type:Cesium.UniformType.MAT4,value:this.matrix},u_tileset_worldToLocalMatrix:{type:Cesium.UniformType.MAT4,value:this.localMatrix},u_flatHeight:{type:Cesium.UniformType.FLOAT,value:this.flatHeight}},vertexShaderText:"\n // 所有isPointInPolygon函数\n ".concat(t,"\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput){\n vec3 modelMC = vsInput.attributes.positionMC;\n vec4 model_local_position = vec4(modelMC.x, modelMC.y, modelMC.z, 1.0);\n vec4 tileset_local_position = u_tileset_worldToLocalMatrix * czm_model * model_local_position;\n vec2 position2D = vec2(tileset_local_position.x,tileset_local_position.y);\n float ground_z = 0.0;\n // 多个多边形区域\n ").concat(e,"\n }")});this.tileset.customShader=i,this.sdk.viewer.scene.requestRender()}},{key:"cartesiansToLocal",value:function(t){for(var e=[],i=0;i\n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n 压平高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n ',this._DialogObject.contentAppChild(i),(n=i.getElementsByClassName("input-name")[0]).value=this.options.name,n.addEventListener("input",(function(){r.name=n.value})),(o=i.getElementsByClassName("flat-height")[0]).value=this.options.height,o.addEventListener("input",(function(){r.height=Number(o.value),r.addFlat()})),(s=document.createElement("button")).className="btn",s.innerHTML="确认",this._DialogObject.footAppChild(s),s.addEventListener("click",(function(){r.options.name||(r.options.name="压平面"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.options)})),t.next=24;break;case 23:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 24:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"reset",value:function(){this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.height=this.options.height,this.addFlat()}},{key:"flatEdit",value:function(t){if(t){for(var e=that.options.positions,i=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{text:"左键开始,右键结束;"};return k()(this,e),(i=vr(this,e,[t,n])).options=fr({},n),i.event=new X(t),i.tip=new Z(n.text,t),i.viewer=t.viewer,i.defaultColor="rgba(246,49,49,0.55)",i.ids=[],YJ.Measure.Measures.push(i),i._isDestroy=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(){this.setPickStatus(!1),YJ.Measure.SetMeasureStatus(!0)}},{key:"destroy",value:function(){var t=this;this._isDestroy=!0,this.end(),this.ids.forEach((function(e){t.remove_entity(e)}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"create_point",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.randomString(),n=this.cartesian3Towgs84(t,this.viewer);return this.viewer.entities.add(new Cesium.Entity({id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{show:e,image:this.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(t){this.viewer.entities.removeById(t)}}])}(fi);function yr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return br(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?br(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function br(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Cr(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(r=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=yr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return r.apply(this,arguments)})},{key:"computeDisByTowPoint",value:(s=o()(a.a.mark((function t(i,n){var s,r,l,c,u=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this.computeDistance2([i,n]),r=10,l=function(t){if(!u._isDestroy){var i=u.getLabel("贴地距离:"+Number(t).toFixed(2)+"米");i.pixelOffset=new Cesium.Cartesian2(0,-32),u.ids.push(e.create_point(Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),{label:i},u))}},c=function(){var t=o()(a.a.mark((function t(e){var o,s,r,c,p,h,d,m,f,v;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=u.chunkLine([i,n],e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=[],c=yr(s),t.prev=5,c.s();case 7:if((p=c.n()).done){t.next=16;break}return h=p.value,d=s.indexOf(h),t.next=12,u.sampleHeight({lng:h[0],lat:h[1],alt:0},d);case 12:m=t.sent,r.push(m);case 14:t.next=7;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(5),c.e(t.t0);case 21:return t.prev=21,c.f(),t.finish(21);case 24:f=0,v=r.length-1,r.forEach((function(t,e){if(e!==v){var i=u.computeDistance2([t.position,r[e+1].position]),n=Math.abs(t.position.alt-r[e+1].position.alt),o=Math.sqrt(i*i+n*n);f+=o}})),l(f);case 28:case"end":return t.stop()}}),t,null,[[5,18,21,24]])})));return function(e){return t.apply(this,arguments)}}(),!(s>2)){t.next=10;break}return r=s/20,t.next=8,c(r);case 8:t.next=17;break;case 10:if(!(s<1)){t.next=14;break}l(s),t.next=17;break;case 14:return r=1,t.next=17,c(r);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getClampToHeight(e,L()(this.sdk.viewer.entities.values));case 2:return n=t.sent,e.alt=n,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),wr(e,"destroy",this,3)([])}},{key:"end",value:function(){wr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20}),zIndex:99999999}})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s,r}(gr);function xr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return _r(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Er(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(s=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=xr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:return n=t.sent,e.alt=n[0].height,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Sr(e,"destroy",this,3)([])}},{key:"end",value:function(){Sr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20})},zIndex:99999999})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s}(gr);function Pr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Or(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i.event=new X(t),i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(s=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=Pr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:return n=t.sent,e.alt=n[0].height,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n(0,o):i(a,o)}))}))}}},{key:"computeAngle",value:function(t,i){var n=this.computeDistance2([t,i]),o=Math.abs(t.alt-i.alt),s=n/Math.sqrt(n*n+o*o),a=Math.acos(s),r=this.radiansToDegrees(a),l=this.getLabel("坡度:"+r.toFixed(2)+"°");l.pixelOffset=new Cesium.Cartesian2(0,-32),this.ids.push(e.create_point(Cesium.Cartesian3.fromDegrees(i.lng,i.lat,i.alt),{label:l},this))}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Tr(e,"destroy",this,3)([])}},{key:"end",value:function(){Tr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20}),zIndex:99999999}})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s}(gr);function Br(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Lr(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Ar(this,e,[t,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){jr(e,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i,n=0,o=0,s=function(s,a){0===t.ids.length&&(t.polygon_id=e.create_polygon(t)),t.cachePositions.push(Lr({},a)),t.ids.push(t.create_point(Lr({},a),!1));var r=t.cartesian3Towgs84(Lr({},a),t.viewer);if(r.alt>n&&(n=r.alt),t.positions=t.cachePositions.concat(Lr({},a)),t.tip.setPosition(Lr({},a),s.position.x,s.position.y),t.positions.length>2){var l=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);l.push({lng:i.lng,lat:i.lat})}));var c=t.computeCenter(l),u=t.computeArea(l);o=u,t.center=new Cesium.Cartesian3.fromDegrees(c.lng,c.lat,n),i=t.center,t.text="投影面积:"+u+" ㎡"}};this.event.mouse_left(s),this.event.mouse_move((function(e,i){if(t.tip.setPosition(Lr({},i),e.endPosition.x,e.endPosition.y),t.positions=t.cachePositions.concat(Lr({},i)),t.positions.length>2){var o=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);o.push({lng:i.lng,lat:i.lat})}));var s=t.computeCenter(o),a=t.computeArea(o);t.center=new Cesium.Cartesian3.fromDegrees(s.lng,s.lat,n),t.text="投影面积:"+a+" ㎡"}})),this.event.mouse_right((function(e,n){if(t.positions=t.cachePositions,t.center=i,t.positions.length<3){t.text="";console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),t.destroy()}else t.text="投影面积:"+o+" ㎡";t.end()})),this.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?(t.positions=t.cachePositions,t.end()):s(o,i)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polygon_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),jr(e,"destroy",this,3)([])}},{key:"end",value:function(){jr(e,"end",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),t.viewer.entities.add(new Cesium.Entity({id:e,label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return t.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)}),!1),material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions.length?t.positions.concat(t.positions[0]):t.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.lineColor||t.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return e}}])}(gr);function Rr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Fr(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=zr(this,e,[t,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Hr(e,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i=0,n=function(n,o){0===t.ids.length&&(t.polygon_id=e.create_polygon(t)),t.cachePositions.push(Fr({},o)),t.ids.push(t.create_point(Fr({},o),!1));var s=t.cartesian3Towgs84(Fr({},o),t.viewer);s.alt>i&&(i=s.alt),t.positions=t.cachePositions.concat(Fr({},o)),t.tip.setPosition(Fr({},o),n.position.x,n.position.y)},o=function(e,n){if(t.positions=t.cachePositions,t.positions.length>2){var o=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);o.push({lng:i.lng,lat:i.lat})})),setTimeout((function(){var e=t.computeCenter(o),n=t.computeSignedArea(t.viewer,o);t.center=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,i),t.text="贴地面积:"+n+" ㎡"}),0)}else{console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),t.destroy()}t.end()};this.event.mouse_left(n),this.event.mouse_move((function(e,i){t.tip.setPosition(Fr({},i),e.endPosition.x,e.endPosition.y),t.positions=t.cachePositions.concat(Fr({},i))})),this.event.mouse_right(o),this.event.gesture_pinck_start((function(e,i){var s=new Date,a={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-s>=500?o():n(a,i)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polygon_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Hr(e,"destroy",this,3)([])}},{key:"end",value:function(){Hr(e,"end",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),t.viewer.entities.add(new Cesium.Entity({id:e,label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return t.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)}),!1),material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions.length?t.positions.concat(t.positions[0]):t.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.lineColor||t.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return e}}])}(gr);function Gr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Ur(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Wr=function(t){function e(t){return k()(this,e),Gr(this,e,[t])}return sn()(e,t),_()(e,[{key:"cal_center",value:function(t){var e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.computeCenter([e,i]);return Cesium.Cartesian3.fromDegrees(n.lng,n.lat,(e.alt+i.alt)/2)}},{key:"cal_distance",value:function(t){var e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.computeDistance2([e,i]);return e.alt=e.alt.toFixed(2),i.alt=i.alt.toFixed(2),e.alt===i.alt?n:0===Number(n)?Math.abs(e.alt-i.alt).toFixed(2):Math.sqrt(n*n+Math.pow(Math.abs(e.alt-i.alt).toFixed(2),2)).toFixed(2)}},{key:"createPolyline",value:function(t){var e=this,i=this.id_map.get(t);this.viewer.entities.add(new Cesium.Entity({id:t,position:new Cesium.CallbackProperty((function(){return 2===i.positions.length?e.cal_center(i.positions):Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(){return 2===i.positions.length?e.cal_distance(i.positions)+"米":"0米"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-10),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(){return i.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999}})),this.ids.push(t)}},{key:"create_angle_label",value:function(t,e,i,n){var o=this,s=new Cesium.Entity({id:i,position:new Cesium.CallbackProperty((function(){return 2===t.length?o.cal_point(t,e):Cesium.Cartesian3()})),label:{text:new Cesium.CallbackProperty((function(){return 2===t.length?o.cal_angle(t,e,n)+"°":"0°"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(15,-10)}});this.viewer.entities.add(s)}},{key:"cal_point",value:function(t,e){for(var i=0;i=500?t.end():r(o,i)}))}))}}},{key:"end",value:function(){Ur(e,"end",this,3)([])}},{key:"destroy",value:function(){Ur(e,"destroy",this,3)([])}}])}(gr);function Yr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Jr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var qr=function(t){function e(t){var i;return k()(this,e),(i=Yr(this,e,[t,{text:""}])).defaultColor="#f11515",i.locationID=i.randomString(),i.position=new Cesium.Cartesian3,i.text="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Jr(e,"start",this,3)([]),this.cache_id=e.create_point(this),e.createLocation(this);var i=function(e,i){t.position=i;var n=t.viewer.entities.getById(t.locationID);n&&(n.show=!0);var o=t.cartesian3Towgs84(i,t.viewer),s=li();if("EPSG:4326"===s)t.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=t.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);t.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}t.end()};this.event.mouse_left(i),this.event.mouse_right((function(e,i){t.destroy(),t.end()})),this.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y);var n=t.viewer.entities.getById(t.locationID);n&&(n.show=!0),t.position=i;var o=t.cartesian3Towgs84(i,t.viewer),s=li();if("EPSG:4326"===s)t.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=t.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);t.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}})),this.event.gesture_pinck_start((function(e,n){var o=new Date;e.position1.x,e.position2.x,e.position1.y,e.position2.y;t.event.gesture_pinck_end((function(){new Date-o>=500?(t.destroy(),t.end()):i(0,n)}))}))}}},{key:"destroy",value:function(){this.remove_entity(this.locationID),this.remove_entity(this.cache_id),Jr(e,"destroy",this,3)([])}},{key:"end",value:function(){Jr(e,"end",this,3)([])}}],[{key:"createLocation",value:function(t){t.viewer.entities.add(new Cesium.Entity({id:t.locationID,show:!1,position:new Cesium.CallbackProperty((function(){return t.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"22px Microsoft YaHei",fillColor:new Cesium.Color.fromCssColorString(t.defaultColor),style:Cesium.LabelStyle.FILL_AND_OUTLINE,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(-100,-50)},billboard:{image:t.getSourceRootPath()+"/img/location.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,width:48,height:48}}))}},{key:"create_point",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:C()({image:t.getSourceRootPath()+"/img/point.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY},"color",Cesium.Color.WHITE.withAlpha(.99))})),e}}])}(gr);function Xr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Zr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Kr=function(t){function e(t){return k()(this,e),Xr(this,e,[t,{text:"左键开始,右键取消"}])}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Zr(e,"start",this,3)([]),this.positions=[],this.position=new Cesium.Cartesian3,this.height=0,this.text="",this.circleRadius=0;var i=0;this.firstpoint=null;var n=function(n,o){if(null===t.firstpoint&&(t.positions.push(o),t.firstpoint=t.cartesian3Towgs84(o,t.viewer),t.ids.push(e.create_polygon(t)),t.ids.push(e.create_point(t,o))),i++,t.tip.setPosition(o,n.position.x,n.position.y),2===i){if(t.firstpoint){var s=t.cartesian3Towgs84(o,t.viewer);t.positions[1]=Cesium.Cartesian3.fromDegrees(t.firstpoint.lng,t.firstpoint.lat,s.alt),t.positions[2]=o,t.position=t.positions[1],t.circleRadius=t.computeDistance2([t.firstpoint,s]),t.height=Number((s.alt-t.firstpoint.alt).toFixed(2)),t.text="相对高度:"+t.height+" 米",t.tip.set_text("左键完成,右键取消;半径:"+t.circleRadius+" 米")}t.ids.push(e.create_point(t,o,{label:{text:"半径:"+t.circleRadius+" 米"}})),t.end()}};this.event.mouse_left(n),this.event.mouse_move((function(e,i){if(t.tip.setPosition(i,e.endPosition.x,e.endPosition.y),t.firstpoint){var n=t.cartesian3Towgs84(i,t.viewer);t.positions[1]=Cesium.Cartesian3.fromDegrees(t.firstpoint.lng,t.firstpoint.lat,n.alt),t.positions[2]=i,t.position=t.positions[1],t.circleRadius=t.computeDistance2([t.firstpoint,n]),t.height=Number((n.alt-t.firstpoint.alt).toFixed(2)),t.text="相对高度:"+t.height+" 米",t.tip.set_text("左键完成,右键取消;半径:"+t.circleRadius+" 米")}})),this.event.mouse_right((function(e,i){t.end(),t.destroy()})),this.event.gesture_pinck_start((function(e,i){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?(t.end(),t.destroy()):n(s,i)}))}))}}},{key:"end",value:function(){Zr(e,"end",this,3)([])}},{key:"destroy",value:function(){Zr(e,"destroy",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();t.viewer.entities.add(new Cesium.Entity({id:e,billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)},position:new Cesium.CallbackProperty((function(){return t.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999},ellipse:{height:new Cesium.CallbackProperty((function(){return t.height+t.firstpoint.alt}),!1),semiMinorAxis:new Cesium.CallbackProperty((function(e){return t.circleRadius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(e){return t.circleRadius}),!1),material:new Cesium.Color.fromCssColorString(t.defaultColor)}}));return e}},{key:"create_point",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.randomString(),o=t.cartesian3Towgs84(e,t.viewer),s={id:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return i.label&&(s.label={text:i.label.text,scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15)}),t.viewer.entities.add(new Cesium.Entity(s)),n}}])}(gr);function $r(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Qr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var tl=function(t){function e(t){var i;return k()(this,e),(i=$r(this,e,[t,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return sn()(e,t),_()(e,[{key:"createPolyline",value:function(){var t=this,e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}})),e}},{key:"end",value:function(){Qr(e,"end",this,3)([])}},{key:"destroy",value:function(){var t=this;Qr(e,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(e){e&&t.remove_entity(e)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.cartesian3Towgs84(t[2],this.viewer),o=turf.point([e.lng,e.lat]),s=turf.point([i.lng,i.lat]),a=turf.point([n.lng,n.lat]),r={units:"kilometers"},l=turf.rhumbDistance(o,s,r),c=turf.rhumbDistance(a,s,r),u=l;l>c&&(u=c);var p=turf.rhumbBearing(o,s),h=turf.rhumbBearing(a,s),d=Math.abs((p-h+360)%360);this.bearing=d>180?360-d:d,this.bearing=this.bearing.toFixed(2);var m=p-180,f=h-180,v=turf.lineArc(s,u/3,f,m);d>180&&(v=turf.lineArc(s,u/3,m,f));for(var g=[],y=0;y2&&t.caculateAngle([t.positions[0],t.positions[1],t.positions[2]])})),this.event.mouse_right((function(e,i){t.cancel()})),this.event.gesture_pinck_start((function(e,n){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?t.cancel():i(s,n)}))}))}}}])}(gr);function el(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function il(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var nl=function(t){function e(t){var i;return k()(this,e),(i=el(this,e,[t,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return sn()(e,t),_()(e,[{key:"createPolyline",value:function(){var t=this,e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}})),e}},{key:"end",value:function(){il(e,"end",this,3)([])}},{key:"destroy",value:function(){var t=this;il(e,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(e){e&&t.remove_entity(e)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=this.cartesian3Towgs84(t[1],this.viewer),i=this.cartesian3Towgs84(t[0],this.viewer),n=turf.point([e.lng,e.lat]),o=turf.point([i.lng,i.lat]),s=this.rhumbBearing(i,e);this.bearing=(180+s).toFixed(2);for(var a=turf.rhumbDistance(n,o,{units:"kilometers"}),r=turf.lineArc(n,a/3,0,this.bearing),l=[],c=0;c2&&t.caculateAngle([t.positions[0],t.positions[1]],[t.positions[2],t.positions[1]]),!(t.ids.length>=2)){e.next=9;break}return t.end(),e.abrupt("return");case 9:if(t.ids.push(t.create_point(n)),t.ids.push(t.create_point(n)),2!==t.ids.length){e.next=20;break}return t.label_id=Cesium.createGuid(),t.arc_id=Cesium.createGuid(),d=t.cartesian3Towgs84(n,t.viewer),e.next=17,t.sampleHeightMostDetailed([d]);case 17:m=e.sent,t.viewer.entities.add({id:t.arc_id,polyline:{positions:new Cesium.CallbackProperty((function(){return t.arcPositions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}}),t.viewer.entities.add({id:t.label_id,position:Cesium.Cartesian3.fromDegrees(d.lng,d.lat,(m[0].height||0)+.1),label:{text:new Cesium.CallbackProperty((function(){return"方位夹角:"+t.bearing+"°"}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#f1e605"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}});case 20:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();this.event.mouse_left(i),this.event.mouse_move((function(e,i){if(t.tip.setPosition(i,e.endPosition.x,e.endPosition.y),t.cachePositions.length){var n;t.positions=t.cachePositions.concat(i);var o=t.cartesian3Towgs84(i,t.viewer),s=t.cartesian3Towgs84(t.positions[1],t.viewer),a=turf.point([s.lng,s.lat]),r=turf.point([o.lng,o.lat]),l={units:"kilometers"},c=turf.rhumbDistance(a,r,l),u=turf.destination(a,c,0,l);t.positions[0]=(n=Cesium.Cartesian3).fromDegrees.apply(n,L()(u.geometry.coordinates))}t.positions.length>2&&t.caculateAngle([t.positions[0],t.positions[1]],[t.positions[2],t.positions[1]])})),this.event.mouse_right((function(e,i){t.cancel()})),this.event.gesture_pinck_start((function(e,n){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?t.cancel():i(s,n)}))}))}}}])}(gr);function ol(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var sl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(i=ol(this,e,[t,n])).options.curve=n.curve||!1;var o=Number(n.number);return isNaN(o)?i.options.number=1/0:i.options.number=o<2?2:o,i}return sn()(e,t),_()(e,[{key:"smoothHandle",value:function(t){if(t.length>1){for(var e=[],i=[],n=0;n=r.options.number){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var u=r.smoothHandle(c);s=[];for(var p=0;p1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polyline:{positions:new Cesium.CallbackProperty((function(){return t.options.curve?t.smoothHandle(t.positions):t.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(t.color),clampToGround:!0,zIndex:99999999}})),i}}])}(wa);function al(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function rl(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=ll(this,e,[t,n])).polygonHasCreated=!1,i.rectObject=[],i}return sn()(e,t),_()(e,[{key:"computedLastPoint",value:function(t){var e=t[0],i=t[1],n=Cesium.Cartesian3.subtract(i,e,new Cesium.Cartesian3),o=Cesium.Cartesian3.subtract(t[2],e,new Cesium.Cartesian3),s=Cesium.Cartesian3.dot(o,n)/Cesium.Cartesian3.magnitudeSquared(n),a=Cesium.Cartesian3.multiplyByScalar(n,s,new Cesium.Cartesian3),r=Cesium.Cartesian3.add(e,a,new Cesium.Cartesian3),l=Cesium.Cartesian3.distance(t[2],r),c=Cesium.Cartesian3.subtract(t[2],r,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(c,c);var u=Cesium.Cartesian3.multiplyByScalar(c,l,new Cesium.Cartesian3),p=Cesium.Cartesian3.add(i,u,new Cesium.Cartesian3),h=Cesium.Cartesian3.add(e,u,new Cesium.Cartesian3);return[rl({},p),rl({},h)]}},{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk);var c=0;this.positions=[],this.positionsLine=[],this.points_ids=[];var u=[],p=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",c++,r.positions=u.concat(rl({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=e.create_polygon(r);r.points_ids.push(o)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),3==c&&(r.end(),t(null,r.rectObject))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t("取消",""))})),this.event.mouse_move((function(t,e){if("2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(rl({},e)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(t){return r.cartesian3Towgs84(t,r.viewer)}));r.rectObject=s}})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop(),r.positions=u.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t(null,p),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r);r.points_ids.push(s)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=u.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",c++,r.positions=u.concat(rl({},n)),r.tip.setPosition(n,i.position.x+r.viewer.canvas.width,i.position.y),!r.polygonHasCreated){var o=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),3==c&&(r.end(),t(null,r.rectObject))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t("取消",""))})),this.event2D.mouse_move((function(t,e){if("3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(rl({},e)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(t){return r.cartesian3Towgs84(t,r.viewer)}));r.rectObject=s}})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop(),r.positions=u.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t(null,p),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=u.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.polygonHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)})),material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions.concat(t.positions[0])})),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),i}}])}(wa);function ul(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var pl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return k()(this,e),ul(this,e,[t,i,n])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var e=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;",this.sdk),this.event=new X(this.sdk),this.event.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer);t(null,s,Cesium)})),this.event.mouse_right((function(i,n){e.end(),t(!1)})),this.event.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;e.event.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer);t(null,s,Cesium)})),this.event2D.mouse_right((function(i,n){e.end(),t(!1)})),this.event2D.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x+e.viewer.canvas.width,t.endPosition.y)})),this.event2D.gesture_pinck_start((function(n,o){var s=new Date;e.event2D.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))})))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy()}}])}(wa);function hl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var dl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),hl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.viewer;t.entities.add(new Cesium.Entity({id:g.circle_id,position:new Cesium.CallbackProperty((function(t){if(v){var e=g.computeMidpoint(f,v);return Cesium.Cartesian3.fromDegrees(e.lng,e.lat,v.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(t){return d>1e3?"半径:"+(d/1e3).toFixed(2)+" 公里":"半径:"+d+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(m))}),!1),material:Cesium.Color.fromCssColorString(g.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return p}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}}))};(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键开始,右键取消",this.sdk),this.event=new X(this.sdk);var u=0;this.circle_id=this.randomString();var p=[],h=[],d=1,m=[],f={},v=null;this.event.mouse_left((function(e,i){"2D"!==l&&(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),h.push(i),c()),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t(!1))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),u&&(p=h.concat(e),v=r.cartesian3Towgs84(e,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event.gesture_pinck_start((function(e,i){if("2D"!==l){var n=new Date;r.event.gesture_pinck_end((function(){new Date-n>=500?(r.end(),t(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),h.push(i),c(),r.tip.setPosition(i,(e.position1.x+e.position2.x)/2,(e.position1.y+e.position2.y)/2)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,i){"3D"!==l&&(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),h.push(i),c(r._sdk2D.viewer)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t(!1))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),u&&(p=h.concat(e),v=r.cartesian3Towgs84(e,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event2D.gesture_pinck_start((function(e,i){if("3D"!==l){var n=new Date;r.event2D.gesture_pinck_end((function(){new Date-n>=500?(r.end(),t(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),h.push(i),c(r._sdk2D.viewer),r.tip.setPosition(i,(e.position1.x+e.position2.x)/2+r.viewer.canvas.width,(e.position1.y+e.position2.y)/2)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))}))}})));var g=this}}},{key:"end",value:function(){this.remove_entity(this.circle_id),this.remove_entity(this.point_id),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(wa);function ml(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var fl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),ml(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l,c=function(){var t=Cesium.Cartesian3.fromDegrees(m[0].lng,m[0].lat),e=Cesium.Cartesian3.fromDegrees(m[1].lng,m[1].lat),i=Cesium.Cartesian3.fromDegrees(m[2].lng,m[2].lat);if(1===p){g=Cesium.Cartesian3.distance(t,e),f=(v=g)/2;var n={x:h.lng,y:h.lat},o={x:m[1].lng,y:m[1].lat},s=Math.PI/180,a=n.y*s,r=o.y*s,l=n.x*s,c=o.x*s,u=Math.sin(c-l)*Math.cos(r),d=Math.cos(a)*Math.sin(r)-Math.sin(a)*Math.cos(r)*Math.cos(c-l),C=Math.atan2(u,d)%(2*Math.PI);b=450-(180*C/Math.PI<0?360+180*C/Math.PI:180*C/Math.PI)}if(2===p){Cesium.Cartesian3.distance(t,i),y=Cesium.Cartesian3.distance(e,i);var w=turf.point([m[0].lng,m[0].lat]),k=turf.point([m[1].lng,m[1].lat]),x=turf.point([m[2].lng,m[2].lat]),_=turf.rhumbBearing(w,k),E=turf.rhumbBearing(k,x),S=Math.abs(_-E),D=S>180?360-S:S;D=180-D,f=y*Math.sin(Cesium.Math.toRadians(D))}},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.viewer;t.entities.add(new Cesium.Entity({id:C.elliptic_id,position:Cesium.Cartesian3.fromDegrees(h.lng,h.lat),ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(t){return f}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(t){return v}),!1),granularity:Cesium.Math.toRadians(.1),rotation:new Cesium.CallbackProperty((function(t){return Cesium.Math.toRadians(b)}),!1),material:Cesium.Color.fromCssColorString(C.color),zIndex:99999999}}))};(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),this.entity_ids=[],YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键开始,右键取消",this.sdk),this.event=new X(this.sdk);var p=0;this.elliptic_id=this.randomString();var h,d=[],m=[],f=0,v=0,g=0,y=0,b=0;this.event.mouse_left((function(e,i){if("2D"!==l){if(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),p++,r.points_ids.push(r.create_point(i)),d.push(i),1===p){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);h=n,m=[n,n,n],c(),u()}if(2===p){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}p>=3&&(r.end(),t(null,{center:h,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t(!1))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),d[p]=e,m[p]=r.cartesian3Towgs84(e,r.viewer),0!==p&&c())})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),p++,r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),d.push(i),1===p){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);h=n,m=[n,n,n],c(),u(r._sdk2D.viewer)}if(2===p){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}p>=3&&(r.end(),t(null,{center:h,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t(!1))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),d[p]=e,m[p]=r.cartesian3Towgs84(e,r.viewer),0!==p&&c())})));var C=this}}},{key:"end",value:function(){var t=this;this.remove_entity(this.elliptic_id),this.points_ids.forEach((function(e){t.remove_entity(e)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(wa);function vl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var gl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),vl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(t,i){if("2D"!==l){l="3D";var n=r.cartesian3Towgs84(i,r.viewer),o=c[c.length-1];if(!o||o.lng!==n.lng||o.lat!==n.lat){if(!r.entityHasCreated){var s=e.create_arrow_polygon(r);r.points_ids.push(s)}r.points_ids.push(r.create_point(i)),c.push(n),u=!1}}})),this.event.mouse_right((function(e,i){if("2D"!==l){var n=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){n.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),u&&r.positions.pop(),t(null,r.positions,n)}})),this.event.mouse_move((function(t,e){"2D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,r.positions,s)}else{if(!r.entityHasCreated){var a=e.create_arrow_polygon(r);r.points_ids.push(a)}r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",!r.entityHasCreated){var n=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(i,r.viewer)),u=!1}})),this.event2D.mouse_right((function(e,i){if("3D"!==l){var n=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){n.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),u&&r.positions.pop(),t(null,r.positions,n)}})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,r.positions,s)}else{if(!r.entityHasCreated){var a=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(a)}r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2)}}))}})))}}}],[{key:"create_arrow_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeAttackArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),yl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",!r.entityHasCreated){var o=e.create_arrow_polygon(r);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,s)}}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t("取消绘制"))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),t("取消绘制");else{if(!r.entityHasCreated){var s=e.create_arrow_polygon(r);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,a)}}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",!r.entityHasCreated){var o=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,s)}}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t("取消绘制"))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),t("取消绘制");else{if(!r.entityHasCreated){var s=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,a)}}}))}})))}}}],[{key:"create_arrow_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computePincerArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Cl(this,e,[t,n])).points=null,i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n;wl(e,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(e,s){if("2D"!==n&&(n="3D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s)),2===i.points_ids.length)){var r=[o[0],o[1]];t(null,r),i.end()}}})),this.event.mouse_move((function(t,o){if("2D"!==n&&(i.tip.setPosition(o,t.endPosition.x,t.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=e.polygon(i))}})),this.event.mouse_right((function(e,o){"2D"!==n&&(t(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=e.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,s){if("3D"!==n&&(n="2D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),2===i.points_ids.length)){var r=[o[0],o[1]];t(null,r),i.end()}}})),this.event2D.mouse_move((function(t,o){if("3D"!==n&&(i.tip.setPosition(o,t.endPosition.x+i.viewer.canvas.width,t.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=e.polygon(i,i._sdk2D.viewer))}})),this.event2D.mouse_right((function(e,o){"3D"!==n&&(t(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=e.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){wl(e,"end",this,3)([]),this.viewer.entities.remove(this.arrowPolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.arrowPolygon)}}],[{key:"polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(new Cesium.Entity({name:"ArrowPolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeStraightArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=xl(this,e,[t,n])).rhumb=n.rhumb,i.polygonHasCreated=!1,i.rect=[],i.rectObj=[],i.entity=null,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this,l=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var c;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消",l.sdk),this.event=new X(l.sdk),this.positions=[],this.points_ids=[];var u=0,p=null,h=null;this.event.mouse_left((function(i,n){if("2D"!==c){c="3D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=e.create_polygon(r);r.points_ids.push(s),p=o}2==u&&(h=o,r.end(),t(null,l.rectObj,[p,h]))}})),this.event.mouse_right((function(e,i){"2D"!==c&&(r.end(),t("取消",""))})),this.event.mouse_move((function(t,e){if("2D"!==c&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),1==u)){var i=r.cartesian3Towgs84(e,r.viewer);r.calrect(p,i)}})),this.event.gesture_pinck_start((function(i,n){if("2D"!==c){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=e.create_polygon(r);r.points_ids.push(a),p=s}2==u&&(r.calrect(p,s),h=s,r.end(),t(null,l.rectObj,[p,h]))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==c){c="2D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s),p=o}2==u&&(h=o,r.end(),t(null,l.rectObj,[p,h]))}})),this.event2D.mouse_right((function(e,i){"3D"!==c&&(r.end(),t("取消",""))})),this.event2D.mouse_move((function(t,e){if("3D"!==c&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),1==u)){var i=r.cartesian3Towgs84(e,r.viewer);r.calrect(p,i)}})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==c){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(a),p=s}2==u&&(r.calrect(p,s),h=s,r.end(),t(null,l.rectObj,[p,h]))}}))}})))}}},{key:"calrect",value:function(t,e){var i,n=[],o=[],s=[];if(n.push([t.lng,t.lat,t.alt],[e.lng,e.lat,e.alt]),2===n.length){var a=turf.lineString(n),r=turf.bbox(a);i=turf.bboxPolygon(r)}i&&(i.geometry.coordinates[0].forEach((function(e){o.push(e[0]),o.push(e[1]);var i={lng:e[0],lat:e[1],alt:t.alt};s.push(i)})),this.rect=[].concat(o),this.rectObj=[].concat(s),this.rectObj.pop())}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(this.entity=new Cesium.Entity({id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(t.rect))}),!1),material:Cesium.Color.fromCssColorString(t.color),arcType:t.rhumb?Cesium.ArcType.RHUMB:Cesium.ArcType.GEODESIC,zIndex:99999999}})),i}}])}(wa);function El(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Sl(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Dl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=El(this,e,[t,n])).points=null,i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n;Sl(e,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(e,s){if("2D"!==n&&(n="3D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];t(null,a),i.end()}})),this.event.mouse_move((function(t,s){if("2D"!==n&&(i.tip.setPosition(s,t.endPosition.x,t.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=e.polygon(i)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(t){a.push([t.lng,t.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event.mouse_right((function(e,o){"2D"!==n&&(t(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=e.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,s){if("3D"!==n&&(n="2D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];t(null,a),i.end()}})),this.event2D.mouse_move((function(t,s){if("3D"!==n&&(i.tip.setPosition(s,t.endPosition.x+i.viewer.canvas.width,t.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=e.polygon(i,i._sdk2D.viewer)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(t){a.push([t.lng,t.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event2D.mouse_right((function(e,o){"3D"!==n&&(t(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=e.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Sl(e,"end",this,3)([]),this.viewer.entities.remove(this.assemblePolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.assemblePolygon)}},{key:"calculateVector",value:function(t,e,i){var n,o,s,a,r,l;e||(e=Math.PI/2),i||(i=1);var c=Math.sqrt(t.x*t.x+t.y*t.y);if(0==t.y)n=o=c*i*Math.cos(e)/t.x,t.x>0?a=-(s=Math.sqrt(i*i-n*n)):t.x<0&&(s=-(a=Math.sqrt(i*i-n*n))),r={x:n,y:s},l={x:o,y:a};else{var u=-t.x/t.y,p=i*c*Math.cos(e)/t.y,h=1+u*u,d=2*u*p,m=p*p-i*i;s=u*(n=(-d-Math.sqrt(d*d-4*h*m))/(2*h))+p,a=u*(o=(-d+Math.sqrt(d*d-4*h*m))/(2*h))+p,t.y>=0?(r={x:n,y:s},l={x:o,y:a}):t.y<0&&(r={x:o,y:a},l={x:n,y:s})}return[r,l]}},{key:"createCloseCardinal",value:function(t){if(null==t||t.length<3)return t;var e=t[0];t.push(e);for(var i=t,n=[],o=.4,s=i.length-1,a=0;a<=s-1;a++){var r=void 0,l=void 0,c=void 0;a==s-1?(r=i[s-1],l=i[0],c=i[1]):(r=i[a],l=i[a+1],c=i[a+2]);var u={x:void 0,y:void 0},p={x:void 0,y:void 0},h={x:l.x-r.x,y:l.y-r.y},d={x:c.x-l.x,y:c.y-l.y},m=Math.sqrt(h.x*h.x+h.y*h.y),f=Math.sqrt(d.x*d.x+d.y*d.y),v={x:h.x/m,y:h.y/m},g={x:d.x/f,y:d.y/f},y={x:v.x+g.x,y:v.y+g.y},b=Math.sqrt(y.x*y.x+y.y*y.y),C={x:y.x/b,y:y.y/b},w=(v.x*g.x+v.y*g.y)/1;Math.abs(1-w)<.005?(u.x=l.x-g.x*m*o,u.y=l.y-g.y*m*o,p.x=l.x+v.x*f*o,p.y=l.y+v.y*f*o):(u.x=l.x-C.x*m*o,u.y=l.y-C.y*m*o,p.x=l.x+C.x*f*o,p.y=l.y+C.y*f*o),a==s-1?(n[0]=l,n[1]=p,n[3*(s-2)+2+3]=u,n[3*(s-2)+2+4]=i[s]):(n[3*a+2+0]=u,n[3*a+2+1]=l,n[3*a+2+2]=p)}return n}},{key:"calculatePointsFBZ3",value:function(t,e){e||(e=20);var i=[],n=.05;e>0&&(n=1/e);for(var o=0;o=t.length&&i.push(s)}return i}}],[{key:"polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(new Cesium.Entity({name:"AssemblePolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeAssemble(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Pl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r,l=this,c=this;YJ.Measure.GetMeasureStatus()?t("上一次测量未结束"):((n=e,o="start",s=this,a=3,r=ba()(nn()(1&a?n.prototype:n),o,s),2&a&&"function"==typeof r?function(t){return r.apply(s,t)}:r)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确认,右键取消",c.sdk),this.event=new X(c.sdk),this._sector_id=null,this._positions=[],this.points_ids=[],this.radius_points=[],this._entities_sector=[],this._radius=0,this._startAngle=0,this._endAngle=0,this.event.mouse_left((function(e,n){if("2D"!==i&&(i="3D",l._positions.length<3?(l.points_ids.push(l.create_point(n)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),t(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length&&(l.radius_points.push(n),l._radius=l.computeDistance2([l._positions[0],l._positions[1]])),1===l._positions.length)){l.radius_points.push(n);var o=l.createRadiusLine();l.points_ids.push(o)}})),this.event.mouse_move((function(t,e){if("2D"!==i){if(l.tip.setPosition(e,t.endPosition.x,t.endPosition.y),1===l._positions.length){l.radius_points[1]=e;var n=l.cartesian3Towgs84(e,l.viewer);l._radius=l.computeDistance2([l._positions[0],n])}if(!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(e,l.viewer)),3==l._positions.length)){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(e,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(),l.points_ids.push(l._sector_id));var o=c.calculateAangle(c._positions);c._startAngle=o.angle1,c._endAngle=o.angle2}}})),this.event.mouse_right((function(e,n){"2D"!==i&&(l.end(),t(null))})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,n){if("3D"!==i&&(i="2D",l._positions.length<3?(l.points_ids.push(l.create_point(n,l._sdk2D.viewer)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),t(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=l.cartesian3Towgs84(n,l.viewer);l._radius=l.computeDistance2([l._positions[0],o])}})),this.event2D.mouse_move((function(t,e){if("3D"!==i&&(l.tip.setPosition(e,t.endPosition.x+l.viewer.canvas.width,t.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(e,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(e,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(l._sdk2D.viewer),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event2D.mouse_right((function(e,n){"3D"!==i&&(l.end(),t(null))}))))}},{key:"createsector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,e=this,i=new Cesium.CallbackProperty((function(){var t=e.calSector(e._positions[0],e._radius,e._startAngle,e._endAngle);return new Cesium.PolygonHierarchy(t)})),n=e.randomString(),o=t.entities.add({id:n,position:Cesium.Cartesian3.fromDegrees(e._positions[0].lng,e._positions[0].lat),polygon:{hierarchy:i,show:!0,fill:!0,clampToGround:!0,material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999}});return e._entities_sector.push(o),n}},{key:"createRadiusLine",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,i=this,n=i.randomString(),o=e.entities.add({id:n,position:new Cesium.CallbackProperty((function(t){var e=i._positions[0],n=i.radius_points[1]?i.cartesian3Towgs84(i.radius_points[1],i.viewer):i._positions[0],o=i.computeMidpoint(e,n);return Cesium.Cartesian3.fromDegrees(o.lng,o.lat,n.alt)}),!1),polyline:{positions:new Cesium.CallbackProperty((function(t){return i.radius_points}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:999999999},label:{text:new Cesium.CallbackProperty((function(e){return t._radius>1e3?"半径:"+(t._radius/1e3).toFixed(2)+" 公里":"半径:"+t._radius+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE}});return i._entities_sector.push(o),n}},{key:"cartesianToLatlng",value:function(t){var e=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(t),i=Cesium.Math.toDegrees(e.latitude);return[Cesium.Math.toDegrees(e.longitude),i]}},{key:"lonLatToMercator",value:function(t){var e=t[0],i=t[1],n=20037508.34*e/180,o=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return[n,o=20037508.34*o/180]}},{key:"WebMercator2lonLat",value:function(t){var e=t[0]/20037508.34*180,i=t[1]/20037508.34*180;return[e,180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"calculateAangle",value:function(t){function e(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=t[0],n=t[1],o=t[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:e(s,a),angle2:e(s,r)}}}])}(wa),Ol=52.35987755982988,Tl=3.141592653589793,Nl=.006693421622965943,Bl=function(){return _()((function t(){k()(this,t)}),null,[{key:"BD09ToGCJ02",value:function(t,e){var i=+t-.0065,n=+e-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*Ol),s=Math.atan2(n,i)-3e-6*Math.cos(i*Ol);return[o*Math.cos(s),o*Math.sin(s)]}},{key:"GCJ02ToBD09",value:function(t,e){e=+e,t=+t;var i=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*Ol),n=Math.atan2(e,t)+3e-6*Math.cos(t*Ol);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(t,e){if(e=+e,t=+t,this.out_of_china(t,e))return[t,e];var i=this.delta(t,e);return[t+i[0],e+i[1]]}},{key:"GCJ02ToWGS84",value:function(t,e){if(e=+e,t=+t,this.out_of_china(t,e))return[t,e];var i=this.delta(t,e);return[2*t-(t+i[0]),2*e-(e+i[1])]}},{key:"delta",value:function(t,e){var i=this.transformLng(t-105,e-35),n=this.transformLat(t-105,e-35),o=e/180*Tl,s=Math.sin(o);s=1-Nl*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*Tl),n=180*n/(6378245*(1-Nl)/(s*a)*Tl)]}},{key:"transformLng",value:function(t,e){var i=300+(t=+t)+2*(e=+e)+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*Tl)+20*Math.sin(2*t*Tl))/3,i+=2*(20*Math.sin(t*Tl)+40*Math.sin(t/3*Tl))/3,i+=2*(150*Math.sin(t/12*Tl)+300*Math.sin(t/30*Tl))/3}},{key:"transformLat",value:function(t,e){var i=2*(t=+t)-100+3*(e=+e)+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*Tl)+20*Math.sin(2*t*Tl))/3,i+=2*(20*Math.sin(e*Tl)+40*Math.sin(e/3*Tl))/3,i+=2*(160*Math.sin(e/12*Tl)+320*Math.sin(e*Tl/30))/3}},{key:"out_of_china",value:function(t,e){return e=+e,!((t=+t)>73.66&&t<135.05&&e>3.86&&e<53.55)}}])}();function Ll(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Al=function(t){function e(t,i){var n;return k()(this,e),(n=Ll(this,e,[t,i])).sdk.addIncetance(n.options.id,n),n.options.show&&Kt(0,n.options.id),n}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h()}},{key:"requestResource",value:function(){var t="";return t=this.options.host.endsWith("yjearth4.0")?this.options.host+"/data/service/load-compact-service":this.options.host+"/yjearth4.0/data/service/load-compact-service",fetch(t,{method:"post",body:JSON.stringify({source_id:this.options.id}),headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}})}}])}(Wn);function jl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Il(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Rl(this,e,[t,i])).options.name=i.name||"未命名对象",n.Dialog=o,n._elms={},n}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i;Fl(e,"setDefaultValue",this,3)([]),this.options.alpha=null!==(t=this.options.alpha)&&void 0!==t?t:1,this.options.brightness=null!==(i=this.options.brightness)&&void 0!==i?i:1}},{key:"layerIndex",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"layer_index",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"brightness",get:function(){return this.options.brightness},set:function(t){this.options.brightness=t,this.entity.brightness=t}},{key:"alpha",get:function(){return this.options.alpha},set:function(t){Number(t)>1&&(t=1),Number(t)<0&&(t=0),this.entity.alpha=t,this.options.alpha=t,this._elms.alpha&&this._elms.alpha.forEach((function(e){e.value=t}))}},{key:"layerRaise",value:function(t){this.sdk.viewer.imageryLayers.raise(this.entity);for(var e=0;e0&&void 0!==l[0]&&l[0],!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=Il({},this.options.position):this.options.positions?r=Il({},this.options.positions[0]):this.options.center?r=Il({},this.options.center):this.options.start?r=Il({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(r);case 17:r.alt=t.sent;case 18:i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e}),t.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity);case 26:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"amapMercatorTilingScheme",value:function(t){return new(function(t){function e(t){var i;k()(this,e),i=Rl(this,e,[t]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(t,e){return e=Bl.WGS84ToGCJ02(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude)),e=n.project(new Cesium.Cartographic(Cesium.Math.toRadians(e[0]),Cesium.Math.toRadians(e[1]))),new Cesium.Cartesian2(e.x,e.y)},i._projection.unproject=function(t,e){var i=n.unproject(t);return e=Bl.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(e[0]),Cesium.Math.toRadians(e[1]))},i}return sn()(e,t),_()(e)}(Cesium.WebMercatorTilingScheme))(t)}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s=this,r=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.length>0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,new rn(this.sdk,this.options,{title:"底图属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),se(s.sdk,s.options.id);var e=Ie();if(e&&e!=s.sdk)for(var i=0;i\n
        \n
        \n
        \n 名称:\n \n
        \n
        \n
        \n
        \n 透明度:\n \n
        \n
        \n
        \n ',e.innerHTML=i,n=e.getElementsByClassName("name")[0],o=e.getElementsByClassName("alpha")[0],n.value=this.name,o.value=this.alpha,n.addEventListener("input",(function(){s.name=n.value})),o.addEventListener("input",(function(){s.alpha=o.value})),this._DialogObject.contentAppChild(e),this._elms.name=[n],this._elms.alpha=[o];case 19:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){(this.entity||this._DialogObject)&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.alpha=this.options.alpha,this.brightness=this.options.brightness)}},{key:"flicker",value:function(){}}]);var i,n}(Al);function Hl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Vl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Hl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"createArcGis",value:(i=o()(a.a.mark((function t(e){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=6;break}return t.next=3,Cesium.ArcGisMapServerImageryProvider.fromUrl(e);case 3:i=t.sent,t.next=7;break;case 6:i=new Cesium.ArcGisMapServerImageryProvider({url:e});case 7:for(this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i,this.options.layer_index):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i),this.entity._id=this.options.id,n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Yl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"createGD",value:function(t){var e=new Cesium.UrlTemplateImageryProvider({url:t,minimumLevel:3,maximumLevel:18,tilingScheme:this.amapMercatorTilingScheme()});this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(e,this.options.layer_index):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(e),this.entity._id=this.options.id;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8"),i}return sn()(e,t),_()(e)}(Jl),Xl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}"),i}return sn()(e,t),_()(e)}(Jl),Zl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"),i}return sn()(e,t),_()(e)}(Jl);function Kl(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return $l(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function $l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=107)){t.next=19;break}return t.next=14,Cesium.Cesium3DTileset.fromUrl(n,r);case 14:l=t.sent,this.entity=l,this.entity.imageBasedLighting.luminanceAtZenith=.1,t.next=25;break;case 19:return r.url=n,l=new Cesium.Cesium3DTileset(r),t.next=23,l.readyPromise;case 23:this.entity=t.sent,this.entity.imageBasedLighting.luminanceAtZenith=.1;case 25:return t.next=27,this.loadSceneTree(n);case 27:if(c=function(t){if(t._contents)for(var e=0;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),dc(i=hc(this,e,[t,n]),gc,void 0),i.picking=!1,i.Dialog=o,i._elms={},i._EventBinding=new wn,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"tileset"}},{key:"on",value:function(){return this.add()}},{key:"name",get:function(){return this.newData.name},set:function(t){this.newData.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.newData.height},set:function(t){this.newData.height=t,this.options.position.alt=t,this._elms.height&&this._elms.height.forEach((function(e){e.value=t})),this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"accuracy",get:function(){return this.newData.accuracy},set:function(t){var e=this;this.newData.accuracy=Number(t.toFixed(1)),this.newData.accuracy<.1&&(this.newData.accuracy=.1),this.entity&&(this.entity.maximumScreenSpaceError=32/this.newData.accuracy),this._elms.accuracy&&this._elms.accuracy.forEach((function(t){t.value=e.newData.accuracy}))}},{key:"lng",get:function(){return this.newData.lng},set:function(t){this.newData.lng=t,this.options.position.lng=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"lat",get:function(){return this.newData.lat},set:function(t){this.newData.lat=t,this.options.position.lat=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"roll",get:function(){return this.newData.roll},set:function(t){this.newData.roll=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"heading",get:function(){return this.newData.heading},set:function(t){this.newData.heading=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"pitch",get:function(){return this.newData.pitch},set:function(t){this.newData.pitch=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"transparency",get:function(){return this.newData.transparency},set:function(t){if(this.newData){this.newData.transparency=Number(t),this._elms.transparency&&this._elms.transparency.forEach((function(e){e.value=t}));var e=this.newData.transparency;this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+e+")"],["true","color('rgba(255,255,255,"+e+")')"]]},show:!0})}}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]&&s[0],this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 420px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 45px;\n }\n",t.next=11,new rn(this.sdk,this.newData,{title:"倾斜模型属性",left:"180px",top:"100px",confirmCallBack:function(t){o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.transparency=o.newData.transparency,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o.oldData.type=o.type,o.oldData.accuracy=o.newData.accuracy,o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(pc(pc({},o.oldData),{},{type:o.type})),se(o.sdk,o.oldData.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.positionEditing&&(o.positionEditing=!1),o.rotationEditing&&(o.rotationEditing=!1),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.newData.show=t,o.entity&&(o.entity.show=t),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0,o.tileset.root.transform||window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500}))},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0,o.tileset.root.transform||window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500}))}},!0);case 11:this._DialogObject=t.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n 精度\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n 透视\n \n
        \n
        \n
        \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"updateModel",value:function(t,e,i){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(this.tileset.root.transform){if(!(!t&&0!==t||!e&&0!==e||!i&&0!==i)){var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,f);var v=Cesium.Matrix4.fromUniformScale(r);Cesium.Matrix4.multiply(f,v,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:t,lat:e,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:s,z:a}),this.editObj&&this.editObj.update(),clearTimeout(fc(gc,this)),mc(gc,this,setTimeout((function(){clearTimeout(fc(gc,n));var t,e=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([e.lng,e.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=lc(n.sdk.entityMap);try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);if("BillboardObject"===a.type&&3==a.heightMode){var r=turf.point([a.lng,a.lat]);turf.booleanPointInPolygon(r,i)&&a.updateHeight()}else a.label&&(a.label.show=a.label.show)}}catch(t){o.e(t)}finally{o.f()}}),300))}}else console.warn("该模型不支持移动和旋转!")}},{key:"reset",value:function(){this.editObj.destroy(),this.entity&&(this.transparency=this.oldData.transparency,this.name=this.oldData.name,this.height=this.oldData.height,this.lng=this.oldData.lng,this.lat=this.oldData.lat,this.roll=this.oldData.roll,this.heading=this.oldData.heading,this.pitch=this.oldData.pitch,this.scale=this.oldData.scale,this.accuracy=this.oldData.accuracy,this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+this.transparency+")"],["true","color('rgba(255,255,255,"+this.transparency+")')"]]},show:!0}))}}]);var i}(rc);function bc(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Cc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Cc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),_c(i=xc(this,e,[t,n]),Pc,void 0),i.picking=!1,i.features=n.features||[],i.exportStateArray=[],i.Dialog=o,i._elms={},i._EventBinding=new wn,i.Dialog.exportState=function(t){i.exportState(t)},i.Dialog.exportProperty=function(t){i.exportProperty(i.exportStateArray)},i.features=new Map,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"bim"}},{key:"name",get:function(){return this.newData.name},set:function(t){this.newData.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.newData.lng},set:function(t){this.newData.lng=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.newData.lat},set:function(t){this.newData.lat=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.newData.height},set:function(t){this.newData.height=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.height&&this._elms.height.forEach((function(e){e.value=t}))}},{key:"roll",get:function(){return this.newData.roll},set:function(t){this.newData.roll=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.roll&&this._elms.roll.forEach((function(e){e.value=t}))}},{key:"heading",get:function(){return this.newData.heading},set:function(t){this.newData.heading=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.heading&&this._elms.heading.forEach((function(e){e.value=t}))}},{key:"pitch",get:function(){return this.newData.pitch},set:function(t){this.newData.pitch=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.pitch&&this._elms.pitch.forEach((function(e){e.value=t}))}},{key:"scale",get:function(){return this.newData.scale},set:function(t){this.newData.scale=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.scale&&this._elms.scale.forEach((function(e){e.value=t}))}},{key:"loadSceneTree",value:(r=o()(a.a.mark((function t(e){var i,n=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=e.split("/"))[i.length-1]="scenetree.json",t.next=4,Cesium.Resource.fetchJson({url:i.join("/")}).then((function(t){n.scenetree=t;var e=function(t){t.forEach((function(t){n.features.has(t.id)?n.features.get(t.id).sphere=t.sphere:n.features.set(t.id,{sphere:t.sphere}),t.children&&e(t.children)}))};e(t.scenes[0].children)}));case 4:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=16;break}return t.next=6,new rn(this.sdk,this.newData,{title:"BIM模型属性",left:"180px",top:"100px",resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o._DialogObject.close();var e=new Map;o.features.forEach((function(t,i){var n=kc({},t);delete n.features,e.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(kc(kc({},o.oldData),{},{features:e,type:o.type})),se(o.sdk,o.oldData.id)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.editObj.destroy(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.newData.show=t,o.entity&&(o.entity.show=t),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0}});case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" tileset-bim",(i=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n x轴\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n y轴\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n z轴\n \n
        \n
        \n
        \n
        \n 大小\n \n
        \n \n \n
        \n \n
        \n
        \n
        \n \n
        \n
        \n

        BIM属性导出选项

        \n
        \n
        \n
        \n
        \n
        \n \n 修建中\n
        \n
        \n \n 未完成\n
        \n
        \n \n 已完成\n
        \n
        \n
        \n \n
        \n
        \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=17;break;case 16:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 17:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"featureEdit",value:(n=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=46;break}o=function(t){var e='
        \n
        \n \n \n \n \n
        \n
        '),i=document.createElement("div");i.innerHTML=e;var s=i.getElementsByClassName("property-item")[0],a=s.querySelector("input[name='key']"),l=s.querySelector("input[name='value']"),c=s.getElementsByClassName("add")[0],p=s.getElementsByClassName("delete")[0];a.addEventListener("input",(function(e){t.key=e.target.value})),l.addEventListener("input",(function(e){t.value=e.target.value})),c.addEventListener("click",(function(){var t={id:n.randomString(),key:"点击此处可编辑",value:""};r.descriptions.push(t),o(t)})),p.addEventListener("click",(function(e){for(var i=0;i.content {\n width: 440px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 110px;\n }\n .col:first-child {\n margin-right: 10px;\n }\n .col:last-child {\n margin-left: 10px;\n }\n .YJ-custom-base-dialog>.content .divide {\n position: relative;\n display: flex;\n align-items: center;\n margin: 20px 0;\n }\n .YJ-custom-base-dialog>.content .divide .line{\n height: 1px;\n background: #ddd;\n flex: 1;\n }\n .YJ-custom-base-dialog>.content .divide p{\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .property .property-item .btn{\n font-size: 24px;\n line-height: 20px;\n padding: 2px 0;\n }\n .YJ-custom-base-dialog>.content .property .property-item .input_lable {\n flex: 0 0 115px;\n border: none;\n margin-right: 15px;\n text-align: right;\n }\n .YJ-custom-base-dialog>.content .property .property-item:first-child .delete{\n display: none\n }\n .YJ-custom-base-dialog>.content .property .property-item .add{\n display: none;\n }\n .YJ-custom-base-dialog>.content .property .property-item:last-child .add{\n display: inline-block;\n }\n",t.next=24,new W(this.sdk.viewer._container,{title:this.oldData.name+"-----设置状态",left:"calc(50% - 200px)",top:"calc(50% - 200px)",closeCallBack:function(){m.Dialog.closeCallBack&&m.Dialog.closeCallBack()}});case 24:return this._DialogObject=t.sent,t.next=27,this._DialogObject.init();case 27:for(document.getElementsByTagName("head")[0].appendChild(this._element_style),(l=document.createElement("div")).innerHTML='\n
        \n
        \n 构件名称\n \n
        \n
        \n
        \n
        \n 选择状态\n \n
        \n
        \n
        \n
        \n

        自定义属性

        \n
        \n
        \n
        \n
        \n ',l.querySelector("input[name='name']").value=s,(c=l.querySelector("select[name='state-select']")).value=r.state,c.addEventListener("change",(function(t){switch(r.state=t.target.value,r.state){case"0":r.stateCH="";break;case"1":r.stateCH="已完成";break;case"2":r.stateCH="未完成";break;case"3":r.stateCH="修建中"}})),u=l.getElementsByClassName("property")[0],p=0;p3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!t&&0!==t||!e&&0!==e||!i&&0!==i)){var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,f);var v=Cesium.Matrix4.fromUniformScale(r);Cesium.Matrix4.multiply(f,v,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:t,lat:e,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:s,z:a}),this.editObj&&this.editObj.update(),clearTimeout(Sc(Pc,this)),Ec(Pc,this,setTimeout((function(){clearTimeout(Sc(Pc,n));var t,e=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([e.lng,e.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=bc(n.sdk.entityMap);try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);if("BillboardObject"===a.type&&3==a.heightMode){var r=turf.point([a.lng,a.lat]);turf.booleanPointInPolygon(r,i)&&a.updateHeight()}else a.label&&(a.label.show=a.label.show)}}catch(t){o.e(t)}finally{o.f()}}),300))}}},{key:"getScenetree",value:function(){return this.scenetree}},{key:"featureColor",value:function(t,e){if(this.features.has(t)){var i=this.features.get(t).features;for(var n in i)i[n].content._model&&(i[n].color=Cesium.Color.fromCssColorString(e)),i[n].customColor=Cesium.Color.fromCssColorString(e);this.features.get(t).customColor=Cesium.Color.fromCssColorString(e)}}},{key:"getFeatureColor",value:function(t){if(this.features.has(t)){if(this.features.get(t).customColor)return this.features.get(t).customColor;var e=this.features.get(t).features;for(var i in e)if(e[i].content._model)return e[i].customColor||e[i].color}}},{key:"featureShow",value:function(t,e){if(this.features.has(t)){var i=this.features.get(t).features;for(var n in i)i[n].content._model&&(i[n].show=e),i[n].customShow=e;this.features.get(t).customShow=e}}},{key:"featureFlyto",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.features.has(e)?(i=this.features.get(e).sphere,n=new Cesium.Cartesian3(i[0],i[1],i[2]),o=this.entity._root.originalTransform,o=Cesium.Matrix4.inverse(o,new Cesium.Matrix4),s=this.entity._root.transform,r=Cesium.Matrix4.multiply(s,o,new Cesium.Matrix4),l=Cesium.Matrix4.multiplyByPoint(r,n,new Cesium.Cartesian3),c=this.cartesian3Towgs84(l,this.sdk.viewer),u=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt+i[3]),pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.camera.flyTo({destination:u}),this.features.forEach((function(t,i){if(i===e){var n=p.getFeatureColor(e);if(p.features.has(e)&&n){var o=p.features.get(e).features;for(var s in o)o[s].content._model&&(o[s].color=n),o[s].customAlpha=1;p.features.get(e).customAlpha=1}}else{var a=p.getFeatureColor(i);if(p.features.has(i)&&a){var r=p.features.get(i).features;for(var l in r)r[l].content._model&&(r[l].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(a.red),",").concat(Cesium.Color.floatToByte(a.green),",").concat(Cesium.Color.floatToByte(a.blue),",").concat(.2*a.alpha,")"))),r[l].customAlpha=.2*a.alpha;p.features.get(i).customAlpha=.2*a.alpha}}}))):this.features.forEach((function(t,e){var i=p.features.get(e).features,n=p.getFeatureColor(e);if(n){for(var o in i)i[o].content._model&&(i[o].color=n),i[o].customAlpha=1;p.features.get(e).customAlpha=.2*n.alpha}}));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"exportProperty",value:function(t){if(0!==this.exportStateArray.length){for(var e,i=["name","","","","","","","","","","","","stateCH","descriptions"],n='{rows}
        ',o=function(t,e){return t.replace(/{(\w+)}/g,(function(t,i){return e[i]}))},s="",a="",r="",l=0;l构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性'),r+="",i){if(Array.isArray(this.features[l][i[u]])){var p="";for(var h in this.features[l][i[u]])p+="".concat(this.features[l][i[u]][h].key+":"+this.features[l][i[u]][h].value," ");s={nameType:"String",data:p}}else s={nameType:"String",data:this.features[l][i[u]]||"0"};r+=o('{data}',s)}r+="",l>0&&l/6e4%1==0&&(a+=o(n,s={rows:r,nameWS:"Sheet"+l}),r="",r+='构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性')}a+=o(n,s={rows:r,nameWS:"Sheet"}),r="",e=o('Axel Richter{created}{worksheets}',s={created:(new Date).getTime(),worksheets:a});var d,m=document.createElement("A");m.href="data:application/vnd.ms-excel;base64,"+(d=e,window.btoa(unescape(encodeURIComponent(d)))),m.download=this.oldData.name+"--构件属性.xls",m.target="_blank",document.body.appendChild(m),m.click(),document.body.removeChild(m)}else window.ELEMENT&&window.ELEMENT.Message({message:"未选择属性导出选项!",type:"warning",duration:1500})}},{key:"exportState",value:function(t){var e=t.target.getElementsByTagName("input")[0];if(e.checked=!e.checked,e.checked)this.exportStateArray.push(e.value),this.exportStateArray=Array.from(new Set(this.exportStateArray));else for(var i=0;i\n
        \n
        \n
        \n 名称\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 最大比例\n
        \n \n \n \n
        \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 最小像素\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n 固定大小\n \n
        \n
        \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n
        \n
        \n

        旋转

        \n
        \n
        \n
        \n x 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n
        \n
        \n y 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n
        \n
        \n z 轴\n \n
        \n \n °\n \n
        \n
        \n
        \n \n
        \n
        \n 缩放\n
        \n \n 是否等比例缩放\n
        \n
        \n
        \n \n \n
        \n

        高度

        \n
        \n
        \n
        \n 高度\n \n
        \n \n m\n \n
        \n
        \n
        \n \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ','\n
        \n
        \n
        \n
        \n \n ')}function Tc(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Nc(t){for(var e=1;e=0;L--){var A=B[L];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}}(t)})),this.MapEvent.mouse_left_down((function(i){var n=a.scene.cartesianToCanvasCoordinates(t.origin);g.x=i.position.x-Math.floor(n.x),g.y=i.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(i.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(e.activeAxis)e.activeAxis=null,e.activeModelParam=null,e.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,e.activeAxis=r.primitive,e.activeModelParam=e.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(t){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(o._params.rx=1),o._params.rx<0&&(o._params.rx=360);Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o._params.rx));o._params.ry-=r,o._params.ry>360&&(o._params.ry=1),o._params.ry<0&&(o._params.ry=360);Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o._params.ry));o._params.rz-=l,o._params.rz>360&&(o._params.rz=1),o._params.rz<0&&(o._params.rz=360),o.updateModel(o._params.tx,o._params.ty,o._params.tz,o._params.rx,o._params.ry,o._params.rz)}else{var p=Date.now();if(p-x<100)return clearTimeout(k),void(k=setTimeout((function(){t(e)}),100));clearTimeout(k),x=p;for(var h=o.coordCircles,d=0;d3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=t=parseFloat(parseFloat(t).toFixed(8)),this._params.ty=e=parseFloat(parseFloat(e).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.model.position=new Cesium.Cartesian3.fromDegrees(t,e,i),this.model.rotate={x:n,y:o,z:s};var a=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),r=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),l=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),c=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),u=Cesium.Matrix4.fromRotationTranslation(a),p=Cesium.Matrix4.fromRotationTranslation(r),h=Cesium.Matrix4.fromRotationTranslation(l),d=new Cesium.Matrix4;Cesium.Matrix4.multiply(c,u,d),Cesium.Matrix4.multiply(d,p,d),Cesium.Matrix4.multiply(d,h,this.model.modelMatrix),this.transformCallBack}},{key:"transformCallBack",get:function(){this._transformCallBack&&this._transformCallBack(this._params)},set:function(t){this._transformCallBack=t}},{key:"createAxisArrow",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(t,e,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=t,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var t=0;t=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Vc(i=zc(this,e,[t,n,o={}]),Yc,null),n.position?n.position.lng||0===n.position.lng?n.position.lat||0===n.position.lat?(i.options.earth&&delete i.options.earth,i.picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff","number"==typeof n.scale?(i.options.scale={},i.options.scale.x=n.scale,i.options.scale.y=n.scale,i.options.scale.z=n.scale):(i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.scale.z=i.options.scale.z||0===i.options.scale.z?i.options.scale.z:1),i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.position=n.position=n.position||{},i.options.position={lng:n.position.lng,lat:n.position.lat,alt:n.position.alt},i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.entity={id:i.options.id},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i.Dialog=o,i._EventBinding=new wn,i.on(),i):(console.warn("lat is required!"),tn()(i)):(console.warn("lng is required!"),tn()(i)):(console.warn("position is required!"),tn()(i))}return sn()(e,t),_()(e,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(l=o()(a.a.mark((function t(e){var i,n,o,s=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Pe(this.sdk,this.options.id),this.sdk&&this.sdk.viewer&&this.sdk.viewer.scene){t.next=3;break}return t.abrupt("return");case 3:if(e=this.replaceHost(e,this.options.host),this.originalOptions=this.deepCopyObj(this.options),i={id:this.options.id,url:e,show:this.options.show,maximumScale:this.options.scaleByDistance?void 0:this.options.maximumScale,minimumPixelSize:this.options.scaleByDistance?void 0:this.options.minimumPixelSize},!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=13;break}return t.next=10,Cesium.Model.fromGltfAsync(i);case 10:this.entity=t.sent,t.next=16;break;case 13:return t.next=15,Cesium.Model.fromGltf(i);case 15:this.entity=t.sent;case 16:return this.entity.imageBasedLighting.luminanceAtZenith=.6,this.entity.color=Cesium.Color.fromCssColorString(this.options.color),t.next=20,this.sdk.viewer.scene.primitives.add(this.entity);case 20:n=Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),this.entity.position=o,this.entity.rotate=Fc({},this.options.rotate),this.entity.customScale=this.options.scale,this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),Number(Cesium.VERSION.split(".")[1])>=107?(this.entity.readyEvent.addEventListener((function(){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Bc(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new oo(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far},s.entity)),s.entity.isMove=!0,clearTimeout(Uc(Yc,s)),Gc(Yc,s,setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500))})),this.activeAnimate=this.options.activeAnimate,this.modelAnimations=this.entity.loader.components.animations):this.entity.readyPromise.then((function(t){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Bc(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new oo(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far,ground:!1},s.entity)),s.entity.isMove=!0,clearTimeout(Uc(Yc,s)),Gc(Yc,s,setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500)),s.activeAnimate=s.options.activeAnimate,s.modelAnimations=s.entity.loader.components.animations})),se(this.sdk,this.options.id);case 28:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"getModelAnimations",value:(r=o()(a.a.mark((function t(){var e=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,i){Number(Cesium.VERSION.split(".")[1])>=107?e.entity.readyEvent.addEventListener((function(){e.modelAnimations=e.entity.loader.components.animations,t(e.modelAnimations)})):e.entity.readyPromise.then((function(i){e.modelAnimations=e.entity.loader.components.animations,t(e.modelAnimations)}))})));case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"remove",value:function(){Hc(e,"remove",this,3)([]),this.label&&this.label.remove(),this.positionEditing=!1,this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=22;break}if(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=Fc({},this.options.position):this.options.positions?r=Fc({},this.options.positions[0]):this.options.center?r=Fc({},this.options.center):this.options.start?r=Fc({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){t.next=15;break}return t.next=14,this.getClampToHeight(r);case 14:r.alt=t.sent;case 15:i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e}),t.next=23;break;case 22:Number(Cesium.VERSION.split(".")[1])>=107?this.entity.ready&&(l=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),this.entity.originalBoundingSphereRadius*this.options.scale.z*2),this.sdk.viewer.camera.flyToBoundingSphere(l)):this.entity.readyPromise.then((function(){var t=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(c.options.position.lng,c.options.position.lat,c.options.position.alt),(c.entity.originalBoundingSphereRadius||c.entity.boundingSphere.radius)*c.options.scale.z*2);c.sdk.viewer.camera.flyToBoundingSphere(t)}));case 23:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"on",value:function(){return this.add()}},{key:"setDefaultValue",value:function(){Hc(e,"setDefaultValue",this,3)([]),this.options.host=this.options.host||h(),this.options.url=this.options.url||""}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.entity.color=Cesium.Color.fromCssColorString(t),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position={lng:t,lat:this.options.position.lat,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position={lng:this.options.position.lng,lat:t,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(t){this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt:t},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[Number(this.options.position.lng),Number(this.options.position.lat),Number(this.options.position.alt)]),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"maximumScale",get:function(){return this.options.maximumScale},set:function(t){this.options.maximumScale=t,this.entity.maximumScale=this.scaleByDistance?void 0:t,this._elms.maximumScale&&this._elms.maximumScale.forEach((function(e){e.value=t}))}},{key:"minimumPixelSize",get:function(){return this.options.minimumPixelSize},set:function(t){this.options.minimumPixelSize=t,this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this._elms.minimumPixelSize&&this._elms.minimumPixelSize.forEach((function(e){e.value=t}))}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity.maximumScale=t?void 0:this.maximumScale,this.entity.minimumPixelSize=t?void 0:this.options.minimumPixelSize,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(e){e.checked=t}))}},{key:"rotateX",get:function(){return this.options.rotate.x},set:function(t){this.options.rotate.x=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateX&&this._elms.rotateX.forEach((function(e){e.value=t}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(t){this.options.rotate.y=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateY&&this._elms.rotateY.forEach((function(e){e.value=t}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(t){this.options.rotate.z=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateZ&&this._elms.rotateZ.forEach((function(e){e.value=t}))}},{key:"scaleX",get:function(){return this.options.scale.x},set:function(t){var e=this;this.options.scale.x=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleX&&this._elms.scaleX.forEach((function(t){t.value=e.options.scale.x}))}},{key:"scaleY",get:function(){return this.options.scale.y},set:function(t){var e=this;this.options.scale.y=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleY&&this._elms.scaleY.forEach((function(t){t.value=e.options.scale.y}))}},{key:"scaleZ",get:function(){return this.options.scale.z},set:function(t){var e=this;this.options.scale.z=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleZ&&this._elms.scaleZ.forEach((function(t){t.value=e.options.scale.z}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label&&(this.label.show=t):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label&&(this.label.color=t),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label&&(this.label.fontSize=t),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label&&(this.label.scaleByDistance=t),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.vr.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0))for(var e=0;e0&&void 0!==v[0]&&v[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=46;break}return i=!1,this.scaleX===this.scaleY&&this.scaleX===this.scaleZ&&(i=!0),t.next=9,new rn(this.sdk,this.originalOptions,{title:"模型属性",left:"180px",top:"100px",confirmCallBack:function(t){f.name=f.options.name||"未命名对象",f.originalOptions=f.deepCopyObj(f.options),f._DialogObject.close();var e=f.deepCopyObj(f.options);e.host="",f.Dialog.confirmCallBack&&f.Dialog.confirmCallBack(e),Pe(f.sdk,f.options.id),se(f.sdk,f.options.id)},resetCallBack:function(){f.reset(),f.Dialog.resetCallBack&&f.Dialog.resetCallBack()},removeCallBack:function(){f.Dialog.removeCallBack&&f.Dialog.removeCallBack()},closeCallBack:function(){f.reset(),f.positionEditing=!1,f.editObj&&f.editObj.destroy(),f.Dialog.closeCallBack&&f.Dialog.closeCallBack()},showCallBack:function(t){f.show=t,f.Dialog.showCallBack&&f.Dialog.showCallBack()},translationalCallBack:function(){f.positionEditing?f.positionEditing=!1:f.positionEditing=!0}},!0);case 9:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" model",(n=document.createElement("div")).innerHTML=Oc(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("model-edit-tabs",void 0,this.sdk),o=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),s=this._DialogObject._element.content.getElementsByClassName("equal")[0],r=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],o.checked=i,o.addEventListener("change",(function(t){(i=t.target.checked)?(s.style.display="flex",r.style.display="none",f.scaleY=f.scaleX,f.scaleZ=f.scaleX):(s.style.display="none",r.style.display="flex")})),(l=s.getElementsByTagName("input"))[0].value=this.scaleX,l[1].value=this.scaleX,l[0].addEventListener("input",(function(t){f.scaleX=t.target.value,f.scaleY=t.target.value,f.scaleZ=t.target.value})),l[1].addEventListener("input",(function(t){f.scaleX=t.target.value,f.scaleY=t.target.value,f.scaleZ=t.target.value})),i?(s.style.display="flex",r.style.display="none"):(s.style.display="none",r.style.display="flex"),c=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){f.color=t},clear:function(){f.color="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelColor=t},clear:function(){f.labelColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:n.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelLineColor=t},clear:function(){f.labelLineColor="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelBackgroundColorStart=t},clear:function(){f.labelBackgroundColorStart="rgba(255,255,255,1)"}}),d=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelBackgroundColorEnd=t},clear:function(){f.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),m=n.getElementsByTagName("*"),this._EventBinding.on(this,m),this._elms=this._EventBinding.element,this._elms.color=[c],this._elms.labelColor=[u],this._elms.labelLineColor=[p],this._elms.labelBackgroundColorStart=[h],this._elms.labelBackgroundColorEnd=[d],this._elms.scaleX.push(l[0],l[1]),setTimeout((function(){f.attributeLink=f.options.attribute.link.content,f.attributeVr=f.options.attribute.vr.content,f.ISCSelect&&f.ISCSelect(),f.goodsSelect&&f.goodsSelect(),f.cameraSelect&&f.cameraSelect();var t=f.attributeSelect,e=f._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(e){var i=Y(e,".attribute-select");i.legp_search(t);for(var n=f._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6?arguments[6]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(parseFloat(i).toFixed(2)),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),r.x=parseFloat(r.x),r.y=parseFloat(r.y),r.z=parseFloat(r.z),this.entity.position=new Cesium.Cartesian3.fromDegrees(t,e,i),this.entity.rotate={x:o,y:s,z:a},this.entity.customScale=r;var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,this.entity.modelMatrix);var v=r.x,g=r.y,y=r.z;0===v&&(v=1e-5),0===g&&(g=1e-5),0===y&&(y=1e-5),Cesium.Matrix4.multiplyByScale(this.entity.modelMatrix,new Cesium.Cartesian3(v,g,y),this.entity.modelMatrix),this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this.editObj&&this.editObj.update(),this.entity.isMove=!0,clearTimeout(Uc(Yc,this)),Gc(Yc,this,setTimeout((function(){n.entity&&(n.entity.isMove=!1)}),500))}},{key:"reset",value:function(){if(this.entity)try{this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.lng=this.originalOptions.position.lng,this.lat=this.originalOptions.position.lat,this.alt=this.originalOptions.position.alt,this.maximumScale=this.originalOptions.maximumScale,this.minimumPixelSize=this.originalOptions.minimumPixelSize,this.scaleByDistance=this.originalOptions.scaleByDistance,this.rotateX=this.originalOptions.rotate.x,this.rotateY=this.originalOptions.rotate.y,this.rotateZ=this.originalOptions.rotate.z,this.scaleX=this.originalOptions.scale.x,this.scaleY=this.originalOptions.scale.y,this.scaleZ=this.originalOptions.scale.z,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect()}catch(t){}}}]);var i,n,s,r,l}(Ac);function qc(t){return'\n
        \n
        \n 名称\n \n
        \n
        \n 颜色\n
        \n
        \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 最大比例\n \n
        \n
        \n
        \n
        \n 纬度\n \n
        \n
        \n 最小像素\n \n
        \n
        \n
        \n
        \n 高度\n \n
        \n
        \n 视野缩放\n \n
        \n
        \n
        \n \n \n '.concat(Ln(t),'\n \n \n
        \n
        \n
        \n x轴\n \n \n
        \n
        \n
        \n
        \n y轴\n \n \n
        \n
        \n
        \n
        \n z轴\n \n \n
        \n
        \n
        \n
        \n 高度\n \n \n
        \n
        \n
        \n
        \n 缩放\n \n \n
        \n
        \n
        \n
        \n \n ').concat('\n
        \n
        \n 标注开关\n \n
        \n
        \n
        \n
        \n 字体颜色\n
        \n
        \n
        \n 字体选择\n
        \n
        \n
        \n 字体大小\n
        \n \n px\n \n
        \n
        \n
        \n
        \n
        \n 视野缩放\n \n
        \n
        \n 最近距离\n
        \n \n m\n \n
        \n
        \n
        \n 最远距离\n
        \n \n m\n \n
        \n
        \n
        \n ','\n
        \n \n ').concat('\n
        \n
        \n 引线颜色\n
        \n
        \n
        \n 背景颜色\n
        \n
        \n
        \n
        \n
        \n
        \n 引线宽度\n
        \n \n px\n \n
        \n
        \n
        \n 引线长度\n
        \n \n px\n \n
        \n
        \n
        \n ',"\n
        \n
        \n
        \n ")}function Xc(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Zc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Zc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Qc(this,e,[t,n,o={}])).picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff",i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.positions=n.positions||[],i.options.type=n.type||0,i.options.interval=n.interval||0===n.interval?n.interval:1,i.options.quantity=n.quantity,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,i.options.label=n.label=n.label||{},i.options.label.show=!(!n.label.show&&!1!==n.label.show)&&n.label.show,i.options.label.fontSize=n.label.fontSize||20,i.options.label.color=n.label.color||"#ffffff",i.options.label.near=n.label.near||0===n.label.near?n.label.near:2e3,i.options.label.far=n.label.far||0===n.label.far?n.label.far:1e5,i.options.label.scaleByDistance=n.label.scaleByDistance||!1,i.options.label.backgroundColor=n.label.backgroundColor||["#42c6ef","#42c6ef"],i.options.line=n.line=n.line||{},i.options.line.width=n.line.width||2,i.options.line.length=n.line.length||20,i.options.line.color=n.line.color||"#fff000",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||[],i.options.attributeType=n.attributeType||"richText",i.ModelPositions=[],i._elms={},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i._element_style=null,i.ControllerObject=new qo(i.sdk),i.ControllerObject.controllerCallBack=function(t){i.lng=t.position.lng,i.lat=t.position.lat,i.alt=t.position.alt},i.Dialog=o,i._EventBinding=new wn,i.on(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(v=function(t){return new Worker("data:,(".concat(t.toString(),")(").concat(JSON.stringify(m),")"))},f=function(t){var e=t.type,i=t.interval,n=t.positions,o=t.optionsPositions,s=t.quantity,a=t.turfUrl;importScripts(a);var r=[];switch(e){case 1:var l=turf.lineString(n[0]),c=turf.lineChunk(l,i/1e3,{units:"kilometers"});r.push({lng:c.features[0].geometry.coordinates[0][0],lat:c.features[0].geometry.coordinates[0][1]});for(var p=0;pthis.options.height&&(o=this.options.positions[s].alt);n[0].length>2?(n[0].push([this.options.positions[0].lng,this.options.positions[0].lat]),r=turf.polygon(n),l=turf.pointOnFeature(r),this.center={lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]}):2==n[0].length?this.center={lng:(this.options.positions[0].lng+this.options.positions[1].lng)/2,lat:(this.options.positions[0].lat+this.options.positions[1].lat)/2}:this.center={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat},c=[],this.options.height||0===this.options.height||(this.options.height=o),p=document.scripts,h="",d=0;case 14:if(!(dthis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
        '+this.options.attribute.link.content[s].url+'
        \n
        \n \n \n
        \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n \n
        ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==p[0]&&p[0],this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=36;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 600px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:first-child {\n margin-left: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:last-child {\n margin-right: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .label {\n flex: 0 0 74px;\n }\n .YJ-custom-base-dialog>.content .DIV-cy-tab-content-pane .input-select {\n width: 100px;\n }\n",t.next=12,new rn(this.sdk,this.originalOptions,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){u.name=u.options.name||"未命名对象",u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions)},resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},removeCallBack:function(){u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u.reset(),u.positionEditing=!1,u.ControllerObject&&u.ControllerObject.destroy(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},showCallBack:function(t){u.show=t,u.Dialog.showCallBack&&u.Dialog.showCallBack()},translationalCallBack:function(){u.positionEditing?u.positionEditing=!1:u.positionEditing=!0}},!0);case 12:this._DialogObject=t.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML=qc(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,new kn("model-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){u.color=t},clear:function(){u.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("label_color")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelColor=t},clear:function(){u.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("line_color")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){u.lineColor=t},clear:function(){u.lineColor="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelBackgroundColorStart=t},clear:function(){u.labelBackgroundColorStart="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelBackgroundColorEnd=t},clear:function(){u.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),c=i.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.lineColor=[s],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],setTimeout((function(){u.attributeLink=u.options.attribute.link.content,u.cameraSelect&&u.cameraSelect();var t=u.attributeSelect,e=u._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(e){var i=Y(e,".attribute-select");i.legp_search(t);for(var n=u._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(i),n=parseFloat(n),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),this.entity.rotate={x:n,y:o,z:s};var r=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),l=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),u=new Cesium.Cartesian3.fromDegrees(t,e,i);Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z)),Cesium.Matrix4.fromRotationTranslation(r),Cesium.Matrix4.fromRotationTranslation(l),Cesium.Matrix4.fromRotationTranslation(c),new Cesium.Matrix4;Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z),this.entity.modelMatrix),this.ControllerObject.update(),this.entity.position=new Cesium.Cartesian3.fromDegrees(t,e,i)}},{key:"updateModelRotate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(i),n=parseFloat(n),this.sdk.viewer.scene.primitives.remove(this.entity);var o=this.options.url;if(!o.startsWith("http")&&!o.includes(":")&&this.options.host){var s=new URL(o,this.options.host);o=s.href}for(var a=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=ou(this,e,[t,n])).object={},i.options.host=i.options.host||h(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"on",value:function(){return this.add()}},{key:"add",value:(n=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestResource();case 2:return e=t.sent,t.next=5,e.text();case 5:if(i=t.sent,i=JSON.parse(i),![0,200].includes(i.code)){t.next=11;break}return t.abrupt("return",this.loadLayer(i.data));case 11:return t.abrupt("return",new Promise((function(t,e){e(i.msg||i.message)})));case 12:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"loadLayer",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.object=nu({},e),i="",this.object.url.startsWith("http")?i=this.object.url:this.options.host?(n=new URL(this.object.url,this.options.host),i=n.href):i=this.object.url,o={url:i,mimmumLevel:this.object.minimumLevel,maximumLevel:this.object.maximumLevel,rectangle:new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north))},t.t0=this.object.scheme_name,t.next="amapMercatorTilingScheme"===t.t0?7:""===t.t0?9:10;break;case 7:return o.tilingScheme=this.amapMercatorTilingScheme(),t.abrupt("break",12);case 9:return t.abrupt("break",12);case 10:return o.tilingScheme=new Cesium[this.object.scheme_name],t.abrupt("break",12);case 12:t.t1=this.object.load_method,t.next="tms"===t.t1?15:"xyz"===t.t1?24:"wmts"===t.t1?26:28;break;case 15:if(this.object.url.endsWith("tilemapresource.xml")&&((r=this.object.url.split("/")).pop(),l=r.join("/"),o.url=l),!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=22;break}return t.next=19,Cesium.TileMapServiceImageryProvider.fromUrl(o.url,o);case 19:s=t.sent,t.next=23;break;case 22:s=new Cesium.TileMapServiceImageryProvider(o);case 23:return t.abrupt("break",30);case 24:return s=new Cesium.UrlTemplateImageryProvider(o),t.abrupt("break",30);case 26:return s=new Cesium.WebMapTileServiceImageryProvider(o),t.abrupt("break",30);case 28:return s=new Cesium.UrlTemplateImageryProvider(o),t.abrupt("break",30);case 30:if(this.sdk&&this.sdk.viewer){t.next=32;break}return t.abrupt("return");case 32:for(this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s,this.options.layer_index):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s),this.entity._id=this.options.id,c=0;c1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=au(this,e,[t,n])).loadLayer(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"loadLayer",value:function(t){var e,i={url:this.options.url,mimmumLevel:this.options.minimumLevel||0,maximumLevel:this.options.maximumLevel||20,subdomains:["0","1","2","3","4","5","6","7"]};e=new Cesium.UrlTemplateImageryProvider(i),this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(e,this.options.layer_index):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(e),this.entity._id=this.options.id;for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function pu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return k()(this,e),du(i=hu(this,e,[t,n]),gu,void 0),i.object=JSON.parse(JSON.stringify(o)),i.object.west||(i.object.west=40),i.object.south||(i.object.south=30),i.object.east||(i.object.east=160),i.object.north||(i.object.north=50),i.show=i.options.show,i._elms={},i.Dialog=s,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"terrain"}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return!(this.sdk.viewer.scene.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)},set:function(t){t?this.open():this.close()}},{key:"open",value:(r=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.url){t.next=4;break}return t.abrupt("return",this.loadTerrain({url:this.options.url}));case 4:return t.next=6,this.requestResource();case 6:return e=t.sent,t.next=9,e.text();case 9:if(i=t.sent,i=JSON.parse(i),![0,200].includes(i.code)){t.next=19;break}if(!i.data.url.length){t.next=16;break}return t.abrupt("return",this.loadTerrain(i.data));case 16:return t.abrupt("return",new Promise((function(t,e){e("资源不存在")})));case 17:t.next=20;break;case 19:return t.abrupt("return",new Promise((function(t,e){e(i.msg||i.message)})));case 20:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){var t=this;this.sdk.viewer.scene.terrainProvider=new Cesium.EllipsoidTerrainProvider({});for(var e=0;e=107)){t.next=9;break}return t.next=6,Cesium.CesiumTerrainProvider.fromUrl(n);case 6:this.terrainProvider=t.sent,t.next=10;break;case 9:this.terrainProvider=new Cesium.CesiumTerrainProvider({url:n});case 10:if(this.sdk&&this.sdk.viewer){t.next=12;break}return t.abrupt("return");case 12:this.sdk.viewer.terrainProvider=this.terrainProvider,clearTimeout(fu(gu,this)),mu(gu,this,setTimeout((function(){clearTimeout(fu(gu,s)),s.terrainProvider.readyPromise.then((function(){var t,e=uu(s.sdk.entityMap);try{for(e.s();!(t=e.n()).done;){var i=y()(t.value,2),n=(i[0],i[1]);"BillboardObject"!==n.type||1!=n.heightMode&&3!=n.heightMode?n.label&&(n.label.show=n.label.show):n.updateHeight()}}catch(t){e.e(t)}finally{e.f()}}))}),1e3)),se(this.sdk,this.options.id);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"remove",value:function(){this.close()}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:3,!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=cu({},this.options.position):this.options.positions?l=cu({},this.options.positions[0]):this.options.center?l=cu({},this.options.center):this.options.start?l=cu({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i,duration:e}),t.next=27;break;case 25:c=new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north)),this.sdk.viewer.camera.flyTo({destination:c,duration:e});case 27:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h(),this.options.url=this.options.url||""}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,new rn(this.sdk,this.options,{title:"地形属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close();var e=o.deepCopyObj(o.options);e.host="",o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(e)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()}},!0);case 5:this._DialogObject=t.sent,(e=document.createElement("div")).style.width="300px",i='\n \n
        \n
        \n
        \n 名称:\n \n
        \n
        \n
        \n ',e.innerHTML=i,(n=e.getElementsByClassName("name")[0]).value=this.name,n.addEventListener("input",(function(){o.name=n.value})),this._DialogObject.contentAppChild(e),this._elms.name=[n];case 15:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,s,r}(Al);function bu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Cu(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Cu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Eu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#ff0000",n.options.endColor=i.endColor||"#fff000",n.options.startScale=i.startScale||.5,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||1,n.options.maximumParticleLife=i.maximumParticleLife||2,n.options.minimumSpeed=i.minimumSpeed||1,n.options.maximumSpeed=i.maximumSpeed||30,n.options.emissionRate=i.emissionRate||60,n.options.particleSize=i.particleSize||10,n.options.show=!1!==i.show,n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n._elms={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.originalOptions=this.deepCopyObj(this.options),e=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=e.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(30)),modelMatrix:o,updateCallback:function(t){t._billboard.id=r.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(r.entity&&r.show){var t=r.sdk.viewer.camera.positionCartographic.height;r.entity.show=!(t>=1e7)}}));case 14:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_u({},this.options.position):this.options.positions?l=_u({},this.options.positions[0]):this.options.center?l=_u({},this.options.center):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(t){this.options.minimumSpeed=t,this.particleSystem.minimumSpeed=t,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(e){e.value=t}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(t){this.options.maximumSpeed=t,this.particleSystem.maximumSpeed=t,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(e){e.value=t}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=t,this.particleSystem.minimumParticleLife=t,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=t}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=t,this.particleSystem.maximumParticleLife=t,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=t}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=t,this.particleSystem.startScale=t,this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=t}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=t,this.particleSystem.endScale=t,this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=t}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=t,this.particleSystem.emissionRate=t,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=t}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=t,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(t,t),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(t,t),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r=this,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"火焰属性",left:"180px",top:"100px",confirmCallBack:function(t){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Pe(r.sdk,r.options.id),se(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(t){r.show=t,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(i=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 起始颜色\n
        \n
        \n
        \n 结束颜色\n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n 最小初速度\n \n
        \n
        \n
        \n
        \n 最大初速度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 最小存在时间\n \n
        \n
        \n
        \n
        \n 最大存在时间\n \n
        \n
        \n
        \n
        \n
        \n
        \n 起始比例\n \n
        \n
        \n
        \n
        \n 结束比例\n \n
        \n
        \n
        \n
        \n
        \n
        \n 发射速率(个/秒)\n \n
        \n
        \n
        \n
        \n 尺寸(像素)\n \n
        \n
        \n
        \n
        \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.startColor=t},clear:function(){r.startColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.endColor=t},clear:function(){r.endColor="rgba(255,255,255,1)"}}),s=i.getElementsByTagName("*"),ku.on(this,s),this._elms=ku.element,this._elms.startColor=[n],this._elms.endColor=[o],t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,function(t){Le.apply(this,arguments)}(this.entity))}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Su(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:_u({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.lng,e.options.lat,e.options.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt}e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:_u({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:_u({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.alt}))}}},{key:"flicker",value:function(){}}]);var i,n,s,r}(Wn);function Pu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Mu(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Lu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#00000000",n.options.endColor=i.endColor||"#0000001a",n.options.startScale=i.startScale||.1,n.options.endScale=i.endScale||10,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||10,n.options.maximumSpeed=i.maximumSpeed||15,n.options.emissionRate=i.emissionRate||28,n.options.particleSize=i.particleSize||2,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.originalOptions=this.deepCopyObj(this.options),e=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=e.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.CircleEmitter(.2),performance:!1,modelMatrix:o,updateCallback:function(t){t._billboard.id=r.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(r.entity&&r.show){var t=r.sdk.viewer.camera.positionCartographic.height;r.entity.show=!(t>=1e7)}}));case 14:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bu({},this.options.position):this.options.positions?l=Bu({},this.options.positions[0]):this.options.center?l=Bu({},this.options.center):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(t){this.options.minimumSpeed=t,this.particleSystem.minimumSpeed=t,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(e){e.value=t}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(t){this.options.maximumSpeed=t,this.particleSystem.maximumSpeed=t,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(e){e.value=t}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=t,this.particleSystem.minimumParticleLife=t,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=t}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=t,this.particleSystem.maximumParticleLife=t,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=t}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=t,this.particleSystem.startScale=t,this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=t}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=t,this.particleSystem.endScale=t,this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=t}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=t,this.particleSystem.emissionRate=t,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=t}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=t,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(t,t),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(t,t),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r=this,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"烟雾属性",left:"180px",top:"100px",confirmCallBack:function(t){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Pe(r.sdk,r.options.id),se(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(t){r.show=t,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(i=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 名称\n \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 经度\n \n
        \n
        \n 纬度\n \n
        \n
        \n
        \n
        \n 高度\n
        \n \n m\n \n
        \n
        \n
        \n
        \n
        \n 起始颜色\n
        \n
        \n
        \n 结束颜色\n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n
        \n 最小初速度\n \n
        \n
        \n
        \n
        \n 最大初速度\n \n
        \n
        \n
        \n
        \n
        \n
        \n 最小存在时间\n \n
        \n
        \n
        \n
        \n 最大存在时间\n \n
        \n
        \n
        \n
        \n
        \n
        \n 起始比例\n \n
        \n
        \n
        \n
        \n 结束比例\n \n
        \n
        \n
        \n
        \n
        \n
        \n 发射速率(个/秒)\n \n
        \n
        \n
        \n
        \n 尺寸(像素)\n \n
        \n
        \n
        \n
        \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.startColor=t},clear:function(){r.startColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.endColor=t},clear:function(){r.endColor="rgba(255,255,255,1)"}}),s=i.getElementsByTagName("*"),Tu.on(this,s),this._elms=Tu.element,this._elms.startColor=[n],this._elms.endColor=[o],t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Au(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Bu({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.lng,e.options.lat,e.options.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt}e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Bu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Bu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.alt}))}}},{key:"flicker",value:function(){}}]);var i,n,s,r}(Wn);function Iu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ru(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ru(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ru(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Gu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f24d",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||1,n.options.endScale=i.endScale||20,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||9,n.options.maximumSpeed=i.maximumSpeed||9.5,n.options.emissionRate=i.emissionRate||20,n.options.particleSize=i.particleSize||.5,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p=function(){var t=Cesium.HeadingPitchRoll.fromDegrees(0,0,0),e=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 + */!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__(33),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t){return function(e){return new Md5(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Md5},t.update=function(e){return t.create().update(e)};for(var e=0;e>2]|=t[s]<>6,l[o++]=128|63&n):n<55296||n>=57344?(l[o++]=224|n>>12,l[o++]=128|n>>6&63,l[o++]=128|63&n):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++s)),l[o++]=240|n>>18,l[o++]=128|n>>12&63,l[o++]=128|n>>6&63,l[o++]=128|63&n);else for(o=this.start;s>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(r[o>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,i,n,o,s,a=this.blocks;this.first?e=((e=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879<<0)^(i=((i=(-271733879^(n=((n=(-1732584194^2004318071&t)+a[1]-117830708)<<12|n>>>20)+t<<0)&(-271733879^t))+a[2]-1126478375)<<17|i>>>15)+n<<0)&(n^t))+a[3]-1316259209)<<22|e>>>10)+i<<0:(t=this.h0,e=this.h1,i=this.h2,e=((e+=((t=((t+=((n=this.h3)^e&(i^n))+a[0]-680876936)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[1]-389564586)<<12|n>>>20)+t<<0)&(t^e))+a[2]+606105819)<<17|i>>>15)+n<<0)&(n^t))+a[3]-1044525330)<<22|e>>>10)+i<<0),e=((e+=((t=((t+=(n^e&(i^n))+a[4]-176418897)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[5]+1200080426)<<12|n>>>20)+t<<0)&(t^e))+a[6]-1473231341)<<17|i>>>15)+n<<0)&(n^t))+a[7]-45705983)<<22|e>>>10)+i<<0,e=((e+=((t=((t+=(n^e&(i^n))+a[8]+1770035416)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[9]-1958414417)<<12|n>>>20)+t<<0)&(t^e))+a[10]-42063)<<17|i>>>15)+n<<0)&(n^t))+a[11]-1990404162)<<22|e>>>10)+i<<0,e=((e+=((t=((t+=(n^e&(i^n))+a[12]+1804603682)<<7|t>>>25)+e<<0)^(i=((i+=(e^(n=((n+=(i^t&(e^i))+a[13]-40341101)<<12|n>>>20)+t<<0)&(t^e))+a[14]-1502002290)<<17|i>>>15)+n<<0)&(n^t))+a[15]+1236535329)<<22|e>>>10)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[1]-165796510)<<5|t>>>27)+e<<0)^e))+a[6]-1069501632)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[11]+643717713)<<14|i>>>18)+n<<0)^n))+a[0]-373897302)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[5]-701558691)<<5|t>>>27)+e<<0)^e))+a[10]+38016083)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[15]-660478335)<<14|i>>>18)+n<<0)^n))+a[4]-405537848)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[9]+568446438)<<5|t>>>27)+e<<0)^e))+a[14]-1019803690)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[3]-187363961)<<14|i>>>18)+n<<0)^n))+a[8]+1163531501)<<20|e>>>12)+i<<0,e=((e+=((n=((n+=(e^i&((t=((t+=(i^n&(e^i))+a[13]-1444681467)<<5|t>>>27)+e<<0)^e))+a[2]-51403784)<<9|n>>>23)+t<<0)^t&((i=((i+=(t^e&(n^t))+a[7]+1735328473)<<14|i>>>18)+n<<0)^n))+a[12]-1926607734)<<20|e>>>12)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[5]-378558)<<4|t>>>28)+e<<0))+a[8]-2022574463)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[11]+1839030562)<<16|i>>>16)+n<<0))+a[14]-35309556)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[1]-1530992060)<<4|t>>>28)+e<<0))+a[4]+1272893353)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[7]-155497632)<<16|i>>>16)+n<<0))+a[10]-1094730640)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[13]+681279174)<<4|t>>>28)+e<<0))+a[0]-358537222)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[3]-722521979)<<16|i>>>16)+n<<0))+a[6]+76029189)<<23|e>>>9)+i<<0,e=((e+=((s=(n=((n+=((o=e^i)^(t=((t+=(o^n)+a[9]-640364487)<<4|t>>>28)+e<<0))+a[12]-421815835)<<11|n>>>21)+t<<0)^t)^(i=((i+=(s^e)+a[15]+530742520)<<16|i>>>16)+n<<0))+a[2]-995338651)<<23|e>>>9)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[0]-198630844)<<6|t>>>26)+e<<0)|~i))+a[7]+1126891415)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[14]-1416354905)<<15|i>>>17)+n<<0)|~t))+a[5]-57434055)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[12]+1700485571)<<6|t>>>26)+e<<0)|~i))+a[3]-1894986606)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[10]-1051523)<<15|i>>>17)+n<<0)|~t))+a[1]-2054922799)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[8]+1873313359)<<6|t>>>26)+e<<0)|~i))+a[15]-30611744)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[6]-1560198380)<<15|i>>>17)+n<<0)|~t))+a[13]+1309151649)<<21|e>>>11)+i<<0,e=((e+=((n=((n+=(e^((t=((t+=(i^(e|~n))+a[4]-145523070)<<6|t>>>26)+e<<0)|~i))+a[11]-1120210379)<<10|n>>>22)+t<<0)^((i=((i+=(t^(n|~e))+a[2]+718787259)<<15|i>>>17)+n<<0)|~t))+a[9]-343485551)<<21|e>>>11)+i<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=i-1732584194<<0,this.h3=n+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+i<<0,this.h3=this.h3+n<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,n=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,i,n="",o=this.array(),s=0;s<15;)t=o[s++],e=o[s++],i=o[s++],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|i>>>6)]+BASE64_ENCODE_CHAR[63&i];return t=o[s],n+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(31),__webpack_require__(32))},function(t,e,i){var n=i(5),o=i(15),s=i(34),a=i(35);function r(e){var i="function"==typeof Map?new Map:void 0;return t.exports=r=function(t){if(null===t||!s(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(t))return i.get(t);i.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){t.exports=i(39)},function(t,e,i){var n=i(11).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},s=Object.prototype,a=s.hasOwnProperty,r=Object.defineProperty||function(t,e,i){t[e]=i.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function h(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var o=e&&e.prototype instanceof b?e:b,s=Object.create(o.prototype),a=new N(n||[]);return r(s,"_invoke",{value:P(t,i,a)}),s}function m(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=d;var f="suspendedStart",v="executing",g="completed",y={};function b(){}function C(){}function w(){}var k={};h(k,c,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(B([])));_&&_!==s&&a.call(_,c)&&(k=_);var E=w.prototype=b.prototype=Object.create(k);function S(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function D(t,e){function i(o,s,r,l){var c=m(t[o],t,s);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==n(p)&&a.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,r,l)}),(function(t){i("throw",t,r,l)})):e.resolve(p).then((function(t){u.value=t,r(u)}),(function(t){return i("throw",t,r,l)}))}l(c.arg)}var o;r(this,"_invoke",{value:function(t,n){function s(){return new e((function(e,o){i(t,n,e,o)}))}return o=o?o.then(s,s):s()}})}function P(t,i,n){var o=f;return function(s,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===s)throw a;return{value:e,done:!0}}for(n.method=s,n.arg=a;;){var r=n.delegate;if(r){var l=M(r,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=m(t,i,n);if("normal"===c.type){if(o=n.done?g:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=g,n.method="throw",n.arg=c.arg)}}}function M(t,i){var n=i.method,o=t.iterator[n];if(o===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,M(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var s=m(o,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,y;var a=s.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,y):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function B(t){if(t||""===t){var i=t[c];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function i(){for(;++o=0;--o){var s=this.tryEntries[o],r=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=a.call(s,"catchLoc"),c=a.call(s,"finallyLoc");if(l&&c){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),T(i),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;T(i)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:B(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),y}},i}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,s,a,r=[],l=!0,c=!1;try{if(s=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=s.call(i)).done)&&(r.push(n.value),r.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return r}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(11).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(17);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){var i,n,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(t){if(i===setTimeout)return setTimeout(t,0);if((i===s||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:s}catch(t){i=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,c=[],u=!1,p=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!u){var t=r(h);u=!0;for(var e=c.length;e;){for(l=c,c=[];++p1)for(var i=1;i0&&void 0!==o[0]?o[0]:{},t.next=3,fetch((e.host||"")+"/yjearth4.0/api/v1/user/sign-in",{method:"post",body:JSON.stringify({username:e.username,password:e.password}),headers:{"Content-Type":"application/json"}});case 3:return i=t.sent,t.next=6,i.text();case 6:n=t.sent,0===(n=JSON.parse(n)).code&&(p(e.host),n.token?d(n.token):d(n.data.token));case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function p(t){localStorage.setItem(l,t||"")}function h(){return localStorage.getItem(l)||""}function d(t){localStorage.setItem(r,t)}function m(){return localStorage.getItem(r)}function f(){var t=document.querySelectorAll("script"),e="";return t.forEach((function(t){if(t.src.indexOf("YJEarth.min.js")>-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}var g=i(10),y=i.n(g),b=i(8),C=i.n(b),w=i(1),k=i.n(w),x=i(2),_=i.n(x);function E(t){document.addEventListener("keydown",M.bind(t),!1),document.addEventListener("keyup",O.bind(t),!1),t&&t.clock.onTick.addEventListener((function(){!function(t){if(!t||!t.scene||!t.scene.screenSpaceCameraController.enableTilt)return;var e=t.camera,i=t.scene.globe.ellipsoid.cartesianToCartographic(e.position).height,n=e.positionCartographic.height,o=i/20,s=o/5e5/Cesium.Math.toDegrees(e.pitch),a=n/100;S.moveForward&&(2==t.scene.mode?e.moveUp(a):e.rotate(e.right,-s));S.moveBackward&&(2==t.scene.mode?e.moveDown(a):e.rotate(e.right,s));S.moveLeft&&(2==t.scene.mode?e.moveLeft(a):e.rotate(e.up,-s));S.moveRight&&(2==t.scene.mode?e.moveRight(a):e.rotate(e.up,s));S.moveUp&&e.moveUp(o);S.moveDown&&e.moveDown(o);S.lookUp&&e.lookUp();S.lookDown&&e.lookDown();S.lookLeft&&e.lookLeft();S.lookRight&&e.lookRight();S.twistLeft&&e.twistLeft();S.twistRight&&e.twistRight();if(S.zoomIn){var r=i/2;r<1&&(r=0),e.zoomIn(r)}if(S.zoomOut){var l=i/2;i+i>=5e7&&(l=5e7-i),e.zoomOut(l)}}(t)}))}var S={moveForward:!1,moveBackward:!1,moveLeft:!1,moveRight:!1,moveUp:!1,moveDown:!1,lookUp:!1,lookDown:!1,lookLeft:!1,lookRight:!1,twistLeft:!1,twistRight:!1,zoomIn:!1,zoomOut:!1};function D(t){switch(t){case 87:return"moveForward";case 83:return"moveBackward";case 68:return"moveRight";case 65:return"moveLeft";case 81:return"moveUp";case 69:return"moveDown";case 38:return"lookUp";case 40:return"lookDown";case 37:return"lookLeft";case 39:return"lookRight";case 96:return"twistLeft";case 110:return"twistRight";case 107:return"zoomIn";case 109:return"zoomOut";default:return}}function M(t){var e;if("input"===(e=document.activeElement).tagName.toLowerCase()&&"checkbox"!==e.type||"textarea"===e.tagName.toLowerCase()||"textarea"===e.getAttribute("role"));else if(this.trackedEntity);else if(this._firstPersonView);else if(this._disableKeyboardEvent);else if(t.ctrlKey&&t.altKey){if("v"===t.key||"V"===t.key){var i=this.camera;this._CAMERA_SHORTCUT_VIEW={orientation:{heading:i.heading,pitch:i.pitch,roll:i.roll},position:{x:i.position.x,y:i.position.y,z:i.position.z}},localStorage.setItem("CAMERA_SHORTCUT_VIEW",JSON.stringify(this._CAMERA_SHORTCUT_VIEW))}if("f"===t.key||"F"===t.key){var n=localStorage.getItem("CAMERA_SHORTCUT_VIEW");this._CAMERA_SHORTCUT_VIEW=JSON.parse(n),this._CAMERA_SHORTCUT_VIEW&&this._CAMERA_SHORTCUT_VIEW.position&&this._CAMERA_SHORTCUT_VIEW.orientation&&this.camera.flyTo({destination:this._CAMERA_SHORTCUT_VIEW.position,orientation:this._CAMERA_SHORTCUT_VIEW.orientation})}}else{var o=D(t.keyCode);void 0!==o&&(S[o]=!0)}}function O(t){var e=D(t.keyCode);void 0!==e&&(S[e]=!1)}var T=i(11),N=i.n(T),B=i(6),L=i.n(B),A=i(20),j=i.n(A),I=[{name:"GCS_WGS_1984",epsg:"EPSG:4326",def:"+proj=longlat +datum=WGS84 +no_defs"},{name:"GCS_China_Geodetic_Coordinate_System_2000",epsg:"EPSG:4490",def:"+proj=longlat +ellps=GRS80 +no_defs"},{name:"WGS 84 / UTM zone 1N",epsg:"EPSG:32601",def:"+proj=utm +zone=1 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 2N",epsg:"EPSG:32602",def:"+proj=utm +zone=2 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 3N",epsg:"EPSG:32603",def:"+proj=utm +zone=3 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 4N",epsg:"EPSG:32604",def:"+proj=utm +zone=4 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 5N",epsg:"EPSG:32605",def:"+proj=utm +zone=5 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 6N",epsg:"EPSG:32606",def:"+proj=utm +zone=6 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 7N",epsg:"EPSG:32607",def:"+proj=utm +zone=7 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 8N",epsg:"EPSG:32608",def:"+proj=utm +zone=8 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 9N",epsg:"EPSG:32609",def:"+proj=utm +zone=9 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 10N",epsg:"EPSG:32610",def:"+proj=utm +zone=10 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 11N",epsg:"EPSG:32611",def:"+proj=utm +zone=11 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 12N",epsg:"EPSG:32612",def:"+proj=utm +zone=12 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 13N",epsg:"EPSG:32613",def:"+proj=utm +zone=13 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 14N",epsg:"EPSG:32614",def:"+proj=utm +zone=14 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 15N",epsg:"EPSG:32615",def:"+proj=utm +zone=15 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 16N",epsg:"EPSG:32616",def:"+proj=utm +zone=16 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 17N",epsg:"EPSG:32617",def:"+proj=utm +zone=17 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 18N",epsg:"EPSG:32618",def:"+proj=utm +zone=18 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 19N",epsg:"EPSG:32619",def:"+proj=utm +zone=19 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 20N",epsg:"EPSG:32620",def:"+proj=utm +zone=20 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 21N",epsg:"EPSG:32621",def:"+proj=utm +zone=21 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 22N",epsg:"EPSG:32622",def:"+proj=utm +zone=22 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 23N",epsg:"EPSG:32623",def:"+proj=utm +zone=23 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 24N",epsg:"EPSG:32624",def:"+proj=utm +zone=24 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 25N",epsg:"EPSG:32625",def:"+proj=utm +zone=25 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 26N",epsg:"EPSG:32626",def:"+proj=utm +zone=26 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 27N",epsg:"EPSG:32627",def:"+proj=utm +zone=27 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 28N",epsg:"EPSG:32628",def:"+proj=utm +zone=28 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 29N",epsg:"EPSG:32629",def:"+proj=utm +zone=29 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 30N",epsg:"EPSG:32630",def:"+proj=utm +zone=30 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 31N",epsg:"EPSG:32631",def:"+proj=utm +zone=31 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 32N",epsg:"EPSG:32632",def:"+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 33N",epsg:"EPSG:32633",def:"+proj=utm +zone=33 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 34N",epsg:"EPSG:32634",def:"+proj=utm +zone=34 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 35N",epsg:"EPSG:32635",def:"+proj=utm +zone=35 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 36N",epsg:"EPSG:32636",def:"+proj=utm +zone=36 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 37N",epsg:"EPSG:32637",def:"+proj=utm +zone=37 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 38N",epsg:"EPSG:32638",def:"+proj=utm +zone=38 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 39N",epsg:"EPSG:32639",def:"+proj=utm +zone=39 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 40N",epsg:"EPSG:32640",def:"+proj=utm +zone=40 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 41N",epsg:"EPSG:32641",def:"+proj=utm +zone=41 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 42N",epsg:"EPSG:32642",def:"+proj=utm +zone=42 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 43N",epsg:"EPSG:32643",def:"+proj=utm +zone=43 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 44N",epsg:"EPSG:32644",def:"+proj=utm +zone=44 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 45N",epsg:"EPSG:32645",def:"+proj=utm +zone=45 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 46N",epsg:"EPSG:32646",def:"+proj=utm +zone=46 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 47N",epsg:"EPSG:32647",def:"+proj=utm +zone=47 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 48N",epsg:"EPSG:32648",def:"+proj=utm +zone=48 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 49N",epsg:"EPSG:32649",def:"+proj=utm +zone=49 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 50N",epsg:"EPSG:32650",def:"+proj=utm +zone=50 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 51N",epsg:"EPSG:32651",def:"+proj=utm +zone=51 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 52N",epsg:"EPSG:32652",def:"+proj=utm +zone=52 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 53N",epsg:"EPSG:32653",def:"+proj=utm +zone=53 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 54N",epsg:"EPSG:32654",def:"+proj=utm +zone=54 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 55N",epsg:"EPSG:32655",def:"+proj=utm +zone=55 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 56N",epsg:"EPSG:32656",def:"+proj=utm +zone=56 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 57N",epsg:"EPSG:32657",def:"+proj=utm +zone=57 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 58N",epsg:"EPSG:32658",def:"+proj=utm +zone=58 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 59N",epsg:"EPSG:32659",def:"+proj=utm +zone=59 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 60N",epsg:"EPSG:32660",def:"+proj=utm +zone=60 +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 1S",epsg:"EPSG:32701",def:"+proj=utm +zone=1 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 2S",epsg:"EPSG:32702",def:"+proj=utm +zone=2 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 3S",epsg:"EPSG:32703",def:"+proj=utm +zone=3 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 4S",epsg:"EPSG:32704",def:"+proj=utm +zone=4 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 5S",epsg:"EPSG:32705",def:"+proj=utm +zone=5 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 6S",epsg:"EPSG:32706",def:"+proj=utm +zone=6 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 7S",epsg:"EPSG:32707",def:"+proj=utm +zone=7 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 8S",epsg:"EPSG:32708",def:"+proj=utm +zone=8 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 9S",epsg:"EPSG:32709",def:"+proj=utm +zone=9 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 10S",epsg:"EPSG:32710",def:"+proj=utm +zone=10 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 11S",epsg:"EPSG:32711",def:"+proj=utm +zone=11 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 12S",epsg:"EPSG:32712",def:"+proj=utm +zone=12 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 13S",epsg:"EPSG:32713",def:"+proj=utm +zone=13 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 14S",epsg:"EPSG:32714",def:"+proj=utm +zone=14 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 15S",epsg:"EPSG:32715",def:"+proj=utm +zone=15 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 16S",epsg:"EPSG:32716",def:"+proj=utm +zone=16 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 17S",epsg:"EPSG:32717",def:"+proj=utm +zone=17 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 18S",epsg:"EPSG:32718",def:"+proj=utm +zone=18 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 19S",epsg:"EPSG:32719",def:"+proj=utm +zone=19 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 20S",epsg:"EPSG:32720",def:"+proj=utm +zone=20 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 21S",epsg:"EPSG:32721",def:"+proj=utm +zone=21 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 22S",epsg:"EPSG:32722",def:"+proj=utm +zone=22 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 23S",epsg:"EPSG:32723",def:"+proj=utm +zone=23 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 24S",epsg:"EPSG:32724",def:"+proj=utm +zone=24 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 25S",epsg:"EPSG:32725",def:"+proj=utm +zone=25 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 26S",epsg:"EPSG:32726",def:"+proj=utm +zone=26 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 27S",epsg:"EPSG:32727",def:"+proj=utm +zone=27 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 28S",epsg:"EPSG:32728",def:"+proj=utm +zone=28 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 29S",epsg:"EPSG:32729",def:"+proj=utm +zone=29 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 30S",epsg:"EPSG:32730",def:"+proj=utm +zone=30 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 31S",epsg:"EPSG:32731",def:"+proj=utm +zone=31 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 32S",epsg:"EPSG:32732",def:"+proj=utm +zone=32 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 33S",epsg:"EPSG:32733",def:"+proj=utm +zone=33 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 34S",epsg:"EPSG:32734",def:"+proj=utm +zone=34 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 35S",epsg:"EPSG:32735",def:"+proj=utm +zone=35 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 36S",epsg:"EPSG:32736",def:"+proj=utm +zone=36 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 37S",epsg:"EPSG:32737",def:"+proj=utm +zone=37 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 38S",epsg:"EPSG:32738",def:"+proj=utm +zone=38 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 39S",epsg:"EPSG:32739",def:"+proj=utm +zone=39 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 40S",epsg:"EPSG:32740",def:"+proj=utm +zone=40 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 41S",epsg:"EPSG:32741",def:"+proj=utm +zone=41 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 42S",epsg:"EPSG:32742",def:"+proj=utm +zone=42 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 43S",epsg:"EPSG:32743",def:"+proj=utm +zone=43 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 44S",epsg:"EPSG:32744",def:"+proj=utm +zone=44 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 45S",epsg:"EPSG:32745",def:"+proj=utm +zone=45 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 46S",epsg:"EPSG:32746",def:"+proj=utm +zone=46 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 47S",epsg:"EPSG:32747",def:"+proj=utm +zone=47 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 48S",epsg:"EPSG:32748",def:"+proj=utm +zone=48 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 49S",epsg:"EPSG:32749",def:"+proj=utm +zone=49 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 50S",epsg:"EPSG:32750",def:"+proj=utm +zone=50 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 51S",epsg:"EPSG:32751",def:"+proj=utm +zone=51 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 52S",epsg:"EPSG:32752",def:"+proj=utm +zone=52 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 53S",epsg:"EPSG:32753",def:"+proj=utm +zone=53 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 54S",epsg:"EPSG:32754",def:"+proj=utm +zone=54 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 55S",epsg:"EPSG:32755",def:"+proj=utm +zone=55 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 56S",epsg:"EPSG:32756",def:"+proj=utm +zone=56 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 57S",epsg:"EPSG:32757",def:"+proj=utm +zone=57 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 58S",epsg:"EPSG:32758",def:"+proj=utm +zone=58 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 59S",epsg:"EPSG:32759",def:"+proj=utm +zone=59 +south +datum=WGS84 +units=m +no_defs"},{name:"WGS 84 / UTM zone 60S",epsg:"EPSG:32760",def:"+proj=utm +zone=60 +south +datum=WGS84 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_13",epsg:"EPSG:4491",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=13500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_14",epsg:"EPSG:4492",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=14500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_15",epsg:"EPSG:4493",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=15500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_16",epsg:"EPSG:4494",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=16500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_17",epsg:"EPSG:4495",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=17500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_18",epsg:"EPSG:4496",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=18500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_19",epsg:"EPSG:4497",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=19500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_20",epsg:"EPSG:4498",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=20500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_21",epsg:"EPSG:4499",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=21500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_22",epsg:"EPSG:4500",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=22500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_Zone_23",epsg:"EPSG:4501",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=23500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_75E",epsg:"EPSG:4502",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_81E",epsg:"EPSG:4503",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_87E",epsg:"EPSG:4504",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_93E",epsg:"EPSG:4505",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_99E",epsg:"EPSG:4506",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_105E",epsg:"EPSG:4507",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_111E",epsg:"EPSG:4508",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_117E",epsg:"EPSG:4509",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_123E",epsg:"EPSG:4510",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_129E",epsg:"EPSG:4511",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_GK_CM_135E",epsg:"EPSG:4512",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_25",epsg:"EPSG:4513",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=25500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_26",epsg:"EPSG:4514",def:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=26500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_27",epsg:"EPSG:4515",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=27500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_28",epsg:"EPSG:4516",def:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=28500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_29",epsg:"EPSG:4517",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=29500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_30",epsg:"EPSG:4518",def:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=30500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_31",epsg:"EPSG:4519",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=31500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_32",epsg:"EPSG:4520",def:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=32500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_33",epsg:"EPSG:4521",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=33500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_34",epsg:"EPSG:4522",def:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=34500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_35",epsg:"EPSG:4523",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=35500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_36",epsg:"EPSG:4524",def:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=36500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_37",epsg:"EPSG:4525",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=37500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_38",epsg:"EPSG:4526",def:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=38500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_39",epsg:"EPSG:4527",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=39500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_40",epsg:"EPSG:4528",def:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=40500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_41",epsg:"EPSG:4529",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=41500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_42",epsg:"EPSG:4530",def:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=42500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_43",epsg:"EPSG:4531",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=43500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_44",epsg:"EPSG:4532",def:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=44500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_Zone_45",epsg:"EPSG:4533",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=45500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_75E",epsg:"EPSG:4534",def:"+proj=tmerc +lat_0=0 +lon_0=75 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_78E",epsg:"EPSG:4535",def:"+proj=tmerc +lat_0=0 +lon_0=78 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_81E",epsg:"EPSG:4536",def:"+proj=tmerc +lat_0=0 +lon_0=81 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_84E",epsg:"EPSG:4537",def:"+proj=tmerc +lat_0=0 +lon_0=84 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_87E",epsg:"EPSG:4538",def:"+proj=tmerc +lat_0=0 +lon_0=87 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_90E",epsg:"EPSG:4539",def:"+proj=tmerc +lat_0=0 +lon_0=90 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_93E",epsg:"EPSG:4540",def:"+proj=tmerc +lat_0=0 +lon_0=93 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_96E",epsg:"EPSG:4541",def:"+proj=tmerc +lat_0=0 +lon_0=96 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_99E",epsg:"EPSG:4542",def:"+proj=tmerc +lat_0=0 +lon_0=99 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_102E",epsg:"EPSG:4543",def:"+proj=tmerc +lat_0=0 +lon_0=102 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_105E",epsg:"EPSG:4544",def:"+proj=tmerc +lat_0=0 +lon_0=105 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_108E",epsg:"EPSG:4545",def:"+proj=tmerc +lat_0=0 +lon_0=108 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_111E",epsg:"EPSG:4546",def:"+proj=tmerc +lat_0=0 +lon_0=111 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_114E",epsg:"EPSG:4547",def:"+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_117E",epsg:"EPSG:4548",def:"+proj=tmerc +lat_0=0 +lon_0=117 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_120E",epsg:"EPSG:4549",def:"+proj=tmerc +lat_0=0 +lon_0=120 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_123E",epsg:"EPSG:4550",def:"+proj=tmerc +lat_0=0 +lon_0=123 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_126E",epsg:"EPSG:4551",def:"+proj=tmerc +lat_0=0 +lon_0=126 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_129E",epsg:"EPSG:4552",def:"+proj=tmerc +lat_0=0 +lon_0=129 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_132E",epsg:"EPSG:4553",def:"+proj=tmerc +lat_0=0 +lon_0=132 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"},{name:"CGCS2000_3_Degree_GK_CM_135E",epsg:"EPSG:4554",def:"+proj=tmerc +lat_0=0 +lon_0=135 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs"}],R=function(){return _()((function t(){k()(this,t),this.name_map=new Map,this.epsg_map=new Map,this.initProj()}),[{key:"initProj",value:function(){var t=this;I.forEach((function(e){proj4.defs(e.epsg,e.def),t.name_map.set(e.name,e),t.epsg_map.set(e.epsg,e)}))}},{key:"convert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={points:[],code:0,message:""};if(!this.name_map.has(e)&&!this.epsg_map.has(e))return n.code=1,n.message="不支持的坐标系:"+e,n;if(!this.name_map.has(i)&&!this.epsg_map.has(i))return n.code=1,n.message="不支持的坐标系:"+i,n;var o=(this.name_map.get(e)||this.epsg_map.get(e)).epsg,s=(this.name_map.get(i)||this.epsg_map.get(i)).epsg,a=proj4.defs(o),r=proj4.defs(s);return t.forEach((function(t){var e=Number(t.x),i=Number(t.y),o=Number(t.z||0),s=proj4(a,r,[e,i]);n.points.push({x:Number(s[0].toFixed(10)),y:Number(s[1].toFixed(10)),z:o})})),n}},{key:"getAllProjection",value:function(){return Array.from(this.name_map.values())}},{key:"projectionIsExists",value:function(t){return this.name_map.has(t)||this.epsg_map.has(t)}},{key:"degreesToDMS",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function i(t){var e=t.toString(),i=e.indexOf(".");return-1!==i?e.length-i-1:0}function n(t){return Math.pow(10,t)}var o=!1;t<0&&(o=!0),t=Math.abs(t);var s=Math.floor(t),a=n(i(t)),r=Math.floor((t-s)*a*60)/a,l=Math.floor(r);o&&(s=-s);var c=n(i(r)),u=Math.floor((r-l)*c)/c*60;return e?s+"°"+Math.floor(1e4*r)/1e4+"'":s+"°"+l+"'"+Math.floor(100*u)/100+'"'}},{key:"dmsToDecimal",value:function(t,e){var i,n,o;if(e){var s=t.split("°"),a=s[1].split("'");i=s[0],n=a[0],console.log(i,n);var r=Math.pow(10,8),l=Number(i*r)+n*r/60;return Math.round(l)/r}var c=t.split("°"),u=c[1].split("'"),p=u[1].split('"');i=c[0],n=u[0],o=p[0],console.log(i,n,o);var h=Math.pow(10,8),d=Number(i*h)+n*h/60+o*h/3600;return Math.round(d)/h}}])}();function F(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function z(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];k()(this,t),this.container=e,this.options=z({},i),this.options.ismove=!0,!1===i.ismove&&(this.options.ismove=i.ismove),this.closeCallBack=i.closeCallBack,this._element={},this._element_style=void 0,this.only=n}),[{key:"init",value:(t=o()(a.a.mark((function t(){var e,i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.only&&this.closeAll(),U.push(this),this.isDestroy=!1,this._element.body=document.createElement("div"),this._element.body.className="YJ-custom-base-dialog",this._element.body.style.top=this.options.top,this._element.body.style.bottom=this.options.bottom,this._element.body.style.left=this.options.left,this._element.body.style.right=this.options.right,this.container.appendChild(this._element.body),this._element.title=document.createElement("div"),this._element.title.className="title-box",this._element.title.innerHTML=''.concat(this.options.title||"","")+'',this._element.body.appendChild(this._element.title),t.next=16,document.createElement("div");case 16:return this._element.content=t.sent,this._element.content.className="content",this._element.body.appendChild(this._element.content),t.next=21,document.createElement("div");case 21:return this._element.foot=t.sent,this._element.foot.className="foot",this._element.foot.innerHTML='\n \n ',this._element.body.appendChild(this._element.foot),t.next=27,document.createElement("div");case 27:for((e=t.sent).style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e.style.backdropFilter="blur(2px)",e.style.zIndex="-999999",this._element.body.appendChild(e),this._element.body.getElementsByClassName("close-box")[0].addEventListener("click",(function(){o.close()})),i=this._element.body.getElementsByClassName("close"),n=0;n=0;e--)t[e].dataset&&"YJ_style_dialog"===t[e].dataset.name&&document.getElementsByTagName("head")[0].removeChild(t[e]);this._element.body&&this._element.body.parentNode&&this.container.removeChild(this._element.body),this._element.body=null,this._element.title=null,this._element.content=null,this._element.foot=null,this._element_style=null,this.isDestroy=!0,this.closeCallBack&&(this.closeCallBack(),this.closeCallBack=null)}},{key:"closeAll",value:function(){for(var t=U.length-1;t>=0;t--)U[t].close(),U.splice(t,1)}},{key:"titleAppChild",value:function(t){this._element.title.appendChild(t)}},{key:"contentAppChild",value:function(t){this._element.content.appendChild(t)}},{key:"footAppChild",value:function(t,e){e?this._element.foot.insertBefore(t,e):this._element.foot.prepend(t)}},{key:"moveDiv",value:function(){var t=this,e=0,i=0,n=0,o=0,s=this._element.body,a=this;s.onmousedown=function(s){if("title-box"===s.toElement.className){var r=t._element.body.offsetHeight,l=t._element.body.offsetWidth;e=s.clientX,i=s.clientY;var c=window.getComputedStyle(t._element.body).left,u=window.getComputedStyle(t._element.body).top;n=1*c.substr(0,c.indexOf("px")),o=1*u.substr(0,u.indexOf("px"));var p=document.documentElement.clientHeight,h=document.documentElement.clientWidth;window.onmousemove=function(t){t.preventDefault();var s=t.clientX,c=t.clientY,u=s-(e-n),d=c-(i-o);u<0?u=0:u+l>h&&(u=h-l),d<=0?d=0:d+r>p&&(d=p-r),a._element.body.style.left=u+"px",a._element.body.style.top=d+"px",a._element.body.style.bottom="unset",a._element.body.style.right="unset"},document.onmouseup=function(t){window.onmousemove=null},window.ondragend=function(t){window.onmousemove=null}}},document.onmouseup=function(t){window.onmousemove=null},window.ondragend=function(t){window.onmousemove=null}}}]);var t}(),U=[],W=G,Y=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=null;return{that:Array.prototype.slice.call(t.querySelectorAll(e),0),stopPropagation:function(t){(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0},hide:function(){Y(t,e).that.forEach((function(t){t.style.cssText+="display:none;"}))},show:function(i){void 0!==i?Y(t,e).that[i].style.cssText+="display:block;":Y(t,e).that.forEach((function(t){t.style.cssText+="display:block;"}))},legp_searchList:function(e){var i=[];return Y(t,"input[name="+e+"]").that.forEach((function(t){i.push(t.value)})),i},legp_search:function(o){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=Y(t,e).that[i];if(a){var r='
        \n '.concat(s?'':''),'\n
        \n
        \n
        ');a.innerHTML=r,Y(t,".cy_datalist input").that[i].oninput=function(e){var s=this.value;if(Y(t,".cy_datalist dl").hide(),o.length>0){Y(t,".cy_datalist dl").show();var a=new RegExp(s),r=!1;Y(t,".cy_datalist dl").that[i].innerHTML="",o.forEach((function(e){a.test(e.name)&&(r=!0,Y(t,".cy_datalist dl").that[i].innerHTML+='
        '+e.name+"
        ")})),r||(Y(t,".cy_datalist dl").that[i].innerHTML='
        暂无数据
        '),l()}},Y(t,".cy_datalist input").that[i].onclick=function(e){Y(t,".cy_datalist dl").hide();var i=1*e.srcElement.classList[1];i=i||0,"none"===Y(t,".cy_datalist dl").that[i].style.display&&(0==o.length?this.innerHTML="暂无数据":Y(t,".cy_datalist dl").show(i),Y(t,".cy_datalist dl").that[i].innerHTML="",o.forEach((function(e){Y(t,".cy_datalist dl").that[i].innerHTML+='
        '+e.name+"
        "})),l()),e.stopPropagation()},document.addEventListener("click",(function(){Y(t,".cy_datalist dl").hide()}))}function l(){Y(t,".cy_datalist dl dd").that.forEach((function(t){t.onclick=function(t){if(this&&this.attributes){var e=this.attributes.value.value;n=e,t.currentTarget.parentNode.previousElementSibling.value=e;var i=new Event("input",{bubbles:!0});t.currentTarget.parentNode.previousElementSibling.dispatchEvent(i)}}}))}},legp_searchActive:function(t){n=t}}},J=function(){var t=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new R,H&&H.close&&(H.close(),H=null),t.next=4,new W(e.viewer._container,{title:"度分秒",left:"180px",top:"100px",closeCallBack:function(){i&&i()}});case 4:return H=t.sent,t.next=7,H.init();case 7:o='\n \n
        \n
        \n
        \n 输入格式\n
        \n
        \n
        \n
        \n
        \n \n

        \n \n 例如116.6°, 39.9°\n

        \n
        \n
        \n 经度\n \n
        \n
        \n 纬度\n \n
        \n
        \n \n \n \n \n
        \n
        \n
        \n
        \n \n

        \n 度分\n 例如95°10.1702\', 49°12.4015\'\n

        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n
        \n
        \n
        \n \n \n \n \n
        \n
        \n
        \n
        \n \n

        \n 度分秒\n 例如11°18\'54.37", 39°13\'46.57"\n

        \n
        \n
        \n
        \n 经度\n \n \n \n \n \n \n \n
        \n
        \n 纬度\n \n \n \n \n \n \n \n
        \n
        \n
        \n \n \n \n \n
        \n
        \n
        \n \n '),H._element.body.className=H._element.body.className+" proj-convert",(s=document.createElement("div")).style.width="460px",s.style.display="flex",s.style.flexDirection="column",s.innerHTML=o,H.contentAppChild(s),r=s.getElementsByClassName("item"),l=a.a.mark((function t(e){var i,o,l,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=r[e].getAttribute("data-type"),o=r[e].getElementsByClassName("convert")[0],l=r[e].getElementsByClassName("icon-copy-box")[0],(c=new ClipboardJS(l,{text:function(t){var n;switch(i){case 0:case"0":n=r[e].getElementsByClassName("lng")[0].value+"°,"+r[e].getElementsByClassName("lat")[0].value+"°";break;case 1:case"1":n=s.getElementsByClassName("lng-dm-d")[0].value+"°"+s.getElementsByClassName("lng-dm-m")[0].value+"',"+s.getElementsByClassName("lat-dm-d")[0].value+"°"+s.getElementsByClassName("lat-dm-m")[0].value+"'";break;case 2:case"2":n=s.getElementsByClassName("lng-dms-d")[0].value+"°"+s.getElementsByClassName("lng-dms-m")[0].value+"'"+s.getElementsByClassName("lng-dms-s")[0].value+'",'+s.getElementsByClassName("lat-dms-d")[0].value+"°"+s.getElementsByClassName("lat-dms-m")[0].value+"'"+s.getElementsByClassName("lat-dms-s")[0].value+'"'}return n}})).on("success",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"已复制到剪切板",type:"success",duration:1500})})),c.on("error",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"复制失败",type:"warning",duration:1500})})),o.addEventListener("click",(function(){var t,o,a,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_;switch(i){case 0:case"0":t=r[e].getElementsByClassName("lng")[0].value,o=r[e].getElementsByClassName("lat")[0].value,p=n.degreesToDMS(t,!0),h=n.degreesToDMS(o,!0),v=(f=p.split("°"))[1].split("'"),y=(g=h.split("°"))[1].split("'"),s.getElementsByClassName("lng-dm-d")[0].value=f[0],s.getElementsByClassName("lng-dm-m")[0].value=v[0],s.getElementsByClassName("lat-dm-d")[0].value=g[0],s.getElementsByClassName("lat-dm-m")[0].value=y[0],d=n.degreesToDMS(t),m=n.degreesToDMS(o),w=(C=(b=d.split("°"))[1].split("'"))[1].split('"'),_=(x=(k=m.split("°"))[1].split("'"))[1].split('"'),s.getElementsByClassName("lng-dms-d")[0].value=b[0],s.getElementsByClassName("lng-dms-m")[0].value=C[0],s.getElementsByClassName("lng-dms-s")[0].value=w[0],s.getElementsByClassName("lat-dms-d")[0].value=k[0],s.getElementsByClassName("lat-dms-m")[0].value=x[0],s.getElementsByClassName("lat-dms-s")[0].value=_[0];break;case 1:case"1":a=r[e].getElementsByClassName("lng-dm-d")[0].value,l=r[e].getElementsByClassName("lng-dm-m")[0].value,c=r[e].getElementsByClassName("lat-dm-d")[0].value,u=r[e].getElementsByClassName("lat-dm-m")[0].value,t=n.dmsToDecimal(a+"°"+l+"'",!0),o=n.dmsToDecimal(c+"°"+u+"'",!0),s.getElementsByClassName("lng")[0].value=t,s.getElementsByClassName("lat")[0].value=o,d=n.degreesToDMS(t),m=n.degreesToDMS(o),w=(C=(b=d.split("°"))[1].split("'"))[1].split('"'),_=(x=(k=m.split("°"))[1].split("'"))[1].split('"'),s.getElementsByClassName("lng-dms-d")[0].value=b[0],s.getElementsByClassName("lng-dms-m")[0].value=C[0],s.getElementsByClassName("lng-dms-s")[0].value=w[0],s.getElementsByClassName("lat-dms-d")[0].value=k[0],s.getElementsByClassName("lat-dms-m")[0].value=x[0],s.getElementsByClassName("lat-dms-s")[0].value=_[0];break;case 2:case"2":d=(a=r[e].getElementsByClassName("lng-dms-d")[0].value)+"°"+(l=r[e].getElementsByClassName("lng-dms-m")[0].value)+"'"+r[e].getElementsByClassName("lng-dms-s")[0].value+'"',m=(c=r[e].getElementsByClassName("lat-dms-d")[0].value)+"°"+(u=r[e].getElementsByClassName("lat-dms-m")[0].value)+"'"+r[e].getElementsByClassName("lat-dms-s")[0].value+'"',t=n.dmsToDecimal(d),o=n.dmsToDecimal(m),s.getElementsByClassName("lng")[0].value=t,s.getElementsByClassName("lat")[0].value=o,p=n.degreesToDMS(t,!0),h=n.degreesToDMS(o,!0),v=(f=p.split("°"))[1].split("'"),y=(g=h.split("°"))[1].split("'"),s.getElementsByClassName("lng-dm-d")[0].value=f[0],s.getElementsByClassName("lng-dm-m")[0].value=v[0],s.getElementsByClassName("lat-dm-d")[0].value=g[0],s.getElementsByClassName("lat-dm-m")[0].value=y[0]}window.ELEMENT&&window.ELEMENT.Message({message:"转换成功",type:"success",duration:1500});for(var E=0;ENumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"mouse_right",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"mouse_right_down",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_DOWN)}},{key:"mouse_right_up",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.handler&&this.handler.setInputAction((function(n){var o=e.getcartesian(n);(o||i)&&t(n,o)}),Cesium.ScreenSpaceEventType.RIGHT_UP)}},{key:"mouse_wheel",value:function(t){this.handler&&this.handler.setInputAction((function(){t()}),Cesium.ScreenSpaceEventType.WHEEL)}},{key:"getcartesian",value:function(t){var e=t.position||t.endPosition;t.position1&&t.position2&&(e={x:(t.position1.x+t.position2.x)/2,y:(t.position1.y+t.position2.y)/2});var i=this.viewer.scene.pickPosition(e);if(!i){for(var n=this.viewer.camera.getPickRay(e),o=this.viewer.scene.drillPickFromRay(n,10),s={},a=0;a0&&void 0!==arguments[0]?arguments[0]:"左键开始,右键结束",i=arguments.length>1?arguments[1]:void 0;k()(this,t),this.point=void 0,this.text=e,this.div=void 0,this.mouse_type=0,this.position=new Cesium.Cartesian3,this.viewer=i.viewer,this.create_tip(this.viewer)}),[{key:"set_text",value:function(t){this.div.getElementsByTagName("p")[0].innerText=t}},{key:"get_mouse_style",value:function(t){var e="";switch(t){case 1:e="move.png";break;default:e="arrow.png"}return"url(lib/img/"+e+"),auto"}},{key:"create_tip",value:function(t){this.create_tooltip()}},{key:"setPosition",value:function(t,e,i){this.position=t,this.move_tooltip(e,i)}},{key:"destroy",value:function(){this.viewer.entities.remove(this.point),this.remove_tooltip()}},{key:"create_tooltip",value:function(){var t=new fi;this.div=document.createElement("div");this.div.setAttribute("style","position: absolute;z-index: 777;color: #ec131a;left:10px;top:0px;pointer-events: none;");var e=document.createElement("p");e.style.margin="0px",e.style.padding="0px",e.innerText=this.text,this.div.appendChild(e);var i=document.createElement("div");i.style.width="12px",i.style.height="12px",i.style.background="url(".concat(t.getSourceRootPath()+"/img/point.png",") 100% 100% no-repeat"),i.style.backgroundSize="100% 100%",i.style.position="absolute",i.style.left="-36px",i.style.top="-4px",this.div.style.display="none",this.div.appendChild(i),t=null,document.querySelector("body").appendChild(this.div)}},{key:"style_tip",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t._element.style.cursor=this.get_mouse_style(e)}},{key:"remove_tooltip",value:function(){document.querySelector("body").contains(this.div)&&document.querySelector("body").removeChild(this.div)}},{key:"move_tooltip",value:function(t,e){var i=0,n=0;if(this.div.style.display="block",this.viewer&&this.viewer._element){var o=this.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];i=o.getBoundingClientRect().top+window.scrollY,n=o.getBoundingClientRect().left+window.scrollX}this.div.style.left=t+30+n+"px",this.div.style.top=e+i+"px"}}])}(),K=function(){var t=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new fi,o=new R,V&&V.close&&(V.close(),V=null),t.next=5,new W(e.viewer._container,{title:"投影转换",left:"180px",top:"100px",closeCallBack:function(){i&&i()}});case 5:return V=t.sent,t.next=8,V.init();case 8:'\n \n
        \n
        \n
        \n 源坐标\n \n
        \n
        \n
        \n 椭圆基准\n
        \n
        \n
        \n 经度(x)\n \n
        \n
        \n 纬度(y)\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 目标坐标\n \n
        \n
        \n
        \n 椭圆基准\n
        \n
        \n
        \n 经度(x)\n \n
        \n
        \n 纬度(y)\n \n
        \n
        \n
        \n
        \n \n ',(l=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 源坐标\n \n
        \n
        \n
        \n 椭圆基准\n
        \n
        \n
        \n 经度(x)\n \n
        \n
        \n 纬度(y)\n \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n 目标坐标\n \n
        \n
        \n
        \n 椭圆基准\n
        \n
        \n
        \n 经度(x)\n \n
        \n
        \n 纬度(y)\n \n
        \n
        \n
        \n
        \n \n ',V.contentAppChild(l),c=[],u=0,o.epsg_map.forEach((function(t,e){u++,c.push({name:"".concat(u,".  ").concat(e,"(").concat(t.name,")"),value:e})})),(p=Y(l.getElementsByClassName("left")[0],".datalist_left")).legp_search(c,!0),(h=Y(l.getElementsByClassName("right")[0],".datalist_right")).legp_search(c,!0),d=l.getElementsByClassName("pick")[0],m=l.getElementsByClassName("copy")[0],(f=l.getElementsByClassName("datalist_left")[0].getElementsByTagName("input")[0]).value=c[0].value,p.legp_searchActive(c[0].value),(v=l.getElementsByClassName("datalist_right")[0].getElementsByTagName("input")[0]).value=c[0].value,h.legp_searchActive(c[0].value),g=l.getElementsByClassName("convert")[0],y=l.getElementsByClassName("left-x")[0],b=l.getElementsByClassName("left-y")[0],C=l.getElementsByClassName("right-x")[0],w=l.getElementsByClassName("right-y")[0],d.addEventListener("click",(function(){s&&s.destroy(),r&&r.destroy(),s=new Z("左键选择起点坐标,右键取消",e),(r=new X(e)).mouse_move((function(t,e){s.setPosition(e,t.endPosition.x,t.endPosition.y)})),r.mouse_left((function(t,i){var a=n.cartesian3Towgs84(i,e.viewer);s&&s.destroy(),r&&r.destroy();var l=o.convert([{x:Number(a.lng),y:Number(a.lat)}],"EPSG:4326",f.value);0===l.code&&(y.value=l.points[0].x,b.value=l.points[0].y)})),r.mouse_right((function(t,e){s&&s.destroy(),r&&r.destroy()}))})),g.addEventListener("click",(function(){if(!y.value||!b.value)return C.value="",w.value="",void(window.ELEMENT&&window.ELEMENT.Message({message:"请输入源坐标",type:"warning",duration:1500}));var t=o.convert([{x:Number(y.value),y:Number(b.value)}],f.value,v.value);0===t.code?(C.value=t.points[0].x,w.value=t.points[0].y):window.ELEMENT&&window.ELEMENT.Message({message:t.message,type:"warning",duration:1500})})),new ClipboardJS(m,{text:function(t){if(C.value&&w.value){var e="".concat(C.value,",").concat(w.value);return e}C.value="",w.value="",window.ELEMENT&&window.ELEMENT.Message({message:"复制失败,目标坐标为空!",type:"warning",duration:1500})}}).on("success",(function(t){window.ELEMENT&&window.ELEMENT.Message({message:"已复制到剪切板",type:"success",duration:1500})}));case 36:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}(),$=function(){V&&V.close&&(V.close(),V=null)},Q=[new Map,new Map,new Map];Q[0].set("--color-sdk-base-rgb","0, 255, 255"),Q[0].set("--color-sdk-gradual","rgb(0, 255, 255) 6.25%, rgb(0, 200, 255) 100%"),Q[0].set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%"),Q[0].set("--color-sdk-text-shadow","rgba(20, 118, 255, 1)"),Q[1].set("--color-sdk-base-rgb","42, 200, 251"),Q[1].set("--color-sdk-gradual","rgb(42, 200, 251) 6.25%, rgb(42, 145, 251) 100%"),Q[1].set("--color-sdk-bg-gradual","#2ac8fb33 0%, #2ac8fb00 100%"),Q[1].set("--color-sdk-text-shadow","rgba(20, 63, 255, 1)"),Q[2].set("--color-sdk-base-rgb","187, 26, 41"),Q[2].set("--color-sdk-gradual","rgb(187, 26, 41) 6.25%, rgb(236, 20, 20) 100%"),Q[2].set("--color-sdk-bg-gradual","#bb1a2933 0%, #bb1a2900 100%"),Q[2].set("--color-sdk-text-shadow","rgba(246, 8, 30, 1)");var tt={};function et(t,e,i){if(t&&t.div_id){var n=ae().sdkD,o=document.getElementById(t.div_id).getElementsByClassName("cesium-viewer")[0],s=new fi;tt[t.div_id]||(tt[t.div_id]={}),tt[t.div_id].mousedown&&document.removeEventListener("mousedown",tt[t.div_id].mousedown),tt[t.div_id].click&&document.removeEventListener("click",tt[t.div_id].click),tt[t.div_id].callBack||(tt[t.div_id].callBack=i),t!==n&&tt[t.div_id].mouseRightMenuEvent&&tt[t.div_id].mouseRightMenuEvent.destroy();var a=document.getElementById("custom-menu");a&&o.removeChild(a),tt[t.div_id].status=e,e&&(tt[t.div_id].mousedown=function(t){if(!(t.target.parentNode&&"custom-menu"==t.target.parentNode.id||t.target.parentNode&&t.target.parentNode.parentNode&&"custom-menu"==t.target.parentNode.parentNode.id)){var e=document.getElementById("custom-menu");e&&o.removeChild(e)}},document.addEventListener("mousedown",tt[t.div_id].mousedown),tt[t.div_id].click=function(t){if(!(t.target.parentNode&&"custom-menu"==t.target.parentNode.id||t.target.parentNode&&t.target.parentNode.parentNode&&"custom-menu"==t.target.parentNode.parentNode.id)){var e=document.getElementById("custom-menu");e&&o.removeChild(e)}},document.addEventListener("click",tt[t.div_id].click),tt[t.div_id].mouseRightMenuEvent=new X(t),tt[t.div_id].mouseRightMenuEvent.mouse_right((function(e,i){if(!YJ.Measure.GetMeasureStatus()&&!t.viewer.trackedEntity){var n=t.viewer.entities.getById("svg-control-points_0");if(!n||!n.show){var a=document.getElementById("custom-menu");a&&o.removeChild(a);var r,l=function(e){var i=t.viewer.scene.pick(e.position);if(i)if(i.id){if(i.id.type&&"vector"===i.id.type&&i.id.parentId)return{parentId:i.id.parentId,id:i.id.id};if(i.id.id)return i.id.id;if("string"==typeof i.id)return i.id}else if(i.primitive&&i.primitive.id)return i.primitive.id}(e);"[object Object]"===Object.prototype.toString.call(l)&&(r=l.id,l=l.parentId);var c="",u=t.entityMap.get(l);if(!u&&l){var p=l.split("-");p.splice(p.length-1,1),l=p.join("-"),u=t.entityMap.get(l)}u&&u.picking&&(c='\n \n
          \n
        • 属性
        • \n
        \n ');var h=s.cartesian3Towgs84(i,t.viewer);(a=document.createElement("div")).id="custom-menu",a.style.position="absolute",a.style.width="110px",a.style.backgroundColor="#00000085",a.style.color="#ffffff",a.style.padding="6px 0",a.style.boxShadow="4px 4px 4px 0px rgba(0, 0, 0, 0.8)",a.innerHTML='\n
          \n
        • 绕鼠标点旋转
        • \n
        \n
          \n
        • 文本框
        • \n
        \n '.concat(c,"\n "),o.appendChild(a);var d=e.position.x,m=e.position.y;e.position.x+a.offsetWidth>o.offsetWidth&&(d=e.position.x-a.offsetWidth),e.position.y+a.offsetHeight>o.offsetHeight&&(m=e.position.y-a.offsetHeight),a.style.left=d+"px",a.style.top=m+"px",a.addEventListener("contextmenu",(function(t){t.preventDefault()}));for(var f=a.getElementsByTagName("li"),v={},g=function(e){f[e].addEventListener("mouseover",(function(){f[e].style.backgroundColor="#5e5e5e"})),f[e].addEventListener("mouseout",(function(){f[e].style.backgroundColor="unset"})),f[e].addEventListener("click",(function(){var i="";switch(f[e].innerHTML){case"绕鼠标点旋转":v.position=h,i="rotateAround";break;case"属性":r?(v.id=r,v.parentId=u.options.id):v.id=u.options.id,i="attribute";break;case"文本框":v.position=h,i="textBox"}tt[t.div_id].callBack(i,v),o.removeChild(a)}))},y=0;y=0;l--){var c=Array.from(at.keys())[l],u=at.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M=0;l--){var c=Array.from(Ct.keys())[l],u=Ct.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M1&&void 0!==arguments[1]&&arguments[1];if(t){bt||(bt=new fi),(Pt=!!e)?Tt(t,Mt):Lt(t);var i=Ie();i&&(Pt?Tt(t,Mt):Lt(i));var n=ae().sdkD;n&&t!==n&&Ot(n,e)}}function Tt(t,e){Mt=e,Pt&&Bt(t);var i=Ie();return i&&Pt&&Bt(i),new Promise(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:setTimeout((function(){e()}),1e3);case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}())}function Nt(){return Pt}function Bt(t){Lt(t);var e,i,n=t.viewer.camera.positionCartographic,o={position:{lng:Cesium.Math.toDegrees(n.longitude),lat:Cesium.Math.toDegrees(n.latitude),alt:n.height}},s=t.viewer;switch(Mt){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}for(var a=0;au&&(u+=360),c={minLng:r,minLat:l,maxLng:u,maxLat:d},l<-88&&(l=-88),d>88&&(d=88),(c.maxLng-c.minLng)/n*((c.maxLat-c.minLat)/o)>7e3)c=null;else{for(var m=r;m<=u;m+=n){for(var f=[],v=[],g=l;Math.floor(1e9*g)/1e9<=d;g+=o/2)v.push([m,g]),f.push(Cesium.Cartesian3.fromDegrees(m,g,8848));88!=d&&d+o/2>=88&&f.push(Cesium.Cartesian3.fromDegrees(m,88,8848));var y=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:f,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});if(e.add(new Cesium.Primitive({geometryInstances:y,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})})),md)break;var w=p(C.lng,C.lat,t);i.add({position:Cesium.Cartesian3.fromDegrees(C.lng,C.lat,8848),text:w,font:"16px Inter, sans-serif",fillColor:Cesium.Color.fromCssColorString("#fcfc00"),pixelOffset:new Cesium.Cartesian2(0,0),showBackground:!1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,scale:1,distanceDisplayCondition:new Cesium.DistanceDisplayCondition(0,8e7),scaleByDistance:s})}}for(var k=l;Math.floor(1e9*k)/1e9<=d;k+=o){for(var x=[],_=[],E=r;E<=u;E+=n/2)_.push([E,k]),x.push(Cesium.Cartesian3.fromDegrees(E,k,8848));var S=new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:x,width:1,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,arcType:Cesium.ArcType.RHUMB})});e.add(new Cesium.Primitive({geometryInstances:S,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.fromCssColorString("#fcfc00")})})}))}}}function p(t,e,i){var n,o;switch(i){case"1:100万":n=6,o=4;break;case"1:50万":n=3,o=2;break;case"1:25万":n=1.5,o=1;break;case"1:10万":n=.5,o=1/3;break;case"1:5万":n=.25,o=1/6;break;case"1:2.5万":n=.125,o=1/12;break;case"1:1万":n=.0625,o=1/24;break;case"1:5000":n=.03125,o=1/48}e=Math.max(-88,Math.min(88,e));var s,a=t,r=e=Math.abs(e),l=Math.floor(a/6+31),c="ABCDEFGHIJKLMNOPQRSTUV".charAt(Math.floor(r/4+1)-1),u={"1:100万":"","1:50万":"B","1:25万":"C","1:10万":"D","1:5万":"E","1:2.5万":"F","1:1万":"G","1:5000":"H"}[i];if(!u&&"1:100万"!==i)throw new Error("不支持的比例尺,请使用: 1:100万, 1:50万, 1:25万, 1:10万, 1:5万, 1:2.5万, 1:1万, 1:5000");s=c+l;var p=("000"+(Math.floor((4*Math.ceil(r/4)-r)/o)+1)).slice(-3),h=a-6*Math.floor(a/6),d=("000"+(Math.floor(h/n)+1)).slice(-3);switch(i){case"1:100万":return s;case"1:50万":case"1:25万":case"1:10万":case"1:5万":case"1:2.5万":case"1:1万":case"1:5000":break;default:throw new Error("不支持的比例尺")}return s+u+p+d}function h(){var t=s.camera.computeViewRectangle();if(2==s.scene.mode){var e=s.scene.canvas,i=new Cesium.Cartesian2(0,0),n=new Cesium.Cartesian2(e.clientWidth,e.clientHeight),o=s.scene.globe.ellipsoid,a=s.camera.pickEllipsoid(i,o),r=s.camera.pickEllipsoid(n,o);if(!a){var l=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:6356755});i.y=l.y+5,a=s.camera.pickEllipsoid(i,o)}if(!r){var c=Cesium.SceneTransforms.wgs84ToWindowCoordinates(s.scene,{x:0,y:0,z:-6356755});n.y=c.y-5,r=s.camera.pickEllipsoid(n,o)}var u=s.scene.globe.ellipsoid.cartesianToCartographic(a),p=s.scene.globe.ellipsoid.cartesianToCartographic(r);return t=(n.y-i.y)/(n.x-i.x)<=.49998752339363695?new Cesium.Rectangle(Cesium.Math.toRadians(-180),Cesium.Math.toRadians(-90),Cesium.Math.toRadians(180),Cesium.Math.toRadians(90)):new Cesium.Rectangle(u.longitude,p.latitude,p.longitude,u.latitude)}return t}e.postRenderEvent=function(){var i=t.viewer.camera.positionCartographic.height;switch(Mt){case"1:100万":o.position.alt=16e6;break;case"1:50万":o.position.alt=5e6;break;case"1:25万":o.position.alt=23e5;break;case"1:10万":o.position.alt=68e4;break;case"1:5万":o.position.alt=385e3;break;case"1:2.5万":o.position.alt=18e4;break;case"1:1万":o.position.alt=9e4;break;case"1:5000":o.position.alt=46e3}if(i>5*o.position.alt)return c=null,void e.removeAll();var n=!1,s=h();if(s){var a=Cesium.Math.toDegrees(s.west),r=Cesium.Math.toDegrees(s.south),p=Cesium.Math.toDegrees(s.east);a>p&&(p+=360),s={minLng:a,minLat:r,maxLng:p,maxLat:Cesium.Math.toDegrees(s.north)},c?(c.minLng>s.minLng||c.minLat>s.minLat||c.maxLng=50&&(u(Mt),n=!1):l=0}},o.complete=function(){s.scene.postRender.addEventListener(e.postRenderEvent)},Xe(t,o,.5)}function Lt(t){for(var e,i,n=t.viewer,o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==g[2]&&g[2],s=g.length>3?g[3]:void 0,zt){t.next=6;break}return t.abrupt("return");case 6:if(r=zt.entityMap,l=Ft&&Ft.entityMap,!i){t.next=15;break}if((c=r.get(i))&&c.show){t.next=12;break}return t.abrupt("return");case 12:f(i,s),t.next=35;break;case 15:u=It(zt.entityMap),t.prev=16,u.s();case 18:if((p=u.n()).done){t.next=27;break}if(h=y()(p.value,2),d=h[0],(m=h[1])&&m.show){t.next=24;break}return t.abrupt("continue",25);case 24:f(d,s);case 25:t.next=18;break;case 27:t.next=32;break;case 29:t.prev=29,t.t0=t.catch(16),u.e(t.t0);case 32:return t.prev=32,u.f(),t.finish(32);case 35:if(!n){t.next=37;break}return t.abrupt("return");case 37:case"end":return t.stop()}}),t,null,[[16,29,32,35]])})))).apply(this,arguments)}function Qt(t,e){Ft.viewer.imageryLayers.addImageryProvider(t.imageryProvider,e)}function te(t,e,i){for(var n,o=0;o=0;l--){var c=Array.from(ue.keys())[l],u=ue.get(c);if(u&&u.that)if("PolygonObject"===u.that.type){if(u.that.picking&&u.that.options.positions&&u.that.options.positions.length>=3){for(var p=turf.point([a.lng,a.lat]),h=[],d=0;d=3){for(var f=u.that.computeAssemble(u.that.options.positions,!0),v=turf.point([a.lng,a.lat]),g=[],y=0;y=3){for(var C=turf.point([a.lng,a.lat]),w=u.that.computeAttackArrow(u.that.options.positions),k=[],x=0;x=5){for(var S=turf.point([a.lng,a.lat]),D=u.that.computePincerArrow(u.that.options.positions),P=[],M=0;M=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function be(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=1;o--){for(s=!1,r=n.length-1;r>=1;r--)n[r].id&&i[r].id&&n[r].id===i[o].id&&(s=!0);s||re.viewer.scene.primitives.remove(i[o])}for(l=n.length-1;l>=1;l--){for(c=!1,u=i.length-1;u>=1;u--)n[l].id&&i[l].id&&n[l].id===i[u].id&&(c=!0,i[u].show=n[l].show,i[u].startColor=n[l].startColor,i[u].endColor=n[l].endColor,i[u].minimumSpeed=n[l].minimumSpeed,i[u].maximumSpeed=n[l].maximumSpeed,i[u].minimumParticleLife=n[l].minimumParticleLife,i[u].maximumParticleLife=n[l].maximumParticleLife,i[u].startScale=n[l].startScale,i[u].endScale=n[l].endScale,i[u].emissionRate=n[l].emissionRate,i[u].particleSize=n[l].particleSize,i[u].modelMatrix=n[l].modelMatrix);c||re.viewer.scene.primitives.add(n[l])}}case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ae(t,e,i){var n=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas);n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.LEFT_DOWN),n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.RIGHT_DOWN),n.setInputAction((function(){ce=e}),Cesium.ScreenSpaceEventType.WHEEL),we.push(n)}function je(){var t,e=this.sdks[ce];if(0===ce?t=this.sdks[1]:1===ce&&(t=this.sdks[0]),2===e.viewer.scene.mode)if(this.sdks[0].viewer.trackedEntity){var i=e.viewer.camera.positionCartographic.height;t.viewer.camera.lookAt(Cesium.Cartesian3.fromRadians(e.viewer.camera.positionCartographic.longitude,e.viewer.camera.positionCartographic.latitude,0),new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(-90),i))}else{this.sdks[1].viewer.trackedEntity&&(this.sdks[1].viewer.entities.remove(this.sdks[1].viewer.trackedEntity),this.sdks[1].viewer.trackedEntity=null);var n=this.tools.cartesian3Towgs84(Cesium.Cartesian3.fromRadians(e.viewer.camera.positionCartographic.longitude,e.viewer.camera.positionCartographic.latitude,e.viewer.camera.positionCartographic.height),e.viewer);t.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt)})}else{var o=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/(2-(90+e.viewer.camera.pitch/(Cesium.Math.PI/180))/110)));o||(o=e.viewer.camera.positionWC);var s=this.tools.cartesian3Towgs84(e.viewer.camera.positionWC,e.viewer).alt,a=this.tools.cartesian3Towgs84(o,e.viewer);t.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(a.lng,a.lat,s)})}}function Ie(){return re}function Re(){return le}function Fe(){re&&re.viewer.entities.add({show:!1,polygon:{hierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray([100,50,100.0001,50,100.0001,50.0001]))}})}function ze(){return{sdkP:le,sdkD:re}}function He(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ve(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ve(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ve(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==u[2]?u[2]:3,o=new fi(e),r=i.orientation,!i.position){t.next=13;break}if(0===i.position.alt||i.position.alt){t.next=8;break}return t.next=7,o.getClampToHeight(i.position);case 7:i.position.alt=t.sent;case 8:l=0,r||(l=500),s=Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt+l),t.next=15;break;case 13:c=o.cal_envelope(i.positions),s=new Cesium.Rectangle(Cesium.Math.toRadians(c[3][0]),Cesium.Math.toRadians(c[3][1]),Cesium.Math.toRadians(c[1][0]),Cesium.Math.toRadians(c[1][1]));case 15:ii(e),e.viewer.camera.flyTo({destination:s,duration:n,orientation:r,complete:i.complete});case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ke(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&t.viewer){var i=t.viewer;i.scene.screenSpaceCameraController.enableRotate=e,i.scene.screenSpaceCameraController.enableTranslate=e,i.scene.screenSpaceCameraController.enableZoom=e,i.scene.screenSpaceCameraController.enableTilt=e,i.scene.screenSpaceCameraController.enableLook=e}}function $e(t,e){if(t&&t.viewer){Je[t.viewer._element.className]||(Je[t.viewer._element.className]={}),Je[t.viewer._element.className].event&&Je[t.viewer._element.className].event.destroy();var i=new fi(t),n=t.viewer._element,s=t.proj,r=function(){switch(l){case"compass":var r=n.getElementsByClassName("compass")[0],c=n.getElementsByClassName("navigation-controls")[0];e[l]?(r&&(r.style.display="block"),c&&(c.style.display="flex")):(r&&(r.style.display="none"),c&&(c.style.display="none"));break;case"legend":var u=n.getElementsByClassName("distance-legend")[0];e[l]?u&&(u.parentNode.style.display="block"):u&&(u.parentNode.style.display="none");break;case"info":var p=n.getElementsByClassName("cesium-info")[0];if(e[l]){var h=function(){var e=o()(a.a.mark((function e(){var n,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ge){e.next=2;break}return e.abrupt("return");case 2:n=i.cartesian3Towgs84(Ge,t.viewer),"EPSG:4326"===Ue?p.innerHTML="\n 经度:".concat(Number(n.lng.toFixed(6)),"° \n 纬度:").concat(Number(n.lat.toFixed(6)),"° \n 海拔高度:").concat(Number(n.alt.toFixed(2)),"米\n "):(o=s.convert([{x:n.lng,y:n.lat,z:n.alt}],"EPSG:4326",Ue),p.innerHTML="\n x:".concat(Number(o.points[0].x.toFixed(6)),'\n y:').concat(Number(o.points[0].y.toFixed(6)),'\n z:').concat(Number(o.points[0].z.toFixed(6)),"\n "));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();p?(h(),p.style.display="block"):((p=document.createElement("div")).className="cesium-info",p.style.position="absolute",p.style.bottom="32px",p.style.right="240px",p.style["font-size"]="14px",p.style["background-color"]="rgba(47,53,60,.8)",p.style.color="#fff",p.style.padding="4px 10px",p.style["border-radius"]="18px",p.innerHTML="EPSG:4326"===Ue?"\n 经度:-\n 纬度:-\n 海拔高度:-\n ":"\n x:-\n y:-\n z:-\n ",t.viewer._element.appendChild(p));var d=new X(t);Je[t.viewer._element.className].event=d;d.mouse_move((function(t,e){Ge=e,h()}))}else p&&(p.style.display="none");break;case"frame":e[l]?(t.viewer.scene.debugShowFramesPerSecond=!0,setTimeout((function(){var e=t.viewer._element.getElementsByClassName("cesium-viewer-cesiumWidgetContainer")[0],i=e.getElementsByClassName("cesium-performanceDisplay-defaultContainer")[0];i&&e.appendChild(i)}),50)):t.viewer.scene.debugShowFramesPerSecond=!1}};for(var l in e)r()}}function Qe(t,e){e=e?"billboard_default_url_"+e:"billboard_default_url";var i=h();t.startsWith("http")||(t.includes(":")||i&&(t=new URL(t,i).href));localStorage.setItem(e,t)}function ti(t){return t=t?"billboard_default_url_"+t:"billboard_default_url",localStorage.getItem(t)}function ei(){return We}function ii(t){t&&t.viewer&&qe[t.viewer._element.className]&&(qe[t.viewer._element.className].animate&&TWEEN.remove(qe[t.viewer._element.className].animate),qe[t.viewer._element.className].event&&qe[t.viewer._element.className].event.destroy(),Ke(t,!0),t.viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY))}function ni(t){if(t&&t.entityMap){var e,i=He(t.entityMap);try{for(i.s();!(e=i.n()).done;){var n=y()(e.value,2),o=(n[0],n[1]);"TrajectoryMotion"===o.type&&o.viewFollow&&(o.viewFollow=!1)}}catch(t){i.e(t)}finally{i.f()}}}function oi(t,e){if(t){var i,n=ae().sdkD;n&&t!==n&&oi(n,e);for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function di(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}},{key:"cartesian3Towgs84",value:function(t,e){var i=e.scene.globe.ellipsoid,n=new Cesium.Cartesian3(t.x,t.y,t.z),o=i.cartesianToCartographic(n),s=Cesium.Math.toDegrees(o.latitude);return{lng:Cesium.Math.toDegrees(o.longitude),lat:s,alt:o.height<0?0:o.height}}},{key:"computeDistance",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D,P,M,O=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=O.length>0&&void 0!==O[0]?O[0]:[],i=O.length>1&&void 0!==O[1]?O[1]:2,n=O.length>2&&void 0!==O[2]?O[2]:"空间长度",!(e.length<2)){t.next=7;break}return t.abrupt("return",0);case 7:o=0,t.t0=n,t.next="空间长度"===t.t0?11:"投影长度"===t.t0?13:"地表长度"===t.t0?15:48;break;case 11:for(s=0;s20?g/20:g,y=this.chunkLine(e,m),b=[],y.forEach((function(t,e){0===e?b=L()(t.geometry.coordinates):b.push(t.geometry.coordinates[1])})),C=[],w=hi(b),t.prev=25,w.s();case 27:if((k=w.n()).done){t.next=37;break}return x=k.value,_=b.indexOf(x),t.next=32,this.sampleHeight({lng:x[0],lat:x[1],alt:0},_);case 32:(E=t.sent).position.alt=E.position.alt<0?0:E.position.alt,C.push(E);case 35:t.next=27;break;case 37:t.next=42;break;case 39:t.prev=39,t.t1=t.catch(25),w.e(t.t1);case 42:return t.prev=42,w.f(),t.finish(42);case 45:for(C.length,S=0;S0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t.length<2)return 0;var n=0;if(i){var o=[];t.forEach((function(t){o.push([t.lng,t.lat,t.alt])}));var s=turf.lineString(o);n=1e3*turf.length(s)}else for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:2;if(t.length<3)return 0;var i=[];t.forEach((function(t){i.push([t.lng,t.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.tesselate(n);return Number(turf.area(o).toFixed(e))}},{key:"computeSignedArea",value:function(t,e){for(var i=[],n=[],o=0;oc?l/10:c/10;var u=new Cesium.PolygonGeometry.fromPositions({positions:Cesium.Cartesian3.fromDegreesArray(i),vertexFormat:Cesium.PerInstanceColorAppearance.FLAT_VERTEX_FORMAT,granularity:s}),p=new Cesium.PolygonGeometry.createGeometry(u);if(!p||!p.attributes||!p.attributes.position)return 0;var h=p.indices,d=p.attributes.position.values;function m(e,i){var n=new Cesium.Cartesian3(d[3*i],d[3*i+1],d[3*i+2]);return t.scene.clampToHeight(n)||n}for(var f=0,v=0;v1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:360};Number(e)<=0&&(e=.01);var n=[Number(t.lng),Number(t.lat)],o=turf.circle(n,e/1e3,i).geometry.coordinates[0],s=[];return o.forEach((function(t){s=s.concat(t)})),s}},{key:"createEllipse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{granularity:.1,semiMinorAxis:10,semiMajorAxis:20,bearing:0,height:0};e.granularity||(e.granularity=.1),e.height||(e.height=0),e.semiMinorAxis||(e.semiMinorAxis=1e-5),e.semiMajorAxis||(e.semiMajorAxis=1e-5);var i=new Cesium.EllipseOutlineGeometry({center:Cesium.Cartesian3.fromDegrees(Number(t.lng),Number(t.lat)),semiMajorAxis:Number(e.semiMajorAxis),semiMinorAxis:Number(e.semiMinorAxis),height:Number(e.height),granularity:Cesium.Math.toRadians(e.granularity),rotation:Cesium.Math.toRadians(e.bearing)}),n=Cesium.EllipseOutlineGeometry.createGeometry(i);if(!n||!n.attributes||!n.attributes.position)return[];for(var o=n.attributes.position.values,s=[],a=0;a0&&void 0!==arguments[0]?arguments[0]:[],e=[];t.forEach((function(t){e.push(turf.point([t.lng,t.lat]))}));var i=turf.featureCollection(e),n=turf.center(i).geometry.coordinates;return{lng:n[0],lat:n[1]}}},{key:"computeMidpoint",value:function(t,e){var i=turf.point([t.lng,t.lat]),n=turf.point([e.lng,e.lat]),o=turf.midpoint(i,n).geometry.coordinates;return{lng:o[0],lat:o[1]}}},{key:"computeAttackArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(t,0)}},{key:"computePincerArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.computeArrow(t)}},{key:"computeArrow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(t.length<3)return[];for(var i,n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.length<2)return[];t.length;var i=new Array;if(t.forEach((function(t){i.push([t.lng,t.lat])})),2===i.length){var n=P.PlotUtils.mid(i[0],i[1]),o=P.PlotUtils.distance(i[0],n)/.9,s=P.PlotUtils.getThirdPoint(i[0],n,P.Constants.HALF_PI,o,!0);i=[i[0],s,i[1]]}var a=P.PlotUtils.mid(i[0],i[2]);i.push(a,i[0],i[1]);for(var r=[],l=void 0,c=void 0,u=void 0,p=[],h=0;h0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.length<2)return[];var i=[t[0].lng,t[0].lat],n=[t[1].lng,t[1].lat];if(t[0].lng===t[1].lng&&t[0].lat===t[1].lat){if(e)return[t[0],t[0],t[0]];var o=Cesium.Cartesian3.fromDegrees(t[0].lng,t[0].lat);return[o,o,o]}for(var s,a=[],r=0;r0&&void 0!==arguments[0]?arguments[0]:"#2ab0c2",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="",s={7:10,8:3,9:4,10:4,11:4,12:2};switch(i&&(s[e+""]?i.polyline.width=i.polyline.oriWidth+s[e+""]:i.polyline.width=i.polyline.oriWidth),Number(e)){case 1:o=new Cesium.PolylineDashMaterialProperty({color:Cesium.Color.fromCssColorString(t),dashLength:10});break;case 2:o=new Cesium.PolylineGlowMaterialProperty({glowPower:.2,color:Cesium.Color.fromCssColorString(t)});break;case 3:o=new Cesium.PolylineFlowMaterialProperty({color:t,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 4:o=new Cesium.PolylineFlowMultMaterialProperty({color:t,speed:n.rotate?n.speed:0-n.speed,rotate:n.rotate});break;case 5:case 6:var a,r=this;o=new Cesium.FlowDashedLineFlowMaterialProperty({color:t,uType:5==e?0:1,speed:n.rotate?n.speed:0-n.speed,space:n.space,scale:new Cesium.CallbackProperty((function(){if(r.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var t=i.polyline.positions.getValue();if(!Cesium.defined(t))return 1;for(var e=0,n=0;n0||0==e.speed?(n.width=s.width*(e.space+1),n.height=s.height,o.drawImage(s,s.width*(e.space/2),0)):(o.clearRect(0,0,n.width,n.height),n.width=s.width*(e.space+1),n.height=s.height,o.save(),o.translate(n.width/2,n.height/2),o.rotate(Math.PI),o.translate(-n.width/2,-n.height/2),o.drawImage(s,s.width*(e.space/2),0),o.restore());var a=0,r=0;i.polyline.material=new Cesium.LineTextureMaterialProperty({color:e.color,image:n,speed:e.speed,repeat:new Cesium.CallbackProperty((function(){if(t.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D){var o=i.polyline.positions.getValue(t.sdk.viewer.clock.currentTime);if(!Cesium.defined(o))return new Cesium.Cartesian2(1,1);for(var s=0,l=0;l700){var v=(u*=f/p/(e.space*(n.width/n.height*5)+1))/i.polyline.oriRepeat;i.polyline.oriSpeed=v,i.polyline.oriRepeatX=u,a=v,r=u,c=new Cesium.Cartesian2(u,v||1)}else c=new Cesium.Cartesian2(r||i.polyline.oriRepeatX,a||i.polyline.oriSpeed);return c}var g=Re(),y=g.viewer.entities.getById(t.options.id),b=y.polyline.positions.getValue(g.viewer.clock.currentTime);if(!Cesium.defined(b))return new Cesium.Cartesian2(1,1);for(var C=0,w=0;w700){var M=(x*=P/_/(e.space*(n.width/n.height*5)+1))/y.polyline.oriRepeat;y.polyline.oriSpeed=M,y.polyline.oriRepeatX=x,a=M,r=x,k=new Cesium.Cartesian2(x,M||1)}else k=new Cesium.Cartesian2(r||y.polyline.oriRepeatX,a||y.polyline.oriSpeed);return k}))});var l=t.getSceenLine(i,e,n);l&&(i.polyline.oriRepeat=l)}}},{key:"getSceenLine",value:function(t,e,i){var n=new Cesium.Cartesian2(0,this.sdk.viewer.canvas.clientHeight),o=new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight),s=this.sdk.viewer.camera.getPickRay(n),a=this.sdk.viewer.scene.globe.pick(s,this.sdk.viewer.scene),r=this.sdk.viewer.camera.getPickRay(o),l=this.sdk.viewer.scene.globe.pick(r,this.sdk.viewer.scene);if(a&&l){var c=Cesium.Cartesian3.distance(a,l)/t.polyline.width.getValue(),u=this.sdk.viewer.camera.positionCartographic.height,p=new Cesium.BoundingSphere(new Cesium.Cartesian3(-1e6,0,0),5e5),h=this.sdk.viewer.canvas.clientWidth,d=this.sdk.viewer.canvas.clientHeight,m=this.sdk.viewer.scene.camera.getPixelSize(p,h,d);return m>700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"create_arrow1_picture",value:function(t){var e=new fabric.Canvas("canvas");e.width=150,e.height=75;var i=t,n=new fabric.Polygon([{x:e.width,y:e.height/2},{x:e.width-35,y:e.height},{x:e.width-35,y:e.height-20},{x:e.width/2,y:e.height-20},{x:e.width/2,y:20},{x:e.width-35,y:20},{x:e.width-35,y:0}],{fill:i});return e.add(n),e.toDataURL()}},{key:"create_arrow2_picture",value:function(t){var e=new fabric.Canvas("canvas");e.width=75,e.height=75;var i=t,n=new fabric.Polygon([{x:e.width,y:e.height/2},{x:e.width-35,y:e.height},{x:e.width-35-40,y:e.height},{x:e.width-40,y:e.height/2},{x:e.width-35-40,y:0},{x:e.width-35,y:0}],{fill:i});return e.add(n),e.toDataURL()}},{key:"sampleHeightMostDetailed",value:function(t){var e=[];return t.forEach((function(t){e.push(new Cesium.Cartographic.fromDegrees(t.lng,t.lat))})),this.sdk.viewer.scene.sampleHeightMostDetailed(e)}},{key:"flyHome",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE){var e=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.destination,i=this.sdk.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE.orientation;this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),orientation:{heading:Cesium.Math.toRadians(i.heading||0),pitch:Cesium.Math.toRadians(i.pitch||0),roll:Cesium.Math.toRadians(i.roll||0)},duration:t})}else this.sdk.viewer.camera.flyHome(t)}},{key:"setPickStatus",value:function(){}},{key:"create_point_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{steps:10},n=turf.point([Number(t.lng),Number(t.lat)]),o=turf.buffer(n,Number(e)/1e3,i);return o.geometry.coordinates}},{key:"create_line_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===t.length)return this.create_point_buffer(t[0],e);if(0===t.length)return!1;var i=[];t.forEach((function(t){i.push([Number(t.lng),Number(t.lat)])}));var n=turf.lineString(i),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"create_area_buffer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(1===t.length)return this.create_point_buffer(t[0],e);if(0===t.length)return!1;if(2===t.length)return this.create_line_buffer(t,e);var i=[];t.forEach((function(t){i.push([Number(t.lng),Number(t.lat)])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"cal_envelope",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(t.length<2)){var e=[];t.forEach((function(t){e.push(turf.point([t.lng,t.lat]))}));var i=turf.featureCollection(e);return turf.envelope(i).geometry.coordinates[0]}console.error("坐标数量不能少于2个")}},{key:"chunkLine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(t.length<2)return[];var i=[];t.forEach((function(t){i.push([t.lng,t.lat])}));var n=turf.lineString(i),o=turf.lineChunk(n,e/1e3),s=new Map;return o.features.forEach((function(t){t.geometry.coordinates.forEach((function(t){var e=t.join(","),i={lng:t[0],lat:t[1]};s.set(e,i)}))})),o.features}},{key:"billboardAnimation",value:function(t,e){var i=e.id,n=e.offset,o=void 0===n?10:n,s=(e.times,t.entities.getById(i));if(s){var a=Math.PI,r=a/60,l=0,c=this.cartesian3Towgs84(s.position.getValue(),t),u=setInterval((function(){l+=r;var t=o*Math.sin(l)+c.alt;l>a&&(l=0),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,t)}),30);setTimeout((function(){clearInterval(u),s.position=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt)}),3e3)}}},{key:"calSector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:45,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:360,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=turf.point([t.lng,t.lat]),r=turf.sector(a,e/1e3,i,n,{steps:o}).geometry.coordinates,l=[];return r.forEach((function(t){t.forEach((function(t){var e;e=s?{lng:t[0],lat:t[1]}:Cesium.Cartesian3.fromDegrees(t[0],t[1]),l.push(e)}))})),l}},{key:"getClampToHeight",value:(t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>1&&void 0!==c[1]?c[1]:[],this.sdk&&this.sdk.viewer){t.next=3;break}return t.abrupt("return",0);case 3:return n=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat),t.prev=4,t.next=7,this.sdk.viewer.scene.clampToHeight(n,i);case 7:if(t.t0=t.sent,t.t0){t.next=10;break}t.t0=n;case 10:o=t.t0,t.next=16;break;case 13:t.prev=13,t.t1=t.catch(4),o=n;case 16:return t.next=18,this.cartesian3Towgs84(o,this.sdk.viewer).alt;case 18:if(s=t.sent,r=0,t.prev=20,!this.sdk.viewer.scene.terrainProvider.availability){t.next=26;break}return t.next=24,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(e.lng,e.lat)]);case 24:(l=t.sent)[0].height&&(r=l[0].height);case 26:t.next=31;break;case 28:t.prev=28,t.t2=t.catch(20),r=0;case 31:if(!(s>r)){t.next=35;break}return t.abrupt("return",Number(s.toFixed(2)));case 35:return t.abrupt("return",Number(r.toFixed(2)));case 36:case"end":return t.stop()}}),t,this,[[4,13],[20,28]])}))),function(e){return t.apply(this,arguments)})},{key:"deepCopyObj",value:function(t){var e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)"earth"!=i&&"Dialog"!=i&&(e[i]=this.deepCopyObj(t[i]));else e=t;return e}},{key:"projConvert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t?J(this.sdk,e):q()}},{key:"projectionConvert",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t?K(this.sdk,e):$()}},{key:"exportExcel",value:function(t){var e="";for(var i in t[0])e+=''.concat(i,"");e+="";for(var n,o='{rows}
        ',s=function(t,e){return t.replace(/{(\w+)}/g,(function(t,i){return e[i]}))},a="",r="",l=0;l",t[l])r+=s('{data}',{nameType:"String",data:t[l][c]});r+="",l>0&&l/6e4%1==0&&(a+=s(o,{rows:r,nameWS:"Sheet"+l}),r="",r+=e)}a+=s(o,{rows:r,nameWS:"Sheet"}),r="",n=s('Axel Richter{created}{worksheets}',{created:(new Date).getTime(),worksheets:a});var u,p=document.createElement("A");p.href="data:application/vnd.ms-excel;base64,"+(u=n,window.btoa(unescape(encodeURIComponent(u)))),p.download="矢量数据导出.xls",p.target="_blank",document.body.appendChild(p),p.click(),document.body.removeChild(p)}},{key:"decompressGzip",value:function(t){var e=pako.inflate(t);return(new TextDecoder).decode(e)}},{key:"cmykToRgb",value:function(t){var e=t.c,i=t.m,n=t.y,o=t.k,s={r:0,g:0,b:0};return s.c=e/100,s.m=i/100,s.y=n/100,s.k=o/100,s.r=1-Math.min(1,s.c*(1-s.k)+s.k),s.g=1-Math.min(1,s.m*(1-s.k)+s.k),s.b=1-Math.min(1,s.y*(1-s.k)+s.k),s.r=Math.round(255*s.r),s.g=Math.round(255*s.g),s.b=Math.round(255*s.b),"rgb(".concat(s.r,", ").concat(s.g,", ").concat(s.b,")")}},{key:"convertPxToRem",value:function(t,e){var i=parseFloat(getComputedStyle(document.documentElement).fontSize),n=[],o=[];if(e){n=document.getElementById(t.div_id).querySelectorAll(e);for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:[],e=t.length,i=0,n=0,o=0;o0&&i<0||n<0&&i>0)return!1;i=n}}return!0}},{key:"getDateTimeString",value:function(){var t=new Date,e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),r=String(t.getMilliseconds()).padStart(3,"0");return"".concat(e).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)}},{key:"replaceHost",value:function(t,e){var i=t;if(!t||!e)return t;try{if(t.startsWith("http")){var n=/^[^@]+@/;n.test(t)&&(t=t.replace(n,"")),/^[a-z]+:\/\//i.test(t)||(t="http://"+t);var o=new URL(t),s=new URL(e),a=o.hostname,r=o.port;return a.startsWith("[")&&a.endsWith("]")&&(a=a.slice(1,-1)),"localhost"!==a&&"127.0.0.1"!==a||55110===parseInt(r,10)||(o.port=s.port,o.protocol=s.protocol,i=o.toString()),i}return t.includes(":")||this.options.host&&(i=new URL(t,this.options.host).href),i}catch(t){return i}}},{key:"message",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type||"success",i=t.text||"",n=(t.duration,document.getElementById("YJ-custom-message"));n&&document.body.removeChild(n),n=document.createElement("div"),n.id="YJ-custom-message","success"==e?n.innerHTML='\n '.concat(i,"\n "):"warning"==e&&(n.innerHTML='\n '.concat(i,"\n ")),document.body.appendChild(n),n.classList.add(e)}}],[{key:"_md5",value:function(t){return j()(t).toUpperCase()}}]);var t,e,i}();function vi(t,e){var i=t.viewer;if(i)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this.color=t.color,this.duration=t.duration,this.fltr=t.fltr,this.image=t.image,this._time=(new Date).getTime()}Object.defineProperties(t.prototype,{isConstant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:Cesium.createPropertyDescriptor("repeat"),color:Cesium.createPropertyDescriptor("color")}),t.prototype.getType=function(t){return"PolylineTrailLink"},t.prototype.getValue=function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrClonedDefault(this._color,t,Cesium.Color.BROWN,e.color),this.image?e.image=this.image:e.image=Cesium.Material.PolylineTrailLinkImage,this.duration&&(e.time=((new Date).getTime()-this._time)%this.duration/this.duration),!1===this.fltr?e.fltr=this.fltr:e.fltr=!0,e},t.prototype.equals=function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)},Cesium.PolylineTrailLinkMaterialProperty=t,Cesium.Material.PolylineTrailLinkType="PolylineTrailLink",Cesium.Material.PolylineTrailLinkImage=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#fa2020",e=512,i=32,n=new fabric.Canvas("canvas",{width:e,height:i}),o=new fabric.Rect({width:e,height:i}),s=new fabric.Gradient({type:"linear",gradientUnits:"pixels",coords:{x1:0,y1:0,x2:e,y2:0},colorStops:[{offset:.01,color:"rgba(246,241,241,0)"},{offset:1,color:t}]});return o.set("fill",s),n.add(o),n.toDataURL()}(),Cesium.Material.PolylineTrailLinkSource="czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material =czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture(image,vec2(fract(st.t - time), st.t));\n vec4 fragColor;\n fragColor.rgb = color.rgb / 1.0;\n fragColor = czm_gammaCorrect(fragColor);\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb/20.0;\n material.emission = fragColor.rgb;\n return material;\n }",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailLinkType,{fabric:{type:Cesium.Material.PolylineTrailLinkType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.Material.PolylineTrailLinkImage,time:0},source:Cesium.Material.PolylineTrailLinkSource},translucent:function(t){return!0}})}function bi(){var t,e,i,n,o,s,a,r;yi(),t=new fi,"undefined"!=typeof Cesium&&function(e){e.CustomMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(e.Color,e.defaultValue),o=Object.defineProperties,s=e.Event,a=e.createPropertyDescriptor,r=e.Property,l=e.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random()),u={color:new e.Color(1,1,1,1),image:i.image||t.getSourceRootPath()+"/img/material/arrow.png",time:i.time||0,repeat:new e.Cartesian2(100,100),fltr:!i.fltr&&!1!==i.fltr||i.fltr,is2D:!!i.is2D,isTranslucent:!i.isTranslucent&&!1!==i.isTranslucent||i.isTranslucent};if(this.code="",i.repeats)for(var p=e.Property.getValueOrDefault(i.repeats),h=0;h0&&void 0!==arguments[0]?arguments[0]:{};t=n(t,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeats=void 0,this._repeatSubscription=void 0,this.image=t.image,this.is2D=!!t.is2D,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)"),this.repeat=t.repeat,this.repeats=t.repeats,this.duration=t.duration||0===t.duration?t.duration:1e3,this.fltr=!t.fltr&&!1!==t.fltr||t.fltr,this._time=(new Date).getTime()}return o(d.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:e.createPropertyDescriptor("repeat"),color:a("color")}),d.prototype.getType=function(t){return c},d.prototype.getValue=function(t,i){if(e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i.time=this.duration?e.getTimestamp()%this.duration/this.duration:0,i.image=this.image,i.is2D=!!this.is2D,this.repeat&&(i.repeat=e.Property.getValueOrDefault(this.repeat)),this.repeats)for(var n=e.Property.getValueOrDefault(this.repeats),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},i=(t.Color,t.defaultValue),n=Object.defineProperties,o=t.Event,s=t.createPropertyDescriptor,a=t.Property,r=t.Material,l=e.MaterialType||"wallType"+parseInt(1e3*Math.random());function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=i(e,i.EMPTY_OBJECT),this._definitionChanged=new o,this._color=void 0,this.color=new t.Color.fromCssColorString(e.color||"rgba(4,253,231,0.87)")}return n(c.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},color:s("color")}),c.prototype.getType=function(t){return l},c.prototype.getValue=function(e,i){return t.defined(i)||(i={}),i.color=t.Property.getValueOrClonedDefault(this._color,e,t.Color.WHITE,i.color),i},c.prototype.equals=function(t){return this===t||t instanceof c&&a.equals(this._color,t._color)},r._materialCache.addMaterial(l,{fabric:{type:l,uniforms:{color:new t.Color(1,1,1,1)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n material.alpha = color.a;\n \n material.diffuse = color.rgb*0.0;\n material.emission = color.rgb;\n return material;\n }",components:{specular:1,diffuse:"vec3(0.0)"}},translucent:function(t){return!0}}),new c(e)}}(Cesium),function(){var t=new fi;"undefined"!=typeof Cesium&&function(e){e.CustomImageMaterialSource=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(e.Color,e.defaultValue),o=Object.defineProperties,s=e.Event,a=e.createPropertyDescriptor,r=e.Property,l=e.Material,c=i.MaterialType||"wallType"+parseInt(1e3*Math.random());function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=n(t,n.EMPTY_OBJECT),this._definitionChanged=new s,this._color=void 0,this._colorSubscription=void 0,this._repeat=void 0,this._repeatSubscription=void 0,this.image=t.image,this.color=new e.Color.fromCssColorString(t.color||"rgba(4,253,231,0.87)"),this.repeat=t.repeat}return o(u.prototype,{isvarant:{get:function(){return!1}},definitionChanged:{get:function(){return this._definitionChanged}},repeat:e.createPropertyDescriptor("repeat"),color:a("color")}),u.prototype.getType=function(t){return c},u.prototype.getValue=function(t,i){return e.defined(i)||(i={}),i.color=e.Property.getValueOrClonedDefault(this._color,t,e.Color.WHITE,i.color),i.image=this.image,i.repeat=e.Property.getValueOrDefault(this.repeat),i},u.prototype.equals=function(t){return this===t||t instanceof u&&r.equals(this._color,t._color)&&r.equals(this.repeat,t._repeat)},l._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new e.Color(1,1,1,1),image:i.image||t.getSourceRootPath()+"/img/material/arrow.png",repeat:new e.Cartesian2(100,100)},source:"czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = repeat * materialInput.st;\n vec4 colorImage = texture(image, st);\n \n material.diffuse = colorImage.rgb * 0.0;\n material.emission = colorImage.rgb * 0.3;\n return material;\n }"}}),new u(i)}}(Cesium)}(),i=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._duration=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.duration=e.duration||10,this.lineBackAlpha=e.lineBackAlpha||.05}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.FlowLineMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.duration=Cesium.Property.getValueOrDefault(this._duration,t,10,e.duration),e.lineBackAlpha=this.lineBackAlpha,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._duration,e.duration)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(i.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.FlowLineMaterialProperty=i,Cesium.Material.FlowLineMaterialProperty="FlowLineMaterialProperty",Cesium.Material.FlowLineMaterialType="FlowLineMaterialType",Cesium.Material.FlowLineMaterialSource="\n uniform vec4 color;\n uniform float duration;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n float time = fract(czm_frameNumber / (60.0*duration));\n //长度1/10\n time = time * (1.0 + 0.1);\n //平滑过渡函数\n float alpha = smoothstep(time-0.1,time,st.s) * step(-time,-st.s);\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowLineMaterialType,{fabric:{type:Cesium.Material.FlowLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),duration:10,lineBackAlpha:.05},source:Cesium.Material.FlowLineMaterialSource},translucent:function(t){return!0}}),n=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.lineBackAlpha=e.lineBackAlpha||.05,this.rotate=e.rotate}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.PolylineFlowMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.rotate=Cesium.Property.getValueOrDefault(this._rotate,t,!0,e.rotate),e.lineBackAlpha=this.lineBackAlpha,e.frameTime=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(n.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMaterialProperty=n,Cesium.Material.PolylineFlowMaterialProperty="PolylineFlowMaterialProperty",Cesium.Material.PolylineFlowMaterialType="PolylineFlowMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n //生成默认的基础材质\n czm_material material = czm_getDefaultMaterial(materialInput);\n //获取st(uv)\n vec2 st = materialInput.st;\n //获取当前帧数,10秒内变化0-1\n // float time = fract(czm_frameNumber * speed / 60.0);\n // float time = fract(abs(speed) * czm_frameNumber * 0.01);\n float time = fract(frameTime / 1000.0 / abs(speed));\n //长度1/10\n // time = time * (1.0 + 0.1);\n float staticAlpha = rotate?smoothstep(0.0,1.0, 1.0-st.s) * step(-1.0,-(1.0-st.s)):smoothstep(0.0,1.0, st.s) * step(-1.0,-st.s);\n\n //平滑过渡函数\n float alpha1 = smoothstep(time-0.1,time,1.0-st.s) * step(-time,- (1.0-st.s));\n float alpha2 = smoothstep(time-0.1,time,st.s) * step(-time,- st.s);\n float alpha =(speed== 0.0)? staticAlpha:(speed < 0.0)?alpha2:alpha1;\n //光带轨迹(不会完全透明)\n alpha += lineBackAlpha;\n material.alpha = alpha;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(t){return!0}}),o=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._rotate=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.lineBackAlpha=e.lineBackAlpha||.05,this.rotate=e.rotate}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.PolylineFlowMultMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.rotate=Cesium.Property.getValueOrDefault(this._rotate,t,!0,e.rotate),e.lineBackAlpha=this.lineBackAlpha,e.frameTime=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this._rotate,e.rotate)&&Cesium.Property.equals(this.lineBackAlpha,e.lineBackAlpha)}}])}(),Object.defineProperties(o.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),rotate:Cesium.createPropertyDescriptor("rotate"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha")}),Cesium.PolylineFlowMultMaterialProperty=o,Cesium.Material.PolylineFlowMultMaterialProperty="PolylineFlowMultMaterialProperty",Cesium.Material.PolylineFlowMultMaterialType="PolylineFlowMultMaterialType",Cesium.Material.PolylineFlowMaterialSource="\n uniform vec4 color;\n uniform float speed;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n // 基础时间轴(控制主光带)\n float baseTime = fract(czm_frameNumber * speed / 60.0) * 1.1;\n\n // 高频时间轴(控制高光点)\n // float highlightTime = fract(czm_frameNumber * speed * 3.0 / 60.0);\n // float highlightTime = fract(abs(speed) * czm_frameNumber * 0.01);\n float highlightTime = fract(frameTime / 1000.0 / abs(speed));\n float highlightSpacing = 0.3; // 高光点间隔\n\n // 主光带透明度计算\n float mainAlpha = smoothstep(baseTime-0.1, baseTime, st.s) * step(-baseTime, -st.s);\n\n // 多高光点计算(3个周期性光斑)\n float highlight11 = smoothstep(highlightTime-0.05, highlightTime, st.s) *\n step(-highlightTime, -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - highlightTime)));\n\n float highlight21 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, st.s) *\n step(-(highlightTime+highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+highlightSpacing))));\n\n float highlight31 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -st.s) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight12 = smoothstep(highlightTime-0.05, highlightTime, 1.0 - st.s) *\n step(-highlightTime, -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - highlightTime)));\n\n float highlight22 = smoothstep(highlightTime+highlightSpacing-0.05,\n highlightTime+highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+highlightSpacing),-(1.0 - st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0-st.s - (highlightTime+highlightSpacing))));\n\n float highlight32 = smoothstep(highlightTime+2.0*highlightSpacing-0.05,\n highlightTime+2.0*highlightSpacing, 1.0 - st.s) *\n step(-(highlightTime+2.0*highlightSpacing), -(1.0-st.s)) *\n (1.0 - smoothstep(0.0, highlightSpacing, abs(1.0 - st.s - (highlightTime+2.0*highlightSpacing))));\n\n\n float highlight1 = !rotate?highlight11:highlight12;\n float highlight2 = !rotate?highlight21:highlight22;\n float highlight3 = !rotate?highlight31:highlight32;\n // 合并效果\n // material.alpha = mainAlpha * 0.7 +\n // (highlight1 + highlight2 + highlight3) * 0.5 +\n // lineBackAlpha;\n material.alpha = (highlight1 + highlight2 + highlight3) * 0.5 +\n lineBackAlpha;\n material.diffuse = color.rgb; // 高光区变亮\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowMultMaterialType,{fabric:{type:Cesium.Material.PolylineFlowMultMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:.1,rotate:!0,frameTime:Cesium.getTimestamp(),lineBackAlpha:.05},source:Cesium.Material.PolylineFlowMaterialSource},translucent:function(t){return!0}}),s=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._color=void 0,this._speed=void 0,this._uType=void 0,this._space=void 0,this._dashSize=void 0,this._scale=void 0,this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.space=e.space||0,this.dashSize=e.dashSize||.03,this.uType=void 0===e.uType?1:e.uType,this.lineBackAlpha=e.lineBackAlpha||.05,this.scale=e.scale||1}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.FlowDashedLineMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.space=Cesium.Property.getValueOrDefault(this._space,t,10,e.space),e.dashSize=Cesium.Property.getValueOrDefault(this._dashSize,t,10,e.dashSize),e.uType=Cesium.Property.getValueOrDefault(this._uType,t,1,e.uType),e.scale=Cesium.Property.getValueOrDefault(this._scale,t,1,e.scale),e.lineBackAlpha=this.lineBackAlpha,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e.speed)&&Cesium.Property.equals(this._uType,e.uType)&&Cesium.Property.equals(this._lineBackAlpha,e.lineBackAlpha)&&Cesium.Property.equals(this._scale,e.scale)}}])}(),Object.defineProperties(s.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),space:Cesium.createPropertyDescriptor("space"),dashSize:Cesium.createPropertyDescriptor("dashSize"),uType:Cesium.createPropertyDescriptor("uType"),transparency:Cesium.createPropertyDescriptor("lineBackAlpha"),scale:Cesium.createPropertyDescriptor("scale")}),Cesium.FlowDashedLineFlowMaterialProperty=s,Cesium.Material.FlowDashedLineFlowMaterialProperty="FlowDashedLineFlowMaterialProperty",Cesium.Material.FlowDashedLineMaterialType="FlowDashedLineMaterialType",Cesium.Material.FlowDashedLineMaterialSource="\n uniform vec4 color;\n uniform float speed;\n // uniform int uType;\n uniform float lineBackAlpha;\n\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n\n float dashSize = 0.1;\n float gapSize = space;\n // speed现在表示完成一次完整动画循环的秒数\n float progress = speed==0.0 ? 0.0 : fract(frameNumber / 1000.0 / speed * scale);\n float pattern = fract(st.x / dashSize * (1.0 + gapSize) + progress / dashSize * (1.0 + gapSize));\n float dash1 = step(0.0, pattern) - step(1.0/(1.0 + gapSize), pattern);\n float dash2 = smoothstep(0.0, 0.2, pattern) -\n smoothstep(1.0/(1.0 + gapSize),\n 1.0/(1.0 + gapSize) + 0.2,\n pattern);\n float dash = (float(uType) != 1.0)?dash1:dash2;\n material.alpha = dash;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.FlowDashedLineMaterialType,{fabric:{type:Cesium.Material.FlowDashedLineMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),speed:1,space:0,scale:1,dashSize:.03,frameNumber:Cesium.getTimestamp(),uType:1,lineBackAlpha:.05},source:Cesium.Material.FlowDashedLineMaterialSource},translucent:function(t){return!0}}),a=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._image=void 0,this._color=void 0,this._speed=void 0,this._repeat=void 0,this.image=e.image||"",this.color=new Cesium.Color.fromCssColorString(e.color||"rgba(255,255,255,1)"),this.speed=null!=e.speed?e.speed:1,this.repeat=e.repeat||new Cesium.Cartesian2(1,1)}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.LineTextureMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.image=Cesium.Property.getValueOrDefault(this._image,t,"",e.image),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,1,e.speed),e.repeat=Cesium.Property.getValueOrDefault(this._repeat,t,new Cesium.Cartesian2(1,1),e.repeat),e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._imageW,e._imageW)&&Cesium.Property.equals(this._speed,e._speed)}}])}(),Object.defineProperties(a.prototype,{image:Cesium.createPropertyDescriptor("image"),color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),repeat:Cesium.createPropertyDescriptor("repeat")}),Cesium.LineTextureMaterialProperty=a,Cesium.Material.LineTextureMaterialProperty="LineTextureMaterialProperty",Cesium.Material.LineTextureMaterialType="LineTextureMaterialType",Cesium.Material.LineTextureMaterialSource="\n uniform vec4 color;\n uniform sampler2D image;\n uniform float speed;\n // uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat.x; // 关键:通过repeat控制纹理密度\n // vec4 colorImage = texture2D(image, vec2(fract(st.s + speed*czm_frameNumber* 0.01), st.t));\n vec4 colorImage = speed==0.0?texture2D(image, vec2(fract(st.s), st.t)):texture2D(image, vec2(fract(st.s + frameNumber / 1000.0 / speed * repeat.x / repeat.y ), st.t));\n material.alpha = colorImage.a * color.a;\n material.diffuse = color.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.LineTextureMaterialType,{fabric:{type:Cesium.Material.LineTextureMaterialType,uniforms:{color:new Cesium.Color(1,1,1,1),image:"",repeat:new Cesium.Cartesian2(1,1),speed:1,frameNumber:Cesium.getTimestamp(),uTime:1},source:Cesium.Material.LineTextureMaterialSource},translucent:function(t){return!0}}),r=function(){function t(e){k()(this,t),this._definitionChanged=new Cesium.Event,this._image=void 0,this._repeat=void 0,this._stRotation=void 0,this._repeatLength=void 0,this.image=e.image||"",this.repeat=e.repeat||1,this.stRotation=e.stRotation||0}return _()(t,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return Cesium.Material.RoadTextureMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.image=Cesium.Property.getValueOrDefault(this._image,t,"",e.image),e.repeat=Cesium.Property.getValueOrDefault(this._repeat,t,1,e.repeat),e.stRotation=Cesium.Property.getValueOrDefault(this._stRotation,t,0,e.stRotation),console.log(e,"result"),e}},{key:"equals",value:function(e){return this===e||e instanceof t&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._repeat,e._repeat)&&Cesium.Property.equals(this._stRotation,e._stRotation)}}])}(),Object.defineProperties(r.prototype,{image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat"),repeatLength:Cesium.createPropertyDescriptor("stRotation")}),Cesium.RoadTextureMaterialProperty=r,Cesium.Material.RoadTextureMaterialProperty="RoadTextureMaterialProperty",Cesium.Material.RoadTextureMaterialType="RoadTextureMaterialType",Cesium.Material.RoadTextureMaterialSource="\n uniform sampler2D image;\n uniform float repeat;\n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n st.s *= repeat;\n mat2 rot = mat2(cos(stRotation), -sin(stRotation), sin(stRotation), cos(stRotation));\n vec2 newSt = rot * (st - 0.5) + 0.5;\n\n vec4 colorImage = texture2D(image, newSt);\n material.diffuse = colorImage.rgb;\n return material;\n }\n ",Cesium.Material._materialCache.addMaterial(Cesium.Material.RoadTextureMaterialType,{fabric:{type:Cesium.Material.RoadTextureMaterialType,uniforms:{image:"",repeat:1,stRotation:0},source:Cesium.Material.RoadTextureMaterialSource},translucent:function(t){return!0}})}var Ci=function(){return _()((function t(e,i){k()(this,t),this.dom=e,this.playerUrl=i.url,this.init()}),[{key:"init",value:function(){this.flvPlayer=flvjs.createPlayer({type:"flv",url:this.playerUrl,isLive:!0,hasAudio:!1,hasVideo:!0},{enableWorker:!0,enableStashBuffer:!1,stashInitialSize:128}),this.flvPlayer.attachMediaElement(this.dom),this.flvPlayer.load()}},{key:"on",value:function(t,e,i){this.flvPlayer.on(flvjs[t][e],i)}},{key:"destroy",value:function(){this.flvPlayer.destroy(),this.flvPlayer=null}}])}(),wi=function(){return _()((function t(e,i){k()(this,t),this.dom=e,this.url=i.url,this.init()}),[{key:"init",value:function(){this.player=new Jessibuca({container:this.dom,decoder:this.getSourceRootPath()+"/3rdparty/jessibuca/decoder.js",timeout:30,heartTimeout:30,heartTimeoutReplay:!1,loadingTimeout:30,loadingTimeoutReplay:!1,wasmDecodeErrorReplay:!1,videoBuffer:.2,isResize:!1,text:"",loadingText:"",useMSE:!1,debug:!0,showBandwidth:!1,operateBtns:{fullscreen:!1,screenshot:!1,play:!1,audio:!1,recorder:!1},forceNoOffscreen:!1,isNotMute:!1}),this.player.play(this.url)}},{key:"on",value:function(t,e){this.player.on(t,e)}},{key:"destroy",value:function(){this.player.destroy(),this.player=null}},{key:"getSourceRootPath",value:function(){var t=document.querySelectorAll("script"),e="";return t.forEach((function(t){if(t.src&&t.src.indexOf("YJEarth.min.js")>-1){var i=t.src.split("/");i.pop(),e=i.join("/")}})),e}}])}();function ki(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function xi(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}var _i=/^[og]\s*(.+)?/,Ei=/^mtllib /,Si=/^usemtl /,Di=/^usemap /,Pi=/\s+/,Mi={red:1,green:1,blue:1,alpha:1};function Oi(){var t={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var i=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,e){var i=this._finalize(!1);i&&(i.inherited||i.groupCount<=0)&&this.materials.splice(i.index,1);var n={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==i?i.smooth:this.smooth,groupStart:void 0!==i?i.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(n),n},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var i=this.materials.length-1;i>=0;i--)this.materials[i].groupCount<=0&&this.materials.splice(i,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},i&&i.name&&"function"==typeof i.clone){var n=i.clone(0);n.inherited=!0,this.object.materials.push(n)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var i=parseInt(t,10);return 3*(i>=0?i-1:i+e/3)},parseNormalIndex:function(t,e){var i=parseInt(t,10);return 3*(i>=0?i-1:i+e/3)},parseUVIndex:function(t,e){var i=parseInt(t,10);return 2*(i>=0?i-1:i+e/2)},addVertex:function(t,e,i){var n=this.vertices,o=this.object.geometry.vertices;o.push(n[t+0],n[t+1],n[t+2]),o.push(n[e+0],n[e+1],n[e+2]),o.push(n[i+0],n[i+1],n[i+2])},addVertexPoint:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addVertexLine:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addNormal:function(t,e,i){var n=this.normals,o=this.object.geometry.normals;o.push(n[t+0],n[t+1],n[t+2]),o.push(n[e+0],n[e+1],n[e+2]),o.push(n[i+0],n[i+1],n[i+2])},addFaceNormal:function(t,e,i){console.warn("addFaceNormal")},addColor:function(t,e,i){var n=this.colors,o=this.object.geometry.colors;void 0!==n[t]&&o.push(n[t+0],n[t+1],n[t+2]),void 0!==n[e]&&o.push(n[e+0],n[e+1],n[e+2]),void 0!==n[i]&&o.push(n[i+0],n[i+1],n[i+2])},addUV:function(t,e,i){var n=this.uvs,o=this.object.geometry.uvs;o.push(n[t+0],n[t+1]),o.push(n[e+0],n[e+1]),o.push(n[i+0],n[i+1])},addDefaultUV:function(){var t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){var e=this.uvs;this.object.geometry.uvs.push(e[t+0],e[t+1])},addFace:function(t,e,i,n,o,s,a,r,l){var c=this.vertices.length,u=this.parseVertexIndex(t,c),p=this.parseVertexIndex(e,c),h=this.parseVertexIndex(i,c);if(this.addVertex(u,p,h),this.addColor(u,p,h),void 0!==a&&""!==a){var d=this.normals.length;u=this.parseNormalIndex(a,d),p=this.parseNormalIndex(r,d),h=this.parseNormalIndex(l,d),this.addNormal(u,p,h)}else this.addFaceNormal(u,p,h);if(void 0!==n&&""!==n){var m=this.uvs.length;u=this.parseUVIndex(n,m),p=this.parseUVIndex(o,m),h=this.parseUVIndex(s,m),this.addUV(u,p,h),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";for(var e=this.vertices.length,i=0,n=t.length;i=7?(Cesium.Color.fromBytes(parseFloat(u[4]),parseFloat(u[5]),parseFloat(u[6]),1,Mi),n.colors.push(Mi.red,Mi.green,Mi.blue)):n.colors.push(void 0,void 0,void 0);break;case"vn":n.normals.push(parseFloat(u[1]),parseFloat(u[2]),parseFloat(u[3]));break;case"vt":n.uvs.push(parseFloat(u[1]),parseFloat(u[2]))}}else if("f"===c){for(var p=l.slice(1).trim().split(Pi),h=[],d=0,m=p.length;d0){var v=f.split("/");h.push(v)}}for(var g=h[0],y=1,b=h.length-1;y1){var M=s[1].trim().toLowerCase();n.object.smooth="0"!==M&&"off"!==M}else n.object.smooth=!0;var O=n.object.currentMaterial();O&&(O.smooth=n.object.smooth)}else{if("\0"===l)continue;console.warn('Unexpected line: "'+l+'"')}}}n.finalize();var T=new Ai(this.context,this.hls,this.videoId,this.host,i);if(!0===!(1===n.objects.length&&0===n.objects[0].geometry.vertices.length))for(var N=0,B=n.objects.length;N0&&(d=!0),i.colors.length>0&&(m=!0),!0===i.hasUVIndices&&(f=!0),d&&(u+="attribute vec3 normal;\n",u+="varying vec3 v_normal;\n",p+="varying vec3 v_normal;\n",h+="v_normal = normal;\n"),m&&(u+="attribute vec3 color;\n",u+="varying vec2 v_color;\n",p+="varying vec2 v_color;\n",h+="v_color = color;\n"),f&&(u+="attribute vec2 uv;\n",u+="varying vec2 v_uv;\n",p+="varying vec2 v_uv;\n",h+="v_uv = uv;\n"),u+="\n void main() {\n gl_Position = czm_modelViewProjection * vec4(position, 1.);\n ".concat(h,"\n }\n "),p+="\n\t\tuniform sampler2D colorTexture;\n void main() {\n\t\t\t vec4 color = texture2D(colorTexture, v_uv);\n\t\t\t\t\t\tgl_FragColor = color;\n }\n ",this.program=Cesium.ShaderProgram.fromCache({context:e,vertexShaderSource:u,fragmentShaderSource:p}),this.uniformMap={};var v=this;c.then((function(t){for(var e=function(){var e=t[i].diffusemap;r.uniformMap.colorTexture=function(){return e}},i=0;i0){o++;var a=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.normals),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:a,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(i.colors.length>0){o++;var r=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.colors),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:r,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,normalize:!1})}if(!0===i.hasUVIndices){o++;var l=Cesium.Buffer.createVertexBuffer({context:e,typedArray:Cesium.ComponentDatatype.createTypedArray(Cesium.ComponentDatatype.FLOAT,i.uvs),usage:Cesium.BufferUsage.STATIC_DRAW});n.push({index:o,enabled:!0,vertexBuffer:l,componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1})}var c=new Cesium.VertexArray({context:e,attributes:n}),u=Cesium.RenderState.fromCache({cull:{enabled:!1},depthMask:!0,depthTest:{enabled:!0}});this.drawCommand=new Cesium.DrawCommand({owner:this,primitiveType:Cesium.PrimitiveType.TRIANGLES,vertexArray:c,renderState:u,pass:Cesium.Pass.OPAQUE})}),[{key:"setMaterial",value:function(t){this.material=t,t.setCommand(this.drawCommand)}},{key:"update",value:function(t){Cesium.defined(this.material)&&this.material.ready&&t.commandList.push(this.drawCommand)}},{key:"updateVideo",value:function(t,e,i){var n=!1;if(Cesium.defined(this.material)&&this.material.ready)if(i.computeVisibility(this.drawCommand.boundingVolume)>=0&&this.material.ready){var o=t.distanceToBoundingSphere(this.drawCommand.boundingVolume),s=e.width,a=e.height;o>=20&&o<100?(s=e.width/2,a=e.height/2):o>=100&&(s=e.width/10,a=e.height/10),n=!0,this.material.updateColorTexture(e,Math.floor(s),Math.floor(a))}else n=!1;this.lastState=n}}])}(),Li=new WeakMap,Ai=function(){return _()((function t(e,i,n,o,s){k()(this,t),ki(this,Li,!0),this.context=e,this.videoId=n,this.host=o,this._modelMatrix=Cesium.Matrix4.IDENTITY,this.parent=null,this.children=[],this.video={dom:null,playing:!1,timeupdate:!1,width:0,height:0,tracks:null},this.time=0,this.name=s}),[{key:"show",get:function(){return e=this,(t=Li).get(xi(t,e));var t,e},set:function(t){var e,i,n;"boolean"==typeof t?(i=this,n=t,(e=Li).set(xi(e,i),n),t?this.video.player&&this.video.player.getVueInstance().play():this.video.player&&this.video.player.getVueInstance().pause()):console.error("参数必须为boolean")}},{key:"requestVideoResource",value:function(){var t=this,e="",i=(e=this.host.endsWith("yjearth4.0")?this.host:this.host+"/yjearth4.0")+"/videoFusion/"+this.videoId;return fetch(i,{method:"get",headers:{"Content-Type":"application/json"}}).then(function(){var i=o()(a.a.mark((function i(n){var s;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.text();case 2:if(s=i.sent,s=JSON.parse(s),![0,200].includes(s.code)){i.next=13;break}if(!s.data.deviceCode.length){i.next=9;break}return i.abrupt("return",fetch(e+"/videoFusion/vide/stream",{method:"post",body:JSON.stringify({type:"flv",deviceCode:s.data.deviceCode}),headers:{"Content-Type":"application/json"}}).then(function(){var e=o()(a.a.mark((function e(i){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.text();case 2:if(n=e.sent,n=JSON.parse(n),![0,200].includes(n.code)){e.next=9;break}return n.data.url.length?(t.video.player.url=n.data.url,t.setFlvVideo(n.data.url)):console.warn("地址不存在"),e.abrupt("return");case 9:return console.warn(n.msg||n.message),e.abrupt("return");case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 9:console.warn("设备不存在");case 10:return i.abrupt("return");case 13:return console.warn(s.msg||s.message),i.abrupt("return");case 15:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}())}},{key:"modelMatrix",get:function(){return this._modelMatrix},set:function(t){this._modelMatrix=t.clone(),this.updateModelMatrix()}},{key:"updateModelMatrix",value:function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};k()(this,t);var n,o,s,a,r,l=this,c={el:i.el,size:"mini",isLog:!1,disabled:i.disabled||!1,alpha:!1,clickDefineColor:p,hasClear:!0,openPickerAni:"opacity",defaultColor:i.defaultColor,pickerInputChange:v,startMainCallback:function(t){l.colorPicker&&(l.colorPicker.picker.style.opacity=0),setTimeout((function(){u()}),0)}};function u(){if(l.colorPicker&&l.colorPicker.picker){var t=!1,e=l.colorPicker.box,c=l.colorPicker.picker,u=e.getBoundingClientRect().x,m=e.getBoundingClientRect().y,g=0;c.style.left=u+"px",c.style.minWidth="325px";var y=c.getElementsByClassName("ew-alpha-slider-bar")[0];y&&(y.parentNode.style.width="16px",y.parentNode.removeChild(y));var b=document.createElement("div");b.className="icon-pen-box",b.innerHTML='',b.style.display="none",b.style.cursor="unset";var C=l.colorPicker.pickerInput;C.parentNode.insertBefore(b,C),C.style.width="188px",C.style.display="none";var w=document.createElement("div"),k=document.createElement("div");k.className="row",k.style.margin="6px 0 0 0",k.innerHTML='\n
        R
        \n
        G
        \n
        B
        \n
        \n ';var x=document.createElement("div");x.className="row",x.innerHTML='\n
        \n \n
        \n
        \n \n
        \n
        \n \n
        \n ',w.appendChild(k),w.appendChild(x);var _=x.getElementsByTagName("input");_[0].style.width="72px",_[1].style.width="72px",_[2].style.width="72px",n=_[0],o=_[1],s=_[2];var E=c.getElementsByClassName("ew-color-dropbtns")[0];if(c.insertBefore(w,E),n.addEventListener("blur",(function(t){var e=t.target.value;(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eR\n
        G
        \n
        B
        \n
        A
        \n
        \n ',x.appendChild(S),a.addEventListener("blur",(function(t){var e=t.target.value;(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e',B.className="yj-pre-collect-color add";var L=document.createElement("div");L.innerHTML='',L.className="yj-pre-collect-color subtract";var A=L.getElementsByClassName("icon-minus")[0],j=L.getElementsByClassName("icon-confirm")[0];N.appendChild(B),N.appendChild(L);var I=[],R=function(t){var e=document.createElement("div");e.className="yj-pre-collect-color",e.setAttribute("tabindex","0"),e.setAttribute("color-box-id",l.colorPicker.uid);var i=document.createElement("div");i.className="yj-pre-define-color-item",e.appendChild(i),i.className="yj-pre-define-color-item";var n=Cesium.Color.fromCssColorString(M[t]).toCssHexString();i.style.backgroundColor=n,i.addEventListener("click",(function(t){l.colorPicker.updateColor(t),e.className="yj-pre-collect-color yj-pre-collect-color-active",p(n)})),e.addEventListener("blur",(function(t){e.className="yj-pre-collect-color"}));var o=document.createElement("div");o.className="yj-pre-define-color-item subtract-btn",o.innerHTML='',o.style.display="none",e.appendChild(o),N.appendChild(e),o.addEventListener("click",(function(){delete M[t],localStorage.setItem("custom-color",JSON.stringify(M)),N.removeChild(e)})),I.push(o)};for(var F in M)R(F);B.addEventListener("click",(function(){if(t){t=!1;for(var e=0;ewindow.innerHeight?c.style.top=m-g+"px":c.style.top=m+e.offsetHeight+4+"px",l.colorPicker.pancelTop=parseFloat(c.style.top)-2,v(Cesium.Color.fromCssColorString(l.colorPicker.config.defaultColor||"#ffffff").toCssHexString())}}function p(t){if(a){var e=Cesium.Color.fromCssColorString(t);a.value=parseInt(100*Number(e.alpha.toFixed(2)))/100}}function h(t){var e,i,n,o=t.a,s=Math.round(t.h),a=Math.round(255*t.s/100),r=Math.round(255*t.b/100);if(0===a)e=i=n=r;else{var l=(255-a)*r/255,c=s%60*(r-l)/60;360===s?(e=r,i=n=0):s<60?(e=r,i=l+c,n=l):s<120?(e=r-c,i=r,n=l):s<180?(e=l,i=r,n=l+c):s<240?(e=l,i=r-c,n=r):s<300?(e=l+c,i=l,n=r):s<360?(e=r,i=l,n=r-c):e=i=n=0}return"rgba("+Math.round(e)+","+Math.round(i)+","+Math.round(n)+","+o+")"}function d(t){var e={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};if(/rgba?/.test(t)){var i=t.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n="";return i[3],i.map((function(t,i){i<=2&&(n+=function(t){t=Math.min(Math.round(t),255);var i=Math.floor(t/16),n=t%16;return""+(e[i]||i)+(e[n]||n)}(t))})),"#"+n}}function m(t,e){var i=t.toLowerCase(),n=t.length,o=[];i=Cesium.Color.fromCssColorString(i).toCssHexString().substring(0,7);if(t&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(i)){if(4===n){for(var s="#",a=1;a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),Wi(this,Ji,void 0),this.div_id=e,this.entityMap=new Map,this._entityZIndex=0,this.viewer=null,this.options=Ui({},i),ui(ci()),this.proj=new R,this.clickTextDom=void 0,this.isLeftClick=!1,this.init(),Ri()}),[{key:"addIncetance",value:function(t,e){this.entityMap.set(t+"",e)}},{key:"getIncetance",value:function(t){return this.entityMap.get(t+"")}},{key:"removeIncetance",value:function(t){this.entityMap.delete(t),function(t){at.delete(t)}(this),function(t){rt.delete(t)}(this),function(t){lt.delete(t)}(this),se(this,t)}},{key:"setDefaultView",value:function(t){t?(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:t.destination||{},orientation:t.orientation||{}},ii(this),ni(this),this.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(t.destination.lng,t.destination.lat,t.destination.alt),orientation:{heading:Cesium.Math.toRadians(t.orientation.heading||0),pitch:Cesium.Math.toRadians(t.orientation.pitch||0),roll:Cesium.Math.toRadians(t.orientation.roll||0)},duration:0})):(this.viewer.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2),this.viewer.camera.setView({destination:Cesium.Camera.DEFAULT_VIEW_RECTANGLE}))}},{key:"init",value:function(){var t=this,e=new Cesium.Ellipsoid(6378137,6378137,6356752.314140356),i=new Cesium.GeographicProjection(e),n=this;this.options={imageryProvider:new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),baseLayerPicker:!1,geocoder:!1,animation:!1,fullscreenButton:!1,navigationHelpButton:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,shouldAnimate:!0,mapProjection:i},Number(Cesium.VERSION.split(".")[1])>=107?this.options.baseLayer=Cesium.ImageryLayer.fromProviderAsync(Cesium.TileMapServiceImageryProvider.fromUrl(Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII"))):this.options.imageryProvider=new Cesium.TileMapServiceImageryProvider({url:Cesium.buildModuleUrl("Assets/Textures/NaturalEarthII")}),this.options.contextOptions={webgl:{depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0},requestWebgl2:!0},Cesium.RequestScheduler.maximumRequests=500,this.viewer=new Cesium.Viewer(this.div_id,this.options),this.viewer.scene.imageryLayers._layers[0].notes="default-base-map",this.viewer._shadows=this.viewer.shadows,this.viewer.scene.screenSpaceCameraController.maximumZoomDistance=5e7,this.viewer.scene.globe.translucency.enabled=!0;var o=new fi;this.viewer.scene.skyBox=new Cesium.SkyBox({sources:{negativeX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mx.jpg",negativeY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_my.jpg",negativeZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_mz.jpg",positiveX:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_px.jpg",positiveY:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_py.jpg",positiveZ:o.getSourceRootPath()+"/img/skyBox/2/tycho2t3_80_pz.jpg"}}),bi();for(var s=[{name:"思源黑体",value:"SourceHanSansTi",url:o.getSourceRootPath()+"/custom/fonts/SourceHanSansCN-Medium.otf",format:"opentype"},{name:"庞门正道标题体",value:"PMZDBTTi",url:o.getSourceRootPath()+"/custom/fonts/PangMenZhengDaoBiaoTiTi-1.ttf",format:"truetype"},{name:"数黑体",value:"AlimamaShuHeiTi",url:o.getSourceRootPath()+"/custom/fonts/AlimamaShuHeiTi-Bold.ttf",format:"truetype"}],a=0;a=1e3?(i.billboard.scale=1.5,i.label.pixelOffset=new Cesium.Cartesian2(-28,-46)):t.length>=100?(i.billboard.scale=1.25,i.label.pixelOffset=new Cesium.Cartesian2(-21,-40)):t.length>=50?(i.billboard.scale=1.1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-36)):t.length>=40?(i.billboard.scale=1.05,i.label.pixelOffset=new Cesium.Cartesian2(-16,-34)):t.length>=30?(i.billboard.scale=1,i.label.pixelOffset=new Cesium.Cartesian2(-16,-32)):t.length>=20?(i.billboard.scale=.95,i.label.pixelOffset=new Cesium.Cartesian2(-16,-30)):t.length>=10?(i.billboard.scale=.9,i.label.pixelOffset=new Cesium.Cartesian2(-16,-28)):(i.billboard.scale=.8,i.label.pixelOffset=new Cesium.Cartesian2(-11,-25))}));var n=t.clustering.pixelRange;t.clustering.pixelRange=0,t.clustering.pixelRange=n}();var a={pixelRange:15,minimumClusterSize:2};function r(e){Cesium.knockout.getObservable(a,e).subscribe((function(i){t.clustering[e]=i}))}Cesium.knockout.track(a),r("pixelRange"),r("minimumClusterSize")}))}(this.viewer),E(this.viewer);Cesium.viewerCesiumNavigationMixin(this.viewer,{resetTooltip:"重置视图",zoomInTitle:"缩小",zoomOutTitle:"放大"});function l(t){var e=t.indexOf("px");return Number(t.slice(0,e))}setTimeout((function(){var e=document.getElementsByClassName("compass-outer-ring")[0],i=document.getElementsByClassName("navigation-controls")[0];e.addEventListener("mousedown",(function(){ii(t),ni(t)})),i.addEventListener("mousedown",(function(){ii(t),ni(t)}))}),0),this.viewer.imageryLayers.layerAdded.addEventListener((function(){for(var e=0;e-1;i--){var o=l(e[i].style.left),s=l(e[i].style.top),a=1*e[i].clientWidth,r=1*e[i].clientHeight,c=t.position.x,u=t.position.y;if(c>o&&cs&&u1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.primitives={building:[],unit:[],dth:[]},this.options=Zi({},i),this.options.host=this.options.host||h(),this.temporaryDth=[],this.dth={},this.PickBuildingEvent=new Cesium.Event,this.initEvents(),this.activeBuilding}),[{key:"PickCallback",value:function(t,e){this.PickBuildingEvent.addEventListener(e,t)}},{key:"initEvents",value:function(){var t=this;new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(e){if(!YJ.Measure.GetMeasureStatus()&&t.isActivate){var i=t.sdk.viewer.scene.pick(e.position);if(i){if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"==i.id.type||"yj-dth-highlight"==i.id.type))return void t.getIDBypickFeature(i);if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"==i.id.type)return t.highlightPrimitive&&t.sdk.viewer.scene.primitives.remove(t.highlightPrimitive),void t.handlePickEvent(i.id)}t.highlightPrimitive&&t.sdk.viewer.scene.primitives.remove(t.highlightPrimitive);var n=t.sdk.viewer.scene.pickPosition(e.position);if(n){var o=Cesium.Cartographic.fromCartesian(n),s=[Cesium.Math.toDegrees(o.longitude),Cesium.Math.toDegrees(o.latitude)];t.queryByPoint(s,o.height)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK);var e=this.sdk.viewer.entities.getOrCreateEntity("yj-dth-cover-label");e.show=!1;var i,n=0,o=this;function s(t){var i=o.sdk.viewer.scene.pick(t.endPosition);if(i){var n="";if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&("yj-dth-dth"===i.id.type||"yj-dth-highlight"===i.id.type))n=i.id.build_info.name+" - "+i.id.unit_info.name+" - "+i.id.room_num;else if(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-unit"===i.id.type)i.id.build_info.name&&(n=i.id.build_info.name+" - "+i.id.name);else{if(!(i.primitive&&i.primitive instanceof Cesium.ClassificationPrimitive&&i.id&&"yj-dth-build"===i.id.type))return i.primitive&&i.primitive.id&&i.primitive.id.id&&"yj-dth-cover-label"===i.primitive.id.id?void(e.position=o.sdk.viewer.scene.pickPosition(t.endPosition)):void(e.show=!1);i.id.name&&(n=i.id.name)}n&&(e.position=o.sdk.viewer.scene.pickPosition(t.endPosition),e.label=new Cesium.LabelGraphics({text:n,font:"20px Helvetica",pixelOffset:{x:0,y:-30},fillColor:Cesium.Color.fromCssColorString("#ffffff"),outlineColor:Cesium.Color.BLACK,outlineWidth:1,showBackground:!0,backgroundColor:Cesium.Color.fromCssColorString("#000000").withAlpha(.8),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY}),e.show=!0)}}new Cesium.ScreenSpaceEventHandler(this.sdk.viewer.scene.canvas).setInputAction((function(t){if(!YJ.Measure.GetMeasureStatus())try{var e=Date.now();if(e-n<100)return clearTimeout(i),void(i=setTimeout((function(){s(t)}),100));clearTimeout(i),n=e,s(t)}catch(t){}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}},{key:"queryByUserInfo",value:function(t){this.queryByPoint([t.position.lng,t.position.lat],t.position.alt,t.id)}},{key:"queryByPoint",value:(s=o()(a.a.mark((function t(e){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/dth/build/query_by_point":this.options.host+"/yjearth4.0/api/v1/dth/build/query_by_point",i+="?point="+JSON.stringify({lng:e[0],lat:e[1]}),t.next=5,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 5:if(200!==(n=t.sent).status){t.next=11;break}return t.next=9,n.json();case 9:200===(o=t.sent).code||0===o.code?this.processQueryByPointResults(o.data):window.ELEMENT&&window.ELEMENT.Message({message:o.msg||o.message,type:"warning",duration:1500});case 11:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"processQueryByPointResults",value:(n=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>2&&void 0!==p[2]?p[2]:{heading:0,pitch:-90,roll:0},e.build_info&&this.handlePickEvent(e),this.clearAllDthPrimitive(),this.clearAllUnitPrimitive(),this.activeBuilding&&(this.clearBuildingPrimitive(this.activeBuilding),this.activeBuilding=null),!e.build_info){t.next=26;break}if(o=JSON.parse(e.build_info.range),e.dan_yuan.length>0)for(s=0;s0?this.addDthPrimitive(e.dan_yuan[s].children,e.build_info,e.dan_yuan[s]):this.addUnitPrimitive([e.dan_yuan[s]],e.build_info,e.dan_yuan[s]);else this.activeBuilding=e.build_info.ID||e.build_info.id,this.addBuildingPrimitive([e.build_info]);if(!i){t.next=26;break}if(e.info&&e.info.dan_yuan&&(o=JSON.parse(e.info.dan_yuan.range)),!e.info||!e.info.hu){t.next=25;break}for(o=JSON.parse(e.info.hu.range),r=0;r=0;e--)if(t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.ID||t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.building[e]),this.primitives.building.splice(e,1);break}}},{key:"clearAllBuildingPrimitive",value:function(){for(var t=this.primitives.building.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.building[t]);this.primitives.building=[]}},{key:"addUnitPrimitive",value:(e=o()(a.a.mark((function t(e,i,n){var o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(o=0;o=0;e--)if(t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.ID||t===this.primitives.building[e]._primitiveOptions.geometryInstances[0].id.id){this.sdk.viewer.scene.primitives.remove(this.primitives.unit[e]),this.primitives.unit.splice(e,1);break}}},{key:"clearAllUnitPrimitive",value:function(){for(var t=this.primitives.unit.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.unit[t]);this.primitives.unit=[]}},{key:"addDthPrimitive",value:function(t,e,i){for(var n=0;n=0;e--)t!==this.primitives.dth[e]._primitiveOptions.geometryInstances[0].id.ID&&t!==this.primitives.dth[e]._primitiveOptions.geometryInstances[0].id.id||(this.sdk.viewer.scene.primitives.remove(this.primitives.dth[e]),this.primitives.dth.splice(e,1))}},{key:"clearAllDthPrimitive",value:function(){this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive);for(var t=this.primitives.dth.length-1;t>=0;t--)this.sdk.viewer.scene.primitives.remove(this.primitives.dth[t]);this.primitives.dth=[]}},{key:"getIDBypickFeature",value:function(t){this.clickHighlightPrimitive&&(this.clickHighlightPrimitive.show=!0),this.highlightPrimitive&&this.sdk.viewer.scene.primitives.remove(this.highlightPrimitive),this.highlightPrimitive=this.sdk.viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:new Cesium.GeometryInstance({id:Zi(Zi({},t.id),{},{type:"yj-dth-highlight"}),geometry:t.primitive._primitiveOptions.geometryInstances[0].geometry,attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString("#ff9800").withAlpha(.8)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}}),classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),this.highlightPrimitive.readyPromise.then((function(){t.primitive.show=!1})),this.clickHighlightPrimitive=t.primitive;var e=t.id.range;"string"==typeof t.id.range&&(e=JSON.parse(t.id.range)),this.getHilightArea(e),this.handlePickEvent(t.id)}},{key:"handlePickEvent",value:function(t){this.PickBuildingEvent.raiseEvent(t)}},{key:"getHilightArea",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=[];t.forEach((function(t){i.push([t.lng,t.lat])})),i.push(i[0]);var n=turf.polygon([i]),o=turf.buffer(n,Number(e)/1e3);return o.geometry.coordinates}},{key:"flyTo",value:(t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=u.length>1&&void 0!==u[1]?u[1]:{heading:0,pitch:-90,roll:0},n=new YJ.Tools(this.sdk),o=0,s=[],r=0;case 5:if(!(r更新高程',s.style.width="auto",s.addEventListener("click",(function(){p.options.updateHeightCallBack()})),o.appendChild(s)),this.options.secondaryEditCallBack&&((r=document.createElement("button")).className="secondaryEdit",r.innerHTML='二次编辑',this.options.updateHeightCallBack&&(r.style.marginLeft="10px"),o.appendChild(r),r.addEventListener("click",(function(){p.options.secondaryEditCallBack&&p.options.secondaryEditCallBack()}))),this.options.translationalCallBack&&((l=document.createElement("button")).className="translational",l.innerHTML='平移',(this.options.updateHeightCallBack||this.options.secondaryEditCallBack)&&(l.style.marginLeft="10px"),o.appendChild(l),l.addEventListener("click",(function(){p.options.translationalCallBack&&p.options.translationalCallBack()})))),this.options.addFootElm)for(c=0;c=0;i--)for(var n in this.info.attribute)if(e[i].value===n){this.info.attribute[n].disabled&&(e[i].disabled=!0);break}}}]);var i}(W);function ln(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function cn(t){for(var e=1;e=3?(h.width=r.width/l*2,h.height=r.height/l*2,d.drawImage(r,0,0,h.width,h.height),p.src=h.toDataURL("image/jpeg",.95)):p.src=s}else p.src=s;p.onload=function(){if(!m){var o=cn({},y),s=JSON.parse(JSON.stringify(C)),r=cn({},w),l=cn({},b);l.width=b.width/j.width*p.width;var h=v/j.width*p.width,d=h;if(l.show&&f&&f.complete&&(d+=l.width),a.width=p.width+2*d,a.height=p.height+2*d,u.clearRect(0,0,a.width,a.height),u.rect(0,0,a.width,a.height),u.fillStyle="#ffffff",u.fill(),u.drawImage(p,d,d,p.width,p.height),o.show){var g=o.text,k=Math.max(5,o.height*p.height*.5);u.font="".concat(k,"px serif"),u.fillStyle=o.bgColor||"#5d5d5d",u.fillRect(d,d,a.width-2*d,o.height*p.height),u.fillStyle=o.color||"white",u.textAlign="center",u.textBaseline="middle",u.fillText(g,a.width/2,o.height*p.height/2+d)}for(var x=function(t){if(s[t].show)if("text"in s[t])u.font="".concat(p.height*s[t].height,"px serif"),u.fillStyle=s[t].color||"white",u.textAlign="left",u.textBaseline="bottom",s[t].width=u.measureText(s[t].text).width/p.height,u.fillText(s[t].text,p.width*s[t].x+d,p.height*s[t].y+d);else if("url"in s[t])if(C[t].svg&&C[t].svg.complete)u.drawImage(C[t].svg,p.width*s[t].x+d,p.height*s[t].y+d,p.height*s[t].width,p.height*s[t].height);else{var e=new Image;e.src=un.getSourceRootPath()+s[t].url,e.onload=function(){s[t].svg=e,u.drawImage(e,p.width*s[t].x+d,p.height*s[t].y+d,p.height*s[t].width,p.height*s[t].height)}}},_=0;_=1e3&&(D="㎞",O=Math.round(O/1e3));var B=S;u.beginPath(),u.moveTo(E,B),u.lineTo(E+r.width,B),u.strokeStyle=r.color,u.lineWidth=.01*r.width,u.stroke();for(var L=0,A=0;A<=r.cell;A++)L=E+A*M,u.beginPath(),u.moveTo(L,B-.1*r.width),u.lineTo(L,B),u.strokeStyle=r.color,u.lineWidth=.01*r.width,u.stroke(),u.font="".concat(P,"px Arial"),u.fillStyle=r.color,u.textAlign="center",u.textBaseline="bottom",u.fillText(A*O,L,B-.1*r.width);u.font="".concat(P,"px Arial"),u.fillStyle=r.color,u.textAlign="left",u.textBaseline="bottom",u.fillText(D,L+1.2*P,B-.1*r.width)}if(l.show&&f&&f.complete&&(R(u,f,h,h,l.width,"top",1),R(u,f,a.width-l.width-h,h,l.width,"right",1),R(u,f,a.width-l.width-h,a.height-l.width-h,l.width,"bottom",1),R(u,f,h,a.height-l.width-h,l.width,"left",1)),"export"===t){var I=i.contentWindow;I&&"function"==typeof I.print?(I.addEventListener("afterprint",(function(){document.body.removeChild(i)})),I.print()):console.error("打印失败,请手动保存截图")}else a.toBlob((function(t){var e=URL.createObjectURL(t),i=document.createElement("a");i.href=e,i.download="高清出图-".concat(Ct(),".png"),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(e)}),"image/png",.95);c=!1,W.innerHTML="打印",J.innerHTML="保存"}function R(t,e,i,n,o,s){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(t.save(),t.translate(i+o/2,n+o/2),s){case"right":t.rotate(Math.PI/2);break;case"bottom":t.rotate(Math.PI);break;case"left":t.rotate(3*Math.PI/2)}t.beginPath(),t.moveTo(-o*r/2,-o/2),"top"===s||"bottom"===s?(t.lineTo(a.width-2*h-o/2,-o/2),t.lineTo(a.width-2*(h+o)+o/2,o/2)):(t.lineTo(a.height-2*h-o/2,-o/2),t.lineTo(a.height-2*(h+o)+o/2,o/2)),t.lineTo(o*r/2,o/2),t.closePath(),t.clip();var c,u=e.width/e.height*o;t.drawImage(e,-o/2,-o/2,u,o),c="top"===s||"bottom"===s?Math.ceil((a.width-2*h-2*l.width)/l.width):Math.ceil((a.height-2*h-2*l.width)/l.width),c++;for(var p=1;p<=c;p++)t.drawImage(e,-o/2+u*p,-o/2,u,o);t.restore()}}},Ct=function(){var t=new Date,e=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0"),a=String(t.getSeconds()).padStart(2,"0"),r=String(t.getMilliseconds()).padStart(3,"0");return"".concat(e).concat(i).concat(n).concat(o).concat(s).concat(a).concat(r)},bt=function(){if(n){var t=Cesium.Math.toDegrees(n.west),e=Cesium.Math.toDegrees(n.east),i=Cesium.Math.toDegrees(n.north),o=(Cesium.Math.toDegrees(n.south),turf.point([t,i])),s=turf.point([e,i]),a=turf.distance(o,s,{units:"kilometers"});d=1e3*a/j.width}},yt=function(t){var e=v;b.show&&f&&f.complete&&(e+=b.width);var i=.005*L.height;if(A.strokeStyle="red",A.lineWidth=.002*L.height,"text"in t)A.strokeRect(j.width*t.x+e,j.height*t.y+e-j.height*t.height,j.height*t.width,j.height*t.height);else if("url"in t)A.strokeRect(j.width*t.x+e,j.height*t.y+e,j.height*t.width,j.height*t.height);else if(t===w)return void A.strokeRect(j.width*t.x+e-.2*w.width,j.height*t.y+e-t.height-.5*w.height,t.width+.6*w.width,t.height+w.height);var n=ft(t,e);A.fillStyle="red",n.forEach((function(t){A.beginPath(),A.arc(t.x,t.y,i,0,2*Math.PI),A.fill()}))},gt=function(t,e,i,n,o,s){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;switch(t.save(),t.translate(i+o/2,n+o/2),s){case"right":t.rotate(Math.PI/2);break;case"bottom":t.rotate(Math.PI);break;case"left":t.rotate(3*Math.PI/2)}t.beginPath(),t.moveTo(-o*a/2,-o/2),"top"===s||"bottom"===s?(t.lineTo(L.width-2*v-o/2,-o/2),t.lineTo(L.width-2*(v+o)+o/2,o/2)):(t.lineTo(L.height-2*v-o/2,-o/2),t.lineTo(L.height-2*(v+o)+o/2,o/2)),t.lineTo(o*a/2,o/2),t.closePath(),t.clip();var r,l=e.width/e.height*o;t.drawImage(e,-o/2,-o/2,l,o),r="top"===s||"bottom"===s?Math.ceil((L.width-2*v-2*b.width)/b.width):Math.ceil((L.height-2*v-2*b.width)/b.width),r++;for(var c=1;c<=r;c++)t.drawImage(e,-o/2+l*c,-o/2,l,o);t.restore()},vt=function(){if(!m){var t=v;if(b.show&&f&&f.complete&&(t+=b.width),L.width=j.width+2*t,L.height=j.height+2*t,A.clearRect(0,0,L.width,L.height),A.rect(0,0,L.width,L.height),A.fillStyle="#ffffff",A.fill(),A.drawImage(j,t,t,j.width,j.height),y.show){var e=y.text,i=Math.max(5,y.height*j.height*.5);A.font="".concat(i,"px serif"),A.fillStyle=y.bgColor||"#5d5d5d",A.fillRect(t,t,L.width-2*t,y.height*j.height),A.fillStyle=y.color||"white",A.textAlign="center",A.textBaseline="middle",A.fillText(e,L.width/2,y.height*j.height/2+t)}for(var n=function(e){if(C[e].show)if("text"in C[e])A.font="".concat(j.height*C[e].height,"px serif"),A.fillStyle=C[e].color||"white",A.textAlign="left",A.textBaseline="bottom",C[e].width=A.measureText(C[e].text).width/j.height,A.fillText(C[e].text,j.width*C[e].x+t,j.height*C[e].y+t),C[e].isSelected&&yt(C[e]);else if("url"in C[e])if(C[e].svg&&C[e].svg.complete)A.drawImage(C[e].svg,j.width*C[e].x+t,j.height*C[e].y+t,j.height*C[e].width,j.height*C[e].height),C[e].isSelected&&yt(C[e]);else{var i=new Image;i.src=un.getSourceRootPath()+C[e].url,i.onload=function(){C[e].svg=i,A.drawImage(i,j.width*C[e].x+t,j.height*C[e].y+t,j.height*C[e].width,j.height*C[e].height),C[e].isSelected&&yt(C[e])}}},o=0;o=1e3&&(l="㎞",p=Math.round(p/1e3));var k=r;A.beginPath(),A.moveTo(a,k),A.lineTo(a+w.width,k),A.strokeStyle=w.color,A.lineWidth=.01*w.width,A.stroke();for(var x=0,_=0;_<=w.cell;_++)x=a+_*u,A.beginPath(),A.moveTo(x,k-.1*w.width),A.lineTo(x,k),A.strokeStyle=w.color,A.lineWidth=.01*w.width,A.stroke(),A.font="".concat(c,"px Arial"),A.fillStyle=w.color,A.textAlign="center",A.textBaseline="bottom",A.fillText(_*p,x,k-.1*w.width);A.font="".concat(c,"px Arial"),A.fillStyle=w.color,A.textAlign="left",A.textBaseline="bottom",A.fillText(l,x+1.2*c,k-.1*w.width),w.isSelected&&yt(w)}b.show&&f&&f.complete&&(gt(A,f,v,v,b.width,"top",1),gt(A,f,L.width-b.width-v,v,b.width,"right",1),gt(A,f,L.width-b.width-v,L.height-b.width-v,b.width,"bottom",1),gt(A,f,v,L.height-b.width-v,b.width,"left",1))}},ft=function(t,e){var i=t.x*j.width+e,n=t.y*j.height+e,o=t.width*j.height,s=t.height*j.height;return"text"in t?[{x:i,y:n-s},{x:i+o,y:n-s},{x:i,y:n},{x:i+o,y:n}]:[{x:i,y:n},{x:i+o,y:n},{x:i,y:n+s},{x:i+o,y:n+s}]},mt=function(t){var e,i=L.getBoundingClientRect(),n=i.width,o=i.height,s=L.width,a=L.height,r=(n-s*(e=s/a>n/o?n/s:o/a))/2;return(t.clientX-i.left-r)/e},dt=function(t){var e,i=L.getBoundingClientRect(),n=i.width,o=i.height,s=L.width,a=L.height,r=(e=s/a>n/o?n/s:o/a,(o-a*e)/2);return(t.clientY-i.top-r)/e},K=function(t){var e,i;if(b.color=t||"#000000",new YJColorPicker({el:x.getElementsByClassName("border-color")[0],size:"mini",alpha:!1,defaultColor:b.color,disabled:!1,openPickerAni:"opacity",sure:function(t){K(t)},clear:function(){K("rgba(0,0,0,1)")}}),t){e=g.replace(/fill="[^"]+"/g,'fill="'.concat(t,'"'))}else e=g;i="data:image/svg+xml;base64,"+btoa(Array.from((new TextEncoder).encode(e),(function(t){return String.fromCharCode(t)})).join("")),(f=new Image).setAttribute("crossOrigin","anonymous"),f.src=i,f.onload=function(){b.show&&vt()}},Z=function(t){b.url=t,b.url&&((f=new Image).setAttribute("crossOrigin","anonymous"),b.url.endsWith("svg")?fetch(un.getSourceRootPath()+b.url).then(function(){var t=o()(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.ok){t.next=5;break}return t.next=3,e.text();case 3:g=t.sent,K(b.color);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()):(f.src=un.getSourceRootPath()+b.url,f.onload=function(){b.show&&vt()}))},X=function(t){h=t,u=[{name:"模板一",value:"模板一",id:"1",margin:.03,title:{text:"标题一",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},border:{show:!1,url:"/custom/img/map-border1.svg",width:.01,color:""},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.87,y:.97},data:[{text:"",x:.02,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.02,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.02,y:.1,show:!1,isSelected:!1,url:"/custom/img/icon-compass1.svg",width:.1,height:.1}]},{name:"模板二",value:"模板二",id:"2",margin:.03,border:{show:!0,url:"/custom/img/map-border2.svg",width:.01},title:{text:"标题二",height:.05,bgColor:"#5d5d5d",color:"#ffffff",show:!0},plottingScale:{cell:2,color:"#ffffff",show:!0,isSelected:!1,x:.02,y:.97},data:[{text:"",x:.88,y:.93,isSelected:!1,show:!0,color:"#ffffff",height:.03},{text:"",x:.87,y:.97,isSelected:!1,show:!0,color:"#ffffff",height:.03},{x:.91,y:.1,show:!0,isSelected:!1,url:"/custom/img/icon-compass4.svg",width:.1,height:.1}]}];for(var e=0;e\n
        \n
        图件信息
        \n
        \n
        \n 模板\n
        \n
        \n
        \n
        \n
        \n 标题\n \n \n
        \n
        \n
        \n
        \n 制图日期\n \n \n
        \n
        \n
        \n
        \n 制图单位\n \n \n
        \n
        \n
        \n
        \n 图框\n
        \n
        \n \n
        \n
        \n
        \n
        \n
        地图要素
        \n
        \n
        \n 指北针\n \n
        \n
        \n '.concat(function(){for(var t="",e=0;e\n \n \n
        ')}return t}(),'\n
        \n
        \n
        \n
        \n
        \n
        \n 比例尺\n \n
        \n
        \n \n \n
        \n
        \n\n
        \n
        \n '),p.contentAppChild(x),_=x.getElementsByClassName("left")[0],E=x.getElementsByClassName("right")[0],S=_.getElementsByClassName("title-input")[0],D=_.getElementsByClassName("title-checkbox")[0],P=_.getElementsByClassName("unit-input")[0],M=_.getElementsByClassName("unit-checkbox")[0],O=_.getElementsByClassName("compass-checkbox")[0],T=_.getElementsByClassName("compass-radio"),N=_.getElementsByClassName("plotting-scale-checkbox")[0],B=_.getElementsByClassName("map-border-checkbox")[0],L=document.createElement("canvas"),A=L.getContext("2d"),E.appendChild(L),(j=new Image).src=i,j.onload=function(){m=!1,bt(),X(h)},S.value=y.text,D.checked=y.show,S.addEventListener("input",(function(){y.text=this.value,j.complete&&vt()})),D.addEventListener("change",(function(){y.show=this.checked,j.complete&&vt()})),P.value=C[1].text,M.checked=C[1].show,P.addEventListener("input",(function(){C[1].text=this.value,j&&j.complete&&vt()})),M.addEventListener("change",(function(){C[1].show=this.checked,j&&j.complete&&vt()})),O.checked=C[2].show,O.addEventListener("change",(function(){C[2].show=this.checked,j&&j.complete&&vt()})),I=a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:T[e].addEventListener("change",(function(){this.checked&&(C[2].svg=null,C[2].url=k[e],j&&j.complete&&vt())}));case 1:case"end":return t.stop()}}),t)})),R=0;case 59:if(!(R打印',J.innerHTML='保存',wt("export"))})),J.addEventListener("click",(function(){c||(c=!0,W.innerHTML='打印',J.innerHTML='保存',wt("save"))}));var t=x.getElementsByClassName("print-date")[0];(z=x.getElementsByClassName("print-date-checkbox")[0]).checked=C[0].show,z.addEventListener("change",(function(){C[0].show=this.checked,j.complete&&vt()})),F=jeDate(t,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(t){C[0].text=t.val,j.complete&&vt()}}),C[0].text?F.setValue(C[0].text):(F.nowBtn&&F.nowBtn(),C[0].text=F.getValue(),vt());var e=Y(p._element.content.getElementsByClassName("template-box")[0],".template");if(e){e.legp_search(u);for(var i=p._element.content.getElementsByClassName("template")[0].getElementsByTagName("input")[0],n=0;n'),value:"/custom/img/map-border1.svg",key:0},{name:''),value:"/custom/img/map-border2.svg",key:1},{name:''),value:"/custom/img/map-border3.svg",key:2},{name:''),value:"/custom/img/map-border4.svg",key:3},{name:''),value:"/custom/img/map-border5.svg",key:4},{name:''),value:"/custom/img/map-border6.svg",key:5}];if(V=Y(p._element.content.getElementsByClassName("map-border-box")[0],".map-border")){V.legp_search(o),(G=document.createElement("span")).className="icon icon-active",G.style.width="calc(100% - 40px)",G.style.height="calc(100% - 12px)",G.style.position="absolute",G.style.top="6px",G.style.left="10px",G.style.pointerEvents="none",G.style.backgroundImage="url(".concat(un.getSourceRootPath()+b.url,")"),G.style.backgroundSize="auto 100%",G.style.backgroundRepeat="repeat-x",p._element.content.getElementsByClassName("map-border")[0].getElementsByClassName("cy_datalist")[0].appendChild(G),(H=p._element.content.getElementsByClassName("map-border")[0].getElementsByTagName("input")[0]).style.fontSize=0,H.style.color="transparent";for(var s=0;s=y.height*j.height+n-Q&&i<=y.height*j.height+n+Q){$=!0;for(var o=0;o=t.x-s&&e<=t.x+s&&i>=t.y-s&&i<=t.y+s&&(it=!0,et=!1,nt=n,ot=e,st=i,ut=tt.width*j.height,pt=tt.height*j.height,"text"in tt&&(ut=tt.width*j.height,ht=tt.height))}))}if(!it){for(var a=0;a=0;r--)if(C[r].show){if("text"in C[r]&&e>=j.width*C[r].x+n&&e<=j.width*C[r].x+n+j.height*C[r].width&&i>=j.height*C[r].y+n-j.height*C[r].height&&i<=j.height*C[r].y+n){tt=C[r],C[r].isSelected=!0,et=!0,ot=e,st=i,at=j.height*C[r].y-j.height*C[r].height,rt=j.width*C[r].x+j.height*C[r].width,lt=j.width*C[r].x+n,ct=j.height*C[r].y+n,vt();break}if("url"in C[r]&&C[r].svg&&C[r].svg.complete&&C[r].show&&e>=j.width*C[r].x+n&&e<=j.width*C[r].x+n+j.height*C[r].width&&i>=j.height*C[r].y+n&&i<=j.height*C[r].y+n+j.height*C[r].height){tt=C[r],C[r].isSelected=!0,et=!0,ot=e,st=i,at=j.height*C[r].y+j.height*C[r].height,rt=j.width*C[r].x+j.height*C[r].width,lt=j.width*C[r].x+n,ct=j.height*C[r].y+n,vt();break}}w.show&&e>=j.width*w.x+n-.2*w.width&&e<=j.width*w.x+n-.2*w.width+w.width+.6*w.width&&i>=j.height*w.y+n-w.height-.5*w.height&&i<=j.height*w.y+n-.5*w.height+w.height&&(tt=w,w.isSelected=!0,et=!0,ot=e,st=i,at=j.height*w.y+n+w.height,rt=j.width*w.x+n+w.width,lt=j.width*w.x+n,ct=j.height*w.y+n,vt()),tt||vt()}})),L.addEventListener("mousemove",(function(t){var e=v;b.show&&f&&f.complete&&(e+=b.width);var i=mt(t),n=dt(t);if(!(i<0||n<0||i>L.width||n>L.height)){if(y.show){var o=v;b.show&&f&&f.complete&&(o+=b.width),n>=y.height*j.height+o-Q&&n<=y.height*j.height+o+Q?L.style.cursor="n-resize":L.style.cursor="default",$&&(y.height=Math.min(Math.max(n-o,30)/j.height,1),vt())}if(et){var s=i-ot,a=n-st;tt.x=(lt+s-e)/j.width,tt.y=(ct+a-e)/j.height,vt()}if(it){var r,l=i-ot,c=n-st;switch(nt){case 0:"text"in tt?(r=(ut-l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.x=(rt-tt.width*j.height)/j.width):"url"in tt&&(tt.x=(rt-tt.width*j.height)/j.width,tt.y=(at-tt.height*j.height)/j.height,tt.width=Math.max(10,ut-l)/j.height,tt.height=Math.max(10,pt-c)/j.height);break;case 1:"text"in tt?(r=(ut+l)/ut,tt.height=Math.max(10/j.height,ht*r)):"url"in tt&&(tt.width=Math.max(10,ut+l)/j.height,tt.height=Math.max(10,pt-c)/j.height,tt.y=(at-tt.height*j.height)/j.height);break;case 2:"text"in tt?(r=(ut-l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.x=(rt-tt.width*j.height)/j.width,tt.y=(at+tt.height*j.height)/j.height):"url"in tt&&(tt.x=(rt-tt.width*j.height)/j.width,tt.width=Math.max(10,ut-l)/j.height,tt.height=Math.max(10,pt+c)/j.height);break;case 3:"text"in tt?(r=(ut+l)/ut,tt.height=Math.max(10/j.height,ht*r),tt.y=(at+tt.height*j.height)/j.height):"url"in tt&&(tt.width=Math.max(10,ut+l)/j.height,tt.height=Math.max(10,pt+c)/j.height)}vt()}}})),document.addEventListener("mouseup",(function(){$=!1;b.show&&f&&f.complete&&b.width;for(var t=0;t1&&void 0!==o[1]?o[1]:function(){},n=e.viewer.canvas.toDataURL(),i&&i(n);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function fn(){return(fn=o()(a.a.mark((function t(e){var i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,x,E,S,D=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v=function(){setTimeout((function(){f.getElementsByClassName("canvas-width-span")[0].innerHTML=e.viewer.canvas.width,f.getElementsByClassName("canvas-height-span")[0].innerHTML=e.viewer.canvas.height,f.getElementsByClassName("output-width")[0].innerHTML=e.viewer.canvas.width*r,f.getElementsByClassName("output-height")[0].innerHTML=e.viewer.canvas.height*r}),500)},D.length>1&&void 0!==D[1]?D[1]:{},D.length>2&&void 0!==D[2]?D[2]:function(){},e){t.next=5;break}return t.abrupt("return");case 5:return qt(),Ee(e),dn&&(dn.close(),dn=null),i=e.viewer.scene.screenSpaceCameraController.enableTranslate,n=e.viewer.scene.screenSpaceCameraController.enableTilt,s=e.viewer.scene.screenSpaceCameraController.enableLook,r=1,m=new fi,t.next=15,new rn(e,{},{title:"高清出图",left:"180px",top:"100px",confirmCallBack:function(t){d&&(d.desist(),d=null),c&&(c.style.width="0%"),p&&(p.style.left="0%"),u&&(u.style.width="0%"),h&&(h.innerHTML="0%"),d=new S},closeCallBack:function(){e.viewer.scene.screenSpaceCameraController.enableTranslate=i,e.viewer.scene.screenSpaceCameraController.enableTilt=n,e.viewer.scene.screenSpaceCameraController.enableLook=s,e.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="auto",d&&(d.desist(),d=null),window.removeEventListener("resize",v),dn=void 0}});case 15:for((dn=t.sent)._element.body.className=dn._element.body.className+" screenShotHD",(f=document.createElement("div")).innerHTML='\n \n
        \n
        \n
        \n 当前窗口长宽:'.concat(e.viewer.canvas.width,'*').concat(e.viewer.canvas.height,'像素\n
        \n
        \n
        \n
        \n 图片大小\n
        \n 倍窗口\n
        \n
        \n
        \n
        \n 输出图片长宽:').concat(e.viewer.canvas.width*r,'*').concat(e.viewer.canvas.height*r,'像素\n
        \n
        \n
        \n
        \n 输出进度\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n 0%\n 100%\n
        0%
        \n
        \n \n
        \n
        \n
        \n
        \n \n '),dn.contentAppChild(f),e.viewer.scene.screenSpaceCameraController.enableTranslate=!1,e.viewer.scene.screenSpaceCameraController.enableTilt=!1,e.viewer.scene.screenSpaceCameraController.enableLook=!1,e.viewer._element.getElementsByClassName("compass")[0].style.pointerEvents="none",window.addEventListener("resize",v),(g=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/2)))||(g=e.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(e.viewer.canvas.clientWidth/2,e.viewer.canvas.clientHeight/(2-(90+e.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(g=e.viewer.camera.position),y=m.cartesian3Towgs84(e.viewer.camera.position,e.viewer).alt,b=m.cartesian3Towgs84(g,e.viewer),e.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(b.lng,b.lat,y),orientation:{heading:0,pitch:Cesium.Math.toRadians(-90),roll:0},duration:1}),C=[],w=1;w<=10;w++)C.push({name:w,value:w});c=document.getElementsByClassName("progress-input")[0],u=document.getElementsByClassName("range-process")[0],p=f.getElementsByClassName("range-node-active")[0],h=f.getElementsByClassName("range-node-active-text")[0],(x=Y(dn._element.content.getElementsByClassName("scale-box")[0],".scale"))&&(x.legp_search(C),E=dn._element.content.getElementsByClassName("scale")[0].getElementsByTagName("input")[0],r=C[0].value,x.legp_searchActive(C[0].value),E.value=C[0].value,E.addEventListener("input",(function(){for(var t=0;tg.maximumLevel&&(f=g.maximumLevel),f=y;J--)for(var q=x;q>=m;q--)Y.push({x:q,y:J});var X={count:0},Z=0,K=-1,$={count:0},Q=0;function tt(){$.count=0,Q=0;for(var t=30*++K;t<30*(K+1);t++){if(t>=Y.length)return;et(t)}}function et(t){if(c.state)try{var e=Y[t].x;e<0&&(e+=d);var i,n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P.drawImage(n,256*(Y[t].x-m)-parseFloat(H.toFixed(0)),256*(Y[t].y-y)-parseFloat(V.toFixed(0)),256,256),v++,X.count++,$.count++;case 4:case"end":return e.stop()}}),e)}))),n.onerror=function(){v++,X.count++,$.count++},i=-1!==g.url.indexOf("{x}")&&-1!==g.url.indexOf("{y}")&&-1!==g.url.indexOf("{z}")?g.url.replace(/\{x\}/g,e).replace(/\{y\}/g,Y[t].y).replace(/\{z\}/g,f):-1!==g.url.indexOf("{TileMatrix}")&&-1!==g.url.indexOf("{TileRow}")&&-1!==g.url.indexOf("{TileCol}")?g.url.replace(/\{TileCol\}/g,e).replace(/\{TileRow\}/g,Y[t].y).replace(/\{TileMatrix\}/g,f):g._layer&&g._style&&g._tileMatrixSetID&&g._format?g.url+"&tilematrix=".concat(f,"&layer=").concat(g._layer,"&style=").concat(g._style,"&tilerow=").concat(W,"&tilecol=").concat(e,"&tilematrixset=").concat(g._tileMatrixSetID,"&format=").concat(g._format):g.url+"tile/".concat(f,"/").concat(Y[t].y,"/").concat(e),n.src=i}catch(t){v++,X.count++,$.count++}}Object.defineProperty($,"count",{get:function(){return Q},set:function(t){(Q=t)>=30&&tt()}}),Object.defineProperty(X,"count",{get:function(){return Z},set:function(o){Z=o,C[i].value=v/S*E;var s=0;for(var a in C)s+=C[a].value;if(u.style.width=.99*s+"%",p.style.left=.99*s+"%",h.innerHTML=Math.floor(.99*s*100)/100+"%",Z===(x-m+1)*(_-y+1)){var l=D.getContext("2d"),d=D.cloneNode(!0),f=d.getContext("2d"),g=l.getImageData(0,0,D.width,D.height);if(f.putImageData(g,0,0),D.width=e.viewer.canvas.width*r,D.height=e.viewer.canvas.height*r,l.drawImage(d,0,0,D.width,D.height),n){if(n.getContext("2d").drawImage(D,0,0),k!=w){var P=i+=1;return void t(P,n)}var M=n.toDataURL("image/jpeg",.95),O=document.createElement("canvas"),T=O.getContext("2d");O.width=n.width/r,O.height=n.height/r,T.drawImage(n,0,0,O.width,O.height),hn(e,O.toDataURL("image/jpeg",.95),b,M),u.style.width="100%",p.style.left="100%",h.innerHTML="100%",c.state=!1}else{if(k!=w){var N=i+=1;return void t(N,D)}var B=D.toDataURL("image/jpeg",.95),L=document.createElement("canvas"),A=L.getContext("2d");L.width=D.width/r,L.height=D.height/r,A.drawImage(D,0,0,L.width,L.height),hn(e,L.toDataURL("image/jpeg",.95),b,B),u.style.width="100%",p.style.left="100%",h.innerHTML="100%",c.state=!1}}}}),g._readyError?X.count=(x-m+1)*(_-y+1):tt()}if(g._readyError)return C[i]={value:E},void x();g.readyPromise.then((function(){x()})).catch((function(t){g._readyError=!0,C[i]={value:E},x()}))}(0)}},{key:"desist",value:function(){this.state=!1}}])}();case 39:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var vn=i(13),gn=i.n(vn);function yn(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return bn(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?bn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function bn(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(t.target.max)&&(e=Number(t.target.max)),t.target.min&&eNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i0&&e[o].addEventListener(t,(function(e){for(var i=0;i\n
        '+s[c].getAttribute("label")+"
        \n \n ",r=r+'
        '+s[c].innerHTML+"
        ",l++}}a+="",r+="";var m=document.createElement("div");"string"==typeof e&&m.setAttribute("id",e),m.setAttribute("class","DIV-cy-tabs"),m.innerHTML=a+r,o.parentNode.insertBefore(m,o),o.parentNode.removeChild(o);for(var f=m.getElementsByClassName("DIV-cy-tab-pane-title-p"),v=0;v1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=this;this.title=i,this.objectId=t,document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null;var r='\n
        \n
        \n
        \n

        '.concat(i,'

        \n \n
        \n
        \n
        \n \n
        \n ');this.richTextBox.innerHTML=r,document.body.appendChild(this.richTextBox);var l=window.wangEditor,c=l.createEditor,u=l.createToolbar,p={placeholder:"请输入正文...",MENU_CONF:{uploadImage:{fieldName:"file",server:this.uploadImageServer,customUpload:function(t,e){return o()(a.a.mark((function i(){var n;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(t);case 2:n=i.sent,e((s.host=s.host||h())+"/"+n);case 4:case"end":return i.stop()}}),i)})))()}},uploadVideo:{server:this.uploadVideoServer,allowedFileTypes:["video/mp4","video/mp3","video/ogg","video/webm","video/avi"],customUpload:function(t,e){return o()(a.a.mark((function i(){var n;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,s.upload(t);case 2:n=i.sent,e((s.host=s.host||h())+"/"+n);case 4:case"end":return i.stop()}}),i)})))()}}},onChange:function(t){t.getHtml()}};this.editor=c({selector:"#editor-container",html:"


        ",config:p,mode:"default"});var d={excludeKeys:["emotion","insertImage","insertVideo"]};u({editor:this.editor,selector:"#toolbar-container",config:d,mode:"default"});this.editor.on("fullScreen",(function(){console.log("fullScreen")})),this.editor.setHtml(n);var m=this.richTextBox.getElementsByClassName("close")[0],f=this.richTextBox.getElementsByClassName("primary")[0],v=this.richTextBox.getElementsByClassName("cancel")[0];m.addEventListener("click",(function(){e.close()})),f.addEventListener("click",(function(){var t=e.editor.getHtml();e.primaryCallBack(t),e.close()})),v.addEventListener("click",(function(){e.close()}))}},{key:"close",value:function(){document.body.getElementsByClassName("richText-box")[0]&&document.body.removeChild(this.richTextBox),this.editor=null}},{key:"upload",value:(t=o()(a.a.mark((function t(e){var i,n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.host=this.host||h(),i=this.host.endsWith("yjearth4.0")?this.host+"/api/v1/richText/upload":this.host+"/yjearth4.0/api/v1/richText/upload",(n=new FormData).append("file",e),t.next=7,fetch(i,{method:"post",body:n,headers:{token:m(),Authorization:"Bearer "+m()}});case 7:if(200!==(o=t.sent).status){t.next=14;break}return t.next=11,o.json();case 11:if(200!==(s=t.sent).code&&0!==s.code){t.next=14;break}return t.abrupt("return",s.data.url);case 14:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})},{key:"customUploadVideo",get:function(){return En(Dn,this)},set:function(t){_n(Dn,this,t)}},{key:"customUploadContent",get:function(){return En(Pn,this)},set:function(t){_n(Pn,this,t)}},{key:"primaryCallBack",get:function(){return En(Mn,this)},set:function(t){_n(Mn,this,t)}}]);var t}());function Tn(t,e,i,n,o){var s=Math.ceil(e/i)||1;!function i(){var a,r="
      • 1
      • ",l="
      • ").concat(s,"
      • "),c="
      • ...
      • ",u="
      • ...
      • ",p="
        共 ".concat(e," 条
        ");if(a="
      • ",s<=6)for(var h=1;h<=s;h++)a+="
      • ").concat(h,"
      • ");else if(n<=4){for(var d=1;d<=5;d++)a+="
      • ").concat(d,"
      • ");a+=u,a+=l}else if(n>s-3){a+=r,a+=c;for(var m=s-4;m<=s;m++)a+="
      • ").concat(m,"
      • ")}else{a+=r,a+=c;for(var f=n-1;f<=n+1;f++)a+="
      • ").concat(f,"
      • ");a+=u,a+=l}a+="
      • ",a+=p,t.innerHTML=a,t.querySelector("li[pagenumber='"+n+"']").classList.add("active"),t.querySelectorAll("li[pagenumber]").forEach((function(e){e.onclick=function(){n=Number(this.innerHTML),t.querySelector("li[pagenumber='"+n+"']").classList.add("active"),a="",i(),o&&o(n)}})),t.getElementsByClassName("btnPrev")[0].addEventListener("click",(function(){n>1&&(n--,a="",i(),o&&o(n))})),t.getElementsByClassName("btnNext")[0].addEventListener("click",(function(){n10&&(n-=10,a="",i(),o&&o(n))})));var g=t.getElementsByClassName("btnGoRight")[0];g&&(g.addEventListener("mouseenter",(function(){this.innerHTML=">"})),g.addEventListener("mouseleave",(function(){this.innerHTML="..."})),g.addEventListener("click",(function(){n0){Tn(o,e.data.total,5,1,(function(e){t.cameraSelect(e)})),s.getElementsByClassName("table-empty")[0].style.display="none",r.style.display="inline-flex";for(var l=[],c=function(n){var o='\n
        \n
        \n \n 绑定\n
        \n
        ').concat(e.data.list[n].cameraName,'
        \n
        ').concat(i[e.data.list[n].type],'
        \n
        ').concat(e.data.list[n].ip,'
        \n
        ').concat(e.data.list[n].port,'
        \n
        ').concat(e.data.list[n].userName,'
        \n
        ').concat(e.data.list[n].passWord||e.data.list[n].password,"
        \n
        "),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="checkbox"]');l.push(a),a.addEventListener("change",(function(){if(a.checked){t.attributeCamera=[],t.attributeCamera.push(e.data.list[n]);for(var i=0;i=0;i--){for(var n=!1,o=0;o0){Tn(n,e.data.total,5,1,(function(e){t.ISCSelect(e)})),o.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="flex";for(var r=function(i){var n='\n
        \n
        \n \n 绑定\n
        \n
        ').concat(e.data.list[i].name,'
        \n
        ').concat(e.data.list[i].status?"在线":"离线","
        \n
        "),o=document.createRange().createContextualFragment(n),s=o.querySelector('input[type="checkbox"]');s.addEventListener("change",(function(){if(s.checked)t.attributeISC.push(e.data.list[i]);else{var n=t.attributeISC.filter((function(t){return"ID"in e.data.list[i]?t.ID!==e.data.list[i].ID:t.id!==e.data.list[i].id}));t.attributeISC=n}})),a.appendChild(o);for(var r=0;r0){t._allGoodsList=e.data.list;for(var o=t.attributeGoods.length-1;o>=0;o--){for(var a=!1,r=0;r\n
        ').concat(e.data.list[i].name,'
        \n
        \n '),s=document.createRange().createContextualFragment(o),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in e.data.list[i]){if(e.data.list[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e.data.list[i]&&e.data.list[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e.data.list[i].name,cnt:o};"ID"in e.data.list[i]?l.ID=e.data.list[i].ID:"id"in e.data.list[i]&&(l.id=e.data.list[i].id),t.attributeGoods.push(Bn({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in e.data.list[i]){if(e.data.list[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e.data.list[i]&&e.data.list[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e.data.list[i].name,cnt:o};"ID"in e.data.list[i]?l.ID=e.data.list[i].ID:"id"in e.data.list[i]&&(l.id=e.data.list[i].id),t.attributeGoods.push(Bn({},l))}}})),n.appendChild(s)},c=0;c0){n.getElementsByClassName("table-empty")[0].style.display="none",o.style.display="block",o.style.maxHeight="150px";for(var s=function(i){var n='\n
        \n
        \n '.concat(i+1,'\n
        \n
        ').concat(e[i].name,'
        \n
        \n
        '),s=document.createRange().createContextualFragment(n),a=s.querySelector('input[type="number"]');a.value=0;for(var r=0;r=0;r--)if("ID"in e[i]){if(e[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e[i]&&e[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e[i].name,cnt:o};"ID"in e[i]?l.ID=e[i].ID:"id"in e[i]&&(l.id=e[i].id),t.attributeGoods.push(Bn({},l))}})),a.addEventListener("input",(function(n){if(n.data&&isNaN(Number(n.data)))"."!=n.data&&(a.value=Number(a.value));else{var o=Number(n.target.value);n.target.max&&o>Number(n.target.max)&&(o=Number(n.target.max)),n.target.min&&o=0;r--)if("ID"in e[i]){if(e[i].ID===t.attributeGoods[r].ID){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}}else if("id"in e[i]&&e[i].id===t.attributeGoods[r].id){s=!0,o?t.attributeGoods[r].cnt=o:t.attributeGoods.splice(r,1);break}if(!s){if(!o)return;var l={name:e[i].name,cnt:o};"ID"in e[i]?l.ID=e[i].ID:"id"in e[i]&&(l.id=e[i].id),t.attributeGoods.push(Bn({},l))}}})),o.appendChild(s)},a=0;a\n
        \n
        \n 内容类型\n
        \n
        \n
        \n
        \n
        \n
        \n 编辑内容\n \n
        \n
        \n
        \n \n \n
        \n
        \n
        \n 编辑内容\n \n \n
        \n
        \n
        \n
        \n
        \n
        \n
        操作
        \n
        设备名称
        \n
        设备类型
        \n
        设备IP
        \n
        设备端口
        \n
        用户名
        \n
        密码
        \n
        \n
        \n \n
        \n
        \n

        暂无数据

        \n
        \n
        \n
        \n
        \n
          \n
          \n
          \n
          \n \x3c!--
          \n
          \n 编辑内容\n \n \n
          \n
          --\x3e\n
          \n
          \n
          \n
          \n
          操作
          \n
          设备名称
          \n
          设备状态
          \n
          \n
          \n \n
          \n
          \n

          暂无数据

          \n
          \n
          \n
          \n
          \n
            \n
            \n
            \n
            \n
            \n 添加链接\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            名称
            \n
            链接
            \n
            操作
            \n
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n
            \n 添加链接\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            名称
            \n
            链接
            \n
            操作
            \n
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 编辑内容\n \n \n
            \n
            \n
            \n
            \n
            \n
            序号
            \n
            名称
            \n
            数量
            \n
            \n
            \n \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n '}function An(t){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n

            WGS84坐标

            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 海拔高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            转换坐标选择\n
            \n
            \n
            \n
            \n
            \n X轴:\n \n
            \n
            \n
            \n
            \n Y轴:\n \n
            \n
            \n
            \n
            \n Z轴:\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n 小数格式\n
            \n
            \n
            \n
            \n \n 度分格式\n
            \n
            \n
            \n
            \n \n 度分秒格式\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n \n \n \n \n
            \n
            \n 纬度\n \n \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 经度\n \n \n \n \n \n \n \n
            \n
            \n 纬度\n \n \n \n \n \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n

            图标设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 图标\n
            \n \n
            \n
            \n
            \n 默认图标\n
            \n \n
            \n
            \n
            \n 图标倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n

            文字设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 文字大小\n
            \n \n px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n
            \n \x3c!-- \n
            \n
            \n
            \n 扩散\n \n
            \n
            \n 半径\n \n
            \n
            \n 时间\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            \n 雷达\n \n
            \n
            \n 半径\n \n
            \n
            \n 时间\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            --\x3e\n \n
            \n
            \n
            \n 指令\n \n \x3c!-- --\x3e\n
            \n
            \n
            \n
            \n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!-- 设置操作点--\x3e\n\x3c!-- --\x3e\n\x3c!-- --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n\x3c!--
            --\x3e\n
            \n
            \n \n ')}function jn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function In(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Fn(i=Rn(this,e,[t,n]),Gn,void 0),Fn(i,Un,void 0),t&&t.viewer?(i.sdk=t,i.viewer=t.viewer,i.options=In({},n),i.options.id=n.id||i.randomString(),i.entity=null,i.clickCallBack=null,i.rightClickCallBack=null,i.picking=!0,i.options.host=i.options.host||h(),i.setDefaultValue(),i):tn()(i)}return sn()(e,t),_()(e,[{key:"showView",get:function(){return Hn(Gn,this)},set:function(t){var e=ze().sdkD;if(!e)return zn(Gn,this,t),void(this.entity&&(this.entity._showView=t));this.sdk!==e?(Hn(Gn,this)||this.show)&&(this.sdk!==e?(zn(Gn,this,2!=t&&3!=t?0:t),this.isShowView=!0,Hn(Gn,this)?this.show=2!=t:this.show=!0):zn(Gn,this,0)):zn(Gn,this,0)}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this.label&&(this.label.text=t),this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;if(this.isShowView&&e||(this.options.show=t,this.originalOptions&&(this.originalOptions.show=t)),this.entity&&(this.entity._showView=this.showView),"layer"==this.type&&this.entity&&(this.entity._objectState=this.options.show),this.showView&&3!=this.showView&&e?(this.entity&&(this.entity.show=!1),this.options.label&&this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1,"layer"==this.type&&e){var i=e.viewer.imageryLayers._layers[this.layerIndex],n=this.entity;if(!i)return;n._objectState?(n._showView&&2!=n._showView||(i.show=!0),3==n._showView&&(i.show=!1)):i.show=this.options.show}}else console.error("参数必须为boolean")}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"display",value:function(){this.show=!0}},{key:"hide",value:function(){this.show=!1}},{key:"flicker",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,i=arguments.length>1?arguments[1]:void 0;this.flickerAnimate&&TWEEN.remove(this.flickerAnimate),this.flickerAnimate=new TWEEN.Tween({degree:1}).to({degree:0},e/2).easing(TWEEN.Easing.Linear.None).repeat(i||0===i?2*i-1:1/0).yoyo(!0).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.sdk.viewer){e.next=3;break}return TWEEN.remove(t.flickerAnimate),e.abrupt("return");case 3:t.show&&(1===i.degree&&(t.entity&&(t.entity.show=!0),t.labelShow&&t.label&&(t.label.show=!0),t.text&&t.text&&(t.text.show=!0)),0===i.degree&&(t.entity&&(t.entity.show=!1),t.labelShow&&t.label&&(t.label.show=!1),t.text&&t.text&&(t.text.show=!1)));case 4:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onComplete((function(e){TWEEN.remove(t.flickerAnimate),t.flickerAnimate=void 0})).start()}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?l=In({},this.options.position):this.options.positions?l=In({},this.options.positions[0]):this.options.line&&this.options.line.positions?l=In({},this.options.line.positions[0]):this.options.center?l=In({},this.options.center):this.options.start?l=In({},this.options.start):this.geojson?(c=turf.bbox(this.geojson),l={lng:c[0],lat:c[1]}):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sdk.removeIncetance(this.options.id);case 2:this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id);case 6:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"onClick",get:function(){return this.clickCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){Ct.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){ue.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.clickCallBack&&this.options&&this.options.id&&dt(this.options.id,this.leftClickCB,this),this.clickCallBack=t}}},{key:"onRightClick",get:function(){return this.rightClickCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.rightClickCallBack&&this.entity&&this.entity.id&&function(t,e,i){wt.set(t,{callback:e,that:i})}(this.entity.id,this.rightClickCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){pe.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.rightClickCallBack&&this.entity&&this.entity.id&&mt(this.entity.id,this.rightClickCB,this),this.rightClickCallBack=t}}},{key:"onMouseMove",get:function(){return this.mouseMoveCallBack},set:function(t){if(t&&"function"!=typeof t)console.error("val:",t,"不是一个function");else{var e=ae().sdkD,i=ze().sdkD;e&&this.sdk===e?null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&function(t,e,i){kt.set(t,{callback:e,that:i})}(this.entity.id,this.mouseMoveCB,this):i&&this.sdk===i?null==this.clickCallBack&&this.options&&this.options.id&&function(t,e,i){he.set(t,{callback:e,that:i})}(this.options.id,this.leftClickCB,this):null==this.mouseMoveCallBack&&this.entity&&this.entity.id&&ft(this.entity.id,this.mouseMoveCB,this),this.mouseMoveCallBack=t}}},{key:"customView",get:function(){return this.options.customView}},{key:"setCustomView",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}this.options.customView=e,t.next=16;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=In({},n),this.options.position&&"[object Object]"===Object.prototype.toString.call(this.options.position)?o=In({},this.options.position):this.options.positions?o=In({},this.options.positions[0]):this.options.line&&this.options.line.positions?o=In({},this.options.line.positions[0]):this.options.center?o=In({},this.options.center):this.options.start?o=In({},this.options.start):this.geojson?(r=turf.bbox(this.geojson),o={lng:r[0],lat:r[1]}):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){t.next=13;break}return t.next=12,this.getClampToHeight(o);case 12:o.alt=t.sent;case 13:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"resetCustomView",value:function(){this.options.customView=void 0}},{key:"edit",value:function(){}},{key:"leftClickCB",value:function(t,e,i,n){n.clickCallBack&&"function"==typeof n.clickCallBack&&n.clickCallBack(t,e,i)}},{key:"rightClickCB",value:function(t,e,i,n){n.rightClickCallBack&&"function"==typeof n.rightClickCallBack&&n.rightClickCallBack(t,e,i)}},{key:"mouseMoveCB",value:function(t,e,i,n){n.mouseMoveCallBack&&"function"==typeof n.mouseMoveCallBack&&n.mouseMoveCallBack(t,e,i)}},{key:"getGuid",value:function(){return Cesium.createGuid()}},{key:"setDefaultValue",value:function(){var t,e,i;this.options.id=null!==(t=this.options.id)&&void 0!==t?t:this.getGuid(),this.options.show=null===(e=this.options.show)||void 0===e||e,this.options.name=null!==(i=this.options.name)&&void 0!==i?i:"未命名对象"}},{key:"start",value:function(){}},{key:"end",value:function(){}}]);var i,n,s}(fi);function Yn(t){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 透明度\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 波纹层数\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 扩散速度\n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 半径单位\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}var Jn=[{name:"黑体",value:"黑体",font:"SimHei",key:"0"},{name:"思源黑体",value:"思源黑体",font:"SourceHanSansTi",key:"1"},{name:"庞门正道标题体",value:"庞门正道标题体",font:"PMZDBTTi",key:"2"},{name:"数黑体",value:"数黑体",font:"AlimamaShuHeiTi",key:"3"}];function qn(){return Jn}function Xn(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;k()(this,e),$n(i=Kn(this,e,[t,n]),eo,void 0),$n(i,io,document.createElement("canvas")),$n(i,no,document.createElement("canvas")),i.model=o,i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Xn(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineWidth=n.lineWidth||4,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new X(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return sn()(e,t),_()(e,[{key:"create",value:(i=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this,this.options.position[2]||0===this.options.position[2]){t.next=5;break}return t.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=t.sent;case 5:this.originalOptions=so(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(e.model){if(e.model.isMove){var t=e.model.customScale.x;e.model.customScale.y>t&&(t=e.model.customScale.y),e.model.customScale.z>t&&(t=e.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]+2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),n=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]-2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=e.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=this.cartesian3Towgs84(this.model.position,this.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Ellipsoid.WGS84.geodeticSurfaceNormal(o),a=Cesium.Cartesian3.normalize(s,s),r=Cesium.Cartesian3.multiplyByScalar(a,-1,new Cesium.Cartesian3),l=new Cesium.Ray(o,r),c=this.viewer.scene.drillPickFromRay(l,5),u=0;u40&&(e[i]=e[i].slice(0,40-e[i].length));e.length>10&&e.splice(10-e.length),this.options.text=e.join("\n"),this.entity&&this.updateBillboardImage()}},{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.entity&&(this.entity.billboard.image=this.getcanvas())}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.entity&&(this.options.scaleByDistance?(this.entity.billboard.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.billboard.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.billboard.scaleByDistance=void 0,this.entity.billboard.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;ei&&(i=a),n+=this.options.fontSize}n=n+20+5*(e.length-1),(i+=30)0&&void 0!==arguments[0]?arguments[0]:{},e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)e[i]=so(t[i]);else e=t;return e},ao=function(){return _()((function t(e){k()(this,t),t.prototype.hasOwnProperty("color")||Object.defineProperties(t.prototype,{color:Cesium.createPropertyDescriptor("color")}),t.prototype.hasOwnProperty("speed")||Object.defineProperties(t.prototype,{speed:Cesium.createPropertyDescriptor("speed")}),t.prototype.hasOwnProperty("transparency")||Object.defineProperties(t.prototype,{transparency:Cesium.createPropertyDescriptor("transparency")}),t.prototype.hasOwnProperty("count")||Object.defineProperties(t.prototype,{count:Cesium.createPropertyDescriptor("count")}),t.prototype.hasOwnProperty("gradient")||Object.defineProperties(t.prototype,{gradient:Cesium.createPropertyDescriptor("gradient")}),this._definitionChanged=new Cesium.Event,this._speed=void 0,this.id=e.id,this.color=e.color||new Cesium.Color(1,1,1,1),this.colors=e.colors||{},this.speed=e.speed,this.transparency=e.transparency,this.count=e.count,this.gradient=e.gradient;var i="",n=[];for(var o in this.colors)Object.hasOwnProperty.call(this.colors,o)&&n.push(o);n.sort((function(t,e){return e-t}));for(var s=0;s 0.0){\n if(disNum < perDis){\n bl = 1.0 - disNum / perDis;\n }\n else if(disNum - perDis < perDis){\n bl = 1.0 - abs(1.0 - disNum / perDis);\n }\n material.alpha = pow(bl,(1.0 + 10.0 * (1.0 - gradient))) * transparency;\n }\n }\n }\n }\n return material;\n }\n "),this._CircleRippleMaterialType="CircleRippleMaterialType"+this.id,Cesium.Material._materialCache.addMaterial(this._CircleRippleMaterialType,{fabric:{type:this._CircleRippleMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:3,transparency:1,count:4,gradient:.2,frameNumber:Cesium.getTimestamp()},source:this._source},translucent:function(t){return!0}})}),[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(t){return this._CircleRippleMaterialType}},{key:"getValue",value:function(t,e){return Cesium.defined(e)||(e={}),e.color=Cesium.Property.getValueOrDefault(this._color,t,Cesium.Color.RED,e.color),e.speed=Cesium.Property.getValueOrDefault(this._speed,t,10,e.speed),e.transparency=this.transparency,e.count=this.count,e.gradient=this.gradient,e.frameNumber=Cesium.getTimestamp(),e}},{key:"equals",value:function(t){return this===t||t instanceof CircleRippleMaterialProperty&&Cesium.Property.equals(this._color,t._color)&&Cesium.Property.equals(this._speed,t._speed)&&Cesium.Property.equals(this.count,t.count)&&Cesium.Property.equals(this.transparency,t.transparency)&&Cesium.Property.equals(this.gradient,t.gradient)}}])}();function ro(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function lo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function uo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(i=po(this,e,[t,n])).options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#1FA8E3",i.options.transparency=n.transparency||0===n.transparency?n.transparency:1,i.options.transparency>1&&(i.options.transparency=1),i.options.speed=n.speed||0===n.speed?n.speed:5,i.options.count=n.count||0===n.count?n.count:3,n.count||0===n.count?(i.options.count=n.count,n.count>99&&(i.options.count=99)):i.options.count=3,i.options.circle=n.circle||[{radius:10}];for(var s=0;s999999&&(i.options.circle[s].radius=999999);i.options.show=!n.show&&!1!==n.show||n.show,i.event=new X(i.sdk),i.options.positionEditin=!1,n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText";for(var a=0,r=0;ra&&(a=Number(i.options.circle[r].radius));return i._radius=a,i.Dialog=o,i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"CircleDiffuse"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity.show=!1,this.options.label.show&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&(this.label.show=this.options.show)),this.isShowView=!1,Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t)}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.options.positionEditing},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(this.options.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1}}))}))):(setTimeout((function(){e.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t,this.label.position=[t,this.lat],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t,this.label.position=[this.lng,t],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"radius",get:function(){return this._radius}},{key:"circle",get:function(){return this.options.circle},set:function(t){console.log(t),this.options.circle=t||[{radius:10}];for(var e=0;e999999&&(this.options.circle[e].radius=999999);this._createCircleElm()}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,e.create(this),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"transparency",get:function(){return this.options.transparency},set:function(t){this.options.transparency=t>1?1:t,e.create(this),this._elms.transparency&&this._elms.transparency.forEach((function(e){e.value=t}))}},{key:"count",get:function(){return this.options.count},set:function(t){this.options.count=t>99?99:t,e.create(this),this._elms.count&&this._elms.count.forEach((function(e){e.value=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=ze().sdkD;this.options.label.show=t,!this.show||this.showView&&3!=this.showView&&e?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=lo({},this.options.position):this.options.positions?l=lo({},this.options.positions[0]):this.options.start?l=lo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=28;break}return t.next=6,new rn(this.sdk,this.options,{title:"扩散光波属性",left:"180px",top:"100px",confirmCallBack:function(t){c.name=c.name.trim(),c.name||(c.name="未命名对象"),c.options.label.position={lng:c.label.position[0],lat:c.label.position[1],alt:c.label.position[2]},c.originalOptions=c.deepCopyObj(c.options),c._DialogObject.close(),c.Dialog.confirmCallBack&&c.Dialog.confirmCallBack(c.originalOptions),Pe(c.sdk,c.options.id),se(c.sdk,c.options.id)},resetCallBack:function(){c.reset(),c.Dialog.resetCallBack&&c.Dialog.resetCallBack()},removeCallBack:function(){c.Dialog.removeCallBack&&c.Dialog.removeCallBack()},closeCallBack:function(){c.reset(),c.positionEditing=!1,c.Dialog.closeCallBack&&c.Dialog.closeCallBack()},showCallBack:function(t){c.options.show=t,c.originalOptions.show=t,c.show=t,c.Dialog.showCallBack&&c.Dialog.showCallBack()},translationalCallBack:function(){c.positionEditing=!c.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle-ciffuse",(i=document.createElement("div")).innerHTML=Yn(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,this._createCircleElm(),new kn("circle-diffuse-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelColor=t},clear:function(){c.labelColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelLineColor=t},clear:function(){c.labelLineColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelBackgroundColorStart=t},clear:function(){c.labelBackgroundColorStart="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){c.labelBackgroundColorEnd=t},clear:function(){c.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),l=i.getElementsByTagName("*"),this._EventBinding.on(this,l),this._elms=this._EventBinding.element,this._elms.labelColor=[n],this._elms.labelLineColor=[o],this._elms.labelBackgroundColorStart=[s],this._elms.labelBackgroundColorEnd=[r],setTimeout((function(){c.attributeLink=c.options.attribute.link.content,c.attributeVr=c.options.attribute.vr.content,c.ISCSelect&&c.ISCSelect(),c.goodsSelect&&c.goodsSelect(),c.cameraSelect&&c.cameraSelect();var t=Y(c._DialogObject._element.content.getElementsByClassName("input-radius-unit-box")[0],".input-radius-unit");if(t){t.legp_search([{name:"米",value:"米"},{name:"千米",value:"千米"}]);var e=c._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0];e.value="米",e.addEventListener("input",(function(){var t=c._DialogObject._element.content.getElementsByClassName("circle-content-box")[0].getElementsByClassName("input-number");switch(e.value){case"米":for(var i=0;it&&(t=Number(this.options.circle[i].radius));this._radius=t,e.create(this)}}},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.label&&this.label.remove(),this.entity&&this.sdk.viewer.entities.remove(this.entity),this.entity2&&this.sdk.viewer.entities.remove(this.entity2),this.entity=null,this.entity2=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=10,this.sdk.removeIncetance(this.options.id);case 10:return t.next=12,Pe(this.sdk,this.options.id);case 12:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"instructSubmit",value:function(){this.Dialog.instructSubmit&&this.Dialog.instructSubmit(this.options.id,this.options.label.text,this.instruct),this.originalOptions.instruct=this.instruct}},{key:"operatingPointSubmit",value:function(){this.Dialog.operatingPointSubmit&&this.Dialog.operatingPointSubmit(this.options.id,this.options.label.text,this.operatingPoint),this.originalOptions.operatingPoint=this.operatingPoint}},{key:"_createCircleElm",value:function(){var t=this;if(this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var i=this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0],n=i?i.value:"米",o=this._DialogObject._element.content.getElementsByClassName("circle-content-box")[0];o.innerHTML="";for(var s=function(i){var s=document.createElement("div");s.className="row";var a="",r='';0===i&&i===t.options.circle.length-1&&(r=""),i===t.options.circle.length-1&&(a=''),s.innerHTML='\n
            \n 半径\n
            \n \n '.concat("米"===n?"m":"km",'\n \n
            \n
            \n
            \n
            \n 扩散颜色\n
            \n
            \n ').concat(a,"\n ").concat(r,"\n
            \n ");var l=s.getElementsByClassName("input")[0];l.value=t.options.circle[i].radius/("米"===n?1:1e3),l.addEventListener("input",(function(n){var o=t._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(n.target.value||0===n.target.value){var s=n.target.value;if(s=Number(s),"."!=n.data&&("-"!=n.data||n.target.value)&&(!n.target.max&&!n.target.min||s<=Number(n.target.max)/("米"===o?1:1e3)&&s>=Number(n.target.min))){s="米"===o?Math.floor(100*s)/100:Math.floor(1e5*s)/1e5,t.options.circle[i].radius=s*("米"===o?1:1e3);for(var a=0,r=0;ra&&(a=Number(t.options.circle[r].radius));t._radius=a,e.create(t)}}})),l.addEventListener("blur",(function(n){var o=t._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(n.target.value||0===n.target.value){var s=n.target.value;s=Number(s),n.target.max&&s>Number(n.target.max)/("米"===o?1:1e3)&&(s=Number(n.target.max)/("米"===o?1:1e3)),n.target.min&&sa&&(a=Number(t.options.circle[r].radius));t._radius=a,l.value=s,e.create(t)}}));new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!1,defaultColor:t.options.circle[i].color||t.options.color,disabled:!1,openPickerAni:"opacity",sure:function(n){t.options.circle[i].color=n,e.create(t)},clear:function(){t.options.circle[i].color="rgba(255,255,255,1)",e.create(t)}});var c=s.getElementsByClassName("circle-minus")[0];c&&c.addEventListener("click",(function(){t.options.circle.splice(i,1);for(var n=0,o=0;on&&(n=Number(t.options.circle[o].radius));t._radius=n,e.create(t),t._createCircleElm()}));var u=s.getElementsByClassName("circle-add")[0];u&&u.addEventListener("click",(function(){t.options.circle.push({radius:0,color:"rgba(255,255,255,1)"});for(var i=0,n=0;ni&&(i=Number(t.options.circle[n].radius));t._radius=i,e.create(t),t._createCircleElm()})),o.appendChild(s)},a=0;a0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(t){for(var i={},n=0;n\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 扫描颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 扫描半径\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 扫描速度\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function fo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function vo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function yo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=bo(this,e,[t,n])).options.lng=n.lng,i.options.lat=n.lat,i.options.color=n.color||"#FFEB3B",i.options.radius=n.radius||10,i.options.radius>999999&&(i.options.radius=999999),i.options.speed=n.speed||0===n.speed?n.speed:20,i.options.show=!n.show&&!1!==n.show||n.show,i.event=new X(i.sdk),i.options.positionEditin=!1,n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.Dialog=o,i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity.show=!1,this.options.label.show&&this.label&&(this.label.show=!1)):(this.entity.show=this.options.show,this.options.label.show&&this.label&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"positionEditing",get:function(){return this.options.positionEditing},set:function(t){var e=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.options.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)")),this.picking=!1,this.lastOptions={lng:this.options.lng,lat:this.options.lat},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.lastOptions=void 0,e.positionEditing=!1}}))}))):(setTimeout((function(){e.picking=!0}),500),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.lastOptions&&(this.lng=this.lastOptions.lng,this.lat=this.lastOptions.lat),this.lastOptions=void 0))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t,this.label.position=[t,this.lat],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t,this.label.position=[this.lng,t],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){var e=Number(t.toFixed(2));(e>999999&&(e=999999),e<.1&&(e=.1),this.options.radius=e,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(e=Number((e/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(t){t.value=e}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,this.changeMaterial(),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.changeMaterial(),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=ze().sdkD;this.options.label.show=t,!this.show||this.showView&&3!=this.showView&&e?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=vo({},this.options.position):this.options.positions?l=vo({},this.options.positions[0]):this.options.start?l=vo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=34;break}return t.next=6,new rn(this.sdk,this.options,{title:"雷达光波属性",left:"180px",top:"100px",confirmCallBack:function(t){p.name=p.name.trim(),p.name||(p.name="未命名对象"),p.options.label.position={lng:p.label.position[0],lat:p.label.position[1],alt:p.label.position[2]},p.originalOptions=p.deepCopyObj(p.options),p._DialogObject.close(),p.Dialog.confirmCallBack&&p.Dialog.confirmCallBack(p.originalOptions),Pe(p.sdk,p.options.id),se(p.sdk,p.options.id)},resetCallBack:function(){p.reset(),p.Dialog.resetCallBack&&p.Dialog.resetCallBack()},removeCallBack:function(){p.Dialog.removeCallBack&&p.Dialog.removeCallBack()},closeCallBack:function(){p.reset(),p.positionEditing=!1,p.Dialog.closeCallBack&&p.Dialog.closeCallBack()},showCallBack:function(t){p.options.show=t,p.originalOptions.show=t,p.show=t,p.Dialog.showCallBack&&p.Dialog.showCallBack()},translationalCallBack:function(){p.positionEditing=!p.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" radar-scan",(i=document.createElement("div")).innerHTML=mo(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("radar-scan-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){p.color=t},clear:function(){p.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelColor=t},clear:function(){p.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelLineColor=t},clear:function(){p.labelLineColor="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelBackgroundColorStart=t},clear:function(){p.labelBackgroundColorStart="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelBackgroundColorEnd=t},clear:function(){p.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),c=i.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.labelLineColor=[s],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],(u=this._DialogObject._element.content.getElementsByClassName("input-radius")[0].getElementsByTagName("input")[0]).value=this.options.radius,this._elms.radius=[u],u.addEventListener("input",(function(t){var e=p._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),"."==t.data||"-"==t.data&&!t.target.value||(!t.target.max&&!t.target.min||i<=Number(t.target.max)/("米"===e?1:1e3)&&i>=Number(t.target.min))&&(p.radius=i*("米"===e?1:1e3))}})),u.addEventListener("blur",(function(t){var e=p._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)/("米"===e?1:1e3)&&(i=Number(t.target.max)/("米"===e?1:1e3)),t.target.min&&i0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"create",value:function(t){var i=function(t){if(/^#/.test(t)){var e=t.replace("#",""),i=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),s=parseInt(e.substring(6,8),16);s||0===s?s/=255:s=1,t="rgba(".concat(i,",").concat(n,",").concat(o,",").concat(s,")")}var a=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);return a?[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10),a[4]?parseFloat(a[4]):1]:null}(t.options.color),n="rgba(".concat(i[0],",").concat(i[1],",").concat(i[2],",1)");t.entity=t.sdk.viewer.entities.add({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(t.options.lng,t.options.lat)}),!1),name:"雷达扫描",ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(){return t.options.radius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(){return t.options.radius}),!1),material:new Cesium.RadarScanMaterialProperty({color:Cesium.Color.fromCssColorString(n),transparency:i[3],speed:t.options.speed}),zIndex:t.sdk._entityZIndex}}),t.sdk._entityZIndex++,"cesium-viewer 2d"===t.sdk.viewer._element.className&&(t.entity.ellipse.height=1),e.createLabel(t),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){var i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getClampToHeight({lng:e.options.lng,lat:e.options.lat});case 2:i=t.sent,e.options.label.position||(e.options.label.position={lng:e.options.lng,lat:e.options.lat,alt:i}),e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far,ground:!0});case 5:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"createBy2D",value:function(t){t.entity=new Cesium.EntityCollection;var i=0,n=r(t.options,t.options.radius,i),o=(new Date).getTime();t.viewer.clock.onTick.addEventListener((function(){var e=(new Date).getTime(),s=t.options.duration?360/t.options.duration:0,a=(e-o)*s;o=e,i+=a,n=r(t.options,t.options.radius,i)}));var s=t.sdk.viewer.entities.add({show:t.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){var e=t.createCircle({lng:t.options.lng,lat:t.options.lat},t.options.radius);return Cesium.Cartesian3.fromDegreesArray(e)}),!1),width:2,material:Cesium.Color.fromCssColorString(t.options.color),clampToGround:!0}}),a=t.sdk.viewer.entities.add({show:t.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArray(n)}),!1),width:2,material:Cesium.Color.fromCssColorString(t.options.color),clampToGround:!0}});function r(t,e,i){var n=t.lng,o=t.lat,s=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,0)),a=e*Math.cos(i*Math.PI/180),r=e*Math.sin(i*Math.PI/180),l=Cesium.Cartesian3.fromElements(a,r,0),c=Cesium.Matrix4.multiplyByPoint(s,l,new Cesium.Cartesian3),u=Cesium.Cartographic.fromCartesian(c);return[n,o,Cesium.Math.toDegrees(u.longitude),Cesium.Math.toDegrees(u.latitude)]}t.entity.add(s),t.entity.add(a),t.sdk.viewer.entities.add(t.entity),e.createLabel(t),Pe(t.sdk,t.options.id)}}]);var i,n,s,r}(Wn);function wo(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ko(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ko(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(t,e){var i=Cesium.Cartesian3.distance(e.camera.positionWC,t.position.getValue()),n=t.billboard.scaleByDistance?t.billboard.scaleByDistance.getValue():void 0;if(!n)return 1;var o=n.near,s=n.nearValue,a=n.far,r=n.farValue;if(i<=o)return s;if(i>=a)return r;var l=(i-o)/(a-o);return Cesium.Math.lerp(s,r,l)}return k()(this,e),So(i=Eo(this,e,[t,n]),Oo,null),So(i,To,null),So(i,No,0),i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.options.billboard=n.billboard=n.billboard||{},i.options.billboard.isSelect=n.billboard.isSelect||!1,i.options.billboard.show=!n.billboard.show&&!1!==n.billboard.show||n.billboard.show,i.options.billboard.image=n.billboard.image||ti(n.billboard.defaultImage)||i.getSourceRootPath()+"/img/A-ablu-blank.png",i.options.billboard.defaultImage=n.billboard.defaultImage,i.options.billboard.scale=n.billboard.scale||0===n.billboard.scale?n.billboard.scale:3,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.positions=n.positions=n.positions||{},i.options.positions.lng=Number(Number(n.positions.lng||0).toFixed(8)),i.options.positions.lat=Number(Number(n.positions.lat||0).toFixed(8)),i.options.positions.alt=Number(Number(n.positions.alt||0).toFixed(2)),Po(No,i,i.options.positions.alt),i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.rtmp=i.options.attribute.rtmp||{},i.options.attribute.rtmp.content=i.options.attribute.rtmp.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.options.coordinate=n.coordinate||"",i.options.attributeBoxState=n.attributeBoxState||!1,i.operate={},i._elms={},i.previous={positions:_o({},i.options.positions)},i.options.attributePos=n.attributePos||{x:60,y:60,width:200,height:120},i.entity,i._proj=i.sdk.proj,Po(To,i,(function(){i.attributeElm&&(i.attributeElm.style.pointerEvents="unset"),i.sdk&&i.sdk.viewer&&i.sdk.viewer._element&&(i.sdk.viewer._element.onmousemove=null),document.removeEventListener("mouseup",Do(To,i)),document.removeEventListener("mouseleave",Do(To,i))})),Po(Oo,i,(function(){var t=Cesium.Cartesian3.fromDegrees(i.options.positions.lng,i.options.positions.lat,Do(No,i));if(i.attributeElm&&i.entity){var e=i.sdk.viewer.scene.cartesianToCanvasCoordinates(t),n=i.entity.label.pixelOffset.getValue();if(e){var o,a,r,l,c,u=s(i.entity,i.sdk.viewer.scene),p=(i.entity.billboard.height.getValue()*(i.options.billboard.scale||0)+i.options.label.fontSize)*(1-u*u),h=!1,d=i.attributeElm.getElementsByClassName("billboard-attribute-box-line")[0],m=i.attributeElm.getElementsByClassName("left-top")[0],f=i.attributeElm.getElementsByClassName("right-top")[0];i.attributeElm.style.left=(e.x+i.options.attributePos.x).toFixed(0)+"px",i.attributeElm.style.top=(e.y+n.y-(i.options.label.show?i.options.label.fontSize/2:-i.options.label.fontSize/2)-i.attributeElm.offsetHeight-i.options.attributePos.y+p).toFixed(0)+"px",i.attributeElm.style.width=i.options.attributePos.width+"px",i.attributeElm.style.height=i.options.attributePos.height+"px",d.style.zIndex="-1",i.options.attributePos.x<-i.options.attributePos.width/2?(h=!0,d.style.left="unset",d.style.right="0",m.style.display="block",f.style.display="none"):(d.style.left="0",d.style.right="unset",m.style.display="none",f.style.display="block"),h?(l=i.attributeElm.offsetWidth+i.options.attributePos.x,c=i.options.attributePos.y?i.options.attributePos.y:0):(l=i.options.attributePos.x,c=i.options.attributePos.y?i.options.attributePos.y:0),o=Math.sqrt(l*l+c*c).toFixed(2),a=Math.atan(l/c),r=parseFloat((180*a/Math.PI).toFixed(2)),i.options.attributePos.y<0&&(r+=180),d.style.height=o+"px",d.style.transform="rotate("+r+"deg)"}}})),i.sdk.addIncetance(i.options.id,i),e.create(i),i.picking=!0,i.Dialog=o,i._EventBinding=new wn,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"BillboardObject"}},{key:"selectBillboard",value:function(){var t=this;this.sdk.viewer.screenSpaceEventHandler.setInputAction((function(e){var i=t.sdk.viewer.scene.pick(e.position);Cesium.defined(i)&&i.id&&"airportBillboard"===i.id.id?t.entity.billboard&&(t.entity.billboard.color=Cesium.Color.YELLOW):t.entity.billboard&&(t.entity.billboard.color=Cesium.Color.WHITE)}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"},{name:"rtmp",value:"rtmp",key:"rtmp"},{name:"IP摄像头",value:"IP摄像头",key:"camera"},{name:"全景图",value:"全景图",key:"vr"},{name:"物资",value:"物资",key:"goods"}]}},{key:"show",get:function(){return this.options.show},set:function(t){this.isShowView||(this.options.show=t,this.originalOptions.show=t),this.showView&&3!=this.showView?(this.entity&&(this.entity.show=!1),document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this))):(this.entity&&(this.entity.show=this.options.show),this.attributeBoxState&&this.options.show?this.attributeBoxState=this.options.show:(document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this)))),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=this.options.show),this.isShowView=!1}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var e,i=this;this.options.heightMode=t||0==t?t:3;var n,o="";switch(this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(n=this._DialogObject._element.content.getElementsByClassName("alt-box")[0]),this.options.heightMode){case"0":case 0:n&&(n.className="input-number input-number-unit-1 alt-box"),this._elms.height&&(this._elms.height.style.display="flex"),e=Cesium.HeightReference.NONE,o="海拔高度";break;case"1":case 1:n&&(n.className="input-number input-number-unit-1 alt-box"),this._elms.height&&(this._elms.height.style.display="flex"),e=Cesium.HeightReference.NONE,o="相对地表";break;case"2":case 2:n&&(n.className="input-number input-number-unit-1 alt-box disabled"),o="依附地表",n&&(n.className="input-number input-number-unit-1 alt-box disabled"),o="依附地表",e=Cesium.HeightReference.CLAMP_TO_GROUND,this._elms.height&&(this._elms.height.style.display="none");break;case"3":case 3:n&&(n.className="input-number input-number-unit-1 alt-box disabled"),this._elms.height&&(this._elms.height.style.display="none"),e=Cesium.HeightReference.NONE,o="依附模型"}this.entity&&(this.entity.billboard.heightReference=e,this.entity.label.heightReference=e,e==Cesium.HeightReference.CLAMP_TO_GROUND?this.sdk.viewer.scene.terrainProvider.availability?Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]).then((function(t){Po(No,i,t[0].height)})):Po(No,this,0):Po(No,this,this.options.positions.alt)),this._elms.heightMode&&(this._elms.heightMode.value=o)}},{key:"labelText",get:function(){return this.options.label.text},set:function(t){this.options.label.text=t,this.options.name=t,this.entity&&(this.entity.label.text=t+""),this._elms.labelText&&this._elms.labelText.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.positions.lng},set:function(t){this.options.positions.lng=Number(Number(t).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.positions.lat},set:function(t){this.options.positions.lat=Number(Number(t).toFixed(8)),this.renewPoint(),this.coordinate=this.options.coordinate,this._projConvert&&this._projConvert(),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.positions.alt},set:function(t){var e=this;if(this.options.positions.alt=Number(Number(t).toFixed(2)),Po(No,this,this.options.positions.alt),this.renewPoint(),this.coordinate=this.options.coordinate,this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.positions.alt})),this._elms.height){var i=this._elms.height.getElementsByClassName("height")[0];if(i)switch(this._elms.heightMode.value){case"海拔高度":i.value=this.options.positions.alt;break;case"相对地表":this.sdk.viewer.scene.terrainProvider.availability?Cesium.sampleTerrainMostDetailed(this.sdk.viewer.scene.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]).then((function(t){i.value=Number((e.options.positions.alt-t[0].height).toFixed(2))})):i.value=Number(Number(this.options.positions.alt).toFixed(2));break;case"依附地表":case"依附地表":break;case"依附模型":this.updateHeight()}}}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.renewPoint(),this._elms.near&&this._elms.near.forEach((function(t){t.value=e}))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;e=e._frameImages.length-1?0:r+1,t}),!1)),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return a}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-a*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1)}}))}else{var l=new Image;l.src=i;var c=36,u=document.createElement("canvas");l.onload=function(){var t=l.width/l.height;l.width=100,l.height=100/t;var i=l.width,n=l.height,o=u.getContext("2d",{willReadFrequently:!0});u.width=i,u.height=n,o.drawImage(l,0,0,i,n),c=n*(31/i),e.entity.billboard.imgWidth=i,e.entity.billboard.imgHeight=n,e.entity&&(e.entity.billboard.image=u),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return c}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return e.options.billboard.show?new Cesium.Cartesian2(0,-c*e.options.billboard.scale-e.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-e.options.label.fontSize/2-5)}),!1),c=n*(31/i)},l.onerror=function(t){u.width=0,u.height=0,c=0,e.entity.billboard.imgWidth=0,e.entity.billboard.imgHeight=0,e.entity&&(e.entity.billboard.image=u),e.entity.billboard.height=new Cesium.CallbackProperty((function(){return 0}),!1),e.entity.label.pixelOffset=new Cesium.CallbackProperty((function(){return new Cesium.Cartesian2(0,0)}),!1),c=36}}}},{key:"billboardScale",get:function(){return this.options.billboard.scale},set:function(t){this.options.billboard.scale=t,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(e){e.value=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.entity&&(this.entity.label.show=t),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.value=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.renewPoint();var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.renewPoint(),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t||"#00ffff",this.renewPoint(),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.label.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(0,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"instruct",get:function(){return this.options.instruct},set:function(t){this.options.instruct=t,this._elms.instruct&&this._elms.instruct.forEach((function(e){e.value=t}))}},{key:"operatingPoint",get:function(){return this.options.operatingPoint},set:function(t){this.options.operatingPoint=t,this._elms.operatingPoint&&this._elms.operatingPoint.forEach((function(e){e.value=t}))}},{key:"attributeType",get:function(){return this.options.attributeType},set:function(t){this.options.attributeType=t,this._elms.attributeType&&this._elms.attributeType.forEach((function(e){e.value=t}));for(var e=this._DialogObject._element.content.getElementsByClassName("attribute-content"),i=0;i-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.rtmp.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={rtmpEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.rtmp.content;case 2:e.attributeRtmp=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-rtmp")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.rtmp.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.rtmp.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==m[0]&&m[0],i=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=41;break}return t.next=7,new rn(this.sdk,this.options,{title:"点属性",left:"180px",top:"100px",confirmCallBack:function(t){d.labelText=d.labelText.trim(),d.labelText||(d.labelText="未命名对象"),d.originalOptions=d.deepCopyObj(d.options),d.previous={positions:_o({},d.options.positions)},d._DialogObject.close();var e=d.deepCopyObj(d.options);e.host="",d.Dialog.confirmCallBack&&d.Dialog.confirmCallBack(e),Pe(d.sdk,d.options.id),se(d.sdk,d.options.id)},resetCallBack:function(){d.reset(),d.Dialog.resetCallBack&&d.Dialog.resetCallBack()},removeCallBack:function(){d.Dialog.removeCallBack&&d.Dialog.removeCallBack()},closeCallBack:function(){d.positionEditing=!1,setTimeout((function(){d.reset(),d.Dialog.closeCallBack&&d.Dialog.closeCallBack()}),0)},showCallBack:function(t){d.show=t,d.Dialog.showCallBack&&d.Dialog.showCallBack()},translationalCallBack:function(){d.positionEditing=!d.positionEditing},updateHeightCallBack:function(){d.updateHeight()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" billboard-object",(n=document.createElement("div")).innerHTML=An(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("point-object-edit-tabs",void 0,this.sdk),s=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){d.labelColor=t},clear:function(){d.labelColor="rgba(255,255,255,1)"}}),r=n.getElementsByTagName("*"),this._EventBinding.on(this,r),this._elms=this._EventBinding.element,this._elms.labelColor=[s],setTimeout(o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,m,f,v,g,b,C,w,k,x,_,E,S,D,P,M,O;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d.attributeLink=d.options.attribute.link.content,d.attributeVr=d.options.attribute.vr.content,d.attributeRtmp=d.options.attribute.rtmp.content,d.cameraSelect&&d.cameraSelect(),d.ISCSelect&&d.ISCSelect(),d.goodsSelect&&d.goodsSelect(),(e=document.createElement("div")).className="col",e.style.flex="0 0 110px",e.innerHTML='\n 属性框\n \n ',d._DialogObject._element.content.getElementsByClassName("attribute")[0].getElementsByClassName("row")[0].appendChild(e),(i=e.getElementsByClassName("btn-switch")[0]).checked=d.attributeBoxState,i.addEventListener("change",(function(t){d.attributeBoxState=i.checked})),n=d.attributeSelect,!(o=d._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0])){t.next=31;break}(s=Y(o,".attribute-select")).legp_search(n),r=d._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],l=0;case 22:if(!(l=0)){t.next=24;break}if(!v[g].position){t.next=21;break}return f=v[g],t.abrupt("break",24);case 21:g--,t.next=17;break;case 24:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),t.prev=25,t.next=28,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.positions.lng,this.options.positions.lat)]);case 28:b=t.sent,t.next=33;break;case 31:t.prev=31,t.t0=t.catch(25);case 33:if((void 0===i||i0&&void 0!==w[0]?w[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=26;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_o({},this.options.position):this.options.positions?l=_o({},this.options.positions):this.options.center?l=_o({},this.options.center):this.options.start?l=_o({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=19;break}c=[],u=wo(this.sdk.entityMap);try{for(u.s();!(p=u.n()).done;)(h=y()(p.value,2))[0],"RadarScanStereoscopic"===(d=h[1]).type&&d.entity&&c.push(d.entity)}catch(t){u.e(t)}finally{u.f()}return t.next=18,this.getClampToHeight(l,c);case 18:l.alt=t.sent;case 19:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=33;break;case 26:m=[],f=wo(this.sdk.entityMap);try{for(f.s();!(v=f.n()).done;)(g=y()(v.value,2))[0],"RadarScanStereoscopic"===(b=g[1]).type&&b.entity&&m.push(b.entity)}catch(t){f.e(t)}finally{f.f()}return t.next=31,this.getClampToHeight(this.options.positions,m);case 31:C=t.sent,this.sdk.viewer.camera.flyTo({orientation:e.orientation,destination:Cesium.Cartesian3.fromDegrees(this.options.positions.lng,this.options.positions.lat,C+(e.height||500))});case 33:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"setPosition",value:function(t){this.options.positions.lng=t.position.lng,this.options.positions.lat=t.position.lat,this.options.positions.alt=t.position.alt,this.renewPoint()}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,this.event&&this.event.destroy(),this.event=new X(this.sdk),!0===t){this.picking=!1,this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.previous={positions:_o({},this.options.positions)};var i=function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.previous={positions:_o({},e.options.positions)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),e.positionEditing=!1};this.event.mouse_move((function(t,i){e.entity.position=new Cesium.CallbackProperty((function(){return i}),!1),e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left(i),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,n){var o=new Date;e.event.gesture_pinck_end((function(){var s=new Date;t.position1.x,t.position2.x,t.position1.y,t.position2.y;s-o>=500?e.positionEditing=!1:i(0,n)}))}))}else this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy(),this.event=null),this.tip&&this.tip.destroy(),this.lng=this.previous.positions.lng,this.lat=this.previous.positions.lat,this.alt=this.previous.positions.alt,this.renewPoint()}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.positions.lng,this.options.positions.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"setCustomView",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=4;break}this.options.customView=e,t.next=19;break;case 4:if(i=this.sdk.viewer.camera,n=this.cartesian3Towgs84(i.position,this.sdk.viewer),o={lng:0,lat:0},s=_o({},n),this.options.positions?o=_o({},this.options.positions):(this.options.hasOwnProperty("lng")&&(o.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(o.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(o.alt=this.options.alt)),o.hasOwnProperty("alt")){t.next=16;break}r=[],l=wo(this.sdk.entityMap);try{for(l.s();!(c=l.n()).done;)(u=y()(c.value,2))[0],"RadarScanStereoscopic"===(p=u[1]).type&&p.entity&&r.push(p.entity)}catch(t){l.e(t)}finally{l.f()}return t.next=15,this.getClampToHeight(o,r);case 15:o.alt=t.sent;case 16:s={lng:n.lng-o.lng,lat:n.lat-o.lat,alt:n.alt-o.alt},this.options.customView={orientation:{heading:Cesium.Math.toDegrees(i.heading),pitch:Cesium.Math.toDegrees(i.pitch),roll:Cesium.Math.toDegrees(i.roll)},relativePosition:s},this.originalOptions&&(this.originalOptions.customView=this.options.customView);case 19:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"attributeBoxState",get:function(){return this.options.attributeBoxState},set:function(t){var e=this;if(t=!!t,this.options.attributeBoxState=t,document.addEventListener("mouseup",Do(To,this)),document.addEventListener("mouseleave",Do(To,this)),this.attributeElm&&(this.sdk.viewer._element.removeChild(this.attributeElm),this.attributeElm=null),this.sdk.viewer.scene.postRender.removeEventListener(Do(Oo,this)),t&&this.sdk&&this.sdk.viewer&&this.sdk.viewer._element&&this.show){var i=document.createElement("div");this.attributeElm=i,i.className="billboard-attribute-box",i.style.top="0px",i.style.left="0px",i.style.width=0,i.style.height=0,Gt&&(i.style.display="none"),this.sdk.viewer._element.appendChild(i);for(var n="",o="",s="",a=0;a'):n+='')}if(this.options.attribute.goods&&this.options.attribute.goods.content&&this.options.attribute.goods.content.length>0){o+='\n
            \n
            \n
            \n
            序号
            \n
            名称
            \n
            数量
            \n
            \n
            \n
            \n ';for(var l=0;l\n
            '.concat(l+1,'
            \n
            ').concat(this.options.attribute.goods.content[l].name,'
            \n
            ').concat(this.options.attribute.goods.content[l].cnt,"
            \n
            ");o+="
            "}this.options.richTextContent&&(s='\n '.concat(this.options.richTextContent,"\n "));var c='\n \n \n ';if(c+=n||o||s?'\n \n '.concat(s,"\n ").concat(o,"\n ").concat(n,'\n \n
            '):'

            暂无属性信息

            ',i.innerHTML=c,i.getElementsByClassName("tabs")[0])new kn(i.getElementsByClassName("tabs")[0],void 0,this.sdk);for(var u=i.getElementsByTagName("img"),p=0;p=t._frameImages.length-1?0:r+1,e}),!1),vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))}}))}else{var h=new Image;switch(h.src=c||t.getSourceRootPath()+"/img/A-ablu-blank.png",t.options.heightMode){case 2:case"2":i=Cesium.HeightReference.CLAMP_TO_GROUND}e=document.createElement("canvas"),h.onload=function(){var i=h.width/h.height;h.width=100,h.height=100/i;var o=h.width,s=h.height,a=e.getContext("2d",{willReadFrequently:!0});e.width=o,e.height=s,a.drawImage(h,0,0,o,s),n=s*(31/o),t.entity&&(t.entity.billboard.imgWidth=o,t.entity.billboard.imgHeight=s,t.entity.billboard.image=e,vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))},h.onerror=function(i){e.width=0,e.height=0,n=0,t.entity&&(t.entity.billboard.imgWidth=0,t.entity.billboard.imgHeight=0,t.entity.billboard.image=e,vi(t.sdk,t.entity),t.attributeBoxState&&(t.attributeBoxState=!0))}}t.entity=new Cesium.Entity({show:t.options.show,id:t.options.id,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:a?new Cesium.CallbackProperty((function(){var e=t._frameImages[r];return r=r>=t._frameImages.length-1?0:r+1,e}),!1):e,scale:t.options.billboard.scale,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,color:t.options.billboard.show?void 0:new Cesium.Color(1,1,1,0),width:31,height:new Cesium.CallbackProperty((function(){return n}),!1),verticalOrigin:Cesium.VerticalOrigin.BOTTOM},label:{show:t.options.label.show,text:t.options.label.text,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),heightReference:i,font:t.options.label.fontSize+"px "+l,fillColor:Cesium.Color.fromCssColorString(t.options.label.color),pixelOffset:new Cesium.CallbackProperty((function(){return t.options.billboard.show?new Cesium.Cartesian2(0,-n*t.options.billboard.scale-t.options.label.fontSize/2-5):new Cesium.Cartesian2(0,-t.options.label.fontSize/2-5)}),!1),outlineColor:Cesium.Color.BLACK,outlineWidth:1,style:Cesium.LabelStyle.FILL_AND_OUTLINE}}),t.entity.billboard.imgWidth=31,t.entity.billboard.imgHeight=36,t.entity.position=Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),3==t.options.heightMode&&t.updateHeight(),t.renewPoint(),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id),t.options.billboard.isSelect&&t.selectBillboard()}}]);var i,n,s,r,l}(Wn);function Lo(t){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 描边颜色\n
            \n
            \n
            \n 描边宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Ao(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function jo(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Fo(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.nodePoints=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<3)i._error="多边形最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=jo({},this.options.position):this.options.positions?l=jo({},this.options.positions[0]):this.options.center?l=jo({},this.options.center):this.options.start?l=jo({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500?i.positionEditing=!1:y(0,e)}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(n.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(n.positions),[n.positions[0],n.positions[1]])}),!1)}else{this.previous?this.positions=L()(this.previous.positions):this.previous={positions:L()(this.positions)},this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var b=[[]],C=0;C0?new Cesium.PolygonHierarchy(m):new Cesium.PolygonHierarchy(o)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return m.length>0?[].concat(m,[m[0],m[1]]):[].concat(L()(o),[o[0],o[1]])}),!1)}},{key:"renewPositions",value:function(){var t=this;if(!this._error){for(var e=!1,i=[],n=this.options.positions,o=0;o0&&void 0!==h[0]?h[0]:{domid:"",x:10,y:10}).x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10,i=[[]],n=0;nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){var i=L()(t.options.positions);if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var n,s,r=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(L()(l),[l[0],l[1],l[2]]):l}),!1);var m=L()(t.sdk.viewer.entities.values);if(t.options.positions.length<3)t.getClampToHeight({lng:t.options.positions[0].lng,lat:t.options.positions[0].lat},m).then((function(e){t.label.position=[t.options.positions[0].lng,t.options.positions[0].lat,e]}));else{for(var f=[[]],v=0;v=500?d():h(o,i)}))})),r()}),200)}}),50)}},{key:"closeNodeEdit",value:function(t){if(t.sdk&&t.sdk.viewer){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 线条颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n 线条形式\n
            \n
            \n
            \n
            \n
            \n 首尾相连\n \n
            \n
            \n 线段圆滑\n \n
            \n
            \n
            \n
            \n
            \n
            \n 线段缓冲\n \n
            \n
            \n 缓冲宽度\n
            \n \n m\n \n
            \n
            \n
            \n 缓冲颜色\n
            \n
            \n
            \n
            \n
            \n 首尾反向\n \n
            \n
            \n 流动速率\n
            \n \n \n
            \n
            \n
            \n 线条间距\n
            \n \n \n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n
            \n
            \n
            \n \n ')}function Vo(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Go(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Go(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Go(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max),e.target.value=i),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.viwer=this.sdk.viewer,this.options=i,this.options.position=i.position||{},this.options.rotate=i.rotate||{},this.options.position.lng=this.options.position.lng||0,this.options.position.lat=this.options.position.lat||0,this.options.position.alt=this.options.position.alt||0,this.options.rotate.x=this.options.rotate.x||0,this.options.rotate.y=this.options.rotate.y||0,this.options.rotate.z=this.options.rotate.z||0,this.activeAxis,this.activeCircle,this.activeModelParam,this.origin,this.rayX,this.rayY,this.rayZ,this.arrow={},this.activeState,this.coordArrows=[],this.coordCircles=[],this.MapEvent=new X(this.sdk)}),[{key:"position",get:function(){return this.options.position},set:function(t){this.options.position=t,this.againArrow(),this.againCircle()}},{key:"rotate",get:function(){return this.options.rotate},set:function(t){this.options.rotate=t}},{key:"initParam",value:function(){return this._params={tx:this.options.position.lng,ty:this.options.position.lat,tz:this.options.position.alt,rx:this.options.rotate.x,ry:this.options.rotate.y,rz:this.options.rotate.z},Jo(Jo({},this.options.position),this.options.rotate)}},{key:"editTranslational",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:w=function(t){if(e.activeAxis){var i=t.startPosition.y-t.endPosition.y,n={x:t.endPosition.x-y.x,y:t.endPosition.y-y.y},o=r.camera.getPickRay(n),s=r.scene.globe.pick(o,r.scene),a=new Cesium.Cartesian3,l=Cesium.Transforms.eastNorthUpToFixedFrame(r.camera.position);Cesium.Matrix4.inverse(l,l),Cesium.Matrix4.multiplyByPoint(l,s,a),Cesium.Cartesian3.normalize(a,a);var c=e.initParam(),u=90+Cesium.Math.toDegrees(Math.asin(a.z)),p=Cesium.Cartographic.fromCartesian(r.camera.position).height,h=e.activeModelParam.alt,d=p/Math.cos(Cesium.Math.toRadians(u));new Cesium.EllipsoidGeodesic(Cesium.Cartographic.fromCartesian(s),Cesium.Cartographic.fromCartesian(r.camera.position)),s=Cesium.Ray.getPoint(o,d*(1-h/p));var m=Cesium.Cartographic.fromCartesian(s),f=Cesium.Math.toDegrees(m.longitude),v=Cesium.Math.toDegrees(m.latitude);switch(e.activeAxis._name){case"model_edit_xAxis":e._params.tx=f,e._params.ty=e.activeModelParam.lat,e._params.tz=h,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var g=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),k=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),x=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,g),e.rayY=new Cesium.Ray(e.origin,k),e.rayZ=new Cesium.Ray(e.origin,x);break;case"model_edit_yAxis":e._params.tx=e.activeModelParam.lng,e._params.ty=v,e._params.tz=h,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt);var _=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),E=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,c.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),S=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,_),e.rayY=new Cesium.Ray(e.origin,E),e.rayZ=new Cesium.Ray(e.origin,S);break;case"model_edit_zAxis":e.activeModelParam.alt+=Cesium.Cartesian3.distance(r.camera.position,Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt))/4300*i*3,e._params.tx=e.activeModelParam.lng,e._params.ty=e.activeModelParam.lat,e._params.tz=e.activeModelParam.alt,e.origin=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e.activeModelParam.alt);var D=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng-.001,c.lat,e.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),P=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat-.001,e.activeModelParam.alt),new Cesium.Cartesian3),new Cesium.Cartesian3),M=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e.origin,Cesium.Cartesian3.fromDegrees(c.lng,c.lat,e.activeModelParam.alt-1),new Cesium.Cartesian3),new Cesium.Cartesian3);e.rayX=new Cesium.Ray(e.origin,D),e.rayY=new Cesium.Ray(e.origin,P),e.rayZ=new Cesium.Ray(e.origin,M)}e.updateModel(e._params.tx,e._params.ty,e._params.tz,e._params.rx,e._params.ry,e._params.rz),e.againArrow()}else{var O=Date.now();if(O-b<100)return clearTimeout(C),void(C=setTimeout((function(){w(t)}),100));clearTimeout(C),b=O;for(var T=e.coordArrows,N=0;N=0;L--){var A=B[L];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}},this.destroy(),this.activeState="translational",this.MapEvent=new X(this.sdk),e=this,i=this.initParam(),n=i.lng,o=i.lat,s=i.alt,r=this.viwer,this.origin=Cesium.Cartesian3.fromDegrees(n,o,s),l=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n-.001,o,s),new Cesium.Cartesian3),new Cesium.Cartesian3),c=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o-.001,s),new Cesium.Cartesian3),new Cesium.Cartesian3),u=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(this.origin,Cesium.Cartesian3.fromDegrees(n,o,s-1),new Cesium.Cartesian3),new Cesium.Cartesian3),this.rayX=new Cesium.Ray(this.origin,l),this.rayY=new Cesium.Ray(this.origin,c),this.rayZ=new Cesium.Ray(this.origin,u),this.arrow.positionX=Cesium.Ray.getPoint(this.rayX,0),this.arrow.positionY=Cesium.Ray.getPoint(this.rayY,0),this.arrow.positionZ=Cesium.Ray.getPoint(this.rayZ,0),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(n,o,s)),h=r.camera.position,d=Cesium.Cartesian3.distance(h,this.origin),m=d/15,Cesium.Matrix4.multiplyByScale(p,new Cesium.Cartesian3(m,m,m),p),f=this.createAxisArrow("model_edit_xAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(1,0,0)],p,Cesium.Color.RED),v=this.createAxisArrow("model_edit_yAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,1,0)],p,Cesium.Color.LIME),g=this.createAxisArrow("model_edit_zAxis",[new Cesium.Cartesian3(0,.001,0),new Cesium.Cartesian3(0,0,1)],p,Cesium.Color.BLUE),this.viwer.scene.primitives.add(f),this.viwer.scene.primitives.add(v),this.viwer.scene.primitives.add(g),this.againArrow(),this.viwer.camera.percentageChanged=.001,this.viwer.camera.changed.addEventListener(this.againArrow,{_that:this}),y={x:0,y:0},b=0,this.MapEvent.mouse_move((function(t,e){w(t)})),this.MapEvent.mouse_left_down((function(t,i){var n=r.scene.cartesianToCanvasCoordinates(k.origin);y.x=t.position.x-Math.floor(n.x),y.y=t.position.y-Math.floor(n.y);for(var o=r.scene.drillPick(t.position,10),s=o.length-1;s>=0;s--){var a=o[s];if(a&&a.primitive&&a.primitive._name)if(e.activeAxis)e.activeAxis=null,e.activeModelParam=null,e.controllerCallBack;else switch(a.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return r.scene.screenSpaceCameraController.enableRotate=!1,e.activeAxis=a.primitive,e.activeModelParam=e.initParam(),void(a.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(t){r.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(r._params.rx=1),r._params.rx<0&&(r._params.rx=360),Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(r._params.rx)),r._params.ry-=i,r._params.ry>360&&(r._params.ry=1),r._params.ry<0&&(r._params.ry=360),r._params.rz-=n,r._params.rz>360&&(r._params.rz=1),r._params.rz<0&&(r._params.rz=360),r.updateModel(r._params.tx,r._params.ty,r._params.tz,r._params.rx,r._params.ry,r._params.rz)}else{var c=Date.now();if(c-D<100)return clearTimeout(P),void(P=setTimeout((function(){M(t)}),100));clearTimeout(P),D=c;for(var u=s.coordCircles,p=0;p3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=t=parseFloat(parseFloat(t).toFixed(8)),this._params.ty=e=parseFloat(parseFloat(e).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.options.position.lng=t,this.options.position.lat=e,this.options.position.alt=i,this.options.rotate={x:n,y:o,z:s},this.controllerCallBack}},{key:"controllerCallBack",get:function(){this._controllerCallBack&&this._controllerCallBack(this.options,!this.activeAxis)},set:function(t){this._controllerCallBack=t}},{key:"createAxisArrow",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisCircular",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.EllipseGeometry({center:{x:1,y:1,z:1},semiMinorAxis:5e5,semiMajorAxis:1e6,rotation:Cesium.Math.PI_OVER_FOUR,vertexFormat:Cesium.VertexFormat.POSITION_AND_ST})}),releaseGeometryInstances:!1,appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:Cesium.Color.YELLOW}}})}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(t,e,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=t,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var t=0;t=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),ts(i=Qo(this,e,[t,n]),ns,void 0),i.options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options["nose-to-tail"]=n["nose-to-tail"]||!1,i.options.smooth=n.smooth||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.dashSize=n.dashSize||.03,i.options["length-unit"]=n["length-unit"]||"米",i.options["fit-length-unit"]=n["fit-length-unit"]||"米",i.options["words-name"]=n["words-name"]||"空间长度",i.options["extend-width"]=n["extend-width"]||0===n["extend-width"]?n["extend-width"]:10,i.options["extend-color"]=n["extend-color"]||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s2)switch(t){case"米":this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;break;case"千米":this.length=this.noseToTail?(this.options.fitLengthByMeter/1e3).toFixed(5):(this.options.lengthByMeter/1e3).toFixed(5);break;default:this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter}else{var e=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;this.lengthUnit=e>1e3||1e3==e?"千米":"米"}}},{key:"wordsName",get:function(){return this.options["words-name"]},set:function(t){this.options["words-name"]=t,this._elms.wordsName&&this._elms.wordsName.forEach((function(e){e.value=t}));var e=this;if(this.noseToTail)this.renewPositions(this.options.positions);else this.computeDistance(this.options.positions,2,t).then((function(t){e.options.lengthByMeter=t,e.lengthUnit=e.options["length-unit"]}))}},{key:"fitLengthUnit",get:function(){return this.options["fit-length-unit"]},set:function(t){if(this.options["fit-length-unit"]=t,this._elms.fitLengthUnit&&this._elms.fitLengthUnit.forEach((function(e){e.value=t})),this.options.fitLengthByMeter)switch(t){case"米":this.fitLength=this.options.fitLengthByMeter;break;case"千米":this.fitLength=Number((this.options.fitLengthByMeter/1e3).toFixed(5));break;default:this.fitLength=this.options.fitLengthByMeter}}},{key:"lineWidth",get:function(){return this.options.width},set:function(t){var e=this;this.options.width=t||0==t?t:3,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.width})),this.entity&&this.entity.polyline&&(this.entity.polyline.width=this.entity.polyline.width+t-this.entity.polyline.oriWidth,this.entity.polyline.oriWidth=this.options.width)}},{key:"lineType",get:function(){return this.options.type},set:function(t){var e=this,i=[{name:'实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(t);for(var n=function(n){if(i[n].key===Number(t))return e._elms.lineType&&e._elms.lineType.forEach((function(t){t.value=i[n].value,2this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(l=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=32;break}return o=function(t){"2"!==t&&2!==t||(2实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],C=Y(d._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(C){C.legp_search(b);var w=document.createElement("i");w.className="icon icon-active",d._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(w);var k=d._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];d._elms.lineType=[k];for(var x=0;x'.concat(t+1,'\n
            \n
            \n
            \n ');var n=i.getElementsByClassName("lng")[0],o=document.createElement("span");o.innerHTML=d.options.positions[t].lng.toFixed(8),n.appendChild(o);var s=document.createElement("input");s.className="input",s.type="number",s.title="",s.min=-180,s.max=180,s.value=d.options.positions[t].lng.toFixed(8);var a=i.getElementsByClassName("lat")[0],r=document.createElement("span");r.innerHTML=d.options.positions[t].lat.toFixed(8),a.appendChild(r);var l=document.createElement("input");l.className="input",l.type="number",l.title="",l.min=-90,l.max=90,l.value=d.options.positions[t].lat.toFixed(8);var c=i.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=d.options.positions[t].alt.toFixed(2),c.appendChild(u);var p=document.createElement("input");p.className="input",p.type="number",p.title="",p.min=-9999999,p.max=999999999,p.value=d.options.positions[t].alt.toFixed(2),n.addEventListener("dblclick",(function(){n.innerHTML="",s.value=Number(d.options.positions[t].lng.toFixed(8)),n.appendChild(s),s.focus(),d.positionEditing=!1,e.closeNodeEdit(d)})),s.addEventListener("blur",(function(){s.value=Number(d.options.positions[t].lng.toFixed(8)),n.innerHTML="",n.appendChild(o)})),s.addEventListener("input",(function(){d.options.positions[t].lng=Number(Number(s.value).toFixed(8)),o.innerHTML=d.options.positions[t].lng.toFixed(8);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),a.addEventListener("dblclick",(function(){a.innerHTML="",l.value=Number(d.options.positions[t].lat.toFixed(8)),a.appendChild(l),l.focus(),d.positionEditing=!1,e.closeNodeEdit(d)})),l.addEventListener("blur",(function(){l.value=Number(d.options.positions[t].lat.toFixed(8)),a.innerHTML="",a.appendChild(r)})),l.addEventListener("input",(function(){d.options.positions[t].lat=Number(Number(l.value).toFixed(8)),r.innerHTML=d.options.positions[t].lat.toFixed(8);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),c.addEventListener("dblclick",(function(){2!=d.heightMode&&(c.innerHTML="",p.value=Number(d.options.positions[t].alt.toFixed(2)),c.appendChild(p),p.focus(),d.positionEditing=!1,e.closeNodeEdit(d))})),p.addEventListener("blur",(function(){p.value=Number(d.options.positions[t].alt.toFixed(2)),c.innerHTML="",c.appendChild(u)})),p.addEventListener("input",(function(){d.options.positions[t].alt=Number(Number(p.value).toFixed(2)),u.innerHTML=d.options.positions[t].alt.toFixed(2);var e=d.renewPositions(d.options.positions);d.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),d.label.position=[d.options.positions[0].lng,d.options.positions[0].lat,e[2]]})),d._elms.lng.push(o),d._elms.lngInput.push(s),d._elms.lat.push(r),d._elms.latInput.push(l),d._elms.alt.push(u),d._elms.altInput.push(p),T.appendChild(i)},B=0;B0&&void 0!==y[0]?y[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=$o({},this.options.position):this.options.positions?l=$o({},this.options.positions[0]):this.options.center?l=$o({},this.options.center):this.options.start?l=$o({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=43;break;case 25:c=[],t.t0=this.options.heightMode,t.next="0"===t.t0||0===t.t0?29:"1"===t.t0||1===t.t0?31:"2"===t.t0||2===t.t0?36:41;break;case 29:for(p=0;p=500?(i.event.mouse_move((function(){})),i.event.mouse_left((function(){})),i.event.mouse_right((function(){})),i.positionEditing=!1):leftEvent(s,e)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return l.length>0?l:n}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var c=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(c),this.renewPolygon(c),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,c[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:c[2]}}}}},{key:"setDIV",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=new Cesium.EntityCollection;if(t.forEach((function(t){(t instanceof Bo||t instanceof zo||t instanceof ho||t instanceof os)&&e.add(t.entity)})),e.values.length){var i=Cesium.exportKml({entities:e});i.then((function(t){ss(t.kml,(new Date).getTime()+".kml")}))}else console.error("允许导出为kml的对象为空")},rs={yingguangse:new Map,gonganlan:new Map,hong:new Map};rs.yingguangse.set("--color-sdk-base","#00ffff"),rs.yingguangse.set("--color-sdk-auxiliary","#004242"),rs.yingguangse.set("--color-sdk-auxiliary-public","#ffffff"),rs.yingguangse.set("--color-sdk-warning-0","#1BF8C3"),rs.yingguangse.set("--color-sdk-warning-1","#F16C55"),rs.yingguangse.set("--color-sdk-warning-2","#FFA145"),rs.yingguangse.set("--color-sdk-warning-3","#FFDF53"),rs.yingguangse.set("--color-sdk-text-head","#FFFFFF"),rs.yingguangse.set("--color-sdk-text-head-1","#E6F7FF"),rs.yingguangse.set("--color-sdk-text-head-2","#ADF1FF"),rs.yingguangse.set("--color-sdk-gradual","#00ffff 6.25%, #00ffff 100%"),rs.yingguangse.set("--color-sdk-bg-gradual","#00ffff33 0%, #00ffff00 100%");var ls,cs,us,ps=null,hs=0,ds=0,ms=function(){var t=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return b=function(t){var i=u.getElementsByClassName("tr");i.length>0&&(i[i.length-1].querySelector("input[name='time']").disabled=void 0);var n=u.getElementsByClassName("tr active")[0];n&&(n.className="tr");var o=document.createElement("div");o.className="tr active",o.innerHTML='\n
            视点'.concat(d+1,'
            \n
            \n \n
            \n
            \n
            \n '),o.addEventListener("click",(function(t){if(t.target.parentNode===o){var e=u.getElementsByClassName("tr active")[0];e&&(e.className="tr"),o.className="tr active";for(var n=0;ne+1?(l--,i[l-1].className="tr active"):l==e+1&&(i.length==e&&(l-=1),0!=i.length&&(i[l-1].className="tr active")),i.length>0){var n=i[i.length-1].querySelector("input[name='time']");n.disabled="disabled",n.value=0}break}})),c.addEventListener("input",(function(e){t.duration=Number(c.value),t.duration<0&&(t.duration=0)})),c.addEventListener("blur",(function(){c.value=Number(Number(c.value).toFixed(2)),c.value<0&&(c.value=0)})),u.insertBefore(o,i[l]),l++,i[i.length-1].querySelector("input[name='time']").disabled="disabled"},i=C.length>1&&void 0!==C[1]?C[1]:{},n=C.length>2&&void 0!==C[2]?C[2]:{},o=i.name||"漫游路径",i.points||(i.points=[]),i.repeat&&(hs=Number(i.repeat)),s=e.viewer,r=new fi(e),l=0,ps&&ps.close&&(ps.close(),ps=null),t.next=12,new W(s._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){gs({viewer:s})}});case 12:return ps=t.sent,t.next=15,ps.init();case 15:for((c=document.createElement("div")).className="fly-roam",c.innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 设置总时长\n
            \n \n 秒(s)\n \n
            \n \n
            \n
            \n \n 是否循环播放\n
            \n
            \n
            \n \n
            \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            序号
            \n
            时长(s)
            \n
            操作
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n \n ',ps.contentAppChild(c),c.getElementsByTagName("*"),u=c.getElementsByClassName("table-body")[0],p=c.getElementsByClassName("table-empty")[0],h={set:function(t,e,i){return t[e]=i,t.length>0?p.style.display="none":p.style.display="flex",!0}},d=0,m=new Proxy([],h),d=0;d0&&vs(e,m,0)})),c.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var t={duration:0,position:r.cartesian3Towgs84(s.camera.position,s),orientation:{heading:s.camera.heading,pitch:s.camera.pitch,roll:s.camera.roll}};m.splice(l,0,t),b(t),d++})),c.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(l){var t=r.cartesian3Towgs84(s.camera.position,s);m[l-1].position=t,m[l-1].orientation={heading:s.camera.heading,pitch:s.camera.pitch,roll:s.camera.roll},r.message({text:"操作成功"})}})),g=c.querySelector("input[name='totalTime']"),c.getElementsByClassName("set-total-time-btn")[0].addEventListener("click",(function(){if(m.length>0){for(var t=u.getElementsByClassName("tr"),e=Number((Number(g.value)/(t.length-1)).toFixed(2)),i=0;i1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;ls&&ls.destroy(),(ls=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas)).setInputAction((function(e){gs(t)}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var s,r=t.viewer;r.camera.cancelFlight(),ii(t),ni(t),r.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(e[i].position.lng,e[i].position.lat,e[i].position.alt),orientation:e[i].orientation,duration:n?e[i-1].duration:.5,maximumHeight:e[i].position.alt,complete:(s=o()(a.a.mark((function n(){return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:++i<=e.length-1?fs(t,e,i,!0):ds&&e.length>1?(ds--,fs(t,e,0)):ls&&ls.destroy();case 3:case"end":return n.stop()}}),n)}))),function(){return s.apply(this,arguments)}),easingFunction:n?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})},vs=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;ds=hs,fs(t,e,i,n)},gs=function(t){t&&t.viewer&&t.viewer.camera.cancelFlight(),ls&&ls.destroy()},ys=null,bs=null,Cs=null,ws=null,ks="uniform sampler2D colorTexture;//输入的场景渲染照片\n varying vec2 v_textureCoordinates;\n uniform float tiltAngle;\n uniform float rainSize;\n uniform float rainWidth;\n uniform float rainSpeed;\n\n float hash(float x){\n return fract(sin(x*133.3)*13.13);\n }\n void main(void){\n float time = czm_frameNumber / rainSpeed;\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 c=vec3(.6,.7,.8);\n float a= tiltAngle;\n float si=sin(a),co=cos(a);\n uv*=mat2(co,-si,si,co);\n uv*=length(uv+vec2(0,4.9))*rainSize+1.;\n float v=1.-sin(hash(floor(uv.x*rainWidth))*2.);\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*20.;\n c*=v*b; //屏幕上雨的颜色\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), 0.5); //将雨和三维场景融合\n }",xs="uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSize;\n uniform float snowSpeed;\n \n float snow(vec2 uv,float scale)\n {\n float time = czm_frameNumber / snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution = czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c = 0.0;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.5);\n }\n ",_s="\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n uniform float visibility;\n uniform vec4 fogColor;\n varying vec2 v_textureCoordinates;\n void main(void)\n {\n vec4 origcolor = texture2D(colorTexture, v_textureCoordinates);\n float depth = czm_readDepth(depthTexture, v_textureCoordinates);\n vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates);\n float f = visibility * (depthcolor.r - 0.3) / 0.2;\n if (f < 0.0) f = 0.0;\n else if (f > 1.0) f = 1.0;\n gl_FragColor = mix(origcolor, fogColor, f);\n }\n ";var Es,Ss,Ds,Ps,Ms,Os,Ts,Ns={},Bs=void 0,Ls=void 0,As=!1,js={};function Is(){if(this.sdk&&this.sdk.viewer){(Ls=this.sdk.viewer.camera.pickEllipsoid(new Cesium.Cartesian2(this.sdk.viewer.canvas.clientWidth/2,this.sdk.viewer.canvas.clientHeight/(2-(90+this.sdk.viewer.camera.pitch/(Cesium.Math.PI/180))/110))))||(Ls=this.sdk.viewer.camera.position);var t=cs.cartesian3Towgs84(this.sdk.viewer.camera.position,this.sdk.viewer).alt,e=cs.cartesian3Towgs84(Ls,this.sdk.viewer);t>9e6&&(t=9e6),t<4e5?(this.entity.billboard.show=!0,this.entity.rectangle.show=!1):(this.entity.billboard.show=!1,this.entity.rectangle.show=!0),Bs=new Cesium.Rectangle(Cesium.Math.toRadians(e.lng-t/12e4),Cesium.Math.toRadians(e.lat-t/28e4),Cesium.Math.toRadians(e.lng+t/12e4),Cesium.Math.toRadians(e.lat+t/28e4))}}function Rs(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var Fs,zs,Hs=null,Vs=null,Gs=null,Us=null,Ws=!1,Ys=10,Js="#ffd000",qs=!0,Xs=2.5,Zs="#43cf7c",Ks=!0,$s=1.8,Qs="#ff0000",ta=!1,ea=1,ia="#64b6d9",na=!1,oa=1,sa="#d084d1";function aa(){if(zs){var t=zs.viewer.camera.positionCartographic;Cesium.Math.toDegrees(t.height)<1e6?zs.viewer.scene.globe.material||!0!==Ws||la(zs):ca(zs)}}function ra(){return(ra=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m=function(t){var e=t.target.value;return(t.target.value||"undefined"!==t.target.dataset.null&&""!==t.target.dataset.null&&!Boolean(t.target.dataset.null))&&(e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e\n
            \n
            \n
            \n 等高线\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 等高距\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 选中线颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 计曲线\n \n
            \n
            \n 计曲线颜色\n
            \n
            \n
            \n 计曲线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 首曲线\n \n
            \n
            \n 首曲线颜色\n
            \n
            \n
            \n 首曲线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 间曲线\n \n
            \n
            \n 间曲线颜色\n
            \n
            \n
            \n 间曲线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 助曲线\n \n
            \n
            \n 助曲线颜色\n
            \n
            \n
            \n 助曲线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n ',Hs.contentAppChild(i),e.viewer.scene.postRender.removeEventListener(aa),e.viewer.scene.postRender.addEventListener(aa),(n=i.getElementsByClassName("show")[0]).checked=Ws,n.addEventListener("change",(function(t){if(t.target.checked){if(Ws=!0,e.viewer.camera.positionCartographic.height>16360){var i=e.viewer.camera.positionCartographic,n={position:{lng:Cesium.Math.toDegrees(i.longitude),lat:Cesium.Math.toDegrees(i.latitude),alt:16360}};Xe(e,n,.5)}la(e)}else Ws=!1,ca(e)})),(o=i.getElementsByClassName("equal-height-distance")[0]).value=Ys,o.addEventListener("blur",(function(t){var e=m(t);Ys=e,o.value=e,Vs&&(Vs.uniforms.spacing=5*Ys)})),new zi({el:i.getElementsByClassName("active-color")[0],size:"mini",alpha:!0,defaultColor:Js,disabled:!1,openPickerAni:"opacity",sure:function(t){Js=t,Vs&&(Vs.uniforms.activeColor=Cesium.Color.fromCssColorString(Js))},clear:function(){Js="rgba(255,255,255,1)",Vs&&(Vs.uniforms.activeColor=Cesium.Color.fromCssColorString(Js))}}),(s=i.getElementsByClassName("index-contour-switch")[0]).checked=qs,s.addEventListener("change",(function(t){qs=t.target.checked,Vs&&(Vs.uniforms.indexContourShow=qs)})),new zi({el:i.getElementsByClassName("index-contour-color")[0],size:"mini",alpha:!0,defaultColor:Zs,disabled:!1,openPickerAni:"opacity",sure:function(t){Zs=t,Vs&&(Vs.uniforms.indexContourColor=Cesium.Color.fromCssColorString(Zs))},clear:function(){Zs="rgba(255,255,255,1)",Vs&&(Vs.uniforms.indexContourColor=Cesium.Color.fromCssColorString(Zs))}}),(r=i.getElementsByClassName("index-contour-width")[0]).value=Xs,r.addEventListener("blur",(function(t){var e=m(t);Xs=e,r.value=e,Vs&&(Vs.uniforms.indexContourWidth=Xs)})),(l=i.getElementsByClassName("intermediate-contour-switch")[0]).checked=Ks,l.addEventListener("change",(function(t){Ks=t.target.checked,Vs&&(Vs.uniforms.intermediateContourShow=Ks)})),new zi({el:i.getElementsByClassName("intermediate-contour-color")[0],size:"mini",alpha:!0,defaultColor:Qs,disabled:!1,openPickerAni:"opacity",sure:function(t){Qs=t,Vs&&(Vs.uniforms.intermediateContourColor=Cesium.Color.fromCssColorString(Qs))},clear:function(){Qs="rgba(255,255,255,1)",Vs&&(Vs.uniforms.intermediateContourColor=Cesium.Color.fromCssColorString(Qs))}}),(c=i.getElementsByClassName("intermediate-contour-width")[0]).value=$s,c.addEventListener("blur",(function(t){var e=m(t);$s=e,c.value=e,Vs&&(Vs.uniforms.intermediateContourWidth=$s)})),(u=i.getElementsByClassName("halfInterval-contour-switch")[0]).checked=ta,u.addEventListener("change",(function(t){ta=t.target.checked,Vs&&(Vs.uniforms.halfIntervalContourShow=ta)})),new zi({el:i.getElementsByClassName("halfInterval-contour-color")[0],size:"mini",alpha:!0,defaultColor:ia,disabled:!1,openPickerAni:"opacity",sure:function(t){ia=t,Vs&&(Vs.uniforms.halfIntervalContourColor=Cesium.Color.fromCssColorString(ia))},clear:function(){ia="rgba(255,255,255,1)",Vs&&(Vs.uniforms.halfIntervalContourColor=Cesium.Color.fromCssColorString(ia))}}),(p=i.getElementsByClassName("halfInterval-contour-width")[0]).value=ea,p.addEventListener("blur",(function(t){var e=m(t);ea=e,p.value=e,Vs&&(Vs.uniforms.halfIntervalContourWidth=ea)})),(h=i.getElementsByClassName("supplementary-contour-switch")[0]).checked=na,h.addEventListener("change",(function(t){na=t.target.checked,Vs&&(Vs.uniforms.supplementaryContourShow=na)})),new zi({el:i.getElementsByClassName("supplementary-contour-color")[0],size:"mini",alpha:!0,defaultColor:sa,disabled:!1,openPickerAni:"opacity",sure:function(t){sa=t,Vs&&(Vs.uniforms.supplementaryContourColor=Cesium.Color.fromCssColorString(sa))},clear:function(){sa="rgba(255,255,255,1)",Vs&&(Vs.uniforms.supplementaryContourColor=Cesium.Color.fromCssColorString(sa))}}),(d=i.getElementsByClassName("supplementary-contour-width")[0]).value=oa,d.addEventListener("blur",(function(t){var e=m(t);oa=e,d.value=e,Vs&&(Vs.uniforms.supplementaryContourWidth=oa)}));case 50:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function la(t){var e=t.viewer.camera.positionCartographic;Cesium.Math.toDegrees(e.height)>1e6||(Gs&&Gs.destroy(),t.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]||t.viewer.container.appendChild(Us),(Gs=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas)).setInputAction((function(e){var i=t.viewer.scene.pickPosition(e.endPosition);if(i){var n=0,o=0;if(t.viewer&&t.viewer._element){var s=t.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];n=s.getBoundingClientRect().top+window.scrollY,o=s.getBoundingClientRect().left+window.scrollX}Us.style.left=e.endPosition.x-50+o+"px",Us.style.top=e.endPosition.y-40+n+"px",Us.style.display="block";var a=Fs.cartesian3Towgs84(i,t.viewer),r=Math.floor(a.alt/Vs.uniforms.spacing)*Vs.uniforms.spacing,l=a.alt-r,c=Vs.uniforms.spacing/(Vs.uniforms.secondaryLinesCount+1),u=Math.floor(l/c)*c+r;a.alt<0&&(a.alt=0),a.alt-u>c/2&&(u+=c),Vs.uniforms.mouseHeight=a.alt,Vs.uniforms.mousePosition=i,Us.innerHTML="".concat(u.toFixed(0))}else Us.style.display="none"}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),t.viewer.scene.globe.material=Vs)}function ca(t){Gs&&(Gs.destroy(),Gs=null),t.viewer.container.getElementsByClassName("YJ-customize-active-height-elm")[0]&&(Us.style.display="none",t.viewer.container.removeChild(Us)),t.viewer.scene.globe.material=null}function ua(){Cesium.Material._materialCache._materials.ElevationContour.fabric.source="\nuniform vec4 activeColor; // 选中颜色\nuniform float spacing; // 等高距\n\n// 计曲线\nuniform bool indexContourShow;\nuniform float indexContourWidth;\nuniform vec4 indexContourColor;\n// 首曲线\nuniform bool intermediateContourShow;\nuniform float intermediateContourWidth;\nuniform vec4 intermediateContourColor;\n// 间曲线\nuniform bool halfIntervalContourShow;\nuniform float halfIntervalContourWidth;\nuniform vec4 halfIntervalContourColor;\n// 助曲线\nuniform bool supplementaryContourShow;\nuniform float supplementaryContourWidth;\nuniform vec4 supplementaryContourColor;\n\nuniform float mouseHeight;\n\nuniform float secondaryLinesCount; // 0=无次线, 1=1条次线, 2=2条次线...\n\nczm_material czm_getMaterial(czm_materialInput materialInput)\n{\n czm_material material = czm_getDefaultMaterial(materialInput);\n\n // 主等高线计算\n float distanceToMainContour = mod(materialInput.height, spacing);\n \n // 抗锯齿计算\n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n float dxc = abs(dFdx(materialInput.height));\n float dyc = abs(dFdy(materialInput.height));\n float dFMain = max(dxc, dyc) * czm_pixelRatio * indexContourWidth;\n#else\n float dFMain = czm_pixelRatio * indexContourWidth;\n#endif\n\n bool isMainContour = distanceToMainContour < dFMain;\n bool isSecondaryContour = false;\n float dFSecondary = 0.0;\n float secondarySpacing = 0.0;\n bool isHalfInterval = false;\n bool isIntermediate= false;\n\n // 计算当前高度所属的等高线高度\n float mainContourHeight = floor(materialInput.height / spacing) * spacing;\n float secondaryContourHeight = floor(materialInput.height / spacing * (secondaryLinesCount + 1.0)) * spacing / (secondaryLinesCount + 1.0);\n \n // 计算次线在两条主等高线之间的相对位置\n float relativeHeight = materialInput.height - mainContourHeight;\n float normalizedPosition = relativeHeight / spacing;\n \n // 计算次线索引(从主等高线开始计数)\n float lineIndex = floor(normalizedPosition * (secondaryLinesCount + 1.0));\n\n // 只有当存在次线时才计算次线\n if(secondaryLinesCount > 0.0) {\n float secondaryLinesWidth = supplementaryContourWidth;\n secondarySpacing = spacing / (secondaryLinesCount + 1.0);\n float distanceToSecondaryContour = mod(materialInput.height, secondarySpacing);\n \n // 确保次线不会与主线重叠\n float minDistanceToMain = min(distanceToMainContour, spacing - distanceToMainContour);\n bool notCloseToMain = minDistanceToMain > dFMain * 2.0; // 2倍线宽缓冲\n\n\n if (lineIndex > 0.0 && lineIndex < secondaryLinesCount) {\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isHalfInterval = abs(mod(lineIndex, 2.0)) < 0.01;\n if(isHalfInterval) {\n secondaryLinesWidth = halfIntervalContourWidth;\n }\n // 使用mod函数检查余数是否接近0(考虑浮点数精度问题)\n isIntermediate = abs(mod(lineIndex, 4.0)) < 0.01;\n if(isIntermediate) {\n secondaryLinesWidth = intermediateContourWidth;\n }\n }\n\n\n\n\n\n\n\n\n \n#if (__VERSION__ == 300 || defined(GL_OES_standard_derivatives))\n dFSecondary = max(dxc, dyc) * czm_pixelRatio * secondaryLinesWidth;\n#else\n dFSecondary = czm_pixelRatio * secondaryLinesWidth;\n#endif\n\n isSecondaryContour = (distanceToSecondaryContour < dFSecondary) && notCloseToMain;\n }\n\n // 高亮判断\n bool shouldHighlight = false;\n if(isMainContour && abs(mainContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n } else if(isSecondaryContour && abs(secondaryContourHeight - mouseHeight) < 0.5 * (spacing/(secondaryLinesCount+1.0))) {\n shouldHighlight = true;\n }\n\n // 颜色输出\n vec4 outColor;\n if(shouldHighlight) {\n outColor = czm_gammaCorrect(vec4(activeColor.rgb, activeColor.a));\n } else if(isMainContour) {\n float a = indexContourColor.a;\n if(!indexContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(indexContourColor.rgb, a));\n } else if(isSecondaryContour) {\n float a = supplementaryContourColor.a;\n if(!supplementaryContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(supplementaryContourColor.rgb, a));\n if(isHalfInterval) {\n float a = halfIntervalContourColor.a;\n if(!halfIntervalContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(halfIntervalContourColor.rgb, a));\n }\n if(isIntermediate) {\n float a = intermediateContourColor.a;\n if(!intermediateContourShow) {\n a = 0.0;\n }\n outColor = czm_gammaCorrect(vec4(intermediateContourColor.rgb, a));\n }\n } else {\n outColor = vec4(0.0);\n }\n\n if(materialInput.height<0.0) {\n outColor = vec4(0.0);\n }\n\n material.diffuse = outColor.rgb;\n material.alpha = outColor.a;\n return material;\n}\n",Vs=new Cesium.Material({fabric:{type:"ElevationContour",uniforms:{spacing:50,activeColor:Cesium.Color.fromCssColorString(Js),mouseHeight:-1e5,mousePosition:new Cesium.Cartesian3(0,0,0),secondaryLinesCount:19,cameraHeight:0,indexContourShow:qs,indexContourWidth:Xs,indexContourColor:Cesium.Color.fromCssColorString(Zs),intermediateContourShow:Ks,intermediateContourWidth:$s,intermediateContourColor:Cesium.Color.fromCssColorString(Qs),halfIntervalContourShow:ta,halfIntervalContourWidth:ea,halfIntervalContourColor:Cesium.Color.fromCssColorString(ia),supplementaryContourShow:na,supplementaryContourWidth:oa,supplementaryContourColor:Cesium.Color.fromCssColorString(sa)}}})}function pa(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}function ha(t,e,i){return t.set(ma(t,e),i),i}function da(t,e){return t.get(ma(t,e))}function ma(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}(Us=document.createElement("div")).className="YJ-customize-active-height-elm",Us.style.position="absolute",Us.style.left="10px",Us.style.top="10px",Us.style.width="100px",Us.style.textAlign="center",Us.style.pointerEvents="none",Us.style.color="#ff0000",Us.style.display="none";var fa=new WeakMap,va=new WeakMap,ga=function(){return _()((function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;k()(this,t),pa(this,fa,null),pa(this,va,{bgimg:null,img1:null,img2:null,img3:null,img4:null}),this.sdk=e,this.options=i,this.data={},this._webSocketCallback=n,this._tools=new fi(this.sdk),this.requestResource()}),[{key:"requestResource",value:function(){var t=this;this.options.host=this.options.host||h();var e;e=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+e,[],{maxReconnectAttempts:8}),this.reconnecting.onopen=function(e){t.reconnecting.onmessage=function(){var e=o()(a.a.mark((function e(i){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.data=JSON.parse(i.data),!t.data||!t.data.rmc){e.next=7;break}return e.next=4,t._tools.getClampToHeight(t.data.rmc);case 4:n=e.sent,t.position=new Cesium.Cartesian3.fromDegrees(t.data.rmc.lng,t.data.rmc.lat,n),t.create();case 7:t._webSocketCallback&&t._webSocketCallback(t.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}},{key:"create",value:function(){var t=this;if(this.getcanvas(),this.data&&this.data.rmc&&!this.entity){this.entity=new Cesium.CustomDataSource,this.sdk.viewer.dataSources.add(this.entity);var e=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:{image:this._tools.getSourceRootPath()+"/img/locate2.png",scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:1e8}),!1),width:31,height:36,pixelOffset:new Cesium.Cartesian2(0,-15)}}),i=new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:{image:new Cesium.CallbackProperty((function(){return t.lableCanvas})),scale:1,disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:1e8}),!1),width:220,height:140,pixelOffset:new Cesium.Cartesian2(0,-110)}});this.entity.entities.add(e),this.entity.entities.add(i)}}},{key:"loaded",value:function(t){var e;Object.defineProperty(this,"data",{get:function(){return e},set:function(i){e=i,t&&(t(),t=void 0)}})}},{key:"getcanvas",value:function(){var t=this,e=[{images:this._tools.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(this.data.rmc.lng.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(this.data.rmc.lat.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/h.png",text:"海拔:"+parseFloat(this.data.rmc.alt.toFixed(10))},{images:this._tools.getSourceRootPath()+"/img/bubble/satellite.png",text:"卫星:"+this.data.satellites||!1}];if(da(fa,this)){var i=da(fa,this).getContext("2d");i.clearRect(0,0,da(fa,this).width,da(fa,this).height),i.drawImage(da(va,this).bgimg,0,0,da(fa,this).width,da(fa,this).height);var n=0;e.forEach((function(o,s){i.drawImage(da(va,t)["img"+(s+1)],12,12+26*s),i.fillStyle="#fff",i.font="16px Arial",i.fillText(o.text,44,28+26*s),++n===e.length&&(t.lableCanvas=da(fa,t).toDataURL())}))}else{ha(fa,this,document.createElement("canvas"));var o=da(fa,this).getContext("2d");da(fa,this).width=220,da(fa,this).height=140;var s=new Image;da(va,this).bgimg=s,s.src=this._tools.getSourceRootPath()+"/img/bubble/bubble.png";var a=0;s.onload=function(){o.drawImage(s,0,0,da(fa,t).width,da(fa,t).height),e.forEach((function(i,n){var s=new Image;da(va,t)["img"+(n+1)]=s,s.src=i.images,s.onload=function(){o.drawImage(s,12,12+26*n),o.fillStyle="#fff",o.font="16px Arial",o.fillText(i.text,44,28+26*n),++a===e.length&&(t.lableCanvas=da(fa,t).toDataURL())}}))}}}},{key:"flyTo",value:(t=o()(a.a.mark((function t(){var e,i,n=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:{},!this.data||!this.data.rmc){t.next=9;break}return t.next=4,this._tools.getClampToHeight(this.data.rmc);case 4:i=t.sent,pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.camera.flyTo({orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:Cesium.Cartesian3.fromDegrees(this.data.rmc.lng,this.data.rmc.lat,i+(e.height||500))});case 9:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"remove",value:function(){ha(fa,this,null),ha(va,this,{}),this.reconnecting&&this.reconnecting.close(),this.sdk.viewer.dataSources.remove(this.entity),this.entity=null}},{key:"flicker",value:function(){}}]);var t}();var ya=i(9),ba=i.n(ya);function Ca(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var wa=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return k()(this,e),(i=Ca(this,e,[t,n])).viewer=t.viewer,i.entityHasCreated=!1,i.event=null,i.tip=null,i.points_ids=[],i.color=n.color||"rgba(185,14,14,0.58)",i._is2D=o,i._sdk2D=Ie(),i}return sn()(e,t),_()(e,[{key:"create_point",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.viewer,i=this.randomString();return e.entities.add(new Cesium.Entity({id:i,position:t,billboard:{image:this.getSourceRootPath()+"/img/point.png",color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(t){this.viewer.entities.removeById(t),!this._is2D&&this._sdk2D&&this._sdk2D.viewer&&this._sdk2D.viewer.entities&&this._sdk2D.viewer.entities.removeById(t)}},{key:"start",value:function(){}},{key:"end",value:function(){var t=this;YJ.Measure.SetMeasureStatus(!1),this.entityHasCreated=!1,this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy(),this.points_ids.forEach((function(e){t.remove_entity(e)}))}}])}(fi);function ka(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function xa(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=_a(this,e,[t,n])).color=n.color||"rgba(255,0,0,0.5)",i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=[];this.event.mouse_left((function(t,i){if("2D"!==l){if(l="3D",r.positions=c.concat(xa({},i)),r.tip.setPosition(i,t.position.x,t.position.y),!r.polygonHasCreated){var n=e.create_polygon(r);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(t(null,u),r.end())})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.positions=c.concat(xa({},e)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=c.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",r.positions=c.concat(xa({},i)),r.tip.setPosition(i,t.position.x+r.viewer.canvas.width,t.position.y),!r.polygonHasCreated){var n=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}c.push(i),u.push(r.cartesian3Towgs84(i,r.viewer)),r.points_ids.push(r.create_point(i,r._sdk2D.viewer))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(t(null,u),r.end())})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.positions=c.concat(xa({},e)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),u.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t(null,u),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}c.push(n),u.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=c.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.polygonHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)})),material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions.concat(t.positions[0])})),width:3,material:Cesium.Color.fromCssColorString(t.color).withAlpha(1),clampToGround:!0,zIndex:99999999}})),i}}])}(wa),Sa=function(){return _()((function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,t),this.sdk=e,this.viewer=e.viewer,this.height=i.height||70,this.maxHeigh=-1e6,this.precision=i.precision||125,this.Dialog=n,this.result={allArea:"",cutArea:"",cutVolume:"",fillArea:"",fillVolume:"",noArea:""},this.entities=[],this.Draw=new Ea(this.sdk),YJ.Analysis.AnalysesResults.push(this),t.EditBox(this)}),[{key:"create",value:function(){var t=this;this.clean(),this.Draw.start((function(e,i){if(!i||i.length<3){return console.warn("最少需要三个坐标!"),void(window.ELEMENT&&window.ELEMENT.Message({message:"最少需要三个坐标!",type:"warning",duration:1500}))}for(var n=[],o=0;othis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,0),height:o}}},{key:"clean",value:function(){this.Draw&&this.Draw.end();for(var t=0;t\n
            \n
            \n
            \n 绘制分析区域\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 基准高度\n
            \n \n m\n \n
            \n
            \n
            \n 精度\n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 总分析面积:\n 0\n \n
            \n
            \n 无须填挖面积:\n 0\n \n
            \n
            \n
            \n
            \n 填方面积:\n 0\n \n
            \n
            \n 挖方面积:\n 0\n \n
            \n
            \n
            \n
            \n 填方体积:\n 0\n \n
            \n
            \n 挖方体积:\n 0\n \n
            \n
            \n
            \n \n ',e._DialogObject.contentAppChild(i),e._DialogObject._element.body.className=e._DialogObject._element.body.className+" cut-fill",(n=i.querySelector("input[name='height']")).value=e.height,n.addEventListener("blur",(function(t){var i=t.target.value;"."==t.data||"-"==t.data&&!t.target.value||(i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),t.target.min&&iNumber(t.target.max)&&(i=Number(t.target.max)),t.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Pa(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Oa(i=Ma(this,e,[t,n]),Ba,!1),i.sdk=t,i.options={},i.options.name=n.name,i.options.risingSpeed=1,i.options.minWaterLevel=0,i.options.maxWaterLevel=0,i.options.waterVolume=0,i.currentWaterLaver,i.color="#00d9ff66",i.Dialog=o,i.Draw=new Ea(i.sdk),i.positions,i.status=!0,i.area=0,i._elms={},YJ.Analysis.AnalysesResults.push(i),e.EditBox(i),i}return sn()(e,t),_()(e,[{key:"move",value:function(){var t=this;this.TweenAnimate&&TWEEN.remove(this.TweenAnimate),Ta(Ba,this,!1);var e=this._DialogObject._element.body,i=e.getElementsByClassName("pause")[0],n=e.getElementsByClassName("start")[0],s=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},s).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currentWaterLaver=i.waterLevel;case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onComplete((function(){n.style.display="flex",i.style.display="none"})).start(),n.style.display="none",i.style.display="flex"}},{key:"restart",value:function(){var t=this;this.currentWaterLaver=this.options.minWaterLevel,Ta(Ba,this,!1);var e=!1;this.TweenAnimate&&(e=this.TweenAnimate._isPaused,TWEEN.remove(this.TweenAnimate));var i=(this.options.maxWaterLevel-this.options.minWaterLevel)/this.options.risingSpeed*1e3;this.TweenAnimate=new TWEEN.Tween({waterLevel:this.options.minWaterLevel}).to({waterLevel:this.options.maxWaterLevel},i).delay(this.delay).easing(TWEEN.Easing.Linear.None).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.currentWaterLaver=i.waterLevel;case 1:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).start(),e&&this.pause()}},{key:"start",value:function(){var t,e;this.TweenAnimate&&(e=this,(t=Ba).get(Na(t,e))?this.move():this.TweenAnimate._isPlaying?this.TweenAnimate.resume():this.TweenAnimate.start())}},{key:"pause",value:function(){this.TweenAnimate&&this.TweenAnimate.pause()}},{key:"calculateVolumeHeight",value:function(){that.options.maxWaterLevel}},{key:"flyTo",value:function(){if(this.positions&&0!==this.positions.length){ii(this.sdk),ni(this.sdk);for(var t=[],e=0;ei[o].alt&&(t.options.minWaterLevel=i[o].alt),n.push(i[o].lng,i[o].lat);var s=Cesium.Cartesian3.fromDegreesArray(n);t.currentWaterLaver=t.options.minWaterLevel,t.entity=t.sdk.viewer.entities.add({polygon:{hierarchy:new Cesium.PolygonHierarchy(s),height:new Cesium.CallbackProperty((function(){return t.options.minWaterLevel}),!1),extrudedHeight:new Cesium.CallbackProperty((function(){return t.currentWaterLaver}),!1),material:Cesium.Color.fromCssColorString(t.color)}}),t.area=t.computeArea(i),t.TweenAnimate&&(TWEEN.remove(t.TweenAnimate),t.TweenAnimate=null);var a=t._DialogObject._element.body,r=a.getElementsByClassName("pause")[0];a.getElementsByClassName("start")[0].style.display="flex",r.style.display="none"}))}},{key:"EditBox",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d,m;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"淹没分析",left:"180px",top:"100px",closeCallBack:function(){i.destroy(),i.Dialog.closeCallBack&&i.Dialog.closeCallBack()}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" submerge",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 水量\n
            \n \n \n \n
            \n
            \n
            \n 最小水位\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 水面面积\n
            \n \n \n \n
            \n
            \n
            \n 最大水位\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n 上升速度\n
            \n
            \n
            \n \n
            \n \n m/s\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n \n \n \n \n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            序号
            \n
            经度
            \n
            纬度
            \n
            高程
            \n
            \n
            \n
            \n
            \n
            \n
            \n

            暂无数据

            \n
            \n
            \n \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).className="el-button",o.innerHTML="暂停",o.style.width="80px",n.getElementsByClassName("draw")[0].addEventListener("click",(function(){e.create(i)})),n.getElementsByClassName("analog")[0].addEventListener("click",(function(){i.move()})),n.getElementsByClassName("flyto")[0].addEventListener("click",(function(){i.flyTo()})),n.getElementsByClassName("reset")[0].addEventListener("click",(function(){i.restart()})),s=n.getElementsByClassName("pause")[0],r=n.getElementsByClassName("start")[0],s.addEventListener("click",(function(){i.pause(),s.style.display="none",r.style.display="flex"})),r.addEventListener("click",(function(){i.start(),r.style.display="none",s.style.display="flex"})),(l=n.querySelectorAll("input[name='risingSpeed']"))[0].value=i.options.risingSpeed,l[1].value=i.options.risingSpeed,l[0].addEventListener("input",(function(t){Ta(Ba,i,!0),i.options.risingSpeed=Number(t.target.value)})),l[1].addEventListener("input",(function(t){if("."!=t.data){Ta(Ba,i,!0);var e=Number(t.target.value),n=Number(l[0].max),o=Number(l[0].min);i.options.risingSpeed=e>n?n:e999999999&&(e=999999999),e<0&&(e=0),i.options.minWaterLevel=Math.floor(1e4*e)/1e4,i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}})),Object.defineProperty(i.options,"minWaterLevel",{get:function(){return Number(c.value)},set:function(t){c.value=Math.floor(1e4*Number(t))/1e4}}),(u=n.querySelector("input[name='maxWaterLevel']")).value=i.options.maxWaterLevel,u.addEventListener("input",(function(t){if("."!=t.data){Ta(Ba,i,!0);var e=Number(t.target.value);e>999999999&&(e=999999999),e<0&&(e=0),e99999999999999&&(e=99999999999999),e<0&&(e=0),i.options.waterVolume=Math.floor(1e4*e)/1e4,i.area&&(i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel)}})),Object.defineProperty(i.options,"waterVolume",{get:function(){return Number(p.value)},set:function(t){p.value=t}}),(h=n.getElementsByClassName("area")[0]).value=i.area,Object.defineProperty(i,"area",{get:function(){return Number(h.value)},set:function(t){h.value=t,i.waterLevel=Number((i.options.waterVolume/i.area).toFixed(4)),i.options.maxWaterLevel=i.options.minWaterLevel+i.waterLevel}}),d=n.getElementsByClassName("table-body")[0],m=n.getElementsByClassName("table-empty")[0],Object.defineProperty(i,"positions",{get:function(){return i._positions},set:function(t){if(t&&t.length>0){m.style.display="none";for(var e="",i=0;i\n
            '.concat(i+1,'
            \n
            ').concat(Number(t[i].lng.toFixed(10)),'
            \n
            ').concat(Number(t[i].lat.toFixed(10)),'
            \n
            ').concat(Number(t[i].alt.toFixed(4)),"
            \n ");d.innerHTML=e}else d.innerHTML="",m.style.display="flex"}});case 51:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=Da(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type&&(i=Number(i)),t[r.value]=i})),"IMG"==e[n].nodeName?e[n].src=t[r.value]:e[n].value=t[r.value]),t._elms[r.value]?t._elms[r.value].push(e[n]):t._elms[r.value]=[e[n]],s.push(r.name);break;case"@click":e[n].addEventListener("click",(function(e){"function"==typeof t[r.value]&&t[r.value](e)})),s.push(r.name);break;case"@change":o=!0,i.push((function(e){var i=e.target.value;"number"==e.target.type&&""!=i&&(i=Number(i),e.target.value=i),"function"==typeof t[r.value]&&t[r.value](e,i)}))}};for(r.s();!(a=r.n()).done;)l()}catch(t){r.e(t)}finally{r.f()}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Ia(this,e,[t,n])).viewer=t.viewer,i.options={},i.options.viewPosition=n.viewPosition,i.options.viewPositionEnd=n.viewPositionEnd,i.options.horizontalViewAngle=n.horizontalViewAngle||0===n.horizontalViewAngle?n.horizontalViewAngle:90,i.options.verticalViewAngle=n.verticalViewAngle||0===n.verticalViewAngle?n.verticalViewAngle:60,i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i._elms={},i.viewPointHeight=n.viewPointHeight,i.ids=[],i.Dialog=o,i._EventBinding=new wn,i.html=null,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"viewPosition",get:function(){return this.options.viewPosition},set:function(t){this.options.viewPosition=t,this.ids[0]&&(this.viewer.entities.getById(this.ids[0]).position=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt)),this.update()}},{key:"viewPositionEnd",get:function(){return this.options.viewPositionEnd},set:function(t){this.options.viewPositionEnd=t,this.ids[1]&&(this.viewer.entities.getById(this.ids[1]).position=new Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.alt)),this.update()}},{key:"horizontalViewAngle",get:function(){return this.options.horizontalViewAngle},set:function(t){if(this.options.horizontalViewAngle=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content){var e=this._DialogObject._element.content;e.querySelector("input[name='horizontalViewAngle']").value=t,e.getElementsByClassName("range-node-active")[0].getElementsByClassName("range-node-active-text")[0].innerHTML=t+"°",e.getElementsByClassName("range-process")[0].style.width=t/180*100+"%"}this.update()}},{key:"visibleAreaColor",get:function(){return this.options.visibleAreaColor},set:function(t){this.options.visibleAreaColor=t,this.update()}},{key:"invisibleAreaColor",get:function(){return this.options.invisibleAreaColor},set:function(t){this.options.invisibleAreaColor=t,this.update()}},{key:"verticalViewAngle",get:function(){return this.options.verticalViewAngle},set:function(t){this.options.verticalViewAngle=t,this.update()}},{key:"viewDistance",get:function(){var t=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),e=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return Cesium.Cartesian3.distance(t,e)}},{key:"viewHeading",get:function(){var t,e,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return t=o,e=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(t),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,e,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))}},{key:"viewPitch",get:function(){var t,e,i,n,o=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),s=Cesium.Cartesian3.fromDegrees(this.options.viewPositionEnd.lng,this.options.viewPositionEnd.lat,this.options.viewPositionEnd.alt);return t=o,e=s,i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(t),Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,e,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.asin(i.z))}},{key:"add",value:function(){this.createLightCamera(),this.createShadowMap(),this.createPostStage(),this.drawSketch(),e.getcanvas(this)}},{key:"update",value:function(){this.clear(),this.add()}},{key:"clear",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,this.sketch&&(this.viewer.entities.removeById(this.sketch.id),this.sketch=null),this.frustumOutline&&(this.viewer.entities.removeById(this.frustumOutline.id),this.frustumOutline=null),this.postStage&&(this.viewer.scene.postProcessStages.remove(this.postStage),this.postStage=null)}},{key:"destroy",value:function(){var t=this;this.clear(),this.editevent&&this.editevent.destroy(),this.ControllerObject&&this.ControllerObject.destroy(),this.ids.forEach((function(e){t.viewer.entities.removeById(e)})),this.ids=[],this.viewBillboardPrimitive&&this.viewer.scene.primitives.remove(this.viewBillboardPrimitive),this.viewBillboardPrimitive=null,this.options.viewPosition=null,this.options.viewPositionEnd=null,YJ.Measure.SetMeasureStatus(!1),this._originalShadowMap&&(this.viewer.scene.shadowMap=this._originalShadowMap,this._originalShadowMap=null),this.viewer.shadows=this.viewer._shadows}},{key:"nodeEdit",value:function(){var t,e=this;YJ.Measure.GetMeasureStatus()?console.log("上一次测量未结束"):(this.editevent&&this.editevent.destroy(),this.ids.forEach((function(t){e.viewer.entities.getById(t).show=!0})),YJ.Measure.SetMeasureStatus(!0),this.editevent=new X(this.sdk),this.editevent.mouse_left((function(i,n){var o=e.viewer.scene.pick(i.position);o&&o.id&&o.id.id&&-1!=e.ids.indexOf(o.id.id)&&(!t||t.id!=o.id.id)&&(t=o.id,e.viewer.entities.getById(e.ids[0]).position=new Cesium.Cartesian3.fromDegrees(e.viewPosition.lng,e.viewPosition.lat,e.viewPosition.alt),e.viewer.entities.getById(e.ids[1]).position=new Cesium.Cartesian3.fromDegrees(e.viewPositionEnd.lng,e.viewPositionEnd.lat,e.viewPositionEnd.alt),e.ControllerObject&&e.ControllerObject.destroy(),e.ControllerObject=new qo(e.sdk,{position:ja({},e.cartesian3Towgs84(t.position._value,e.sdk.viewer))}),e.ControllerObject.controllerCallBack=function(i,n){i.position.alt<0&&(i.position.alt=0),t.position=new Cesium.Cartesian3.fromDegrees(i.position.lng,i.position.lat,i.position.alt),n&&(0==e.ids.indexOf(o.id.id)?e.viewPosition=i.position:e.viewPositionEnd=i.position,YJ.Measure.SetMeasureStatus(!0))},e.ControllerObject.editTranslational())})),this.editevent.mouse_right((function(i,n){YJ.Measure.SetMeasureStatus(!1),e.editevent&&e.editevent.destroy(),e.ControllerObject&&e.ControllerObject.destroy(),e.ids.forEach((function(t){e.viewer.entities.getById(t).show=!1})),t=null})),this.editevent.mouse_move((function(t,e){})),this.editevent.gesture_pinck_start((function(i,n){var o=new Date;e.editevent.gesture_pinck_end((function(){new Date-o>=500&&(YJ.Measure.SetMeasureStatus(!1),e.editevent&&e.editevent.destroy(),e.ControllerObject&&e.ControllerObject.destroy(),e.ids.forEach((function(t){e.viewer.entities.getById(t).show=!1})),t=null)}))})))}},{key:"createLightCamera",value:function(){if(this.options.viewPosition){this.lightCamera=new Cesium.Camera(this.viewer.scene),this.lightCamera.position=Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),this.lightCamera.frustum.near=.001*this.viewDistance,this.lightCamera.frustum.far=this.viewDistance;var t=Cesium.Math.toRadians(this.horizontalViewAngle),e=Cesium.Math.toRadians(this.verticalViewAngle),i=this.viewDistance*Math.tan(t/2)*2/(this.viewDistance*Math.tan(e/2)*2);this.lightCamera.frustum.aspectRatio=i,this.lightCamera.frustum.fov=t>e?t:e,this.lightCamera.setView({destination:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:{heading:Cesium.Math.toRadians(this.viewHeading||0),pitch:Cesium.Math.toRadians(this.viewPitch||0),roll:0}})}}},{key:"createShadowMap",value:function(){this.shadowMap=new Cesium.ShadowMap({context:this.viewer.scene.context,lightCamera:this.lightCamera,enabled:!0,isPointLight:!0,pointLightRadius:this.viewDistance,cascadesEnabled:!1,size:2048,softShadows:!0,normalOffset:!1,fromLightSource:!1}),this._originalShadowMap||(this._originalShadowMap=this.viewer.scene.shadowMap),this.viewer.scene.shadowMap=this.shadowMap}},{key:"createPostStage",value:function(){var t=this;Number(Cesium.VERSION.split(".")[1])>=102&&gn()("fs");var e=new Cesium.PostProcessStage({fragmentShader:"\n #define USE_CUBE_MAP_SHADOW true\n uniform sampler2D colorTexture;\n uniform sampler2D depthTexture;\n varying vec2 v_textureCoordinates;\n uniform mat4 camera_projection_matrix;\n uniform mat4 camera_view_matrix;\n uniform samplerCube shadowMap_textureCube;\n uniform mat4 shadowMap_matrix;\n uniform vec4 shadowMap_lightPositionEC;\n uniform vec4 shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness;\n uniform vec4 shadowMap_texelSizeDepthBiasAndNormalShadingSmooth;\n uniform float helsing_viewDistance;\n uniform vec4 helsing_visibleAreaColor;\n uniform vec4 helsing_invisibleAreaColor;\n\n struct zx_shadowParameters\n {\n vec3 texCoords;\n float depthBias;\n float depth;\n float nDotL;\n vec2 texelStepSize;\n float normalShadingSmooth;\n float darkness;\n };\n\n float czm_shadowVisibility(samplerCube shadowMap, zx_shadowParameters shadowParameters)\n {\n float depthBias = shadowParameters.depthBias;\n float depth = shadowParameters.depth;\n float nDotL = shadowParameters.nDotL;\n float normalShadingSmooth = shadowParameters.normalShadingSmooth;\n float darkness = shadowParameters.darkness;\n vec3 uvw = shadowParameters.texCoords;\n depth -= depthBias;\n float visibility = czm_shadowDepthCompare(shadowMap, uvw, depth);\n return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness);\n }\n\n vec4 getPositionEC(){\n return czm_windowToEyeCoordinates(gl_FragCoord);\n }\n\n vec3 getNormalEC(){\n return vec3(1.);\n }\n\n vec4 toEye(in vec2 uv,in float depth){\n vec2 xy=vec2((uv.x*2.-1.),(uv.y*2.-1.));\n vec4 posInCamera=czm_inverseProjection*vec4(xy,depth,1.);\n posInCamera=posInCamera/posInCamera.w;\n return posInCamera;\n }\n\n vec3 pointProjectOnPlane(in vec3 planeNormal,in vec3 planeOrigin,in vec3 point){\n vec3 v01=point-planeOrigin;\n float d=dot(planeNormal,v01);\n return(point-planeNormal*d);\n }\n\n float getDepth(in vec4 depth){\n float z_window=czm_unpackDepth(depth);\n z_window=czm_reverseLogDepth(z_window);\n float n_range=czm_depthRange.near;\n float f_range=czm_depthRange.far;\n return(2.*z_window-n_range-f_range)/(f_range-n_range);\n }\n\n float shadow(in vec4 positionEC){\n vec3 normalEC=getNormalEC();\n zx_shadowParameters shadowParameters;\n shadowParameters.texelStepSize=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.xy;\n shadowParameters.depthBias=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.z;\n shadowParameters.normalShadingSmooth=shadowMap_texelSizeDepthBiasAndNormalShadingSmooth.w;\n shadowParameters.darkness=shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness.w;\n vec3 directionEC=positionEC.xyz-shadowMap_lightPositionEC.xyz;\n float distance=length(directionEC);\n directionEC=normalize(directionEC);\n float radius=shadowMap_lightPositionEC.w;\n if(distance>radius)\n {\n return 2.0;\n }\n vec3 directionWC=czm_inverseViewRotation*directionEC;\n shadowParameters.depth=distance/radius-0.0003;\n shadowParameters.nDotL=clamp(dot(normalEC,-directionEC),0.,1.);\n shadowParameters.texCoords=directionWC;\n float visibility=czm_shadowVisibility(shadowMap_textureCube,shadowParameters);\n return visibility;\n }\n\n bool visible(in vec4 result)\n {\n result.x/=result.w;\n result.y/=result.w;\n result.z/=result.w;\n return result.x>=-1.&&result.x<=1.\n &&result.y>=-1.&&result.y<=1.\n &&result.z>=-1.&&result.z<=1.;\n }\n\n void main(){\n // 釉色 = 结构二维(颜色纹理, 纹理坐标)\n gl_FragColor = texture2D(colorTexture, v_textureCoordinates);\n // 深度 = 获取深度(结构二维(深度纹理, 纹理坐标))\n float depth = getDepth(texture2D(depthTexture, v_textureCoordinates));\n // 视角 = (纹理坐标, 深度)\n vec4 viewPos = toEye(v_textureCoordinates, depth);\n // 世界坐标\n vec4 wordPos = czm_inverseView * viewPos;\n // 虚拟相机中坐标\n vec4 vcPos = camera_view_matrix * wordPos;\n float near = .001 * helsing_viewDistance;\n float dis = length(vcPos.xyz);\n if(dis > near && dis < helsing_viewDistance){\n // 透视投影\n vec4 posInEye = camera_projection_matrix * vcPos;\n // 可视区颜色\n // vec4 helsing_visibleAreaColor=vec4(0.,1.,0.,.5);\n // vec4 helsing_invisibleAreaColor=vec4(1.,0.,0.,.5);\n if(visible(posInEye)){\n float vis = shadow(viewPos);\n if(vis > 0.3){\n gl_FragColor = mix(gl_FragColor,helsing_visibleAreaColor,.5);\n } else{\n gl_FragColor = mix(gl_FragColor,helsing_invisibleAreaColor,.5);\n }\n }\n }\n }",uniforms:{shadowMap_textureCube:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_shadowMapTexture")},shadowMap_matrix:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_shadowMapMatrix")},shadowMap_lightPositionEC:function(){return t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState")),Reflect.get(t.shadowMap,"_lightPositionEC")},shadowMap_normalOffsetScaleDistanceMaxDistanceAndDarkness:function(){t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState"));var e=t.shadowMap._pointBias;return Cesium.Cartesian4.fromElements(e.normalOffsetScale,t.shadowMap._distance,t.shadowMap.maximumDistance,0,new Cesium.Cartesian4)},shadowMap_texelSizeDepthBiasAndNormalShadingSmooth:function(){t.shadowMap.update(Reflect.get(t.viewer.scene,"_frameState"));var e=t.shadowMap._pointBias,i=new Cesium.Cartesian2;return i.x=1/t.shadowMap._textureSize.x,i.y=1/t.shadowMap._textureSize.y,Cesium.Cartesian4.fromElements(i.x,i.y,e.depthBias,e.normalShadingSmooth,new Cesium.Cartesian4)},camera_projection_matrix:this.lightCamera.frustum.projectionMatrix,camera_view_matrix:this.lightCamera.viewMatrix,helsing_viewDistance:function(){return t.viewDistance},helsing_visibleAreaColor:Cesium.Color.fromCssColorString(this.visibleAreaColor),helsing_invisibleAreaColor:Cesium.Color.fromCssColorString(this.invisibleAreaColor)}});this.postStage=this.viewer.scene.postProcessStages.add(e)}},{key:"drawFrustumOutline",value:function(){var t=new Cesium.Cartesian3,e=new Cesium.Matrix3,i=new Cesium.Quaternion,n=(this.lightCamera.positionWC,this.lightCamera.directionWC),o=this.lightCamera.upWC,s=this.lightCamera.rightWC;s=Cesium.Cartesian3.negate(s,t);var a=e;Cesium.Matrix3.setColumn(a,0,s,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,n,a);var r=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:r}),id:Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOWGREEN),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumOutline=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:[l],appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1})}))}},{key:"drawSketch",value:function(){this.sketch=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN}}),this.frustumOutline=this.viewer.entities.add({name:"sketch",position:Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),orientation:Cesium.Transforms.headingPitchRollQuaternion(Cesium.Cartesian3.fromDegrees(this.options.viewPosition.lng,this.options.viewPosition.lat,this.options.viewPosition.alt+this.viewPointHeight),Cesium.HeadingPitchRoll.fromDegrees(this.viewHeading-90,this.viewPitch,0)),ellipsoid:{radii:new Cesium.Cartesian3(this.viewDistance,this.viewDistance,this.viewDistance),innerRadii:new Cesium.Cartesian3(1e-4,1e-4,1e-4),minimumClock:Cesium.Math.toRadians(-this.horizontalViewAngle/2),maximumClock:Cesium.Math.toRadians(this.horizontalViewAngle/2),minimumCone:Cesium.Math.toRadians(90-this.verticalViewAngle/2),maximumCone:Cesium.Math.toRadians(90+this.verticalViewAngle/2),fill:!1,outline:!0,subdivisions:256,stackPartitions:1,slicePartitions:1,outlineColor:Cesium.Color.YELLOWGREEN}})}}],[{key:"create",value:function(t){t.destroy();var i=0;function n(){t.ids.forEach((function(e){t.viewer.entities.getById(e).show=!1})),YJ.Measure.SetMeasureStatus(!1),t.tip.destroy(),t.event.destroy(),t.tip=null,t.event=null}YJ.Measure.GetMeasureStatus()?console.log("上一次测量未结束"):(t.event=new X(t.sdk),t.tip=new Z("左键选择观测点位置,右键取消",t.sdk),YJ.Measure.SetMeasureStatus(!0),t.event.mouse_left((function(o,s){t.viewPosition||(t.options.viewPosition=t.cartesian3Towgs84(s,t.viewer),t.ids.push(e.create_point(t,s)),t.tip.set_text("左键选择最远观测点位置,右键取消")),2===++i&&(t.options.viewPositionEnd=t.cartesian3Towgs84(s,t.viewer),t.ids.push(e.create_point(t,s)),n(),t.update())})),t.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.mouse_right((function(e,i){t.ids.forEach((function(e){t.viewer.entities.removeById(e)})),t.ids=[],n()})),t.event.gesture_pinck_start((function(e,i){var o=new Date;t.event.gesture_pinck_end((function(){new Date-o>=500&&(t.ids.forEach((function(e){t.viewer.entities.removeById(e)})),t.ids=[],n())}))})))}},{key:"create_point",value:function(t,e){var i=t.randomString(),n=t.cartesian3Towgs84(e,t.viewer),o={id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return t.viewer.entities.add(new Cesium.Entity(o)),i}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"可视域分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),i.editevent&&i.editevent.destroy(),i.ControllerObject&&i.ControllerObject.destroy(),i.ids.forEach((function(t){i.viewer.entities.removeById(t)}))}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" view-shed",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 位置拾取(起点、终点)\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n 视域夹角\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n 45°\n 90°\n 135°\n 180°\n
            \n
            \n \n
            \n
            \n
            \n
            \n \n ',i._DialogObject.contentAppChild(n),i._DialogObject._element.body.getElementsByClassName("edit")[0].addEventListener("click",(function(){i.nodeEdit()})),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){e.create(i)})),i._DialogObject.footAppChild(o),i.html=n,s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element,(r=n.querySelector("input[name='horizontalViewAngle']")).value=i.options.horizontalViewAngle,l=n.getElementsByClassName("range-node-active")[0],c=l.getElementsByClassName("range-node-active-text")[0],u=n.getElementsByClassName("range-process")[0],p=i.horizontalViewAngle/180*100,l.style.left=p+"%",u.style.width=p+"%",c.innerHTML=i.horizontalViewAngle+"°",r.addEventListener("input",(function(){var t=r.value/180*100;l.style.left=t+"%",u.style.width=t+"%",c.innerHTML=r.value+"°"})),r.addEventListener("change",(function(){clearTimeout(h),h=setTimeout((function(){i.horizontalViewAngle=r.value}),300)}));case 31:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"getcanvas",value:function(t){if(t.viewPosition){t.viewBillboardPrimitive&&(t.viewer.scene.primitives.remove(t.viewBillboardPrimitive),t.viewBillboardPrimitive=null);var e=document.createElement("canvas"),i=e.getContext("2d");e.width=220,e.height=180,e.style.background="#000000";var n=new Image,o=[{images:t.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(t.viewPosition.lng.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(t.viewPosition.lat.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/h.png",text:"高度:"+Number((parseFloat(t.viewPosition.alt.toFixed(2))+Number(t.viewPointHeight)).toFixed(2))+" m"},{images:t.getSourceRootPath()+"/img/bubble/heading.png",text:"偏航角:"+parseFloat(t.viewHeading.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/pitch.png",text:"俯仰角:"+parseFloat(t.viewPitch.toFixed(10))+"°"}];n.src=t.getSourceRootPath()+"/img/bubble/bubble.png";var s=0;n.onload=function(){i.drawImage(n,0,0,e.width,e.height),o.forEach((function(n,a){var r=new Image;r.src=n.images,r.onload=function(){i.drawImage(r,12,12+26*a),i.fillStyle="#fff",i.font="12px Arial",i.fillText(n.text,44,28+26*a),++s===o.length&&(t.viewBillboardPrimitive&&t.viewer.scene.primitives.remove(t.viewBillboardPrimitive),t.viewBillboardPrimitive=t.viewer.scene.primitives.add(new Cesium.BillboardCollection),t.viewBillboardPrimitive.add({position:Cesium.Cartesian3.fromDegrees(t.viewPosition.lng,t.viewPosition.lat,t.viewPosition.alt+t.viewPointHeight),image:e,width:200,height:180,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}))}}))}}}}]);var i}(fi);function Fa(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return za(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?za(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function za(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Va(i=Ha(this,e,[t,n]),Wa,new Map),i.viewer=t.viewer,i.options={},i.options.visibleAreaColor=n.visibleAreaColor||"#008000",i.options.invisibleAreaColor=n.invisibleAreaColor||"#FF0000",i.ids=[],i.primitives=[],i.viewpointPrimitive=null,i._elms={},i.precision=n.precision,i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new wn,i.html=null,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"precision",get:function(){return this.options.precision},set:function(t){var e=Math.floor(Number(t));isNaN(e)?e=20:e<1&&(e=1),this.options.precision=e,this._elms.precision&&this._elms.precision.forEach((function(t){t.value=e}))}},{key:"analyse",value:function(){var t=this,i=[this.center.lng,this.center.lat],n=this.radius/1e3,o=turf.circle(i,n,{steps:180,units:"kilometers",properties:{foo:"bar"}});this.viewpointPrimitive||(this.viewpointPrimitive=this.viewer.scene.primitives.add(new Cesium.PointPrimitiveCollection)),this.viewBillboardPrimitive||(this.viewBillboardPrimitive=this.viewer.scene.primitives.add(new Cesium.BillboardCollection));for(var s=[],a=n/this.precision,r=1;r=s.length){var e=Ga(Wa,t).get(f);e&&clearInterval(e.event)}else!function(t){for(var e=[],n=t,o=0;o.01&&Math.abs(b.position.y-f.y)>.01&&Math.abs(b.position.z-f.z)>.01&&(w=Cesium.Color.RED);var k=new Cesium.GroundPolylineGeometry({positions:Cesium.Cartesian3.fromDegreesArray([].concat(L()(a),L()(r),L()(l),L()(c),L()(a))),width:2}),x=new Cesium.GeometryInstance({geometry:k,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(w),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});e.push(x)}m.primitives.push(m.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:e,appearance:new Cesium.PolylineColorAppearance})))}(d),d+=1}),0);Ga(Wa,this).set(f,{event:v})}},{key:"destroy",value:function(){var t,e,i,n,o=Fa(Ga(Wa,this));try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);clearInterval(a.event)}}catch(t){o.e(t)}finally{o.f()}e=Wa,i=this,n=new Map,e.set(Ua(e,i),n);for(var r=0;r\n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 采样精度\n \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){i.viewer.terrainProvider.availability?e.create(i):window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500})})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"getcanvas",value:function(t){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=220,e.height=140,e.style.background="#000000";var n=new Image,s=[{images:t.getSourceRootPath()+"/img/bubble/lng.png",text:"经度:"+parseFloat(t.center.lng.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/lat.png",text:"纬度:"+parseFloat(t.center.lat.toFixed(10))+"°"},{images:t.getSourceRootPath()+"/img/bubble/h.png",text:"视高:"+t.viewPointHeight+" m"},{images:t.getSourceRootPath()+"/img/bubble/radius.png",text:"半径:"+t.radius+" m"}];n.src=t.getSourceRootPath()+"/img/bubble/bubble.png";var r=0;return new Promise(function(){var t=o()(a.a.mark((function t(o,l){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.onload=function(){i.drawImage(n,0,0,e.width,e.height),s.forEach((function(t,n){var a=new Image;a.src=t.images,a.onload=function(){i.drawImage(a,12,12+26*n),i.fillStyle="#fff",i.font="12px Arial",i.fillText(t.text,44,28+26*n),++r===s.length&&o(e)}}))};case 1:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}())}}]);var i}(fi);function Ja(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function qa(t){for(var e=1;e35?35:200*t;this.arrowWidth=i<15?15:i;this.viewer;this.Draw.start((function(i,n){if(!n||n.length<=2)window.ELEMENT&&window.ELEMENT.Message({message:"至少拥有三个坐标位置!",type:"warning",duration:1500});else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?p:r,l=h>l?h:l}o.push(o[0]);var d=[s,a,r,l],m=turf.polygon([o]),f=turf.squareGrid(d,t,{mask:m});e.createEllipse(f)}}))}},{key:"createNew4Num",value:function(t){var e=this,i=t;this.Draw.start((function(t,n){if(!n||n.length<=2)console.warn("至少拥有三个坐标位置!");else{for(var o=[],s=1e4,a=1e4,r=-1e4,l=-1e3,c=0;cr?p:r,l=h>l?h:l}o.push(o[0]);var d=[s,a,r,l],m=r-s,f=l-a;f=f>m?f:m;var v=turf.polygon([o]),g=turf.area(v);g>5e12?i-=25:g>1e12?i-=20:g>5e11?i-=15:g>1e11?i-=10:g>6e10&&(i-=5);var y=f/i,b=2e3*y>35?35:2e3*y;e.arrowWidth=b<15?15:b;var C=turf.squareGrid(d,y,{units:"degrees",mask:v});e.createEllipse(C)}}))}},{key:"createEllipse",value:function(t){for(var e=[],i=0;i0&&function t(i){Cesium.sampleTerrainMostDetailed(h.viewer.scene.terrainProvider,i).then((function(i){m++;var n=e.slice(m*d,(m+1)*d);n.length>0&&t(n);var o=[],s=i.reduce((function(t,e,i,n){var s=10*i,a=s+10,r=n.slice(s,a);return 0!=r.length&&(o[i]=r),o}),[]);h.calculateSlope(s)}))}(f)}},{key:"createPolygonInsrance",value:function(t,e,i){for(var n=[],o=1;o0?[Cesium.Cartographic.toCartesian(s),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(s)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:r,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}},{key:"calculateSlope",value:function(t){for(var e=this,i=[],n=[],o=0;or&&(r=u,l=c)}var p=new Cesium.Cartographic(a.longitude,a.latitude,0),h=new Cesium.Cartographic(s[l].longitude,s[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(p),Cesium.Cartographic.toCartesian(h)),m=Math.abs(r/d),f=this.calculateSlopeColor(m,.4),v=this.createPolygonInsrance(s,f,m);n.push(v);var g=l>4?s[l-4]:s[l+4],y=s[l],b=this.createArrowInstance(y,a,g,r,m);i.push(b)}var C=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:n,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),w=this.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));this.result.push(w,C),this.event=new X(this.sdk);var k=function(t,i){var n=document.getElementById("SlopeAspect-box");n||((n=document.createElement("div")).id="SlopeAspect-box",n.style.pointerEvents="none",n.style.display="none",n.style.position="absolute",n.style.background="#333333",n.style.color="#fff",n.style.color="#fff",n.style.padding="5px",n.style.fontSize="12px",n.style.borderRadius="5px",n.style.transform="translate(-50%, -10px)",n.innerHTML='\n
            坡度:
            \n \n ',document.body.appendChild(n));var o=n.getElementsByClassName("value")[0],s=qa({},t.position),a=e.sdk.viewer.scene.pick(s);if(a&&a.id&&a.id.type&&"SlopeAspect"===a.id.type){var r=0,l=0;if(e.sdk.viewer&&e.sdk.viewer._element){var c=e.sdk.viewer._element.getElementsByClassName("cesium-widget")[0].getElementsByTagName("canvas")[0];r=c.getBoundingClientRect().top+window.scrollY,l=c.getBoundingClientRect().left+window.scrollX}n.style.display="block",n.style.left=s.x+2+l+"px",n.style.top=s.y-20+r+"px",o.innerHTML="坡度:"+Number(Cesium.Math.toDegrees(a.id.value||0).toFixed(2))+"°"}else n.style.display="none"};this.event.mouse_move((function(t,e){var i={position:qa({},t.endPosition)};k(i)})),this.event.mouse_left(k),this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll},this.sdk.viewer.scene.preRender.addEventListener(this._watchEvent,this)}},{key:"_watchEvent",value:function(){if(this._camera.position.x.toFixed(8)!==this.sdk.viewer.camera.position.x.toFixed(8)||this._camera.position.y.toFixed(8)!==this.sdk.viewer.camera.position.y.toFixed(8)||this._camera.position.z.toFixed(8)!==this.sdk.viewer.camera.position.z.toFixed(8)||this._camera.heading.toFixed(8)!==this.sdk.viewer.camera.heading.toFixed(8)||this._camera.pitch.toFixed(8)!==this.sdk.viewer.camera.pitch.toFixed(8)||this._camera.roll.toFixed(8)!==this.sdk.viewer.camera.roll.toFixed(8)){var t=document.getElementById("SlopeAspect-box");t&&(t.style.display="none")}this._camera={position:this.sdk.viewer.camera.position,heading:this.sdk.viewer.camera.heading,pitch:this.sdk.viewer.camera.pitch,roll:this.sdk.viewer.camera.roll}}},{key:"calculateSlopeColor",value:function(t,e){return t<.00872686779075879?"rgba(85,182,43,"+e+")":t<.03492076949174773?"rgba(135,211,43,"+e+")":t<.08748866352592401?"rgba(204,244,44,"+e+")":t<.2679491924311227?"rgba(245,233,44,"+e+")":t<.7002075382097097?"rgba(255,138,43,"+e+")":t<1.4281480067421144?"rgba(255,84,43,"+e+")":"rgba(255,32,43,"+e+")"}},{key:"destroy",value:function(){var t=this;this.result&&this.result.forEach((function(e){t.viewer.scene.primitives.remove(e)})),this.result=[],this.sdk.viewer.scene.preRender.removeEventListener(this._watchEvent,this)}}])}(fi);function Ka(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var $a=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),window.addEventListener("resize",(function(){i.echartsObject&&i.echartsObject.resize()})),(i=Ka(this,e,[t])).viewer=t.viewer,i.Dialog=n,YJ.Analysis.AnalysesResults.push(i),e.create(i),i}return sn()(e,t),_()(e,[{key:"clean",value:function(){this.end(),this._currentId=null,this.entityHasCreated=!1,this.polyline&&this.viewer.entities.remove(this.polyline),this.tipEntity&&this.viewer.entities.remove(this.tipEntity),this.polyline=null,this.tipEntity=null}},{key:"destroy",value:function(){this.clean(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}}],[{key:"create",value:function(t){var i=this;this._currentId=Cesium.createGuid();var n=this._currentId;if(t.clean(),YJ.Measure.GetMeasureStatus())console.warn("上一次测量未结束");else{YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("左键确定,右键取消",t.sdk),t.event=new X(t.sdk),t.positions=[],t.points_ids=[];var s=[];t.event.mouse_left(function(){var r=o()(a.a.mark((function o(r,l){var c;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:try{t.entityHasCreated||e.create_polyline(t),s.push(l),t.points_ids.push(t.create_point(l)),2==s.length&&(t.end(),c=[],s.forEach((function(e){c.push(t.cartesian3Towgs84(e,t.viewer))})),e.interPoints(t).then((function(o){i._currentId&&i._currentId===n&&(t._DialogObject?e.initEcharts(t,o):e.edit(t,o))})))}catch(t){console.log(t)}case 1:case"end":return o.stop()}}),o)})));return function(t,e){return r.apply(this,arguments)}}()),t.event.mouse_right((function(e,i){s=[],t.clean()})),t.event.mouse_move((function(e,i){t.positions=s.concat(i),t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){if(new Date-n>=500){s=[],t.end()}}))}))}}},{key:"create_polyline",value:function(t){t.entityHasCreated=!0;var e=t.randomString();return t.polyline=t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(t.color),clampToGround:!0,zIndex:99999999}})),e}},{key:"interPoints",value:(n=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D,P;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(i=e.viewer,n=e.positions,o=[],s=[],r=0;rb&&(b=y),(C=parseInt(b/2))>150&&(C=150),C<2&&(C=2),w=f/(C-1),k=0;case 24:if(!(k\n
            \n ',i._DialogObject.contentAppChild(o),(s=document.createElement("button")).innerHTML='重新绘制',s.style.width="auto",s.addEventListener("click",(function(){e.create(i),e.initEcharts(i)})),i._DialogObject.footAppChild(s),e.initEcharts(i,n);case 16:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})},{key:"initEcharts",value:function(t,e){var i,n=[],o=[],s=e;if(s){for(var a=s[s.length-1].distance,r=Math.ceil(a),l=0;l高度:"+n[1]+"m
            坐标:"+i[0].toFixed(5)+","+i[1].toFixed(5)}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",max:r,scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:n,smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}else{var m=t._DialogObject._element.content.getElementsByClassName("profile-echarts")[0];t.echartsObject=echarts.init(m),i={tooltip:{trigger:"axis",textStyle:{align:"left"}},grid:{top:40,bottom:20,left:55,right:30},calculable:!0,xAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{color:"#ffffff"},axisLine:{lineStyle:{color:"#ffffff"}}}],series:[{name:"ProfileLine",type:"line",data:[],smooth:!0,itemStyle:{normal:{color:"#39FDA1"}},lineStyle:{normal:{width:3,color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"rgba(85,254,139,1)"},{offset:.5,color:"rgba(7,252,202,1)"},{offset:1,color:"rgba(14,245,210,1)"}],globalCoord:!1}}},areaStyle:{normal:{color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(102,153,255,1)"},{offset:.8,color:"rgba(102,153,255,0.08)"},{offset:1,color:"rgba(9,173,208,0.15)"}],!1),shadowColor:"rgba(14,245,210,1)",shadowBlur:20}},markPoint:{data:[{type:"max",name:"最高点",label:{color:"#ffffff"}},{type:"min",name:"最低点",label:{color:"#ffffff"}}]}}]}}t.echartsObject.setOption(i)}}]);var i,n}(wa);function Qa(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var tr=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Qa(this,e,[t,n])).viewer=t.viewer,i.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},i.options={},i._elms={},i.viewPointHeight=n.viewPointHeight,i.Dialog=o,i._EventBinding=new wn,YJ.Analysis.AnalysesResults.push(i),e.edit(i),i}return sn()(e,t),_()(e,[{key:"viewPointHeight",get:function(){return this.options.viewPointHeight},set:function(t){var e=Math.floor(10*Number(t))/10;isNaN(e)&&(e=1.8),e<0&&(e=0),this.options.viewPointHeight=e,this._elms.viewPointHeight&&this._elms.viewPointHeight.forEach((function(t){t.value=e}))}},{key:"destroy",value:function(){var t=this;this.resultObject.entities.forEach((function(e){t.viewer.entities.remove(e)})),this.resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null,YJ.Measure.SetMeasureStatus(!1)}}],[{key:"create",value:function(t){if(YJ.Measure.GetMeasureStatus())console.log("上一次测量未结束");else{t._DialogObject&&t._DialogObject.close&&(t._DialogObject.close(),t._DialogObject=null),t.event=new X(t.sdk),t.tip=new Z("左键点击创建视角起点",t.sdk),YJ.Measure.SetMeasureStatus(!0);t.event.mouse_left(function(){var i=o()(a.a.mark((function i(n,o){var s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.tip.set_text("左键创建视角终点,右键结束通视分析"),t.resultObject.viewPoint){i.next=16;break}if(s=t.cartesian3Towgs84(o,t.viewer),!t.sdk.viewer.terrainProvider.availability){i.next=7;break}return i.next=6,Cesium.sampleTerrainMostDetailed(t.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(s.lng,s.lat)]);case 6:r=i.sent;case 7:r&&r[0].height>s.alt&&(s.alt=r[0].height),s.alt=s.alt+t.viewPointHeight,l=Cesium.Cartesian3.fromDegrees(s.lng,s.lat,s.alt),t.resultObject.viewPoint=l,c=t.viewer.entities.add({position:l,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),t.resultObject.objectExclude.push(c),t.resultObject.entities.push(c),i.next=33;break;case 16:t.resultObject.targetPoint=o,u=t.viewer.entities.add({position:o,point:{color:Cesium.Color.YELLOW,pixelSize:5}}),t.resultObject.objectExclude.push(u),t.resultObject.entities.push(u),p=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(t.resultObject.targetPoint,t.resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),h=new Cesium.Ray(t.resultObject.viewPoint,p),d=t.viewer.scene.drillPickFromRay(h),m={},f=0;case 25:if(!(fg?(b=t.viewer.entities.add({polyline:{positions:[t.resultObject.viewPoint,m.position],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),t.resultObject.entities.push(b),C=t.viewer.entities.add({polyline:{positions:[m.position,t.resultObject.targetPoint],material:Cesium.Color.RED,width:3,zIndex:99999999}}),t.resultObject.entities.push(C),t.resultObject.targetPoints.push({targetPoint:o,visual:!1,distance:[v,g,y]})):(w=t.viewer.entities.add({polyline:{positions:[t.resultObject.viewPoint,t.resultObject.targetPoint],material:Cesium.Color.GREEN,width:3,zIndex:99999999}}),t.resultObject.entities.push(w),t.resultObject.targetPoints.push({targetPoint:o,visual:!0,distance:[v,g,y]})));case 33:case"end":return i.stop()}}),i)})));return function(t,e){return i.apply(this,arguments)}}()),t.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y)})),t.event.mouse_right((function(t,e){i()})),t.event.gesture_pinck_start((function(e,n){var o=new Date;t.event.gesture_pinck_end((function(){new Date-o>=500&&i()}))}))}function i(){YJ.Measure.SetMeasureStatus(!1),t.tip.destroy(),t.event.destroy(),t.tip=null,t.event=null}}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null),t.next=3,new W(i.sdk.viewer._container,{title:"多点视线分析",left:"180px",top:"100px",closeCallBack:function(){i.Dialog.closeCallBack&&i.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1)}});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:i._DialogObject._element.body.className=i._DialogObject._element.body.className+" visibility",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 视点高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(n),(o=document.createElement("button")).innerHTML="绘制",o.addEventListener("click",(function(){e.create(i)})),i._DialogObject.footAppChild(o),s=n.getElementsByTagName("*"),i._EventBinding.on(i,s),i._elms=i._EventBinding.element;case 17:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"distance",value:function(t,e){var i=Cesium.Cartographic.fromCartesian(t),n=Cesium.Cartographic.fromCartesian(e),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,n);var s=o.surfaceDistance;return s=Math.sqrt(Math.pow(s,2)+Math.pow(n.height-i.height,2))}}]);var i}(fi),er=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.viewer=e.viewer;var n=this.viewer.terrainProvider.availability;if(!n)return this.error="未加载地形数据!",window.ELEMENT&&window.ELEMENT.Message({message:"未加载地形数据!",type:"warning",duration:1500}),void console.warn(this.error);this.positions=i.positions,this.interfaceNum=i.interfaceNum||25,this.colorFill=i.colorFill||["#8CEA00","#B7FF4A","#FFFF37","#FFE66F","#FFD1A4","#FFCBB3","#FFBD9D","#FFAD86","#FF9D6F","#FF8F59","#FF8040","#FF5809","#F75000","#D94600","#BB3D00","#A23400","#842B00","#642100","#4D0000","#2F0000"],this.countorLineList=Cesium.defaultValue(i.countorLineList,[]),YJ.Analysis.AnalysesResults.push(this),this.createNewLine()}return _()(t,[{key:"type",get:function(){return"ContourAnalysis"}},{key:"createNewLine",value:function(){t.interpolatePoint(this)}},{key:"getObjectIndex",value:function(t,e){for(var i=0;ie)return i}},{key:"clear",value:function(t){if(t){this.viewer.dataSources.remove(t);var e=this.countorLineList.indexOf(t);this.countorLineList.splice(e,1)}}},{key:"destroy",value:function(){var t=this;this.countorLineList.forEach((function(e){t.viewer.dataSources.remove(e)})),this.countorLineList=[]}}],[{key:"interpolatePoint",value:function(t){for(var e=t.positions,i=[],n={minX:360,maxX:-360,minY:180,maxY:-180},o=0;o2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=or(this,e,[t,o])).viewer=t.viewer,n.tiles3d=i,n.options=nr({},o),n.options.regionsType=n.options.regionsType||!1,YJ.Analysis.SectionResults.push(n),n.Planes=[],e.start(n),n}return sn()(e,t),_()(e,[{key:"regionsType",get:function(){return this.options.regionsType},set:function(t){this.options.regionsType=t,this.Planes.length>0&&(this.Planes=[],e.planeCollection(this))}},{key:"destroy",value:function(){this.Planes=[],this.tiles3d.clippingPlanes&&(this.tiles3d.clippingPlanes.enabled=!1,this.tiles3d.clippingPlanes.removeAll())}}],[{key:"start",value:function(t){var i=t.options.positions||[];if(!t.isConvex(i))return window.ELEMENT&&window.ELEMENT.Message({message:"不支持凹多边形",type:"warning",duration:1500}),void console.log("不支持凹多边形");t.inverseTransform=function(t){var e,i=t.root.transform;e=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(t.boundingSphere.center):Cesium.Matrix4.fromArray(t.root.transform);return Cesium.Matrix4.inverseTransformation(e,new Cesium.Matrix4)}(t.tiles3d),t.Planes=[];var n=[];if(i.length>0){for(var o=0;o=0;n--)0===n?t.Planes.push(a(e[n],e[e.length-1],t.inverseTransform)):t.Planes.push(a(e[n],e[n-1],t.inverseTransform));if(t.tiles3d.clippingPlanes){t.tiles3d.clippingPlanes.removeAll();for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(i=ar(this,e,[t])).viewer=t.viewer,i.options=n||{},i.options.height=i.options.height||0===i.options.height?i.options.height:10,i.options.show=!i.options.show&&!1!==i.options.show||i.options.show,i.bottomImg=i.getSourceRootPath()+"/img/excavationregion_top.jpg",i.wallImg=i.getSourceRootPath()+"/img/excavationregion_side.jpg",i.splitNum=Cesium.defaultValue(n.splitNum,50),i.Draw=new Ea(i.sdk),i.bottomMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#735d4f"))}),i.wallMaterial=Cesium.Material.fromType("Color",{color:Cesium.Color.fromAlpha(Cesium.Color.fromCssColorString("#976b4e"))});var o=new Image,s=new Image;return o.src=i.bottomImg,s.src=i.wallImg,o.crossOrigin="Anonymous",s.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas");t.width=o.width,t.height=o.height,t.getContext("2d").drawImage(o,0,0,o.width,o.height);var e=t.toDataURL("image/jpg");i.bottomMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:e}}}),i.bottomSurface&&(i.bottomSurface.appearance.material=i.bottomMaterial)},s.onload=function(){var t=document.createElement("canvas");t.width=s.width,t.height=s.height,t.getContext("2d").drawImage(s,0,0,s.width,s.height);var e=t.toDataURL("image/jpg");i.wallMaterial=new Cesium.Material({fabric:{type:"Image",uniforms:{image:e}}}),i.wellWall&&(i.wellWall.appearance.material=i.wallMaterial)},i.init(),i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t,this.switchExcavate(t)}},{key:"height",get:function(){return this.options.height},set:function(t){this.options.height=t}},{key:"init",value:function(){e.edit(this,!0)}},{key:"startCreate",value:function(){var t=this;this.Draw.start((function(e,i){if(i&&!(i.length<=2))return t.isConvex(i)?void t.updateData(i):(window.ELEMENT&&window.ELEMENT.Message({message:"不支持凹多边形",type:"warning",duration:1500}),void console.log("不支持凹多边形"));window.ELEMENT&&window.ELEMENT.Message({message:"至少拥有三个坐标位置!",type:"warning",duration:1500})}))}},{key:"updateData",value:function(t){var e=this.viewer;this.clear();for(var i=[],n=[],o=0;o=0;t--)this.viewer.scene.primitives.remove(rr[t]);rr=[],this.Draw&&this.Draw.end()}},{key:"destroy",value:function(){this.clear()}},{key:"prepareWell",value:function(t){for(var e=t.length,i=this.excavateMinHeight-this.height,n=[],o=[],s=[],a=0;a\n
            \n
            \n
            \n 挖掘高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 绘制开挖区域\n \n
            \n
            \n 清除开挖区域\n \n
            \n
            \n
            \n ',e._DialogObject.contentAppChild(n),n.getElementsByClassName("start-excavation")[0].addEventListener("click",(function(){e.startCreate()})),n.getElementsByClassName("clean-excavation")[0].addEventListener("click",(function(){e.clear()})),(o=n.querySelector("input[name='height']")).value=e.height,o.addEventListener("change",(function(t){var i=t.target.value;(i=Number(i))<.01&&(i=.01,t.target.value=i,e.height=i)})),o.addEventListener("blur",(function(t){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)&&(i=Number(t.target.max)),i<.01&&(i=.01),t.target.value=i,e.height=i})),t.next=22;break;case 21:e._DialogObject&&e._DialogObject.close&&(e._DialogObject.close(),e._DialogObject=null);case 22:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]);var i}(fi);function cr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ur(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(k()(this,e),n=pr(this,e,[t]),C()(n,"getUniqueArray",(function(t){return t.filter((function(t,e,i){return i.indexOf(t,0)===e}))})),!i||!n.sdk||!n.sdk.viewer)return tn()(n);if(n.options=ur({},o),n.options.id=o.id||n.randomString(),n.options.name=o.name||"压平面",n.options.positions=o.positions||[],n.options.show=!o.show&&!1!==o.show||o.show,n.tileset=i,n.Dialog=s,!n.options.height&&0!==n.options.height){for(var a=n.options.positions[0].alt,r=0;rn.options.positions[r].alt&&(a=n.options.positions[r].alt);n.options.height=a}return hr[n.tileset.id]?hr[n.tileset.id].push(ur({},n.options)):hr[n.tileset.id]=[ur({},n.options)],n.center=i.boundingSphere.center.clone(),n.center84=n.cartesian3Towgs84(n.center,n.sdk.viewer),n.matrix=Cesium.Transforms.eastNorthUpToFixedFrame(n.center.clone()),n.localMatrix=Cesium.Matrix4.inverse(n.matrix,new Cesium.Matrix4),n.addFlat(),n}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t;for(var e=0;e= max(p1[1], p2[1])){\n continue;\n }\n float x = p1[0] + ((point[1] - p1[1]) * (p2[0] - p1[0])) / (p2[1] - p1[1]);\n if(x > point[0]){\n nCross++;\n }\n }\n return int(mod(float(nCross), float(2))) == 1;\n }\n ")})),n}},{key:"updateShader",value:function(t,e){var i=new Cesium.CustomShader({uniforms:{u_tileset_localToWorldMatrix:{type:Cesium.UniformType.MAT4,value:this.matrix},u_tileset_worldToLocalMatrix:{type:Cesium.UniformType.MAT4,value:this.localMatrix},u_flatHeight:{type:Cesium.UniformType.FLOAT,value:this.flatHeight}},vertexShaderText:"\n // 所有isPointInPolygon函数\n ".concat(t,"\n void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput){\n vec3 modelMC = vsInput.attributes.positionMC;\n vec4 model_local_position = vec4(modelMC.x, modelMC.y, modelMC.z, 1.0);\n vec4 tileset_local_position = u_tileset_worldToLocalMatrix * czm_model * model_local_position;\n vec2 position2D = vec2(tileset_local_position.x,tileset_local_position.y);\n float ground_z = 0.0;\n // 多个多边形区域\n ").concat(e,"\n }")});this.tileset.customShader=i,this.sdk.viewer.scene.requestRender()}},{key:"cartesiansToLocal",value:function(t){for(var e=[],i=0;i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 压平高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n ',this._DialogObject.contentAppChild(i),(n=i.getElementsByClassName("input-name")[0]).value=this.options.name,n.addEventListener("input",(function(){r.name=n.value})),(o=i.getElementsByClassName("flat-height")[0]).value=this.options.height,o.addEventListener("input",(function(){r.height=Number(o.value),r.addFlat()})),(s=document.createElement("button")).className="btn",s.innerHTML="确认",this._DialogObject.footAppChild(s),s.addEventListener("click",(function(){r.options.name||(r.options.name="压平面"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.options)})),t.next=24;break;case 23:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 24:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"reset",value:function(){this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.height=this.options.height,this.addFlat()}},{key:"flatEdit",value:function(t){if(t){for(var e=that.options.positions,i=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{text:"左键开始,右键结束;"};return k()(this,e),(i=vr(this,e,[t,n])).options=fr({},n),i.event=new X(t),i.tip=new Z(n.text,t),i.viewer=t.viewer,i.defaultColor="rgba(246,49,49,0.55)",i.ids=[],YJ.Measure.Measures.push(i),i._isDestroy=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(){this.setPickStatus(!1),YJ.Measure.SetMeasureStatus(!0)}},{key:"destroy",value:function(){var t=this;this._isDestroy=!0,this.end(),this.ids.forEach((function(e){t.remove_entity(e)}))}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=null,this.event=null}},{key:"create_point",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.randomString(),n=this.cartesian3Towgs84(t,this.viewer);return this.viewer.entities.add(new Cesium.Entity({id:i,position:Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),billboard:{show:e,image:this.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}})),i}},{key:"remove_entity",value:function(t){this.viewer.entities.removeById(t)}}])}(fi);function yr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return br(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?br(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function br(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Cr(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(r=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=yr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return r.apply(this,arguments)})},{key:"computeDisByTowPoint",value:(s=o()(a.a.mark((function t(i,n){var s,r,l,c,u=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=this.computeDistance2([i,n]),r=10,l=function(t){if(!u._isDestroy){var i=u.getLabel("贴地距离:"+Number(t).toFixed(2)+"米");i.pixelOffset=new Cesium.Cartesian2(0,-32),u.ids.push(e.create_point(Cesium.Cartesian3.fromDegrees(n.lng,n.lat,n.alt),{label:i},u))}},c=function(){var t=o()(a.a.mark((function t(e){var o,s,r,c,p,h,d,m,f,v;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=u.chunkLine([i,n],e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=[],c=yr(s),t.prev=5,c.s();case 7:if((p=c.n()).done){t.next=16;break}return h=p.value,d=s.indexOf(h),t.next=12,u.sampleHeight({lng:h[0],lat:h[1],alt:0},d);case 12:m=t.sent,r.push(m);case 14:t.next=7;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(5),c.e(t.t0);case 21:return t.prev=21,c.f(),t.finish(21);case 24:f=0,v=r.length-1,r.forEach((function(t,e){if(e!==v){var i=u.computeDistance2([t.position,r[e+1].position]),n=Math.abs(t.position.alt-r[e+1].position.alt),o=Math.sqrt(i*i+n*n);f+=o}})),l(f);case 28:case"end":return t.stop()}}),t,null,[[5,18,21,24]])})));return function(e){return t.apply(this,arguments)}}(),!(s>2)){t.next=10;break}return r=s/20,t.next=8,c(r);case 8:t.next=17;break;case 10:if(!(s<1)){t.next=14;break}l(s),t.next=17;break;case 14:return r=1,t.next=17,c(r);case 17:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getClampToHeight(e,L()(this.sdk.viewer.entities.values));case 2:return n=t.sent,e.alt=n,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),wr(e,"destroy",this,3)([])}},{key:"end",value:function(){wr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20}),zIndex:99999999}})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s,r}(gr);function xr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return _r(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Er(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(s=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=xr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:return n=t.sent,e.alt=n[0].height,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n():i(a,o)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Sr(e,"destroy",this,3)([])}},{key:"end",value:function(){Sr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20})},zIndex:99999999})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s}(gr);function Pr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Or(this,e,[t,n])).options.color=i.options.color||"#00ffff",i.start_id="",i.end_id="",i.polyline_id="",i.clampPositions=[],i.event=new X(t),i}return sn()(e,t),_()(e,[{key:"clampToGroundMeasure",value:(s=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],this.ids.forEach((function(t,e){var i=d.viewer.entities.getById(t).position.getValue();n.push(d.cartesian3Towgs84(i,d.viewer))})),o=this.chunkLine(n,e),s=[],o.forEach((function(t,e){0===e?s=L()(t.geometry.coordinates):s.push(t.geometry.coordinates[1])})),r=s.length,l=Pr(s),t.prev=7,l.s();case 9:if((c=l.n()).done){t.next=18;break}return u=c.value,p=s.indexOf(u),t.next=14,this.getHeight({lng:u[0],lat:u[1],alt:0},p,r);case 14:h=t.sent,i(null,h);case 16:t.next=9;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(7),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:case"end":return t.stop()}}),t,this,[[7,20,23,26]])}))),function(t,e){return s.apply(this,arguments)})},{key:"sampleHeight",value:(n=o()(a.a.mark((function t(e,i){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:return n=t.sent,e.alt=n[0].height,t.abrupt("return",{position:e,index:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"getHeight",value:(i=o()(a.a.mark((function t(e,i,n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sampleHeightMostDetailed([e]);case 2:if(o=t.sent,e.alt=o[0].height,this.clampPositions.push({position:e,index:i}),n!==this.clampPositions.length){t.next=8;break}return s=this.startCompute(),t.abrupt("return",{total:n,current:this.clampPositions.length,total_length:s});case 8:return t.abrupt("return",{total:n,current:this.clampPositions.length});case 9:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"startCompute",value:function(){var t=this;this.clampPositions.sort((function(t,e){return t.index=500?n(0,o):i(a,o)}))}))}}},{key:"computeAngle",value:function(t,i){var n=this.computeDistance2([t,i]),o=Math.abs(t.alt-i.alt),s=n/Math.sqrt(n*n+o*o),a=Math.acos(s),r=this.radiansToDegrees(a),l=this.getLabel("坡度:"+r.toFixed(2)+"°");l.pixelOffset=new Cesium.Cartesian2(0,-32),this.ids.push(e.create_point(Cesium.Cartesian3.fromDegrees(i.lng,i.lat,i.alt),{label:l},this))}},{key:"destroy",value:function(){var t=this;[this.polyline_id,this.end_id,this.start_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Tr(e,"destroy",this,3)([])}},{key:"end",value:function(){Tr(e,"end",this,3)([])}}],[{key:"createPolyline",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:3,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),dashLength:20}),zIndex:99999999}})),e}},{key:"create_point",value:function(t,e,i){var n=e.label,o=e.image,s=void 0===o?"point.png":o,a=e.width,r=e.height,l=i.randomString(),c=i.cartesian3Towgs84(t,i.viewer);return n&&(n.pixelOffset=new Cesium.Cartesian2(0,-(r||32))),i.viewer.entities.add(new Cesium.Entity({id:l,label:n,position:Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt),billboard:{image:i.getSourceRootPath()+"/img/"+s,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:a,height:r}})),l}}]);var i,n,s}(gr);function Br(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Lr(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Ar(this,e,[t,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){jr(e,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i,n=0,o=0,s=function(s,a){0===t.ids.length&&(t.polygon_id=e.create_polygon(t)),t.cachePositions.push(Lr({},a)),t.ids.push(t.create_point(Lr({},a),!1));var r=t.cartesian3Towgs84(Lr({},a),t.viewer);if(r.alt>n&&(n=r.alt),t.positions=t.cachePositions.concat(Lr({},a)),t.tip.setPosition(Lr({},a),s.position.x,s.position.y),t.positions.length>2){var l=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);l.push({lng:i.lng,lat:i.lat})}));var c=t.computeCenter(l),u=t.computeArea(l);o=u,t.center=new Cesium.Cartesian3.fromDegrees(c.lng,c.lat,n),i=t.center,t.text="投影面积:"+u+" ㎡"}};this.event.mouse_left(s),this.event.mouse_move((function(e,i){if(t.tip.setPosition(Lr({},i),e.endPosition.x,e.endPosition.y),t.positions=t.cachePositions.concat(Lr({},i)),t.positions.length>2){var o=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);o.push({lng:i.lng,lat:i.lat})}));var s=t.computeCenter(o),a=t.computeArea(o);t.center=new Cesium.Cartesian3.fromDegrees(s.lng,s.lat,n),t.text="投影面积:"+a+" ㎡"}})),this.event.mouse_right((function(e,n){if(t.positions=t.cachePositions,t.center=i,t.positions.length<3){t.text="";console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),t.destroy()}else t.text="投影面积:"+o+" ㎡";t.end()})),this.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?(t.positions=t.cachePositions,t.end()):s(o,i)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polygon_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),jr(e,"destroy",this,3)([])}},{key:"end",value:function(){jr(e,"end",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),t.viewer.entities.add(new Cesium.Entity({id:e,label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return t.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)}),!1),material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions.length?t.positions.concat(t.positions[0]):t.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.lineColor||t.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return e}}])}(gr);function Rr(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Fr(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=zr(this,e,[t,n])).options.lineColor="#ffdf53",i.polygon_id="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Hr(e,"start",this,3)([]),this.ids=[],this.positions=[],this.text="",this.center=new Cesium.Cartesian3,this.cachePositions=[];var i=0,n=function(n,o){0===t.ids.length&&(t.polygon_id=e.create_polygon(t)),t.cachePositions.push(Fr({},o)),t.ids.push(t.create_point(Fr({},o),!1));var s=t.cartesian3Towgs84(Fr({},o),t.viewer);s.alt>i&&(i=s.alt),t.positions=t.cachePositions.concat(Fr({},o)),t.tip.setPosition(Fr({},o),n.position.x,n.position.y)},o=function(e,n){if(t.positions=t.cachePositions,t.positions.length>2){var o=[];t.positions.forEach((function(e){var i=t.cartesian3Towgs84(e,t.viewer);o.push({lng:i.lng,lat:i.lat})})),setTimeout((function(){var e=t.computeCenter(o),n=t.computeSignedArea(t.viewer,o);t.center=new Cesium.Cartesian3.fromDegrees(e.lng,e.lat,i),t.text="贴地面积:"+n+" ㎡"}),0)}else{console.warn("面积计算至少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"面积计算至少需要三个坐标!",type:"warning",duration:1500}),t.destroy()}t.end()};this.event.mouse_left(n),this.event.mouse_move((function(e,i){t.tip.setPosition(Fr({},i),e.endPosition.x,e.endPosition.y),t.positions=t.cachePositions.concat(Fr({},i))})),this.event.mouse_right(o),this.event.gesture_pinck_start((function(e,i){var s=new Date,a={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-s>=500?o():n(a,i)}))}))}}},{key:"destroy",value:function(){var t=this;[this.polygon_id].concat(L()(this.ids)).forEach((function(e){t.remove_entity(e)})),Hr(e,"destroy",this,3)([])}},{key:"end",value:function(){Hr(e,"end",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();new Cesium.NearFarScalar(2e3,1,1e5,0),t.viewer.entities.add(new Cesium.Entity({id:e,label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#ffffff"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM},position:new Cesium.CallbackProperty((function(){return t.center}),!1),polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)}),!1),material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions.length?t.positions.concat(t.positions[0]):t.positions}),!1),width:2,material:new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString(t.options.lineColor||t.defaultColor),dashLength:20}),clampToGround:!0,zIndex:99999999}}));return e}}])}(gr);function Gr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Ur(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Wr=function(t){function e(t){return k()(this,e),Gr(this,e,[t])}return sn()(e,t),_()(e,[{key:"cal_center",value:function(t){var e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.computeCenter([e,i]);return Cesium.Cartesian3.fromDegrees(n.lng,n.lat,(e.alt+i.alt)/2)}},{key:"cal_distance",value:function(t){var e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.computeDistance2([e,i]);return e.alt=e.alt.toFixed(2),i.alt=i.alt.toFixed(2),e.alt===i.alt?n:0===Number(n)?Math.abs(e.alt-i.alt).toFixed(2):Math.sqrt(n*n+Math.pow(Math.abs(e.alt-i.alt).toFixed(2),2)).toFixed(2)}},{key:"createPolyline",value:function(t){var e=this,i=this.id_map.get(t);this.viewer.entities.add(new Cesium.Entity({id:t,position:new Cesium.CallbackProperty((function(){return 2===i.positions.length?e.cal_center(i.positions):Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(){return 2===i.positions.length?e.cal_distance(i.positions)+"米":"0米"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-10),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(){return i.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999}})),this.ids.push(t)}},{key:"create_angle_label",value:function(t,e,i,n){var o=this,s=new Cesium.Entity({id:i,position:new Cesium.CallbackProperty((function(){return 2===t.length?o.cal_point(t,e):Cesium.Cartesian3()})),label:{text:new Cesium.CallbackProperty((function(){return 2===t.length?o.cal_angle(t,e,n)+"°":"0°"}),!1),scale:1,fillColor:Cesium.Color.RED,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(15,-10)}});this.viewer.entities.add(s)}},{key:"cal_point",value:function(t,e){for(var i=0;i=500?t.end():r(o,i)}))}))}}},{key:"end",value:function(){Ur(e,"end",this,3)([])}},{key:"destroy",value:function(){Ur(e,"destroy",this,3)([])}}])}(gr);function Yr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Jr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var qr=function(t){function e(t){var i;return k()(this,e),(i=Yr(this,e,[t,{text:""}])).defaultColor="#f11515",i.locationID=i.randomString(),i.position=new Cesium.Cartesian3,i.text="",i}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Jr(e,"start",this,3)([]),this.cache_id=e.create_point(this),e.createLocation(this);var i=function(e,i){t.position=i;var n=t.viewer.entities.getById(t.locationID);n&&(n.show=!0);var o=t.cartesian3Towgs84(i,t.viewer),s=li();if("EPSG:4326"===s)t.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=t.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);t.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}t.end()};this.event.mouse_left(i),this.event.mouse_right((function(e,i){t.destroy(),t.end()})),this.event.mouse_move((function(e,i){t.tip.setPosition(i,e.endPosition.x,e.endPosition.y);var n=t.viewer.entities.getById(t.locationID);n&&(n.show=!0),t.position=i;var o=t.cartesian3Towgs84(i,t.viewer),s=li();if("EPSG:4326"===s)t.text="经度:".concat(Number(o.lng.toFixed(8)),"\n纬度:").concat(Number(o.lat.toFixed(8)),"\n海拔:").concat(Number(o.alt.toFixed(2)));else{var a=t.convert([{x:o.lng,y:o.lat,z:o.alt}],"EPSG:4326",s);t.text="x:".concat(Number(a.points[0].x.toFixed(8)),"\ny:").concat(Number(a.points[0].y.toFixed(8)),"\nz:").concat(Number(a.points[0].z.toFixed(2)))}})),this.event.gesture_pinck_start((function(e,n){var o=new Date;e.position1.x,e.position2.x,e.position1.y,e.position2.y;t.event.gesture_pinck_end((function(){new Date-o>=500?(t.destroy(),t.end()):i(0,n)}))}))}}},{key:"destroy",value:function(){this.remove_entity(this.locationID),this.remove_entity(this.cache_id),Jr(e,"destroy",this,3)([])}},{key:"end",value:function(){Jr(e,"end",this,3)([])}}],[{key:"createLocation",value:function(t){t.viewer.entities.add(new Cesium.Entity({id:t.locationID,show:!1,position:new Cesium.CallbackProperty((function(){return t.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),font:"22px Microsoft YaHei",fillColor:new Cesium.Color.fromCssColorString(t.defaultColor),style:Cesium.LabelStyle.FILL_AND_OUTLINE,horizontalOrigin:Cesium.HorizontalOrigin.LEFT,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(-100,-50)},billboard:{image:t.getSourceRootPath()+"/img/location.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,width:48,height:48}}))}},{key:"create_point",value:function(t){var e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,position:new Cesium.CallbackProperty((function(){return t.position}),!1),billboard:C()({image:t.getSourceRootPath()+"/img/point.png",color:Cesium.Color.fromCssColorString("rgba(255,255,255,0.99)"),verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY},"color",Cesium.Color.WHITE.withAlpha(.99))})),e}}])}(gr);function Xr(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Zr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Kr=function(t){function e(t){return k()(this,e),Xr(this,e,[t,{text:"左键开始,右键取消"}])}return sn()(e,t),_()(e,[{key:"start",value:function(){var t=this;if(!YJ.Measure.GetMeasureStatus()){Zr(e,"start",this,3)([]),this.positions=[],this.position=new Cesium.Cartesian3,this.height=0,this.text="",this.circleRadius=0;var i=0;this.firstpoint=null;var n=function(n,o){if(null===t.firstpoint&&(t.positions.push(o),t.firstpoint=t.cartesian3Towgs84(o,t.viewer),t.ids.push(e.create_polygon(t)),t.ids.push(e.create_point(t,o))),i++,t.tip.setPosition(o,n.position.x,n.position.y),2===i){if(t.firstpoint){var s=t.cartesian3Towgs84(o,t.viewer);t.positions[1]=Cesium.Cartesian3.fromDegrees(t.firstpoint.lng,t.firstpoint.lat,s.alt),t.positions[2]=o,t.position=t.positions[1],t.circleRadius=t.computeDistance2([t.firstpoint,s]),t.height=Number((s.alt-t.firstpoint.alt).toFixed(2)),t.text="相对高度:"+t.height+" 米",t.tip.set_text("左键完成,右键取消;半径:"+t.circleRadius+" 米")}t.ids.push(e.create_point(t,o,{label:{text:"半径:"+t.circleRadius+" 米"}})),t.end()}};this.event.mouse_left(n),this.event.mouse_move((function(e,i){if(t.tip.setPosition(i,e.endPosition.x,e.endPosition.y),t.firstpoint){var n=t.cartesian3Towgs84(i,t.viewer);t.positions[1]=Cesium.Cartesian3.fromDegrees(t.firstpoint.lng,t.firstpoint.lat,n.alt),t.positions[2]=i,t.position=t.positions[1],t.circleRadius=t.computeDistance2([t.firstpoint,n]),t.height=Number((n.alt-t.firstpoint.alt).toFixed(2)),t.text="相对高度:"+t.height+" 米",t.tip.set_text("左键完成,右键取消;半径:"+t.circleRadius+" 米")}})),this.event.mouse_right((function(e,i){t.end(),t.destroy()})),this.event.gesture_pinck_start((function(e,i){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?(t.end(),t.destroy()):n(s,i)}))}))}}},{key:"end",value:function(){Zr(e,"end",this,3)([])}},{key:"destroy",value:function(){Zr(e,"destroy",this,3)([])}}],[{key:"create_polygon",value:function(t){var e=t.randomString();t.viewer.entities.add(new Cesium.Entity({id:e,billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)},position:new Cesium.CallbackProperty((function(){return t.position}),!1),label:{text:new Cesium.CallbackProperty((function(){return t.text}),!1),scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15),disableDepthTestDistance:Number.POSITIVE_INFINITY},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions}),!1),width:2,material:Cesium.Color.YELLOW,zIndex:99999999},ellipse:{height:new Cesium.CallbackProperty((function(){return t.height+t.firstpoint.alt}),!1),semiMinorAxis:new Cesium.CallbackProperty((function(e){return t.circleRadius}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(e){return t.circleRadius}),!1),material:new Cesium.Color.fromCssColorString(t.defaultColor)}}));return e}},{key:"create_point",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.randomString(),o=t.cartesian3Towgs84(e,t.viewer),s={id:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,o.alt),billboard:{image:t.getSourceRootPath()+"/img/point.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}};return i.label&&(s.label={text:i.label.text,scale:1,font:"normal 20px MicroSoft YaHei",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,style:Cesium.LabelStyle.FILL_AND_OUTLINE,pixelOffset:new Cesium.Cartesian2(0,-15)}),t.viewer.entities.add(new Cesium.Entity(s)),n}}])}(gr);function $r(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Qr(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var tl=function(t){function e(t){var i;return k()(this,e),(i=$r(this,e,[t,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return sn()(e,t),_()(e,[{key:"createPolyline",value:function(){var t=this,e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}})),e}},{key:"end",value:function(){Qr(e,"end",this,3)([])}},{key:"destroy",value:function(){var t=this;Qr(e,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(e){e&&t.remove_entity(e)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.cartesian3Towgs84(t[0],this.viewer),i=this.cartesian3Towgs84(t[1],this.viewer),n=this.cartesian3Towgs84(t[2],this.viewer),o=turf.point([e.lng,e.lat]),s=turf.point([i.lng,i.lat]),a=turf.point([n.lng,n.lat]),r={units:"kilometers"},l=turf.rhumbDistance(o,s,r),c=turf.rhumbDistance(a,s,r),u=l;l>c&&(u=c);var p=turf.rhumbBearing(o,s),h=turf.rhumbBearing(a,s),d=Math.abs((p-h+360)%360);this.bearing=d>180?360-d:d,this.bearing=this.bearing.toFixed(2);var m=p-180,f=h-180,v=turf.lineArc(s,u/3,f,m);d>180&&(v=turf.lineArc(s,u/3,m,f));for(var g=[],y=0;y2&&t.caculateAngle([t.positions[0],t.positions[1],t.positions[2]])})),this.event.mouse_right((function(e,i){t.cancel()})),this.event.gesture_pinck_start((function(e,n){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?t.cancel():i(s,n)}))}))}}}])}(gr);function el(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function il(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var nl=function(t){function e(t){var i;return k()(this,e),(i=el(this,e,[t,{text:"左键开始,右键取消"}])).cachePositions=[],i.positions=[],i.arcPositions=[],i.line_id="",i.label_id="",i.arc_id="",i.bearing=0,i}return sn()(e,t),_()(e,[{key:"createPolyline",value:function(){var t=this,e=t.randomString();return t.viewer.entities.add(new Cesium.Entity({id:e,polyline:{positions:new Cesium.CallbackProperty((function(){return t.positions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}})),e}},{key:"end",value:function(){il(e,"end",this,3)([])}},{key:"destroy",value:function(){var t=this;il(e,"destroy",this,3)([]),[this.line_id,this.label_id,this.arc_id].forEach((function(e){e&&t.remove_entity(e)}))}},{key:"cancel",value:function(){this.end(),this.destroy()}},{key:"caculateAngle",value:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=this.cartesian3Towgs84(t[1],this.viewer),i=this.cartesian3Towgs84(t[0],this.viewer),n=turf.point([e.lng,e.lat]),o=turf.point([i.lng,i.lat]),s=this.rhumbBearing(i,e);this.bearing=(180+s).toFixed(2);for(var a=turf.rhumbDistance(n,o,{units:"kilometers"}),r=turf.lineArc(n,a/3,0,this.bearing),l=[],c=0;c2&&t.caculateAngle([t.positions[0],t.positions[1]],[t.positions[2],t.positions[1]]),!(t.ids.length>=2)){e.next=9;break}return t.end(),e.abrupt("return");case 9:if(t.ids.push(t.create_point(n)),t.ids.push(t.create_point(n)),2!==t.ids.length){e.next=20;break}return t.label_id=Cesium.createGuid(),t.arc_id=Cesium.createGuid(),d=t.cartesian3Towgs84(n,t.viewer),e.next=17,t.sampleHeightMostDetailed([d]);case 17:m=e.sent,t.viewer.entities.add({id:t.arc_id,polyline:{positions:new Cesium.CallbackProperty((function(){return t.arcPositions}),!1),clampToGround:!0,width:5,material:new Cesium.Color.fromCssColorString(t.options.color||t.defaultColor),zIndex:99999999}}),t.viewer.entities.add({id:t.label_id,position:Cesium.Cartesian3.fromDegrees(d.lng,d.lat,(m[0].height||0)+.1),label:{text:new Cesium.CallbackProperty((function(){return"方位夹角:"+t.bearing+"°"}),!1),font:"20px Microsoft YaHei",fillColor:Cesium.Color.fromCssColorString("#f1e605"),style:Cesium.LabelStyle.FILL_AND_OUTLINE,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY}});case 20:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();this.event.mouse_left(i),this.event.mouse_move((function(e,i){if(t.tip.setPosition(i,e.endPosition.x,e.endPosition.y),t.cachePositions.length){var n;t.positions=t.cachePositions.concat(i);var o=t.cartesian3Towgs84(i,t.viewer),s=t.cartesian3Towgs84(t.positions[1],t.viewer),a=turf.point([s.lng,s.lat]),r=turf.point([o.lng,o.lat]),l={units:"kilometers"},c=turf.rhumbDistance(a,r,l),u=turf.destination(a,c,0,l);t.positions[0]=(n=Cesium.Cartesian3).fromDegrees.apply(n,L()(u.geometry.coordinates))}t.positions.length>2&&t.caculateAngle([t.positions[0],t.positions[1]],[t.positions[2],t.positions[1]])})),this.event.mouse_right((function(e,i){t.cancel()})),this.event.gesture_pinck_start((function(e,n){var o=new Date,s={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-o>=500?t.cancel():i(s,n)}))}))}}}])}(gr);function ol(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var sl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(i=ol(this,e,[t,n])).options.curve=n.curve||!1;var o=Number(n.number);return isNaN(o)?i.options.number=1/0:i.options.number=o<2?2:o,i}return sn()(e,t),_()(e,[{key:"smoothHandle",value:function(t){if(t.length>1){for(var e=[],i=[],n=0;n=r.options.number){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var u=r.smoothHandle(c);s=[];for(var p=0;p1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s,a=[];if(c.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))})),r.options.curve){var l=r.smoothHandle(c);s=[];for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polyline:{positions:new Cesium.CallbackProperty((function(){return t.options.curve?t.smoothHandle(t.positions):t.positions}),!1),width:5,material:Cesium.Color.fromCssColorString(t.color),clampToGround:!0,zIndex:99999999}})),i}}])}(wa);function al(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function rl(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=ll(this,e,[t,n])).polygonHasCreated=!1,i.rectObject=[],i}return sn()(e,t),_()(e,[{key:"computedLastPoint",value:function(t){var e=t[0],i=t[1],n=Cesium.Cartesian3.subtract(i,e,new Cesium.Cartesian3),o=Cesium.Cartesian3.subtract(t[2],e,new Cesium.Cartesian3),s=Cesium.Cartesian3.dot(o,n)/Cesium.Cartesian3.magnitudeSquared(n),a=Cesium.Cartesian3.multiplyByScalar(n,s,new Cesium.Cartesian3),r=Cesium.Cartesian3.add(e,a,new Cesium.Cartesian3),l=Cesium.Cartesian3.distance(t[2],r),c=Cesium.Cartesian3.subtract(t[2],r,new Cesium.Cartesian3);Cesium.Cartesian3.normalize(c,c);var u=Cesium.Cartesian3.multiplyByScalar(c,l,new Cesium.Cartesian3),p=Cesium.Cartesian3.add(i,u,new Cesium.Cartesian3),h=Cesium.Cartesian3.add(e,u,new Cesium.Cartesian3);return[rl({},p),rl({},h)]}},{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;this.polygonHasCreated=!1,(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk);var c=0;this.positions=[],this.positionsLine=[],this.points_ids=[];var u=[],p=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",c++,r.positions=u.concat(rl({},n)),r.tip.setPosition(n,i.position.x,i.position.y),!r.polygonHasCreated){var o=e.create_polygon(r);r.points_ids.push(o)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),3==c&&(r.end(),t(null,r.rectObject))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t("取消",""))})),this.event.mouse_move((function(t,e){if("2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(rl({},e)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(t){return r.cartesian3Towgs84(t,r.viewer)}));r.rectObject=s}})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop(),r.positions=u.concat(cartesian))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t(null,p),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r);r.points_ids.push(s)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n)),r.positions=u.concat(n)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",c++,r.positions=u.concat(rl({},n)),r.tip.setPosition(n,i.position.x+r.viewer.canvas.width,i.position.y),!r.polygonHasCreated){var o=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),3==c&&(r.end(),t(null,r.rectObject))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t("取消",""))})),this.event2D.mouse_move((function(t,e){if("3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),2==c)){var i=JSON.parse(JSON.stringify(u)),n=i.concat(rl({},e)),o=r.computedLastPoint(n);i=i.concat(o),r.positions=i;var s=i.map((function(t){return r.cartesian3Towgs84(t,r.viewer)}));r.rectObject=s}})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),u.pop(),p.pop(),r.positions=u.concat(cartesian))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t(null,p),r.end();else{if(r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),!r.polygonHasCreated){var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}u.push(n),p.push(r.cartesian3Towgs84(n,r.viewer)),r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),r.positions=u.concat(n)}}))}})))}}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.polygonHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(t.positions)})),material:Cesium.Color.fromCssColorString(t.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(e){return t.positions.concat(t.positions[0])})),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),i}}])}(wa);function ul(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var pl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return k()(this,e),ul(this,e,[t,i,n])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var e=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;",this.sdk),this.event=new X(this.sdk),this.event.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer);t(null,s,Cesium)})),this.event.mouse_right((function(i,n){e.end(),t(!1)})),this.event.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;e.event.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer);t(null,s,Cesium)})),this.event2D.mouse_right((function(i,n){e.end(),t(!1)})),this.event2D.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x+e.viewer.canvas.width,t.endPosition.y)})),this.event2D.gesture_pinck_start((function(n,o){var s=new Date;e.event2D.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))})))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy(),this.tip&&this.tip.destroy()}}])}(wa);function hl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var dl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),hl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l,c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.viewer;t.entities.add(new Cesium.Entity({id:g.circle_id,position:new Cesium.CallbackProperty((function(t){if(v){var e=g.computeMidpoint(f,v);return Cesium.Cartesian3.fromDegrees(e.lng,e.lat,v.alt)}return Cesium.Cartesian3()}),!1),label:{text:new Cesium.CallbackProperty((function(t){return d>1e3?"半径:"+(d/1e3).toFixed(2)+" 公里":"半径:"+d+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(t){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(m))}),!1),material:Cesium.Color.fromCssColorString(g.color),zIndex:99999999},polyline:{positions:new Cesium.CallbackProperty((function(t){return p}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}}))};(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键开始,右键取消",this.sdk),this.event=new X(this.sdk);var u=0;this.circle_id=this.randomString();var p=[],h=[],d=1,m=[],f={},v=null;this.event.mouse_left((function(e,i){"2D"!==l&&(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),h.push(i),c()),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t(!1))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),u&&(p=h.concat(e),v=r.cartesian3Towgs84(e,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event.gesture_pinck_start((function(e,i){if("2D"!==l){var n=new Date;r.event.gesture_pinck_end((function(){new Date-n>=500?(r.end(),t(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i),f=r.cartesian3Towgs84(i,r.viewer),h.push(i),c(),r.tip.setPosition(i,(e.position1.x+e.position2.x)/2,(e.position1.y+e.position2.y)/2)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,i){"3D"!==l&&(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),m=r.createCircle(f,.01),h.push(i),c(r._sdk2D.viewer)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t(!1))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),u&&(p=h.concat(e),v=r.cartesian3Towgs84(e,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d)))})),this.event2D.gesture_pinck_start((function(e,i){if("3D"!==l){var n=new Date;r.event2D.gesture_pinck_end((function(){new Date-n>=500?(r.end(),t(!1)):(r.tip.set_text("再次左键,完成绘制;右键取消"),1===++u&&(r.point_id=r.create_point(i,r._sdk2D.viewer),f=r.cartesian3Towgs84(i,r.viewer),h.push(i),c(r._sdk2D.viewer),r.tip.setPosition(i,(e.position1.x+e.position2.x)/2+r.viewer.canvas.width,(e.position1.y+e.position2.y)/2)),2===u&&(p=h.concat(i),v=r.cartesian3Towgs84(i,r.viewer),d=r.computeDistance2([f,v]),m=r.createCircle(f,d),r.end(),t(null,{center:f,radius:Number(d)})))}))}})));var g=this}}},{key:"end",value:function(){this.remove_entity(this.circle_id),this.remove_entity(this.point_id),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(wa);function ml(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var fl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),ml(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l,c=function(){var t=Cesium.Cartesian3.fromDegrees(m[0].lng,m[0].lat),e=Cesium.Cartesian3.fromDegrees(m[1].lng,m[1].lat),i=Cesium.Cartesian3.fromDegrees(m[2].lng,m[2].lat);if(1===p){g=Cesium.Cartesian3.distance(t,e),f=(v=g)/2;var n={x:h.lng,y:h.lat},o={x:m[1].lng,y:m[1].lat},s=Math.PI/180,a=n.y*s,r=o.y*s,l=n.x*s,c=o.x*s,u=Math.sin(c-l)*Math.cos(r),d=Math.cos(a)*Math.sin(r)-Math.sin(a)*Math.cos(r)*Math.cos(c-l),C=Math.atan2(u,d)%(2*Math.PI);b=450-(180*C/Math.PI<0?360+180*C/Math.PI:180*C/Math.PI)}if(2===p){Cesium.Cartesian3.distance(t,i),y=Cesium.Cartesian3.distance(e,i);var w=turf.point([m[0].lng,m[0].lat]),k=turf.point([m[1].lng,m[1].lat]),x=turf.point([m[2].lng,m[2].lat]),_=turf.rhumbBearing(w,k),E=turf.rhumbBearing(k,x),S=Math.abs(_-E),D=S>180?360-S:S;D=180-D,f=y*Math.sin(Cesium.Math.toRadians(D))}},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.viewer;t.entities.add(new Cesium.Entity({id:C.elliptic_id,position:Cesium.Cartesian3.fromDegrees(h.lng,h.lat),ellipse:{semiMinorAxis:new Cesium.CallbackProperty((function(t){return f}),!1),semiMajorAxis:new Cesium.CallbackProperty((function(t){return v}),!1),granularity:Cesium.Math.toRadians(.1),rotation:new Cesium.CallbackProperty((function(t){return Cesium.Math.toRadians(b)}),!1),material:Cesium.Color.fromCssColorString(C.color),zIndex:99999999}}))};(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),this.entity_ids=[],YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键开始,右键取消",this.sdk),this.event=new X(this.sdk);var p=0;this.elliptic_id=this.randomString();var h,d=[],m=[],f=0,v=0,g=0,y=0,b=0;this.event.mouse_left((function(e,i){if("2D"!==l){if(l="3D",r.tip.set_text("再次左键,完成绘制;右键取消"),p++,r.points_ids.push(r.create_point(i)),d.push(i),1===p){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);h=n,m=[n,n,n],c(),u()}if(2===p){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}p>=3&&(r.end(),t(null,{center:h,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t(!1))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),d[p]=e,m[p]=r.cartesian3Towgs84(e,r.viewer),0!==p&&c())})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,i){if("3D"!==l){if(l="2D",r.tip.set_text("再次左键,完成绘制;右键取消"),p++,r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),d.push(i),1===p){d=[i,i,i];var n=r.cartesian3Towgs84(i,r.viewer);h=n,m=[n,n,n],c(),u(r._sdk2D.viewer)}if(2===p){d[1]=i,d[2]=i;var o=r.cartesian3Towgs84(i,r.viewer);m[1]=o,m[2]=o}p>=3&&(r.end(),t(null,{center:h,bearing:b,semiMajorAxis:v,semiMinorAxis:f}))}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t(!1))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),d[p]=e,m[p]=r.cartesian3Towgs84(e,r.viewer),0!==p&&c())})));var C=this}}},{key:"end",value:function(){var t=this;this.remove_entity(this.elliptic_id),this.points_ids.forEach((function(e){t.remove_entity(e)})),YJ.Measure.SetMeasureStatus(!1),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.event2D&&this.event2D.destroy()}}])}(wa);function vl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var gl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),vl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键结束;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[],u=!1;this.event.mouse_left((function(t,i){if("2D"!==l){l="3D";var n=r.cartesian3Towgs84(i,r.viewer),o=c[c.length-1];if(!o||o.lng!==n.lng||o.lat!==n.lat){if(!r.entityHasCreated){var s=e.create_arrow_polygon(r);r.points_ids.push(s)}r.points_ids.push(r.create_point(i)),c.push(n),u=!1}}})),this.event.mouse_right((function(e,i){if("2D"!==l){var n=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){n.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),u&&r.positions.pop(),t(null,r.positions,n)}})),this.event.mouse_move((function(t,e){"2D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,r.positions,s)}else{if(!r.entityHasCreated){var a=e.create_arrow_polygon(r);r.points_ids.push(a)}r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2)}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(t,i){if("3D"!==l){if(l="2D",!r.entityHasCreated){var n=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(n)}r.points_ids.push(r.create_point(i,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(i,r.viewer)),u=!1}})),this.event2D.mouse_right((function(e,i){if("3D"!==l){var n=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){n.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),u&&r.positions.pop(),t(null,r.positions,n)}})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(u=!0,r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,r.positions,s)}else{if(!r.entityHasCreated){var a=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(a)}r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2)}}))}})))}}}],[{key:"create_arrow_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeAttackArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),yl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var l;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;CTRL+右键撤销",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var c=[];this.event.mouse_left((function(i,n){if("2D"!==l){if(l="3D",!r.entityHasCreated){var o=e.create_arrow_polygon(r);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,s)}}})),this.event.mouse_right((function(e,i){"2D"!==l&&(r.end(),t("取消绘制"))})),this.event.mouse_move((function(t,e){"2D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x,t.endPosition.y))})),this.event.mouse_right_keyboard_ctrl((function(t,e){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event.gesture_pinck_start_keyboard_ctrl((function(){"2D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event.gesture_pinck_start((function(i,n){if("2D"!==l){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),t("取消绘制");else{if(!r.entityHasCreated){var s=e.create_arrow_polygon(r);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,a)}}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==l){if(l="2D",!r.entityHasCreated){var o=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(o)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),5===c.length){var s=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){s.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,s)}}})),this.event2D.mouse_right((function(e,i){"3D"!==l&&(r.end(),t("取消绘制"))})),this.event2D.mouse_move((function(t,e){"3D"!==l&&(r.positions=c.concat(r.cartesian3Towgs84(e,r.viewer)),r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y))})),this.event2D.mouse_right_keyboard_ctrl((function(t,e){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop())})),this.event2D.gesture_pinck_start_keyboard_ctrl((function(){"3D"!==l&&r.points_ids.length>1&&(r.remove_entity(r.points_ids.pop()),c.pop(),r.positions=c.concat(r.cartesian3Towgs84(cartesian,r.viewer)))})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==l){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)r.end(),t("取消绘制");else{if(!r.entityHasCreated){var s=e.create_arrow_polygon(r,r._sdk2D.viewer);r.points_ids.push(s)}if(r.points_ids.push(r.create_point(n,r._sdk2D.viewer)),c.push(r.cartesian3Towgs84(n,r.viewer)),r.positions=c.concat(r.cartesian3Towgs84(n,r.viewer)),r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),5===c.length){var a=[];if(r.points_ids.length>2)r.event2D.viewer.entities.getById(r.points_ids[0]).polygon.hierarchy.getValue().positions.forEach((function(t){a.push(r.cartesian3Towgs84(t,r.viewer))}));r.end(),t(null,c,a)}}}))}})))}}}],[{key:"create_arrow_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer;t.entityHasCreated=!0;var i=t.randomString();return e.entities.add(new Cesium.Entity({id:i,polygon:{classificationType:Cesium.ClassificationType.BOTH,hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computePincerArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Cl(this,e,[t,n])).points=null,i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n;wl(e,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(e,s){if("2D"!==n&&(n="3D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s)),2===i.points_ids.length)){var r=[o[0],o[1]];t(null,r),i.end()}}})),this.event.mouse_move((function(t,o){if("2D"!==n&&(i.tip.setPosition(o,t.endPosition.x,t.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=e.polygon(i))}})),this.event.mouse_right((function(e,o){"2D"!==n&&(t(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=e.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,s){if("3D"!==n&&(n="2D",s&&i.anchorpoints[0]!==s)){i.anchorpoints.push(s);var a=i.cartesian3Towgs84(s,i.viewer);if(a.lng=Number(a.lng.toFixed(8)),a.lat=Number(a.lat.toFixed(8)),(!o[0]||a.lng!==o[0].lng||a.lat!==o[0].lat)&&(o.push(a),i.positions.push(a),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),2===i.points_ids.length)){var r=[o[0],o[1]];t(null,r),i.end()}}})),this.event2D.mouse_move((function(t,o){if("3D"!==n&&(i.tip.setPosition(o,t.endPosition.x+i.viewer.canvas.width,t.endPosition.y),o&&0!==i.points_ids.length)){var s=i.cartesian3Towgs84(o,i.viewer);i.positions=[i.positions[0],s],1!==i.points_ids.length||Cesium.defined(i.arrowPolygon)||(i.arrowPolygon=e.polygon(i,i._sdk2D.viewer))}})),this.event2D.mouse_right((function(e,o){"3D"!==n&&(t(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.arrowPolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.arrowPolygon=e.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){wl(e,"end",this,3)([]),this.viewer.entities.remove(this.arrowPolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.arrowPolygon)}}],[{key:"polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(new Cesium.Entity({name:"ArrowPolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeStraightArrow(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=xl(this,e,[t,n])).rhumb=n.rhumb,i.polygonHasCreated=!1,i.rect=[],i.rectObj=[],i.entity=null,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r=this,l=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var c;(i=e,n="start",o=this,s=3,a=ba()(nn()(1&s?i.prototype:i),n,o),2&s&&"function"==typeof a?function(t){return a.apply(o,t)}:a)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消",l.sdk),this.event=new X(l.sdk),this.positions=[],this.points_ids=[];var u=0,p=null,h=null;this.event.mouse_left((function(i,n){if("2D"!==c){c="3D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=e.create_polygon(r);r.points_ids.push(s),p=o}2==u&&(h=o,r.end(),t(null,l.rectObj,[p,h]))}})),this.event.mouse_right((function(e,i){"2D"!==c&&(r.end(),t("取消",""))})),this.event.mouse_move((function(t,e){if("2D"!==c&&(r.tip.setPosition(e,t.endPosition.x,t.endPosition.y),1==u)){var i=r.cartesian3Towgs84(e,r.viewer);r.calrect(p,i)}})),this.event.gesture_pinck_start((function(i,n){if("2D"!==c){var o=new Date;r.event.gesture_pinck_end((function(){if(new Date-o>=500)t("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=e.create_polygon(r);r.points_ids.push(a),p=s}2==u&&(r.calrect(p,s),h=s,r.end(),t(null,l.rectObj,[p,h]))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(i,n){if("3D"!==c){c="2D",u++;var o=r.cartesian3Towgs84(n,r.viewer);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var s=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(s),p=o}2==u&&(h=o,r.end(),t(null,l.rectObj,[p,h]))}})),this.event2D.mouse_right((function(e,i){"3D"!==c&&(r.end(),t("取消",""))})),this.event2D.mouse_move((function(t,e){if("3D"!==c&&(r.tip.setPosition(e,t.endPosition.x+r.viewer.canvas.width,t.endPosition.y),1==u)){var i=r.cartesian3Towgs84(e,r.viewer);r.calrect(p,i)}})),this.event2D.gesture_pinck_start((function(i,n){if("3D"!==c){var o=new Date;r.event2D.gesture_pinck_end((function(){if(new Date-o>=500)t("取消",""),r.end();else{r.tip.setPosition(n,(i.position1.x+i.position2.x)/2+r.viewer.canvas.width,(i.position1.y+i.position2.y)/2),u++;var s=r.cartesian3Towgs84(n);if(!r.polygonHasCreated){r.polygonHasCreated=!0;var a=e.create_polygon(r,r._sdk2D.viewer);r.points_ids.push(a),p=s}2==u&&(r.calrect(p,s),h=s,r.end(),t(null,l.rectObj,[p,h]))}}))}})))}}},{key:"calrect",value:function(t,e){var i,n=[],o=[],s=[];if(n.push([t.lng,t.lat,t.alt],[e.lng,e.lat,e.alt]),2===n.length){var a=turf.lineString(n),r=turf.bbox(a);i=turf.bboxPolygon(r)}i&&(i.geometry.coordinates[0].forEach((function(e){o.push(e[0]),o.push(e[1]);var i={lng:e[0],lat:e[1],alt:t.alt};s.push(i)})),this.rect=[].concat(o),this.rectObj=[].concat(s),this.rectObj.pop())}}],[{key:"create_polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(this.entity=new Cesium.Entity({id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){return new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(t.rect))}),!1),material:Cesium.Color.fromCssColorString(t.color),arcType:t.rhumb?Cesium.ArcType.RHUMB:Cesium.ArcType.GEODESIC,zIndex:99999999}})),i}}])}(wa);function El(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}function Sl(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}var Dl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=El(this,e,[t,n])).points=null,i.polygonHasCreated=!1,i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var n;Sl(e,"start",this,3)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确定,右键取消;",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var o=[];this.anchorpoints=[],this.event.mouse_left((function(e,s){if("2D"!==n&&(n="3D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];t(null,a),i.end()}})),this.event.mouse_move((function(t,s){if("2D"!==n&&(i.tip.setPosition(s,t.endPosition.x,t.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=e.polygon(i)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(t){a.push([t.lng,t.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event.mouse_right((function(e,o){"2D"!==n&&(t(null),i.end())})),this.event.gesture_pinck_start((function(s,a){if("2D"!==n){var r=new Date;i.event.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=e.polygon(i),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a))}}))}})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,s){if("3D"!==n&&(n="2D",s&&(3===i.anchorpoints.length?i.anchorpoints[1]=s:i.anchorpoints.push(s),o.push(i.cartesian3Towgs84(s,i.viewer)),i.points_ids.push(i.create_point(s,i._sdk2D.viewer)),3===i.points_ids.length))){var a=[o[0],o[2],o[1]];t(null,a),i.end()}})),this.event2D.mouse_move((function(t,s){if("3D"!==n&&(i.tip.setPosition(s,t.endPosition.x+i.viewer.canvas.width,t.endPosition.y),s&&0!==i.points_ids.length))if(o.length>1?i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer),o[1]]:i.positions=[o[0],i.cartesian3Towgs84(s,i.viewer)],1!==i.points_ids.length||Cesium.defined(i.assemblePolygon)||(i.assemblePolygon=e.polygon(i,i._sdk2D.viewer)),i.anchorpoints.length>=2){if(1===i.points_ids.length){var a=new Array;i.positions.forEach((function(t){a.push([t.lng,t.lat])}));var r=P.PlotUtils.mid(a[0],a[1]),l=P.PlotUtils.distance(a[0],r)/.9,c=P.PlotUtils.getThirdPoint(a[0],r,P.Constants.HALF_PI,l,!0);i.positions=[i.positions[0],{lng:c[0],lat:c[1]},i.positions[1]]}i.anchorpoints[1]=s}else i.anchorpoints.push(s)})),this.event2D.mouse_right((function(e,o){"3D"!==n&&(t(null),i.end())})),this.event2D.gesture_pinck_start((function(s,a){if("3D"!==n){var r=new Date;i.event2D.gesture_pinck_end((function(){if(new Date-r>=500)i.end(),t(!1);else if(2===i.anchorpoints.length)i.anchorpoints.push(a),t(null,i.positions),i.end();else{if(!a||Cesium.defined(i.assemblePolygon))return;i.tip.setPosition(a,(s.position1.x+s.position2.x)/2+i.viewer.canvas.width,(s.position1.y+s.position2.y)/2),i.anchorpoints.push(a),i.assemblePolygon=e.polygon(i,i._sdk2D.viewer),o.push(i.cartesian3Towgs84(a)),i.points_ids.push(i.create_point(a,i._sdk2D.viewer))}}))}})))}}},{key:"end",value:function(){Sl(e,"end",this,3)([]),this.viewer.entities.remove(this.assemblePolygon),!this._is2D&&this._sdk2D&&this._sdk2D.viewer.entities.remove(this.assemblePolygon)}},{key:"calculateVector",value:function(t,e,i){var n,o,s,a,r,l;e||(e=Math.PI/2),i||(i=1);var c=Math.sqrt(t.x*t.x+t.y*t.y);if(0==t.y)n=o=c*i*Math.cos(e)/t.x,t.x>0?a=-(s=Math.sqrt(i*i-n*n)):t.x<0&&(s=-(a=Math.sqrt(i*i-n*n))),r={x:n,y:s},l={x:o,y:a};else{var u=-t.x/t.y,p=i*c*Math.cos(e)/t.y,h=1+u*u,d=2*u*p,m=p*p-i*i;s=u*(n=(-d-Math.sqrt(d*d-4*h*m))/(2*h))+p,a=u*(o=(-d+Math.sqrt(d*d-4*h*m))/(2*h))+p,t.y>=0?(r={x:n,y:s},l={x:o,y:a}):t.y<0&&(r={x:o,y:a},l={x:n,y:s})}return[r,l]}},{key:"createCloseCardinal",value:function(t){if(null==t||t.length<3)return t;var e=t[0];t.push(e);for(var i=t,n=[],o=.4,s=i.length-1,a=0;a<=s-1;a++){var r=void 0,l=void 0,c=void 0;a==s-1?(r=i[s-1],l=i[0],c=i[1]):(r=i[a],l=i[a+1],c=i[a+2]);var u={x:void 0,y:void 0},p={x:void 0,y:void 0},h={x:l.x-r.x,y:l.y-r.y},d={x:c.x-l.x,y:c.y-l.y},m=Math.sqrt(h.x*h.x+h.y*h.y),f=Math.sqrt(d.x*d.x+d.y*d.y),v={x:h.x/m,y:h.y/m},g={x:d.x/f,y:d.y/f},y={x:v.x+g.x,y:v.y+g.y},b=Math.sqrt(y.x*y.x+y.y*y.y),C={x:y.x/b,y:y.y/b},w=(v.x*g.x+v.y*g.y)/1;Math.abs(1-w)<.005?(u.x=l.x-g.x*m*o,u.y=l.y-g.y*m*o,p.x=l.x+v.x*f*o,p.y=l.y+v.y*f*o):(u.x=l.x-C.x*m*o,u.y=l.y-C.y*m*o,p.x=l.x+C.x*f*o,p.y=l.y+C.y*f*o),a==s-1?(n[0]=l,n[1]=p,n[3*(s-2)+2+3]=u,n[3*(s-2)+2+4]=i[s]):(n[3*a+2+0]=u,n[3*a+2+1]=l,n[3*a+2+2]=p)}return n}},{key:"calculatePointsFBZ3",value:function(t,e){e||(e=20);var i=[],n=.05;e>0&&(n=1/e);for(var o=0;o=t.length&&i.push(s)}return i}}],[{key:"polygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.viewer,i=t.randomString();return e.entities.add(new Cesium.Entity({name:"AssemblePolygon",id:i,polygon:{hierarchy:new Cesium.CallbackProperty((function(e){for(var i=t.computeAssemble(t.positions),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Pl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"start",value:function(t){var i,n,o,s,a,r,l=this,c=this;YJ.Measure.GetMeasureStatus()?t("上一次测量未结束"):((n=e,o="start",s=this,a=3,r=ba()(nn()(1&a?n.prototype:n),o,s),2&a&&"function"==typeof r?function(t){return r.apply(s,t)}:r)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("左键确认,右键取消",c.sdk),this.event=new X(c.sdk),this._sector_id=null,this._positions=[],this.points_ids=[],this.radius_points=[],this._entities_sector=[],this._radius=0,this._startAngle=0,this._endAngle=0,this.event.mouse_left((function(e,n){if("2D"!==i&&(i="3D",l._positions.length<3?(l.points_ids.push(l.create_point(n)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),t(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length&&(l.radius_points.push(n),l._radius=l.computeDistance2([l._positions[0],l._positions[1]])),1===l._positions.length)){l.radius_points.push(n);var o=l.createRadiusLine();l.points_ids.push(o)}})),this.event.mouse_move((function(t,e){if("2D"!==i){if(l.tip.setPosition(e,t.endPosition.x,t.endPosition.y),1===l._positions.length){l.radius_points[1]=e;var n=l.cartesian3Towgs84(e,l.viewer);l._radius=l.computeDistance2([l._positions[0],n])}if(!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(e,l.viewer)),3==l._positions.length)){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(e,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(),l.points_ids.push(l._sector_id));var o=c.calculateAangle(c._positions);c._startAngle=o.angle1,c._endAngle=o.angle2}}})),this.event.mouse_right((function(e,n){"2D"!==i&&(l.end(),t(null))})),!this._is2D&&this._sdk2D&&(this.event2D=new X(this._sdk2D),this.event2D.mouse_left((function(e,n){if("3D"!==i&&(i="2D",l._positions.length<3?(l.points_ids.push(l.create_point(n,l._sdk2D.viewer)),l._positions.push(l.cartesian3Towgs84(n,l.viewer))):(l.end(),t(null,{center:l._positions[0],radius:l._radius,startAngle:l._startAngle,endAngle:l._endAngle})),2===l._positions.length)){var o=l.cartesian3Towgs84(n,l.viewer);l._radius=l.computeDistance2([l._positions[0],o])}})),this.event2D.mouse_move((function(t,e){if("3D"!==i&&(l.tip.setPosition(e,t.endPosition.x+l.viewer.canvas.width,t.endPosition.y),!(l._positions.length<2)&&(2==l._positions.length&&l._positions.push(l.cartesian3Towgs84(e,l.viewer)),3==l._positions.length))){l._positions.pop(),l._positions.push(l.cartesian3Towgs84(e,l.viewer)),Cesium.defined(l._sector_id)||(l._sector_id=l.createsector(l._sdk2D.viewer),l.points_ids.push(l._sector_id));var n=c.calculateAangle(c._positions);c._startAngle=n.angle1,c._endAngle=n.angle2}})),this.event2D.mouse_right((function(e,n){"3D"!==i&&(l.end(),t(null))}))))}},{key:"createsector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,e=this,i=new Cesium.CallbackProperty((function(){var t=e.calSector(e._positions[0],e._radius,e._startAngle,e._endAngle);return new Cesium.PolygonHierarchy(t)})),n=e.randomString(),o=t.entities.add({id:n,position:Cesium.Cartesian3.fromDegrees(e._positions[0].lng,e._positions[0].lat),polygon:{hierarchy:i,show:!0,fill:!0,clampToGround:!0,material:Cesium.Color.fromCssColorString(e.color),zIndex:99999999}});return e._entities_sector.push(o),n}},{key:"createRadiusLine",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewer,i=this,n=i.randomString(),o=e.entities.add({id:n,position:new Cesium.CallbackProperty((function(t){var e=i._positions[0],n=i.radius_points[1]?i.cartesian3Towgs84(i.radius_points[1],i.viewer):i._positions[0],o=i.computeMidpoint(e,n);return Cesium.Cartesian3.fromDegrees(o.lng,o.lat,n.alt)}),!1),polyline:{positions:new Cesium.CallbackProperty((function(t){return i.radius_points}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:999999999},label:{text:new Cesium.CallbackProperty((function(e){return t._radius>1e3?"半径:"+(t._radius/1e3).toFixed(2)+" 公里":"半径:"+t._radius+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE}});return i._entities_sector.push(o),n}},{key:"cartesianToLatlng",value:function(t){var e=this.viewer.scene.globe.ellipsoid.cartesianToCartographic(t),i=Cesium.Math.toDegrees(e.latitude);return[Cesium.Math.toDegrees(e.longitude),i]}},{key:"lonLatToMercator",value:function(t){var e=t[0],i=t[1],n=20037508.34*e/180,o=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return[n,o=20037508.34*o/180]}},{key:"WebMercator2lonLat",value:function(t){var e=t[0]/20037508.34*180,i=t[1]/20037508.34*180;return[e,180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2)]}},{key:"calculateAangle",value:function(t){function e(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=t[0],n=t[1],o=t[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:e(s,a),angle2:e(s,r)}}}])}(wa),Ol=52.35987755982988,Tl=3.141592653589793,Nl=.006693421622965943,Bl=function(){return _()((function t(){k()(this,t)}),null,[{key:"BD09ToGCJ02",value:function(t,e){var i=+t-.0065,n=+e-.006,o=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*Ol),s=Math.atan2(n,i)-3e-6*Math.cos(i*Ol);return[o*Math.cos(s),o*Math.sin(s)]}},{key:"GCJ02ToBD09",value:function(t,e){e=+e,t=+t;var i=Math.sqrt(t*t+e*e)+2e-5*Math.sin(e*Ol),n=Math.atan2(e,t)+3e-6*Math.cos(t*Ol);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(t,e){if(e=+e,t=+t,this.out_of_china(t,e))return[t,e];var i=this.delta(t,e);return[t+i[0],e+i[1]]}},{key:"GCJ02ToWGS84",value:function(t,e){if(e=+e,t=+t,this.out_of_china(t,e))return[t,e];var i=this.delta(t,e);return[2*t-(t+i[0]),2*e-(e+i[1])]}},{key:"delta",value:function(t,e){var i=this.transformLng(t-105,e-35),n=this.transformLat(t-105,e-35),o=e/180*Tl,s=Math.sin(o);s=1-Nl*s*s;var a=Math.sqrt(s);return[i=180*i/(6378245/a*Math.cos(o)*Tl),n=180*n/(6378245*(1-Nl)/(s*a)*Tl)]}},{key:"transformLng",value:function(t,e){var i=300+(t=+t)+2*(e=+e)+.1*t*t+.1*t*e+.1*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*Tl)+20*Math.sin(2*t*Tl))/3,i+=2*(20*Math.sin(t*Tl)+40*Math.sin(t/3*Tl))/3,i+=2*(150*Math.sin(t/12*Tl)+300*Math.sin(t/30*Tl))/3}},{key:"transformLat",value:function(t,e){var i=2*(t=+t)-100+3*(e=+e)+.2*e*e+.1*t*e+.2*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*Tl)+20*Math.sin(2*t*Tl))/3,i+=2*(20*Math.sin(e*Tl)+40*Math.sin(e/3*Tl))/3,i+=2*(160*Math.sin(e/12*Tl)+320*Math.sin(e*Tl/30))/3}},{key:"out_of_china",value:function(t,e){return e=+e,!((t=+t)>73.66&&t<135.05&&e>3.86&&e<53.55)}}])}();function Ll(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Al=function(t){function e(t,i){var n;return k()(this,e),(n=Ll(this,e,[t,i])).sdk.addIncetance(n.options.id,n),n.options.show&&Kt(0,n.options.id),n}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h()}},{key:"requestResource",value:function(){var t="";return t=this.options.host.endsWith("yjearth4.0")?this.options.host+"/data/service/load-compact-service":this.options.host+"/yjearth4.0/data/service/load-compact-service",fetch(t,{method:"post",body:JSON.stringify({source_id:this.options.id}),headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}})}}])}(Wn);function jl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Il(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Rl(this,e,[t,i])).options.name=i.name||"未命名对象",n.Dialog=o,n._elms={},n}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i;Fl(e,"setDefaultValue",this,3)([]),this.options.alpha=null!==(t=this.options.alpha)&&void 0!==t?t:1,this.options.brightness=null!==(i=this.options.brightness)&&void 0!==i?i:1}},{key:"layerIndex",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"layer_index",get:function(){return this.entity?this.entity._layerIndex:void 0}},{key:"brightness",get:function(){return this.options.brightness},set:function(t){this.options.brightness=t,this.entity.brightness=t}},{key:"alpha",get:function(){return this.options.alpha},set:function(t){Number(t)>1&&(t=1),Number(t)<0&&(t=0),this.entity.alpha=t,this.options.alpha=t,this._elms.alpha&&this._elms.alpha.forEach((function(e){e.value=t}))}},{key:"layerRaise",value:function(t){this.sdk.viewer.imageryLayers.raise(this.entity);for(var e=0;e0&&void 0!==l[0]&&l[0],!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=Il({},this.options.position):this.options.positions?r=Il({},this.options.positions[0]):this.options.center?r=Il({},this.options.center):this.options.start?r=Il({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(r);case 17:r.alt=t.sent;case 18:i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e}),t.next=26;break;case 25:this.sdk.viewer.flyTo(this.entity);case 26:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"amapMercatorTilingScheme",value:function(t){return new(function(t){function e(t){var i;k()(this,e),i=Rl(this,e,[t]);var n=new Cesium.WebMercatorProjection;return i._projection.project=function(t,e){return e=Bl.WGS84ToGCJ02(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude)),e=n.project(new Cesium.Cartographic(Cesium.Math.toRadians(e[0]),Cesium.Math.toRadians(e[1]))),new Cesium.Cartesian2(e.x,e.y)},i._projection.unproject=function(t,e){var i=n.unproject(t);return e=Bl.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(e[0]),Cesium.Math.toRadians(e[1]))},i}return sn()(e,t),_()(e)}(Cesium.WebMercatorTilingScheme))(t)}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s=this,r=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.length>0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,new rn(this.sdk,this.options,{title:"底图属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),se(s.sdk,s.options.id);var e=Ie();if(e&&e!=s.sdk)for(var i=0;i\n
            \n
            \n
            \n 名称:\n \n
            \n
            \n
            \n
            \n 透明度:\n \n
            \n
            \n
            \n ',e.innerHTML=i,n=e.getElementsByClassName("name")[0],o=e.getElementsByClassName("alpha")[0],n.value=this.name,o.value=this.alpha,n.addEventListener("input",(function(){s.name=n.value})),o.addEventListener("input",(function(){s.alpha=o.value})),this._DialogObject.contentAppChild(e),this._elms.name=[n],this._elms.alpha=[o];case 19:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){(this.entity||this._DialogObject)&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.options.name,this.alpha=this.options.alpha,this.brightness=this.options.brightness)}},{key:"flicker",value:function(){}}]);var i,n}(Al);function Hl(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Vl=function(t){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Hl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"createArcGis",value:(i=o()(a.a.mark((function t(e){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=6;break}return t.next=3,Cesium.ArcGisMapServerImageryProvider.fromUrl(e);case 3:i=t.sent,t.next=7;break;case 6:i=new Cesium.ArcGisMapServerImageryProvider({url:e});case 7:for(this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i,this.options.layer_index):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(i),this.entity._id=this.options.id,n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),Yl(this,e,[t,i])}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"createGD",value:function(t){var e=new Cesium.UrlTemplateImageryProvider({url:t,minimumLevel:3,maximumLevel:18,tilingScheme:this.amapMercatorTilingScheme()});this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(e,this.options.layer_index):this.entity=this.sdk.viewer.imageryLayers.addImageryProvider(e),this.entity._id=this.options.id;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webst02.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8"),i}return sn()(e,t),_()(e)}(Jl),Xl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}"),i}return sn()(e,t),_()(e)}(Jl),Zl=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Yl(this,e,[t,n])).createGD("https://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}"),i}return sn()(e,t),_()(e)}(Jl);function Kl(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return $l(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function $l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=107)){t.next=19;break}return t.next=14,Cesium.Cesium3DTileset.fromUrl(n,r);case 14:l=t.sent,this.entity=l,this.entity.imageBasedLighting.luminanceAtZenith=.1,t.next=25;break;case 19:return r.url=n,l=new Cesium.Cesium3DTileset(r),t.next=23,l.readyPromise;case 23:this.entity=t.sent,this.entity.imageBasedLighting.luminanceAtZenith=.1;case 25:return t.next=27,this.loadSceneTree(n);case 27:if(c=function(t){if(t._contents)for(var e=0;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),dc(i=hc(this,e,[t,n]),gc,void 0),i.picking=!1,i.Dialog=o,i._elms={},i._EventBinding=new wn,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"tileset"}},{key:"on",value:function(){return this.add()}},{key:"name",get:function(){return this.newData.name},set:function(t){this.newData.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.newData.height},set:function(t){this.newData.height=t,this.options.position.alt=t,this._elms.height&&this._elms.height.forEach((function(e){e.value=t})),this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"accuracy",get:function(){return this.newData.accuracy},set:function(t){var e=this;this.newData.accuracy=Number(t.toFixed(1)),this.newData.accuracy<.1&&(this.newData.accuracy=.1),this.entity&&(this.entity.maximumScreenSpaceError=32/this.newData.accuracy),this._elms.accuracy&&this._elms.accuracy.forEach((function(t){t.value=e.newData.accuracy}))}},{key:"lng",get:function(){return this.newData.lng},set:function(t){this.newData.lng=t,this.options.position.lng=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"lat",get:function(){return this.newData.lat},set:function(t){this.newData.lat=t,this.options.position.lat=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch)}},{key:"roll",get:function(){return this.newData.roll},set:function(t){this.newData.roll=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"heading",get:function(){return this.newData.heading},set:function(t){this.newData.heading=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"pitch",get:function(){return this.newData.pitch},set:function(t){this.newData.pitch=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale)}},{key:"transparency",get:function(){return this.newData.transparency},set:function(t){if(this.newData){this.newData.transparency=Number(t),this._elms.transparency&&this._elms.transparency.forEach((function(e){e.value=t}));var e=this.newData.transparency;this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+e+")"],["true","color('rgba(255,255,255,"+e+")')"]]},show:!0})}}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]&&s[0],this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 420px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 45px;\n }\n",t.next=11,new rn(this.sdk,this.newData,{title:"倾斜模型属性",left:"180px",top:"100px",confirmCallBack:function(t){o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.transparency=o.newData.transparency,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o.oldData.type=o.type,o.oldData.accuracy=o.newData.accuracy,o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(pc(pc({},o.oldData),{},{type:o.type})),se(o.sdk,o.oldData.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.positionEditing&&(o.positionEditing=!1),o.rotationEditing&&(o.rotationEditing=!1),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.newData.show=t,o.entity&&(o.entity.show=t),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0,o.tileset.root.transform||window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500}))},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0,o.tileset.root.transform||window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500}))}},!0);case 11:this._DialogObject=t.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 精度\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 透视\n \n
            \n
            \n
            \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"updateModel",value:function(t,e,i){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(this.tileset.root.transform){if(!(!t&&0!==t||!e&&0!==e||!i&&0!==i)){var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,f);var v=Cesium.Matrix4.fromUniformScale(r);Cesium.Matrix4.multiply(f,v,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:t,lat:e,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:s,z:a}),this.editObj&&this.editObj.update(),clearTimeout(fc(gc,this)),mc(gc,this,setTimeout((function(){clearTimeout(fc(gc,n));var t,e=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([e.lng,e.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=lc(n.sdk.entityMap);try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);if("BillboardObject"===a.type&&3==a.heightMode){var r=turf.point([a.lng,a.lat]);turf.booleanPointInPolygon(r,i)&&a.updateHeight()}else a.label&&(a.label.show=a.label.show)}}catch(t){o.e(t)}finally{o.f()}}),300))}}else console.warn("该模型不支持移动和旋转!")}},{key:"reset",value:function(){this.editObj.destroy(),this.entity&&(this.transparency=this.oldData.transparency,this.name=this.oldData.name,this.height=this.oldData.height,this.lng=this.oldData.lng,this.lat=this.oldData.lat,this.roll=this.oldData.roll,this.heading=this.oldData.heading,this.pitch=this.oldData.pitch,this.scale=this.oldData.scale,this.accuracy=this.oldData.accuracy,this.entity.style=new Cesium.Cesium3DTileStyle({color:{conditions:[["Boolean(${SIZE})","${COLOR} * color('rgba(255,255,255)', "+this.transparency+")"],["true","color('rgba(255,255,255,"+this.transparency+")')"]]},show:!0}))}}]);var i}(rc);function bc(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Cc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Cc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),_c(i=xc(this,e,[t,n]),Pc,void 0),i.picking=!1,i.features=n.features||[],i.exportStateArray=[],i.Dialog=o,i._elms={},i._EventBinding=new wn,i.Dialog.exportState=function(t){i.exportState(t)},i.Dialog.exportProperty=function(t){i.exportProperty(i.exportStateArray)},i.features=new Map,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"bim"}},{key:"name",get:function(){return this.newData.name},set:function(t){this.newData.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.newData.lng},set:function(t){this.newData.lng=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.newData.lat},set:function(t){this.newData.lat=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.newData.height},set:function(t){this.newData.height=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.height&&this._elms.height.forEach((function(e){e.value=t}))}},{key:"roll",get:function(){return this.newData.roll},set:function(t){this.newData.roll=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.roll&&this._elms.roll.forEach((function(e){e.value=t}))}},{key:"heading",get:function(){return this.newData.heading},set:function(t){this.newData.heading=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.heading&&this._elms.heading.forEach((function(e){e.value=t}))}},{key:"pitch",get:function(){return this.newData.pitch},set:function(t){this.newData.pitch=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.pitch&&this._elms.pitch.forEach((function(e){e.value=t}))}},{key:"scale",get:function(){return this.newData.scale},set:function(t){this.newData.scale=t,this.updateModel(this.newData.lng,this.newData.lat,this.newData.height,this.newData.roll,this.newData.heading,this.newData.pitch,this.newData.scale),this._elms.scale&&this._elms.scale.forEach((function(e){e.value=t}))}},{key:"loadSceneTree",value:(r=o()(a.a.mark((function t(e){var i,n=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=e.split("/"))[i.length-1]="scenetree.json",t.next=4,Cesium.Resource.fetchJson({url:i.join("/")}).then((function(t){n.scenetree=t;var e=function(t){t.forEach((function(t){n.features.has(t.id)?n.features.get(t.id).sphere=t.sphere:n.features.set(t.id,{sphere:t.sphere}),t.children&&e(t.children)}))};e(t.scenes[0].children)}));case 4:case"end":return t.stop()}}),t)}))),function(t){return r.apply(this,arguments)})},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=16;break}return t.next=6,new rn(this.sdk,this.newData,{title:"BIM模型属性",left:"180px",top:"100px",resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.oldData.name=o.newData.name,o.oldData.height=o.newData.height,o.oldData.lng=o.newData.lng,o.oldData.lat=o.newData.lat,o.oldData.scale=o.newData.scale,o.oldData.roll=o.newData.roll,o.oldData.heading=o.newData.heading,o.oldData.pitch=o.newData.pitch,o._DialogObject.close();var e=new Map;o.features.forEach((function(t,i){var n=kc({},t);delete n.features,e.set(i,n)})),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(kc(kc({},o.oldData),{},{features:e,type:o.type})),se(o.sdk,o.oldData.id)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.editObj.destroy(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.newData.show=t,o.entity&&(o.entity.show=t),o.Dialog.showCallBack&&o.Dialog.showCallBack()},rotateCallBack:function(){o.rotationEditing?o.rotationEditing=!1:o.rotationEditing=!0},translationalCallBack:function(){o.positionEditing?o.positionEditing=!1:o.positionEditing=!0}});case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" tileset-bim",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n x轴\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n y轴\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n z轴\n \n
            \n
            \n
            \n
            \n 大小\n \n
            \n \n \n
            \n \n
            \n
            \n
            \n \n
            \n
            \n

            BIM属性导出选项

            \n
            \n
            \n
            \n
            \n
            \n \n 修建中\n
            \n
            \n \n 未完成\n
            \n
            \n \n 已完成\n
            \n
            \n
            \n \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=17;break;case 16:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 17:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"featureEdit",value:(n=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=46;break}o=function(t){var e='
            \n
            \n \n \n \n \n
            \n
            '),i=document.createElement("div");i.innerHTML=e;var s=i.getElementsByClassName("property-item")[0],a=s.querySelector("input[name='key']"),l=s.querySelector("input[name='value']"),c=s.getElementsByClassName("add")[0],p=s.getElementsByClassName("delete")[0];a.addEventListener("input",(function(e){t.key=e.target.value})),l.addEventListener("input",(function(e){t.value=e.target.value})),c.addEventListener("click",(function(){var t={id:n.randomString(),key:"点击此处可编辑",value:""};r.descriptions.push(t),o(t)})),p.addEventListener("click",(function(e){for(var i=0;i.content {\n width: 440px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: 0 0 110px;\n }\n .col:first-child {\n margin-right: 10px;\n }\n .col:last-child {\n margin-left: 10px;\n }\n .YJ-custom-base-dialog>.content .divide {\n position: relative;\n display: flex;\n align-items: center;\n margin: 20px 0;\n }\n .YJ-custom-base-dialog>.content .divide .line{\n height: 1px;\n background: #ddd;\n flex: 1;\n }\n .YJ-custom-base-dialog>.content .divide p{\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .property .property-item .btn{\n font-size: 24px;\n line-height: 20px;\n padding: 2px 0;\n }\n .YJ-custom-base-dialog>.content .property .property-item .input_lable {\n flex: 0 0 115px;\n border: none;\n margin-right: 15px;\n text-align: right;\n }\n .YJ-custom-base-dialog>.content .property .property-item:first-child .delete{\n display: none\n }\n .YJ-custom-base-dialog>.content .property .property-item .add{\n display: none;\n }\n .YJ-custom-base-dialog>.content .property .property-item:last-child .add{\n display: inline-block;\n }\n",t.next=24,new W(this.sdk.viewer._container,{title:this.oldData.name+"-----设置状态",left:"calc(50% - 200px)",top:"calc(50% - 200px)",closeCallBack:function(){m.Dialog.closeCallBack&&m.Dialog.closeCallBack()}});case 24:return this._DialogObject=t.sent,t.next=27,this._DialogObject.init();case 27:for(document.getElementsByTagName("head")[0].appendChild(this._element_style),(l=document.createElement("div")).innerHTML='\n
            \n
            \n 构件名称\n \n
            \n
            \n
            \n
            \n 选择状态\n \n
            \n
            \n
            \n
            \n

            自定义属性

            \n
            \n
            \n
            \n
            \n ',l.querySelector("input[name='name']").value=s,(c=l.querySelector("select[name='state-select']")).value=r.state,c.addEventListener("change",(function(t){switch(r.state=t.target.value,r.state){case"0":r.stateCH="";break;case"1":r.stateCH="已完成";break;case"2":r.stateCH="未完成";break;case"3":r.stateCH="修建中"}})),u=l.getElementsByClassName("property")[0],p=0;p3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;if(!this.tileset.root.transform)return window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:"该模型不支持移动和旋转!",type:"warning",duration:1500})),void console.warn("该模型不支持移动和旋转!");if(!(!t&&0!==t||!e&&0!==e||!i&&0!==i)){var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,f);var v=Cesium.Matrix4.fromUniformScale(r);Cesium.Matrix4.multiply(f,v,this.entity._root.transform),this.editObj.activeAxis||(this.editObj.position={lng:t,lat:e,alt:i}),this.editObj.activeCircle||(this.editObj.rotate={x:o,y:s,z:a}),this.editObj&&this.editObj.update(),clearTimeout(Sc(Pc,this)),Ec(Pc,this,setTimeout((function(){clearTimeout(Sc(Pc,n));var t,e=n.cartesian3Towgs84(n.entity.boundingSphere.center,n.sdk.viewer),i=turf.circle([e.lng,e.lat],n.entity.boundingSphere.radius/1e3,{steps:360,units:"kilometers"}),o=bc(n.sdk.entityMap);try{for(o.s();!(t=o.n()).done;){var s=y()(t.value,2),a=(s[0],s[1]);if("BillboardObject"===a.type&&3==a.heightMode){var r=turf.point([a.lng,a.lat]);turf.booleanPointInPolygon(r,i)&&a.updateHeight()}else a.label&&(a.label.show=a.label.show)}}catch(t){o.e(t)}finally{o.f()}}),300))}}},{key:"getScenetree",value:function(){return this.scenetree}},{key:"featureColor",value:function(t,e){if(this.features.has(t)){var i=this.features.get(t).features;for(var n in i)i[n].content._model&&(i[n].color=Cesium.Color.fromCssColorString(e)),i[n].customColor=Cesium.Color.fromCssColorString(e);this.features.get(t).customColor=Cesium.Color.fromCssColorString(e)}}},{key:"getFeatureColor",value:function(t){if(this.features.has(t)){if(this.features.get(t).customColor)return this.features.get(t).customColor;var e=this.features.get(t).features;for(var i in e)if(e[i].content._model)return e[i].customColor||e[i].color}}},{key:"featureShow",value:function(t,e){if(this.features.has(t)){var i=this.features.get(t).features;for(var n in i)i[n].content._model&&(i[n].show=e),i[n].customShow=e;this.features.get(t).customShow=e}}},{key:"featureFlyto",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.features.has(e)?(i=this.features.get(e).sphere,n=new Cesium.Cartesian3(i[0],i[1],i[2]),o=this.entity._root.originalTransform,o=Cesium.Matrix4.inverse(o,new Cesium.Matrix4),s=this.entity._root.transform,r=Cesium.Matrix4.multiply(s,o,new Cesium.Matrix4),l=Cesium.Matrix4.multiplyByPoint(r,n,new Cesium.Cartesian3),c=this.cartesian3Towgs84(l,this.sdk.viewer),u=Cesium.Cartesian3.fromDegrees(c.lng,c.lat,c.alt+i[3]),pi(0),ii(this.sdk),ni(this.sdk),this.sdk.viewer.camera.flyTo({destination:u}),this.features.forEach((function(t,i){if(i===e){var n=p.getFeatureColor(e);if(p.features.has(e)&&n){var o=p.features.get(e).features;for(var s in o)o[s].content._model&&(o[s].color=n),o[s].customAlpha=1;p.features.get(e).customAlpha=1}}else{var a=p.getFeatureColor(i);if(p.features.has(i)&&a){var r=p.features.get(i).features;for(var l in r)r[l].content._model&&(r[l].color=Cesium.Color.fromCssColorString("rgba(".concat(Cesium.Color.floatToByte(a.red),",").concat(Cesium.Color.floatToByte(a.green),",").concat(Cesium.Color.floatToByte(a.blue),",").concat(.2*a.alpha,")"))),r[l].customAlpha=.2*a.alpha;p.features.get(i).customAlpha=.2*a.alpha}}}))):this.features.forEach((function(t,e){var i=p.features.get(e).features,n=p.getFeatureColor(e);if(n){for(var o in i)i[o].content._model&&(i[o].color=n),i[o].customAlpha=1;p.features.get(e).customAlpha=.2*n.alpha}}));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"exportProperty",value:function(t){if(0!==this.exportStateArray.length){for(var e,i=["name","","","","","","","","","","","","stateCH","descriptions"],n='{rows}
            ',o=function(t,e){return t.replace(/{(\w+)}/g,(function(t,i){return e[i]}))},s="",a="",r="",l=0;l构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性'),r+="",i){if(Array.isArray(this.features[l][i[u]])){var p="";for(var h in this.features[l][i[u]])p+="".concat(this.features[l][i[u]][h].key+":"+this.features[l][i[u]][h].value," ");s={nameType:"String",data:p}}else s={nameType:"String",data:this.features[l][i[u]]||"0"};r+=o('{data}',s)}r+="",l>0&&l/6e4%1==0&&(a+=o(n,s={rows:r,nameWS:"Sheet"+l}),r="",r+='构件名称体积墩全高H墩身高h底部高程承台宽承台长承台高桩径桩长结构材质完成情况自定义属性')}a+=o(n,s={rows:r,nameWS:"Sheet"}),r="",e=o('Axel Richter{created}{worksheets}',s={created:(new Date).getTime(),worksheets:a});var d,m=document.createElement("A");m.href="data:application/vnd.ms-excel;base64,"+(d=e,window.btoa(unescape(encodeURIComponent(d)))),m.download=this.oldData.name+"--构件属性.xls",m.target="_blank",document.body.appendChild(m),m.click(),document.body.removeChild(m)}else window.ELEMENT&&window.ELEMENT.Message({message:"未选择属性导出选项!",type:"warning",duration:1500})}},{key:"exportState",value:function(t){var e=t.target.getElementsByTagName("input")[0];if(e.checked=!e.checked,e.checked)this.exportStateArray.push(e.value),this.exportStateArray=Array.from(new Set(this.exportStateArray));else for(var i=0;i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 最大比例\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 最小像素\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 固定大小\n \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n

            旋转

            \n
            \n
            \n
            \n x 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n y 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n z 轴\n \n
            \n \n °\n \n
            \n
            \n
            \n \n
            \n
            \n 缩放\n
            \n \n 是否等比例缩放\n
            \n
            \n
            \n \n \n
            \n

            高度

            \n
            \n
            \n
            \n 高度\n \n
            \n \n m\n \n
            \n
            \n
            \n \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Tc(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Nc(t){for(var e=1;e=0;L--){var A=B[L];if(A&&A.primitive&&A.id)switch(A.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return void(A.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}}}(t)})),this.MapEvent.mouse_left_down((function(i){var n=a.scene.cartesianToCanvasCoordinates(t.origin);g.x=i.position.x-Math.floor(n.x),g.y=i.position.y-Math.floor(n.y);for(var o=a.scene.drillPick(i.position,10),s=o.length-1;s>=0;s--){var r=o[s];if(r&&r.primitive&&r.primitive._name)if(e.activeAxis)e.activeAxis=null,e.activeModelParam=null,e.controllerCallBack;else switch(r.primitive._name){case"model_edit_xAxis":case"model_edit_yAxis":case"model_edit_zAxis":return a.scene.screenSpaceCameraController.enableRotate=!1,e.activeAxis=r.primitive,e.activeModelParam=e.initParam(),void(r.primitive.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:Cesium.Color.YELLOW}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}))}}})),this.MapEvent.mouse_left_up((function(t){a.scene.screenSpaceCameraController.enableRotate=!0;for(var i=0;i360&&(o._params.rx=1),o._params.rx<0&&(o._params.rx=360);Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o._params.rx));o._params.ry-=r,o._params.ry>360&&(o._params.ry=1),o._params.ry<0&&(o._params.ry=360);Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o._params.ry));o._params.rz-=l,o._params.rz>360&&(o._params.rz=1),o._params.rz<0&&(o._params.rz=360),o.updateModel(o._params.tx,o._params.ty,o._params.tz,o._params.rx,o._params.ry,o._params.rz)}else{var p=Date.now();if(p-x<100)return clearTimeout(k),void(k=setTimeout((function(){t(e)}),100));clearTimeout(k),x=p;for(var h=o.coordCircles,d=0;d3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;this._params.tx=t=parseFloat(parseFloat(t).toFixed(8)),this._params.ty=e=parseFloat(parseFloat(e).toFixed(8)),this._params.tz=i=parseFloat(parseFloat(i).toFixed(2)),this._params.rx=n=parseFloat(n),this._params.ry=o=parseFloat(o),this._params.rz=s=parseFloat(s),this.model.position=new Cesium.Cartesian3.fromDegrees(t,e,i),this.model.rotate={x:n,y:o,z:s};var a=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),r=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),l=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),c=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),u=Cesium.Matrix4.fromRotationTranslation(a),p=Cesium.Matrix4.fromRotationTranslation(r),h=Cesium.Matrix4.fromRotationTranslation(l),d=new Cesium.Matrix4;Cesium.Matrix4.multiply(c,u,d),Cesium.Matrix4.multiply(d,p,d),Cesium.Matrix4.multiply(d,h,this.model.modelMatrix),this.transformCallBack}},{key:"transformCallBack",get:function(){this._transformCallBack&&this._transformCallBack(this._params)},set:function(t){this._transformCallBack=t}},{key:"createAxisArrow",value:function(t,e,i,n){var o=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:20}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineArrowType,{color:n}),translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return o._name=t,this.coordArrows.push(o),o}},{key:"createAxisSphere",value:function(t,e,i,n,o){var s=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({id:t,geometry:new Cesium.PolylineGeometry({positions:e,width:5}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(n)}}),releaseGeometryInstances:!1,appearance:new Cesium.PolylineColorAppearance({translucent:!0,renderState:{depthTest:{enabled:!1},depthMask:!1,depthFunction:Cesium.DepthFunction.ALWAYS}}),modelMatrix:i});return s._radius=o,s._name=t,this.coordCircles.push(s),s}},{key:"removeCoordArrows",value:function(){for(var t=0;t=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),Vc(i=zc(this,e,[t,n,o={}]),Yc,null),n.position?n.position.lng||0===n.position.lng?n.position.lat||0===n.position.lat?(i.options.earth&&delete i.options.earth,i.picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff","number"==typeof n.scale?(i.options.scale={},i.options.scale.x=n.scale,i.options.scale.y=n.scale,i.options.scale.z=n.scale):(i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.scale.z=i.options.scale.z||0===i.options.scale.z?i.options.scale.z:1),i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.position=n.position=n.position||{},i.options.position={lng:n.position.lng,lat:n.position.lat,alt:n.position.alt},i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera=i.options.attribute.camera.content||[],i.options.attribute.ISC=i.options.attribute.ISC||{},i.options.attribute.ISC.content=i.options.attribute.ISC.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.entity={id:i.options.id},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i.Dialog=o,i._EventBinding=new wn,i.on(),i):(console.warn("lat is required!"),tn()(i)):(console.warn("lng is required!"),tn()(i)):(console.warn("position is required!"),tn()(i))}return sn()(e,t),_()(e,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(l=o()(a.a.mark((function t(e){var i,n,o,s=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Pe(this.sdk,this.options.id),this.sdk&&this.sdk.viewer&&this.sdk.viewer.scene){t.next=3;break}return t.abrupt("return");case 3:if(e=this.replaceHost(e,this.options.host),this.originalOptions=this.deepCopyObj(this.options),i={id:this.options.id,url:e,show:this.options.show,maximumScale:this.options.scaleByDistance?void 0:this.options.maximumScale,minimumPixelSize:this.options.scaleByDistance?void 0:this.options.minimumPixelSize},!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=13;break}return t.next=10,Cesium.Model.fromGltfAsync(i);case 10:this.entity=t.sent,t.next=16;break;case 13:return t.next=15,Cesium.Model.fromGltf(i);case 15:this.entity=t.sent;case 16:return this.entity.imageBasedLighting.luminanceAtZenith=.6,this.entity.color=Cesium.Color.fromCssColorString(this.options.color),t.next=20,this.sdk.viewer.scene.primitives.add(this.entity);case 20:n=Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),this.entity.position=o,this.entity.rotate=Fc({},this.options.rotate),this.entity.customScale=this.options.scale,this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),Number(Cesium.VERSION.split(".")[1])>=107?(this.entity.readyEvent.addEventListener((function(){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Bc(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new oo(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far},s.entity)),s.entity.isMove=!0,clearTimeout(Uc(Yc,s)),Gc(Yc,s,setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500))})),this.activeAnimate=this.options.activeAnimate,this.modelAnimations=this.entity.loader.components.animations):this.entity.readyPromise.then((function(t){s.entity.originalBoundingSphereRadius=s.entity.boundingSphere.radius,s.editObj=new Bc(s.sdk,s.entity),s.editObj.transformCallBack=s.rotationEditingCallBack,s.updateModel(s.options.position.lng,s.options.position.lat,s.options.position.alt,s.options.rotate.x,s.options.rotate.y,s.options.rotate.z,s.options.scale),s.label||(s.label=new oo(s.sdk,{id:s.options.id,show:!!s.options.show&&s.options.label.show,position:[s.options.position.lng,s.options.position.lat,s.options.position.alt],text:s.options.name,fontSize:s.options.label.fontSize,fontFamily:s.options.label.fontFamily?s.options.label.fontFamily:0,color:s.options.label.color,pixelOffset:s.options.label.pixelOffset,backgroundColor:s.options.label.backgroundColor,lineColor:s.options.label.lineColor,lineWidth:s.options.label.lineWidth,scaleByDistance:s.options.label.scaleByDistance,near:s.options.label.near,far:s.options.label.far,ground:!1},s.entity)),s.entity.isMove=!0,clearTimeout(Uc(Yc,s)),Gc(Yc,s,setTimeout((function(){s.entity&&(s.entity.isMove=!1)}),500)),s.activeAnimate=s.options.activeAnimate,s.modelAnimations=s.entity.loader.components.animations})),se(this.sdk,this.options.id);case 28:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"getModelAnimations",value:(r=o()(a.a.mark((function t(){var e=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,i){Number(Cesium.VERSION.split(".")[1])>=107?e.entity.readyEvent.addEventListener((function(){e.modelAnimations=e.entity.loader.components.animations,t(e.modelAnimations)})):e.entity.readyPromise.then((function(i){e.modelAnimations=e.entity.loader.components.animations,t(e.modelAnimations)}))})));case 1:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})},{key:"remove",value:function(){Hc(e,"remove",this,3)([]),this.label&&this.label.remove(),this.positionEditing=!1,this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=22;break}if(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=Fc({},this.options.position):this.options.positions?r=Fc({},this.options.positions[0]):this.options.center?r=Fc({},this.options.center):this.options.start?r=Fc({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),r.hasOwnProperty("alt")){t.next=15;break}return t.next=14,this.getClampToHeight(r);case 14:r.alt=t.sent;case 15:i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e}),t.next=23;break;case 22:Number(Cesium.VERSION.split(".")[1])>=107?this.entity.ready&&(l=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt),this.entity.originalBoundingSphereRadius*this.options.scale.z*2),this.sdk.viewer.camera.flyToBoundingSphere(l)):this.entity.readyPromise.then((function(){var t=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(c.options.position.lng,c.options.position.lat,c.options.position.alt),(c.entity.originalBoundingSphereRadius||c.entity.boundingSphere.radius)*c.options.scale.z*2);c.sdk.viewer.camera.flyToBoundingSphere(t)}));case 23:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"on",value:function(){return this.add()}},{key:"setDefaultValue",value:function(){Hc(e,"setDefaultValue",this,3)([]),this.options.host=this.options.host||h(),this.options.url=this.options.url||""}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.entity.color=Cesium.Color.fromCssColorString(t),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position={lng:t,lat:this.options.position.lat,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position={lng:this.options.position.lng,lat:t,alt:this.options.position.alt},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[this.options.position.lng,this.options.position.lat,this.options.position.alt]),this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(t){this.options.position={lng:this.options.position.lng,lat:this.options.position.lat,alt:t},this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this.label&&(this.label.position=[Number(this.options.position.lng),Number(this.options.position.lat),Number(this.options.position.alt)]),this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"maximumScale",get:function(){return this.options.maximumScale},set:function(t){this.options.maximumScale=t,this.entity.maximumScale=this.scaleByDistance?void 0:t,this._elms.maximumScale&&this._elms.maximumScale.forEach((function(e){e.value=t}))}},{key:"minimumPixelSize",get:function(){return this.options.minimumPixelSize},set:function(t){this.options.minimumPixelSize=t,this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this._elms.minimumPixelSize&&this._elms.minimumPixelSize.forEach((function(e){e.value=t}))}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity.maximumScale=t?void 0:this.maximumScale,this.entity.minimumPixelSize=t?void 0:this.options.minimumPixelSize,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(e){e.checked=t}))}},{key:"rotateX",get:function(){return this.options.rotate.x},set:function(t){this.options.rotate.x=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateX&&this._elms.rotateX.forEach((function(e){e.value=t}))}},{key:"rotateY",get:function(){return this.options.rotate.y},set:function(t){this.options.rotate.y=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateY&&this._elms.rotateY.forEach((function(e){e.value=t}))}},{key:"rotateZ",get:function(){return this.options.rotate.z},set:function(t){this.options.rotate.z=t,this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.rotateZ&&this._elms.rotateZ.forEach((function(e){e.value=t}))}},{key:"scaleX",get:function(){return this.options.scale.x},set:function(t){var e=this;this.options.scale.x=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleX&&this._elms.scaleX.forEach((function(t){t.value=e.options.scale.x}))}},{key:"scaleY",get:function(){return this.options.scale.y},set:function(t){var e=this;this.options.scale.y=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleY&&this._elms.scaleY.forEach((function(t){t.value=e.options.scale.y}))}},{key:"scaleZ",get:function(){return this.options.scale.z},set:function(t){var e=this;this.options.scale.z=Number(Number(t).toFixed(2)),this.updateModel(this.options.position.lng,this.options.position.lat,this.options.position.alt,this.options.rotate.x,this.options.rotate.y,this.options.rotate.z,this.options.scale),this._elms.scaleZ&&this._elms.scaleZ.forEach((function(t){t.value=e.options.scale.z}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label&&(this.label.show=t):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label&&(this.label.color=t),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label&&(this.label.fontSize=t),this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label&&(this.label.scaleByDistance=t),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0))for(var e=0;e0&&void 0!==v[0]&&v[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=46;break}return i=!1,this.scaleX===this.scaleY&&this.scaleX===this.scaleZ&&(i=!0),t.next=9,new rn(this.sdk,this.originalOptions,{title:"模型属性",left:"180px",top:"100px",confirmCallBack:function(t){f.name=f.options.name||"未命名对象",f.originalOptions=f.deepCopyObj(f.options),f._DialogObject.close();var e=f.deepCopyObj(f.options);e.host="",f.Dialog.confirmCallBack&&f.Dialog.confirmCallBack(e),Pe(f.sdk,f.options.id),se(f.sdk,f.options.id)},resetCallBack:function(){f.reset(),f.Dialog.resetCallBack&&f.Dialog.resetCallBack()},removeCallBack:function(){f.Dialog.removeCallBack&&f.Dialog.removeCallBack()},closeCallBack:function(){f.reset(),f.positionEditing=!1,f.editObj&&f.editObj.destroy(),f.Dialog.closeCallBack&&f.Dialog.closeCallBack()},showCallBack:function(t){f.show=t,f.Dialog.showCallBack&&f.Dialog.showCallBack()},translationalCallBack:function(){f.positionEditing?f.positionEditing=!1:f.positionEditing=!0}},!0);case 9:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" model",(n=document.createElement("div")).innerHTML=Oc(this),this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,this.attributeISC=this.options.attribute.ISC.content,new kn("model-edit-tabs",void 0,this.sdk),o=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),s=this._DialogObject._element.content.getElementsByClassName("equal")[0],r=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],o.checked=i,o.addEventListener("change",(function(t){(i=t.target.checked)?(s.style.display="flex",r.style.display="none",f.scaleY=f.scaleX,f.scaleZ=f.scaleX):(s.style.display="none",r.style.display="flex")})),(l=s.getElementsByTagName("input"))[0].value=this.scaleX,l[1].value=this.scaleX,l[0].addEventListener("input",(function(t){f.scaleX=t.target.value,f.scaleY=t.target.value,f.scaleZ=t.target.value})),l[1].addEventListener("input",(function(t){f.scaleX=t.target.value,f.scaleY=t.target.value,f.scaleZ=t.target.value})),i?(s.style.display="flex",r.style.display="none"):(s.style.display="none",r.style.display="flex"),c=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){f.color=t},clear:function(){f.color="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:n.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelColor=t},clear:function(){f.labelColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:n.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelLineColor=t},clear:function(){f.labelLineColor="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelBackgroundColorStart=t},clear:function(){f.labelBackgroundColorStart="rgba(255,255,255,1)"}}),d=new YJColorPicker({el:n.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){f.labelBackgroundColorEnd=t},clear:function(){f.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),m=n.getElementsByTagName("*"),this._EventBinding.on(this,m),this._elms=this._EventBinding.element,this._elms.color=[c],this._elms.labelColor=[u],this._elms.labelLineColor=[p],this._elms.labelBackgroundColorStart=[h],this._elms.labelBackgroundColorEnd=[d],this._elms.scaleX.push(l[0],l[1]),setTimeout((function(){f.attributeLink=f.options.attribute.link.content,f.attributeVr=f.options.attribute.vr.content,f.ISCSelect&&f.ISCSelect(),f.goodsSelect&&f.goodsSelect(),f.cameraSelect&&f.cameraSelect();var t=f.attributeSelect,e=f._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(e){var i=Y(e,".attribute-select");i.legp_search(t);for(var n=f._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6?arguments[6]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(parseFloat(i).toFixed(2)),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),r.x=parseFloat(r.x),r.y=parseFloat(r.y),r.z=parseFloat(r.z),this.entity.position=new Cesium.Cartesian3.fromDegrees(t,e,i),this.entity.rotate={x:o,y:s,z:a},this.entity.customScale=r;var l=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(s)),u=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(a)),p=Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3.fromDegrees(t,e,i)),h=Cesium.Matrix4.fromRotationTranslation(l),d=Cesium.Matrix4.fromRotationTranslation(c),m=Cesium.Matrix4.fromRotationTranslation(u),f=new Cesium.Matrix4;Cesium.Matrix4.multiply(p,h,f),Cesium.Matrix4.multiply(f,d,f),Cesium.Matrix4.multiply(f,m,this.entity.modelMatrix);var v=r.x,g=r.y,y=r.z;0===v&&(v=1e-5),0===g&&(g=1e-5),0===y&&(y=1e-5),Cesium.Matrix4.multiplyByScale(this.entity.modelMatrix,new Cesium.Cartesian3(v,g,y),this.entity.modelMatrix),this.entity.minimumPixelSize=this.scaleByDistance?void 0:this.options.minimumPixelSize,this.editObj&&this.editObj.update(),this.entity.isMove=!0,clearTimeout(Uc(Yc,this)),Gc(Yc,this,setTimeout((function(){n.entity&&(n.entity.isMove=!1)}),500))}},{key:"reset",value:function(){if(this.entity)try{this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.lng=this.originalOptions.position.lng,this.lat=this.originalOptions.position.lat,this.alt=this.originalOptions.position.alt,this.maximumScale=this.originalOptions.maximumScale,this.minimumPixelSize=this.originalOptions.minimumPixelSize,this.scaleByDistance=this.originalOptions.scaleByDistance,this.rotateX=this.originalOptions.rotate.x,this.rotateY=this.originalOptions.rotate.y,this.rotateZ=this.originalOptions.rotate.z,this.scaleX=this.originalOptions.scale.x,this.scaleY=this.originalOptions.scale.y,this.scaleZ=this.originalOptions.scale.z,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect()}catch(t){}}}]);var i,n,s,r,l}(Ac);function qc(t){return'\n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 最大比例\n \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 最小像素\n \n
            \n
            \n
            \n
            \n 高度\n \n
            \n
            \n 视野缩放\n \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n
            \n x轴\n \n \n
            \n
            \n
            \n
            \n y轴\n \n \n
            \n
            \n
            \n
            \n z轴\n \n \n
            \n
            \n
            \n
            \n 高度\n \n \n
            \n
            \n
            \n
            \n 缩放\n \n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Xc(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Zc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Zc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Qc(this,e,[t,n,o={}])).picking=!0,i.options.name=n.name||"未命名对象",i.options.color=n.color||"#ffffff",i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.url=n.url,i.options.maximumScale=n.maximumScale||0===n.maximumScale?n.maximumScale:100,i.options.minimumPixelSize=n.minimumPixelSize||0===n.minimumPixelSize?n.minimumPixelSize:60,i.options.positions=n.positions||[],i.options.type=n.type||0,i.options.interval=n.interval||0===n.interval?n.interval:1,i.options.quantity=n.quantity,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.options.rotate=n.rotate=n.rotate||{},i.options.rotate.x=n.rotate.x||0,i.options.rotate.y=n.rotate.y||0,i.options.rotate.z=n.rotate.z||0,i.options.label=n.label=n.label||{},i.options.label.show=!(!n.label.show&&!1!==n.label.show)&&n.label.show,i.options.label.fontSize=n.label.fontSize||20,i.options.label.color=n.label.color||"#ffffff",i.options.label.near=n.label.near||0===n.label.near?n.label.near:2e3,i.options.label.far=n.label.far||0===n.label.far?n.label.far:1e5,i.options.label.scaleByDistance=n.label.scaleByDistance||!1,i.options.label.backgroundColor=n.label.backgroundColor||["#42c6ef","#42c6ef"],i.options.line=n.line=n.line||{},i.options.line.width=n.line.width||2,i.options.line.length=n.line.length||20,i.options.line.color=n.line.color||"#fff000",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||[],i.options.attributeType=n.attributeType||"richText",i.ModelPositions=[],i._elms={},i.positionCallBack=null,i.rotationCallback=null,i.onClickCallback=null,i._DialogObject=null,i._element_style=null,i.ControllerObject=new qo(i.sdk),i.ControllerObject.controllerCallBack=function(t){i.lng=t.position.lng,i.lat=t.position.lat,i.alt=t.position.alt},i.Dialog=o,i._EventBinding=new wn,i.on(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"glb"}},{key:"loadModel",value:(s=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(v=function(t){return new Worker("data:,(".concat(t.toString(),")(").concat(JSON.stringify(m),")"))},f=function(t){var e=t.type,i=t.interval,n=t.positions,o=t.optionsPositions,s=t.quantity,a=t.turfUrl;importScripts(a);var r=[];switch(e){case 1:var l=turf.lineString(n[0]),c=turf.lineChunk(l,i/1e3,{units:"kilometers"});r.push({lng:c.features[0].geometry.coordinates[0][0],lat:c.features[0].geometry.coordinates[0][1]});for(var p=0;pthis.options.height&&(o=this.options.positions[s].alt);n[0].length>2?(n[0].push([this.options.positions[0].lng,this.options.positions[0].lat]),r=turf.polygon(n),l=turf.pointOnFeature(r),this.center={lng:l.geometry.coordinates[0],lat:l.geometry.coordinates[1]}):2==n[0].length?this.center={lng:(this.options.positions[0].lng+this.options.positions[1].lng)/2,lat:(this.options.positions[0].lat+this.options.positions[1].lat)/2}:this.center={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat},c=[],this.options.height||0===this.options.height||(this.options.height=o),p=document.scripts,h="",d=0;case 14:if(!(dthis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==p[0]&&p[0],this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=36;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 600px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:first-child {\n margin-left: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .col:last-child {\n margin-right: 0;\n }\n .YJ-custom-base-dialog>.content>div>.row .label {\n flex: 0 0 74px;\n }\n .YJ-custom-base-dialog>.content .DIV-cy-tab-content-pane .input-select {\n width: 100px;\n }\n",t.next=12,new rn(this.sdk,this.originalOptions,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){u.name=u.options.name||"未命名对象",u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions)},resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},removeCallBack:function(){u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u.reset(),u.positionEditing=!1,u.ControllerObject&&u.ControllerObject.destroy(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},showCallBack:function(t){u.show=t,u.Dialog.showCallBack&&u.Dialog.showCallBack()},translationalCallBack:function(){u.positionEditing?u.positionEditing=!1:u.positionEditing=!0}},!0);case 12:this._DialogObject=t.sent,document.getElementsByTagName("head")[0].appendChild(this._element_style),(i=document.createElement("div")).innerHTML=qc(this),this._DialogObject.contentAppChild(i),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,new kn("model-edit-tabs",void 0,this.sdk),n=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){u.color=t},clear:function(){u.color="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("label_color")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelColor=t},clear:function(){u.labelColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:i.getElementsByClassName("line_color")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){u.lineColor=t},clear:function(){u.lineColor="rgba(255,255,255,1)"}}),r=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelBackgroundColorStart=t},clear:function(){u.labelBackgroundColorStart="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:i.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){u.labelBackgroundColorEnd=t},clear:function(){u.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),c=i.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[n],this._elms.labelColor=[o],this._elms.lineColor=[s],this._elms.labelBackgroundColorStart=[r],this._elms.labelBackgroundColorEnd=[l],setTimeout((function(){u.attributeLink=u.options.attribute.link.content,u.cameraSelect&&u.cameraSelect();var t=u.attributeSelect,e=u._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(e){var i=Y(e,".attribute-select");i.legp_search(t);for(var n=u._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],o=0;o3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(i),n=parseFloat(n),o=parseFloat(o),s=parseFloat(s),a=parseFloat(a),this.entity.rotate={x:n,y:o,z:s};var r=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(n)),l=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(o)),c=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(s)),u=new Cesium.Cartesian3.fromDegrees(t,e,i);Cesium.Transforms.eastNorthUpToFixedFrame(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z)),Cesium.Matrix4.fromRotationTranslation(r),Cesium.Matrix4.fromRotationTranslation(l),Cesium.Matrix4.fromRotationTranslation(c),new Cesium.Matrix4;Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(u.x-this.entity._center.x,u.y-this.entity._center.y,u.z-this.entity._center.z),this.entity.modelMatrix),this.ControllerObject.update(),this.entity.position=new Cesium.Cartesian3.fromDegrees(t,e,i)}},{key:"updateModelRotate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0;t=parseFloat(t),e=parseFloat(e),i=parseFloat(i),n=parseFloat(n),this.sdk.viewer.scene.primitives.remove(this.entity);var o=this.options.url;if(!o.startsWith("http")&&!o.includes(":")&&this.options.host){var s=new URL(o,this.options.host);o=s.href}for(var a=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=ou(this,e,[t,n])).object={},i.options.host=i.options.host||h(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"on",value:function(){return this.add()}},{key:"add",value:(n=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.requestResource();case 2:return e=t.sent,t.next=5,e.text();case 5:if(i=t.sent,i=JSON.parse(i),![0,200].includes(i.code)){t.next=11;break}return t.abrupt("return",this.loadLayer(i.data));case 11:return t.abrupt("return",new Promise((function(t,e){e(i.msg||i.message)})));case 12:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"loadLayer",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.object=nu({},e),i="",this.object.url.startsWith("http")?i=this.object.url:this.options.host?(n=new URL(this.object.url,this.options.host),i=n.href):i=this.object.url,o={url:i,mimmumLevel:this.object.minimumLevel,maximumLevel:this.object.maximumLevel,rectangle:new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north))},t.t0=this.object.scheme_name,t.next="amapMercatorTilingScheme"===t.t0?7:""===t.t0?9:10;break;case 7:return o.tilingScheme=this.amapMercatorTilingScheme(),t.abrupt("break",12);case 9:return t.abrupt("break",12);case 10:return o.tilingScheme=new Cesium[this.object.scheme_name],t.abrupt("break",12);case 12:t.t1=this.object.load_method,t.next="tms"===t.t1?15:"xyz"===t.t1?24:"wmts"===t.t1?26:28;break;case 15:if(this.object.url.endsWith("tilemapresource.xml")&&((r=this.object.url.split("/")).pop(),l=r.join("/"),o.url=l),!(Number(Cesium.VERSION.split(".")[1])>=107)){t.next=22;break}return t.next=19,Cesium.TileMapServiceImageryProvider.fromUrl(o.url,o);case 19:s=t.sent,t.next=23;break;case 22:s=new Cesium.TileMapServiceImageryProvider(o);case 23:return t.abrupt("break",30);case 24:return s=new Cesium.UrlTemplateImageryProvider(o),t.abrupt("break",30);case 26:return s=new Cesium.WebMapTileServiceImageryProvider(o),t.abrupt("break",30);case 28:return s=new Cesium.UrlTemplateImageryProvider(o),t.abrupt("break",30);case 30:if(this.sdk&&this.sdk.viewer){t.next=32;break}return t.abrupt("return");case 32:for(this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s,this.options.layer_index):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(s),this.entity._id=this.options.id,c=0;c1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=au(this,e,[t,n])).loadLayer(),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"layer"}},{key:"loadLayer",value:function(t){var e,i={url:this.options.url,mimmumLevel:this.options.minimumLevel||0,maximumLevel:this.options.maximumLevel||20,subdomains:["0","1","2","3","4","5","6","7"]};e=new Cesium.UrlTemplateImageryProvider(i),this.options.hasOwnProperty("layer_index")?this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(e,this.options.layer_index):this.entity=this.sdk.viewer.scene.imageryLayers.addImageryProvider(e),this.entity._id=this.options.id;for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function pu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return k()(this,e),du(i=hu(this,e,[t,n]),gu,void 0),i.object=JSON.parse(JSON.stringify(o)),i.object.west||(i.object.west=40),i.object.south||(i.object.south=30),i.object.east||(i.object.east=160),i.object.north||(i.object.north=50),i.show=i.options.show,i._elms={},i.Dialog=s,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"terrain"}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return!(this.sdk.viewer.scene.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)},set:function(t){t?this.open():this.close()}},{key:"open",value:(r=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.url){t.next=4;break}return t.abrupt("return",this.loadTerrain({url:this.options.url}));case 4:return t.next=6,this.requestResource();case 6:return e=t.sent,t.next=9,e.text();case 9:if(i=t.sent,i=JSON.parse(i),![0,200].includes(i.code)){t.next=19;break}if(!i.data.url.length){t.next=16;break}return t.abrupt("return",this.loadTerrain(i.data));case 16:return t.abrupt("return",new Promise((function(t,e){e("资源不存在")})));case 17:t.next=20;break;case 19:return t.abrupt("return",new Promise((function(t,e){e(i.msg||i.message)})));case 20:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"close",value:function(){var t=this;this.sdk.viewer.scene.terrainProvider=new Cesium.EllipsoidTerrainProvider({});for(var e=0;e=107)){t.next=9;break}return t.next=6,Cesium.CesiumTerrainProvider.fromUrl(n);case 6:this.terrainProvider=t.sent,t.next=10;break;case 9:this.terrainProvider=new Cesium.CesiumTerrainProvider({url:n});case 10:if(this.sdk&&this.sdk.viewer){t.next=12;break}return t.abrupt("return");case 12:this.sdk.viewer.terrainProvider=this.terrainProvider,clearTimeout(fu(gu,this)),mu(gu,this,setTimeout((function(){clearTimeout(fu(gu,s)),s.terrainProvider.readyPromise.then((function(){var t,e=uu(s.sdk.entityMap);try{for(e.s();!(t=e.n()).done;){var i=y()(t.value,2),n=(i[0],i[1]);"BillboardObject"!==n.type||1!=n.heightMode&&3!=n.heightMode?n.label&&(n.label.show=n.label.show):n.updateHeight()}}catch(t){e.e(t)}finally{e.f()}}))}),1e3)),se(this.sdk,this.options.id);case 16:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"remove",value:function(){this.close()}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:3,!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=cu({},this.options.position):this.options.positions?l=cu({},this.options.positions[0]):this.options.center?l=cu({},this.options.center):this.options.start?l=cu({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i,duration:e}),t.next=27;break;case 25:c=new Cesium.Rectangle(Cesium.Math.toRadians(this.object.west),Cesium.Math.toRadians(this.object.south),Cesium.Math.toRadians(this.object.east),Cesium.Math.toRadians(this.object.north)),this.sdk.viewer.camera.flyTo({destination:c,duration:e});case 27:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h(),this.options.url=this.options.url||""}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,new rn(this.sdk,this.options,{title:"地形属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close();var e=o.deepCopyObj(o.options);e.host="",o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(e)},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()}},!0);case 5:this._DialogObject=t.sent,(e=document.createElement("div")).style.width="300px",i='\n \n
            \n
            \n
            \n 名称:\n \n
            \n
            \n
            \n ',e.innerHTML=i,(n=e.getElementsByClassName("name")[0]).value=this.name,n.addEventListener("input",(function(){o.name=n.value})),this._DialogObject.contentAppChild(e),this._elms.name=[n];case 15:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,s,r}(Al);function bu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Cu(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Cu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Eu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#ff0000",n.options.endColor=i.endColor||"#fff000",n.options.startScale=i.startScale||.5,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||1,n.options.maximumParticleLife=i.maximumParticleLife||2,n.options.minimumSpeed=i.minimumSpeed||1,n.options.maximumSpeed=i.maximumSpeed||30,n.options.emissionRate=i.emissionRate||60,n.options.particleSize=i.particleSize||10,n.options.show=!1!==i.show,n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n._elms={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.originalOptions=this.deepCopyObj(this.options),e=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=e.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(30)),modelMatrix:o,updateCallback:function(t){t._billboard.id=r.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(r.entity&&r.show){var t=r.sdk.viewer.camera.positionCartographic.height;r.entity.show=!(t>=1e7)}}));case 14:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_u({},this.options.position):this.options.positions?l=_u({},this.options.positions[0]):this.options.center?l=_u({},this.options.center):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(t){this.options.minimumSpeed=t,this.particleSystem.minimumSpeed=t,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(e){e.value=t}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(t){this.options.maximumSpeed=t,this.particleSystem.maximumSpeed=t,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(e){e.value=t}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=t,this.particleSystem.minimumParticleLife=t,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=t}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=t,this.particleSystem.maximumParticleLife=t,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=t}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=t,this.particleSystem.startScale=t,this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=t}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=t,this.particleSystem.endScale=t,this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=t}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=t,this.particleSystem.emissionRate=t,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=t}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=t,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(t,t),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(t,t),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r=this,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"火焰属性",left:"180px",top:"100px",confirmCallBack:function(t){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Pe(r.sdk,r.options.id),se(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(t){r.show=t,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.startColor=t},clear:function(){r.startColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.endColor=t},clear:function(){r.endColor="rgba(255,255,255,1)"}}),s=i.getElementsByTagName("*"),ku.on(this,s),this._elms=ku.element,this._elms.startColor=[n],this._elms.endColor=[o],t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,function(t){Le.apply(this,arguments)}(this.entity))}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Su(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:_u({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.lng,e.options.lat,e.options.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt}e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:_u({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:_u({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.alt}))}}},{key:"flicker",value:function(){}}]);var i,n,s,r}(Wn);function Pu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Mu(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mu(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Mu(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Lu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#00000000",n.options.endColor=i.endColor||"#0000001a",n.options.startScale=i.startScale||.1,n.options.endScale=i.endScale||10,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||10,n.options.maximumSpeed=i.maximumSpeed||15,n.options.emissionRate=i.emissionRate||28,n.options.particleSize=i.particleSize||2,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.originalOptions=this.deepCopyObj(this.options),e=this.sdk.viewer.scene,i=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),n=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(i),o=Cesium.Transforms.eastNorthUpToFixedFrame(n),Cesium.Matrix4.multiplyByScale(o,new Cesium.Cartesian3(1,1,1),o),s=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=e.primitives.add(new Cesium.ParticleSystem({show:!(s>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,minimumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),maximumImageSize:new Cesium.Cartesian2(this.options.particleSize,this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,lifetime:.5,loop:!0,emitter:new Cesium.CircleEmitter(.2),performance:!1,modelMatrix:o,updateCallback:function(t){t._billboard.id=r.options.id}})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(r.entity&&r.show){var t=r.sdk.viewer.camera.positionCartographic.height;r.entity.show=!(t>=1e7)}}));case 14:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bu({},this.options.position):this.options.positions?l=Bu({},this.options.positions[0]):this.options.center?l=Bu({},this.options.center):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(t){this.options.minimumSpeed=t,this.particleSystem.minimumSpeed=t,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(e){e.value=t}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(t){this.options.maximumSpeed=t,this.particleSystem.maximumSpeed=t,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(e){e.value=t}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=t,this.particleSystem.minimumParticleLife=t,this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=t}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=t,this.particleSystem.maximumParticleLife=t,this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=t}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=t,this.particleSystem.startScale=t,this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=t}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=t,this.particleSystem.endScale=t,this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=t}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=t,this.particleSystem.emissionRate=t,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=t}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=t,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(t,t),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(t,t),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r=this,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"烟雾属性",left:"180px",top:"100px",confirmCallBack:function(t){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Pe(r.sdk,r.options.id),se(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(t){r.show=t,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.startColor=t},clear:function(){r.startColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.endColor=t},clear:function(){r.endColor="rgba(255,255,255,1)"}}),s=i.getElementsByTagName("*"),Tu.on(this,s),this._elms=Tu.element,this._elms.startColor=[n],this._elms.endColor=[o],t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Au(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Bu({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.lng,e.options.lat,e.options.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt}e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Bu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Bu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.alt}))}}},{key:"flicker",value:function(){}}]);var i,n,s,r}(Wn);function Iu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ru(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ru(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ru(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Gu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f24d",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||1,n.options.endScale=i.endScale||20,n.options.minimumParticleLife=i.minimumParticleLife||6,n.options.maximumParticleLife=i.maximumParticleLife||7,n.options.minimumSpeed=i.minimumSpeed||9,n.options.maximumSpeed=i.maximumSpeed||9.5,n.options.emissionRate=i.emissionRate||20,n.options.particleSize=i.particleSize||.5,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.lng,lat:n.options.lat,alt:n.options.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p=function(){var t=Cesium.HeadingPitchRoll.fromDegrees(0,0,0),e=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 return e.translation=Cesium.Cartesian3.fromElements(0,0,0),e.rotation=Cesium.Quaternion.fromHeadingPitchRoll(t),Cesium.Matrix4.fromTranslationRotationScale(e)},u=function(t,i){t._billboard.id=e.options.id;var n=t.position;Cesium.Cartesian3.normalize(n,l),Cesium.Cartesian3.multiplyByScalar(l,c*i,l),t.velocity=Cesium.Cartesian3.add(t.velocity,l,t.velocity)},e=this,this.originalOptions=this.deepCopyObj(this.options),i=this.sdk.viewer.scene,new Cesium.Cartesian3,n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),s=Cesium.Transforms.eastNorthUpToFixedFrame(o),Cesium.Matrix4.multiplyByScale(s,new Cesium.Cartesian3(1,1,1),s),r=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=i.primitives.add(new Cesium.ParticleSystem({show:!(r>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/fountain.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.minimumSpeed,maximumSpeed:this.options.maximumSpeed,lifetime:.5,imageSize:new Cesium.Cartesian2(this.options.particleSize,2*this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,loop:!0,emitter:new Cesium.ConeEmitter(Cesium.Math.toRadians(.2)),modelMatrix:s,emitterModelMatrix:p(),updateCallback:u})),l=new Cesium.Cartesian3,c=-3.5,this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(h.entity&&h.show){var t=h.sdk.viewer.camera.positionCartographic.height;h.entity.show=!(t>=1e7)}}));case 21:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Vu({},this.options.position):this.options.positions?l=Vu({},this.options.positions[0]):this.options.center?l=Vu({},this.options.center):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=26;break;case 25:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 26:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"minimumSpeed",get:function(){return this.options.minimumSpeed},set:function(t){this.options.minimumSpeed=t,this.particleSystem.minimumSpeed=t,this._elms.minimumSpeed&&this._elms.minimumSpeed.forEach((function(e){e.value=t}))}},{key:"maximumSpeed",get:function(){return this.options.maximumSpeed},set:function(t){this.options.maximumSpeed=t,this.particleSystem.maximumSpeed=t,this._elms.maximumSpeed&&this._elms.maximumSpeed.forEach((function(e){e.value=t}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=Number(t),this.particleSystem.minimumParticleLife=Number(t),this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=Number(t)}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=Number(t),this.particleSystem.maximumParticleLife=Number(t),this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=Number(t)}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=t,this.particleSystem.startScale=t,this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=t}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=t,this.particleSystem.endScale=t,this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=t}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=t,this.particleSystem.emissionRate=t,this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=t}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=t,this.particleSystem.minimumImageSize=new Cesium.Cartesian2(t,t),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(t,t),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=t}))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r=this,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]&&l[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=21;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"喷泉属性",left:"180px",top:"100px",confirmCallBack:function(t){r.name=r.name.trim(),r.name||(r.name="未命名对象"),r.originalOptions=r.deepCopyObj(r.options),r._DialogObject.close(),r.Dialog.confirmCallBack&&r.Dialog.confirmCallBack(r.originalOptions),Pe(r.sdk,r.options.id),se(r.sdk,r.options.id)},resetCallBack:function(){r.reset(),r.Dialog.resetCallBack&&r.Dialog.resetCallBack()},removeCallBack:function(){r.Dialog.removeCallBack&&r.Dialog.removeCallBack()},closeCallBack:function(){r.reset(),r.positionEditing=!1,r.Dialog.closeCallBack&&r.Dialog.closeCallBack()},showCallBack:function(t){r.show=t,r.Dialog.showCallBack&&r.Dialog.showCallBack()},translationalCallBack:function(){r.positionEditing=!r.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 最小初速度\n \n
            \n
            \n
            \n
            \n 最大初速度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.startColor=t},clear:function(){r.startColor="rgba(255,255,255,1)"}}),o=new YJColorPicker({el:i.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){r.endColor=t},clear:function(){r.endColor="rgba(255,255,255,1)"}}),s=i.getElementsByTagName("*"),zu.on(this,s),this._elms=zu.element,this._elms.startColor=[n],this._elms.endColor=[o],t.next=21;break;case 21:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.minimumSpeed=this.originalOptions.minimumSpeed,this.maximumSpeed=this.originalOptions.maximumSpeed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt)}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Uu(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Vu({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.lng,e.options.lat,e.options.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.lng=o.lng,e.options.lat=o.lat,e.options.alt=o.alt}e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Vu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Vu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.lng=this.entity.position.lng,this.options.lat=this.entity.position.lat,this.options.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.lng,this.options.lat,this.options.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.alt}))}}},{key:"flicker",value:function(){}}]);var i,n,s,r}(Wn);function Yu(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ju(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ju(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ju(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=Zu(this,e,[t,i])).options.url=i.url,n.options.startColor=i.startColor||"#c1f7f2",n.options.endColor=i.endColor||"#ffffff00",n.options.startScale=i.startScale||.2,n.options.endScale=i.endScale||2,n.options.minimumParticleLife=i.minimumParticleLife||12,n.options.maximumParticleLife=i.maximumParticleLife||12,n.options.emissionRate=i.emissionRate||100,n.options.particleSize=i.particleSize||1,n.options.show=!1!==i.show,n._elms={},n.positionCallBack=null,n.rotationCallback=null,n.onClickCallback=null,n._DialogObject=null,n._element=null,n.particleSystem,n.sdk.addIncetance(n.options.id,n),n.add(),n.operate={},n.previous={positions:{lng:n.options.start.lng,lat:n.options.start.lat,alt:n.options.start.alt}},n.Dialog=o,n.event=new X(n.sdk),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"ParticleEffects"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=ze().sdkD;this.isShowView&&e||(this.options.show=t),this.showView&&3!=this.showView&&e?(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=!1),this.options.label&&this.options.label.show&&(this.label.show=!1)):(this.entity&&this.sdk.viewer.camera.positionCartographic.height<1e7&&(this.entity.show=this.options.show),this.options.label&&this.options.label.show&&(this.label.show=this.options.show)),this._DialogObject&&this._DialogObject.showBtn&&(this._DialogObject.showBtn.checked=t),Pe(this.sdk,this.options.id),se(this.sdk,this.options.id),this.isShowView=!1}else console.error("参数必须为boolean")}},{key:"add",value:(r=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:C=function(t,e){var i=new Cesium.Cartesian3,n=Cesium.Transforms.eastNorthUpToFixedFrame(t);return Cesium.Matrix4.inverse(n,n),Cesium.Matrix4.multiplyByPoint(n,e,i),Cesium.Cartesian3.normalize(i,i),Cesium.Math.toDegrees(Math.atan2(i.x,i.y))},b=function(){var t=Cesium.HeadingPitchRoll.fromDegrees(e.options.heading+90,e.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 return i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(t),Cesium.Matrix4.fromTranslationRotationScale(i)},y=function(t,i){t._billboard.id=e.options.id;var n=t.position;Cesium.Cartesian3.normalize(n,r),Cesium.Cartesian3.multiplyByScalar(r,l*i,r),t.velocity=Cesium.Cartesian3.add(t.velocity,r,t.velocity)},e=this,this.originalOptions=this.deepCopyObj(this.options),i=this.sdk.viewer.scene,n=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n),s=Cesium.Transforms.eastNorthUpToFixedFrame(o),Cesium.Matrix4.multiplyByScale(s,new Cesium.Cartesian3(1,1,1),s),r=new Cesium.Cartesian3,l=-3.8,c=Cesium.Cartesian3.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),u=Cesium.Cartesian3.fromDegrees(this.options.end.lng,this.options.end.lat,this.options.end.alt),this.options.heading||0===this.options.heading||(this.options.heading=C(c,u)),p=this.options.end.alt-this.options.start.alt,h=Cesium.Cartesian3.distance(c,Cesium.Cartesian3.fromDegrees(this.options.end.lng,this.options.end.lat,this.options.start.alt)),d=p?2*p/h:0,m=Math.atan(d)*(180/Math.PI),f=Math.sqrt(Math.abs(d)*h/-l),v=-l*f/Math.abs(Math.cos(m)),this.options.pitch||0===this.options.pitch||(this.options.pitch=90-m),this.options.speed||0===this.options.speed||(this.options.speed=v),g=this.sdk.viewer.camera.positionCartographic.height,this.particleSystem=i.primitives.add(new Cesium.ParticleSystem({show:!(g>=1e7)&&this.options.show,image:this.options.url||this.getSourceRootPath()+"/img/particlesystem/smoke.png",startColor:Cesium.Color.fromCssColorString(this.options.startColor),endColor:Cesium.Color.fromCssColorString(this.options.endColor),startScale:this.options.startScale,endScale:this.options.endScale,minimumParticleLife:this.options.minimumParticleLife,maximumParticleLife:this.options.maximumParticleLife,minimumSpeed:this.options.speed,maximumSpeed:this.options.speed,lifetime:.5,imageSize:new Cesium.Cartesian2(this.options.particleSize,2*this.options.particleSize),sizeInMeters:!0,emissionRate:this.options.emissionRate,loop:!0,emitter:new Cesium.CircleEmitter(.2),modelMatrix:s,emitterModelMatrix:b(),updateCallback:y})),this.particleSystem.id=this.options.id,this.entity=this.particleSystem,this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id),this.sdk.viewer.camera.changed.addEventListener((function(){if(w.entity&&w.show){var t=w.sdk.viewer.camera.positionCartographic.height;w.entity.show=!(t>=1e7)}}));case 31:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Xu({},this.options.position):this.options.positions?l=Xu({},this.options.positions[0]):this.options.line&&this.options.line.positions?l=Xu({},this.options.line.positions[0]):this.options.center?l=Xu({},this.options.center):this.options.start?l=Xu({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=24;break;case 23:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt+500),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"startColor",get:function(){return this.options.startColor},set:function(t){var e=this;this.options.startColor=t,this.particleSystem.startColor=Cesium.Color.fromCssColorString(t),this._elms.startColor&&this._elms.startColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.startColor=t},clear:function(){e.startColor="rgba(255,255,255,1)"}});e._elms.startColor[n]=o}))}},{key:"endColor",get:function(){return this.options.endColor},set:function(t){var e=this;this.options.endColor=t,this.particleSystem.endColor=Cesium.Color.fromCssColorString(t),this._elms.endColor&&this._elms.endColor.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.endColor=t},clear:function(){e.endColor="rgba(255,255,255,1)"}});e._elms.endColor[n]=o}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=Number(t),this.particleSystem.minimumSpeed=Number(t),this.particleSystem.maximumSpeed=Number(t),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=Number(t)}))}},{key:"minimumParticleLife",get:function(){return this.options.minimumParticleLife},set:function(t){this.options.minimumParticleLife=Number(t),this.particleSystem.minimumParticleLife=Number(t),this._elms.minimumParticleLife&&this._elms.minimumParticleLife.forEach((function(e){e.value=Number(t)}))}},{key:"maximumParticleLife",get:function(){return this.options.maximumParticleLife},set:function(t){this.options.maximumParticleLife=Number(t),this.particleSystem.maximumParticleLife=Number(t),this._elms.maximumParticleLife&&this._elms.maximumParticleLife.forEach((function(e){e.value=Number(t)}))}},{key:"startScale",get:function(){return this.options.startScale},set:function(t){this.options.startScale=Number(t),this.particleSystem.startScale=Number(t),this._elms.startScale&&this._elms.startScale.forEach((function(e){e.value=Number(t)}))}},{key:"endScale",get:function(){return this.options.endScale},set:function(t){this.options.endScale=Number(t),this.particleSystem.endScale=Number(t),this._elms.endScale&&this._elms.endScale.forEach((function(e){e.value=Number(t)}))}},{key:"emissionRate",get:function(){return this.options.emissionRate},set:function(t){this.options.emissionRate=Number(t),this.particleSystem.emissionRate=Number(t),this._elms.emissionRate&&this._elms.emissionRate.forEach((function(e){e.value=Number(t)}))}},{key:"particleSize",get:function(){return this.options.particleSize},set:function(t){this.options.particleSize=Number(t),this.particleSystem.minimumImageSize=new Cesium.Cartesian2(Number(t),2*Number(t)),this.particleSystem.maximumImageSize=new Cesium.Cartesian2(Number(t),2*Number(t)),this._elms.particleSize&&this._elms.particleSize.forEach((function(e){e.value=Number(t)}))}},{key:"lng",get:function(){return this.options.start.lng},set:function(t){this.options.start.lng=t;var e=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.start.lat},set:function(t){this.options.start.lat=t;var e=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.start.alt},set:function(t){this.options.start.alt=t;var e=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),i=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(e);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(i),this.entity.position={lng:this.options.start.lng,lat:this.options.start.lat,alt:this.options.start.alt},this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"heading",get:function(){return this.options.heading},set:function(t){this.options.heading=Number(t);var e=Cesium.HeadingPitchRoll.fromDegrees(this.options.heading+90,this.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(e);var n=Cesium.Matrix4.fromTranslationRotationScale(i);this.particleSystem.emitterModelMatrix=n,this._elms.heading&&this._elms.heading.forEach((function(e){e.value=Number(t)}))}},{key:"pitch",get:function(){return this.options.pitch},set:function(t){this.options.pitch=Number(t);var e=Cesium.HeadingPitchRoll.fromDegrees(this.options.heading+90,this.options.pitch,0),i=new Cesium.TranslationRotationScale;//!!!发射粒子的方向 -i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(e);var n=Cesium.Matrix4.fromTranslationRotationScale(i);this.particleSystem.emitterModelMatrix=n,this._elms.pitch&&this._elms.pitch.forEach((function(e){e.value=Number(t)}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var i,n,o,s,r,l=this,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>0&&void 0!==c[0]&&c[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=20;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"喷射水柱属性",left:"180px",top:"100px",confirmCallBack:function(t){l.name=l.name.trim(),l.name||(l.name="未命名对象"),l.originalOptions=l.deepCopyObj(l.options),l._DialogObject.close(),l.Dialog.confirmCallBack&&l.Dialog.confirmCallBack(l.originalOptions),Pe(l.sdk,l.options.id),se(l.sdk,l.options.id)},resetCallBack:function(){l.reset(),l.Dialog.resetCallBack&&l.Dialog.resetCallBack()},removeCallBack:function(){l.Dialog.removeCallBack&&l.Dialog.removeCallBack()},closeCallBack:function(){l.reset(),l.positionEditing=!1,l.Dialog.closeCallBack&&l.Dialog.closeCallBack()},showCallBack:function(t){l.show=t,l.Dialog.showCallBack&&l.Dialog.showCallBack()},translationalCallBack:function(){l.positionEditing=!l.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 速度\n \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 朝向\n \n
            \n
            \n
            \n
            \n 俯仰角度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(n),o=new YJColorPicker({el:n.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){l.startColor=t},clear:function(){l.startColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:n.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){l.endColor=t},clear:function(){l.endColor="rgba(255,255,255,1)"}}),r=n.getElementsByTagName("*"),e.EventBinding(this,r),this._elms.startColor=[o],this._elms.endColor=[s],t.next=20;break;case 20:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.speed=this.originalOptions.speed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.start.lng,this.lat=this.originalOptions.start.lat,this.alt=this.originalOptions.start.alt)}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Ku(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Xu({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.start.lng=o.lng,e.options.start.lat=o.lat,e.options.start.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.start.lng,e.options.start.lat,e.options.start.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.start.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.start.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.start.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.start.lng=o.lng,e.options.start.lat=o.lat,e.options.start.alt=o.alt}e.entity.position={lng:e.options.start.lng,lat:e.options.start.lat,alt:e.options.start.alt},e.previous={positions:Xu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.start.lng=e.entity.position.lng,e.options.start.lat=e.entity.position.lat,e.options.start.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Xu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.start.lng=this.entity.position.lng,this.options.start.lat=this.entity.position.lat,this.options.start.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.start.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.start.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.start.alt}))}}},{key:"flicker",value:function(){}}],[{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=Yu(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type?"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 多面体颜色\n
            \n
            \n
            \n 多面体高度\n
            \n \n m\n \n
            \n
            \n \x3c!--
            \n 拉伸高度\n \n
            --\x3e\n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function tp(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ep(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ep(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function sp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=ap(this,e,[t,n])).options.color=n.color||"#ff0000",i.options.show=!n.show&&!1!==n.show||n.show,i.options.height=n.height||0===n.height?n.height:10,i.options.height<=.01&&(i.options.height=.01),i.options.extrudedHeight=n.extrudedHeight||0===n.extrudedHeight?n.extrudedHeight:0,i.entity,i.nodePoints=[],i.operate={},i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.Dialog=o,!i.options.positions||i.options.positions.length<3?(i._error="多面体最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),e.create(i)),i}return sn()(e,t),_()(e,[{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=this;if(this.event&&this.event.destroy(),this.event=new X(this.sdk),this.operate.positionEditing=t,this.previous={positions:L()(this.positions)},!0===t){var n;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)"));var o=Cesium.Color.fromCssColorString(this.options.color).withAlpha(.99);2===this.sdk.viewer.scene.mode&&(o=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=o,this.picking=!1;for(var s=[],a=this.positions,r=[],l=0;l=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.event.destroy();var t=e.cartesian3Towgs84(i,e.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(t.lng,t.lat);f=[],e.options.positions=[];for(var s=0;s0?new Cesium.PolygonHierarchy(f):new Cesium.PolygonHierarchy(a)}),!1)}else{this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)"));var v=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(v=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=v,this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var g=[[]],y=0;ythis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;for(var i=[[]],n=0;ni[s].alt&&(o=i[s].alt);t.options.extrudedHeight=o;for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var o=!1,s=L()(t.options.positions),a=function(e,s){if(i){t.options.positions[i.index]=t.cartesian3Towgs84(s,t.sdk.viewer),n=t.options.positions[i.index],o=!0;var a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(t.options.positions[i.index].lng,t.options.positions[i.index].lat,t.options.extrudedHeight),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}});t.nodePoints.splice(i.index,0,a),t.options.positions.splice(i.index,0,t.options.positions[i.index]),t.options.areaByMeter=t.computeArea(t.options.positions);for(var r=[[]],l=0;l=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}switch(t.options["area-unit"]){case"平方米":t.area=t.options.areaByMeter;break;case"平方千米":t.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.area=t.options.areaByMeter}}else{var p=t.sdk.viewer.scene.pick(e.position);p&&p.id&&p.id.name&&"node-secondary-edit-point"===p.id.name&&(i=p.id,t.nodePoints.splice(p.id.index,1),t.sdk.viewer.entities.remove(p.id),t.tip.set_text("左键确认,右键结束,CTRL+右键撤销"),n=t.cartesian3Towgs84(i.position._value,t.sdk.viewer))}},r=function(a,r){if(i){t.options.positions[i.index]=n,o&&t.options.positions.splice(i.index,1),(!t.options.positions||t.options.positions.length<3)&&(console.warn("多面体最少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"多面体最少需要三个坐标!",type:"warning",duration:1500}),t.options.positions=L()(s));for(var l=[[]],c=0;c=4){var u=turf.polygon(l),p=turf.centroid(u);t.label.position=[p.geometry.coordinates[0],p.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}switch(t.options.areaByMeter=t.computeArea(t.options.positions),t.options["area-unit"]){case"平方米":t.area=t.options.areaByMeter;break;case"平方千米":t.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.area=t.options.areaByMeter}for(var h=t.options.positions,d=[],m=0;m=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?r(o,i):a(o,i)}))})),t.event.mouse_right_keyboard_ctrl((function(e,n){i&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=0),t.nodePoints.pop())}));for(var l=0;l\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function up(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function pp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=mp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.nodePoints=[],!i.options.positions||i.options.positions.length<3)i._error="集结地最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=pp({},this.options.position):this.options.positions?l=pp({},this.options.positions[0]):this.options.center?l=pp({},this.options.center):this.options.start?l=pp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeAssemble(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;oNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(L()(e),[e[0],e[1]]):L()(e)}),!1);for(var h=[[]],d=[],m=0;m=500?p():u(o,i)}))})),s()}),200)}}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function gp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function yp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=wp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.nodePoints=[],i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontFamily:n.label.fontFamily?n.label.fontFamily:0,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<3)i._error="箭头面最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=yp({},this.options.position):this.options.positions?l=yp({},this.options.positions[0]):this.options.center?l=yp({},this.options.center):this.options.start?l=yp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeAttackArrow(this.options.positions);if(0!=i.length&&!Array.isArray(i[0])){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){t.next=12;break}if(!(e.distance>=d[o])){t.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),t.abrupt("break",12);case 9:o--,t.next=4;break;case 12:for(s=[],r=0;rNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n3&&i.index===t.options.positions.length-1&&t.options.positions.splice(i.index+1,1)):t.options.positions.pop(),t._elms.lng&&t._elms.lng[i.index]&&(t._elms.lng[i.index].innerHTML=t.options.positions[i.index].lng.toFixed(8)),t._elms.lat&&t._elms.lat[i.index]&&(t._elms.lat[i.index].innerHTML=t.options.positions[i.index].lat.toFixed(8))),t.heightMode=t.heightMode,t.previous=null};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(t.positionsH)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(t.positionsH),[t.positionsH[0],t.positionsH[1]])}),!1);for(var u=[[]],p=[],h=0;h3&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),t.nodePoints.pop(),i.index&&i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=i.index-1),t.renewPositions())})),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){var t=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t-n>=500?c():l(o,i)}))})),s()}),200)}}),0)}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Ep(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Sp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Pp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Mp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.options.height=n.height,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i._elms={},i.nodePoints=[],i.spreadTime=n.spreadTime,i.entity,i.event,i.operate={},i.Dialog=o,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<5)i._error="双箭头最少需要五个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Sp({},this.options.position):this.options.positions?l=Sp({},this.options.positions[0]):this.options.center?l=Sp({},this.options.center):this.options.start?l=Sp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computePincerArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance1/this.TweenAnimate._valuesEnd.distance1*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=212;C--){var w=this.cartesian3Towgs84(s[C],this.sdk.viewer);h.push([w.lng,w.lat,w.alt])}g?h.push([this.options.positions[2].lng,this.options.positions[2].lat,this.options.positions[2].alt]):h.push([this.options.positions[3].lng,this.options.positions[3].lat,this.options.positions[3].alt]),d.push([(this.options.positions[0].lng+this.options.positions[1].lng)/2,(this.options.positions[0].lat+this.options.positions[1].lat)/2],[this.options.positions[4].lng,this.options.positions[4].lat]);var k=this.deepCopyObj(this.options.positions),x=turf.lineString(p),_=turf.length(x,{units:"kilometers"}),E=turf.lineString(h),S=turf.length(E,{units:"kilometers"}),D=turf.lineString(d),P=turf.length(D,{units:"kilometers"}),M=e/this.spreadTime;this.TweenAnimate=new TWEEN.Tween({distance1:_*M,distance2:S*M,distance3:P*M}).to({distance1:_,distance2:S,distance3:P},this.spreadTime-e).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){e&&t.setSpreadProgressByTime()})).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(t.sdk.viewer){e.next=6;break}return t.removeAnimate(),e.abrupt("return");case 6:O(i);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onStart((function(){t.options.spreadState=!0,t._elms.spreadState&&t._elms.spreadState.forEach((function(t){t.checked=!0}))})).onComplete((function(e){t.removeAnimate()})),this.spreadState?this.TweenAnimate.start():O({distance1:_*M,distance2:S*M,distance3:P*M}),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positionsH)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positionsH),[i.positionsH[0],i.positionsH[1]])}),!1)}}}function O(t){return T.apply(this,arguments)}function T(){return(T=o()(a.a.mark((function t(e){var n,o,s,r,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.show){t.next=2;break}return t.abrupt("return");case 2:if(n=2,o=3,g&&(n=3,o=2),e.distance1){t.next=10;break}k[n].lng=k[1].lng,k[n].lat=k[1].lat,t.next=16;break;case 10:return t.next=12,turf.lineSliceAlong(x,0,e.distance1,{units:"kilometers"});case 12:s=t.sent,r=L()(s.geometry.coordinates[s.geometry.coordinates.length-1]),k[n].lng=r[0],k[n].lat=r[1];case 16:if(e.distance2){t.next=21;break}k[o].lng=k[0].lng,k[3].lat=k[0].lat,t.next=27;break;case 21:return t.next=23,turf.lineSliceAlong(E,0,e.distance2,{units:"kilometers"});case 23:l=t.sent,c=L()(l.geometry.coordinates[l.geometry.coordinates.length-1]),k[o].lng=c[0],k[o].lat=c[1];case 27:if(e.distance3){t.next=32;break}k[4].lng=d[0][0],k[4].lat=d[0][1],t.next=38;break;case 32:return t.next=34,turf.lineSliceAlong(D,0,e.distance3,{units:"kilometers"});case 34:u=t.sent,p=L()(u.geometry.coordinates[u.geometry.coordinates.length-1]),k[4].lng=p[0],k[4].lat=p[1];case 38:i.renewPositions(k);case 39:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}},{key:"removeAnimate",value:function(){this.spreadState=!1,this.TweenAnimate&&(TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positionsH),this.entity.polyline.positions=[].concat(L()(this.positionsH),[this.positionsH[0],this.positionsH[1]]))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error&&this.sdk.viewer){var i=!1,n=this.options.positions;t&&(n=t);for(var o=[],s=0;sNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=500?c():l(o,i)}))}));for(var e=[[]],n=[],o=0;o\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Np(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Bp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ap(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=jp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.nodePoints=[],!i.options.positions||i.options.positions.length<2)i._error="直线箭头需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bp({},this.options.position):this.options.positions?l=Bp({},this.options.positions[0]):this.options.center?l=Bp({},this.options.center):this.options.start?l=Bp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),u=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeStraightArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){t.next=12;break}if(!(e.distance>=d[o])){t.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),t.abrupt("break",12);case 9:o--,t.next=4;break;case 12:for(s=[],r=0;rNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n2&&t.options.positions.pop(),t._elms.lng&&t._elms.lng[i.index]&&(t._elms.lng[i.index].innerHTML=t.options.positions[i.index].lng.toFixed(8)),t._elms.lat&&t._elms.lat[i.index]&&(t._elms.lat[i.index].innerHTML=t.options.positions[i.index].lat.toFixed(8))),t.heightMode=t.heightMode,t.previous=null};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){var e=t.computeStraightArrow(t.options.positions);return new Cesium.PolygonHierarchy(e)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){var e=t.computeStraightArrow(t.options.positions);return e.length>=3?[].concat(L()(e),[e[0],e[1]]):L()(e)}),!1),setTimeout((function(){t.event.mouse_left(u),t.event.mouse_right(p),t.event.mouse_move(c),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){var t=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t-n>=500?p():u(o,i)}))}));for(var e=[[]],i=[],n=0;n\n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Fp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Gp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.radius=n.radius||0===n.radius?n.radius:10,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"CircleObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){this.options.radius=t,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positions),this.entity.polyline.positions=[].concat(L()(this.positions),[this.positions[0],this.positions[1]])}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,!this.show||this.showView&&3!=this.showView?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"圆属性",left:"180px",top:"100px",confirmCallBack:function(t){m.name=m.name.trim(),m.name||(m.name="未命名对象"),m.options.label.position={lng:m.label.position[0],lat:m.label.position[1],alt:m.label.position[2]},m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close(),m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(m.originalOptions),Pe(m.sdk,m.options.id),se(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.positionEditing=!1,m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(t){m.options.show=t,m.originalOptions.show=t,m.show=t,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing=!m.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(m,(function(){o()}))}});case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Rp(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){m.color=t},clear:function(){m.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.lineColor=t},clear:function(){m.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelColor=t},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelLineColor=t},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorStart=t},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorEnd=t},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.cameraSelect&&m.cameraSelect(),m.goodsSelect&&m.goodsSelect();var t=m.attributeSelect,i=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(i){var n=Y(i,".attribute-select");n.legp_search(t);for(var s=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],a=0;a0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=zp({},this.options.position):this.options.positions?l=zp({},this.options.positions[0]):this.options.center?l=zp({},this.options.center):this.options.start?l=zp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polygon.hierarchy.getValue(Cesium.JulianDate.now()).positions,u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=Number(t.lng.toFixed(8)),e.options.center.lat=Number(t.lat.toFixed(8)),e.center=e.options.center,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.previous={positions:zp({},e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)):(this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!0))}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.createCircle(t,this.options.radius),s=[];if(i)this.positions=Cesium.Cartesian3.fromDegreesArray(o),setTimeout((function(){var i=L()(e.sdk.viewer.entities.values);e.getClampToHeight({lng:t.lng,lat:t.lat},i).then((function(i){e.label&&(e.label.position=[t.lng,t.lat,i])}))}),100);else{for(var a=0;a1e3?"半径:"+(r/1e3).toFixed(2)+" 公里":"半径:"+r+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polyline:{positions:new Cesium.CallbackProperty((function(e){return Cesium.Cartesian3.fromDegreesArray([t.options.center.lng,t.options.center.lat,s.lng,s.lat])}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),t.nodePoints.push(i)}}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;eNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Yp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Xp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Zp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"EllipseObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;this.entity.polygon.hierarchy=[],!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),this.previous=null,e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"semiMinorAxis",get:function(){return this.options.semiMinorAxis},set:function(t){this.options.semiMinorAxis=t,this.height=this.height}},{key:"semiMajorAxis",get:function(){return this.options.semiMajorAxis},set:function(t){this.options.semiMajorAxis=t,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"bearing",get:function(){return this.options.bearing},set:function(t){this.options.bearing=t,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){var e=this;this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.line.width}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"椭圆属性",left:"180px",top:"100px",confirmCallBack:function(t){m.name=m.name.trim(),m.name||(m.name="未命名对象"),m.options.label.position={lng:m.label.position[0],lat:m.label.position[1],alt:m.label.position[2]},m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close(),m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(m.originalOptions),Pe(m.sdk,m.options.id),se(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.previous=null,m.positionEditing=!1,m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(t){m.options.show=t,m.originalOptions.show=t,m.show=t,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing=!m.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(m,(function(){o()}))}});case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Wp(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){m.color=t},clear:function(){m.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.lineColor=t},clear:function(){m.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelColor=t},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelLineColor=t},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorStart=t},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorEnd=t},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.cameraSelect&&m.cameraSelect(),m.goodsSelect&&m.goodsSelect();var t=m.attributeSelect,i=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(i){var n=Y(i,".attribute-select");n.legp_search(t);for(var s=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],a=0;a0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!this.options.customView){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Jp({},this.options.position):this.options.positions?l=Jp({},this.options.positions[0]):this.options.center?l=Jp({},this.options.center):this.options.start?l=Jp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polyline.positions.getValue(),u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{[];var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=t.lng,e.options.center.lat=t.lat,e.center=e.options.center,e.createEllipse(e.options.center,{bearing:e.options.bearing,semiMinorAxis:e.options.semiMinorAxis,semiMajorAxis:e.options.semiMajorAxis}),e.label.position=[t.lng,t.lat],e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.previous={center:e.deepCopyObj(e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)}else this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!0)}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}return this.positions=this.createEllipse(t,{bearing:this.options.bearing,semiMinorAxis:this.options.semiMinorAxis,semiMajorAxis:this.options.semiMajorAxis,height:t.alt+n}),i?setTimeout((function(){e.getClampToHeight({lng:t.lng,lat:t.lat}).then((function(i){e.label&&(e.label.position=[t.lng,t.lat,i])}))}),100):this.label&&(this.label.position=[t.lng,t.lat,t.alt+n]),this.options.areaByMeter=Number((Cesium.Math.PI*this.options.semiMinorAxis*this.options.semiMajorAxis).toFixed(2)),this.areaUnit=this.areaUnit,this.positions}}}],[{key:"create",value:function(t){var i,n=0;switch(t.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=t.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.options.center.lng,t.options.center.lat))||0,i=!1;break;case"2":case 2:i=!0}t.options.label.position||(t.options.label.position={lng:t.options.center.lng,lat:t.options.center.lat,alt:t.options.center.alt+n});var o=Cesium.Color.fromCssColorString(t.options.color);2===t.sdk.viewer.scene.mode&&(i=!1,o=new Cesium.CustomColorMaterialSource({color:t.options.color})),t.options.label.ground=i;var s=t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis,height:t.options.center.alt+n});switch(t.entity=t.sdk.viewer.entities.add({id:t.options.id,show:t.options.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(s),perPositionHeight:!i,material:o,zIndex:t.sdk._entityZIndex},polyline:{positions:[].concat(L()(s),[s[0],s[1]]),width:t.options.line.width,material:Cesium.Color.fromCssColorString(t.options.line.color),clampToGround:!!i,arcType:i?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,zIndex:t.sdk._entityZIndex}}),t.sdk._entityZIndex++,e.createLabel(t),t.options.areaByMeter=Number((Cesium.Math.PI*t.options.semiMinorAxis*t.options.semiMajorAxis).toFixed(2)),t.options["area-unit"]){case"平方米":t.options.area=t.options.areaByMeter;break;case"平方千米":t.options.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.options.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.options.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.options.area=t.options.areaByMeter}Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far,ground:e.options.label.ground});case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"nodeEdit",value:function(t){if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var e,i=function(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)},n=function(){var e=o()(a.a.mark((function e(i,n){var o,s,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.cartesian3Towgs84(i,t.sdk.viewer),e.next=3,t.getClampToHeight(o,d);case 3:s=e.sent,r=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),t.nodePoints.push(r);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();t.event&&t.event.destroy(),t.event=new X(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个编辑点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var s=Cesium.Cartesian3.fromDegrees(t.center.lng,t.center.lat),r=t.options.semiMinorAxis,l=t.options.semiMajorAxis,c=t.options.bearing,u=t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis});t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(u)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(u),[u[0],u[1]])}),!1);var p=t.entity.polyline.positions.getValue(),h=p.length,d=L()(t.sdk.viewer.entities.values);setTimeout((function(){t.event.mouse_left((function(n,o){if(e)t.options.semiMinorAxis=r,t.options.semiMajorAxis=l,t.options.bearing=c,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,e=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var a=t.sdk.viewer.scene.pick(n.position);if(a&&a.id&&a.id.name&&"node-secondary-edit-point"===a.id.name&&("semiMinorAxis"===a.id._type||"semiMajorAxis"===a.id._type)){t.tip.set_text("左键确认,右键取消"),e=a.id;for(var p=0;pNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 拉伸高度\n
            \n \n m\n \n
            \n
            \n
            \n 材质样式\n
            \n
            \n
            \n
            \n
            \n 墙体闭合\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Qp(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return th(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?th(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function th(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function oh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=sh(this,e,[t,i])).options.color=i.color||"#ff0000",n.options.extrudedHeight=i.extrudedHeight||2.4,n.options.positions=i.positions,n.options.material=Number(i.material)||0===Number(i.material)?Number(i.material):3,n.options.duration=i.duration||0===i.duration?i.duration:1e3,n.options.show=!i.show&&!1!==i.show||i.show,n.options["nose-to-tail"]=i["nose-to-tail"]||!1,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n.Dialog=o,n._elms={},!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),e.create(n)),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"wallStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t||"#ff0000",this.entity.polylineVolume.material=this.getMaterial(),this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[i]=n}))}},{key:"material",get:function(){return this.options.material},set:function(t){var e=this;this.options.material=Number(t)||0===Number(t)?Number(t):3,this.entity.polylineVolume.material=this.getMaterial(),this._elms.material&&this._elms.material.forEach((function(t){t.value=e.options.material}))}},{key:"noseToTail",get:function(){return this.options["nose-to-tail"]},set:function(t){this.options["nose-to-tail"]=t;for(var e=this.options.positions,i=[],n=0;nthis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'上升墙',value:"上升墙",key:1,icon:"icon-wall-gradient"},{name:'箭头墙',value:"箭头墙",key:2,icon:"icon-wall-arrow"},{name:'警戒墙',value:"警戒墙",key:3,icon:"icon-wall-warn"}],(s=Y(n.getElementsByClassName("material-box")[0],".material")).legp_search(o),(r=document.createElement("i")).className="icon icon-active",n.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(r),l=n.getElementsByClassName("material")[0].getElementsByTagName("input")[0],c=0;case 22:if(!(c=1e5&&(s=!0),o.push(r),n+=r}var l=n/e.options.extrudedHeight;if(l/=1,s)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=L()(t.options.positions),a=[],r=0;r=500?u(o,i):c(o,i)}))}));for(var h=0;h\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 宽度\n
            \n \n m\n \n
            \n
            \n
            \n 拉伸高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 拐角类型\n
            \n
            \n
            \n 墙体样式\n
            \n
            \n
            \n
            \n
            \n 墙体闭合\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function lh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ch(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ch(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ch(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=mh(this,e,[t,i]))._elms={},n.options.color=i.color||"#ffffff",n.options.width=i.width||.24,n.options["nose-to-tail"]=i["nose-to-tail"]||!1,n.options.extrudedHeight=i.extrudedHeight||2.4,n.cornerType=i.cornerType,n.options.positions=i.positions,n.options.material=Number(i.material)||0,n.options.show=!i.show&&!1!==i.show||i.show,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera.content=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n.Dialog=o,!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),e.create(n)),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"WallRealStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t,this.entity)for(var i=0;ithis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0){var P=x;x=S+180,S=P+180,D=!1}var M=turf.sector([C.lng,C.lat,C.alt],this.options.width/1e3/2,x,S,{units:"kilometers"});if(console.log("sector",M),0==b&&(o.push(e[b]),s.push(i[b])),console.log("face",D),D){o.push(e[b+1],e[b+2]);for(var O=1;O0;T--)o.push([].concat(L()(M.geometry.coordinates[0][T]),[e[b+1][2]]));s.push(i[b+1],i[b+2])}b==e.length-4&&(o.push(e[b+3]),s.push(i[b+3]))}n=[].concat(o);for(var N=s.length-1;N>=0;N--)n.push(s[N]);return n.push(n[0]),console.log("positions",n),n}},{key:"calculatePositions2",value:function(){for(var t=[],e=0;e180&&(p=360-p),p}return t}},{key:"calculatePositions",value:function(){var t=this.deepCopyObj(this.options.positions);this.noseToTail&&t.push(t[0],t[1]);for(var e=[],i=[],n=0;n0){var x=b;b=k+180,k=x+180,!1}var _=Math.abs(b-k);_>180&&(_=360-_);var E=this.options.width/2/Math.cos(Cesium.Math.toRadians(_/2));E>5*this.options.width&&(E=5*this.options.width);var S=turf.sector([v.lng,v.lat],this.options.width/1e3/2,b,k,{units:"kilometers",steps:3600}),D=turf.point([v.lng,v.lat]),P=turf.point(L()(S.geometry.coordinates[0][Math.ceil(S.geometry.coordinates[0].length/2)])),M=turf.bearing(D,P),O=turf.destination(D,E/1e3,M,{units:"kilometers"}),T=[];T.push([].concat(L()(S.geometry.coordinates[0][0]),[v.alt])),T.push([].concat(L()(S.geometry.coordinates[0][1]),[v.alt])),T.push([].concat(L()(O.geometry.coordinates),[v.alt])),T.push([].concat(L()(S.geometry.coordinates[0][S.geometry.coordinates[0].length-2]),[v.alt])),i.push(T),i.push(e[f])}else if(1===this.cornerType)for(var N=1;N0){var V=R;R=H+180,H=V+180}for(var G=turf.sector([A.lng,A.lat],this.options.width/1e3/2,R,H,{units:"kilometers"}),U=[],W=0;W直角',value:"直角",key:0,icon:"yj-icon-zj"},{name:'斜角',value:"斜角",key:1,icon:"yj-icon-xj"},{name:'圆角',value:"圆角",key:2,icon:"yj-icon-yj"}],(s=Y(n.getElementsByClassName("corner-type-box")[0],".corner-type")).legp_search(o),(r=document.createElement("i")).className="icon-active",n.getElementsByClassName("corner-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(r),l=n.getElementsByClassName("corner-type")[0].getElementsByTagName("input")[0],c=0;case 22:if(!(c'),t.abrupt("break",31);case 28:c++,t.next=22;break;case 31:l.addEventListener("input",(function(t,e){for(var i=0;i');break}})),u=[{name:'纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'红砖墙',value:"红砖墙",key:1,icon:"icon-wall-brick1"},{name:'黄砖墙',value:"黄砖墙",key:2,icon:"icon-wall-brick2"},{name:'灰瓷墙',value:"灰瓷墙",key:3,icon:"icon-wall-brick3"}],(p=Y(n.getElementsByClassName("material-box")[0],".material")).legp_search(u),(h=document.createElement("i")).className="icon icon-active",n.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(h),d=n.getElementsByClassName("material")[0].getElementsByTagName("input")[0],m=0;case 40:if(!(m0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())i("上一次测量未结束");else{var n,o,s=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t.entity){for(var n=t.calculatePositions(),o=0;o=2)for(var s=t.calculatePositions(),l=0;l=500?p(o,i):u(o,i)}))}));for(var h=0;h\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 线条颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n 线条形式\n
            \n
            \n
            \n
            \n
            \n 线段缓冲\n \n
            \n
            \n 缓冲宽度\n
            \n \n m\n \n
            \n
            \n
            \n 缓冲颜色\n
            \n
            \n
            \n
            \n
            \n 动画顺向\n \n
            \n
            \n 流动速率\n
            \n \n \n
            \n
            \n
            \n 间距\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 首尾相连\n \n
            \n
            \n
            \n
            \n
            \n
            \n\n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n
            \n
            \n
            \n \n ')}function gh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return yh(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yh(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function yh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function kh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Eh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options["nose-to-tail"]=n["nose-to-tail"]||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.dashSize=n.dashSize||.03,i.options["length-unit"]=n["length-unit"]||"米",i.options["fit-length-unit"]=n["fit-length-unit"]||"米",i.options["words-name"]=n["words-name"]||"空间长度",i.options["extend-width"]=n["extend-width"]||0===n["extend-width"]?n["extend-width"]:10,i.options["extend-color"]=n["extend-color"]||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s2)switch(t){case"米":this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;break;case"千米":this.length=this.noseToTail?(this.options.fitLengthByMeter/1e3).toFixed(5):(this.options.lengthByMeter/1e3).toFixed(5);break;default:this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter}else{var e=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;this.lengthUnit=e>1e3||1e3==e?"千米":"米"}}},{key:"wordsName",get:function(){return this.options["words-name"]},set:function(t){var e=this;this.options["words-name"]=t,this._elms.wordsName&&this._elms.wordsName.forEach((function(e){e.value=t}));var i=this;if(this.noseToTail)this.renewPositions(this.options.positions);else this.computeDistance(this.smoothHandle(this.options.positions),2,t).then((function(t){i.options.lengthByMeter=t,i.lengthUnit=e.options["length-unit"]}))}},{key:"fitLengthUnit",get:function(){return this.options["fit-length-unit"]},set:function(t){if(this.options["fit-length-unit"]=t,this._elms.fitLengthUnit&&this._elms.fitLengthUnit.forEach((function(e){e.value=t})),this.options.fitLengthByMeter)switch(t){case"米":this.fitLength=this.options.fitLengthByMeter;break;case"千米":this.fitLength=Number((this.options.fitLengthByMeter/1e3).toFixed(5));break;default:this.fitLength=this.options.fitLengthByMeter}}},{key:"lineWidth",get:function(){return this.options.width},set:function(t){var e=this;this.options.width=t||0==t?t:3,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.width})),this.entity&&this.entity.polyline&&(this.entity.polyline.width=this.entity.polyline.width+t-this.entity.polyline.oriWidth,this.entity.polyline.oriWidth=this.options.width)}},{key:"lineType",get:function(){return this.options.type},set:function(t){var e=this,i=[{name:'实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(t);for(var n=function(n){if(i[n].key===Number(t))return e._elms.lineType&&e._elms.lineType.forEach((function(t){t.value=i[n].value,2this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(l=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d,m=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=32;break}return o=function(t){"2"!==t&&2!==t||(2实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],g=Y(m._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(g){g.legp_search(v);var y=document.createElement("i");y.className="icon icon-active",m._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(y);var b=m._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];m._elms.lineType=[b];for(var C=0;C'.concat(t+1,'\n
            \n
            \n
            \n ');var n=i.getElementsByClassName("lng")[0],o=document.createElement("span");o.innerHTML=m.options.positions[t].lng.toFixed(8),n.appendChild(o);var s=document.createElement("input");s.className="input",s.type="number",s.title="",s.min=-180,s.max=180,s.value=m.options.positions[t].lng.toFixed(8);var a=i.getElementsByClassName("lat")[0],r=document.createElement("span");r.innerHTML=m.options.positions[t].lat.toFixed(8),a.appendChild(r);var l=document.createElement("input");l.className="input",l.type="number",l.title="",l.min=-90,l.max=90,l.value=m.options.positions[t].lat.toFixed(8);var c=i.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=m.options.positions[t].alt.toFixed(2),c.appendChild(u);var p=document.createElement("input");p.className="input",p.type="number",p.title="",p.min=-9999999,p.max=999999999,p.value=m.options.positions[t].alt.toFixed(2),n.addEventListener("dblclick",(function(){n.innerHTML="",s.value=Number(m.options.positions[t].lng.toFixed(8)),n.appendChild(s),s.focus(),m.positionEditing=!1,e.closeNodeEdit(m)})),s.addEventListener("blur",(function(){s.value=Number(m.options.positions[t].lng.toFixed(8)),n.innerHTML="",n.appendChild(o)})),s.addEventListener("input",(function(){m.options.positions[t].lng=Number(Number(s.value).toFixed(8)),o.innerHTML=m.options.positions[t].lng.toFixed(8);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),a.addEventListener("dblclick",(function(){a.innerHTML="",l.value=Number(m.options.positions[t].lat.toFixed(8)),a.appendChild(l),l.focus(),m.positionEditing=!1,e.closeNodeEdit(m)})),l.addEventListener("blur",(function(){l.value=Number(m.options.positions[t].lat.toFixed(8)),a.innerHTML="",a.appendChild(r)})),l.addEventListener("input",(function(){m.options.positions[t].lat=Number(Number(l.value).toFixed(8)),r.innerHTML=m.options.positions[t].lat.toFixed(8);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),c.addEventListener("dblclick",(function(){2!=m.heightMode&&(c.innerHTML="",p.value=Number(m.options.positions[t].alt.toFixed(2)),c.appendChild(p),p.focus(),m.positionEditing=!1,e.closeNodeEdit(m))})),p.addEventListener("blur",(function(){p.value=Number(m.options.positions[t].alt.toFixed(2)),c.innerHTML="",c.appendChild(u)})),p.addEventListener("input",(function(){m.options.positions[t].alt=Number(Number(p.value).toFixed(2)),u.innerHTML=m.options.positions[t].alt.toFixed(2);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),m._elms.lng.push(o),m._elms.lngInput.push(s),m._elms.lat.push(r),m._elms.latInput.push(l),m._elms.alt.push(u),m._elms.altInput.push(p),P.appendChild(i)},O=0;O0&&void 0!==y[0]?y[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(ii(this.sdk),ni(this.sdk),pi(0),!this.options.customView){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_h({},this.options.position):this.options.positions?l=_h({},this.options.positions[0]):this.options.center?l=_h({},this.options.center):this.options.start?l=_h({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=43;break;case 25:c=[],t.t0=this.options.heightMode,t.next="0"===t.t0||0===t.t0?29:"1"===t.t0||1===t.t0?31:"2"===t.t0||2===t.t0?36:41;break;case 29:for(p=0;p=500?(i.event.mouse_move((function(){})),i.event.mouse_left((function(){})),i.event.mouse_right((function(){})),i.positionEditing=!1):leftEvent(s,e)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(o)}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var p=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(p),this.renewPolygon(p),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,p[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:p[2]}}}}},{key:"setDIV",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Mh(this,e,[t,n])).viewer=t.viewer,i.options.show=!n.show&&!1!==n.show||n.show,i.options.name=i.options.name||"未命名对象",i.options.size=i.options.size||0===i.options.size?i.options.size:80,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.event=new X(i.sdk),i.Dialog=o,i.operate={},i._elms={},i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"Explosion"}},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=15;break}return t.next=6,new rn(this.sdk,this.options,{title:"爆炸属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Pe(o.sdk,o.options.id),se(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.positionEditing=!1,o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.options.show=t,o.originalOptions.show=t,o.show=t,o.Dialog.showCallBack&&o.Dialog.showCallBack()},translationalCallBack:function(){o.positionEditing=!o.positionEditing}});case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" explosion",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 随地图缩放\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 爆炸范围\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,this.scaleByDistance=this.options.scaleByDistance;case 15:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Ph({},this.options.position):this.options.positions?l=Ph({},this.options.positions[0]):this.options.center?l=Ph({},this.options.center):this.options.start?l=Ph({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=24;break;case 23:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt+8*this.options.size),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-85),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.previous=null,this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.size=this.originalOptions.size,this.scaleByDistance=this.originalOptions.scaleByDistance,this.lng=this.options.position.lng,this.lat=this.options.position.lat)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity.billboard.sizeInMeters=t,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(e){e.checked=t}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position.lng=t,this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position.lat=t,this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(t){this.options.position.alt=t,this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"size",get:function(){return this.options.size},set:function(t){this.options.size=t,this.entity.billboard.width=this.options.size,this.entity.billboard.height=this.options.size,this._elms.size&&this._elms.size.forEach((function(e){e.value=t}))}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.previous={position:Ph({},this.options.position)},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.previous={position:Ph({},e.options.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.alt=t.alt,e.previous={position:Ph({},e.options.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.previous&&(this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt)))}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=7,this.sdk.removeIncetance(this.options.id);case 7:return t.next=9,Pe(this.sdk,this.options.id);case 9:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(t){for(var e=[],i=10001;i<=10120;i++){var n=t.getSourceRootPath()+"/img/frameAnimation/explosion/b".concat(i,".png");e.push(n)}var o=new Cesium.Entity({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt)}),!1),billboard:{image:new Cesium.CallbackProperty((function(){var t=e[o.imgIndex];return o.imgIndex++,o.imgIndex>=e.length&&(o.imgIndex=0),t}),!1),disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),width:t.options.size,height:t.options.size,sizeInMeters:t.options.scaleByDistance,pixelOffset:{x:0,y:-20}}});o.imgIndex=0,t.entity=t.viewer.entities.add(o),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}}]);var i,n,s}(Wn);function Th(t){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 扩散半径\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 持续时间\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 范围颜色\n
            \n
            \n
            \n 扫描颜色\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Nh(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Bh(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ah(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=jh(this,e,[t,i])).options.lng=i.lng,n.options.lat=i.lat,n.options.alt=i.alt,n.options.colorOut=i.colorOut||"rgba(255,255,0,0.3)",n.options.colorIn=i.colorIn||"rgba(255,0,0,0.3)",n.options.radius=i.radius||10,n.options.radius>999999&&(n.options.radius=999999),n.options.duration=i.duration||2e3,n.event=new X(n.sdk),n.options.positionEditin=!1,i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n._elms={},n.Dialog=o,n._EventBinding=new wn,n.ControllerObject=new qo(n.sdk),n.sdk.addIncetance(n.options.id,n),e.radarSolidScan(n),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"RadarScanStereoscopic"}},{key:"positionEditing",get:function(){return"translational"===this.ControllerObject.getActiveState()},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(t?(this.picking=!1,this.ControllerObject.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this.ControllerObject.editTranslational(),this.ControllerObject.controllerCallBack=function(t){e.lng=t.position.lng,e.lat=t.position.lat,e.alt=t.position.alt}):(setTimeout((function(){e.picking=!0}),500),this.ControllerObject.destroy()))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=Number(t),this.label.position=[t,this.lat,this.alt+this.radius],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=Number(t),this.label.position=[this.lng,t,this.alt+this.radius],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=Number(t),this.label.position=[this.lng,this.lat,t+this.radius],this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"radius",get:function(){return this.options.radius},set:function(t){var i=Number(t.toFixed(2));(i>999999&&(i=999999),i<.1&&(i=.1),this.options.radius=i,this.label.position=[this.lng,this.lat,this.alt+t],this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(i=Number((i/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(t){t.value=i})),e.changeParam(this)}},{key:"duration",get:function(){return this.options.duration},set:function(t){this.options.duration=t,this._elms.duration&&this._elms.duration.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"colorOut",get:function(){return this.options.colorOut},set:function(t){var e=this;this.options.colorOut=t,this.entity.ellipsoid.material=Cesium.Color.fromCssColorString(t),this.entity.ellipsoid.outlineColor=Cesium.Color.fromCssColorString(t),this._elms.colorOut&&this._elms.colorOut.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.colorOut=t},clear:function(){e.colorOut="rgba(255,255,255,1)"}});e._elms.colorOut[n]=o}))}},{key:"colorIn",get:function(){return this.options.colorIn},set:function(t){var e=this;this.options.colorIn=t,this.entity.wall.material=Cesium.Color.fromCssColorString(t),this._elms.colorIn&&this._elms.colorIn.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.colorIn=t},clear:function(){e.colorIn="rgba(255,255,255,1)"}});e._elms.colorIn[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c=Number(t.target.min))&&(h.radius=i*("米"===e?1:1e3))}})),p.addEventListener("blur",(function(t){var e=h._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)/("米"===e?1:1e3)&&(i=Number(t.target.max)/("米"===e?1:1e3)),t.target.min&&i0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bh({},this.options.position):this.options.positions?l=Bh({},this.options.positions[0]):this.options.start?l=Bh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,this.colorOut=this.originalOptions.colorOut,this.colorIn=this.originalOptions.colorIn,this.radius=this.originalOptions.radius,this.duration=this.originalOptions.duration,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.instruct=this.originalOptions.instruct,this.operatingPoint=this.originalOptions.operatingPoint,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.positionEditing=!1,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect())}},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.label.remove(),this.sdk.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=6,this.sdk.removeIncetance(this.options.id);case 6:return t.next=8,Pe(this.sdk,this.options.id);case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"instructSubmit",value:function(){this.Dialog.instructSubmit&&this.Dialog.instructSubmit(this.options.id,this.options.label.text,this.instruct),this.originalOptions.instruct=this.instruct}},{key:"operatingPointSubmit",value:function(){this.Dialog.operatingPointSubmit&&this.Dialog.operatingPointSubmit(this.options.id,this.options.label.text,this.operatingPoint),this.originalOptions.operatingPoint=this.operatingPoint}},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(t){this.options.attribute.link.content.push({name:"链接",url:t}),this.attributeLink=this.options.attribute.link.content}},{key:"_addRr",value:function(){this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value?(this.options.attribute.vr.content.push({name:"全景图",url:this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value="",this.attributeVr=this.options.attribute.vr.content):this.Dialog.clickAddVr&&this.Dialog.clickAddVr()}},{key:"addAttributeRr",value:function(t){this.options.attribute.vr.content.push({name:"全景图",url:t}),this.attributeVr=this.options.attribute.vr.content}},{key:"openRichTextEditor",value:function(t){var e=this;On.open(this.options.id,this.options.name,this.options.richTextContent),On.primaryCallBack=function(t){e.options.richTextContent=t}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+this.options.radius);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"radarSolidScan",value:function(t){var i=t.sdk.viewer,n=t.options,o=(n.radius,n.lng,n.lat,n.alt,t.options.duration?360/t.options.duration*Cesium.getTimestamp():0),s=a(t.options,t.options.radius,o);(new Date).getTime();function a(t,e,i){var n=t.lng,o=t.lat,s=t.alt,a=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,s)),r=e*Math.cos(i*Math.PI/180),l=e*Math.sin(i*Math.PI/180),c=Cesium.Cartesian3.fromElements(r,l,s),u=Cesium.Matrix4.multiplyByPoint(a,c,new Cesium.Cartesian3),p=Cesium.Cartographic.fromCartesian(u);return function(t,e,i,n,o){var s=[],a=[];s.push(t,e,o),a.push(o);for(var r=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(t,e),Cesium.Cartesian3.fromDegrees(i,n)),l=0;l<=90;l++){var c=r*Math.sin(l*Math.PI/180),u=Math.cos(l*Math.PI/180),p=(i-t)*u+t,h=(n-e)*u+e;s.push(p,h,c+o),a.push(o)}return{positionArr:s,bottomArr:a}}(n,o,Cesium.Math.toDegrees(p.longitude),Cesium.Math.toDegrees(p.latitude),s)}i.clock.onTick.addEventListener((function(){o=t.options.duration?360/t.options.duration*Cesium.getTimestamp():0,s=a(t.options,t.options.radius,o)})),t.entity=i.entities.add({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3.fromDegrees(t.options.lng,t.options.lat,t.options.alt)}),!1),ellipsoid:{radii:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3(t.options.radius,t.options.radius,t.options.radius)}),!1),material:Cesium.Color.fromCssColorString(n.colorOut),outline:!0,outlineColor:Cesium.Color.fromCssColorString(n.colorOut),outlineWidth:1,maximumCone:Cesium.Math.toRadians(90)},wall:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(s.positionArr)}),!1),material:Cesium.Color.fromCssColorString(n.colorIn),minimumHeights:new Cesium.CallbackProperty((function(){return s.bottomArr}),!1)}}),e.createLabel(t),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.options.alt){t.next=4;break}i=e.options.alt+e.options.radius,t.next=8;break;case 4:return n=L()(e.sdk.viewer.entities.values),t.next=7,e.getClampToHeight({lng:e.options.lng,lat:e.options.lat},n);case 7:i=t.sent;case 8:e.options.label.position||(e.options.label.position={lng:e.options.lng,lat:e.options.lat,alt:i}),e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,ground:!1,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far});case 10:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"changeParam",value:function(t){}}]);var i,n,s,r}(Wn);function Rh(t){return'\n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Fh(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zh(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Gh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"SectorObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"startAngle",get:function(){return this.options.startAngle},set:function(t){this.options.startAngle=t,this.height=this.height}},{key:"endAngle",get:function(){return this.options.endAngle},set:function(t){this.options.endAngle=t,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){this.options.radius=t,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){var e=this;this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.line.width}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"扇形属性",left:"180px",top:"100px",confirmCallBack:function(t){w.name=w.name.trim(),w.name||(w.name="未命名对象"),w.options.label.position={lng:w.label.position[0],lat:w.label.position[1],alt:w.label.position[2]},w.originalOptions=w.deepCopyObj(w.options),w._DialogObject.close(),w.Dialog.confirmCallBack&&w.Dialog.confirmCallBack(w.originalOptions),Pe(w.sdk,w.options.id),se(w.sdk,w.options.id)},resetCallBack:function(){w.reset(),w.Dialog.resetCallBack&&w.Dialog.resetCallBack()},removeCallBack:function(){w.Dialog.removeCallBack&&w.Dialog.removeCallBack()},closeCallBack:function(){w.reset(),w.positionEditing=!1,w.Dialog.closeCallBack&&w.Dialog.closeCallBack()},showCallBack:function(t){w.options.show=t,w.originalOptions.show=t,w.show=t,w.Dialog.showCallBack&&w.Dialog.showCallBack()},translationalCallBack:function(){w.positionEditing=!w.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(w,(function(){o()}))}});case 7:if(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Rh(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){w.color=t},clear:function(){w.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.lineColor=t},clear:function(){w.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelColor=t},clear:function(){w.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelLineColor=t},clear:function(){w.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelBackgroundColorStart=t},clear:function(){w.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelBackgroundColorEnd=t},clear:function(){w.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],m=this._DialogObject._element.content.getElementsByClassName("height-box")[0],f=m.getElementsByClassName("height")[0],v=this._DialogObject._element.content.getElementsByClassName("height-confirm")[0],f.value=10,2==this.heightMode?(m&&(m.className="input-number input-number-unit-1 height-box disabled"),v&&v.setAttribute("disabled","disabled")):(m&&(m.className="input-number input-number-unit-1 height-box"),v&&v.removeAttribute("disabled")),g=[{name:"海拔高度",value:"海拔高度",key:"0"},{name:"相对地表",value:"相对地表",key:"1"},{name:"依附模型",value:"依附模型",key:"2"}],!(y=Y(this._DialogObject._element.content.getElementsByClassName("height-mode-box")[0],".height-mode"))){t.next=56;break}y.legp_search(g),b=this._DialogObject._element.content.getElementsByClassName("height-mode")[0].getElementsByTagName("input")[0],C=0;case 40:if(!(C0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!this.options.customView){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=zh({},this.options.position):this.options.positions?l=zh({},this.options.positions[0]):this.options.center?l=zh({},this.options.center):this.options.start?l=zh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polyline.positions.getValue(),u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=t.lng,e.options.center.lat=t.lat,e.center=e.options.center,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.previous={center:e.deepCopyObj(e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)):(this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),this.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),this.previous=null)}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.calSector(t,this.options.radius,this.options.startAngle,this.options.endAngle,360,!0),s=[];if(i){for(var a=0;a1e3?"半径:"+(p/1e3).toFixed(2)+" 公里":"半径:"+p+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE}})),t.nodePoints.push(e)};t.event&&t.event.destroy(),t.event=new X(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个编辑点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var l=t.calSector(t.options.center,t.options.radius,t.options.startAngle,t.options.endAngle),c=[],u=zh({},t.options.center),p=t.options.radius,h={angle1:t.options.startAngle,angle2:t.options.endAngle};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(l)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(l),[l[0],l[1]])}),!1);var d=t.entity.polyline.positions.getValue();c=[zh({},t.center),t.cartesian3Towgs84(d[1],t.sdk.viewer),t.cartesian3Towgs84(d[d.length-4],t.sdk.viewer)];var m=L()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:t.options.center.lng,lat:t.options.center.lat},m).then((function(e){t.label.position=[t.options.center.lng,t.options.center.lat,e]})),setTimeout((function(){s(d[1],"sector-start"),s(d[d.length-4],"sector-end"),t.event.mouse_left((function(e,n){if(i)t.options.startAngle=h.angle1,t.options.endAngle=h.angle2,t.options.radius=p,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,i=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var o=t.sdk.viewer.scene.pick(e.position);if(o&&o.id&&o.id.name&&"node-secondary-edit-point"===o.id.name&&("sector-start"===o.id._type||"sector-end"===o.id._type)){t.tip.set_text("左键确认,右键取消"),i=o.id;for(var s=0;sNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Wh(this,e,[t,n])).source=new Cesium.CustomDataSource(i.options.id),i.detail=[],i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.source&&(this.source.show=t,this.options.show=t)}},{key:"setDefaultValue",value:function(){var t;this.options.id=this.options.id||Cesium.createGuid(),this.options.url=this.options.url||"",this.options.show=null===(t=this.options.show)||void 0===t||t}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:3,pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation?(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i,duration:e})):this.source&&this.viewer.flyTo(this.source,{duration:e});case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var t,i,n,o,s;(t=e,i="remove",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.viewer.dataSources.remove(this.source),this.source=null}},{key:"on",value:(i=o()(a.a.mark((function t(){var e=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.show=this.options.show,t.next=3,Cesium.KmlDataSource.load(this.options.url,{camera:this.viewer.scene.camera,canvas:this.viewer.scene.canvas});case 3:return t.sent.entities.values.forEach((function(t,i){if(e.detail.push({name:t.name,id:t.id}),t.label){var n=1;t.billboard&&(n=t.billboard.scale._value),t.label.pixelOffset=new Cesium.Cartesian2(0,-32*n-15),t.label.horizontalOrigin=Cesium.HorizontalOrigin.CENTER,t.label.disableDepthTestDistance=Number.POSITIVE_INFINITY}if(t.polygon){var o={hierarchy:t.polygon.hierarchy.getValue().positions,material:t.polygon.material,classificationType:Cesium.ClassificationType.BOTH};if(t.polygon.outline.getValue()){var s=t.polygon.hierarchy.getValue().positions,a=new Cesium.Entity({id:e.getOutlineId(t.id),polyline:{positions:s,width:t.polygon.outlineWidth.getValue(),material:t.polygon.outlineColor.getValue(),clampToGround:!0,zIndex:e.sdk._entityZIndex}});e.source.entities.add(a)}t.polygon=o}t.billboard&&(t.billboard.heightReference=Cesium.HeightReference.CLAMP_TO_GROUND),t.polyline&&(t.polyline={positions:t.polyline.positions.getValue(),material:t.polyline.material,clampToGround:!0,width:t.polyline.width?t.polyline.width.getValue():1}),t.show=!0,e.source.entities.add(t)})),t.next=7,this.viewer.dataSources.add(this.source);case 7:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"getOutlineId",value:function(t){return[t,"outline"].join("_")}}]);var i,n}(Wn);function Jh(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var qh=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Jh(this,e,[t,n])).primitive=void 0,i.positions=[],i.loading=!0,i}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h(),this.options.color=this.options.color||"rgb(239, 6, 6, 1)",this.options.width=this.options.width||1}},{key:"show",get:function(){return this.options.show},set:function(t){if(this.options.show=t,this.entity)for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Kh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(32,67,135,0.5)",i.options.positions=n.positions||[],i.options.frequency=n.frequency||10,i.options.animationSpeed=n.animationSpeed||1,i.options.amplitude=n.amplitude||10,i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.entity&&(this.entity.appearance.material.uniforms.baseWaterColor=Cesium.Color.fromCssColorString(t)),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"frequency",get:function(){return this.options.frequency},set:function(t){this.options.frequency=t,this.entity&&(this.entity.appearance.material.uniforms.frequency=10*t),this._elms.frequency&&this._elms.frequency.forEach((function(e){e.value=t}))}},{key:"animationSpeed",get:function(){return this.options.animationSpeed},set:function(t){this.options.animationSpeed=t,this.entity&&(this.entity.appearance.material.uniforms.animationSpeed=.01*t),this._elms.animationSpeed&&this._elms.animationSpeed.forEach((function(e){e.value=t}))}},{key:"amplitude",get:function(){return this.options.amplitude},set:function(t){this.options.amplitude=t,this.entity&&(this.entity.appearance.material.uniforms.amplitude=t),this._elms.amplitude&&this._elms.amplitude.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.options.height},set:function(t){this.options.height=t;var e=this.options.positions[0],i=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,t),n=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,this.entity.originalHeight);this.entity.modelMatrix=Cesium.Matrix4.setTranslation(this.entity.modelMatrix,new Cesium.Cartesian3(i.x-n.x,i.y-n.y,i.z-n.z),new Cesium.Matrix4),this._elms.height&&this._elms.height.forEach((function(e){e.value=t}))}},{key:"edit",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s=this,r=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.length>0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=19;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"水面属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" water-surface",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 水面振幅\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画速度\n
            \n \n \n
            \n
            \n
            \n 水面频率\n
            \n \n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("water-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],t.next=19;break;case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.frequency=this.originalOptions.frequency,this.animationSpeed=this.originalOptions.animationSpeed,this.amplitude=this.originalOptions.amplitude,this.height=this.originalOptions.height)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=d.length>0&&void 0!==d[0]?d[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Zh({},this.options.position):this.options.positions?l=Zh({},this.options.positions[0]):this.options.center?l=Zh({},this.options.center):this.options.start?l=Zh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=28;break;case 23:c=Cesium.Rectangle.fromCartesianArray(this.entity.geometryInstances.geometry._polygonHierarchy.positions),u=this.sdk.viewer.camera.getRectangleCameraCoordinates(c),p=this.cartesian3Towgs84(u,this.sdk.viewer),h=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,p.alt+this.height),this.sdk.viewer.camera.flyTo({orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:h});case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,this.sdk.removeIncetance(this.options.id);case 5:return t.next=7,Pe(this.sdk,this.options.id);case 7:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(t){for(var e=t.options.positions,i=[],n=e[0].alt,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;k()(this,e),(i=Qh(this,e,[t,n])).model=o,i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Xn(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new X(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return sn()(e,t),_()(e,[{key:"create",value:(i=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this,this.options.position[2]||0===this.options.position[2]){t.next=5;break}return t.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=t.sent;case 5:this.originalOptions=ed(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(e.model){if(e.model.isMove){var t=e.model.customScale.x;e.model.customScale.y>t&&(t=e.model.customScale.y),e.model.customScale.z>t&&(t=e.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]+2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),n=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]-2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=e.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),o=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]-2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Cartesian3.subtract(o,n,new Cesium.Cartesian3),a=Cesium.Cartesian3.normalize(s,s),r=new Cesium.Ray(n,a),l=this.viewer.scene.drillPickFromRay(r,5),c=0;c40&&(e[i]=e[i].slice(0,40-e[i].length));e.length>10&&e.splice(10-e.length),this.options.text=e.join("\n")}},{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.entity.label.fillColor=Cesium.Color.fromCssColorString(this.options.color)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity&&(this.options.scaleByDistance?(this.entity.label.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.label.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.label.scaleByDistance=void 0,this.entity.label.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.entity&&(this.options.scaleByDistance?(this.entity.label.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.label.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.label.scaleByDistance=void 0,this.entity.label.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;e0&&void 0!==arguments[0]?arguments[0]:{},e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)e[i]=ed(t[i]);else e=t;return e};function id(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return nd(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?nd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function nd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),rd(i=ad(this,e,[t,n]),pd,null),rd(i,hd,!1),rd(i,dd,void 0),rd(i,md,void 0),rd(i,fd,void 0),rd(i,vd,void 0),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.speed<=0&&(i.options.speed=.01),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.model=n.model=n.model||{},i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.height=Number(i.options.height.toFixed(2)),i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.model.show=!n.model.show&&!1!==n.model.show||n.model.show,i.options.model.url=n.model.url||"",i.options.model.pixelSize=n.model.pixelSize||70,i.options.model.heading=n.model.heading||0,i.options.model.pitch=n.model.pitch||0,i.options.model.roll=n.model.roll||0,i.options.model.scale=n.model.scale||0===n.model.scale?n.model.scale:1,i.options.model.animate=n.model.animate||"无",i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.unitFuelConsumption=n.unitFuelConsumption||0,i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i.distance,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),i.ControllerObject=new qo(i.sdk),i._EventBinding=new wn,i.options.viewFollow=!1,i.options.firstPersonView=!1,e.addLine(i),i.firstPersonView=!1),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TrajectoryMotion"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=Ie();if(this.isShowView&&e||(this.options.show=t,this.originalOptions&&(this.originalOptions.show=t)),this.options.show){this.firstPersonView?this.model.show=!1:this.model.show=(!this.showView||3==this.showView||!e)&&this.modelShow,this.showView&&3!=this.showView&&e?this.line.polyline.material=new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20}):this.line.polyline.material=this.lineShow?new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff"),dashLength:20}):new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20});for(var i=0;i0)for(var i=0;i=500?(e.keyPointShow=!1,YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip&&e.tip.destroy(),e.tip=null,e.ControllerObject.destroy()):s(o)}))})),this.line.polyline.positions=new Cesium.CallbackProperty((function(){return i}),!1),this.keyPointShow=t}else this.lineEdit&&(YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null),this.keyPointShow=t,this.ControllerObject.destroy();ld(hd,this,t),this._elms.lineEdit&&this._elms.lineEdit.forEach((function(e){e.checked=t}))}},{key:"routeDirection",get:function(){return this.options.routeDirection},set:function(t){this.options.routeDirection=t,this._elms.routeDirection&&this._elms.routeDirection.forEach((function(e){e.checked=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&this.TweenAnimate._isPlaying&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"firstPersonView",get:function(){return this.options.firstPersonView},set:function(t){var e=this,i=Ie(),n=ae();if((Ie()||n.sdkD||!this.show)&&(t=!1),cancelAnimationFrame(cd(dd,this)),cd(vd,this)&&cd(vd,this).destroy(),this.sdk.viewer._firstPersonView=t,this.options.firstPersonView=t,this.options.firstPersonView){if(this.viewFollow=!0,this.firstPersonHeadingPitch={heading:0,pitch:-10},this.state=!0,this.model&&(this.model.show=!1),this._DialogObject&&this._DialogObject._element.content){var o=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");o[0].className="btn is-active",o[1].className="btn"}this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),Ke(this.sdk,!1);var s,a=ae(),r=(s=this.sdk===a.sdkP?a.sdkD:a.sdkP)?s.entityMap.get(this.options.id):void 0;this.sdk&&ld(vd,this,new X(this.sdk)),cd(vd,this).mouse_right_down((function(t,i){var n=sd({},t.position);cd(vd,e).mouse_move((function(t,i){e.firstPersonHeadingPitch.heading=e.firstPersonHeadingPitch.heading+(t.endPosition.x-n.x)/20,e.firstPersonHeadingPitch.pitch=e.firstPersonHeadingPitch.pitch+(n.y-t.endPosition.y)/10,r&&(r.firstPersonHeadingPitch=sd({},e.firstPersonHeadingPitch)),n=sd({},t.endPosition)}),!0)}),!0),cd(vd,this).mouse_right_up((function(t,i){cd(vd,e).mouse_move((function(){}))}),!0)}else{if(Ke(this.sdk,!0),this.model&&this.modelShow&&this.show){var l=!0;l=!(!this.show||this.showView&&3!=this.showView&&i),this.model.show=l}if(this._DialogObject&&this._DialogObject._element.content){var c=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");c[0]&&c[1]&&(c[0].className="btn",c[1].className="btn is-active")}if(this.viewFollow&&this.show){if(this.sdk.viewer.trackedEntity&&this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),3===this.sdk.viewer.scene.mode){var u=this.sdk.viewer.entities.add({position:this.positions_smooth[0],point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=u}this.viewFollow=this.viewFollow}}se(this.sdk,this.options.id)}},{key:"viewFollow",get:function(){return this.options.viewFollow},set:function(t){ae();var e=Ie();if(this.show||(t=!1),this.options.viewFollow=t,this.options.viewFollow?(this.editObj&&(this.editObj.destroy(),this.editObj=null,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn")),ii(this.sdk),this.lineEdit=!1):this.firstPersonView=!1,this.options.firstPersonView){if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),this._DialogObject&&this._DialogObject._element.content){var i=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");i[0]&&i[1]&&(i[0].className="btn",i[1].className="btn is-active")}}else if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),t&&this.show&&this.model){var n=this.sdk.viewer.entities.add({position:this.model.position,point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=n}var o=Re();if(o)if(this.sdk!=o){var s=o.entityMap.get(this.options.id);s&&s.viewFollow!=t&&(s.viewFollow=t)}else if(e){var a=e.entityMap.get(this.options.id);a&&a.viewFollow!=t&&(a.viewFollow=t,this.TweenAnimate&&this.TweenAnimate._isPlaying&&a.setMovePositionByDistance(this.TweenAnimate._object.distance))}se(this.sdk,this.options.id),this._elms.viewFollow&&this._elms.viewFollow.forEach((function(e){e.checked=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=this;this.options.label.show=t;var i=Ie(),n=t;n=!(!this.show||this.showView&&3!=this.showView&&i)&&t,this.show?this.label&&(this.label.show=n,this.label.pixelOffset=this.options.label.pixelOffset+(this.fuelShow?this.labelFontSize+20:0),this.options.label.position&&setTimeout((function(){e.options.label.position.alt?e.label&&(e.label.position=[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt]):e.getClampToHeight({lng:e.options.label.position.lng,lat:e.options.label.position.lat}).then((function(t){e.label&&(e.label.position=[e.options.label.position.lng,e.options.label.position.lat,t])}))}),0)):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily),this.fuelLabel&&(this.fuelLabel.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label&&(this.label.color=t),this.fuelLabel&&(this.fuelLabel.color=t),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label&&(this.label.fontSize=t),this.fuelLabel?(this.fuelLabel.fontSize=t,this.label.pixelOffset=this.options.label.pixelOffset+t+20):this.label.pixelOffset=this.options.label.pixelOffset,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label&&(this.label.scaleByDistance=t),this.fuelLabel&&(this.fuelLabel.scaleByDistance=t),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label&&(this.label.near=e),this.fuelLabel&&(this.fuelLabel.near=e),this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;ee/n.distance)){t.next=71;break}return t.abrupt("break",76);case 71:A=n.spline.evaluate(B/1e3),N.push(A);case 73:B++,t.next=68;break;case 76:N.push(O),n.realTimePositions=N;case 78:if(m=w(n.model.position,u),v&&v.position&&(f=w(v.position,u),m.pitch=f.pitch),v.position=n.model.position,Cesium.HeadingPitchRoll.fromDegrees(n.options.model.heading,n.options.model.pitch,n.options.model.roll),j=0,I=0,R=0,F=Cesium.Transforms.eastNorthUpToFixedFrame(u),!n.options.routeDirection||n.lineEdit){t.next=98;break}if(j=m.heading*(180/Math.PI)-90-n.options.model.heading,I=m.pitch*(180/Math.PI)-n.options.model.pitch,R=n.options.model.roll,z=Re()?Re().entityMap.get(n.options.id):o.sdkP&&o.sdkP.entityMap.get(n.options.id),n.state||z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)&&(j=z.model.heading,I=z.model.pitch,R=z.model.roll),!(isNaN(j)||isNaN(I)||isNaN(R))){t.next=94;break}return t.abrupt("return");case 94:n.state||(z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)?(j=z.model.heading,I=z.model.pitch,R=z.model.roll):(j=n.model.heading||0===n.model.heading?n.model.heading:n.options.model.heading,I=n.model.pitch||0===n.model.pitch?n.model.pitch:n.options.model.pitch,R=n.model.roll||0===n.model.roll?n.model.roll:n.options.model.roll)),n.model.modelMatrix=Cesium.Matrix4.multiplyByMatrix3(F,Cesium.Matrix3.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(j,I,R)),n.model.modelMatrix),t.next=114;break;case 98:if(!n.entity){t.next=114;break}if(j=n.options.model.heading,I=n.options.model.pitch,R=n.options.model.roll,!(isNaN(j)||isNaN(I)||isNaN(R))){t.next=104;break}return t.abrupt("return");case 104:H=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(R)),V=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(I)),G=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(j)),U=Cesium.Matrix4.fromRotationTranslation(H),W=Cesium.Matrix4.fromRotationTranslation(V),Y=Cesium.Matrix4.fromRotationTranslation(G),J=new Cesium.Matrix4,Cesium.Matrix4.multiply(F,U,J),Cesium.Matrix4.multiply(J,W,J),Cesium.Matrix4.multiply(J,Y,n.entity.modelMatrix);case 114:if(n.model.position=u,n.model.roll=R,n.model.pitch=I,n.model.heading=j,u){t.next=120;break}return t.abrupt("return");case 120:q=n.cartesian3Towgs84(u,n.sdk.viewer),n.label.position=[q.lng,q.lat,q.alt],n.fuelLabel.position=[q.lng,q.lat,q.alt],n.realTimeRouteArray.push(u),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(j+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}}):3===n.sdk.viewer.scene.mode?n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=u):n.sdk.viewer.trackedEntity&&n.sdk.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(r[0],r[1],n.sdk.viewer.camera.positionCartographic.height),orientation:{heading:Cesium.Math.toRadians(-90),pitch:0,roll:0}}));case 126:case"end":return t.stop()}}),t,null,[[37,44]])})))).apply(this,arguments)},b=function(t){return C.apply(this,arguments)},i=x.length>1&&void 0!==x[1]?x[1]:{time:0},cancelAnimationFrame(cd(dd,this)),n=this,s=i.time||0,r=i.distance,l=this.sdk.viewer,this.model&&this.sdk&&this.sdk.viewer){t.next=11;break}return t.abrupt("return");case 11:for(this.removeModelAnimate(),c=[],u=0;uthis.distance&&(r=this.distance),s=r/this.distance*d):(r=1e-6,s&&(s>d&&(s=d),r=s/d*this.distance)),v={},this.TweenAnimate=new TWEEN.Tween({distance:r}).to({distance:this.distance},1e3*(d-s)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){(s||r)&&k.modelMove(e)})).onUpdate(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(k.sdk.viewer){t.next=6;break}return k.removeModelAnimate(),t.abrupt("return");case 6:isNaN(e.distance)||b(e.distance);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onEveryStart((function(){k.realTimeRouteArray=[]})).onComplete((function(t){k.state=!1})),this.state?this.TweenAnimate.start():(g=function(){if(ld(md,n,requestAnimationFrame(g)),n.options.firstPersonView){var t=sd({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:t,orientation:{heading:Cesium.Math.toRadians(n.model.heading+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}})}},b(r),setTimeout((function(){n.model.isMove=!1}),1e3),g());case 24:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(t){var e=this.renewLinePositions(this.options.line.positions);this.modelMove(e,{distance:t})}},{key:"setMovePositionByTime",value:function(t){var e=this.renewLinePositions(this.options.line.positions);this.modelMove(e,{time:t})}},{key:"edit",value:(p=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._error){t.next=2;break}return t.abrupt("return");case 2:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=45;break}return t.next=8,new rn(this.sdk,this.options,{title:"轨迹运动属性",left:"180px",top:"100px",confirmCallBack:function(t){p.name=p.name.trim(),p.name||(p.name="未命名对象"),p.originalOptions=p.deepCopyObj(p.options),p._DialogObject.close();var e=p.deepCopyObj(p.options);e.host="",p.Dialog.confirmCallBack&&p.Dialog.confirmCallBack(e),Pe(p.sdk,p.options.id),se(p.sdk,p.options.id)},removeCallBack:function(){p.sdk.viewer.trackedEntity&&(p.sdk.viewer.entities.remove(p.sdk.viewer.trackedEntity),p.sdk.viewer.trackedEntity=null),p.Dialog.removeCallBack&&p.Dialog.removeCallBack()},closeCallBack:function(){p._DialogObject=null,p.reset(),p.Dialog.closeCallBack&&p.Dialog.closeCallBack(),p.editObj&&(p.editObj.destroy(),p.editObj=null),p.keyPointShow=!1,p.event&&p.event.destroy(),p.tip&&p.tip.destroy(),p.tip=null,p.ControllerObject.destroy(),p.firstPersonView!==p.originalOptions.firstPersonView&&(p.firstPersonView=p.originalOptions.firstPersonView),p.firstPersonView&&p.modelShow&&p.model&&(p.model.show=!1)},showCallBack:function(t){p.show=t,p.Dialog.showCallBack&&p.Dialog.showCallBack()}});case 8:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" trajectory-motion",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 起始点高度\n
            \n \n m\n \n
            \n
            \n
            \n 模型倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 运行速度\n
            \n \n m/s\n \n
            \n
            \n
            \n 延迟运动\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 更换模型\n \n
            \n
            \n 模型方向\n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 路径显隐\n \n
            \n
            \n 模型显隐\n \n
            \n
            \n 实时路径\n \n
            \n
            \n
            \n
            \n 编辑\n \n
            \n
            \n 路径圆滑\n \n
            \n
            \n 环线\n \n
            \n
            \n
            \n
            \n 轨迹贴地\n \n
            \n
            \n 轨迹循环\n \n
            \n
            \n 轨迹动画\n \n
            \n
            \n
            \n
            \n 路径方向\n \n
            \n
            \n 视角跟随\n \n
            \n
            \n 模型动画\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 文字开关\n \n
            \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 油耗\n
            \n \n L/100km\n \n
            \n
            \n
            \n 总油耗\n \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),this.editObj?(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="结束调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn is-active"):(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn"),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelColor=t},clear:function(){p.labelColor=""}}),o=this._DialogObject._element.content.getElementsByClassName("height-box")[0],s=i.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.heightBox=o,this._elms.labelColor=[n],this.model&&(r=function(){var t=p.model.loader.components.animations;if(p._DialogObject){if(t){for(var e=[{name:"无",value:"无"}],n=0;n=107?this.model.ready?r():this.model.readyEvent.addEventListener((function(){r()})):this.model.readyPromise.then((function(t){r()}))),this.ground?this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"):this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box"),(l=i.querySelectorAll("button[name='firstPerson']"))[0].addEventListener("click",(function(t){var e=ae();Ie()||e.sdkD||(p.firstPersonView||(p.viewFollow=!0),p.firstPersonView=!0)})),l[1].addEventListener("click",(function(t){p.firstPersonView&&(p.viewFollow=!0),p.firstPersonView=!1})),this.options.firstPersonView?(l[0].className="btn is-active",l[1].className="btn",this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null)):(l[0].className="btn",l[1].className="btn is-active"),(c=document.createElement("div")).className="custom-rubric-box",c.style.transformOrigin="center bottom",c.style.position="absolute",c.style.top="180px",c.style.right="3px",c.style.padding="5px 10px",c.style.backgroundColor="#3e4249",c.style.borderRadius="5px",c.style.fontSize="12px",c.style.color="#ff5733",c.style.display="none",c.innerHTML='场景正东方向为轨迹前进正方向
            ',(u=i.getElementsByClassName("icon-rubric")[0]).addEventListener("mouseenter",(function(t){c.style.display="block"})),document.addEventListener("mousemove",(function(t){u.contains(t.target)||(c.style.display="none")})),this._DialogObject._element.content.appendChild(c),setTimeout((function(){var t=qn(),e=Y(p._DialogObject._element.content.getElementsByClassName("font-select-box")[0],".font-select");if(e){e.legp_search(t);var i=p._DialogObject._element.content.getElementsByClassName("font-select")[0].getElementsByTagName("input")[0];i.value=t[p.labelFontFamily].value;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};pi(0),ii(this.sdk),this.options.customView?this.sdk.viewer.camera.flyTo({destination:this.options.customView.position,orientation:this.options.customView.orientation}):this.line&&this.sdk.viewer.flyTo(this.line,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}})}},{key:"remove",value:(u=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.scene.primitives.remove(this.model),this.sdk.viewer.entities.remove(this.line),this.sdk.viewer.entities.remove(this.realTimeLine),this.label&&this.label.remove(),this.fuelLabel&&this.fuelLabel.remove(),e=0;e=107)){t.next=15;break}return t.next=9,Cesium.Model.fromGltfAsync(o);case 9:this.model=t.sent,this.model.position=n,this.sdk.viewer.scene.primitives.add(this.model),this.model.readyEvent.addEventListener((function(){s(),r.model.modelMatrix=i})),t.next=18;break;case 15:this.model=this.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),this.model.position=n,this.model.readyPromise.then((function(t){s(),r.model.modelMatrix=i}));case 18:this.model.imageBasedLighting.luminanceAtZenith=.6;case 19:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"controllerCallBack",get:function(){return function(t){}},set:function(t){this._controllerCallBack=t}},{key:"renewLinePositions",value:function(t){var e=t;this.noseToTail&&(e=[].concat(L()(t),[t[0]]));for(var i=[],n=[],o=[],s=0;s=107)){t.next=11;break}return t.next=5,Cesium.Model.fromGltfAsync(o);case 5:i.model=t.sent,i.model.originalBoundingSphereRadius=0,i.sdk.viewer.scene.primitives.add(i.model),i.model.readyEvent.addEventListener((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate})),t.next=14;break;case 11:i.model=i.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),i.model.originalBoundingSphereRadius=0,i.model.readyPromise.then((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate}));case 14:for(i.model.imageBasedLighting.luminanceAtZenith=.6,s=Cesium.Transforms.eastNorthUpToFixedFrame(i.positions_smooth[0]),i.model.modelMatrix=s,i.model.position=i.positions_smooth[0],i.model.customScale={x:i.options.model.scale,y:i.options.model.scale,z:i.options.model.scale},r=i.options.line.positions,l=[],c=0;c=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function bd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),xd(i=kd(this,e,[t,n]),Sd,!1),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.totalTime=n.totalTime,(n.totalTime||0===n.totalTime)&&(i.totalTime=n.totalTime),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=n.height||0===n.height?n.height:i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i._current={heading:0,pitch:0,roll:0},i.distance,i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.ControllerObject=new qo(i.sdk),i._EventBinding=new wn,e.addLine(i),i.firstPersonView=!1,i.options.viewFollow=!1),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TrajectoryMotionObject"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){if(this.options.show=t,t){this.line.show=this.lineShow;for(var e=0;ee/n.distance)){t.next=47;break}return t.abrupt("break",52);case 47:D=n.spline.evaluate(E/100),_.push(D);case 49:E++,t.next=44;break;case 52:_.push(k),n.realTimePositions=_;case 54:if(m=S(n.current.position,c),v&&v.position&&(f=S(v.position,c),m.pitch=f.pitch),v.position=n.current.position,P=Cesium.HeadingPitchRoll.fromDegrees(n.current.heading,n.current.pitch,n.current.roll),M=0,O=0,T=0,n.options.routeDirection?(M=(m.heading-P.heading)*(180/Math.PI)-90+n.current.heading,O=m.pitch*(180/Math.PI)):(M=n.current.heading,O=n.current.pitch),T=n.current.roll,!(isNaN(M)||isNaN(O)||isNaN(T))){t.next=65;break}return t.abrupt("return");case 65:(M<0||M>180)&&(O=-O),n.current={position:c,heading:M,pitch:O,roll:T},x&&(x=!1,n._first={position:c,heading:M,pitch:O,roll:T}),n.realTimeRouteArray.push(c),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:u,orientation:{heading:n.sdk.viewer.camera.heading,pitch:n.sdk.viewer.camera.pitch,roll:n.sdk.viewer.camera.roll}}):n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=c));case 71:case"end":return t.stop()}}),t,null,[[19,26]])})))).apply(this,arguments)},_=function(t){return E.apply(this,arguments)},i=P.length>1&&void 0!==P[1]?P[1]:{time:0},n=this,s=i.time||0,r=i.distance||0,l=this.sdk.viewer,this.removeModelAnimate(),c=[],u=0;ud&&(s=d),r=s/d*this.distance),v={},g=[],b=yd(this.sdk.entityMap);try{for(b.s();!(C=b.n()).done;)(w=y()(C.value,2))[0],(k=w[1]).type&&"glb"===k.type&&g.push(k.entity)}catch(t){b.e(t)}finally{b.f()}x=!0,this.TweenAnimate=new TWEEN.Tween({distance:r}).to({distance:this.distance},1e3*(d-s)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){s&&D.modelMove(e)})).onUpdate(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(D.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(D.sdk.viewer){t.next=6;break}return D.removeModelAnimate(),t.abrupt("return");case 6:_(e.distance);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onEveryStart((function(){D.realTimeRouteArray=[]})).onComplete((function(t){D.state=!1,D.removeModelAnimate()})),this.state?this.TweenAnimate.start():_(r);case 26:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(t){var e=this._renewLine(this.options.line.positions);this.modelMove(e,{distance:t})}},{key:"setMovePositionByTime",value:function(t){var e=this._renewLine(this.options.line.positions);this.modelMove(e,{time:t}),this.state||this.modelMove(e,{time:t+.01})}},{key:"pause",value:function(){this.state=!1}},{key:"resume",value:function(){this.state=!0}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},pi(0),ii(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=22;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},(l=wd({},this.options.line.positions[0])).hasOwnProperty("alt")){t.next=15;break}return t.next=14,this.getClampToHeight(l);case 14:l.alt=t.sent;case 15:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=23;break;case 22:this.line&&this.sdk.viewer.flyTo(this.line,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 23:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.entities.remove(this.line),this.line=null,this.removeModelAnimate()}},{key:"reset",value:function(){this.modelMove(this.line.polyline.positions._value),this.state=!1,this.current=this._first}},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"_renewLine",value:function(t){this.options.line.positions=t;var e=t;this.noseToTail&&(e=[].concat(L()(t),[t[0]]));for(var i=[],n=[],o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Pd(this,e,[t,n])).options.width=n.width||1,i.options.color=n.color||"#ff0000",i._elms={},i._EventBinding=new wn,e.edit(i,!0),i}return sn()(e,t),_()(e,[{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color&&(this.options.color=t,this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o})))}},{key:"width",get:function(){return this.options.width},set:function(t){this.options.width=t,this._elms.width&&this._elms.width.forEach((function(e){e.value=t}))}},{key:"start",value:function(){var t,i,n,o,s,a=this;if(YJ.Measure.GetMeasureStatus())console.log("上一次测量未结束");else{this.sdk.viewer;Ke(this.sdk,!1),(t=e,i="start",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("长按左键,拖动鼠标进行涂鸦,右键结束涂鸦",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var r=[],l=[];this.event.mouse_left_down((function(t,e){l=[];var i=a.sdk.viewer.entities.add({name:"涂鸦",polyline:{positions:new Cesium.CallbackProperty((function(){return l}),!1),width:a.width,clampToGround:!0,material:Cesium.Color.fromCssColorString(a.color),zIndex:99999999}});r.push(i),a.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y),l.push(e)}))})),this.event.mouse_left_up((function(t,e){r[r.length-1].polyline.positions=l,a.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y)}))})),this.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y)})),this.event.mouse_right((function(t,e){a.end()})),this.event.gesture_pinck_start((function(t,e){var i=new Date;a.event.gesture_pinck_end((function(){new Date-i>=500&&a.end()}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event=void 0,this.tip&&this.tip.destroy(),this.tip=void 0,Ke(this.sdk,!0)}},{key:"remove",value:function(){this.end(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);for(var t=this.sdk.viewer.entities.values,e=t.length-1;e>=0;e--)"涂鸦"===t[e].name&&this.sdk.viewer.entities.remove(t[e])}},{key:"flicker",value:function(){}}],[{key:"edit",value:(i=o()(a.a.mark((function t(i,n){var o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=22;break}return t.next=3,new W(i.sdk.viewer._container,{title:"涂鸦参数"});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:(o=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 涂鸦颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(o),s=new YJColorPicker({el:o.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:i.color,disabled:!1,openPickerAni:"opacity",sure:function(t){i.color=t},clear:function(){i.color="rgba(255,255,255,1)"}}),i._DialogObject._element.body.className=i._DialogObject._element.body.className+" graffiti",r=o.getElementsByTagName("*"),i._EventBinding.on(i,r),i._elms=i._EventBinding.element,i._elms.color=[s],(l=document.createElement("button")).className="confirm",l.innerHTML="确认",i._DialogObject.footAppChild(l),l.addEventListener("click",(function(){i.start(),e.edit(i,!1)})),t.next=23;break;case 22:i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null);case 23:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]);var i}(wa),Od=i(14),Td=i.n(Od);function Nd(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Bd(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Bd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=jd(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.show=!n.show&&!1!==n.show||n.show,i.options.url=n.url,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.position=n.position,i.options.offset=n.offset||{x:.5,y:1},i.options.mode=i.options.mode?1:0,i.options.billboard=n.billboard||{},i.options.billboard.scale=i.options.billboard.scale||1,i.options.billboard.near=i.options.billboard.near||0===i.options.billboard.near?i.options.billboard.near:2e3,i.options.billboard.far=i.options.billboard.far||0===i.options.billboard.far?i.options.billboard.far:1e5,i.options.billboard.scaleByDistance=!!i.options.billboard.scaleByDistance,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.entity={id:i.options.id},i._positionEditing=!1,i.Dialog=o,i._elms={},i._proj=i.sdk.proj,i.previous={position:Ad({},i.options.position)},i._EventBinding=new wn,i.event=new X(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return sn()(e,t),_()(e,[{key:"name",get:function(){return this.options.name},set:function(t){var i,n,o,s,a,r;i=e,n="name",o=t,s=this,a=1,r=1,Td()(nn()(r?i.prototype:i),n,o,s,a),this.options.label.text=this.options.name,this.entity&&(this.entity.label.text=this.options.label.text)}},{key:"mode",get:function(){return this.options.mode},set:function(t){var e=this;this.options.mode=t?1:0;for(var i=[{name:"贴地",value:"贴地",key:0},{name:"立体",value:"立体",key:1}],n=function(t){if(i[t].key===e.options.mode)return e._elms.mode&&e._elms.mode.forEach((function(e){e.value=i[t].value})),1},o=0;o99&&(e=99),e<.1&&(e=.1),this.options.billboard.scale=e,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(e){e.value=t}))}},{key:"billboardScaleByDistance",get:function(){return this.options.billboard.scaleByDistance},set:function(t){this.options.billboard.scaleByDistance=t,this.renewPoint(),this._elms.billboardScaleByDistance&&this._elms.billboardScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"billboardNear",get:function(){return this.options.billboard.near},set:function(t){var e=t;e>this.billboardFar&&(e=this.billboardFar),this.options.billboard.near=e,this.renewPoint(),this._elms.billboardNear&&this._elms.billboardNear.forEach((function(t){t.value=e}))}},{key:"billboardFar",get:function(){return this.options.billboard.far},set:function(t){var e=t;e1&&(s.x=1),s.y<0&&(s.y=0),s.y>1&&(s.y=1),u={x:s.x,y:s.y},c.style.top="calc(".concat(100*u.y,"% - 5px)"),c.style.left="calc(".concat(100*u.x,"% - 5px)")}else e(i.offsetParent)}(t.target)},s=function(){r&&r._element.body.removeEventListener("mousemove",n)},t.next=8,new rn(this.sdk,this.originalOptions,{title:"军标属性",left:"180px",top:"100px",confirmCallBack:function(t){w.name=w.name.trim(),w.name||(w.name="未命名对象"),w.originalOptions=w.deepCopyObj(w.options),w._DialogObject.close(),w.Dialog.confirmCallBack&&w.Dialog.confirmCallBack(w.originalOptions)},resetCallBack:function(){w.reset(),w.Dialog.resetCallBack&&w.Dialog.resetCallBack()},removeCallBack:function(){w.Dialog.removeCallBack&&w.Dialog.removeCallBack()},closeCallBack:function(){w.previous=null,w.reset(),r&&r.close&&r.close(),w.Dialog.closeCallBack&&w.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),w.positionEditing=!1},showCallBack:function(t){w.show=t,w.Dialog.showCallBack&&w.Dialog.showCallBack()},translationalCallBack:function(){w.positionEditing=!w.positionEditing},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"Y轴翻转",event:["click",function(){w.flipeY=!w.flipeY}]},{tagName:"button",className:"flipe-over-x",innerHTML:"X轴翻转",event:["click",function(){w.flipeX=!w.flipeX}]}]},!0);case 8:for(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-image",(p=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n \n
            \n
            \n 军标模式\n
            \n
            \n
            \n
            \n
            \n 旋转角度\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n 调整大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n 高度模式\n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n 图标倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n

            文字设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 文字大小\n
            \n \n px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(p),h=p.getElementsByTagName("*"),this._EventBinding.on(this,h),this._elms=this._EventBinding.element,p.getElementsByClassName("anchor")[0].addEventListener("click",o()(a.a.mark((function t(){var e,o,p,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r&&r.close&&r.close(),document.body.addEventListener("mouseup",s),e=i._DialogObject._element.body.getBoundingClientRect(),t.next=5,new rn(w.sdk,w.originalOptions,{title:"锚点设置",left:e.left+80+"px",top:e.top+200+"px",confirmCallBack:function(t){i.offset={x:u.x,y:u.y},o.close()},closeCallBack:function(){document.body.removeEventListener("mouseup",s)}},!1);case 5:o=t.sent,r=o,o._element.body.className=o._element.body.className+" anchor-point",p=document.createElement("div"),(h=new Image).src=w.replaceHost(w.options.url,w.options.host),h.onload=function(){var t=150/(h.width/h.height),e=(l=document.createElement("canvas")).getContext("2d",{willReadFrequently:!0});l.width=150,l.height=t,l.style.display="block",e.drawImage(h,0,0,150,t),p.appendChild(l),o.contentAppChild(p),(c=document.createElement("span")).className="point",p.appendChild(c),u={x:i.offset.x,y:i.offset.y},c.style.top="calc(".concat(100*Number(u.y),"% - 6px)"),c.style.left="calc(".concat(100*Number(u.x),"% - 6px)"),l.addEventListener("click",(function(t){var e=t.offsetX,i=t.offsetY,n={x:Number((e/l.width).toFixed(2)),y:Number((i/l.height).toFixed(2))};n.x<0&&(n.x=0),n.x>1&&(n.x=1),n.y<0&&(n.y=0),n.y>1&&(n.y=1),u={x:n.x,y:n.y},c.style.top="calc(".concat(100*u.y,"% - 5px)"),c.style.left="calc(".concat(100*u.x,"% - 5px)")})),c.addEventListener("mousedown",(function(t){o._element.body.addEventListener("mousemove",n)}))};case 12:case"end":return t.stop()}}),t)})))),d=p.getElementsByClassName("row"),m=p.getElementsByTagName("h4"),f=0;f=500)e.options.position.lng=e.previous.position.lng,e.options.position.lat=e.previous.position.lat,e.options.position.alt=e.previous.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.position.lng=t.lng,e.options.position.lat=t.lat,e.options.position.alt=t.alt,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.previous||(this.previous={position:Ad({},this.options.position)}),this.position=Ad({},this.previous.position)))}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=D.length>0&&void 0!==D[0]?D[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Ad({},this.options.position):this.options.position?l=Ad({},this.options.position[0]):this.options.center?l=Ad({},this.options.center):this.options.start?l=Ad({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=59;break;case 23:c=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),u=[[this.options.position.lng-1e-4*this.options.scale,this.options.position.lat-c],[this.options.position.lng+1e-4*this.options.scale,this.options.position.lat+c]],p=[],h=0,d=this.options.position,m=Cesium.Cartesian3.fromDegrees(d.lng,d.lat,0),f=Cesium.Cartesian3.fromDegrees(d.lng,d.lat,1e7),v=Cesium.Cartesian3.subtract(f,m,new Cesium.Cartesian3),g=Cesium.Cartesian3.normalize(v,v),y=new Cesium.Ray(m,g),b={},C=this.sdk.viewer.scene.drillPickFromRay(y),w=0;case 36:if(!(w=0)){t.next=22;break}if(!v[g].position){t.next=19;break}return f=v[g],t.abrupt("break",22);case 19:g--,t.next=15;break;case 22:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),t.prev=23,t.next=26,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 26:b=t.sent,t.next=31;break;case 29:t.prev=29,t.t0=t.catch(23);case 31:if((void 0===i||i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 旋转角度\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n X 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n Y 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 文字内容\n \n
            \n
            \n
            \n
            \n
            \n
            \n 文字开关\n \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n '.concat(Ln(t),"\n
            \n
            \n ")}var Fd=i(21),zd=i.n(Fd),Hd=i(12),Vd=i.n(Hd);function Gd(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}function Ud(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()} +i.translation=Cesium.Cartesian3.fromElements(0,0,1),i.rotation=Cesium.Quaternion.fromHeadingPitchRoll(e);var n=Cesium.Matrix4.fromTranslationRotationScale(i);this.particleSystem.emitterModelMatrix=n,this._elms.pitch&&this._elms.pitch.forEach((function(e){e.value=Number(t)}))}},{key:"edit",value:(n=o()(a.a.mark((function t(){var i,n,o,s,r,l=this,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=c.length>0&&void 0!==c[0]&&c[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=20;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"喷射水柱属性",left:"180px",top:"100px",confirmCallBack:function(t){l.name=l.name.trim(),l.name||(l.name="未命名对象"),l.originalOptions=l.deepCopyObj(l.options),l._DialogObject.close(),l.Dialog.confirmCallBack&&l.Dialog.confirmCallBack(l.originalOptions),Pe(l.sdk,l.options.id),se(l.sdk,l.options.id)},resetCallBack:function(){l.reset(),l.Dialog.resetCallBack&&l.Dialog.resetCallBack()},removeCallBack:function(){l.Dialog.removeCallBack&&l.Dialog.removeCallBack()},closeCallBack:function(){l.reset(),l.positionEditing=!1,l.Dialog.closeCallBack&&l.Dialog.closeCallBack()},showCallBack:function(t){l.show=t,l.Dialog.showCallBack&&l.Dialog.showCallBack()},translationalCallBack:function(){l.positionEditing=!l.positionEditing}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" particle-effects",(n=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 纬度\n \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 起始颜色\n
            \n
            \n
            \n 结束颜色\n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n 速度\n \n
            \n
            \n
            \n
            \n 发射速率(个/秒)\n \n
            \n
            \n
            \n
            \n
            \n
            \n 最小存在时间\n \n
            \n
            \n
            \n
            \n 最大存在时间\n \n
            \n
            \n
            \n
            \n
            \n
            \n 起始比例\n \n
            \n
            \n
            \n
            \n 结束比例\n \n
            \n
            \n
            \n
            \n
            \n
            \n 朝向\n \n
            \n
            \n
            \n
            \n 俯仰角度\n \n
            \n
            \n
            \n
            \n
            \n
            \n 尺寸(像素)\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(n),o=new YJColorPicker({el:n.getElementsByClassName("start_color")[0],size:"mini",alpha:!0,defaultColor:this.startColor,disabled:!1,openPickerAni:"opacity",sure:function(t){l.startColor=t},clear:function(){l.startColor="rgba(255,255,255,1)"}}),s=new YJColorPicker({el:n.getElementsByClassName("end_color")[0],size:"mini",alpha:!0,defaultColor:this.endColor,disabled:!1,openPickerAni:"opacity",sure:function(t){l.endColor=t},clear:function(){l.endColor="rgba(255,255,255,1)"}}),r=n.getElementsByTagName("*"),e.EventBinding(this,r),this._elms.startColor=[o],this._elms.endColor=[s],t.next=20;break;case 20:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.startColor=this.originalOptions.startColor,this.endColor=this.originalOptions.endColor,this.speed=this.originalOptions.speed,this.minimumParticleLife=this.originalOptions.minimumParticleLife,this.maximumParticleLife=this.originalOptions.maximumParticleLife,this.startScale=this.originalOptions.startScale,this.endScale=this.originalOptions.endScale,this.emissionRate=this.originalOptions.emissionRate,this.particleSize=this.originalOptions.particleSize,this.lng=this.originalOptions.start.lng,this.lat=this.originalOptions.start.lat,this.alt=this.originalOptions.start.alt)}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Ku(e,"remove",this,3)([]),this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=8,this.sdk.removeIncetance(this.options.id);case 8:return t.next=10,Pe(this.sdk,this.options.id);case 10:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(this.sdk&&this.sdk.viewer&&this.entity)if(this.operate.positionEditing=t,!0===t){var i;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.picking=!1,this.previous={positions:Xu({},this.entity.position)},this.event.mouse_move((function(t,n){i=t.endPosition;var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.start.lng=o.lng,e.options.start.lat=o.lat,e.options.start.alt=o.alt;var s=Cesium.Cartographic.fromDegrees(e.options.start.lng,e.options.start.lat,e.options.start.alt),a=e.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(s);e.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(a),e._elms.lng&&e._elms.lng.forEach((function(t){t.value=e.options.start.lng})),e._elms.lat&&e._elms.lat.forEach((function(t){t.value=e.options.start.lat})),e._elms.alt&&e._elms.alt.forEach((function(t){t.value=e.options.start.alt})),e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,n){if(!i||i.x!==t.position.x||i.y!==t.position.y-2){var o=e.cartesian3Towgs84(n,e.sdk.viewer);e.options.start.lng=o.lng,e.options.start.lat=o.lat,e.options.start.alt=o.alt}e.entity.position={lng:e.options.start.lng,lat:e.options.start.lat,alt:e.options.start.alt},e.previous={positions:Xu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.options.start.lng=e.entity.position.lng,e.options.start.lat=e.entity.position.lat,e.options.start.alt=e.entity.position.alt,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.options.lng=e.entity.position.lng,e.options.lat=e.entity.position.lat,e.options.alt=e.entity.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.lng=t.lng,e.options.lat=t.lat,e.options.alt=t.alt,e.entity.position={lng:e.options.lng,lat:e.options.lat,alt:e.options.alt},e.previous={positions:Xu({},e.entity.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))}else{if(this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),!this.sdk||!this.sdk.viewer||!this.entity)return;this.options.start.lng=this.entity.position.lng,this.options.start.lat=this.entity.position.lat,this.options.start.alt=this.entity.position.alt;var n=Cesium.Cartographic.fromDegrees(this.options.start.lng,this.options.start.lat,this.options.start.alt),o=this.sdk.viewer.scene.globe.ellipsoid.cartographicToCartesian(n);this.entity.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(o),this._elms.lng&&this._elms.lng.forEach((function(t){t.value=e.options.start.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.value=e.options.start.lat})),this._elms.alt&&this._elms.alt.forEach((function(t){t.value=e.options.start.alt}))}}},{key:"flicker",value:function(){}}],[{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=Yu(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type?"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 多面体颜色\n
            \n
            \n
            \n 多面体高度\n
            \n \n m\n \n
            \n
            \n \x3c!--
            \n 拉伸高度\n \n
            --\x3e\n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function tp(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ep(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ep(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function sp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=ap(this,e,[t,n])).options.color=n.color||"#ff0000",i.options.show=!n.show&&!1!==n.show||n.show,i.options.height=n.height||0===n.height?n.height:10,i.options.height<=.01&&(i.options.height=.01),i.options.extrudedHeight=n.extrudedHeight||0===n.extrudedHeight?n.extrudedHeight:0,i.entity,i.nodePoints=[],i.operate={},i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i._elms={},i.Dialog=o,!i.options.positions||i.options.positions.length<3?(i._error="多面体最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),e.create(i)),i}return sn()(e,t),_()(e,[{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;if(!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=this;if(this.event&&this.event.destroy(),this.event=new X(this.sdk),this.operate.positionEditing=t,this.previous={positions:L()(this.positions)},!0===t){var n;this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.label&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,0.9)"));var o=Cesium.Color.fromCssColorString(this.options.color).withAlpha(.99);2===this.sdk.viewer.scene.mode&&(o=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=o,this.picking=!1;for(var s=[],a=this.positions,r=[],l=0;l=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.event.destroy();var t=e.cartesian3Towgs84(i,e.sdk.viewer),o=Cesium.Cartesian3.fromDegrees(t.lng,t.lat);f=[],e.options.positions=[];for(var s=0;s0?new Cesium.PolygonHierarchy(f):new Cesium.PolygonHierarchy(a)}),!1)}else{this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)"));var v=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(v=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=v,this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();for(var g=[[]],y=0;ythis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;for(var i=[[]],n=0;ni[s].alt&&(o=i[s].alt);t.options.extrudedHeight=o;for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var o=!1,s=L()(t.options.positions),a=function(e,s){if(i){t.options.positions[i.index]=t.cartesian3Towgs84(s,t.sdk.viewer),n=t.options.positions[i.index],o=!0;var a=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",position:Cesium.Cartesian3.fromDegrees(t.options.positions[i.index].lng,t.options.positions[i.index].lat,t.options.extrudedHeight),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}});t.nodePoints.splice(i.index,0,a),t.options.positions.splice(i.index,0,t.options.positions[i.index]),t.options.areaByMeter=t.computeArea(t.options.positions);for(var r=[[]],l=0;l=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}switch(t.options["area-unit"]){case"平方米":t.area=t.options.areaByMeter;break;case"平方千米":t.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.area=t.options.areaByMeter}}else{var p=t.sdk.viewer.scene.pick(e.position);p&&p.id&&p.id.name&&"node-secondary-edit-point"===p.id.name&&(i=p.id,t.nodePoints.splice(p.id.index,1),t.sdk.viewer.entities.remove(p.id),t.tip.set_text("左键确认,右键结束,CTRL+右键撤销"),n=t.cartesian3Towgs84(i.position._value,t.sdk.viewer))}},r=function(a,r){if(i){t.options.positions[i.index]=n,o&&t.options.positions.splice(i.index,1),(!t.options.positions||t.options.positions.length<3)&&(console.warn("多面体最少需要三个坐标!"),window.ELEMENT&&window.ELEMENT.Message({message:"多面体最少需要三个坐标!",type:"warning",duration:1500}),t.options.positions=L()(s));for(var l=[[]],c=0;c=4){var u=turf.polygon(l),p=turf.centroid(u);t.label.position=[p.geometry.coordinates[0],p.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}switch(t.options.areaByMeter=t.computeArea(t.options.positions),t.options["area-unit"]){case"平方米":t.area=t.options.areaByMeter;break;case"平方千米":t.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.area=t.options.areaByMeter}for(var h=t.options.positions,d=[],m=0;m=4){var c=turf.polygon(r),u=turf.centroid(c);t.label.position=[u.geometry.coordinates[0],u.geometry.coordinates[1],t.options.height+t.options.extrudedHeight]}}t.tip.setPosition(n,e.endPosition.x,e.endPosition.y)})),t.event.gesture_pinck_start((function(e,i){var n=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t.event.gesture_pinck_end((function(){new Date-n>=500?r(o,i):a(o,i)}))})),t.event.mouse_right_keyboard_ctrl((function(e,n){i&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=0),t.nodePoints.pop())}));for(var l=0;l\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function up(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function pp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function dp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=mp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.nodePoints=[],!i.options.positions||i.options.positions.length<3)i._error="集结地最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=pp({},this.options.position):this.options.positions?l=pp({},this.options.positions[0]):this.options.center?l=pp({},this.options.center):this.options.start?l=pp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeAssemble(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;oNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=3?[].concat(L()(e),[e[0],e[1]]):L()(e)}),!1);for(var h=[[]],d=[],m=0;m=500?p():u(o,i)}))})),s()}),200)}}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function gp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function yp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Cp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=wp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.nodePoints=[],i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontFamily:n.label.fontFamily?n.label.fontFamily:0,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<3)i._error="箭头面最少需要三个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=yp({},this.options.position):this.options.positions?l=yp({},this.options.positions[0]):this.options.center?l=yp({},this.options.center):this.options.start?l=yp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeAttackArrow(this.options.positions);if(0!=i.length&&!Array.isArray(i[0])){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){t.next=12;break}if(!(e.distance>=d[o])){t.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),t.abrupt("break",12);case 9:o--,t.next=4;break;case 12:for(s=[],r=0;rNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n3&&i.index===t.options.positions.length-1&&t.options.positions.splice(i.index+1,1)):t.options.positions.pop(),t._elms.lng&&t._elms.lng[i.index]&&(t._elms.lng[i.index].innerHTML=t.options.positions[i.index].lng.toFixed(8)),t._elms.lat&&t._elms.lat[i.index]&&(t._elms.lat[i.index].innerHTML=t.options.positions[i.index].lat.toFixed(8))),t.heightMode=t.heightMode,t.previous=null};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(t.positionsH)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(t.positionsH),[t.positionsH[0],t.positionsH[1]])}),!1);for(var u=[[]],p=[],h=0;h3&&(t.options.positions.pop(),t.sdk.viewer.entities.remove(t.nodePoints[t.nodePoints.length-1]),t.nodePoints.pop(),i.index&&i.index===t.options.positions.length&&(t.nodePoints[i.index-1]?i=t.nodePoints[i.index-1]:i.index=i.index-1),t.renewPositions())})),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){var t=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t-n>=500?c():l(o,i)}))})),s()}),200)}}),0)}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;e\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Ep(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Sp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Pp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Mp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.positions=n.positions||[],i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.options.height=n.height,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i._elms={},i.nodePoints=[],i.spreadTime=n.spreadTime,i.entity,i.event,i.operate={},i.Dialog=o,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",!i.options.positions||i.options.positions.length<5)i._error="双箭头最少需要五个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Sp({},this.options.position):this.options.positions?l=Sp({},this.options.positions[0]):this.options.center?l=Sp({},this.options.center):this.options.start?l=Sp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),m=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computePincerArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance1/this.TweenAnimate._valuesEnd.distance1*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=212;C--){var w=this.cartesian3Towgs84(s[C],this.sdk.viewer);h.push([w.lng,w.lat,w.alt])}g?h.push([this.options.positions[2].lng,this.options.positions[2].lat,this.options.positions[2].alt]):h.push([this.options.positions[3].lng,this.options.positions[3].lat,this.options.positions[3].alt]),d.push([(this.options.positions[0].lng+this.options.positions[1].lng)/2,(this.options.positions[0].lat+this.options.positions[1].lat)/2],[this.options.positions[4].lng,this.options.positions[4].lat]);var k=this.deepCopyObj(this.options.positions),x=turf.lineString(p),_=turf.length(x,{units:"kilometers"}),E=turf.lineString(h),S=turf.length(E,{units:"kilometers"}),D=turf.lineString(d),P=turf.length(D,{units:"kilometers"}),M=e/this.spreadTime;this.TweenAnimate=new TWEEN.Tween({distance1:_*M,distance2:S*M,distance3:P*M}).to({distance1:_,distance2:S,distance3:P},this.spreadTime-e).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){e&&t.setSpreadProgressByTime()})).onUpdate(function(){var e=o()(a.a.mark((function e(i,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.TweenAnimate._duration!=1/0){e.next=2;break}return e.abrupt("return");case 2:if(t.sdk.viewer){e.next=6;break}return t.removeAnimate(),e.abrupt("return");case 6:O(i);case 7:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}()).onStart((function(){t.options.spreadState=!0,t._elms.spreadState&&t._elms.spreadState.forEach((function(t){t.checked=!0}))})).onComplete((function(e){t.removeAnimate()})),this.spreadState?this.TweenAnimate.start():O({distance1:_*M,distance2:S*M,distance3:P*M}),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positionsH)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positionsH),[i.positionsH[0],i.positionsH[1]])}),!1)}}}function O(t){return T.apply(this,arguments)}function T(){return(T=o()(a.a.mark((function t(e){var n,o,s,r,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.show){t.next=2;break}return t.abrupt("return");case 2:if(n=2,o=3,g&&(n=3,o=2),e.distance1){t.next=10;break}k[n].lng=k[1].lng,k[n].lat=k[1].lat,t.next=16;break;case 10:return t.next=12,turf.lineSliceAlong(x,0,e.distance1,{units:"kilometers"});case 12:s=t.sent,r=L()(s.geometry.coordinates[s.geometry.coordinates.length-1]),k[n].lng=r[0],k[n].lat=r[1];case 16:if(e.distance2){t.next=21;break}k[o].lng=k[0].lng,k[3].lat=k[0].lat,t.next=27;break;case 21:return t.next=23,turf.lineSliceAlong(E,0,e.distance2,{units:"kilometers"});case 23:l=t.sent,c=L()(l.geometry.coordinates[l.geometry.coordinates.length-1]),k[o].lng=c[0],k[o].lat=c[1];case 27:if(e.distance3){t.next=32;break}k[4].lng=d[0][0],k[4].lat=d[0][1],t.next=38;break;case 32:return t.next=34,turf.lineSliceAlong(D,0,e.distance3,{units:"kilometers"});case 34:u=t.sent,p=L()(u.geometry.coordinates[u.geometry.coordinates.length-1]),k[4].lng=p[0],k[4].lat=p[1];case 38:i.renewPositions(k);case 39:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}},{key:"removeAnimate",value:function(){this.spreadState=!1,this.TweenAnimate&&(TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positionsH),this.entity.polyline.positions=[].concat(L()(this.positionsH),[this.positionsH[0],this.positionsH[1]]))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error&&this.sdk.viewer){var i=!1,n=this.options.positions;t&&(n=t);for(var o=[],s=0;sNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};t.positionEditing=!1,setTimeout((function(){if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n=500?c():l(o,i)}))}));for(var e=[[]],n=[],o=0;o\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画时长\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 动画\n \n
            \n
            \n 动画重复\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Np(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Bp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ap(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=jp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.positions=n.positions||[],i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",i.entity,i.event=new X(i.sdk),i.operate={},i._elms={},i.Dialog=o,i.options.loop=n.loop||!1,i.options.spreadState=n.spreadState||!1,i.spreadTime=n.spreadTime,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.nodePoints=[],!i.options.positions||i.options.positions.length<2)i._error="直线箭头需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{if(!i.options.height&&0!==i.options.height){for(var s=i.options.positions[0].alt,a=1;athis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c'.concat(i+1,'\n
            \n
            \n
            \n ');var s=o.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.positions[i].lng.toFixed(8),s.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.positions[i].lng.toFixed(8);var l=o.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.positions[i].lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.positions[i].lat.toFixed(8);var p=o.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),s.addEventListener("dblclick",(function(){s.innerHTML="",r.value=Number(n.options.positions[i].lng.toFixed(8)),s.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.positions[i].lng.toFixed(8)),s.innerHTML="",s.appendChild(a)})),r.addEventListener("input",(function(){n.options.positions[i].lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.positions[i].lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.positions[i].lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.positions[i].lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.positions[i].lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.positions[i].lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(o)},o=0;o0&&void 0!==v[0]?v[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bp({},this.options.position):this.options.positions?l=Bp({},this.options.positions[0]):this.options.center?l=Bp({},this.options.center):this.options.start?l=Bp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=51;break;case 25:c=[],t.t0=this.heightMode,t.next=0===t.t0||"0"===t.t0?29:1===t.t0||"1"===t.t0?31:2===t.t0||"2"===t.t0?33:35;break;case 29:case 31:return u=!1,t.abrupt("break",35);case 33:return u=!0,t.abrupt("break",35);case 35:if(!u){t.next=48;break}p=0;case 37:if(!(p=500)e.positionEditing=!1;else{e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),u=[];for(var t=0;t0)for(var e=0;e0)for(var v=0;v=3?[].concat(L()(g),[g[0],g[1]]):L()(g)}),!1))}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=this.computeStraightArrow(this.options.positions);if(0!=i.length){for(var n=[[]],o=0;o9999999&&(e=9999999),this.options.spreadTime=e,this.spreadState&&this.setSpreadProgressByTime(),this._elms.spreadTime&&this._elms.spreadTime.forEach((function(t){t.value=e}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"spreadState",get:function(){return this.options.spreadState},set:function(t){this.options.spreadState=t,this.TweenAnimate?t?(this.lineEdit=!1,this.setSpreadProgressByTime(this.TweenAnimate._object.distance/this.TweenAnimate._valuesEnd.distance*this.spreadTime)):this.TweenAnimate.pause():t&&this.setSpreadProgressByTime(),this._elms.spreadState&&this._elms.spreadState.forEach((function(e){e.checked=t}))}},{key:"setSpreadProgressByTime",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.entity){for(var i=this,n=0;n=0)){t.next=12;break}if(!(e.distance>=d[o])){t.next=9;break}return(n=n+o+1)>i.options.positions.length-1&&(n=i.options.positions.length-1),t.abrupt("break",12);case 9:o--,t.next=4;break;case 12:for(s=[],r=0;rNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:function(){};if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n,s=function(){var e=o()(a.a.mark((function e(){var i,n,o,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=L()(t.sdk.viewer.entities.values),n=0;case 2:if(!(n2&&t.options.positions.pop(),t._elms.lng&&t._elms.lng[i.index]&&(t._elms.lng[i.index].innerHTML=t.options.positions[i.index].lng.toFixed(8)),t._elms.lat&&t._elms.lat[i.index]&&(t._elms.lat[i.index].innerHTML=t.options.positions[i.index].lat.toFixed(8))),t.heightMode=t.heightMode,t.previous=null};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){var e=t.computeStraightArrow(t.options.positions);return new Cesium.PolygonHierarchy(e)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){var e=t.computeStraightArrow(t.options.positions);return e.length>=3?[].concat(L()(e),[e[0],e[1]]):L()(e)}),!1),setTimeout((function(){t.event.mouse_left(u),t.event.mouse_right(p),t.event.mouse_move(c),t.event.gesture_pinck_start((function(e,i){var n=new Date;t.event.gesture_pinck_end((function(){var t=new Date,o={position:{x:(e.position1.x+e.position2.x)/2,y:(e.position1.y+e.position2.y)/2}};t-n>=500?p():u(o,i)}))}));for(var e=[[]],i=[],n=0;n\n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Fp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Gp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"#ff000080",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.radius=n.radius||0===n.radius?n.radius:10,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"CircleObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){this.options.radius=t,this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(this.positions),this.entity.polyline.positions=[].concat(L()(this.positions),[this.positions[0],this.positions[1]])}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(e){e.value=t}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,!this.show||this.showView&&3!=this.showView?this.label.show=!1:this.label.show=t,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"圆属性",left:"180px",top:"100px",confirmCallBack:function(t){m.name=m.name.trim(),m.name||(m.name="未命名对象"),m.options.label.position={lng:m.label.position[0],lat:m.label.position[1],alt:m.label.position[2]},m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close(),m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(m.originalOptions),Pe(m.sdk,m.options.id),se(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.positionEditing=!1,m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(t){m.options.show=t,m.originalOptions.show=t,m.show=t,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing=!m.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(m,(function(){o()}))}});case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Rp(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){m.color=t},clear:function(){m.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.lineColor=t},clear:function(){m.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelColor=t},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelLineColor=t},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorStart=t},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorEnd=t},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.cameraSelect&&m.cameraSelect(),m.goodsSelect&&m.goodsSelect();var t=m.attributeSelect,i=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(i){var n=Y(i,".attribute-select");n.legp_search(t);for(var s=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],a=0;a0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=zp({},this.options.position):this.options.positions?l=zp({},this.options.positions[0]):this.options.center?l=zp({},this.options.center):this.options.start?l=zp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polygon.hierarchy.getValue(Cesium.JulianDate.now()).positions,u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=Number(t.lng.toFixed(8)),e.options.center.lat=Number(t.lat.toFixed(8)),e.center=e.options.center,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.previous={positions:zp({},e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)):(this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!0))}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.createCircle(t,this.options.radius),s=[];if(i)this.positions=Cesium.Cartesian3.fromDegreesArray(o),setTimeout((function(){var i=L()(e.sdk.viewer.entities.values);e.getClampToHeight({lng:t.lng,lat:t.lat},i).then((function(i){e.label&&(e.label.position=[t.lng,t.lat,i])}))}),100);else{for(var a=0;a1e3?"半径:"+(r/1e3).toFixed(2)+" 公里":"半径:"+r+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE},polyline:{positions:new Cesium.CallbackProperty((function(e){return Cesium.Cartesian3.fromDegreesArray([t.options.center.lng,t.options.center.lat,s.lng,s.lat])}),!1),width:2,material:Cesium.Color.fromCssColorString("#c1c505").withAlpha(.5),clampToGround:!0,zIndex:99999999}})),t.nodePoints.push(i)}}},{key:"closeNodeEdit",value:function(t){YJ.Measure.SetMeasureStatus(!1),t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null;for(var e=0;eNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Yp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jp(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Xp(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Zp(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"EllipseObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;this.entity.polygon.hierarchy=[],!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),this.previous=null,e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"semiMinorAxis",get:function(){return this.options.semiMinorAxis},set:function(t){this.options.semiMinorAxis=t,this.height=this.height}},{key:"semiMajorAxis",get:function(){return this.options.semiMajorAxis},set:function(t){this.options.semiMajorAxis=t,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"bearing",get:function(){return this.options.bearing},set:function(t){this.options.bearing=t,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){var e=this;this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.line.width}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"椭圆属性",left:"180px",top:"100px",confirmCallBack:function(t){m.name=m.name.trim(),m.name||(m.name="未命名对象"),m.options.label.position={lng:m.label.position[0],lat:m.label.position[1],alt:m.label.position[2]},m.originalOptions=m.deepCopyObj(m.options),m._DialogObject.close(),m.Dialog.confirmCallBack&&m.Dialog.confirmCallBack(m.originalOptions),Pe(m.sdk,m.options.id),se(m.sdk,m.options.id)},resetCallBack:function(){m.reset(),m.Dialog.resetCallBack&&m.Dialog.resetCallBack()},removeCallBack:function(){m.Dialog.removeCallBack&&m.Dialog.removeCallBack()},closeCallBack:function(){m.reset(),m.previous=null,m.positionEditing=!1,m.Dialog.closeCallBack&&m.Dialog.closeCallBack()},showCallBack:function(t){m.options.show=t,m.originalOptions.show=t,m.show=t,m.Dialog.showCallBack&&m.Dialog.showCallBack()},translationalCallBack:function(){m.positionEditing=!m.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(m,(function(){o()}))}});case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Wp(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){m.color=t},clear:function(){m.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.lineColor=t},clear:function(){m.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelColor=t},clear:function(){m.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelLineColor=t},clear:function(){m.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorStart=t},clear:function(){m.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){m.labelBackgroundColorEnd=t},clear:function(){m.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],setTimeout((function(){m.attributeLink=m.options.attribute.link.content,m.attributeVr=m.options.attribute.vr.content,m.cameraSelect&&m.cameraSelect(),m.goodsSelect&&m.goodsSelect();var t=m.attributeSelect,i=m._DialogObject._element.content.getElementsByClassName("attribute-select-box")[0];if(i){var n=Y(i,".attribute-select");n.legp_search(t);for(var s=m._DialogObject._element.content.getElementsByClassName("attribute-select")[0].getElementsByTagName("input")[0],a=0;a0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!this.options.customView){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Jp({},this.options.position):this.options.positions?l=Jp({},this.options.positions[0]):this.options.center?l=Jp({},this.options.center):this.options.start?l=Jp({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polyline.positions.getValue(),u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{[];var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=t.lng,e.options.center.lat=t.lat,e.center=e.options.center,e.createEllipse(e.options.center,{bearing:e.options.bearing,semiMinorAxis:e.options.semiMinorAxis,semiMajorAxis:e.options.semiMajorAxis}),e.label.position=[t.lng,t.lat],e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.previous={center:e.deepCopyObj(e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)}else this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!0),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!0)}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}return this.positions=this.createEllipse(t,{bearing:this.options.bearing,semiMinorAxis:this.options.semiMinorAxis,semiMajorAxis:this.options.semiMajorAxis,height:t.alt+n}),i?setTimeout((function(){e.getClampToHeight({lng:t.lng,lat:t.lat}).then((function(i){e.label&&(e.label.position=[t.lng,t.lat,i])}))}),100):this.label&&(this.label.position=[t.lng,t.lat,t.alt+n]),this.options.areaByMeter=Number((Cesium.Math.PI*this.options.semiMinorAxis*this.options.semiMajorAxis).toFixed(2)),this.areaUnit=this.areaUnit,this.positions}}}],[{key:"create",value:function(t){var i,n=0;switch(t.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=t.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.options.center.lng,t.options.center.lat))||0,i=!1;break;case"2":case 2:i=!0}t.options.label.position||(t.options.label.position={lng:t.options.center.lng,lat:t.options.center.lat,alt:t.options.center.alt+n});var o=Cesium.Color.fromCssColorString(t.options.color);2===t.sdk.viewer.scene.mode&&(i=!1,o=new Cesium.CustomColorMaterialSource({color:t.options.color})),t.options.label.ground=i;var s=t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis,height:t.options.center.alt+n});switch(t.entity=t.sdk.viewer.entities.add({id:t.options.id,show:t.options.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(s),perPositionHeight:!i,material:o,zIndex:t.sdk._entityZIndex},polyline:{positions:[].concat(L()(s),[s[0],s[1]]),width:t.options.line.width,material:Cesium.Color.fromCssColorString(t.options.line.color),clampToGround:!!i,arcType:i?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,zIndex:t.sdk._entityZIndex}}),t.sdk._entityZIndex++,e.createLabel(t),t.options.areaByMeter=Number((Cesium.Math.PI*t.options.semiMinorAxis*t.options.semiMajorAxis).toFixed(2)),t.options["area-unit"]){case"平方米":t.options.area=t.options.areaByMeter;break;case"平方千米":t.options.area=Number((t.options.areaByMeter/1e6).toFixed(8));break;case"亩":t.options.area=Number((t.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":t.options.area=Number((t.options.areaByMeter/1e4).toFixed(6));break;default:t.options.area=t.options.areaByMeter}Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far,ground:e.options.label.ground});case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"nodeEdit",value:function(t){if(t.positionEditing=!1,YJ.Measure.GetMeasureStatus());else{var e,i=function(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)},n=function(){var e=o()(a.a.mark((function e(i,n){var o,s,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.cartesian3Towgs84(i,t.sdk.viewer),e.next=3,t.getClampToHeight(o,d);case 3:s=e.sent,r=t.sdk.viewer.entities.add({name:"node-secondary-edit-point",type:n,position:Cesium.Cartesian3.fromDegrees(o.lng,o.lat,s),billboard:{image:t.getSourceRootPath()+"/img/point.png",width:15,height:15,disableDepthTestDistance:Number.POSITIVE_INFINITY,color:Cesium.Color.WHITE.withAlpha(.99)}}),t.nodePoints.push(r);case 6:case"end":return e.stop()}}),e)})));return function(t,i){return e.apply(this,arguments)}}();t.event&&t.event.destroy(),t.event=new X(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个编辑点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var s=Cesium.Cartesian3.fromDegrees(t.center.lng,t.center.lat),r=t.options.semiMinorAxis,l=t.options.semiMajorAxis,c=t.options.bearing,u=t.createEllipse(t.options.center,{bearing:t.options.bearing,semiMinorAxis:t.options.semiMinorAxis,semiMajorAxis:t.options.semiMajorAxis});t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(u)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(u),[u[0],u[1]])}),!1);var p=t.entity.polyline.positions.getValue(),h=p.length,d=L()(t.sdk.viewer.entities.values);setTimeout((function(){t.event.mouse_left((function(n,o){if(e)t.options.semiMinorAxis=r,t.options.semiMajorAxis=l,t.options.bearing=c,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,e=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var a=t.sdk.viewer.scene.pick(n.position);if(a&&a.id&&a.id.name&&"node-secondary-edit-point"===a.id.name&&("semiMinorAxis"===a.id._type||"semiMajorAxis"===a.id._type)){t.tip.set_text("左键确认,右键取消"),e=a.id;for(var p=0;pNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 拉伸高度\n
            \n \n m\n \n
            \n
            \n
            \n 材质样式\n
            \n
            \n
            \n
            \n
            \n 墙体闭合\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Qp(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return th(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?th(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function th(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function oh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=sh(this,e,[t,i])).options.color=i.color||"#ff0000",n.options.extrudedHeight=i.extrudedHeight||2.4,n.options.positions=i.positions,n.options.material=Number(i.material)||0===Number(i.material)?Number(i.material):3,n.options.duration=i.duration||0===i.duration?i.duration:1e3,n.options.show=!i.show&&!1!==i.show||i.show,n.options["nose-to-tail"]=i["nose-to-tail"]||!1,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n.Dialog=o,n._elms={},!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),e.create(n)),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"wallStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t||"#ff0000",this.entity.polylineVolume.material=this.getMaterial(),this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[i]=n}))}},{key:"material",get:function(){return this.options.material},set:function(t){var e=this;this.options.material=Number(t)||0===Number(t)?Number(t):3,this.entity.polylineVolume.material=this.getMaterial(),this._elms.material&&this._elms.material.forEach((function(t){t.value=e.options.material}))}},{key:"noseToTail",get:function(){return this.options["nose-to-tail"]},set:function(t){this.options["nose-to-tail"]=t;for(var e=this.options.positions,i=[],n=0;nthis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'上升墙',value:"上升墙",key:1,icon:"icon-wall-gradient"},{name:'箭头墙',value:"箭头墙",key:2,icon:"icon-wall-arrow"},{name:'警戒墙',value:"警戒墙",key:3,icon:"icon-wall-warn"}],(s=Y(n.getElementsByClassName("material-box")[0],".material")).legp_search(o),(r=document.createElement("i")).className="icon icon-active",n.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(r),l=n.getElementsByClassName("material")[0].getElementsByTagName("input")[0],c=0;case 22:if(!(c=1e5&&(s=!0),o.push(r),n+=r}var l=n/e.options.extrudedHeight;if(l/=1,s)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=L()(t.options.positions),a=[],r=0;r=500?u(o,i):c(o,i)}))}));for(var h=0;h\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 宽度\n
            \n \n m\n \n
            \n
            \n
            \n 拉伸高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 拐角类型\n
            \n
            \n
            \n 墙体样式\n
            \n
            \n
            \n
            \n
            \n 墙体闭合\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function lh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return ch(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ch(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function ch(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&nNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=mh(this,e,[t,i]))._elms={},n.options.color=i.color||"#ffffff",n.options.width=i.width||.24,n.options["nose-to-tail"]=i["nose-to-tail"]||!1,n.options.extrudedHeight=i.extrudedHeight||2.4,n.cornerType=i.cornerType,n.options.positions=i.positions,n.options.material=Number(i.material)||0,n.options.show=!i.show&&!1!==i.show||i.show,n.entity,n.nodePoints=[],i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera.content=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n.Dialog=o,!n.options.positions||n.options.positions.length<2?(n._error="最少需要两个坐标!",console.warn(n._error),window.ELEMENT&&window.ELEMENT.Message({message:n._error,type:"warning",duration:1500})):(n.sdk.addIncetance(n.options.id,n),e.create(n)),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"WallRealStereoscopic"}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t,this.entity)for(var i=0;ithis.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0){var P=x;x=S+180,S=P+180,D=!1}var M=turf.sector([C.lng,C.lat,C.alt],this.options.width/1e3/2,x,S,{units:"kilometers"});if(console.log("sector",M),0==b&&(o.push(e[b]),s.push(i[b])),console.log("face",D),D){o.push(e[b+1],e[b+2]);for(var O=1;O0;T--)o.push([].concat(L()(M.geometry.coordinates[0][T]),[e[b+1][2]]));s.push(i[b+1],i[b+2])}b==e.length-4&&(o.push(e[b+3]),s.push(i[b+3]))}n=[].concat(o);for(var N=s.length-1;N>=0;N--)n.push(s[N]);return n.push(n[0]),console.log("positions",n),n}},{key:"calculatePositions2",value:function(){for(var t=[],e=0;e180&&(p=360-p),p}return t}},{key:"calculatePositions",value:function(){var t=this.deepCopyObj(this.options.positions);this.noseToTail&&t.push(t[0],t[1]);for(var e=[],i=[],n=0;n0){var x=b;b=k+180,k=x+180,!1}var _=Math.abs(b-k);_>180&&(_=360-_);var E=this.options.width/2/Math.cos(Cesium.Math.toRadians(_/2));E>5*this.options.width&&(E=5*this.options.width);var S=turf.sector([v.lng,v.lat],this.options.width/1e3/2,b,k,{units:"kilometers",steps:3600}),D=turf.point([v.lng,v.lat]),P=turf.point(L()(S.geometry.coordinates[0][Math.ceil(S.geometry.coordinates[0].length/2)])),M=turf.bearing(D,P),O=turf.destination(D,E/1e3,M,{units:"kilometers"}),T=[];T.push([].concat(L()(S.geometry.coordinates[0][0]),[v.alt])),T.push([].concat(L()(S.geometry.coordinates[0][1]),[v.alt])),T.push([].concat(L()(O.geometry.coordinates),[v.alt])),T.push([].concat(L()(S.geometry.coordinates[0][S.geometry.coordinates[0].length-2]),[v.alt])),i.push(T),i.push(e[f])}else if(1===this.cornerType)for(var N=1;N0){var V=R;R=H+180,H=V+180}for(var G=turf.sector([A.lng,A.lat],this.options.width/1e3/2,R,H,{units:"kilometers"}),U=[],W=0;W直角',value:"直角",key:0,icon:"yj-icon-zj"},{name:'斜角',value:"斜角",key:1,icon:"yj-icon-xj"},{name:'圆角',value:"圆角",key:2,icon:"yj-icon-yj"}],(s=Y(n.getElementsByClassName("corner-type-box")[0],".corner-type")).legp_search(o),(r=document.createElement("i")).className="icon-active",n.getElementsByClassName("corner-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(r),l=n.getElementsByClassName("corner-type")[0].getElementsByTagName("input")[0],c=0;case 22:if(!(c'),t.abrupt("break",31);case 28:c++,t.next=22;break;case 31:l.addEventListener("input",(function(t,e){for(var i=0;i');break}})),u=[{name:'纯色墙',value:"纯色墙",key:0,icon:"icon-wall"},{name:'红砖墙',value:"红砖墙",key:1,icon:"icon-wall-brick1"},{name:'黄砖墙',value:"黄砖墙",key:2,icon:"icon-wall-brick2"},{name:'灰瓷墙',value:"灰瓷墙",key:3,icon:"icon-wall-brick3"}],(p=Y(n.getElementsByClassName("material-box")[0],".material")).legp_search(u),(h=document.createElement("i")).className="icon icon-active",n.getElementsByClassName("material")[0].getElementsByClassName("cy_datalist")[0].appendChild(h),d=n.getElementsByClassName("material")[0].getElementsByTagName("input")[0],m=0;case 40:if(!(m0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())i("上一次测量未结束");else{var n,o,s=function(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t.entity){for(var n=t.calculatePositions(),o=0;o=2)for(var s=t.calculatePositions(),l=0;l=500?p(o,i):u(o,i)}))}));for(var h=0;h\n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 线条颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n 线条形式\n
            \n
            \n
            \n
            \n
            \n 线段缓冲\n \n
            \n
            \n 缓冲宽度\n
            \n \n m\n \n
            \n
            \n
            \n 缓冲颜色\n
            \n
            \n
            \n
            \n
            \n 动画顺向\n \n
            \n
            \n 流动速率\n
            \n \n \n
            \n
            \n
            \n 间距\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 首尾相连\n \n
            \n
            \n
            \n
            \n
            \n
            \n\n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 指令--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!-- 设置操作点--\x3e\n \x3c!-- --\x3e\n \x3c!-- --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n \x3c!--
            --\x3e\n
            \n
            \n
            \n \n ')}function gh(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return yh(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yh(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function yh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function kh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),(i=Eh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.width=n.width||0===n.width?n.width:3,i.options.color=n.color||"#ff0000",i.options.type=n.type?Number(n.type):0,i.options["nose-to-tail"]=n["nose-to-tail"]||!1,i.options.extend=n.extend||!1,i.options.rotate=!n.rotate&&!1!==n.rotate||n.rotate,i.options.space=n.space||1,i.options.speed=n.speed||10,i.options.dashSize=n.dashSize||.03,i.options["length-unit"]=n["length-unit"]||"米",i.options["fit-length-unit"]=n["fit-length-unit"]||"米",i.options["words-name"]=n["words-name"]||"空间长度",i.options["extend-width"]=n["extend-width"]||0===n["extend-width"]?n["extend-width"]:10,i.options["extend-color"]=n["extend-color"]||"rgba(255,255,80,0.3)",i.options.show=!n.show&&!1!==n.show||n.show,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i._elms=[],n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.instruct=n.instruct||"",i.options.operatingPoint=n.operatingPoint||"",i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.operate={},i.nodePoints=[],i.unitNum=0,i.inputSpeed=n.speed&&100*Math.pow(n.speed,-1)||10,i.Dialog=o,!i.options.positions||i.options.positions.length<2)i._error="线段最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500});else{for(var s=0;s2)switch(t){case"米":this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;break;case"千米":this.length=this.noseToTail?(this.options.fitLengthByMeter/1e3).toFixed(5):(this.options.lengthByMeter/1e3).toFixed(5);break;default:this.length=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter}else{var e=this.noseToTail?this.options.fitLengthByMeter:this.options.lengthByMeter;this.lengthUnit=e>1e3||1e3==e?"千米":"米"}}},{key:"wordsName",get:function(){return this.options["words-name"]},set:function(t){var e=this;this.options["words-name"]=t,this._elms.wordsName&&this._elms.wordsName.forEach((function(e){e.value=t}));var i=this;if(this.noseToTail)this.renewPositions(this.options.positions);else this.computeDistance(this.smoothHandle(this.options.positions),2,t).then((function(t){i.options.lengthByMeter=t,i.lengthUnit=e.options["length-unit"]}))}},{key:"fitLengthUnit",get:function(){return this.options["fit-length-unit"]},set:function(t){if(this.options["fit-length-unit"]=t,this._elms.fitLengthUnit&&this._elms.fitLengthUnit.forEach((function(e){e.value=t})),this.options.fitLengthByMeter)switch(t){case"米":this.fitLength=this.options.fitLengthByMeter;break;case"千米":this.fitLength=Number((this.options.fitLengthByMeter/1e3).toFixed(5));break;default:this.fitLength=this.options.fitLengthByMeter}}},{key:"lineWidth",get:function(){return this.options.width},set:function(t){var e=this;this.options.width=t||0==t?t:3,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.width})),this.entity&&this.entity.polyline&&(this.entity.polyline.width=this.entity.polyline.width+t-this.entity.polyline.oriWidth,this.entity.polyline.oriWidth=this.options.width)}},{key:"lineType",get:function(){return this.options.type},set:function(t){var e=this,i=[{name:'实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}];this.options.type=Number(t);for(var n=function(n){if(i[n].key===Number(t))return e._elms.lineType&&e._elms.lineType.forEach((function(t){t.value=i[n].value,2this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c700?c*=m/u/(e.space*(i.width/i.height*5)+1):c=void 0,this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE3D?c:Re().viewer.entities.getById(this.options.id).polyline.oriRepeatX}}},{key:"edit",value:(l=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u,p,h,d,m=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=32;break}return o=function(t){"2"!==t&&2!==t||(2实线',value:"实线",key:0,icon:"line"},{name:'虚线',value:"虚线",key:1,icon:"dash-line"},{name:'泛光',value:"泛光",key:2,icon:"light-line"},{name:'尾迹光线',value:"尾迹光线",key:3,icon:"tail-line"},{name:'多尾迹光线',value:"多尾迹光线",key:4,icon:"mult-tail-line"},{name:'流动虚线1',value:"流动虚线1",key:5,icon:"flow-dash-line1"},{name:'流动虚线2',value:"流动虚线2",key:6,icon:"flow-dash-line2"},{name:'流动箭头1',value:"流动箭头1",key:7,icon:"pic-line1"},{name:'流动箭头2',value:"流动箭头2",key:8,icon:"pic-line2"},{name:'流动箭头3',value:"流动箭头3",key:9,icon:"pic-line3"},{name:'流动箭头4',value:"流动箭头4",key:10,icon:"pic-line4"},{name:'流动箭头5',value:"流动箭头5",key:11,icon:"pic-line5"},{name:'流动箭头6',value:"流动箭头6",key:12,icon:"pic-line6"}],g=Y(m._DialogObject._element.content.getElementsByClassName("input-select-line-type-box")[0],".input-select-line-type");if(g){g.legp_search(v);var y=document.createElement("i");y.className="icon icon-active",m._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByClassName("cy_datalist")[0].appendChild(y);var b=m._DialogObject._element.content.getElementsByClassName("input-select-line-type")[0].getElementsByTagName("input")[0];m._elms.lineType=[b];for(var C=0;C'.concat(t+1,'\n
            \n
            \n
            \n ');var n=i.getElementsByClassName("lng")[0],o=document.createElement("span");o.innerHTML=m.options.positions[t].lng.toFixed(8),n.appendChild(o);var s=document.createElement("input");s.className="input",s.type="number",s.title="",s.min=-180,s.max=180,s.value=m.options.positions[t].lng.toFixed(8);var a=i.getElementsByClassName("lat")[0],r=document.createElement("span");r.innerHTML=m.options.positions[t].lat.toFixed(8),a.appendChild(r);var l=document.createElement("input");l.className="input",l.type="number",l.title="",l.min=-90,l.max=90,l.value=m.options.positions[t].lat.toFixed(8);var c=i.getElementsByClassName("alt")[0],u=document.createElement("span");u.innerHTML=m.options.positions[t].alt.toFixed(2),c.appendChild(u);var p=document.createElement("input");p.className="input",p.type="number",p.title="",p.min=-9999999,p.max=999999999,p.value=m.options.positions[t].alt.toFixed(2),n.addEventListener("dblclick",(function(){n.innerHTML="",s.value=Number(m.options.positions[t].lng.toFixed(8)),n.appendChild(s),s.focus(),m.positionEditing=!1,e.closeNodeEdit(m)})),s.addEventListener("blur",(function(){s.value=Number(m.options.positions[t].lng.toFixed(8)),n.innerHTML="",n.appendChild(o)})),s.addEventListener("input",(function(){m.options.positions[t].lng=Number(Number(s.value).toFixed(8)),o.innerHTML=m.options.positions[t].lng.toFixed(8);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),a.addEventListener("dblclick",(function(){a.innerHTML="",l.value=Number(m.options.positions[t].lat.toFixed(8)),a.appendChild(l),l.focus(),m.positionEditing=!1,e.closeNodeEdit(m)})),l.addEventListener("blur",(function(){l.value=Number(m.options.positions[t].lat.toFixed(8)),a.innerHTML="",a.appendChild(r)})),l.addEventListener("input",(function(){m.options.positions[t].lat=Number(Number(l.value).toFixed(8)),r.innerHTML=m.options.positions[t].lat.toFixed(8);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),c.addEventListener("dblclick",(function(){2!=m.heightMode&&(c.innerHTML="",p.value=Number(m.options.positions[t].alt.toFixed(2)),c.appendChild(p),p.focus(),m.positionEditing=!1,e.closeNodeEdit(m))})),p.addEventListener("blur",(function(){p.value=Number(m.options.positions[t].alt.toFixed(2)),c.innerHTML="",c.appendChild(u)})),p.addEventListener("input",(function(){m.options.positions[t].alt=Number(Number(p.value).toFixed(2)),u.innerHTML=m.options.positions[t].alt.toFixed(2);var e=m.renewPositions(m.options.positions);m.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(e),m.label.position=[m.options.positions[0].lng,m.options.positions[0].lat,e[2]]})),m._elms.lng.push(o),m._elms.lngInput.push(s),m._elms.lat.push(r),m._elms.latInput.push(l),m._elms.alt.push(u),m._elms.altInput.push(p),P.appendChild(i)},O=0;O0&&void 0!==y[0]?y[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(ii(this.sdk),ni(this.sdk),pi(0),!this.options.customView){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=_h({},this.options.position):this.options.positions?l=_h({},this.options.positions[0]):this.options.center?l=_h({},this.options.center):this.options.start?l=_h({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=43;break;case 25:c=[],t.t0=this.options.heightMode,t.next="0"===t.t0||0===t.t0?29:"1"===t.t0||1===t.t0?31:"2"===t.t0||2===t.t0?36:41;break;case 29:for(p=0;p=500?(i.event.mouse_move((function(){})),i.event.mouse_left((function(){})),i.event.mouse_right((function(){})),i.positionEditing=!1):leftEvent(s,e)}))})),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(o)}),!1)}else{this.sdk&&this.sdk.viewer&&this.label&&this.label.entity||(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.destroy()),this.tip&&this.tip.destroy();var p=this.renewPositions(this.options.positions);switch(this.entity.polyline.positions=Cesium.Cartesian3.fromDegreesArrayHeights(p),this.renewPolygon(p),this.heightMode){case 0:case"0":case 1:case"1":this.label.position=[this.options.positions[0].lng,this.options.positions[0].lat,p[2]],this.options.label.position={lng:this.options.positions[0].lng,lat:this.options.positions[0].lat,alt:p[2]}}}}},{key:"setDIV",value:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};i.x=i.x||0===i.x?i.x:10,i.y=i.y||0===i.y?i.y:10;for(var n=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Mh(this,e,[t,n])).viewer=t.viewer,i.options.show=!n.show&&!1!==n.show||n.show,i.options.name=i.options.name||"未命名对象",i.options.size=i.options.size||0===i.options.size?i.options.size:80,i.options.scaleByDistance=!n.scaleByDistance&&!1!==n.scaleByDistance||n.scaleByDistance,i.event=new X(i.sdk),i.Dialog=o,i.operate={},i._elms={},i._EventBinding=new wn,i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"Explosion"}},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=15;break}return t.next=6,new rn(this.sdk,this.options,{title:"爆炸属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="未命名对象"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Pe(o.sdk,o.options.id),se(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},removeCallBack:function(){o.Dialog.removeCallBack&&o.Dialog.removeCallBack()},closeCallBack:function(){o.reset(),o.positionEditing=!1,o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.options.show=t,o.originalOptions.show=t,o.show=t,o.Dialog.showCallBack&&o.Dialog.showCallBack()},translationalCallBack:function(){o.positionEditing=!o.positionEditing}});case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" explosion",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 随地图缩放\n \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 爆炸范围\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,this.scaleByDistance=this.options.scaleByDistance;case 15:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Ph({},this.options.position):this.options.positions?l=Ph({},this.options.positions[0]):this.options.center?l=Ph({},this.options.center):this.options.start?l=Ph({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=24;break;case 23:this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat,this.options.position.alt+8*this.options.size),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-85),roll:Cesium.Math.toRadians(0)}});case 24:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.previous=null,this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.size=this.originalOptions.size,this.scaleByDistance=this.originalOptions.scaleByDistance,this.lng=this.options.position.lng,this.lat=this.options.position.lat)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity.billboard.sizeInMeters=t,this._elms.scaleByDistance&&this._elms.scaleByDistance.forEach((function(e){e.checked=t}))}},{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position.lng=t,this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position.lat=t,this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"alt",get:function(){return this.options.position.alt},set:function(t){this.options.position.alt=t,this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t}))}},{key:"size",get:function(){return this.options.size},set:function(t){this.options.size=t,this.entity.billboard.width=this.options.size,this.entity.billboard.height=this.options.size,this._elms.size&&this._elms.size.forEach((function(e){e.value=t}))}},{key:"positionEditing",get:function(){return this.operate.positionEditing},set:function(t){var e=this;!YJ.Measure.GetMeasureStatus()&&this.sdk&&this.sdk.viewer&&this.entity&&(this.operate.positionEditing=t,!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.previous={position:Ph({},this.options.position)},this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.alt=n.alt,e.previous={position:Ph({},e.options.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.alt=t.alt,e.previous={position:Ph({},e.options.position)},e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.previous&&(this.lng=this.previous.position.lng,this.lat=this.previous.position.lat,this.alt=this.previous.position.alt)))}},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),t.next=7,this.sdk.removeIncetance(this.options.id);case 7:return t.next=9,Pe(this.sdk,this.options.id);case 9:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(t){for(var e=[],i=10001;i<=10120;i++){var n=t.getSourceRootPath()+"/img/frameAnimation/explosion/b".concat(i,".png");e.push(n)}var o=new Cesium.Entity({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegrees(t.options.position.lng,t.options.position.lat,t.options.position.alt)}),!1),billboard:{image:new Cesium.CallbackProperty((function(){var t=e[o.imgIndex];return o.imgIndex++,o.imgIndex>=e.length&&(o.imgIndex=0),t}),!1),disableDepthTestDistance:new Cesium.CallbackProperty((function(){return ei()?void 0:Number.POSITIVE_INFINITY}),!1),width:t.options.size,height:t.options.size,sizeInMeters:t.options.scaleByDistance,pixelOffset:{x:0,y:-20}}});o.imgIndex=0,t.entity=t.viewer.entities.add(o),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}}]);var i,n,s}(Wn);function Th(t){return'\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 经度\n \n
            \n
            \n 扩散半径\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 纬度\n \n
            \n
            \n 持续时间\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n
            \n 范围颜色\n
            \n
            \n
            \n 扫描颜色\n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ','\n
            \n
            \n
            \n
            \n \n ')}function Nh(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Bh(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ah(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=jh(this,e,[t,i])).options.lng=i.lng,n.options.lat=i.lat,n.options.alt=i.alt,n.options.colorOut=i.colorOut||"rgba(255,255,0,0.3)",n.options.colorIn=i.colorIn||"rgba(255,0,0,0.3)",n.options.radius=i.radius||10,n.options.radius>999999&&(n.options.radius=999999),n.options.duration=i.duration||2e3,n.event=new X(n.sdk),n.options.positionEditin=!1,i.label=i.label||{},n.options.label={text:n.options.name,show:i.label.show||!1,position:i.label.position,fontSize:i.label.fontSize||0===i.label.fontSize?i.label.fontSize:20,fontFamily:i.label.fontFamily?i.label.fontFamily:0,color:i.label.color||"#ffffff",lineWidth:i.label.lineWidth||0===i.label.lineWidth?i.label.lineWidth:4,pixelOffset:i.label.pixelOffset||0===i.label.pixelOffset?i.label.pixelOffset:20,backgroundColor:i.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:i.label.lineColor||"#00ffff80",scaleByDistance:i.label.scaleByDistance||!1,near:i.label.near||0===i.label.near?i.label.near:2e3,far:i.label.far||0===i.label.far?i.label.far:1e5},n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.vr=n.options.attribute.vr||{},n.options.attribute.vr.content=n.options.attribute.vr.content||[],n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||{},n.options.attribute.camera=n.options.attribute.camera.content||[],n.options.attribute.ISC=n.options.attribute.ISC||{},n.options.attribute.ISC.content=n.options.attribute.ISC.content||[],n.options.attribute.goods=n.options.attribute.goods||{},n.options.attribute.goods.content=n.options.attribute.goods.content||[],n.options.attributeType=i.attributeType||"richText",n._elms={},n.Dialog=o,n._EventBinding=new wn,n.ControllerObject=new qo(n.sdk),n.sdk.addIncetance(n.options.id,n),e.radarSolidScan(n),n}return sn()(e,t),_()(e,[{key:"type",get:function(){return"RadarScanStereoscopic"}},{key:"positionEditing",get:function(){return"translational"===this.ControllerObject.getActiveState()},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(t?(this.picking=!1,this.ControllerObject.position={lng:this.options.lng,lat:this.options.lat,alt:this.options.alt},this.ControllerObject.editTranslational(),this.ControllerObject.controllerCallBack=function(t){e.lng=t.position.lng,e.lat=t.position.lat,e.alt=t.position.alt}):(setTimeout((function(){e.picking=!0}),500),this.ControllerObject.destroy()))}},{key:"lng",get:function(){return this.options.lng},set:function(t){this.options.lng=Number(t),this.label.position=[t,this.lat,this.alt+this.radius],this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"lat",get:function(){return this.options.lat},set:function(t){this.options.lat=Number(t),this.label.position=[this.lng,t,this.alt+this.radius],this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"alt",get:function(){return this.options.alt},set:function(t){this.options.alt=Number(t),this.label.position=[this.lng,this.lat,t+this.radius],this._elms.alt&&this._elms.alt.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"radius",get:function(){return this.options.radius},set:function(t){var i=Number(t.toFixed(2));(i>999999&&(i=999999),i<.1&&(i=.1),this.options.radius=i,this.label.position=[this.lng,this.lat,this.alt+t],this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)&&("千米"===this._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value&&(i=Number((i/1e3).toFixed(5))));this._elms.radius&&this._elms.radius.forEach((function(t){t.value=i})),e.changeParam(this)}},{key:"duration",get:function(){return this.options.duration},set:function(t){this.options.duration=t,this._elms.duration&&this._elms.duration.forEach((function(e){e.value=t})),e.changeParam(this)}},{key:"colorOut",get:function(){return this.options.colorOut},set:function(t){var e=this;this.options.colorOut=t,this.entity.ellipsoid.material=Cesium.Color.fromCssColorString(t),this.entity.ellipsoid.outlineColor=Cesium.Color.fromCssColorString(t),this._elms.colorOut&&this._elms.colorOut.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.colorOut=t},clear:function(){e.colorOut="rgba(255,255,255,1)"}});e._elms.colorOut[n]=o}))}},{key:"colorIn",get:function(){return this.options.colorIn},set:function(t){var e=this;this.options.colorIn=t,this.entity.wall.material=Cesium.Color.fromCssColorString(t),this._elms.colorIn&&this._elms.colorIn.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.colorIn=t},clear:function(){e.colorIn="rgba(255,255,255,1)"}});e._elms.colorIn[n]=o}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c=Number(t.target.min))&&(h.radius=i*("米"===e?1:1e3))}})),p.addEventListener("blur",(function(t){var e=h._DialogObject._element.content.getElementsByClassName("input-radius-unit")[0].getElementsByTagName("input")[0].value;if(t.target.value||0===t.target.value){var i=t.target.value;i=Number(i),t.target.max&&i>Number(t.target.max)/("米"===e?1:1e3)&&(i=Number(t.target.max)/("米"===e?1:1e3)),t.target.min&&i0&&void 0!==u[0]?u[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Bh({},this.options.position):this.options.positions?l=Bh({},this.options.positions[0]):this.options.start?l=Bh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=27;break;case 23:return t.next=25,this.getClampToHeight({lng:this.options.lng,lat:this.options.lat});case 25:c=t.sent,this.sdk.viewer.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,6*this.options.radius+c),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},duration:1});case 27:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.options=this.deepCopyObj(this.originalOptions),this.name=this.originalOptions.name,this.lng=this.originalOptions.lng,this.lat=this.originalOptions.lat,this.alt=this.originalOptions.alt,this.colorOut=this.originalOptions.colorOut,this.colorIn=this.originalOptions.colorIn,this.radius=this.originalOptions.radius,this.duration=this.originalOptions.duration,this.labelShow=this.originalOptions.label.show,this.labelColor=this.originalOptions.label.color,this.labelFontSize=this.originalOptions.label.fontSize,this.labelFontFamily=this.originalOptions.label.fontFamily,this.labelScaleByDistance=this.originalOptions.label.scaleByDistance,this.labelNear=this.originalOptions.label.near,this.labelFar=this.originalOptions.label.far,this.labelLineWidth=this.originalOptions.label.lineWidth,this.labelPixelOffset=this.originalOptions.label.pixelOffset,this.labelLineColor=this.originalOptions.label.lineColor,this.labelBackgroundColorStart=this.originalOptions.label.backgroundColor[0],this.labelBackgroundColorEnd=this.originalOptions.label.backgroundColor[1],this.instruct=this.originalOptions.instruct,this.operatingPoint=this.originalOptions.operatingPoint,this.attributeLink=this.options.attribute.link.content,this.attributeVr=this.options.attribute.vr.content,this.attributeCamera=this.options.attribute.camera.content,this.attributeGoods=this.options.attribute.goods.content,this.attributeISC=this.options.attribute.ISC.content,this.positionEditing=!1,this.cameraSelect&&this.cameraSelect(),this.goodsSelect&&this.goodsSelect())}},{key:"remove",value:(n=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.label.remove(),this.sdk.viewer.entities.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=6,this.sdk.removeIncetance(this.options.id);case 6:return t.next=8,Pe(this.sdk,this.options.id);case 8:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"instructSubmit",value:function(){this.Dialog.instructSubmit&&this.Dialog.instructSubmit(this.options.id,this.options.label.text,this.instruct),this.originalOptions.instruct=this.instruct}},{key:"operatingPointSubmit",value:function(){this.Dialog.operatingPointSubmit&&this.Dialog.operatingPointSubmit(this.options.id,this.options.label.text,this.operatingPoint),this.originalOptions.operatingPoint=this.operatingPoint}},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(t){this.options.attribute.link.content.push({name:"链接",url:t}),this.attributeLink=this.options.attribute.link.content}},{key:"_addRr",value:function(){this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value?(this.options.attribute.vr.content.push({name:"全景图",url:this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("vr_add")[0].value="",this.attributeVr=this.options.attribute.vr.content):this.Dialog.clickAddVr&&this.Dialog.clickAddVr()}},{key:"addAttributeRr",value:function(t){this.options.attribute.vr.content.push({name:"全景图",url:t}),this.attributeVr=this.options.attribute.vr.content}},{key:"openRichTextEditor",value:function(t){var e=this;On.open(this.options.id,this.options.name,this.options.richTextContent),On.primaryCallBack=function(t){e.options.richTextContent=t}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.lng,this.options.lat,this.options.alt+this.options.radius);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}}],[{key:"radarSolidScan",value:function(t){var i=t.sdk.viewer,n=t.options,o=(n.radius,n.lng,n.lat,n.alt,t.options.duration?360/t.options.duration*Cesium.getTimestamp():0),s=a(t.options,t.options.radius,o);(new Date).getTime();function a(t,e,i){var n=t.lng,o=t.lat,s=t.alt,a=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(n,o,s)),r=e*Math.cos(i*Math.PI/180),l=e*Math.sin(i*Math.PI/180),c=Cesium.Cartesian3.fromElements(r,l,s),u=Cesium.Matrix4.multiplyByPoint(a,c,new Cesium.Cartesian3),p=Cesium.Cartographic.fromCartesian(u);return function(t,e,i,n,o){var s=[],a=[];s.push(t,e,o),a.push(o);for(var r=Cesium.Cartesian3.distance(Cesium.Cartesian3.fromDegrees(t,e),Cesium.Cartesian3.fromDegrees(i,n)),l=0;l<=90;l++){var c=r*Math.sin(l*Math.PI/180),u=Math.cos(l*Math.PI/180),p=(i-t)*u+t,h=(n-e)*u+e;s.push(p,h,c+o),a.push(o)}return{positionArr:s,bottomArr:a}}(n,o,Cesium.Math.toDegrees(p.longitude),Cesium.Math.toDegrees(p.latitude),s)}i.clock.onTick.addEventListener((function(){o=t.options.duration?360/t.options.duration*Cesium.getTimestamp():0,s=a(t.options,t.options.radius,o)})),t.entity=i.entities.add({id:t.options.id,show:t.options.show,position:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3.fromDegrees(t.options.lng,t.options.lat,t.options.alt)}),!1),ellipsoid:{radii:new Cesium.CallbackProperty((function(){return new Cesium.Cartesian3(t.options.radius,t.options.radius,t.options.radius)}),!1),material:Cesium.Color.fromCssColorString(n.colorOut),outline:!0,outlineColor:Cesium.Color.fromCssColorString(n.colorOut),outlineWidth:1,maximumCone:Cesium.Math.toRadians(90)},wall:{positions:new Cesium.CallbackProperty((function(){return Cesium.Cartesian3.fromDegreesArrayHeights(s.positionArr)}),!1),material:Cesium.Color.fromCssColorString(n.colorIn),minimumHeights:new Cesium.CallbackProperty((function(){return s.bottomArr}),!1)}}),e.createLabel(t),Pe(t.sdk,t.options.id),t.options.show&&Kt(0,t.options.id)}},{key:"createLabel",value:(i=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.options.alt){t.next=4;break}i=e.options.alt+e.options.radius,t.next=8;break;case 4:return n=L()(e.sdk.viewer.entities.values),t.next=7,e.getClampToHeight({lng:e.options.lng,lat:e.options.lat},n);case 7:i=t.sent;case 8:e.options.label.position||(e.options.label.position={lng:e.options.lng,lat:e.options.lat,alt:i}),e.label=new oo(e.sdk,{id:e.options.id,show:!!e.options.show&&e.options.label.show,position:[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt],text:e.options.name,ground:!1,fontSize:e.options.label.fontSize,fontFamily:e.options.label.fontFamily,color:e.options.label.color,pixelOffset:e.options.label.pixelOffset,backgroundColor:e.options.label.backgroundColor,lineColor:e.options.label.lineColor,lineWidth:e.options.label.lineWidth,scaleByDistance:e.options.label.scaleByDistance,near:e.options.label.near,far:e.options.label.far});case 10:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"changeParam",value:function(t){}}]);var i,n,s,r}(Wn);function Rh(t){return'\n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n 投影面积:\n \n
            \n
            \n
            \n
            \n
            \n
            \n \n \n '.concat(Ln(t),'\n \n \n
            \n
            \n 高度模式\n
            \n
            \n
            \n Z值统一增加\n
            \n \n m\n \n
            \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            经度(X)
            \n
            纬度(Y)
            \n
            高度(Z)
            \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n \n
            \n
            \n 面颜色\n
            \n
            \n
            \n 边线颜色\n
            \n
            \n
            \n 边线宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n \n ').concat('\n
            \n
            \n 标注开关\n \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n ','\n
            \n \n ').concat('\n
            \n
            \n 引线颜色\n
            \n
            \n
            \n 背景颜色\n
            \n
            \n
            \n
            \n
            \n
            \n 引线宽度\n
            \n \n px\n \n
            \n
            \n
            \n 引线长度\n
            \n \n px\n \n
            \n
            \n
            \n ',"\n
            \n
            \n
            \n ")}function Fh(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zh(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Gh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(255, 0, 0, 0.5)",i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:2,i.options.semiMinorAxis=n.semiMinorAxis||0===n.semiMinorAxis?n.semiMinorAxis:10,i.options.semiMajorAxis=n.semiMajorAxis||0===n.semiMajorAxis?n.semiMajorAxis:20,i.options.show=!n.show&&!1!==n.show||n.show,i.options.center=n.center||{},i.options.line=n.line||{},i.options.line.width=i.options.line.width||0===i.options.line.width?i.options.line.width:3,i.options.line.color=i.options.line.color||"rgba(255, 0, 0, 1)",i.options["area-unit"]=n["area-unit"]||"平方米",n.label=n.label||{},i._elms={},i.options.label={text:i.options.name,show:n.label.show||!1,position:n.label.position,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attribute.vr=i.options.attribute.vr||{},i.options.attribute.vr.content=i.options.attribute.vr.content||[],i.options.attribute.camera=i.options.attribute.camera||{},i.options.attribute.camera.content=i.options.attribute.camera.content||[],i.options.attribute.goods=i.options.attribute.goods||{},i.options.attribute.goods.content=i.options.attribute.goods.content||[],i.options.attributeType=n.attributeType||"richText",i.event=new X(i.sdk),i.nodePoints=[],i.operate={},i.Dialog={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"SectorObject"}},{key:"heightMode",get:function(){return this.options.heightMode?this.options.heightMode:0},set:function(t){var i=this;this.entity.polygon.hierarchy=[],setTimeout((function(){if(i.options.heightMode=t||0==t?t:2,i.positionEditing=!1,i.entity){var n="";e.closeNodeEdit(i);var o=!1,s=!1;switch(i.renewPositions(),i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.options.heightMode){case"0":case 0:n="海拔高度";break;case"1":case 1:n="相对地表";break;case"2":case 2:o=!0,s=!0,n="依附模型"}i.label.ground=o,i.entity.polyline.clampToGround=o,i.entity.polyline.arcType=o?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE,i.entity.polygon.perPositionHeight=!o,i._elms.heightMode&&(i._elms.heightMode.value=n),i._elms.heightModeObject&&i._elms.heightModeObject.legp_searchActive(n),s?(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"),i._elms.heightConfirm&&i._elms.heightConfirm.setAttribute("disabled","disabled")):(i._elms.heightBox&&(i._elms.heightBox.className="input-number input-number-unit-1 height-box"),i._elms.heightConfirm&&i._elms.heightConfirm.removeAttribute("disabled"))}}),50)}},{key:"height",get:function(){return this.options.center.alt},set:function(t){var e,i=this;!t||isNaN(Number(t))?this.options.center.alt=0:this.options.center.alt=Number(Number(t).toFixed(2)),e=2==this.heightMode,this.renewPositions(),setTimeout((function(){i.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),i.entity.polygon.perPositionHeight=!e,i.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),i.entity.polyline.clampToGround=!!e,i.entity.polyline.arcType=e?Cesium.ArcType.GEODESIC:Cesium.ArcType.NONE}),0),this._elms.alt&&this._elms.alt.forEach((function(t){t.innerHTML=i.options.center.alt}))}},{key:"startAngle",get:function(){return this.options.startAngle},set:function(t){this.options.startAngle=t,this.height=this.height}},{key:"endAngle",get:function(){return this.options.endAngle},set:function(t){this.options.endAngle=t,this.height=this.height}},{key:"center",get:function(){return this.options.center},set:function(t){var e=this;this.options.center=t,this.height=this.height,this._elms.lng&&this._elms.lng.forEach((function(t){t.innerHTML=e.options.center.lng})),this._elms.lat&&this._elms.lat.forEach((function(t){t.innerHTML=e.options.center.lat}))}},{key:"radius",get:function(){return this.options.radius},set:function(t){this.options.radius=t,this.height=this.height}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polygon){var i=Cesium.Color.fromCssColorString(this.options.color);2===this.sdk.viewer.scene.mode&&(i=new Cesium.CustomColorMaterialSource({color:this.options.color})),this.entity.polygon.material=i,this.entity.polyline.width=this.lineWidth,this._elms.color&&this._elms.color.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,0,0,0.5)"}});e._elms.color[i]=n}))}}},{key:"lineColor",get:function(){return this.options.line.color},set:function(t){var e=this;this.options.line.color=t||"rgba(255, 0, 0, 0.5)",this.sdk&&this.sdk.viewer&&this.entity&&this.entity.polyline&&(this.entity.polyline.material=Cesium.Color.fromCssColorString(this.options.line.color),this._elms.lineColor&&this._elms.lineColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.options.line.color,disabled:!1,openPickerAni:"opacity",sure:function(t){e.lineColor=t},clear:function(){e.lineColor="rgba(255,0,0,0.5)"}});e._elms.lineColor[i]=n})))}},{key:"lineWidth",get:function(){return this.options.line.width},set:function(t){var e=this;this.options.line.width=t||0===t?t:3,this.entity.polyline.width=this.options.line.width,this._elms.lineWidth&&this._elms.lineWidth.forEach((function(t){t.value=e.options.line.width}))}},{key:"area",get:function(){return this.options.area},set:function(t){this.options.area=t,this._elms.area&&this._elms.area.forEach((function(e){e.value=t}))}},{key:"areaUnit",get:function(){return this.options["area-unit"]},set:function(t){if(this.options["area-unit"]=t,this._elms.areaUnit&&this._elms.areaUnit.forEach((function(e){e.value=t})),this.options.areaByMeter)switch(t){case"平方米":this.area=this.options.areaByMeter;break;case"平方千米":this.area=Number((this.options.areaByMeter/1e6).toFixed(8));break;case"亩":this.area=Number((this.options.areaByMeter/666.6666667).toFixed(4));break;case"公顷":this.area=Number((this.options.areaByMeter/1e4).toFixed(6));break;default:this.area=this.options.areaByMeter}}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){this.options.label.show=t,this.show&&!this.showView||3==this.showView?this.label.show=t:this.label.show=!1,this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label.color=t,this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label.fontSize=t,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label.scaleByDistance=t,this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label.near=e,this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.vr.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={vrEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.vr.content;case 2:e.attributeVr=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-vr")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.vr.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(c圆心坐标\n
            \n
            \n
            \n ';var o=i.getElementsByClassName("lng")[0],a=document.createElement("span");a.innerHTML=n.options.center.lng.toFixed(8),o.appendChild(a);var r=document.createElement("input");r.className="input",r.type="number",r.title="",r.min=-180,r.max=180,r.value=n.options.center.lng.toFixed(8);var l=i.getElementsByClassName("lat")[0],c=document.createElement("span");c.innerHTML=n.options.center.lat.toFixed(8),l.appendChild(c);var u=document.createElement("input");u.className="input",u.type="number",u.title="",u.min=-90,u.max=90,u.value=n.options.center.lat.toFixed(8);var p=i.getElementsByClassName("alt")[0],h=document.createElement("span");h.innerHTML=n.height.toFixed(2),p.appendChild(h);var d=document.createElement("input");d.className="input",d.type="number",d.title="",d.min=-9999999,d.max=999999999,d.value=n.height.toFixed(2),o.addEventListener("dblclick",(function(){o.innerHTML="",r.value=Number(n.options.center.lng.toFixed(8)),o.appendChild(r),r.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),r.addEventListener("blur",(function(){r.value=Number(n.options.center.lng.toFixed(8)),o.innerHTML="",o.appendChild(a)})),r.addEventListener("input",(function(){n.options.center.lng=Number(Number(r.value).toFixed(8)),a.innerHTML=n.options.center.lng.toFixed(8),n.height=n.height})),l.addEventListener("dblclick",(function(){l.innerHTML="",u.value=Number(n.options.center.lat.toFixed(8)),l.appendChild(u),u.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode})),u.addEventListener("blur",(function(){u.value=Number(n.options.center.lat.toFixed(8)),l.innerHTML="",l.appendChild(c)})),u.addEventListener("input",(function(){n.options.center.lat=Number(Number(u.value).toFixed(8)),c.innerHTML=n.options.center.lat.toFixed(8),n.height=n.height})),p.addEventListener("dblclick",(function(){2!=n.heightMode&&(p.innerHTML="",d.value=Number(n.height.toFixed(2)),p.appendChild(d),d.focus(),n.operate.positionEditing&&(n.positionEditing=!1),e.closeNodeEdit(n),n.heightMode=n.heightMode)})),d.addEventListener("blur",(function(){d.value=Number(n.height.toFixed(2)),p.innerHTML="",p.appendChild(h)})),d.addEventListener("input",(function(){n.height=Number(Number(d.value).toFixed(2)),h.innerHTML=Number(n.height.toFixed(2))})),n._elms.lng.push(a),n._elms.lngInput.push(r),n._elms.lat.push(c),n._elms.latInput.push(u),n._elms.alt.push(h),n._elms.altInput.push(d),t.appendChild(i)},t.next=7,new rn(this.sdk,this.options,{title:"扇形属性",left:"180px",top:"100px",confirmCallBack:function(t){w.name=w.name.trim(),w.name||(w.name="未命名对象"),w.options.label.position={lng:w.label.position[0],lat:w.label.position[1],alt:w.label.position[2]},w.originalOptions=w.deepCopyObj(w.options),w._DialogObject.close(),w.Dialog.confirmCallBack&&w.Dialog.confirmCallBack(w.originalOptions),Pe(w.sdk,w.options.id),se(w.sdk,w.options.id)},resetCallBack:function(){w.reset(),w.Dialog.resetCallBack&&w.Dialog.resetCallBack()},removeCallBack:function(){w.Dialog.removeCallBack&&w.Dialog.removeCallBack()},closeCallBack:function(){w.reset(),w.positionEditing=!1,w.Dialog.closeCallBack&&w.Dialog.closeCallBack()},showCallBack:function(t){w.options.show=t,w.originalOptions.show=t,w.show=t,w.Dialog.showCallBack&&w.Dialog.showCallBack()},translationalCallBack:function(){w.positionEditing=!w.positionEditing},secondaryEditCallBack:function(){e.nodeEdit(w,(function(){o()}))}});case 7:if(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" circle",(s=document.createElement("div")).innerHTML=Rh(this),this._DialogObject.contentAppChild(s),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera.content,new kn("circle-object-edit-tabs",void 0,this.sdk),r=new YJColorPicker({el:s.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){w.color=t},clear:function(){w.color="rgba(255,255,255,1)"}}),l=new YJColorPicker({el:s.getElementsByClassName("lineColor")[0],size:"mini",alpha:!0,defaultColor:this.lineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.lineColor=t},clear:function(){w.lineColor="rgba(255,255,255,1)"}}),c=new YJColorPicker({el:s.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelColor=t},clear:function(){w.labelColor="rgba(255,255,255,1)"}}),u=new YJColorPicker({el:s.getElementsByClassName("labelLineColor")[0],size:"mini",alpha:!0,defaultColor:this.labelLineColor,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelLineColor=t},clear:function(){w.labelLineColor="rgba(255,255,255,1)"}}),p=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorStart")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorStart,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelBackgroundColorStart=t},clear:function(){w.labelBackgroundColorStart="rgba(255,255,255,1)"}}),h=new YJColorPicker({el:s.getElementsByClassName("labelBackgroundColorEnd")[0],size:"mini",alpha:!0,defaultColor:this.labelBackgroundColorEnd,disabled:!1,openPickerAni:"opacity",sure:function(t){w.labelBackgroundColorEnd=t},clear:function(){w.labelBackgroundColorEnd="rgba(255,255,255,1)"}}),d=s.getElementsByTagName("*"),e.EventBinding(this,d),this._elms.color=[r],this._elms.lineColor=[l],this._elms.labelColor=[c],this._elms.labelLineColor=[u],this._elms.labelBackgroundColorStart=[p],this._elms.labelBackgroundColorEnd=[h],m=this._DialogObject._element.content.getElementsByClassName("height-box")[0],f=m.getElementsByClassName("height")[0],v=this._DialogObject._element.content.getElementsByClassName("height-confirm")[0],f.value=10,2==this.heightMode?(m&&(m.className="input-number input-number-unit-1 height-box disabled"),v&&v.setAttribute("disabled","disabled")):(m&&(m.className="input-number input-number-unit-1 height-box"),v&&v.removeAttribute("disabled")),g=[{name:"海拔高度",value:"海拔高度",key:"0"},{name:"相对地表",value:"相对地表",key:"1"},{name:"依附模型",value:"依附模型",key:"2"}],!(y=Y(this._DialogObject._element.content.getElementsByClassName("height-mode-box")[0],".height-mode"))){t.next=56;break}y.legp_search(g),b=this._DialogObject._element.content.getElementsByClassName("height-mode")[0].getElementsByTagName("input")[0],C=0;case 40:if(!(C0&&void 0!==E[0]?E[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!this.options.customView){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=zh({},this.options.position):this.options.positions?l=zh({},this.options.positions[0]):this.options.center?l=zh({},this.options.center):this.options.start?l=zh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=60;break;case 23:c=this.entity.polyline.positions.getValue(),u=[],p=0,h=this.cartesian3Towgs84(c[0],this.sdk.viewer),d=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,0),m=Cesium.Cartesian3.fromDegrees(h.lng,h.lat,1e7),f=Cesium.Cartesian3.subtract(m,d,new Cesium.Cartesian3),v=Cesium.Cartesian3.normalize(f,f),g=new Cesium.Ray(d,v),y={},b=this.sdk.viewer.scene.drillPickFromRay(g),C=0;case 35:if(!(C=500)e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.center.lng=t.lng,e.options.center.lat=t.lat,e.center=e.options.center,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.previous={center:e.deepCopyObj(e.options.center)},e.positionEditing=!1}}))})),this.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(i.positions)}),!1),this.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(i.positions),[i.positions[0],i.positions[1]])}),!1)):(this.previous||(this.previous={center:this.deepCopyObj(this.options.center)}),this.options.center=this.deepCopyObj(this.previous.center),this.label&&this.label.entity&&this.label.entity.billboard&&(this.label.entity.billboard.color=Cesium.Color.fromCssColorString("rgba(255,255,255,1)")),this.picking=!0,this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.destroy()),this.tip&&this.tip.destroy(),this.renewPositions(),this.entity.polygon.hierarchy=new Cesium.PolygonHierarchy(i.positions),this.entity.polyline.positions=[].concat(L()(i.positions),[i.positions[0],i.positions[1]]),this.previous=null)}}},{key:"setDIV",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{domid:"",x:10,y:10};e.x=e.x||0===e.x?e.x:10,e.y=e.y||0===e.y?e.y:10;var i=document.getElementById(e.domid),n=Cesium.Cartesian3.fromDegrees(this.options.center.lng,this.options.center.lat);this.sdk.viewer.scene.postRender.addEventListener((function(o){if("block"===i.style.display||""===i.style.display){var s=t.sdk.viewer.scene.cartesianToCanvasCoordinates(n);s&&(i.style.left=(s.x+e.x).toFixed(0)+"px",i.style.top=(s.y+e.y).toFixed(0)+"px")}}))}},{key:"renewPositions",value:function(t){var e=this;if(!this._error){var i=!1;t||(t=this.options.center);var n=0;switch(this.options.heightMode){case"0":case 0:i=!1;break;case"1":case 1:n=this.sdk.viewer.scene.globe.getHeight(Cesium.Cartographic.fromDegrees(t.lng,t.lat))||0,i=!1;break;case"2":case 2:i=!0}var o=this.calSector(t,this.options.radius,this.options.startAngle,this.options.endAngle,360,!0),s=[];if(i){for(var a=0;a1e3?"半径:"+(p/1e3).toFixed(2)+" 公里":"半径:"+p+" 米"}),!1),font:"20px Microsoft YaHei",disableDepthTestDistance:Number.POSITIVE_INFINITY,scale:1,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,fillColor:Cesium.Color.fromCssColorString("#f5ce0a"),style:Cesium.LabelStyle.FILL_AND_OUTLINE}})),t.nodePoints.push(e)};t.event&&t.event.destroy(),t.event=new X(t.sdk),YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个编辑点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];var l=t.calSector(t.options.center,t.options.radius,t.options.startAngle,t.options.endAngle),c=[],u=zh({},t.options.center),p=t.options.radius,h={angle1:t.options.startAngle,angle2:t.options.endAngle};t.entity.polyline.clampToGround=!0,t.entity.polyline.arcType=Cesium.ArcType.GEODESIC,t.entity.polygon.perPositionHeight=!1,t.entity.polygon.hierarchy=new Cesium.CallbackProperty((function(){return new Cesium.PolygonHierarchy(l)}),!1),t.entity.polyline.positions=new Cesium.CallbackProperty((function(){return[].concat(L()(l),[l[0],l[1]])}),!1);var d=t.entity.polyline.positions.getValue();c=[zh({},t.center),t.cartesian3Towgs84(d[1],t.sdk.viewer),t.cartesian3Towgs84(d[d.length-4],t.sdk.viewer)];var m=L()(t.sdk.viewer.entities.values);t.getClampToHeight({lng:t.options.center.lng,lat:t.options.center.lat},m).then((function(e){t.label.position=[t.options.center.lng,t.options.center.lat,e]})),setTimeout((function(){s(d[1],"sector-start"),s(d[d.length-4],"sector-end"),t.event.mouse_left((function(e,n){if(i)t.options.startAngle=h.angle1,t.options.endAngle=h.angle2,t.options.radius=p,t.event&&t.event.destroy(),t.tip&&t.tip.destroy(),t.tip=null,i=null,YJ.Measure.SetMeasureStatus(!1),t.heightMode=t.heightMode;else{var o=t.sdk.viewer.scene.pick(e.position);if(o&&o.id&&o.id.name&&"node-secondary-edit-point"===o.id.name&&("sector-start"===o.id._type||"sector-end"===o.id._type)){t.tip.set_text("左键确认,右键取消"),i=o.id;for(var s=0;sNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Wh(this,e,[t,n])).source=new Cesium.CustomDataSource(i.options.id),i.detail=[],i}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.source&&(this.source.show=t,this.options.show=t)}},{key:"setDefaultValue",value:function(){var t;this.options.id=this.options.id||Cesium.createGuid(),this.options.url=this.options.url||"",this.options.show=null===(t=this.options.show)||void 0===t||t}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=l.length>0&&void 0!==l[0]?l[0]:3,pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation?(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i,duration:e})):this.source&&this.viewer.flyTo(this.source,{duration:e});case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){var t,i,n,o,s;(t=e,i="remove",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.viewer.dataSources.remove(this.source),this.source=null}},{key:"on",value:(i=o()(a.a.mark((function t(){var e=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.show=this.options.show,t.next=3,Cesium.KmlDataSource.load(this.options.url,{camera:this.viewer.scene.camera,canvas:this.viewer.scene.canvas});case 3:return t.sent.entities.values.forEach((function(t,i){if(e.detail.push({name:t.name,id:t.id}),t.label){var n=1;t.billboard&&(n=t.billboard.scale._value),t.label.pixelOffset=new Cesium.Cartesian2(0,-32*n-15),t.label.horizontalOrigin=Cesium.HorizontalOrigin.CENTER,t.label.disableDepthTestDistance=Number.POSITIVE_INFINITY}if(t.polygon){var o={hierarchy:t.polygon.hierarchy.getValue().positions,material:t.polygon.material,classificationType:Cesium.ClassificationType.BOTH};if(t.polygon.outline.getValue()){var s=t.polygon.hierarchy.getValue().positions,a=new Cesium.Entity({id:e.getOutlineId(t.id),polyline:{positions:s,width:t.polygon.outlineWidth.getValue(),material:t.polygon.outlineColor.getValue(),clampToGround:!0,zIndex:e.sdk._entityZIndex}});e.source.entities.add(a)}t.polygon=o}t.billboard&&(t.billboard.heightReference=Cesium.HeightReference.CLAMP_TO_GROUND),t.polyline&&(t.polyline={positions:t.polyline.positions.getValue(),material:t.polyline.material,clampToGround:!0,width:t.polyline.width?t.polyline.width.getValue():1}),t.show=!0,e.source.entities.add(t)})),t.next=7,this.viewer.dataSources.add(this.source);case 7:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"getOutlineId",value:function(t){return[t,"outline"].join("_")}}]);var i,n}(Wn);function Jh(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var qh=function(t){function e(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Jh(this,e,[t,n])).primitive=void 0,i.positions=[],i.loading=!0,i}return sn()(e,t),_()(e,[{key:"setDefaultValue",value:function(){var t,i,n,o,s;(t=e,i="setDefaultValue",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.options.host=this.options.host||h(),this.options.color=this.options.color||"rgb(239, 6, 6, 1)",this.options.width=this.options.width||1}},{key:"show",get:function(){return this.options.show},set:function(t){if(this.options.show=t,this.entity)for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Kh(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.color=n.color||"rgba(32,67,135,0.5)",i.options.positions=n.positions||[],i.options.frequency=n.frequency||10,i.options.animationSpeed=n.animationSpeed||1,i.options.amplitude=n.amplitude||10,i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.sdk.addIncetance(i.options.id,i),e.create(i),i}return sn()(e,t),_()(e,[{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t,this.entity&&(this.entity.appearance.material.uniforms.baseWaterColor=Cesium.Color.fromCssColorString(t)),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"frequency",get:function(){return this.options.frequency},set:function(t){this.options.frequency=t,this.entity&&(this.entity.appearance.material.uniforms.frequency=10*t),this._elms.frequency&&this._elms.frequency.forEach((function(e){e.value=t}))}},{key:"animationSpeed",get:function(){return this.options.animationSpeed},set:function(t){this.options.animationSpeed=t,this.entity&&(this.entity.appearance.material.uniforms.animationSpeed=.01*t),this._elms.animationSpeed&&this._elms.animationSpeed.forEach((function(e){e.value=t}))}},{key:"amplitude",get:function(){return this.options.amplitude},set:function(t){this.options.amplitude=t,this.entity&&(this.entity.appearance.material.uniforms.amplitude=t),this._elms.amplitude&&this._elms.amplitude.forEach((function(e){e.value=t}))}},{key:"height",get:function(){return this.options.height},set:function(t){this.options.height=t;var e=this.options.positions[0],i=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,t),n=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,this.entity.originalHeight);this.entity.modelMatrix=Cesium.Matrix4.setTranslation(this.entity.modelMatrix,new Cesium.Cartesian3(i.x-n.x,i.y-n.y,i.z-n.z),new Cesium.Matrix4),this._elms.height&&this._elms.height.forEach((function(e){e.value=t}))}},{key:"edit",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s=this,r=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.length>0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=19;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"水面属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" water-surface",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n 水面振幅\n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 动画速度\n
            \n \n \n
            \n
            \n
            \n 水面频率\n
            \n \n \n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("water-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],t.next=19;break;case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.entity&&(this.name=this.originalOptions.name,this.color=this.originalOptions.color,this.frequency=this.originalOptions.frequency,this.animationSpeed=this.originalOptions.animationSpeed,this.amplitude=this.originalOptions.amplitude,this.height=this.originalOptions.height)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=d.length>0&&void 0!==d[0]?d[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Zh({},this.options.position):this.options.positions?l=Zh({},this.options.positions[0]):this.options.center?l=Zh({},this.options.center):this.options.start?l=Zh({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=28;break;case 23:c=Cesium.Rectangle.fromCartesianArray(this.entity.geometryInstances.geometry._polygonHierarchy.positions),u=this.sdk.viewer.camera.getRectangleCameraCoordinates(c),p=this.cartesian3Towgs84(u,this.sdk.viewer),h=Cesium.Cartesian3.fromDegrees(p.lng,p.lat,p.alt+this.height),this.sdk.viewer.camera.flyTo({orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)},destination:h});case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.sdk.viewer.scene.primitives.remove(this.entity),this.entity=null,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=5,this.sdk.removeIncetance(this.options.id);case 5:return t.next=7,Pe(this.sdk,this.options.id);case 7:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"create",value:function(t){for(var e=t.options.positions,i=[],n=e[0].alt,o=0;o1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;k()(this,e),(i=Qh(this,e,[t,n])).model=o,i.options.near=n.near||0===n.near?n.near:2e3,i.options.far=n.far||0===n.far?n.far:1e5,i.options.scaleByDistance=n.scaleByDistance||!1,i.options.show=!n.show&&!1!==n.show||n.show,i.options.text=n.text;for(var s=i.options.text.split("\n"),a=0;a40&&(s[a]=s[a].slice(0,40-s[a].length));return s.length>10&&s.splice(10-s.length),i.options.text=s.join("\n"),i.options.fontFamily=n.fontFamily||0,i.font=Xn(i.options.fontFamily)||"SimHei",i.options.fontSize=n.fontSize||20,i.options.lineColor=n.lineColor||"#00ffff80",i.options.color=n.color||"#ffffff",i.options.ground=!n.ground&&!1!==n.ground||n.ground,i.options.pixelOffset=n.pixelOffset||0===n.pixelOffset?n.pixelOffset:20,i.options.backgroundColor=n.backgroundColor||["#00ffff80","#00ffff80"],i.event=new X(i.sdk),i.entity,i.create(i.options.position),i.picking=!0,i}return sn()(e,t),_()(e,[{key:"create",value:(i=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this,this.options.position[2]||0===this.options.position[2]){t.next=5;break}return t.next=4,this.getClampToHeight({lng:this.options.position[0],lat:this.options.position[1]});case 4:this.options.position[2]=t.sent;case 5:this.originalOptions=ed(this.options),i=this.options.id+"-label",(n=this.sdk.viewer.entities.getById(i))&&this.sdk.viewer.entities.remove(n),this.entity=this.sdk.viewer.entities.add({show:this.options.show,id:this.options.id+"-label",position:new Cesium.CallbackProperty((function(){if(e.model){if(e.model.isMove){var t=e.model.customScale.x;e.model.customScale.y>t&&(t=e.model.customScale.y),e.model.customScale.z>t&&(t=e.model.customScale.z);for(var i=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]+2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),n=Cesium.Cartesian3.fromDegrees(e.options.position[0],e.options.position[1],e.options.position[2]-2*(e.model.originalBoundingSphereRadius||1)*(t||.01)),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),s=Cesium.Cartesian3.normalize(o,o),a=new Cesium.Ray(i,s),r=e.viewer.scene.drillPickFromRay(a,5),l=0;li&&(i=this.model.customScale.y),this.model.customScale.z>i&&(i=this.model.customScale.z);for(var n=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]+2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),o=Cesium.Cartesian3.fromDegrees(this.options.position[0],this.options.position[1],this.options.position[2]-2*(this.model.originalBoundingSphereRadius||1)*(i||.01)),s=Cesium.Cartesian3.subtract(o,n,new Cesium.Cartesian3),a=Cesium.Cartesian3.normalize(s,s),r=new Cesium.Ray(n,a),l=this.viewer.scene.drillPickFromRay(r,5),c=0;c40&&(e[i]=e[i].slice(0,40-e[i].length));e.length>10&&e.splice(10-e.length),this.options.text=e.join("\n")}},{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.entity.label.fillColor=Cesium.Color.fromCssColorString(this.options.color)}},{key:"scaleByDistance",get:function(){return this.options.scaleByDistance},set:function(t){this.options.scaleByDistance=t,this.entity&&(this.options.scaleByDistance?(this.entity.label.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.label.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.label.scaleByDistance=void 0,this.entity.label.pixelOffsetScaleByDistance=void 0))}},{key:"near",get:function(){return this.options.near},set:function(t){var e=t;e>this.far&&(e=this.far),this.options.near=e,this.entity&&(this.options.scaleByDistance?(this.entity.label.scaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0),this.entity.label.pixelOffsetScaleByDistance=new Cesium.NearFarScalar(this.options.near,1,this.options.far,0)):(this.entity.label.scaleByDistance=void 0,this.entity.label.pixelOffsetScaleByDistance=void 0))}},{key:"far",get:function(){return this.options.far},set:function(t){var e=t;e0&&void 0!==arguments[0]?arguments[0]:{},e=null;if("object"==N()(t)&&null!==t)for(var i in e=t instanceof Array?[]:{},t)e[i]=ed(t[i]);else e=t;return e};function id(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return nd(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?nd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function nd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),rd(i=ad(this,e,[t,n]),pd,null),rd(i,hd,!1),rd(i,dd,void 0),rd(i,md,void 0),rd(i,fd,void 0),rd(i,vd,void 0),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.speed<=0&&(i.options.speed=.01),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.model=n.model=n.model||{},i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.height=Number(i.options.height.toFixed(2)),i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.model.show=!n.model.show&&!1!==n.model.show||n.model.show,i.options.model.url=n.model.url||"",i.options.model.pixelSize=n.model.pixelSize||70,i.options.model.heading=n.model.heading||0,i.options.model.pitch=n.model.pitch||0,i.options.model.roll=n.model.roll||0,i.options.model.scale=n.model.scale||0===n.model.scale?n.model.scale:1,i.options.model.animate=n.model.animate||"无",i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.unitFuelConsumption=n.unitFuelConsumption||0,i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i.distance,n.label=n.label||{},i.options.label={text:i.options.name,show:n.label.show||!1,fontSize:n.label.fontSize||0===n.label.fontSize?n.label.fontSize:20,fontFamily:n.label.fontFamily?n.label.fontFamily:0,color:n.label.color||"#ffffff",lineWidth:n.label.lineWidth||0===n.label.lineWidth?n.label.lineWidth:4,pixelOffset:n.label.pixelOffset||0===n.label.pixelOffset?n.label.pixelOffset:20,backgroundColor:n.label.backgroundColor||["#00ffff80","#00ffff80"],lineColor:n.label.lineColor||"#00ffff80",scaleByDistance:n.label.scaleByDistance||!1,near:n.label.near||0===n.label.near?n.label.near:2e3,far:n.label.far||0===n.label.far?n.label.far:1e5},i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.sdk.addIncetance(i.options.id,i),i.ControllerObject=new qo(i.sdk),i._EventBinding=new wn,i.options.viewFollow=!1,i.options.firstPersonView=!1,e.addLine(i),i.firstPersonView=!1),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TrajectoryMotion"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){var e=Ie();if(this.isShowView&&e||(this.options.show=t,this.originalOptions&&(this.originalOptions.show=t)),this.options.show){this.firstPersonView?this.model.show=!1:this.model.show=(!this.showView||3==this.showView||!e)&&this.modelShow,this.showView&&3!=this.showView&&e?this.line.polyline.material=new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20}):this.line.polyline.material=this.lineShow?new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff"),dashLength:20}):new Cesium.PolylineDashMaterialProperty({color:new Cesium.Color.fromCssColorString("#00ffff00"),dashLength:20});for(var i=0;i0)for(var i=0;i=500?(e.keyPointShow=!1,YJ.Measure.SetMeasureStatus(!1),e.event.destroy(),e.tip&&e.tip.destroy(),e.tip=null,e.ControllerObject.destroy()):s(o)}))})),this.line.polyline.positions=new Cesium.CallbackProperty((function(){return i}),!1),this.keyPointShow=t}else this.lineEdit&&(YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip&&this.tip.destroy(),this.tip=null),this.keyPointShow=t,this.ControllerObject.destroy();ld(hd,this,t),this._elms.lineEdit&&this._elms.lineEdit.forEach((function(e){e.checked=t}))}},{key:"routeDirection",get:function(){return this.options.routeDirection},set:function(t){this.options.routeDirection=t,this._elms.routeDirection&&this._elms.routeDirection.forEach((function(e){e.checked=t}))}},{key:"loop",get:function(){return this.options.loop},set:function(t){this.options.loop=t,this.TweenAnimate&&this.TweenAnimate._isPlaying&&(t?this.TweenAnimate.repeat(1/0):this.TweenAnimate.repeat()),this._elms.loop&&this._elms.loop.forEach((function(e){e.checked=t}))}},{key:"firstPersonView",get:function(){return this.options.firstPersonView},set:function(t){var e=this,i=Ie(),n=ae();if((Ie()||n.sdkD||!this.show)&&(t=!1),cancelAnimationFrame(cd(dd,this)),cd(vd,this)&&cd(vd,this).destroy(),this.sdk.viewer._firstPersonView=t,this.options.firstPersonView=t,this.options.firstPersonView){if(this.viewFollow=!0,this.firstPersonHeadingPitch={heading:0,pitch:-10},this.state=!0,this.model&&(this.model.show=!1),this._DialogObject&&this._DialogObject._element.content){var o=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");o[0].className="btn is-active",o[1].className="btn"}this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),Ke(this.sdk,!1);var s,a=ae(),r=(s=this.sdk===a.sdkP?a.sdkD:a.sdkP)?s.entityMap.get(this.options.id):void 0;this.sdk&&ld(vd,this,new X(this.sdk)),cd(vd,this).mouse_right_down((function(t,i){var n=sd({},t.position);cd(vd,e).mouse_move((function(t,i){e.firstPersonHeadingPitch.heading=e.firstPersonHeadingPitch.heading+(t.endPosition.x-n.x)/20,e.firstPersonHeadingPitch.pitch=e.firstPersonHeadingPitch.pitch+(n.y-t.endPosition.y)/10,r&&(r.firstPersonHeadingPitch=sd({},e.firstPersonHeadingPitch)),n=sd({},t.endPosition)}),!0)}),!0),cd(vd,this).mouse_right_up((function(t,i){cd(vd,e).mouse_move((function(){}))}),!0)}else{if(Ke(this.sdk,!0),this.model&&this.modelShow&&this.show){var l=!0;l=!(!this.show||this.showView&&3!=this.showView&&i),this.model.show=l}if(this._DialogObject&&this._DialogObject._element.content){var c=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");c[0]&&c[1]&&(c[0].className="btn",c[1].className="btn is-active")}if(this.viewFollow&&this.show){if(this.sdk.viewer.trackedEntity&&this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),3===this.sdk.viewer.scene.mode){var u=this.sdk.viewer.entities.add({position:this.positions_smooth[0],point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=u}this.viewFollow=this.viewFollow}}se(this.sdk,this.options.id)}},{key:"viewFollow",get:function(){return this.options.viewFollow},set:function(t){ae();var e=Ie();if(this.show||(t=!1),this.options.viewFollow=t,this.options.viewFollow?(this.editObj&&(this.editObj.destroy(),this.editObj=null,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn")),ii(this.sdk),this.lineEdit=!1):this.firstPersonView=!1,this.options.firstPersonView){if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),this._DialogObject&&this._DialogObject._element.content){var i=this._DialogObject._element.content.querySelectorAll("button[name='firstPerson']");i[0]&&i[1]&&(i[0].className="btn",i[1].className="btn is-active")}}else if(this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null),t&&this.show&&this.model){var n=this.sdk.viewer.entities.add({position:this.model.position,point:{color:Cesium.Color.RED.withAlpha(0),pixelSize:0}});this.sdk.viewer.trackedEntity=n}var o=Re();if(o)if(this.sdk!=o){var s=o.entityMap.get(this.options.id);s&&s.viewFollow!=t&&(s.viewFollow=t)}else if(e){var a=e.entityMap.get(this.options.id);a&&a.viewFollow!=t&&(a.viewFollow=t,this.TweenAnimate&&this.TweenAnimate._isPlaying&&a.setMovePositionByDistance(this.TweenAnimate._object.distance))}se(this.sdk,this.options.id),this._elms.viewFollow&&this._elms.viewFollow.forEach((function(e){e.checked=t}))}},{key:"labelShow",get:function(){return this.options.label.show},set:function(t){var e=this;this.options.label.show=t;var i=Ie(),n=t;n=!(!this.show||this.showView&&3!=this.showView&&i)&&t,this.show?this.label&&(this.label.show=n,this.label.pixelOffset=this.options.label.pixelOffset+(this.fuelShow?this.labelFontSize+20:0),this.options.label.position&&setTimeout((function(){e.options.label.position.alt?e.label&&(e.label.position=[e.options.label.position.lng,e.options.label.position.lat,e.options.label.position.alt]):e.getClampToHeight({lng:e.options.label.position.lng,lat:e.options.label.position.lat}).then((function(t){e.label&&(e.label.position=[e.options.label.position.lng,e.options.label.position.lat,t])}))}),0)):this.label&&(this.label.show=!1),this._elms.labelShow&&this._elms.labelShow.forEach((function(e){e.checked=t}))}},{key:"labelFontFamily",get:function(){return this.options.label.fontFamily},set:function(t){this.options.label.fontFamily=t||0,this.label&&(this.label.fontFamily=this.options.label.fontFamily),this.fuelLabel&&(this.fuelLabel.fontFamily=this.options.label.fontFamily);var e=Zn(this.labelFontFamily)||"";this._elms.labelFontFamily&&this._elms.labelFontFamily.forEach((function(t){t.value=e}))}},{key:"labelColor",get:function(){return this.options.label.color},set:function(t){var e=this;this.options.label.color=t,this.label&&(this.label.color=t),this.fuelLabel&&(this.fuelLabel.color=t),this._elms.labelColor&&this._elms.labelColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.labelColor=t},clear:function(){e.labelColor="rgba(255,255,255,1)"}});e._elms.labelColor[i]=n}))}},{key:"labelFontSize",get:function(){return this.options.label.fontSize},set:function(t){this.options.label.fontSize=t,this.label&&(this.label.fontSize=t),this.fuelLabel?(this.fuelLabel.fontSize=t,this.label.pixelOffset=this.options.label.pixelOffset+t+20):this.label.pixelOffset=this.options.label.pixelOffset,this._elms.labelFontSize&&this._elms.labelFontSize.forEach((function(e){e.value=t}))}},{key:"labelScaleByDistance",get:function(){return this.options.label.scaleByDistance},set:function(t){this.options.label.scaleByDistance=t,this.label&&(this.label.scaleByDistance=t),this.fuelLabel&&(this.fuelLabel.scaleByDistance=t),this._elms.labelScaleByDistance&&this._elms.labelScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"labelNear",get:function(){return this.options.label.near},set:function(t){var e=t;e>this.labelFar&&(e=this.labelFar),this.options.label.near=e,this.label&&(this.label.near=e),this.fuelLabel&&(this.fuelLabel.near=e),this._elms.labelNear&&this._elms.labelNear.forEach((function(t){t.value=e}))}},{key:"labelFar",get:function(){return this.options.label.far},set:function(t){var e=t;ee/n.distance)){t.next=71;break}return t.abrupt("break",76);case 71:A=n.spline.evaluate(B/1e3),N.push(A);case 73:B++,t.next=68;break;case 76:N.push(O),n.realTimePositions=N;case 78:if(m=w(n.model.position,u),v&&v.position&&(f=w(v.position,u),m.pitch=f.pitch),v.position=n.model.position,Cesium.HeadingPitchRoll.fromDegrees(n.options.model.heading,n.options.model.pitch,n.options.model.roll),j=0,I=0,R=0,F=Cesium.Transforms.eastNorthUpToFixedFrame(u),!n.options.routeDirection||n.lineEdit){t.next=98;break}if(j=m.heading*(180/Math.PI)-90-n.options.model.heading,I=m.pitch*(180/Math.PI)-n.options.model.pitch,R=n.options.model.roll,z=Re()?Re().entityMap.get(n.options.id):o.sdkP&&o.sdkP.entityMap.get(n.options.id),n.state||z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)&&(j=z.model.heading,I=z.model.pitch,R=z.model.roll),!(isNaN(j)||isNaN(I)||isNaN(R))){t.next=94;break}return t.abrupt("return");case 94:n.state||(z&&(i&&i===n.sdk||o.sdkD&&o.sdkD===n.sdk)?(j=z.model.heading,I=z.model.pitch,R=z.model.roll):(j=n.model.heading||0===n.model.heading?n.model.heading:n.options.model.heading,I=n.model.pitch||0===n.model.pitch?n.model.pitch:n.options.model.pitch,R=n.model.roll||0===n.model.roll?n.model.roll:n.options.model.roll)),n.model.modelMatrix=Cesium.Matrix4.multiplyByMatrix3(F,Cesium.Matrix3.fromHeadingPitchRoll(Cesium.HeadingPitchRoll.fromDegrees(j,I,R)),n.model.modelMatrix),t.next=114;break;case 98:if(!n.entity){t.next=114;break}if(j=n.options.model.heading,I=n.options.model.pitch,R=n.options.model.roll,!(isNaN(j)||isNaN(I)||isNaN(R))){t.next=104;break}return t.abrupt("return");case 104:H=Cesium.Matrix3.fromRotationX(Cesium.Math.toRadians(R)),V=Cesium.Matrix3.fromRotationY(Cesium.Math.toRadians(I)),G=Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(j)),U=Cesium.Matrix4.fromRotationTranslation(H),W=Cesium.Matrix4.fromRotationTranslation(V),Y=Cesium.Matrix4.fromRotationTranslation(G),J=new Cesium.Matrix4,Cesium.Matrix4.multiply(F,U,J),Cesium.Matrix4.multiply(J,W,J),Cesium.Matrix4.multiply(J,Y,n.entity.modelMatrix);case 114:if(n.model.position=u,n.model.roll=R,n.model.pitch=I,n.model.heading=j,u){t.next=120;break}return t.abrupt("return");case 120:q=n.cartesian3Towgs84(u,n.sdk.viewer),n.label.position=[q.lng,q.lat,q.alt],n.fuelLabel.position=[q.lng,q.lat,q.alt],n.realTimeRouteArray.push(u),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:p,orientation:{heading:Cesium.Math.toRadians(j+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}}):3===n.sdk.viewer.scene.mode?n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=u):n.sdk.viewer.trackedEntity&&n.sdk.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(r[0],r[1],n.sdk.viewer.camera.positionCartographic.height),orientation:{heading:Cesium.Math.toRadians(-90),pitch:0,roll:0}}));case 126:case"end":return t.stop()}}),t,null,[[37,44]])})))).apply(this,arguments)},b=function(t){return C.apply(this,arguments)},i=x.length>1&&void 0!==x[1]?x[1]:{time:0},cancelAnimationFrame(cd(dd,this)),n=this,s=i.time||0,r=i.distance,l=this.sdk.viewer,this.model&&this.sdk&&this.sdk.viewer){t.next=11;break}return t.abrupt("return");case 11:for(this.removeModelAnimate(),c=[],u=0;uthis.distance&&(r=this.distance),s=r/this.distance*d):(r=1e-6,s&&(s>d&&(s=d),r=s/d*this.distance)),v={},this.TweenAnimate=new TWEEN.Tween({distance:r}).to({distance:this.distance},1e3*(d-s)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){(s||r)&&k.modelMove(e)})).onUpdate(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(k.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(k.sdk.viewer){t.next=6;break}return k.removeModelAnimate(),t.abrupt("return");case 6:isNaN(e.distance)||b(e.distance);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onEveryStart((function(){k.realTimeRouteArray=[]})).onComplete((function(t){k.state=!1})),this.state?this.TweenAnimate.start():(g=function(){if(ld(md,n,requestAnimationFrame(g)),n.options.firstPersonView){var t=sd({},n.sdk.viewer.camera._position);n.sdk.viewer.camera.setView({destination:t,orientation:{heading:Cesium.Math.toRadians(n.model.heading+90+n.firstPersonHeadingPitch.heading),pitch:Cesium.Math.toRadians(n.firstPersonHeadingPitch.pitch),roll:0}})}},b(r),setTimeout((function(){n.model.isMove=!1}),1e3),g());case 24:case"end":return t.stop()}}),t,this)}))),function(t){return h.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(t){var e=this.renewLinePositions(this.options.line.positions);this.modelMove(e,{distance:t})}},{key:"setMovePositionByTime",value:function(t){var e=this.renewLinePositions(this.options.line.positions);this.modelMove(e,{time:t})}},{key:"edit",value:(p=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._error){t.next=2;break}return t.abrupt("return");case 2:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=45;break}return t.next=8,new rn(this.sdk,this.options,{title:"轨迹运动属性",left:"180px",top:"100px",confirmCallBack:function(t){p.name=p.name.trim(),p.name||(p.name="未命名对象"),p.originalOptions=p.deepCopyObj(p.options),p._DialogObject.close();var e=p.deepCopyObj(p.options);e.host="",p.Dialog.confirmCallBack&&p.Dialog.confirmCallBack(e),Pe(p.sdk,p.options.id),se(p.sdk,p.options.id)},removeCallBack:function(){p.sdk.viewer.trackedEntity&&(p.sdk.viewer.entities.remove(p.sdk.viewer.trackedEntity),p.sdk.viewer.trackedEntity=null),p.Dialog.removeCallBack&&p.Dialog.removeCallBack()},closeCallBack:function(){p._DialogObject=null,p.reset(),p.Dialog.closeCallBack&&p.Dialog.closeCallBack(),p.editObj&&(p.editObj.destroy(),p.editObj=null),p.keyPointShow=!1,p.event&&p.event.destroy(),p.tip&&p.tip.destroy(),p.tip=null,p.ControllerObject.destroy(),p.firstPersonView!==p.originalOptions.firstPersonView&&(p.firstPersonView=p.originalOptions.firstPersonView),p.firstPersonView&&p.modelShow&&p.model&&(p.model.show=!1)},showCallBack:function(t){p.show=t,p.Dialog.showCallBack&&p.Dialog.showCallBack()}});case 8:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" trajectory-motion",(i=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 起始点高度\n
            \n \n m\n \n
            \n
            \n
            \n 模型倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 运行速度\n
            \n \n m/s\n \n
            \n
            \n
            \n 延迟运动\n
            \n \n ms\n \n
            \n
            \n
            \n
            \n
            \n 更换模型\n \n
            \n
            \n 模型方向\n \n \n
            \n
            \n
            \n \n
            \n
            \n
            \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            \n 路径显隐\n \n
            \n
            \n 模型显隐\n \n
            \n
            \n 实时路径\n \n
            \n
            \n
            \n
            \n 编辑\n \n
            \n
            \n 路径圆滑\n \n
            \n
            \n 环线\n \n
            \n
            \n
            \n
            \n 轨迹贴地\n \n
            \n
            \n 轨迹循环\n \n
            \n
            \n 轨迹动画\n \n
            \n
            \n
            \n
            \n 路径方向\n \n
            \n
            \n 视角跟随\n \n
            \n
            \n 模型动画\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 文字开关\n \n
            \n
            \n
            \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 油耗\n
            \n \n L/100km\n \n
            \n
            \n
            \n 总油耗\n \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(i),this.editObj?(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="结束调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn is-active"):(this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].innerHTML="开始调整",this._DialogObject._element.content.getElementsByClassName("model-rotate-btn")[0].className="btn model-rotate-btn"),n=new YJColorPicker({el:i.getElementsByClassName("labelColor")[0],size:"mini",alpha:!0,defaultColor:this.labelColor,disabled:!1,openPickerAni:"opacity",sure:function(t){p.labelColor=t},clear:function(){p.labelColor=""}}),o=this._DialogObject._element.content.getElementsByClassName("height-box")[0],s=i.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.heightBox=o,this._elms.labelColor=[n],this.model&&(r=function(){var t=p.model.loader.components.animations;if(p._DialogObject){if(t){for(var e=[{name:"无",value:"无"}],n=0;n=107?this.model.ready?r():this.model.readyEvent.addEventListener((function(){r()})):this.model.readyPromise.then((function(t){r()}))),this.ground?this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box disabled"):this._elms.heightBox&&(this._elms.heightBox.className="input-number input-number-unit-1 height-box"),(l=i.querySelectorAll("button[name='firstPerson']"))[0].addEventListener("click",(function(t){var e=ae();Ie()||e.sdkD||(p.firstPersonView||(p.viewFollow=!0),p.firstPersonView=!0)})),l[1].addEventListener("click",(function(t){p.firstPersonView&&(p.viewFollow=!0),p.firstPersonView=!1})),this.options.firstPersonView?(l[0].className="btn is-active",l[1].className="btn",this.sdk.viewer.trackedEntity&&(this.sdk.viewer.entities.remove(this.sdk.viewer.trackedEntity),this.sdk.viewer.trackedEntity=null)):(l[0].className="btn",l[1].className="btn is-active"),(c=document.createElement("div")).className="custom-rubric-box",c.style.transformOrigin="center bottom",c.style.position="absolute",c.style.top="180px",c.style.right="3px",c.style.padding="5px 10px",c.style.backgroundColor="#3e4249",c.style.borderRadius="5px",c.style.fontSize="12px",c.style.color="#ff5733",c.style.display="none",c.innerHTML='场景正东方向为轨迹前进正方向
            ',(u=i.getElementsByClassName("icon-rubric")[0]).addEventListener("mouseenter",(function(t){c.style.display="block"})),document.addEventListener("mousemove",(function(t){u.contains(t.target)||(c.style.display="none")})),this._DialogObject._element.content.appendChild(c),setTimeout((function(){var t=qn(),e=Y(p._DialogObject._element.content.getElementsByClassName("font-select-box")[0],".font-select");if(e){e.legp_search(t);var i=p._DialogObject._element.content.getElementsByClassName("font-select")[0].getElementsByTagName("input")[0];i.value=t[p.labelFontFamily].value;for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};pi(0),ii(this.sdk),this.options.customView?this.sdk.viewer.camera.flyTo({destination:this.options.customView.position,orientation:this.options.customView.orientation}):this.line&&this.sdk.viewer.flyTo(this.line,{offset:t.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}})}},{key:"remove",value:(u=o()(a.a.mark((function t(){var e,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.scene.primitives.remove(this.model),this.sdk.viewer.entities.remove(this.line),this.sdk.viewer.entities.remove(this.realTimeLine),this.label&&this.label.remove(),this.fuelLabel&&this.fuelLabel.remove(),e=0;e=107)){t.next=15;break}return t.next=9,Cesium.Model.fromGltfAsync(o);case 9:this.model=t.sent,this.model.position=n,this.sdk.viewer.scene.primitives.add(this.model),this.model.readyEvent.addEventListener((function(){s(),r.model.modelMatrix=i})),t.next=18;break;case 15:this.model=this.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),this.model.position=n,this.model.readyPromise.then((function(t){s(),r.model.modelMatrix=i}));case 18:this.model.imageBasedLighting.luminanceAtZenith=.6;case 19:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"controllerCallBack",get:function(){return function(t){}},set:function(t){this._controllerCallBack=t}},{key:"renewLinePositions",value:function(t){var e=t;this.noseToTail&&(e=[].concat(L()(t),[t[0]]));for(var i=[],n=[],o=[],s=0;s=107)){t.next=11;break}return t.next=5,Cesium.Model.fromGltfAsync(o);case 5:i.model=t.sent,i.model.originalBoundingSphereRadius=0,i.sdk.viewer.scene.primitives.add(i.model),i.model.readyEvent.addEventListener((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate})),t.next=14;break;case 11:i.model=i.sdk.viewer.scene.primitives.add(Cesium.Model.fromGltf(o)),i.model.originalBoundingSphereRadius=0,i.model.readyPromise.then((function(){i.model.originalBoundingSphereRadius=i.model.boundingSphere.radius,i.modelAnimate=i.options.model.animate}));case 14:for(i.model.imageBasedLighting.luminanceAtZenith=.6,s=Cesium.Transforms.eastNorthUpToFixedFrame(i.positions_smooth[0]),i.model.modelMatrix=s,i.model.position=i.positions_smooth[0],i.model.customScale={x:i.options.model.scale,y:i.options.model.scale,z:i.options.model.scale},r=i.options.line.positions,l=[],c=0;c=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function bd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),xd(i=kd(this,e,[t,n]),Sd,!1),i.options.name=n.name||"",i.options.show=!n.show&&!1!==n.show||n.show,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.totalTime=n.totalTime,(n.totalTime||0===n.totalTime)&&(i.totalTime=n.totalTime),i.options.delay=n.delay||0,i.options.loop=!n.loop&&!1!==n.loop||n.loop,i.options.line=n.line=n.line||{},i.options.line.positions=n.line.positions||[],i.options.height=n.height||0===n.height?n.height:i.options.line.positions[0]?i.options.line.positions[0].alt:0,i.options.line.show=!n.line.show&&!1!==n.line.show||n.line.show,i.options.line.smooth=!!n.line.smooth&&n.line.smooth,i.options.line.noseToTail=!!n.line.noseToTail&&n.line.noseToTail,i.positions_smooth=[],i.options.ground=n.ground||!1,i.options.state=!n.state&&!1!==n.state||n.state,i.options.routeDirection=!n.routeDirection&&!1!==n.routeDirection||n.routeDirection,i.keyPoints=[],i.realTimePositions=[],i._elms={},i.Dialog=o,i.realTimeRouteArray=[],i._current={heading:0,pitch:0,roll:0},i.distance,i.options.line.positions.length<2?(i._error="最少需要两个坐标!",console.warn(i._error),window.ELEMENT&&window.ELEMENT.Message({message:i._error,type:"warning",duration:1500})):(i.ControllerObject=new qo(i.sdk),i._EventBinding=new wn,e.addLine(i),i.firstPersonView=!1,i.options.viewFollow=!1),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TrajectoryMotionObject"}},{key:"show",get:function(){return this.options.show},set:function(t){if("boolean"==typeof t){if(this.options.show=t,t){this.line.show=this.lineShow;for(var e=0;ee/n.distance)){t.next=47;break}return t.abrupt("break",52);case 47:D=n.spline.evaluate(E/100),_.push(D);case 49:E++,t.next=44;break;case 52:_.push(k),n.realTimePositions=_;case 54:if(m=S(n.current.position,c),v&&v.position&&(f=S(v.position,c),m.pitch=f.pitch),v.position=n.current.position,P=Cesium.HeadingPitchRoll.fromDegrees(n.current.heading,n.current.pitch,n.current.roll),M=0,O=0,T=0,n.options.routeDirection?(M=(m.heading-P.heading)*(180/Math.PI)-90+n.current.heading,O=m.pitch*(180/Math.PI)):(M=n.current.heading,O=n.current.pitch),T=n.current.roll,!(isNaN(M)||isNaN(O)||isNaN(T))){t.next=65;break}return t.abrupt("return");case 65:(M<0||M>180)&&(O=-O),n.current={position:c,heading:M,pitch:O,roll:T},x&&(x=!1,n._first={position:c,heading:M,pitch:O,roll:T}),n.realTimeRouteArray.push(c),n.viewFollow&&(n.options.firstPersonView?n.sdk.viewer.camera.setView({destination:u,orientation:{heading:n.sdk.viewer.camera.heading,pitch:n.sdk.viewer.camera.pitch,roll:n.sdk.viewer.camera.roll}}):n.sdk.viewer.trackedEntity&&(n.sdk.viewer.trackedEntity.position=c));case 71:case"end":return t.stop()}}),t,null,[[19,26]])})))).apply(this,arguments)},_=function(t){return E.apply(this,arguments)},i=P.length>1&&void 0!==P[1]?P[1]:{time:0},n=this,s=i.time||0,r=i.distance||0,l=this.sdk.viewer,this.removeModelAnimate(),c=[],u=0;ud&&(s=d),r=s/d*this.distance),v={},g=[],b=yd(this.sdk.entityMap);try{for(b.s();!(C=b.n()).done;)(w=y()(C.value,2))[0],(k=w[1]).type&&"glb"===k.type&&g.push(k.entity)}catch(t){b.e(t)}finally{b.f()}x=!0,this.TweenAnimate=new TWEEN.Tween({distance:r}).to({distance:this.distance},1e3*(d-s)).delay(this.delay).easing(TWEEN.Easing.Linear.None).repeat(this.options.loop?1/0:0).onRepeat((function(){s&&D.modelMove(e)})).onUpdate(function(){var t=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(D.TweenAnimate._duration!=1/0){t.next=2;break}return t.abrupt("return");case 2:if(D.sdk.viewer){t.next=6;break}return D.removeModelAnimate(),t.abrupt("return");case 6:_(e.distance);case 7:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()).onEveryStart((function(){D.realTimeRouteArray=[]})).onComplete((function(t){D.state=!1,D.removeModelAnimate()})),this.state?this.TweenAnimate.start():_(r);case 26:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"setMovePositionByDistance",value:function(t){var e=this._renewLine(this.options.line.positions);this.modelMove(e,{distance:t})}},{key:"setMovePositionByTime",value:function(t){var e=this._renewLine(this.options.line.positions);this.modelMove(e,{time:t}),this.state||this.modelMove(e,{time:t+.01})}},{key:"pause",value:function(){this.state=!1}},{key:"resume",value:function(){this.state=!0}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=c.length>0&&void 0!==c[0]?c[0]:{},pi(0),ii(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=22;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},(l=wd({},this.options.line.positions[0])).hasOwnProperty("alt")){t.next=15;break}return t.next=14,this.getClampToHeight(l);case 14:l.alt=t.sent;case 15:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=23;break;case 22:this.line&&this.sdk.viewer.flyTo(this.line,{offset:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 23:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:function(){this.event&&this.event.destroy(),this.tip&&this.tip.destroy(),this.sdk.viewer.entities.remove(this.line),this.line=null,this.removeModelAnimate()}},{key:"reset",value:function(){this.modelMove(this.line.polyline.positions._value),this.state=!1,this.current=this._first}},{key:"removeModelAnimate",value:function(){this.TweenAnimate&&(clearTimeout(this.TweenAnimate.timeout),TWEEN.remove(this.TweenAnimate),this.TweenAnimate=null)}},{key:"_renewLine",value:function(t){this.options.line.positions=t;var e=t;this.noseToTail&&(e=[].concat(L()(t),[t[0]]));for(var i=[],n=[],o=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=Pd(this,e,[t,n])).options.width=n.width||1,i.options.color=n.color||"#ff0000",i._elms={},i._EventBinding=new wn,e.edit(i,!0),i}return sn()(e,t),_()(e,[{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color&&(this.options.color=t,this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o})))}},{key:"width",get:function(){return this.options.width},set:function(t){this.options.width=t,this._elms.width&&this._elms.width.forEach((function(e){e.value=t}))}},{key:"start",value:function(){var t,i,n,o,s,a=this;if(YJ.Measure.GetMeasureStatus())console.log("上一次测量未结束");else{this.sdk.viewer;Ke(this.sdk,!1),(t=e,i="start",n=this,o=3,s=ba()(nn()(1&o?t.prototype:t),i,n),2&o&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),YJ.Measure.SetMeasureStatus(!0),this.tip=new Z("长按左键,拖动鼠标进行涂鸦,右键结束涂鸦",this.sdk),this.event=new X(this.sdk),this.positions=[],this.points_ids=[];var r=[],l=[];this.event.mouse_left_down((function(t,e){l=[];var i=a.sdk.viewer.entities.add({name:"涂鸦",polyline:{positions:new Cesium.CallbackProperty((function(){return l}),!1),width:a.width,clampToGround:!0,material:Cesium.Color.fromCssColorString(a.color),zIndex:99999999}});r.push(i),a.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y),l.push(e)}))})),this.event.mouse_left_up((function(t,e){r[r.length-1].polyline.positions=l,a.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y)}))})),this.event.mouse_move((function(t,e){a.tip.setPosition(e,t.endPosition.x,t.endPosition.y)})),this.event.mouse_right((function(t,e){a.end()})),this.event.gesture_pinck_start((function(t,e){var i=new Date;a.event.gesture_pinck_end((function(){new Date-i>=500&&a.end()}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event&&this.event.destroy(),this.event=void 0,this.tip&&this.tip.destroy(),this.tip=void 0,Ke(this.sdk,!0)}},{key:"remove",value:function(){this.end(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);for(var t=this.sdk.viewer.entities.values,e=t.length-1;e>=0;e--)"涂鸦"===t[e].name&&this.sdk.viewer.entities.remove(t[e])}},{key:"flicker",value:function(){}}],[{key:"edit",value:(i=o()(a.a.mark((function t(i,n){var o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=22;break}return t.next=3,new W(i.sdk.viewer._container,{title:"涂鸦参数"});case 3:return i._DialogObject=t.sent,t.next=6,i._DialogObject.init();case 6:(o=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 涂鸦颜色\n
            \n
            \n
            \n 线条宽度\n
            \n \n px\n \n
            \n
            \n
            \n
            \n ',i._DialogObject.contentAppChild(o),s=new YJColorPicker({el:o.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:i.color,disabled:!1,openPickerAni:"opacity",sure:function(t){i.color=t},clear:function(){i.color="rgba(255,255,255,1)"}}),i._DialogObject._element.body.className=i._DialogObject._element.body.className+" graffiti",r=o.getElementsByTagName("*"),i._EventBinding.on(i,r),i._elms=i._EventBinding.element,i._elms.color=[s],(l=document.createElement("button")).className="confirm",l.innerHTML="确认",i._DialogObject.footAppChild(l),l.addEventListener("click",(function(){i.start(),e.edit(i,!1)})),t.next=23;break;case 22:i._DialogObject&&i._DialogObject.close&&(i._DialogObject.close(),i._DialogObject=null);case 23:case"end":return t.stop()}}),t)}))),function(t,e){return i.apply(this,arguments)})}]);var i}(wa),Od=i(14),Td=i.n(Od);function Nd(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Bd(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Bd(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Bd(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=jd(this,e,[t,n])).options.name=n.name||"未命名对象",i.options.show=!n.show&&!1!==n.show||n.show,i.options.url=n.url,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.position=n.position,i.options.offset=n.offset||{x:.5,y:1},i.options.mode=i.options.mode?1:0,i.options.billboard=n.billboard||{},i.options.billboard.scale=i.options.billboard.scale||1,i.options.billboard.near=i.options.billboard.near||0===i.options.billboard.near?i.options.billboard.near:2e3,i.options.billboard.far=i.options.billboard.far||0===i.options.billboard.far?i.options.billboard.far:1e5,i.options.billboard.scaleByDistance=!!i.options.billboard.scaleByDistance,n.label=n.label||{},i.options.label=n.label||{},i.options.label.text=n.label.text||i.options.name,i.options.name=i.options.label.text,i.options.label.show=!n.label.show&&!1!==n.label.show||n.label.show,i.options.label.fontFamily=n.label.fontFamily||0,i.options.label.fontSize=n.label.fontSize||39,i.options.label.color=n.label.color||"#00ffff",i.options.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.heightMode=n.heightMode||0==n.heightMode?n.heightMode:3,i.entity={id:i.options.id},i._positionEditing=!1,i.Dialog=o,i._elms={},i._proj=i.sdk.proj,i.previous={position:Ad({},i.options.position)},i._EventBinding=new wn,i.event=new X(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return sn()(e,t),_()(e,[{key:"name",get:function(){return this.options.name},set:function(t){var i,n,o,s,a,r;i=e,n="name",o=t,s=this,a=1,r=1,Td()(nn()(r?i.prototype:i),n,o,s,a),this.options.label.text=this.options.name,this.entity&&(this.entity.label.text=this.options.label.text)}},{key:"mode",get:function(){return this.options.mode},set:function(t){var e=this;this.options.mode=t?1:0;for(var i=[{name:"贴地",value:"贴地",key:0},{name:"立体",value:"立体",key:1}],n=function(t){if(i[t].key===e.options.mode)return e._elms.mode&&e._elms.mode.forEach((function(e){e.value=i[t].value})),1},o=0;o99&&(e=99),e<.1&&(e=.1),this.options.billboard.scale=e,this.renewPoint(),this._elms.billboardScale&&this._elms.billboardScale.forEach((function(e){e.value=t}))}},{key:"billboardScaleByDistance",get:function(){return this.options.billboard.scaleByDistance},set:function(t){this.options.billboard.scaleByDistance=t,this.renewPoint(),this._elms.billboardScaleByDistance&&this._elms.billboardScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"billboardNear",get:function(){return this.options.billboard.near},set:function(t){var e=t;e>this.billboardFar&&(e=this.billboardFar),this.options.billboard.near=e,this.renewPoint(),this._elms.billboardNear&&this._elms.billboardNear.forEach((function(t){t.value=e}))}},{key:"billboardFar",get:function(){return this.options.billboard.far},set:function(t){var e=t;e1&&(s.x=1),s.y<0&&(s.y=0),s.y>1&&(s.y=1),u={x:s.x,y:s.y},c.style.top="calc(".concat(100*u.y,"% - 5px)"),c.style.left="calc(".concat(100*u.x,"% - 5px)")}else e(i.offsetParent)}(t.target)},s=function(){r&&r._element.body.removeEventListener("mousemove",n)},t.next=8,new rn(this.sdk,this.originalOptions,{title:"军标属性",left:"180px",top:"100px",confirmCallBack:function(t){w.name=w.name.trim(),w.name||(w.name="未命名对象"),w.originalOptions=w.deepCopyObj(w.options),w._DialogObject.close(),w.Dialog.confirmCallBack&&w.Dialog.confirmCallBack(w.originalOptions)},resetCallBack:function(){w.reset(),w.Dialog.resetCallBack&&w.Dialog.resetCallBack()},removeCallBack:function(){w.Dialog.removeCallBack&&w.Dialog.removeCallBack()},closeCallBack:function(){w.previous=null,w.reset(),r&&r.close&&r.close(),w.Dialog.closeCallBack&&w.Dialog.closeCallBack(),YJ.Measure.SetMeasureStatus(!1),w.positionEditing=!1},showCallBack:function(t){w.show=t,w.Dialog.showCallBack&&w.Dialog.showCallBack()},translationalCallBack:function(){w.positionEditing=!w.positionEditing},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"Y轴翻转",event:["click",function(){w.flipeY=!w.flipeY}]},{tagName:"button",className:"flipe-over-x",innerHTML:"X轴翻转",event:["click",function(){w.flipeX=!w.flipeX}]}]},!0);case 8:for(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-image",(p=document.createElement("div")).innerHTML='\n \n
            \n
            \n
            \n 名称\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n \n
            \n
            \n 军标模式\n
            \n
            \n
            \n
            \n
            \n 旋转角度\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n 调整大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n 高度模式\n
            \n
            \n
            \n
            \n 高度\n
            \n \n m\n \n
            \n
            \n
            \n
            \n 图标倍数\n
            \n \n \n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n

            文字设置

            \n
            \n
            \n 显隐\n \n
            \n
            \n 字体选择\n
            \n
            \n
            \n 文字大小\n
            \n \n px\n \n
            \n
            \n
            \n 文字颜色\n
            \n
            \n
            \n
            \n \n ',this._DialogObject.contentAppChild(p),h=p.getElementsByTagName("*"),this._EventBinding.on(this,h),this._elms=this._EventBinding.element,p.getElementsByClassName("anchor")[0].addEventListener("click",o()(a.a.mark((function t(){var e,o,p,h;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r&&r.close&&r.close(),document.body.addEventListener("mouseup",s),e=i._DialogObject._element.body.getBoundingClientRect(),t.next=5,new rn(w.sdk,w.originalOptions,{title:"锚点设置",left:e.left+80+"px",top:e.top+200+"px",confirmCallBack:function(t){i.offset={x:u.x,y:u.y},o.close()},closeCallBack:function(){document.body.removeEventListener("mouseup",s)}},!1);case 5:o=t.sent,r=o,o._element.body.className=o._element.body.className+" anchor-point",p=document.createElement("div"),(h=new Image).src=w.replaceHost(w.options.url,w.options.host),h.onload=function(){var t=150/(h.width/h.height),e=(l=document.createElement("canvas")).getContext("2d",{willReadFrequently:!0});l.width=150,l.height=t,l.style.display="block",e.drawImage(h,0,0,150,t),p.appendChild(l),o.contentAppChild(p),(c=document.createElement("span")).className="point",p.appendChild(c),u={x:i.offset.x,y:i.offset.y},c.style.top="calc(".concat(100*Number(u.y),"% - 6px)"),c.style.left="calc(".concat(100*Number(u.x),"% - 6px)"),l.addEventListener("click",(function(t){var e=t.offsetX,i=t.offsetY,n={x:Number((e/l.width).toFixed(2)),y:Number((i/l.height).toFixed(2))};n.x<0&&(n.x=0),n.x>1&&(n.x=1),n.y<0&&(n.y=0),n.y>1&&(n.y=1),u={x:n.x,y:n.y},c.style.top="calc(".concat(100*u.y,"% - 5px)"),c.style.left="calc(".concat(100*u.x,"% - 5px)")})),c.addEventListener("mousedown",(function(t){o._element.body.addEventListener("mousemove",n)}))};case 12:case"end":return t.stop()}}),t)})))),d=p.getElementsByClassName("row"),m=p.getElementsByTagName("h4"),f=0;f=500)e.options.position.lng=e.previous.position.lng,e.options.position.lat=e.previous.position.lat,e.options.position.alt=e.previous.position.alt,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.options.position.lng=t.lng,e.options.position.lat=t.lat,e.options.position.alt=t.alt,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy(),this.previous||(this.previous={position:Ad({},this.options.position)}),this.position=Ad({},this.previous.position)))}},{key:"flyTo",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b,C,w,k,x,_,E,S,D=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=D.length>0&&void 0!==D[0]?D[0]:{},pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=23;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=Ad({},this.options.position):this.options.position?l=Ad({},this.options.position[0]):this.options.center?l=Ad({},this.options.center):this.options.start?l=Ad({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=16;break}return t.next=15,this.getClampToHeight(l);case 15:l.alt=t.sent;case 16:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=59;break;case 23:c=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),u=[[this.options.position.lng-1e-4*this.options.scale,this.options.position.lat-c],[this.options.position.lng+1e-4*this.options.scale,this.options.position.lat+c]],p=[],h=0,d=this.options.position,m=Cesium.Cartesian3.fromDegrees(d.lng,d.lat,0),f=Cesium.Cartesian3.fromDegrees(d.lng,d.lat,1e7),v=Cesium.Cartesian3.subtract(f,m,new Cesium.Cartesian3),g=Cesium.Cartesian3.normalize(v,v),y=new Cesium.Ray(m,g),b={},C=this.sdk.viewer.scene.drillPickFromRay(y),w=0;case 36:if(!(w=0)){t.next=22;break}if(!v[g].position){t.next=19;break}return f=v[g],t.abrupt("break",22);case 19:g--,t.next=15;break;case 22:return f&&f.position&&(i=this.cartesian3Towgs84(f.position,this.sdk.viewer).alt),t.prev=23,t.next=26,Cesium.sampleTerrainMostDetailed(this.sdk.viewer.terrainProvider,[Cesium.Cartographic.fromDegrees(this.options.position.lng,this.options.position.lat)]);case 26:b=t.sent,t.next=31;break;case 29:t.prev=29,t.t0=t.catch(23);case 31:if((void 0===i||i\n
            \n
            \n
            \n 名称\n \n
            \n
            \n 颜色\n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 旋转角度\n \n
            \n \n °\n \n
            \n
            \n
            \n
            \n
            \n X 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n
            \n Y 轴大小\n \n
            \n \n \n
            \n
            \n
            \n
            \n \n
            \n
            \n
            \n 文字内容\n \n
            \n
            \n
            \n
            \n
            \n
            \n 文字开关\n \n
            \n
            \n 字体颜色\n
            \n
            \n
            \n 字体大小\n
            \n \n px\n \n
            \n
            \n
            \n
            \n
            \n 视野缩放\n \n
            \n
            \n 最近距离\n
            \n \n m\n \n
            \n
            \n
            \n 最远距离\n
            \n \n m\n \n
            \n
            \n
            \n
            \n \n
            \n
            \n '.concat(Ln(t),"\n
            \n
            \n ")}var Fd=i(21),zd=i.n(Fd),Hd=i(12),Vd=i.n(Hd);function Gd(t,e,i,n){var o=ba()(nn()(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}function Ud(t,e,i){return e=nn()(e),tn()(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return function(){return!!t}()} /** * @license * Copyright 2010-2024 Three.js Authors * SPDX-License-Identifier: MIT - */()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Wd=1014,Yd=1020,Jd=2400,qd=2401,Xd="srgb",Zd="srgb-linear",Kd="display-p3",$d="display-p3-linear",Qd="linear",tm="srgb",em="rec709",im=7680,nm=35044,om=2e3,sm=2001,am=function(){return _()((function t(){k()(this,t)}),[{key:"addEventListener",value:function(t,e){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)}},{key:"hasEventListener",value:function(t,e){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)}},{key:"removeEventListener",value:function(t,e){if(void 0!==this._listeners){var i=this._listeners[t];if(void 0!==i){var n=i.indexOf(e);-1!==n&&i.splice(n,1)}}}},{key:"dispatchEvent",value:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var i=e.slice(0),n=0,o=i.length;n>8&255]+rm[t>>16&255]+rm[t>>24&255]+"-"+rm[255&e]+rm[e>>8&255]+"-"+rm[e>>16&15|64]+rm[e>>24&255]+"-"+rm[63&i|128]+rm[i>>8&255]+"-"+rm[i>>16&255]+rm[i>>24&255]+rm[255&n]+rm[n>>8&255]+rm[n>>16&255]+rm[n>>24&255]).toLowerCase()}function um(t,e,i){return Math.max(e,Math.min(i,t))}function pm(t,e){return(t%e+e)%e}function hm(t,e,i){return(1-i)*t+i*e}function dm(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function mm(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}var fm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,t),t.prototype.isVector2=!0,this.x=e,this.y=i}),[{key:"width",get:function(){return this.x},set:function(t){this.x=t}},{key:"height",get:function(){return this.y},set:function(t){this.y=t}},{key:"set",value:function(t,e){return this.x=t,this.y=e,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this}},{key:"divide",value:function(t){return this.x/=t.x,this.y/=t.y,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"applyMatrix3",value:function(t){var e=this.x,i=this.y,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this}},{key:"min",value:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}},{key:"max",value:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}},{key:"clamp",value:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}},{key:"clampScalar",value:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}},{key:"clampLength",value:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y}},{key:"cross",value:function(t){return this.x*t.y-this.y*t.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){return Math.atan2(-this.y,-this.x)+Math.PI}},{key:"angleTo",value:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;var i=this.dot(t)/e;return Math.acos(um(i,-1,1))}},{key:"distanceTo",value:function(t){return Math.sqrt(this.distanceToSquared(t))}},{key:"distanceToSquared",value:function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i}},{key:"manhattanDistanceTo",value:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}},{key:"setLength",value:function(t){return this.normalize().multiplyScalar(t)}},{key:"lerp",value:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}},{key:"lerpVectors",value:function(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}},{key:"equals",value:function(t){return t.x===this.x&&t.y===this.y}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}},{key:"rotateAround",value:function(t,e){var i=Math.cos(e),n=Math.sin(e),o=this.x-t.x,s=this.y-t.y;return this.x=o*i-s*n+t.x,this.y=o*n+s*i+t.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:case"end":return t.stop()}}),t,this)}))}])}(),vm=function(){return _()((function t(e,i,n,o,s,a,r,l,c){k()(this,t),t.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,i,n,o,s,a,r,l,c)}),[{key:"set",value:function(t,e,i,n,o,s,a,r,l){var c=this.elements;return c[0]=t,c[1]=n,c[2]=a,c[3]=e,c[4]=o,c[5]=r,c[6]=i,c[7]=s,c[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(t){var e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}},{key:"extractBasis",value:function(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}},{key:"multiply",value:function(t){return this.multiplyMatrices(this,t)}},{key:"premultiply",value:function(t){return this.multiplyMatrices(t,this)}},{key:"multiplyMatrices",value:function(t,e){var i=t.elements,n=e.elements,o=this.elements,s=i[0],a=i[3],r=i[6],l=i[1],c=i[4],u=i[7],p=i[2],h=i[5],d=i[8],m=n[0],f=n[3],v=n[6],g=n[1],y=n[4],b=n[7],C=n[2],w=n[5],k=n[8];return o[0]=s*m+a*g+r*C,o[3]=s*f+a*y+r*w,o[6]=s*v+a*b+r*k,o[1]=l*m+c*g+u*C,o[4]=l*f+c*y+u*w,o[7]=l*v+c*b+u*k,o[2]=p*m+h*g+d*C,o[5]=p*f+h*y+d*w,o[8]=p*v+h*b+d*k,this}},{key:"multiplyScalar",value:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}},{key:"determinant",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-i*o*c+i*a*r+n*o*l-n*s*r}},{key:"invert",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8],u=c*s-a*l,p=a*r-c*o,h=l*o-s*r,d=e*u+i*p+n*h;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);var m=1/d;return t[0]=u*m,t[1]=(n*l-c*i)*m,t[2]=(a*i-n*s)*m,t[3]=p*m,t[4]=(c*e-n*r)*m,t[5]=(n*o-a*e)*m,t[6]=h*m,t[7]=(i*r-l*e)*m,t[8]=(s*e-i*o)*m,this}},{key:"transpose",value:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}},{key:"getNormalMatrix",value:function(t){return this.setFromMatrix4(t).invert().transpose()}},{key:"transposeIntoArray",value:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}},{key:"setUvTransform",value:function(t,e,i,n,o,s,a){var r=Math.cos(o),l=Math.sin(o);return this.set(i*r,i*l,-i*(r*s+l*a)+s+t,-n*l,n*r,-n*(-l*s+r*a)+a+e,0,0,1),this}},{key:"scale",value:function(t,e){return this.premultiply(gm.makeScale(t,e)),this}},{key:"rotate",value:function(t){return this.premultiply(gm.makeRotation(-t)),this}},{key:"translate",value:function(t,e){return this.premultiply(gm.makeTranslation(t,e)),this}},{key:"makeTranslation",value:function(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}},{key:"makeRotation",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,i,e,0,0,0,1),this}},{key:"makeScale",value:function(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}},{key:"equals",value:function(t){for(var e=this.elements,i=t.elements,n=0;n<9;n++)if(e[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<9;i++)this.elements[i]=t[i+e];return this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}])}(),gm=new vm;function ym(t){for(var e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function bm(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}var Cm={};function wm(t){t in Cm||(Cm[t]=!0,console.warn(t))}var km,xm=(new vm).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),_m=(new vm).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Em=C()(C()(C()(C()({},Zd,{transfer:Qd,primaries:em,toReference:function(t){return t},fromReference:function(t){return t}}),Xd,{transfer:tm,primaries:em,toReference:function(t){return t.convertSRGBToLinear()},fromReference:function(t){return t.convertLinearToSRGB()}}),$d,{transfer:Qd,primaries:"p3",toReference:function(t){return t.applyMatrix3(_m)},fromReference:function(t){return t.applyMatrix3(xm)}}),Kd,{transfer:tm,primaries:"p3",toReference:function(t){return t.convertSRGBToLinear().applyMatrix3(_m)},fromReference:function(t){return t.applyMatrix3(xm).convertLinearToSRGB()}}),Sm=new Set([Zd,$d]),Dm={enabled:!0,_workingColorSpace:Zd,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Sm.has(t))throw new Error('Unsupported working color space, "'.concat(t,'".'));this._workingColorSpace=t},convert:function(t,e,i){if(!1===this.enabled||e===i||!e||!i)return t;var n=Em[e].toReference;return(0,Em[i].fromReference)(n(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Em[t].primaries},getTransfer:function(t){return""===t?Qd:Em[t].transfer}};function Pm(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Mm(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}var Om=function(){return _()((function t(){k()(this,t)}),null,[{key:"getDataURL",value:function(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;var e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===km&&(km=bm("canvas")),km.width=t.width,km.height=t.height;var i=km.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=km}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}},{key:"sRGBToLinear",value:function(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){var e=bm("canvas");e.width=t.width,e.height=t.height;var i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);for(var n=i.getImageData(0,0,t.width,t.height),o=n.data,s=0;s0&&void 0!==arguments[0]?arguments[0]:null;k()(this,t),this.isSource=!0,Object.defineProperty(this,"id",{value:Tm++}),this.uuid=cm(),this.data=e,this.dataReady=!0,this.version=0}),[{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.images[this.uuid])return t.images[this.uuid];var i={uuid:this.uuid,url:""},n=this.data;if(null!==n){var o;if(Array.isArray(n)){o=[];for(var s=0,a=n.length;s0&&void 0!==arguments[0]?arguments[0]:e.DEFAULT_IMAGE,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_MAPPING,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1001,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1001,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1006,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1008,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1023,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1009,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:e.DEFAULT_ANISOTROPY,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";return k()(this,e),(t=Ud(this,e)).isTexture=!0,Object.defineProperty(Vd()(t),"id",{value:Lm++}),t.uuid=cm(),t.name="",t.source=new Nm(i),t.mipmaps=[],t.mapping=n,t.channel=0,t.wrapS=o,t.wrapT=s,t.magFilter=a,t.minFilter=r,t.anisotropy=u,t.format=l,t.internalFormat=null,t.type=c,t.offset=new fm(0,0),t.repeat=new fm(1,1),t.center=new fm(0,0),t.rotation=0,t.matrixAutoUpdate=!0,t.matrix=new vm,t.generateMipmaps=!0,t.premultiplyAlpha=!1,t.flipY=!0,t.unpackAlignment=4,t.colorSpace=p,t.userData={},t.version=0,t.onUpdate=null,t.isRenderTargetTexture=!1,t.pmremVersion=0,t}return sn()(e,t),_()(e,[{key:"image",get:function(){return this.source.data},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.source.data=t}},{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];var i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case 1e3:t.x=t.x-Math.floor(t.x);break;case 1001:t.x=t.x<0?0:1;break;case 1002:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case 1e3:t.y=t.y-Math.floor(t.y);break;case 1001:t.y=t.y<0?0:1;break;case 1002:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}},{key:"needsUpdate",set:function(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}},{key:"needsPMREMUpdate",set:function(t){!0===t&&this.pmremVersion++}}])}(am);Am.DEFAULT_IMAGE=null,Am.DEFAULT_MAPPING=300,Am.DEFAULT_ANISOTROPY=1;var jm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,t),t.prototype.isVector4=!0,this.x=e,this.y=i,this.z=n,this.w=o}),[{key:"width",get:function(){return this.z},set:function(t){this.z=t}},{key:"height",get:function(){return this.w},set:function(t){this.w=t}},{key:"set",value:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setZ",value:function(t){return this.z=t,this}},{key:"setW",value:function(t){return this.w=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}},{key:"applyMatrix4",value:function(t){var e=this.x,i=this.y,n=this.z,o=this.w,s=t.elements;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12]*o,this.y=s[1]*e+s[5]*i+s[9]*n+s[13]*o,this.z=s[2]*e+s[6]*i+s[10]*n+s[14]*o,this.w=s[3]*e+s[7]*i+s[11]*n+s[15]*o,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"setAxisAngleFromQuaternion",value:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}},{key:"setAxisAngleFromRotationMatrix",value:function(t){var e,i,n,o,s=.01,a=.1,r=t.elements,l=r[0],c=r[4],u=r[8],p=r[1],h=r[5],d=r[9],m=r[2],f=r[6],v=r[10];if(Math.abs(c-p)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:return t.next=6,this.z;case 6:return t.next=8,this.w;case 8:case"end":return t.stop()}}),t,this)}))}])}(),Im=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return k()(this,e),(t=Ud(this,e,[null])).isDataArrayTexture=!0,t.image={data:i,width:n,height:o,depth:s},t.magFilter=1003,t.minFilter=1003,t.wrapR=1001,t.generateMipmaps=!1,t.flipY=!1,t.unpackAlignment=1,t}return sn()(e,t),_()(e)}(Am),Rm=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return k()(this,e),(t=Ud(this,e,[null])).isData3DTexture=!0,t.image={data:i,width:n,height:o,depth:s},t.magFilter=1003,t.minFilter=1003,t.wrapR=1001,t.generateMipmaps=!1,t.flipY=!1,t.unpackAlignment=1,t}return sn()(e,t),_()(e)}(Am),Fm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,t),this.isQuaternion=!0,this._x=e,this._y=i,this._z=n,this._w=o}),[{key:"x",get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}},{key:"set",value:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t._x,n=t._y,o=t._z,s=t._order,a=Math.cos,r=Math.sin,l=a(i/2),c=a(n/2),u=a(o/2),p=r(i/2),h=r(n/2),d=r(o/2);switch(s){case"XYZ":this._x=p*c*u+l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u-p*h*d;break;case"YXZ":this._x=p*c*u+l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u+p*h*d;break;case"ZXY":this._x=p*c*u-l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u-p*h*d;break;case"ZYX":this._x=p*c*u-l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u+p*h*d;break;case"YZX":this._x=p*c*u+l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u-p*h*d;break;case"XZY":this._x=p*c*u-l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u+p*h*d;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!0===e&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(t,e){var i=e/2,n=Math.sin(i);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(t){var e=t.elements,i=e[0],n=e[4],o=e[8],s=e[1],a=e[5],r=e[9],l=e[2],c=e[6],u=e[10],p=i+a+u;if(p>0){var h=.5/Math.sqrt(p+1);this._w=.25/h,this._x=(c-r)*h,this._y=(o-l)*h,this._z=(s-n)*h}else if(i>a&&i>u){var d=2*Math.sqrt(1+i-a-u);this._w=(c-r)/d,this._x=.25*d,this._y=(n+s)/d,this._z=(o+l)/d}else if(a>u){var m=2*Math.sqrt(1+a-i-u);this._w=(o-l)/m,this._x=(n+s)/m,this._y=.25*m,this._z=(r+c)/m}else{var f=2*Math.sqrt(1+u-i-a);this._w=(s-n)/f,this._x=(o+l)/f,this._y=(r+c)/f,this._z=.25*f}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(t,e){var i=t.dot(e)+1;return iMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}},{key:"angleTo",value:function(t){return 2*Math.acos(Math.abs(um(this.dot(t),-1,1)))}},{key:"rotateTowards",value:function(t,e){var i=this.angleTo(t);if(0===i)return this;var n=Math.min(1,e/i);return this.slerp(t,n),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}},{key:"multiply",value:function(t){return this.multiplyQuaternions(this,t)}},{key:"premultiply",value:function(t){return this.multiplyQuaternions(t,this)}},{key:"multiplyQuaternions",value:function(t,e){var i=t._x,n=t._y,o=t._z,s=t._w,a=e._x,r=e._y,l=e._z,c=e._w;return this._x=i*c+s*a+n*l-o*r,this._y=n*c+s*r+o*a-i*l,this._z=o*c+s*l+i*r-n*a,this._w=s*c-i*a-n*r-o*l,this._onChangeCallback(),this}},{key:"slerp",value:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var i=this._x,n=this._y,o=this._z,s=this._w,a=s*t._w+i*t._x+n*t._y+o*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=i,this._y=n,this._z=o,this;var r=1-a*a;if(r<=Number.EPSILON){var l=1-e;return this._w=l*s+e*this._w,this._x=l*i+e*this._x,this._y=l*n+e*this._y,this._z=l*o+e*this._z,this.normalize(),this}var c=Math.sqrt(r),u=Math.atan2(c,a),p=Math.sin((1-e)*u)/c,h=Math.sin(e*u)/c;return this._w=s*p+this._w*h,this._x=i*p+this._x*h,this._y=n*p+this._y*h,this._z=o*p+this._z*h,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(t,e,i){return this.copy(t).slerp(e,i)}},{key:"random",value:function(){var t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),o=Math.sqrt(i);return this.set(n*Math.sin(t),n*Math.cos(t),o*Math.sin(e),o*Math.cos(e))}},{key:"equals",value:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}},{key:"fromBufferAttribute",value:function(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}},{key:"toJSON",value:function(){return this.toArray()}},{key:"_onChange",value:function(t){return this._onChangeCallback=t,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._x;case 2:return t.next=4,this._y;case 4:return t.next=6,this._z;case 6:return t.next=8,this._w;case 8:case"end":return t.stop()}}),t,this)}))}],[{key:"slerpFlat",value:function(t,e,i,n,o,s,a){var r=i[n+0],l=i[n+1],c=i[n+2],u=i[n+3],p=o[s+0],h=o[s+1],d=o[s+2],m=o[s+3];if(0===a)return t[e+0]=r,t[e+1]=l,t[e+2]=c,void(t[e+3]=u);if(1===a)return t[e+0]=p,t[e+1]=h,t[e+2]=d,void(t[e+3]=m);if(u!==m||r!==p||l!==h||c!==d){var f=1-a,v=r*p+l*h+c*d+u*m,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),C=Math.atan2(b,v*g);f=Math.sin(f*C)/b,a=Math.sin(a*C)/b}var w=a*g;if(r=r*f+p*w,l=l*f+h*w,c=c*f+d*w,u=u*f+m*w,f===1-a){var k=1/Math.sqrt(r*r+l*l+c*c+u*u);r*=k,l*=k,c*=k,u*=k}}t[e]=r,t[e+1]=l,t[e+2]=c,t[e+3]=u}},{key:"multiplyQuaternionsFlat",value:function(t,e,i,n,o,s){var a=i[n],r=i[n+1],l=i[n+2],c=i[n+3],u=o[s],p=o[s+1],h=o[s+2],d=o[s+3];return t[e]=a*d+c*u+r*h-l*p,t[e+1]=r*d+c*p+l*u-a*h,t[e+2]=l*d+c*h+a*p-r*u,t[e+3]=c*d-a*u-r*p-l*h,t}}])}(),zm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;k()(this,t),t.prototype.isVector3=!0,this.x=e,this.y=i,this.z=n}),[{key:"set",value:function(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this.z=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setZ",value:function(t){return this.z=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this.z+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this.z-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this.z*=t,this}},{key:"multiplyVectors",value:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}},{key:"applyEuler",value:function(t){return this.applyQuaternion(Vm.setFromEuler(t))}},{key:"applyAxisAngle",value:function(t,e){return this.applyQuaternion(Vm.setFromAxisAngle(t,e))}},{key:"applyMatrix3",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements;return this.x=o[0]*e+o[3]*i+o[6]*n,this.y=o[1]*e+o[4]*i+o[7]*n,this.z=o[2]*e+o[5]*i+o[8]*n,this}},{key:"applyNormalMatrix",value:function(t){return this.applyMatrix3(t).normalize()}},{key:"applyMatrix4",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements,s=1/(o[3]*e+o[7]*i+o[11]*n+o[15]);return this.x=(o[0]*e+o[4]*i+o[8]*n+o[12])*s,this.y=(o[1]*e+o[5]*i+o[9]*n+o[13])*s,this.z=(o[2]*e+o[6]*i+o[10]*n+o[14])*s,this}},{key:"applyQuaternion",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.x,s=t.y,a=t.z,r=t.w,l=2*(s*n-a*i),c=2*(a*e-o*n),u=2*(o*i-s*e);return this.x=e+r*l+s*u-a*c,this.y=i+r*c+a*l-o*u,this.z=n+r*u+o*c-s*l,this}},{key:"project",value:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}},{key:"unproject",value:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}},{key:"transformDirection",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements;return this.x=o[0]*e+o[4]*i+o[8]*n,this.y=o[1]*e+o[5]*i+o[9]*n,this.z=o[2]*e+o[6]*i+o[10]*n,this.normalize()}},{key:"divide",value:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"min",value:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}},{key:"max",value:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}},{key:"clamp",value:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}},{key:"clampScalar",value:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}},{key:"clampLength",value:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y+this.z*t.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(t){return this.normalize().multiplyScalar(t)}},{key:"lerp",value:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}},{key:"lerpVectors",value:function(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}},{key:"cross",value:function(t){return this.crossVectors(this,t)}},{key:"crossVectors",value:function(t,e){var i=t.x,n=t.y,o=t.z,s=e.x,a=e.y,r=e.z;return this.x=n*r-o*a,this.y=o*s-i*r,this.z=i*a-n*s,this}},{key:"projectOnVector",value:function(t){var e=t.lengthSq();if(0===e)return this.set(0,0,0);var i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}},{key:"projectOnPlane",value:function(t){return Hm.copy(this).projectOnVector(t),this.sub(Hm)}},{key:"reflect",value:function(t){return this.sub(Hm.copy(t).multiplyScalar(2*this.dot(t)))}},{key:"angleTo",value:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;var i=this.dot(t)/e;return Math.acos(um(i,-1,1))}},{key:"distanceTo",value:function(t){return Math.sqrt(this.distanceToSquared(t))}},{key:"distanceToSquared",value:function(t){var e=this.x-t.x,i=this.y-t.y,n=this.z-t.z;return e*e+i*i+n*n}},{key:"manhattanDistanceTo",value:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}},{key:"setFromSpherical",value:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}},{key:"setFromSphericalCoords",value:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this}},{key:"setFromCylindrical",value:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}},{key:"setFromCylindricalCoords",value:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}},{key:"setFromMatrixPosition",value:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}},{key:"setFromMatrixScale",value:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,this}},{key:"setFromMatrixColumn",value:function(t,e){return this.fromArray(t.elements,4*e)}},{key:"setFromMatrix3Column",value:function(t,e){return this.fromArray(t.elements,3*e)}},{key:"setFromEuler",value:function(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}},{key:"setFromColor",value:function(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}},{key:"equals",value:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var t=Math.random()*Math.PI*2,e=2*Math.random()-1,i=Math.sqrt(1-e*e);return this.x=i*Math.cos(t),this.y=e,this.z=i*Math.sin(t),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:return t.next=6,this.z;case 6:case"end":return t.stop()}}),t,this)}))}])}(),Hm=new zm,Vm=new Fm,Gm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm(-1/0,-1/0,-1/0);k()(this,t),this.isBox3=!0,this.min=e,this.max=i}),[{key:"set",value:function(t,e){return this.min.copy(t),this.max.copy(e),this}},{key:"setFromArray",value:function(t){this.makeEmpty();for(var e=0,i=t.length;e1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(t,e)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.min.copy(t.min),this.max.copy(t.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x1&&void 0!==arguments[1]&&arguments[1];t.updateWorldMatrix(!1,!1);var i=t.geometry;if(void 0!==i){var n=i.getAttribute("position");if(!0===e&&void 0!==n&&!0!==t.isInstancedMesh)for(var o=0,s=n.count;othis.max.x||t.ythis.max.y||t.zthis.max.z)}},{key:"containsBox",value:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}},{key:"getParameter",value:function(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}},{key:"intersectsSphere",value:function(t){return this.clampPoint(t.center,Wm),Wm.distanceToSquared(t.center)<=t.radius*t.radius}},{key:"intersectsPlane",value:function(t){var e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}},{key:"intersectsTriangle",value:function(t){if(this.isEmpty())return!1;this.getCenter(Qm),tf.subVectors(this.max,Qm),Jm.subVectors(t.a,Qm),qm.subVectors(t.b,Qm),Xm.subVectors(t.c,Qm),Zm.subVectors(qm,Jm),Km.subVectors(Xm,qm),$m.subVectors(Jm,Xm);var e=[0,-Zm.z,Zm.y,0,-Km.z,Km.y,0,-$m.z,$m.y,Zm.z,0,-Zm.x,Km.z,0,-Km.x,$m.z,0,-$m.x,-Zm.y,Zm.x,0,-Km.y,Km.x,0,-$m.y,$m.x,0];return!!of(e,Jm,qm,Xm,tf)&&(!!of(e=[1,0,0,0,1,0,0,0,1],Jm,qm,Xm,tf)&&(ef.crossVectors(Zm,Km),of(e=[ef.x,ef.y,ef.z],Jm,qm,Xm,tf)))}},{key:"clampPoint",value:function(t,e){return e.copy(t).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(t){return this.clampPoint(t,Wm).distanceTo(t)}},{key:"getBoundingSphere",value:function(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(Wm).length()),t}},{key:"intersect",value:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(t){return this.min.min(t.min),this.max.max(t.max),this}},{key:"applyMatrix4",value:function(t){return this.isEmpty()||(Um[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Um[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Um[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Um[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Um[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Um[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Um[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Um[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Um)),this}},{key:"translate",value:function(t){return this.min.add(t),this.max.add(t),this}},{key:"equals",value:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}])}(),Um=[new zm,new zm,new zm,new zm,new zm,new zm,new zm,new zm],Wm=new zm,Ym=new Gm,Jm=new zm,qm=new zm,Xm=new zm,Zm=new zm,Km=new zm,$m=new zm,Qm=new zm,tf=new zm,ef=new zm,nf=new zm;function of(t,e,i,n,o){for(var s=0,a=t.length-3;s<=a;s+=3){nf.fromArray(t,s);var r=o.x*Math.abs(nf.x)+o.y*Math.abs(nf.y)+o.z*Math.abs(nf.z),l=e.dot(nf),c=i.dot(nf),u=n.dot(nf);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var sf=new Gm,af=new zm,rf=new zm,lf=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;k()(this,t),this.isSphere=!0,this.center=e,this.radius=i}),[{key:"set",value:function(t,e){return this.center.copy(t),this.radius=e,this}},{key:"setFromPoints",value:function(t,e){var i=this.center;void 0!==e?i.copy(e):sf.setFromPoints(t).getCenter(i);for(var n=0,o=0,s=t.length;othis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}},{key:"getBoundingBox",value:function(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}},{key:"applyMatrix4",value:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}},{key:"translate",value:function(t){return this.center.add(t),this}},{key:"expandByPoint",value:function(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;af.subVectors(t,this.center);var e=af.lengthSq();if(e>this.radius*this.radius){var i=Math.sqrt(e),n=.5*(i-this.radius);this.center.addScaledVector(af,n/i),this.radius+=n}return this}},{key:"union",value:function(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(rf.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(af.copy(t.center).add(rf)),this.expandByPoint(af.copy(t.center).sub(rf))),this)}},{key:"equals",value:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),cf=new zm,uf=new zm,pf=new zm,hf=new zm,df=new zm,mf=new zm,ff=new zm,vf=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm(0,0,-1);k()(this,t),this.origin=e,this.direction=i}),[{key:"set",value:function(t,e){return this.origin.copy(t),this.direction.copy(e),this}},{key:"copy",value:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}},{key:"at",value:function(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}},{key:"lookAt",value:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this}},{key:"recast",value:function(t){return this.origin.copy(this.at(t,cf)),this}},{key:"closestPointToPoint",value:function(t,e){e.subVectors(t,this.origin);var i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(t){return Math.sqrt(this.distanceSqToPoint(t))}},{key:"distanceSqToPoint",value:function(t){var e=cf.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(cf.copy(this.origin).addScaledVector(this.direction,e),cf.distanceToSquared(t))}},{key:"distanceSqToSegment",value:function(t,e,i,n){uf.copy(t).add(e).multiplyScalar(.5),pf.copy(e).sub(t).normalize(),hf.copy(this.origin).sub(uf);var o,s,a,r,l=.5*t.distanceTo(e),c=-this.direction.dot(pf),u=hf.dot(this.direction),p=-hf.dot(pf),h=hf.lengthSq(),d=Math.abs(1-c*c);if(d>0)if(s=c*u-p,r=l*d,(o=c*p-u)>=0)if(s>=-r)if(s<=r){var m=1/d;a=(o*=m)*(o+c*(s*=m)+2*u)+s*(c*o+s+2*p)+h}else s=l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;else s=-l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;else s<=-r?a=-(o=Math.max(0,-(-c*l+u)))*o+(s=o>0?-l:Math.min(Math.max(-l,-p),l))*(s+2*p)+h:s<=r?(o=0,a=(s=Math.min(Math.max(-l,-p),l))*(s+2*p)+h):a=-(o=Math.max(0,-(c*l+u)))*o+(s=o>0?l:Math.min(Math.max(-l,-p),l))*(s+2*p)+h;else s=c>0?-l:l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;return i&&i.copy(this.origin).addScaledVector(this.direction,o),n&&n.copy(uf).addScaledVector(pf,s),a}},{key:"intersectSphere",value:function(t,e){cf.subVectors(t.center,this.origin);var i=cf.dot(this.direction),n=cf.dot(cf)-i*i,o=t.radius*t.radius;if(n>o)return null;var s=Math.sqrt(o-n),a=i-s,r=i+s;return r<0?null:a<0?this.at(r,e):this.at(a,e)}},{key:"intersectsSphere",value:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}},{key:"distanceToPlane",value:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}},{key:"intersectPlane",value:function(t,e){var i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}},{key:"intersectsPlane",value:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}},{key:"intersectBox",value:function(t,e){var i,n,o,s,a,r,l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,p=this.origin;return l>=0?(i=(t.min.x-p.x)*l,n=(t.max.x-p.x)*l):(i=(t.max.x-p.x)*l,n=(t.min.x-p.x)*l),c>=0?(o=(t.min.y-p.y)*c,s=(t.max.y-p.y)*c):(o=(t.max.y-p.y)*c,s=(t.min.y-p.y)*c),i>s||o>n?null:((o>i||isNaN(i))&&(i=o),(s=0?(a=(t.min.z-p.z)*u,r=(t.max.z-p.z)*u):(a=(t.max.z-p.z)*u,r=(t.min.z-p.z)*u),i>r||a>n?null:((a>i||i!=i)&&(i=a),(r=0?i:n,e)))}},{key:"intersectsBox",value:function(t){return null!==this.intersectBox(t,cf)}},{key:"intersectTriangle",value:function(t,e,i,n,o){df.subVectors(e,t),mf.subVectors(i,t),ff.crossVectors(df,mf);var s,a=this.direction.dot(ff);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}hf.subVectors(this.origin,t);var r=s*this.direction.dot(mf.crossVectors(hf,mf));if(r<0)return null;var l=s*this.direction.dot(df.cross(hf));if(l<0)return null;if(r+l>a)return null;var c=-s*hf.dot(ff);return c<0?null:this.at(c/a,o)}},{key:"applyMatrix4",value:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}},{key:"equals",value:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),gf=function(){function t(e,i,n,o,s,a,r,l,c,u,p,h,d,m,f,v){k()(this,t),t.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,i,n,o,s,a,r,l,c,u,p,h,d,m,f,v)}return _()(t,[{key:"set",value:function(t,e,i,n,o,s,a,r,l,c,u,p,h,d,m,f){var v=this.elements;return v[0]=t,v[4]=e,v[8]=i,v[12]=n,v[1]=o,v[5]=s,v[9]=a,v[13]=r,v[2]=l,v[6]=c,v[10]=u,v[14]=p,v[3]=h,v[7]=d,v[11]=m,v[15]=f,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new t).fromArray(this.elements)}},{key:"copy",value:function(t){var e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}},{key:"copyPosition",value:function(t){var e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}},{key:"setFromMatrix3",value:function(t){var e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(t){var e=this.elements,i=t.elements,n=1/yf.setFromMatrixColumn(t,0).length(),o=1/yf.setFromMatrixColumn(t,1).length(),s=1/yf.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*o,e[5]=i[5]*o,e[6]=i[6]*o,e[7]=0,e[8]=i[8]*s,e[9]=i[9]*s,e[10]=i[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}},{key:"makeRotationFromEuler",value:function(t){var e=this.elements,i=t.x,n=t.y,o=t.z,s=Math.cos(i),a=Math.sin(i),r=Math.cos(n),l=Math.sin(n),c=Math.cos(o),u=Math.sin(o);if("XYZ"===t.order){var p=s*c,h=s*u,d=a*c,m=a*u;e[0]=r*c,e[4]=-r*u,e[8]=l,e[1]=h+d*l,e[5]=p-m*l,e[9]=-a*r,e[2]=m-p*l,e[6]=d+h*l,e[10]=s*r}else if("YXZ"===t.order){var f=r*c,v=r*u,g=l*c,y=l*u;e[0]=f+y*a,e[4]=g*a-v,e[8]=s*l,e[1]=s*u,e[5]=s*c,e[9]=-a,e[2]=v*a-g,e[6]=y+f*a,e[10]=s*r}else if("ZXY"===t.order){var b=r*c,C=r*u,w=l*c,k=l*u;e[0]=b-k*a,e[4]=-s*u,e[8]=w+C*a,e[1]=C+w*a,e[5]=s*c,e[9]=k-b*a,e[2]=-s*l,e[6]=a,e[10]=s*r}else if("ZYX"===t.order){var x=s*c,_=s*u,E=a*c,S=a*u;e[0]=r*c,e[4]=E*l-_,e[8]=x*l+S,e[1]=r*u,e[5]=S*l+x,e[9]=_*l-E,e[2]=-l,e[6]=a*r,e[10]=s*r}else if("YZX"===t.order){var D=s*r,P=s*l,M=a*r,O=a*l;e[0]=r*c,e[4]=O-D*u,e[8]=M*u+P,e[1]=u,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=P*u+M,e[10]=D-O*u}else if("XZY"===t.order){var T=s*r,N=s*l,B=a*r,L=a*l;e[0]=r*c,e[4]=-u,e[8]=l*c,e[1]=T*u+L,e[5]=s*c,e[9]=N*u-B,e[2]=B*u-N,e[6]=a*c,e[10]=L*u+T}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(t){return this.compose(Cf,t,wf)}},{key:"lookAt",value:function(t,e,i){var n=this.elements;return _f.subVectors(t,e),0===_f.lengthSq()&&(_f.z=1),_f.normalize(),kf.crossVectors(i,_f),0===kf.lengthSq()&&(1===Math.abs(i.z)?_f.x+=1e-4:_f.z+=1e-4,_f.normalize(),kf.crossVectors(i,_f)),kf.normalize(),xf.crossVectors(_f,kf),n[0]=kf.x,n[4]=xf.x,n[8]=_f.x,n[1]=kf.y,n[5]=xf.y,n[9]=_f.y,n[2]=kf.z,n[6]=xf.z,n[10]=_f.z,this}},{key:"multiply",value:function(t){return this.multiplyMatrices(this,t)}},{key:"premultiply",value:function(t){return this.multiplyMatrices(t,this)}},{key:"multiplyMatrices",value:function(t,e){var i=t.elements,n=e.elements,o=this.elements,s=i[0],a=i[4],r=i[8],l=i[12],c=i[1],u=i[5],p=i[9],h=i[13],d=i[2],m=i[6],f=i[10],v=i[14],g=i[3],y=i[7],b=i[11],C=i[15],w=n[0],k=n[4],x=n[8],_=n[12],E=n[1],S=n[5],D=n[9],P=n[13],M=n[2],O=n[6],T=n[10],N=n[14],B=n[3],L=n[7],A=n[11],j=n[15];return o[0]=s*w+a*E+r*M+l*B,o[4]=s*k+a*S+r*O+l*L,o[8]=s*x+a*D+r*T+l*A,o[12]=s*_+a*P+r*N+l*j,o[1]=c*w+u*E+p*M+h*B,o[5]=c*k+u*S+p*O+h*L,o[9]=c*x+u*D+p*T+h*A,o[13]=c*_+u*P+p*N+h*j,o[2]=d*w+m*E+f*M+v*B,o[6]=d*k+m*S+f*O+v*L,o[10]=d*x+m*D+f*T+v*A,o[14]=d*_+m*P+f*N+v*j,o[3]=g*w+y*E+b*M+C*B,o[7]=g*k+y*S+b*O+C*L,o[11]=g*x+y*D+b*T+C*A,o[15]=g*_+y*P+b*N+C*j,this}},{key:"multiplyScalar",value:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}},{key:"determinant",value:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],o=t[12],s=t[1],a=t[5],r=t[9],l=t[13],c=t[2],u=t[6],p=t[10],h=t[14];return t[3]*(+o*r*u-n*l*u-o*a*p+i*l*p+n*a*h-i*r*h)+t[7]*(+e*r*h-e*l*p+o*s*p-n*s*h+n*l*c-o*r*c)+t[11]*(+e*l*u-e*a*h-o*s*u+i*s*h+o*a*c-i*l*c)+t[15]*(-n*a*c-e*r*u+e*a*p+n*s*u-i*s*p+i*r*c)}},{key:"transpose",value:function(){var t,e=this.elements;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}},{key:"setPosition",value:function(t,e,i){var n=this.elements;return t.isVector3?(n[12]=t.x,n[13]=t.y,n[14]=t.z):(n[12]=t,n[13]=e,n[14]=i),this}},{key:"invert",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8],u=t[9],p=t[10],h=t[11],d=t[12],m=t[13],f=t[14],v=t[15],g=u*f*l-m*p*l+m*r*h-a*f*h-u*r*v+a*p*v,y=d*p*l-c*f*l-d*r*h+s*f*h+c*r*v-s*p*v,b=c*m*l-d*u*l+d*a*h-s*m*h-c*a*v+s*u*v,C=d*u*r-c*m*r-d*a*p+s*m*p+c*a*f-s*u*f,w=e*g+i*y+n*b+o*C;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var k=1/w;return t[0]=g*k,t[1]=(m*p*o-u*f*o-m*n*h+i*f*h+u*n*v-i*p*v)*k,t[2]=(a*f*o-m*r*o+m*n*l-i*f*l-a*n*v+i*r*v)*k,t[3]=(u*r*o-a*p*o-u*n*l+i*p*l+a*n*h-i*r*h)*k,t[4]=y*k,t[5]=(c*f*o-d*p*o+d*n*h-e*f*h-c*n*v+e*p*v)*k,t[6]=(d*r*o-s*f*o-d*n*l+e*f*l+s*n*v-e*r*v)*k,t[7]=(s*p*o-c*r*o+c*n*l-e*p*l-s*n*h+e*r*h)*k,t[8]=b*k,t[9]=(d*u*o-c*m*o-d*i*h+e*m*h+c*i*v-e*u*v)*k,t[10]=(s*m*o-d*a*o+d*i*l-e*m*l-s*i*v+e*a*v)*k,t[11]=(c*a*o-s*u*o-c*i*l+e*u*l+s*i*h-e*a*h)*k,t[12]=C*k,t[13]=(c*m*n-d*u*n+d*i*p-e*m*p-c*i*f+e*u*f)*k,t[14]=(d*a*n-s*m*n-d*i*r+e*m*r+s*i*f-e*a*f)*k,t[15]=(s*u*n-c*a*n+c*i*r-e*u*r-s*i*p+e*a*p)*k,this}},{key:"scale",value:function(t){var e=this.elements,i=t.x,n=t.y,o=t.z;return e[0]*=i,e[4]*=n,e[8]*=o,e[1]*=i,e[5]*=n,e[9]*=o,e[2]*=i,e[6]*=n,e[10]*=o,e[3]*=i,e[7]*=n,e[11]*=o,this}},{key:"getMaxScaleOnAxis",value:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}},{key:"makeTranslation",value:function(t,e,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}},{key:"makeRotationX",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}},{key:"makeRotationY",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(t,e){var i=Math.cos(e),n=Math.sin(e),o=1-i,s=t.x,a=t.y,r=t.z,l=o*s,c=o*a;return this.set(l*s+i,l*a-n*r,l*r+n*a,0,l*a+n*r,c*a+i,c*r-n*s,0,l*r-n*a,c*r+n*s,o*r*r+i,0,0,0,0,1),this}},{key:"makeScale",value:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}},{key:"makeShear",value:function(t,e,i,n,o,s){return this.set(1,i,o,0,t,1,s,0,e,n,1,0,0,0,0,1),this}},{key:"compose",value:function(t,e,i){var n=this.elements,o=e._x,s=e._y,a=e._z,r=e._w,l=o+o,c=s+s,u=a+a,p=o*l,h=o*c,d=o*u,m=s*c,f=s*u,v=a*u,g=r*l,y=r*c,b=r*u,C=i.x,w=i.y,k=i.z;return n[0]=(1-(m+v))*C,n[1]=(h+b)*C,n[2]=(d-y)*C,n[3]=0,n[4]=(h-b)*w,n[5]=(1-(p+v))*w,n[6]=(f+g)*w,n[7]=0,n[8]=(d+y)*k,n[9]=(f-g)*k,n[10]=(1-(p+m))*k,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}},{key:"decompose",value:function(t,e,i){var n=this.elements,o=yf.set(n[0],n[1],n[2]).length(),s=yf.set(n[4],n[5],n[6]).length(),a=yf.set(n[8],n[9],n[10]).length();this.determinant()<0&&(o=-o),t.x=n[12],t.y=n[13],t.z=n[14],bf.copy(this);var r=1/o,l=1/s,c=1/a;return bf.elements[0]*=r,bf.elements[1]*=r,bf.elements[2]*=r,bf.elements[4]*=l,bf.elements[5]*=l,bf.elements[6]*=l,bf.elements[8]*=c,bf.elements[9]*=c,bf.elements[10]*=c,e.setFromRotationMatrix(bf),i.x=o,i.y=s,i.z=a,this}},{key:"makePerspective",value:function(t,e,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=2*o/(e-t),p=2*o/(i-n),h=(e+t)/(e-t),d=(i+n)/(i-n);if(l===om)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==sm)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+l);a=-s/(s-o),r=-s*o/(s-o)}return c[0]=u,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=p,c[9]=d,c[13]=0,c[2]=0,c[6]=0,c[10]=a,c[14]=r,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}},{key:"makeOrthographic",value:function(t,e,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=1/(e-t),p=1/(i-n),h=1/(s-o),d=(e+t)*u,m=(i+n)*p;if(l===om)a=(s+o)*h,r=-2*h;else{if(l!==sm)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+l);a=o*h,r=-1*h}return c[0]=2*u,c[4]=0,c[8]=0,c[12]=-d,c[1]=0,c[5]=2*p,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=r,c[14]=-a,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}},{key:"equals",value:function(t){for(var e=this.elements,i=t.elements,n=0;n<16;n++)if(e[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<16;i++)this.elements[i]=t[i+e];return this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}])}(),yf=new zm,bf=new gf,Cf=new zm(0,0,0),wf=new zm(1,1,1),kf=new zm,xf=new zm,_f=new zm,Ef=new gf,Sf=new Fm,Df=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.DEFAULT_ORDER;k()(this,t),this.isEuler=!0,this._x=e,this._y=i,this._z=n,this._order=o}),[{key:"x",get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(t){this._order=t,this._onChangeCallback()}},{key:"set",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=t,this._y=e,this._z=i,this._order=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t.elements,o=n[0],s=n[4],a=n[8],r=n[1],l=n[5],c=n[9],u=n[2],p=n[6],h=n[10];switch(e){case"XYZ":this._y=Math.asin(um(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(p,l),this._z=0);break;case"YXZ":this._x=Math.asin(-um(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(r,l)):(this._y=Math.atan2(-u,o),this._z=0);break;case"ZXY":this._x=Math.asin(um(p,-1,1)),Math.abs(p)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(r,o));break;case"ZYX":this._y=Math.asin(-um(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(p,h),this._z=Math.atan2(r,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(um(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,o)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-um(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(p,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===i&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(t,e,i){return Ef.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Ef,e,i)}},{key:"setFromVector3",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(t.x,t.y,t.z,e)}},{key:"reorder",value:function(t){return Sf.setFromEuler(this),this.setFromQuaternion(Sf,t)}},{key:"equals",value:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}},{key:"fromArray",value:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}},{key:"_onChange",value:function(t){return this._onChangeCallback=t,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._x;case 2:return t.next=4,this._y;case 4:return t.next=6,this._z;case 6:return t.next=8,this._order;case 8:case"end":return t.stop()}}),t,this)}))}])}();Df.DEFAULT_ORDER="XYZ";var Pf=function(){return _()((function t(){k()(this,t),this.mask=1}),[{key:"set",value:function(t){this.mask=(1<>>0}},{key:"enable",value:function(t){this.mask|=1<1){for(var e=0;e1){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:[];this[t]===e&&i.push(this);for(var n=this.children,o=0,s=n.length;o0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map((function(t){return{boxInitialized:t.boxInitialized,boxMin:t.box.min.toArray(),boxMax:t.box.max.toArray(),sphereInitialized:t.sphereInitialized,sphereRadius:t.sphere.radius,sphereCenter:t.sphere.center.toArray()}})),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(t),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=o(t.geometries,this.geometry);var s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){var a=s.shapes;if(Array.isArray(a))for(var r=0,l=a.length;r0){n.children=[];for(var d=0;d0){n.animations=[];for(var m=0;m0&&(i.geometries=v),g.length>0&&(i.materials=g),y.length>0&&(i.textures=y),b.length>0&&(i.images=b),C.length>0&&(i.shapes=C),w.length>0&&(i.skeletons=w),k.length>0&&(i.animations=k),x.length>0&&(i.nodes=x)}return i.object=n,i;function _(t){var e=[];for(var i in t){var n=t[i];delete n.metadata,e.push(n)}return e}}},{key:"clone",value:function(t){return(new this.constructor).copy(this,t)}},{key:"copy",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm;k()(this,t),this.a=e,this.b=i,this.c=n}return _()(t,[{key:"set",value:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}},{key:"setFromPointsAndIndices",value:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this}},{key:"setFromAttributeAndIndices",value:function(t,e,i,n){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}},{key:"getArea",value:function(){return Wf.subVectors(this.c,this.b),Yf.subVectors(this.a,this.b),.5*Wf.cross(Yf).length()}},{key:"getMidpoint",value:function(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(e){return t.getNormal(this.a,this.b,this.c,e)}},{key:"getPlane",value:function(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(e,i){return t.getBarycoord(e,this.a,this.b,this.c,i)}},{key:"getInterpolation",value:function(e,i,n,o,s){return t.getInterpolation(e,this.a,this.b,this.c,i,n,o,s)}},{key:"containsPoint",value:function(e){return t.containsPoint(e,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(e){return t.isFrontFacing(this.a,this.b,this.c,e)}},{key:"intersectsBox",value:function(t){return t.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(t,e){var i,n,o=this.a,s=this.b,a=this.c;Xf.subVectors(s,o),Zf.subVectors(a,o),$f.subVectors(t,o);var r=Xf.dot($f),l=Zf.dot($f);if(r<=0&&l<=0)return e.copy(o);Qf.subVectors(t,s);var c=Xf.dot(Qf),u=Zf.dot(Qf);if(c>=0&&u<=c)return e.copy(s);var p=r*u-c*l;if(p<=0&&r>=0&&c<=0)return i=r/(r-c),e.copy(o).addScaledVector(Xf,i);tv.subVectors(t,a);var h=Xf.dot(tv),d=Zf.dot(tv);if(d>=0&&h<=d)return e.copy(a);var m=h*l-r*d;if(m<=0&&l>=0&&d<=0)return n=l/(l-d),e.copy(o).addScaledVector(Zf,n);var f=c*d-h*u;if(f<=0&&u-c>=0&&h-d>=0)return Kf.subVectors(a,s),n=(u-c)/(u-c+(h-d)),e.copy(s).addScaledVector(Kf,n);var v=1/(f+m+p);return i=m*v,n=p*v,e.copy(o).addScaledVector(Xf,i).addScaledVector(Zf,n)}},{key:"equals",value:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}],[{key:"getNormal",value:function(t,e,i,n){n.subVectors(i,e),Wf.subVectors(t,e),n.cross(Wf);var o=n.lengthSq();return o>0?n.multiplyScalar(1/Math.sqrt(o)):n.set(0,0,0)}},{key:"getBarycoord",value:function(t,e,i,n,o){Wf.subVectors(n,e),Yf.subVectors(i,e),Jf.subVectors(t,e);var s=Wf.dot(Wf),a=Wf.dot(Yf),r=Wf.dot(Jf),l=Yf.dot(Yf),c=Yf.dot(Jf),u=s*l-a*a;if(0===u)return o.set(0,0,0),null;var p=1/u,h=(l*r-a*c)*p,d=(s*c-a*r)*p;return o.set(1-h-d,d,h)}},{key:"containsPoint",value:function(t,e,i,n){return null!==this.getBarycoord(t,e,i,n,qf)&&qf.x>=0&&qf.y>=0&&qf.x+qf.y<=1}},{key:"getInterpolation",value:function(t,e,i,n,o,s,a,r){return null===this.getBarycoord(t,e,i,n,qf)?(r.x=0,r.y=0,"z"in r&&(r.z=0),"w"in r&&(r.w=0),null):(r.setScalar(0),r.addScaledVector(o,qf.x),r.addScaledVector(s,qf.y),r.addScaledVector(a,qf.z),r)}},{key:"isFrontFacing",value:function(t,e,i,n){return Wf.subVectors(i,e),Yf.subVectors(t,e),Wf.cross(Yf).dot(n)<0}}])}(),iv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},nv={h:0,s:0,l:0},ov={h:0,s:0,l:0};function sv(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}var av=function(){return _()((function t(e,i,n){return k()(this,t),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,i,n)}),[{key:"set",value:function(t,e,i){if(void 0===e&&void 0===i){var n=t;n&&n.isColor?this.copy(n):"number"==typeof n?this.setHex(n):"string"==typeof n&&this.setStyle(n)}else this.setRGB(t,e,i);return this}},{key:"setScalar",value:function(t){return this.r=t,this.g=t,this.b=t,this}},{key:"setHex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd;return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,Dm.toWorkingColorSpace(this,e),this}},{key:"setRGB",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dm.workingColorSpace;return this.r=t,this.g=e,this.b=i,Dm.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dm.workingColorSpace;if(t=pm(t,1),e=um(e,0,1),i=um(i,0,1),0===e)this.r=this.g=this.b=i;else{var o=i<=.5?i*(1+e):i+e-i*e,s=2*i-o;this.r=sv(s,o,t+1/3),this.g=sv(s,o,t),this.b=sv(s,o,t-1/3)}return Dm.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd;function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}if(e=/^(\w+)\(([^\)]*)\)/.exec(t)){var o,s=e[1],a=e[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,i);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,i);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(e=/^\#([A-Fa-f\d]+)$/.exec(t)){var r=e[1],l=r.length;if(3===l)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,i);if(6===l)return this.setHex(parseInt(r,16),i);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,i);return this}},{key:"setColorName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd,i=iv[t.toLowerCase()];return void 0!==i?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}},{key:"copySRGBToLinear",value:function(t){return this.r=Pm(t.r),this.g=Pm(t.g),this.b=Pm(t.b),this}},{key:"copyLinearToSRGB",value:function(t){return this.r=Mm(t.r),this.g=Mm(t.g),this.b=Mm(t.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;return Dm.fromWorkingColorSpace(rv.copy(this),t),65536*Math.round(um(255*rv.r,0,255))+256*Math.round(um(255*rv.g,0,255))+Math.round(um(255*rv.b,0,255))}},{key:"getHexString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;return("000000"+this.getHex(t).toString(16)).slice(-6)}},{key:"getHSL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dm.workingColorSpace;Dm.fromWorkingColorSpace(rv.copy(this),e);var i,n,o=rv.r,s=rv.g,a=rv.b,r=Math.max(o,s,a),l=Math.min(o,s,a),c=(l+r)/2;if(l===r)i=0,n=0;else{var u=r-l;switch(n=c<=.5?u/(r+l):u/(2-r-l),r){case o:i=(s-a)/u+(s1&&void 0!==arguments[1]?arguments[1]:Dm.workingColorSpace;return Dm.fromWorkingColorSpace(rv.copy(this),e),t.r=rv.r,t.g=rv.g,t.b=rv.b,t}},{key:"getStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;Dm.fromWorkingColorSpace(rv.copy(this),t);var e=rv.r,i=rv.g,n=rv.b;return t!==Xd?"color(".concat(t," ").concat(e.toFixed(3)," ").concat(i.toFixed(3)," ").concat(n.toFixed(3),")"):"rgb(".concat(Math.round(255*e),",").concat(Math.round(255*i),",").concat(Math.round(255*n),")")}},{key:"offsetHSL",value:function(t,e,i){return this.getHSL(nv),this.setHSL(nv.h+t,nv.s+e,nv.l+i)}},{key:"add",value:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}},{key:"addColors",value:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}},{key:"addScalar",value:function(t){return this.r+=t,this.g+=t,this.b+=t,this}},{key:"sub",value:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}},{key:"multiply",value:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}},{key:"multiplyScalar",value:function(t){return this.r*=t,this.g*=t,this.b*=t,this}},{key:"lerp",value:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}},{key:"lerpColors",value:function(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}},{key:"lerpHSL",value:function(t,e){this.getHSL(nv),t.getHSL(ov);var i=hm(nv.h,ov.h,e),n=hm(nv.s,ov.s,e),o=hm(nv.l,ov.l,e);return this.setHSL(i,n,o),this}},{key:"setFromVector3",value:function(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}},{key:"applyMatrix3",value:function(t){var e=this.r,i=this.g,n=this.b,o=t.elements;return this.r=o[0]*e+o[3]*i+o[6]*n,this.g=o[1]*e+o[4]*i+o[7]*n,this.b=o[2]*e+o[5]*i+o[8]*n,this}},{key:"equals",value:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}},{key:"fromBufferAttribute",value:function(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.r;case 2:return t.next=4,this.g;case 4:return t.next=6,this.b;case 6:case"end":return t.stop()}}),t,this)}))}])}(),rv=new av;av.NAMES=iv;var lv=0,cv=function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).isMaterial=!0,Object.defineProperty(Vd()(t),"id",{value:lv++}),t.uuid=cm(),t.name="",t.type="Material",t.blending=1,t.side=0,t.vertexColors=!1,t.opacity=1,t.transparent=!1,t.alphaHash=!1,t.blendSrc=204,t.blendDst=205,t.blendEquation=100,t.blendSrcAlpha=null,t.blendDstAlpha=null,t.blendEquationAlpha=null,t.blendColor=new av(0,0,0),t.blendAlpha=0,t.depthFunc=3,t.depthTest=!0,t.depthWrite=!0,t.stencilWriteMask=255,t.stencilFunc=519,t.stencilRef=0,t.stencilFuncMask=255,t.stencilFail=im,t.stencilZFail=im,t.stencilZPass=im,t.stencilWrite=!1,t.clippingPlanes=null,t.clipIntersection=!1,t.clipShadows=!1,t.shadowSide=null,t.colorWrite=!0,t.precision=null,t.polygonOffset=!1,t.polygonOffsetFactor=0,t.polygonOffsetUnits=0,t.dithering=!1,t.alphaToCoverage=!1,t.premultipliedAlpha=!1,t.forceSinglePass=!1,t.visible=!0,t.toneMapped=!0,t.userData={},t.version=0,t._alphaTest=0,t}return sn()(e,t),_()(e,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(t){if(void 0!==t)for(var e in t){var i=t[e];if(void 0!==i){var n=this[e];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i:console.warn("THREE.Material: '".concat(e,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(e,"' has value of undefined."))}}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(t){var e=[];for(var i in t){var n=t[i];delete n.metadata,e.push(n)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),0!==this.side&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),204!==this.blendSrc&&(i.blendSrc=this.blendSrc),205!==this.blendDst&&(i.blendDst=this.blendDst),100!==this.blendEquation&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==im&&(i.stencilFail=this.stencilFail),this.stencilZFail!==im&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==im&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),e){var o=n(t.textures),s=n(t.images);o.length>0&&(i.textures=o),s.length>0&&(i.images=s)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,i=null;if(null!==e){var n=e.length;i=new Array(n);for(var o=0;o!==n;++o)i[o]=e[o].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}}])}(am),uv=function(t){function e(t){var i;return k()(this,e),(i=Ud(this,e)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new av(16777215),i.map=null,i.lightMap=null,i.lightMapIntensity=1,i.aoMap=null,i.aoMapIntensity=1,i.specularMap=null,i.alphaMap=null,i.envMap=null,i.envMapRotation=new Df,i.combine=0,i.reflectivity=1,i.refractionRatio=.98,i.wireframe=!1,i.wireframeLinewidth=1,i.wireframeLinecap="round",i.wireframeLinejoin="round",i.fog=!0,i.setValues(t),i}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}])}(cv);!function(){for(var t=new ArrayBuffer(4),e=new Float32Array(t),i=new Uint32Array(t),n=new Uint32Array(512),o=new Uint32Array(512),s=0;s<256;++s){var a=s-127;a<-27?(n[s]=0,n[256|s]=32768,o[s]=24,o[256|s]=24):a<-14?(n[s]=1024>>-a-14,n[256|s]=1024>>-a-14|32768,o[s]=-a-1,o[256|s]=-a-1):a<=15?(n[s]=a+15<<10,n[256|s]=a+15<<10|32768,o[s]=13,o[256|s]=13):a<128?(n[s]=31744,n[256|s]=64512,o[s]=24,o[256|s]=24):(n[s]=31744,n[256|s]=64512,o[s]=13,o[256|s]=13)}for(var r=new Uint32Array(2048),l=new Uint32Array(64),c=new Uint32Array(64),u=1;u<1024;++u){for(var p=u<<13,h=0;0==(8388608&p);)p<<=1,h-=8388608;p&=-8388609,h+=947912704,r[u]=p|h}for(var d=1024;d<2048;++d)r[d]=939524096+(d-1024<<13);for(var m=1;m<31;++m)l[m]=m<<23;l[31]=1199570944,l[32]=2147483648;for(var f=33;f<63;++f)l[f]=2147483648+(f-32<<23);l[63]=3347054592;for(var v=1;v<64;++v)32!==v&&(c[v]=1024)}();var pv=new zm,hv=new fm,dv=function(){return _()((function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(k()(this,t),Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=i,this.count=void 0!==e?e.length/i:0,this.normalized=n,this.usage=nm,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=1015,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"updateRange",get:function(){return wm("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}},{key:"setUsage",value:function(t){return this.usage=t,this}},{key:"addUpdateRange",value:function(t,e){this.updateRanges.push({start:t,count:e})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}},{key:"copyAt",value:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,o=this.itemSize;n1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(t,e),this}},{key:"getComponent",value:function(t,e){var i=this.array[t*this.itemSize+e];return this.normalized&&(i=dm(i,this.array)),i}},{key:"setComponent",value:function(t,e,i){return this.normalized&&(i=mm(i,this.array)),this.array[t*this.itemSize+e]=i,this}},{key:"getX",value:function(t){var e=this.array[t*this.itemSize];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setX",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize]=e,this}},{key:"getY",value:function(t){var e=this.array[t*this.itemSize+1];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setY",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+1]=e,this}},{key:"getZ",value:function(t){var e=this.array[t*this.itemSize+2];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setZ",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+2]=e,this}},{key:"getW",value:function(t){var e=this.array[t*this.itemSize+3];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setW",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+3]=e,this}},{key:"setXY",value:function(t,e,i){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array)),this.array[t+0]=e,this.array[t+1]=i,this}},{key:"setXYZ",value:function(t,e,i,n){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array),n=mm(n,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this}},{key:"setXYZW",value:function(t,e,i,n,o){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array),n=mm(n,this.array),o=mm(o,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=o,this}},{key:"onUpload",value:function(t){return this.onUploadCallback=t,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==nm&&(t.usage=this.usage),t}}])}(),mv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Uint16Array(t),i,n])}return sn()(e,t),_()(e)}(dv),fv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Uint32Array(t),i,n])}return sn()(e,t),_()(e)}(dv),vv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Float32Array(t),i,n])}return sn()(e,t),_()(e)}(dv),gv=0,yv=new gf,bv=new Uf,Cv=new zm,wv=new Gm,kv=new Gm,xv=new zm,_v=function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).isBufferGeometry=!0,Object.defineProperty(Vd()(t),"id",{value:gv++}),t.uuid=cm(),t.name="",t.type="BufferGeometry",t.index=null,t.attributes={},t.morphAttributes={},t.morphTargetsRelative=!1,t.groups=[],t.boundingBox=null,t.boundingSphere=null,t.drawRange={start:0,count:1/0},t.userData={},t}return sn()(e,t),_()(e,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(t){return Array.isArray(t)?this.index=new(ym(t)?fv:mv)(t,1):this.index=t,this}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"setAttribute",value:function(t,e){return this.attributes[t]=e,this}},{key:"deleteAttribute",value:function(t){return delete this.attributes[t],this}},{key:"hasAttribute",value:function(t){return void 0!==this.attributes[t]}},{key:"addGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:t,count:e,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(t,e){this.drawRange.start=t,this.drawRange.count=e}},{key:"applyMatrix4",value:function(t){var e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var n=(new vm).getNormalMatrix(t);i.applyNormalMatrix(n),i.needsUpdate=!0}var o=this.attributes.tangent;return void 0!==o&&(o.transformDirection(t),o.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(t){return yv.makeRotationFromQuaternion(t),this.applyMatrix4(yv),this}},{key:"rotateX",value:function(t){return yv.makeRotationX(t),this.applyMatrix4(yv),this}},{key:"rotateY",value:function(t){return yv.makeRotationY(t),this.applyMatrix4(yv),this}},{key:"rotateZ",value:function(t){return yv.makeRotationZ(t),this.applyMatrix4(yv),this}},{key:"translate",value:function(t,e,i){return yv.makeTranslation(t,e,i),this.applyMatrix4(yv),this}},{key:"scale",value:function(t,e,i){return yv.makeScale(t,e,i),this.applyMatrix4(yv),this}},{key:"lookAt",value:function(t){return bv.lookAt(t),bv.updateMatrix(),this.applyMatrix4(bv.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Cv).negate(),this.translate(Cv.x,Cv.y,Cv.z),this}},{key:"setFromPoints",value:function(t){for(var e=[],i=0,n=t.length;i0&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(var i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};var n=this.index;null!==n&&(t.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});var o=this.attributes;for(var s in o){var a=o[s];t.data.attributes[s]=a.toJSON(t.data)}var r={},l=!1;for(var c in this.morphAttributes){for(var u=this.morphAttributes[c],p=[],h=0,d=u.length;h0&&(r[c]=p,l=!0)}l&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);var f=this.groups;f.length>0&&(t.data.groups=JSON.parse(JSON.stringify(f)));var v=this.boundingSphere;return null!==v&&(t.data.boundingSphere={center:v.center.toArray(),radius:v.radius}),t}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var e={};this.name=t.name;var i=t.index;null!==i&&this.setIndex(i.clone(e));var n=t.attributes;for(var o in n){var s=n[o];this.setAttribute(o,s.clone(e))}var a=t.morphAttributes;for(var r in a){for(var l=[],c=a[r],u=0,p=c.length;u0&&void 0!==arguments[0]?arguments[0]:new _v,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new uv;return k()(this,e),(t=Ud(this,e)).isMesh=!0,t.type="Mesh",t.geometry=i,t.material=n,t.updateMorphTargets(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t,i){return Gd(e,"copy",this,3)([t,i]),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}},{key:"updateMorphTargets",value:function(){var t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){var i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var n=0,o=i.length;nMath.pow(t.far-t.near,2))return}Ev.copy(o).invert(),Sv.copy(t.ray).applyMatrix4(Ev),null!==i.boundingBox&&!1===Sv.intersectsBox(i.boundingBox)||this._computeIntersections(t,e,Sv)}}},{key:"_computeIntersections",value:function(t,e,i){var n,o=this.geometry,s=this.material,a=o.index,r=o.attributes.position,l=o.attributes.uv,c=o.attributes.uv1,u=o.attributes.normal,p=o.groups,h=o.drawRange;if(null!==a)if(Array.isArray(s))for(var d=0,m=p.length;di.far?null:{distance:l,point:Hv.clone(),object:t}}(t,e,i,n,Mv,Ov,Tv,zv);if(u){o&&(Lv.fromBufferAttribute(o,r),Av.fromBufferAttribute(o,l),jv.fromBufferAttribute(o,c),u.uv=ev.getInterpolation(zv,Mv,Ov,Tv,Lv,Av,jv,new fm)),s&&(Lv.fromBufferAttribute(s,r),Av.fromBufferAttribute(s,l),jv.fromBufferAttribute(s,c),u.uv1=ev.getInterpolation(zv,Mv,Ov,Tv,Lv,Av,jv,new fm)),a&&(Iv.fromBufferAttribute(a,r),Rv.fromBufferAttribute(a,l),Fv.fromBufferAttribute(a,c),u.normal=ev.getInterpolation(zv,Mv,Ov,Tv,Iv,Rv,Fv,new zm),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var p={a:r,b:l,c:c,normal:new zm,materialIndex:0};ev.getNormal(Mv,Ov,Tv,p.normal),u.face=p}return u}var Uv=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;k()(this,e),(t=Ud(this,e)).type="BoxGeometry",t.parameters={width:i,height:n,depth:o,widthSegments:s,heightSegments:a,depthSegments:r};var l=t;s=Math.floor(s),a=Math.floor(a),r=Math.floor(r);var c=[],u=[],p=[],h=[],d=0,m=0;function f(t,e,i,n,o,s,a,r,f,v,g){for(var y=s/f,b=a/v,C=s/2,w=a/2,k=r/2,x=f+1,_=v+1,E=0,S=0,D=new zm,P=0;P<_;P++)for(var M=P*b-w,O=0;O0?1:-1,p.push(D.x,D.y,D.z),h.push(O/f),h.push(1-P/v),E+=1}for(var N=0;N0&&void 0!==arguments[0]?arguments[0]:new zm(1,0,0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,t),this.isPlane=!0,this.normal=e,this.constant=i}),[{key:"set",value:function(t,e){return this.normal.copy(t),this.constant=e,this}},{key:"setComponents",value:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this}},{key:"setFromNormalAndCoplanarPoint",value:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(t,e,i){var n=Xv.subVectors(i,e).cross(Zv.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}},{key:"copy",value:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this}},{key:"normalize",value:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(t){return this.normal.dot(t)+this.constant}},{key:"distanceToSphere",value:function(t){return this.distanceToPoint(t.center)-t.radius}},{key:"projectPoint",value:function(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}},{key:"intersectLine",value:function(t,e){var i=t.delta(Xv),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;var o=-(t.start.dot(this.normal)+this.constant)/n;return o<0||o>1?null:e.copy(t.start).addScaledVector(i,o)}},{key:"intersectsLine",value:function(t){var e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}},{key:"intersectsBox",value:function(t){return t.intersectsPlane(this)}},{key:"intersectsSphere",value:function(t){return t.intersectsPlane(this)}},{key:"coplanarPoint",value:function(t){return t.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(t,e){var i=e||Kv.getNormalMatrix(t),n=this.coplanarPoint(Xv).applyMatrix4(t),o=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(o),this}},{key:"translate",value:function(t){return this.constant-=t.dot(this.normal),this}},{key:"equals",value:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Qv=new lf,tg=new zm,eg=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new $v,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new $v,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new $v,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new $v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new $v,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new $v;k()(this,t),this.planes=[e,i,n,o,s,a]}),[{key:"set",value:function(t,e,i,n,o,s){var a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(o),a[5].copy(s),this}},{key:"copy",value:function(t){for(var e=this.planes,i=0;i<6;i++)e[i].copy(t.planes[i]);return this}},{key:"setFromProjectionMatrix",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=this.planes,n=t.elements,o=n[0],s=n[1],a=n[2],r=n[3],l=n[4],c=n[5],u=n[6],p=n[7],h=n[8],d=n[9],m=n[10],f=n[11],v=n[12],g=n[13],y=n[14],b=n[15];if(i[0].setComponents(r-o,p-l,f-h,b-v).normalize(),i[1].setComponents(r+o,p+l,f+h,b+v).normalize(),i[2].setComponents(r+s,p+c,f+d,b+g).normalize(),i[3].setComponents(r-s,p-c,f-d,b-g).normalize(),i[4].setComponents(r-a,p-u,f-m,b-y).normalize(),e===om)i[5].setComponents(r+a,p+u,f+m,b+y).normalize();else{if(e!==sm)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);i[5].setComponents(a,u,m,y).normalize()}return this}},{key:"intersectsObject",value:function(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),Qv.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{var e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Qv.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Qv)}},{key:"intersectsSprite",value:function(t){return Qv.center.set(0,0,0),Qv.radius=.7071067811865476,Qv.applyMatrix4(t.matrixWorld),this.intersectsSphere(Qv)}},{key:"intersectsSphere",value:function(t){for(var e=this.planes,i=t.center,n=-t.radius,o=0;o<6;o++)if(e[o].distanceToPoint(i)0?t.max.x:t.min.x,tg.y=n.normal.y>0?t.max.y:t.min.y,tg.z=n.normal.z>0?t.max.z:t.min.z,n.distanceToPoint(tg)<0)return!1}return!0}},{key:"containsPoint",value:function(t){for(var e=this.planes,i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}();var ig=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,e),(t=Ud(this,e)).type="PlaneGeometry",t.parameters={width:i,height:n,widthSegments:o,heightSegments:s};for(var a=i/2,r=n/2,l=Math.floor(o),c=Math.floor(s),u=l+1,p=c+1,h=i/l,d=n/c,m=[],f=[],v=[],g=[],y=0;y 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},og={common:{diffuse:{value:new av(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new vm},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new vm}},envmap:{envMap:{value:null},envMapRotation:{value:new vm},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new vm}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new vm}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new vm},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new vm},normalScale:{value:new fm(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new vm},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new vm}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new vm}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new vm}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new av(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new av(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0},uvTransform:{value:new vm}},sprite:{diffuse:{value:new av(16777215)},opacity:{value:1},center:{value:new fm(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new vm},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0}}},sg={basic:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.fog]),vertexShader:ng.meshbasic_vert,fragmentShader:ng.meshbasic_frag},lambert:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.fog,og.lights,{emissive:{value:new av(0)}}]),vertexShader:ng.meshlambert_vert,fragmentShader:ng.meshlambert_frag},phong:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.fog,og.lights,{emissive:{value:new av(0)},specular:{value:new av(1118481)},shininess:{value:30}}]),vertexShader:ng.meshphong_vert,fragmentShader:ng.meshphong_frag},standard:{uniforms:Yv([og.common,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.roughnessmap,og.metalnessmap,og.fog,og.lights,{emissive:{value:new av(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ng.meshphysical_vert,fragmentShader:ng.meshphysical_frag},toon:{uniforms:Yv([og.common,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.gradientmap,og.fog,og.lights,{emissive:{value:new av(0)}}]),vertexShader:ng.meshtoon_vert,fragmentShader:ng.meshtoon_frag},matcap:{uniforms:Yv([og.common,og.bumpmap,og.normalmap,og.displacementmap,og.fog,{matcap:{value:null}}]),vertexShader:ng.meshmatcap_vert,fragmentShader:ng.meshmatcap_frag},points:{uniforms:Yv([og.points,og.fog]),vertexShader:ng.points_vert,fragmentShader:ng.points_frag},dashed:{uniforms:Yv([og.common,og.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ng.linedashed_vert,fragmentShader:ng.linedashed_frag},depth:{uniforms:Yv([og.common,og.displacementmap]),vertexShader:ng.depth_vert,fragmentShader:ng.depth_frag},normal:{uniforms:Yv([og.common,og.bumpmap,og.normalmap,og.displacementmap,{opacity:{value:1}}]),vertexShader:ng.meshnormal_vert,fragmentShader:ng.meshnormal_frag},sprite:{uniforms:Yv([og.sprite,og.fog]),vertexShader:ng.sprite_vert,fragmentShader:ng.sprite_frag},background:{uniforms:{uvTransform:{value:new vm},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ng.background_vert,fragmentShader:ng.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new vm}},vertexShader:ng.backgroundCube_vert,fragmentShader:ng.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ng.cube_vert,fragmentShader:ng.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ng.equirect_vert,fragmentShader:ng.equirect_frag},distanceRGBA:{uniforms:Yv([og.common,og.displacementmap,{referencePosition:{value:new zm},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ng.distanceRGBA_vert,fragmentShader:ng.distanceRGBA_frag},shadow:{uniforms:Yv([og.lights,og.fog,{color:{value:new av(0)},opacity:{value:1}}]),vertexShader:ng.shadow_vert,fragmentShader:ng.shadow_frag}};sg.physical={uniforms:Yv([sg.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new vm},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new vm},clearcoatNormalScale:{value:new fm(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new vm},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new vm},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new vm},sheen:{value:0},sheenColor:{value:new av(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new vm},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new vm},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new vm},transmissionSamplerSize:{value:new fm},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new vm},attenuationDistance:{value:0},attenuationColor:{value:new av(0)},specularColor:{value:new av(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new vm},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new vm},anisotropyVector:{value:new fm},anisotropyMap:{value:null},anisotropyMapTransform:{value:new vm}}]),vertexShader:ng.meshphysical_vert,fragmentShader:ng.meshphysical_frag};new Df,new gf;var ag=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return k()(this,e),(t=Ud(this,e)).isOrthographicCamera=!0,t.type="OrthographicCamera",t.zoom=1,t.view=null,t.left=i,t.right=n,t.top=o,t.bottom=s,t.near=a,t.far=r,t.updateProjectionMatrix(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t,i){return Gd(e,"copy",this,3)([t,i]),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}},{key:"setViewOffset",value:function(t,e,i,n,o,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,o=i-t,s=i+t,a=n+e,r=n-e;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s=(o+=l*this.view.offsetX)+l*this.view.width,r=(a-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,r,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(t){var i=Gd(e,"toJSON",this,3)([t]);return i.object.zoom=this.zoom,i.object.left=this.left,i.object.right=this.right,i.object.top=this.top,i.object.bottom=this.bottom,i.object.near=this.near,i.object.far=this.far,null!==this.view&&(i.object.view=Object.assign({},this.view)),i}}])}(Jv),rg=(new ag,new av,(1+Math.sqrt(5))/2),lg=1/rg;new zm(-rg,lg,0),new zm(rg,lg,0),new zm(-lg,0,rg),new zm(lg,0,rg),new zm(0,rg,-lg),new zm(0,rg,lg),new zm(-1,1,-1),new zm(1,1,-1),new zm(-1,1,1),new zm(1,1,1);var cg=function(t){function e(t,i,n,o,s,a,r,l,c,u){var p;if(k()(this,e),1026!==(u=void 0!==u?u:1026)&&1027!==u)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===n&&1026===u&&(n=Wd),void 0===n&&1027===u&&(n=Yd),(p=Ud(this,e,[null,o,s,a,r,l,u,n,c])).isDepthTexture=!0,p.image={width:t,height:i},p.magFilter=void 0!==r?r:1003,p.minFilter=void 0!==l?l:1003,p.flipY=!1,p.generateMipmaps=!1,p.compareFunction=null,p}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.compareFunction=t.compareFunction,this}},{key:"toJSON",value:function(t){var i=Gd(e,"toJSON",this,3)([t]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(Am),ug=(new Am,new cg(1,1));ug.compareFunction=515;new Im,new Rm,new qv,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new Df,new gf;new zm,new zm,new zm,new zm,new fm,new fm,new gf,new zm,new zm,new zm,new fm,new fm,new fm;new zm,new zm,new zm,new jm,new jm,new zm,new gf,new zm,new lf,new gf,new vf,new gf,new gf,new gf,new gf,new Gm,new gf,new Vv,new lf;var pg=function(){return _()((function t(){k()(this,t),this.index=0,this.pool=[],this.list=[]}),[{key:"push",value:function(t,e){var i=this.pool,n=this.list;this.index>=i.length&&i.push({start:-1,count:-1,z:-1});var o=i[this.index];n.push(o),this.index++,o.start=t.start,o.count=t.count,o.z=e}},{key:"reset",value:function(){this.list.length=0,this.index=0}}])}();new gf,new gf,new gf,new gf,new eg,new Gm,new lf,new zm,new pg,new Vv;new zm,new zm,new gf,new vf,new lf,new zm,new zm;new zm,new zm,new gf,new vf,new lf,new zm;var hg=function(){return _()((function t(){k()(this,t),this.type="Curve",this.arcLengthDivisions=200}),[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)}},{key:"getPoints",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e}},{key:"getSpacedPoints",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e}},{key:"getLength",value:function(){var t=this.getLengths();return t[t.length-1]}},{key:"getLengths",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0),o=0;i.push(0);for(var s=1;s<=t;s++)o+=(e=this.getPoint(s/t)).distanceTo(n),i.push(o),n=e;return this.cacheArcLengths=i,i}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(t,e){var i,n=this.getLengths(),o=0,s=n.length;i=e||t*n[s-1];for(var a,r=0,l=s-1;r<=l;)if((a=n[o=Math.floor(r+(l-r)/2)]-i)<0)r=o+1;else{if(!(a>0)){l=o;break}l=o-1}if(n[o=l]===i)return o/(s-1);var c=n[o];return(o+(i-c)/(n[o+1]-c))/(s-1)}},{key:"getTangent",value:function(t,e){var i=1e-4,n=t-i,o=t+i;n<0&&(n=0),o>1&&(o=1);var s=this.getPoint(n),a=this.getPoint(o),r=e||(s.isVector2?new fm:new zm);return r.copy(a).sub(s).normalize(),r}},{key:"getTangentAt",value:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)}},{key:"computeFrenetFrames",value:function(t,e){for(var i=new zm,n=[],o=[],s=[],a=new zm,r=new gf,l=0;l<=t;l++){var c=l/t;n[l]=this.getTangentAt(c,new zm)}o[0]=new zm,s[0]=new zm;var u=Number.MAX_VALUE,p=Math.abs(n[0].x),h=Math.abs(n[0].y),d=Math.abs(n[0].z);p<=u&&(u=p,i.set(1,0,0)),h<=u&&(u=h,i.set(0,1,0)),d<=u&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),o[0].crossVectors(n[0],a),s[0].crossVectors(n[0],o[0]);for(var m=1;m<=t;m++){if(o[m]=o[m-1].clone(),s[m]=s[m-1].clone(),a.crossVectors(n[m-1],n[m]),a.length()>Number.EPSILON){a.normalize();var f=Math.acos(um(n[m-1].dot(n[m]),-1,1));o[m].applyMatrix4(r.makeRotationAxis(a,f))}s[m].crossVectors(n[m],o[m])}if(!0===e){var v=Math.acos(um(o[0].dot(o[t]),-1,1));v/=t,n[0].dot(a.crossVectors(o[0],o[t]))>0&&(v=-v);for(var g=1;g<=t;g++)o[g].applyMatrix4(r.makeRotationAxis(n[g],v*g)),s[g].crossVectors(n[g],o[g])}return{tangents:n,normals:o,binormals:s}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}},{key:"toJSON",value:function(){var t={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}},{key:"fromJSON",value:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}])}(),dg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return k()(this,e),(t=Ud(this,e)).isEllipseCurve=!0,t.type="EllipseCurve",t.aX=i,t.aY=n,t.xRadius=o,t.yRadius=s,t.aStartAngle=a,t.aEndAngle=r,t.aClockwise=l,t.aRotation=c,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=2*Math.PI,o=this.aEndAngle-this.aStartAngle,s=Math.abs(o)n;)o-=n;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return k()(this,e),(t=Ud(this,e)).isCatmullRomCurve3=!0,t.type="CatmullRomCurve3",t.points=i,t.closed=n,t.curveType=o,t.tension=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=n,s=this.points,a=s.length,r=(a-(this.closed?0:1))*t,l=Math.floor(r),c=r-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/a)+1)*a:0===c&&l===a-1&&(l=a-2,c=1),this.closed||l>0?e=s[(l-1)%a]:(vg.subVectors(s[0],s[1]).add(s[0]),e=vg);var u=s[l%a],p=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fm,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new fm;return k()(this,e),(t=Ud(this,e)).isCubicBezierCurve=!0,t.type="CubicBezierCurve",t.v0=i,t.v1=n,t.v2=o,t.v3=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(xg(t,n.x,o.x,s.x,a.x),xg(t,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}])}(hg),Eg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new zm;return k()(this,e),(t=Ud(this,e)).isCubicBezierCurve3=!0,t.type="CubicBezierCurve3",t.v0=i,t.v1=n,t.v2=o,t.v3=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(xg(t,n.x,o.x,s.x,a.x),xg(t,n.y,o.y,s.y,a.y),xg(t,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}])}(hg),Sg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm;return k()(this,e),(t=Ud(this,e)).isLineCurve=!0,t.type="LineCurve",t.v1=i,t.v2=n,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}},{key:"getPointAt",value:function(t,e){return this.getPoint(t,e)}},{key:"getTangent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm;return e.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(t,e){return this.getTangent(t,e)}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Dg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm;return k()(this,e),(t=Ud(this,e)).isLineCurve3=!0,t.type="LineCurve3",t.v1=i,t.v2=n,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}},{key:"getPointAt",value:function(t,e){return this.getPoint(t,e)}},{key:"getTangent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm;return e.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(t,e){return this.getTangent(t,e)}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Pg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fm;return k()(this,e),(t=Ud(this,e)).isQuadraticBezierCurve=!0,t.type="QuadraticBezierCurve",t.v0=i,t.v1=n,t.v2=o,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.v0,o=this.v1,s=this.v2;return i.set(kg(t,n.x,o.x,s.x),kg(t,n.y,o.y,s.y)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Mg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm;return k()(this,e),(t=Ud(this,e)).isQuadraticBezierCurve3=!0,t.type="QuadraticBezierCurve3",t.v0=i,t.v1=n,t.v2=o,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e,n=this.v0,o=this.v1,s=this.v2;return i.set(kg(t,n.x,o.x,s.x),kg(t,n.y,o.y,s.y),kg(t,n.z,o.z,s.z)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Og=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return k()(this,e),(t=Ud(this,e)).isSplineCurve=!0,t.type="SplineCurve",t.points=i,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.points,o=(n.length-1)*t,s=Math.floor(o),a=o-s,r=n[0===s?s:s-1],l=n[s],c=n[s>n.length-2?n.length-1:s+1],u=n[s>n.length-3?n.length-1:s+2];return i.set(wg(a,r.x,l.x,c.x,u.x),wg(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(t){Gd(e,"copy",this,3)([t]),this.points=[];for(var i=0,n=t.points.length;i0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);return this.currentPoint.copy(u),this}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.currentPoint.copy(t.currentPoint),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.currentPoint=this.currentPoint.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.currentPoint.fromArray(t.currentPoint),this}}])}(function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).type="CurvePath",t.curves=[],t.autoClose=!1,t}return sn()(e,t),_()(e,[{key:"add",value:function(t){this.curves.push(t)}},{key:"closePath",value:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);if(!t.equals(e)){var i=!0===t.isVector2?"LineCurve":"LineCurve3";this.curves.push(new Tg[i](e,t))}return this}},{key:"getPoint",value:function(t,e){for(var i=t*this.getLength(),n=this.getCurveLengths(),o=0;o=i){var s=n[o]-i,a=this.curves[o],r=a.getLength(),l=0===r?0:1-s/r;return a.getPointAt(l,e)}o++}return null}},{key:"getLength",value:function(){var t=this.getCurveLengths();return t[t.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i0&&void 0!==arguments[0]?arguments[0]:40,e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e}},{key:"getPoints",value:function(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,i=[],n=0,o=this.curves;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},{key:"copy",value:function(t){Gd(e,"copy",this,3)([t]),this.curves=[];for(var i=0,n=t.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new fm(0,-.5),new fm(.5,0),new fm(0,.5)],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="LatheGeometry",t.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=um(s,0,2*Math.PI);for(var a=[],r=[],l=[],c=[],u=[],p=1/n,h=new zm,d=new fm,m=new zm,f=new zm,v=new zm,g=0,y=0,b=0;b<=i.length-1;b++)switch(b){case 0:g=i[b+1].x-i[b].x,y=i[b+1].y-i[b].y,m.x=1*y,m.y=-g,m.z=0*y,v.copy(m),m.normalize(),c.push(m.x,m.y,m.z);break;case i.length-1:c.push(v.x,v.y,v.z);break;default:g=i[b+1].x-i[b].x,y=i[b+1].y-i[b].y,m.x=1*y,m.y=-g,m.z=0*y,f.copy(m),m.x+=v.x,m.y+=v.y,m.z+=v.z,m.normalize(),c.push(m.x,m.y,m.z),v.copy(f)}for(var C=0;C<=n;C++)for(var w=o+C*p*s,x=Math.sin(w),_=Math.cos(w),E=0;E<=i.length-1;E++){h.x=i[E].x*x,h.y=i[E].y,h.z=i[E].x*_,r.push(h.x,h.y,h.z),d.x=C/n,d.y=E/(i.length-1),l.push(d.x,d.y);var S=c[3*E+0]*x,D=c[3*E+1],P=c[3*E+0]*_;u.push(S,D,P)}for(var M=0;M0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;k()(this,e);var a=new Ng;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(t=Ud(this,e,[a.getPoints(o),s])).type="CapsuleGeometry",t.parameters={radius:i,length:n,capSegments:o,radialSegments:s},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.length,t.capSegments,t.radialSegments)}}])}(Bg),Ag=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="CircleGeometry",t.parameters={radius:i,segments:n,thetaStart:o,thetaLength:s},n=Math.max(3,n);var a=[],r=[],l=[],c=[],u=new zm,p=new fm;r.push(0,0,0),l.push(0,0,1),c.push(.5,.5);for(var h=0,d=3;h<=n;h++,d+=3){var m=o+h/n*s;u.x=i*Math.cos(m),u.y=i*Math.sin(m),r.push(u.x,u.y,u.z),l.push(0,0,1),p.x=(r[d]/i+1)/2,p.y=(r[d+1]/i+1)/2,c.push(p.x,p.y)}for(var f=1;f<=n;f++)a.push(f,f+1,0);return t.setIndex(a),t.setAttribute("position",new vv(r,3)),t.setAttribute("normal",new vv(l,3)),t.setAttribute("uv",new vv(c,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.segments,t.thetaStart,t.thetaLength)}}])}(_v),jg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="CylinderGeometry",t.parameters={radiusTop:i,radiusBottom:n,height:o,radialSegments:s,heightSegments:a,openEnded:r,thetaStart:l,thetaLength:c};var u=t;s=Math.floor(s),a=Math.floor(a);var p=[],h=[],d=[],m=[],f=0,v=[],g=o/2,y=0;function b(t){for(var e=f,o=new fm,a=new zm,r=0,v=!0===t?i:n,b=!0===t?1:-1,C=1;C<=s;C++)h.push(0,g*b,0),d.push(0,b,0),m.push(.5,.5),f++;for(var w=f,k=0;k<=s;k++){var x=k/s*c+l,_=Math.cos(x),E=Math.sin(x);a.x=v*E,a.y=g*b,a.z=v*_,h.push(a.x,a.y,a.z),d.push(0,b,0),o.x=.5*_+.5,o.y=.5*E*b+.5,m.push(o.x,o.y),f++}for(var S=0;S0&&b(!0),n>0&&b(!1)),t.setIndex(p),t.setAttribute("position",new vv(h,3)),t.setAttribute("normal",new vv(d,3)),t.setAttribute("uv",new vv(m,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}])}(_v),Ig=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2*Math.PI;return k()(this,e),(t=Ud(this,e,[0,i,n,o,s,a,r,l])).type="ConeGeometry",t.parameters={radius:i,height:n,radialSegments:o,heightSegments:s,openEnded:a,thetaStart:r,thetaLength:l},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}])}(jg),Rg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;k()(this,e),(t=Ud(this,e)).type="PolyhedronGeometry",t.parameters={vertices:i,indices:n,radius:o,detail:s};var a=[],r=[];function l(t,e,i,n){for(var o=n+1,s=[],a=0;a<=o;a++){s[a]=[];for(var r=t.clone().lerp(i,a/o),l=e.clone().lerp(i,a/o),u=o-a,p=0;p<=u;p++)s[a][p]=0===p&&a===o?r:r.clone().lerp(l,p/u)}for(var h=0;h.9&&s<.1&&(e<.2&&(r[t+0]+=1),i<.2&&(r[t+2]+=1),n<.2&&(r[t+4]+=1))}}()}(),t.setAttribute("position",new vv(a,3)),t.setAttribute("normal",new vv(a.slice(),3)),t.setAttribute("uv",new vv(r,2)),0===s?t.computeVertexNormals():t.normalizeNormals(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.vertices,t.indices,t.radius,t.details)}}])}(_v),Fg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,e);var o=(1+Math.sqrt(5))/2,s=1/o;return(t=Ud(this,e,[[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-s,-o,0,-s,o,0,s,-o,0,s,o,-s,-o,0,-s,o,0,s,-o,0,s,o,0,-o,0,-s,o,0,-s,-o,0,s,o,0,s],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],i,n])).type="DodecahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),zg=new zm,Hg=new zm,Vg=new zm,Gg=new ev,Ug=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(k()(this,e),(t=Ud(this,e)).type="EdgesGeometry",t.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(lm*n),r=i.getIndex(),l=i.getAttribute("position"),c=r?r.count:l.count,u=[0,0,0],p=["a","b","c"],h=new Array(3),d={},m=[],f=0;f0)for(s=e;s=e;s-=n)a=dy(s,t[s],t[s+1],a);return a&&ry(a,a.next)&&(my(a),a=a.next),a}function Jg(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!ry(n,n.next)&&0!==ay(n.prev,n,n.next))n=n.next;else{if(my(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function qg(t,e,i,n,o,s,a){if(t){!a&&s&&function(t,e,i,n){var o=t;do{0===o.z&&(o.z=iy(o.x,o.y,e,i,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,i,n,o,s,a,r,l,c=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,r=0,e=0;e0||l>0&&n;)0!==r&&(0===l||!n||i.z<=n.z)?(o=i,i=i.nextZ,r--):(o=n,n=n.nextZ,l--),s?s.nextZ=o:t=o,o.prevZ=s,s=o;i=n}s.nextZ=null,c*=2}while(a>1)}(o)}(t,n,o,s);for(var r,l,c=t;t.prev!==t.next;)if(r=t.prev,l=t.next,s?Zg(t,n,o,s):Xg(t))e.push(r.i/i|0),e.push(t.i/i|0),e.push(l.i/i|0),my(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?qg(t=Kg(Jg(t),e,i),e,i,n,o,s,2):2===a&&$g(t,e,i,n,o,s):qg(Jg(t),e,i,n,o,s,1);break}}}function Xg(t){var e=t.prev,i=t,n=t.next;if(ay(e,i,n)>=0)return!1;for(var o=e.x,s=i.x,a=n.x,r=e.y,l=i.y,c=n.y,u=os?o>a?o:a:s>a?s:a,d=r>l?r>c?r:c:l>c?l:c,m=n.next;m!==e;){if(m.x>=u&&m.x<=h&&m.y>=p&&m.y<=d&&oy(o,r,s,l,a,c,m.x,m.y)&&ay(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Zg(t,e,i,n){var o=t.prev,s=t,a=t.next;if(ay(o,s,a)>=0)return!1;for(var r=o.x,l=s.x,c=a.x,u=o.y,p=s.y,h=a.y,d=rl?r>c?r:c:l>c?l:c,v=u>p?u>h?u:h:p>h?p:h,g=iy(d,m,e,i,n),y=iy(f,v,e,i,n),b=t.prevZ,C=t.nextZ;b&&b.z>=g&&C&&C.z<=y;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&oy(r,u,l,p,c,h,b.x,b.y)&&ay(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&oy(r,u,l,p,c,h,C.x,C.y)&&ay(C.prev,C,C.next)>=0)return!1;C=C.nextZ}for(;b&&b.z>=g;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&oy(r,u,l,p,c,h,b.x,b.y)&&ay(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;C&&C.z<=y;){if(C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&oy(r,u,l,p,c,h,C.x,C.y)&&ay(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function Kg(t,e,i){var n=t;do{var o=n.prev,s=n.next.next;!ry(o,s)&&ly(o,n,n.next,s)&&py(o,s)&&py(s,o)&&(e.push(o.i/i|0),e.push(n.i/i|0),e.push(s.i/i|0),my(n),my(n.next),n=t=s),n=n.next}while(n!==t);return Jg(n)}function $g(t,e,i,n,o,s){var a=t;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&sy(a,r)){var l=hy(a,r);return a=Jg(a,a.next),l=Jg(l,l.next),qg(a,e,i,n,o,s,0),void qg(l,e,i,n,o,s,0)}r=r.next}a=a.next}while(a!==t)}function Qg(t,e){return t.x-e.x}function ty(t,e){var i=function(t,e){var i,n=e,o=-1/0,s=t.x,a=t.y;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var r=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(r<=s&&r>o&&(o=r,i=n.x=n.x&&n.x>=u&&s!==n.x&&oy(ai.x||n.x===i.x&&ey(i,n)))&&(i=n,h=l)),n=n.next}while(n!==c);return i}(t,e);if(!i)return e;var n=hy(i,t);return Jg(n,n.next),Jg(i,i.next)}function ey(t,e){return ay(t.prev,t,e.prev)<0&&ay(e.next,t,t.next)<0}function iy(t,e,i,n,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function ny(t){var e=t,i=t;do{(e.x=(t-a)*(s-r)&&(t-a)*(n-r)>=(i-a)*(e-r)&&(i-a)*(s-r)>=(o-a)*(n-r)}function sy(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&ly(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(py(t,e)&&py(e,t)&&function(t,e){var i=t,n=!1,o=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&o<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(ay(t.prev,t,e.prev)||ay(t,e.prev,e))||ry(t,e)&&ay(t.prev,t,t.next)>0&&ay(e.prev,e,e.next)>0)}function ay(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function ry(t,e){return t.x===e.x&&t.y===e.y}function ly(t,e,i,n){var o=uy(ay(t,e,i)),s=uy(ay(t,e,n)),a=uy(ay(i,n,t)),r=uy(ay(i,n,e));return o!==s&&a!==r||!(0!==o||!cy(t,i,e))||!(0!==s||!cy(t,n,e))||!(0!==a||!cy(i,t,n))||!(0!==r||!cy(i,e,n))}function cy(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function uy(t){return t>0?1:t<0?-1:0}function py(t,e){return ay(t.prev,t,t.next)<0?ay(t,e,t.next)>=0&&ay(t,t.prev,e)>=0:ay(t,e,t.prev)<0||ay(t,t.next,e)<0}function hy(t,e){var i=new fy(t.i,t.x,t.y),n=new fy(e.i,e.x,e.y),o=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=o,o.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function dy(t,e,i,n){var o=new fy(t,e,i);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function my(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fy(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}var vy=function(){function t(){k()(this,t)}return _()(t,null,[{key:"area",value:function(t){for(var e=t.length,i=0,n=e-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:2,u=e&&e.length,p=u?e[0]*c:t.length,h=Yg(t,0,p,c,!0),d=[];if(!h||h.next===h.prev)return d;if(u&&(h=function(t,e,i,n){var o,s,a,r=[];for(o=0,s=e.length;o80*c){i=o=t[0],n=s=t[1];for(var m=c;mo&&(o=a),r>s&&(s=r);l=0!==(l=Math.max(o-i,s-n))?32767/l:0}return qg(h,d,c,i,n,l,0),d}(i,n),l=0;l2&&t[e-1].equals(t[0])&&t.pop()}function yy(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new Wg([new fm(.5,.5),new fm(-.5,.5),new fm(-.5,-.5),new fm(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(t=Ud(this,e)).type="ExtrudeGeometry",t.parameters={shapes:i,options:n},i=Array.isArray(i)?i:[i];for(var o=t,s=[],a=[],r=0,l=i.length;rNumber.EPSILON){var h=Math.sqrt(u),d=Math.sqrt(l*l+c*c),m=e.x-r/h,f=e.y+a/h,v=((i.x-c/d-m)*c-(i.y+l/d-f)*l)/(a*c-r*l),g=(n=m+a*v-t.x)*n+(o=f+r*v-t.y)*o;if(g<=2)return new fm(n,o);s=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(r)===Math.sign(c)&&(y=!0),y?(n=-r,o=a,s=Math.sqrt(u)):(n=a,o=r,s=Math.sqrt(u/2))}return new fm(n/s,o/s)}for(var I=[],R=0,F=M.length,z=F-1,H=R+1;R=0;gt--){for(var yt=gt/y,bt=f*Math.cos(yt*Math.PI/2),Ct=v*Math.sin(yt*Math.PI/2)+g,wt=0,kt=M.length;wt=0;){var n=i,o=i-1;o<0&&(o=t.length-1);for(var s=0,a=h+2*y;s0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,e);var o=(1+Math.sqrt(5))/2;return(t=Ud(this,e,[[-1,o,0,1,o,0,-1,-o,0,1,-o,0,0,-1,o,0,1,o,0,-1,-o,0,1,-o,o,0,-1,o,0,1,-o,0,-1,-o,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],i,n])).type="IcosahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),ky=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k()(this,e),(t=Ud(this,e,[[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],i,n])).type="OctahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),xy=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="RingGeometry",t.parameters={innerRadius:i,outerRadius:n,thetaSegments:o,phiSegments:s,thetaStart:a,thetaLength:r},o=Math.max(3,o);for(var l=[],c=[],u=[],p=[],h=i,d=(n-i)/(s=Math.max(1,s)),m=new zm,f=new fm,v=0;v<=s;v++){for(var g=0;g<=o;g++){var y=a+g/o*r;m.x=h*Math.cos(y),m.y=h*Math.sin(y),c.push(m.x,m.y,m.z),u.push(0,0,1),f.x=(m.x/n+1)/2,f.y=(m.y/n+1)/2,p.push(f.x,f.y)}h+=d}for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:new Wg([new fm(0,.5),new fm(-.5,-.5),new fm(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;k()(this,e),(t=Ud(this,e)).type="ShapeGeometry",t.parameters={shapes:i,curveSegments:n};var o=[],s=[],a=[],r=[],l=0,c=0;if(!1===Array.isArray(i))p(i);else for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Math.PI;k()(this,e),(t=Ud(this,e)).type="SphereGeometry",t.parameters={radius:i,widthSegments:n,heightSegments:o,phiStart:s,phiLength:a,thetaStart:r,thetaLength:l},n=Math.max(3,Math.floor(n)),o=Math.max(2,Math.floor(o));for(var c=Math.min(r+l,Math.PI),u=0,p=[],h=new zm,d=new zm,m=[],f=[],v=[],g=[],y=0;y<=o;y++){var b=[],C=y/o,w=0;0===y&&0===r?w=.5/n:y===o&&c===Math.PI&&(w=-.5/n);for(var x=0;x<=n;x++){var _=x/n;h.x=-i*Math.cos(s+_*a)*Math.sin(r+C*l),h.y=i*Math.cos(r+C*l),h.z=i*Math.sin(s+_*a)*Math.sin(r+C*l),f.push(h.x,h.y,h.z),d.copy(h).normalize(),v.push(d.x,d.y,d.z),g.push(_+w,1-C),b.push(u++)}p.push(b)}for(var E=0;E0)&&m.push(D,P,O),(E!==o-1||c0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k()(this,e),(t=Ud(this,e,[[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],i,n])).type="TetrahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),Dy=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:48,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="TorusGeometry",t.parameters={radius:i,tube:n,radialSegments:o,tubularSegments:s,arc:a},o=Math.floor(o),s=Math.floor(s);for(var r=[],l=[],c=[],u=[],p=new zm,h=new zm,d=new zm,m=0;m<=o;m++)for(var f=0;f<=s;f++){var v=f/s*a,g=m/o*Math.PI*2;h.x=(i+n*Math.cos(g))*Math.cos(v),h.y=(i+n*Math.cos(g))*Math.sin(v),h.z=n*Math.sin(g),l.push(h.x,h.y,h.z),p.x=i*Math.cos(v),p.y=i*Math.sin(v),d.subVectors(h,p).normalize(),c.push(d.x,d.y,d.z),u.push(f/s),u.push(m/o)}for(var y=1;y<=o;y++)for(var b=1;b<=s;b++){var C=(s+1)*y+b-1,w=(s+1)*(y-1)+b-1,x=(s+1)*(y-1)+b,_=(s+1)*y+b;r.push(C,w,_),r.push(w,x,_)}return t.setIndex(r),t.setAttribute("position",new vv(l,3)),t.setAttribute("normal",new vv(c,3)),t.setAttribute("uv",new vv(u,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}}])}(_v),Py=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3;k()(this,e),(t=Ud(this,e)).type="TorusKnotGeometry",t.parameters={radius:i,tube:n,tubularSegments:o,radialSegments:s,p:a,q:r},o=Math.floor(o),s=Math.floor(s);for(var l=[],c=[],u=[],p=[],h=new zm,d=new zm,m=new zm,f=new zm,v=new zm,g=new zm,y=new zm,b=0;b<=o;++b){var C=b/o*a*Math.PI*2;N(C,a,r,i,m),N(C+.01,a,r,i,f),g.subVectors(f,m),y.addVectors(f,m),v.crossVectors(g,y),y.crossVectors(v,g),v.normalize(),y.normalize();for(var w=0;w<=s;++w){var x=w/s*Math.PI*2,_=-n*Math.cos(x),E=n*Math.sin(x);h.x=m.x+(_*y.x+E*v.x),h.y=m.y+(_*y.y+E*v.y),h.z=m.z+(_*y.z+E*v.z),c.push(h.x,h.y,h.z),d.subVectors(h,m).normalize(),u.push(d.x,d.y,d.z),p.push(b/o),p.push(w/s)}}for(var S=1;S<=o;S++)for(var D=1;D<=s;D++){var P=(s+1)*(S-1)+(D-1),M=(s+1)*S+(D-1),O=(s+1)*S+D,T=(s+1)*(S-1)+D;l.push(P,M,T),l.push(M,O,T)}function N(t,e,i,n,o){var s=Math.cos(t),a=Math.sin(t),r=i/e*t,l=Math.cos(r);o.x=n*(2+l)*.5*s,o.y=n*(2+l)*a*.5,o.z=n*Math.sin(r)*.5}return t.setIndex(l),t.setAttribute("position",new vv(c,3)),t.setAttribute("normal",new vv(u,3)),t.setAttribute("uv",new vv(p,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q)}}])}(_v),My=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Mg(new zm(-1,-1,0),new zm(-1,1,0),new zm(1,1,0)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];k()(this,e),(t=Ud(this,e)).type="TubeGeometry",t.parameters={path:i,tubularSegments:n,radius:o,radialSegments:s,closed:a};var r=i.computeFrenetFrames(n,a);t.tangents=r.tangents,t.normals=r.normals,t.binormals=r.binormals;var l=new zm,c=new zm,u=new fm,p=new zm,h=[],d=[],m=[],f=[];function v(t){p=i.getPointAt(t/n,p);for(var e=r.normals[t],a=r.binormals[t],u=0;u<=s;u++){var m=u/s*Math.PI*2,f=Math.sin(m),v=-Math.cos(m);c.x=v*e.x+f*a.x,c.y=v*e.y+f*a.y,c.z=v*e.z+f*a.z,c.normalize(),d.push(c.x,c.y,c.z),l.x=p.x+o*c.x,l.y=p.y+o*c.y,l.z=p.z+o*c.z,h.push(l.x,l.y,l.z)}}return function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:null;if(k()(this,e),(t=Ud(this,e)).type="WireframeGeometry",t.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new zm,a=new zm;if(null!==i.index){var r=i.attributes.position,l=i.index,c=i.groups;0===c.length&&(c=[{start:0,count:l.count,materialIndex:0}]);for(var u=0,p=c.length;u=o)break t;var r=e[1];t=(o=e[--i-1]))break e}s=i,i=0}for(;i>>1;te;)--s;if(++s,0!==o||s!==n){o>=s&&(o=(s=Math.max(s,1))-1);var a=this.getValueSize();this.times=i.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}},{key:"validate",value:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var i=this.times,n=this.values,o=i.length;0===o&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var s=null,a=0;a!==o;a++){var r=i[a];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,r),t=!1;break}if(null!==s&&s>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,r,s),t=!1;break}s=r}if(void 0!==n&&By(n))for(var l=0,c=n.length;l!==c;++l){var u=n[l];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,u),t=!1;break}}return t}},{key:"optimize",value:function(){for(var t=this.times.slice(),e=this.values.slice(),i=this.getValueSize(),n=2302===this.getInterpolation(),o=t.length-1,s=1,a=1;a0){t[s]=t[o];for(var g=o*i,y=s*i,b=0;b!==i;++b)e[y+b]=e[g+b];++s}return s!==t.length?(this.times=t.slice(0,s),this.values=e.slice(0,s*i)):(this.times=t,this.values=e),this}},{key:"clone",value:function(){var t=this.times.slice(),e=this.values.slice(),i=new(0,this.constructor)(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}],[{key:"toJSON",value:function(t){var e,i=t.constructor;if(i.toJSON!==this.toJSON)e=i.toJSON(t);else{e={name:t.name,times:Ny(t.times,Array),values:Ny(t.values,Array)};var n=t.getInterpolation();n!==t.DefaultInterpolation&&(e.interpolation=n)}return e.type=t.ValueTypeName,e}}])}();Ry.prototype.TimeBufferType=Float32Array,Ry.prototype.ValueBufferType=Float32Array,Ry.prototype.DefaultInterpolation=2301;var Fy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Fy.prototype.ValueTypeName="bool",Fy.prototype.ValueBufferType=Array,Fy.prototype.DefaultInterpolation=2300,Fy.prototype.InterpolantFactoryMethodLinear=void 0,Fy.prototype.InterpolantFactoryMethodSmooth=void 0;var zy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);zy.prototype.ValueTypeName="color";var Hy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Hy.prototype.ValueTypeName="number";var Vy=function(t){function e(t,i,n,o){return k()(this,e),Ud(this,e,[t,i,n,o])}return sn()(e,t),_()(e,[{key:"interpolate_",value:function(t,e,i,n){for(var o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,r=(i-e)/(n-e),l=t*a,c=l+a;l!==c;l+=4)Fm.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(Ly),Gy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e,[{key:"InterpolantFactoryMethodLinear",value:function(t){return new Vy(this.times,this.values,this.getValueSize(),t)}}])}(Ry);Gy.prototype.ValueTypeName="quaternion",Gy.prototype.DefaultInterpolation=2301,Gy.prototype.InterpolantFactoryMethodSmooth=void 0;var Uy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Uy.prototype.ValueTypeName="string",Uy.prototype.ValueBufferType=Array,Uy.prototype.DefaultInterpolation=2300,Uy.prototype.InterpolantFactoryMethodLinear=void 0,Uy.prototype.InterpolantFactoryMethodSmooth=void 0;var Wy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Wy.prototype.ValueTypeName="vector";var Yy=_()((function t(e,i,n){k()(this,t);var o,s=this,a=!1,r=0,l=0,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=i,this.onError=n,this.itemStart=function(t){l++,!1===a&&void 0!==s.onStart&&s.onStart(t,r,l),a=!0},this.itemEnd=function(t){r++,void 0!==s.onProgress&&s.onProgress(t,r,l),r===l&&(a=!1,void 0!==s.onLoad&&s.onLoad())},this.itemError=function(t){void 0!==s.onError&&s.onError(t)},this.resolveURL=function(t){return o?o(t):t},this.setURLModifier=function(t){return o=t,this},this.addHandler=function(t,e){return c.push(t,e),this},this.removeHandler=function(t){var e=c.indexOf(t);return-1!==e&&c.splice(e,2),this},this.getHandler=function(t){for(var e=0,i=c.length;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function sb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),rb(i=ab(this,e,[t,n]),pb,void 0),rb(i,hb,!1);var s="\n importScripts('".concat(i.getSourceRootPath(),"/3rdparty/turf.min.js');\n self.addEventListener('message', function (e) {\n let features = []\n eval(e.data.code);\n self.postMessage(features);\n }, false);\n "),a="data:text/javascript;charset=utf-8,"+encodeURIComponent(s);if(i._worker=new Worker(a),i.options.angle=i.options.angle||0,i.loaded=!1,i.ismove=!1,i.options.position.lat>83.5&&(i.options.position.lat=83.5),i.options.position.lat<-83.5&&(i.options.position.lat=-83.5),i.options.show=!n.show&&!1!==n.show||n.show,i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attributeType=n.attributeType||"richText",n.text=n.text||{},i.options.text={value:n.text.value||"",show:!n.text.show&&!1!==n.text.show||n.text.show,position:n.text.position,fontSize:n.text.fontSize||0===n.text.fontSize?n.text.fontSize:20,color:n.text.color||"#ffffff",scaleByDistance:n.text.scaleByDistance||!1,near:n.text.near||0===n.text.near?n.text.near:2e3,far:n.text.far||0===n.text.far?n.text.far:1e5},i.options.text.position){var r=turf.point([i.options.position.lng,i.options.position.lat]),l=turf.point([i.options.text.position.lng,i.options.text.position.lat]),c=turf.distance(r,l,{units:"kilometers"}),u=turf.rhumbBearing(r,l);i._textToCenter={distance:c,angle:u}}return i.hierarchys=[],i._elms={},i.Dialog=o,i._isdrag=!1,i._EventBinding=new wn,i.sdk.entityMap.get(i.options.id)?tn()(i):(i.sdk.addIncetance(i.options.id,i),i.picking=!0,i.options.show&&Kt(0,i.options.id),i._entityArray=[],i.init(),i)}return sn()(e,t),_()(e,[{key:"type",get:function(){return"GroundSvg"}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return this.options.show},set:function(t){var i,n,o,s,a,r;"boolean"==typeof t?(this.options.text&&this.options.text.show&&this.text&&(this.showView&&3!=this.showView?this.text.show=!1:this.text.show=t),i=e,n="show",o=t,s=this,a=1,r=1,Td()(nn()(r?i.prototype:i),n,o,s,a)):console.error("参数必须为boolean")}},{key:"position",get:function(){return this.options.position},set:function(t){var e=this;if(this.options.position=t,this.options.position.lat>83.5&&(this.options.position.lat=83.5),this.options.position.lat<-83.5&&(this.options.position.lat=-83.5),this._update(),this._textToCenter){var i=turf.point([this.options.position.lng,this.options.position.lat]),n=turf.destination(i,this._textToCenter.distance,this._textToCenter.angle,{units:"kilometers"}).geometry.coordinates;this.getClampToHeight({lng:n[0],lat:n[1]}).then((function(t){var i=[n[0],n[1],t];e.text&&(e.text.position=i)}))}}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t,this.options.color)for(var i=0;i0&&0===i&&(this.options.angle=360),this._elms.angle&&this._elms.angle.forEach((function(t){t.value=e.options.angle})),this._update()}},{key:"scale",get:function(){return this.options.scale},set:function(t){this.options.scale.x=t.x,this.options.scale.y=t.y,this._elms&&(this._elms.xRange&&(this._elms.xRange.value=this.options.scale.x),this._elms.yRange&&(this._elms.yRange.value=this.options.scale.y),this._elms.xInput&&(this._elms.xInput.value=this.options.scale.x),this._elms.yInput&&(this._elms.yInput.value=this.options.scale.y)),this._update()}},{key:"flipeY",get:function(){return this.options.flipe.y},set:function(t){"boolean"==typeof t?(this.options.flipe.y=t,this._update()):console.error("参数必须为boolean")}},{key:"flipeX",get:function(){return this.options.flipe.x},set:function(t){"boolean"==typeof t?(this.options.flipe.x=t,this._update()):console.error("参数必须为boolean")}},{key:"textValue",get:function(){return this.options.text.value},set:function(t){this.options.text.value=t,this.text?this.text.text=t:e.createText(this),this._elms.textValue&&this._elms.textValue.forEach((function(e){e.value=t}))}},{key:"textShow",get:function(){return this.options.text.show},set:function(t){var e=this;this.options.text.show=t,this.show?(this.showView&&3!=this.showView?this.text&&(this.text.show=!1):this.text&&(this.text.show=t),this.options.text.position&&setTimeout((function(){e.options.text.position.alt?e.text&&(e.text.position=[e.options.text.position.lng,e.options.text.position.lat,e.options.text.position.alt]):e.getClampToHeight({lng:e.options.text.position.lng,lat:e.options.text.position.lat}).then((function(t){e.text&&(e.text.position=[e.options.text.position.lng,e.options.text.position.lat,t])}))}),0)):this.text&&(this.text.show=!1),this._elms.textShow&&this._elms.textShow.forEach((function(e){e.checked=t}))}},{key:"textColor",get:function(){return this.options.text.color},set:function(t){var e=this;this.options.text.color=t,this.text&&(this.text.color=t),this._elms.textColor&&this._elms.textColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.textColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.textColor=t},clear:function(){e.textColor="rgba(255,255,255,1)"}});e._elms.textColor[i]=n}))}},{key:"textFontSize",get:function(){return this.options.text.fontSize},set:function(t){this.options.text.fontSize=t,this.text&&(this.text.fontSize=t,this.text.pixelOffset=t),this._elms.textFontSize&&this._elms.textFontSize.forEach((function(e){e.value=t}))}},{key:"textScaleByDistance",get:function(){return this.options.text.scaleByDistance},set:function(t){this.options.text.scaleByDistance=t,this.text&&(this.text.scaleByDistance=t),this._elms.textScaleByDistance&&this._elms.textScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"textNear",get:function(){return this.options.text.near},set:function(t){var e=t;e>this.textFar&&(e=this.textFar),this.options.text.near=e,this.text&&(this.text.near=e),this._elms.textNear&&this._elms.textNear.forEach((function(t){t.value=e}))}},{key:"textFar",get:function(){return this.options.text.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
            '+this.options.attribute.link.content[s].url+'
            \n
            \n \n \n
            \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
            \n \n
            \n
            \n \n
            \n
            \n \n \n
            ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(cE[S]&&(w=E[S]),k(k=Math.abs(k))&&(k=w);var D=k,P=4e3/(k=k*(10/3)*100)/5;D*=P;for(var M=0;M=Number(t.target.min))&&(m.scale={x:e,y:m.scale.y})})),p.addEventListener("blur",(function(t){var e=t.target.value;e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e=Number(t.target.min))&&(m.scale={x:m.scale.x,y:e})})),d.addEventListener("blur",(function(t){var e=t.target.value;e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e-360&&b<-90||b<360&&b>90)&&(b+=180,B=!0),((C=M-O)>-360&&C<-90||C<360&&C>90)&&(C+=180,L=!0),B&&L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*N*2,v=Math.cos(m)*N*2,i.scale.x=Math.abs(f)/3.5,i.scale.y=Math.abs(v)/3.5,t.abrupt("break",102);case 57:return O=(turf.rhumbBearing(S,turf.point(x[2]))+360-i.angle)%360,(C=M-O)>-360&&C<-90||C<360&&C>90?(C+=180,i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#00ff0a")),m=Math.PI/180*C,v=Math.cos(m)*N*2,i.scale.y=v/3.5,t.abrupt("break",102);case 64:return T=(turf.rhumbBearing(S,turf.point(x[6]))+360-i.angle)%360,O=(turf.rhumbBearing(S,turf.point(x[2]))+360-i.angle)%360,((b=M-T)>-360&&b<-90||b<360&&b>90)&&(b+=180,B=!0),((C=M-O)>-360&&C<-90||C<360&&C>90)&&(C+=180,L=!0),B&&L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*N*2,v=Math.cos(m)*N*2,i.scale.x=Math.abs(f)/3.5,i.scale.y=Math.abs(v)/3.5,t.abrupt("break",102);case 78:return T=(turf.rhumbBearing(S,turf.point(x[4]))+360-i.angle)%360,(b=M-T)>-360&&b<-90||b<360&&b>90?(b+=180,i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*N*2,i.scale.x=f/3.5,t.abrupt("break",102);case 85:return u.lat>83.5&&(u.lat=83.5),u.lat<-83.5&&(u.lat=-83.5),i.position={lng:u.lng,lat:u.lat},A=u.lng-c.lng,j=u.lat-c.lat,i.bbox[0]=i.bbox[0]+A,i.bbox[1]=i.bbox[1]+j,i.bbox[2]=i.bbox[2]+A,i.bbox[3]=i.bbox[3]+j,t.abrupt("break",102);case 95:return T=(turf.rhumbBearing(S,turf.point(x[6]))+360-i.angle)%360,(b=M-T)>-360&&b<-90||b<360&&b>90?(b+=180,i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*N*2,i.scale.x=f/3.5,t.abrupt("break",102);case 102:p=p/(n/2)*100,h=h/(s/2)*100,(I=nb({},i.scale)).x=I.x+p,I.y=I.y-h,I.y>200&&(I.y=200),I.y<.001&&(I.y=.001),I.x>200&&(I.x=200),I.x<.001&&(I.x=.001),i.scale=nb({},I),t.next=141;break;case 114:R=i.sdk.viewer.scene.drillPick(e.endPosition),z=0;case 116:if(!(z90&&(c+=180);var p=[c,u],h=turf.point(p),d=turf.rhumbDestination(h,o[s][r].distance,o[s][r].angle,{units:"kilometers"}),m=L()(d.geometry.coordinates);m[2]=10,a.push((l=Cesium.Cartesian3).fromDegrees.apply(l,L()(m)))}0===s?i.positions=a:n.push(a)}return i.holes=n,i}}},{key:"_updateGeojson",value:function(t,e,i){if(lb(hb,this)){var n=Math.abs(this.bbox[0]-this.bbox[2]),o=Math.abs(this.bbox[1]-this.bbox[3]);if("object"===N()(t[0]))for(var s=0;so[2]&&(e=o[0],o[0]=o[2],o[2]=e),o[1]>o[3]&&(e=o[1],o[1]=o[3],o[3]=e);for(var c=[],u=JSON.parse(JSON.stringify(this.geojson)),p=function(e){for(var i=0;i=0;e--)this.sdk.viewer.entities.remove(this.entity.values[e]);return this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=14,Pe(this.sdk,this.options.id);case 14:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(t){this.options.attribute.link.content.push({name:"链接",url:t}),this.attributeLink=this.options.attribute.link.content}},{key:"openRichTextEditor",value:function(t){var e=this;On.open(this.options.id,this.options.name,this.options.richTextContent),On.primaryCallBack=function(t){e.options.richTextContent=t}}},{key:"setPosition",value:function(t){if(t){this.ismove=!0;var e={};e.lng=t.position.lng,e.lat=t.position.lat,this.position=e}else this.ismove=!1;this._update()}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=m.length>0&&void 0!==m[0]?m[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=24;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),(l=nb({},this.options.position)).hasOwnProperty("alt")){t.next=17;break}return t.next=16,this.getClampToHeight(l);case 16:l.alt=t.sent;case 17:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=37;break;case 24:c=[],u=0;case 26:if(!(u=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function fb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),i=vb(this,e,[t,n]),YJ.RoutePlanningArrays.push(i),i.options.width=n.width||4,i.options.color=n.color||"#ff0000",i.options.gps=n.gps||!1,i.Dialog=o,i._elms={},i.start={lng:null,lat:null},i.end={lng:null,lat:null},i.init(),i}return sn()(e,t),_()(e,[{key:"init",value:function(){var t=this;this.startEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-start"),!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity.show=!1:this.startEntity.show=!0,this.startEntity.position=new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.startLng,t.startLat))}),!1),this.startEntity.billboard={image:this.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.endEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-end"),!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity.show=!1:this.endEntity.show=!0,this.endEntity.position=new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),this.endEntity.billboard={image:this.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.edit(!0),this.clear()}},{key:"startLng",get:function(){return this.start.lng},set:function(t){this.start.lng=t,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLng&&this._elms.startLng.forEach((function(e){e.value=t}))}},{key:"startLat",get:function(){return this.start.lat},set:function(t){this.start.lat=t,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLat&&this._elms.startLat.forEach((function(e){e.value=t}))}},{key:"endLng",get:function(){return this.end.lng},set:function(t){this.end.lng=t,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLng&&this._elms.endLng.forEach((function(e){e.value=t}))}},{key:"endLat",get:function(){return this.end.lat},set:function(t){this.end.lat=t,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLat&&this._elms.endLat.forEach((function(e){e.value=t}))}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=42;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 460px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: auto;\n }\n",t.next=11,new W(this.sdk.viewer._container,{title:"路径规划",closeCallBack:function(){u.tip&&u.tip.destroy(),u.event&&u.event.destroy(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()}});case 11:return this._DialogObject=t.sent,t.next=14,this._DialogObject.init();case 14:(n=document.createElement("div")).style.position="absolute",n.style.left="24px",n.style.flet="0",n.style.display="flex",this._DialogObject.footAppChild(n),(o=document.createElement("button")).className="default",o.innerHTML='查询',o.style.width="auto",o.addEventListener("click",(function(){!u.startLng&&0!==u.startLng||!u.startLat&&0!==u.startLat||!u.endLng&&0!==u.endLng||!u.endLat&&0!==u.endLat?console.error("请先设置起点和终点坐标!"):(!u.startEntity&&(u.startEntity=u.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return u.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(u.startLng,u.startLat))}),!1),billboard:{image:u.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),u.startEntity.show=!0,!u.endEntity&&(u.endEntity=u.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return u.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(u.endLng,u.endLat))}),!1),billboard:{image:u.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),u.endEntity.show=!0,u.Dialog.queryCallBack&&u.Dialog.queryCallBack({start:[u.startLng,u.startLat],end:[u.endLng,u.endLat]}))})),n.appendChild(o),(s=document.createElement("button")).className="default",s.innerHTML='清除路线',s.style.width="auto",s.style.marginLeft="10px",s.addEventListener("click",(function(){u.clear()})),n.appendChild(s),document.getElementsByTagName("head")[0].appendChild(this._element_style),(r=document.createElement("div")).innerHTML='\n
            \n
            \n 起点\n \n \n \n
            \n
            \n
            \n
            \n 终点\n \n \n \n
            \n
            \n ',this._DialogObject.contentAppChild(r),this.options.gps&&((l=document.createElement("button")).innerHTML="当前位置",l.style.marginLeft="10px",l.setAttribute("data-is","start"),l.addEventListener("click",(function(t){u.getLocateCurrent(t)})),r.getElementsByClassName("start-col")[0].appendChild(l),this._DialogObject._element.body.getElementsByClassName("end-pick-btn")[0].style.marginRight="91px"),c=r.getElementsByTagName("*"),e.EventBinding(this,c),t.next=44;break;case 42:this._element_style&&(document.getElementsByTagName("head")[0].removeChild(this._element_style),this._element_style=null),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 44:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"clear",value:function(){this.startEntity&&(this.sdk.viewer.entities.remove(this.startEntity),this.startEntity=null),this.endEntity&&(this.sdk.viewer.entities.remove(this.endEntity),this.endEntity=null),this.entity&&(this.sdk.viewer.entities.remove(this.entity),this.entity=null),this.startExtensionEntity&&(this.sdk.viewer.entities.remove(this.startExtensionEntity),this.startExtensionEntity=null),this.endExtensionEntity&&(this.sdk.viewer.entities.remove(this.endExtensionEntity),this.endExtensionEntity=null)}},{key:"destroy",value:function(){this.clear(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"getLocateCurrent",value:function(t){var e=this;this.reconnecting&&this.reconnecting.close(),this.options.host=this.options.host||h();var i;i=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+i),this.reconnecting.onopen=function(i){e.reconnecting.onmessage=function(i){e.data=JSON.parse(i.data),e.data&&e.data.rmc&&(e.reconnecting.close(),"start"===t.srcElement.getAttribute("data-is")?(e.startLng=e.data.rmc.lng,e.startLat=e.data.rmc.lat,!e.startEntity&&(e.startEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.startLng,e.startLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.startEntity.show=!0):(e.endLng=e.data.rmc.lng,e.endLat=e.data.rmc.lat,!e.endEntity&&(e.endEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.endEntity.show=!0))}}}},{key:"createRoute",value:function(t){for(var e=[],i=0;i=500?(e.tip&&e.tip.destroy(),e.event&&e.event.destroy()):i(0,n)}))}))}},{key:"pickEndPos",value:function(t){var e=this;this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=new Z("左键选择终点坐标,右键取消",this.sdk),this.event=new X(this.sdk),this.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.endLng=n.lng,e.endLat=n.lat,!e.endEntity&&(e.endEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.endEntity.show=!0,e.tip&&e.tip.destroy(),e.event&&e.event.destroy()})),this.event.mouse_right((function(t,i){e.tip&&e.tip.destroy(),e.event&&e.event.destroy()}))}},{key:"flicker",value:function(){}}],[{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=mb(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type?"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i
            ').concat(s[e].properties.fid,"
            ")),s[e].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
            ').concat(s[e].properties[o],"
            "));t+=i=i+n+""}return t},t.next=8,new W(e.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return gb=t.sent,t.next=11,gb.init();case 11:for(y in l=L()(e.geojson.features),i=l.length,s=l.slice(o*(n-1),o*n),c=r(),(u=document.createElement("div")).style.height="100%",'',p='
            ',h='
            ',d="",m='',f='
            ',v="",g=1,"fid"in e.geojson.features[0].properties&&(d+=''),v+=''),m+=''),g++),e.geojson.features[0].properties)"id"!==y&&"ID"!==y&&"fid"!==y&&(d+=''),v+=''),m+='"),g++);'
            暂无数据
            ',p=p+(h=h+(d+='')+(m+="")+"
            fid
            ').concat(y,"
            ")+(f=f+(v+="")+(""+c+"")+'
            暂无数据
            ')+"",u.innerHTML=''+p+'',b=u.getElementsByClassName("el-table__empty-block")[0],0==s.length?b.style.display="flex":b.style.display="none",gb.contentAppChild(u),C=u.getElementsByClassName("el-table__header-wrapper")[0],(w=u.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){C.scrollLeft=t.target.scrollLeft})),gb._element.title.style.height="40px",gb._element.body.style.width="65%",gb._element.body.style.height="80%",gb._element.content.style.height="calc(100% - 40px)",gb._element.content.style.overflow="hidden",gb._element.foot.style.display="none",w.style.height="calc(100% - ".concat(C.offsetHeight,"px)"),Tn(k=u.getElementsByClassName("pagination")[0],i,o,n,(function(t){n=t,s=l.slice(o*(n-1),o*n);var e=r();u.getElementsByTagName("tbody")[0].innerHTML=e,0==s.length?b.style.display="flex":b.style.display="none"})),x=function(){for(var t=u.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],a=[],c=0;c
            ').concat(n[e].properties.fid,"
            ")),n[e].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
            ').concat(n[e].properties[s],"
            "));t+=i=i+o+""}return t},s=!1,r=0;case 5:if(!(r',p='
            ',h="",d='',m='
            ',f="",v=1,"fid"in e.geojson.features[0].properties&&(h+=''),f+=''),d+=''),v++),e.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(h+=''),f+=''),d+='"),v++);if(y='\n \n \n '.concat((u=u+(p=p+(h+='')+(d+="")+"
            fid
            ').concat(g,"
            ")+(m=m+(f+="")+(""+l+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(b='\n \n '.concat(n[0].content.richTextContent,"\n \n "),y+=b),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(C=0;C\n \n \n '),y+=k;for(y+="",c.innerHTML=y,wb.contentAppChild(c),new kn("shp-list-id-tabs"),(x=c.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",x.style.display="flex",x.style.flexDirection="column",x.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=x.getElementsByClassName("DIV-cy-tab-content-pane"),E=0;E<_.length;E++)_[E].style.height="100%";S=c.getElementsByClassName("el-table__header-wrapper")[0],(D=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){S.scrollLeft=t.target.scrollLeft})),wb._element.title.style.height="40px",wb._element.body.style.width="65%",wb._element.body.style.height="80%",wb._element.content.style.height="calc(100% - 40px)",wb._element.foot.style.display="none",D.style.height="calc(100% - ".concat(S.offsetHeight,"px)");case 64:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();function _b(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Eb(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Eb(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Eb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Pb(this,e,[t,n])).viewer=t.viewer,i.options.path?(i.options.fileName=n.fileName||"未命名对象",i.options.field=n.field||"id",i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i):(i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),tn()(i))}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.setShow(t)}},{key:"on",value:function(){if(this.options.path)return this.init()}},{key:"init",value:(r=o()(a.a.mark((function t(){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.options.host=this.options.host||h(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load":this.options.host+"/yjearth4.0/api/v1/vector/load",i+="?path="+this.options.path,t.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 6:if(200!==(n=t.sent).status){t.next=19;break}return t.next=10,n.json();case 10:if(200!==(o=t.sent).code&&0!==o.code){t.next=18;break}return this.data=o.data,t.next=15,this.formatData();case 15:return t.abrupt("return",e.create(this));case 18:return t.abrupt("return",console.error(o.message));case 19:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"formatData",value:(s=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=function(t){if(t.data){var o;(o=i.list).push.apply(o,L()(t.data));for(var s=0;s0&&void 0!==h[0]&&h[0],i=h.length>1&&void 0!==h[1]?h[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=25;break}return t.next=7,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){p.fileName=p.fileName.trim(),p.fileName||(p.fileName="未命名对象"),p.originalOptions.fileName=p.fileName,p.originalOptions.field=p.field,p._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:p.options.id,fileName:p.originalOptions.fileName,field:p.originalOptions.field})},closeCallBack:function(){p.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:for(c in this._DialogObject=t.sent,n='\n
            \n
            \n 文件名称:\n \n
            \n
            \n
            \n
            \n 名称字段选择:\n \n
            \n
            \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){p.options.fileName=s.value})),r=o.getElementsByClassName("input-select")[0],l="",this.geojson.features[0].properties)u='"),l+=u;r.innerHTML=l,r.value=this.options.field,r.addEventListener("input",(function(){p.options.field=r.value})),this._elms.fileName=s,this._elms.field=r,t.next=26;break;case 25:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 26:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"editById",value:(i=o()(a.a.mark((function t(){var e,i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b=this,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=C.length>0&&void 0!==C[0]&&C[0],i=C.length>1?C[1]:void 0,n=C.length>2&&void 0!==C[2]?C[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),s="",!e){t.next=48;break}l={},c=0;case 8:if(!(c\n
            \n 内容类型:\n \n
            \n \n \n
            \n 编辑内容:\n
            \n \n
            \n
            \n
            \n 编辑内容:\n \n \n
            \n
            \n
            \n
            \n
            \n
            \n
            操作
            \n
            设备名称
            \n
            设备类型
            \n
            设备IP
            \n
            设备端口
            \n
            用户名
            \n
            密码
            \n
            \n
            \n \n
            \n
            \n

            暂无数据

            \n
            \n
            \n
            \n
            \n
              \n
              \n
              \n ',(p=document.createElement("div")).innerHTML=u,this._DialogObject.contentAppChild(p),p.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",h=p.getElementsByClassName("attribute-select")[0],d=p.getElementsByClassName("link_add_btn")[0],m=p.getElementsByClassName("open-richText-btn")[0],f=this._DialogObject._element.content.getElementsByClassName("attribute-content"),v=0;v-1?f[v].style.display="block":f[v].style.display="none";h.addEventListener("change",(function(){b._DialogObject.attribute.attributeType=h.value;for(var t=0;t-1?f[t].style.display="block":f[t].style.display="none"})),d.addEventListener("click",o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(b._DialogObject.attribute.link.content.push({name:"链接",url:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),b._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",b.setAttributeLinkById(i,b._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return t.stop()}}),t)})))),m.addEventListener("click",(function(){On.open(i,i,b._DialogObject.attribute.richTextContent),On.primaryCallBack=function(t){b._DialogObject.attribute.richTextContent=t}})),g=p.getElementsByClassName("camera-name")[0],y=p.getElementsByClassName("camera-select")[0],g.addEventListener("input",(function(){s=g.value})),this.cameraSelect&&this.cameraSelect(s),y.addEventListener("click",(function(){b.cameraSelect&&b.cameraSelect(s)})),t.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"editContentById",value:function(t,e){for(var i=0;i0?s.getElementsByClassName("table-empty")[0].style.display="none":s.getElementsByClassName("table-empty")[0].style.display="flex";for(var l=0;l\n
              '+this._DialogObject.attribute.link.content[l].url+'
              \n
              \n \n \n
              \n ',u=document.createRange().createContextualFragment(c);r.appendChild(u)}for(var p=r.getElementsByClassName("tr"),h={linkEdit:(i=o()(a.a.mark((function e(i){var o,s,r,l,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setAttributeLinkById(t,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],r=s.getElementsByClassName("tr"),l=a.a.mark((function t(e){var o,s,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==e){t.next=33;break}r[e].innerHTML='\n
              \n \n
              \n
              \n
              \n \n \n
              \n
              \n
              \n \n \n
              ',(o=r[e].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=r[e].getElementsByTagName("button"),l=0;case 8:if(!(l1&&void 0!==arguments[1]?arguments[1]:{};if(t){for(var i=0;i0){Tn(o,e.data.total,10,1,(function(e){i.cameraSelect&&i.cameraSelect(t,e)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(t){var o='\n
              \n
              \n \n 绑定\n
              \n
              ').concat(e.data.list[t].cameraName,'
              \n
              ').concat(n[e.data.list[t].type],'
              \n
              ').concat(e.data.list[t].ip,'
              \n
              ').concat(e.data.list[t].port,'
              \n
              ').concat(e.data.list[t].userName,'
              \n
              ').concat(e.data.list[t].passWord,"
              \n
              "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(e.data.list[t]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==e.data.list[t].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;l0){var l=turf.featureCollection(i),c=turf.envelope(l);c&&c.bbox&&4==c.bbox.length&&(t.range={max_x:c.bbox[2],max_y:c.bbox[3],min_x:c.bbox[0],min_y:c.bbox[1]})}}},{key:"createPoints",value:function(t,e){if(e){for(var i=new Cesium.PointPrimitiveCollection({scene:t.viewer.scene}),n=0;n0&&t.entity.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineColorAppearance}))}}},{key:"createPolygons",value:function(t,e){if(e){for(var i=[],n=0;n0){var c=new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})});t.entity.add(c)}}}},{key:"createTableContent",value:function(t){for(var e="",i=0;i
              ').concat(t.currentData[i].attr[s],"
              ");e+=n=n+o+""}return e}}]);var i,n,s,r}(Wn);function Tb(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Nb(t){for(var e=1;e
              ').concat(s[e].properties.fid,"
              ")),s[e].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
              ').concat(s[e].properties[o],"
              "));t+=i=i+n+""}return t},t.next=8,new W(e.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Mb=t.sent,t.next=11,Mb.init();case 11:for(y in l=L()(e.geojson.features),i=l.length,s=l.slice(o*(n-1),o*n),c=r(),(u=document.createElement("div")).style.height="100%",'',p='
              ',h='
              ',d="",m='',f='
              ',v="",g=1,"fid"in e.geojson.features[0].properties&&(d+=''),v+=''),m+=''),g++),e.geojson.features[0].properties)"id"!==y&&"ID"!==y&&"fid"!==y&&(d+=''),v+=''),m+='"),g++);'
              暂无数据
              ',p=p+(h=h+(d+='')+(m+="")+"
              fid
              ').concat(y,"
              ")+(f=f+(v+="")+(""+c+"")+'
              暂无数据
              ')+"",u.innerHTML=''+p+'',b=u.getElementsByClassName("el-table__empty-block")[0],0==s.length?b.style.display="flex":b.style.display="none",Mb.contentAppChild(u),C=u.getElementsByClassName("el-table__header-wrapper")[0],(w=u.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){C.scrollLeft=t.target.scrollLeft})),Mb._element.title.style.height="40px",Mb._element.body.style.width="65%",Mb._element.body.style.height="80%",Mb._element.content.style.height="calc(100% - 40px)",Mb._element.content.style.overflow="hidden",Mb._element.foot.style.display="none",w.style.height="calc(100% - ".concat(C.offsetHeight,"px)"),Tn(k=u.getElementsByClassName("pagination")[0],i,o,n,(function(t){n=t,s=l.slice(o*(n-1),o*n);var e=r();u.getElementsByTagName("tbody")[0].innerHTML=e,0==s.length?b.style.display="flex":b.style.display="none"})),x=function(){for(var t=u.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],a=[],c=0;c
              ').concat(n[e].properties.fid,"
              ")),n[e].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
              ').concat(n[e].properties[s],"
              "));t+=i=i+o+""}return t},s=!1,r=0;case 5:if(!(r',p='
              ',h="",d='',m='
              ',f="",v=1,"fid"in e.geojson.features[0].properties&&(h+=''),f+=''),d+=''),v++),e.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(h+=''),f+=''),d+='"),v++);if(y='\n \n \n '.concat((u=u+(p=p+(h+='')+(d+="")+"
              fid
              ').concat(g,"
              ")+(m=m+(f+="")+(""+l+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(b='\n \n '.concat(n[0].content.richTextContent,"\n \n "),y+=b),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(C=0;C\n \n \n '),y+=k;for(y+="",c.innerHTML=y,Bb.contentAppChild(c),new kn("shp-list-id-tabs"),(x=c.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",x.style.display="flex",x.style.flexDirection="column",x.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=x.getElementsByClassName("DIV-cy-tab-content-pane"),E=0;E<_.length;E++)_[E].style.height="100%";S=c.getElementsByClassName("el-table__header-wrapper")[0],(D=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){S.scrollLeft=t.target.scrollLeft})),Bb._element.title.style.height="40px",Bb._element.body.style.width="65%",Bb._element.body.style.height="80%",Bb._element.content.style.height="calc(100% - 40px)",Bb._element.foot.style.display="none",D.style.height="calc(100% - ".concat(S.offsetHeight,"px)");case 64:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();function jb(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ib(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ib(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ib(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),Hb(i=zb(this,e,[t,n]),Yb,void 0),Hb(i,Jb,!1),Hb(i,qb,[]),i.viewer=t.viewer,!i.options.path)return i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),tn()(i);for(var s in i.colors=Wb,i.options.head_tables=n.head_tables||[],i.options.fileName=n.fileName||"未命名对象",i.options.path.endsWith(".kml")||(i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.opacity=n.opacity||0===n.opacity?n.opacity:1),i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i.sdk.addIncetance(i.options.id,i),i.disaster_type_colors=Wb[i.options.disaster_type]?Fb({},Wb[i.options.disaster_type]):void 0,i.disaster_type_colors)i.disaster_type_colors[s]=i.cmykToRgb(i.disaster_type_colors[s]);return i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"vector"}},{key:"show",get:function(){return this.options.show},set:function(t){this.setShow(t)}},{key:"opacity",get:function(){return this.options.opacity},set:function(t){this.options.opacity=t,this.entity&&this.entity.entities.values.forEach((function(e){e.point&&(e.point.color=e.point.color._value.withAlpha(t)),e.polygon&&(e.polygon.material=e.polygon.material.color._value.withAlpha(t)),e.polyline&&(e.polyline.material=e.polyline.material.color._value.withAlpha(t))}))}},{key:"on",value:function(){if(this.sdk&&this.viewer&&this.options.path)return this.init()}},{key:"init",value:(c=o()(a.a.mark((function t(){var i,n,o,s,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.options.host=this.options.host||h(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load2":this.options.host+"/yjearth4.0/api/v1/vector/load2",i+="?path="+this.options.path,t.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 6:if(200!==(n=t.sent).status){t.next=17;break}return t.next=10,n.arrayBuffer();case 10:return o=t.sent,s=new Uint8Array(o),r=this.decompressGzip(s),0===this.data.length&&(this.data=JSON.parse(r)),t.next=16,this.formatData();case 16:return t.abrupt("return",e.create(this));case 17:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"formatData",value:(l=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=[],i=function(t,e,n){if(t)if(Array.isArray(t)){for(var o=!1,s=0;s0&&void 0!==w[0]&&w[0],i=w.length>1&&void 0!==w[1]?w[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=74;break}return t.next=7,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){C.fileName=C.fileName.trim(),C.fileName||(C.fileName="未命名对象"),C.originalOptions.fileName=C.fileName,C.originalOptions.field=C.field,C._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:C.options.id,fileName:C.originalOptions.fileName,field:C.originalOptions.field})},closeCallBack:function(){C.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:this._DialogObject=t.sent,n='\n
              \n
              \n 文件名称:\n \n
              \n
              \n
              \n
              \n 名称字段选择:\n
              \n
              \n
              \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){C.options.fileName=s.value})),r=[],t.t0=a.a.keys(this.geojson.features[0].properties);case 17:if((t.t1=t.t0()).done){t.next=31;break}l=t.t1.value,c=l,u=0;case 21:if(!(u').concat(g,""),f+=b,t.next=52;break;case 67:m.innerHTML=f,m.value=this.options.field,m.addEventListener("input",(function(){C.options.field=m.value})),this._elms.fileName=s,this._elms.field=m,t.next=75;break;case 74:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 75:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"editById",value:(s=o()(a.a.mark((function t(){var e,i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b=this,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=C.length>0&&void 0!==C[0]&&C[0],i=C.length>1?C[1]:void 0,n=C.length>2&&void 0!==C[2]?C[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),s="",!e){t.next=48;break}l={},c=0;case 8:if(!(c\n
              \n 内容类型:\n \n
              \n \n \n
              \n 编辑内容:\n
              \n \n
              \n
              \n
              \n 编辑内容:\n \n \n
              \n
              \n
              \n
              \n
              \n
              \n
              操作
              \n
              设备名称
              \n
              设备类型
              \n
              设备IP
              \n
              设备端口
              \n
              用户名
              \n
              密码
              \n
              \n
              \n \n
              \n
              \n

              暂无数据

              \n
              \n
              \n
              \n
              \n
                \n
                \n
                \n ',(p=document.createElement("div")).innerHTML=u,this._DialogObject.contentAppChild(p),p.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",h=p.getElementsByClassName("attribute-select")[0],d=p.getElementsByClassName("link_add_btn")[0],m=p.getElementsByClassName("open-richText-btn")[0],f=this._DialogObject._element.content.getElementsByClassName("attribute-content"),v=0;v-1?f[v].style.display="block":f[v].style.display="none";h.addEventListener("change",(function(){b._DialogObject.attribute.attributeType=h.value;for(var t=0;t-1?f[t].style.display="block":f[t].style.display="none"})),d.addEventListener("click",o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(b._DialogObject.attribute.link.content.push({name:"链接",url:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),b._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",b.setAttributeLinkById(i,b._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return t.stop()}}),t)})))),m.addEventListener("click",(function(){On.open(i,i,b._DialogObject.attribute.richTextContent),On.primaryCallBack=function(t){b._DialogObject.attribute.richTextContent=t}})),g=p.getElementsByClassName("camera-name")[0],y=p.getElementsByClassName("camera-select")[0],g.addEventListener("input",(function(){s=g.value})),this.cameraSelect&&this.cameraSelect(s),y.addEventListener("click",(function(){b.cameraSelect&&b.cameraSelect(s)})),t.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"editContentById",value:function(t,e){for(var i=0;i0?s.getElementsByClassName("table-empty")[0].style.display="none":s.getElementsByClassName("table-empty")[0].style.display="flex";for(var l=0;l\n
                '+this._DialogObject.attribute.link.content[l].url+'
                \n
                \n \n \n
                \n ',u=document.createRange().createContextualFragment(c);r.appendChild(u)}for(var p=r.getElementsByClassName("tr"),h={linkEdit:(i=o()(a.a.mark((function e(i){var o,s,r,l,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setAttributeLinkById(t,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],r=s.getElementsByClassName("tr"),l=a.a.mark((function t(e){var o,s,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==e){t.next=33;break}r[e].innerHTML='\n
                \n \n
                \n
                \n
                \n \n \n
                \n
                \n
                \n \n \n
                ',(o=r[e].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=r[e].getElementsByTagName("button"),l=0;case 8:if(!(l1&&void 0!==m[1]?m[1]:{},pi(0),ii(this.sdk),ni(this.sdk),!e){t.next=14;break}n=a.a.mark((function t(n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:d.geojson.features[n].id===e&&("Point"===d.geojson.features[n].geometry.type?d.getClampToHeight({lng:d.geojson.features[n].geometry.coordinates[0],lat:d.geojson.features[n].geometry.coordinates[1]}).then((function(t){d.sdk.viewer.camera.flyTo({orientation:i.orientation,destination:Cesium.Cartesian3.fromDegrees(d.geojson.features[n].geometry.coordinates[0],d.geojson.features[n].geometry.coordinates[1],t+(i.height||500))})})):(o=d.geojson.features[n].geometry.range)&&(s=[],d.getClampToHeight({lng:o[0],lat:o[1]}).then((function(t){var e=Cesium.Cartesian3.fromDegrees(o[0],o[1],t);s.push(e.x,e.y,e.z),d.getClampToHeight({lng:o[2],lat:o[3]}).then((function(t){var e=Cesium.Cartesian3.fromDegrees(o[2],o[3],t);s.push(e.x,e.y,e.z);var n=Cesium.BoundingSphere.fromVertices(s);d.sdk.viewer.camera.flyToBoundingSphere(n,{offset:i.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}})}))}))));case 1:case"end":return t.stop()}}),t)})),o=0;case 7:if(!(o0){Tn(o,e.data.total,10,1,(function(e){i.cameraSelect&&i.cameraSelect(t,e)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(t){var o='\n
                \n
                \n \n 绑定\n
                \n
                ').concat(e.data.list[t].cameraName,'
                \n
                ').concat(n[e.data.list[t].type],'
                \n
                ').concat(e.data.list[t].ip,'
                \n
                ').concat(e.data.list[t].port,'
                \n
                ').concat(e.data.list[t].userName,'
                \n
                ').concat(e.data.list[t].passWord,"
                \n
                "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(e.data.list[t]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==e.data.list[t].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;lo&&(o=l),s+=16}s=s+10+5*(n.length-1),o+=30,e.width=o,e.height=s;var c=i.createLinearGradient(0,0,o,s);return i.fillStyle=c,i.fillRect(0,0,o,s),i.fillStyle="#ffffff",i.font="16px YaHei",i.strokeStyle="#000000",i.strokeText(n,15,16*n.length+6.25+5*n.length),i.fillText(n,15,16*n.length+6.25+n.length-5),i.moveTo(o/2,s),i.stroke(),i.closePath(),e.toDataURL()}},{key:"createTableContent",value:function(t){for(var e="",i=0;i
                ').concat(t.currentData[i].attr[s],"
                ");e+=n=n+o+""}return e}}]);var i,n,s,r,l,c}(Wn);function Zb(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Kb(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(i=$b(this,e,[t,n])).options.text=n.text||"未命名对象";for(var s=i.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));if(s.length>70&&s.splice(70-s.length),i.options.text=s.join("\n"),i.options.name=i.options.text,i.options.show=!n.show&&!1!==n.show||n.show,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.fontSize=n.fontSize||20,i.options.duration=n.duration||0===n.duration?n.duration:5e4,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.color=n.color||"#FFC107",i.options.position=n.position,!i.options.position&&i.options.positions){var r=function(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.atan2(n,i)};i.options.position={lng:(i.options.positions[0].lng+i.options.positions[1].lng)/2,lat:(i.options.positions[0].lat+i.options.positions[1].lat)/2};var l=turf.point([i.options.positions[0].lng,i.options.positions[0].lat]),c=turf.point([i.options.positions[1].lng,i.options.positions[1].lat]),u={units:"miles"},p=turf.rhumbDistance(l,c,u),h=r([i.options.positions[0].lng,i.options.positions[0].lat],[i.options.positions[1].lng,i.options.positions[1].lat]);i.options.angle=(360+Cesium.Math.toDegrees(h))%360;var d=1e-4*Math.abs(Math.cos(Math.PI/180*i.options.position.lat)),m=i.getcanvas(),f=m.height/m.width,v=i.options.position.lng-1e-4/f,g=i.options.position.lat-d,y=i.options.position.lng+1e-4/f,b=i.options.position.lat+d,C=(g+b)/2,w=turf.point([v,C]),x=turf.point([y,C]),_=turf.rhumbDistance(w,x,u),E=Cesium.Math.toRadians(i.options.position.lat);_*=1+Math.abs(Math.sin(h)*Math.tan(E)*Math.sin(E)*Math.sin(E)),i.options.scale=p/_}return i.entity,i._positionEditing=!1,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.previous={position:Kb({},i.options.position)},i.event=new X(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return sn()(e,t),_()(e,[{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position.lng=t,this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position.lat=t,this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"text",get:function(){return this.options.text},set:function(t){var e=this;this.options.text=t;for(var i=this.options.text.split("\n"),n=0;n80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),i[n]=i[n].slice(0,80-i[n].length)}if(i.length>70){i.splice(70-i.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=i.join("\n"),this.entity){var o=this.getcanvas(),s=o.height/o.width;this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:o.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this.entity.rectangle.coordinates=new Cesium.CallbackProperty((function(){var t,i=Math.abs(Math.cos(Math.PI/180*e.options.position.lat))*(1e-4*e.options.scale),n=[e.options.position.lng-1e-4*e.options.scale/s,e.options.position.lat-i,e.options.position.lng+1e-4*e.options.scale/s,e.options.position.lat+i];return(t=Cesium.Rectangle).fromDegrees.apply(t,n)}),!1)}this._elms.text&&this._elms.text.forEach((function(t){t.value=e.options.text}))}},{key:"angle",get:function(){return this.options.angle},set:function(t){this.options.angle=t,this._elms.angle&&this._elms.angle.forEach((function(e){e.value=t}))}},{key:"scale",get:function(){return this.options.scale},set:function(t){this.options.scale=t,this._elms.scale&&this._elms.scale.forEach((function(e){e.value=t}))}},{key:"duration",get:function(){return this.options.duration},set:function(t){this.options.duration=t;var e=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.duration&&this._elms.duration.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t;var e=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t;var i=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:i.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"create",value:function(){var t=this,e=this.getcanvas(),i=e.height/e.width;this.entity=this.sdk.viewer.entities.add({id:this.options.id,show:this.options.show,rectangle:{coordinates:new Cesium.CallbackProperty((function(){var e,n=Math.abs(Math.cos(Math.PI/180*t.options.position.lat))*(1e-4*t.options.scale),o=[t.options.position.lng-1e-4*t.options.scale/i,t.options.position.lat-n,t.options.position.lng+1e-4*t.options.scale/i,t.options.position.lat+n];return(e=Cesium.Rectangle).fromDegrees.apply(e,o)}),!1),material:new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),rotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(t.options.angle)}),!1),stRotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(t.options.angle)}),!1)}}),"cesium-viewer 2d"===this.sdk.viewer._element.className&&(this.entity.rectangle.height=10),Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id)}},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=18;break}return t.next=6,new rn(this.sdk,this.originalOptions,{title:"贴地文字属性",left:"180px",top:"100px",confirmCallBack:function(t){s.text=s.text.trim(),s.text||(s.text="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.positionEditing=!1,s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()},translationalCallBack:function(){s.positionEditing=!s.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-text",(i=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n 颜色\n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 经度\n \n
                \n
                \n 纬度\n \n
                \n
                \n
                \n \n
                \n
                \n
                \n 旋转角度\n \n
                \n \n °\n \n
                \n
                \n
                \n
                \n
                \n 调整大小\n \n
                \n \n \n
                \n
                \n
                \n
                \n
                \n 滚动速度\n \n
                \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,o=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),this._elms.color=[o],t.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"positionEditing",get:function(){return this._positionEditing},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(this._positionEditing=t,this.previous={position:Kb({},this.options.position)},!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.lng=e.previous.position.lng,e.lat=e.previous.position.lat,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.lng=e.previous.position.lng,e.lat=e.previous.position.lat,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy()))}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=b.length>0&&void 0!==b[0]?b[0]:{},i=this.getcanvas(),n=i.height/i.width,pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(o={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},s=this.options.customView.relativePosition.lng,r=this.options.customView.relativePosition.lat,l=this.options.customView.relativePosition.alt,c=Cesium.Cartesian3.fromDegrees(s,r,l),u={lng:0,lat:0},this.options.position?u=Kb({},this.options.position):this.options.positions?u=Kb({},this.options.positions[0]):this.options.center?u=Kb({},this.options.center):this.options.start?u=Kb({},this.options.start):(this.options.hasOwnProperty("lng")&&(u.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(u.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(u.alt=this.options.alt)),u.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(u);case 17:u.alt=t.sent;case 18:s=this.options.customView.relativePosition.lng+u.lng,r=this.options.customView.relativePosition.lat+u.lat,l=this.options.customView.relativePosition.alt+u.alt,c=Cesium.Cartesian3.fromDegrees(s,r,l),this.sdk.viewer.camera.flyTo({destination:c,orientation:o}),t.next=34;break;case 25:return p=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),h=[[this.options.position.lng-1e-4*this.options.scale/n,this.options.position.lat-p],[this.options.position.lng+1e-4*this.options.scale/n,this.options.position.lat+p]],t.next=29,this.getClampToHeight(this.options.position);case 29:for(d=t.sent,m=[],f=0;f80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(n=tC(this,e,[t,i])).options.text=i.text||"未命名对象";for(var s=n.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));return s.length>70&&s.splice(70-s.length),n.options.text=s.join("\n"),n.options.color=i.color||"#FFC107",n.options.positions=i.positions,n.options.speed=i.speed||0===i.speed?i.speed:1,n.options.show=!i.show&&!1!==i.show||i.show,n.nodePoints=[],n.entity,n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||[],n.options.attributeType=i.attributeType||"richText",n.extrudedHeight,n._EventBinding=new wn,n.Dialog=o,n._elms={},n.sdk.addIncetance(n.options.id,n),e.create(n),n}return sn()(e,t),_()(e,[{key:"text",get:function(){return this.options.text},set:function(t){this.options.text=t;for(var e=this.options.text.split("\n"),i=0;i80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),e[i]=e[i].slice(0,80-e[i].length)}if(e.length>70){e.splice(70-e.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=e.join("\n"),this.entity){for(var n=this.options.positions,o=[],s=[],a=[],r=this.getMaterial(),l=this.computeDistance2(n),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u\n
                \n
                \n
                \n 名称\n \n
                \n
                \n 颜色\n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 滚动速度\n \n \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,o=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){r.color=t},clear:function(){r.color="rgba(255,255,255,1)"}}),s=n.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.color=[o],t.next=21;break;case 20:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"reset",value:function(){if(this.entity){this.options=this.deepCopyObj(this.originalOptions),this.text=this.originalOptions.text,this.color=this.originalOptions.color,this.speed=this.originalOptions.speed;for(var t=this.options.positions,e=[],i=[],n=[],o=this.computeDistance2(t),s=this.aspectRatio?o/this.aspectRatio:0,a=0;a80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=L()(t.options.positions),a=[],r=[],l=[],c=t.computeDistance2(o),u=t.aspectRatio?c/t.aspectRatio:0,p=0;p=500?m(o,i):d(o,i)}))}));for(var f=0;f2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=oC(this,e)).sdk=t,n.viwer=t.viewer,n.options=nC({},i),n.options.host=i.host||h(),n.options.name=i.name||"未命名对象",n.options.show=!i.show&&!1!==i.show||i.show,"number"==typeof i.scale?(n.options.scale={},n.options.scale.x=i.scale,n.options.scale.y=i.scale,n.options.scale.z=i.scale):(n.options.scale=i.scale||{},n.options.scale.x=n.options.scale.x||0===n.options.scale.x?n.options.scale.x:1,n.options.scale.y=n.options.scale.y||0===n.options.scale.y?n.options.scale.y:1,n.options.scale.z=n.options.scale.z||0===n.options.scale.z?n.options.scale.z:1),n.primitive=null,n._loadEvent=void 0,n._loaded=!1,n._elms={},n.Dialog=o,n._EventBinding=new wn,e.setDefaultValue(n),n.requestResource(),n.ControllerObject=new qo(n.sdk,{position:nC({},n.options.position),rotate:{x:(360+n.options.roll%360)%360,y:(360+-n.options.pitch%360)%360,z:(360+-n.options.heading%360)%360}}),n.ControllerObject.controllerCallBack=n.controllerCallBack,n.HeadingPitchRollCallBack=n.Dialog.HeadingPitchRollCallBack,n}return sn()(e,t),_()(e,[{key:"requestResource",value:function(){this.addResource().then((function(t){}))}},{key:"addResource",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).options.xmlURL=e.options.objUrl.replace(".obj",".xml"),""===e.options.xmlURL){t.next=34;break}return t.next=5,fetch(e.options.xmlURL);case 5:if(!(i=t.sent).ok){t.next=32;break}return t.next=9,i.text();case 9:return n=t.sent,o=new DOMParser,s=o.parseFromString(n,"text/xml"),r=s.getElementsByTagName("Position")[0].textContent.split(","),l=s.getElementsByTagName("Crs")[0].textContent,c=e.convert([{x:r[0],y:r[1],z:r[2]}],l,"EPSG:4326"),e.options.position=e.options.position||{lng:c.points[0].x,lat:c.points[0].y,alt:c.points[0].z},e.ControllerObject.position=e.options.position,u=e.viwer.scene,p=Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt),h=Cesium.Transforms.headingPitchRollToFixedFrame(p,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(.85),Cesium.Math.toRadians(0),Cesium.Math.toRadians(0))),t.next=22,window.objLoader.Load(e.options.objUrl);case 22:(d=t.sent).show=e.options.show,d.modelMatrix=h,d.setFlvVideo(e.options.videoUrl),u.primitives.add(d),e.primitive=d,e.controllerCallBack({rotate:{x:e.options.roll,y:-e.options.pitch,z:-e.options.heading},position:nC({},e.options.position)}),this.loaded=!0,this._loaded=!0,this._loadEvent&&this._loadEvent();case 32:t.next=36;break;case 34:return console.error("请填写xml路径"),t.abrupt("return");case 36:if(""!==e.options.objUrl){t.next=39;break}return console.error("请填写obj模型路径"),t.abrupt("return");case 39:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=p.length>0&&void 0!==p[0]?p[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=nC({},this.options.position):this.options.positions?l=nC({},this.options.positions[0]):this.options.center?l=nC({},this.options.center):this.options.start?l=nC({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=28;break;case 25:c=100*Math.tan(60),u=c/111319.55,this.sdk.viewer.camera.flyTo({destination:new Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat-u,this.options.position.alt+100),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=this,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.length>0&&void 0!==p[0]&&p[0],e=!1,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=6,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){u.name=u.name.trim(),u.name||(u.name="未命名对象"),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions)},resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},removeCallBack:function(){u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u.reset(),u.positionEditing=!1,u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},rotateCallBack:function(){u.rotationEditing?u.rotationEditing=!1:u.rotationEditing=!0},translationalCallBack:function(){u.positionEditing?u.positionEditing=!1:u.positionEditing=!0}},!0);case 6:for(this._DialogObject=t.sent,(i=document.createElement("div")).style.width="448px",i.innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 经度\n \n
                \n
                \n 海拔高度\n
                \n \n m\n \n
                \n
                \n
                \n
                \n
                \n 纬度\n \n
                \n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 缩放\n
                \n \n 是否等比例缩放\n
                \n
                \n
                \n \n \n
                \n \n ',this._DialogObject.contentAppChild(i),n=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),o=this._DialogObject._element.content.getElementsByClassName("equal")[0],s=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],n.checked=e,n.addEventListener("change",(function(t){(e=t.target.checked)?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex")})),(r=o.getElementsByTagName("input"))[0].value=this.scaleX,r[1].value=this.scaleX,r[0].addEventListener("input",(function(t){u.scaleX=t.target.value,u.scaleY=t.target.value,u.scaleZ=t.target.value})),r[1].addEventListener("input",(function(t){u.scaleX=t.target.value,u.scaleY=t.target.value,u.scaleZ=t.target.value})),e?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex"),setTimeout((function(){if(u._DialogObject._element.foot){var t=u._DialogObject._element.foot.getElementsByClassName("rotate")[0];t&&(t.style.position="absolute",t.style.left="100px")}}),0),l=i.getElementsByTagName("*"),c=0;c1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.options=pC({},i),this.options.show=!i.show&&!1!==i.show||i.show,this.options.host=this.options.host||h(),this.objModelObject=[],this._loaded=!1,this._loadEvent=void 0,this.on()}),[{key:"show",get:function(){return this.options.show},set:function(t){var e=this;if("boolean"==typeof t){this.options.show=t;for(var i=function(i){e.objModelObject[i].load((function(){e.objModelObject[i].show=t}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),vC(i=fC(this,e,[t,n]),CC,void 0),i.options.id=n.id||i.randomString(),i.options.name=n.name||"漫游路径",i.options.points=n.points||[],i.options.repeat&&(i.options.repeat=Number(i.options.repeat)),i.Dialog=o,i}return sn()(e,t),_()(e,[{key:"repeat",get:function(){return this.options.repeat},set:function(t){if(this.options.repeat!=Number(t)&&(this.options.repeat=Number(t),this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)){var e=this._DialogObject._element.content.querySelector("input[name='repeat']");e.checked=t===1/0,this.Dialog.changeRepeatStateCallBack&&this.Dialog.changeRepeatStateCallBack(e.checked)}}},{key:"edit",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,n=this.sdk.viewer,o=0,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=44;break}return s=function(t){var e=l.getElementsByClassName("tr");e.length>0&&(e[e.length-1].querySelector("input[name='time']").disabled=void 0);var s=l.getElementsByClassName("tr active")[0];s&&(s.className="tr");var a=document.createElement("div");a.className="tr active",a.innerHTML='\n
                视点'.concat(u+1,'
                \n
                \n \n
                \n
                \n
                \n '),a.addEventListener("click",(function(t){if(t.target.parentNode===a){var i=l.getElementsByClassName("tr active")[0];i&&(i.className="tr"),a.className="tr active";for(var n=0;nn+1?(o--,e[o-1].className="tr active"):o==n+1&&(e.length==n&&(o-=1),0!=e.length&&(e[o-1].className="tr active")),e.length>0){var s=e[e.length-1].querySelector("input[name='time']");s.disabled="disabled",s.value=0}break}})),h.addEventListener("input",(function(e){f.checked=!1,t.duration=Number(h.value),t.duration<0&&(t.duration=0)})),h.addEventListener("blur",(function(){h.value=Number(Number(h.value).toFixed(2)),h.value<0&&(h.value=0)})),l.insertBefore(a,e[o]),o++,e[e.length-1].querySelector("input[name='time']").disabled="disabled"},t.next=8,new W(n._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){g.cease()}});case 8:return this._DialogObject=t.sent,t.next=11,this._DialogObject.init();case 11:for((r=document.createElement("div")).className="fly-roam",r.innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n \n 设置总时长\n
                \n \n 秒(s)\n \n
                \n
                \n
                \n \n 是否循环播放\n
                \n
                \n
                \n \n
                \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n \n
                \n
                \n
                \n
                \n
                \n
                序号
                \n
                时长(s)
                \n
                操作
                \n
                \n
                \n
                \n
                \n
                \n

                暂无数据

                \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(r),r.getElementsByTagName("*"),l=r.getElementsByClassName("table-body")[0],c=r.getElementsByClassName("table-empty")[0],u=0,p=new Proxy([],{set:function(t,e,i){return t[e]=i,t.length>0?c.style.display="none":c.style.display="flex",!0}}),u=0;u0&&g.flyTo(0)})),r.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var t={duration:0,position:g.cartesian3Towgs84(n.camera.position,n),orientation:{heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll}};p.splice(o,0,t),g.options.points.splice(o,0,t),s(t),u++})),r.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(o){var t=g.cartesian3Towgs84(n.camera.position,n);g.options.points[o-1].position=p[o-1].position=t,g.options.points[o-1].orientation=p[o-1].orientation={heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll},g.message({text:"操作成功"})}})),m=r.querySelector("input[name='totalTime']"),f=r.querySelector("input[name='isTotalTime']"),v=r.querySelector("input[name='repeat']"),f.addEventListener("change",(function(){var t=l.getElementsByClassName("tr");if(f.checked&&t.length>0){for(var e=Number((Number(m.value)/(t.length-1)).toFixed(2)),i=0;i0){for(var e=Number((Number(m.value)/(t.length-1)).toFixed(2)),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;pi(0);var i=this,n=this.options.points,s=this.repeat;ii(i.sdk);var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;yC(CC,t)&&yC(CC,t).destroy();var l=t;gC(CC,t,new Cesium.ScreenSpaceEventHandler(l.sdk.viewer.canvas)),yC(CC,t).setInputAction((function(e){t.cease()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var c,u=l.sdk.viewer;pi(0),u.camera.cancelFlight(),u.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(n[e].position.lng,n[e].position.lat,n[e].position.alt),orientation:n[e].orientation,duration:i?n[e-1].duration:.5,maximumHeight:n[e].position.alt,complete:(c=o()(a.a.mark((function i(){return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e++,t.repeat===1/0?s=1/0:s===1/0&&(s=t.repeat),e<=n.length-1?r(e,!0):s?(s--,r(0)):yC(CC,t)&&yC(CC,t).destroy();case 3:case"end":return i.stop()}}),i)}))),function(){return c.apply(this,arguments)}),easingFunction:i?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})};r(e)}},{key:"cease",value:function(){this.sdk&&this.sdk.viewer&&this.sdk.viewer.camera.cancelFlight(),yC(CC,this)&&yC(CC,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(Wn);function kC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var xC=function(){return _()((function t(e,i,n){k()(this,t),this.options=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"move",e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("move"===t){var o=turf.point([this.options.position.lng,this.options.position.lat]),s=Cesium.Math.toDegrees(this.hpr.heading),a=s+i,r={units:"degrees"},l=turf.destination(o,e,a,r).geometry.coordinates;this.position=Cesium.Cartesian3.fromDegrees(l[0],l[1],this.options.position.alt+this.options.normalHeight),this.options.position.lng=l[0],this.options.position.lat=l[1],this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],this.viewer.camera.positionCartographic.height)})}"update"===t&&(this.position=e,this.options.videoUrl&&this.updatePolygonPosition()),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"syncHpr",value:function(){if(this.viewer1){var t=this.options.position,e=t.lng,i=t.lat,n=t.alt,o=-this.hpr.pitch-Cesium.Math.toRadians(-90);this.viewer1.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e,i,n+this.options.normalHeight),orientation:{heading:this.hpr.heading+Cesium.Math.toRadians(-90),pitch:o,roll:this.hpr.roll}})}}},{key:"updateFrustumHPR",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.head,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pitch,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";function s(t){return t*Math.PI/180}"alone"==o?(this.hpr.heading=s(t),this.hpr.pitch=s(e),this.hpr.roll=s(i)):(this.hpr.heading=Cesium.Math.negativePiToPi(t),this.hpr.pitch=Cesium.Math.negativePiToPi(e),this.hpr.roll=Cesium.Math.negativePiToPi(i)),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"updateFrustumAttributes",value:function(){if(this.position&&this.hpr){var t=Cesium.Transforms.headingPitchRollToFixedFrame(this.position,this.hpr);if(t)try{var e=new Cesium.FrustumOutlineGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(t,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(t,new Cesium.Matrix3))}),i=new Cesium.PolylineColorAppearance({translucent:!1}),n=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW),o=new Cesium.FrustumGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(t,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(t,new Cesium.Matrix3))}),s=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.YELLOW.withAlpha(.5)}),translucent:!0}),a=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED.withAlpha(.5));this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:e,attributes:{color:n}}),appearance:i,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumOutline),this.currentFrustumFilled=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:o,attributes:{color:a}}),appearance:s,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumFilled)}catch(t){console.error("Error in drawFrustum:",t)}else console.error("Transform generation failed.")}else console.error("Position or HPR is not defined:",this.position,this.hpr)}},{key:"updateFrustumNearFar",value:function(t,e){this.frustum.near=t,this.frustum.far=e,this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"updateFrustumFov",value:function(t){this.frustum.fov=Cesium.Math.toRadians(t),this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"show",get:function(){return this.options.show},set:function(t){"boolean"==typeof t&&(this.options.show=t,this.currentFrustumOutline.show=t,this.currentFrustumFilled.show=t)}},{key:"remove",value:function(){document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("keyup",this.keyupHandler),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.videoEntity&&this.viewer.entities.remove(this.videoEntity)}}],[{key:"setDefaultValue",value:function(t){var e;t.options.position=t.options.position||{},t.options.fov=t.options.fov||30,t.options.aspectRatio=t.options.aspectRatio||1,t.options.near=t.options.near||1,t.options.far=t.options.far||120,t.options.heading=t.options.heading||0,t.options.pitch=t.options.pitch||90,t.options.roll=t.options.roll||0,t.options.show=null===(e=t.options.show)||void 0===e||e,t.options.videoUrl=t.options.videoUrl||"",t.options.index=t.options.index||0,t.options.arr=t.options.arr||[],t.options.normalHeight=t.options.normalHeight||100}}]);var t,e}();function _C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var EC=function(){return _()((function t(e,i){k()(this,t),this.options=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;k()(this,t),this.options=DC({},e),this.viewer=i,this.viewer1=n,this.entity=null,this.frustum=null,this.billordPointLineMaps=[],this.index=0,this.positions=[],t.setDefaultValue(this),this.create()}),[{key:"create",value:function(){var t=this;if(!(this.options.positions.length<2)){var e=this.options.frustumShow;this.entity=this.viewer.entities.add({show:this.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){for(var e=[],i=0;ithis.options.positions.length-1||this.index<0){var e=this.index>0?"已选中最后一个航点":"已选中第一个航点";alert(e)}else for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=MC(this,e,[t,n])).options.tipText=n.tipText?n.tipText:"左键确定,右键结束;",i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var e=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new Z(this.options.tipText,this.sdk),this.event=new X(this.sdk),this.isEntity=!1,this.event.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer),a=e.viewer.scene.pick(n.position);Cesium.defined(a)&&Cesium.defined(a.id)&&a.id.id===window.airportEntity.options.id&&(e.isEntity=!0),t(null,s,e.isEntity)})),this.event.mouse_right((function(i,n){e.end(),t(!1)})),this.event.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;e.event.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip.destroy()}}])}(wa);function TC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function NC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=BC(this,e,[t,n])).viewer=i.sdk.viewer,i.options.name=n.name||"飞线",i.options.pointNumber=n.pointNumber||200,i.options.height=n.height||200,i.options.heightDifference=n.heightDifference||3e3,i.options.width=n.width||2,i.options.duration=n.duration||10,i.options.color=n.color||"rgba(255,255,255,1)",i.options.lineBackAlpha=n.lineBackAlpha||.05,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.positionArea=[],i.positions=[],!i.options.positions||i.options.positions.length<3?(i._error="最少需要绘制三个坐标!",console.warn(i._error)):(i.sdk.addIncetance(i.options.id,i),e.drawLine(i)),i}return sn()(e,t),_()(e,[{key:"getRandomPointsInCesiumPolygon",value:function(t,e){var i=[],n=[],o=[];t.forEach((function(t){i.push(t.lng),n.push(t.lat),o.push([t.lng,t.lat])})),o.push([o[0][0],o[0][1]]);for(var s=Math.min.apply(Math,i),a=Math.max.apply(Math,i),r=Math.min.apply(Math,n),l=Math.max.apply(Math,n),c=[];c.length0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=19;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"飞线属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="飞线"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(i=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n 颜色\n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 飞线数量\n
                \n \n \n
                \n
                \n
                \n 飞线宽度\n
                \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n\n
                \n 飞线高度\n
                \n \n \n
                \n
                \n
                \n 飞线高度差\n
                \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n 单次运动时长(s)\n
                \n \n \n
                \n
                \n
                \n 轨迹透明度\n
                \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("flowLine-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],t.next=19;break;case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.pointNumber=this.originalOptions.pointNumber,this.height=this.originalOptions.height,this.heightDifference=this.originalOptions.heightDifference,this.width=this.originalOptions.width,this.duration=this.originalOptions.duration,this.color=this.originalOptions.color,this.lineBackAlpha=this.originalOptions.lineBackAlpha)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h.length>0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=NC({},this.options.position):this.options.positions?r=NC({},this.options.positions[0]):this.options.center?r=NC({},this.options.center):this.options.start?r=NC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else{for(l=[],c=0;c=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function jC(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=Number(e.target.min))&&(i=i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i0&&e[o].addEventListener(t,(function(e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,t),this.viewer=e.viewer,this.options=VC({},i),this.sdk=VC({},e),this.options.time=i.time||new Date,this.options.speed=i.speed||1e3,this.options.darkness=i.darkness||.4,this.options.softShadow=i.softShadow||!0,this.options.show=!0===i.show,this.Dialog=n,this.timeLine,this._EventBinding=new RC,this._elms={},t.start(this)}),[{key:"darkness",get:function(){return this.options.darkness},set:function(t){this.options.darkness=t,this.viewer.shadowMap.darkness=1-this.options.darkness,this._elms.darkness&&this._elms.darkness.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t})),this.viewer.clock.multiplier=this.options.speed,this.timeLine.setSpeed(t)}},{key:"softShadow",get:function(){return this.options.softShadow},set:function(t){this.options.softShadow=t,this.viewer.shadowMap.softShadows=this.options.softShadow}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=this,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=p.length>0&&void 0!==p[0]&&p[0],i=new fi,this.originalOptions=i.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=25;break}return n=this,t.next=8,new rn(this.sdk,this.originalOptions,{title:"光照属性",left:"180px",top:"100px",resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},closeCallBack:function(){u.reset(),n.remove(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},showCallBack:function(t){u.show=t,u.Dialog.showCallBack&&u.Dialog.showCallBack()}},!0);case 8:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" sun-shine-surface",(o=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 播放倍数\n
                \n \n \n
                \n
                \n
                \n 阴影柔和度\n
                \n \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n 阴影优化\n \n
                \n
                \n 日期选择\n \n
                \n
                \n
                \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                \n
                00:00:00
                \n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(o),s=this,this.timeLine=new zC(this.sdk,this.options.speed),this.timeLine.moveComplay((function(t){var e=s.time+" "+t;s.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e)),s.viewer.scene.requestRender()})),l=o.getElementsByClassName("sunshine-date")[0],r=jeDate(l,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(t){this.time=t.val;var e=(new Date).setHours(0,0,0,0);s.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e)),s.timeLine.updateTime(e)}}),this.time?r.setValue(this.time):(r.nowBtn&&r.nowBtn(),this.time=r.getValue()),c=o.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[r],t.next=25;break;case 25:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.time=this.originalOptions.time,this.speed=this.originalOptions.speed,this.darkness=this.originalOptions.darkness)}},{key:"flyTo",value:(e=o()(a.a.mark((function t(){var e=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:!(e.length>0&&void 0!==e[0])||e[0];case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"remove",value:(t=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.viewer.scene.globe.enableLighting=!1,this.viewer.shadows=!1,this.viewer.clock.multiplier=1,this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date),this.entity=null,this.timeLine.clear(),this.viewer.shadowMap.cascadesEnabled=!1,this.viewer.shadowMap.size=1024,this.viewer.shadowMap.numberOfCascades=3,this.viewer.shadowMap._lightCamera,this.viewer.shadowMap.normalOffset=!1,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=14,Pe(this.sdk,this.options.id);case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"start",value:function(t){t.viewer.scene.globe.enableLighting=!0,t.viewer.shadows=!0,t.viewer.scene.globe.enableLighting=!0,t.viewer.terrainShadows=Cesium.ShadowMode.RECEIVE_ONLY,t.viewer.shadowMap.darkness=1-t.options.darkness;var e=new Date;e.setHours(0,0,0,0),t.viewer.clock.currentTime=Cesium.JulianDate.fromDate(e),t.viewer.clock.multiplier=t.options.speed,t.viewer.shadowMap.softShadows=t.options.softShadow,t.viewer.shadowMap.cascadesEnabled=!0,t.viewer.shadowMap.size=2048,t.viewer.shadowMap.numberOfCascades=4,t.viewer.shadowMap.maximumDistance=5e3;var i=t.viewer.shadowMap._lightCamera;i.frustum.near=.1,i.frustum.far=1e4,t.viewer.shadowMap.normalOffset=!0,t.edit(!0)}}]);var t,e,i}();function UC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function WC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(t,e,i){for(var n=[],o=[],s=[],a=0;am&&m>-1.001)o.push(v);else{var C=[];C[0]=v[1],C[1]=v[2],C[2]=v[3],C[3]=v[0],o.push(C)}},r=0;r2&&void 0!==arguments[2]?arguments[2]:.01;if(!e.width||!e.height)throw new Error("Texture size must contain width and height in pixels");for(var n=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(t),vertexFormat:Cesium.VertexFormat.POSITION_ONLY})),o=0,s=n.indices,a=n.attributes.position.values,r=0;r0)return Cesium.Cartesian3.fromDegrees(u.features[0].geometry.coordinates[0],u.features[0].geometry.coordinates[1])}},{key:"getLonLat",value:function(t){var e=Cesium.Cartographic.fromCartesian(t);return{lon:Cesium.Math.toDegrees(e.longitude),lat:Cesium.Math.toDegrees(e.latitude)}}},{key:"createLineBufferPolygon",value:function(t,e,i){for(var n=[],o=0;o0?n.unshift(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3)):i<0&&n.push(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3))}return n}},{key:"calculateAangle",value:function(t){function e(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=t[0],n=t[1],o=t[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:e(s,a),angle2:e(s,r)}}},{key:"carRoadWidth",get:function(){return this.options.carRoadWidth},set:function(t){this.options.carRoadWidth=t,e.create(this)}},{key:"sideWidth",get:function(){return this.options.sideWidth},set:function(t){this.options.sideWidth=t,e.create(this)}},{key:"edit",value:(s=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=17;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"道路属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="道路"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Pe(o.sdk,o.options.id),se(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},closeCallBack:function(){o.reset(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.show=t,o.Dialog.showCallBack&&o.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" road-surface",(i=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 名称\n \n
                \n
                \n 道路类型\n
                \n
                \n
                \n
                \n \n
                \n
                \n
                \n 车道宽度\n
                \n \n \n
                \n
                \n
                \n 人行道宽度\n
                \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=17;break;case 17:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.carRoadWidth=this.originalOptions.carRoadWidth,this.sideWidth=this.originalOptions.sideWidth,this.positions=this.originalOptions.positions,this.roadImage=this.originalOptions.roadImage,this.sideImage=this.originalOptions.sideImage)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h.length>0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=WC({},this.options.position):this.options.positions?r=WC({},this.options.positions[0]):this.options.center?r=WC({},this.options.center):this.options.start?r=WC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else{for(l=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k()(this,e),(i=ZC(this,e,[t,n])).options.position=n.position||[],i.options.text=n.text||"",i.options.show=!n.show&&!1!==n.show||n.show,i.clickTextDom=void 0,i.handler=void 0,i.textDom=void 0,i.create(i),i.sdk.addIncetance(i.options.id,i),i.callback=o,i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TextBox"}},{key:"create",value:(p=o()(a.a.mark((function t(e){var i,n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.sdk.viewer,(n=document.createElement("span")).id=e.options.id,n.className="popup-textarea",n.style.zIndex=1,(o=document.createElement("textarea")).className="textarea",o.value=e.options.text,o.rows=6,o.style.resize="none",n.appendChild(o),!e.options.show&&(n.style.display="none"),i.cesiumWidget.container.appendChild(n),s=Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt),e.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,s);if(t){var e=1*n.clientWidth,o=1*n.clientHeight;n.style.left="".concat(t.x-e/2,"px"),n.style.top="".concat(t.y-o,"px")}},i.scene.postRender.addEventListener(e.handler),e.textDom=n;case 17:case"end":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:"isClick",value:(u=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.clickCallBack({position:e},i,null);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})},{key:"setHandeler",value:(c=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(n=this.sdk.viewer.scene.pickPosition(new Cesium.Cartesian2(e.x,e.y)))||(o=this.sdk.viewer.camera.getPickRay(new Cesium.Cartesian2(e.x,e.y)),n=this.sdk.viewer.scene.globe.pick(o,this.sdk.viewer.scene)),!Cesium.defined(n)){t.next=15;break}return i.sdk.viewer.scene.postRender.removeEventListener(i.handler),s=Cesium.Cartographic.fromCartesian(n),r=Cesium.Math.toDegrees(s.longitude),l=Cesium.Math.toDegrees(s.latitude),t.next=10,i.getClampToHeight({lng:r,lat:l});case 10:t.sent,i.position={lng:r,lat:l,alt:s.height},c=Cesium.Cartesian3.fromDegrees(r,l,s.height),i.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,c);if(t){var e=1*i.textDom.clientWidth,n=1*i.textDom.clientHeight;i.textDom.style.left="".concat(t.x-e/2,"px"),i.textDom.style.top="".concat(t.y-n,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 15:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"getwords",value:(l=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.options.text=e,this.callback(this.options),i=ze(),n=i.sdkP,this.sdk===n&&n?Pe(this.sdk,this.options.id):n?(n.entityMap.get(this.options.id).text=e,n.entityMap.get(this.options.id).twoToThree(this.options.position)):n||Pe(this.sdk,this.options.id);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"twoToThree",value:(r=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(i=this).sdk.viewer.scene.postRender.removeEventListener(i.handler),n=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),i.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,n);if(t){var e=1*i.textDom.clientWidth,o=1*i.textDom.clientHeight;i.textDom.style.left="".concat(t.x-e/2,"px"),i.textDom.style.top="".concat(t.y-o,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"returnFun",value:(s=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handler);case 1:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"text",get:function(){return this.options.text},set:function(t){this.options.text=t,this.textDom.querySelector("textarea").value=t,this.callback(this.options)}},{key:"onClick",get:function(){return this.clickCallBack},set:function(t){t&&"function"!=typeof t?console.error("val:",t,"不是一个function"):this.clickCallBack=t}},{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t,this.textDom&&(this.textDom.style.display=t?"block":"none"),Pe(this.sdk,this.options.id)}},{key:"position",get:function(){return this.options.position},set:function(t){this.options.position=t}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p.length>0&&void 0!==p[0]&&p[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation?(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=XC({},this.options.position):this.options.position?r=XC({},this.options.position[0]):this.options.center?r=XC({},this.options.center):this.options.start?r=XC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e})):(l=[],c=Cesium.Cartesian3.fromDegrees(this.position.lng,this.position.lat,this.position.alt),l.push(c.x,c.y,c.z),u=Cesium.BoundingSphere.fromVertices(l),this.viewer.camera.flyToBoundingSphere(u,{offset:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-20),roll:Cesium.Math.toRadians(0)}}));case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.handler&&(this.sdk.viewer.scene.postRender.removeEventListener(this.handler),this.handler=void 0),this.textDom&&this.textDom.parentNode&&this.sdk.viewer.cesiumWidget.container.removeChild(this.textDom),t.next=4,this.sdk.removeIncetance(this.options.id);case 4:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,s,r,l,c,u,p}(Wn);function $C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function QC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};k()(this,e),(i=tw(this,e,[t,n])).viewer=i.sdk.viewer,i.options.name=n.name||"批量模型",i.options.type=n.type||"面",i.options.url=n.url||"",i.options.spacing=1*n.spacing||50,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.callback=o,i.Dialog=s,i._EventBinding=new wn,i._elms={},i.pointArr=[],i.sdk.addIncetance(i.options.id,i);var a=new fi(t);if(i.options.spacing<0||1*n.spacing==0)return a.message({type:"warning",text:"请输入正确的间距!"}),tn()(i);if(n.type&&null!=n.spacing||"点"==n.type){var r;switch(n.type){case"点":r=new pl(i.sdk);break;case"线":r=new sl(i.sdk);break;case"面":r=new cl(i.sdk)}r&&r.start((function(t,o){if(i.options.positions=o,"面"==n.type){var s=o.map((function(t){return Cesium.Cartesian3.fromDegrees(t.lng,t.lat)})),r=Cesium.Cartesian3.distance(s[0],s[1]),l=Cesium.Cartesian3.distance(s[1],s[2]);if(r/i.options.spacing*(l/i.options.spacing)>100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}else if("线"==n.type){for(var c=o.map((function(t){return Cesium.Cartesian3.fromDegrees(t.lng,t.lat)})),u=0,p=0;p100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}(i.options.positions.length||i.options.positions.lng)&&e.computeDis(i)}))}else i.edit(!0);return i}return sn()(e,t),_()(e,[{key:"linePoint",value:(u=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m,f,v,g;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],o=[],s=0;case 3:if(!(s0&&void 0!==p[0]&&p[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=33;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"默认模型参数设置",left:"180px",top:"100px",confirmCallBack:function(t){var i;switch(u.name=u.name.trim(),u.name||(u.name="飞线"),u.options.type){case"点":i=new pl(u.sdk);break;case"线":i=new sl(u.sdk);break;case"面":i=new cl(u.sdk)}i&&i.start((function(t,i){u.options.positions=i,(u.options.positions.length||u.options.positions.lng)&&e.computeDis(u)})),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions),Pe(u.sdk,u.options.id),se(u.sdk,u.options.id)},closeCallBack:function(){u.reset(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"重置",event:["click",function(){u.reset()}]}]},!0);case 7:if(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(n=document.createElement("div")).innerHTML='\n \n
                \n
                \n
                \n 添加方式\n
                \n
                \n
                \n 间距\n
                \n \n \n \n
                \n
                \n
                \n
                \n \n ',this._DialogObject.contentAppChild(n),o=n.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,s=[{name:"点",value:"点"},{name:"线",value:"线"},{name:"面",value:"面"}],!(r=Y(this._DialogObject._element.content.getElementsByClassName("add-type-box")[0],".add-type"))){t.next=31;break}r.legp_search(s),l=this._DialogObject._element.content.getElementsByClassName("add-type")[0].getElementsByTagName("input")[0],this._elms.type=[l],l.value=this.options.type,c=0;case 23:if(!(c0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=QC({},this.options.position):this.options.positions?r=QC({},this.options.positions[0]):this.options.center?r=QC({},this.options.center):this.options.start?r=QC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else if(l=[],this.options.positions.length>0){for(c=0;c0&&void 0!==arguments[0]?arguments[0]:{isc:!1,excel:!1,flv:!1,rtsp:!1,hls:!1,host:"",username:"",password:""};return new Promise((function(e,i){var n=f(),o=["/custom/css/index.css","/arrow/algorithm.js","/arrow/plotUtil.js","/3rdparty/turf.min.js","/3rdparty/fabric.min.js","/3rdparty/proj4.js","/3rdparty/pako.min.js","/3rdparty/heatmap.js","/3rdparty/tween.umd.js","/Cesium/Cesium.js","/Cesium/Widgets/widgets.css","/3rdparty/ewPlugins.min.js","/3rdparty/wangeditor/index.js","/3rdparty/wangeditor/style.css","/3rdparty/html2canvas.min.js","/3rdparty/kriging.js","/3rdparty/echarts.min.js","/3rdparty/clipboard.min.js","/3rdparty/libgif.js","/3rdparty/liveplayer/liveplayer-element.min.js","/3rdparty/jedate/jedate.min.js","/3rdparty/jedate/skin/jedate.css"];window.YJSDK3rdpartyResourceAddress=n+"/3rdparty",t.ws&&o.push("/3rdparty/reconnecting-websocket.js"),(t.flv||t.rtsp)&&o.push("/3rdparty/flv.min.js");var s=document.createElement("script");s.setAttribute("type","module"),s.textContent="\n import * as THREE from '".concat(n,"/3rdparty/three/three.module.min.js';\n window.THREE = THREE\n "),document.querySelector("html").appendChild(s);var a=document.createElement("script");a.setAttribute("type","module"),a.textContent="\n import { SVGLoader } from '".concat(n,"/3rdparty/three/jsm/loaders/SVGLoader.js';\n window.SVGLoader = SVGLoader\n "),document.querySelector("html").appendChild(a);var r=[];o.forEach((function(t){var e;t.endsWith(".js")?((e=document.createElement("script")).setAttribute("type","text/javascript"),e.setAttribute("src",n+t)):((e=document.createElement("link")).setAttribute("rel","stylesheet"),e.setAttribute("href",n+t)),document.querySelector("html").appendChild(e);var i=new Promise((function(t,i){e.onload=function(){t()}})).then((function(t){return t}));r.push(i)})),Promise.all(r).then((function(i){var o,s;(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",n+"/3rdparty/viewerCesiumNavigationMixin.min.js"),document.querySelector("html").appendChild(o),o.onload=function(){p(t.host),t.username?c(t).then((function(t){e()})):e()},(s=document.createElement("script")).setAttribute("type","text/javascript"),s.setAttribute("src",n+"/3rdparty/CesiumHeatmap.js"),document.querySelector("html").appendChild(s)})).catch((function(t){i(t)}))}))},Obj:{ArcgisWXImagery:Gl,ArcgisBLUEImagery:Ul,ArcgisLWImagery:Wl,GDLWImagery:ql,GDWXImagery:Xl,GDSLImagery:Zl,Tileset:yc,BIM:Mc,Layer:su,Layer3rdparty:ru,Terrain:yu,Flame:Du,Smoke:ju,Fountain:Wu,Spout:$u,WaterSurface:$h,CircleDiffuse:ho,CircleObject:Up,EllipseObject:Kp,RadarScan:Co,RadarScanStereoscopic:Ih,SectorObject:Uh,WallStereoscopic:ah,WallRealStereoscopic:fh,KML:Yh,GeoJson:qh,BillboardObject:Bo,PolygonObject:zo,PolyhedronObject:lp,AssembleObject:fp,AttackArrowObject:kp,PincerArrowObject:Op,StraightArrowObject:Ip,PolylineObject:os,CurvelineObject:Sh,Explosion:Oh,Model:Jc,Model2:eu,TrajectoryMotion:gd,TrajectoryMotionObject:Dd,Graffiti:Md,GroundImage:Id,GroundSvg:db,RoutePlanning:yb,Shp:Ob,Vector:Xb,GroundText:Qb,StandText:eC,RichText:On,LocateCurrent:ga,LoadObjModel:sC,Heatmap:mC,FlyRoam:wC,newAirLine:PC,FRUSTUN:xC,Dialog:rn,FlowLine:LC,Road2:JC,TextBox:KC,BatchModel:ew},YJEarth:qi,Tools:fi,Proj:R,Global:{getCurrentView:function(t){var e=new fi,i=t.viewer;return JSON.parse(JSON.stringify({position:e.cartesian3Towgs84(i.camera.position,i),orientation:{heading:Cesium.Math.toDegrees(i.camera.heading),pitch:Cesium.Math.toDegrees(i.camera.pitch),roll:Cesium.Math.toDegrees(i.camera.roll)}}))},setDefaultView:function(t,e){var i=t.viewer;e?i.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:e.destination||{},orientation:e.orientation||{}}:(i.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2))},switchCluster:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.viewer,n=0;n1&&void 0!==arguments[1]&&arguments[1];ys&&t.viewer.scene.postProcessStages.remove(ys),e&&(ys=new Cesium.PostProcessStage({name:"rain",fragmentShader:ks,uniforms:{tiltAngle:-.4,rainSize:.3,rainWidth:40,rainSpeed:100}}),t.viewer.scene.postProcessStages.add(ys))},snow:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bs&&t.viewer.scene.postProcessStages.remove(bs),e&&(bs=new Cesium.PostProcessStage({name:"snow",fragmentShader:xs,uniforms:{snowSize:2,snowSpeed:60}}),t.viewer.scene.postProcessStages.add(bs))},fog:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Cs&&t.viewer.scene.postProcessStages.remove(Cs),e&&(Cs=new Cesium.PostProcessStage({name:"fog",fragmentShader:_s,uniforms:{visibility:.2,fogColor:Cesium.Color.WHITE}}),t.viewer.scene.postProcessStages.add(Cs))},nightVision:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ws&&t.viewer.scene.postProcessStages.remove(ws),e&&(ws=Cesium.PostProcessStageLibrary.createNightVisionStage(),t.viewer.scene.postProcessStages.add(ws))},skyStarry:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.viewer.scene.skyAtmosphere.show=!e},illumination:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.viewer.shadows=e,t.viewer._shadows=e},Sunshine:GC},CameraController:Ke,CesiumContainer:$e,setBillboardDefaultUrl:Qe,getBillboardDefaultUrl:ti,multiViewportMode:{on:function(t){return _e.apply(this,arguments)},off:Ee,get2DView:Ie,getSdk:ze},MouseCoordinate:function(t,e){if(t&&t.viewer){Os=t,(Ts=ze().sdkD)||(Ts=ae().sdkD);var i=new fi(t);if(e){var n=function(){Ps=requestAnimationFrame(n),a()};Es&&Es.destroy(),Ss&&(Ss.destroy(),Ss=void 0),Es=new X(t),Ms=null;var o,s={x:"",y:"",z:""};Ds?o=Ds:((o=document.createElement("div")).style.position="absolute",o.style["z-index"]=777,o.style.color="#ff0000",o.style.left="0px",o.style.top="0px",o.style.width="100%",o.style.height="100%",o.style["font-size"]="12px",o.style["pointer-events"]="none",o.style.background="url(".concat(i.getSourceRootPath(),"/img/cross.png) no-repeat 100% 100%"),o.style["background-size"]="200% 200%",Ds=o),t.viewer.container.appendChild(o),Es.mouse_move((function(e,i){Os=t,Ms=function(t){for(var e=1;e

                经度:").concat(h.lng.toFixed(6),"°

                维度:").concat(h.lat.toFixed(6),"°

                海拔:").concat(h.alt.toFixed(2)," m

                ");else{var m=i.convert([{x:h.lng,y:h.lat,z:h.alt}],"EPSG:4326",d);s=m.points[0],o.innerHTML="

                x:").concat(s.x.toFixed(6),"

                y:").concat(s.y.toFixed(6),"

                z:").concat(s.z.toFixed(6),"

                ")}}else{var f=li();o.innerHTML="EPSG:4326"===f?"

                经度:-

                维度:-

                海拔:-

                "):"

                x:-

                y:-

                z:-

                ")}}}};n()}else Es&&Es.destroy(),Ss&&(Ss.destroy(),Ss=void 0),Ds&&(t.viewer.container.removeChild(Ds),Ds=void 0),Ps&&cancelAnimationFrame(Ps)}},MouseRightMenu:et,setGroundCover:function(t,e){We=!!e,function(t){if(!t)return;for(var e=0;e经度:".concat(Number(s.lng.toFixed(6)),"° \n 纬度:").concat(Number(s.lat.toFixed(6)),"° \n 海拔高度:").concat(Number(s.alt.toFixed(2)),"米\n ");else{var a=o.convert([{x:s.lng,y:s.lat,z:s.alt}],"EPSG:4326",Ue);i.innerHTML="\n x:".concat(Number(a.points[0].x.toFixed(6)),'\n y:').concat(Number(a.points[0].y.toFixed(6)),'\n z:').concat(Number(a.points[0].z.toFixed(6)),"\n ")}}}},DTH:Ki,cameraChanged:function(t,e){var i=new fi;return t.viewer.camera.changed.addEventListener((function(n){e({position:i.cartesian3Towgs84(t.viewer.camera.position,t.viewer),orientation:{heading:t.viewer.camera.heading,pitch:t.viewer.camera.pitch,roll:t.viewer.camera.roll}})}))},setMaximumRequestsPerServer:function(t){"number"==typeof t&&(Cesium.RequestScheduler.maximumRequestsPerServer=t)},setKeyboardEventActive:function(t,e){t&&(t.viewer._disableKeyboardEvent=!e)},setSkin:function(t){document.documentElement.style.setProperty("--color-sdk-base","rgba(0, 55, 55, 1)")},getTheme:function(){return Q},setTheme:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=Array.from(Q[t].keys());e.forEach((function(e){document.documentElement.style.setProperty(e,Q[t].get(e))}))},getCesiumManageIndexexDBState:ci,setCesiumManageIndexexDBState:ui,getCesiumIndexedDBMaxSize:function(){var t=Number(Number(localStorage.getItem("IndexedDBMaxSize")).toFixed(0));return(isNaN(t)||t<1073741824)&&(t=1073741824),t},setCesiumIndexedDBMaxSize:function(t){var e=Number(Number(t).toFixed(0));(isNaN(e)||e<1073741824)&&(e=1073741824),Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetIndexedDBMaxSize(e),localStorage.setItem("IndexedDBMaxSize",e)},getCesiumIndexedDBCurrentSize:function(){return Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.GetIndexedDBCurrentSize()},enablePerspective:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e||0==e||(e=1),t.viewer.scene.globe.translucency.frontFaceAlpha=e},closeRotateAround:ii,SheetIndexStatusSwitch:Ot,SheetIndexShangeScale:Tt,splitScreen:{on:function(t){return Jt.apply(this,arguments)},off:qt,setActiveId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Vt=Array.isArray(t)?t:[t],zt&&Ft){var e=zt.viewer._element.getElementsByClassName("YJ-custom-checkbox-left")[0],i=zt.viewer._element.getElementsByClassName("YJ-custom-checkbox-right")[0];if(t&&0!==t.length){if(e&&i){e.style.display="none",i.style.display="none";for(var n=0,o=0,s=0;s0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[iw]=t},Clear:function(){YJ.Measure.Measures.forEach((function(t){t.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:kr,MeasureProjectionDistance:Dr,MeasureSlopeDistance:Nr,MeasureTyArea:Ir,MeasureTdArea:Vr,MeasureTriangle:Wr,MeasureLocation:qr,MeasureHeight:Kr,MeasureAngle:tl,MeasureAzimuth:nl},Draw:{DrawPolyline:sl,DrawPolygon:Ea,DrawPoint:pl,DrawCircle:dl,DrawElliptic:fl,DrawAttackArrow:gl,DrawPincerArrow:bl,DrawStraightArrow:kl,DrawRect:_l,DrawAssemble:Dl,DrawSector:Ml,DrawTakeOff:OC,DrawThreeRect:cl},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(t){t.destroy()}))},CutFillAnalysis:Sa,Submerge:La,ViewShed:Ra,CircleViewShed:Ya,SlopeAspect:Za,Profile:$a,Visibility:tr,Contour:er,Section:sr,TerrainExcavation:lr,Flat:dr,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(t){t.destroy()}))}},CoordTransform:Bl,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(t){t.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=cC,window.YJ.Obj.BatchLoadObjModel=hC)}]); \ No newline at end of file + */()?Reflect.construct(e,i||[],nn()(t).constructor):e.apply(t,i))}var Wd=1014,Yd=1020,Jd=2400,qd=2401,Xd="srgb",Zd="srgb-linear",Kd="display-p3",$d="display-p3-linear",Qd="linear",tm="srgb",em="rec709",im=7680,nm=35044,om=2e3,sm=2001,am=function(){return _()((function t(){k()(this,t)}),[{key:"addEventListener",value:function(t,e){void 0===this._listeners&&(this._listeners={});var i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)}},{key:"hasEventListener",value:function(t,e){if(void 0===this._listeners)return!1;var i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)}},{key:"removeEventListener",value:function(t,e){if(void 0!==this._listeners){var i=this._listeners[t];if(void 0!==i){var n=i.indexOf(e);-1!==n&&i.splice(n,1)}}}},{key:"dispatchEvent",value:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var i=e.slice(0),n=0,o=i.length;n>8&255]+rm[t>>16&255]+rm[t>>24&255]+"-"+rm[255&e]+rm[e>>8&255]+"-"+rm[e>>16&15|64]+rm[e>>24&255]+"-"+rm[63&i|128]+rm[i>>8&255]+"-"+rm[i>>16&255]+rm[i>>24&255]+rm[255&n]+rm[n>>8&255]+rm[n>>16&255]+rm[n>>24&255]).toLowerCase()}function um(t,e,i){return Math.max(e,Math.min(i,t))}function pm(t,e){return(t%e+e)%e}function hm(t,e,i){return(1-i)*t+i*e}function dm(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function mm(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(4294967295*t);case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int32Array:return Math.round(2147483647*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.")}}var fm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,t),t.prototype.isVector2=!0,this.x=e,this.y=i}),[{key:"width",get:function(){return this.x},set:function(t){this.x=t}},{key:"height",get:function(){return this.y},set:function(t){this.y=t}},{key:"set",value:function(t,e){return this.x=t,this.y=e,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this}},{key:"divide",value:function(t){return this.x/=t.x,this.y/=t.y,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"applyMatrix3",value:function(t){var e=this.x,i=this.y,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this}},{key:"min",value:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}},{key:"max",value:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}},{key:"clamp",value:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}},{key:"clampScalar",value:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}},{key:"clampLength",value:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y}},{key:"cross",value:function(t){return this.x*t.y-this.y*t.x}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"angle",value:function(){return Math.atan2(-this.y,-this.x)+Math.PI}},{key:"angleTo",value:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;var i=this.dot(t)/e;return Math.acos(um(i,-1,1))}},{key:"distanceTo",value:function(t){return Math.sqrt(this.distanceToSquared(t))}},{key:"distanceToSquared",value:function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i}},{key:"manhattanDistanceTo",value:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}},{key:"setLength",value:function(t){return this.normalize().multiplyScalar(t)}},{key:"lerp",value:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}},{key:"lerpVectors",value:function(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}},{key:"equals",value:function(t){return t.x===this.x&&t.y===this.y}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}},{key:"rotateAround",value:function(t,e){var i=Math.cos(e),n=Math.sin(e),o=this.x-t.x,s=this.y-t.y;return this.x=o*i-s*n+t.x,this.y=o*n+s*i+t.y,this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:case"end":return t.stop()}}),t,this)}))}])}(),vm=function(){return _()((function t(e,i,n,o,s,a,r,l,c){k()(this,t),t.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,i,n,o,s,a,r,l,c)}),[{key:"set",value:function(t,e,i,n,o,s,a,r,l){var c=this.elements;return c[0]=t,c[1]=n,c[2]=a,c[3]=e,c[4]=o,c[5]=r,c[6]=i,c[7]=s,c[8]=l,this}},{key:"identity",value:function(){return this.set(1,0,0,0,1,0,0,0,1),this}},{key:"copy",value:function(t){var e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}},{key:"extractBasis",value:function(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}},{key:"setFromMatrix4",value:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}},{key:"multiply",value:function(t){return this.multiplyMatrices(this,t)}},{key:"premultiply",value:function(t){return this.multiplyMatrices(t,this)}},{key:"multiplyMatrices",value:function(t,e){var i=t.elements,n=e.elements,o=this.elements,s=i[0],a=i[3],r=i[6],l=i[1],c=i[4],u=i[7],p=i[2],h=i[5],d=i[8],m=n[0],f=n[3],v=n[6],g=n[1],y=n[4],b=n[7],C=n[2],w=n[5],k=n[8];return o[0]=s*m+a*g+r*C,o[3]=s*f+a*y+r*w,o[6]=s*v+a*b+r*k,o[1]=l*m+c*g+u*C,o[4]=l*f+c*y+u*w,o[7]=l*v+c*b+u*k,o[2]=p*m+h*g+d*C,o[5]=p*f+h*y+d*w,o[8]=p*v+h*b+d*k,this}},{key:"multiplyScalar",value:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}},{key:"determinant",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-i*o*c+i*a*r+n*o*l-n*s*r}},{key:"invert",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8],u=c*s-a*l,p=a*r-c*o,h=l*o-s*r,d=e*u+i*p+n*h;if(0===d)return this.set(0,0,0,0,0,0,0,0,0);var m=1/d;return t[0]=u*m,t[1]=(n*l-c*i)*m,t[2]=(a*i-n*s)*m,t[3]=p*m,t[4]=(c*e-n*r)*m,t[5]=(n*o-a*e)*m,t[6]=h*m,t[7]=(i*r-l*e)*m,t[8]=(s*e-i*o)*m,this}},{key:"transpose",value:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}},{key:"getNormalMatrix",value:function(t){return this.setFromMatrix4(t).invert().transpose()}},{key:"transposeIntoArray",value:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}},{key:"setUvTransform",value:function(t,e,i,n,o,s,a){var r=Math.cos(o),l=Math.sin(o);return this.set(i*r,i*l,-i*(r*s+l*a)+s+t,-n*l,n*r,-n*(-l*s+r*a)+a+e,0,0,1),this}},{key:"scale",value:function(t,e){return this.premultiply(gm.makeScale(t,e)),this}},{key:"rotate",value:function(t){return this.premultiply(gm.makeRotation(-t)),this}},{key:"translate",value:function(t,e){return this.premultiply(gm.makeTranslation(t,e)),this}},{key:"makeTranslation",value:function(t,e){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,e,0,0,1),this}},{key:"makeRotation",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,i,e,0,0,0,1),this}},{key:"makeScale",value:function(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}},{key:"equals",value:function(t){for(var e=this.elements,i=t.elements,n=0;n<9;n++)if(e[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<9;i++)this.elements[i]=t[i+e];return this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}},{key:"clone",value:function(){return(new this.constructor).fromArray(this.elements)}}])}(),gm=new vm;function ym(t){for(var e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array;function bm(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}var Cm={};function wm(t){t in Cm||(Cm[t]=!0,console.warn(t))}var km,xm=(new vm).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),_m=(new vm).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Em=C()(C()(C()(C()({},Zd,{transfer:Qd,primaries:em,toReference:function(t){return t},fromReference:function(t){return t}}),Xd,{transfer:tm,primaries:em,toReference:function(t){return t.convertSRGBToLinear()},fromReference:function(t){return t.convertLinearToSRGB()}}),$d,{transfer:Qd,primaries:"p3",toReference:function(t){return t.applyMatrix3(_m)},fromReference:function(t){return t.applyMatrix3(xm)}}),Kd,{transfer:tm,primaries:"p3",toReference:function(t){return t.convertSRGBToLinear().applyMatrix3(_m)},fromReference:function(t){return t.applyMatrix3(xm).convertLinearToSRGB()}}),Sm=new Set([Zd,$d]),Dm={enabled:!0,_workingColorSpace:Zd,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Sm.has(t))throw new Error('Unsupported working color space, "'.concat(t,'".'));this._workingColorSpace=t},convert:function(t,e,i){if(!1===this.enabled||e===i||!e||!i)return t;var n=Em[e].toReference;return(0,Em[i].fromReference)(n(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Em[t].primaries},getTransfer:function(t){return""===t?Qd:Em[t].transfer}};function Pm(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Mm(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}var Om=function(){return _()((function t(){k()(this,t)}),null,[{key:"getDataURL",value:function(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;var e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===km&&(km=bm("canvas")),km.width=t.width,km.height=t.height;var i=km.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=km}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}},{key:"sRGBToLinear",value:function(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){var e=bm("canvas");e.width=t.width,e.height=t.height;var i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);for(var n=i.getImageData(0,0,t.width,t.height),o=n.data,s=0;s0&&void 0!==arguments[0]?arguments[0]:null;k()(this,t),this.isSource=!0,Object.defineProperty(this,"id",{value:Tm++}),this.uuid=cm(),this.data=e,this.dataReady=!0,this.version=0}),[{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.images[this.uuid])return t.images[this.uuid];var i={uuid:this.uuid,url:""},n=this.data;if(null!==n){var o;if(Array.isArray(n)){o=[];for(var s=0,a=n.length;s0&&void 0!==arguments[0]?arguments[0]:e.DEFAULT_IMAGE,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DEFAULT_MAPPING,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1001,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1001,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1006,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1008,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1023,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1009,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:e.DEFAULT_ANISOTROPY,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:"";return k()(this,e),(t=Ud(this,e)).isTexture=!0,Object.defineProperty(Vd()(t),"id",{value:Lm++}),t.uuid=cm(),t.name="",t.source=new Nm(i),t.mipmaps=[],t.mapping=n,t.channel=0,t.wrapS=o,t.wrapT=s,t.magFilter=a,t.minFilter=r,t.anisotropy=u,t.format=l,t.internalFormat=null,t.type=c,t.offset=new fm(0,0),t.repeat=new fm(1,1),t.center=new fm(0,0),t.rotation=0,t.matrixAutoUpdate=!0,t.matrix=new vm,t.generateMipmaps=!0,t.premultiplyAlpha=!1,t.flipY=!0,t.unpackAlignment=4,t.colorSpace=p,t.userData={},t.version=0,t.onUpdate=null,t.isRenderTargetTexture=!1,t.pmremVersion=0,t}return sn()(e,t),_()(e,[{key:"image",get:function(){return this.source.data},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.source.data=t}},{key:"updateMatrix",value:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];var i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"transformUv",value:function(t){if(300!==this.mapping)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case 1e3:t.x=t.x-Math.floor(t.x);break;case 1001:t.x=t.x<0?0:1;break;case 1002:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case 1e3:t.y=t.y-Math.floor(t.y);break;case 1001:t.y=t.y<0?0:1;break;case 1002:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}},{key:"needsUpdate",set:function(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}},{key:"needsPMREMUpdate",set:function(t){!0===t&&this.pmremVersion++}}])}(am);Am.DEFAULT_IMAGE=null,Am.DEFAULT_MAPPING=300,Am.DEFAULT_ANISOTROPY=1;var jm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,t),t.prototype.isVector4=!0,this.x=e,this.y=i,this.z=n,this.w=o}),[{key:"width",get:function(){return this.z},set:function(t){this.z=t}},{key:"height",get:function(){return this.w},set:function(t){this.w=t}},{key:"set",value:function(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setZ",value:function(t){return this.z=t,this}},{key:"setW",value:function(t){return this.w=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z,this.w)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}},{key:"applyMatrix4",value:function(t){var e=this.x,i=this.y,n=this.z,o=this.w,s=t.elements;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12]*o,this.y=s[1]*e+s[5]*i+s[9]*n+s[13]*o,this.z=s[2]*e+s[6]*i+s[10]*n+s[14]*o,this.w=s[3]*e+s[7]*i+s[11]*n+s[15]*o,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"setAxisAngleFromQuaternion",value:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}},{key:"setAxisAngleFromRotationMatrix",value:function(t){var e,i,n,o,s=.01,a=.1,r=t.elements,l=r[0],c=r[4],u=r[8],p=r[1],h=r[5],d=r[9],m=r[2],f=r[6],v=r[10];if(Math.abs(c-p)y&&g>b?gb?y1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:return t.next=6,this.z;case 6:return t.next=8,this.w;case 8:case"end":return t.stop()}}),t,this)}))}])}(),Im=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return k()(this,e),(t=Ud(this,e,[null])).isDataArrayTexture=!0,t.image={data:i,width:n,height:o,depth:s},t.magFilter=1003,t.minFilter=1003,t.wrapR=1001,t.generateMipmaps=!1,t.flipY=!1,t.unpackAlignment=1,t}return sn()(e,t),_()(e)}(Am),Rm=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return k()(this,e),(t=Ud(this,e,[null])).isData3DTexture=!0,t.image={data:i,width:n,height:o,depth:s},t.magFilter=1003,t.minFilter=1003,t.wrapR=1001,t.generateMipmaps=!1,t.flipY=!1,t.unpackAlignment=1,t}return sn()(e,t),_()(e)}(Am),Fm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,t),this.isQuaternion=!0,this._x=e,this._y=i,this._z=n,this._w=o}),[{key:"x",get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},{key:"w",get:function(){return this._w},set:function(t){this._w=t,this._onChangeCallback()}},{key:"set",value:function(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._w)}},{key:"copy",value:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}},{key:"setFromEuler",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t._x,n=t._y,o=t._z,s=t._order,a=Math.cos,r=Math.sin,l=a(i/2),c=a(n/2),u=a(o/2),p=r(i/2),h=r(n/2),d=r(o/2);switch(s){case"XYZ":this._x=p*c*u+l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u-p*h*d;break;case"YXZ":this._x=p*c*u+l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u+p*h*d;break;case"ZXY":this._x=p*c*u-l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u-p*h*d;break;case"ZYX":this._x=p*c*u-l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u+p*h*d;break;case"YZX":this._x=p*c*u+l*h*d,this._y=l*h*u+p*c*d,this._z=l*c*d-p*h*u,this._w=l*c*u-p*h*d;break;case"XZY":this._x=p*c*u-l*h*d,this._y=l*h*u-p*c*d,this._z=l*c*d+p*h*u,this._w=l*c*u+p*h*d;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return!0===e&&this._onChangeCallback(),this}},{key:"setFromAxisAngle",value:function(t,e){var i=e/2,n=Math.sin(i);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(t){var e=t.elements,i=e[0],n=e[4],o=e[8],s=e[1],a=e[5],r=e[9],l=e[2],c=e[6],u=e[10],p=i+a+u;if(p>0){var h=.5/Math.sqrt(p+1);this._w=.25/h,this._x=(c-r)*h,this._y=(o-l)*h,this._z=(s-n)*h}else if(i>a&&i>u){var d=2*Math.sqrt(1+i-a-u);this._w=(c-r)/d,this._x=.25*d,this._y=(n+s)/d,this._z=(o+l)/d}else if(a>u){var m=2*Math.sqrt(1+a-i-u);this._w=(o-l)/m,this._x=(n+s)/m,this._y=.25*m,this._z=(r+c)/m}else{var f=2*Math.sqrt(1+u-i-a);this._w=(s-n)/f,this._x=(o+l)/f,this._y=(r+c)/f,this._z=.25*f}return this._onChangeCallback(),this}},{key:"setFromUnitVectors",value:function(t,e){var i=t.dot(e)+1;return iMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}},{key:"angleTo",value:function(t){return 2*Math.acos(Math.abs(um(this.dot(t),-1,1)))}},{key:"rotateTowards",value:function(t,e){var i=this.angleTo(t);if(0===i)return this;var n=Math.min(1,e/i);return this.slerp(t,n),this}},{key:"identity",value:function(){return this.set(0,0,0,1)}},{key:"invert",value:function(){return this.conjugate()}},{key:"conjugate",value:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}},{key:"dot",value:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}},{key:"lengthSq",value:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}},{key:"length",value:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}},{key:"normalize",value:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}},{key:"multiply",value:function(t){return this.multiplyQuaternions(this,t)}},{key:"premultiply",value:function(t){return this.multiplyQuaternions(t,this)}},{key:"multiplyQuaternions",value:function(t,e){var i=t._x,n=t._y,o=t._z,s=t._w,a=e._x,r=e._y,l=e._z,c=e._w;return this._x=i*c+s*a+n*l-o*r,this._y=n*c+s*r+o*a-i*l,this._z=o*c+s*l+i*r-n*a,this._w=s*c-i*a-n*r-o*l,this._onChangeCallback(),this}},{key:"slerp",value:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var i=this._x,n=this._y,o=this._z,s=this._w,a=s*t._w+i*t._x+n*t._y+o*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=i,this._y=n,this._z=o,this;var r=1-a*a;if(r<=Number.EPSILON){var l=1-e;return this._w=l*s+e*this._w,this._x=l*i+e*this._x,this._y=l*n+e*this._y,this._z=l*o+e*this._z,this.normalize(),this}var c=Math.sqrt(r),u=Math.atan2(c,a),p=Math.sin((1-e)*u)/c,h=Math.sin(e*u)/c;return this._w=s*p+this._w*h,this._x=i*p+this._x*h,this._y=n*p+this._y*h,this._z=o*p+this._z*h,this._onChangeCallback(),this}},{key:"slerpQuaternions",value:function(t,e,i){return this.copy(t).slerp(e,i)}},{key:"random",value:function(){var t=2*Math.PI*Math.random(),e=2*Math.PI*Math.random(),i=Math.random(),n=Math.sqrt(1-i),o=Math.sqrt(i);return this.set(n*Math.sin(t),n*Math.cos(t),o*Math.sin(e),o*Math.cos(e))}},{key:"equals",value:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}},{key:"fromBufferAttribute",value:function(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this._onChangeCallback(),this}},{key:"toJSON",value:function(){return this.toArray()}},{key:"_onChange",value:function(t){return this._onChangeCallback=t,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._x;case 2:return t.next=4,this._y;case 4:return t.next=6,this._z;case 6:return t.next=8,this._w;case 8:case"end":return t.stop()}}),t,this)}))}],[{key:"slerpFlat",value:function(t,e,i,n,o,s,a){var r=i[n+0],l=i[n+1],c=i[n+2],u=i[n+3],p=o[s+0],h=o[s+1],d=o[s+2],m=o[s+3];if(0===a)return t[e+0]=r,t[e+1]=l,t[e+2]=c,void(t[e+3]=u);if(1===a)return t[e+0]=p,t[e+1]=h,t[e+2]=d,void(t[e+3]=m);if(u!==m||r!==p||l!==h||c!==d){var f=1-a,v=r*p+l*h+c*d+u*m,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),C=Math.atan2(b,v*g);f=Math.sin(f*C)/b,a=Math.sin(a*C)/b}var w=a*g;if(r=r*f+p*w,l=l*f+h*w,c=c*f+d*w,u=u*f+m*w,f===1-a){var k=1/Math.sqrt(r*r+l*l+c*c+u*u);r*=k,l*=k,c*=k,u*=k}}t[e]=r,t[e+1]=l,t[e+2]=c,t[e+3]=u}},{key:"multiplyQuaternionsFlat",value:function(t,e,i,n,o,s){var a=i[n],r=i[n+1],l=i[n+2],c=i[n+3],u=o[s],p=o[s+1],h=o[s+2],d=o[s+3];return t[e]=a*d+c*u+r*h-l*p,t[e+1]=r*d+c*p+l*u-a*h,t[e+2]=l*d+c*h+a*p-r*u,t[e+3]=c*d-a*u-r*p-l*h,t}}])}(),zm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;k()(this,t),t.prototype.isVector3=!0,this.x=e,this.y=i,this.z=n}),[{key:"set",value:function(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}},{key:"setScalar",value:function(t){return this.x=t,this.y=t,this.z=t,this}},{key:"setX",value:function(t){return this.x=t,this}},{key:"setY",value:function(t){return this.y=t,this}},{key:"setZ",value:function(t){return this.z=t,this}},{key:"setComponent",value:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}},{key:"getComponent",value:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}},{key:"clone",value:function(){return new this.constructor(this.x,this.y,this.z)}},{key:"copy",value:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}},{key:"add",value:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}},{key:"addScalar",value:function(t){return this.x+=t,this.y+=t,this.z+=t,this}},{key:"addVectors",value:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}},{key:"addScaledVector",value:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}},{key:"sub",value:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}},{key:"subScalar",value:function(t){return this.x-=t,this.y-=t,this.z-=t,this}},{key:"subVectors",value:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}},{key:"multiply",value:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}},{key:"multiplyScalar",value:function(t){return this.x*=t,this.y*=t,this.z*=t,this}},{key:"multiplyVectors",value:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}},{key:"applyEuler",value:function(t){return this.applyQuaternion(Vm.setFromEuler(t))}},{key:"applyAxisAngle",value:function(t,e){return this.applyQuaternion(Vm.setFromAxisAngle(t,e))}},{key:"applyMatrix3",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements;return this.x=o[0]*e+o[3]*i+o[6]*n,this.y=o[1]*e+o[4]*i+o[7]*n,this.z=o[2]*e+o[5]*i+o[8]*n,this}},{key:"applyNormalMatrix",value:function(t){return this.applyMatrix3(t).normalize()}},{key:"applyMatrix4",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements,s=1/(o[3]*e+o[7]*i+o[11]*n+o[15]);return this.x=(o[0]*e+o[4]*i+o[8]*n+o[12])*s,this.y=(o[1]*e+o[5]*i+o[9]*n+o[13])*s,this.z=(o[2]*e+o[6]*i+o[10]*n+o[14])*s,this}},{key:"applyQuaternion",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.x,s=t.y,a=t.z,r=t.w,l=2*(s*n-a*i),c=2*(a*e-o*n),u=2*(o*i-s*e);return this.x=e+r*l+s*u-a*c,this.y=i+r*c+a*l-o*u,this.z=n+r*u+o*c-s*l,this}},{key:"project",value:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}},{key:"unproject",value:function(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}},{key:"transformDirection",value:function(t){var e=this.x,i=this.y,n=this.z,o=t.elements;return this.x=o[0]*e+o[4]*i+o[8]*n,this.y=o[1]*e+o[5]*i+o[9]*n,this.z=o[2]*e+o[6]*i+o[10]*n,this.normalize()}},{key:"divide",value:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}},{key:"divideScalar",value:function(t){return this.multiplyScalar(1/t)}},{key:"min",value:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}},{key:"max",value:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}},{key:"clamp",value:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}},{key:"clampScalar",value:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}},{key:"clampLength",value:function(t,e){var i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}},{key:"floor",value:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}},{key:"ceil",value:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}},{key:"round",value:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}},{key:"roundToZero",value:function(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}},{key:"negate",value:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y+this.z*t.z}},{key:"lengthSq",value:function(){return this.x*this.x+this.y*this.y+this.z*this.z}},{key:"length",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}},{key:"manhattanLength",value:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}},{key:"normalize",value:function(){return this.divideScalar(this.length()||1)}},{key:"setLength",value:function(t){return this.normalize().multiplyScalar(t)}},{key:"lerp",value:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}},{key:"lerpVectors",value:function(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}},{key:"cross",value:function(t){return this.crossVectors(this,t)}},{key:"crossVectors",value:function(t,e){var i=t.x,n=t.y,o=t.z,s=e.x,a=e.y,r=e.z;return this.x=n*r-o*a,this.y=o*s-i*r,this.z=i*a-n*s,this}},{key:"projectOnVector",value:function(t){var e=t.lengthSq();if(0===e)return this.set(0,0,0);var i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}},{key:"projectOnPlane",value:function(t){return Hm.copy(this).projectOnVector(t),this.sub(Hm)}},{key:"reflect",value:function(t){return this.sub(Hm.copy(t).multiplyScalar(2*this.dot(t)))}},{key:"angleTo",value:function(t){var e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;var i=this.dot(t)/e;return Math.acos(um(i,-1,1))}},{key:"distanceTo",value:function(t){return Math.sqrt(this.distanceToSquared(t))}},{key:"distanceToSquared",value:function(t){var e=this.x-t.x,i=this.y-t.y,n=this.z-t.z;return e*e+i*i+n*n}},{key:"manhattanDistanceTo",value:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}},{key:"setFromSpherical",value:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}},{key:"setFromSphericalCoords",value:function(t,e,i){var n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this}},{key:"setFromCylindrical",value:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}},{key:"setFromCylindricalCoords",value:function(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}},{key:"setFromMatrixPosition",value:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}},{key:"setFromMatrixScale",value:function(t){var e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,this}},{key:"setFromMatrixColumn",value:function(t,e){return this.fromArray(t.elements,4*e)}},{key:"setFromMatrix3Column",value:function(t,e){return this.fromArray(t.elements,3*e)}},{key:"setFromEuler",value:function(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}},{key:"setFromColor",value:function(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}},{key:"equals",value:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}},{key:"fromBufferAttribute",value:function(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}},{key:"random",value:function(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}},{key:"randomDirection",value:function(){var t=Math.random()*Math.PI*2,e=2*Math.random()-1,i=Math.sqrt(1-e*e);return this.x=i*Math.cos(t),this.y=e,this.z=i*Math.sin(t),this}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.x;case 2:return t.next=4,this.y;case 4:return t.next=6,this.z;case 6:case"end":return t.stop()}}),t,this)}))}])}(),Hm=new zm,Vm=new Fm,Gm=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm(1/0,1/0,1/0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm(-1/0,-1/0,-1/0);k()(this,t),this.isBox3=!0,this.min=e,this.max=i}),[{key:"set",value:function(t,e){return this.min.copy(t),this.max.copy(e),this}},{key:"setFromArray",value:function(t){this.makeEmpty();for(var e=0,i=t.length;e1&&void 0!==arguments[1]&&arguments[1];return this.makeEmpty(),this.expandByObject(t,e)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.min.copy(t.min),this.max.copy(t.max),this}},{key:"makeEmpty",value:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}},{key:"isEmpty",value:function(){return this.max.x1&&void 0!==arguments[1]&&arguments[1];t.updateWorldMatrix(!1,!1);var i=t.geometry;if(void 0!==i){var n=i.getAttribute("position");if(!0===e&&void 0!==n&&!0!==t.isInstancedMesh)for(var o=0,s=n.count;othis.max.x||t.ythis.max.y||t.zthis.max.z)}},{key:"containsBox",value:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}},{key:"getParameter",value:function(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}},{key:"intersectsBox",value:function(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}},{key:"intersectsSphere",value:function(t){return this.clampPoint(t.center,Wm),Wm.distanceToSquared(t.center)<=t.radius*t.radius}},{key:"intersectsPlane",value:function(t){var e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}},{key:"intersectsTriangle",value:function(t){if(this.isEmpty())return!1;this.getCenter(Qm),tf.subVectors(this.max,Qm),Jm.subVectors(t.a,Qm),qm.subVectors(t.b,Qm),Xm.subVectors(t.c,Qm),Zm.subVectors(qm,Jm),Km.subVectors(Xm,qm),$m.subVectors(Jm,Xm);var e=[0,-Zm.z,Zm.y,0,-Km.z,Km.y,0,-$m.z,$m.y,Zm.z,0,-Zm.x,Km.z,0,-Km.x,$m.z,0,-$m.x,-Zm.y,Zm.x,0,-Km.y,Km.x,0,-$m.y,$m.x,0];return!!of(e,Jm,qm,Xm,tf)&&(!!of(e=[1,0,0,0,1,0,0,0,1],Jm,qm,Xm,tf)&&(ef.crossVectors(Zm,Km),of(e=[ef.x,ef.y,ef.z],Jm,qm,Xm,tf)))}},{key:"clampPoint",value:function(t,e){return e.copy(t).clamp(this.min,this.max)}},{key:"distanceToPoint",value:function(t){return this.clampPoint(t,Wm).distanceTo(t)}},{key:"getBoundingSphere",value:function(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(Wm).length()),t}},{key:"intersect",value:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}},{key:"union",value:function(t){return this.min.min(t.min),this.max.max(t.max),this}},{key:"applyMatrix4",value:function(t){return this.isEmpty()||(Um[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),Um[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),Um[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),Um[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),Um[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),Um[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),Um[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),Um[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(Um)),this}},{key:"translate",value:function(t){return this.min.add(t),this.max.add(t),this}},{key:"equals",value:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}])}(),Um=[new zm,new zm,new zm,new zm,new zm,new zm,new zm,new zm],Wm=new zm,Ym=new Gm,Jm=new zm,qm=new zm,Xm=new zm,Zm=new zm,Km=new zm,$m=new zm,Qm=new zm,tf=new zm,ef=new zm,nf=new zm;function of(t,e,i,n,o){for(var s=0,a=t.length-3;s<=a;s+=3){nf.fromArray(t,s);var r=o.x*Math.abs(nf.x)+o.y*Math.abs(nf.y)+o.z*Math.abs(nf.z),l=e.dot(nf),c=i.dot(nf),u=n.dot(nf);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>r)return!1}return!0}var sf=new Gm,af=new zm,rf=new zm,lf=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;k()(this,t),this.isSphere=!0,this.center=e,this.radius=i}),[{key:"set",value:function(t,e){return this.center.copy(t),this.radius=e,this}},{key:"setFromPoints",value:function(t,e){var i=this.center;void 0!==e?i.copy(e):sf.setFromPoints(t).getCenter(i);for(var n=0,o=0,s=t.length;othis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}},{key:"getBoundingBox",value:function(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}},{key:"applyMatrix4",value:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}},{key:"translate",value:function(t){return this.center.add(t),this}},{key:"expandByPoint",value:function(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;af.subVectors(t,this.center);var e=af.lengthSq();if(e>this.radius*this.radius){var i=Math.sqrt(e),n=.5*(i-this.radius);this.center.addScaledVector(af,n/i),this.radius+=n}return this}},{key:"union",value:function(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(rf.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(af.copy(t.center).add(rf)),this.expandByPoint(af.copy(t.center).sub(rf))),this)}},{key:"equals",value:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),cf=new zm,uf=new zm,pf=new zm,hf=new zm,df=new zm,mf=new zm,ff=new zm,vf=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm(0,0,-1);k()(this,t),this.origin=e,this.direction=i}),[{key:"set",value:function(t,e){return this.origin.copy(t),this.direction.copy(e),this}},{key:"copy",value:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}},{key:"at",value:function(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}},{key:"lookAt",value:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this}},{key:"recast",value:function(t){return this.origin.copy(this.at(t,cf)),this}},{key:"closestPointToPoint",value:function(t,e){e.subVectors(t,this.origin);var i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(t){return Math.sqrt(this.distanceSqToPoint(t))}},{key:"distanceSqToPoint",value:function(t){var e=cf.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(cf.copy(this.origin).addScaledVector(this.direction,e),cf.distanceToSquared(t))}},{key:"distanceSqToSegment",value:function(t,e,i,n){uf.copy(t).add(e).multiplyScalar(.5),pf.copy(e).sub(t).normalize(),hf.copy(this.origin).sub(uf);var o,s,a,r,l=.5*t.distanceTo(e),c=-this.direction.dot(pf),u=hf.dot(this.direction),p=-hf.dot(pf),h=hf.lengthSq(),d=Math.abs(1-c*c);if(d>0)if(s=c*u-p,r=l*d,(o=c*p-u)>=0)if(s>=-r)if(s<=r){var m=1/d;a=(o*=m)*(o+c*(s*=m)+2*u)+s*(c*o+s+2*p)+h}else s=l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;else s=-l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;else s<=-r?a=-(o=Math.max(0,-(-c*l+u)))*o+(s=o>0?-l:Math.min(Math.max(-l,-p),l))*(s+2*p)+h:s<=r?(o=0,a=(s=Math.min(Math.max(-l,-p),l))*(s+2*p)+h):a=-(o=Math.max(0,-(c*l+u)))*o+(s=o>0?l:Math.min(Math.max(-l,-p),l))*(s+2*p)+h;else s=c>0?-l:l,a=-(o=Math.max(0,-(c*s+u)))*o+s*(s+2*p)+h;return i&&i.copy(this.origin).addScaledVector(this.direction,o),n&&n.copy(uf).addScaledVector(pf,s),a}},{key:"intersectSphere",value:function(t,e){cf.subVectors(t.center,this.origin);var i=cf.dot(this.direction),n=cf.dot(cf)-i*i,o=t.radius*t.radius;if(n>o)return null;var s=Math.sqrt(o-n),a=i-s,r=i+s;return r<0?null:a<0?this.at(r,e):this.at(a,e)}},{key:"intersectsSphere",value:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}},{key:"distanceToPlane",value:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}},{key:"intersectPlane",value:function(t,e){var i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}},{key:"intersectsPlane",value:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}},{key:"intersectBox",value:function(t,e){var i,n,o,s,a,r,l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,p=this.origin;return l>=0?(i=(t.min.x-p.x)*l,n=(t.max.x-p.x)*l):(i=(t.max.x-p.x)*l,n=(t.min.x-p.x)*l),c>=0?(o=(t.min.y-p.y)*c,s=(t.max.y-p.y)*c):(o=(t.max.y-p.y)*c,s=(t.min.y-p.y)*c),i>s||o>n?null:((o>i||isNaN(i))&&(i=o),(s=0?(a=(t.min.z-p.z)*u,r=(t.max.z-p.z)*u):(a=(t.max.z-p.z)*u,r=(t.min.z-p.z)*u),i>r||a>n?null:((a>i||i!=i)&&(i=a),(r=0?i:n,e)))}},{key:"intersectsBox",value:function(t){return null!==this.intersectBox(t,cf)}},{key:"intersectTriangle",value:function(t,e,i,n,o){df.subVectors(e,t),mf.subVectors(i,t),ff.crossVectors(df,mf);var s,a=this.direction.dot(ff);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}hf.subVectors(this.origin,t);var r=s*this.direction.dot(mf.crossVectors(hf,mf));if(r<0)return null;var l=s*this.direction.dot(df.cross(hf));if(l<0)return null;if(r+l>a)return null;var c=-s*hf.dot(ff);return c<0?null:this.at(c/a,o)}},{key:"applyMatrix4",value:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}},{key:"equals",value:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),gf=function(){function t(e,i,n,o,s,a,r,l,c,u,p,h,d,m,f,v){k()(this,t),t.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,i,n,o,s,a,r,l,c,u,p,h,d,m,f,v)}return _()(t,[{key:"set",value:function(t,e,i,n,o,s,a,r,l,c,u,p,h,d,m,f){var v=this.elements;return v[0]=t,v[4]=e,v[8]=i,v[12]=n,v[1]=o,v[5]=s,v[9]=a,v[13]=r,v[2]=l,v[6]=c,v[10]=u,v[14]=p,v[3]=h,v[7]=d,v[11]=m,v[15]=f,this}},{key:"identity",value:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}},{key:"clone",value:function(){return(new t).fromArray(this.elements)}},{key:"copy",value:function(t){var e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}},{key:"copyPosition",value:function(t){var e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}},{key:"setFromMatrix3",value:function(t){var e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}},{key:"extractBasis",value:function(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}},{key:"makeBasis",value:function(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}},{key:"extractRotation",value:function(t){var e=this.elements,i=t.elements,n=1/yf.setFromMatrixColumn(t,0).length(),o=1/yf.setFromMatrixColumn(t,1).length(),s=1/yf.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*o,e[5]=i[5]*o,e[6]=i[6]*o,e[7]=0,e[8]=i[8]*s,e[9]=i[9]*s,e[10]=i[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}},{key:"makeRotationFromEuler",value:function(t){var e=this.elements,i=t.x,n=t.y,o=t.z,s=Math.cos(i),a=Math.sin(i),r=Math.cos(n),l=Math.sin(n),c=Math.cos(o),u=Math.sin(o);if("XYZ"===t.order){var p=s*c,h=s*u,d=a*c,m=a*u;e[0]=r*c,e[4]=-r*u,e[8]=l,e[1]=h+d*l,e[5]=p-m*l,e[9]=-a*r,e[2]=m-p*l,e[6]=d+h*l,e[10]=s*r}else if("YXZ"===t.order){var f=r*c,v=r*u,g=l*c,y=l*u;e[0]=f+y*a,e[4]=g*a-v,e[8]=s*l,e[1]=s*u,e[5]=s*c,e[9]=-a,e[2]=v*a-g,e[6]=y+f*a,e[10]=s*r}else if("ZXY"===t.order){var b=r*c,C=r*u,w=l*c,k=l*u;e[0]=b-k*a,e[4]=-s*u,e[8]=w+C*a,e[1]=C+w*a,e[5]=s*c,e[9]=k-b*a,e[2]=-s*l,e[6]=a,e[10]=s*r}else if("ZYX"===t.order){var x=s*c,_=s*u,E=a*c,S=a*u;e[0]=r*c,e[4]=E*l-_,e[8]=x*l+S,e[1]=r*u,e[5]=S*l+x,e[9]=_*l-E,e[2]=-l,e[6]=a*r,e[10]=s*r}else if("YZX"===t.order){var D=s*r,P=s*l,M=a*r,O=a*l;e[0]=r*c,e[4]=O-D*u,e[8]=M*u+P,e[1]=u,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=P*u+M,e[10]=D-O*u}else if("XZY"===t.order){var T=s*r,N=s*l,B=a*r,L=a*l;e[0]=r*c,e[4]=-u,e[8]=l*c,e[1]=T*u+L,e[5]=s*c,e[9]=N*u-B,e[2]=B*u-N,e[6]=a*c,e[10]=L*u+T}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}},{key:"makeRotationFromQuaternion",value:function(t){return this.compose(Cf,t,wf)}},{key:"lookAt",value:function(t,e,i){var n=this.elements;return _f.subVectors(t,e),0===_f.lengthSq()&&(_f.z=1),_f.normalize(),kf.crossVectors(i,_f),0===kf.lengthSq()&&(1===Math.abs(i.z)?_f.x+=1e-4:_f.z+=1e-4,_f.normalize(),kf.crossVectors(i,_f)),kf.normalize(),xf.crossVectors(_f,kf),n[0]=kf.x,n[4]=xf.x,n[8]=_f.x,n[1]=kf.y,n[5]=xf.y,n[9]=_f.y,n[2]=kf.z,n[6]=xf.z,n[10]=_f.z,this}},{key:"multiply",value:function(t){return this.multiplyMatrices(this,t)}},{key:"premultiply",value:function(t){return this.multiplyMatrices(t,this)}},{key:"multiplyMatrices",value:function(t,e){var i=t.elements,n=e.elements,o=this.elements,s=i[0],a=i[4],r=i[8],l=i[12],c=i[1],u=i[5],p=i[9],h=i[13],d=i[2],m=i[6],f=i[10],v=i[14],g=i[3],y=i[7],b=i[11],C=i[15],w=n[0],k=n[4],x=n[8],_=n[12],E=n[1],S=n[5],D=n[9],P=n[13],M=n[2],O=n[6],T=n[10],N=n[14],B=n[3],L=n[7],A=n[11],j=n[15];return o[0]=s*w+a*E+r*M+l*B,o[4]=s*k+a*S+r*O+l*L,o[8]=s*x+a*D+r*T+l*A,o[12]=s*_+a*P+r*N+l*j,o[1]=c*w+u*E+p*M+h*B,o[5]=c*k+u*S+p*O+h*L,o[9]=c*x+u*D+p*T+h*A,o[13]=c*_+u*P+p*N+h*j,o[2]=d*w+m*E+f*M+v*B,o[6]=d*k+m*S+f*O+v*L,o[10]=d*x+m*D+f*T+v*A,o[14]=d*_+m*P+f*N+v*j,o[3]=g*w+y*E+b*M+C*B,o[7]=g*k+y*S+b*O+C*L,o[11]=g*x+y*D+b*T+C*A,o[15]=g*_+y*P+b*N+C*j,this}},{key:"multiplyScalar",value:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}},{key:"determinant",value:function(){var t=this.elements,e=t[0],i=t[4],n=t[8],o=t[12],s=t[1],a=t[5],r=t[9],l=t[13],c=t[2],u=t[6],p=t[10],h=t[14];return t[3]*(+o*r*u-n*l*u-o*a*p+i*l*p+n*a*h-i*r*h)+t[7]*(+e*r*h-e*l*p+o*s*p-n*s*h+n*l*c-o*r*c)+t[11]*(+e*l*u-e*a*h-o*s*u+i*s*h+o*a*c-i*l*c)+t[15]*(-n*a*c-e*r*u+e*a*p+n*s*u-i*s*p+i*r*c)}},{key:"transpose",value:function(){var t,e=this.elements;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}},{key:"setPosition",value:function(t,e,i){var n=this.elements;return t.isVector3?(n[12]=t.x,n[13]=t.y,n[14]=t.z):(n[12]=t,n[13]=e,n[14]=i),this}},{key:"invert",value:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],o=t[3],s=t[4],a=t[5],r=t[6],l=t[7],c=t[8],u=t[9],p=t[10],h=t[11],d=t[12],m=t[13],f=t[14],v=t[15],g=u*f*l-m*p*l+m*r*h-a*f*h-u*r*v+a*p*v,y=d*p*l-c*f*l-d*r*h+s*f*h+c*r*v-s*p*v,b=c*m*l-d*u*l+d*a*h-s*m*h-c*a*v+s*u*v,C=d*u*r-c*m*r-d*a*p+s*m*p+c*a*f-s*u*f,w=e*g+i*y+n*b+o*C;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);var k=1/w;return t[0]=g*k,t[1]=(m*p*o-u*f*o-m*n*h+i*f*h+u*n*v-i*p*v)*k,t[2]=(a*f*o-m*r*o+m*n*l-i*f*l-a*n*v+i*r*v)*k,t[3]=(u*r*o-a*p*o-u*n*l+i*p*l+a*n*h-i*r*h)*k,t[4]=y*k,t[5]=(c*f*o-d*p*o+d*n*h-e*f*h-c*n*v+e*p*v)*k,t[6]=(d*r*o-s*f*o-d*n*l+e*f*l+s*n*v-e*r*v)*k,t[7]=(s*p*o-c*r*o+c*n*l-e*p*l-s*n*h+e*r*h)*k,t[8]=b*k,t[9]=(d*u*o-c*m*o-d*i*h+e*m*h+c*i*v-e*u*v)*k,t[10]=(s*m*o-d*a*o+d*i*l-e*m*l-s*i*v+e*a*v)*k,t[11]=(c*a*o-s*u*o-c*i*l+e*u*l+s*i*h-e*a*h)*k,t[12]=C*k,t[13]=(c*m*n-d*u*n+d*i*p-e*m*p-c*i*f+e*u*f)*k,t[14]=(d*a*n-s*m*n-d*i*r+e*m*r+s*i*f-e*a*f)*k,t[15]=(s*u*n-c*a*n+c*i*r-e*u*r-s*i*p+e*a*p)*k,this}},{key:"scale",value:function(t){var e=this.elements,i=t.x,n=t.y,o=t.z;return e[0]*=i,e[4]*=n,e[8]*=o,e[1]*=i,e[5]*=n,e[9]*=o,e[2]*=i,e[6]*=n,e[10]*=o,e[3]*=i,e[7]*=n,e[11]*=o,this}},{key:"getMaxScaleOnAxis",value:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}},{key:"makeTranslation",value:function(t,e,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}},{key:"makeRotationX",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}},{key:"makeRotationY",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}},{key:"makeRotationZ",value:function(t){var e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}},{key:"makeRotationAxis",value:function(t,e){var i=Math.cos(e),n=Math.sin(e),o=1-i,s=t.x,a=t.y,r=t.z,l=o*s,c=o*a;return this.set(l*s+i,l*a-n*r,l*r+n*a,0,l*a+n*r,c*a+i,c*r-n*s,0,l*r-n*a,c*r+n*s,o*r*r+i,0,0,0,0,1),this}},{key:"makeScale",value:function(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}},{key:"makeShear",value:function(t,e,i,n,o,s){return this.set(1,i,o,0,t,1,s,0,e,n,1,0,0,0,0,1),this}},{key:"compose",value:function(t,e,i){var n=this.elements,o=e._x,s=e._y,a=e._z,r=e._w,l=o+o,c=s+s,u=a+a,p=o*l,h=o*c,d=o*u,m=s*c,f=s*u,v=a*u,g=r*l,y=r*c,b=r*u,C=i.x,w=i.y,k=i.z;return n[0]=(1-(m+v))*C,n[1]=(h+b)*C,n[2]=(d-y)*C,n[3]=0,n[4]=(h-b)*w,n[5]=(1-(p+v))*w,n[6]=(f+g)*w,n[7]=0,n[8]=(d+y)*k,n[9]=(f-g)*k,n[10]=(1-(p+m))*k,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}},{key:"decompose",value:function(t,e,i){var n=this.elements,o=yf.set(n[0],n[1],n[2]).length(),s=yf.set(n[4],n[5],n[6]).length(),a=yf.set(n[8],n[9],n[10]).length();this.determinant()<0&&(o=-o),t.x=n[12],t.y=n[13],t.z=n[14],bf.copy(this);var r=1/o,l=1/s,c=1/a;return bf.elements[0]*=r,bf.elements[1]*=r,bf.elements[2]*=r,bf.elements[4]*=l,bf.elements[5]*=l,bf.elements[6]*=l,bf.elements[8]*=c,bf.elements[9]*=c,bf.elements[10]*=c,e.setFromRotationMatrix(bf),i.x=o,i.y=s,i.z=a,this}},{key:"makePerspective",value:function(t,e,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=2*o/(e-t),p=2*o/(i-n),h=(e+t)/(e-t),d=(i+n)/(i-n);if(l===om)a=-(s+o)/(s-o),r=-2*s*o/(s-o);else{if(l!==sm)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+l);a=-s/(s-o),r=-s*o/(s-o)}return c[0]=u,c[4]=0,c[8]=h,c[12]=0,c[1]=0,c[5]=p,c[9]=d,c[13]=0,c[2]=0,c[6]=0,c[10]=a,c[14]=r,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}},{key:"makeOrthographic",value:function(t,e,i,n,o,s){var a,r,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2e3,c=this.elements,u=1/(e-t),p=1/(i-n),h=1/(s-o),d=(e+t)*u,m=(i+n)*p;if(l===om)a=(s+o)*h,r=-2*h;else{if(l!==sm)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+l);a=o*h,r=-1*h}return c[0]=2*u,c[4]=0,c[8]=0,c[12]=-d,c[1]=0,c[5]=2*p,c[9]=0,c[13]=-m,c[2]=0,c[6]=0,c[10]=r,c[14]=-a,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}},{key:"equals",value:function(t){for(var e=this.elements,i=t.elements,n=0;n<16;n++)if(e[n]!==i[n])return!1;return!0}},{key:"fromArray",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=0;i<16;i++)this.elements[i]=t[i+e];return this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}])}(),yf=new zm,bf=new gf,Cf=new zm(0,0,0),wf=new zm(1,1,1),kf=new zm,xf=new zm,_f=new zm,Ef=new gf,Sf=new Fm,Df=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.DEFAULT_ORDER;k()(this,t),this.isEuler=!0,this._x=e,this._y=i,this._z=n,this._order=o}),[{key:"x",get:function(){return this._x},set:function(t){this._x=t,this._onChangeCallback()}},{key:"y",get:function(){return this._y},set:function(t){this._y=t,this._onChangeCallback()}},{key:"z",get:function(){return this._z},set:function(t){this._z=t,this._onChangeCallback()}},{key:"order",get:function(){return this._order},set:function(t){this._order=t,this._onChangeCallback()}},{key:"set",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._order;return this._x=t,this._y=e,this._z=i,this._order=n,this._onChangeCallback(),this}},{key:"clone",value:function(){return new this.constructor(this._x,this._y,this._z,this._order)}},{key:"copy",value:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}},{key:"setFromRotationMatrix",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t.elements,o=n[0],s=n[4],a=n[8],r=n[1],l=n[5],c=n[9],u=n[2],p=n[6],h=n[10];switch(e){case"XYZ":this._y=Math.asin(um(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(p,l),this._z=0);break;case"YXZ":this._x=Math.asin(-um(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,h),this._z=Math.atan2(r,l)):(this._y=Math.atan2(-u,o),this._z=0);break;case"ZXY":this._x=Math.asin(um(p,-1,1)),Math.abs(p)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(r,o));break;case"ZYX":this._y=Math.asin(-um(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(p,h),this._z=Math.atan2(r,o)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(um(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,o)):(this._x=0,this._y=Math.atan2(a,h));break;case"XZY":this._z=Math.asin(-um(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(p,l),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-c,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===i&&this._onChangeCallback(),this}},{key:"setFromQuaternion",value:function(t,e,i){return Ef.makeRotationFromQuaternion(t),this.setFromRotationMatrix(Ef,e,i)}},{key:"setFromVector3",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._order;return this.set(t.x,t.y,t.z,e)}},{key:"reorder",value:function(t){return Sf.setFromEuler(this),this.setFromQuaternion(Sf,t)}},{key:"equals",value:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}},{key:"fromArray",value:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}},{key:"_onChange",value:function(t){return this._onChangeCallback=t,this}},{key:"_onChangeCallback",value:function(){}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._x;case 2:return t.next=4,this._y;case 4:return t.next=6,this._z;case 6:return t.next=8,this._order;case 8:case"end":return t.stop()}}),t,this)}))}])}();Df.DEFAULT_ORDER="XYZ";var Pf=function(){return _()((function t(){k()(this,t),this.mask=1}),[{key:"set",value:function(t){this.mask=(1<>>0}},{key:"enable",value:function(t){this.mask|=1<1){for(var e=0;e1){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:[];this[t]===e&&i.push(this);for(var n=this.children,o=0,s=n.length;o0&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),n.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(n.type="BatchedMesh",n.perObjectFrustumCulled=this.perObjectFrustumCulled,n.sortObjects=this.sortObjects,n.drawRanges=this._drawRanges,n.reservedRanges=this._reservedRanges,n.visibility=this._visibility,n.active=this._active,n.bounds=this._bounds.map((function(t){return{boxInitialized:t.boxInitialized,boxMin:t.box.min.toArray(),boxMax:t.box.max.toArray(),sphereInitialized:t.sphereInitialized,sphereRadius:t.sphere.radius,sphereCenter:t.sphere.center.toArray()}})),n.maxGeometryCount=this._maxGeometryCount,n.maxVertexCount=this._maxVertexCount,n.maxIndexCount=this._maxIndexCount,n.geometryInitialized=this._geometryInitialized,n.geometryCount=this._geometryCount,n.matricesTexture=this._matricesTexture.toJSON(t),null!==this.boundingSphere&&(n.boundingSphere={center:n.boundingSphere.center.toArray(),radius:n.boundingSphere.radius}),null!==this.boundingBox&&(n.boundingBox={min:n.boundingBox.min.toArray(),max:n.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(n.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=o(t.geometries,this.geometry);var s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){var a=s.shapes;if(Array.isArray(a))for(var r=0,l=a.length;r0){n.children=[];for(var d=0;d0){n.animations=[];for(var m=0;m0&&(i.geometries=v),g.length>0&&(i.materials=g),y.length>0&&(i.textures=y),b.length>0&&(i.images=b),C.length>0&&(i.shapes=C),w.length>0&&(i.skeletons=w),k.length>0&&(i.animations=k),x.length>0&&(i.nodes=x)}return i.object=n,i;function _(t){var e=[];for(var i in t){var n=t[i];delete n.metadata,e.push(n)}return e}}},{key:"clone",value:function(t){return(new this.constructor).copy(this,t)}},{key:"copy",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new zm,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm;k()(this,t),this.a=e,this.b=i,this.c=n}return _()(t,[{key:"set",value:function(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}},{key:"setFromPointsAndIndices",value:function(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this}},{key:"setFromAttributeAndIndices",value:function(t,e,i,n){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,n),this}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}},{key:"getArea",value:function(){return Wf.subVectors(this.c,this.b),Yf.subVectors(this.a,this.b),.5*Wf.cross(Yf).length()}},{key:"getMidpoint",value:function(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}},{key:"getNormal",value:function(e){return t.getNormal(this.a,this.b,this.c,e)}},{key:"getPlane",value:function(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}},{key:"getBarycoord",value:function(e,i){return t.getBarycoord(e,this.a,this.b,this.c,i)}},{key:"getInterpolation",value:function(e,i,n,o,s){return t.getInterpolation(e,this.a,this.b,this.c,i,n,o,s)}},{key:"containsPoint",value:function(e){return t.containsPoint(e,this.a,this.b,this.c)}},{key:"isFrontFacing",value:function(e){return t.isFrontFacing(this.a,this.b,this.c,e)}},{key:"intersectsBox",value:function(t){return t.intersectsTriangle(this)}},{key:"closestPointToPoint",value:function(t,e){var i,n,o=this.a,s=this.b,a=this.c;Xf.subVectors(s,o),Zf.subVectors(a,o),$f.subVectors(t,o);var r=Xf.dot($f),l=Zf.dot($f);if(r<=0&&l<=0)return e.copy(o);Qf.subVectors(t,s);var c=Xf.dot(Qf),u=Zf.dot(Qf);if(c>=0&&u<=c)return e.copy(s);var p=r*u-c*l;if(p<=0&&r>=0&&c<=0)return i=r/(r-c),e.copy(o).addScaledVector(Xf,i);tv.subVectors(t,a);var h=Xf.dot(tv),d=Zf.dot(tv);if(d>=0&&h<=d)return e.copy(a);var m=h*l-r*d;if(m<=0&&l>=0&&d<=0)return n=l/(l-d),e.copy(o).addScaledVector(Zf,n);var f=c*d-h*u;if(f<=0&&u-c>=0&&h-d>=0)return Kf.subVectors(a,s),n=(u-c)/(u-c+(h-d)),e.copy(s).addScaledVector(Kf,n);var v=1/(f+m+p);return i=m*v,n=p*v,e.copy(o).addScaledVector(Xf,i).addScaledVector(Zf,n)}},{key:"equals",value:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}],[{key:"getNormal",value:function(t,e,i,n){n.subVectors(i,e),Wf.subVectors(t,e),n.cross(Wf);var o=n.lengthSq();return o>0?n.multiplyScalar(1/Math.sqrt(o)):n.set(0,0,0)}},{key:"getBarycoord",value:function(t,e,i,n,o){Wf.subVectors(n,e),Yf.subVectors(i,e),Jf.subVectors(t,e);var s=Wf.dot(Wf),a=Wf.dot(Yf),r=Wf.dot(Jf),l=Yf.dot(Yf),c=Yf.dot(Jf),u=s*l-a*a;if(0===u)return o.set(0,0,0),null;var p=1/u,h=(l*r-a*c)*p,d=(s*c-a*r)*p;return o.set(1-h-d,d,h)}},{key:"containsPoint",value:function(t,e,i,n){return null!==this.getBarycoord(t,e,i,n,qf)&&qf.x>=0&&qf.y>=0&&qf.x+qf.y<=1}},{key:"getInterpolation",value:function(t,e,i,n,o,s,a,r){return null===this.getBarycoord(t,e,i,n,qf)?(r.x=0,r.y=0,"z"in r&&(r.z=0),"w"in r&&(r.w=0),null):(r.setScalar(0),r.addScaledVector(o,qf.x),r.addScaledVector(s,qf.y),r.addScaledVector(a,qf.z),r)}},{key:"isFrontFacing",value:function(t,e,i,n){return Wf.subVectors(i,e),Yf.subVectors(t,e),Wf.cross(Yf).dot(n)<0}}])}(),iv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},nv={h:0,s:0,l:0},ov={h:0,s:0,l:0};function sv(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}var av=function(){return _()((function t(e,i,n){return k()(this,t),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,i,n)}),[{key:"set",value:function(t,e,i){if(void 0===e&&void 0===i){var n=t;n&&n.isColor?this.copy(n):"number"==typeof n?this.setHex(n):"string"==typeof n&&this.setStyle(n)}else this.setRGB(t,e,i);return this}},{key:"setScalar",value:function(t){return this.r=t,this.g=t,this.b=t,this}},{key:"setHex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd;return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,Dm.toWorkingColorSpace(this,e),this}},{key:"setRGB",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dm.workingColorSpace;return this.r=t,this.g=e,this.b=i,Dm.toWorkingColorSpace(this,n),this}},{key:"setHSL",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dm.workingColorSpace;if(t=pm(t,1),e=um(e,0,1),i=um(i,0,1),0===e)this.r=this.g=this.b=i;else{var o=i<=.5?i*(1+e):i+e-i*e,s=2*i-o;this.r=sv(s,o,t+1/3),this.g=sv(s,o,t),this.b=sv(s,o,t-1/3)}return Dm.toWorkingColorSpace(this,n),this}},{key:"setStyle",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd;function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}if(e=/^(\w+)\(([^\)]*)\)/.exec(t)){var o,s=e[1],a=e[2];switch(s){case"rgb":case"rgba":if(o=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(255,parseInt(o[1],10))/255,Math.min(255,parseInt(o[2],10))/255,Math.min(255,parseInt(o[3],10))/255,i);if(o=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setRGB(Math.min(100,parseInt(o[1],10))/100,Math.min(100,parseInt(o[2],10))/100,Math.min(100,parseInt(o[3],10))/100,i);break;case"hsl":case"hsla":if(o=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(o[4]),this.setHSL(parseFloat(o[1])/360,parseFloat(o[2])/100,parseFloat(o[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(e=/^\#([A-Fa-f\d]+)$/.exec(t)){var r=e[1],l=r.length;if(3===l)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,i);if(6===l)return this.setHex(parseInt(r,16),i);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,i);return this}},{key:"setColorName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xd,i=iv[t.toLowerCase()];return void 0!==i?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}},{key:"copySRGBToLinear",value:function(t){return this.r=Pm(t.r),this.g=Pm(t.g),this.b=Pm(t.b),this}},{key:"copyLinearToSRGB",value:function(t){return this.r=Mm(t.r),this.g=Mm(t.g),this.b=Mm(t.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;return Dm.fromWorkingColorSpace(rv.copy(this),t),65536*Math.round(um(255*rv.r,0,255))+256*Math.round(um(255*rv.g,0,255))+Math.round(um(255*rv.b,0,255))}},{key:"getHexString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;return("000000"+this.getHex(t).toString(16)).slice(-6)}},{key:"getHSL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dm.workingColorSpace;Dm.fromWorkingColorSpace(rv.copy(this),e);var i,n,o=rv.r,s=rv.g,a=rv.b,r=Math.max(o,s,a),l=Math.min(o,s,a),c=(l+r)/2;if(l===r)i=0,n=0;else{var u=r-l;switch(n=c<=.5?u/(r+l):u/(2-r-l),r){case o:i=(s-a)/u+(s1&&void 0!==arguments[1]?arguments[1]:Dm.workingColorSpace;return Dm.fromWorkingColorSpace(rv.copy(this),e),t.r=rv.r,t.g=rv.g,t.b=rv.b,t}},{key:"getStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xd;Dm.fromWorkingColorSpace(rv.copy(this),t);var e=rv.r,i=rv.g,n=rv.b;return t!==Xd?"color(".concat(t," ").concat(e.toFixed(3)," ").concat(i.toFixed(3)," ").concat(n.toFixed(3),")"):"rgb(".concat(Math.round(255*e),",").concat(Math.round(255*i),",").concat(Math.round(255*n),")")}},{key:"offsetHSL",value:function(t,e,i){return this.getHSL(nv),this.setHSL(nv.h+t,nv.s+e,nv.l+i)}},{key:"add",value:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}},{key:"addColors",value:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}},{key:"addScalar",value:function(t){return this.r+=t,this.g+=t,this.b+=t,this}},{key:"sub",value:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}},{key:"multiply",value:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}},{key:"multiplyScalar",value:function(t){return this.r*=t,this.g*=t,this.b*=t,this}},{key:"lerp",value:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}},{key:"lerpColors",value:function(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}},{key:"lerpHSL",value:function(t,e){this.getHSL(nv),t.getHSL(ov);var i=hm(nv.h,ov.h,e),n=hm(nv.s,ov.s,e),o=hm(nv.l,ov.l,e);return this.setHSL(i,n,o),this}},{key:"setFromVector3",value:function(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}},{key:"applyMatrix3",value:function(t){var e=this.r,i=this.g,n=this.b,o=t.elements;return this.r=o[0]*e+o[3]*i+o[6]*n,this.g=o[1]*e+o[4]*i+o[7]*n,this.b=o[2]*e+o[5]*i+o[8]*n,this}},{key:"equals",value:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}},{key:"fromBufferAttribute",value:function(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.r;case 2:return t.next=4,this.g;case 4:return t.next=6,this.b;case 6:case"end":return t.stop()}}),t,this)}))}])}(),rv=new av;av.NAMES=iv;var lv=0,cv=function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).isMaterial=!0,Object.defineProperty(Vd()(t),"id",{value:lv++}),t.uuid=cm(),t.name="",t.type="Material",t.blending=1,t.side=0,t.vertexColors=!1,t.opacity=1,t.transparent=!1,t.alphaHash=!1,t.blendSrc=204,t.blendDst=205,t.blendEquation=100,t.blendSrcAlpha=null,t.blendDstAlpha=null,t.blendEquationAlpha=null,t.blendColor=new av(0,0,0),t.blendAlpha=0,t.depthFunc=3,t.depthTest=!0,t.depthWrite=!0,t.stencilWriteMask=255,t.stencilFunc=519,t.stencilRef=0,t.stencilFuncMask=255,t.stencilFail=im,t.stencilZFail=im,t.stencilZPass=im,t.stencilWrite=!1,t.clippingPlanes=null,t.clipIntersection=!1,t.clipShadows=!1,t.shadowSide=null,t.colorWrite=!0,t.precision=null,t.polygonOffset=!1,t.polygonOffsetFactor=0,t.polygonOffsetUnits=0,t.dithering=!1,t.alphaToCoverage=!1,t.premultipliedAlpha=!1,t.forceSinglePass=!1,t.visible=!0,t.toneMapped=!0,t.userData={},t.version=0,t._alphaTest=0,t}return sn()(e,t),_()(e,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}},{key:"onBuild",value:function(){}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(t){if(void 0!==t)for(var e in t){var i=t[e];if(void 0!==i){var n=this[e];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i:console.warn("THREE.Material: '".concat(e,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(e,"' has value of undefined."))}}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function n(t){var e=[];for(var i in t){var n=t[i];delete n.metadata,e.push(n)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),0!==this.side&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),204!==this.blendSrc&&(i.blendSrc=this.blendSrc),205!==this.blendDst&&(i.blendDst=this.blendDst),100!==this.blendEquation&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==im&&(i.stencilFail=this.stencilFail),this.stencilZFail!==im&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==im&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),e){var o=n(t.textures),s=n(t.images);o.length>0&&(i.textures=o),s.length>0&&(i.images=s)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,i=null;if(null!==e){var n=e.length;i=new Array(n);for(var o=0;o!==n;++o)i[o]=e[o].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}}])}(am),uv=function(t){function e(t){var i;return k()(this,e),(i=Ud(this,e)).isMeshBasicMaterial=!0,i.type="MeshBasicMaterial",i.color=new av(16777215),i.map=null,i.lightMap=null,i.lightMapIntensity=1,i.aoMap=null,i.aoMapIntensity=1,i.specularMap=null,i.alphaMap=null,i.envMap=null,i.envMapRotation=new Df,i.combine=0,i.reflectivity=1,i.refractionRatio=.98,i.wireframe=!1,i.wireframeLinewidth=1,i.wireframeLinecap="round",i.wireframeLinejoin="round",i.fog=!0,i.setValues(t),i}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapRotation.copy(t.envMapRotation),this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}])}(cv);!function(){for(var t=new ArrayBuffer(4),e=new Float32Array(t),i=new Uint32Array(t),n=new Uint32Array(512),o=new Uint32Array(512),s=0;s<256;++s){var a=s-127;a<-27?(n[s]=0,n[256|s]=32768,o[s]=24,o[256|s]=24):a<-14?(n[s]=1024>>-a-14,n[256|s]=1024>>-a-14|32768,o[s]=-a-1,o[256|s]=-a-1):a<=15?(n[s]=a+15<<10,n[256|s]=a+15<<10|32768,o[s]=13,o[256|s]=13):a<128?(n[s]=31744,n[256|s]=64512,o[s]=24,o[256|s]=24):(n[s]=31744,n[256|s]=64512,o[s]=13,o[256|s]=13)}for(var r=new Uint32Array(2048),l=new Uint32Array(64),c=new Uint32Array(64),u=1;u<1024;++u){for(var p=u<<13,h=0;0==(8388608&p);)p<<=1,h-=8388608;p&=-8388609,h+=947912704,r[u]=p|h}for(var d=1024;d<2048;++d)r[d]=939524096+(d-1024<<13);for(var m=1;m<31;++m)l[m]=m<<23;l[31]=1199570944,l[32]=2147483648;for(var f=33;f<63;++f)l[f]=2147483648+(f-32<<23);l[63]=3347054592;for(var v=1;v<64;++v)32!==v&&(c[v]=1024)}();var pv=new zm,hv=new fm,dv=function(){return _()((function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(k()(this,t),Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=i,this.count=void 0!==e?e.length/i:0,this.normalized=n,this.usage=nm,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=1015,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"updateRange",get:function(){return wm("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}},{key:"setUsage",value:function(t){return this.usage=t,this}},{key:"addUpdateRange",value:function(t,e){this.updateRanges.push({start:t,count:e})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}},{key:"copyAt",value:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var n=0,o=this.itemSize;n1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(t,e),this}},{key:"getComponent",value:function(t,e){var i=this.array[t*this.itemSize+e];return this.normalized&&(i=dm(i,this.array)),i}},{key:"setComponent",value:function(t,e,i){return this.normalized&&(i=mm(i,this.array)),this.array[t*this.itemSize+e]=i,this}},{key:"getX",value:function(t){var e=this.array[t*this.itemSize];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setX",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize]=e,this}},{key:"getY",value:function(t){var e=this.array[t*this.itemSize+1];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setY",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+1]=e,this}},{key:"getZ",value:function(t){var e=this.array[t*this.itemSize+2];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setZ",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+2]=e,this}},{key:"getW",value:function(t){var e=this.array[t*this.itemSize+3];return this.normalized&&(e=dm(e,this.array)),e}},{key:"setW",value:function(t,e){return this.normalized&&(e=mm(e,this.array)),this.array[t*this.itemSize+3]=e,this}},{key:"setXY",value:function(t,e,i){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array)),this.array[t+0]=e,this.array[t+1]=i,this}},{key:"setXYZ",value:function(t,e,i,n){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array),n=mm(n,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this}},{key:"setXYZW",value:function(t,e,i,n,o){return t*=this.itemSize,this.normalized&&(e=mm(e,this.array),i=mm(i,this.array),n=mm(n,this.array),o=mm(o,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=o,this}},{key:"onUpload",value:function(t){return this.onUploadCallback=t,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==nm&&(t.usage=this.usage),t}}])}(),mv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Uint16Array(t),i,n])}return sn()(e,t),_()(e)}(dv),fv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Uint32Array(t),i,n])}return sn()(e,t),_()(e)}(dv),vv=function(t){function e(t,i,n){return k()(this,e),Ud(this,e,[new Float32Array(t),i,n])}return sn()(e,t),_()(e)}(dv),gv=0,yv=new gf,bv=new Uf,Cv=new zm,wv=new Gm,kv=new Gm,xv=new zm,_v=function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).isBufferGeometry=!0,Object.defineProperty(Vd()(t),"id",{value:gv++}),t.uuid=cm(),t.name="",t.type="BufferGeometry",t.index=null,t.attributes={},t.morphAttributes={},t.morphTargetsRelative=!1,t.groups=[],t.boundingBox=null,t.boundingSphere=null,t.drawRange={start:0,count:1/0},t.userData={},t}return sn()(e,t),_()(e,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(t){return Array.isArray(t)?this.index=new(ym(t)?fv:mv)(t,1):this.index=t,this}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"setAttribute",value:function(t,e){return this.attributes[t]=e,this}},{key:"deleteAttribute",value:function(t){return delete this.attributes[t],this}},{key:"hasAttribute",value:function(t){return void 0!==this.attributes[t]}},{key:"addGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:t,count:e,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(t,e){this.drawRange.start=t,this.drawRange.count=e}},{key:"applyMatrix4",value:function(t){var e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var n=(new vm).getNormalMatrix(t);i.applyNormalMatrix(n),i.needsUpdate=!0}var o=this.attributes.tangent;return void 0!==o&&(o.transformDirection(t),o.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(t){return yv.makeRotationFromQuaternion(t),this.applyMatrix4(yv),this}},{key:"rotateX",value:function(t){return yv.makeRotationX(t),this.applyMatrix4(yv),this}},{key:"rotateY",value:function(t){return yv.makeRotationY(t),this.applyMatrix4(yv),this}},{key:"rotateZ",value:function(t){return yv.makeRotationZ(t),this.applyMatrix4(yv),this}},{key:"translate",value:function(t,e,i){return yv.makeTranslation(t,e,i),this.applyMatrix4(yv),this}},{key:"scale",value:function(t,e,i){return yv.makeScale(t,e,i),this.applyMatrix4(yv),this}},{key:"lookAt",value:function(t){return bv.lookAt(t),bv.updateMatrix(),this.applyMatrix4(bv.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(Cv).negate(),this.translate(Cv.x,Cv.y,Cv.z),this}},{key:"setFromPoints",value:function(t){for(var e=[],i=0,n=t.length;i0&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(var i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};var n=this.index;null!==n&&(t.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});var o=this.attributes;for(var s in o){var a=o[s];t.data.attributes[s]=a.toJSON(t.data)}var r={},l=!1;for(var c in this.morphAttributes){for(var u=this.morphAttributes[c],p=[],h=0,d=u.length;h0&&(r[c]=p,l=!0)}l&&(t.data.morphAttributes=r,t.data.morphTargetsRelative=this.morphTargetsRelative);var f=this.groups;f.length>0&&(t.data.groups=JSON.parse(JSON.stringify(f)));var v=this.boundingSphere;return null!==v&&(t.data.boundingSphere={center:v.center.toArray(),radius:v.radius}),t}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var e={};this.name=t.name;var i=t.index;null!==i&&this.setIndex(i.clone(e));var n=t.attributes;for(var o in n){var s=n[o];this.setAttribute(o,s.clone(e))}var a=t.morphAttributes;for(var r in a){for(var l=[],c=a[r],u=0,p=c.length;u0&&void 0!==arguments[0]?arguments[0]:new _v,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new uv;return k()(this,e),(t=Ud(this,e)).isMesh=!0,t.type="Mesh",t.geometry=i,t.material=n,t.updateMorphTargets(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t,i){return Gd(e,"copy",this,3)([t,i]),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}},{key:"updateMorphTargets",value:function(){var t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){var i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var n=0,o=i.length;nMath.pow(t.far-t.near,2))return}Ev.copy(o).invert(),Sv.copy(t.ray).applyMatrix4(Ev),null!==i.boundingBox&&!1===Sv.intersectsBox(i.boundingBox)||this._computeIntersections(t,e,Sv)}}},{key:"_computeIntersections",value:function(t,e,i){var n,o=this.geometry,s=this.material,a=o.index,r=o.attributes.position,l=o.attributes.uv,c=o.attributes.uv1,u=o.attributes.normal,p=o.groups,h=o.drawRange;if(null!==a)if(Array.isArray(s))for(var d=0,m=p.length;di.far?null:{distance:l,point:Hv.clone(),object:t}}(t,e,i,n,Mv,Ov,Tv,zv);if(u){o&&(Lv.fromBufferAttribute(o,r),Av.fromBufferAttribute(o,l),jv.fromBufferAttribute(o,c),u.uv=ev.getInterpolation(zv,Mv,Ov,Tv,Lv,Av,jv,new fm)),s&&(Lv.fromBufferAttribute(s,r),Av.fromBufferAttribute(s,l),jv.fromBufferAttribute(s,c),u.uv1=ev.getInterpolation(zv,Mv,Ov,Tv,Lv,Av,jv,new fm)),a&&(Iv.fromBufferAttribute(a,r),Rv.fromBufferAttribute(a,l),Fv.fromBufferAttribute(a,c),u.normal=ev.getInterpolation(zv,Mv,Ov,Tv,Iv,Rv,Fv,new zm),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));var p={a:r,b:l,c:c,normal:new zm,materialIndex:0};ev.getNormal(Mv,Ov,Tv,p.normal),u.face=p}return u}var Uv=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;k()(this,e),(t=Ud(this,e)).type="BoxGeometry",t.parameters={width:i,height:n,depth:o,widthSegments:s,heightSegments:a,depthSegments:r};var l=t;s=Math.floor(s),a=Math.floor(a),r=Math.floor(r);var c=[],u=[],p=[],h=[],d=0,m=0;function f(t,e,i,n,o,s,a,r,f,v,g){for(var y=s/f,b=a/v,C=s/2,w=a/2,k=r/2,x=f+1,_=v+1,E=0,S=0,D=new zm,P=0;P<_;P++)for(var M=P*b-w,O=0;O0?1:-1,p.push(D.x,D.y,D.z),h.push(O/f),h.push(1-P/v),E+=1}for(var N=0;N0&&void 0!==arguments[0]?arguments[0]:new zm(1,0,0),i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,t),this.isPlane=!0,this.normal=e,this.constant=i}),[{key:"set",value:function(t,e){return this.normal.copy(t),this.constant=e,this}},{key:"setComponents",value:function(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this}},{key:"setFromNormalAndCoplanarPoint",value:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}},{key:"setFromCoplanarPoints",value:function(t,e,i){var n=Xv.subVectors(i,e).cross(Zv.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}},{key:"copy",value:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this}},{key:"normalize",value:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}},{key:"negate",value:function(){return this.constant*=-1,this.normal.negate(),this}},{key:"distanceToPoint",value:function(t){return this.normal.dot(t)+this.constant}},{key:"distanceToSphere",value:function(t){return this.distanceToPoint(t.center)-t.radius}},{key:"projectPoint",value:function(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}},{key:"intersectLine",value:function(t,e){var i=t.delta(Xv),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;var o=-(t.start.dot(this.normal)+this.constant)/n;return o<0||o>1?null:e.copy(t.start).addScaledVector(i,o)}},{key:"intersectsLine",value:function(t){var e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}},{key:"intersectsBox",value:function(t){return t.intersectsPlane(this)}},{key:"intersectsSphere",value:function(t){return t.intersectsPlane(this)}},{key:"coplanarPoint",value:function(t){return t.copy(this.normal).multiplyScalar(-this.constant)}},{key:"applyMatrix4",value:function(t,e){var i=e||Kv.getNormalMatrix(t),n=this.coplanarPoint(Xv).applyMatrix4(t),o=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(o),this}},{key:"translate",value:function(t){return this.constant-=t.dot(this.normal),this}},{key:"equals",value:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),Qv=new lf,tg=new zm,eg=function(){return _()((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new $v,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new $v,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new $v,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new $v,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new $v,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new $v;k()(this,t),this.planes=[e,i,n,o,s,a]}),[{key:"set",value:function(t,e,i,n,o,s){var a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(o),a[5].copy(s),this}},{key:"copy",value:function(t){for(var e=this.planes,i=0;i<6;i++)e[i].copy(t.planes[i]);return this}},{key:"setFromProjectionMatrix",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=this.planes,n=t.elements,o=n[0],s=n[1],a=n[2],r=n[3],l=n[4],c=n[5],u=n[6],p=n[7],h=n[8],d=n[9],m=n[10],f=n[11],v=n[12],g=n[13],y=n[14],b=n[15];if(i[0].setComponents(r-o,p-l,f-h,b-v).normalize(),i[1].setComponents(r+o,p+l,f+h,b+v).normalize(),i[2].setComponents(r+s,p+c,f+d,b+g).normalize(),i[3].setComponents(r-s,p-c,f-d,b-g).normalize(),i[4].setComponents(r-a,p-u,f-m,b-y).normalize(),e===om)i[5].setComponents(r+a,p+u,f+m,b+y).normalize();else{if(e!==sm)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+e);i[5].setComponents(a,u,m,y).normalize()}return this}},{key:"intersectsObject",value:function(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),Qv.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{var e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Qv.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Qv)}},{key:"intersectsSprite",value:function(t){return Qv.center.set(0,0,0),Qv.radius=.7071067811865476,Qv.applyMatrix4(t.matrixWorld),this.intersectsSphere(Qv)}},{key:"intersectsSphere",value:function(t){for(var e=this.planes,i=t.center,n=-t.radius,o=0;o<6;o++)if(e[o].distanceToPoint(i)0?t.max.x:t.min.x,tg.y=n.normal.y>0?t.max.y:t.min.y,tg.z=n.normal.z>0?t.max.z:t.min.z,n.distanceToPoint(tg)<0)return!1}return!0}},{key:"containsPoint",value:function(t){for(var e=this.planes,i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}();var ig=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;k()(this,e),(t=Ud(this,e)).type="PlaneGeometry",t.parameters={width:i,height:n,widthSegments:o,heightSegments:s};for(var a=i/2,r=n/2,l=Math.floor(o),c=Math.floor(s),u=l+1,p=c+1,h=i/l,d=n/c,m=[],f=[],v=[],g=[],y=0;y 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[MORPHTARGETS_COUNT];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t#endif\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\t#ifndef USE_INSTANCING_MORPH\n\t\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\t#endif\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},og={common:{diffuse:{value:new av(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new vm},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new vm}},envmap:{envMap:{value:null},envMapRotation:{value:new vm},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new vm}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new vm}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new vm},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new vm},normalScale:{value:new fm(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new vm},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new vm}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new vm}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new vm}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new av(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new av(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0},uvTransform:{value:new vm}},sprite:{diffuse:{value:new av(16777215)},opacity:{value:1},center:{value:new fm(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new vm},alphaMap:{value:null},alphaMapTransform:{value:new vm},alphaTest:{value:0}}},sg={basic:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.fog]),vertexShader:ng.meshbasic_vert,fragmentShader:ng.meshbasic_frag},lambert:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.fog,og.lights,{emissive:{value:new av(0)}}]),vertexShader:ng.meshlambert_vert,fragmentShader:ng.meshlambert_frag},phong:{uniforms:Yv([og.common,og.specularmap,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.fog,og.lights,{emissive:{value:new av(0)},specular:{value:new av(1118481)},shininess:{value:30}}]),vertexShader:ng.meshphong_vert,fragmentShader:ng.meshphong_frag},standard:{uniforms:Yv([og.common,og.envmap,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.roughnessmap,og.metalnessmap,og.fog,og.lights,{emissive:{value:new av(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ng.meshphysical_vert,fragmentShader:ng.meshphysical_frag},toon:{uniforms:Yv([og.common,og.aomap,og.lightmap,og.emissivemap,og.bumpmap,og.normalmap,og.displacementmap,og.gradientmap,og.fog,og.lights,{emissive:{value:new av(0)}}]),vertexShader:ng.meshtoon_vert,fragmentShader:ng.meshtoon_frag},matcap:{uniforms:Yv([og.common,og.bumpmap,og.normalmap,og.displacementmap,og.fog,{matcap:{value:null}}]),vertexShader:ng.meshmatcap_vert,fragmentShader:ng.meshmatcap_frag},points:{uniforms:Yv([og.points,og.fog]),vertexShader:ng.points_vert,fragmentShader:ng.points_frag},dashed:{uniforms:Yv([og.common,og.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ng.linedashed_vert,fragmentShader:ng.linedashed_frag},depth:{uniforms:Yv([og.common,og.displacementmap]),vertexShader:ng.depth_vert,fragmentShader:ng.depth_frag},normal:{uniforms:Yv([og.common,og.bumpmap,og.normalmap,og.displacementmap,{opacity:{value:1}}]),vertexShader:ng.meshnormal_vert,fragmentShader:ng.meshnormal_frag},sprite:{uniforms:Yv([og.sprite,og.fog]),vertexShader:ng.sprite_vert,fragmentShader:ng.sprite_frag},background:{uniforms:{uvTransform:{value:new vm},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ng.background_vert,fragmentShader:ng.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new vm}},vertexShader:ng.backgroundCube_vert,fragmentShader:ng.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ng.cube_vert,fragmentShader:ng.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ng.equirect_vert,fragmentShader:ng.equirect_frag},distanceRGBA:{uniforms:Yv([og.common,og.displacementmap,{referencePosition:{value:new zm},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ng.distanceRGBA_vert,fragmentShader:ng.distanceRGBA_frag},shadow:{uniforms:Yv([og.lights,og.fog,{color:{value:new av(0)},opacity:{value:1}}]),vertexShader:ng.shadow_vert,fragmentShader:ng.shadow_frag}};sg.physical={uniforms:Yv([sg.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new vm},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new vm},clearcoatNormalScale:{value:new fm(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new vm},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new vm},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new vm},sheen:{value:0},sheenColor:{value:new av(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new vm},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new vm},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new vm},transmissionSamplerSize:{value:new fm},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new vm},attenuationDistance:{value:0},attenuationColor:{value:new av(0)},specularColor:{value:new av(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new vm},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new vm},anisotropyVector:{value:new fm},anisotropyMap:{value:null},anisotropyMapTransform:{value:new vm}}]),vertexShader:ng.meshphysical_vert,fragmentShader:ng.meshphysical_frag};new Df,new gf;var ag=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3;return k()(this,e),(t=Ud(this,e)).isOrthographicCamera=!0,t.type="OrthographicCamera",t.zoom=1,t.view=null,t.left=i,t.right=n,t.top=o,t.bottom=s,t.near=a,t.far=r,t.updateProjectionMatrix(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t,i){return Gd(e,"copy",this,3)([t,i]),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}},{key:"setViewOffset",value:function(t,e,i,n,o,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=o,this.view.height=s,this.updateProjectionMatrix()}},{key:"clearViewOffset",value:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}},{key:"updateProjectionMatrix",value:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2,o=i-t,s=i+t,a=n+e,r=n-e;if(null!==this.view&&this.view.enabled){var l=(this.right-this.left)/this.view.fullWidth/this.zoom,c=(this.top-this.bottom)/this.view.fullHeight/this.zoom;s=(o+=l*this.view.offsetX)+l*this.view.width,r=(a-=c*this.view.offsetY)-c*this.view.height}this.projectionMatrix.makeOrthographic(o,s,a,r,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}},{key:"toJSON",value:function(t){var i=Gd(e,"toJSON",this,3)([t]);return i.object.zoom=this.zoom,i.object.left=this.left,i.object.right=this.right,i.object.top=this.top,i.object.bottom=this.bottom,i.object.near=this.near,i.object.far=this.far,null!==this.view&&(i.object.view=Object.assign({},this.view)),i}}])}(Jv),rg=(new ag,new av,(1+Math.sqrt(5))/2),lg=1/rg;new zm(-rg,lg,0),new zm(rg,lg,0),new zm(-lg,0,rg),new zm(lg,0,rg),new zm(0,rg,-lg),new zm(0,rg,lg),new zm(-1,1,-1),new zm(1,1,-1),new zm(-1,1,1),new zm(1,1,1);var cg=function(t){function e(t,i,n,o,s,a,r,l,c,u){var p;if(k()(this,e),1026!==(u=void 0!==u?u:1026)&&1027!==u)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");return void 0===n&&1026===u&&(n=Wd),void 0===n&&1027===u&&(n=Yd),(p=Ud(this,e,[null,o,s,a,r,l,u,n,c])).isDepthTexture=!0,p.image={width:t,height:i},p.magFilter=void 0!==r?r:1003,p.minFilter=void 0!==l?l:1003,p.flipY=!1,p.generateMipmaps=!1,p.compareFunction=null,p}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.compareFunction=t.compareFunction,this}},{key:"toJSON",value:function(t){var i=Gd(e,"toJSON",this,3)([t]);return null!==this.compareFunction&&(i.compareFunction=this.compareFunction),i}}])}(Am),ug=(new Am,new cg(1,1));ug.compareFunction=515;new Im,new Rm,new qv,new Float32Array(16),new Float32Array(9),new Float32Array(4);new Map;new Df,new gf;new zm,new zm,new zm,new zm,new fm,new fm,new gf,new zm,new zm,new zm,new fm,new fm,new fm;new zm,new zm,new zm,new jm,new jm,new zm,new gf,new zm,new lf,new gf,new vf,new gf,new gf,new gf,new gf,new Gm,new gf,new Vv,new lf;var pg=function(){return _()((function t(){k()(this,t),this.index=0,this.pool=[],this.list=[]}),[{key:"push",value:function(t,e){var i=this.pool,n=this.list;this.index>=i.length&&i.push({start:-1,count:-1,z:-1});var o=i[this.index];n.push(o),this.index++,o.start=t.start,o.count=t.count,o.z=e}},{key:"reset",value:function(){this.list.length=0,this.index=0}}])}();new gf,new gf,new gf,new gf,new eg,new Gm,new lf,new zm,new pg,new Vv;new zm,new zm,new gf,new vf,new lf,new zm,new zm;new zm,new zm,new gf,new vf,new lf,new zm;var hg=function(){return _()((function t(){k()(this,t),this.type="Curve",this.arcLengthDivisions=200}),[{key:"getPoint",value:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}},{key:"getPointAt",value:function(t,e){var i=this.getUtoTmapping(t);return this.getPoint(i,e)}},{key:"getPoints",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return e}},{key:"getSpacedPoints",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,e=[],i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e}},{key:"getLength",value:function(){var t=this.getLengths();return t[t.length-1]}},{key:"getLengths",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.arcLengthDivisions;if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,i=[],n=this.getPoint(0),o=0;i.push(0);for(var s=1;s<=t;s++)o+=(e=this.getPoint(s/t)).distanceTo(n),i.push(o),n=e;return this.cacheArcLengths=i,i}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.getLengths()}},{key:"getUtoTmapping",value:function(t,e){var i,n=this.getLengths(),o=0,s=n.length;i=e||t*n[s-1];for(var a,r=0,l=s-1;r<=l;)if((a=n[o=Math.floor(r+(l-r)/2)]-i)<0)r=o+1;else{if(!(a>0)){l=o;break}l=o-1}if(n[o=l]===i)return o/(s-1);var c=n[o];return(o+(i-c)/(n[o+1]-c))/(s-1)}},{key:"getTangent",value:function(t,e){var i=1e-4,n=t-i,o=t+i;n<0&&(n=0),o>1&&(o=1);var s=this.getPoint(n),a=this.getPoint(o),r=e||(s.isVector2?new fm:new zm);return r.copy(a).sub(s).normalize(),r}},{key:"getTangentAt",value:function(t,e){var i=this.getUtoTmapping(t);return this.getTangent(i,e)}},{key:"computeFrenetFrames",value:function(t,e){for(var i=new zm,n=[],o=[],s=[],a=new zm,r=new gf,l=0;l<=t;l++){var c=l/t;n[l]=this.getTangentAt(c,new zm)}o[0]=new zm,s[0]=new zm;var u=Number.MAX_VALUE,p=Math.abs(n[0].x),h=Math.abs(n[0].y),d=Math.abs(n[0].z);p<=u&&(u=p,i.set(1,0,0)),h<=u&&(u=h,i.set(0,1,0)),d<=u&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),o[0].crossVectors(n[0],a),s[0].crossVectors(n[0],o[0]);for(var m=1;m<=t;m++){if(o[m]=o[m-1].clone(),s[m]=s[m-1].clone(),a.crossVectors(n[m-1],n[m]),a.length()>Number.EPSILON){a.normalize();var f=Math.acos(um(n[m-1].dot(n[m]),-1,1));o[m].applyMatrix4(r.makeRotationAxis(a,f))}s[m].crossVectors(n[m],o[m])}if(!0===e){var v=Math.acos(um(o[0].dot(o[t]),-1,1));v/=t,n[0].dot(a.crossVectors(o[0],o[t]))>0&&(v=-v);for(var g=1;g<=t;g++)o[g].applyMatrix4(r.makeRotationAxis(n[g],v*g)),s[g].crossVectors(n[g],o[g])}return{tangents:n,normals:o,binormals:s}}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}},{key:"toJSON",value:function(){var t={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}},{key:"fromJSON",value:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}])}(),dg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0;return k()(this,e),(t=Ud(this,e)).isEllipseCurve=!0,t.type="EllipseCurve",t.aX=i,t.aY=n,t.xRadius=o,t.yRadius=s,t.aStartAngle=a,t.aEndAngle=r,t.aClockwise=l,t.aRotation=c,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=2*Math.PI,o=this.aEndAngle-this.aStartAngle,s=Math.abs(o)n;)o-=n;o0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"centripetal",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;return k()(this,e),(t=Ud(this,e)).isCatmullRomCurve3=!0,t.type="CatmullRomCurve3",t.points=i,t.closed=n,t.curveType=o,t.tension=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=n,s=this.points,a=s.length,r=(a-(this.closed?0:1))*t,l=Math.floor(r),c=r-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/a)+1)*a:0===c&&l===a-1&&(l=a-2,c=1),this.closed||l>0?e=s[(l-1)%a]:(vg.subVectors(s[0],s[1]).add(s[0]),e=vg);var u=s[l%a],p=s[(l+1)%a];if(this.closed||l+20&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fm,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new fm;return k()(this,e),(t=Ud(this,e)).isCubicBezierCurve=!0,t.type="CubicBezierCurve",t.v0=i,t.v1=n,t.v2=o,t.v3=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(xg(t,n.x,o.x,s.x,a.x),xg(t,n.y,o.y,s.y,a.y)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}])}(hg),Eg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new zm;return k()(this,e),(t=Ud(this,e)).isCubicBezierCurve3=!0,t.type="CubicBezierCurve3",t.v0=i,t.v1=n,t.v2=o,t.v3=s,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e,n=this.v0,o=this.v1,s=this.v2,a=this.v3;return i.set(xg(t,n.x,o.x,s.x,a.x),xg(t,n.y,o.y,s.y,a.y),xg(t,n.z,o.z,s.z,a.z)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}])}(hg),Sg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm;return k()(this,e),(t=Ud(this,e)).isLineCurve=!0,t.type="LineCurve",t.v1=i,t.v2=n,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}},{key:"getPointAt",value:function(t,e){return this.getPoint(t,e)}},{key:"getTangent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm;return e.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(t,e){return this.getTangent(t,e)}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Dg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm;return k()(this,e),(t=Ud(this,e)).isLineCurve3=!0,t.type="LineCurve3",t.v1=i,t.v2=n,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}},{key:"getPointAt",value:function(t,e){return this.getPoint(t,e)}},{key:"getTangent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm;return e.subVectors(this.v2,this.v1).normalize()}},{key:"getTangentAt",value:function(t,e){return this.getTangent(t,e)}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Pg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new fm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fm;return k()(this,e),(t=Ud(this,e)).isQuadraticBezierCurve=!0,t.type="QuadraticBezierCurve",t.v0=i,t.v1=n,t.v2=o,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.v0,o=this.v1,s=this.v2;return i.set(kg(t,n.x,o.x,s.x),kg(t,n.y,o.y,s.y)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Mg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new zm,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new zm;return k()(this,e),(t=Ud(this,e)).isQuadraticBezierCurve3=!0,t.type="QuadraticBezierCurve3",t.v0=i,t.v1=n,t.v2=o,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zm,i=e,n=this.v0,o=this.v1,s=this.v2;return i.set(kg(t,n.x,o.x,s.x),kg(t,n.y,o.y,s.y),kg(t,n.z,o.z,s.z)),i}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}])}(hg),Og=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return k()(this,e),(t=Ud(this,e)).isSplineCurve=!0,t.type="SplineCurve",t.points=i,t}return sn()(e,t),_()(e,[{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new fm,i=e,n=this.points,o=(n.length-1)*t,s=Math.floor(o),a=o-s,r=n[0===s?s:s-1],l=n[s],c=n[s>n.length-2?n.length-1:s+1],u=n[s>n.length-3?n.length-1:s+2];return i.set(wg(a,r.x,l.x,c.x,u.x),wg(a,r.y,l.y,c.y,u.y)),i}},{key:"copy",value:function(t){Gd(e,"copy",this,3)([t]),this.points=[];for(var i=0,n=t.points.length;i0){var c=l.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(l);var u=l.getPoint(1);return this.currentPoint.copy(u),this}},{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.currentPoint.copy(t.currentPoint),this}},{key:"toJSON",value:function(){var t=Gd(e,"toJSON",this,3)([]);return t.currentPoint=this.currentPoint.toArray(),t}},{key:"fromJSON",value:function(t){return Gd(e,"fromJSON",this,3)([t]),this.currentPoint.fromArray(t.currentPoint),this}}])}(function(t){function e(){var t;return k()(this,e),(t=Ud(this,e)).type="CurvePath",t.curves=[],t.autoClose=!1,t}return sn()(e,t),_()(e,[{key:"add",value:function(t){this.curves.push(t)}},{key:"closePath",value:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);if(!t.equals(e)){var i=!0===t.isVector2?"LineCurve":"LineCurve3";this.curves.push(new Tg[i](e,t))}return this}},{key:"getPoint",value:function(t,e){for(var i=t*this.getLength(),n=this.getCurveLengths(),o=0;o=i){var s=n[o]-i,a=this.curves[o],r=a.getLength(),l=0===r?0:1-s/r;return a.getPointAt(l,e)}o++}return null}},{key:"getLength",value:function(){var t=this.getCurveLengths();return t[t.length-1]}},{key:"updateArcLengths",value:function(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}},{key:"getCurveLengths",value:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,i=0,n=this.curves.length;i0&&void 0!==arguments[0]?arguments[0]:40,e=[],i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e}},{key:"getPoints",value:function(){for(var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:12,i=[],n=0,o=this.curves;n1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},{key:"copy",value:function(t){Gd(e,"copy",this,3)([t]),this.curves=[];for(var i=0,n=t.curves.length;i0&&void 0!==arguments[0]?arguments[0]:[new fm(0,-.5),new fm(.5,0),new fm(0,.5)],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="LatheGeometry",t.parameters={points:i,segments:n,phiStart:o,phiLength:s},n=Math.floor(n),s=um(s,0,2*Math.PI);for(var a=[],r=[],l=[],c=[],u=[],p=1/n,h=new zm,d=new fm,m=new zm,f=new zm,v=new zm,g=0,y=0,b=0;b<=i.length-1;b++)switch(b){case 0:g=i[b+1].x-i[b].x,y=i[b+1].y-i[b].y,m.x=1*y,m.y=-g,m.z=0*y,v.copy(m),m.normalize(),c.push(m.x,m.y,m.z);break;case i.length-1:c.push(v.x,v.y,v.z);break;default:g=i[b+1].x-i[b].x,y=i[b+1].y-i[b].y,m.x=1*y,m.y=-g,m.z=0*y,f.copy(m),m.x+=v.x,m.y+=v.y,m.z+=v.z,m.normalize(),c.push(m.x,m.y,m.z),v.copy(f)}for(var C=0;C<=n;C++)for(var w=o+C*p*s,x=Math.sin(w),_=Math.cos(w),E=0;E<=i.length-1;E++){h.x=i[E].x*x,h.y=i[E].y,h.z=i[E].x*_,r.push(h.x,h.y,h.z),d.x=C/n,d.y=E/(i.length-1),l.push(d.x,d.y);var S=c[3*E+0]*x,D=c[3*E+1],P=c[3*E+0]*_;u.push(S,D,P)}for(var M=0;M0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8;k()(this,e);var a=new Ng;return a.absarc(0,-n/2,i,1.5*Math.PI,0),a.absarc(0,n/2,i,0,.5*Math.PI),(t=Ud(this,e,[a.getPoints(o),s])).type="CapsuleGeometry",t.parameters={radius:i,length:n,capSegments:o,radialSegments:s},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.length,t.capSegments,t.radialSegments)}}])}(Bg),Ag=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="CircleGeometry",t.parameters={radius:i,segments:n,thetaStart:o,thetaLength:s},n=Math.max(3,n);var a=[],r=[],l=[],c=[],u=new zm,p=new fm;r.push(0,0,0),l.push(0,0,1),c.push(.5,.5);for(var h=0,d=3;h<=n;h++,d+=3){var m=o+h/n*s;u.x=i*Math.cos(m),u.y=i*Math.sin(m),r.push(u.x,u.y,u.z),l.push(0,0,1),p.x=(r[d]/i+1)/2,p.y=(r[d+1]/i+1)/2,c.push(p.x,p.y)}for(var f=1;f<=n;f++)a.push(f,f+1,0);return t.setIndex(a),t.setAttribute("position",new vv(r,3)),t.setAttribute("normal",new vv(l,3)),t.setAttribute("uv",new vv(c,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.segments,t.thetaStart,t.thetaLength)}}])}(_v),jg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:32,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="CylinderGeometry",t.parameters={radiusTop:i,radiusBottom:n,height:o,radialSegments:s,heightSegments:a,openEnded:r,thetaStart:l,thetaLength:c};var u=t;s=Math.floor(s),a=Math.floor(a);var p=[],h=[],d=[],m=[],f=0,v=[],g=o/2,y=0;function b(t){for(var e=f,o=new fm,a=new zm,r=0,v=!0===t?i:n,b=!0===t?1:-1,C=1;C<=s;C++)h.push(0,g*b,0),d.push(0,b,0),m.push(.5,.5),f++;for(var w=f,k=0;k<=s;k++){var x=k/s*c+l,_=Math.cos(x),E=Math.sin(x);a.x=v*E,a.y=g*b,a.z=v*_,h.push(a.x,a.y,a.z),d.push(0,b,0),o.x=.5*_+.5,o.y=.5*E*b+.5,m.push(o.x,o.y),f++}for(var S=0;S0&&b(!0),n>0&&b(!1)),t.setIndex(p),t.setAttribute("position",new vv(h,3)),t.setAttribute("normal",new vv(d,3)),t.setAttribute("uv",new vv(m,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}])}(_v),Ig=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:2*Math.PI;return k()(this,e),(t=Ud(this,e,[0,i,n,o,s,a,r,l])).type="ConeGeometry",t.parameters={radius:i,height:n,radialSegments:o,heightSegments:s,openEnded:a,thetaStart:r,thetaLength:l},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}])}(jg),Rg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;k()(this,e),(t=Ud(this,e)).type="PolyhedronGeometry",t.parameters={vertices:i,indices:n,radius:o,detail:s};var a=[],r=[];function l(t,e,i,n){for(var o=n+1,s=[],a=0;a<=o;a++){s[a]=[];for(var r=t.clone().lerp(i,a/o),l=e.clone().lerp(i,a/o),u=o-a,p=0;p<=u;p++)s[a][p]=0===p&&a===o?r:r.clone().lerp(l,p/u)}for(var h=0;h.9&&s<.1&&(e<.2&&(r[t+0]+=1),i<.2&&(r[t+2]+=1),n<.2&&(r[t+4]+=1))}}()}(),t.setAttribute("position",new vv(a,3)),t.setAttribute("normal",new vv(a.slice(),3)),t.setAttribute("uv",new vv(r,2)),0===s?t.computeVertexNormals():t.normalizeNormals(),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.vertices,t.indices,t.radius,t.details)}}])}(_v),Fg=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,e);var o=(1+Math.sqrt(5))/2,s=1/o;return(t=Ud(this,e,[[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-s,-o,0,-s,o,0,s,-o,0,s,o,-s,-o,0,-s,o,0,s,-o,0,s,o,0,-o,0,-s,o,0,-s,-o,0,s,o,0,s],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],i,n])).type="DodecahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),zg=new zm,Hg=new zm,Vg=new zm,Gg=new ev,Ug=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(k()(this,e),(t=Ud(this,e)).type="EdgesGeometry",t.parameters={geometry:i,thresholdAngle:n},null!==i){for(var o=4,s=Math.pow(10,o),a=Math.cos(lm*n),r=i.getIndex(),l=i.getAttribute("position"),c=r?r.count:l.count,u=[0,0,0],p=["a","b","c"],h=new Array(3),d={},m=[],f=0;f0)for(s=e;s=e;s-=n)a=dy(s,t[s],t[s+1],a);return a&&ry(a,a.next)&&(my(a),a=a.next),a}function Jg(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!ry(n,n.next)&&0!==ay(n.prev,n,n.next))n=n.next;else{if(my(n),(n=e=n.prev)===n.next)break;i=!0}}while(i||n!==e);return e}function qg(t,e,i,n,o,s,a){if(t){!a&&s&&function(t,e,i,n){var o=t;do{0===o.z&&(o.z=iy(o.x,o.y,e,i,n)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==t);o.prevZ.nextZ=null,o.prevZ=null,function(t){var e,i,n,o,s,a,r,l,c=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,r=0,e=0;e0||l>0&&n;)0!==r&&(0===l||!n||i.z<=n.z)?(o=i,i=i.nextZ,r--):(o=n,n=n.nextZ,l--),s?s.nextZ=o:t=o,o.prevZ=s,s=o;i=n}s.nextZ=null,c*=2}while(a>1)}(o)}(t,n,o,s);for(var r,l,c=t;t.prev!==t.next;)if(r=t.prev,l=t.next,s?Zg(t,n,o,s):Xg(t))e.push(r.i/i|0),e.push(t.i/i|0),e.push(l.i/i|0),my(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?qg(t=Kg(Jg(t),e,i),e,i,n,o,s,2):2===a&&$g(t,e,i,n,o,s):qg(Jg(t),e,i,n,o,s,1);break}}}function Xg(t){var e=t.prev,i=t,n=t.next;if(ay(e,i,n)>=0)return!1;for(var o=e.x,s=i.x,a=n.x,r=e.y,l=i.y,c=n.y,u=os?o>a?o:a:s>a?s:a,d=r>l?r>c?r:c:l>c?l:c,m=n.next;m!==e;){if(m.x>=u&&m.x<=h&&m.y>=p&&m.y<=d&&oy(o,r,s,l,a,c,m.x,m.y)&&ay(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function Zg(t,e,i,n){var o=t.prev,s=t,a=t.next;if(ay(o,s,a)>=0)return!1;for(var r=o.x,l=s.x,c=a.x,u=o.y,p=s.y,h=a.y,d=rl?r>c?r:c:l>c?l:c,v=u>p?u>h?u:h:p>h?p:h,g=iy(d,m,e,i,n),y=iy(f,v,e,i,n),b=t.prevZ,C=t.nextZ;b&&b.z>=g&&C&&C.z<=y;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&oy(r,u,l,p,c,h,b.x,b.y)&&ay(b.prev,b,b.next)>=0)return!1;if(b=b.prevZ,C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&oy(r,u,l,p,c,h,C.x,C.y)&&ay(C.prev,C,C.next)>=0)return!1;C=C.nextZ}for(;b&&b.z>=g;){if(b.x>=d&&b.x<=f&&b.y>=m&&b.y<=v&&b!==o&&b!==a&&oy(r,u,l,p,c,h,b.x,b.y)&&ay(b.prev,b,b.next)>=0)return!1;b=b.prevZ}for(;C&&C.z<=y;){if(C.x>=d&&C.x<=f&&C.y>=m&&C.y<=v&&C!==o&&C!==a&&oy(r,u,l,p,c,h,C.x,C.y)&&ay(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function Kg(t,e,i){var n=t;do{var o=n.prev,s=n.next.next;!ry(o,s)&&ly(o,n,n.next,s)&&py(o,s)&&py(s,o)&&(e.push(o.i/i|0),e.push(n.i/i|0),e.push(s.i/i|0),my(n),my(n.next),n=t=s),n=n.next}while(n!==t);return Jg(n)}function $g(t,e,i,n,o,s){var a=t;do{for(var r=a.next.next;r!==a.prev;){if(a.i!==r.i&&sy(a,r)){var l=hy(a,r);return a=Jg(a,a.next),l=Jg(l,l.next),qg(a,e,i,n,o,s,0),void qg(l,e,i,n,o,s,0)}r=r.next}a=a.next}while(a!==t)}function Qg(t,e){return t.x-e.x}function ty(t,e){var i=function(t,e){var i,n=e,o=-1/0,s=t.x,a=t.y;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y){var r=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(r<=s&&r>o&&(o=r,i=n.x=n.x&&n.x>=u&&s!==n.x&&oy(ai.x||n.x===i.x&&ey(i,n)))&&(i=n,h=l)),n=n.next}while(n!==c);return i}(t,e);if(!i)return e;var n=hy(i,t);return Jg(n,n.next),Jg(i,i.next)}function ey(t,e){return ay(t.prev,t,e.prev)<0&&ay(e.next,t,t.next)<0}function iy(t,e,i,n,o){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*o|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*o|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function ny(t){var e=t,i=t;do{(e.x=(t-a)*(s-r)&&(t-a)*(n-r)>=(i-a)*(e-r)&&(i-a)*(s-r)>=(o-a)*(n-r)}function sy(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&ly(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(py(t,e)&&py(e,t)&&function(t,e){var i=t,n=!1,o=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&o<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(ay(t.prev,t,e.prev)||ay(t,e.prev,e))||ry(t,e)&&ay(t.prev,t,t.next)>0&&ay(e.prev,e,e.next)>0)}function ay(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function ry(t,e){return t.x===e.x&&t.y===e.y}function ly(t,e,i,n){var o=uy(ay(t,e,i)),s=uy(ay(t,e,n)),a=uy(ay(i,n,t)),r=uy(ay(i,n,e));return o!==s&&a!==r||!(0!==o||!cy(t,i,e))||!(0!==s||!cy(t,n,e))||!(0!==a||!cy(i,t,n))||!(0!==r||!cy(i,e,n))}function cy(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function uy(t){return t>0?1:t<0?-1:0}function py(t,e){return ay(t.prev,t,t.next)<0?ay(t,e,t.next)>=0&&ay(t,t.prev,e)>=0:ay(t,e,t.prev)<0||ay(t,t.next,e)<0}function hy(t,e){var i=new fy(t.i,t.x,t.y),n=new fy(e.i,e.x,e.y),o=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=o,o.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function dy(t,e,i,n){var o=new fy(t,e,i);return n?(o.next=n.next,o.prev=n,n.next.prev=o,n.next=o):(o.prev=o,o.next=o),o}function my(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function fy(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}var vy=function(){function t(){k()(this,t)}return _()(t,null,[{key:"area",value:function(t){for(var e=t.length,i=0,n=e-1,o=0;o2&&void 0!==arguments[2]?arguments[2]:2,u=e&&e.length,p=u?e[0]*c:t.length,h=Yg(t,0,p,c,!0),d=[];if(!h||h.next===h.prev)return d;if(u&&(h=function(t,e,i,n){var o,s,a,r=[];for(o=0,s=e.length;o80*c){i=o=t[0],n=s=t[1];for(var m=c;mo&&(o=a),r>s&&(s=r);l=0!==(l=Math.max(o-i,s-n))?32767/l:0}return qg(h,d,c,i,n,l,0),d}(i,n),l=0;l2&&t[e-1].equals(t[0])&&t.pop()}function yy(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:new Wg([new fm(.5,.5),new fm(-.5,.5),new fm(-.5,-.5),new fm(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()(this,e),(t=Ud(this,e)).type="ExtrudeGeometry",t.parameters={shapes:i,options:n},i=Array.isArray(i)?i:[i];for(var o=t,s=[],a=[],r=0,l=i.length;rNumber.EPSILON){var h=Math.sqrt(u),d=Math.sqrt(l*l+c*c),m=e.x-r/h,f=e.y+a/h,v=((i.x-c/d-m)*c-(i.y+l/d-f)*l)/(a*c-r*l),g=(n=m+a*v-t.x)*n+(o=f+r*v-t.y)*o;if(g<=2)return new fm(n,o);s=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(r)===Math.sign(c)&&(y=!0),y?(n=-r,o=a,s=Math.sqrt(u)):(n=a,o=r,s=Math.sqrt(u/2))}return new fm(n/s,o/s)}for(var I=[],R=0,F=M.length,z=F-1,H=R+1;R=0;gt--){for(var yt=gt/y,bt=f*Math.cos(yt*Math.PI/2),Ct=v*Math.sin(yt*Math.PI/2)+g,wt=0,kt=M.length;wt=0;){var n=i,o=i-1;o<0&&(o=t.length-1);for(var s=0,a=h+2*y;s0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k()(this,e);var o=(1+Math.sqrt(5))/2;return(t=Ud(this,e,[[-1,o,0,1,o,0,-1,-o,0,1,-o,0,0,-1,o,0,1,o,0,-1,-o,0,1,-o,o,0,-1,o,0,1,-o,0,-1,-o,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],i,n])).type="IcosahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),ky=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k()(this,e),(t=Ud(this,e,[[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],i,n])).type="OctahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),xy=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="RingGeometry",t.parameters={innerRadius:i,outerRadius:n,thetaSegments:o,phiSegments:s,thetaStart:a,thetaLength:r},o=Math.max(3,o);for(var l=[],c=[],u=[],p=[],h=i,d=(n-i)/(s=Math.max(1,s)),m=new zm,f=new fm,v=0;v<=s;v++){for(var g=0;g<=o;g++){var y=a+g/o*r;m.x=h*Math.cos(y),m.y=h*Math.sin(y),c.push(m.x,m.y,m.z),u.push(0,0,1),f.x=(m.x/n+1)/2,f.y=(m.y/n+1)/2,p.push(f.x,f.y)}h+=d}for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:new Wg([new fm(0,.5),new fm(-.5,-.5),new fm(.5,-.5)]),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;k()(this,e),(t=Ud(this,e)).type="ShapeGeometry",t.parameters={shapes:i,curveSegments:n};var o=[],s=[],a=[],r=[],l=0,c=0;if(!1===Array.isArray(i))p(i);else for(var u=0;u0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Math.PI;k()(this,e),(t=Ud(this,e)).type="SphereGeometry",t.parameters={radius:i,widthSegments:n,heightSegments:o,phiStart:s,phiLength:a,thetaStart:r,thetaLength:l},n=Math.max(3,Math.floor(n)),o=Math.max(2,Math.floor(o));for(var c=Math.min(r+l,Math.PI),u=0,p=[],h=new zm,d=new zm,m=[],f=[],v=[],g=[],y=0;y<=o;y++){var b=[],C=y/o,w=0;0===y&&0===r?w=.5/n:y===o&&c===Math.PI&&(w=-.5/n);for(var x=0;x<=n;x++){var _=x/n;h.x=-i*Math.cos(s+_*a)*Math.sin(r+C*l),h.y=i*Math.cos(r+C*l),h.z=i*Math.sin(s+_*a)*Math.sin(r+C*l),f.push(h.x,h.y,h.z),d.copy(h).normalize(),v.push(d.x,d.y,d.z),g.push(_+w,1-C),b.push(u++)}p.push(b)}for(var E=0;E0)&&m.push(D,P,O),(E!==o-1||c0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return k()(this,e),(t=Ud(this,e,[[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],i,n])).type="TetrahedronGeometry",t.parameters={radius:i,detail:n},t}return sn()(e,t),_()(e,null,[{key:"fromJSON",value:function(t){return new e(t.radius,t.detail)}}])}(Rg),Dy=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:48,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI;k()(this,e),(t=Ud(this,e)).type="TorusGeometry",t.parameters={radius:i,tube:n,radialSegments:o,tubularSegments:s,arc:a},o=Math.floor(o),s=Math.floor(s);for(var r=[],l=[],c=[],u=[],p=new zm,h=new zm,d=new zm,m=0;m<=o;m++)for(var f=0;f<=s;f++){var v=f/s*a,g=m/o*Math.PI*2;h.x=(i+n*Math.cos(g))*Math.cos(v),h.y=(i+n*Math.cos(g))*Math.sin(v),h.z=n*Math.sin(g),l.push(h.x,h.y,h.z),p.x=i*Math.cos(v),p.y=i*Math.sin(v),d.subVectors(h,p).normalize(),c.push(d.x,d.y,d.z),u.push(f/s),u.push(m/o)}for(var y=1;y<=o;y++)for(var b=1;b<=s;b++){var C=(s+1)*y+b-1,w=(s+1)*(y-1)+b-1,x=(s+1)*(y-1)+b,_=(s+1)*y+b;r.push(C,w,_),r.push(w,x,_)}return t.setIndex(r),t.setAttribute("position",new vv(l,3)),t.setAttribute("normal",new vv(c,3)),t.setAttribute("uv",new vv(u,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}}])}(_v),Py=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.4,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3;k()(this,e),(t=Ud(this,e)).type="TorusKnotGeometry",t.parameters={radius:i,tube:n,tubularSegments:o,radialSegments:s,p:a,q:r},o=Math.floor(o),s=Math.floor(s);for(var l=[],c=[],u=[],p=[],h=new zm,d=new zm,m=new zm,f=new zm,v=new zm,g=new zm,y=new zm,b=0;b<=o;++b){var C=b/o*a*Math.PI*2;N(C,a,r,i,m),N(C+.01,a,r,i,f),g.subVectors(f,m),y.addVectors(f,m),v.crossVectors(g,y),y.crossVectors(v,g),v.normalize(),y.normalize();for(var w=0;w<=s;++w){var x=w/s*Math.PI*2,_=-n*Math.cos(x),E=n*Math.sin(x);h.x=m.x+(_*y.x+E*v.x),h.y=m.y+(_*y.y+E*v.y),h.z=m.z+(_*y.z+E*v.z),c.push(h.x,h.y,h.z),d.subVectors(h,m).normalize(),u.push(d.x,d.y,d.z),p.push(b/o),p.push(w/s)}}for(var S=1;S<=o;S++)for(var D=1;D<=s;D++){var P=(s+1)*(S-1)+(D-1),M=(s+1)*S+(D-1),O=(s+1)*S+D,T=(s+1)*(S-1)+D;l.push(P,M,T),l.push(M,O,T)}function N(t,e,i,n,o){var s=Math.cos(t),a=Math.sin(t),r=i/e*t,l=Math.cos(r);o.x=n*(2+l)*.5*s,o.y=n*(2+l)*a*.5,o.z=n*Math.sin(r)*.5}return t.setIndex(l),t.setAttribute("position",new vv(c,3)),t.setAttribute("normal",new vv(u,3)),t.setAttribute("uv",new vv(p,2)),t}return sn()(e,t),_()(e,[{key:"copy",value:function(t){return Gd(e,"copy",this,3)([t]),this.parameters=Object.assign({},t.parameters),this}}],[{key:"fromJSON",value:function(t){return new e(t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q)}}])}(_v),My=function(t){function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Mg(new zm(-1,-1,0),new zm(-1,1,0),new zm(1,1,0)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:64,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];k()(this,e),(t=Ud(this,e)).type="TubeGeometry",t.parameters={path:i,tubularSegments:n,radius:o,radialSegments:s,closed:a};var r=i.computeFrenetFrames(n,a);t.tangents=r.tangents,t.normals=r.normals,t.binormals=r.binormals;var l=new zm,c=new zm,u=new fm,p=new zm,h=[],d=[],m=[],f=[];function v(t){p=i.getPointAt(t/n,p);for(var e=r.normals[t],a=r.binormals[t],u=0;u<=s;u++){var m=u/s*Math.PI*2,f=Math.sin(m),v=-Math.cos(m);c.x=v*e.x+f*a.x,c.y=v*e.y+f*a.y,c.z=v*e.z+f*a.z,c.normalize(),d.push(c.x,c.y,c.z),l.x=p.x+o*c.x,l.y=p.y+o*c.y,l.z=p.z+o*c.z,h.push(l.x,l.y,l.z)}}return function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:null;if(k()(this,e),(t=Ud(this,e)).type="WireframeGeometry",t.parameters={geometry:i},null!==i){var n=[],o=new Set,s=new zm,a=new zm;if(null!==i.index){var r=i.attributes.position,l=i.index,c=i.groups;0===c.length&&(c=[{start:0,count:l.count,materialIndex:0}]);for(var u=0,p=c.length;u=o)break t;var r=e[1];t=(o=e[--i-1]))break e}s=i,i=0}for(;i>>1;te;)--s;if(++s,0!==o||s!==n){o>=s&&(o=(s=Math.max(s,1))-1);var a=this.getValueSize();this.times=i.slice(o,s),this.values=this.values.slice(o*a,s*a)}return this}},{key:"validate",value:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var i=this.times,n=this.values,o=i.length;0===o&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var s=null,a=0;a!==o;a++){var r=i[a];if("number"==typeof r&&isNaN(r)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,r),t=!1;break}if(null!==s&&s>r){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,r,s),t=!1;break}s=r}if(void 0!==n&&By(n))for(var l=0,c=n.length;l!==c;++l){var u=n[l];if(isNaN(u)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,l,u),t=!1;break}}return t}},{key:"optimize",value:function(){for(var t=this.times.slice(),e=this.values.slice(),i=this.getValueSize(),n=2302===this.getInterpolation(),o=t.length-1,s=1,a=1;a0){t[s]=t[o];for(var g=o*i,y=s*i,b=0;b!==i;++b)e[y+b]=e[g+b];++s}return s!==t.length?(this.times=t.slice(0,s),this.values=e.slice(0,s*i)):(this.times=t,this.values=e),this}},{key:"clone",value:function(){var t=this.times.slice(),e=this.values.slice(),i=new(0,this.constructor)(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}],[{key:"toJSON",value:function(t){var e,i=t.constructor;if(i.toJSON!==this.toJSON)e=i.toJSON(t);else{e={name:t.name,times:Ny(t.times,Array),values:Ny(t.values,Array)};var n=t.getInterpolation();n!==t.DefaultInterpolation&&(e.interpolation=n)}return e.type=t.ValueTypeName,e}}])}();Ry.prototype.TimeBufferType=Float32Array,Ry.prototype.ValueBufferType=Float32Array,Ry.prototype.DefaultInterpolation=2301;var Fy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Fy.prototype.ValueTypeName="bool",Fy.prototype.ValueBufferType=Array,Fy.prototype.DefaultInterpolation=2300,Fy.prototype.InterpolantFactoryMethodLinear=void 0,Fy.prototype.InterpolantFactoryMethodSmooth=void 0;var zy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);zy.prototype.ValueTypeName="color";var Hy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Hy.prototype.ValueTypeName="number";var Vy=function(t){function e(t,i,n,o){return k()(this,e),Ud(this,e,[t,i,n,o])}return sn()(e,t),_()(e,[{key:"interpolate_",value:function(t,e,i,n){for(var o=this.resultBuffer,s=this.sampleValues,a=this.valueSize,r=(i-e)/(n-e),l=t*a,c=l+a;l!==c;l+=4)Fm.slerpFlat(o,0,s,l-a,s,l,r);return o}}])}(Ly),Gy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e,[{key:"InterpolantFactoryMethodLinear",value:function(t){return new Vy(this.times,this.values,this.getValueSize(),t)}}])}(Ry);Gy.prototype.ValueTypeName="quaternion",Gy.prototype.DefaultInterpolation=2301,Gy.prototype.InterpolantFactoryMethodSmooth=void 0;var Uy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Uy.prototype.ValueTypeName="string",Uy.prototype.ValueBufferType=Array,Uy.prototype.DefaultInterpolation=2300,Uy.prototype.InterpolantFactoryMethodLinear=void 0,Uy.prototype.InterpolantFactoryMethodSmooth=void 0;var Wy=function(t){function e(){return k()(this,e),Ud(this,e,arguments)}return sn()(e,t),_()(e)}(Ry);Wy.prototype.ValueTypeName="vector";var Yy=_()((function t(e,i,n){k()(this,t);var o,s=this,a=!1,r=0,l=0,c=[];this.onStart=void 0,this.onLoad=e,this.onProgress=i,this.onError=n,this.itemStart=function(t){l++,!1===a&&void 0!==s.onStart&&s.onStart(t,r,l),a=!0},this.itemEnd=function(t){r++,void 0!==s.onProgress&&s.onProgress(t,r,l),r===l&&(a=!1,void 0!==s.onLoad&&s.onLoad())},this.itemError=function(t){void 0!==s.onError&&s.onError(t)},this.resolveURL=function(t){return o?o(t):t},this.setURLModifier=function(t){return o=t,this},this.addHandler=function(t,e){return c.push(t,e),this},this.removeHandler=function(t){var e=c.indexOf(t);return-1!==e&&c.splice(e,2),this},this.getHandler=function(t){for(var e=0,i=c.length;e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function sb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),rb(i=ab(this,e,[t,n]),pb,void 0),rb(i,hb,!1);var s="\n importScripts('".concat(i.getSourceRootPath(),"/3rdparty/turf.min.js');\n self.addEventListener('message', function (e) {\n let features = []\n eval(e.data.code);\n self.postMessage(features);\n }, false);\n "),a="data:text/javascript;charset=utf-8,"+encodeURIComponent(s);if(i._worker=new Worker(a),i.options.angle=i.options.angle||0,i.loaded=!1,i.ismove=!1,i.options.position.lat>83.5&&(i.options.position.lat=83.5),i.options.position.lat<-83.5&&(i.options.position.lat=-83.5),i.options.show=!n.show&&!1!==n.show||n.show,i.options.scale=n.scale||{},i.options.scale.x=i.options.scale.x||0===i.options.scale.x?i.options.scale.x:1,i.options.scale.y=i.options.scale.y||0===i.options.scale.y?i.options.scale.y:1,i.options.flipe=n.flipe||{},i.options.flipe.x=i.options.flipe.x||!1,i.options.flipe.y=i.options.flipe.y||!1,i.options.attribute=n.attribute||{},i.options.attribute.link=i.options.attribute.link||{},i.options.attribute.link.content=i.options.attribute.link.content||[],i.options.attributeType=n.attributeType||"richText",n.text=n.text||{},i.options.text={value:n.text.value||"",show:!n.text.show&&!1!==n.text.show||n.text.show,position:n.text.position,fontSize:n.text.fontSize||0===n.text.fontSize?n.text.fontSize:20,color:n.text.color||"#ffffff",scaleByDistance:n.text.scaleByDistance||!1,near:n.text.near||0===n.text.near?n.text.near:2e3,far:n.text.far||0===n.text.far?n.text.far:1e5},i.options.text.position){var r=turf.point([i.options.position.lng,i.options.position.lat]),l=turf.point([i.options.text.position.lng,i.options.text.position.lat]),c=turf.distance(r,l,{units:"kilometers"}),u=turf.rhumbBearing(r,l);i._textToCenter={distance:c,angle:u}}return i.hierarchys=[],i._elms={},i.Dialog=o,i._isdrag=!1,i._EventBinding=new wn,i.sdk.entityMap.get(i.options.id)?tn()(i):(i.sdk.addIncetance(i.options.id,i),i.picking=!0,i.options.show&&Kt(0,i.options.id),i._entityArray=[],i.init(),i)}return sn()(e,t),_()(e,[{key:"type",get:function(){return"GroundSvg"}},{key:"attributeSelect",get:function(){return[{name:"富文本",value:"富文本",key:"richText"},{name:"链接",value:"链接",key:"link"}]}},{key:"name",get:function(){return this.options.name},set:function(t){this.options.name=t,this._elms.name&&this._elms.name.forEach((function(e){e.value=t}))}},{key:"show",get:function(){return this.options.show},set:function(t){var i,n,o,s,a,r;"boolean"==typeof t?(this.options.text&&this.options.text.show&&this.text&&(this.showView&&3!=this.showView?this.text.show=!1:this.text.show=t),i=e,n="show",o=t,s=this,a=1,r=1,Td()(nn()(r?i.prototype:i),n,o,s,a)):console.error("参数必须为boolean")}},{key:"position",get:function(){return this.options.position},set:function(t){var e=this;if(this.options.position=t,this.options.position.lat>83.5&&(this.options.position.lat=83.5),this.options.position.lat<-83.5&&(this.options.position.lat=-83.5),this._update(),this._textToCenter){var i=turf.point([this.options.position.lng,this.options.position.lat]),n=turf.destination(i,this._textToCenter.distance,this._textToCenter.angle,{units:"kilometers"}).geometry.coordinates;this.getClampToHeight({lng:n[0],lat:n[1]}).then((function(t){var i=[n[0],n[1],t];e.text&&(e.text.position=i)}))}}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;if(this.options.color=t,this.options.color)for(var i=0;i0&&0===i&&(this.options.angle=360),this._elms.angle&&this._elms.angle.forEach((function(t){t.value=e.options.angle})),this._update()}},{key:"scale",get:function(){return this.options.scale},set:function(t){this.options.scale.x=t.x,this.options.scale.y=t.y,this._elms&&(this._elms.xRange&&(this._elms.xRange.value=this.options.scale.x),this._elms.yRange&&(this._elms.yRange.value=this.options.scale.y),this._elms.xInput&&(this._elms.xInput.value=this.options.scale.x),this._elms.yInput&&(this._elms.yInput.value=this.options.scale.y)),this._update()}},{key:"flipeY",get:function(){return this.options.flipe.y},set:function(t){"boolean"==typeof t?(this.options.flipe.y=t,this._update()):console.error("参数必须为boolean")}},{key:"flipeX",get:function(){return this.options.flipe.x},set:function(t){"boolean"==typeof t?(this.options.flipe.x=t,this._update()):console.error("参数必须为boolean")}},{key:"textValue",get:function(){return this.options.text.value},set:function(t){this.options.text.value=t,this.text?this.text.text=t:e.createText(this),this._elms.textValue&&this._elms.textValue.forEach((function(e){e.value=t}))}},{key:"textShow",get:function(){return this.options.text.show},set:function(t){var e=this;this.options.text.show=t,this.show?(this.showView&&3!=this.showView?this.text&&(this.text.show=!1):this.text&&(this.text.show=t),this.options.text.position&&setTimeout((function(){e.options.text.position.alt?e.text&&(e.text.position=[e.options.text.position.lng,e.options.text.position.lat,e.options.text.position.alt]):e.getClampToHeight({lng:e.options.text.position.lng,lat:e.options.text.position.lat}).then((function(t){e.text&&(e.text.position=[e.options.text.position.lng,e.options.text.position.lat,t])}))}),0)):this.text&&(this.text.show=!1),this._elms.textShow&&this._elms.textShow.forEach((function(e){e.checked=t}))}},{key:"textColor",get:function(){return this.options.text.color},set:function(t){var e=this;this.options.text.color=t,this.text&&(this.text.color=t),this._elms.textColor&&this._elms.textColor.forEach((function(t,i){var n=new YJColorPicker({el:t.el,size:"mini",alpha:!0,defaultColor:e.textColor,disabled:!1,openPickerAni:"opacity",sure:function(t){e.textColor=t},clear:function(){e.textColor="rgba(255,255,255,1)"}});e._elms.textColor[i]=n}))}},{key:"textFontSize",get:function(){return this.options.text.fontSize},set:function(t){this.options.text.fontSize=t,this.text&&(this.text.fontSize=t,this.text.pixelOffset=t),this._elms.textFontSize&&this._elms.textFontSize.forEach((function(e){e.value=t}))}},{key:"textScaleByDistance",get:function(){return this.options.text.scaleByDistance},set:function(t){this.options.text.scaleByDistance=t,this.text&&(this.text.scaleByDistance=t),this._elms.textScaleByDistance&&this._elms.textScaleByDistance.forEach((function(e){e.checked=t}))}},{key:"textNear",get:function(){return this.options.text.near},set:function(t){var e=t;e>this.textFar&&(e=this.textFar),this.options.text.near=e,this.text&&(this.text.near=e),this._elms.textNear&&this._elms.textNear.forEach((function(t){t.value=e}))}},{key:"textFar",get:function(){return this.options.text.far},set:function(t){var e=t;e-1?e[i].style.display="block":e[i].style.display="none"}},{key:"attributeLink",get:function(){return this.options.attribute.link.content},set:function(t){var e=this;if(this.options.attribute.link.content=t,this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content&&0!=this._DialogObject._element.content.getElementsByClassName("attribute-content-link").length){var i=this._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],n=i.getElementsByClassName("table-body")[0];n.innerHTML="",this.options.attribute.link.content.length>0?i.getElementsByClassName("table-empty")[0].style.display="none":i.getElementsByClassName("table-empty")[0].style.display="flex";for(var s=0;s\n
                '+this.options.attribute.link.content[s].url+'
                \n
                \n \n \n
                \n ',l=document.createRange().createContextualFragment(r);n.appendChild(l)}for(var c,u=n.getElementsByClassName("tr"),p={linkEdit:(c=o()(a.a.mark((function t(i){var n,o,s,r,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.options.attribute.link.content;case 2:e.attributeLink=t.sent,n=e._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],o=n.getElementsByClassName("table-body")[0],s=o.getElementsByClassName("tr"),r=a.a.mark((function t(n){var o,r,l,c,u,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==n){t.next=36;break}o=s[n].offsetHeight,s[n].innerHTML='\n
                \n \n
                \n
                \n \n
                \n
                \n \n \n
                ',s[n].getElementsByClassName("link-edit")[0].style.height=o-10+"px",(r=s[n].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].name,r[1].getElementsByClassName("input")[0].value=e.options.attribute.link.content[i].url,l=s[n].getElementsByTagName("button"),c=0;case 11:if(!(cE[S]&&(w=E[S]),k(k=Math.abs(k))&&(k=w);var D=k,P=4e3/(k=k*(10/3)*100)/5;D*=P;for(var M=0;M=Number(t.target.min))&&(m.scale={x:e,y:m.scale.y})})),p.addEventListener("blur",(function(t){var e=t.target.value;e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e=Number(t.target.min))&&(m.scale={x:m.scale.x,y:e})})),d.addEventListener("blur",(function(t){var e=t.target.value;e=Number(e),t.target.max&&e>Number(t.target.max)&&(e=Number(t.target.max)),t.target.min&&e-360&&b<-90||b<360&&b>90)&&(b+=180,B=!0),((C=M-O)>-360&&C<-90||C<360&&C>90)&&(C+=180,L=!0),B&&L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*N*2,v=Math.cos(m)*N*2,i.scale.x=Math.abs(f)/3.5,i.scale.y=Math.abs(v)/3.5,t.abrupt("break",102);case 57:return O=(turf.rhumbBearing(S,turf.point(x[2]))+360-i.angle)%360,(C=M-O)>-360&&C<-90||C<360&&C>90?(C+=180,i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[2].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[8].point.color=Cesium.Color.fromCssColorString("#00ff0a")),m=Math.PI/180*C,v=Math.cos(m)*N*2,i.scale.y=v/3.5,t.abrupt("break",102);case 64:return T=(turf.rhumbBearing(S,turf.point(x[6]))+360-i.angle)%360,O=(turf.rhumbBearing(S,turf.point(x[2]))+360-i.angle)%360,((b=M-T)>-360&&b<-90||b<360&&b>90)&&(b+=180,B=!0),((C=M-O)>-360&&C<-90||C<360&&C>90)&&(C+=180,L=!0),B&&L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):B?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")):L?(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[1].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[3].point.color=Cesium.Color.fromCssColorString("#ff0000"),i.pointEntityCollection.values[7].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[9].point.color=Cesium.Color.fromCssColorString("#00ff0a")),d=Math.PI/180*b,m=Math.PI/180*C,f=Math.cos(d)*N*2,v=Math.cos(m)*N*2,i.scale.x=Math.abs(f)/3.5,i.scale.y=Math.abs(v)/3.5,t.abrupt("break",102);case 78:return T=(turf.rhumbBearing(S,turf.point(x[4]))+360-i.angle)%360,(b=M-T)>-360&&b<-90||b<360&&b>90?(b+=180,i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*N*2,i.scale.x=f/3.5,t.abrupt("break",102);case 85:return u.lat>83.5&&(u.lat=83.5),u.lat<-83.5&&(u.lat=-83.5),i.position={lng:u.lng,lat:u.lat},A=u.lng-c.lng,j=u.lat-c.lat,i.bbox[0]=i.bbox[0]+A,i.bbox[1]=i.bbox[1]+j,i.bbox[2]=i.bbox[2]+A,i.bbox[3]=i.bbox[3]+j,t.abrupt("break",102);case 95:return T=(turf.rhumbBearing(S,turf.point(x[6]))+360-i.angle)%360,(b=M-T)>-360&&b<-90||b<360&&b>90?(b+=180,i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#ff0000")):(i.pointEntityCollection.values[4].point.color=Cesium.Color.fromCssColorString("#00ff0a"),i.pointEntityCollection.values[6].point.color=Cesium.Color.fromCssColorString("#ff0000")),d=Math.PI/180*b,f=Math.cos(d)*N*2,i.scale.x=f/3.5,t.abrupt("break",102);case 102:p=p/(n/2)*100,h=h/(s/2)*100,(I=nb({},i.scale)).x=I.x+p,I.y=I.y-h,I.y>200&&(I.y=200),I.y<.001&&(I.y=.001),I.x>200&&(I.x=200),I.x<.001&&(I.x=.001),i.scale=nb({},I),t.next=141;break;case 114:R=i.sdk.viewer.scene.drillPick(e.endPosition),z=0;case 116:if(!(z90&&(c+=180);var p=[c,u],h=turf.point(p),d=turf.rhumbDestination(h,o[s][r].distance,o[s][r].angle,{units:"kilometers"}),m=L()(d.geometry.coordinates);m[2]=10,a.push((l=Cesium.Cartesian3).fromDegrees.apply(l,L()(m)))}0===s?i.positions=a:n.push(a)}return i.holes=n,i}}},{key:"_updateGeojson",value:function(t,e,i){if(lb(hb,this)){var n=Math.abs(this.bbox[0]-this.bbox[2]),o=Math.abs(this.bbox[1]-this.bbox[3]);if("object"===N()(t[0]))for(var s=0;so[2]&&(e=o[0],o[0]=o[2],o[2]=e),o[1]>o[3]&&(e=o[1],o[1]=o[3],o[3]=e);for(var c=[],u=JSON.parse(JSON.stringify(this.geojson)),p=function(e){for(var i=0;i=0;e--)this.sdk.viewer.entities.remove(this.entity.values[e]);return this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=14,Pe(this.sdk,this.options.id);case 14:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"_addLink",value:function(){this._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(this.options.attribute.link.content.push({name:"链接",url:this._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),this._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",this.attributeLink=this.options.attribute.link.content):this.Dialog.clickAddLink&&this.Dialog.clickAddLink()}},{key:"addAttributeLink",value:function(t){this.options.attribute.link.content.push({name:"链接",url:t}),this.attributeLink=this.options.attribute.link.content}},{key:"openRichTextEditor",value:function(t){var e=this;On.open(this.options.id,this.options.name,this.options.richTextContent),On.primaryCallBack=function(t){e.options.richTextContent=t}}},{key:"setPosition",value:function(t){if(t){this.ismove=!0;var e={};e.lng=t.position.lng,e.lat=t.position.lat,this.position=e}else this.ismove=!1;this._update()}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=m.length>0&&void 0!==m[0]?m[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=24;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),(l=nb({},this.options.position)).hasOwnProperty("alt")){t.next=17;break}return t.next=16,this.getClampToHeight(l);case 16:l.alt=t.sent;case 17:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=37;break;case 24:c=[],u=0;case 26:if(!(u=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function fb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),i=vb(this,e,[t,n]),YJ.RoutePlanningArrays.push(i),i.options.width=n.width||4,i.options.color=n.color||"#ff0000",i.options.gps=n.gps||!1,i.Dialog=o,i._elms={},i.start={lng:null,lat:null},i.end={lng:null,lat:null},i.init(),i}return sn()(e,t),_()(e,[{key:"init",value:function(){var t=this;this.startEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-start"),!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity.show=!1:this.startEntity.show=!0,this.startEntity.position=new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.startLng,t.startLat))}),!1),this.startEntity.billboard={image:this.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.endEntity=this.sdk.viewer.entities.getOrCreateEntity("YJ-route-planning-end"),!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity.show=!1:this.endEntity.show=!0,this.endEntity.position=new Cesium.CallbackProperty((function(){return t.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(t.endLng,t.endLat))}),!1),this.endEntity.billboard={image:this.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32},this.edit(!0),this.clear()}},{key:"startLng",get:function(){return this.start.lng},set:function(t){this.start.lng=t,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLng&&this._elms.startLng.forEach((function(e){e.value=t}))}},{key:"startLat",get:function(){return this.start.lat},set:function(t){this.start.lat=t,!this.start||!this.start.lng&&0!==this.start.lng||!this.start.lat&&0!==this.start.lat?this.startEntity&&(this.startEntity.show=!1):this.startEntity&&(this.startEntity.show=!0),this._elms.startLat&&this._elms.startLat.forEach((function(e){e.value=t}))}},{key:"endLng",get:function(){return this.end.lng},set:function(t){this.end.lng=t,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLng&&this._elms.endLng.forEach((function(e){e.value=t}))}},{key:"endLat",get:function(){return this.end.lat},set:function(t){this.end.lat=t,!this.end||!this.end.lng&&0!==this.end.lng||!this.end.lat&&0!==this.end.lat?this.endEntity&&(this.endEntity.show=!1):this.endEntity&&(this.endEntity.show=!0),this._elms.endLat&&this._elms.endLat.forEach((function(e){e.value=t}))}},{key:"edit",value:(i=o()(a.a.mark((function t(i){var n,o,s,r,l,c,u=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._element_style=null,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=42;break}return this._element_style=document.createElement("style"),this._element_style.type="text/css",this._element_style.setAttribute("data-name","YJ_style_dialog"),this._element_style.innerHTML="\n .YJ-custom-base-dialog>.content {\n width: 460px;\n }\n .YJ-custom-base-dialog>.content>div>.row .col {\n margin: 0 10px;\n }\n .YJ-custom-base-dialog>.content .row .label {\n flex: auto;\n }\n",t.next=11,new W(this.sdk.viewer._container,{title:"路径规划",closeCallBack:function(){u.tip&&u.tip.destroy(),u.event&&u.event.destroy(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()}});case 11:return this._DialogObject=t.sent,t.next=14,this._DialogObject.init();case 14:(n=document.createElement("div")).style.position="absolute",n.style.left="24px",n.style.flet="0",n.style.display="flex",this._DialogObject.footAppChild(n),(o=document.createElement("button")).className="default",o.innerHTML='查询',o.style.width="auto",o.addEventListener("click",(function(){!u.startLng&&0!==u.startLng||!u.startLat&&0!==u.startLat||!u.endLng&&0!==u.endLng||!u.endLat&&0!==u.endLat?console.error("请先设置起点和终点坐标!"):(!u.startEntity&&(u.startEntity=u.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return u.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(u.startLng,u.startLat))}),!1),billboard:{image:u.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),u.startEntity.show=!0,!u.endEntity&&(u.endEntity=u.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return u.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(u.endLng,u.endLat))}),!1),billboard:{image:u.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),u.endEntity.show=!0,u.Dialog.queryCallBack&&u.Dialog.queryCallBack({start:[u.startLng,u.startLat],end:[u.endLng,u.endLat]}))})),n.appendChild(o),(s=document.createElement("button")).className="default",s.innerHTML='清除路线',s.style.width="auto",s.style.marginLeft="10px",s.addEventListener("click",(function(){u.clear()})),n.appendChild(s),document.getElementsByTagName("head")[0].appendChild(this._element_style),(r=document.createElement("div")).innerHTML='\n
                \n
                \n 起点\n \n \n \n
                \n
                \n
                \n
                \n 终点\n \n \n \n
                \n
                \n ',this._DialogObject.contentAppChild(r),this.options.gps&&((l=document.createElement("button")).innerHTML="当前位置",l.style.marginLeft="10px",l.setAttribute("data-is","start"),l.addEventListener("click",(function(t){u.getLocateCurrent(t)})),r.getElementsByClassName("start-col")[0].appendChild(l),this._DialogObject._element.body.getElementsByClassName("end-pick-btn")[0].style.marginRight="91px"),c=r.getElementsByTagName("*"),e.EventBinding(this,c),t.next=44;break;case 42:this._element_style&&(document.getElementsByTagName("head")[0].removeChild(this._element_style),this._element_style=null),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 44:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"clear",value:function(){this.startEntity&&(this.sdk.viewer.entities.remove(this.startEntity),this.startEntity=null),this.endEntity&&(this.sdk.viewer.entities.remove(this.endEntity),this.endEntity=null),this.entity&&(this.sdk.viewer.entities.remove(this.entity),this.entity=null),this.startExtensionEntity&&(this.sdk.viewer.entities.remove(this.startExtensionEntity),this.startExtensionEntity=null),this.endExtensionEntity&&(this.sdk.viewer.entities.remove(this.endExtensionEntity),this.endExtensionEntity=null)}},{key:"destroy",value:function(){this.clear(),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null)}},{key:"getLocateCurrent",value:function(t){var e=this;this.reconnecting&&this.reconnecting.close(),this.options.host=this.options.host||h();var i;i=this.options.host+"/yjearth4.0/api/v1/gps/state",this.reconnecting=new ReconnectingWebSocket("ws://"+i),this.reconnecting.onopen=function(i){e.reconnecting.onmessage=function(i){e.data=JSON.parse(i.data),e.data&&e.data.rmc&&(e.reconnecting.close(),"start"===t.srcElement.getAttribute("data-is")?(e.startLng=e.data.rmc.lng,e.startLat=e.data.rmc.lat,!e.startEntity&&(e.startEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.startLng,e.startLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/start.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.startEntity.show=!0):(e.endLng=e.data.rmc.lng,e.endLat=e.data.rmc.lat,!e.endEntity&&(e.endEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.endEntity.show=!0))}}}},{key:"createRoute",value:function(t){for(var e=[],i=0;i=500?(e.tip&&e.tip.destroy(),e.event&&e.event.destroy()):i(0,n)}))}))}},{key:"pickEndPos",value:function(t){var e=this;this.tip&&this.tip.destroy(),this.event&&this.event.destroy(),this.tip=new Z("左键选择终点坐标,右键取消",this.sdk),this.event=new X(this.sdk),this.event.mouse_move((function(t,i){e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.endLng=n.lng,e.endLat=n.lat,!e.endEntity&&(e.endEntity=e.viewer.entities.add(new Cesium.Entity({position:new Cesium.CallbackProperty((function(){return e.sdk.viewer.scene.clampToHeight(new Cesium.Cartesian3.fromDegrees(e.endLng,e.endLat))}),!1),billboard:{image:e.getSourceRootPath()+"/img/end.png",verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:Number.POSITIVE_INFINITY,width:32,height:32}}))),e.endEntity.show=!0,e.tip&&e.tip.destroy(),e.event&&e.event.destroy()})),this.event.mouse_right((function(t,i){e.tip&&e.tip.destroy(),e.event&&e.event.destroy()}))}},{key:"flicker",value:function(){}}],[{key:"EventBinding",value:function(t,e){for(var i=function(){var i=[],o=!1,s=[];if(!e[n]||!e[n].attributes)return 1;var a,r=mb(e[n].attributes);try{var l=function(){var r=a.value;switch(r.name){case"@model":o=!0,"checkbox"==e[n].type?(i.push((function(e){t[r.value]=e.target.checked})),e[n].checked=t[r.value]):(i.push((function(e){var i=e.target.value;"number"==e.target.type?"."==e.data||"-"==e.data&&!e.target.value||(i=Number(i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i
                ').concat(s[e].properties.fid,"
                ")),s[e].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
                ').concat(s[e].properties[o],"
                "));t+=i=i+n+""}return t},t.next=8,new W(e.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return gb=t.sent,t.next=11,gb.init();case 11:for(y in l=L()(e.geojson.features),i=l.length,s=l.slice(o*(n-1),o*n),c=r(),(u=document.createElement("div")).style.height="100%",'',p='
                ',h='
                ',d="",m='',f='
                ',v="",g=1,"fid"in e.geojson.features[0].properties&&(d+=''),v+=''),m+=''),g++),e.geojson.features[0].properties)"id"!==y&&"ID"!==y&&"fid"!==y&&(d+=''),v+=''),m+='"),g++);'
                暂无数据
                ',p=p+(h=h+(d+='')+(m+="")+"
                fid
                ').concat(y,"
                ")+(f=f+(v+="")+(""+c+"")+'
                暂无数据
                ')+"",u.innerHTML=''+p+'',b=u.getElementsByClassName("el-table__empty-block")[0],0==s.length?b.style.display="flex":b.style.display="none",gb.contentAppChild(u),C=u.getElementsByClassName("el-table__header-wrapper")[0],(w=u.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){C.scrollLeft=t.target.scrollLeft})),gb._element.title.style.height="40px",gb._element.body.style.width="65%",gb._element.body.style.height="80%",gb._element.content.style.height="calc(100% - 40px)",gb._element.content.style.overflow="hidden",gb._element.foot.style.display="none",w.style.height="calc(100% - ".concat(C.offsetHeight,"px)"),Tn(k=u.getElementsByClassName("pagination")[0],i,o,n,(function(t){n=t,s=l.slice(o*(n-1),o*n);var e=r();u.getElementsByTagName("tbody")[0].innerHTML=e,0==s.length?b.style.display="flex":b.style.display="none"})),x=function(){for(var t=u.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],a=[],c=0;c
                ').concat(n[e].properties.fid,"
                ")),n[e].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
                ').concat(n[e].properties[s],"
                "));t+=i=i+o+""}return t},s=!1,r=0;case 5:if(!(r',p='
                ',h="",d='',m='
                ',f="",v=1,"fid"in e.geojson.features[0].properties&&(h+=''),f+=''),d+=''),v++),e.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(h+=''),f+=''),d+='"),v++);if(y='\n \n \n '.concat((u=u+(p=p+(h+='')+(d+="")+"
                fid
                ').concat(g,"
                ")+(m=m+(f+="")+(""+l+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(b='\n \n '.concat(n[0].content.richTextContent,"\n \n "),y+=b),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(C=0;C\n \n \n '),y+=k;for(y+="",c.innerHTML=y,wb.contentAppChild(c),new kn("shp-list-id-tabs"),(x=c.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",x.style.display="flex",x.style.flexDirection="column",x.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=x.getElementsByClassName("DIV-cy-tab-content-pane"),E=0;E<_.length;E++)_[E].style.height="100%";S=c.getElementsByClassName("el-table__header-wrapper")[0],(D=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){S.scrollLeft=t.target.scrollLeft})),wb._element.title.style.height="40px",wb._element.body.style.width="65%",wb._element.body.style.height="80%",wb._element.content.style.height="calc(100% - 40px)",wb._element.foot.style.display="none",D.style.height="calc(100% - ".concat(S.offsetHeight,"px)");case 64:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();function _b(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Eb(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Eb(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Eb(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=Pb(this,e,[t,n])).viewer=t.viewer,i.options.path?(i.options.fileName=n.fileName||"未命名对象",i.options.field=n.field||"id",i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i):(i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),tn()(i))}return sn()(e,t),_()(e,[{key:"show",get:function(){return this.options.show},set:function(t){this.setShow(t)}},{key:"on",value:function(){if(this.options.path)return this.init()}},{key:"init",value:(r=o()(a.a.mark((function t(){var i,n,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.options.host=this.options.host||h(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load":this.options.host+"/yjearth4.0/api/v1/vector/load",i+="?path="+this.options.path,t.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 6:if(200!==(n=t.sent).status){t.next=19;break}return t.next=10,n.json();case 10:if(200!==(o=t.sent).code&&0!==o.code){t.next=18;break}return this.data=o.data,t.next=15,this.formatData();case 15:return t.abrupt("return",e.create(this));case 18:return t.abrupt("return",console.error(o.message));case 19:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"formatData",value:(s=o()(a.a.mark((function t(){var e,i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=function(t){if(t.data){var o;(o=i.list).push.apply(o,L()(t.data));for(var s=0;s0&&void 0!==h[0]&&h[0],i=h.length>1&&void 0!==h[1]?h[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=25;break}return t.next=7,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){p.fileName=p.fileName.trim(),p.fileName||(p.fileName="未命名对象"),p.originalOptions.fileName=p.fileName,p.originalOptions.field=p.field,p._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:p.options.id,fileName:p.originalOptions.fileName,field:p.originalOptions.field})},closeCallBack:function(){p.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:for(c in this._DialogObject=t.sent,n='\n
                \n
                \n 文件名称:\n \n
                \n
                \n
                \n
                \n 名称字段选择:\n \n
                \n
                \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){p.options.fileName=s.value})),r=o.getElementsByClassName("input-select")[0],l="",this.geojson.features[0].properties)u='"),l+=u;r.innerHTML=l,r.value=this.options.field,r.addEventListener("input",(function(){p.options.field=r.value})),this._elms.fileName=s,this._elms.field=r,t.next=26;break;case 25:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 26:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"editById",value:(i=o()(a.a.mark((function t(){var e,i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b=this,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=C.length>0&&void 0!==C[0]&&C[0],i=C.length>1?C[1]:void 0,n=C.length>2&&void 0!==C[2]?C[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),s="",!e){t.next=48;break}l={},c=0;case 8:if(!(c\n
                \n 内容类型:\n \n
                \n \n \n
                \n 编辑内容:\n
                \n \n
                \n
                \n
                \n 编辑内容:\n \n \n
                \n
                \n
                \n
                \n
                \n
                \n
                操作
                \n
                设备名称
                \n
                设备类型
                \n
                设备IP
                \n
                设备端口
                \n
                用户名
                \n
                密码
                \n
                \n
                \n \n
                \n
                \n

                暂无数据

                \n
                \n
                \n
                \n
                \n
                  \n
                  \n
                  \n ',(p=document.createElement("div")).innerHTML=u,this._DialogObject.contentAppChild(p),p.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",h=p.getElementsByClassName("attribute-select")[0],d=p.getElementsByClassName("link_add_btn")[0],m=p.getElementsByClassName("open-richText-btn")[0],f=this._DialogObject._element.content.getElementsByClassName("attribute-content"),v=0;v-1?f[v].style.display="block":f[v].style.display="none";h.addEventListener("change",(function(){b._DialogObject.attribute.attributeType=h.value;for(var t=0;t-1?f[t].style.display="block":f[t].style.display="none"})),d.addEventListener("click",o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(b._DialogObject.attribute.link.content.push({name:"链接",url:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),b._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",b.setAttributeLinkById(i,b._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return t.stop()}}),t)})))),m.addEventListener("click",(function(){On.open(i,i,b._DialogObject.attribute.richTextContent),On.primaryCallBack=function(t){b._DialogObject.attribute.richTextContent=t}})),g=p.getElementsByClassName("camera-name")[0],y=p.getElementsByClassName("camera-select")[0],g.addEventListener("input",(function(){s=g.value})),this.cameraSelect&&this.cameraSelect(s),y.addEventListener("click",(function(){b.cameraSelect&&b.cameraSelect(s)})),t.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"editContentById",value:function(t,e){for(var i=0;i0?s.getElementsByClassName("table-empty")[0].style.display="none":s.getElementsByClassName("table-empty")[0].style.display="flex";for(var l=0;l\n
                  '+this._DialogObject.attribute.link.content[l].url+'
                  \n
                  \n \n \n
                  \n ',u=document.createRange().createContextualFragment(c);r.appendChild(u)}for(var p=r.getElementsByClassName("tr"),h={linkEdit:(i=o()(a.a.mark((function e(i){var o,s,r,l,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setAttributeLinkById(t,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],r=s.getElementsByClassName("tr"),l=a.a.mark((function t(e){var o,s,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==e){t.next=33;break}r[e].innerHTML='\n
                  \n \n
                  \n
                  \n
                  \n \n \n
                  \n
                  \n
                  \n \n \n
                  ',(o=r[e].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=r[e].getElementsByTagName("button"),l=0;case 8:if(!(l1&&void 0!==arguments[1]?arguments[1]:{};if(t){for(var i=0;i0){Tn(o,e.data.total,10,1,(function(e){i.cameraSelect&&i.cameraSelect(t,e)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(t){var o='\n
                  \n
                  \n \n 绑定\n
                  \n
                  ').concat(e.data.list[t].cameraName,'
                  \n
                  ').concat(n[e.data.list[t].type],'
                  \n
                  ').concat(e.data.list[t].ip,'
                  \n
                  ').concat(e.data.list[t].port,'
                  \n
                  ').concat(e.data.list[t].userName,'
                  \n
                  ').concat(e.data.list[t].passWord,"
                  \n
                  "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(e.data.list[t]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==e.data.list[t].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;l0){var l=turf.featureCollection(i),c=turf.envelope(l);c&&c.bbox&&4==c.bbox.length&&(t.range={max_x:c.bbox[2],max_y:c.bbox[3],min_x:c.bbox[0],min_y:c.bbox[1]})}}},{key:"createPoints",value:function(t,e){if(e){for(var i=new Cesium.PointPrimitiveCollection({scene:t.viewer.scene}),n=0;n0&&t.entity.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineColorAppearance}))}}},{key:"createPolygons",value:function(t,e){if(e){for(var i=[],n=0;n0){var c=new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})});t.entity.add(c)}}}},{key:"createTableContent",value:function(t){for(var e="",i=0;i
                  ').concat(t.currentData[i].attr[s],"
                  ");e+=n=n+o+""}return e}}]);var i,n,s,r}(Wn);function Tb(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Nb(t){for(var e=1;e
                  ').concat(s[e].properties.fid,"
                  ")),s[e].properties)"id"!==o&&"ID"!==o&&"fid"!==o&&(n+='
                  ').concat(s[e].properties[o],"
                  "));t+=i=i+n+""}return t},t.next=8,new W(e.viewer._container,{title:"",left:"17%",top:"100px"});case 8:return Mb=t.sent,t.next=11,Mb.init();case 11:for(y in l=L()(e.geojson.features),i=l.length,s=l.slice(o*(n-1),o*n),c=r(),(u=document.createElement("div")).style.height="100%",'',p='
                  ',h='
                  ',d="",m='',f='
                  ',v="",g=1,"fid"in e.geojson.features[0].properties&&(d+=''),v+=''),m+=''),g++),e.geojson.features[0].properties)"id"!==y&&"ID"!==y&&"fid"!==y&&(d+=''),v+=''),m+='"),g++);'
                  暂无数据
                  ',p=p+(h=h+(d+='')+(m+="")+"
                  fid
                  ').concat(y,"
                  ")+(f=f+(v+="")+(""+c+"")+'
                  暂无数据
                  ')+"",u.innerHTML=''+p+'',b=u.getElementsByClassName("el-table__empty-block")[0],0==s.length?b.style.display="flex":b.style.display="none",Mb.contentAppChild(u),C=u.getElementsByClassName("el-table__header-wrapper")[0],(w=u.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){C.scrollLeft=t.target.scrollLeft})),Mb._element.title.style.height="40px",Mb._element.body.style.width="65%",Mb._element.body.style.height="80%",Mb._element.content.style.height="calc(100% - 40px)",Mb._element.content.style.overflow="hidden",Mb._element.foot.style.display="none",w.style.height="calc(100% - ".concat(C.offsetHeight,"px)"),Tn(k=u.getElementsByClassName("pagination")[0],i,o,n,(function(t){n=t,s=l.slice(o*(n-1),o*n);var e=r();u.getElementsByTagName("tbody")[0].innerHTML=e,0==s.length?b.style.display="flex":b.style.display="none"})),x=function(){for(var t=u.getElementsByClassName("search-box")[0].getElementsByTagName("input")[0],a=[],c=0;c
                  ').concat(n[e].properties.fid,"
                  ")),n[e].properties)"id"!==s&&"ID"!==s&&"fid"!==s&&(o+='
                  ').concat(n[e].properties[s],"
                  "));t+=i=i+o+""}return t},s=!1,r=0;case 5:if(!(r',p='
                  ',h="",d='',m='
                  ',f="",v=1,"fid"in e.geojson.features[0].properties&&(h+=''),f+=''),d+=''),v++),e.geojson.features[0].properties)"id"!==g&&"ID"!==g&&"fid"!==g&&(h+=''),f+=''),d+='"),v++);if(y='\n \n \n '.concat((u=u+(p=p+(h+='')+(d+="")+"
                  fid
                  ').concat(g,"
                  ")+(m=m+(f+="")+(""+l+"")+"")+"")+'',"\n \n "),n[0].content&&n[0].content.richTextContent&&(b='\n \n '.concat(n[0].content.richTextContent,"\n \n "),y+=b),n[0].content&&n[0].content.link&&n[0].content.link.content&&n[0].content.link.content.length>0)for(C=0;C\n \n \n '),y+=k;for(y+="",c.innerHTML=y,Bb.contentAppChild(c),new kn("shp-list-id-tabs"),(x=c.getElementsByClassName("DIV-cy-tabs")[0]).style.height="100%",x.style.display="flex",x.style.flexDirection="column",x.getElementsByClassName("DIV-cy-tab-content")[0].style.flex="1",_=x.getElementsByClassName("DIV-cy-tab-content-pane"),E=0;E<_.length;E++)_[E].style.height="100%";S=c.getElementsByClassName("el-table__header-wrapper")[0],(D=c.getElementsByClassName("el-table__body-wrapper")[0]).addEventListener("scroll",(function(t){S.scrollLeft=t.target.scrollLeft})),Bb._element.title.style.height="40px",Bb._element.body.style.width="65%",Bb._element.body.style.height="80%",Bb._element.content.style.height="calc(100% - 40px)",Bb._element.foot.style.display="none",D.style.height="calc(100% - ".concat(S.offsetHeight,"px)");case 64:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}();function jb(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Ib(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ib(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function Ib(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k()(this,e),Hb(i=zb(this,e,[t,n]),Yb,void 0),Hb(i,Jb,!1),Hb(i,qb,[]),i.viewer=t.viewer,!i.options.path)return i.error="未提供路径!",window.ELEMENT&&(window.ELEMENT.Message.closeAll(),window.ELEMENT.Message({message:i.error,type:"warning",duration:1500})),console.warn(i.error),tn()(i);for(var s in i.colors=Wb,i.options.head_tables=n.head_tables||[],i.options.fileName=n.fileName||"未命名对象",i.options.path.endsWith(".kml")||(i.options.color=n.color||"rgba(0,255,184,0.5)",i.options.opacity=n.opacity||0===n.opacity?n.opacity:1),i.options.show=!n.show&&!1!==n.show||n.show,i.total=0,i.page=1,i.pageSize=20,i.currentData=[],i.data=[],i.list=[],i.imgEntity=[],i.Dialog=o,i._elms={},i.sdk.addIncetance(i.options.id,i),i.disaster_type_colors=Wb[i.options.disaster_type]?Fb({},Wb[i.options.disaster_type]):void 0,i.disaster_type_colors)i.disaster_type_colors[s]=i.cmykToRgb(i.disaster_type_colors[s]);return i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"vector"}},{key:"show",get:function(){return this.options.show},set:function(t){this.setShow(t)}},{key:"opacity",get:function(){return this.options.opacity},set:function(t){this.options.opacity=t,this.entity&&this.entity.entities.values.forEach((function(e){e.point&&(e.point.color=e.point.color._value.withAlpha(t)),e.polygon&&(e.polygon.material=e.polygon.material.color._value.withAlpha(t)),e.polyline&&(e.polyline.material=e.polyline.material.color._value.withAlpha(t))}))}},{key:"on",value:function(){if(this.sdk&&this.viewer&&this.options.path)return this.init()}},{key:"init",value:(c=o()(a.a.mark((function t(){var i,n,o,s,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i="",this.options.host=this.options.host||h(),i=this.options.host.endsWith("yjearth4.0")?this.options.host+"/api/v1/vector/load2":this.options.host+"/yjearth4.0/api/v1/vector/load2",i+="?path="+this.options.path,t.next=6,fetch(i,{method:"get",headers:{"Content-Type":"application/json",token:m(),Authorization:"Bearer "+m()}});case 6:if(200!==(n=t.sent).status){t.next=17;break}return t.next=10,n.arrayBuffer();case 10:return o=t.sent,s=new Uint8Array(o),r=this.decompressGzip(s),0===this.data.length&&(this.data=JSON.parse(r)),t.next=16,this.formatData();case 16:return t.abrupt("return",e.create(this));case 17:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"formatData",value:(l=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=[],i=function(t,e,n){if(t)if(Array.isArray(t)){for(var o=!1,s=0;s0&&void 0!==w[0]&&w[0],i=w.length>1&&void 0!==w[1]?w[1]:{},this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=74;break}return t.next=7,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){C.fileName=C.fileName.trim(),C.fileName||(C.fileName="未命名对象"),C.originalOptions.fileName=C.fileName,C.originalOptions.field=C.field,C._DialogObject.close(),i.confirmCallBack&&i.confirmCallBack({id:C.options.id,fileName:C.originalOptions.fileName,field:C.originalOptions.field})},closeCallBack:function(){C.reset(),i.closeCallBack&&i.closeCallBack()}});case 7:this._DialogObject=t.sent,n='\n
                  \n
                  \n 文件名称:\n \n
                  \n
                  \n
                  \n
                  \n 名称字段选择:\n
                  \n
                  \n
                  \n ',(o=document.createElement("div")).innerHTML=n,this._DialogObject.contentAppChild(o),(s=o.getElementsByClassName("flie-name")[0]).value=this.options.fileName,s.addEventListener("input",(function(){C.options.fileName=s.value})),r=[],t.t0=a.a.keys(this.geojson.features[0].properties);case 17:if((t.t1=t.t0()).done){t.next=31;break}l=t.t1.value,c=l,u=0;case 21:if(!(u').concat(g,""),f+=b,t.next=52;break;case 67:m.innerHTML=f,m.value=this.options.field,m.addEventListener("input",(function(){C.options.field=m.value})),this._elms.fileName=s,this._elms.field=m,t.next=75;break;case 74:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 75:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"editById",value:(s=o()(a.a.mark((function t(){var e,i,n,s,r,l,c,u,p,h,d,m,f,v,g,y,b=this,C=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=C.length>0&&void 0!==C[0]&&C[0],i=C.length>1?C[1]:void 0,n=C.length>2&&void 0!==C[2]?C[2]:{},this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),s="",!e){t.next=48;break}l={},c=0;case 8:if(!(c\n
                  \n 内容类型:\n \n
                  \n \n \n
                  \n 编辑内容:\n
                  \n \n
                  \n
                  \n
                  \n 编辑内容:\n \n \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  \n
                  操作
                  \n
                  设备名称
                  \n
                  设备类型
                  \n
                  设备IP
                  \n
                  设备端口
                  \n
                  用户名
                  \n
                  密码
                  \n
                  \n
                  \n \n
                  \n
                  \n

                  暂无数据

                  \n
                  \n
                  \n
                  \n
                  \n
                    \n
                    \n
                    \n ',(p=document.createElement("div")).innerHTML=u,this._DialogObject.contentAppChild(p),p.getElementsByTagName("*"),this._DialogObject._element.body.style.width="600px",h=p.getElementsByClassName("attribute-select")[0],d=p.getElementsByClassName("link_add_btn")[0],m=p.getElementsByClassName("open-richText-btn")[0],f=this._DialogObject._element.content.getElementsByClassName("attribute-content"),v=0;v-1?f[v].style.display="block":f[v].style.display="none";h.addEventListener("change",(function(){b._DialogObject.attribute.attributeType=h.value;for(var t=0;t-1?f[t].style.display="block":f[t].style.display="none"})),d.addEventListener("click",o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value?(b._DialogObject.attribute.link.content.push({name:"链接",url:b._DialogObject._element.content.getElementsByClassName("link_add")[0].value}),b._DialogObject._element.content.getElementsByClassName("link_add")[0].value="",b.setAttributeLinkById(i,b._DialogObject.attribute.link.content)):n.clickAddLink&&n.clickAddLink(i);case 1:case"end":return t.stop()}}),t)})))),m.addEventListener("click",(function(){On.open(i,i,b._DialogObject.attribute.richTextContent),On.primaryCallBack=function(t){b._DialogObject.attribute.richTextContent=t}})),g=p.getElementsByClassName("camera-name")[0],y=p.getElementsByClassName("camera-select")[0],g.addEventListener("input",(function(){s=g.value})),this.cameraSelect&&this.cameraSelect(s),y.addEventListener("click",(function(){b.cameraSelect&&b.cameraSelect(s)})),t.next=49;break;case 48:this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null);case 49:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"editContentById",value:function(t,e){for(var i=0;i0?s.getElementsByClassName("table-empty")[0].style.display="none":s.getElementsByClassName("table-empty")[0].style.display="flex";for(var l=0;l\n
                    '+this._DialogObject.attribute.link.content[l].url+'
                    \n
                    \n \n \n
                    \n ',u=document.createRange().createContextualFragment(c);r.appendChild(u)}for(var p=r.getElementsByClassName("tr"),h={linkEdit:(i=o()(a.a.mark((function e(i){var o,s,r,l,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.setAttributeLinkById(t,n._DialogObject.attribute.link.content);case 2:o=n._DialogObject._element.content.getElementsByClassName("attribute-content-link")[1].getElementsByClassName("table")[0],s=o.getElementsByClassName("table-body")[0],r=s.getElementsByClassName("tr"),l=a.a.mark((function t(e){var o,s,l,c,u,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i!==e){t.next=33;break}r[e].innerHTML='\n
                    \n \n
                    \n
                    \n
                    \n \n \n
                    \n
                    \n
                    \n \n \n
                    ',(o=r[e].getElementsByClassName("td"))[0].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].name,o[1].getElementsByClassName("input")[0].value=n._DialogObject.attribute.link.content[i].url,s=r[e].getElementsByTagName("button"),l=0;case 8:if(!(l1&&void 0!==m[1]?m[1]:{},pi(0),ii(this.sdk),ni(this.sdk),!e){t.next=14;break}n=a.a.mark((function t(n){var o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:d.geojson.features[n].id===e&&("Point"===d.geojson.features[n].geometry.type?d.getClampToHeight({lng:d.geojson.features[n].geometry.coordinates[0],lat:d.geojson.features[n].geometry.coordinates[1]}).then((function(t){d.sdk.viewer.camera.flyTo({orientation:i.orientation,destination:Cesium.Cartesian3.fromDegrees(d.geojson.features[n].geometry.coordinates[0],d.geojson.features[n].geometry.coordinates[1],t+(i.height||500))})})):(o=d.geojson.features[n].geometry.range)&&(s=[],d.getClampToHeight({lng:o[0],lat:o[1]}).then((function(t){var e=Cesium.Cartesian3.fromDegrees(o[0],o[1],t);s.push(e.x,e.y,e.z),d.getClampToHeight({lng:o[2],lat:o[3]}).then((function(t){var e=Cesium.Cartesian3.fromDegrees(o[2],o[3],t);s.push(e.x,e.y,e.z);var n=Cesium.BoundingSphere.fromVertices(s);d.sdk.viewer.camera.flyToBoundingSphere(n,{offset:i.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-90),roll:Cesium.Math.toRadians(0)}})}))}))));case 1:case"end":return t.stop()}}),t)})),o=0;case 7:if(!(o0){Tn(o,e.data.total,10,1,(function(e){i.cameraSelect&&i.cameraSelect(t,e)})),s.getElementsByClassName("table-empty")[0].style.display="none",a.style.display="inline-flex";for(var r=function(t){var o='\n
                    \n
                    \n \n 绑定\n
                    \n
                    ').concat(e.data.list[t].cameraName,'
                    \n
                    ').concat(n[e.data.list[t].type],'
                    \n
                    ').concat(e.data.list[t].ip,'
                    \n
                    ').concat(e.data.list[t].port,'
                    \n
                    ').concat(e.data.list[t].userName,'
                    \n
                    ').concat(e.data.list[t].passWord,"
                    \n
                    "),s=document.createRange().createContextualFragment(o),r=s.querySelector('input[type="checkbox"]');r.addEventListener("change",(function(){if(r.checked)i._DialogObject.attribute.camera.push(e.data.list[t]);else{var n=i._DialogObject.attribute.camera.filter((function(i){return i.ID!==e.data.list[t].ID}));i._DialogObject.attribute.camera=n}})),a.appendChild(s);for(var l=0;lo&&(o=l),s+=16}s=s+10+5*(n.length-1),o+=30,e.width=o,e.height=s;var c=i.createLinearGradient(0,0,o,s);return i.fillStyle=c,i.fillRect(0,0,o,s),i.fillStyle="#ffffff",i.font="16px YaHei",i.strokeStyle="#000000",i.strokeText(n,15,16*n.length+6.25+5*n.length),i.fillText(n,15,16*n.length+6.25+n.length-5),i.moveTo(o/2,s),i.stroke(),i.closePath(),e.toDataURL()}},{key:"createTableContent",value:function(t){for(var e="",i=0;i
                    ').concat(t.currentData[i].attr[s],"
                    ");e+=n=n+o+""}return e}}]);var i,n,s,r,l,c}(Wn);function Zb(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Kb(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(i=$b(this,e,[t,n])).options.text=n.text||"未命名对象";for(var s=i.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));if(s.length>70&&s.splice(70-s.length),i.options.text=s.join("\n"),i.options.name=i.options.text,i.options.show=!n.show&&!1!==n.show||n.show,i.options.angle=n.angle||0,i.options.scale=n.scale||0===n.scale?n.scale:1,i.options.fontSize=n.fontSize||20,i.options.duration=n.duration||0===n.duration?n.duration:5e4,i.options.speed=n.speed||0===n.speed?n.speed:1,i.options.color=n.color||"#FFC107",i.options.position=n.position,!i.options.position&&i.options.positions){var r=function(t,e){var i=e[0]-t[0],n=e[1]-t[1];return Math.atan2(n,i)};i.options.position={lng:(i.options.positions[0].lng+i.options.positions[1].lng)/2,lat:(i.options.positions[0].lat+i.options.positions[1].lat)/2};var l=turf.point([i.options.positions[0].lng,i.options.positions[0].lat]),c=turf.point([i.options.positions[1].lng,i.options.positions[1].lat]),u={units:"miles"},p=turf.rhumbDistance(l,c,u),h=r([i.options.positions[0].lng,i.options.positions[0].lat],[i.options.positions[1].lng,i.options.positions[1].lat]);i.options.angle=(360+Cesium.Math.toDegrees(h))%360;var d=1e-4*Math.abs(Math.cos(Math.PI/180*i.options.position.lat)),m=i.getcanvas(),f=m.height/m.width,v=i.options.position.lng-1e-4/f,g=i.options.position.lat-d,y=i.options.position.lng+1e-4/f,b=i.options.position.lat+d,C=(g+b)/2,w=turf.point([v,C]),x=turf.point([y,C]),_=turf.rhumbDistance(w,x,u),E=Cesium.Math.toRadians(i.options.position.lat);_*=1+Math.abs(Math.sin(h)*Math.tan(E)*Math.sin(E)*Math.sin(E)),i.options.scale=p/_}return i.entity,i._positionEditing=!1,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.previous={position:Kb({},i.options.position)},i.event=new X(i.sdk),i.sdk.addIncetance(i.options.id,i),i.create(),i}return sn()(e,t),_()(e,[{key:"lng",get:function(){return this.options.position.lng},set:function(t){this.options.position.lng=t,this._elms.lng&&this._elms.lng.forEach((function(e){e.value=t}))}},{key:"lat",get:function(){return this.options.position.lat},set:function(t){this.options.position.lat=t,this._elms.lat&&this._elms.lat.forEach((function(e){e.value=t}))}},{key:"text",get:function(){return this.options.text},set:function(t){var e=this;this.options.text=t;for(var i=this.options.text.split("\n"),n=0;n80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),i[n]=i[n].slice(0,80-i[n].length)}if(i.length>70){i.splice(70-i.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=i.join("\n"),this.entity){var o=this.getcanvas(),s=o.height/o.width;this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:o.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this.entity.rectangle.coordinates=new Cesium.CallbackProperty((function(){var t,i=Math.abs(Math.cos(Math.PI/180*e.options.position.lat))*(1e-4*e.options.scale),n=[e.options.position.lng-1e-4*e.options.scale/s,e.options.position.lat-i,e.options.position.lng+1e-4*e.options.scale/s,e.options.position.lat+i];return(t=Cesium.Rectangle).fromDegrees.apply(t,n)}),!1)}this._elms.text&&this._elms.text.forEach((function(t){t.value=e.options.text}))}},{key:"angle",get:function(){return this.options.angle},set:function(t){this.options.angle=t,this._elms.angle&&this._elms.angle.forEach((function(e){e.value=t}))}},{key:"scale",get:function(){return this.options.scale},set:function(t){this.options.scale=t,this._elms.scale&&this._elms.scale.forEach((function(e){e.value=t}))}},{key:"duration",get:function(){return this.options.duration},set:function(t){this.options.duration=t;var e=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.duration&&this._elms.duration.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t;var e=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t}))}},{key:"color",get:function(){return this.options.color},set:function(t){var e=this;this.options.color=t;var i=this.getcanvas();this.entity.rectangle.material=new Cesium.CustomMaterialSource({image:i.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),this._elms.color&&this._elms.color.forEach((function(i,n){var o=new YJColorPicker({el:i.el,size:"mini",alpha:!0,defaultColor:t,disabled:!1,openPickerAni:"opacity",sure:function(t){e.color=t},clear:function(){e.color="rgba(255,255,255,1)"}});e._elms.color[n]=o}))}},{key:"create",value:function(){var t=this,e=this.getcanvas(),i=e.height/e.width;this.entity=this.sdk.viewer.entities.add({id:this.options.id,show:this.options.show,rectangle:{coordinates:new Cesium.CallbackProperty((function(){var e,n=Math.abs(Math.cos(Math.PI/180*t.options.position.lat))*(1e-4*t.options.scale),o=[t.options.position.lng-1e-4*t.options.scale/i,t.options.position.lat-n,t.options.position.lng+1e-4*t.options.scale/i,t.options.position.lat+n];return(e=Cesium.Rectangle).fromDegrees.apply(e,o)}),!1),material:new Cesium.CustomMaterialSource({image:e.toDataURL("image/png"),color:this.options.color,repeat:new Cesium.Cartesian2(1,1),duration:this.options.duration/this.options.speed,fltr:!1,is2D:this.sdk.viewer.scene.mode===Cesium.SceneMode.SCENE2D}),rotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(t.options.angle)}),!1),stRotation:new Cesium.CallbackProperty((function(){return Cesium.Math.toRadians(t.options.angle)}),!1)}}),"cesium-viewer 2d"===this.sdk.viewer._element.className&&(this.entity.rectangle.height=10),Pe(this.sdk,this.options.id),this.options.show&&Kt(0,this.options.id)}},{key:"edit",value:(s=o()(a.a.mark((function t(e){var i,n,o,s=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=18;break}return t.next=6,new rn(this.sdk,this.originalOptions,{title:"贴地文字属性",left:"180px",top:"100px",confirmCallBack:function(t){s.text=s.text.trim(),s.text||(s.text="未命名对象"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.positionEditing=!1,s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()},translationalCallBack:function(){s.positionEditing=!s.positionEditing}},!0);case 6:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" ground-text",(i=document.createElement("div")).innerHTML='\n \n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n 颜色\n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 经度\n \n
                    \n
                    \n 纬度\n \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 旋转角度\n \n
                    \n \n °\n \n
                    \n
                    \n
                    \n
                    \n
                    \n 调整大小\n \n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n 滚动速度\n \n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,o=new YJColorPicker({el:i.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),this._elms.color=[o],t.next=19;break;case 18:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 19:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"positionEditing",get:function(){return this._positionEditing},set:function(t){var e=this;this.sdk&&this.sdk.viewer&&this.entity&&(this._positionEditing=t,this.previous={position:Kb({},this.options.position)},!0===t?(this.tip&&this.tip.destroy(),this.tip=new Z("点击鼠标左键确认,右键取消",this.sdk),this.event.mouse_move((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.tip.setPosition(i,t.endPosition.x,t.endPosition.y)})),this.event.mouse_left((function(t,i){var n=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=n.lng,e.lat=n.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1})),this.event.mouse_right((function(t,i){e.lng=e.previous.position.lng,e.lat=e.previous.position.lat,e.positionEditing=!1})),this.event.gesture_pinck_start((function(t,i){var n=new Date;e.event.gesture_pinck_end((function(){if(new Date-n>=500)e.lng=e.previous.position.lng,e.lat=e.previous.position.lat,e.positionEditing=!1;else{var t=e.cartesian3Towgs84(i,e.sdk.viewer);e.lng=t.lng,e.lat=t.lat,e.event.mouse_move((function(){})),e.event.mouse_left((function(){})),e.event.mouse_right((function(){})),e.event.gesture_pinck_start((function(){})),e.event.gesture_pinck_end((function(){})),e.positionEditing=!1}}))}))):(this.event&&(this.event.mouse_move((function(){})),this.event.mouse_left((function(){})),this.event.mouse_right((function(){})),this.event.gesture_pinck_start((function(){})),this.event.gesture_pinck_end((function(){}))),this.tip&&this.tip.destroy()))}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d,m,f,v,g,y,b=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=b.length>0&&void 0!==b[0]?b[0]:{},i=this.getcanvas(),n=i.height/i.width,pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(o={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},s=this.options.customView.relativePosition.lng,r=this.options.customView.relativePosition.lat,l=this.options.customView.relativePosition.alt,c=Cesium.Cartesian3.fromDegrees(s,r,l),u={lng:0,lat:0},this.options.position?u=Kb({},this.options.position):this.options.positions?u=Kb({},this.options.positions[0]):this.options.center?u=Kb({},this.options.center):this.options.start?u=Kb({},this.options.start):(this.options.hasOwnProperty("lng")&&(u.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(u.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(u.alt=this.options.alt)),u.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(u);case 17:u.alt=t.sent;case 18:s=this.options.customView.relativePosition.lng+u.lng,r=this.options.customView.relativePosition.lat+u.lat,l=this.options.customView.relativePosition.alt+u.alt,c=Cesium.Cartesian3.fromDegrees(s,r,l),this.sdk.viewer.camera.flyTo({destination:c,orientation:o}),t.next=34;break;case 25:return p=Math.abs(Math.cos(Math.PI/180*this.options.position.lat))*(1e-4*this.options.scale),h=[[this.options.position.lng-1e-4*this.options.scale/n,this.options.position.lat-p],[this.options.position.lng+1e-4*this.options.scale/n,this.options.position.lat+p]],t.next=29,this.getClampToHeight(this.options.position);case 29:for(d=t.sent,m=[],f=0;f80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:{};k()(this,e),(n=tC(this,e,[t,i])).options.text=i.text||"未命名对象";for(var s=n.options.text.split("\n"),a=0;a80&&(s[a]=s[a].slice(0,80-s[a].length));return s.length>70&&s.splice(70-s.length),n.options.text=s.join("\n"),n.options.color=i.color||"#FFC107",n.options.positions=i.positions,n.options.speed=i.speed||0===i.speed?i.speed:1,n.options.show=!i.show&&!1!==i.show||i.show,n.nodePoints=[],n.entity,n.options.instruct=i.instruct||"",n.options.operatingPoint=i.operatingPoint||"",n.options.attribute=i.attribute||{},n.options.attribute.link=n.options.attribute.link||{},n.options.attribute.link.content=n.options.attribute.link.content||[],n.options.attribute.camera=n.options.attribute.camera||[],n.options.attributeType=i.attributeType||"richText",n.extrudedHeight,n._EventBinding=new wn,n.Dialog=o,n._elms={},n.sdk.addIncetance(n.options.id,n),e.create(n),n}return sn()(e,t),_()(e,[{key:"text",get:function(){return this.options.text},set:function(t){this.options.text=t;for(var e=this.options.text.split("\n"),i=0;i80){window.ELEMENT&&window.ELEMENT.Message({message:"行超过80个字符,请按回车(Enter)后,继续输入",type:"warning",duration:1e3}),e[i]=e[i].slice(0,80-e[i].length)}if(e.length>70){e.splice(70-e.length);window.ELEMENT&&window.ELEMENT.Message({message:"超过最大输入字符",type:"warning",duration:1e3})}if(this.options.text=e.join("\n"),this.entity){for(var n=this.options.positions,o=[],s=[],a=[],r=this.getMaterial(),l=this.computeDistance2(n),c=this.aspectRatio?l/this.aspectRatio:0,u=0;u\n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n 颜色\n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 滚动速度\n \n \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(n),this.attributeType=this.options.attributeType,this.attributeCamera=this.options.attribute.camera,o=new YJColorPicker({el:n.getElementsByClassName("color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){r.color=t},clear:function(){r.color="rgba(255,255,255,1)"}}),s=n.getElementsByTagName("*"),this._EventBinding.on(this,s),this._elms=this._EventBinding.element,this._elms.color=[o],t.next=21;break;case 20:this._DialogObject&&this._DialogObject.remove&&(this._DialogObject.remove(),this._DialogObject=null);case 21:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"reset",value:function(){if(this.entity){this.options=this.deepCopyObj(this.originalOptions),this.text=this.originalOptions.text,this.color=this.originalOptions.color,this.speed=this.originalOptions.speed;for(var t=this.options.positions,e=[],i=[],n=[],o=this.computeDistance2(t),s=this.aspectRatio?o/this.aspectRatio:0,a=0;a80&&(i[n]=i[n].slice(0,80-i[n].length));i.length>70&&i.splice(70-i.length),this.options.text=i.join("\n");for(var o=0,s=0;s1&&void 0!==arguments[1]?arguments[1]:function(){};if(YJ.Measure.GetMeasureStatus())e("上一次测量未结束");else{var i,n;YJ.Measure.SetMeasureStatus(!0),t.tip=new Z("请选择一个顶点,右键取消",t.sdk),t.event=new X(t.sdk),t.nodePoints=[];for(var o=t.options.positions,s=L()(t.options.positions),a=[],r=[],l=[],c=t.computeDistance2(o),u=t.aspectRatio?c/t.aspectRatio:0,p=0;p=500?m(o,i):d(o,i)}))}));for(var f=0;f2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(n=oC(this,e)).sdk=t,n.viwer=t.viewer,n.options=nC({},i),n.options.host=i.host||h(),n.options.name=i.name||"未命名对象",n.options.show=!i.show&&!1!==i.show||i.show,"number"==typeof i.scale?(n.options.scale={},n.options.scale.x=i.scale,n.options.scale.y=i.scale,n.options.scale.z=i.scale):(n.options.scale=i.scale||{},n.options.scale.x=n.options.scale.x||0===n.options.scale.x?n.options.scale.x:1,n.options.scale.y=n.options.scale.y||0===n.options.scale.y?n.options.scale.y:1,n.options.scale.z=n.options.scale.z||0===n.options.scale.z?n.options.scale.z:1),n.primitive=null,n._loadEvent=void 0,n._loaded=!1,n._elms={},n.Dialog=o,n._EventBinding=new wn,e.setDefaultValue(n),n.requestResource(),n.ControllerObject=new qo(n.sdk,{position:nC({},n.options.position),rotate:{x:(360+n.options.roll%360)%360,y:(360+-n.options.pitch%360)%360,z:(360+-n.options.heading%360)%360}}),n.ControllerObject.controllerCallBack=n.controllerCallBack,n.HeadingPitchRollCallBack=n.Dialog.HeadingPitchRollCallBack,n}return sn()(e,t),_()(e,[{key:"requestResource",value:function(){this.addResource().then((function(t){}))}},{key:"addResource",value:(s=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).options.xmlURL=e.options.objUrl.replace(".obj",".xml"),""===e.options.xmlURL){t.next=34;break}return t.next=5,fetch(e.options.xmlURL);case 5:if(!(i=t.sent).ok){t.next=32;break}return t.next=9,i.text();case 9:return n=t.sent,o=new DOMParser,s=o.parseFromString(n,"text/xml"),r=s.getElementsByTagName("Position")[0].textContent.split(","),l=s.getElementsByTagName("Crs")[0].textContent,c=e.convert([{x:r[0],y:r[1],z:r[2]}],l,"EPSG:4326"),e.options.position=e.options.position||{lng:c.points[0].x,lat:c.points[0].y,alt:c.points[0].z},e.ControllerObject.position=e.options.position,u=e.viwer.scene,p=Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt),h=Cesium.Transforms.headingPitchRollToFixedFrame(p,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(.85),Cesium.Math.toRadians(0),Cesium.Math.toRadians(0))),t.next=22,window.objLoader.Load(e.options.objUrl);case 22:(d=t.sent).show=e.options.show,d.modelMatrix=h,d.setFlvVideo(e.options.videoUrl),u.primitives.add(d),e.primitive=d,e.controllerCallBack({rotate:{x:e.options.roll,y:-e.options.pitch,z:-e.options.heading},position:nC({},e.options.position)}),this.loaded=!0,this._loaded=!0,this._loadEvent&&this._loadEvent();case 32:t.next=36;break;case 34:return console.error("请填写xml路径"),t.abrupt("return");case 36:if(""!==e.options.objUrl){t.next=39;break}return console.error("请填写obj模型路径"),t.abrupt("return");case 39:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=p.length>0&&void 0!==p[0]?p[0]:{},!this._error){t.next=3;break}return t.abrupt("return");case 3:if(pi(0),ii(this.sdk),ni(this.sdk),!(this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)){t.next=25;break}if(i={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},n=this.options.customView.relativePosition.lng,o=this.options.customView.relativePosition.lat,s=this.options.customView.relativePosition.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),l={lng:0,lat:0},this.options.position?l=nC({},this.options.position):this.options.positions?l=nC({},this.options.positions[0]):this.options.center?l=nC({},this.options.center):this.options.start?l=nC({},this.options.start):(this.options.hasOwnProperty("lng")&&(l.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(l.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(l.alt=this.options.alt)),l.hasOwnProperty("alt")){t.next=18;break}return t.next=17,this.getClampToHeight(l);case 17:l.alt=t.sent;case 18:n=this.options.customView.relativePosition.lng+l.lng,o=this.options.customView.relativePosition.lat+l.lat,s=this.options.customView.relativePosition.alt+l.alt,r=Cesium.Cartesian3.fromDegrees(n,o,s),this.sdk.viewer.camera.flyTo({destination:r,orientation:i}),t.next=28;break;case 25:c=100*Math.tan(60),u=c/111319.55,this.sdk.viewer.camera.flyTo({destination:new Cesium.Cartesian3.fromDegrees(this.options.position.lng,this.options.position.lat-u,this.options.position.alt+100),orientation:e.orientation||{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-60),roll:Cesium.Math.toRadians(0)}});case 28:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=this,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.length>0&&void 0!==p[0]&&p[0],e=!1,this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),t.next=6,new rn(this.sdk,this.options,{title:"编辑属性",left:"180px",top:"100px",confirmCallBack:function(t){u.name=u.name.trim(),u.name||(u.name="未命名对象"),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions)},resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},removeCallBack:function(){u.Dialog.removeCallBack&&u.Dialog.removeCallBack()},closeCallBack:function(){u.reset(),u.positionEditing=!1,u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},rotateCallBack:function(){u.rotationEditing?u.rotationEditing=!1:u.rotationEditing=!0},translationalCallBack:function(){u.positionEditing?u.positionEditing=!1:u.positionEditing=!0}},!0);case 6:for(this._DialogObject=t.sent,(i=document.createElement("div")).style.width="448px",i.innerHTML='\n \n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 经度\n \n
                    \n
                    \n 海拔高度\n
                    \n \n m\n \n
                    \n
                    \n
                    \n
                    \n
                    \n 纬度\n \n
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 缩放\n
                    \n \n 是否等比例缩放\n
                    \n
                    \n
                    \n \n \n
                    \n \n ',this._DialogObject.contentAppChild(i),n=this._DialogObject._element.content.getElementsByClassName("checkbox-box")[0].querySelector("input"),o=this._DialogObject._element.content.getElementsByClassName("equal")[0],s=this._DialogObject._element.content.getElementsByClassName("no-equal")[0],n.checked=e,n.addEventListener("change",(function(t){(e=t.target.checked)?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex")})),(r=o.getElementsByTagName("input"))[0].value=this.scaleX,r[1].value=this.scaleX,r[0].addEventListener("input",(function(t){u.scaleX=t.target.value,u.scaleY=t.target.value,u.scaleZ=t.target.value})),r[1].addEventListener("input",(function(t){u.scaleX=t.target.value,u.scaleY=t.target.value,u.scaleZ=t.target.value})),e?(o.style.display="flex",s.style.display="none"):(o.style.display="none",s.style.display="flex"),setTimeout((function(){if(u._DialogObject._element.foot){var t=u._DialogObject._element.foot.getElementsByClassName("rotate")[0];t&&(t.style.position="absolute",t.style.left="100px")}}),0),l=i.getElementsByTagName("*"),c=0;c1&&void 0!==arguments[1]?arguments[1]:{};k()(this,t),this.sdk=e,this.options=pC({},i),this.options.show=!i.show&&!1!==i.show||i.show,this.options.host=this.options.host||h(),this.objModelObject=[],this._loaded=!1,this._loadEvent=void 0,this.on()}),[{key:"show",get:function(){return this.options.show},set:function(t){var e=this;if("boolean"==typeof t){this.options.show=t;for(var i=function(i){e.objModelObject[i].load((function(){e.objModelObject[i].show=t}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),vC(i=fC(this,e,[t,n]),CC,void 0),i.options.id=n.id||i.randomString(),i.options.name=n.name||"漫游路径",i.options.points=n.points||[],i.options.repeat&&(i.options.repeat=Number(i.options.repeat)),i.Dialog=o,i}return sn()(e,t),_()(e,[{key:"repeat",get:function(){return this.options.repeat},set:function(t){if(this.options.repeat!=Number(t)&&(this.options.repeat=Number(t),this._DialogObject&&this._DialogObject._element&&this._DialogObject._element.content)){var e=this._DialogObject._element.content.querySelector("input[name='repeat']");e.checked=t===1/0,this.Dialog.changeRepeatStateCallBack&&this.Dialog.changeRepeatStateCallBack(e.checked)}}},{key:"edit",value:(i=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c,u,p,h,d,m,f,v,g=this;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,n=this.sdk.viewer,o=0,this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=44;break}return s=function(t){var e=l.getElementsByClassName("tr");e.length>0&&(e[e.length-1].querySelector("input[name='time']").disabled=void 0);var s=l.getElementsByClassName("tr active")[0];s&&(s.className="tr");var a=document.createElement("div");a.className="tr active",a.innerHTML='\n
                    视点'.concat(u+1,'
                    \n
                    \n \n
                    \n
                    \n
                    \n '),a.addEventListener("click",(function(t){if(t.target.parentNode===a){var i=l.getElementsByClassName("tr active")[0];i&&(i.className="tr"),a.className="tr active";for(var n=0;nn+1?(o--,e[o-1].className="tr active"):o==n+1&&(e.length==n&&(o-=1),0!=e.length&&(e[o-1].className="tr active")),e.length>0){var s=e[e.length-1].querySelector("input[name='time']");s.disabled="disabled",s.value=0}break}})),h.addEventListener("input",(function(e){f.checked=!1,t.duration=Number(h.value),t.duration<0&&(t.duration=0)})),h.addEventListener("blur",(function(){h.value=Number(Number(h.value).toFixed(2)),h.value<0&&(h.value=0)})),l.insertBefore(a,e[o]),o++,e[e.length-1].querySelector("input[name='time']").disabled="disabled"},t.next=8,new W(n._container,{title:"飞行漫游",left:"180px",top:"100px",closeCallBack:function(){g.cease()}});case 8:return this._DialogObject=t.sent,t.next=11,this._DialogObject.init();case 11:for((r=document.createElement("div")).className="fly-roam",r.innerHTML='\n \n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n \n 设置总时长\n
                    \n \n 秒(s)\n \n
                    \n
                    \n
                    \n \n 是否循环播放\n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n \n
                    \n
                    \n \n
                    \n
                    \n \n
                    \n
                    \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    序号
                    \n
                    时长(s)
                    \n
                    操作
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n

                    暂无数据

                    \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(r),r.getElementsByTagName("*"),l=r.getElementsByClassName("table-body")[0],c=r.getElementsByClassName("table-empty")[0],u=0,p=new Proxy([],{set:function(t,e,i){return t[e]=i,t.length>0?c.style.display="none":c.style.display="flex",!0}}),u=0;u0&&g.flyTo(0)})),r.getElementsByClassName("add-point")[0].addEventListener("click",(function(){var t={duration:0,position:g.cartesian3Towgs84(n.camera.position,n),orientation:{heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll}};p.splice(o,0,t),g.options.points.splice(o,0,t),s(t),u++})),r.getElementsByClassName("modify-point")[0].addEventListener("click",(function(){if(o){var t=g.cartesian3Towgs84(n.camera.position,n);g.options.points[o-1].position=p[o-1].position=t,g.options.points[o-1].orientation=p[o-1].orientation={heading:n.camera.heading,pitch:n.camera.pitch,roll:n.camera.roll},g.message({text:"操作成功"})}})),m=r.querySelector("input[name='totalTime']"),f=r.querySelector("input[name='isTotalTime']"),v=r.querySelector("input[name='repeat']"),f.addEventListener("change",(function(){var t=l.getElementsByClassName("tr");if(f.checked&&t.length>0){for(var e=Number((Number(m.value)/(t.length-1)).toFixed(2)),i=0;i0){for(var e=Number((Number(m.value)/(t.length-1)).toFixed(2)),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;pi(0);var i=this,n=this.options.points,s=this.repeat;ii(i.sdk);var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;yC(CC,t)&&yC(CC,t).destroy();var l=t;gC(CC,t,new Cesium.ScreenSpaceEventHandler(l.sdk.viewer.canvas)),yC(CC,t).setInputAction((function(e){t.cease()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var c,u=l.sdk.viewer;pi(0),u.camera.cancelFlight(),u.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(n[e].position.lng,n[e].position.lat,n[e].position.alt),orientation:n[e].orientation,duration:i?n[e-1].duration:.5,maximumHeight:n[e].position.alt,complete:(c=o()(a.a.mark((function i(){return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e++,t.repeat===1/0?s=1/0:s===1/0&&(s=t.repeat),e<=n.length-1?r(e,!0):s?(s--,r(0)):yC(CC,t)&&yC(CC,t).destroy();case 3:case"end":return i.stop()}}),i)}))),function(){return c.apply(this,arguments)}),easingFunction:i?Cesium.EasingFunction.LINEAR_NONE:Cesium.EasingFunction.EXPONENTIAL_OUT})};r(e)}},{key:"cease",value:function(){this.sdk&&this.sdk.viewer&&this.sdk.viewer.camera.cancelFlight(),yC(CC,this)&&yC(CC,this).destroy()}},{key:"remove",value:function(){this._DialogObject&&this._DialogObject.close?(this._DialogObject.close(),this._DialogObject=null):this.cease()}}]);var i}(Wn);function kC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var xC=function(){return _()((function t(e,i,n){k()(this,t),this.options=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"move",e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("move"===t){var o=turf.point([this.options.position.lng,this.options.position.lat]),s=Cesium.Math.toDegrees(this.hpr.heading),a=s+i,r={units:"degrees"},l=turf.destination(o,e,a,r).geometry.coordinates;this.position=Cesium.Cartesian3.fromDegrees(l[0],l[1],this.options.position.alt+this.options.normalHeight),this.options.position.lng=l[0],this.options.position.lat=l[1],this.viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(l[0],l[1],this.viewer.camera.positionCartographic.height)})}"update"===t&&(this.position=e,this.options.videoUrl&&this.updatePolygonPosition()),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"syncHpr",value:function(){if(this.viewer1){var t=this.options.position,e=t.lng,i=t.lat,n=t.alt,o=-this.hpr.pitch-Cesium.Math.toRadians(-90);this.viewer1.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e,i,n+this.options.normalHeight),orientation:{heading:this.hpr.heading+Cesium.Math.toRadians(-90),pitch:o,roll:this.hpr.roll}})}}},{key:"updateFrustumHPR",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.head,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.pitch,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";function s(t){return t*Math.PI/180}"alone"==o?(this.hpr.heading=s(t),this.hpr.pitch=s(e),this.hpr.roll=s(i)):(this.hpr.heading=Cesium.Math.negativePiToPi(t),this.hpr.pitch=Cesium.Math.negativePiToPi(e),this.hpr.roll=Cesium.Math.negativePiToPi(i)),n&&(this.syncHpr(),this.updateFrustumAttributes())}},{key:"updateFrustumAttributes",value:function(){if(this.position&&this.hpr){var t=Cesium.Transforms.headingPitchRollToFixedFrame(this.position,this.hpr);if(t)try{var e=new Cesium.FrustumOutlineGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(t,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(t,new Cesium.Matrix3))}),i=new Cesium.PolylineColorAppearance({translucent:!1}),n=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW),o=new Cesium.FrustumGeometry({frustum:this.frustum,origin:Cesium.Matrix4.getTranslation(t,new Cesium.Cartesian3),orientation:Cesium.Quaternion.fromRotationMatrix(Cesium.Matrix4.getRotation(t,new Cesium.Matrix3))}),s=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("Color",{color:Cesium.Color.YELLOW.withAlpha(.5)}),translucent:!0}),a=Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.RED.withAlpha(.5));this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:e,attributes:{color:n}}),appearance:i,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumOutline),this.currentFrustumFilled=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:o,attributes:{color:a}}),appearance:s,asynchronous:!1,show:this.options.show}),this.viewer.scene.primitives.add(this.currentFrustumFilled)}catch(t){console.error("Error in drawFrustum:",t)}else console.error("Transform generation failed.")}else console.error("Position or HPR is not defined:",this.position,this.hpr)}},{key:"updateFrustumNearFar",value:function(t,e){this.frustum.near=t,this.frustum.far=e,this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"updateFrustumFov",value:function(t){this.frustum.fov=Cesium.Math.toRadians(t),this.drawFrustumOutline(),this.drawFrustumFilled()}},{key:"show",get:function(){return this.options.show},set:function(t){"boolean"==typeof t&&(this.options.show=t,this.currentFrustumOutline.show=t,this.currentFrustumFilled.show=t)}},{key:"remove",value:function(){document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("keyup",this.keyupHandler),this.currentFrustumFilled&&this.viewer.scene.primitives.remove(this.currentFrustumFilled),this.currentFrustumOutline&&this.viewer.scene.primitives.remove(this.currentFrustumOutline),this.videoEntity&&this.viewer.entities.remove(this.videoEntity)}}],[{key:"setDefaultValue",value:function(t){var e;t.options.position=t.options.position||{},t.options.fov=t.options.fov||30,t.options.aspectRatio=t.options.aspectRatio||1,t.options.near=t.options.near||1,t.options.far=t.options.far||120,t.options.heading=t.options.heading||0,t.options.pitch=t.options.pitch||90,t.options.roll=t.options.roll||0,t.options.show=null===(e=t.options.show)||void 0===e||e,t.options.videoUrl=t.options.videoUrl||"",t.options.index=t.options.index||0,t.options.arr=t.options.arr||[],t.options.normalHeight=t.options.normalHeight||100}}]);var t,e}();function _C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var EC=function(){return _()((function t(e,i){k()(this,t),this.options=function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;k()(this,t),this.options=DC({},e),this.viewer=i,this.viewer1=n,this.entity=null,this.frustum=null,this.billordPointLineMaps=[],this.index=0,this.positions=[],t.setDefaultValue(this),this.create()}),[{key:"create",value:function(){var t=this;if(!(this.options.positions.length<2)){var e=this.options.frustumShow;this.entity=this.viewer.entities.add({show:this.options.show,polyline:{positions:new Cesium.CallbackProperty((function(){for(var e=[],i=0;ithis.options.positions.length-1||this.index<0){var e=this.index>0?"已选中最后一个航点":"已选中第一个航点";alert(e)}else for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return k()(this,e),(i=MC(this,e,[t,n])).options.tipText=n.tipText?n.tipText:"左键确定,右键结束;",i}return sn()(e,t),_()(e,[{key:"start",value:function(t){var e=this;if(YJ.Measure.GetMeasureStatus())t("上一次测量未结束");else{var i=void 0;YJ.Measure.SetMeasureStatus(!0),this.tip=new Z(this.options.tipText,this.sdk),this.event=new X(this.sdk),this.isEntity=!1,this.event.mouse_left((function(n,o){e.end();var s=e.cartesian3Towgs84(i||o,e.viewer),a=e.viewer.scene.pick(n.position);Cesium.defined(a)&&Cesium.defined(a.id)&&a.id.id===window.airportEntity.options.id&&(e.isEntity=!0),t(null,s,e.isEntity)})),this.event.mouse_right((function(i,n){e.end(),t(!1)})),this.event.mouse_move((function(t,n){i=n,e.tip.setPosition(n,t.endPosition.x,t.endPosition.y)})),this.event.gesture_pinck_start((function(n,o){var s=new Date;e.event.gesture_pinck_end((function(){if(new Date-s>=500)e.end(),t(!1);else{e.end();var n=e.cartesian3Towgs84(i||o,e.viewer);t(null,n)}}))}))}}},{key:"end",value:function(){YJ.Measure.SetMeasureStatus(!1),this.event.destroy(),this.tip.destroy()}}])}(wa);function TC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function NC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return k()(this,e),(i=BC(this,e,[t,n])).viewer=i.sdk.viewer,i.options.name=n.name||"飞线",i.options.pointNumber=n.pointNumber||200,i.options.height=n.height||200,i.options.heightDifference=n.heightDifference||3e3,i.options.width=n.width||2,i.options.duration=n.duration||10,i.options.color=n.color||"rgba(255,255,255,1)",i.options.lineBackAlpha=n.lineBackAlpha||.05,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.Dialog=o,i._EventBinding=new wn,i._elms={},i.positionArea=[],i.positions=[],!i.options.positions||i.options.positions.length<3?(i._error="最少需要绘制三个坐标!",console.warn(i._error)):(i.sdk.addIncetance(i.options.id,i),e.drawLine(i)),i}return sn()(e,t),_()(e,[{key:"getRandomPointsInCesiumPolygon",value:function(t,e){var i=[],n=[],o=[];t.forEach((function(t){i.push(t.lng),n.push(t.lat),o.push([t.lng,t.lat])})),o.push([o[0][0],o[0][1]]);for(var s=Math.min.apply(Math,i),a=Math.max.apply(Math,i),r=Math.min.apply(Math,n),l=Math.max.apply(Math,n),c=[];c.length0&&void 0!==r[0]&&r[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=19;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"飞线属性",left:"180px",top:"100px",confirmCallBack:function(t){s.name=s.name.trim(),s.name||(s.name="飞线"),s.originalOptions=s.deepCopyObj(s.options),s._DialogObject.close(),s.Dialog.confirmCallBack&&s.Dialog.confirmCallBack(s.originalOptions),Pe(s.sdk,s.options.id),se(s.sdk,s.options.id)},resetCallBack:function(){s.reset(),s.Dialog.resetCallBack&&s.Dialog.resetCallBack()},removeCallBack:function(){s.Dialog.removeCallBack&&s.Dialog.removeCallBack()},closeCallBack:function(){s.reset(),s.Dialog.closeCallBack&&s.Dialog.closeCallBack()},showCallBack:function(t){s.show=t,s.Dialog.showCallBack&&s.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(i=document.createElement("div")).innerHTML='\n \n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n 颜色\n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 飞线数量\n
                    \n \n \n
                    \n
                    \n
                    \n 飞线宽度\n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n\n
                    \n 飞线高度\n
                    \n \n \n
                    \n
                    \n
                    \n 飞线高度差\n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n 单次运动时长(s)\n
                    \n \n \n
                    \n
                    \n
                    \n 轨迹透明度\n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(i),n=new YJColorPicker({el:i.getElementsByClassName("flowLine-color")[0],size:"mini",alpha:!0,defaultColor:this.color,disabled:!1,openPickerAni:"opacity",sure:function(t){s.color=t},clear:function(){s.color="rgba(255,255,255,1)"}}),o=i.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,this._elms.color=[n],t.next=19;break;case 19:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.pointNumber=this.originalOptions.pointNumber,this.height=this.originalOptions.height,this.heightDifference=this.originalOptions.heightDifference,this.width=this.originalOptions.width,this.duration=this.originalOptions.duration,this.color=this.originalOptions.color,this.lineBackAlpha=this.originalOptions.lineBackAlpha)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h.length>0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=NC({},this.options.position):this.options.positions?r=NC({},this.options.positions[0]):this.options.center?r=NC({},this.options.center):this.options.start?r=NC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else{for(l=[],c=0;c=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==i.return||i.return()}finally{if(r)throw s}}}}function jC(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i=Number(e.target.min))&&(i=i),e.target.max&&i>Number(e.target.max)&&(i=Number(e.target.max)),e.target.min&&iNumber(e.target.max)&&(i=Number(e.target.max)),e.target.min&&i0&&e[o].addEventListener(t,(function(e){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};k()(this,t),this.viewer=e.viewer,this.options=VC({},i),this.sdk=VC({},e),this.options.time=i.time||new Date,this.options.speed=i.speed||1e3,this.options.darkness=i.darkness||.4,this.options.softShadow=i.softShadow||!0,this.options.show=!0===i.show,this.Dialog=n,this.timeLine,this._EventBinding=new RC,this._elms={},t.start(this)}),[{key:"darkness",get:function(){return this.options.darkness},set:function(t){this.options.darkness=t,this.viewer.shadowMap.darkness=1-this.options.darkness,this._elms.darkness&&this._elms.darkness.forEach((function(e){e.value=t}))}},{key:"speed",get:function(){return this.options.speed},set:function(t){this.options.speed=t,this._elms.speed&&this._elms.speed.forEach((function(e){e.value=t})),this.viewer.clock.multiplier=this.options.speed,this.timeLine.setSpeed(t)}},{key:"softShadow",get:function(){return this.options.softShadow},set:function(t){this.options.softShadow=t,this.viewer.shadowMap.softShadows=this.options.softShadow}},{key:"edit",value:(i=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u=this,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=p.length>0&&void 0!==p[0]&&p[0],i=new fi,this.originalOptions=i.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=25;break}return n=this,t.next=8,new rn(this.sdk,this.originalOptions,{title:"光照属性",left:"180px",top:"100px",resetCallBack:function(){u.reset(),u.Dialog.resetCallBack&&u.Dialog.resetCallBack()},closeCallBack:function(){u.reset(),n.remove(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},showCallBack:function(t){u.show=t,u.Dialog.showCallBack&&u.Dialog.showCallBack()}},!0);case 8:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" sun-shine-surface",(o=document.createElement("div")).innerHTML='\n \n
                    \n
                    \n
                    \n 播放倍数\n
                    \n \n \n
                    \n
                    \n
                    \n 阴影柔和度\n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n 阴影优化\n \n
                    \n
                    \n 日期选择\n \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    \n
                    00:00:00
                    \n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(o),s=this,this.timeLine=new zC(this.sdk,this.options.speed),this.timeLine.moveComplay((function(t){var e=s.time+" "+t;s.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e)),s.viewer.scene.requestRender()})),l=o.getElementsByClassName("sunshine-date")[0],r=jeDate(l,{format:"YYYY-MM-DD",isinitVal:!0,isClear:!1,donefun:function(t){this.time=t.val;var e=(new Date).setHours(0,0,0,0);s.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e)),s.timeLine.updateTime(e)}}),this.time?r.setValue(this.time):(r.nowBtn&&r.nowBtn(),this.time=r.getValue()),c=o.getElementsByTagName("*"),this._EventBinding.on(this,c),this._elms=this._EventBinding.element,this._elms.color=[r],t.next=25;break;case 25:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.time=this.originalOptions.time,this.speed=this.originalOptions.speed,this.darkness=this.originalOptions.darkness)}},{key:"flyTo",value:(e=o()(a.a.mark((function t(){var e=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:!(e.length>0&&void 0!==e[0])||e[0];case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"remove",value:(t=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.viewer.scene.globe.enableLighting=!1,this.viewer.shadows=!1,this.viewer.clock.multiplier=1,this.viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date),this.entity=null,this.timeLine.clear(),this.viewer.shadowMap.cascadesEnabled=!1,this.viewer.shadowMap.size=1024,this.viewer.shadowMap.numberOfCascades=3,this.viewer.shadowMap._lightCamera,this.viewer.shadowMap.normalOffset=!1,this._DialogObject&&!this._DialogObject.isDestroy&&(this._DialogObject.close(),this._DialogObject=null),t.next=14,Pe(this.sdk,this.options.id);case 14:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"flicker",value:function(){}}],[{key:"start",value:function(t){t.viewer.scene.globe.enableLighting=!0,t.viewer.shadows=!0,t.viewer.scene.globe.enableLighting=!0,t.viewer.terrainShadows=Cesium.ShadowMode.RECEIVE_ONLY,t.viewer.shadowMap.darkness=1-t.options.darkness;var e=new Date;e.setHours(0,0,0,0),t.viewer.clock.currentTime=Cesium.JulianDate.fromDate(e),t.viewer.clock.multiplier=t.options.speed,t.viewer.shadowMap.softShadows=t.options.softShadow,t.viewer.shadowMap.cascadesEnabled=!0,t.viewer.shadowMap.size=2048,t.viewer.shadowMap.numberOfCascades=4,t.viewer.shadowMap.maximumDistance=5e3;var i=t.viewer.shadowMap._lightCamera;i.frustum.near=.1,i.frustum.far=1e4,t.viewer.shadowMap.normalOffset=!0,t.edit(!0)}}]);var t,e,i}();function UC(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function WC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(t,e,i){for(var n=[],o=[],s=[],a=0;am&&m>-1.001)o.push(v);else{var C=[];C[0]=v[1],C[1]=v[2],C[2]=v[3],C[3]=v[0],o.push(C)}},r=0;r2&&void 0!==arguments[2]?arguments[2]:.01;if(!e.width||!e.height)throw new Error("Texture size must contain width and height in pixels");for(var n=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(t),vertexFormat:Cesium.VertexFormat.POSITION_ONLY})),o=0,s=n.indices,a=n.attributes.position.values,r=0;r0)return Cesium.Cartesian3.fromDegrees(u.features[0].geometry.coordinates[0],u.features[0].geometry.coordinates[1])}},{key:"getLonLat",value:function(t){var e=Cesium.Cartographic.fromCartesian(t);return{lon:Cesium.Math.toDegrees(e.longitude),lat:Cesium.Math.toDegrees(e.latitude)}}},{key:"createLineBufferPolygon",value:function(t,e,i){for(var n=[],o=0;o0?n.unshift(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3)):i<0&&n.push(Cesium.Cartesian3.add(s,u,new Cesium.Cartesian3))}return n}},{key:"calculateAangle",value:function(t){function e(t,e){var i=Math.PI/180,n=t.y*i,o=e.y*i,s=t.x*i,a=e.x*i,r=Math.sin(a-s)*Math.cos(o),l=Math.cos(n)*Math.sin(o)-Math.sin(n)*Math.cos(o)*Math.cos(a-s),c=Math.atan2(r,l)%(2*Math.PI);return 360-(450-(180*c/Math.PI<0?360+180*c/Math.PI:180*c/Math.PI)-90)%360}var i=t[0],n=t[1],o=t[2],s={x:i.lng,y:i.lat},a={x:n.lng,y:n.lat},r={x:o.lng,y:o.lat};return{angle1:e(s,a),angle2:e(s,r)}}},{key:"carRoadWidth",get:function(){return this.options.carRoadWidth},set:function(t){this.options.carRoadWidth=t,e.create(this)}},{key:"sideWidth",get:function(){return this.options.sideWidth},set:function(t){this.options.sideWidth=t,e.create(this)}},{key:"edit",value:(s=o()(a.a.mark((function t(){var e,i,n,o=this,s=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=s.length>0&&void 0!==s[0]&&s[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!e){t.next=17;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"道路属性",left:"180px",top:"100px",confirmCallBack:function(t){o.name=o.name.trim(),o.name||(o.name="道路"),o.originalOptions=o.deepCopyObj(o.options),o._DialogObject.close(),o.Dialog.confirmCallBack&&o.Dialog.confirmCallBack(o.originalOptions),Pe(o.sdk,o.options.id),se(o.sdk,o.options.id)},resetCallBack:function(){o.reset(),o.Dialog.resetCallBack&&o.Dialog.resetCallBack()},closeCallBack:function(){o.reset(),o.Dialog.closeCallBack&&o.Dialog.closeCallBack()},showCallBack:function(t){o.show=t,o.Dialog.showCallBack&&o.Dialog.showCallBack()}},!0);case 7:this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" road-surface",(i=document.createElement("div")).innerHTML='\n \n
                    \n
                    \n
                    \n 名称\n \n
                    \n
                    \n 道路类型\n
                    \n
                    \n
                    \n
                    \n \n
                    \n
                    \n
                    \n 车道宽度\n
                    \n \n \n
                    \n
                    \n
                    \n 人行道宽度\n
                    \n \n \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(i),n=i.getElementsByTagName("*"),this._EventBinding.on(this,n),this._elms=this._EventBinding.element,t.next=17;break;case 17:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"reset",value:function(){this.viewer.entities.getById(this.options.id)&&(this.name=this.originalOptions.name,this.carRoadWidth=this.originalOptions.carRoadWidth,this.sideWidth=this.originalOptions.sideWidth,this.positions=this.originalOptions.positions,this.roadImage=this.originalOptions.roadImage,this.sideImage=this.originalOptions.sideImage)}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p,h=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(h.length>0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=WC({},this.options.position):this.options.positions?r=WC({},this.options.positions[0]):this.options.center?r=WC({},this.options.center):this.options.start?r=WC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else{for(l=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return k()(this,e),(i=ZC(this,e,[t,n])).options.position=n.position||[],i.options.text=n.text||"",i.options.show=!n.show&&!1!==n.show||n.show,i.clickTextDom=void 0,i.handler=void 0,i.textDom=void 0,i.create(i),i.sdk.addIncetance(i.options.id,i),i.callback=o,Pe(i.sdk,i.options.id),i}return sn()(e,t),_()(e,[{key:"type",get:function(){return"TextBox"}},{key:"create",value:(p=o()(a.a.mark((function t(e){var i,n,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.sdk.viewer,(n=document.createElement("span")).id=e.options.id,n.className="popup-textarea",n.style.zIndex=1,(o=document.createElement("textarea")).className="textarea",o.value=e.options.text,o.rows=6,o.style.resize="none",n.appendChild(o),!e.options.show&&(n.style.display="none"),i.cesiumWidget.container.appendChild(n),s=Cesium.Cartesian3.fromDegrees(e.options.position.lng,e.options.position.lat,e.options.position.alt),e.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.scene,s);if(t){var e=1*n.clientWidth,o=1*n.clientHeight;n.style.left="".concat(t.x-e/2,"px"),n.style.top="".concat(t.y-o,"px")}},i.scene.postRender.addEventListener(e.handler),e.textDom=n;case 17:case"end":return t.stop()}}),t)}))),function(t){return p.apply(this,arguments)})},{key:"isClick",value:(u=o()(a.a.mark((function t(e,i){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.clickCallBack({position:e},i,null);case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return u.apply(this,arguments)})},{key:"setHandeler",value:(c=o()(a.a.mark((function t(e){var i,n,o,s,r,l,c;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,(n=this.sdk.viewer.scene.pickPosition(new Cesium.Cartesian2(e.x,e.y)))||(o=this.sdk.viewer.camera.getPickRay(new Cesium.Cartesian2(e.x,e.y)),n=this.sdk.viewer.scene.globe.pick(o,this.sdk.viewer.scene)),!Cesium.defined(n)){t.next=15;break}return i.sdk.viewer.scene.postRender.removeEventListener(i.handler),s=Cesium.Cartographic.fromCartesian(n),r=Cesium.Math.toDegrees(s.longitude),l=Cesium.Math.toDegrees(s.latitude),t.next=10,i.getClampToHeight({lng:r,lat:l});case 10:t.sent,i.position={lng:r,lat:l,alt:s.height},c=Cesium.Cartesian3.fromDegrees(r,l,s.height),i.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,c);if(t){var e=1*i.textDom.clientWidth,n=1*i.textDom.clientHeight;i.textDom.style.left="".concat(t.x-e/2,"px"),i.textDom.style.top="".concat(t.y-n,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 15:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"getwords",value:(l=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.options.text=e,this.callback(this.options),i=ze(),n=i.sdkP,this.sdk===n&&n?Pe(this.sdk,this.options.id):n?(n.entityMap.get(this.options.id).text=e,n.entityMap.get(this.options.id).twoToThree(this.options.position)):n||Pe(this.sdk,this.options.id);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"twoToThree",value:(r=o()(a.a.mark((function t(e){var i,n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(i=this).sdk.viewer.scene.postRender.removeEventListener(i.handler),n=Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt),i.handler=function(){var t=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i.sdk.viewer.scene,n);if(t){var e=1*i.textDom.clientWidth,o=1*i.textDom.clientHeight;i.textDom.style.left="".concat(t.x-e/2,"px"),i.textDom.style.top="".concat(t.y-o,"px")}},i.sdk.viewer.scene.postRender.addEventListener(i.handler);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"returnFun",value:(s=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.handler);case 1:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"text",get:function(){return this.options.text},set:function(t){this.options.text=t,this.textDom.querySelector("textarea").value=t,this.callback(this.options)}},{key:"onClick",get:function(){return this.clickCallBack},set:function(t){t&&"function"!=typeof t?console.error("val:",t,"不是一个function"):this.clickCallBack=t}},{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t,this.textDom&&(this.textDom.style.display=t?"block":"none"),Pe(this.sdk,this.options.id)}},{key:"position",get:function(){return this.options.position},set:function(t){this.options.position=t}},{key:"flyTo",value:(n=o()(a.a.mark((function t(){var e,i,n,o,s,r,l,c,u,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p.length>0&&void 0!==p[0]&&p[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation?(e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=XC({},this.options.position):this.options.position?r=XC({},this.options.position[0]):this.options.center?r=XC({},this.options.center):this.options.start?r=XC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e})):(l=[],c=Cesium.Cartesian3.fromDegrees(this.position.lng,this.position.lat,this.position.alt),l.push(c.x,c.y,c.z),u=Cesium.BoundingSphere.fromVertices(l),this.viewer.camera.flyToBoundingSphere(u,{offset:{heading:Cesium.Math.toRadians(0),pitch:Cesium.Math.toRadians(-20),roll:Cesium.Math.toRadians(0)}}));case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"remove",value:(i=o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.handler&&(this.sdk.viewer.scene.postRender.removeEventListener(this.handler),this.handler=void 0),this.textDom&&this.textDom.parentNode&&this.sdk.viewer.cesiumWidget.container.removeChild(this.textDom),t.next=4,this.sdk.removeIncetance(this.options.id);case 4:Pe(this.sdk,this.options.id);case 5:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"flicker",value:function(){}}]);var i,n,s,r,l,c,u,p}(Wn);function $C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function QC(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};k()(this,e),(i=tw(this,e,[t,n])).viewer=i.sdk.viewer,i.options.name=n.name||"批量模型",i.options.type=n.type||"面",i.options.url=n.url||"",i.options.spacing=1*n.spacing||50,i.options.positions=n.positions||[],i.options.show=!n.show&&!1!==n.show||n.show,i.callback=o,i.Dialog=s,i._EventBinding=new wn,i._elms={},i.pointArr=[],i.sdk.addIncetance(i.options.id,i);var a=new fi(t);if(i.options.spacing<0||1*n.spacing==0)return a.message({type:"warning",text:"请输入正确的间距!"}),tn()(i);if(n.type&&null!=n.spacing||"点"==n.type){var r;switch(n.type){case"点":r=new pl(i.sdk);break;case"线":r=new sl(i.sdk);break;case"面":r=new cl(i.sdk)}r&&r.start((function(t,o){if(i.options.positions=o,"面"==n.type){var s=o.map((function(t){return Cesium.Cartesian3.fromDegrees(t.lng,t.lat)})),r=Cesium.Cartesian3.distance(s[0],s[1]),l=Cesium.Cartesian3.distance(s[1],s[2]);if(r/i.options.spacing*(l/i.options.spacing)>100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}else if("线"==n.type){for(var c=o.map((function(t){return Cesium.Cartesian3.fromDegrees(t.lng,t.lat)})),u=0,p=0;p100)return void a.message({type:"warning",text:"数量大于100,请重新绘制"})}(i.options.positions.length||i.options.positions.lng)&&e.computeDis(i)}))}else i.edit(!0);return i}return sn()(e,t),_()(e,[{key:"linePoint",value:(u=o()(a.a.mark((function t(e,i){var n,o,s,r,l,c,u,p,h,d,m,f,v,g;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],o=[],s=0;case 3:if(!(s0&&void 0!==p[0]&&p[0],this.originalOptions=this.deepCopyObj(this.options),this._DialogObject&&this._DialogObject.close&&(this._DialogObject.close(),this._DialogObject=null),!i){t.next=33;break}return t.next=7,new rn(this.sdk,this.originalOptions,{title:"默认模型参数设置",left:"180px",top:"100px",confirmCallBack:function(t){var i;switch(u.name=u.name.trim(),u.name||(u.name="飞线"),u.options.type){case"点":i=new pl(u.sdk);break;case"线":i=new sl(u.sdk);break;case"面":i=new cl(u.sdk)}i&&i.start((function(t,i){u.options.positions=i,(u.options.positions.length||u.options.positions.lng)&&e.computeDis(u)})),u.originalOptions=u.deepCopyObj(u.options),u._DialogObject.close(),u.Dialog.confirmCallBack&&u.Dialog.confirmCallBack(u.originalOptions),Pe(u.sdk,u.options.id),se(u.sdk,u.options.id)},closeCallBack:function(){u.reset(),u.Dialog.closeCallBack&&u.Dialog.closeCallBack()},addFootElm:[{tagName:"button",className:"flipe-over-y",innerHTML:"重置",event:["click",function(){u.reset()}]}]},!0);case 7:if(this._DialogObject=t.sent,this._DialogObject._element.body.className=this._DialogObject._element.body.className+" flow-line-surface",(n=document.createElement("div")).innerHTML='\n \n
                    \n
                    \n
                    \n 添加方式\n
                    \n
                    \n
                    \n 间距\n
                    \n \n \n \n
                    \n
                    \n
                    \n
                    \n \n ',this._DialogObject.contentAppChild(n),o=n.getElementsByTagName("*"),this._EventBinding.on(this,o),this._elms=this._EventBinding.element,s=[{name:"点",value:"点"},{name:"线",value:"线"},{name:"面",value:"面"}],!(r=Y(this._DialogObject._element.content.getElementsByClassName("add-type-box")[0],".add-type"))){t.next=31;break}r.legp_search(s),l=this._DialogObject._element.content.getElementsByClassName("add-type")[0].getElementsByTagName("input")[0],this._elms.type=[l],l.value=this.options.type,c=0;case 23:if(!(c0&&void 0!==h[0]&&h[0],pi(0),ii(this.sdk),ni(this.sdk),this.options.customView&&this.options.customView.relativePosition&&this.options.customView.orientation)e={heading:Cesium.Math.toRadians(this.options.customView.orientation.heading||0),pitch:Cesium.Math.toRadians(this.options.customView.orientation.pitch||-60),roll:Cesium.Math.toRadians(this.options.customView.orientation.roll||0)},i=this.options.customView.relativePosition.lng,n=this.options.customView.relativePosition.lat,o=this.options.customView.relativePosition.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),r={lng:0,lat:0},this.options.position?r=QC({},this.options.position):this.options.positions?r=QC({},this.options.positions[0]):this.options.center?r=QC({},this.options.center):this.options.start?r=QC({},this.options.start):(this.options.hasOwnProperty("lng")&&(r.lng=this.options.lng),this.options.hasOwnProperty("lat")&&(r.lat=this.options.lat),this.options.hasOwnProperty("alt")&&(r.alt=this.options.alt)),i=this.options.customView.relativePosition.lng+r.lng,n=this.options.customView.relativePosition.lat+r.lat,o=this.options.customView.relativePosition.alt+r.alt,s=Cesium.Cartesian3.fromDegrees(i,n,o),this.sdk.viewer.camera.flyTo({destination:s,orientation:e});else if(l=[],this.options.positions.length>0){for(c=0;c0&&void 0!==arguments[0]?arguments[0]:{isc:!1,excel:!1,flv:!1,rtsp:!1,hls:!1,host:"",username:"",password:""};return new Promise((function(e,i){var n=f(),o=["/custom/css/index.css","/arrow/algorithm.js","/arrow/plotUtil.js","/3rdparty/turf.min.js","/3rdparty/fabric.min.js","/3rdparty/proj4.js","/3rdparty/pako.min.js","/3rdparty/heatmap.js","/3rdparty/tween.umd.js","/Cesium/Cesium.js","/Cesium/Widgets/widgets.css","/3rdparty/ewPlugins.min.js","/3rdparty/wangeditor/index.js","/3rdparty/wangeditor/style.css","/3rdparty/html2canvas.min.js","/3rdparty/kriging.js","/3rdparty/echarts.min.js","/3rdparty/clipboard.min.js","/3rdparty/libgif.js","/3rdparty/liveplayer/liveplayer-element.min.js","/3rdparty/jedate/jedate.min.js","/3rdparty/jedate/skin/jedate.css"];window.YJSDK3rdpartyResourceAddress=n+"/3rdparty",t.ws&&o.push("/3rdparty/reconnecting-websocket.js"),(t.flv||t.rtsp)&&o.push("/3rdparty/flv.min.js");var s=document.createElement("script");s.setAttribute("type","module"),s.textContent="\n import * as THREE from '".concat(n,"/3rdparty/three/three.module.min.js';\n window.THREE = THREE\n "),document.querySelector("html").appendChild(s);var a=document.createElement("script");a.setAttribute("type","module"),a.textContent="\n import { SVGLoader } from '".concat(n,"/3rdparty/three/jsm/loaders/SVGLoader.js';\n window.SVGLoader = SVGLoader\n "),document.querySelector("html").appendChild(a);var r=[];o.forEach((function(t){var e;t.endsWith(".js")?((e=document.createElement("script")).setAttribute("type","text/javascript"),e.setAttribute("src",n+t)):((e=document.createElement("link")).setAttribute("rel","stylesheet"),e.setAttribute("href",n+t)),document.querySelector("html").appendChild(e);var i=new Promise((function(t,i){e.onload=function(){t()}})).then((function(t){return t}));r.push(i)})),Promise.all(r).then((function(i){var o,s;(o=document.createElement("script")).setAttribute("type","text/javascript"),o.setAttribute("src",n+"/3rdparty/viewerCesiumNavigationMixin.min.js"),document.querySelector("html").appendChild(o),o.onload=function(){p(t.host),t.username?c(t).then((function(t){e()})):e()},(s=document.createElement("script")).setAttribute("type","text/javascript"),s.setAttribute("src",n+"/3rdparty/CesiumHeatmap.js"),document.querySelector("html").appendChild(s)})).catch((function(t){i(t)}))}))},Obj:{ArcgisWXImagery:Gl,ArcgisBLUEImagery:Ul,ArcgisLWImagery:Wl,GDLWImagery:ql,GDWXImagery:Xl,GDSLImagery:Zl,Tileset:yc,BIM:Mc,Layer:su,Layer3rdparty:ru,Terrain:yu,Flame:Du,Smoke:ju,Fountain:Wu,Spout:$u,WaterSurface:$h,CircleDiffuse:ho,CircleObject:Up,EllipseObject:Kp,RadarScan:Co,RadarScanStereoscopic:Ih,SectorObject:Uh,WallStereoscopic:ah,WallRealStereoscopic:fh,KML:Yh,GeoJson:qh,BillboardObject:Bo,PolygonObject:zo,PolyhedronObject:lp,AssembleObject:fp,AttackArrowObject:kp,PincerArrowObject:Op,StraightArrowObject:Ip,PolylineObject:os,CurvelineObject:Sh,Explosion:Oh,Model:Jc,Model2:eu,TrajectoryMotion:gd,TrajectoryMotionObject:Dd,Graffiti:Md,GroundImage:Id,GroundSvg:db,RoutePlanning:yb,Shp:Ob,Vector:Xb,GroundText:Qb,StandText:eC,RichText:On,LocateCurrent:ga,LoadObjModel:sC,Heatmap:mC,FlyRoam:wC,newAirLine:PC,FRUSTUN:xC,Dialog:rn,FlowLine:LC,Road2:JC,TextBox:KC,BatchModel:ew},YJEarth:qi,Tools:fi,Proj:R,Global:{getCurrentView:function(t){var e=new fi,i=t.viewer;return JSON.parse(JSON.stringify({position:e.cartesian3Towgs84(i.camera.position,i),orientation:{heading:Cesium.Math.toDegrees(i.camera.heading),pitch:Cesium.Math.toDegrees(i.camera.pitch),roll:Cesium.Math.toDegrees(i.camera.roll)}}))},setDefaultView:function(t,e){var i=t.viewer;e?i.CAMERA_DEFAULT_VIEW_RECTANGLE={destination:e.destination||{},orientation:e.orientation||{}}:(i.CAMERA_DEFAULT_VIEW_RECTANGLE=void 0,Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(89.5,10.4,110.4,61.2))},switchCluster:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.viewer,n=0;n1&&void 0!==arguments[1]&&arguments[1];ys&&t.viewer.scene.postProcessStages.remove(ys),e&&(ys=new Cesium.PostProcessStage({name:"rain",fragmentShader:ks,uniforms:{tiltAngle:-.4,rainSize:.3,rainWidth:40,rainSpeed:100}}),t.viewer.scene.postProcessStages.add(ys))},snow:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bs&&t.viewer.scene.postProcessStages.remove(bs),e&&(bs=new Cesium.PostProcessStage({name:"snow",fragmentShader:xs,uniforms:{snowSize:2,snowSpeed:60}}),t.viewer.scene.postProcessStages.add(bs))},fog:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Cs&&t.viewer.scene.postProcessStages.remove(Cs),e&&(Cs=new Cesium.PostProcessStage({name:"fog",fragmentShader:_s,uniforms:{visibility:.2,fogColor:Cesium.Color.WHITE}}),t.viewer.scene.postProcessStages.add(Cs))},nightVision:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ws&&t.viewer.scene.postProcessStages.remove(ws),e&&(ws=Cesium.PostProcessStageLibrary.createNightVisionStage(),t.viewer.scene.postProcessStages.add(ws))},skyStarry:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.viewer.scene.skyAtmosphere.show=!e},illumination:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.viewer.shadows=e,t.viewer._shadows=e},Sunshine:GC},CameraController:Ke,CesiumContainer:$e,setBillboardDefaultUrl:Qe,getBillboardDefaultUrl:ti,multiViewportMode:{on:function(t){return _e.apply(this,arguments)},off:Ee,get2DView:Ie,getSdk:ze},MouseCoordinate:function(t,e){if(t&&t.viewer){Os=t,(Ts=ze().sdkD)||(Ts=ae().sdkD);var i=new fi(t);if(e){var n=function(){Ps=requestAnimationFrame(n),a()};Es&&Es.destroy(),Ss&&(Ss.destroy(),Ss=void 0),Es=new X(t),Ms=null;var o,s={x:"",y:"",z:""};Ds?o=Ds:((o=document.createElement("div")).style.position="absolute",o.style["z-index"]=777,o.style.color="#ff0000",o.style.left="0px",o.style.top="0px",o.style.width="100%",o.style.height="100%",o.style["font-size"]="12px",o.style["pointer-events"]="none",o.style.background="url(".concat(i.getSourceRootPath(),"/img/cross.png) no-repeat 100% 100%"),o.style["background-size"]="200% 200%",Ds=o),t.viewer.container.appendChild(o),Es.mouse_move((function(e,i){Os=t,Ms=function(t){for(var e=1;e

                    经度:").concat(h.lng.toFixed(6),"°

                    维度:").concat(h.lat.toFixed(6),"°

                    海拔:").concat(h.alt.toFixed(2)," m

                    ");else{var m=i.convert([{x:h.lng,y:h.lat,z:h.alt}],"EPSG:4326",d);s=m.points[0],o.innerHTML="

                    x:").concat(s.x.toFixed(6),"

                    y:").concat(s.y.toFixed(6),"

                    z:").concat(s.z.toFixed(6),"

                    ")}}else{var f=li();o.innerHTML="EPSG:4326"===f?"

                    经度:-

                    维度:-

                    海拔:-

                    "):"

                    x:-

                    y:-

                    z:-

                    ")}}}};n()}else Es&&Es.destroy(),Ss&&(Ss.destroy(),Ss=void 0),Ds&&(t.viewer.container.removeChild(Ds),Ds=void 0),Ps&&cancelAnimationFrame(Ps)}},MouseRightMenu:et,setGroundCover:function(t,e){We=!!e,function(t){if(!t)return;for(var e=0;e经度:".concat(Number(s.lng.toFixed(6)),"° \n 纬度:").concat(Number(s.lat.toFixed(6)),"° \n 海拔高度:").concat(Number(s.alt.toFixed(2)),"米\n ");else{var a=o.convert([{x:s.lng,y:s.lat,z:s.alt}],"EPSG:4326",Ue);i.innerHTML="\n x:".concat(Number(a.points[0].x.toFixed(6)),'\n y:').concat(Number(a.points[0].y.toFixed(6)),'\n z:').concat(Number(a.points[0].z.toFixed(6)),"\n ")}}}},DTH:Ki,cameraChanged:function(t,e){var i=new fi;return t.viewer.camera.changed.addEventListener((function(n){e({position:i.cartesian3Towgs84(t.viewer.camera.position,t.viewer),orientation:{heading:t.viewer.camera.heading,pitch:t.viewer.camera.pitch,roll:t.viewer.camera.roll}})}))},setMaximumRequestsPerServer:function(t){"number"==typeof t&&(Cesium.RequestScheduler.maximumRequestsPerServer=t)},setKeyboardEventActive:function(t,e){t&&(t.viewer._disableKeyboardEvent=!e)},setSkin:function(t){document.documentElement.style.setProperty("--color-sdk-base","rgba(0, 55, 55, 1)")},getTheme:function(){return Q},setTheme:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=Array.from(Q[t].keys());e.forEach((function(e){document.documentElement.style.setProperty(e,Q[t].get(e))}))},getCesiumManageIndexexDBState:ci,setCesiumManageIndexexDBState:ui,getCesiumIndexedDBMaxSize:function(){var t=Number(Number(localStorage.getItem("IndexedDBMaxSize")).toFixed(0));return(isNaN(t)||t<1073741824)&&(t=1073741824),t},setCesiumIndexedDBMaxSize:function(t){var e=Number(Number(t).toFixed(0));(isNaN(e)||e<1073741824)&&(e=1073741824),Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.SetIndexedDBMaxSize(e),localStorage.setItem("IndexedDBMaxSize",e)},getCesiumIndexedDBCurrentSize:function(){return Cesium.ManageIndexedDB&&Cesium.ManageIndexedDB.GetIndexedDBCurrentSize()},enablePerspective:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e||0==e||(e=1),t.viewer.scene.globe.translucency.frontFaceAlpha=e},closeRotateAround:ii,SheetIndexStatusSwitch:Ot,SheetIndexShangeScale:Tt,splitScreen:{on:function(t){return Jt.apply(this,arguments)},off:qt,setActiveId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(Vt=Array.isArray(t)?t:[t],zt&&Ft){var e=zt.viewer._element.getElementsByClassName("YJ-custom-checkbox-left")[0],i=zt.viewer._element.getElementsByClassName("YJ-custom-checkbox-right")[0];if(t&&0!==t.length){if(e&&i){e.style.display="none",i.style.display="none";for(var n=0,o=0,s=0;s0&&void 0!==arguments[0]&&arguments[0];YJ.Measure[iw]=t},Clear:function(){YJ.Measure.Measures.forEach((function(t){t.destroy()})),YJ.Measure.Measures=[]},Measures:[],MeasureDistance:kr,MeasureProjectionDistance:Dr,MeasureSlopeDistance:Nr,MeasureTyArea:Ir,MeasureTdArea:Vr,MeasureTriangle:Wr,MeasureLocation:qr,MeasureHeight:Kr,MeasureAngle:tl,MeasureAzimuth:nl},Draw:{DrawPolyline:sl,DrawPolygon:Ea,DrawPoint:pl,DrawCircle:dl,DrawElliptic:fl,DrawAttackArrow:gl,DrawPincerArrow:bl,DrawStraightArrow:kl,DrawRect:_l,DrawAssemble:Dl,DrawSector:Ml,DrawTakeOff:OC,DrawThreeRect:cl},Analysis:{Clear:function(){YJ.Analysis.AnalysesResults.forEach((function(t){t.destroy()}))},CutFillAnalysis:Sa,Submerge:La,ViewShed:Ra,CircleViewShed:Ya,SlopeAspect:Za,Profile:$a,Visibility:tr,Contour:er,Section:sr,TerrainExcavation:lr,Flat:dr,AnalysesResults:[],SectionResults:[],ClearSection:function(){YJ.Analysis.SectionResults.forEach((function(t){t.destroy()}))}},CoordTransform:Bl,RoutePlanningArrays:[],ClearAllRoutePlanning:function(){YJ.RoutePlanningArrays.forEach((function(t){t.destroy()})),YJ.RoutePlanningArrays=[]}},window.YJ.Obj.LoadObjModel=cC,window.YJ.Obj.BatchLoadObjModel=hC)}]); \ No newline at end of file diff --git a/yjearth4_0/static/log/2025-11-20.20251124111422870457.log.gz b/yjearth4_0/static/log/2025-11-20.20251124111422870457.log.gz deleted file mode 100644 index 175cfce..0000000 Binary files a/yjearth4_0/static/log/2025-11-20.20251124111422870457.log.gz and /dev/null differ diff --git a/yjearth4_0/static/log/2025-11-24.log b/yjearth4_0/static/log/2025-11-24.log deleted file mode 100644 index 31f6979..0000000 --- a/yjearth4_0/static/log/2025-11-24.log +++ /dev/null @@ -1,14 +0,0 @@ -2025-11-24 11:14:23.019 [INFO] {a0dfecd4dfd27a1892c2bf154d84fb70} gps.go:101: 查询串口数据 -2025-11-24 11:14:23.020 [INFO] {3c1c79dedfd27a1893c2bf15be2d5609} gps.go:105: 没有查询到串口数据 -2025-11-24 11:33:50.969 [INFO] {e8559dcdefd37a1898c2b171bab97c22} gps.go:101: 查询串口数据 -2025-11-24 11:33:50.969 [INFO] {5c34a5cdefd37a1899c2b1710600b081} gps.go:105: 没有查询到串口数据 -2025-11-24 11:36:15.447 [INFO] {dc8b2b7111d47a18c8b4d87d184df633} gps.go:101: 查询串口数据 -2025-11-24 11:36:15.447 [INFO] {a853337111d47a18c9b4d87d74f81cfd} gps.go:105: 没有查询到串口数据 -2025-11-24 11:38:33.938 [INFO] {846eecaf31d47a18abdd276946ad01fa} gps.go:101: 查询串口数据 -2025-11-24 11:38:33.939 [INFO] {d439f4af31d47a18acdd2769c1bba3ed} gps.go:105: 没有查询到串口数据 -2025-11-24 11:40:44.140 [INFO] {8cea8a0050d47a18c5807414ad729c36} gps.go:101: 查询串口数据 -2025-11-24 11:40:44.141 [INFO] {00c9920050d47a18c68074145e0d0019} gps.go:105: 没有查询到串口数据 -2025-11-24 11:41:03.177 [INFO] {841b356f54d47a182937361f6bc742c2} gps.go:101: 查询串口数据 -2025-11-24 11:41:03.177 [INFO] {88e23c6f54d47a182a37361f07a60e19} gps.go:105: 没有查询到串口数据 -2025-11-24 14:38:57.561 [INFO] {bc8aaec109de7a186748ad251159ef4b} gps.go:101: 查询串口数据 -2025-11-24 14:38:57.575 [INFO] {545af0c209de7a186848ad25bd16b487} gps.go:105: 没有查询到串口数据 diff --git a/yjearth4_0/static/log/2025-11-25.20251126143100935260.log.gz b/yjearth4_0/static/log/2025-11-25.20251126143100935260.log.gz new file mode 100644 index 0000000..3153e0d Binary files /dev/null and b/yjearth4_0/static/log/2025-11-25.20251126143100935260.log.gz differ diff --git a/yjearth4_0/static/log/2025-11-26.log b/yjearth4_0/static/log/2025-11-26.log new file mode 100644 index 0000000..afe869b --- /dev/null +++ b/yjearth4_0/static/log/2025-11-26.log @@ -0,0 +1,20 @@ +2025-11-26 09:49:24.333 [INFO] {e4a89cdf656b7b18394f3e363077428f} gps.go:101: 查询串口数据 +2025-11-26 09:49:24.334 [INFO] {4820b7df656b7b183a4f3e3612f9ce11} gps.go:105: 没有查询到串口数据 +2025-11-26 09:51:34.541 [INFO] {c8ad9e30846b7b183ccc3a629f387f33} gps.go:101: 查询串口数据 +2025-11-26 09:51:34.541 [INFO] {387ca630846b7b183dcc3a62e2d8ee8d} gps.go:105: 没有查询到串口数据 +2025-11-26 09:54:30.278 [INFO] {50335a1bad6b7b18c9ffb2055ea4151c} gps.go:101: 查询串口数据 +2025-11-26 09:54:30.278 [INFO] {a07b621bad6b7b18caffb205a289f330} gps.go:105: 没有查询到串口数据 +2025-11-26 09:59:25.720 [INFO] {4c8d1de5f16b7b18a4758d649359f3ae} gps.go:101: 查询串口数据 +2025-11-26 09:59:25.721 [INFO] {945125e5f16b7b18a5758d64f28b7c6c} gps.go:105: 没有查询到串口数据 +2025-11-26 10:12:47.933 [INFO] {1c4ba8acac6c7b180b37912dfe25d068} gps.go:101: 查询串口数据 +2025-11-26 10:12:47.933 [INFO] {f4c1b8acac6c7b180c37912d16489041} gps.go:105: 没有查询到串口数据 +2025-11-26 14:31:00.938 [INFO] {608688ebc37a7b189ff63f7f867aa2e5} gps.go:101: 查询串口数据 +2025-11-26 14:31:00.938 [INFO] {c8dfcbebc37a7b18a0f63f7f83499051} gps.go:105: 没有查询到串口数据 +2025-11-26 14:31:32.346 [INFO] {c474cf3bcb7a7b18c4994f29a18af25b} gps.go:101: 查询串口数据 +2025-11-26 14:31:32.347 [INFO] {2072df3bcb7a7b18c5994f2945c2679d} gps.go:105: 没有查询到串口数据 +2025-11-26 14:34:49.293 [INFO] {f46dca16f97a7b18de4a753b5cf806f5} gps.go:101: 查询串口数据 +2025-11-26 14:34:49.294 [INFO] {383bd216f97a7b18df4a753b6a0cec5b} gps.go:105: 没有查询到串口数据 +2025-11-26 16:12:21.839 [INFO] {50bcb7bd4b807b1810872d75c4db92e6} gps.go:101: 查询串口数据 +2025-11-26 16:12:21.841 [INFO] {00b5d2bd4b807b1811872d752eb8b839} gps.go:105: 没有查询到串口数据 +2025-11-26 16:39:14.630 [INFO] {84d2863fc3817b1863a63e337ccd5a83} gps.go:101: 查询串口数据 +2025-11-26 16:39:14.631 [INFO] {3080963fc3817b1864a63e33a52b1cea} gps.go:105: 没有查询到串口数据 diff --git a/yjearth4_0/static/log/2025-11-27.log b/yjearth4_0/static/log/2025-11-27.log new file mode 100644 index 0000000..6e603f7 --- /dev/null +++ b/yjearth4_0/static/log/2025-11-27.log @@ -0,0 +1,8 @@ +2025-11-27 09:03:55.060 [INFO] {90ac9dfb7eb77b184c9d3a7208b13860} gps.go:101: 查询串口数据 +2025-11-27 09:03:55.061 [INFO] {c074a5fb7eb77b184d9d3a728eb6a9d5} gps.go:105: 没有查询到串口数据 +2025-11-27 09:53:34.855 [INFO] {f07236c534ba7b18ed50ae678f2f6419} gps.go:101: 查询串口数据 +2025-11-27 09:53:34.855 [INFO] {c4a53ec534ba7b18ee50ae672f6a54af} gps.go:105: 没有查询到串口数据 +2025-11-27 09:56:15.418 [INFO] {a43b82275aba7b18cafc9b3120daffd5} gps.go:101: 查询串口数据 +2025-11-27 09:56:15.419 [INFO] {bca799275aba7b18cbfc9b31d9be8f4d} gps.go:105: 没有查询到串口数据 +2025-11-27 10:08:03.568 [INFO] {50638208ffba7b1893407f435516acf5} gps.go:101: 查询串口数据 +2025-11-27 10:08:03.569 [INFO] {70219a08ffba7b1894407f437e771f11} gps.go:105: 没有查询到串口数据 diff --git a/yjearth4_0/static/richText/2025-11-26/test.mp4 b/yjearth4_0/static/richText/2025-11-26/test.mp4 new file mode 100644 index 0000000..70a839b Binary files /dev/null and b/yjearth4_0/static/richText/2025-11-26/test.mp4 differ